@kartverket/backstage-plugin-risk-scorecard 5.1.3 → 5.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useRiScs } from '../../contexts/RiScContext.esm.js';
|
|
3
3
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
4
4
|
import { pluginRiScTranslationRef } from '../../utils/translations.esm.js';
|
|
@@ -8,7 +8,7 @@ import riscStyles from './RiScSelectionCard.module.css.esm.js';
|
|
|
8
8
|
function RiScSelectionCard() {
|
|
9
9
|
const { riScs, selectedRiSc, selectRiSc } = useRiScs();
|
|
10
10
|
const { t } = useTranslationRef(pluginRiScTranslationRef);
|
|
11
|
-
return /* @__PURE__ */ jsx(Flex, { direction: "column", gap: "24px", children:
|
|
11
|
+
return /* @__PURE__ */ jsx(Flex, { direction: "column", gap: "24px", children: riScs !== null && riScs.length !== 0 && /* @__PURE__ */ jsx(
|
|
12
12
|
Select,
|
|
13
13
|
{
|
|
14
14
|
value: selectedRiSc?.id,
|
|
@@ -23,7 +23,7 @@ function RiScSelectionCard() {
|
|
|
23
23
|
},
|
|
24
24
|
size: "medium"
|
|
25
25
|
}
|
|
26
|
-
) })
|
|
26
|
+
) });
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export { RiScSelectionCard };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RiScSelectionCard.esm.js","sources":["../../../src/components/riScInfo/RiScSelectionCard.tsx"],"sourcesContent":["import { useRiScs } from '../../contexts/RiScContext.tsx';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\nimport { pluginRiScTranslationRef } from '../../utils/translations.ts';\nimport { Select, Flex } from '@backstage/ui';\nimport styles from './RiScSelectionCard.module.css';\n\nexport function RiScSelectionCard() {\n const { riScs, selectedRiSc, selectRiSc } = useRiScs();\n const { t } = useTranslationRef(pluginRiScTranslationRef);\n\n return (\n <Flex direction=\"column\" gap=\"24px\">\n
|
|
1
|
+
{"version":3,"file":"RiScSelectionCard.esm.js","sources":["../../../src/components/riScInfo/RiScSelectionCard.tsx"],"sourcesContent":["import { useRiScs } from '../../contexts/RiScContext.tsx';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\nimport { pluginRiScTranslationRef } from '../../utils/translations.ts';\nimport { Select, Flex } from '@backstage/ui';\nimport styles from './RiScSelectionCard.module.css';\n\nexport function RiScSelectionCard() {\n const { riScs, selectedRiSc, selectRiSc } = useRiScs();\n const { t } = useTranslationRef(pluginRiScTranslationRef);\n\n return (\n <Flex direction=\"column\" gap=\"24px\">\n {riScs !== null && riScs.length !== 0 && (\n <Select\n value={selectedRiSc?.id}\n className={styles.selectTrigger}\n aria-label={t('contentHeader.multipleRiScs')}\n options={riScs.map(riSc => ({\n value: riSc.id,\n label: riSc.content.title,\n }))}\n onSelectionChange={key => {\n if (key) selectRiSc(key.toString());\n }}\n size=\"medium\"\n />\n )}\n </Flex>\n );\n}\n"],"names":["styles"],"mappings":";;;;;;;AAMO,SAAS,iBAAA,GAAoB;AAClC,EAAA,MAAM,EAAE,KAAA,EAAO,YAAA,EAAc,UAAA,KAAe,QAAA,EAAS;AACrD,EAAA,MAAM,EAAE,CAAA,EAAE,GAAI,iBAAA,CAAkB,wBAAwB,CAAA;AAExD,EAAA,uBACE,GAAA,CAAC,IAAA,EAAA,EAAK,SAAA,EAAU,QAAA,EAAS,GAAA,EAAI,QAC1B,QAAA,EAAA,KAAA,KAAU,IAAA,IAAQ,KAAA,CAAM,MAAA,KAAW,CAAA,oBAClC,GAAA;AAAA,IAAC,MAAA;AAAA,IAAA;AAAA,MACC,OAAO,YAAA,EAAc,EAAA;AAAA,MACrB,WAAWA,UAAA,CAAO,aAAA;AAAA,MAClB,YAAA,EAAY,EAAE,6BAA6B,CAAA;AAAA,MAC3C,OAAA,EAAS,KAAA,CAAM,GAAA,CAAI,CAAA,IAAA,MAAS;AAAA,QAC1B,OAAO,IAAA,CAAK,EAAA;AAAA,QACZ,KAAA,EAAO,KAAK,OAAA,CAAQ;AAAA,OACtB,CAAE,CAAA;AAAA,MACF,mBAAmB,CAAA,GAAA,KAAO;AACxB,QAAA,IAAI,GAAA,EAAK,UAAA,CAAW,GAAA,CAAI,QAAA,EAAU,CAAA;AAAA,MACpC,CAAA;AAAA,MACA,IAAA,EAAK;AAAA;AAAA,GACP,EAEJ,CAAA;AAEJ;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styleInject from '../../node_modules_dist/style-inject/dist/style-inject.es.esm.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var riscStyles = {"selectTrigger":"
|
|
3
|
+
var css_248z = ".RiScSelectionCard_selectTrigger__5135061fa0 button {\n background-color: transparent;\n}\n\n[role='listbox'] {\n max-height: 400px;\n overflow-y: auto;\n}\n\n.RiScSelectionCard_riScInfoDialog__5135061fa0 {\n padding: 24px;\n border-radius: 4px;\n width: 800px;\n}\n\n.RiScSelectionCard_riscSelectionDialogHeader__5135061fa0 {\n padding: 0 0 16px 0;\n}\n\n.RiScSelectionCard_riscSelectionDialogBody__5135061fa0 {\n gap: 16px;\n padding: 16px 0 0 0;\n}\n\n.RiScSelectionCard_riscDescriptionComponent__5135061fa0 {\n padding-bottom: 10px;\n}\n.RiScSelectionCard_componentLayout__5135061fa0 {\n height: 60%;\n}\n\n.RiScSelectionCard_riscDescriptionContainer__5135061fa0 {\n margin-bottom: 16px;\n}\n";
|
|
4
|
+
var riscStyles = {"selectTrigger":"RiScSelectionCard_selectTrigger__5135061fa0","riScInfoDialog":"RiScSelectionCard_riScInfoDialog__5135061fa0","riscDescriptionComponent":"RiScSelectionCard_riscDescriptionComponent__5135061fa0","componentLayout":"RiScSelectionCard_componentLayout__5135061fa0","riscDescriptionContainer":"RiScSelectionCard_riscDescriptionContainer__5135061fa0"};
|
|
5
5
|
styleInject(css_248z);
|
|
6
6
|
|
|
7
7
|
export { riscStyles as default };
|