@inventreedb/ui 0.5.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ActionButton.js.map +1 -1
- package/dist/components/AddItemButton.js.map +1 -1
- package/dist/components/ButtonMenu.js.map +1 -1
- package/dist/components/ProgressBar.js.map +1 -1
- package/dist/components/RowActions.js.map +1 -1
- package/dist/components/SearchInput.js.map +1 -1
- package/dist/components/YesNoButton.js.map +1 -1
- package/dist/enums/ApiEndpoints.js.map +1 -1
- package/dist/enums/ModelInformation.js.map +1 -1
- package/dist/enums/ModelType.js.map +1 -1
- package/dist/enums/Roles.js.map +1 -1
- package/dist/functions/Api.js.map +1 -1
- package/dist/functions/Conversion.js.map +1 -1
- package/dist/functions/Formatting.js.map +1 -1
- package/dist/functions/Navigation.js.map +1 -1
- package/dist/functions/Plugins.js.map +1 -1
- package/dist/node_modules/@mantine/hooks/esm/use-debounced-value/use-debounced-value.js +2 -1
- package/dist/node_modules/@mantine/hooks/esm/use-debounced-value/use-debounced-value.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/createReactComponent.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleX.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconDots.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconPlus.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.js.map +1 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js.map +1 -1
- package/dist/node_modules/react/jsx-runtime.js.map +1 -1
- package/dist/types/Plugins.js +2 -2
- package/dist/types/Plugins.js.map +1 -1
- package/package.json +35 -35
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionButton.js","sources":["../../lib/components/ActionButton.tsx"],"sourcesContent":["import {\n ActionIcon,\n type FloatingPosition,\n Group,\n Tooltip\n} from '@mantine/core';\nimport type { ReactNode } from 'react';\n\nimport { identifierString } from '../functions/Conversion';\n\nexport type ActionButtonProps = {\n icon?: ReactNode;\n text?: string;\n color?: string;\n tooltip?: string;\n variant?: string;\n size?: number | string;\n radius?: number | string;\n disabled?: boolean;\n onClick: (event?: any) => void;\n hidden?: boolean;\n tooltipAlignment?: FloatingPosition;\n};\n\n/**\n * Construct a simple action button with consistent styling\n */\nexport function ActionButton(props: ActionButtonProps) {\n const hidden = props.hidden ?? false;\n\n return (\n !hidden && (\n <Tooltip\n key={`tooltip-${props.tooltip ?? props.text}`}\n disabled={!props.tooltip && !props.text}\n label={props.tooltip ?? props.text}\n position={props.tooltipAlignment ?? 'left'}\n >\n <ActionIcon\n key={`action-icon-${props.tooltip ?? props.text}`}\n disabled={props.disabled}\n p={17}\n radius={props.radius ?? 'xs'}\n color={props.color}\n size={props.size}\n aria-label={`action-button-${identifierString(\n props.tooltip ?? props.text ?? ''\n )}`}\n onClick={(event: any) => {\n props.onClick(event);\n }}\n variant={props.variant ?? 'transparent'}\n >\n <Group gap='xs' wrap='nowrap'>\n {props.icon}\n </Group>\n </ActionIcon>\n </Tooltip>\n )\n );\n}\n"],"names":["ActionButton","props","hidden","jsx","tooltip","text","tooltipAlignment","disabled","radius","color","size","identifierString","event","onClick","variant","icon"],"mappings":";;AAAA,MAAA,aAAA,OAAA,aAAA,EAAA;;;AA2BO,SAASA,aAAaC,OAA0B;
|
|
1
|
+
{"version":3,"file":"ActionButton.js","sources":["../../lib/components/ActionButton.tsx"],"sourcesContent":["import {\n ActionIcon,\n type FloatingPosition,\n Group,\n Tooltip\n} from '@mantine/core';\nimport type { ReactNode } from 'react';\n\nimport { identifierString } from '../functions/Conversion';\n\nexport type ActionButtonProps = {\n icon?: ReactNode;\n text?: string;\n color?: string;\n tooltip?: string;\n variant?: string;\n size?: number | string;\n radius?: number | string;\n disabled?: boolean;\n onClick: (event?: any) => void;\n hidden?: boolean;\n tooltipAlignment?: FloatingPosition;\n};\n\n/**\n * Construct a simple action button with consistent styling\n */\nexport function ActionButton(props: ActionButtonProps) {\n const hidden = props.hidden ?? false;\n\n return (\n !hidden && (\n <Tooltip\n key={`tooltip-${props.tooltip ?? props.text}`}\n disabled={!props.tooltip && !props.text}\n label={props.tooltip ?? props.text}\n position={props.tooltipAlignment ?? 'left'}\n >\n <ActionIcon\n key={`action-icon-${props.tooltip ?? props.text}`}\n disabled={props.disabled}\n p={17}\n radius={props.radius ?? 'xs'}\n color={props.color}\n size={props.size}\n aria-label={`action-button-${identifierString(\n props.tooltip ?? props.text ?? ''\n )}`}\n onClick={(event: any) => {\n props.onClick(event);\n }}\n variant={props.variant ?? 'transparent'}\n >\n <Group gap='xs' wrap='nowrap'>\n {props.icon}\n </Group>\n </ActionIcon>\n </Tooltip>\n )\n );\n}\n"],"names":["ActionButton","props","hidden","jsx","tooltip","text","tooltipAlignment","disabled","radius","color","size","identifierString","event","onClick","variant","icon"],"mappings":";;AAAA,MAAA,aAAA,OAAA,aAAA,EAAA;;;AA2BO,SAASA,aAAaC,OAA0B;AACrD,QAAMC,SAASD,MAAMC,UAAU;AAE/B,SACE,CAACA,UACCC,sCAAC,SAAA,EAEC,UAAU,CAACF,MAAMG,WAAW,CAACH,MAAMI,MACnC,OAAOJ,MAAMG,WAAWH,MAAMI,MAC9B,UAAUJ,MAAMK,oBAAoB,QAEpC,UAAAH,kCAAAA,IAAC,YAAA,EAEC,UAAUF,MAAMM,UAChB,GAAG,IACH,QAAQN,MAAMO,UAAU,MACxB,OAAOP,MAAMQ,OACb,MAAMR,MAAMS,MACZ,cAAY,iBAAiBC,iBAC3BV,MAAMG,WAAWH,MAAMI,QAAQ,EACjC,CAAC,IACD,SAAS,CAACO,UAAe;AACvBX,UAAMY,QAAQD,KAAK;AAAA,EACrB,GACA,SAASX,MAAMa,WAAW,eAE1B,UAAAX,kCAAAA,IAAC,OAAA,EAAM,KAAI,MAAK,MAAK,UAClBF,UAAAA,MAAMc,KAAAA,CACT,KAhBK,eAAed,MAAMG,WAAWH,MAAMI,IAAI,EAiBjD,EAAA,GAvBK,WAAWJ,MAAMG,WAAWH,MAAMI,IAAI,EAwB7C;AAGN;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddItemButton.js","sources":["../../lib/components/AddItemButton.tsx"],"sourcesContent":["import { IconPlus } from '@tabler/icons-react';\n\nimport { ActionButton, type ActionButtonProps } from './ActionButton';\n\n/**\n * A generic icon button which is used to add or create a new item\n */\nexport function AddItemButton(props: Readonly<ActionButtonProps>) {\n return <ActionButton {...props} color='green' icon={<IconPlus />} />;\n}\n"],"names":["AddItemButton","props","jsx"],"mappings":";;;AAOO,SAASA,cAAcC,OAAoC;
|
|
1
|
+
{"version":3,"file":"AddItemButton.js","sources":["../../lib/components/AddItemButton.tsx"],"sourcesContent":["import { IconPlus } from '@tabler/icons-react';\n\nimport { ActionButton, type ActionButtonProps } from './ActionButton';\n\n/**\n * A generic icon button which is used to add or create a new item\n */\nexport function AddItemButton(props: Readonly<ActionButtonProps>) {\n return <ActionButton {...props} color='green' icon={<IconPlus />} />;\n}\n"],"names":["AddItemButton","props","jsx"],"mappings":";;;AAOO,SAASA,cAAcC,OAAoC;AAChE,SAAOC,sCAAC,mBAAiBD,OAAO,OAAM,SAAQ,MAAMC,kCAAAA,IAAC,UAAA,CAAA,CAAQ,EAAA,CAAI;AACnE;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonMenu.js","sources":["../../lib/components/ButtonMenu.tsx"],"sourcesContent":["import { ActionIcon, Menu, Tooltip } from '@mantine/core';\n\n/**\n * A ButtonMenu is a button that opens a menu when clicked.\n * It features a number of actions, which can be selected by the user.\n */\nexport function ButtonMenu({\n icon,\n actions,\n tooltip = '',\n label = ''\n}: Readonly<{\n icon: any;\n actions: React.ReactNode[];\n label?: string;\n tooltip?: string;\n}>) {\n return (\n <Menu shadow='xs'>\n <Menu.Target>\n <ActionIcon variant='default'>\n <Tooltip label={tooltip}>{icon}</Tooltip>\n </ActionIcon>\n </Menu.Target>\n <Menu.Dropdown>\n {label && <Menu.Label>{label}</Menu.Label>}\n {actions.map((action, i) => (\n <Menu.Item key={`${i}-${action}`}>{action}</Menu.Item>\n ))}\n </Menu.Dropdown>\n </Menu>\n );\n}\n"],"names":["ButtonMenu","icon","actions","tooltip","label","jsxs","jsx","map","action","i"],"mappings":";AAAA,MAAA,aAAA,OAAA,aAAA,EAAA;;;AAMO,SAASA,WAAW;AAAA,EACzBC;AAAAA,EACAC;AAAAA,EACAC,UAAU;AAAA,EACVC,QAAQ;AAMT,GAAG;
|
|
1
|
+
{"version":3,"file":"ButtonMenu.js","sources":["../../lib/components/ButtonMenu.tsx"],"sourcesContent":["import { ActionIcon, Menu, Tooltip } from '@mantine/core';\n\n/**\n * A ButtonMenu is a button that opens a menu when clicked.\n * It features a number of actions, which can be selected by the user.\n */\nexport function ButtonMenu({\n icon,\n actions,\n tooltip = '',\n label = ''\n}: Readonly<{\n icon: any;\n actions: React.ReactNode[];\n label?: string;\n tooltip?: string;\n}>) {\n return (\n <Menu shadow='xs'>\n <Menu.Target>\n <ActionIcon variant='default'>\n <Tooltip label={tooltip}>{icon}</Tooltip>\n </ActionIcon>\n </Menu.Target>\n <Menu.Dropdown>\n {label && <Menu.Label>{label}</Menu.Label>}\n {actions.map((action, i) => (\n <Menu.Item key={`${i}-${action}`}>{action}</Menu.Item>\n ))}\n </Menu.Dropdown>\n </Menu>\n );\n}\n"],"names":["ButtonMenu","icon","actions","tooltip","label","jsxs","jsx","map","action","i"],"mappings":";AAAA,MAAA,aAAA,OAAA,aAAA,EAAA;;;AAMO,SAASA,WAAW;AAAA,EACzBC;AAAAA,EACAC;AAAAA,EACAC,UAAU;AAAA,EACVC,QAAQ;AAMT,GAAG;AACF,SACEC,kCAAAA,KAAC,MAAA,EAAK,QAAO,MACX,UAAA;AAAA,IAAAC,sCAAC,KAAK,QAAL,EACC,UAAAA,kCAAAA,IAAC,YAAA,EAAW,SAAQ,WAClB,UAAAA,sCAAC,SAAA,EAAQ,OAAOH,SAAUF,UAAAA,KAAAA,CAAK,GACjC,GACF;AAAA,IACAI,kCAAAA,KAAC,KAAK,UAAL,EACED,UAAAA;AAAAA,MAAAA,SAASE,kCAAAA,IAAC,KAAK,OAAL,EAAYF,UAAAA,OAAM;AAAA,MAC5BF,QAAQK,IAAI,CAACC,QAAQC,MACpBH,kCAAAA,IAAC,KAAK,MAAL,EAAkCE,oBAAnB,GAAGC,CAAC,IAAID,MAAM,EAAY,CAC3C;AAAA,IAAA,EAAA,CACH;AAAA,EAAA,GACF;AAEJ;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressBar.js","sources":["../../lib/components/ProgressBar.tsx"],"sourcesContent":["import { Progress, Stack, Text } from '@mantine/core';\nimport { useMemo } from 'react';\nimport { formatDecimal } from '../functions/Formatting';\n\nexport type ProgressBarProps = {\n value: number;\n maximum?: number;\n label?: string;\n progressLabel?: boolean;\n animated?: boolean;\n size?: string;\n};\n\n/**\n * A progress bar element, built on mantine.Progress\n * The color of the bar is determined based on the value\n */\nexport function ProgressBar(props: Readonly<ProgressBarProps>) {\n const progress = useMemo(() => {\n const maximum = props.maximum ?? 100;\n const value = Math.max(props.value, 0);\n\n if (maximum == 0) {\n return 0;\n }\n\n return (value / maximum) * 100;\n }, [props]);\n\n return (\n <Stack gap={2} style={{ flexGrow: 1, minWidth: '100px' }}>\n {props.progressLabel && (\n <Text ta='center' size='xs'>\n {formatDecimal(props.value)} / {formatDecimal(props.maximum)}\n </Text>\n )}\n <Progress\n value={progress}\n color={progress < 100 ? 'orange' : progress > 100 ? 'blue' : 'green'}\n size={props.size ?? 'md'}\n radius='sm'\n animated={props.animated}\n />\n </Stack>\n );\n}\n"],"names":["ProgressBar","props","progress","useMemo","maximum","value","Math","max","jsxs","flexGrow","minWidth","progressLabel","formatDecimal","jsx","size","animated"],"mappings":";;AAAA,MAAA,WAAA,OAAA,aAAA,EAAA;;;AACA,MAAA,UAAA,OAAA,OAAA,EAAA;AAgBO,SAASA,YAAYC,OAAmC;
|
|
1
|
+
{"version":3,"file":"ProgressBar.js","sources":["../../lib/components/ProgressBar.tsx"],"sourcesContent":["import { Progress, Stack, Text } from '@mantine/core';\nimport { useMemo } from 'react';\nimport { formatDecimal } from '../functions/Formatting';\n\nexport type ProgressBarProps = {\n value: number;\n maximum?: number;\n label?: string;\n progressLabel?: boolean;\n animated?: boolean;\n size?: string;\n};\n\n/**\n * A progress bar element, built on mantine.Progress\n * The color of the bar is determined based on the value\n */\nexport function ProgressBar(props: Readonly<ProgressBarProps>) {\n const progress = useMemo(() => {\n const maximum = props.maximum ?? 100;\n const value = Math.max(props.value, 0);\n\n if (maximum == 0) {\n return 0;\n }\n\n return (value / maximum) * 100;\n }, [props]);\n\n return (\n <Stack gap={2} style={{ flexGrow: 1, minWidth: '100px' }}>\n {props.progressLabel && (\n <Text ta='center' size='xs'>\n {formatDecimal(props.value)} / {formatDecimal(props.maximum)}\n </Text>\n )}\n <Progress\n value={progress}\n color={progress < 100 ? 'orange' : progress > 100 ? 'blue' : 'green'}\n size={props.size ?? 'md'}\n radius='sm'\n animated={props.animated}\n />\n </Stack>\n );\n}\n"],"names":["ProgressBar","props","progress","useMemo","maximum","value","Math","max","jsxs","flexGrow","minWidth","progressLabel","formatDecimal","jsx","size","animated"],"mappings":";;AAAA,MAAA,WAAA,OAAA,aAAA,EAAA;;;AACA,MAAA,UAAA,OAAA,OAAA,EAAA;AAgBO,SAASA,YAAYC,OAAmC;AAC7D,QAAMC,WAAWC,QAAQ,MAAM;AAC7B,UAAMC,UAAUH,MAAMG,WAAW;AACjC,UAAMC,QAAQC,KAAKC,IAAIN,MAAMI,OAAO,CAAC;AAErC,QAAID,WAAW,GAAG;AAChB,aAAO;AAAA,IACT;AAEA,WAAQC,QAAQD,UAAW;AAAA,EAC7B,GAAG,CAACH,KAAK,CAAC;AAEV,SACEO,kCAAAA,KAAC,OAAA,EAAM,KAAK,GAAG,OAAO;AAAA,IAAEC,UAAU;AAAA,IAAGC,UAAU;AAAA,EAAA,GAC5CT,UAAAA;AAAAA,IAAAA,MAAMU,iBACLH,kCAAAA,KAAC,MAAA,EAAK,IAAG,UAAS,MAAK,MACpBI,UAAAA;AAAAA,MAAAA,cAAcX,MAAMI,KAAK;AAAA,MAAE;AAAA,MAAIO,cAAcX,MAAMG,OAAO;AAAA,IAAA,GAC7D;AAAA,IAEFS,sCAAC,YACC,OAAOX,UACP,OAAOA,WAAW,MAAM,WAAWA,WAAW,MAAM,SAAS,SAC7D,MAAMD,MAAMa,QAAQ,MACpB,QAAO,MACP,UAAUb,MAAMc,SAAAA,CAAS;AAAA,EAAA,GAE7B;AAEJ;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RowActions.js","sources":["../../lib/components/RowActions.tsx"],"sourcesContent":["import { t } from '@lingui/core/macro';\nimport { ActionIcon, Menu, Tooltip } from '@mantine/core';\nimport {\n IconArrowRight,\n IconCircleX,\n IconCopy,\n IconDots,\n IconEdit,\n IconTrash\n} from '@tabler/icons-react';\nimport { type ReactNode, useMemo, useState } from 'react';\nimport { cancelEvent } from '../functions/Events';\nimport { getDetailUrl } from '../functions/Navigation';\nimport { navigateToLink } from '../functions/Navigation';\nimport type { RowAction, RowViewProps } from '../types/Tables';\n\nexport type { RowAction, RowViewProps } from '../types/Tables';\n\n// Component for viewing a row in a table\nexport function RowViewAction(props: RowViewProps): RowAction {\n return {\n ...props,\n color: undefined,\n icon: <IconArrowRight />,\n onClick: (event: any) => {\n const url = getDetailUrl(props.modelType, props.modelId);\n navigateToLink(url, props.navigate, event);\n }\n };\n}\n\n// Component for duplicating a row in a table\nexport function RowDuplicateAction(props: RowAction): RowAction {\n return {\n ...props,\n title: t`Duplicate`,\n color: 'green',\n icon: <IconCopy />\n };\n}\n\n// Component for editing a row in a table\nexport function RowEditAction(props: RowAction): RowAction {\n return {\n ...props,\n title: t`Edit`,\n color: 'blue',\n icon: <IconEdit />\n };\n}\n\n// Component for deleting a row in a table\nexport function RowDeleteAction(props: RowAction): RowAction {\n return {\n ...props,\n title: t`Delete`,\n color: 'red',\n icon: <IconTrash />\n };\n}\n\n// Component for cancelling a row in a table\nexport function RowCancelAction(props: RowAction): RowAction {\n return {\n ...props,\n title: t`Cancel`,\n color: 'red',\n icon: <IconCircleX />\n };\n}\n\n/**\n * Component for displaying actions for a row in a table.\n * Displays a simple dropdown menu with a list of actions.\n */\nexport function RowActions({\n title,\n actions,\n disabled = false,\n index\n}: {\n title?: string;\n disabled?: boolean;\n actions: RowAction[];\n index?: number;\n}): ReactNode {\n // Prevent default event handling\n // Ref: https://icflorescu.github.io/mantine-datatable/examples/links-or-buttons-inside-clickable-rows-or-cells\n function openMenu(event: any) {\n cancelEvent(event);\n setOpened(!opened);\n }\n\n const [opened, setOpened] = useState(false);\n\n const visibleActions = useMemo(() => {\n return actions.filter((action) => !action.hidden);\n }, [actions]);\n\n // Render a single action icon\n function RowActionIcon(action: Readonly<RowAction>) {\n return (\n <Tooltip\n withinPortal={true}\n label={action.tooltip ?? action.title}\n key={action.title}\n position='left'\n >\n <Menu.Item\n color={action.color}\n leftSection={action.icon}\n onClick={(event) => {\n // Prevent clicking on the action from selecting the row itself\n cancelEvent(event);\n action.onClick?.(event);\n setOpened(false);\n }}\n disabled={action.disabled || false}\n >\n {action.title}\n </Menu.Item>\n </Tooltip>\n );\n }\n\n return (\n visibleActions.length > 0 && (\n <Menu\n withinPortal={true}\n disabled={disabled}\n position='bottom-end'\n opened={opened}\n onChange={setOpened}\n >\n <Menu.Target>\n <Tooltip withinPortal={true} label={title || t`Actions`}>\n <ActionIcon\n key={`row-action-menu-${index ?? ''}`}\n aria-label={`row-action-menu-${index ?? ''}`}\n onClick={openMenu}\n disabled={disabled}\n variant='subtle'\n color='gray'\n >\n <IconDots />\n </ActionIcon>\n </Tooltip>\n </Menu.Target>\n <Menu.Dropdown>\n {visibleActions.map((action) => (\n <RowActionIcon key={action.title} {...action} />\n ))}\n </Menu.Dropdown>\n </Menu>\n )\n );\n}\n"],"names":["RowViewAction","props","color","undefined","icon","onClick","event","url","getDetailUrl","modelType","modelId","navigate","RowDuplicateAction","title","_i18n","_","id","RowEditAction","RowDeleteAction","RowCancelAction","RowActions","actions","disabled","index","openMenu","cancelEvent","setOpened","opened","useState","visibleActions","useMemo","filter","action","hidden","RowActionIcon","jsx","tooltip","length","jsxs","map"],"mappings":";;;;;;;;;AAAA,MAAA,QAAA,OAAA,YAAA,EAAA;AACA,MAAA,aAAA,OAAA,aAAA,EAAA;;;AASA,MAAA,UAAA,OAAA,OAAA,EAAA;;AASO,SAASA,cAAcC,OAAgC;
|
|
1
|
+
{"version":3,"file":"RowActions.js","sources":["../../lib/components/RowActions.tsx"],"sourcesContent":["import { t } from '@lingui/core/macro';\nimport { ActionIcon, Menu, Tooltip } from '@mantine/core';\nimport {\n IconArrowRight,\n IconCircleX,\n IconCopy,\n IconDots,\n IconEdit,\n IconTrash\n} from '@tabler/icons-react';\nimport { type ReactNode, useMemo, useState } from 'react';\nimport { cancelEvent } from '../functions/Events';\nimport { getDetailUrl } from '../functions/Navigation';\nimport { navigateToLink } from '../functions/Navigation';\nimport type { RowAction, RowViewProps } from '../types/Tables';\n\nexport type { RowAction, RowViewProps } from '../types/Tables';\n\n// Component for viewing a row in a table\nexport function RowViewAction(props: RowViewProps): RowAction {\n return {\n ...props,\n color: undefined,\n icon: <IconArrowRight />,\n onClick: (event: any) => {\n const url = getDetailUrl(props.modelType, props.modelId);\n navigateToLink(url, props.navigate, event);\n }\n };\n}\n\n// Component for duplicating a row in a table\nexport function RowDuplicateAction(props: RowAction): RowAction {\n return {\n ...props,\n title: t`Duplicate`,\n color: 'green',\n icon: <IconCopy />\n };\n}\n\n// Component for editing a row in a table\nexport function RowEditAction(props: RowAction): RowAction {\n return {\n ...props,\n title: t`Edit`,\n color: 'blue',\n icon: <IconEdit />\n };\n}\n\n// Component for deleting a row in a table\nexport function RowDeleteAction(props: RowAction): RowAction {\n return {\n ...props,\n title: t`Delete`,\n color: 'red',\n icon: <IconTrash />\n };\n}\n\n// Component for cancelling a row in a table\nexport function RowCancelAction(props: RowAction): RowAction {\n return {\n ...props,\n title: t`Cancel`,\n color: 'red',\n icon: <IconCircleX />\n };\n}\n\n/**\n * Component for displaying actions for a row in a table.\n * Displays a simple dropdown menu with a list of actions.\n */\nexport function RowActions({\n title,\n actions,\n disabled = false,\n index\n}: {\n title?: string;\n disabled?: boolean;\n actions: RowAction[];\n index?: number;\n}): ReactNode {\n // Prevent default event handling\n // Ref: https://icflorescu.github.io/mantine-datatable/examples/links-or-buttons-inside-clickable-rows-or-cells\n function openMenu(event: any) {\n cancelEvent(event);\n setOpened(!opened);\n }\n\n const [opened, setOpened] = useState(false);\n\n const visibleActions = useMemo(() => {\n return actions.filter((action) => !action.hidden);\n }, [actions]);\n\n // Render a single action icon\n function RowActionIcon(action: Readonly<RowAction>) {\n return (\n <Tooltip\n withinPortal={true}\n label={action.tooltip ?? action.title}\n key={action.title}\n position='left'\n >\n <Menu.Item\n color={action.color}\n leftSection={action.icon}\n onClick={(event) => {\n // Prevent clicking on the action from selecting the row itself\n cancelEvent(event);\n action.onClick?.(event);\n setOpened(false);\n }}\n disabled={action.disabled || false}\n >\n {action.title}\n </Menu.Item>\n </Tooltip>\n );\n }\n\n return (\n visibleActions.length > 0 && (\n <Menu\n withinPortal={true}\n disabled={disabled}\n position='bottom-end'\n opened={opened}\n onChange={setOpened}\n >\n <Menu.Target>\n <Tooltip withinPortal={true} label={title || t`Actions`}>\n <ActionIcon\n key={`row-action-menu-${index ?? ''}`}\n aria-label={`row-action-menu-${index ?? ''}`}\n onClick={openMenu}\n disabled={disabled}\n variant='subtle'\n color='gray'\n >\n <IconDots />\n </ActionIcon>\n </Tooltip>\n </Menu.Target>\n <Menu.Dropdown>\n {visibleActions.map((action) => (\n <RowActionIcon key={action.title} {...action} />\n ))}\n </Menu.Dropdown>\n </Menu>\n )\n );\n}\n"],"names":["RowViewAction","props","color","undefined","icon","onClick","event","url","getDetailUrl","modelType","modelId","navigateToLink","navigate","RowDuplicateAction","title","_i18n","_","id","RowEditAction","RowDeleteAction","RowCancelAction","RowActions","actions","disabled","index","openMenu","cancelEvent","setOpened","opened","useState","visibleActions","useMemo","filter","action","hidden","RowActionIcon","jsx","tooltip","length","jsxs","map"],"mappings":";;;;;;;;;AAAA,MAAA,QAAA,OAAA,YAAA,EAAA;AACA,MAAA,aAAA,OAAA,aAAA,EAAA;;;AASA,MAAA,UAAA,OAAA,OAAA,EAAA;;AASO,SAASA,cAAcC,OAAgC;AAC5D,SAAO;AAAA,IACL,GAAGA;AAAAA,IACHC,OAAOC;AAAAA,IACPC,4CAAO,gBAAA,EAAc;AAAA,IACrBC,SAASA,CAACC,UAAe;AACvB,YAAMC,MAAMC,aAAaP,MAAMQ,WAAWR,MAAMS,OAAO;AACvDC,qBAAeJ,KAAKN,MAAMW,UAAUN,KAAK;AAAA,IAC3C;AAAA,EAAA;AAEJ;AAGO,SAASO,mBAAmBZ,OAA6B;AAC9D,SAAO;AAAA,IACL,GAAGA;AAAAA,IACHa,OAAKC,MAAAC;AAAAA;AAAAA,MAAE;AAAA,QAAAC,IAAA;AAAA,MAAA;AAAA,IAAW;AAAA,IAClBf,OAAO;AAAA,IACPE,4CAAO,UAAA,CAAA,CAAQ;AAAA,EAAA;AAEnB;AAGO,SAASc,cAAcjB,OAA6B;AACzD,SAAO;AAAA,IACL,GAAGA;AAAAA,IACHa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AAiB3B;AACjBqB,gBAAU,KAAK;AAAA,IACjB,GACA,UAAUM,OAAOV,YAAY,OAE5BU,UAAAA,OAAOnB,MAAAA,CACV,KAfKmB,OAAOnB,KAgBd;AAAA,EAEJ;AAEA,SACEgB,eAAeQ,SAAS,KACtBC,kCAAAA,KAAC,MAAA,EACC,cAAc,MACd,UACA,UAAS,cACT,QACA,UAAUZ,WAEV,UAAA;AAAA,IAAAS,kCAAAA,IAAC,KAAK,QAAL,EACC,UAAAA,kCAAAA,IAAC,WAAQ,cAAc,MAAM,OAAOtB,SAAKC,MAAAC;AAAAA;AAAAA,MAAI;AAAA,QAAAC,IAAA;AAAA,MAAA;AAAA,IAAS,GACpD,gDAAC,YAAA,EAEC,cAAY,mBAAmBO,SAAS,EAAE,IAC1C,SAASC,UACT,UACA,SAAQ,UACR,OAAM,QAEN,UAAAW,kCAAAA,IAAC,UAAA,CAAA,CAAQ,EAAA,GAPJ,mBAAmBZ,SAAS,EAAE,EAQrC,EAAA,CACF,EAAA,CACF;AAAA,IACAY,kCAAAA,IAAC,KAAK,UAAL,EACEN,yBAAeU,IAAKP,CAAAA,WACnBG,kCAAAA,IAAC,eAAA,EAAiC,GAAIH,OAAAA,GAAlBA,OAAOnB,KAAkB,CAC9C,EAAA,CACH;AAAA,EAAA,GACF;AAGN;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchInput.js","sources":["../../lib/components/SearchInput.tsx"],"sourcesContent":["import { t } from '@lingui/core/macro';\nimport { CloseButton, TextInput } from '@mantine/core';\nimport { useDebouncedValue } from '@mantine/hooks';\nimport { IconSearch } from '@tabler/icons-react';\nimport { useEffect, useState } from 'react';\n\n/**\n * A search input component that debounces user input\n */\nexport function SearchInput({\n disabled,\n debounce,\n placeholder,\n searchCallback\n}: Readonly<{\n disabled?: boolean;\n debounce?: number;\n placeholder?: string;\n searchCallback: (searchTerm: string) => void;\n}>) {\n const [value, setValue] = useState<string>('');\n const [searchText] = useDebouncedValue(value, debounce ?? 500);\n\n useEffect(() => {\n searchCallback(searchText);\n }, [searchText]);\n\n return (\n <TextInput\n value={value}\n disabled={disabled}\n aria-label='table-search-input'\n leftSection={<IconSearch />}\n placeholder={placeholder ?? t`Search`}\n onChange={(event) => setValue(event.target.value)}\n rightSection={\n value.length > 0 ? (\n <CloseButton\n size='xs'\n onClick={() => {\n setValue('');\n searchCallback('');\n }}\n />\n ) : null\n }\n />\n );\n}\n"],"names":["SearchInput","disabled","debounce","placeholder","searchCallback","value","setValue","useState","searchText","useDebouncedValue","useEffect","jsx","_i18n","_","id","event","target","length"],"mappings":";;;AAAA,MAAA,QAAA,OAAA,YAAA,EAAA;AACA,MAAA,cAAA,OAAA,aAAA,EAAA;;AAGA,MAAA,YAAA,OAAA,OAAA,EAAA;;AAKO,SAASA,YAAY;AAAA,EAC1BC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAMD,GAAG;AACF,QAAM,CAACC,OAAOC,QAAQ,IAAIC,SAAiB,EAAE;AAC7C,QAAM,CAACC,UAAU,IAAIC,kBAAkBJ,OAAOH,YAAY,GAAG;AAE7DQ,YAAU,MAAM;AACdN,mBAAeI,UAAU;AAAA,
|
|
1
|
+
{"version":3,"file":"SearchInput.js","sources":["../../lib/components/SearchInput.tsx"],"sourcesContent":["import { t } from '@lingui/core/macro';\nimport { CloseButton, TextInput } from '@mantine/core';\nimport { useDebouncedValue } from '@mantine/hooks';\nimport { IconSearch } from '@tabler/icons-react';\nimport { useEffect, useState } from 'react';\n\n/**\n * A search input component that debounces user input\n */\nexport function SearchInput({\n disabled,\n debounce,\n placeholder,\n searchCallback\n}: Readonly<{\n disabled?: boolean;\n debounce?: number;\n placeholder?: string;\n searchCallback: (searchTerm: string) => void;\n}>) {\n const [value, setValue] = useState<string>('');\n const [searchText] = useDebouncedValue(value, debounce ?? 500);\n\n useEffect(() => {\n searchCallback(searchText);\n }, [searchText]);\n\n return (\n <TextInput\n value={value}\n disabled={disabled}\n aria-label='table-search-input'\n leftSection={<IconSearch />}\n placeholder={placeholder ?? t`Search`}\n onChange={(event) => setValue(event.target.value)}\n rightSection={\n value.length > 0 ? (\n <CloseButton\n size='xs'\n onClick={() => {\n setValue('');\n searchCallback('');\n }}\n />\n ) : null\n }\n />\n );\n}\n"],"names":["SearchInput","disabled","debounce","placeholder","searchCallback","value","setValue","useState","searchText","useDebouncedValue","useEffect","jsx","_i18n","_","id","event","target","length"],"mappings":";;;AAAA,MAAA,QAAA,OAAA,YAAA,EAAA;AACA,MAAA,cAAA,OAAA,aAAA,EAAA;;AAGA,MAAA,YAAA,OAAA,OAAA,EAAA;;AAKO,SAASA,YAAY;AAAA,EAC1BC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAMD,GAAG;AACF,QAAM,CAACC,OAAOC,QAAQ,IAAIC,SAAiB,EAAE;AAC7C,QAAM,CAACC,UAAU,IAAIC,kBAAkBJ,OAAOH,YAAY,GAAG;AAE7DQ,YAAU,MAAM;AACdN,mBAAeI,UAAU;AAAA,EAC3B,GAAG,CAACA,UAAU,CAAC;AAEf,SACEG,kCAAAA,IAAC,WAAA,EACC,OACA,UACA,cAAW,sBACX,aAAaA,kCAAAA,IAAC,YAAA,CAAA,CAAU,GACxB,aAAaR,eAAWS,MAAAC;AAAAA;AAAAA,IAAI;AAAA,MAAAC,IAAA;AAAA,IAAA;AAAA,EAAQ,GACpC,UAAWC,CAAAA,UAAUT,SAASS,MAAMC,OAAOX,KAAK,GAChD,cACEA,MAAMY,SAAS,IACbN,sCAAC,eACC,MAAK,MACL,SAAS,MAAM;AACbL,aAAS,EAAE;AACXF,mBAAe,EAAE;AAAA,EACnB,EAAA,CAAE,IAEF,MACL;AAGP;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YesNoButton.js","sources":["../../lib/components/YesNoButton.tsx"],"sourcesContent":["import { t } from '@lingui/core/macro';\nimport { Badge, type MantineColor, Skeleton } from '@mantine/core';\n\nimport { isTrue } from '../functions/Conversion';\n\nexport function PassFailButton({\n value,\n passText,\n failText,\n passColor,\n failColor\n}: Readonly<{\n value: any;\n passText?: string;\n failText?: string;\n passColor?: MantineColor;\n failColor?: MantineColor;\n}>) {\n const v = isTrue(value);\n const pass = passText ?? t`Pass`;\n const fail = failText ?? t`Fail`;\n\n const pColor = passColor ?? 'green';\n const fColor = failColor ?? 'red';\n\n return (\n <Badge\n color={v ? pColor : fColor}\n variant='filled'\n radius='lg'\n size='sm'\n style={{ maxWidth: '50px' }}\n >\n {v ? pass : fail}\n </Badge>\n );\n}\n\nexport function YesNoButton({ value }: Readonly<{ value: any }>) {\n return (\n <PassFailButton\n value={value}\n passText={t`Yes`}\n failText={t`No`}\n failColor={'orange.6'}\n />\n );\n}\n\nexport function YesNoUndefinedButton({ value }: Readonly<{ value?: boolean }>) {\n if (value === undefined) {\n return <Skeleton height={15} width={32} />;\n } else {\n return <YesNoButton value={value} />;\n }\n}\n"],"names":["PassFailButton","value","passText","failText","passColor","failColor","v","isTrue","pass","_i18n","_","id","fail","pColor","fColor","jsx","maxWidth","YesNoButton"],"mappings":";;AAAA,MAAA,QAAA,OAAA,YAAA,EAAA;AACA,MAAA,QAAA,OAAA,aAAA,EAAA;;AAIO,SAASA,eAAe;AAAA,EAC7BC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAOD,GAAG;
|
|
1
|
+
{"version":3,"file":"YesNoButton.js","sources":["../../lib/components/YesNoButton.tsx"],"sourcesContent":["import { t } from '@lingui/core/macro';\nimport { Badge, type MantineColor, Skeleton } from '@mantine/core';\n\nimport { isTrue } from '../functions/Conversion';\n\nexport function PassFailButton({\n value,\n passText,\n failText,\n passColor,\n failColor\n}: Readonly<{\n value: any;\n passText?: string;\n failText?: string;\n passColor?: MantineColor;\n failColor?: MantineColor;\n}>) {\n const v = isTrue(value);\n const pass = passText ?? t`Pass`;\n const fail = failText ?? t`Fail`;\n\n const pColor = passColor ?? 'green';\n const fColor = failColor ?? 'red';\n\n return (\n <Badge\n color={v ? pColor : fColor}\n variant='filled'\n radius='lg'\n size='sm'\n style={{ maxWidth: '50px' }}\n >\n {v ? pass : fail}\n </Badge>\n );\n}\n\nexport function YesNoButton({ value }: Readonly<{ value: any }>) {\n return (\n <PassFailButton\n value={value}\n passText={t`Yes`}\n failText={t`No`}\n failColor={'orange.6'}\n />\n );\n}\n\nexport function YesNoUndefinedButton({ value }: Readonly<{ value?: boolean }>) {\n if (value === undefined) {\n return <Skeleton height={15} width={32} />;\n } else {\n return <YesNoButton value={value} />;\n }\n}\n"],"names":["PassFailButton","value","passText","failText","passColor","failColor","v","isTrue","pass","_i18n","_","id","fail","pColor","fColor","jsx","maxWidth","YesNoButton"],"mappings":";;AAAA,MAAA,QAAA,OAAA,YAAA,EAAA;AACA,MAAA,QAAA,OAAA,aAAA,EAAA;;AAIO,SAASA,eAAe;AAAA,EAC7BC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAOD,GAAG;AACF,QAAMC,IAAIC,OAAON,KAAK;AACtB,QAAMO,OAAON,YAAQO,MAAAC;AAAAA;AAAAA,IAAI;AAAA,MAAAC,IAAA;AAAA,IAAA;AAAA,EAAM;AAC/B,QAAMC,OAAOT,YAAQM,MAAAC;AAAAA;AAAAA,IAAI;AAAA,MAAAC,IAAA;AAAA,IAAA;AAAA,EAAM;AAE/B,QAAME,SAAST,aAAa;AAC5B,QAAMU,SAAST,aAAa;AAE5B,SACEU,kCAAAA,IAAC,OAAA,EACC,OAAOT,IAAIO,SAASC,QACpB,SAAQ,UACR,QAAO,MACP,MAAK,MACL,OAAO;AAAA,IAAEE,UAAU;AAAA,EAAA,GAElBV,UAAAA,IAAIE,OAAOI,KAAAA,CACd;AAEJ;AAEO,SAASK,YAAY;AAAA,EAAEhB;AAAgC,GAAG;AAC/D,SACEc,kCAAAA,IAAC,gBAAA,EACC,OACA,UAASN,MAAAC;AAAAA;AAAAA,IAAC;AAAA,MAAAC,IAAA;AAAA,IAAA;AAAA,EAAK,GACf,UAASF,MAAAC;AAAAA;AAAAA,IAAC;AAAA,MAAAC,IAAA;AAAA,IAAA;AAAA,EAAI,GACd,WAAW,YAAW;AAG5B;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiEndpoints.js","sources":["../../lib/enums/ApiEndpoints.tsx"],"sourcesContent":["/*\n * Enumeration of available API endpoints.\n *\n * In the cases where endpoints can be accessed with a primary key,\n * the primary key should be appended to the endpoint.\n * The exception to this is when the endpoint provides an :id parameter.\n */\n\nexport enum ApiEndpoints {\n api_server_info = '',\n\n // User API endpoints\n user_list = 'user/',\n user_set_password = 'user/:id/set-password/',\n user_me = 'user/me/',\n user_profile = 'user/profile/',\n user_roles = 'user/roles/',\n user_token = 'user/token/',\n user_tokens = 'user/tokens/',\n user_simple_login = 'email/generate/',\n\n // User auth endpoints\n user_reset = 'auth/v1/auth/password/request',\n user_reset_set = 'auth/v1/auth/password/reset',\n auth_pwd_change = 'auth/v1/account/password/change',\n auth_login = 'auth/v1/auth/login',\n auth_login_2fa = 'auth/v1/auth/2fa/authenticate',\n auth_session = 'auth/v1/auth/session',\n auth_signup = 'auth/v1/auth/signup',\n auth_authenticators = 'auth/v1/account/authenticators',\n auth_recovery = 'auth/v1/account/authenticators/recovery-codes',\n auth_mfa_reauthenticate = 'auth/v1/auth/2fa/reauthenticate',\n auth_totp = 'auth/v1/account/authenticators/totp',\n auth_trust = 'auth/v1/auth/2fa/trust',\n auth_reauthenticate = 'auth/v1/auth/reauthenticate',\n auth_email = 'auth/v1/account/email',\n auth_email_verify = 'auth/v1/auth/email/verify',\n auth_providers = 'auth/v1/account/providers',\n auth_provider_redirect = 'auth/v1/auth/provider/redirect',\n auth_config = 'auth/v1/config',\n\n // Generic API endpoints\n currency_list = 'currency/exchange/',\n currency_refresh = 'currency/refresh/',\n all_units = 'units/all/',\n task_overview = 'background-task/',\n task_pending_list = 'background-task/pending/',\n task_scheduled_list = 'background-task/scheduled/',\n task_failed_list = 'background-task/failed/',\n api_search = 'search/',\n settings_global_list = 'settings/global/',\n settings_user_list = 'settings/user/',\n news = 'news/',\n global_status = 'generic/status/',\n custom_state_list = 'generic/status/custom/',\n version = 'version/',\n license = 'license/',\n group_list = 'user/group/',\n owner_list = 'user/owner/',\n ruleset_list = 'user/ruleset/',\n content_type_list = 'contenttype/',\n icons = 'icons/',\n selectionlist_list = 'selection/',\n selectionlist_detail = 'selection/:id/',\n\n // Barcode API endpoints\n barcode = 'barcode/',\n barcode_history = 'barcode/history/',\n barcode_link = 'barcode/link/',\n barcode_unlink = 'barcode/unlink/',\n barcode_generate = 'barcode/generate/',\n\n // Data output endpoints\n data_output = 'data-output/',\n\n // Data import endpoints\n import_session_list = 'importer/session/',\n import_session_accept_fields = 'importer/session/:id/accept_fields/',\n import_session_accept_rows = 'importer/session/:id/accept_rows/',\n import_session_column_mapping_list = 'importer/column-mapping/',\n import_session_row_list = 'importer/row/',\n\n // Notification endpoints\n notifications_list = 'notifications/',\n notifications_readall = 'notifications/readall/',\n\n // Build API endpoints\n build_order_list = 'build/',\n build_order_issue = 'build/:id/issue/',\n build_order_cancel = 'build/:id/cancel/',\n build_order_hold = 'build/:id/hold/',\n build_order_complete = 'build/:id/finish/',\n build_output_complete = 'build/:id/complete/',\n build_output_create = 'build/:id/create-output/',\n build_output_scrap = 'build/:id/scrap-outputs/',\n build_output_delete = 'build/:id/delete-outputs/',\n build_order_auto_allocate = 'build/:id/auto-allocate/',\n build_order_allocate = 'build/:id/allocate/',\n build_order_consume = 'build/:id/consume/',\n build_order_deallocate = 'build/:id/unallocate/',\n\n build_line_list = 'build/line/',\n build_item_list = 'build/item/',\n\n bom_list = 'bom/',\n bom_item_validate = 'bom/:id/validate/',\n bom_validate = 'part/:id/bom-validate/',\n bom_substitute_list = 'bom/substitute/',\n\n // Part API endpoints\n part_list = 'part/',\n part_parameter_list = 'part/parameter/',\n part_parameter_template_list = 'part/parameter/template/',\n part_thumbs_list = 'part/thumbs/',\n part_pricing = 'part/:id/pricing/',\n part_requirements = 'part/:id/requirements/',\n part_serial_numbers = 'part/:id/serial-numbers/',\n part_scheduling = 'part/:id/scheduling/',\n part_pricing_internal = 'part/internal-price/',\n part_pricing_sale = 'part/sale-price/',\n part_stocktake_list = 'part/stocktake/',\n category_list = 'part/category/',\n category_tree = 'part/category/tree/',\n category_parameter_list = 'part/category/parameters/',\n related_part_list = 'part/related/',\n part_test_template_list = 'part/test-template/',\n\n // Company API endpoints\n company_list = 'company/',\n contact_list = 'company/contact/',\n address_list = 'company/address/',\n supplier_part_list = 'company/part/',\n supplier_part_pricing_list = 'company/price-break/',\n manufacturer_part_list = 'company/part/manufacturer/',\n manufacturer_part_parameter_list = 'company/part/manufacturer/parameter/',\n\n // Stock location endpoints\n stock_location_list = 'stock/location/',\n stock_location_type_list = 'stock/location-type/',\n stock_location_tree = 'stock/location/tree/',\n\n // Stock item API endpoints\n stock_item_list = 'stock/',\n stock_tracking_list = 'stock/track/',\n stock_test_result_list = 'stock/test/',\n stock_transfer = 'stock/transfer/',\n stock_remove = 'stock/remove/',\n stock_return = 'stock/return/',\n stock_add = 'stock/add/',\n stock_count = 'stock/count/',\n stock_change_status = 'stock/change_status/',\n stock_merge = 'stock/merge/',\n stock_assign = 'stock/assign/',\n stock_status = 'stock/status/',\n stock_install = 'stock/:id/install/',\n stock_uninstall = 'stock/:id/uninstall/',\n stock_serialize = 'stock/:id/serialize/',\n stock_serial_info = 'stock/:id/serial-numbers/',\n\n // Generator API endpoints\n generate_batch_code = 'generate/batch-code/',\n generate_serial_number = 'generate/serial-number/',\n\n // Order API endpoints\n purchase_order_list = 'order/po/',\n purchase_order_issue = 'order/po/:id/issue/',\n purchase_order_hold = 'order/po/:id/hold/',\n purchase_order_cancel = 'order/po/:id/cancel/',\n purchase_order_complete = 'order/po/:id/complete/',\n purchase_order_line_list = 'order/po-line/',\n purchase_order_extra_line_list = 'order/po-extra-line/',\n purchase_order_receive = 'order/po/:id/receive/',\n\n sales_order_list = 'order/so/',\n sales_order_issue = 'order/so/:id/issue/',\n sales_order_hold = 'order/so/:id/hold/',\n sales_order_cancel = 'order/so/:id/cancel/',\n sales_order_ship = 'order/so/:id/ship/',\n sales_order_complete = 'order/so/:id/complete/',\n sales_order_allocate = 'order/so/:id/allocate/',\n sales_order_allocate_serials = 'order/so/:id/allocate-serials/',\n\n sales_order_line_list = 'order/so-line/',\n sales_order_extra_line_list = 'order/so-extra-line/',\n sales_order_allocation_list = 'order/so-allocation/',\n\n sales_order_shipment_list = 'order/so/shipment/',\n sales_order_shipment_complete = 'order/so/shipment/:id/ship/',\n\n return_order_list = 'order/ro/',\n return_order_issue = 'order/ro/:id/issue/',\n return_order_hold = 'order/ro/:id/hold/',\n return_order_cancel = 'order/ro/:id/cancel/',\n return_order_complete = 'order/ro/:id/complete/',\n return_order_receive = 'order/ro/:id/receive/',\n return_order_line_list = 'order/ro-line/',\n return_order_extra_line_list = 'order/ro-extra-line/',\n\n // Template API endpoints\n label_list = 'label/template/',\n label_print = 'label/print/',\n report_list = 'report/template/',\n report_print = 'report/print/',\n report_snippet = 'report/snippet/',\n report_asset = 'report/asset/',\n\n // Plugin API endpoints\n plugin_list = 'plugins/',\n plugin_setting_list = 'plugins/:plugin/settings/',\n plugin_user_setting_list = 'plugins/:plugin/user-settings/',\n plugin_registry_status = 'plugins/status/',\n plugin_install = 'plugins/install/',\n plugin_reload = 'plugins/reload/',\n plugin_activate = 'plugins/:key/activate/',\n plugin_uninstall = 'plugins/:key/uninstall/',\n plugin_admin = 'plugins/:key/admin/',\n\n // User interface plugin endpoints\n plugin_ui_features_list = 'plugins/ui/features/:feature_type/',\n\n // Special plugin endpoints\n plugin_locate_item = 'locate/',\n\n // Machine API endpoints\n machine_types_list = 'machine/types/',\n machine_driver_list = 'machine/drivers/',\n machine_registry_status = 'machine/status/',\n machine_list = 'machine/',\n machine_restart = 'machine/:machine/restart/',\n machine_setting_list = 'machine/:machine/settings/',\n machine_setting_detail = 'machine/:machine/settings/:config_type/',\n\n // Miscellaneous API endpoints\n attachment_list = 'attachment/',\n error_report_list = 'error-report/',\n project_code_list = 'project-code/',\n custom_unit_list = 'units/',\n notes_image_upload = 'notes-image-upload/',\n email_list = 'admin/email/',\n email_test = 'admin/email/test/',\n config_list = 'admin/config/'\n}\n"],"names":["ApiEndpoints","api_server_info","user_list","user_set_password","user_me","user_profile","user_roles","user_token","user_tokens","user_simple_login","user_reset","user_reset_set","auth_pwd_change","auth_login","auth_login_2fa","auth_session","auth_signup","auth_authenticators","auth_recovery","auth_mfa_reauthenticate","auth_totp","auth_trust","auth_reauthenticate","auth_email","auth_email_verify","auth_providers","auth_provider_redirect","auth_config","currency_list","currency_refresh","all_units","task_overview","task_pending_list","task_scheduled_list","task_failed_list","api_search","settings_global_list","settings_user_list","news","global_status","custom_state_list","version","license","group_list","owner_list","ruleset_list","content_type_list","icons","selectionlist_list","selectionlist_detail","barcode","barcode_history","barcode_link","barcode_unlink","barcode_generate","data_output","import_session_list","import_session_accept_fields","import_session_accept_rows","import_session_column_mapping_list","import_session_row_list","notifications_list","notifications_readall","build_order_list","build_order_issue","build_order_cancel","build_order_hold","build_order_complete","build_output_complete","build_output_create","build_output_scrap","build_output_delete","build_order_auto_allocate","build_order_allocate","build_order_consume","build_order_deallocate","build_line_list","build_item_list","bom_list","bom_item_validate","bom_validate","bom_substitute_list","part_list","part_parameter_list","part_parameter_template_list","part_thumbs_list","part_pricing","part_requirements","part_serial_numbers","part_scheduling","part_pricing_internal","part_pricing_sale","part_stocktake_list","category_list","category_tree","category_parameter_list","related_part_list","part_test_template_list","company_list","contact_list","address_list","supplier_part_list","supplier_part_pricing_list","manufacturer_part_list","manufacturer_part_parameter_list","stock_location_list","stock_location_type_list","stock_location_tree","stock_item_list","stock_tracking_list","stock_test_result_list","stock_transfer","stock_remove","stock_return","stock_add","stock_count","stock_change_status","stock_merge","stock_assign","stock_status","stock_install","stock_uninstall","stock_serialize","stock_serial_info","generate_batch_code","generate_serial_number","purchase_order_list","purchase_order_issue","purchase_order_hold","purchase_order_cancel","purchase_order_complete","purchase_order_line_list","purchase_order_extra_line_list","purchase_order_receive","sales_order_list","sales_order_issue","sales_order_hold","sales_order_cancel","sales_order_ship","sales_order_complete","sales_order_allocate","sales_order_allocate_serials","sales_order_line_list","sales_order_extra_line_list","sales_order_allocation_list","sales_order_shipment_list","sales_order_shipment_complete","return_order_list","return_order_issue","return_order_hold","return_order_cancel","return_order_complete","return_order_receive","return_order_line_list","return_order_extra_line_list","label_list","label_print","report_list","report_print","report_snippet","report_asset","plugin_list","plugin_setting_list","plugin_user_setting_list","plugin_registry_status","plugin_install","plugin_reload","plugin_activate","plugin_uninstall","plugin_admin","plugin_ui_features_list","plugin_locate_item","machine_types_list","machine_driver_list","machine_registry_status","machine_list","machine_restart","machine_setting_list","machine_setting_detail","attachment_list","error_report_list","project_code_list","custom_unit_list","notes_image_upload","email_list","email_test","config_list"],"mappings":"AAQYA,IAAAA,iCAAAA,kBAAL;AACLC,gBAAAA,iBAAkB,IAAA;AAGlBC,gBAAAA,WAAY,IAAA;AACZC,gBAAAA,mBAAoB,IAAA;AACpBC,gBAAAA,SAAU,IAAA;AACVC,gBAAAA,cAAe,IAAA;AACfC,gBAAAA,YAAa,IAAA;AACbC,gBAAAA,YAAa,IAAA;AACbC,gBAAAA,aAAc,IAAA;AACdC,gBAAAA,mBAAoB,IAAA;AAGpBC,gBAAAA,YAAa,IAAA;AACbC,gBAAAA,gBAAiB,IAAA;AACjBC,gBAAAA,iBAAkB,IAAA;AAClBC,gBAAAA,YAAa,IAAA;AACbC,gBAAAA,gBAAiB,IAAA;AACjBC,gBAAAA,cAAe,IAAA;AACfC,gBAAAA,aAAc,IAAA;AACdC,gBAAAA,qBAAsB,IAAA;AACtBC,gBAAAA,eAAgB,IAAA;AAChBC,gBAAAA,yBAA0B,IAAA;AAC1BC,gBAAAA,WAAY,IAAA;AACZC,gBAAAA,YAAa,IAAA;AACbC,gBAAAA,qBAAsB,IAAA;AACt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../lib/enums/ApiEndpoints.tsx"],"sourcesContent":["/*\n * Enumeration of available API endpoints.\n *\n * In the cases where endpoints can be accessed with a primary key,\n * the primary key should be appended to the endpoint.\n * The exception to this is when the endpoint provides an :id parameter.\n */\n\nexport enum ApiEndpoints {\n api_server_info = '',\n\n // User API endpoints\n user_list = 'user/',\n user_set_password = 'user/:id/set-password/',\n user_me = 'user/me/',\n user_profile = 'user/profile/',\n user_roles = 'user/roles/',\n user_token = 'user/token/',\n user_tokens = 'user/tokens/',\n user_simple_login = 'email/generate/',\n\n // User auth endpoints\n user_reset = 'auth/v1/auth/password/request',\n user_reset_set = 'auth/v1/auth/password/reset',\n auth_pwd_change = 'auth/v1/account/password/change',\n auth_login = 'auth/v1/auth/login',\n auth_login_2fa = 'auth/v1/auth/2fa/authenticate',\n auth_session = 'auth/v1/auth/session',\n auth_signup = 'auth/v1/auth/signup',\n auth_authenticators = 'auth/v1/account/authenticators',\n auth_recovery = 'auth/v1/account/authenticators/recovery-codes',\n auth_mfa_reauthenticate = 'auth/v1/auth/2fa/reauthenticate',\n auth_totp = 'auth/v1/account/authenticators/totp',\n auth_trust = 'auth/v1/auth/2fa/trust',\n auth_reauthenticate = 'auth/v1/auth/reauthenticate',\n auth_email = 'auth/v1/account/email',\n auth_email_verify = 'auth/v1/auth/email/verify',\n auth_providers = 'auth/v1/account/providers',\n auth_provider_redirect = 'auth/v1/auth/provider/redirect',\n auth_config = 'auth/v1/config',\n\n // Generic API endpoints\n currency_list = 'currency/exchange/',\n currency_refresh = 'currency/refresh/',\n all_units = 'units/all/',\n task_overview = 'background-task/',\n task_pending_list = 'background-task/pending/',\n task_scheduled_list = 'background-task/scheduled/',\n task_failed_list = 'background-task/failed/',\n api_search = 'search/',\n settings_global_list = 'settings/global/',\n settings_user_list = 'settings/user/',\n news = 'news/',\n global_status = 'generic/status/',\n custom_state_list = 'generic/status/custom/',\n version = 'version/',\n license = 'license/',\n group_list = 'user/group/',\n owner_list = 'user/owner/',\n ruleset_list = 'user/ruleset/',\n content_type_list = 'contenttype/',\n icons = 'icons/',\n selectionlist_list = 'selection/',\n selectionlist_detail = 'selection/:id/',\n\n // Barcode API endpoints\n barcode = 'barcode/',\n barcode_history = 'barcode/history/',\n barcode_link = 'barcode/link/',\n barcode_unlink = 'barcode/unlink/',\n barcode_generate = 'barcode/generate/',\n\n // Data output endpoints\n data_output = 'data-output/',\n\n // Data import endpoints\n import_session_list = 'importer/session/',\n import_session_accept_fields = 'importer/session/:id/accept_fields/',\n import_session_accept_rows = 'importer/session/:id/accept_rows/',\n import_session_column_mapping_list = 'importer/column-mapping/',\n import_session_row_list = 'importer/row/',\n\n // Notification endpoints\n notifications_list = 'notifications/',\n notifications_readall = 'notifications/readall/',\n\n // Build API endpoints\n build_order_list = 'build/',\n build_order_issue = 'build/:id/issue/',\n build_order_cancel = 'build/:id/cancel/',\n build_order_hold = 'build/:id/hold/',\n build_order_complete = 'build/:id/finish/',\n build_output_complete = 'build/:id/complete/',\n build_output_create = 'build/:id/create-output/',\n build_output_scrap = 'build/:id/scrap-outputs/',\n build_output_delete = 'build/:id/delete-outputs/',\n build_order_auto_allocate = 'build/:id/auto-allocate/',\n build_order_allocate = 'build/:id/allocate/',\n build_order_consume = 'build/:id/consume/',\n build_order_deallocate = 'build/:id/unallocate/',\n\n build_line_list = 'build/line/',\n build_item_list = 'build/item/',\n\n bom_list = 'bom/',\n bom_item_validate = 'bom/:id/validate/',\n bom_validate = 'part/:id/bom-validate/',\n bom_substitute_list = 'bom/substitute/',\n\n // Part API endpoints\n part_list = 'part/',\n part_parameter_list = 'part/parameter/',\n part_parameter_template_list = 'part/parameter/template/',\n part_thumbs_list = 'part/thumbs/',\n part_pricing = 'part/:id/pricing/',\n part_requirements = 'part/:id/requirements/',\n part_serial_numbers = 'part/:id/serial-numbers/',\n part_scheduling = 'part/:id/scheduling/',\n part_pricing_internal = 'part/internal-price/',\n part_pricing_sale = 'part/sale-price/',\n part_stocktake_list = 'part/stocktake/',\n category_list = 'part/category/',\n category_tree = 'part/category/tree/',\n category_parameter_list = 'part/category/parameters/',\n related_part_list = 'part/related/',\n part_test_template_list = 'part/test-template/',\n\n // Company API endpoints\n company_list = 'company/',\n contact_list = 'company/contact/',\n address_list = 'company/address/',\n supplier_part_list = 'company/part/',\n supplier_part_pricing_list = 'company/price-break/',\n manufacturer_part_list = 'company/part/manufacturer/',\n manufacturer_part_parameter_list = 'company/part/manufacturer/parameter/',\n\n // Stock location endpoints\n stock_location_list = 'stock/location/',\n stock_location_type_list = 'stock/location-type/',\n stock_location_tree = 'stock/location/tree/',\n\n // Stock item API endpoints\n stock_item_list = 'stock/',\n stock_tracking_list = 'stock/track/',\n stock_test_result_list = 'stock/test/',\n stock_transfer = 'stock/transfer/',\n stock_remove = 'stock/remove/',\n stock_return = 'stock/return/',\n stock_add = 'stock/add/',\n stock_count = 'stock/count/',\n stock_change_status = 'stock/change_status/',\n stock_merge = 'stock/merge/',\n stock_assign = 'stock/assign/',\n stock_status = 'stock/status/',\n stock_install = 'stock/:id/install/',\n stock_uninstall = 'stock/:id/uninstall/',\n stock_serialize = 'stock/:id/serialize/',\n stock_serial_info = 'stock/:id/serial-numbers/',\n\n // Generator API endpoints\n generate_batch_code = 'generate/batch-code/',\n generate_serial_number = 'generate/serial-number/',\n\n // Order API endpoints\n purchase_order_list = 'order/po/',\n purchase_order_issue = 'order/po/:id/issue/',\n purchase_order_hold = 'order/po/:id/hold/',\n purchase_order_cancel = 'order/po/:id/cancel/',\n purchase_order_complete = 'order/po/:id/complete/',\n purchase_order_line_list = 'order/po-line/',\n purchase_order_extra_line_list = 'order/po-extra-line/',\n purchase_order_receive = 'order/po/:id/receive/',\n\n sales_order_list = 'order/so/',\n sales_order_issue = 'order/so/:id/issue/',\n sales_order_hold = 'order/so/:id/hold/',\n sales_order_cancel = 'order/so/:id/cancel/',\n sales_order_ship = 'order/so/:id/ship/',\n sales_order_complete = 'order/so/:id/complete/',\n sales_order_allocate = 'order/so/:id/allocate/',\n sales_order_allocate_serials = 'order/so/:id/allocate-serials/',\n\n sales_order_line_list = 'order/so-line/',\n sales_order_extra_line_list = 'order/so-extra-line/',\n sales_order_allocation_list = 'order/so-allocation/',\n\n sales_order_shipment_list = 'order/so/shipment/',\n sales_order_shipment_complete = 'order/so/shipment/:id/ship/',\n\n return_order_list = 'order/ro/',\n return_order_issue = 'order/ro/:id/issue/',\n return_order_hold = 'order/ro/:id/hold/',\n return_order_cancel = 'order/ro/:id/cancel/',\n return_order_complete = 'order/ro/:id/complete/',\n return_order_receive = 'order/ro/:id/receive/',\n return_order_line_list = 'order/ro-line/',\n return_order_extra_line_list = 'order/ro-extra-line/',\n\n // Template API endpoints\n label_list = 'label/template/',\n label_print = 'label/print/',\n report_list = 'report/template/',\n report_print = 'report/print/',\n report_snippet = 'report/snippet/',\n report_asset = 'report/asset/',\n\n // Plugin API endpoints\n plugin_list = 'plugins/',\n plugin_setting_list = 'plugins/:plugin/settings/',\n plugin_user_setting_list = 'plugins/:plugin/user-settings/',\n plugin_registry_status = 'plugins/status/',\n plugin_install = 'plugins/install/',\n plugin_reload = 'plugins/reload/',\n plugin_activate = 'plugins/:key/activate/',\n plugin_uninstall = 'plugins/:key/uninstall/',\n plugin_admin = 'plugins/:key/admin/',\n\n // User interface plugin endpoints\n plugin_ui_features_list = 'plugins/ui/features/:feature_type/',\n\n // Special plugin endpoints\n plugin_locate_item = 'locate/',\n\n // Machine API endpoints\n machine_types_list = 'machine/types/',\n machine_driver_list = 'machine/drivers/',\n machine_registry_status = 'machine/status/',\n machine_list = 'machine/',\n machine_restart = 'machine/:machine/restart/',\n machine_setting_list = 'machine/:machine/settings/',\n machine_setting_detail = 'machine/:machine/settings/:config_type/',\n\n // Miscellaneous API endpoints\n attachment_list = 'attachment/',\n error_report_list = 'error-report/',\n project_code_list = 'project-code/',\n custom_unit_list = 'units/',\n notes_image_upload = 'notes-image-upload/',\n email_list = 'admin/email/',\n email_test = 'admin/email/test/',\n config_list = 'admin/config/'\n}\n"],"names":["ApiEndpoints","api_server_info","user_list","user_set_password","user_me","user_profile","user_roles","user_token","user_tokens","user_simple_login","user_reset","user_reset_set","auth_pwd_change","auth_login","auth_login_2fa","auth_session","auth_signup","auth_authenticators","auth_recovery","auth_mfa_reauthenticate","auth_totp","auth_trust","auth_reauthenticate","auth_email","auth_email_verify","auth_providers","auth_provider_redirect","auth_config","currency_list","currency_refresh","all_units","task_overview","task_pending_list","task_scheduled_list","task_failed_list","api_search","settings_global_list","settings_user_list","news","global_status","custom_state_list","version","license","group_list","owner_list","ruleset_list","content_type_list","icons","selectionlist_list","selectionlist_detail","barcode","barcode_history","barcode_link","barcode_unlink","barcode_generate","data_output","import_session_list","import_session_accept_fields","import_session_accept_rows","import_session_column_mapping_list","import_session_row_list","notifications_list","notifications_readall","build_order_list","build_order_issue","build_order_cancel","build_order_hold","build_order_complete","build_output_complete","build_output_create","build_output_scrap","build_output_delete","build_order_auto_allocate","build_order_allocate","build_order_consume","build_order_deallocate","build_line_list","build_item_list","bom_list","bom_item_validate","bom_validate","bom_substitute_list","part_list","part_parameter_list","part_parameter_template_list","part_thumbs_list","part_pricing","part_requirements","part_serial_numbers","part_scheduling","part_pricing_internal","part_pricing_sale","part_stocktake_list","category_list","category_tree","category_parameter_list","related_part_list","part_test_template_list","company_list","contact_list","address_list","supplier_part_list","supplier_part_pricing_list","manufacturer_part_list","manufacturer_part_parameter_list","stock_location_list","stock_location_type_list","stock_location_tree","stock_item_list","stock_tracking_list","stock_test_result_list","stock_transfer","stock_remove","stock_return","stock_add","stock_count","stock_change_status","stock_merge","stock_assign","stock_status","stock_install","stock_uninstall","stock_serialize","stock_serial_info","generate_batch_code","generate_serial_number","purchase_order_list","purchase_order_issue","purchase_order_hold","purchase_order_cancel","purchase_order_complete","purchase_order_line_list","purchase_order_extra_line_list","purchase_order_receive","sales_order_list","sales_order_issue","sales_order_hold","sales_order_cancel","sales_order_ship","sales_order_complete","sales_order_allocate","sales_order_allocate_serials","sales_order_line_list","sales_order_extra_line_list","sales_order_allocation_list","sales_order_shipment_list","sales_order_shipment_complete","return_order_list","return_order_issue","return_order_hold","return_order_cancel","return_order_complete","return_order_receive","return_order_line_list","return_order_extra_line_list","label_list","label_print","report_list","report_print","report_snippet","report_asset","plugin_list","plugin_setting_list","plugin_user_setting_list","plugin_registry_status","plugin_install","plugin_reload","plugin_activate","plugin_uninstall","plugin_admin","plugin_ui_features_list","plugin_locate_item","machine_types_list","machine_driver_list","machine_registry_status","machine_list","machine_restart","machine_setting_list","machine_setting_detail","attachment_list","error_report_list","project_code_list","custom_unit_list","notes_image_upload","email_list","email_test","config_list"],"mappings":"AAQO,IAAKA,iCAAAA,kBAAL;AACLC,gBAAAA,iBAAAA,IAAkB;AAGlBC,gBAAAA,WAAAA,IAAY;AACZC,gBAAAA,mBAAAA,IAAoB;AACpBC,gBAAAA,SAAAA,IAAU;AACVC,gBAAAA,cAAAA,IAAe;AACfC,gBAAAA,YAAAA,IAAa;AACbC,gBAAAA,YAAAA,IAAa;AACbC,gBAAAA,aAAAA,IAAc;AACdC,gBAAAA,mBAAAA,IAAoB;AAGpBC,gBAAAA,YAAAA,IAAa;AACbC,gBAAAA,gBAAAA,IAAiB;AACjBC,gBAAAA,iBAAAA,IAAkB;AAClBC,gBAAAA,YAAAA,IAAa;AACbC,gBAAAA,gBAAAA,IAAiB;AACjBC,gBAAAA,cAAAA,IAAe;AACfC,gBAAAA,aAAAA,IAAc;AACdC,gBAAAA,qBAAAA,IAAsB;AACtBC,gBAAAA,eAAAA,IAAgB;AAChBC,gBAAAA,yBAAAA,IAA0B;AAC1BC,gBAAAA,WAAAA,IAAY;AACZC,gBAAAA,YAAAA,IAAa;AACbC,gBAAAA,qBAAAA,IAAsB;AACtBC,gBAAAA,YAAAA,IAAa;AACbC,gBAAAA,mBAAAA,IAAoB;AACpBC,gBAAAA,gBAAAA,IAAiB;AACjBC,gBAAAA,wBAAAA,IAAyB;AACzBC,gBAAAA,aAAAA,IAAc;AAGdC,gBAAAA,eAAAA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 @@
|
|
|
1
|
-
{"version":3,"file":"ModelInformation.js","sources":["../../lib/enums/ModelInformation.tsx"],"sourcesContent":["import { t } from '@lingui/core/macro';\nimport type { InvenTreeIconType } from '../types/Icons';\nimport { ApiEndpoints } from './ApiEndpoints';\nimport type { ModelType } from './ModelType';\n\nexport interface ModelInformationInterface {\n label: string;\n label_multiple: string;\n url_overview?: string;\n url_detail?: string;\n api_endpoint: ApiEndpoints;\n admin_url?: string;\n icon: keyof InvenTreeIconType;\n}\n\nexport interface TranslatableModelInformationInterface\n extends Omit<ModelInformationInterface, 'label' | 'label_multiple'> {\n label: () => string;\n label_multiple: () => string;\n}\n\nexport type ModelDict = {\n [key in keyof typeof ModelType]: TranslatableModelInformationInterface;\n};\n\nexport const ModelInformationDict: ModelDict = {\n part: {\n label: () => t`Part`,\n label_multiple: () => t`Parts`,\n url_overview: '/part/category/index/parts',\n url_detail: '/part/:pk/',\n api_endpoint: ApiEndpoints.part_list,\n admin_url: '/part/part/',\n icon: 'part'\n },\n partparametertemplate: {\n label: () => t`Part Parameter Template`,\n label_multiple: () => t`Part Parameter Templates`,\n url_overview: '/settings/admin/part-parameters',\n url_detail: '/partparametertemplate/:pk/',\n api_endpoint: ApiEndpoints.part_parameter_template_list,\n icon: 'test_templates'\n },\n parttesttemplate: {\n label: () => t`Part Test Template`,\n label_multiple: () => t`Part Test Templates`,\n url_detail: '/parttesttemplate/:pk/',\n api_endpoint: ApiEndpoints.part_test_template_list,\n icon: 'test'\n },\n supplierpart: {\n label: () => t`Supplier Part`,\n label_multiple: () => t`Supplier Parts`,\n url_overview: '/purchasing/index/supplier-parts',\n url_detail: '/purchasing/supplier-part/:pk/',\n api_endpoint: ApiEndpoints.supplier_part_list,\n admin_url: '/company/supplierpart/',\n icon: 'supplier_part'\n },\n manufacturerpart: {\n label: () => t`Manufacturer Part`,\n label_multiple: () => t`Manufacturer Parts`,\n url_overview: '/purchasing/index/manufacturer-parts',\n url_detail: '/purchasing/manufacturer-part/:pk/',\n api_endpoint: ApiEndpoints.manufacturer_part_list,\n admin_url: '/company/manufacturerpart/',\n icon: 'manufacturers'\n },\n partcategory: {\n label: () => t`Part Category`,\n label_multiple: () => t`Part Categories`,\n url_overview: '/part/category/parts/subcategories',\n url_detail: '/part/category/:pk/',\n api_endpoint: ApiEndpoints.category_list,\n admin_url: '/part/partcategory/',\n icon: 'category'\n },\n stockitem: {\n label: () => t`Stock Item`,\n label_multiple: () => t`Stock Items`,\n url_overview: '/stock/location/index/stock-items',\n url_detail: '/stock/item/:pk/',\n api_endpoint: ApiEndpoints.stock_item_list,\n admin_url: '/stock/stockitem/',\n icon: 'stock'\n },\n stocklocation: {\n label: () => t`Stock Location`,\n label_multiple: () => t`Stock Locations`,\n url_overview: '/stock/location',\n url_detail: '/stock/location/:pk/',\n api_endpoint: ApiEndpoints.stock_location_list,\n admin_url: '/stock/stocklocation/',\n icon: 'location'\n },\n stocklocationtype: {\n label: () => t`Stock Location Type`,\n label_multiple: () => t`Stock Location Types`,\n api_endpoint: ApiEndpoints.stock_location_type_list,\n icon: 'location'\n },\n stockhistory: {\n label: () => t`Stock History`,\n label_multiple: () => t`Stock Histories`,\n api_endpoint: ApiEndpoints.stock_tracking_list,\n icon: 'history'\n },\n build: {\n label: () => t`Build`,\n label_multiple: () => t`Builds`,\n url_overview: '/manufacturing/index/buildorders/',\n url_detail: '/manufacturing/build-order/:pk/',\n api_endpoint: ApiEndpoints.build_order_list,\n admin_url: '/build/build/',\n icon: 'build_order'\n },\n buildline: {\n label: () => t`Build Line`,\n label_multiple: () => t`Build Lines`,\n url_overview: '/build/line',\n url_detail: '/build/line/:pk/',\n api_endpoint: ApiEndpoints.build_line_list,\n icon: 'build_order'\n },\n builditem: {\n label: () => t`Build Item`,\n label_multiple: () => t`Build Items`,\n api_endpoint: ApiEndpoints.build_item_list,\n icon: 'build_order'\n },\n company: {\n label: () => t`Company`,\n label_multiple: () => t`Companies`,\n url_detail: '/company/:pk/',\n api_endpoint: ApiEndpoints.company_list,\n admin_url: '/company/company/',\n icon: 'building'\n },\n projectcode: {\n label: () => t`Project Code`,\n label_multiple: () => t`Project Codes`,\n url_detail: '/project-code/:pk/',\n api_endpoint: ApiEndpoints.project_code_list,\n icon: 'list_details'\n },\n purchaseorder: {\n label: () => t`Purchase Order`,\n label_multiple: () => t`Purchase Orders`,\n url_overview: '/purchasing/index/purchaseorders',\n url_detail: '/purchasing/purchase-order/:pk/',\n api_endpoint: ApiEndpoints.purchase_order_list,\n admin_url: '/order/purchaseorder/',\n icon: 'purchase_orders'\n },\n purchaseorderlineitem: {\n label: () => t`Purchase Order Line`,\n label_multiple: () => t`Purchase Order Lines`,\n api_endpoint: ApiEndpoints.purchase_order_line_list,\n icon: 'purchase_orders'\n },\n salesorder: {\n label: () => t`Sales Order`,\n label_multiple: () => t`Sales Orders`,\n url_overview: '/sales/index/salesorders',\n url_detail: '/sales/sales-order/:pk/',\n api_endpoint: ApiEndpoints.sales_order_list,\n admin_url: '/order/salesorder/',\n icon: 'sales_orders'\n },\n salesordershipment: {\n label: () => t`Sales Order Shipment`,\n label_multiple: () => t`Sales Order Shipments`,\n url_detail: '/sales/shipment/:pk/',\n api_endpoint: ApiEndpoints.sales_order_shipment_list,\n icon: 'sales_orders'\n },\n returnorder: {\n label: () => t`Return Order`,\n label_multiple: () => t`Return Orders`,\n url_overview: '/sales/index/returnorders',\n url_detail: '/sales/return-order/:pk/',\n api_endpoint: ApiEndpoints.return_order_list,\n admin_url: '/order/returnorder/',\n icon: 'return_orders'\n },\n returnorderlineitem: {\n label: () => t`Return Order Line Item`,\n label_multiple: () => t`Return Order Line Items`,\n api_endpoint: ApiEndpoints.return_order_line_list,\n icon: 'return_orders'\n },\n address: {\n label: () => t`Address`,\n label_multiple: () => t`Addresses`,\n url_detail: '/address/:pk/',\n api_endpoint: ApiEndpoints.address_list,\n icon: 'address'\n },\n contact: {\n label: () => t`Contact`,\n label_multiple: () => t`Contacts`,\n url_detail: '/contact/:pk/',\n api_endpoint: ApiEndpoints.contact_list,\n icon: 'group'\n },\n owner: {\n label: () => t`Owner`,\n label_multiple: () => t`Owners`,\n url_detail: '/owner/:pk/',\n api_endpoint: ApiEndpoints.owner_list,\n icon: 'group'\n },\n user: {\n label: () => t`User`,\n label_multiple: () => t`Users`,\n url_detail: '/core/user/:pk/',\n api_endpoint: ApiEndpoints.user_list,\n icon: 'user'\n },\n group: {\n label: () => t`Group`,\n label_multiple: () => t`Groups`,\n url_detail: '/core/group/:pk/',\n api_endpoint: ApiEndpoints.group_list,\n admin_url: '/auth/group/',\n icon: 'group'\n },\n importsession: {\n label: () => t`Import Session`,\n label_multiple: () => t`Import Sessions`,\n url_overview: '/settings/admin/import',\n url_detail: '/import/:pk/',\n api_endpoint: ApiEndpoints.import_session_list,\n icon: 'import'\n },\n labeltemplate: {\n label: () => t`Label Template`,\n label_multiple: () => t`Label Templates`,\n url_overview: '/settings/admin/labels',\n url_detail: '/settings/admin/labels/:pk/',\n api_endpoint: ApiEndpoints.label_list,\n icon: 'labels'\n },\n reporttemplate: {\n label: () => t`Report Template`,\n label_multiple: () => t`Report Templates`,\n url_overview: '/settings/admin/reports',\n url_detail: '/settings/admin/reports/:pk/',\n api_endpoint: ApiEndpoints.report_list,\n icon: 'reports'\n },\n pluginconfig: {\n label: () => t`Plugin Configuration`,\n label_multiple: () => t`Plugin Configurations`,\n url_overview: '/settings/admin/plugin',\n url_detail: '/settings/admin/plugin/:pk/',\n api_endpoint: ApiEndpoints.plugin_list,\n icon: 'plugin'\n },\n contenttype: {\n label: () => t`Content Type`,\n label_multiple: () => t`Content Types`,\n api_endpoint: ApiEndpoints.content_type_list,\n icon: 'list_details'\n },\n selectionlist: {\n label: () => t`Selection List`,\n label_multiple: () => t`Selection Lists`,\n url_overview: '/settings/admin/part-parameters',\n api_endpoint: ApiEndpoints.selectionlist_list,\n icon: 'list_details'\n },\n error: {\n label: () => t`Error`,\n label_multiple: () => t`Errors`,\n api_endpoint: ApiEndpoints.error_report_list,\n url_overview: '/settings/admin/errors',\n url_detail: '/settings/admin/errors/:pk/',\n icon: 'exclamation'\n }\n};\n"],"names":["ModelInformationDict","part","label","_i18n","_","id","label_multiple","url_overview","url_detail","api_endpoint","ApiEndpoints","part_list","admin_url","icon","partparametertemplate","part_parameter_template_list","parttesttemplate","part_test_template_list","supplierpart","supplier_part_list","manufacturerpart","manufacturer_part_list","partcategory","category_list","stockitem","stock_item_list","stocklocation","stock_location_list","stocklocationtype","stock_location_type_list","stockhistory","stock_tracking_list","build","build_order_list","buildline","build_line_list","builditem","build_item_list","company","company_list","projectcode","project_code_list","purchaseorder","purchase_order_list","purchaseorderlineitem","purchase_order_line_list","salesorder","sales_order_list","salesordershipment","sales_order_shipment_list","returnorder","return_order_list","returnorderlineitem","return_order_line_list","address","address_list","contact","contact_list","owner","owner_list","user","user_list","group","group_list","importsession","import_session_list","labeltemplate","label_list","reporttemplate","report_list","pluginconfig","plugin_list","contenttype","content_type_list","selectionlist","selectionlist_list","error","error_report_list"],"mappings":";AAAA,MAAA,QAAA,OAAA,YAAA,EAAA;AAyBO,MAAMA,uBAAkC;AAAA,EAC7CC,MAAM;AAAA,IACJC,OAAOA,MAAAC,MAAAC;AAAAA;AAAAA,MAAM;AAAA,QAAAC,IAAA;AAAA,MAAA;AAAA,IAAO;AAAA,IACpBC,gBAAgBA,MAAAH,MAAAC;AAAAA;AAAAA,MAAM;AAAA,QAAAC,IAAA;AAAA,MAAA;AAAA,IAAQ;AAAA,IAC9BE,cAAc;AAAA,IACdC,YAAY;AAAA,IACZC,cAAcC,aAAaC;AAAAA,IAC3BC,WAAW;AAAA,IACXC,MAAM;AAAA,EACR;AAAA,EACAC,uBAAuB;AAAA,IACrBZ,OAAOA,MAAAC,MAAAC;AAAAA;AAAAA,MAAM;AAAA,QAAAC,IAAA;AAAA,MAAA;AAAA,IAA0B;AAAA,IACvCC,gBAAgBA,MAAAH,MAAAC;AAAAA;AAAAA,MAAM;AAAA,QAAAC,IAAA;AAAA,MAAA;AAAA,IAA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ModelInformation.js","sources":["../../lib/enums/ModelInformation.tsx"],"sourcesContent":["import { t } from '@lingui/core/macro';\nimport type { InvenTreeIconType } from '../types/Icons';\nimport { ApiEndpoints } from './ApiEndpoints';\nimport type { ModelType } from './ModelType';\n\nexport interface ModelInformationInterface {\n label: string;\n label_multiple: string;\n url_overview?: string;\n url_detail?: string;\n api_endpoint: ApiEndpoints;\n admin_url?: string;\n icon: keyof InvenTreeIconType;\n}\n\nexport interface TranslatableModelInformationInterface\n extends Omit<ModelInformationInterface, 'label' | 'label_multiple'> {\n label: () => string;\n label_multiple: () => string;\n}\n\nexport type ModelDict = {\n [key in keyof typeof ModelType]: TranslatableModelInformationInterface;\n};\n\nexport const ModelInformationDict: ModelDict = {\n part: {\n label: () => t`Part`,\n label_multiple: () => t`Parts`,\n url_overview: '/part/category/index/parts',\n url_detail: '/part/:pk/',\n api_endpoint: ApiEndpoints.part_list,\n admin_url: '/part/part/',\n icon: 'part'\n },\n partparametertemplate: {\n label: () => t`Part Parameter Template`,\n label_multiple: () => t`Part Parameter Templates`,\n url_overview: '/settings/admin/part-parameters',\n url_detail: '/partparametertemplate/:pk/',\n api_endpoint: ApiEndpoints.part_parameter_template_list,\n icon: 'test_templates'\n },\n parttesttemplate: {\n label: () => t`Part Test Template`,\n label_multiple: () => t`Part Test Templates`,\n url_detail: '/parttesttemplate/:pk/',\n api_endpoint: ApiEndpoints.part_test_template_list,\n icon: 'test'\n },\n supplierpart: {\n label: () => t`Supplier Part`,\n label_multiple: () => t`Supplier Parts`,\n url_overview: '/purchasing/index/supplier-parts',\n url_detail: '/purchasing/supplier-part/:pk/',\n api_endpoint: ApiEndpoints.supplier_part_list,\n admin_url: '/company/supplierpart/',\n icon: 'supplier_part'\n },\n manufacturerpart: {\n label: () => t`Manufacturer Part`,\n label_multiple: () => t`Manufacturer Parts`,\n url_overview: '/purchasing/index/manufacturer-parts',\n url_detail: '/purchasing/manufacturer-part/:pk/',\n api_endpoint: ApiEndpoints.manufacturer_part_list,\n admin_url: '/company/manufacturerpart/',\n icon: 'manufacturers'\n },\n partcategory: {\n label: () => t`Part Category`,\n label_multiple: () => t`Part Categories`,\n url_overview: '/part/category/parts/subcategories',\n url_detail: '/part/category/:pk/',\n api_endpoint: ApiEndpoints.category_list,\n admin_url: '/part/partcategory/',\n icon: 'category'\n },\n stockitem: {\n label: () => t`Stock Item`,\n label_multiple: () => t`Stock Items`,\n url_overview: '/stock/location/index/stock-items',\n url_detail: '/stock/item/:pk/',\n api_endpoint: ApiEndpoints.stock_item_list,\n admin_url: '/stock/stockitem/',\n icon: 'stock'\n },\n stocklocation: {\n label: () => t`Stock Location`,\n label_multiple: () => t`Stock Locations`,\n url_overview: '/stock/location',\n url_detail: '/stock/location/:pk/',\n api_endpoint: ApiEndpoints.stock_location_list,\n admin_url: '/stock/stocklocation/',\n icon: 'location'\n },\n stocklocationtype: {\n label: () => t`Stock Location Type`,\n label_multiple: () => t`Stock Location Types`,\n api_endpoint: ApiEndpoints.stock_location_type_list,\n icon: 'location'\n },\n stockhistory: {\n label: () => t`Stock History`,\n label_multiple: () => t`Stock Histories`,\n api_endpoint: ApiEndpoints.stock_tracking_list,\n icon: 'history'\n },\n build: {\n label: () => t`Build`,\n label_multiple: () => t`Builds`,\n url_overview: '/manufacturing/index/buildorders/',\n url_detail: '/manufacturing/build-order/:pk/',\n api_endpoint: ApiEndpoints.build_order_list,\n admin_url: '/build/build/',\n icon: 'build_order'\n },\n buildline: {\n label: () => t`Build Line`,\n label_multiple: () => t`Build Lines`,\n url_overview: '/build/line',\n url_detail: '/build/line/:pk/',\n api_endpoint: ApiEndpoints.build_line_list,\n icon: 'build_order'\n },\n builditem: {\n label: () => t`Build Item`,\n label_multiple: () => t`Build Items`,\n api_endpoint: ApiEndpoints.build_item_list,\n icon: 'build_order'\n },\n company: {\n label: () => t`Company`,\n label_multiple: () => t`Companies`,\n url_detail: '/company/:pk/',\n api_endpoint: ApiEndpoints.company_list,\n admin_url: '/company/company/',\n icon: 'building'\n },\n projectcode: {\n label: () => t`Project Code`,\n label_multiple: () => t`Project Codes`,\n url_detail: '/project-code/:pk/',\n api_endpoint: ApiEndpoints.project_code_list,\n icon: 'list_details'\n },\n purchaseorder: {\n label: () => t`Purchase Order`,\n label_multiple: () => t`Purchase Orders`,\n url_overview: '/purchasing/index/purchaseorders',\n url_detail: '/purchasing/purchase-order/:pk/',\n api_endpoint: ApiEndpoints.purchase_order_list,\n admin_url: '/order/purchaseorder/',\n icon: 'purchase_orders'\n },\n purchaseorderlineitem: {\n label: () => t`Purchase Order Line`,\n label_multiple: () => t`Purchase Order Lines`,\n api_endpoint: ApiEndpoints.purchase_order_line_list,\n icon: 'purchase_orders'\n },\n salesorder: {\n label: () => t`Sales Order`,\n label_multiple: () => t`Sales Orders`,\n url_overview: '/sales/index/salesorders',\n url_detail: '/sales/sales-order/:pk/',\n api_endpoint: ApiEndpoints.sales_order_list,\n admin_url: '/order/salesorder/',\n icon: 'sales_orders'\n },\n salesordershipment: {\n label: () => t`Sales Order Shipment`,\n label_multiple: () => t`Sales Order Shipments`,\n url_detail: '/sales/shipment/:pk/',\n api_endpoint: ApiEndpoints.sales_order_shipment_list,\n icon: 'sales_orders'\n },\n returnorder: {\n label: () => t`Return Order`,\n label_multiple: () => t`Return Orders`,\n url_overview: '/sales/index/returnorders',\n url_detail: '/sales/return-order/:pk/',\n api_endpoint: ApiEndpoints.return_order_list,\n admin_url: '/order/returnorder/',\n icon: 'return_orders'\n },\n returnorderlineitem: {\n label: () => t`Return Order Line Item`,\n label_multiple: () => t`Return Order Line Items`,\n api_endpoint: ApiEndpoints.return_order_line_list,\n icon: 'return_orders'\n },\n address: {\n label: () => t`Address`,\n label_multiple: () => t`Addresses`,\n url_detail: '/address/:pk/',\n api_endpoint: ApiEndpoints.address_list,\n icon: 'address'\n },\n contact: {\n label: () => t`Contact`,\n label_multiple: () => t`Contacts`,\n url_detail: '/contact/:pk/',\n api_endpoint: ApiEndpoints.contact_list,\n icon: 'group'\n },\n owner: {\n label: () => t`Owner`,\n label_multiple: () => t`Owners`,\n url_detail: '/owner/:pk/',\n api_endpoint: ApiEndpoints.owner_list,\n icon: 'group'\n },\n user: {\n label: () => t`User`,\n label_multiple: () => t`Users`,\n url_detail: '/core/user/:pk/',\n api_endpoint: ApiEndpoints.user_list,\n icon: 'user'\n },\n group: {\n label: () => t`Group`,\n label_multiple: () => t`Groups`,\n url_detail: '/core/group/:pk/',\n api_endpoint: ApiEndpoints.group_list,\n admin_url: '/auth/group/',\n icon: 'group'\n },\n importsession: {\n label: () => t`Import Session`,\n label_multiple: () => t`Import Sessions`,\n url_overview: '/settings/admin/import',\n url_detail: '/import/:pk/',\n api_endpoint: ApiEndpoints.import_session_list,\n icon: 'import'\n },\n labeltemplate: {\n label: () => t`Label Template`,\n label_multiple: () => t`Label Templates`,\n url_overview: '/settings/admin/labels',\n url_detail: '/settings/admin/labels/:pk/',\n api_endpoint: ApiEndpoints.label_list,\n icon: 'labels'\n },\n reporttemplate: {\n label: () => t`Report Template`,\n label_multiple: () => t`Report Templates`,\n url_overview: '/settings/admin/reports',\n url_detail: '/settings/admin/reports/:pk/',\n api_endpoint: ApiEndpoints.report_list,\n icon: 'reports'\n },\n pluginconfig: {\n label: () => t`Plugin Configuration`,\n label_multiple: () => t`Plugin Configurations`,\n url_overview: '/settings/admin/plugin',\n url_detail: '/settings/admin/plugin/:pk/',\n api_endpoint: ApiEndpoints.plugin_list,\n icon: 'plugin'\n },\n contenttype: {\n label: () => t`Content Type`,\n label_multiple: () => t`Content Types`,\n api_endpoint: ApiEndpoints.content_type_list,\n icon: 'list_details'\n },\n selectionlist: {\n label: () => t`Selection List`,\n label_multiple: () => t`Selection Lists`,\n url_overview: '/settings/admin/part-parameters',\n api_endpoint: ApiEndpoints.selectionlist_list,\n icon: 'list_details'\n },\n error: {\n label: () => t`Error`,\n label_multiple: () => t`Errors`,\n api_endpoint: ApiEndpoints.error_report_list,\n url_overview: '/settings/admin/errors',\n url_detail: '/settings/admin/errors/:pk/',\n icon: 'exclamation'\n }\n};\n"],"names":["ModelInformationDict","part","label","_i18n","_","id","label_multiple","url_overview","url_detail","api_endpoint","ApiEndpoints","part_list","admin_url","icon","partparametertemplate","part_parameter_template_list","parttesttemplate","part_test_template_list","supplierpart","supplier_part_list","manufacturerpart","manufacturer_part_list","partcategory","category_list","stockitem","stock_item_list","stocklocation","stock_location_list","stocklocationtype","stock_location_type_list","stockhistory","stock_tracking_list","build","build_order_list","buildline","build_line_list","builditem","build_item_list","company","company_list","projectcode","project_code_list","purchaseorder","purchase_order_list","purchaseorderlineitem","purchase_order_line_list","salesorder","sales_order_list","salesordershipment","sales_order_shipment_list","returnorder","return_order_list","returnorderlineitem","return_order_line_list","address","address_list","contact","contact_list","owner","owner_list","user","user_list","group","group_list","importsession","import_session_list","labeltemplate","label_list","reporttemplate","report_list","pluginconfig","plugin_list","contenttype","content_type_list","selectionlist","selectionlist_list","error","error_report_list"],"mappings":";AAAA,MAAA,QAAA,OAAA,YAAA,EAAA;AAyBO,MAAMA,uBAAkC;AAAA,EAC7CC,MAAM;AAAA,IACJC,OAAOA,MAAAC,MAAAC;AAAAA;AAAAA,MAAM;AAAA,QAAAC,IAAA;AAAA,MAAA;AAAA,IAAM;AAAA,IACnBC,gBAAgBA,MAAAH,MAAAC;AAAAA;AAAAA,MAAM;AAAA,QAAAC,IAAA;AAAA,MAAA;AAAA,IAAO;AAAA,IAC7BE,cAAc;AAAA,IACdC,YAAY;AAAA,IACZC,cAAcC,aAAaC;AAAAA,IAC3BC,WAAW;AAAA,IACXC,MAAM;AAAA,EAAA;AAAA,EAERC,uBAAuB;AAAA,IACrBZ,OAAOA,MAAAC,MAAAC;AAAAA;AAAAA,MAAM;AAAA,QAAAC,IAAA;AAAA,MAAA;AAAA,IAAyB;AAAA,IACtCC,gBAAgBA,MAAAH,MAAAC;AAAAA;AAAAA,MAAM;AAAA,QAAAC,IAAA;AAAA,MAAA;AAAA,IAA0B;AAAA,IAChDE,cAAc;AAAA,IAC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|
-
{"version":3,"file":"ModelType.js","sources":["../../lib/enums/ModelType.tsx"],"sourcesContent":["/*\n * Enumeration of available API model types\n */\nexport enum ModelType {\n part = 'part',\n supplierpart = 'supplierpart',\n manufacturerpart = 'manufacturerpart',\n partcategory = 'partcategory',\n partparametertemplate = 'partparametertemplate',\n parttesttemplate = 'parttesttemplate',\n projectcode = 'projectcode',\n stockitem = 'stockitem',\n stocklocation = 'stocklocation',\n stocklocationtype = 'stocklocationtype',\n stockhistory = 'stockhistory',\n build = 'build',\n buildline = 'buildline',\n builditem = 'builditem',\n company = 'company',\n purchaseorder = 'purchaseorder',\n purchaseorderlineitem = 'purchaseorderlineitem',\n salesorder = 'salesorder',\n salesordershipment = 'salesordershipment',\n returnorder = 'returnorder',\n returnorderlineitem = 'returnorderlineitem',\n importsession = 'importsession',\n address = 'address',\n contact = 'contact',\n owner = 'owner',\n user = 'user',\n group = 'group',\n reporttemplate = 'reporttemplate',\n labeltemplate = 'labeltemplate',\n pluginconfig = 'pluginconfig',\n contenttype = 'contenttype',\n selectionlist = 'selectionlist',\n error = 'error'\n}\n"],"names":["ModelType","part","supplierpart","manufacturerpart","partcategory","partparametertemplate","parttesttemplate","projectcode","stockitem","stocklocation","stocklocationtype","stockhistory","build","buildline","builditem","company","purchaseorder","purchaseorderlineitem","salesorder","salesordershipment","returnorder","returnorderlineitem","importsession","address","contact","owner","user","group","reporttemplate","labeltemplate","pluginconfig","contenttype","selectionlist","error"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModelType.js","sources":["../../lib/enums/ModelType.tsx"],"sourcesContent":["/*\n * Enumeration of available API model types\n */\nexport enum ModelType {\n part = 'part',\n supplierpart = 'supplierpart',\n manufacturerpart = 'manufacturerpart',\n partcategory = 'partcategory',\n partparametertemplate = 'partparametertemplate',\n parttesttemplate = 'parttesttemplate',\n projectcode = 'projectcode',\n stockitem = 'stockitem',\n stocklocation = 'stocklocation',\n stocklocationtype = 'stocklocationtype',\n stockhistory = 'stockhistory',\n build = 'build',\n buildline = 'buildline',\n builditem = 'builditem',\n company = 'company',\n purchaseorder = 'purchaseorder',\n purchaseorderlineitem = 'purchaseorderlineitem',\n salesorder = 'salesorder',\n salesordershipment = 'salesordershipment',\n returnorder = 'returnorder',\n returnorderlineitem = 'returnorderlineitem',\n importsession = 'importsession',\n address = 'address',\n contact = 'contact',\n owner = 'owner',\n user = 'user',\n group = 'group',\n reporttemplate = 'reporttemplate',\n labeltemplate = 'labeltemplate',\n pluginconfig = 'pluginconfig',\n contenttype = 'contenttype',\n selectionlist = 'selectionlist',\n error = 'error'\n}\n"],"names":["ModelType","part","supplierpart","manufacturerpart","partcategory","partparametertemplate","parttesttemplate","projectcode","stockitem","stocklocation","stocklocationtype","stockhistory","build","buildline","builditem","company","purchaseorder","purchaseorderlineitem","salesorder","salesordershipment","returnorder","returnorderlineitem","importsession","address","contact","owner","user","group","reporttemplate","labeltemplate","pluginconfig","contenttype","selectionlist","error"],"mappings":"AAGO,IAAKA,8BAAAA,eAAL;AACLC,aAAAA,MAAAA,IAAO;AACPC,aAAAA,cAAAA,IAAe;AACfC,aAAAA,kBAAAA,IAAmB;AACnBC,aAAAA,cAAAA,IAAe;AACfC,aAAAA,uBAAAA,IAAwB;AACxBC,aAAAA,kBAAAA,IAAmB;AACnBC,aAAAA,aAAAA,IAAc;AACdC,aAAAA,WAAAA,IAAY;AACZC,aAAAA,eAAAA,IAAgB;AAChBC,aAAAA,mBAAAA,IAAoB;AACpBC,aAAAA,cAAAA,IAAe;AACfC,aAAAA,OAAAA,IAAQ;AACRC,aAAAA,WAAAA,IAAY;AACZC,aAAAA,WAAAA,IAAY;AACZC,aAAAA,SAAAA,IAAU;AACVC,aAAAA,eAAAA,IAAgB;AAChBC,aAAAA,uBAAAA,IAAwB;AACxBC,aAAAA,YAAAA,IAAa;AACbC,aAAAA,oBAAAA,IAAqB;AACrBC,aAAAA,aAAAA,IAAc;AACdC,aAAAA,qBAAAA,IAAsB;AACtBC,aAAAA,eAAAA,IAAgB;AAChBC,aAAAA,SAAAA,IAAU;AACVC,aAAAA,SAAAA,IAAU;AACVC,aAAAA,OAAAA,IAAQ;AACRC,aAAAA,MAAAA,IAAO;AACPC,aAAAA,OAAAA,IAAQ;AACRC,aAAAA,gBAAAA,IAAiB;AACjBC,aAAAA,eAAAA,IAAgB;AAChBC,aAAAA,cAAAA,IAAe;AACfC,aAAAA,aAAAA,IAAc;AACdC,aAAAA,eAAAA,IAAgB;AAChBC,aAAAA,OAAAA,IAAQ;AAjCEjC,SAAAA;AAAAA,GAAAA,aAAAA,CAAAA,CAAAA;"}
|
package/dist/enums/Roles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Roles.js","sources":["../../lib/enums/Roles.tsx"],"sourcesContent":["import { t } from '@lingui/core/macro';\n\n/*\n * Enumeration of available user role groups\n */\nexport enum UserRoles {\n admin = 'admin',\n build = 'build',\n part = 'part',\n part_category = 'part_category',\n purchase_order = 'purchase_order',\n return_order = 'return_order',\n sales_order = 'sales_order',\n stock = 'stock',\n stock_location = 'stock_location'\n}\n\n/*\n * Enumeration of available user permissions within each role group\n */\nexport enum UserPermissions {\n view = 'view',\n add = 'add',\n change = 'change',\n delete = 'delete'\n}\n\nexport function userRoleLabel(role: UserRoles): string {\n switch (role) {\n case UserRoles.admin:\n return t`Admin`;\n case UserRoles.build:\n return t`Build Orders`;\n case UserRoles.part:\n return t`Parts`;\n case UserRoles.part_category:\n return t`Part Categories`;\n case UserRoles.purchase_order:\n return t`Purchase Orders`;\n case UserRoles.return_order:\n return t`Return Orders`;\n case UserRoles.sales_order:\n return t`Sales Orders`;\n case UserRoles.stock:\n return t`Stock Items`;\n case UserRoles.stock_location:\n return t`Stock Location`;\n default:\n return role as string;\n }\n}\n"],"names":["UserRoles","admin","build","part","part_category","purchase_order","return_order","sales_order","stock","stock_location","UserPermissions","view","add","change","delete"],"mappings":"AAAA,OAAA,YAAA,EAAA;
|
|
1
|
+
{"version":3,"file":"Roles.js","sources":["../../lib/enums/Roles.tsx"],"sourcesContent":["import { t } from '@lingui/core/macro';\n\n/*\n * Enumeration of available user role groups\n */\nexport enum UserRoles {\n admin = 'admin',\n build = 'build',\n part = 'part',\n part_category = 'part_category',\n purchase_order = 'purchase_order',\n return_order = 'return_order',\n sales_order = 'sales_order',\n stock = 'stock',\n stock_location = 'stock_location'\n}\n\n/*\n * Enumeration of available user permissions within each role group\n */\nexport enum UserPermissions {\n view = 'view',\n add = 'add',\n change = 'change',\n delete = 'delete'\n}\n\nexport function userRoleLabel(role: UserRoles): string {\n switch (role) {\n case UserRoles.admin:\n return t`Admin`;\n case UserRoles.build:\n return t`Build Orders`;\n case UserRoles.part:\n return t`Parts`;\n case UserRoles.part_category:\n return t`Part Categories`;\n case UserRoles.purchase_order:\n return t`Purchase Orders`;\n case UserRoles.return_order:\n return t`Return Orders`;\n case UserRoles.sales_order:\n return t`Sales Orders`;\n case UserRoles.stock:\n return t`Stock Items`;\n case UserRoles.stock_location:\n return t`Stock Location`;\n default:\n return role as string;\n }\n}\n"],"names":["UserRoles","admin","build","part","part_category","purchase_order","return_order","sales_order","stock","stock_location","UserPermissions","view","add","change","delete"],"mappings":"AAAA,OAAA,YAAA,EAAA;AAKO,IAAKA,8BAAAA,eAAL;AACLC,aAAAA,OAAAA,IAAQ;AACRC,aAAAA,OAAAA,IAAQ;AACRC,aAAAA,MAAAA,IAAO;AACPC,aAAAA,eAAAA,IAAgB;AAChBC,aAAAA,gBAAAA,IAAiB;AACjBC,aAAAA,cAAAA,IAAe;AACfC,aAAAA,aAAAA,IAAc;AACdC,aAAAA,OAAAA,IAAQ;AACRC,aAAAA,gBAAAA,IAAiB;AATPT,SAAAA;AAAAA,GAAAA,aAAAA,CAAAA,CAAAA;AAeL,IAAKU,oCAAAA,qBAAL;AACLC,mBAAAA,MAAAA,IAAO;AACPC,mBAAAA,KAAAA,IAAM;AACNC,mBAAAA,QAAAA,IAAS;AACTC,mBAAAA,QAAAA,IAAS;AAJCJ,SAAAA;AAAAA,GAAAA,mBAAAA,CAAAA,CAAAA;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Api.js","sources":["../../lib/functions/Api.tsx"],"sourcesContent":["import type { ApiEndpoints } from '../enums/ApiEndpoints';\nimport type { PathParams } from '../types/Core';\n\n/**\n * Function to return the API prefix.\n * For now it is fixed, but may be configurable in the future.\n */\nexport function apiPrefix(): string {\n return '/api/';\n}\n\n/**\n * Construct an API URL with an endpoint and (optional) pk value\n */\nexport function apiUrl(\n endpoint: ApiEndpoints | string,\n pk?: any,\n pathParams?: PathParams\n): string {\n let _url = endpoint;\n\n // If the URL does not start with a '/', add the API prefix\n if (!_url.startsWith('/')) {\n _url = apiPrefix() + _url;\n }\n\n if (_url && pk) {\n if (_url.indexOf(':id') >= 0) {\n _url = _url.replace(':id', `${pk}`);\n } else {\n _url += `${pk}/`;\n }\n }\n\n if (_url && pathParams) {\n for (const key in pathParams) {\n _url = _url.replace(`:${key}`, `${pathParams[key]}`);\n }\n }\n\n return _url;\n}\n"],"names":["apiPrefix","apiUrl","endpoint","pk","pathParams","_url","startsWith","indexOf","replace","key"],"mappings":"AAOO,SAASA,YAAoB;
|
|
1
|
+
{"version":3,"file":"Api.js","sources":["../../lib/functions/Api.tsx"],"sourcesContent":["import type { ApiEndpoints } from '../enums/ApiEndpoints';\nimport type { PathParams } from '../types/Core';\n\n/**\n * Function to return the API prefix.\n * For now it is fixed, but may be configurable in the future.\n */\nexport function apiPrefix(): string {\n return '/api/';\n}\n\n/**\n * Construct an API URL with an endpoint and (optional) pk value\n */\nexport function apiUrl(\n endpoint: ApiEndpoints | string,\n pk?: any,\n pathParams?: PathParams\n): string {\n let _url = endpoint;\n\n // If the URL does not start with a '/', add the API prefix\n if (!_url.startsWith('/')) {\n _url = apiPrefix() + _url;\n }\n\n if (_url && pk) {\n if (_url.indexOf(':id') >= 0) {\n _url = _url.replace(':id', `${pk}`);\n } else {\n _url += `${pk}/`;\n }\n }\n\n if (_url && pathParams) {\n for (const key in pathParams) {\n _url = _url.replace(`:${key}`, `${pathParams[key]}`);\n }\n }\n\n return _url;\n}\n"],"names":["apiPrefix","apiUrl","endpoint","pk","pathParams","_url","startsWith","indexOf","replace","key"],"mappings":"AAOO,SAASA,YAAoB;AAClC,SAAO;AACT;AAKO,SAASC,OACdC,UACAC,IACAC,YACQ;AACR,MAAIC,OAAOH;AAGX,MAAI,CAACG,KAAKC,WAAW,GAAG,GAAG;AACzBD,WAAOL,cAAcK;AAAAA,EACvB;AAEA,MAAIA,QAAQF,IAAI;AACd,QAAIE,KAAKE,QAAQ,KAAK,KAAK,GAAG;AAC5BF,aAAOA,KAAKG,QAAQ,OAAO,GAAGL,EAAE,EAAE;AAAA,IACpC,OAAO;AACLE,cAAQ,GAAGF,EAAE;AAAA,IACf;AAAA,EACF;AAEA,MAAIE,QAAQD,YAAY;AACtB,eAAWK,OAAOL,YAAY;AAC5BC,aAAOA,KAAKG,QAAQ,IAAIC,GAAG,IAAI,GAAGL,WAAWK,GAAG,CAAC,EAAE;AAAA,IACrD;AAAA,EACF;AAEA,SAAOJ;AACT;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Conversion.js","sources":["../../lib/functions/Conversion.tsx"],"sourcesContent":["/*\n * Determine if the provided value is \"true\":\n *\n * Many settings stored on the server are true/false,\n * but stored as string values, \"true\" / \"false\".\n *\n * This function provides a wrapper to ensure that the return type is boolean\n */\nexport function isTrue(value: any): boolean {\n if (value === true) {\n return true;\n }\n\n if (value === false) {\n return false;\n }\n\n const s = String(value).trim().toLowerCase();\n\n return ['true', 'yes', '1', 'on', 't', 'y'].includes(s);\n}\n\n/*\n * Resolve a nested item in an object.\n * Returns the resolved item, if it exists.\n *\n * e.g. resolveItem(data, \"sub.key.accessor\")\n *\n * Allows for retrieval of nested items in an object.\n */\nexport function resolveItem(obj: any, path: string): any {\n const properties = path.split('.');\n return properties.reduce((prev, curr) => prev?.[curr], obj);\n}\n\nexport function identifierString(value: string): string {\n // Convert an input string e.g. \"Hello World\" into a string that can be used as an identifier, e.g. \"hello-world\"\n\n value = value || '-';\n\n return value.toLowerCase().replace(/[^a-z0-9]/g, '-');\n}\n"],"names":["isTrue","value","s","String","trim","toLowerCase","includes","identifierString","replace"],"mappings":"AAQO,SAASA,OAAOC,OAAqB;AAC1C,MAAIA,UAAU,MAAM;
|
|
1
|
+
{"version":3,"file":"Conversion.js","sources":["../../lib/functions/Conversion.tsx"],"sourcesContent":["/*\n * Determine if the provided value is \"true\":\n *\n * Many settings stored on the server are true/false,\n * but stored as string values, \"true\" / \"false\".\n *\n * This function provides a wrapper to ensure that the return type is boolean\n */\nexport function isTrue(value: any): boolean {\n if (value === true) {\n return true;\n }\n\n if (value === false) {\n return false;\n }\n\n const s = String(value).trim().toLowerCase();\n\n return ['true', 'yes', '1', 'on', 't', 'y'].includes(s);\n}\n\n/*\n * Resolve a nested item in an object.\n * Returns the resolved item, if it exists.\n *\n * e.g. resolveItem(data, \"sub.key.accessor\")\n *\n * Allows for retrieval of nested items in an object.\n */\nexport function resolveItem(obj: any, path: string): any {\n const properties = path.split('.');\n return properties.reduce((prev, curr) => prev?.[curr], obj);\n}\n\nexport function identifierString(value: string): string {\n // Convert an input string e.g. \"Hello World\" into a string that can be used as an identifier, e.g. \"hello-world\"\n\n value = value || '-';\n\n return value.toLowerCase().replace(/[^a-z0-9]/g, '-');\n}\n"],"names":["isTrue","value","s","String","trim","toLowerCase","includes","identifierString","replace"],"mappings":"AAQO,SAASA,OAAOC,OAAqB;AAC1C,MAAIA,UAAU,MAAM;AAClB,WAAO;AAAA,EACT;AAEA,MAAIA,UAAU,OAAO;AACnB,WAAO;AAAA,EACT;AAEA,QAAMC,IAAIC,OAAOF,KAAK,EAAEG,KAAAA,EAAOC,YAAAA;AAE/B,SAAO,CAAC,QAAQ,OAAO,KAAK,MAAM,KAAK,GAAG,EAAEC,SAASJ,CAAC;AACxD;AAeO,SAASK,iBAAiBN,OAAuB;AAGtDA,UAAQA,SAAS;AAEjB,SAAOA,MAAMI,YAAAA,EAAcG,QAAQ,cAAc,GAAG;AACtD;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Formatting.js","sources":["../../lib/functions/Formatting.tsx"],"sourcesContent":["export interface FormatDecmimalOptionsInterface {\n digits?: number;\n minDigits?: number;\n locale?: string;\n}\n\nexport interface FormatCurrencyOptionsInterface {\n digits?: number;\n minDigits?: number;\n currency?: string;\n locale?: string;\n multiplier?: number;\n}\n\nexport function formatDecimal(\n value: number | null | undefined,\n options: FormatDecmimalOptionsInterface = {}\n) {\n const locale = options.locale || navigator.language || 'en-US';\n\n if (value === null || value === undefined) {\n return value;\n }\n\n try {\n const formatter = new Intl.NumberFormat(locale, {\n style: 'decimal',\n maximumFractionDigits: options.digits ?? 6,\n minimumFractionDigits: options.minDigits ?? 0\n });\n\n return formatter.format(value);\n } catch (e) {\n console.error('Error formatting decimal:', e);\n // Return the unformatted value if formatting fails\n return value;\n }\n}\n\n/*\n * format currency (money) value based on current settings\n *\n * Options:\n * - currency: Currency code (uses default value if none provided)\n * - locale: Locale specified (uses default value if none provided)\n * - digits: Maximum number of significant digits (default = 10)\n */\nexport function formatCurrencyValue(\n value: number | string | null | undefined,\n options: FormatCurrencyOptionsInterface = {}\n) {\n if (value == null || value == undefined) {\n return null;\n }\n\n value = Number.parseFloat(value.toString());\n\n if (Number.isNaN(value) || !Number.isFinite(value)) {\n return null;\n }\n\n value *= options.multiplier ?? 1;\n\n // Extract locale information\n const locale = options.locale || navigator.language || 'en-US';\n\n const minDigits = options.minDigits ?? 0;\n const maxDigits = options.digits ?? 6;\n\n try {\n const formatter = new Intl.NumberFormat(locale, {\n style: 'currency',\n currency: options.currency || 'USD',\n maximumFractionDigits: Math.max(minDigits, maxDigits),\n minimumFractionDigits: Math.min(minDigits, maxDigits)\n });\n\n return formatter.format(value);\n } catch (e) {\n console.error('Error formatting currency:', e);\n // Return the unformatted value if formatting fails\n return value;\n }\n}\n\n/*\n * Format a file size (in bytes) into a human-readable format\n */\nexport function formatFileSize(size: number) {\n const suffixes: string[] = ['B', 'KB', 'MB', 'GB'];\n\n let idx = 0;\n\n while (size > 1024 && idx < suffixes.length) {\n size /= 1024;\n idx++;\n }\n\n return `${size.toFixed(2)} ${suffixes[idx]}`;\n}\n"],"names":["formatDecimal","value","options","locale","navigator","language","undefined","formatter","Intl","NumberFormat","style","maximumFractionDigits","digits","minimumFractionDigits","minDigits","format","e","error","formatCurrencyValue","Number","parseFloat","toString","isNaN","isFinite","multiplier","maxDigits","currency","Math","max","min","formatFileSize","size","suffixes","idx","length","toFixed"],"mappings":"AAcO,SAASA,cACdC,OACAC,UAA0C,IAC1C;AACA,QAAMC,SAASD,QAAQC,UAAUC,UAAUC,YAAY;
|
|
1
|
+
{"version":3,"file":"Formatting.js","sources":["../../lib/functions/Formatting.tsx"],"sourcesContent":["export interface FormatDecmimalOptionsInterface {\n digits?: number;\n minDigits?: number;\n locale?: string;\n}\n\nexport interface FormatCurrencyOptionsInterface {\n digits?: number;\n minDigits?: number;\n currency?: string;\n locale?: string;\n multiplier?: number;\n}\n\nexport function formatDecimal(\n value: number | null | undefined,\n options: FormatDecmimalOptionsInterface = {}\n) {\n const locale = options.locale || navigator.language || 'en-US';\n\n if (value === null || value === undefined) {\n return value;\n }\n\n try {\n const formatter = new Intl.NumberFormat(locale, {\n style: 'decimal',\n maximumFractionDigits: options.digits ?? 6,\n minimumFractionDigits: options.minDigits ?? 0\n });\n\n return formatter.format(value);\n } catch (e) {\n console.error('Error formatting decimal:', e);\n // Return the unformatted value if formatting fails\n return value;\n }\n}\n\n/*\n * format currency (money) value based on current settings\n *\n * Options:\n * - currency: Currency code (uses default value if none provided)\n * - locale: Locale specified (uses default value if none provided)\n * - digits: Maximum number of significant digits (default = 10)\n */\nexport function formatCurrencyValue(\n value: number | string | null | undefined,\n options: FormatCurrencyOptionsInterface = {}\n) {\n if (value == null || value == undefined) {\n return null;\n }\n\n value = Number.parseFloat(value.toString());\n\n if (Number.isNaN(value) || !Number.isFinite(value)) {\n return null;\n }\n\n value *= options.multiplier ?? 1;\n\n // Extract locale information\n const locale = options.locale || navigator.language || 'en-US';\n\n const minDigits = options.minDigits ?? 0;\n const maxDigits = options.digits ?? 6;\n\n try {\n const formatter = new Intl.NumberFormat(locale, {\n style: 'currency',\n currency: options.currency || 'USD',\n maximumFractionDigits: Math.max(minDigits, maxDigits),\n minimumFractionDigits: Math.min(minDigits, maxDigits)\n });\n\n return formatter.format(value);\n } catch (e) {\n console.error('Error formatting currency:', e);\n // Return the unformatted value if formatting fails\n return value;\n }\n}\n\n/*\n * Format a file size (in bytes) into a human-readable format\n */\nexport function formatFileSize(size: number) {\n const suffixes: string[] = ['B', 'KB', 'MB', 'GB'];\n\n let idx = 0;\n\n while (size > 1024 && idx < suffixes.length) {\n size /= 1024;\n idx++;\n }\n\n return `${size.toFixed(2)} ${suffixes[idx]}`;\n}\n"],"names":["formatDecimal","value","options","locale","navigator","language","undefined","formatter","Intl","NumberFormat","style","maximumFractionDigits","digits","minimumFractionDigits","minDigits","format","e","console","error","formatCurrencyValue","Number","parseFloat","toString","isNaN","isFinite","multiplier","maxDigits","currency","Math","max","min","formatFileSize","size","suffixes","idx","length","toFixed"],"mappings":"AAcO,SAASA,cACdC,OACAC,UAA0C,IAC1C;AACA,QAAMC,SAASD,QAAQC,UAAUC,UAAUC,YAAY;AAEvD,MAAIJ,UAAU,QAAQA,UAAUK,QAAW;AACzC,WAAOL;AAAAA,EACT;AAEA,MAAI;AACF,UAAMM,YAAY,IAAIC,KAAKC,aAAaN,QAAQ;AAAA,MAC9CO,OAAO;AAAA,MACPC,uBAAuBT,QAAQU,UAAU;AAAA,MACzCC,uBAAuBX,QAAQY,aAAa;AAAA,IAAA,CAC7C;AAED,WAAOP,UAAUQ,OAAOd,KAAK;AAAA,EAC/B,SAASe,GAAG;AACVC,YAAQC,MAAM,6BAA6BF,CAAC;AAE5C,WAAOf;AAAAA,EACT;AACF;AAUO,SAASkB,oBACdlB,OACAC,UAA0C,IAC1C;AACA,MAAID,SAAS,QAAQA,SAASK,QAAW;AACvC,WAAO;AAAA,EACT;AAEAL,UAAQmB,OAAOC,WAAWpB,MAAMqB,SAAAA,CAAU;AAE1C,MAAIF,OAAOG,MAAMtB,KAAK,KAAK,CAACmB,OAAOI,SAASvB,KAAK,GAAG;AAClD,WAAO;AAAA,EACT;AAEAA,WAASC,QAAQuB,cAAc;AAG/B,QAAMtB,SAASD,QAAQC,UAAUC,UAAUC,YAAY;AAEvD,QAAMS,YAAYZ,QAAQY,aAAa;AACvC,QAAMY,YAAYxB,QAAQU,UAAU;AAEpC,MAAI;AACF,UAAML,YAAY,IAAIC,KAAKC,aAAaN,QAAQ;AAAA,MAC9CO,OAAO;AAAA,MACPiB,UAAUzB,QAAQyB,YAAY;AAAA,MAC9BhB,uBAAuBiB,KAAKC,IAAIf,WAAWY,SAAS;AAAA,MACpDb,uBAAuBe,KAAKE,IAAIhB,WAAWY,SAAS;AAAA,IAAA,CACrD;AAED,WAAOnB,UAAUQ,OAAOd,KAAK;AAAA,EAC/B,SAASe,GAAG;AACVC,YAAQC,MAAM,8BAA8BF,CAAC;AAE7C,WAAOf;AAAAA,EACT;AACF;AAKO,SAAS8B,eAAeC,MAAc;AAC3C,QAAMC,WAAqB,CAAC,KAAK,MAAM,MAAM,IAAI;AAEjD,MAAIC,MAAM;AAEV,SAAOF,OAAO,QAAQE,MAAMD,SAASE,QAAQ;AAC3CH,YAAQ;AACRE;AAAAA,EACF;AAEA,SAAO,GAAGF,KAAKI,QAAQ,CAAC,CAAC,IAAIH,SAASC,GAAG,CAAC;AAC5C;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navigation.js","sources":["../../lib/functions/Navigation.tsx"],"sourcesContent":["import type { NavigateFunction } from 'react-router-dom';\nimport { ModelInformationDict } from '../enums/ModelInformation';\nimport type { ModelType } from '../enums/ModelType';\nimport { apiUrl } from './Api';\nimport { cancelEvent } from './Events';\n\nexport const getBaseUrl = (): string =>\n (window as any).INVENTREE_SETTINGS?.base_url || 'web';\n\n/**\n * Returns the detail view URL for a given model type.\n * This is the UI URL, not the API URL.\n */\nexport function getDetailUrl(\n model: ModelType,\n pk: number | string,\n absolute?: boolean\n): string {\n const modelInfo = ModelInformationDict[model];\n\n if (pk === undefined || pk === null) {\n return '';\n }\n\n if (!!pk && modelInfo && modelInfo.url_detail) {\n const url = modelInfo.url_detail.replace(':pk', pk.toString());\n const base = getBaseUrl();\n\n if (absolute && base) {\n return `/${base}${url}`;\n } else {\n return url;\n }\n }\n\n console.error(`No detail URL found for model ${model} <${pk}>`);\n return '';\n}\n\n/**\n * Returns the API detail URL for a given model type.\n */\nexport function getApiUrl(\n model: ModelType,\n pk: number | string\n): string | undefined {\n const modelInfo = ModelInformationDict[model];\n\n if (pk === undefined || pk === null) {\n return '';\n }\n\n if (!!pk && modelInfo && modelInfo.api_endpoint) {\n return apiUrl(modelInfo.api_endpoint, pk);\n }\n\n console.error(`No API detail URL found for model ${model} <${pk}>`);\n return undefined;\n}\n\n/*\n * Navigate to a provided link.\n * - If the link is to be opened externally, open it in a new tab.\n * - Otherwise, navigate using the provided navigate function.\n */\nexport const navigateToLink = (\n link: string,\n navigate: NavigateFunction,\n event: any\n) => {\n cancelEvent(event);\n\n const base = `/${getBaseUrl()}`;\n\n if (eventModified(event)) {\n // Open the link in a new tab\n let url = link;\n if (link.startsWith('/') && !link.startsWith(base)) {\n url = `${base}${link}`;\n }\n window.open(url, '_blank');\n } else {\n // Navigate internally\n let url = link;\n\n if (link.startsWith(base)) {\n // Strip the base URL from the link\n url = link.replace(base, '');\n }\n\n navigate(url);\n }\n};\n\n/**\n * Check if the event is modified (e.g. ctrl, shift, or meta key pressed)\n * @param event - The event to check\n * @returns true if the event was modified\n */\nexport const eventModified = (\n event: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>\n) => {\n return event?.ctrlKey || event?.shiftKey || event?.metaKey;\n};\n"],"names":["getBaseUrl","window","INVENTREE_SETTINGS","base_url","getDetailUrl","model","pk","absolute","modelInfo","ModelInformationDict","undefined","url_detail","url","replace","toString","base","console","error","navigateToLink","link","navigate","event","cancelEvent","eventModified","startsWith","open","ctrlKey","shiftKey","metaKey"],"mappings":";;AAMO,MAAMA,aAAaA,
|
|
1
|
+
{"version":3,"file":"Navigation.js","sources":["../../lib/functions/Navigation.tsx"],"sourcesContent":["import type { NavigateFunction } from 'react-router-dom';\nimport { ModelInformationDict } from '../enums/ModelInformation';\nimport type { ModelType } from '../enums/ModelType';\nimport { apiUrl } from './Api';\nimport { cancelEvent } from './Events';\n\nexport const getBaseUrl = (): string =>\n (window as any).INVENTREE_SETTINGS?.base_url || 'web';\n\n/**\n * Returns the detail view URL for a given model type.\n * This is the UI URL, not the API URL.\n */\nexport function getDetailUrl(\n model: ModelType,\n pk: number | string,\n absolute?: boolean\n): string {\n const modelInfo = ModelInformationDict[model];\n\n if (pk === undefined || pk === null) {\n return '';\n }\n\n if (!!pk && modelInfo && modelInfo.url_detail) {\n const url = modelInfo.url_detail.replace(':pk', pk.toString());\n const base = getBaseUrl();\n\n if (absolute && base) {\n return `/${base}${url}`;\n } else {\n return url;\n }\n }\n\n console.error(`No detail URL found for model ${model} <${pk}>`);\n return '';\n}\n\n/**\n * Returns the API detail URL for a given model type.\n */\nexport function getApiUrl(\n model: ModelType,\n pk: number | string\n): string | undefined {\n const modelInfo = ModelInformationDict[model];\n\n if (pk === undefined || pk === null) {\n return '';\n }\n\n if (!!pk && modelInfo && modelInfo.api_endpoint) {\n return apiUrl(modelInfo.api_endpoint, pk);\n }\n\n console.error(`No API detail URL found for model ${model} <${pk}>`);\n return undefined;\n}\n\n/*\n * Navigate to a provided link.\n * - If the link is to be opened externally, open it in a new tab.\n * - Otherwise, navigate using the provided navigate function.\n */\nexport const navigateToLink = (\n link: string,\n navigate: NavigateFunction,\n event: any\n) => {\n cancelEvent(event);\n\n const base = `/${getBaseUrl()}`;\n\n if (eventModified(event)) {\n // Open the link in a new tab\n let url = link;\n if (link.startsWith('/') && !link.startsWith(base)) {\n url = `${base}${link}`;\n }\n window.open(url, '_blank');\n } else {\n // Navigate internally\n let url = link;\n\n if (link.startsWith(base)) {\n // Strip the base URL from the link\n url = link.replace(base, '');\n }\n\n navigate(url);\n }\n};\n\n/**\n * Check if the event is modified (e.g. ctrl, shift, or meta key pressed)\n * @param event - The event to check\n * @returns true if the event was modified\n */\nexport const eventModified = (\n event: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>\n) => {\n return event?.ctrlKey || event?.shiftKey || event?.metaKey;\n};\n"],"names":["getBaseUrl","window","INVENTREE_SETTINGS","base_url","getDetailUrl","model","pk","absolute","modelInfo","ModelInformationDict","undefined","url_detail","url","replace","toString","base","console","error","navigateToLink","link","navigate","event","cancelEvent","eventModified","startsWith","open","ctrlKey","shiftKey","metaKey"],"mappings":";;AAMO,MAAMA,aAAaA,MAAAA;;AACvBC,uBAAeC,uBAAfD,mBAAmCE,aAAY;AAAA;AAM3C,SAASC,aACdC,OACAC,IACAC,UACQ;AACR,QAAMC,YAAYC,qBAAqBJ,KAAK;AAE5C,MAAIC,OAAOI,UAAaJ,OAAO,MAAM;AACnC,WAAO;AAAA,EACT;AAEA,MAAI,CAAC,CAACA,MAAME,aAAaA,UAAUG,YAAY;AAC7C,UAAMC,MAAMJ,UAAUG,WAAWE,QAAQ,OAAOP,GAAGQ,UAAU;AAC7D,UAAMC,OAAOf,WAAAA;AAEb,QAAIO,YAAYQ,MAAM;AACpB,aAAO,IAAIA,IAAI,GAAGH,GAAG;AAAA,IACvB,OAAO;AACL,aAAOA;AAAAA,IACT;AAAA,EACF;AAEAI,UAAQC,MAAM,iCAAiCZ,KAAK,KAAKC,EAAE,GAAG;AAC9D,SAAO;AACT;AA4BO,MAAMY,iBAAiBA,CAC5BC,MACAC,UACAC,UACG;AACHC,cAAYD,KAAK;AAEjB,QAAMN,OAAO,IAAIf,WAAAA,CAAY;AAE7B,MAAIuB,cAAcF,KAAK,GAAG;AAExB,QAAIT,MAAMO;AACV,QAAIA,KAAKK,WAAW,GAAG,KAAK,CAACL,KAAKK,WAAWT,IAAI,GAAG;AAClDH,YAAM,GAAGG,IAAI,GAAGI,IAAI;AAAA,IACtB;AACAlB,WAAOwB,KAAKb,KAAK,QAAQ;AAAA,EAC3B,OAAO;AAEL,QAAIA,MAAMO;AAEV,QAAIA,KAAKK,WAAWT,IAAI,GAAG;AAEzBH,YAAMO,KAAKN,QAAQE,MAAM,EAAE;AAAA,IAC7B;AAEAK,aAASR,GAAG;AAAA,EACd;AACF;AAOO,MAAMW,gBAAgBA,CAC3BF,UACG;AACH,UAAOA,+BAAOK,aAAWL,+BAAOM,cAAYN,+BAAOO;AACrD;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plugins.js","sources":["../../lib/functions/Plugins.tsx"],"sourcesContent":["import {\n INVENTREE_PLUGIN_VERSION,\n type InvenTreePluginContext\n} from '../types/Plugins';\n\n/**\n * Check that the plugin version matches the expected version.\n * This is a helper function which only generates a warning if there is a mismatch.\n */\nexport function checkPluginVersion(context: InvenTreePluginContext) {\n const systemVersion: string = context?.version?.inventree || '';\n\n if (INVENTREE_PLUGIN_VERSION != systemVersion) {\n console.info(\n `Plugin version mismatch! Expected version ${INVENTREE_PLUGIN_VERSION}, got ${systemVersion}`\n );\n }\n}\n\n/**\n * Helper function to initialize the plugin context.\n */\nexport function initPlugin(context: InvenTreePluginContext) {\n // Check that the plugin version matches the expected version\n checkPluginVersion(context);\n\n // Activate the i18n context for the current locale\n context.i18n?.activate?.(context.locale);\n}\n"],"names":["checkPluginVersion","context","systemVersion","version","inventree","INVENTREE_PLUGIN_VERSION","console","info","initPlugin","i18n","activate","locale"],"mappings":";AASO,SAASA,mBAAmBC,SAAiC;;
|
|
1
|
+
{"version":3,"file":"Plugins.js","sources":["../../lib/functions/Plugins.tsx"],"sourcesContent":["import {\n INVENTREE_PLUGIN_VERSION,\n type InvenTreePluginContext\n} from '../types/Plugins';\n\n/**\n * Check that the plugin version matches the expected version.\n * This is a helper function which only generates a warning if there is a mismatch.\n */\nexport function checkPluginVersion(context: InvenTreePluginContext) {\n const systemVersion: string = context?.version?.inventree || '';\n\n if (INVENTREE_PLUGIN_VERSION != systemVersion) {\n console.info(\n `Plugin version mismatch! Expected version ${INVENTREE_PLUGIN_VERSION}, got ${systemVersion}`\n );\n }\n}\n\n/**\n * Helper function to initialize the plugin context.\n */\nexport function initPlugin(context: InvenTreePluginContext) {\n // Check that the plugin version matches the expected version\n checkPluginVersion(context);\n\n // Activate the i18n context for the current locale\n context.i18n?.activate?.(context.locale);\n}\n"],"names":["checkPluginVersion","context","systemVersion","version","inventree","INVENTREE_PLUGIN_VERSION","console","info","initPlugin","i18n","activate","locale"],"mappings":";AASO,SAASA,mBAAmBC,SAAiC;;AAClE,QAAMC,kBAAwBD,wCAASE,YAATF,mBAAkBG,cAAa;AAE7D,MAAIC,4BAA4BH,eAAe;AAC7CI,YAAQC,KACN,6CAA6CF,wBAAwB,SAASH,aAAa,EAC7F;AAAA,EACF;AACF;AAKO,SAASM,WAAWP,SAAiC;;AAE1DD,qBAAmBC,OAAO;AAG1BA,sBAAQQ,SAARR,mBAAcS,aAAdT,4BAAyBA,QAAQU;AACnC;"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
const useState = window["React"].useState;
|
|
2
2
|
const useRef = window["React"].useRef;
|
|
3
|
+
const useCallback = window["React"].useCallback;
|
|
3
4
|
const useEffect = window["React"].useEffect;
|
|
4
5
|
function useDebouncedValue(value, wait, options = { leading: false }) {
|
|
5
6
|
const [_value, setValue] = useState(value);
|
|
6
7
|
const mountedRef = useRef(false);
|
|
7
8
|
const timeoutRef = useRef(null);
|
|
8
9
|
const cooldownRef = useRef(false);
|
|
9
|
-
const cancel = () => window.clearTimeout(timeoutRef.current);
|
|
10
|
+
const cancel = useCallback(() => window.clearTimeout(timeoutRef.current), []);
|
|
10
11
|
useEffect(() => {
|
|
11
12
|
if (mountedRef.current) {
|
|
12
13
|
if (!cooldownRef.current && options.leading) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-debounced-value.js","sources":["../../../../../../node_modules/@mantine/hooks/esm/use-debounced-value/use-debounced-value.mjs"],"sourcesContent":["'use client';\nimport { useState, useRef, useEffect } from 'react';\n\nfunction useDebouncedValue(value, wait, options = { leading: false }) {\n const [_value, setValue] = useState(value);\n const mountedRef = useRef(false);\n const timeoutRef = useRef(null);\n const cooldownRef = useRef(false);\n const cancel = () => window.clearTimeout(timeoutRef.current);\n useEffect(() => {\n if (mountedRef.current) {\n if (!cooldownRef.current && options.leading) {\n cooldownRef.current = true;\n setValue(value);\n } else {\n cancel();\n timeoutRef.current = window.setTimeout(() => {\n cooldownRef.current = false;\n setValue(value);\n }, wait);\n }\n }\n }, [value, options.leading, wait]);\n useEffect(() => {\n mountedRef.current = true;\n return cancel;\n }, []);\n return [_value, cancel];\n}\n\nexport { useDebouncedValue };\n//# sourceMappingURL=use-debounced-value.mjs.map\n"],"names":[],"mappings":"AACA,MAAA,WAAA,OAAA,OAAA,EAAA
|
|
1
|
+
{"version":3,"file":"use-debounced-value.js","sources":["../../../../../../node_modules/@mantine/hooks/esm/use-debounced-value/use-debounced-value.mjs"],"sourcesContent":["'use client';\nimport { useState, useRef, useCallback, useEffect } from 'react';\n\nfunction useDebouncedValue(value, wait, options = { leading: false }) {\n const [_value, setValue] = useState(value);\n const mountedRef = useRef(false);\n const timeoutRef = useRef(null);\n const cooldownRef = useRef(false);\n const cancel = useCallback(() => window.clearTimeout(timeoutRef.current), []);\n useEffect(() => {\n if (mountedRef.current) {\n if (!cooldownRef.current && options.leading) {\n cooldownRef.current = true;\n setValue(value);\n } else {\n cancel();\n timeoutRef.current = window.setTimeout(() => {\n cooldownRef.current = false;\n setValue(value);\n }, wait);\n }\n }\n }, [value, options.leading, wait]);\n useEffect(() => {\n mountedRef.current = true;\n return cancel;\n }, []);\n return [_value, cancel];\n}\n\nexport { useDebouncedValue };\n//# sourceMappingURL=use-debounced-value.mjs.map\n"],"names":[],"mappings":"AACA,MAAA,WAAA,OAAA,OAAA,EAAA;;;;AAEA,SAAS,kBAAkB,OAAO,MAAM,UAAU,EAAE,SAAS,SAAS;AACpE,QAAM,CAAC,QAAQ,QAAQ,IAAI,SAAS,KAAK;AACzC,QAAM,aAAa,OAAO,KAAK;AAC/B,QAAM,aAAa,OAAO,IAAI;AAC9B,QAAM,cAAc,OAAO,KAAK;AAChC,QAAM,SAAS,YAAY,MAAM,OAAO,aAAa,WAAW,OAAO,GAAG,EAAE;AAC5E,YAAU,MAAM;AACd,QAAI,WAAW,SAAS;AACtB,UAAI,CAAC,YAAY,WAAW,QAAQ,SAAS;AAC3C,oBAAY,UAAU;AACtB,iBAAS,KAAK;AAAA,MAChB,OAAO;AACL,eAAM;AACN,mBAAW,UAAU,OAAO,WAAW,MAAM;AAC3C,sBAAY,UAAU;AACtB,mBAAS,KAAK;AAAA,QAChB,GAAG,IAAI;AAAA,MACT;AAAA,IACF;AAAA,EACF,GAAG,CAAC,OAAO,QAAQ,SAAS,IAAI,CAAC;AACjC,YAAU,MAAM;AACd,eAAW,UAAU;AACrB,WAAO;AAAA,EACT,GAAG,CAAA,CAAE;AACL,SAAO,CAAC,QAAQ,MAAM;AACxB;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createReactComponent.js","sources":["../../../../../../node_modules/@tabler/icons-react/dist/esm/createReactComponent.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.34.1 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport defaultAttributes from './defaultAttributes.mjs';\n\nconst createReactComponent = (type, iconName, iconNamePascal, iconNode) => {\n const Component = forwardRef(\n ({ color = \"currentColor\", size = 24, stroke = 2, title, className, children, ...rest }, ref) => createElement(\n \"svg\",\n {\n ref,\n ...defaultAttributes[type],\n width: size,\n height: size,\n className: [`tabler-icon`, `tabler-icon-${iconName}`, className].join(\" \"),\n ...type === \"filled\" ? {\n fill: color\n } : {\n strokeWidth: stroke,\n stroke: color\n },\n ...rest\n },\n [\n title && createElement(\"title\", { key: \"svg-title\" }, title),\n ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),\n ...Array.isArray(children) ? children : [children]\n ]\n )\n );\n Component.displayName = `${iconNamePascal}`;\n return Component;\n};\n\nexport { createReactComponent as default };\n//# sourceMappingURL=createReactComponent.mjs.map\n"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOA,MAAA,aAAA,OAAA,OAAA,EAAA;;AAGK,MAAC,uBAAuB,CAAC,MAAM,UAAU,gBAAgB,aAAa;AACzE,QAAM,YAAY;AAAA,IAChB,CAAC,EAAE,QAAQ,gBAAgB,OAAO,IAAI,SAAS,GAAG,OAAO,WAAW,UAAU,GAAG,
|
|
1
|
+
{"version":3,"file":"createReactComponent.js","sources":["../../../../../../node_modules/@tabler/icons-react/dist/esm/createReactComponent.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.34.1 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport defaultAttributes from './defaultAttributes.mjs';\n\nconst createReactComponent = (type, iconName, iconNamePascal, iconNode) => {\n const Component = forwardRef(\n ({ color = \"currentColor\", size = 24, stroke = 2, title, className, children, ...rest }, ref) => createElement(\n \"svg\",\n {\n ref,\n ...defaultAttributes[type],\n width: size,\n height: size,\n className: [`tabler-icon`, `tabler-icon-${iconName}`, className].join(\" \"),\n ...type === \"filled\" ? {\n fill: color\n } : {\n strokeWidth: stroke,\n stroke: color\n },\n ...rest\n },\n [\n title && createElement(\"title\", { key: \"svg-title\" }, title),\n ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),\n ...Array.isArray(children) ? children : [children]\n ]\n )\n );\n Component.displayName = `${iconNamePascal}`;\n return Component;\n};\n\nexport { createReactComponent as default };\n//# sourceMappingURL=createReactComponent.mjs.map\n"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOA,MAAA,aAAA,OAAA,OAAA,EAAA;;AAGK,MAAC,uBAAuB,CAAC,MAAM,UAAU,gBAAgB,aAAa;AACzE,QAAM,YAAY;AAAA,IAChB,CAAC,EAAE,QAAQ,gBAAgB,OAAO,IAAI,SAAS,GAAG,OAAO,WAAW,UAAU,GAAG,KAAI,GAAI,QAAQ;AAAA,MAC/F;AAAA,MACA;AAAA,QACE;AAAA,QACA,GAAG,kBAAkB,IAAI;AAAA,QACzB,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,WAAW,CAAC,eAAe,eAAe,QAAQ,IAAI,SAAS,EAAE,KAAK,GAAG;AAAA,QACzE,GAEI;AAAA,UACF,aAAa;AAAA,UACb,QAAQ;AAAA,QAClB;AAAA,QACQ,GAAG;AAAA,MACX;AAAA,MACM;AAAA,QACE,SAAS,cAAc,SAAS,EAAE,KAAK,YAAW,GAAI,KAAK;AAAA,QAC3D,GAAG,SAAS,IAAI,CAAC,CAAC,KAAK,KAAK,MAAM,cAAc,KAAK,KAAK,CAAC;AAAA,QAC3D,GAAG,MAAM,QAAQ,QAAQ,IAAI,WAAW,CAAC,QAAQ;AAAA,MACzD;AAAA,IACA;AAAA,EACA;AACE,YAAU,cAAc,GAAG,cAAc;AACzC,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultAttributes.js","sources":["../../../../../../node_modules/@tabler/icons-react/dist/esm/defaultAttributes.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.34.1 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nvar defaultAttributes = {\n outline: {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n },\n filled: {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"currentColor\",\n stroke: \"none\"\n }\n};\n\nexport { defaultAttributes as default };\n//# sourceMappingURL=defaultAttributes.mjs.map\n"],"names":[],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOG,IAAC,oBAAoB;AAAA,EACtB,SAAS;AAAA,IACP,OAAO;AAAA,IACP,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,eAAe;AAAA,IACf,gBAAgB;AAAA,
|
|
1
|
+
{"version":3,"file":"defaultAttributes.js","sources":["../../../../../../node_modules/@tabler/icons-react/dist/esm/defaultAttributes.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.34.1 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nvar defaultAttributes = {\n outline: {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n },\n filled: {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"currentColor\",\n stroke: \"none\"\n }\n};\n\nexport { defaultAttributes as default };\n//# sourceMappingURL=defaultAttributes.mjs.map\n"],"names":[],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOG,IAAC,oBAAoB;AAAA,EACtB,SAAS;AAAA,IACP,OAAO;AAAA,IACP,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,eAAe;AAAA,IACf,gBAAgB;AAAA,EACpB;AAAA,EACE,QAAQ;AAAA,IACN,OAAO;AAAA,IACP,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACA;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconArrowRight.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.34.1 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M5 12l14 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M13 18l6 -6\", \"key\": \"svg-1\" }], [\"path\", { \"d\": \"M13 6l6 6\", \"key\": \"svg-2\" }]];\nconst IconArrowRight = createReactComponent(\"outline\", \"arrow-right\", \"ArrowRight\", __iconNode);\n\nexport { __iconNode, IconArrowRight as default };\n//# sourceMappingURL=IconArrowRight.mjs.map\n"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,cAAc,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,eAAe,OAAO,
|
|
1
|
+
{"version":3,"file":"IconArrowRight.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.34.1 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M5 12l14 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M13 18l6 -6\", \"key\": \"svg-1\" }], [\"path\", { \"d\": \"M13 6l6 6\", \"key\": \"svg-2\" }]];\nconst IconArrowRight = createReactComponent(\"outline\", \"arrow-right\", \"ArrowRight\", __iconNode);\n\nexport { __iconNode, IconArrowRight as default };\n//# sourceMappingURL=IconArrowRight.mjs.map\n"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,cAAc,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,eAAe,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,aAAa,OAAO,SAAS,CAAC;AAChK,MAAC,iBAAiB,qBAAqB,WAAW,eAAe,cAAc,UAAU;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconCircleX.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconCircleX.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.34.1 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M10 10l4 4m0 -4l-4 4\", \"key\": \"svg-1\" }]];\nconst IconCircleX = createReactComponent(\"outline\", \"circle-x\", \"CircleX\", __iconNode);\n\nexport { __iconNode, IconCircleX as default };\n//# sourceMappingURL=IconCircleX.mjs.map\n"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,8CAA8C,OAAO,
|
|
1
|
+
{"version":3,"file":"IconCircleX.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconCircleX.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.34.1 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M10 10l4 4m0 -4l-4 4\", \"key\": \"svg-1\" }]];\nconst IconCircleX = createReactComponent(\"outline\", \"circle-x\", \"CircleX\", __iconNode);\n\nexport { __iconNode, IconCircleX as default };\n//# sourceMappingURL=IconCircleX.mjs.map\n"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,8CAA8C,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,wBAAwB,OAAO,SAAS,CAAC;AACzJ,MAAC,cAAc,qBAAqB,WAAW,YAAY,WAAW,UAAU;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconCopy.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.34.1 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M7 7m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1\", \"key\": \"svg-1\" }]];\nconst IconCopy = createReactComponent(\"outline\", \"copy\", \"Copy\", __iconNode);\n\nexport { __iconNode, IconCopy as default };\n//# sourceMappingURL=IconCopy.mjs.map\n"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,gKAAgK,OAAO,
|
|
1
|
+
{"version":3,"file":"IconCopy.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.34.1 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M7 7m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1\", \"key\": \"svg-1\" }]];\nconst IconCopy = createReactComponent(\"outline\", \"copy\", \"Copy\", __iconNode);\n\nexport { __iconNode, IconCopy as default };\n//# sourceMappingURL=IconCopy.mjs.map\n"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,gKAAgK,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,iGAAiG,OAAO,SAAS,CAAC;AACpV,MAAC,WAAW,qBAAqB,WAAW,QAAQ,QAAQ,UAAU;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconDots.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconDots.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.34.1 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0\", \"key\": \"svg-1\" }], [\"path\", { \"d\": \"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0\", \"key\": \"svg-2\" }]];\nconst IconDots = createReactComponent(\"outline\", \"dots\", \"Dots\", __iconNode);\n\nexport { __iconNode, IconDots as default };\n//# sourceMappingURL=IconDots.mjs.map\n"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,2CAA2C,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,4CAA4C,OAAO,
|
|
1
|
+
{"version":3,"file":"IconDots.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconDots.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.34.1 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0\", \"key\": \"svg-1\" }], [\"path\", { \"d\": \"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0\", \"key\": \"svg-2\" }]];\nconst IconDots = createReactComponent(\"outline\", \"dots\", \"Dots\", __iconNode);\n\nexport { __iconNode, IconDots as default };\n//# sourceMappingURL=IconDots.mjs.map\n"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,2CAA2C,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,4CAA4C,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,4CAA4C,OAAO,SAAS,CAAC;AACzP,MAAC,WAAW,qBAAqB,WAAW,QAAQ,QAAQ,UAAU;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconEdit.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.34.1 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z\", \"key\": \"svg-1\" }], [\"path\", { \"d\": \"M16 5l3 3\", \"key\": \"svg-2\" }]];\nconst IconEdit = createReactComponent(\"outline\", \"edit\", \"Edit\", __iconNode);\n\nexport { __iconNode, IconEdit as default };\n//# sourceMappingURL=IconEdit.mjs.map\n"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,8DAA8D,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,0EAA0E,OAAO,
|
|
1
|
+
{"version":3,"file":"IconEdit.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.34.1 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z\", \"key\": \"svg-1\" }], [\"path\", { \"d\": \"M16 5l3 3\", \"key\": \"svg-2\" }]];\nconst IconEdit = createReactComponent(\"outline\", \"edit\", \"Edit\", __iconNode);\n\nexport { __iconNode, IconEdit as default };\n//# sourceMappingURL=IconEdit.mjs.map\n"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,8DAA8D,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,0EAA0E,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,aAAa,OAAO,SAAS,CAAC;AAC3Q,MAAC,WAAW,qBAAqB,WAAW,QAAQ,QAAQ,UAAU;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconPlus.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconPlus.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.34.1 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M12 5l0 14\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M5 12l14 0\", \"key\": \"svg-1\" }]];\nconst IconPlus = createReactComponent(\"outline\", \"plus\", \"Plus\", __iconNode);\n\nexport { __iconNode, IconPlus as default };\n//# sourceMappingURL=IconPlus.mjs.map\n"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,cAAc,OAAO,
|
|
1
|
+
{"version":3,"file":"IconPlus.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconPlus.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.34.1 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M12 5l0 14\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M5 12l14 0\", \"key\": \"svg-1\" }]];\nconst IconPlus = createReactComponent(\"outline\", \"plus\", \"Plus\", __iconNode);\n\nexport { __iconNode, IconPlus as default };\n//# sourceMappingURL=IconPlus.mjs.map\n"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,cAAc,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,cAAc,OAAO,SAAS,CAAC;AAC/G,MAAC,WAAW,qBAAqB,WAAW,QAAQ,QAAQ,UAAU;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconSearch.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.34.1 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M21 21l-6 -6\", \"key\": \"svg-1\" }]];\nconst IconSearch = createReactComponent(\"outline\", \"search\", \"Search\", __iconNode);\n\nexport { __iconNode, IconSearch as default };\n//# sourceMappingURL=IconSearch.mjs.map\n"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,8CAA8C,OAAO,
|
|
1
|
+
{"version":3,"file":"IconSearch.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.34.1 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M21 21l-6 -6\", \"key\": \"svg-1\" }]];\nconst IconSearch = createReactComponent(\"outline\", \"search\", \"Search\", __iconNode);\n\nexport { __iconNode, IconSearch as default };\n//# sourceMappingURL=IconSearch.mjs.map\n"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,8CAA8C,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,gBAAgB,OAAO,SAAS,CAAC;AACjJ,MAAC,aAAa,qBAAqB,WAAW,UAAU,UAAU,UAAU;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconTrash.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.34.1 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M4 7l16 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M10 11l0 6\", \"key\": \"svg-1\" }], [\"path\", { \"d\": \"M14 11l0 6\", \"key\": \"svg-2\" }], [\"path\", { \"d\": \"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12\", \"key\": \"svg-3\" }], [\"path\", { \"d\": \"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3\", \"key\": \"svg-4\" }]];\nconst IconTrash = createReactComponent(\"outline\", \"trash\", \"Trash\", __iconNode);\n\nexport { __iconNode, IconTrash as default };\n//# sourceMappingURL=IconTrash.mjs.map\n"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,aAAa,OAAO,
|
|
1
|
+
{"version":3,"file":"IconTrash.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.34.1 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M4 7l16 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M10 11l0 6\", \"key\": \"svg-1\" }], [\"path\", { \"d\": \"M14 11l0 6\", \"key\": \"svg-2\" }], [\"path\", { \"d\": \"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12\", \"key\": \"svg-3\" }], [\"path\", { \"d\": \"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3\", \"key\": \"svg-4\" }]];\nconst IconTrash = createReactComponent(\"outline\", \"trash\", \"Trash\", __iconNode);\n\nexport { __iconNode, IconTrash as default };\n//# sourceMappingURL=IconTrash.mjs.map\n"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,aAAa,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,cAAc,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,cAAc,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,kDAAkD,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,4CAA4C,OAAO,SAAS,CAAC;AACnU,MAAC,YAAY,qBAAqB,WAAW,SAAS,SAAS,UAAU;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-jsx-runtime.development.js","sources":["../../../../node_modules/react/cjs/react-jsx-runtime.development.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return (type.displayName || \"Context\") + \".Provider\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(\n type,\n key,\n self,\n source,\n owner,\n props,\n debugStack,\n debugTask\n ) {\n self = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== self ? self : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n source,\n self,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n self,\n source,\n getOwner(),\n maybeKey,\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_ELEMENT_TYPE &&\n node._store &&\n (node._store.validated = 1);\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\");\n Symbol.for(\"react.provider\");\n var REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAWA,mBAAiB,QAAQ,IAAI,YAC1B,WAAY;AACX,aAAS,yBAAyB,MAAM;AACtC,UAAI,QAAQ,KAAM,QAAO;AACzB,UAAI,eAAe,OAAO;AACxB,eAAO,KAAK,aAAa,yBACrB,OACA,KAAK,eAAe,KAAK,QAAQ;AACvC,UAAI,aAAa,OAAO,KAAM,QAAO;AACrC,cAAQ,MAAI;AAAA,QACV,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,MACjB;AACM,UAAI,aAAa,OAAO;AACtB,gBACG,aAAa,OAAO,KAAK,OACxB,QAAQ;AAAA,UACN;AAAA,QACD,GACH,KAAK,UACf;AAAA,UACU,KAAK;AACH,mBAAO;AAAA,UACT,KAAK;AACH,oBAAQ,KAAK,eAAe,aAAa;AAAA,UAC3C,KAAK;AACH,oBAAQ,KAAK,SAAS,eAAe,aAAa;AAAA,UACpD,KAAK;AACH,gBAAI,YAAY,KAAK;AACrB,mBAAO,KAAK;AACZ,qBACI,OAAO,UAAU,eAAe,UAAU,QAAQ,IACnD,OAAO,OAAO,OAAO,gBAAgB,OAAO,MAAM;AACrD,mBAAO;AAAA,UACT,KAAK;AACH,mBACG,YAAY,KAAK,eAAe,MACjC,SAAS,YACL,YACA,yBAAyB,KAAK,IAAI,KAAK;AAAA,UAE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BAAwB,CAAE;AAC9B,gCAAA,WAAmB;AACnB,gCAAW,MAAG,SAAU,MAAM,QAAQ,UAAU,QAAQ,MAAM;AAC5D,UAAI,mBACF,MAAM,qBAAqB;AAC7B,aAAO;AAAA,QACL;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA,mBACI,MAAM,uBAAuB,IAC7B;AAAA,QACJ,mBAAmB,WAAW,YAAY,IAAI,CAAC,IAAI;AAAA,MACpD;AAAA,IACF;AACD,gCAAY,OAAG,SAAU,MAAM,QAAQ,UAAU,QAAQ,MAAM;AAC7D,UAAI,mBACF,MAAM,qBAAqB;AAC7B,aAAO;AAAA,QACL;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA,mBACI,MAAM,uBAAuB,IAC7B;AAAA,QACJ,mBAAmB,WAAW,YAAY,IAAI,CAAC,IAAI;AAAA,MACpD;AAAA,IACF;AAAA,EACL,EAAM;;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"react-jsx-runtime.development.js","sources":["../../../../node_modules/react/cjs/react-jsx-runtime.development.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return (type.displayName || \"Context\") + \".Provider\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(\n type,\n key,\n self,\n source,\n owner,\n props,\n debugStack,\n debugTask\n ) {\n self = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== self ? self : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n source,\n self,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n self,\n source,\n getOwner(),\n maybeKey,\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_ELEMENT_TYPE &&\n node._store &&\n (node._store.validated = 1);\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\");\n Symbol.for(\"react.provider\");\n var REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAWA,mBAAiB,QAAQ,IAAI,YAC1B,WAAY;AACX,aAAS,yBAAyB,MAAM;AACtC,UAAI,QAAQ,KAAM,QAAO;AACzB,UAAI,eAAe,OAAO;AACxB,eAAO,KAAK,aAAa,yBACrB,OACA,KAAK,eAAe,KAAK,QAAQ;AACvC,UAAI,aAAa,OAAO,KAAM,QAAO;AACrC,cAAQ,MAAI;AAAA,QACV,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,MACjB;AACM,UAAI,aAAa,OAAO;AACtB,gBACG,aAAa,OAAO,KAAK,OACxB,QAAQ;AAAA,UACN;AAAA,WAEJ,KAAK,UACf;AAAA,UACU,KAAK;AACH,mBAAO;AAAA,UACT,KAAK;AACH,oBAAQ,KAAK,eAAe,aAAa;AAAA,UAC3C,KAAK;AACH,oBAAQ,KA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,MACN,0BAA0B,SAAU,mBAAmB;AACrD,eAAO,kBAAiB;AAAA,MAChC;AAAA;AAEI,QAAI;AACJ,QAAI,yBAAyB,CAAA;AAC7B,QAAI,yBAAyB,MAAM,yBAAyB;AAAA,MAC1D;AAAA,MACA;AAAA,IACN,EAAK;AACD,QAAI,wBAAwB,WAAW,YAAY,YAAY,CAAC;AAChE,QAAI,wBAAwB,CAAA;AAC5B,gCAAA,WAAmB;AACnB,gCAAA,MAAc,SAAU,MAAM,QAAQ,UAAU,QAAQ,MAAM;AAC5D,UAAI,mBACF,MAAM,qBAAqB;AAC7B,aAAO;AAAA,QACL;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA,mBACI,MAAM,uBAAuB,IAC7B;AAAA,QACJ,mBAAmB,WAAW,YAAY,IAAI,CAAC,IAAI;AAAA;IAE3D;AACI,gCAAA,OAAe,SAAU,MAAM,QAAQ,UAAU,QAAQ,MAAM;AAC7D,UAAI,mBACF,MAAM,qBAAqB;AAC7B,aAAO;AAAA,QACL;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA,mBACI,MAAM,uBAAuB,IAC7B;AAAA,QACJ,mBAAmB,WAAW,YAAY,IAAI,CAAC,IAAI;AAAA;IAE3D;AAAA,EACA,EAAG;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-jsx-runtime.production.js","sources":["../../../../node_modules/react/cjs/react-jsx-runtime.production.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAWA,MAAI,qBAAqB,OAAO,IAAI,4BAA4B,GAC9D,sBAAsB,OAAO,IAAI,gBAAgB;AACnD,WAAS,QAAQ,MAAM,QAAQ,UAAU;AACvC,QAAI,MAAM;AACV,eAAW,aAAa,MAAM,KAAK;AACnC,eAAW,OAAO,QAAQ,MAAM,KAAK,OAAO;AAC5C,QAAI,SAAS,QAAQ;AACnB,iBAAW,
|
|
1
|
+
{"version":3,"file":"react-jsx-runtime.production.js","sources":["../../../../node_modules/react/cjs/react-jsx-runtime.production.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAWA,MAAI,qBAAqB,OAAO,IAAI,4BAA4B,GAC9D,sBAAsB,OAAO,IAAI,gBAAgB;AACnD,WAAS,QAAQ,MAAM,QAAQ,UAAU;AACvC,QAAI,MAAM;AACV,eAAW,aAAa,MAAM,KAAK;AACnC,eAAW,OAAO,QAAQ,MAAM,KAAK,OAAO;AAC5C,QAAI,SAAS,QAAQ;AACnB,iBAAW,CAAA;AACX,eAAS,YAAY;AACnB,kBAAU,aAAa,SAAS,QAAQ,IAAI,OAAO,QAAQ;AAAA,IACjE,MAAS,YAAW;AAClB,aAAS,SAAS;AAClB,WAAO;AAAA,MACL,UAAU;AAAA,MACV;AAAA,MACA;AAAA,MACA,KAAK,WAAW,SAAS,SAAS;AAAA,MAClC,OAAO;AAAA;EAEX;AACA,6BAAA,WAAmB;AACnB,6BAAA,MAAc;AACd,6BAAA,OAAe;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsx-runtime.js","sources":["../../../node_modules/react/jsx-runtime.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["jsxRuntimeModule","require$$0","require$$1"],"mappings":";;;;;;;AAEA,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzCA,eAAA,UAAiBC,
|
|
1
|
+
{"version":3,"file":"jsx-runtime.js","sources":["../../../node_modules/react/jsx-runtime.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["jsxRuntimeModule","require$$0","require$$1"],"mappings":";;;;;;;AAEA,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzCA,eAAA,UAAiBC,kCAAA;AAAA,EACnB,OAAO;AACLD,eAAA,UAAiBE,mCAAA;AAAA,EACnB;;;","x_google_ignoreList":[0]}
|
package/dist/types/Plugins.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const INVENTREE_PLUGIN_VERSION = "0.
|
|
1
|
+
const INVENTREE_PLUGIN_VERSION = "0.6.0";
|
|
2
2
|
const INVENTREE_REACT_VERSION = "19.1.1";
|
|
3
3
|
const INVENTREE_REACT_DOM_VERSION = (
|
|
4
4
|
// @ts-ignore
|
|
5
5
|
"19.1.1"
|
|
6
6
|
);
|
|
7
|
-
const INVENTREE_MANTINE_VERSION = "
|
|
7
|
+
const INVENTREE_MANTINE_VERSION = "8.2.7";
|
|
8
8
|
export {
|
|
9
9
|
INVENTREE_MANTINE_VERSION,
|
|
10
10
|
INVENTREE_PLUGIN_VERSION,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plugins.js","sources":["../../lib/types/Plugins.tsx"],"sourcesContent":["import type { I18n } from '@lingui/core';\nimport type { MantineColorScheme, MantineTheme } from '@mantine/core';\nimport type { QueryClient } from '@tanstack/react-query';\nimport type { AxiosInstance } from 'axios';\nimport type { NavigateFunction } from 'react-router-dom';\nimport type { ModelDict } from '../enums/ModelInformation';\nimport type { ModelType } from '../enums/ModelType';\nimport type { ApiFormModalProps, BulkEditApiFormModalProps } from './Forms';\nimport type { UseModalReturn } from './Modals';\nimport type { RenderInstanceProps } from './Rendering';\nimport type { SettingsStateProps } from './Settings';\nimport type { UserStateProps } from './User';\n\nexport interface PluginProps {\n name: string;\n slug: string;\n version: null | string;\n}\n\nexport interface PluginVersion {\n inventree: string;\n react: string;\n reactDom: string;\n mantine: string;\n}\n\nexport type InvenTreeFormsContext = {\n bulkEdit: (props: BulkEditApiFormModalProps) => UseModalReturn;\n create: (props: ApiFormModalProps) => UseModalReturn;\n delete: (props: ApiFormModalProps) => UseModalReturn;\n edit: (props: ApiFormModalProps) => UseModalReturn;\n};\n\n/**\n * A set of properties which are passed to a plugin,\n * for rendering an element in the user interface.\n *\n * @param version - The version of the running InvenTree software stack\n * @param api - The Axios API instance (see ../states/ApiState.tsx)\n * @param user - The current user instance (see ../states/UserState.tsx)\n * @param userSettings - The current user settings (see ../states/SettingsState.tsx)\n * @param globalSettings - The global settings (see ../states/SettingsState.tsx)\n * @param navigate - The navigation function (see react-router-dom)\n * @param theme - The current Mantine theme\n * @param colorScheme - The current Mantine color scheme (e.g. 'light' / 'dark')\n * @param host - The current host URL\n * @param i18n - The i18n instance for translations (from @lingui/core)\n * @param locale - The current locale string (e.g. 'en' / 'de')\n * @param model - The model type associated with the rendered component (if applicable)\n * @param modelInformation - A dictionary of available model information\n * @param renderInstance - A component function for rendering a model instance\n * @param id - The ID (primary key) of the model instance for the plugin (if applicable)\n * @param instance - The model instance data (if available)\n * @param reloadContent - A function which can be called to reload the plugin content\n * @param reloadInstance - A function which can be called to reload the model instance\n * @param context - Any additional context data which may be passed to the plugin\n */\nexport type InvenTreePluginContext = {\n version: PluginVersion;\n api: AxiosInstance;\n queryClient: QueryClient;\n user: UserStateProps;\n userSettings: SettingsStateProps;\n globalSettings: SettingsStateProps;\n modelInformation: ModelDict;\n renderInstance: (props: Readonly<RenderInstanceProps>) => React.ReactNode;\n host: string;\n i18n: I18n;\n locale: string;\n navigate: NavigateFunction;\n theme: MantineTheme;\n forms: InvenTreeFormsContext;\n colorScheme: MantineColorScheme;\n model?: ModelType | string;\n id?: string | number | null;\n instance?: any;\n reloadContent?: () => void;\n reloadInstance?: () => void;\n context?: any;\n};\n\n/*\n * The version of the InvenTree plugin context interface.\n * This number should be incremented if the interface changes.\n */\n\n// @ts-ignore\nexport const INVENTREE_PLUGIN_VERSION: string = __INVENTREE_LIB_VERSION__;\n// @ts-ignore\nexport const INVENTREE_REACT_VERSION: string = __INVENTREE_REACT_VERSION__;\n// @ts-ignore\nexport const INVENTREE_REACT_DOM_VERSION: string =\n // @ts-ignore\n __INVENTREE_REACT_DOM_VERSION__;\n// @ts-ignore\nexport const INVENTREE_MANTINE_VERSION: string = __INVENTREE_MANTINE_VERSION__;\n"],"names":["INVENTREE_PLUGIN_VERSION","__INVENTREE_LIB_VERSION__","INVENTREE_REACT_VERSION","__INVENTREE_REACT_VERSION__","INVENTREE_REACT_DOM_VERSION","__INVENTREE_REACT_DOM_VERSION__","INVENTREE_MANTINE_VERSION","__INVENTREE_MANTINE_VERSION__"],"mappings":"AAuFO,MAAMA,2BAAmCC;AAEzC,MAAMC,0BAAkCC;
|
|
1
|
+
{"version":3,"file":"Plugins.js","sources":["../../lib/types/Plugins.tsx"],"sourcesContent":["import type { I18n } from '@lingui/core';\nimport type { MantineColorScheme, MantineTheme } from '@mantine/core';\nimport type { QueryClient } from '@tanstack/react-query';\nimport type { AxiosInstance } from 'axios';\nimport type { NavigateFunction } from 'react-router-dom';\nimport type { ModelDict } from '../enums/ModelInformation';\nimport type { ModelType } from '../enums/ModelType';\nimport type { ApiFormModalProps, BulkEditApiFormModalProps } from './Forms';\nimport type { UseModalReturn } from './Modals';\nimport type { RenderInstanceProps } from './Rendering';\nimport type { SettingsStateProps } from './Settings';\nimport type { UserStateProps } from './User';\n\nexport interface PluginProps {\n name: string;\n slug: string;\n version: null | string;\n}\n\nexport interface PluginVersion {\n inventree: string;\n react: string;\n reactDom: string;\n mantine: string;\n}\n\nexport type InvenTreeFormsContext = {\n bulkEdit: (props: BulkEditApiFormModalProps) => UseModalReturn;\n create: (props: ApiFormModalProps) => UseModalReturn;\n delete: (props: ApiFormModalProps) => UseModalReturn;\n edit: (props: ApiFormModalProps) => UseModalReturn;\n};\n\n/**\n * A set of properties which are passed to a plugin,\n * for rendering an element in the user interface.\n *\n * @param version - The version of the running InvenTree software stack\n * @param api - The Axios API instance (see ../states/ApiState.tsx)\n * @param user - The current user instance (see ../states/UserState.tsx)\n * @param userSettings - The current user settings (see ../states/SettingsState.tsx)\n * @param globalSettings - The global settings (see ../states/SettingsState.tsx)\n * @param navigate - The navigation function (see react-router-dom)\n * @param theme - The current Mantine theme\n * @param colorScheme - The current Mantine color scheme (e.g. 'light' / 'dark')\n * @param host - The current host URL\n * @param i18n - The i18n instance for translations (from @lingui/core)\n * @param locale - The current locale string (e.g. 'en' / 'de')\n * @param model - The model type associated with the rendered component (if applicable)\n * @param modelInformation - A dictionary of available model information\n * @param renderInstance - A component function for rendering a model instance\n * @param id - The ID (primary key) of the model instance for the plugin (if applicable)\n * @param instance - The model instance data (if available)\n * @param reloadContent - A function which can be called to reload the plugin content\n * @param reloadInstance - A function which can be called to reload the model instance\n * @param context - Any additional context data which may be passed to the plugin\n */\nexport type InvenTreePluginContext = {\n version: PluginVersion;\n api: AxiosInstance;\n queryClient: QueryClient;\n user: UserStateProps;\n userSettings: SettingsStateProps;\n globalSettings: SettingsStateProps;\n modelInformation: ModelDict;\n renderInstance: (props: Readonly<RenderInstanceProps>) => React.ReactNode;\n host: string;\n i18n: I18n;\n locale: string;\n navigate: NavigateFunction;\n theme: MantineTheme;\n forms: InvenTreeFormsContext;\n colorScheme: MantineColorScheme;\n model?: ModelType | string;\n id?: string | number | null;\n instance?: any;\n reloadContent?: () => void;\n reloadInstance?: () => void;\n context?: any;\n};\n\n/*\n * The version of the InvenTree plugin context interface.\n * This number should be incremented if the interface changes.\n */\n\n// @ts-ignore\nexport const INVENTREE_PLUGIN_VERSION: string = __INVENTREE_LIB_VERSION__;\n// @ts-ignore\nexport const INVENTREE_REACT_VERSION: string = __INVENTREE_REACT_VERSION__;\n// @ts-ignore\nexport const INVENTREE_REACT_DOM_VERSION: string =\n // @ts-ignore\n __INVENTREE_REACT_DOM_VERSION__;\n// @ts-ignore\nexport const INVENTREE_MANTINE_VERSION: string = __INVENTREE_MANTINE_VERSION__;\n"],"names":["INVENTREE_PLUGIN_VERSION","__INVENTREE_LIB_VERSION__","INVENTREE_REACT_VERSION","__INVENTREE_REACT_VERSION__","INVENTREE_REACT_DOM_VERSION","__INVENTREE_REACT_DOM_VERSION__","INVENTREE_MANTINE_VERSION","__INVENTREE_MANTINE_VERSION__"],"mappings":"AAuFO,MAAMA,2BAAmCC;AAEzC,MAAMC,0BAAkCC;AAExC,MAAMC;AAAAA;AAAAA,EAEXC;AAAAA;AAEK,MAAMC,4BAAoCC;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inventreedb/ui",
|
|
3
3
|
"description": "UI components for the InvenTree project",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
@@ -40,68 +40,68 @@
|
|
|
40
40
|
"compile": "lingui compile --typescript"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@codemirror/autocomplete": "6.18.
|
|
44
|
-
"@codemirror/lang-liquid": "6.
|
|
45
|
-
"@codemirror/language": "6.
|
|
46
|
-
"@codemirror/lint": "6.8.
|
|
47
|
-
"@codemirror/search": "6.5.
|
|
48
|
-
"@codemirror/state": "6.5.
|
|
49
|
-
"@codemirror/theme-one-dark": "6.1.
|
|
50
|
-
"@codemirror/view": "6.
|
|
43
|
+
"@codemirror/autocomplete": "6.18.6",
|
|
44
|
+
"@codemirror/lang-liquid": "6.3.0",
|
|
45
|
+
"@codemirror/language": "6.11.3",
|
|
46
|
+
"@codemirror/lint": "6.8.5",
|
|
47
|
+
"@codemirror/search": "6.5.11",
|
|
48
|
+
"@codemirror/state": "6.5.2",
|
|
49
|
+
"@codemirror/theme-one-dark": "6.1.3",
|
|
50
|
+
"@codemirror/view": "6.38.1",
|
|
51
51
|
"@emotion/react": "^11.13.3",
|
|
52
|
-
"@fortawesome/fontawesome-svg-core": "^
|
|
53
|
-
"@fortawesome/free-regular-svg-icons": "^
|
|
54
|
-
"@fortawesome/free-solid-svg-icons": "^
|
|
55
|
-
"@fortawesome/react-fontawesome": "^0.
|
|
52
|
+
"@fortawesome/fontawesome-svg-core": "^7.0.0",
|
|
53
|
+
"@fortawesome/free-regular-svg-icons": "^7.0.0",
|
|
54
|
+
"@fortawesome/free-solid-svg-icons": "^7.0.0",
|
|
55
|
+
"@fortawesome/react-fontawesome": "^3.0.1",
|
|
56
56
|
"@fullcalendar/core": "^6.1.15",
|
|
57
57
|
"@fullcalendar/daygrid": "^6.1.15",
|
|
58
58
|
"@fullcalendar/interaction": "^6.1.15",
|
|
59
59
|
"@fullcalendar/react": "^6.1.15",
|
|
60
60
|
"@lingui/core": "^5.3.1",
|
|
61
61
|
"@lingui/react": "^5.3.1",
|
|
62
|
-
"@mantine/carousel": "^
|
|
63
|
-
"@mantine/charts": "^
|
|
64
|
-
"@mantine/core": "^
|
|
65
|
-
"@mantine/dates": "^
|
|
66
|
-
"@mantine/dropzone": "^
|
|
67
|
-
"@mantine/form": "^
|
|
68
|
-
"@mantine/hooks": "^
|
|
69
|
-
"@mantine/modals": "^
|
|
70
|
-
"@mantine/notifications": "^
|
|
71
|
-
"@mantine/spotlight": "^
|
|
72
|
-
"@mantine/vanilla-extract": "^
|
|
62
|
+
"@mantine/carousel": "^8.2.7",
|
|
63
|
+
"@mantine/charts": "^8.2.7",
|
|
64
|
+
"@mantine/core": "^8.2.7",
|
|
65
|
+
"@mantine/dates": "^8.2.7",
|
|
66
|
+
"@mantine/dropzone": "^8.2.7",
|
|
67
|
+
"@mantine/form": "^8.2.7",
|
|
68
|
+
"@mantine/hooks": "^8.2.7",
|
|
69
|
+
"@mantine/modals": "^8.2.7",
|
|
70
|
+
"@mantine/notifications": "^8.2.7",
|
|
71
|
+
"@mantine/spotlight": "^8.2.7",
|
|
72
|
+
"@mantine/vanilla-extract": "^8.2.7",
|
|
73
73
|
"@messageformat/date-skeleton": "^1.1.0",
|
|
74
|
-
"@sentry/react": "^
|
|
74
|
+
"@sentry/react": "^10.7.0",
|
|
75
75
|
"@tabler/icons-react": "^3.17.0",
|
|
76
76
|
"@tanstack/react-query": "^5.56.2",
|
|
77
|
-
"@uiw/codemirror-theme-vscode": "4.
|
|
78
|
-
"@uiw/react-codemirror": "4.
|
|
77
|
+
"@uiw/codemirror-theme-vscode": "4.25.1",
|
|
78
|
+
"@uiw/react-codemirror": "4.25.1",
|
|
79
79
|
"@uiw/react-split": "^5.9.3",
|
|
80
80
|
"@vanilla-extract/css": "^1.17.1",
|
|
81
81
|
"axios": "^1.8.4",
|
|
82
82
|
"clsx": "^2.1.1",
|
|
83
|
-
"codemirror": "6.0.
|
|
83
|
+
"codemirror": "6.0.2",
|
|
84
84
|
"dayjs": "^1.11.13",
|
|
85
85
|
"dompurify": "^3.2.4",
|
|
86
86
|
"easymde": "^2.18.0",
|
|
87
87
|
"embla-carousel-react": "^8.5.2",
|
|
88
88
|
"fuse.js": "^7.0.0",
|
|
89
89
|
"html5-qrcode": "^2.3.8",
|
|
90
|
-
"mantine-contextmenu": "^
|
|
91
|
-
"mantine-datatable": "^
|
|
90
|
+
"mantine-contextmenu": "^8.2.0",
|
|
91
|
+
"mantine-datatable": "^8.2.0",
|
|
92
92
|
"qrcode": "^1.5.4",
|
|
93
93
|
"react": "^19.1.1",
|
|
94
94
|
"react-dom": "^19.1.1",
|
|
95
95
|
"react-grid-layout": "1.4.4",
|
|
96
|
-
"react-hook-form": "^7.
|
|
96
|
+
"react-hook-form": "^7.62.0",
|
|
97
97
|
"react-is": "^19.1.1",
|
|
98
98
|
"react-router-dom": "^6.26.2",
|
|
99
99
|
"react-select": "^5.9.0",
|
|
100
100
|
"react-simplemde-editor": "^5.2.0",
|
|
101
101
|
"react-window": "1.8.11",
|
|
102
|
-
"recharts": "^
|
|
102
|
+
"recharts": "^3.1.2",
|
|
103
103
|
"styled-components": "^6.1.14",
|
|
104
|
-
"zustand": "^5.0.
|
|
104
|
+
"zustand": "^5.0.8"
|
|
105
105
|
},
|
|
106
106
|
"devDependencies": {
|
|
107
107
|
"@babel/core": "^7.26.10",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"@lingui/cli": "^5.3.1",
|
|
114
114
|
"@lingui/macro": "^5.3.1",
|
|
115
115
|
"@playwright/test": "^1.52.0",
|
|
116
|
-
"@types/node": "^
|
|
116
|
+
"@types/node": "^24.3.0",
|
|
117
117
|
"@types/qrcode": "^1.5.5",
|
|
118
118
|
"@types/react": "^19.1.10",
|
|
119
119
|
"@types/react-dom": "^19.1.7",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"@types/react-router-dom": "^5.3.3",
|
|
122
122
|
"@types/react-window": "^1.8.8",
|
|
123
123
|
"@vanilla-extract/vite-plugin": "^5.0.1",
|
|
124
|
-
"@vitejs/plugin-react": "^
|
|
124
|
+
"@vitejs/plugin-react": "^5.0.2",
|
|
125
125
|
"babel-plugin-macros": "^3.1.0",
|
|
126
126
|
"nyc": "^17.1.0",
|
|
127
127
|
"path": "^0.12.7",
|