{"version":3,"file":"navModel.cjs","sources":["../../../src/types/navModel.ts"],"sourcesContent":["import { ComponentType } from 'react';\n\nimport { IconName } from './icon';\nimport { LinkTarget } from './linkTarget';\n\nexport interface NavLinkDTO {\n  id?: string;\n  text: string;\n  subTitle?: string;\n  icon?: IconName;\n  img?: string;\n  url?: string;\n  target?: LinkTarget;\n  sortWeight?: number;\n  hideFromTabs?: boolean;\n  roundIcon?: boolean;\n  isNew?: boolean;\n  /**\n   * This is true for some sections that have no children (but is still a section)\n   **/\n  isSection?: boolean;\n  children?: NavLinkDTO[];\n  highlightText?: string;\n  highlightId?: string;\n  emptyMessageId?: string;\n  // The ID of the plugin that registered the page (in case it was registered by a plugin, otherwise left empty)\n  pluginId?: string;\n  // Whether the page is used to create a new resource. We may place these in a different position in the UI.\n  isCreateAction?: boolean;\n  // Optional keywords to match on when searching (e.g. in the CommandPalette)\n  keywords?: string[];\n}\n\nexport interface NavModelItem extends NavLinkDTO {\n  children?: NavModelItem[];\n  active?: boolean;\n  parentItem?: NavModelItem;\n  onClick?: () => void;\n  tabSuffix?: ComponentType<{ className?: string }>;\n  tabCounter?: number;\n  hideFromBreadcrumbs?: boolean;\n  emptyMessage?: string;\n}\n\n/**\n *  Interface used to describe  different kinds of page titles and page navigation. Navmodels are usually generated in the backend and stored in Redux.\n */\nexport interface NavModel {\n  /**\n   *  Main page. that wraps the navigation. Generate the `children` property generate tabs when used with the Page component.\n   */\n  main: NavModelItem;\n  /**\n   *   This is the current active tab/navigation.\n   */\n  node: NavModelItem;\n}\n\nexport type NavIndex = { [s: string]: NavModelItem };\n\nexport enum PageLayoutType {\n  Standard,\n  Canvas,\n  Custom,\n}\n"],"names":["PageLayoutType"],"mappings":";;;;;AA4DO,IAAK,cAAA,qBAAAA,eAAAA,KAAL;AACL,EAAAA,eAAAA,CAAAA,eAAAA,CAAA,UAAA,CAAA,GAAA,CAAA,CAAA,GAAA,UAAA;AACA,EAAAA,eAAAA,CAAAA,eAAAA,CAAA,QAAA,CAAA,GAAA,CAAA,CAAA,GAAA,QAAA;AACA,EAAAA,eAAAA,CAAAA,eAAAA,CAAA,QAAA,CAAA,GAAA,CAAA,CAAA,GAAA,QAAA;AAHU,EAAA,OAAAA,eAAAA;AAAA,CAAA,EAAA,cAAA,IAAA,EAAA;;;;"}