@imperium/layout 14.8.1 → 14.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/content/components/ContentComponent.js +1 -1
- package/dist/esm/content/components/ContentComponent.js.map +1 -1
- package/dist/esm/content/components/SidebarItemWrapper.js +1 -1
- package/dist/esm/content/components/SidebarItemWrapper.js.map +1 -1
- package/dist/esm/layout/components/LayoutItemWrapper.js +1 -1
- package/dist/esm/layout/components/LayoutItemWrapper.js.map +1 -1
- package/dist/esm/layout/moveItems.js +2 -2
- package/dist/esm/layout/moveItems.js.map +1 -1
- package/dist/esm/layout/withLayout.js +7 -7
- package/dist/esm/layout/withLayout.js.map +1 -1
- package/dist/esm/types.js.map +1 -1
- package/dist/stats.html +1 -1
- package/dist/stats.txt +21 -21
- package/package.json +5 -5
|
@@ -15,7 +15,7 @@ import styles from './styles.module.css.js';
|
|
|
15
15
|
debug("imperium.layout.content.components.ContentComponent");
|
|
16
16
|
function useDeepCompareMemoize(value) {
|
|
17
17
|
const ref = useRef();
|
|
18
|
-
if (!value)
|
|
18
|
+
if (!value && !ref.current)
|
|
19
19
|
return ref.current;
|
|
20
20
|
if (!isEqual(value, ref.current)) {
|
|
21
21
|
ref.current = value;
|
|
@@ -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 {type DependencyList, type 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) 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\tuseEffect(() => {\n\t\tif (typeof page.header === 'string') {\n\t\t\tdispatch(actions.setPageHeader(page.header));\n\t\t} else {\n\t\t\tdispatch(actions.setPageHeader(''));\n\t\t}\n\t}, [dispatch, page.header]);\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;
|
|
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 {type DependencyList, type 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\t// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\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\tuseEffect(() => {\n\t\tif (typeof page.header === 'string') {\n\t\t\tdispatch(actions.setPageHeader(page.header));\n\t\t} else {\n\t\t\tdispatch(actions.setPageHeader(''));\n\t\t}\n\t}, [dispatch, page.header]);\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;AAEnB,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,CAA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AA,CAAA,QAAA,EAAA,IAAA,EACE,OAAW,IAAA,OAAA,EACX,CAAC,OAAA,oBACA,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA;AAAA,IAAO,IAAK,EAAA,YAAA;AAAA,IAAa,IAAK,EAAA,KAAA;AAAA,IAAM,OAAA,EAAS,MAAM,UAAA,CAAW,IAAI,CAAA;AAAA,IAAG,WAAW,MAAO,CAAA,aAAA;AAAA,IAAe,KAAA,EAAO,EAAC,WAAA,EAAa,CAAC,EAAA;AAAA,GAAG,CAElI,mBAEA,KAAA,CAAA,aAAA,CAAA,SAAA,EAAA;AAAA,IAAU,SAAA,EAAW,IAAK,CAAA,SAAA,IAAa,EAAC;AAAA,GAAG,CAC7C,CAAA,CAAA;AAEF;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarItemWrapper.js","sources":["../../../../src/content/components/SidebarItemWrapper.tsx"],"sourcesContent":["import type {DefineRouteOptions} from '@imperium/router';\nimport debug from 'debug';\nimport {Query} from 'mingo';\nimport {Divider} from 'semantic-ui-react';\nimport {useBuildContentData} from '../hooks/useBuildContentData';\nimport type {ContentData, RouteParameters, SidebarItem} from '../types';\nimport {isActionFormSidebarItem, isActionSidebarItem, isCustomSidebarItem, isDividerSidebarItem} from '../types';\nimport {ActionFormSidebarItemComponent} from './ActionFormSidebarItemComponent';\nimport {ActionSidebarItemComponent} from './ActionSidebarItemComponent';\nimport {CustomSidebarItemComponent} from './CustomSidebarItemComponent';\nimport {PlainSidebarItem} from './PlainSidebarItem';\n\nconst d = debug('imperium.layout.content.components.SidebarItemWrapper');\n\ninterface SidebarItemWrapperProps<T extends DefineRouteOptions, K extends keyof T> {\n\titem: SidebarItem<T, K>;\n\tdata?: ContentData<T, K>;\n\tparams: RouteParameters<T[K]['params']>;\n}\n\nexport function SidebarItemWrapper<T extends DefineRouteOptions, K extends keyof T>({item, data: parentData, params}: SidebarItemWrapperProps<T, K>) {\n\tconst data = useBuildContentData({\n\t\tdata: parentData,\n\t\tstateSelectorHook: item.stateSelectorHook,\n\t\tpermissionSelectorHook: item.permissionSelectorHook,\n\t\tparams,\n\t});\n\n\t// Check if visible\n\tif (item.visible) {\n\t\tif (typeof item.visible === 'function') {\n\t\t\tif (!item.visible(data)) return null;\n\t\t} else {\n\t\t\tconst q = new Query(item.visible);\n\t\t\tif (!q.test(data)) return null;\n\t\t}\n\t}\n\n\tif (isCustomSidebarItem(item)) {\n\t\treturn <CustomSidebarItemComponent item={item} data={data} />;\n\t}\n\n\tif (isActionSidebarItem(item)) {\n\t\t// @ts-ignore I'm not sure why this error is occurring -mk\n\t\treturn <ActionSidebarItemComponent item={item} data={data} />;\n\t}\n\n\tif (isActionFormSidebarItem(item)) {\n\t\t// @ts-ignore I'm not sure why this error is occurring -mk\n\t\treturn <ActionFormSidebarItemComponent item={item} data={data} />;\n\t}\n\n\tif (isDividerSidebarItem(item)) {\n\t\treturn <Divider />;\n\t}\n\n\t// @ts-ignore These types should work, not sure why it's not. Runtime code is fine.\n\treturn <PlainSidebarItem item={item} data={data} />;\n}\n"],"names":[],"mappings":";;;;;;;;;;;AAYU,MAAM,uDAAuD,EAAA;AAQhE,SAAA,kBAAA,CAA6E,EAAC,IAAA,EAAM,IAAM,EAAA,UAAA,EAAY,MAAwC,EAAA,EAAA;AACpJ,EAAA,MAAM,OAAO,mBAAoB,CAAA;AAAA,IAChC,IAAM,EAAA,UAAA;AAAA,IACN,mBAAmB,IAAK,CAAA,iBAAA;AAAA,IACxB,wBAAwB,IAAK,CAAA,sBAAA;AAAA,IAC7B,MAAA;AAAA,GACA,CAAA,CAAA;AAGD,EAAA,IAAI,KAAK,OAAS,EAAA;AACjB,IAAI,IAAA,OAAO,IAAK,CAAA,OAAA,KAAY,UAAY,EAAA;AACvC,MAAI,IAAA,CAAC,IAAK,CAAA,OAAA,CAAQ,IAAI,CAAA;AAAG,QAAO,OAAA,IAAA,CAAA;AAAA,KAC1B,MAAA;
|
|
1
|
+
{"version":3,"file":"SidebarItemWrapper.js","sources":["../../../../src/content/components/SidebarItemWrapper.tsx"],"sourcesContent":["import type {DefineRouteOptions} from '@imperium/router';\nimport debug from 'debug';\nimport {Query} from 'mingo';\nimport {Divider} from 'semantic-ui-react';\nimport {useBuildContentData} from '../hooks/useBuildContentData';\nimport type {ContentData, RouteParameters, SidebarItem} from '../types';\nimport {isActionFormSidebarItem, isActionSidebarItem, isCustomSidebarItem, isDividerSidebarItem} from '../types';\nimport {ActionFormSidebarItemComponent} from './ActionFormSidebarItemComponent';\nimport {ActionSidebarItemComponent} from './ActionSidebarItemComponent';\nimport {CustomSidebarItemComponent} from './CustomSidebarItemComponent';\nimport {PlainSidebarItem} from './PlainSidebarItem';\n\nconst d = debug('imperium.layout.content.components.SidebarItemWrapper');\n\ninterface SidebarItemWrapperProps<T extends DefineRouteOptions, K extends keyof T> {\n\titem: SidebarItem<T, K>;\n\tdata?: ContentData<T, K>;\n\tparams: RouteParameters<T[K]['params']>;\n}\n\nexport function SidebarItemWrapper<T extends DefineRouteOptions, K extends keyof T>({item, data: parentData, params}: SidebarItemWrapperProps<T, K>) {\n\tconst data = useBuildContentData({\n\t\tdata: parentData,\n\t\tstateSelectorHook: item.stateSelectorHook,\n\t\tpermissionSelectorHook: item.permissionSelectorHook,\n\t\tparams,\n\t});\n\n\t// Check if visible\n\tif (item.visible) {\n\t\tif (typeof item.visible === 'function') {\n\t\t\tif (!item.visible(data)) return null;\n\t\t} else {\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n\t\t\tconst q = new Query(item.visible || {});\n\t\t\tif (!q.test(data)) return null;\n\t\t}\n\t}\n\n\tif (isCustomSidebarItem(item)) {\n\t\treturn <CustomSidebarItemComponent item={item} data={data} />;\n\t}\n\n\tif (isActionSidebarItem(item)) {\n\t\t// @ts-ignore I'm not sure why this error is occurring -mk\n\t\treturn <ActionSidebarItemComponent item={item} data={data} />;\n\t}\n\n\tif (isActionFormSidebarItem(item)) {\n\t\t// @ts-ignore I'm not sure why this error is occurring -mk\n\t\treturn <ActionFormSidebarItemComponent item={item} data={data} />;\n\t}\n\n\tif (isDividerSidebarItem(item)) {\n\t\treturn <Divider />;\n\t}\n\n\t// @ts-ignore These types should work, not sure why it's not. Runtime code is fine.\n\treturn <PlainSidebarItem item={item} data={data} />;\n}\n"],"names":[],"mappings":";;;;;;;;;;;AAYU,MAAM,uDAAuD,EAAA;AAQhE,SAAA,kBAAA,CAA6E,EAAC,IAAA,EAAM,IAAM,EAAA,UAAA,EAAY,MAAwC,EAAA,EAAA;AACpJ,EAAA,MAAM,OAAO,mBAAoB,CAAA;AAAA,IAChC,IAAM,EAAA,UAAA;AAAA,IACN,mBAAmB,IAAK,CAAA,iBAAA;AAAA,IACxB,wBAAwB,IAAK,CAAA,sBAAA;AAAA,IAC7B,MAAA;AAAA,GACA,CAAA,CAAA;AAGD,EAAA,IAAI,KAAK,OAAS,EAAA;AACjB,IAAI,IAAA,OAAO,IAAK,CAAA,OAAA,KAAY,UAAY,EAAA;AACvC,MAAI,IAAA,CAAC,IAAK,CAAA,OAAA,CAAQ,IAAI,CAAA;AAAG,QAAO,OAAA,IAAA,CAAA;AAAA,KAC1B,MAAA;AAEN,MAAA,MAAM,IAAI,IAAI,KAAA,CAAM,IAAK,CAAA,OAAA,IAAW,EAAE,CAAA,CAAA;AACtC,MAAI,IAAA,CAAC,CAAE,CAAA,IAAA,CAAK,IAAI,CAAA;AAAG,QAAO,OAAA,IAAA,CAAA;AAAA,KAC3B;AAAA,GACD;AAEA,EAAI,IAAA,mBAAA,CAAoB,IAAI,CAAG,EAAA;AAC9B,IAAA,uBAAQ,KAAA,CAAA,aAAA,CAAA,0BAAA,EAAA;AAAA,MAA2B,IAAA;AAAA,MAAY,IAAA;AAAA,KAAY,CAAA,CAAA;AAAA,GAC5D;AAEA,EAAI,IAAA,mBAAA,CAAoB,IAAI,CAAG,EAAA;AAE9B,IAAA,uBAAQ,KAAA,CAAA,aAAA,CAAA,0BAAA,EAAA;AAAA,MAA2B,IAAA;AAAA,MAAY,IAAA;AAAA,KAAY,CAAA,CAAA;AAAA,GAC5D;AAEA,EAAI,IAAA,uBAAA,CAAwB,IAAI,CAAG,EAAA;AAElC,IAAA,uBAAQ,KAAA,CAAA,aAAA,CAAA,8BAAA,EAAA;AAAA,MAA+B,IAAA;AAAA,MAAY,IAAA;AAAA,KAAY,CAAA,CAAA;AAAA,GAChE;AAEA,EAAI,IAAA,oBAAA,CAAqB,IAAI,CAAG,EAAA;AAC/B,IAAA,2CAAQ,OAAQ,EAAA,IAAA,CAAA,CAAA;AAAA,GACjB;AAGA,EAAA,uBAAQ,KAAA,CAAA,aAAA,CAAA,gBAAA,EAAA;AAAA,IAAiB,IAAA;AAAA,IAAY,IAAA;AAAA,GAAY,CAAA,CAAA;AAClD;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutItemWrapper.js","sources":["../../../../src/layout/components/LayoutItemWrapper.tsx"],"sourcesContent":["import debug from 'debug';\nimport {Query} from 'mingo';\nimport type {ComponentClass} from 'react';\nimport {Dropdown} from 'semantic-ui-react';\nimport {useBuildData} from '../../hooks/useBuildData';\nimport type {Data} from '../../types';\nimport {sortWeightedItems} from '../../utils';\nimport type {LayoutItem} from '../types';\nimport {isCustomLayoutItem, isDropdownLayoutItem, isMenuLayoutItem} from '../types';\nimport {CustomLayoutItemComponent} from './CustomLayoutItemComponent';\nimport {DropdownItem} from './DropdownItem';\nimport {MenuItem} from './MenuItem';\nimport {PlainItem} from './PlainItem';\n\nconst d = debug('imperium.layout.components.LayoutItemWrapper');\n\ninterface ItemWrapperProps {\n\titem: LayoutItem;\n\tas?: ComponentClass;\n\tvertical?: boolean;\n\tdata?: Data;\n}\n\n/**\n * Renders any type of Item. Gathers state, route and other data and checks for visibility.\n * @param item\n * @param as\n * @param vertical\n * @param parentData\n * @constructor\n */\nexport function LayoutItemWrapper({item, as, vertical, data: parentData}: ItemWrapperProps) {\n\tconst data = useBuildData({\n\t\tstateSelectorHook: item.stateSelectorHook,\n\t\tpermissionSelectorHook: item.permissionSelectorHook,\n\t\trouteItem: item,\n\t\tdata: parentData,\n\t});\n\n\t// Check if visible\n\tif (item.visible) {\n\t\tif (typeof item.visible === 'function') {\n\t\t\tif (!item.visible(data)) return null;\n\t\t} else {\n\t\t\tconst q = new Query(item.visible);\n\t\t\tif (!q.test(data)) return null;\n\t\t}\n\t}\n\n\tif (isCustomLayoutItem(item)) {\n\t\treturn <CustomLayoutItemComponent item={item} data={data} />;\n\t}\n\tif (isDropdownLayoutItem(item)) {\n\t\tconst children = sortWeightedItems(item.dropdown).map((v, index) => (\n\t\t\t// eslint-disable-next-line react/no-array-index-key\n\t\t\t<LayoutItemWrapper key={index} item={v as LayoutItem} as={Dropdown.Item} data={data} />\n\t\t));\n\t\treturn <DropdownItem item={item} children={children} vertical={vertical} data={data} />;\n\t}\n\tif (isMenuLayoutItem(item)) {\n\t\tconst children = sortWeightedItems(item.menu).map((v, index) => (\n\t\t\t// eslint-disable-next-line react/no-array-index-key\n\t\t\t<LayoutItemWrapper key={index} item={v as LayoutItem} as={Dropdown.Item} vertical={vertical} data={data} />\n\t\t));\n\t\treturn <MenuItem item={item} children={children} />;\n\t}\n\treturn <PlainItem item={item} data={data} as={as} />;\n}\n"],"names":[],"mappings":";;;;;;;;;;;;AAcU,MAAM,8CAA8C,EAAA;AAiBvD,SAAA,iBAAA,CAA2B,EAAC,IAAA,EAAM,EAAI,EAAA,QAAA,EAAU,MAAM,UAA+B,EAAA,EAAA;AAC3F,EAAA,MAAM,OAAO,YAAa,CAAA;AAAA,IACzB,mBAAmB,IAAK,CAAA,iBAAA;AAAA,IACxB,wBAAwB,IAAK,CAAA,sBAAA;AAAA,IAC7B,SAAW,EAAA,IAAA;AAAA,IACX,IAAM,EAAA,UAAA;AAAA,GACN,CAAA,CAAA;AAGD,EAAA,IAAI,KAAK,OAAS,EAAA;AACjB,IAAI,IAAA,OAAO,IAAK,CAAA,OAAA,KAAY,UAAY,EAAA;AACvC,MAAI,IAAA,CAAC,IAAK,CAAA,OAAA,CAAQ,IAAI,CAAA;AAAG,QAAO,OAAA,IAAA,CAAA;AAAA,KAC1B,MAAA;
|
|
1
|
+
{"version":3,"file":"LayoutItemWrapper.js","sources":["../../../../src/layout/components/LayoutItemWrapper.tsx"],"sourcesContent":["import debug from 'debug';\nimport {Query} from 'mingo';\nimport type {ComponentClass} from 'react';\nimport {Dropdown} from 'semantic-ui-react';\nimport {useBuildData} from '../../hooks/useBuildData';\nimport type {Data} from '../../types';\nimport {sortWeightedItems} from '../../utils';\nimport type {LayoutItem} from '../types';\nimport {isCustomLayoutItem, isDropdownLayoutItem, isMenuLayoutItem} from '../types';\nimport {CustomLayoutItemComponent} from './CustomLayoutItemComponent';\nimport {DropdownItem} from './DropdownItem';\nimport {MenuItem} from './MenuItem';\nimport {PlainItem} from './PlainItem';\n\nconst d = debug('imperium.layout.components.LayoutItemWrapper');\n\ninterface ItemWrapperProps {\n\titem: LayoutItem;\n\tas?: ComponentClass;\n\tvertical?: boolean;\n\tdata?: Data;\n}\n\n/**\n * Renders any type of Item. Gathers state, route and other data and checks for visibility.\n * @param item\n * @param as\n * @param vertical\n * @param parentData\n * @constructor\n */\nexport function LayoutItemWrapper({item, as, vertical, data: parentData}: ItemWrapperProps) {\n\tconst data = useBuildData({\n\t\tstateSelectorHook: item.stateSelectorHook,\n\t\tpermissionSelectorHook: item.permissionSelectorHook,\n\t\trouteItem: item,\n\t\tdata: parentData,\n\t});\n\n\t// Check if visible\n\tif (item.visible) {\n\t\tif (typeof item.visible === 'function') {\n\t\t\tif (!item.visible(data)) return null;\n\t\t} else {\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n\t\t\tconst q = new Query(item.visible || {});\n\t\t\tif (!q.test(data)) return null;\n\t\t}\n\t}\n\n\tif (isCustomLayoutItem(item)) {\n\t\treturn <CustomLayoutItemComponent item={item} data={data} />;\n\t}\n\tif (isDropdownLayoutItem(item)) {\n\t\tconst children = sortWeightedItems(item.dropdown).map((v, index) => (\n\t\t\t// eslint-disable-next-line react/no-array-index-key\n\t\t\t<LayoutItemWrapper key={index} item={v as LayoutItem} as={Dropdown.Item} data={data} />\n\t\t));\n\t\treturn <DropdownItem item={item} children={children} vertical={vertical} data={data} />;\n\t}\n\tif (isMenuLayoutItem(item)) {\n\t\tconst children = sortWeightedItems(item.menu).map((v, index) => (\n\t\t\t// eslint-disable-next-line react/no-array-index-key\n\t\t\t<LayoutItemWrapper key={index} item={v as LayoutItem} as={Dropdown.Item} vertical={vertical} data={data} />\n\t\t));\n\t\treturn <MenuItem item={item} children={children} />;\n\t}\n\treturn <PlainItem item={item} data={data} as={as} />;\n}\n"],"names":[],"mappings":";;;;;;;;;;;;AAcU,MAAM,8CAA8C,EAAA;AAiBvD,SAAA,iBAAA,CAA2B,EAAC,IAAA,EAAM,EAAI,EAAA,QAAA,EAAU,MAAM,UAA+B,EAAA,EAAA;AAC3F,EAAA,MAAM,OAAO,YAAa,CAAA;AAAA,IACzB,mBAAmB,IAAK,CAAA,iBAAA;AAAA,IACxB,wBAAwB,IAAK,CAAA,sBAAA;AAAA,IAC7B,SAAW,EAAA,IAAA;AAAA,IACX,IAAM,EAAA,UAAA;AAAA,GACN,CAAA,CAAA;AAGD,EAAA,IAAI,KAAK,OAAS,EAAA;AACjB,IAAI,IAAA,OAAO,IAAK,CAAA,OAAA,KAAY,UAAY,EAAA;AACvC,MAAI,IAAA,CAAC,IAAK,CAAA,OAAA,CAAQ,IAAI,CAAA;AAAG,QAAO,OAAA,IAAA,CAAA;AAAA,KAC1B,MAAA;AAEN,MAAA,MAAM,IAAI,IAAI,KAAA,CAAM,IAAK,CAAA,OAAA,IAAW,EAAE,CAAA,CAAA;AACtC,MAAI,IAAA,CAAC,CAAE,CAAA,IAAA,CAAK,IAAI,CAAA;AAAG,QAAO,OAAA,IAAA,CAAA;AAAA,KAC3B;AAAA,GACD;AAEA,EAAI,IAAA,kBAAA,CAAmB,IA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IAAA;AAAA,IAAY,EAAA;AAAA,GAAQ,CAAA,CAAA;AACnD;;;;"}
|
|
@@ -38,7 +38,7 @@ function addItems(items, pulled) {
|
|
|
38
38
|
...memo,
|
|
39
39
|
{
|
|
40
40
|
...item,
|
|
41
|
-
dropdown: [...addItems(item.dropdown, pulled), ...newItems
|
|
41
|
+
dropdown: [...addItems(item.dropdown, pulled), ...newItems]
|
|
42
42
|
}
|
|
43
43
|
];
|
|
44
44
|
}
|
|
@@ -48,7 +48,7 @@ function addItems(items, pulled) {
|
|
|
48
48
|
...memo,
|
|
49
49
|
{
|
|
50
50
|
...item,
|
|
51
|
-
menu: [...addItems(item.menu, pulled), ...newItems
|
|
51
|
+
menu: [...addItems(item.menu, pulled), ...newItems]
|
|
52
52
|
}
|
|
53
53
|
];
|
|
54
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moveItems.js","sources":["../../../src/layout/moveItems.ts"],"sourcesContent":["import debug from 'debug';\nimport {groupBy} from 'lodash-es';\nimport type {LayoutItem} from './types';\nimport {isDropdownLayoutItem, isMenuLayoutItem} from './types';\n\nconst d = debug('imperium.layout.moveItems');\n\nfunction pullItems(items: LayoutItem[], pulled: LayoutItem[] = []): LayoutItem[] {\n\treturn items.reduce((memo, item) => {\n\t\tif (isDropdownLayoutItem(item)) {\n\t\t\treturn [\n\t\t\t\t...memo,\n\t\t\t\t{\n\t\t\t\t\t...item,\n\t\t\t\t\tdropdown: pullItems(item.dropdown, pulled),\n\t\t\t\t},\n\t\t\t];\n\t\t}\n\n\t\tif (isMenuLayoutItem(item)) {\n\t\t\treturn [\n\t\t\t\t...memo,\n\t\t\t\t{\n\t\t\t\t\t...item,\n\t\t\t\t\tmenu: pullItems(item.menu, pulled),\n\t\t\t\t},\n\t\t\t];\n\t\t}\n\n\t\tif (!item.moveToKey) {\n\t\t\treturn [...memo, item];\n\t\t}\n\n\t\tpulled.push(item);\n\t\treturn memo;\n\t}, [] as LayoutItem[]);\n}\n\nfunction addItems(items: LayoutItem[], pulled: Record<string, LayoutItem[]
|
|
1
|
+
{"version":3,"file":"moveItems.js","sources":["../../../src/layout/moveItems.ts"],"sourcesContent":["import debug from 'debug';\nimport {groupBy} from 'lodash-es';\nimport type {LayoutItem} from './types';\nimport {isDropdownLayoutItem, isMenuLayoutItem} from './types';\n\nconst d = debug('imperium.layout.moveItems');\n\nfunction pullItems(items: LayoutItem[], pulled: LayoutItem[] = []): LayoutItem[] {\n\treturn items.reduce((memo, item) => {\n\t\tif (isDropdownLayoutItem(item)) {\n\t\t\treturn [\n\t\t\t\t...memo,\n\t\t\t\t{\n\t\t\t\t\t...item,\n\t\t\t\t\tdropdown: pullItems(item.dropdown, pulled),\n\t\t\t\t},\n\t\t\t];\n\t\t}\n\n\t\tif (isMenuLayoutItem(item)) {\n\t\t\treturn [\n\t\t\t\t...memo,\n\t\t\t\t{\n\t\t\t\t\t...item,\n\t\t\t\t\tmenu: pullItems(item.menu, pulled),\n\t\t\t\t},\n\t\t\t];\n\t\t}\n\n\t\tif (!item.moveToKey) {\n\t\t\treturn [...memo, item];\n\t\t}\n\n\t\tpulled.push(item);\n\t\treturn memo;\n\t}, [] as LayoutItem[]);\n}\n\nfunction addItems(items: LayoutItem[], pulled: Record<string, LayoutItem[]>): LayoutItem[] {\n\treturn items.reduce((memo, item) => {\n\t\tif (isDropdownLayoutItem(item)) {\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n\t\t\tconst newItems = item.key && pulled[item.key] ? pulled[item.key] : [];\n\t\t\treturn [\n\t\t\t\t...memo,\n\t\t\t\t{\n\t\t\t\t\t...item,\n\t\t\t\t\tdropdown: [...addItems(item.dropdown, pulled), ...newItems],\n\t\t\t\t},\n\t\t\t];\n\t\t}\n\n\t\tif (isMenuLayoutItem(item) && item.key) {\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n\t\t\tconst newItems = item.key && pulled[item.key] ? pulled[item.key] : [];\n\t\t\treturn [\n\t\t\t\t...memo,\n\t\t\t\t{\n\t\t\t\t\t...item,\n\t\t\t\t\tmenu: [...addItems(item.menu, pulled), ...newItems],\n\t\t\t\t},\n\t\t\t];\n\t\t}\n\t\treturn [...memo, item];\n\t}, [] as LayoutItem[]);\n}\n\nexport function moveItems(items: LayoutItem[]) {\n\tconst pulled: LayoutItem[] = [];\n\tconst itemsMinusPulled = pullItems(items, pulled);\n\treturn addItems(itemsMinusPulled, groupBy(pulled, 'moveToKey'));\n}\n"],"names":[],"mappings":";;;;AAKU,MAAM,2BAA2B,EAAA;AAE3C,SAAmB,SAAA,CAAA,KAAA,EAAqB,MAAuB,GAAA,EAAkB,EAAA;AAChF,EAAA,OAAO,KAAM,CAAA,MAAA,CAAO,CAAC,IAAA,EAAM,IAAS,KAAA;AACnC,IAAI,IAAA,oBAAA,CAAqB,IAAI,CAAG,EAAA;AAC/B,MAAO,OAAA;AAAA,QACN,GAAG,IAAA;AAAA,QACH;AAAA,UACI,GAAA,IAAA;AAAA,UACH,QAAU,EAAA,SAAA,CAAU,IAAK,CAAA,QAAA,EAAU,MAAM,CAAA;AAAA,SAC1C;AAAA,OACD,CAAA;AAAA,KACD;AAEA,IAAI,IAAA,gBAAA,CAAiB,IAAI,CAAG,EAAA;AAC3B,MAAO,OAAA;AAAA,QACN,GAAG,IAAA;AAAA,QACH;AAAA,UACI,GAAA,IAAA;AAAA,UACH,IAAM,EAAA,SAAA,CAAU,IAAK,CAAA,IAAA,EAAM,MAAM,CAAA;AAAA,SAClC;AAAA,OACD,CAAA;AAAA,KACD;AAEA,IAAI,IAAA,CAAC,KAAK,SAAW,EAAA;AACpB,MAAO,OAAA,CAAC,GAAG,IAAA,EAAM,IAAI,CAAA,CAAA;AAAA,KACtB;AAEA,IAAA,MAAA,CAAO,KAAK,IAAI,CAAA,CAAA;AAChB,IAAO,OAAA,IAAA,CAAA;AAAA,GACR,EAAG,EAAkB,CAAA,CAAA;AACtB,CAAA;AAEA,SAAA,QAAA,CAAkB,O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AkB,OAAQ,CAAA,MAAA,EAAQ,WAAW,CAAC,CAAA,CAAA;AAC/D;;;;"}
|
|
@@ -20,13 +20,13 @@ function withLayout(client) {
|
|
|
20
20
|
const layoutModuleData = client.modules.reduce((memo, module) => {
|
|
21
21
|
if (isImperiumLayoutClientModule(module)) {
|
|
22
22
|
return {
|
|
23
|
-
dataHooks: [...memo.dataHooks, ...module.layout.dataHooks || []],
|
|
24
|
-
permissionSelectorHooks: [...memo.permissionSelectorHooks, ...module.layout.permissionSelectorHooks || []],
|
|
25
|
-
permissions: [...memo.permissions, ...module.layout.permissions || []],
|
|
26
|
-
primaryMenu: [...memo.primaryMenu, ...module.layout.primaryMenu || []],
|
|
27
|
-
statusbar: [...memo.statusbar, ...module.layout.statusbar || []],
|
|
28
|
-
secondaryMenu: [...memo.secondaryMenu, ...module.layout.secondaryMenu || []],
|
|
29
|
-
footer: [...memo.footer, ...module.layout.footer || []]
|
|
23
|
+
dataHooks: [...memo.dataHooks || [], ...module.layout.dataHooks || []],
|
|
24
|
+
permissionSelectorHooks: [...memo.permissionSelectorHooks || [], ...module.layout.permissionSelectorHooks || []],
|
|
25
|
+
permissions: [...memo.permissions || [], ...module.layout.permissions || []],
|
|
26
|
+
primaryMenu: [...memo.primaryMenu || [], ...module.layout.primaryMenu || []],
|
|
27
|
+
statusbar: [...memo.statusbar || [], ...module.layout.statusbar || []],
|
|
28
|
+
secondaryMenu: [...memo.secondaryMenu || [], ...module.layout.secondaryMenu || []],
|
|
29
|
+
footer: [...memo.footer || [], ...module.layout.footer || []]
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
return memo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withLayout.js","sources":["../../../src/layout/withLayout.tsx"],"sourcesContent":["import type {Hoc, ImperiumClient} from '@imperium/client';\nimport debug from 'debug';\nimport type {ComponentType} from 'react';\nimport {DataHooks} from '../datahooks/DataHooks';\nimport {PermissionHooks} from '../datahooks/PermissionHooks';\nimport {Permissions} from '../datahooks/Permissions';\nimport {isImperiumLayoutClientModule} from '../types';\nimport {Layout} from './components/Layout';\nimport type {LayoutData} from './types';\n\nconst d = debug('imperium.layout.withLayout');\n\nconst initialLayoutModuleData: Required<LayoutData> = {\n\tdataHooks: [],\n\tpermissionSelectorHooks: [],\n\tpermissions: [],\n\tprimaryMenu: [],\n\tstatusbar: [],\n\tsecondaryMenu: [],\n\tfooter: [],\n};\n\nexport function withLayout(client: ImperiumClient): Hoc {\n\tconst layoutModuleData = client.modules.reduce((memo, module) => {\n\t\tif (isImperiumLayoutClientModule(module)) {\n\t\t\treturn {\n\t\t\t\tdataHooks: [...memo.dataHooks, ...(module.layout.dataHooks || [])],\n\t\t\t\tpermissionSelectorHooks: [...memo.permissionSelectorHooks, ...(module.layout.permissionSelectorHooks || [])],\n\t\t\t\tpermissions: [...memo.permissions, ...(module.layout.permissions || [])],\n\t\t\t\tprimaryMenu: [...memo.primaryMenu, ...(module.layout.primaryMenu || [])],\n\t\t\t\tstatusbar: [...memo.statusbar, ...(module.layout.statusbar || [])],\n\t\t\t\tsecondaryMenu: [...memo.secondaryMenu, ...(module.layout.secondaryMenu || [])],\n\t\t\t\tfooter: [...memo.footer, ...(module.layout.footer || [])],\n\t\t\t} as Required<LayoutData>;\n\t\t}\n\t\treturn memo;\n\t}, initialLayoutModuleData);\n\td('Layout items processed', layoutModuleData);\n\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\treturn function layoutHoc(Wrapped: ComponentType<any>) {\n\t\tconst displayName = Wrapped.displayName || Wrapped.name || '';\n\n\t\tfunction WithLayout(props: Record<string, unknown>) {\n\t\t\treturn (\n\t\t\t\t<>\n\t\t\t\t\t<Layout {...layoutModuleData}>\n\t\t\t\t\t\t<Wrapped {...props} layout={layoutModuleData} />\n\t\t\t\t\t</Layout>\n\t\t\t\t\t<DataHooks dataHooks={layoutModuleData.dataHooks} />\n\t\t\t\t\t<Permissions permissions={layoutModuleData.permissions} />\n\t\t\t\t\t<PermissionHooks permissionHooks={layoutModuleData.permissionSelectorHooks} />\n\t\t\t\t</>\n\t\t\t);\n\t\t}\n\n\t\tWithLayout.displayName = `withLayout(${displayName})`;\n\n\t\treturn WithLayout;\n\t};\n}\n"],"names":[],"mappings":";;;;;;;;AAUA,MAAM,CAAA,GAAI,MAAM,4BAA4B,CAAA,CAAA;AAE5C,MAAM,uBAAgD,GAAA;AAAA,EACrD,WAAW,EAAC;AAAA,EACZ,yBAAyB,EAAC;AAAA,EAC1B,aAAa,EAAC;AAAA,EACd,aAAa,EAAC;AAAA,EACd,WAAW,EAAC;AAAA,EACZ,eAAe,EAAC;AAAA,EAChB,QAAQ,EAAC;AACV,CAAA,CAAA;AAEO,SAAA,UAAA,CAAoB,MAA6B,EAAA;AACvD,EAAA,MAAM,mBAAmB,MAAO,CAAA,OAAA,CAAQ,MAAO,CAAA,CAAC,MAAM,MAAW,KAAA;AAChE,IAAI,IAAA,4BAAA,CAA6B,MAAM,CAAG,EAAA;AACzC,MAAO,OAAA;AAAA,QACN,
|
|
1
|
+
{"version":3,"file":"withLayout.js","sources":["../../../src/layout/withLayout.tsx"],"sourcesContent":["import type {Hoc, ImperiumClient} from '@imperium/client';\nimport debug from 'debug';\nimport type {ComponentType} from 'react';\nimport {DataHooks} from '../datahooks/DataHooks';\nimport {PermissionHooks} from '../datahooks/PermissionHooks';\nimport {Permissions} from '../datahooks/Permissions';\nimport {isImperiumLayoutClientModule} from '../types';\nimport {Layout} from './components/Layout';\nimport type {LayoutData} from './types';\n\nconst d = debug('imperium.layout.withLayout');\n\nconst initialLayoutModuleData: Required<LayoutData> = {\n\tdataHooks: [],\n\tpermissionSelectorHooks: [],\n\tpermissions: [],\n\tprimaryMenu: [],\n\tstatusbar: [],\n\tsecondaryMenu: [],\n\tfooter: [],\n};\n\nexport function withLayout(client: ImperiumClient): Hoc {\n\tconst layoutModuleData = client.modules.reduce((memo, module) => {\n\t\tif (isImperiumLayoutClientModule(module)) {\n\t\t\treturn {\n\t\t\t\tdataHooks: [...(memo.dataHooks || []), ...(module.layout.dataHooks || [])],\n\t\t\t\tpermissionSelectorHooks: [...(memo.permissionSelectorHooks || []), ...(module.layout.permissionSelectorHooks || [])],\n\t\t\t\tpermissions: [...(memo.permissions || []), ...(module.layout.permissions || [])],\n\t\t\t\tprimaryMenu: [...(memo.primaryMenu || []), ...(module.layout.primaryMenu || [])],\n\t\t\t\tstatusbar: [...(memo.statusbar || []), ...(module.layout.statusbar || [])],\n\t\t\t\tsecondaryMenu: [...(memo.secondaryMenu || []), ...(module.layout.secondaryMenu || [])],\n\t\t\t\tfooter: [...(memo.footer || []), ...(module.layout.footer || [])],\n\t\t\t} as Required<LayoutData>;\n\t\t}\n\t\treturn memo;\n\t}, initialLayoutModuleData);\n\td('Layout items processed', layoutModuleData);\n\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\treturn function layoutHoc(Wrapped: ComponentType<any>) {\n\t\tconst displayName = Wrapped.displayName || Wrapped.name || '';\n\n\t\tfunction WithLayout(props: Record<string, unknown>) {\n\t\t\treturn (\n\t\t\t\t<>\n\t\t\t\t\t<Layout {...layoutModuleData}>\n\t\t\t\t\t\t<Wrapped {...props} layout={layoutModuleData} />\n\t\t\t\t\t</Layout>\n\t\t\t\t\t<DataHooks dataHooks={layoutModuleData.dataHooks} />\n\t\t\t\t\t<Permissions permissions={layoutModuleData.permissions} />\n\t\t\t\t\t<PermissionHooks permissionHooks={layoutModuleData.permissionSelectorHooks} />\n\t\t\t\t</>\n\t\t\t);\n\t\t}\n\n\t\tWithLayout.displayName = `withLayout(${displayName})`;\n\n\t\treturn WithLayout;\n\t};\n}\n"],"names":[],"mappings":";;;;;;;;AAUA,MAAM,CAAA,GAAI,MAAM,4BAA4B,CAAA,CAAA;AAE5C,MAAM,uBAAgD,GAAA;AAAA,EACrD,WAAW,EAAC;AAAA,EACZ,yBAAyB,EAAC;AAAA,EAC1B,aAAa,EAAC;AAAA,EACd,aAAa,EAAC;AAAA,EACd,WAA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L,uBAAuB,CAAA,CAAA;AAC1B,EAAA,CAAA,CAAE,0BAA0B,gBAAgB,CAAA,CAAA;AAG5C,EAAA,OAAO,mBAAmB,OAA6B,EAAA;AACtD,IAAA,MAAM,WAAc,GAAA,OAAA,CAAQ,WAAe,IAAA,OAAA,CAAQ,IAAQ,IAAA,EAAA,CAAA;AAE3D,IAAA,SAAA,UAAA,CAAoB,KAAgC,EAAA;AACnD,MAAA,iFAEG,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA;AAAA,QAAW,GAAA,gBAAA;AAAA,OAAA,kBACV,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA;AAAA,QAAY,GAAA,KAAA;AAAA,QAAO,MAAQ,EAAA,gBAAA;AAAA,OAAkB,CAC/C,mBACC,KAAA,CAAA,aAAA,CAAA,SAAA,EAAA;AAAA,QAAU,WAAW,gBAAiB,CAAA,SAAA;AAAA,OAAW,mBACjD,KAAA,CAAA,aAAA,CAAA,WAAA,EAAA;AAAA,QAAY,aAAa,gBAAiB,CAAA,WAAA;AAAA,OAAa,mBACvD,KAAA,CAAA,aAAA,CAAA,eAAA,EAAA;AAAA,QAAgB,iBAAiB,gBAAiB,CAAA,uBAAA;AAAA,OAAyB,CAC7E,CAAA,CAAA;AAAA,KAEF;AAEA,IAAA,UAAA,CAAW,cAAc,CAAc,WAAA,EAAA,WAAA,CAAA,CAAA,CAAA,CAAA;AAEvC,IAAO,OAAA,UAAA,CAAA;AAAA,GACR,CAAA;AACD;;;;"}
|
package/dist/esm/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sources":["../../src/types.ts"],"sourcesContent":["import type {ImperiumClientModule} from '@imperium/client';\nimport type {Location} from 'history';\nimport type {LayoutData} from './layout/types';\n\nexport type State = Record<string, any>;\n/**\n * A hook that selects from redux state.\n */\nexport type StateSelectorHook = () => State;\n\nexport type PermissionResults = Record<string, boolean>;\n\nexport type PermissionSelectorHook = (data: Data) => PermissionResults;\nexport type PermissionSelector = string[];\n\n/**\n * The visibility query can either be a mingo query or a function that returns a boolean. The data is an object with the router path merged with any state selector hook data.\n */\nexport type VisibilityQueryFn = (data: Data) => boolean;\n\nexport interface Data extends Record<string, unknown> {\n\tloc: Location;\n\troute: {\n\t\tpath: string[];\n\t\thash: string;\n\t\tsearch: Record<string, any>;\n\t};\n\tstate: State;\n\tactive: boolean;\n\tpermissions: PermissionResults;\n\tid?: string;\n}\n\nexport interface ImperiumLayoutClientModule extends ImperiumClientModule {\n\tlayout: LayoutData;\n}\n\nexport function isImperiumLayoutClientModule(module: ImperiumClientModule): module is ImperiumLayoutClientModule {\n\tconst layoutModule = module as
|
|
1
|
+
{"version":3,"file":"types.js","sources":["../../src/types.ts"],"sourcesContent":["import type {ImperiumClientModule} from '@imperium/client';\nimport type {Location} from 'history';\nimport type {LayoutData} from './layout/types';\n\nexport type State = Record<string, any>;\n/**\n * A hook that selects from redux state.\n */\nexport type StateSelectorHook = () => State;\n\nexport type PermissionResults = Record<string, boolean>;\n\nexport type PermissionSelectorHook = (data: Data) => PermissionResults;\nexport type PermissionSelector = string[];\n\n/**\n * The visibility query can either be a mingo query or a function that returns a boolean. The data is an object with the router path merged with any state selector hook data.\n */\nexport type VisibilityQueryFn = (data: Data) => boolean;\n\nexport interface Data extends Record<string, unknown> {\n\tloc: Location;\n\troute: {\n\t\tpath: string[];\n\t\thash: string;\n\t\tsearch: Record<string, any>;\n\t};\n\tstate: State;\n\tactive: boolean;\n\tpermissions: PermissionResults;\n\tid?: string;\n}\n\nexport interface ImperiumLayoutClientModule extends ImperiumClientModule {\n\tlayout: LayoutData;\n}\n\nexport function isImperiumLayoutClientModule(module: ImperiumClientModule): module is ImperiumLayoutClientModule {\n\tconst layoutModule = module as ImperiumLayoutClientModule;\n\treturn layoutModule.layout !== undefined;\n}\n"],"names":[],"mappings":"AAqCO,SAAA,4BAAA,CAAsC,MAAoE,EAAA;AAChH,EAAA,MAAM,YAAe,GAAA,MAAA,CAAA;AACrB,EAAA,OAAO,aAAa,MAAW,KAAA,KAAA,CAAA,CAAA;AAChC;;;;"}
|
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":"83f7-1"}]},{"name":"state.js","children":[{"name":"src/state.ts","uid":"83f7-3"}]},{"name":"layout/withLayout.js","children":[{"name":"src/layout/withLayout.tsx","uid":"83f7-5"}]},{"name":"content/dividerSidebarItem.js","children":[{"name":"src/content/dividerSidebarItem.ts","uid":"83f7-7"}]},{"name":"content/createPages.js","children":[{"name":"src/content/createPages.tsx","uid":"83f7-9"}]},{"name":"types.js","children":[{"name":"src/types.ts","uid":"83f7-11"}]},{"name":"content/types.js","children":[{"name":"src/content/types.ts","uid":"83f7-13"}]},{"name":"datahooks/Permissions.js","children":[{"name":"src/datahooks/Permissions.tsx","uid":"83f7-15"}]},{"name":"datahooks/PermissionHooks.js","children":[{"name":"src/datahooks/PermissionHooks.tsx","uid":"83f7-17"}]},{"name":"datahooks/DataHooks.js","children":[{"name":"src/datahooks/DataHooks.tsx","uid":"83f7-19"}]},{"name":"content/components/ContentComponent.js","children":[{"name":"src/content/components/ContentComponent.tsx","uid":"83f7-21"}]},{"name":"layout/components/Layout.js","children":[{"name":"src/layout/components/Layout.tsx","uid":"83f7-23"}]},{"name":"datahooks/ExecuteDataHook.js","children":[{"name":"src/datahooks/ExecuteDataHook.tsx","uid":"83f7-25"}]},{"name":"datahooks/ExecutePermissionHook.js","children":[{"name":"src/datahooks/ExecutePermissionHook.tsx","uid":"83f7-27"}]},{"name":"utils.js","children":[{"name":"src/utils.ts","uid":"83f7-29"}]},{"name":"layout/moveItems.js","children":[{"name":"src/layout/moveItems.ts","uid":"83f7-31"}]},{"name":"layout/components/styles.module.css.js","children":[{"name":"src/layout/components/styles.module.css","uid":"83f7-33"}]},{"name":"content/components/styles.module.css.js","children":[{"name":"src/content/components/styles.module.css","uid":"83f7-35"}]},{"name":"layout/components/LayoutItemBar.js","children":[{"name":"src/layout/components/LayoutItemBar.tsx","uid":"83f7-37"}]},{"name":"layout/components/SecondaryMenuToggleItem.js","children":[{"name":"src/layout/components/SecondaryMenuToggleItem.tsx","uid":"83f7-39"}]},{"name":"content/hooks/useBuildContentData.js","children":[{"name":"src/content/hooks/useBuildContentData.ts","uid":"83f7-41"}]},{"name":"content/components/Header.js","children":[{"name":"src/content/components/Header.tsx","uid":"83f7-43"}]},{"name":"content/components/SidebarItemWrapper.js","children":[{"name":"src/content/components/SidebarItemWrapper.tsx","uid":"83f7-45"}]},{"name":"layout/types.js","children":[{"name":"src/layout/types.ts","uid":"83f7-47"}]},{"name":"layout/utils.js","children":[{"name":"src/layout/utils.tsx","uid":"83f7-49"}]},{"name":"hooks/useBuildData.js","children":[{"name":"src/hooks/useBuildData.ts","uid":"83f7-51"}]},{"name":"layout/components/LayoutItemWrapper.js","children":[{"name":"src/layout/components/LayoutItemWrapper.tsx","uid":"83f7-53"}]},{"name":"content/components/ActionFormSidebarItemComponent.js","children":[{"name":"src/content/components/ActionFormSidebarItemComponent.tsx","uid":"83f7-55"}]},{"name":"content/components/ActionSidebarItemComponent.js","children":[{"name":"src/content/components/ActionSidebarItemComponent.tsx","uid":"83f7-57"}]},{"name":"content/components/CustomSidebarItemComponent.js","children":[{"name":"src/content/components/CustomSidebarItemComponent.tsx","uid":"83f7-59"}]},{"name":"content/components/PlainSidebarItem.js","children":[{"name":"src/content/components/PlainSidebarItem.tsx","uid":"83f7-61"}]},{"name":"commonItems.js","children":[{"name":"src/commonItems.ts","uid":"83f7-63"}]},{"name":"hooks/useIsActiveRoute.js","children":[{"name":"src/hooks/useIsActiveRoute.ts","uid":"83f7-65"}]},{"name":"hooks/useSelectState.js","children":[{"name":"src/hooks/useSelectState.ts","uid":"83f7-67"}]},{"name":"hooks/useSelectPermission.js","children":[{"name":"src/hooks/useSelectPermission.ts","uid":"83f7-69"}]},{"name":"content/utils.js","children":[{"name":"src/content/utils.tsx","uid":"83f7-71"}]},{"name":"content/components/ActionForm.js","children":[{"name":"src/content/components/ActionForm.tsx","uid":"83f7-73"}]},{"name":"layout/components/CustomLayoutItemComponent.js","children":[{"name":"src/layout/components/CustomLayoutItemComponent.tsx","uid":"83f7-75"}]},{"name":"layout/components/DropdownItem.js","children":[{"name":"src/layout/components/DropdownItem.tsx","uid":"83f7-77"}]},{"name":"layout/components/MenuItem.js","children":[{"name":"src/layout/components/MenuItem.tsx","uid":"83f7-79"}]},{"name":"layout/components/PlainItem.js","children":[{"name":"src/layout/components/PlainItem.tsx","uid":"83f7-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":"83f7-83"}]}],"isRoot":true},"nodeParts":{"83f7-1":{"renderedLength":144,"gzipLength":131,"brotliLength":106,"mainUid":"83f7-0"},"83f7-3":{"renderedLength":591,"gzipLength":268,"brotliLength":243,"mainUid":"83f7-2"},"83f7-5":{"renderedLength":1913,"gzipLength":563,"brotliLength":489,"mainUid":"83f7-4"},"83f7-7":{"renderedLength":59,"gzipLength":73,"brotliLength":63,"mainUid":"83f7-6"},"83f7-9":{"renderedLength":650,"gzipLength":301,"brotliLength":268,"mainUid":"83f7-8"},"83f7-11":{"renderedLength":121,"gzipLength":111,"brotliLength":90,"mainUid":"83f7-10"},"83f7-13":{"renderedLength":388,"gzipLength":167,"brotliLength":111,"mainUid":"83f7-12"},"83f7-15":{"renderedLength":864,"gzipLength":366,"brotliLength":318,"mainUid":"83f7-14"},"83f7-17":{"renderedLength":339,"gzipLength":202,"brotliLength":164,"mainUid":"83f7-16"},"83f7-19":{"renderedLength":1058,"gzipLength":390,"brotliLength":330,"mainUid":"83f7-18"},"83f7-21":{"renderedLength":3568,"gzipLength":927,"brotliLength":804,"mainUid":"83f7-20"},"83f7-23":{"renderedLength":2512,"gzipLength":751,"brotliLength":636,"mainUid":"83f7-22"},"83f7-25":{"renderedLength":123,"gzipLength":111,"brotliLength":93,"mainUid":"83f7-24"},"83f7-27":{"renderedLength":345,"gzipLength":207,"brotliLength":172,"mainUid":"83f7-26"},"83f7-29":{"renderedLength":145,"gzipLength":117,"brotliLength":116,"mainUid":"83f7-28"},"83f7-31":{"renderedLength":1413,"gzipLength":381,"brotliLength":359,"mainUid":"83f7-30"},"83f7-33":{"renderedLength":3176,"gzipLength":928,"brotliLength":762,"mainUid":"83f7-32"},"83f7-35":{"renderedLength":2119,"gzipLength":680,"brotliLength":565,"mainUid":"83f7-34"},"83f7-37":{"renderedLength":726,"gzipLength":294,"brotliLength":252,"mainUid":"83f7-36"},"83f7-39":{"renderedLength":356,"gzipLength":233,"brotliLength":176,"mainUid":"83f7-38"},"83f7-41":{"renderedLength":257,"gzipLength":158,"brotliLength":122,"mainUid":"83f7-40"},"83f7-43":{"renderedLength":1042,"gzipLength":377,"brotliLength":323,"mainUid":"83f7-42"},"83f7-45":{"renderedLength":1183,"gzipLength":394,"brotliLength":310,"mainUid":"83f7-44"},"83f7-47":{"renderedLength":191,"gzipLength":113,"brotliLength":89,"mainUid":"83f7-46"},"83f7-49":{"renderedLength":915,"gzipLength":393,"brotliLength":328,"mainUid":"83f7-48"},"83f7-51":{"renderedLength":799,"gzipLength":370,"brotliLength":330,"mainUid":"83f7-50"},"83f7-53":{"renderedLength":1497,"gzipLength":481,"brotliLength":413,"mainUid":"83f7-52"},"83f7-55":{"renderedLength":644,"gzipLength":341,"brotliLength":295,"mainUid":"83f7-54"},"83f7-57":{"renderedLength":343,"gzipLength":239,"brotliLength":181,"mainUid":"83f7-56"},"83f7-59":{"renderedLength":83,"gzipLength":97,"brotliLength":66,"mainUid":"83f7-58"},"83f7-61":{"renderedLength":325,"gzipLength":230,"brotliLength":183,"mainUid":"83f7-60"},"83f7-63":{"renderedLength":203,"gzipLength":136,"brotliLength":97,"mainUid":"83f7-62"},"83f7-65":{"renderedLength":514,"gzipLength":227,"brotliLength":187,"mainUid":"83f7-64"},"83f7-67":{"renderedLength":326,"gzipLength":176,"brotliLength":141,"mainUid":"83f7-66"},"83f7-69":{"renderedLength":294,"gzipLength":155,"brotliLength":114,"mainUid":"83f7-68"},"83f7-71":{"renderedLength":628,"gzipLength":259,"brotliLength":219,"mainUid":"83f7-70"},"83f7-73":{"renderedLength":1667,"gzipLength":624,"brotliLength":519,"mainUid":"83f7-72"},"83f7-75":{"renderedLength":82,"gzipLength":96,"brotliLength":66,"mainUid":"83f7-74"},"83f7-77":{"renderedLength":1179,"gzipLength":450,"brotliLength":362,"mainUid":"83f7-76"},"83f7-79":{"renderedLength":252,"gzipLength":157,"brotliLength":116,"mainUid":"83f7-78"},"83f7-81":{"renderedLength":379,"gzipLength":264,"brotliLength":224,"mainUid":"83f7-80"},"83f7-83":{"renderedLength":636,"gzipLength":318,"brotliLength":242,"mainUid":"83f7-82"}},"nodeMetas":{"83f7-0":{"id":"/src/index.ts","moduleParts":{"index.js":"83f7-1"},"imported":[{"uid":"83f7-4"},{"uid":"83f7-2"},{"uid":"83f7-8"},{"uid":"83f7-6"}],"importedBy":[],"isEntry":true},"83f7-2":{"id":"/src/state.ts","moduleParts":{"state.js":"83f7-3"},"imported":[{"uid":"83f7-86"},{"uid":"83f7-87"}],"importedBy":[{"uid":"83f7-0"},{"uid":"83f7-14"},{"uid":"83f7-20"},{"uid":"83f7-26"},{"uid":"83f7-50"}]},"83f7-4":{"id":"/src/layout/withLayout.tsx","moduleParts":{"layout/withLayout.js":"83f7-5"},"imported":[{"uid":"83f7-84"},{"uid":"83f7-85"},{"uid":"83f7-18"},{"uid":"83f7-16"},{"uid":"83f7-14"},{"uid":"83f7-10"},{"uid":"83f7-22"}],"importedBy":[{"uid":"83f7-0"}]},"83f7-6":{"id":"/src/content/dividerSidebarItem.ts","moduleParts":{"content/dividerSidebarItem.js":"83f7-7"},"imported":[],"importedBy":[{"uid":"83f7-0"}]},"83f7-8":{"id":"/src/content/createPages.tsx","moduleParts":{"content/createPages.js":"83f7-9"},"imported":[{"uid":"83f7-84"},{"uid":"83f7-85"},{"uid":"83f7-20"},{"uid":"83f7-12"}],"importedBy":[{"uid":"83f7-0"}]},"83f7-10":{"id":"/src/types.ts","moduleParts":{"types.js":"83f7-11"},"imported":[],"importedBy":[{"uid":"83f7-4"}]},"83f7-12":{"id":"/src/content/types.ts","moduleParts":{"content/types.js":"83f7-13"},"imported":[],"importedBy":[{"uid":"83f7-8"},{"uid":"83f7-42"},{"uid":"83f7-44"}]},"83f7-14":{"id":"/src/datahooks/Permissions.tsx","moduleParts":{"datahooks/Permissions.js":"83f7-15"},"imported":[{"uid":"83f7-84"},{"uid":"83f7-89"},{"uid":"83f7-85"},{"uid":"83f7-90"},{"uid":"83f7-2"}],"importedBy":[{"uid":"83f7-4"}]},"83f7-16":{"id":"/src/datahooks/PermissionHooks.tsx","moduleParts":{"datahooks/PermissionHooks.js":"83f7-17"},"imported":[{"uid":"83f7-84"},{"uid":"83f7-85"},{"uid":"83f7-26"}],"importedBy":[{"uid":"83f7-4"}]},"83f7-18":{"id":"/src/datahooks/DataHooks.tsx","moduleParts":{"datahooks/DataHooks.js":"83f7-19"},"imported":[{"uid":"83f7-84"},{"uid":"83f7-85"},{"uid":"83f7-88"},{"uid":"83f7-24"}],"importedBy":[{"uid":"83f7-4"},{"uid":"83f7-20"}]},"83f7-20":{"id":"/src/content/components/ContentComponent.tsx","moduleParts":{"content/components/ContentComponent.js":"83f7-21"},"imported":[{"uid":"83f7-84"},{"uid":"83f7-85"},{"uid":"83f7-93"},{"uid":"83f7-90"},{"uid":"83f7-92"},{"uid":"83f7-91"},{"uid":"83f7-18"},{"uid":"83f7-2"},{"uid":"83f7-28"},{"uid":"83f7-40"},{"uid":"83f7-42"},{"uid":"83f7-44"},{"uid":"83f7-34"}],"importedBy":[{"uid":"83f7-8"}]},"83f7-22":{"id":"/src/layout/components/Layout.tsx","moduleParts":{"layout/components/Layout.js":"83f7-23"},"imported":[{"uid":"83f7-84"},{"uid":"83f7-85"},{"uid":"83f7-91"},{"uid":"83f7-92"},{"uid":"83f7-30"},{"uid":"83f7-36"},{"uid":"83f7-38"},{"uid":"83f7-32"}],"importedBy":[{"uid":"83f7-4"}]},"83f7-24":{"id":"/src/datahooks/ExecuteDataHook.tsx","moduleParts":{"datahooks/ExecuteDataHook.js":"83f7-25"},"imported":[{"uid":"83f7-84"}],"importedBy":[{"uid":"83f7-18"}]},"83f7-26":{"id":"/src/datahooks/ExecutePermissionHook.tsx","moduleParts":{"datahooks/ExecutePermissionHook.js":"83f7-27"},"imported":[{"uid":"83f7-84"},{"uid":"83f7-90"},{"uid":"83f7-2"}],"importedBy":[{"uid":"83f7-16"}]},"83f7-28":{"id":"/src/utils.ts","moduleParts":{"utils.js":"83f7-29"},"imported":[{"uid":"83f7-93"}],"importedBy":[{"uid":"83f7-20"},{"uid":"83f7-36"},{"uid":"83f7-52"}]},"83f7-30":{"id":"/src/layout/moveItems.ts","moduleParts":{"layout/moveItems.js":"83f7-31"},"imported":[{"uid":"83f7-85"},{"uid":"83f7-93"},{"uid":"83f7-46"}],"importedBy":[{"uid":"83f7-22"}]},"83f7-32":{"id":"/src/layout/components/styles.module.css","moduleParts":{"layout/components/styles.module.css.js":"83f7-33"},"imported":[{"uid":"83f7-82"}],"importedBy":[{"uid":"83f7-22"},{"uid":"83f7-38"},{"uid":"83f7-76"}]},"83f7-34":{"id":"/src/content/components/styles.module.css","moduleParts":{"content/components/styles.module.css.js":"83f7-35"},"imported":[{"uid":"83f7-82"}],"importedBy":[{"uid":"83f7-20"},{"uid":"83f7-42"}]},"83f7-36":{"id":"/src/layout/components/LayoutItemBar.tsx","moduleParts":{"layout/components/LayoutItemBar.js":"83f7-37"},"imported":[{"uid":"83f7-84"},{"uid":"83f7-85"},{"uid":"83f7-92"},{"uid":"83f7-28"},{"uid":"83f7-48"},{"uid":"83f7-52"}],"importedBy":[{"uid":"83f7-22"}]},"83f7-38":{"id":"/src/layout/components/SecondaryMenuToggleItem.tsx","moduleParts":{"layout/components/SecondaryMenuToggleItem.js":"83f7-39"},"imported":[{"uid":"83f7-84"},{"uid":"83f7-92"},{"uid":"83f7-32"}],"importedBy":[{"uid":"83f7-22"}]},"83f7-40":{"id":"/src/content/hooks/useBuildContentData.ts","moduleParts":{"content/hooks/useBuildContentData.js":"83f7-41"},"imported":[{"uid":"83f7-50"}],"importedBy":[{"uid":"83f7-20"},{"uid":"83f7-44"}]},"83f7-42":{"id":"/src/content/components/Header.tsx","moduleParts":{"content/components/Header.js":"83f7-43"},"imported":[{"uid":"83f7-84"},{"uid":"83f7-85"},{"uid":"83f7-92"},{"uid":"83f7-12"},{"uid":"83f7-34"}],"importedBy":[{"uid":"83f7-20"}]},"83f7-44":{"id":"/src/content/components/SidebarItemWrapper.tsx","moduleParts":{"content/components/SidebarItemWrapper.js":"83f7-45"},"imported":[{"uid":"83f7-84"},{"uid":"83f7-85"},{"uid":"83f7-94"},{"uid":"83f7-92"},{"uid":"83f7-40"},{"uid":"83f7-12"},{"uid":"83f7-54"},{"uid":"83f7-56"},{"uid":"83f7-58"},{"uid":"83f7-60"}],"importedBy":[{"uid":"83f7-20"}]},"83f7-46":{"id":"/src/layout/types.ts","moduleParts":{"layout/types.js":"83f7-47"},"imported":[],"importedBy":[{"uid":"83f7-30"},{"uid":"83f7-52"}]},"83f7-48":{"id":"/src/layout/utils.tsx","moduleParts":{"layout/utils.js":"83f7-49"},"imported":[{"uid":"83f7-84"},{"uid":"83f7-88"},{"uid":"83f7-92"},{"uid":"83f7-62"}],"importedBy":[{"uid":"83f7-36"},{"uid":"83f7-76"},{"uid":"83f7-80"}]},"83f7-50":{"id":"/src/hooks/useBuildData.ts","moduleParts":{"hooks/useBuildData.js":"83f7-51"},"imported":[{"uid":"83f7-89"},{"uid":"83f7-85"},{"uid":"83f7-93"},{"uid":"83f7-88"},{"uid":"83f7-2"},{"uid":"83f7-64"},{"uid":"83f7-68"},{"uid":"83f7-66"}],"importedBy":[{"uid":"83f7-40"},{"uid":"83f7-52"}]},"83f7-52":{"id":"/src/layout/components/LayoutItemWrapper.tsx","moduleParts":{"layout/components/LayoutItemWrapper.js":"83f7-53"},"imported":[{"uid":"83f7-84"},{"uid":"83f7-85"},{"uid":"83f7-94"},{"uid":"83f7-92"},{"uid":"83f7-50"},{"uid":"83f7-28"},{"uid":"83f7-46"},{"uid":"83f7-74"},{"uid":"83f7-76"},{"uid":"83f7-78"},{"uid":"83f7-80"}],"importedBy":[{"uid":"83f7-36"}]},"83f7-54":{"id":"/src/content/components/ActionFormSidebarItemComponent.tsx","moduleParts":{"content/components/ActionFormSidebarItemComponent.js":"83f7-55"},"imported":[{"uid":"83f7-84"},{"uid":"83f7-85"},{"uid":"83f7-92"},{"uid":"83f7-70"},{"uid":"83f7-72"}],"importedBy":[{"uid":"83f7-44"}]},"83f7-56":{"id":"/src/content/components/ActionSidebarItemComponent.tsx","moduleParts":{"content/components/ActionSidebarItemComponent.js":"83f7-57"},"imported":[{"uid":"83f7-84"},{"uid":"83f7-92"},{"uid":"83f7-70"}],"importedBy":[{"uid":"83f7-44"}]},"83f7-58":{"id":"/src/content/components/CustomSidebarItemComponent.tsx","moduleParts":{"content/components/CustomSidebarItemComponent.js":"83f7-59"},"imported":[{"uid":"83f7-84"}],"importedBy":[{"uid":"83f7-44"}]},"83f7-60":{"id":"/src/content/components/PlainSidebarItem.tsx","moduleParts":{"content/components/PlainSidebarItem.js":"83f7-61"},"imported":[{"uid":"83f7-84"},{"uid":"83f7-88"},{"uid":"83f7-92"},{"uid":"83f7-70"}],"importedBy":[{"uid":"83f7-44"}]},"83f7-62":{"id":"/src/commonItems.ts","moduleParts":{"commonItems.js":"83f7-63"},"imported":[],"importedBy":[{"uid":"83f7-48"},{"uid":"83f7-64"}]},"83f7-64":{"id":"/src/hooks/useIsActiveRoute.ts","moduleParts":{"hooks/useIsActiveRoute.js":"83f7-65"},"imported":[{"uid":"83f7-95"},{"uid":"83f7-62"}],"importedBy":[{"uid":"83f7-50"}]},"83f7-66":{"id":"/src/hooks/useSelectState.ts","moduleParts":{"hooks/useSelectState.js":"83f7-67"},"imported":[{"uid":"83f7-93"}],"importedBy":[{"uid":"83f7-50"}]},"83f7-68":{"id":"/src/hooks/useSelectPermission.ts","moduleParts":{"hooks/useSelectPermission.js":"83f7-69"},"imported":[{"uid":"83f7-93"}],"importedBy":[{"uid":"83f7-50"}]},"83f7-70":{"id":"/src/content/utils.tsx","moduleParts":{"content/utils.js":"83f7-71"},"imported":[{"uid":"83f7-84"},{"uid":"83f7-92"}],"importedBy":[{"uid":"83f7-54"},{"uid":"83f7-56"},{"uid":"83f7-60"}]},"83f7-72":{"id":"/src/content/components/ActionForm.tsx","moduleParts":{"content/components/ActionForm.js":"83f7-73"},"imported":[{"uid":"83f7-84"},{"uid":"83f7-96"},{"uid":"83f7-85"},{"uid":"83f7-92"}],"importedBy":[{"uid":"83f7-54"}]},"83f7-74":{"id":"/src/layout/components/CustomLayoutItemComponent.tsx","moduleParts":{"layout/components/CustomLayoutItemComponent.js":"83f7-75"},"imported":[{"uid":"83f7-84"}],"importedBy":[{"uid":"83f7-52"}]},"83f7-76":{"id":"/src/layout/components/DropdownItem.tsx","moduleParts":{"layout/components/DropdownItem.js":"83f7-77"},"imported":[{"uid":"83f7-84"},{"uid":"83f7-85"},{"uid":"83f7-92"},{"uid":"83f7-48"},{"uid":"83f7-32"}],"importedBy":[{"uid":"83f7-52"}]},"83f7-78":{"id":"/src/layout/components/MenuItem.tsx","moduleParts":{"layout/components/MenuItem.js":"83f7-79"},"imported":[{"uid":"83f7-84"},{"uid":"83f7-92"}],"importedBy":[{"uid":"83f7-52"}]},"83f7-80":{"id":"/src/layout/components/PlainItem.tsx","moduleParts":{"layout/components/PlainItem.js":"83f7-81"},"imported":[{"uid":"83f7-84"},{"uid":"83f7-91"},{"uid":"83f7-92"},{"uid":"83f7-48"}],"importedBy":[{"uid":"83f7-52"}]},"83f7-82":{"id":"/home/artemis/Github/imperium/node_modules/style-inject/dist/style-inject.es.js","moduleParts":{"external/style-inject/dist/style-inject.es.js":"83f7-83"},"imported":[],"importedBy":[{"uid":"83f7-32"},{"uid":"83f7-34"}]},"83f7-84":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"83f7-4"},{"uid":"83f7-8"},{"uid":"83f7-18"},{"uid":"83f7-16"},{"uid":"83f7-14"},{"uid":"83f7-22"},{"uid":"83f7-20"},{"uid":"83f7-24"},{"uid":"83f7-26"},{"uid":"83f7-36"},{"uid":"83f7-38"},{"uid":"83f7-42"},{"uid":"83f7-44"},{"uid":"83f7-48"},{"uid":"83f7-52"},{"uid":"83f7-54"},{"uid":"83f7-56"},{"uid":"83f7-58"},{"uid":"83f7-60"},{"uid":"83f7-74"},{"uid":"83f7-76"},{"uid":"83f7-78"},{"uid":"83f7-80"},{"uid":"83f7-70"},{"uid":"83f7-72"}],"isExternal":true},"83f7-85":{"id":"debug","moduleParts":{},"imported":[],"importedBy":[{"uid":"83f7-4"},{"uid":"83f7-8"},{"uid":"83f7-18"},{"uid":"83f7-16"},{"uid":"83f7-14"},{"uid":"83f7-22"},{"uid":"83f7-20"},{"uid":"83f7-30"},{"uid":"83f7-36"},{"uid":"83f7-42"},{"uid":"83f7-44"},{"uid":"83f7-52"},{"uid":"83f7-50"},{"uid":"83f7-54"},{"uid":"83f7-76"},{"uid":"83f7-72"}],"isExternal":true},"83f7-86":{"id":"@imperium/state","moduleParts":{},"imported":[],"importedBy":[{"uid":"83f7-2"}],"isExternal":true},"83f7-87":{"id":"@reduxjs/toolkit","moduleParts":{},"imported":[],"importedBy":[{"uid":"83f7-2"}],"isExternal":true},"83f7-88":{"id":"react-router-dom","moduleParts":{},"imported":[],"importedBy":[{"uid":"83f7-18"},{"uid":"83f7-48"},{"uid":"83f7-50"},{"uid":"83f7-60"}],"isExternal":true},"83f7-89":{"id":"@imperium/auth-client","moduleParts":{},"imported":[],"importedBy":[{"uid":"83f7-14"},{"uid":"83f7-50"}],"isExternal":true},"83f7-90":{"id":"react-redux","moduleParts":{},"imported":[],"importedBy":[{"uid":"83f7-14"},{"uid":"83f7-20"},{"uid":"83f7-26"}],"isExternal":true},"83f7-91":{"id":"react-responsive","moduleParts":{},"imported":[],"importedBy":[{"uid":"83f7-22"},{"uid":"83f7-20"},{"uid":"83f7-80"}],"isExternal":true},"83f7-92":{"id":"semantic-ui-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"83f7-22"},{"uid":"83f7-20"},{"uid":"83f7-36"},{"uid":"83f7-38"},{"uid":"83f7-42"},{"uid":"83f7-44"},{"uid":"83f7-48"},{"uid":"83f7-52"},{"uid":"83f7-54"},{"uid":"83f7-56"},{"uid":"83f7-60"},{"uid":"83f7-76"},{"uid":"83f7-78"},{"uid":"83f7-80"},{"uid":"83f7-70"},{"uid":"83f7-72"}],"isExternal":true},"83f7-93":{"id":"lodash-es","moduleParts":{},"imported":[],"importedBy":[{"uid":"83f7-20"},{"uid":"83f7-30"},{"uid":"83f7-28"},{"uid":"83f7-50"},{"uid":"83f7-68"},{"uid":"83f7-66"}],"isExternal":true},"83f7-94":{"id":"mingo","moduleParts":{},"imported":[],"importedBy":[{"uid":"83f7-44"},{"uid":"83f7-52"}],"isExternal":true},"83f7-95":{"id":"react-router","moduleParts":{},"imported":[],"importedBy":[{"uid":"83f7-64"}],"isExternal":true},"83f7-96":{"id":"@thx/controls","moduleParts":{},"imported":[],"importedBy":[{"uid":"83f7-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":"b023-1"}]},{"name":"state.js","children":[{"name":"src/state.ts","uid":"b023-3"}]},{"name":"content/dividerSidebarItem.js","children":[{"name":"src/content/dividerSidebarItem.ts","uid":"b023-5"}]},{"name":"layout/withLayout.js","children":[{"name":"src/layout/withLayout.tsx","uid":"b023-7"}]},{"name":"content/createPages.js","children":[{"name":"src/content/createPages.tsx","uid":"b023-9"}]},{"name":"types.js","children":[{"name":"src/types.ts","uid":"b023-11"}]},{"name":"content/types.js","children":[{"name":"src/content/types.ts","uid":"b023-13"}]},{"name":"datahooks/PermissionHooks.js","children":[{"name":"src/datahooks/PermissionHooks.tsx","uid":"b023-15"}]},{"name":"datahooks/DataHooks.js","children":[{"name":"src/datahooks/DataHooks.tsx","uid":"b023-17"}]},{"name":"datahooks/Permissions.js","children":[{"name":"src/datahooks/Permissions.tsx","uid":"b023-19"}]},{"name":"layout/components/Layout.js","children":[{"name":"src/layout/components/Layout.tsx","uid":"b023-21"}]},{"name":"content/components/ContentComponent.js","children":[{"name":"src/content/components/ContentComponent.tsx","uid":"b023-23"}]},{"name":"datahooks/ExecutePermissionHook.js","children":[{"name":"src/datahooks/ExecutePermissionHook.tsx","uid":"b023-25"}]},{"name":"datahooks/ExecuteDataHook.js","children":[{"name":"src/datahooks/ExecuteDataHook.tsx","uid":"b023-27"}]},{"name":"utils.js","children":[{"name":"src/utils.ts","uid":"b023-29"}]},{"name":"layout/moveItems.js","children":[{"name":"src/layout/moveItems.ts","uid":"b023-31"}]},{"name":"layout/components/styles.module.css.js","children":[{"name":"src/layout/components/styles.module.css","uid":"b023-33"}]},{"name":"content/components/styles.module.css.js","children":[{"name":"src/content/components/styles.module.css","uid":"b023-35"}]},{"name":"content/hooks/useBuildContentData.js","children":[{"name":"src/content/hooks/useBuildContentData.ts","uid":"b023-37"}]},{"name":"content/components/Header.js","children":[{"name":"src/content/components/Header.tsx","uid":"b023-39"}]},{"name":"content/components/SidebarItemWrapper.js","children":[{"name":"src/content/components/SidebarItemWrapper.tsx","uid":"b023-41"}]},{"name":"layout/components/LayoutItemBar.js","children":[{"name":"src/layout/components/LayoutItemBar.tsx","uid":"b023-43"}]},{"name":"layout/components/SecondaryMenuToggleItem.js","children":[{"name":"src/layout/components/SecondaryMenuToggleItem.tsx","uid":"b023-45"}]},{"name":"layout/types.js","children":[{"name":"src/layout/types.ts","uid":"b023-47"}]},{"name":"hooks/useBuildData.js","children":[{"name":"src/hooks/useBuildData.ts","uid":"b023-49"}]},{"name":"layout/utils.js","children":[{"name":"src/layout/utils.tsx","uid":"b023-51"}]},{"name":"content/components/ActionFormSidebarItemComponent.js","children":[{"name":"src/content/components/ActionFormSidebarItemComponent.tsx","uid":"b023-53"}]},{"name":"content/components/ActionSidebarItemComponent.js","children":[{"name":"src/content/components/ActionSidebarItemComponent.tsx","uid":"b023-55"}]},{"name":"content/components/PlainSidebarItem.js","children":[{"name":"src/content/components/PlainSidebarItem.tsx","uid":"b023-57"}]},{"name":"content/components/CustomSidebarItemComponent.js","children":[{"name":"src/content/components/CustomSidebarItemComponent.tsx","uid":"b023-59"}]},{"name":"layout/components/LayoutItemWrapper.js","children":[{"name":"src/layout/components/LayoutItemWrapper.tsx","uid":"b023-61"}]},{"name":"hooks/useSelectState.js","children":[{"name":"src/hooks/useSelectState.ts","uid":"b023-63"}]},{"name":"hooks/useSelectPermission.js","children":[{"name":"src/hooks/useSelectPermission.ts","uid":"b023-65"}]},{"name":"hooks/useIsActiveRoute.js","children":[{"name":"src/hooks/useIsActiveRoute.ts","uid":"b023-67"}]},{"name":"commonItems.js","children":[{"name":"src/commonItems.ts","uid":"b023-69"}]},{"name":"content/utils.js","children":[{"name":"src/content/utils.tsx","uid":"b023-71"}]},{"name":"content/components/ActionForm.js","children":[{"name":"src/content/components/ActionForm.tsx","uid":"b023-73"}]},{"name":"layout/components/CustomLayoutItemComponent.js","children":[{"name":"src/layout/components/CustomLayoutItemComponent.tsx","uid":"b023-75"}]},{"name":"layout/components/DropdownItem.js","children":[{"name":"src/layout/components/DropdownItem.tsx","uid":"b023-77"}]},{"name":"layout/components/MenuItem.js","children":[{"name":"src/layout/components/MenuItem.tsx","uid":"b023-79"}]},{"name":"layout/components/PlainItem.js","children":[{"name":"src/layout/components/PlainItem.tsx","uid":"b023-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":"b023-83"}]}],"isRoot":true},"nodeParts":{"b023-1":{"renderedLength":144,"gzipLength":131,"brotliLength":106,"mainUid":"b023-0"},"b023-3":{"renderedLength":591,"gzipLength":268,"brotliLength":243,"mainUid":"b023-2"},"b023-5":{"renderedLength":59,"gzipLength":73,"brotliLength":63,"mainUid":"b023-4"},"b023-7":{"renderedLength":1955,"gzipLength":562,"brotliLength":488,"mainUid":"b023-6"},"b023-9":{"renderedLength":650,"gzipLength":301,"brotliLength":268,"mainUid":"b023-8"},"b023-11":{"renderedLength":121,"gzipLength":111,"brotliLength":90,"mainUid":"b023-10"},"b023-13":{"renderedLength":388,"gzipLength":167,"brotliLength":111,"mainUid":"b023-12"},"b023-15":{"renderedLength":339,"gzipLength":202,"brotliLength":164,"mainUid":"b023-14"},"b023-17":{"renderedLength":1058,"gzipLength":390,"brotliLength":330,"mainUid":"b023-16"},"b023-19":{"renderedLength":864,"gzipLength":366,"brotliLength":318,"mainUid":"b023-18"},"b023-21":{"renderedLength":2512,"gzipLength":751,"brotliLength":636,"mainUid":"b023-20"},"b023-23":{"renderedLength":3584,"gzipLength":934,"brotliLength":811,"mainUid":"b023-22"},"b023-25":{"renderedLength":345,"gzipLength":207,"brotliLength":172,"mainUid":"b023-24"},"b023-27":{"renderedLength":123,"gzipLength":111,"brotliLength":93,"mainUid":"b023-26"},"b023-29":{"renderedLength":145,"gzipLength":117,"brotliLength":116,"mainUid":"b023-28"},"b023-31":{"renderedLength":1401,"gzipLength":376,"brotliLength":347,"mainUid":"b023-30"},"b023-33":{"renderedLength":3176,"gzipLength":928,"brotliLength":762,"mainUid":"b023-32"},"b023-35":{"renderedLength":2119,"gzipLength":680,"brotliLength":565,"mainUid":"b023-34"},"b023-37":{"renderedLength":257,"gzipLength":158,"brotliLength":122,"mainUid":"b023-36"},"b023-39":{"renderedLength":1042,"gzipLength":377,"brotliLength":323,"mainUid":"b023-38"},"b023-41":{"renderedLength":1189,"gzipLength":399,"brotliLength":314,"mainUid":"b023-40"},"b023-43":{"renderedLength":726,"gzipLength":294,"brotliLength":252,"mainUid":"b023-42"},"b023-45":{"renderedLength":356,"gzipLength":233,"brotliLength":176,"mainUid":"b023-44"},"b023-47":{"renderedLength":191,"gzipLength":113,"brotliLength":89,"mainUid":"b023-46"},"b023-49":{"renderedLength":799,"gzipLength":370,"brotliLength":330,"mainUid":"b023-48"},"b023-51":{"renderedLength":915,"gzipLength":393,"brotliLength":328,"mainUid":"b023-50"},"b023-53":{"renderedLength":644,"gzipLength":341,"brotliLength":295,"mainUid":"b023-52"},"b023-55":{"renderedLength":343,"gzipLength":239,"brotliLength":181,"mainUid":"b023-54"},"b023-57":{"renderedLength":325,"gzipLength":230,"brotliLength":183,"mainUid":"b023-56"},"b023-59":{"renderedLength":83,"gzipLength":97,"brotliLength":66,"mainUid":"b023-58"},"b023-61":{"renderedLength":1503,"gzipLength":487,"brotliLength":399,"mainUid":"b023-60"},"b023-63":{"renderedLength":326,"gzipLength":176,"brotliLength":141,"mainUid":"b023-62"},"b023-65":{"renderedLength":294,"gzipLength":155,"brotliLength":114,"mainUid":"b023-64"},"b023-67":{"renderedLength":514,"gzipLength":227,"brotliLength":187,"mainUid":"b023-66"},"b023-69":{"renderedLength":203,"gzipLength":136,"brotliLength":97,"mainUid":"b023-68"},"b023-71":{"renderedLength":628,"gzipLength":259,"brotliLength":219,"mainUid":"b023-70"},"b023-73":{"renderedLength":1667,"gzipLength":624,"brotliLength":519,"mainUid":"b023-72"},"b023-75":{"renderedLength":82,"gzipLength":96,"brotliLength":66,"mainUid":"b023-74"},"b023-77":{"renderedLength":1179,"gzipLength":450,"brotliLength":362,"mainUid":"b023-76"},"b023-79":{"renderedLength":252,"gzipLength":157,"brotliLength":116,"mainUid":"b023-78"},"b023-81":{"renderedLength":379,"gzipLength":264,"brotliLength":224,"mainUid":"b023-80"},"b023-83":{"renderedLength":636,"gzipLength":318,"brotliLength":242,"mainUid":"b023-82"}},"nodeMetas":{"b023-0":{"id":"/src/index.ts","moduleParts":{"index.js":"b023-1"},"imported":[{"uid":"b023-6"},{"uid":"b023-2"},{"uid":"b023-8"},{"uid":"b023-4"}],"importedBy":[],"isEntry":true},"b023-2":{"id":"/src/state.ts","moduleParts":{"state.js":"b023-3"},"imported":[{"uid":"b023-86"},{"uid":"b023-87"}],"importedBy":[{"uid":"b023-0"},{"uid":"b023-18"},{"uid":"b023-22"},{"uid":"b023-24"},{"uid":"b023-48"}]},"b023-4":{"id":"/src/content/dividerSidebarItem.ts","moduleParts":{"content/dividerSidebarItem.js":"b023-5"},"imported":[],"importedBy":[{"uid":"b023-0"}]},"b023-6":{"id":"/src/layout/withLayout.tsx","moduleParts":{"layout/withLayout.js":"b023-7"},"imported":[{"uid":"b023-84"},{"uid":"b023-85"},{"uid":"b023-16"},{"uid":"b023-14"},{"uid":"b023-18"},{"uid":"b023-10"},{"uid":"b023-20"}],"importedBy":[{"uid":"b023-0"}]},"b023-8":{"id":"/src/content/createPages.tsx","moduleParts":{"content/createPages.js":"b023-9"},"imported":[{"uid":"b023-84"},{"uid":"b023-85"},{"uid":"b023-22"},{"uid":"b023-12"}],"importedBy":[{"uid":"b023-0"}]},"b023-10":{"id":"/src/types.ts","moduleParts":{"types.js":"b023-11"},"imported":[],"importedBy":[{"uid":"b023-6"}]},"b023-12":{"id":"/src/content/types.ts","moduleParts":{"content/types.js":"b023-13"},"imported":[],"importedBy":[{"uid":"b023-8"},{"uid":"b023-38"},{"uid":"b023-40"}]},"b023-14":{"id":"/src/datahooks/PermissionHooks.tsx","moduleParts":{"datahooks/PermissionHooks.js":"b023-15"},"imported":[{"uid":"b023-84"},{"uid":"b023-85"},{"uid":"b023-24"}],"importedBy":[{"uid":"b023-6"}]},"b023-16":{"id":"/src/datahooks/DataHooks.tsx","moduleParts":{"datahooks/DataHooks.js":"b023-17"},"imported":[{"uid":"b023-84"},{"uid":"b023-85"},{"uid":"b023-88"},{"uid":"b023-26"}],"importedBy":[{"uid":"b023-6"},{"uid":"b023-22"}]},"b023-18":{"id":"/src/datahooks/Permissions.tsx","moduleParts":{"datahooks/Permissions.js":"b023-19"},"imported":[{"uid":"b023-84"},{"uid":"b023-89"},{"uid":"b023-85"},{"uid":"b023-90"},{"uid":"b023-2"}],"importedBy":[{"uid":"b023-6"}]},"b023-20":{"id":"/src/layout/components/Layout.tsx","moduleParts":{"layout/components/Layout.js":"b023-21"},"imported":[{"uid":"b023-84"},{"uid":"b023-85"},{"uid":"b023-91"},{"uid":"b023-92"},{"uid":"b023-30"},{"uid":"b023-42"},{"uid":"b023-44"},{"uid":"b023-32"}],"importedBy":[{"uid":"b023-6"}]},"b023-22":{"id":"/src/content/components/ContentComponent.tsx","moduleParts":{"content/components/ContentComponent.js":"b023-23"},"imported":[{"uid":"b023-84"},{"uid":"b023-85"},{"uid":"b023-93"},{"uid":"b023-90"},{"uid":"b023-92"},{"uid":"b023-91"},{"uid":"b023-16"},{"uid":"b023-2"},{"uid":"b023-28"},{"uid":"b023-36"},{"uid":"b023-38"},{"uid":"b023-40"},{"uid":"b023-34"}],"importedBy":[{"uid":"b023-8"}]},"b023-24":{"id":"/src/datahooks/ExecutePermissionHook.tsx","moduleParts":{"datahooks/ExecutePermissionHook.js":"b023-25"},"imported":[{"uid":"b023-84"},{"uid":"b023-90"},{"uid":"b023-2"}],"importedBy":[{"uid":"b023-14"}]},"b023-26":{"id":"/src/datahooks/ExecuteDataHook.tsx","moduleParts":{"datahooks/ExecuteDataHook.js":"b023-27"},"imported":[{"uid":"b023-84"}],"importedBy":[{"uid":"b023-16"}]},"b023-28":{"id":"/src/utils.ts","moduleParts":{"utils.js":"b023-29"},"imported":[{"uid":"b023-93"}],"importedBy":[{"uid":"b023-22"},{"uid":"b023-42"},{"uid":"b023-60"}]},"b023-30":{"id":"/src/layout/moveItems.ts","moduleParts":{"layout/moveItems.js":"b023-31"},"imported":[{"uid":"b023-85"},{"uid":"b023-93"},{"uid":"b023-46"}],"importedBy":[{"uid":"b023-20"}]},"b023-32":{"id":"/src/layout/components/styles.module.css","moduleParts":{"layout/components/styles.module.css.js":"b023-33"},"imported":[{"uid":"b023-82"}],"importedBy":[{"uid":"b023-20"},{"uid":"b023-44"},{"uid":"b023-76"}]},"b023-34":{"id":"/src/content/components/styles.module.css","moduleParts":{"content/components/styles.module.css.js":"b023-35"},"imported":[{"uid":"b023-82"}],"importedBy":[{"uid":"b023-22"},{"uid":"b023-38"}]},"b023-36":{"id":"/src/content/hooks/useBuildContentData.ts","moduleParts":{"content/hooks/useBuildContentData.js":"b023-37"},"imported":[{"uid":"b023-48"}],"importedBy":[{"uid":"b023-22"},{"uid":"b023-40"}]},"b023-38":{"id":"/src/content/components/Header.tsx","moduleParts":{"content/components/Header.js":"b023-39"},"imported":[{"uid":"b023-84"},{"uid":"b023-85"},{"uid":"b023-92"},{"uid":"b023-12"},{"uid":"b023-34"}],"importedBy":[{"uid":"b023-22"}]},"b023-40":{"id":"/src/content/components/SidebarItemWrapper.tsx","moduleParts":{"content/components/SidebarItemWrapper.js":"b023-41"},"imported":[{"uid":"b023-84"},{"uid":"b023-85"},{"uid":"b023-94"},{"uid":"b023-92"},{"uid":"b023-36"},{"uid":"b023-12"},{"uid":"b023-52"},{"uid":"b023-54"},{"uid":"b023-58"},{"uid":"b023-56"}],"importedBy":[{"uid":"b023-22"}]},"b023-42":{"id":"/src/layout/components/LayoutItemBar.tsx","moduleParts":{"layout/components/LayoutItemBar.js":"b023-43"},"imported":[{"uid":"b023-84"},{"uid":"b023-85"},{"uid":"b023-92"},{"uid":"b023-28"},{"uid":"b023-50"},{"uid":"b023-60"}],"importedBy":[{"uid":"b023-20"}]},"b023-44":{"id":"/src/layout/components/SecondaryMenuToggleItem.tsx","moduleParts":{"layout/components/SecondaryMenuToggleItem.js":"b023-45"},"imported":[{"uid":"b023-84"},{"uid":"b023-92"},{"uid":"b023-32"}],"importedBy":[{"uid":"b023-20"}]},"b023-46":{"id":"/src/layout/types.ts","moduleParts":{"layout/types.js":"b023-47"},"imported":[],"importedBy":[{"uid":"b023-30"},{"uid":"b023-60"}]},"b023-48":{"id":"/src/hooks/useBuildData.ts","moduleParts":{"hooks/useBuildData.js":"b023-49"},"imported":[{"uid":"b023-89"},{"uid":"b023-85"},{"uid":"b023-93"},{"uid":"b023-88"},{"uid":"b023-2"},{"uid":"b023-66"},{"uid":"b023-64"},{"uid":"b023-62"}],"importedBy":[{"uid":"b023-36"},{"uid":"b023-60"}]},"b023-50":{"id":"/src/layout/utils.tsx","moduleParts":{"layout/utils.js":"b023-51"},"imported":[{"uid":"b023-84"},{"uid":"b023-88"},{"uid":"b023-92"},{"uid":"b023-68"}],"importedBy":[{"uid":"b023-42"},{"uid":"b023-76"},{"uid":"b023-80"}]},"b023-52":{"id":"/src/content/components/ActionFormSidebarItemComponent.tsx","moduleParts":{"content/components/ActionFormSidebarItemComponent.js":"b023-53"},"imported":[{"uid":"b023-84"},{"uid":"b023-85"},{"uid":"b023-92"},{"uid":"b023-70"},{"uid":"b023-72"}],"importedBy":[{"uid":"b023-40"}]},"b023-54":{"id":"/src/content/components/ActionSidebarItemComponent.tsx","moduleParts":{"content/components/ActionSidebarItemComponent.js":"b023-55"},"imported":[{"uid":"b023-84"},{"uid":"b023-92"},{"uid":"b023-70"}],"importedBy":[{"uid":"b023-40"}]},"b023-56":{"id":"/src/content/components/PlainSidebarItem.tsx","moduleParts":{"content/components/PlainSidebarItem.js":"b023-57"},"imported":[{"uid":"b023-84"},{"uid":"b023-88"},{"uid":"b023-92"},{"uid":"b023-70"}],"importedBy":[{"uid":"b023-40"}]},"b023-58":{"id":"/src/content/components/CustomSidebarItemComponent.tsx","moduleParts":{"content/components/CustomSidebarItemComponent.js":"b023-59"},"imported":[{"uid":"b023-84"}],"importedBy":[{"uid":"b023-40"}]},"b023-60":{"id":"/src/layout/components/LayoutItemWrapper.tsx","moduleParts":{"layout/components/LayoutItemWrapper.js":"b023-61"},"imported":[{"uid":"b023-84"},{"uid":"b023-85"},{"uid":"b023-94"},{"uid":"b023-92"},{"uid":"b023-48"},{"uid":"b023-28"},{"uid":"b023-46"},{"uid":"b023-74"},{"uid":"b023-76"},{"uid":"b023-78"},{"uid":"b023-80"}],"importedBy":[{"uid":"b023-42"}]},"b023-62":{"id":"/src/hooks/useSelectState.ts","moduleParts":{"hooks/useSelectState.js":"b023-63"},"imported":[{"uid":"b023-93"}],"importedBy":[{"uid":"b023-48"}]},"b023-64":{"id":"/src/hooks/useSelectPermission.ts","moduleParts":{"hooks/useSelectPermission.js":"b023-65"},"imported":[{"uid":"b023-93"}],"importedBy":[{"uid":"b023-48"}]},"b023-66":{"id":"/src/hooks/useIsActiveRoute.ts","moduleParts":{"hooks/useIsActiveRoute.js":"b023-67"},"imported":[{"uid":"b023-95"},{"uid":"b023-68"}],"importedBy":[{"uid":"b023-48"}]},"b023-68":{"id":"/src/commonItems.ts","moduleParts":{"commonItems.js":"b023-69"},"imported":[],"importedBy":[{"uid":"b023-50"},{"uid":"b023-66"}]},"b023-70":{"id":"/src/content/utils.tsx","moduleParts":{"content/utils.js":"b023-71"},"imported":[{"uid":"b023-84"},{"uid":"b023-92"}],"importedBy":[{"uid":"b023-52"},{"uid":"b023-54"},{"uid":"b023-56"}]},"b023-72":{"id":"/src/content/components/ActionForm.tsx","moduleParts":{"content/components/ActionForm.js":"b023-73"},"imported":[{"uid":"b023-84"},{"uid":"b023-96"},{"uid":"b023-85"},{"uid":"b023-92"}],"importedBy":[{"uid":"b023-52"}]},"b023-74":{"id":"/src/layout/components/CustomLayoutItemComponent.tsx","moduleParts":{"layout/components/CustomLayoutItemComponent.js":"b023-75"},"imported":[{"uid":"b023-84"}],"importedBy":[{"uid":"b023-60"}]},"b023-76":{"id":"/src/layout/components/DropdownItem.tsx","moduleParts":{"layout/components/DropdownItem.js":"b023-77"},"imported":[{"uid":"b023-84"},{"uid":"b023-85"},{"uid":"b023-92"},{"uid":"b023-50"},{"uid":"b023-32"}],"importedBy":[{"uid":"b023-60"}]},"b023-78":{"id":"/src/layout/components/MenuItem.tsx","moduleParts":{"layout/components/MenuItem.js":"b023-79"},"imported":[{"uid":"b023-84"},{"uid":"b023-92"}],"importedBy":[{"uid":"b023-60"}]},"b023-80":{"id":"/src/layout/components/PlainItem.tsx","moduleParts":{"layout/components/PlainItem.js":"b023-81"},"imported":[{"uid":"b023-84"},{"uid":"b023-91"},{"uid":"b023-92"},{"uid":"b023-50"}],"importedBy":[{"uid":"b023-60"}]},"b023-82":{"id":"/home/artemis/Github/imperium/node_modules/style-inject/dist/style-inject.es.js","moduleParts":{"external/style-inject/dist/style-inject.es.js":"b023-83"},"imported":[],"importedBy":[{"uid":"b023-32"},{"uid":"b023-34"}]},"b023-84":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"b023-6"},{"uid":"b023-8"},{"uid":"b023-16"},{"uid":"b023-14"},{"uid":"b023-18"},{"uid":"b023-20"},{"uid":"b023-22"},{"uid":"b023-26"},{"uid":"b023-24"},{"uid":"b023-42"},{"uid":"b023-44"},{"uid":"b023-38"},{"uid":"b023-40"},{"uid":"b023-50"},{"uid":"b023-60"},{"uid":"b023-52"},{"uid":"b023-54"},{"uid":"b023-58"},{"uid":"b023-56"},{"uid":"b023-74"},{"uid":"b023-76"},{"uid":"b023-78"},{"uid":"b023-80"},{"uid":"b023-70"},{"uid":"b023-72"}],"isExternal":true},"b023-85":{"id":"debug","moduleParts":{},"imported":[],"importedBy":[{"uid":"b023-6"},{"uid":"b023-8"},{"uid":"b023-16"},{"uid":"b023-14"},{"uid":"b023-18"},{"uid":"b023-20"},{"uid":"b023-22"},{"uid":"b023-30"},{"uid":"b023-42"},{"uid":"b023-38"},{"uid":"b023-40"},{"uid":"b023-60"},{"uid":"b023-48"},{"uid":"b023-52"},{"uid":"b023-76"},{"uid":"b023-72"}],"isExternal":true},"b023-86":{"id":"@imperium/state","moduleParts":{},"imported":[],"importedBy":[{"uid":"b023-2"}],"isExternal":true},"b023-87":{"id":"@reduxjs/toolkit","moduleParts":{},"imported":[],"importedBy":[{"uid":"b023-2"}],"isExternal":true},"b023-88":{"id":"react-router-dom","moduleParts":{},"imported":[],"importedBy":[{"uid":"b023-16"},{"uid":"b023-50"},{"uid":"b023-48"},{"uid":"b023-56"}],"isExternal":true},"b023-89":{"id":"@imperium/auth-client","moduleParts":{},"imported":[],"importedBy":[{"uid":"b023-18"},{"uid":"b023-48"}],"isExternal":true},"b023-90":{"id":"react-redux","moduleParts":{},"imported":[],"importedBy":[{"uid":"b023-18"},{"uid":"b023-22"},{"uid":"b023-24"}],"isExternal":true},"b023-91":{"id":"react-responsive","moduleParts":{},"imported":[],"importedBy":[{"uid":"b023-20"},{"uid":"b023-22"},{"uid":"b023-80"}],"isExternal":true},"b023-92":{"id":"semantic-ui-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"b023-20"},{"uid":"b023-22"},{"uid":"b023-42"},{"uid":"b023-44"},{"uid":"b023-38"},{"uid":"b023-40"},{"uid":"b023-50"},{"uid":"b023-60"},{"uid":"b023-52"},{"uid":"b023-54"},{"uid":"b023-56"},{"uid":"b023-76"},{"uid":"b023-78"},{"uid":"b023-80"},{"uid":"b023-70"},{"uid":"b023-72"}],"isExternal":true},"b023-93":{"id":"lodash-es","moduleParts":{},"imported":[],"importedBy":[{"uid":"b023-22"},{"uid":"b023-30"},{"uid":"b023-28"},{"uid":"b023-48"},{"uid":"b023-64"},{"uid":"b023-62"}],"isExternal":true},"b023-94":{"id":"mingo","moduleParts":{},"imported":[],"importedBy":[{"uid":"b023-40"},{"uid":"b023-60"}],"isExternal":true},"b023-95":{"id":"react-router","moduleParts":{},"imported":[],"importedBy":[{"uid":"b023-66"}],"isExternal":true},"b023-96":{"id":"@thx/controls","moduleParts":{},"imported":[],"importedBy":[{"uid":"b023-72"}],"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
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
-----------------------------
|
|
2
2
|
Rollup File Analysis
|
|
3
3
|
-----------------------------
|
|
4
|
-
bundle size: 34.
|
|
5
|
-
original size:
|
|
6
|
-
code reduction:
|
|
4
|
+
bundle size: 34.107 KB
|
|
5
|
+
original size: 54.142 KB
|
|
6
|
+
code reduction: 37 %
|
|
7
7
|
module count: 42
|
|
8
8
|
|
|
9
9
|
/src/content/components/ContentComponent.tsx
|
|
10
|
-
█████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 10.
|
|
10
|
+
█████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 10.51 % (3.584 KB)
|
|
11
11
|
/src/layout/components/styles.module.css
|
|
12
|
-
████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 9.
|
|
12
|
+
████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 9.31 % (3.176 KB)
|
|
13
13
|
/src/layout/components/Layout.tsx
|
|
14
|
-
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7.
|
|
14
|
+
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7.37 % (2.512 KB)
|
|
15
15
|
/src/content/components/styles.module.css
|
|
16
|
-
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.
|
|
16
|
+
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.21 % (2.119 KB)
|
|
17
17
|
/src/layout/withLayout.tsx
|
|
18
|
-
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.
|
|
18
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.73 % (1.955 KB)
|
|
19
19
|
/src/content/components/ActionForm.tsx
|
|
20
|
-
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.
|
|
20
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.89 % (1.667 KB)
|
|
21
21
|
/src/layout/components/LayoutItemWrapper.tsx
|
|
22
|
-
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.
|
|
22
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.41 % (1.503 KB)
|
|
23
23
|
/src/layout/moveItems.ts
|
|
24
|
-
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.
|
|
24
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.11 % (1.401 KB)
|
|
25
25
|
/src/content/components/SidebarItemWrapper.tsx
|
|
26
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.
|
|
26
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.49 % (1.189 KB)
|
|
27
27
|
/src/layout/components/DropdownItem.tsx
|
|
28
28
|
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.46 % (1.179 KB)
|
|
29
29
|
/src/datahooks/DataHooks.tsx
|
|
30
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.
|
|
30
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.1 % (1.058 KB)
|
|
31
31
|
/src/content/components/Header.tsx
|
|
32
32
|
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.06 % (1.042 KB)
|
|
33
33
|
/src/layout/utils.tsx
|
|
34
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.
|
|
34
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.68 % (915 Bytes)
|
|
35
35
|
/src/datahooks/Permissions.tsx
|
|
36
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.
|
|
36
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.53 % (864 Bytes)
|
|
37
37
|
/src/hooks/useBuildData.ts
|
|
38
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.
|
|
38
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.34 % (799 Bytes)
|
|
39
39
|
/src/layout/components/LayoutItemBar.tsx
|
|
40
40
|
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.13 % (726 Bytes)
|
|
41
41
|
/src/content/createPages.tsx
|
|
@@ -43,11 +43,11 @@ module count: 42
|
|
|
43
43
|
/src/content/components/ActionFormSidebarItemComponent.tsx
|
|
44
44
|
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.89 % (644 Bytes)
|
|
45
45
|
/home/artemis/Github/imperium/node_modules/style-inject/dist/style-inject.es.js
|
|
46
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
46
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.86 % (636 Bytes)
|
|
47
47
|
/src/content/utils.tsx
|
|
48
48
|
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.84 % (628 Bytes)
|
|
49
49
|
/src/state.ts
|
|
50
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
50
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.73 % (591 Bytes)
|
|
51
51
|
/src/hooks/useIsActiveRoute.ts
|
|
52
52
|
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.51 % (514 Bytes)
|
|
53
53
|
/src/content/types.ts
|
|
@@ -55,13 +55,13 @@ module count: 42
|
|
|
55
55
|
/src/layout/components/PlainItem.tsx
|
|
56
56
|
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.11 % (379 Bytes)
|
|
57
57
|
/src/layout/components/SecondaryMenuToggleItem.tsx
|
|
58
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
58
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.04 % (356 Bytes)
|
|
59
59
|
/src/datahooks/ExecutePermissionHook.tsx
|
|
60
60
|
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.01 % (345 Bytes)
|
|
61
61
|
/src/content/components/ActionSidebarItemComponent.tsx
|
|
62
62
|
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.01 % (343 Bytes)
|
|
63
63
|
/src/datahooks/PermissionHooks.tsx
|
|
64
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
|
|
64
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.99 % (339 Bytes)
|
|
65
65
|
/src/hooks/useSelectState.ts
|
|
66
66
|
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.96 % (326 Bytes)
|
|
67
67
|
/src/content/components/PlainSidebarItem.tsx
|
|
@@ -83,7 +83,7 @@ module count: 42
|
|
|
83
83
|
/src/datahooks/ExecuteDataHook.tsx
|
|
84
84
|
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.36 % (123 Bytes)
|
|
85
85
|
/src/types.ts
|
|
86
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.
|
|
86
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.35 % (121 Bytes)
|
|
87
87
|
/src/content/components/CustomSidebarItemComponent.tsx
|
|
88
88
|
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.24 % (83 Bytes)
|
|
89
89
|
/src/layout/components/CustomLayoutItemComponent.tsx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imperium/layout",
|
|
3
|
-
"version": "14.8.
|
|
3
|
+
"version": "14.8.3",
|
|
4
4
|
"description": "Imperium Layout package",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/thr-consulting/imperium/issues"
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@imperium/auth-client": "^14.8.
|
|
34
|
+
"@imperium/auth-client": "^14.8.3",
|
|
35
35
|
"@imperium/client": "^14.5.1",
|
|
36
|
-
"@imperium/router": "^14.
|
|
37
|
-
"@imperium/state": "^14.8.
|
|
36
|
+
"@imperium/router": "^14.8.3",
|
|
37
|
+
"@imperium/state": "^14.8.3",
|
|
38
38
|
"@thx/controls": "^19.0.0",
|
|
39
39
|
"debug": "^4.4.0",
|
|
40
40
|
"history": "^5.0.1",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "a059e51b3b1c2ecaf1f2233e0bfb7ea3f4544521"
|
|
64
64
|
}
|