d2coreui 23.0.50 → 23.0.51
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/components/grid/export/contextMenu.js.map +1 -1
- package/components/grid/export/worker/pdfExport.js +1 -1
- package/components/grid/export/worker/pdfExport.js.map +1 -1
- package/package.json +6 -11
- package/style/index.less +240 -240
- package/tsconfig.build.json +0 -24
- package/tsconfig.json +0 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contextMenu.js","sourceRoot":"","sources":["../../../../../components/grid/export/contextMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAChG,OAAO,EAAY,MAAM,EAAE,UAAU,EAAC,MAAM,MAAM,CAAC;AACnD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,kBAAkB,CAAC;AACpC,OAAO,EAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAC,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAC,cAAc,EAAC,MAAM,8CAA8C,CAAC;AAC5E,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AA4BpE,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAuB;IAC1D,MAAM,EAAC,+BAA+B,EAAE,gBAAgB,EAAE,QAAQ,EAAE,OAAO,EAAC,GAAG,KAAK,CAAC;IAErF,MAAM,iBAAiB,GAAG,KAAK,EAAE,OAAe,EAAE,EAAE;;QAChD,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACrB,QAAQ,OAAO,EAAE,CAAC;YAClB,KAAK,WAAW,CAAC,CAAC,CAAC;gBACX,MAAM,aAAa,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,gBAAgB,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C;gBAC1B,oBAAC,UAAU,CAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAE,EAAC,KAAK,EAAE,OAAO,EAAC,aAA0B,CACxE;SACN;KACJ,CAAC;IAEF,IAAI,QAAQ,EAAE,CAAC;QACX,SAAS,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;IACpC,CAAC;IAED,OAAO;QACH,KAAK,EAAE,SAAS;QAChB,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;YACd,iBAAiB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAC5B,IAAI,OAAO,EAAE,CAAC;gBACV,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;YACjC,CAAC;QACL,CAAC;KACJ,CAAA;AACL,CAAC","sourcesContent":["import {CopyOutlined, FileOutlined, FilePdfOutlined, FileTextOutlined} from \"@ant-design/icons\";\r\nimport {MenuProps, Switch, Typography} from \"antd\";\r\nimport React from \"react\";\r\nimport i18n from \"d2core/i18n/i18n\";\r\nimport {spawn, Thread, Worker} from \"threads\"\r\nimport dayjs from \"dayjs\";\r\nimport ProgressPopup from \"./progressPopup\";\r\nimport {MenuElement} from \"../dataGrid\";\r\nimport {ClipboardUtils} from \"d2coreui/components/clipboard/clipboardUtils\";\r\nimport PlatformSpecific from \"d2coreui/components/platformSpecific\";\r\n\r\n\r\nexport interface ContextMenuProps {\r\n onlySelectedNodes?: boolean\r\n showMilliseconds: boolean\r\n showYear: boolean\r\n showUtcOffset: boolean\r\n hideNotificationOnClipboardCopy?: boolean\r\n pageOrientation: PageOrientation\r\n exporting: boolean\r\n\r\n getExportContent: (progressPopup: ProgressPopup | null, props: ContextMenuProps) => Promise<string[][]>\r\n onPageOrientationChange:(pageOrientation: PageOrientation)=>void\r\n onExport:(start: boolean)=>void\r\n\r\n // overrides context menu rendering\r\n renderer?(menuElements: MenuElement[]): MenuElement[]\r\n\r\n // handler for custom context menu items click\r\n onClick?(key: string): void\r\n\r\n // export finished callback\r\n onExported?: (rowCount: number, destination: string) => void\r\n}\r\n\r\nexport type PageOrientation = \"PORTRAIT\" | \"LANDSCAPE\";\r\n\r\nexport default function getContextMenu(props: ContextMenuProps): MenuProps {\r\n const {hideNotificationOnClipboardCopy, getExportContent, renderer, onClick} = props;\r\n\r\n const onExportMenuClick = async (menuKey: string) => {\r\n props.onExport(true);\r\n switch (menuKey) {\r\n case \"txtExport\": {\r\n const progressPopup = new ProgressPopup(i18n(\"Export List to\") + \" TXT\");\r\n const tableContent = await getExportContent(progressPopup, props);\r\n const txtExport = await spawn(new Worker(new URL('./worker/txtExport.ts', import.meta.url) as any, {type: 'module'}));\r\n const textContent = await txtExport(tableContent);\r\n const fileName = `export_${dayjs().format(\"YYYYMMDD_HHmm\")}.txt`;\r\n await Thread.terminate(txtExport);\r\n await progressPopup.update(100);\r\n PlatformSpecific.INSTANCE.saveContent(fileName, textContent, true);\r\n props.onExported?.(tableContent.length - 1, fileName);\r\n break;\r\n }\r\n case \"csvExport\": {\r\n const progressPopup = new ProgressPopup(i18n(\"Export List to\") + \" CSV\");\r\n const tableContent = await getExportContent(progressPopup, props);\r\n const csvExport = await spawn(new Worker(new URL('./worker/csvExport.ts', import.meta.url) as any, {type: 'module'}));\r\n const csvContent = await csvExport(tableContent);\r\n const fileName = `export_${dayjs().format(\"YYYYMMDD_HHmm\")}.csv`;\r\n await Thread.terminate(csvExport);\r\n await progressPopup.update(100);\r\n PlatformSpecific.INSTANCE.saveContent(fileName, csvContent, true);\r\n props.onExported?.(tableContent.length - 1, fileName);\r\n break;\r\n }\r\n case \"clipboardCopy\": {\r\n const progressPopup = !hideNotificationOnClipboardCopy ? new ProgressPopup(i18n(\"Export List to\") + \" \" + i18n(\"Clipboard\")) : null;\r\n const tableContent = await getExportContent(progressPopup, props);\r\n const clipboardExport = await spawn(new Worker(new URL('./worker/clipboardExport.ts', import.meta.url) as any, {type: 'module'}));\r\n const clipboardContent = await clipboardExport(tableContent);\r\n const success = ClipboardUtils.copyToClipboard(clipboardContent);\r\n if (success) {\r\n await Thread.terminate(clipboardExport);\r\n await progressPopup?.update(100);\r\n props.onExported?.(tableContent.length - 1, \"[CLIPBOARD]\");\r\n } else {\r\n progressPopup?.error();\r\n }\r\n break;\r\n }\r\n case \"pdfExport\": {\r\n const progressPopup = new ProgressPopup(i18n(\"Export List to\") + \" PDF\");\r\n const tableContent = await getExportContent(progressPopup, props);\r\n const pdfExport = await spawn(new Worker(new URL('./worker/pdfExport.ts', import.meta.url) as any, {type: 'module'}));\r\n pdfExport.handler().subscribe(async (data: string) => {\r\n const fileName = `export_${dayjs().format(\"YYYYMMDD_HHmm\")}.pdf`;\r\n Thread.terminate(pdfExport);\r\n await progressPopup.update(100);\r\n PlatformSpecific.INSTANCE.saveContent(fileName, data, false);\r\n props.onExported?.(tableContent.length - 1, fileName);\r\n });\r\n pdfExport.export(tableContent, {pageOrientation: props.pageOrientation});\r\n break;\r\n }\r\n }\r\n props.onExport(false);\r\n }\r\n\r\n let menuItems: MenuElement[] = [\r\n {\r\n key: \"txtExport\",\r\n icon: <FileOutlined/>,\r\n disabled: props.exporting,\r\n label: i18n(\"Export List to\") + \" TXT\",\r\n },\r\n {\r\n key: \"csvExport\",\r\n icon: <FileTextOutlined/>,\r\n disabled: props.exporting,\r\n label: i18n(\"Export List to\") + \" CSV\",\r\n },\r\n {\r\n key: \"pdfExport\",\r\n icon: <FilePdfOutlined/>,\r\n disabled: props.exporting,\r\n label: <>\r\n {i18n(\"Export List to\") + \" PDF\"}\r\n <Switch\r\n style={{marginLeft: 8}}\r\n checkedChildren={i18n(\"Landscape\") + \" \"}\r\n unCheckedChildren={\"\" + i18n(\"Portrait\")}\r\n checked={props.pageOrientation !== \"PORTRAIT\"}\r\n onChange={(checked, e) => {\r\n e.stopPropagation();\r\n (e as any).nativeEvent.stopImmediatePropagation();\r\n props.onPageOrientationChange(checked ? \"LANDSCAPE\" : \"PORTRAIT\")\r\n }}\r\n />\r\n </>\r\n },\r\n {\r\n key: \"divider1\",\r\n type: \"divider\",\r\n },\r\n {\r\n key: \"clipboardCopy\",\r\n icon: <CopyOutlined/>,\r\n disabled: props.exporting,\r\n label: <>\r\n {i18n(\"Copy to Clipboard\")}\r\n <Typography.Text code style={{float: \"right\"}}>CTRL+C</Typography.Text>\r\n </>,\r\n }\r\n ];\r\n\r\n if (renderer) {\r\n menuItems = renderer(menuItems);\r\n }\r\n\r\n return {\r\n items: menuItems,\r\n onClick: (item) => {\r\n onExportMenuClick(item.key);\r\n if (onClick) {\r\n onClick(item.key.toString());\r\n }\r\n },\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"contextMenu.js","sourceRoot":"","sources":["../../../../../components/grid/export/contextMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAChG,OAAO,EAAY,MAAM,EAAE,UAAU,EAAC,MAAM,MAAM,CAAC;AACnD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,kBAAkB,CAAC;AACpC,OAAO,EAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAC,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAC,cAAc,EAAC,MAAM,8CAA8C,CAAC;AAC5E,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AA4BpE,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAuB;IAC1D,MAAM,EAAC,+BAA+B,EAAE,gBAAgB,EAAE,QAAQ,EAAE,OAAO,EAAC,GAAG,KAAK,CAAC;IAErF,MAAM,iBAAiB,GAAG,KAAK,EAAE,OAAe,EAAE,EAAE;;QAChD,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACrB,QAAQ,OAAO,EAAE,CAAC;YAClB,KAAK,WAAW,C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QAAQ,EAAE,KAAK,CAAC,SAAS;YACzB,KAAK,EAAE;gBACF,IAAI,CAAC,mBAAmB,CAAC;gBAC1B,oBAAC,UAAU,CAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAE,EAAC,KAAK,EAAE,OAAO,EAAC,aAA0B,CACxE;SACN;KACJ,CAAC;IAEF,IAAI,QAAQ,EAAE,CAAC;QACX,SAAS,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;IACpC,CAAC;IAED,OAAO;QACH,KAAK,EAAE,SAAS;QAChB,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;YACd,iBAAiB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAC5B,IAAI,OAAO,EAAE,CAAC;gBACV,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;YACjC,CAAC;QACL,CAAC;KACJ,CAAA;AACL,CAAC","sourcesContent":["import {CopyOutlined, FileOutlined, FilePdfOutlined, FileTextOutlined} from \"@ant-design/icons\";\nimport {MenuProps, Switch, Typography} from \"antd\";\nimport React from \"react\";\nimport i18n from \"d2core/i18n/i18n\";\nimport {spawn, Thread, Worker} from \"threads\"\nimport dayjs from \"dayjs\";\nimport ProgressPopup from \"./progressPopup\";\nimport {MenuElement} from \"../dataGrid\";\nimport {ClipboardUtils} from \"d2coreui/components/clipboard/clipboardUtils\";\nimport PlatformSpecific from \"d2coreui/components/platformSpecific\";\n\n\nexport interface ContextMenuProps {\n onlySelectedNodes?: boolean\n showMilliseconds: boolean\n showYear: boolean\n showUtcOffset: boolean\n hideNotificationOnClipboardCopy?: boolean\n pageOrientation: PageOrientation\n exporting: boolean\n\n getExportContent: (progressPopup: ProgressPopup | null, props: ContextMenuProps) => Promise<string[][]>\n onPageOrientationChange:(pageOrientation: PageOrientation)=>void\n onExport:(start: boolean)=>void\n\n // overrides context menu rendering\n renderer?(menuElements: MenuElement[]): MenuElement[]\n\n // handler for custom context menu items click\n onClick?(key: string): void\n\n // export finished callback\n onExported?: (rowCount: number, destination: string) => void\n}\n\nexport type PageOrientation = \"PORTRAIT\" | \"LANDSCAPE\";\n\nexport default function getContextMenu(props: ContextMenuProps): MenuProps {\n const {hideNotificationOnClipboardCopy, getExportContent, renderer, onClick} = props;\n\n const onExportMenuClick = async (menuKey: string) => {\n props.onExport(true);\n switch (menuKey) {\n case \"txtExport\": {\n const progressPopup = new ProgressPopup(i18n(\"Export List to\") + \" TXT\");\n const tableContent = await getExportContent(progressPopup, props);\n const txtExport = await spawn(new Worker(new URL('./worker/txtExport.js', import.meta.url) as any, {type: 'module'}));\n const textContent = await txtExport(tableContent);\n const fileName = `export_${dayjs().format(\"YYYYMMDD_HHmm\")}.txt`;\n await Thread.terminate(txtExport);\n await progressPopup.update(100);\n PlatformSpecific.INSTANCE.saveContent(fileName, textContent, true);\n props.onExported?.(tableContent.length - 1, fileName);\n break;\n }\n case \"csvExport\": {\n const progressPopup = new ProgressPopup(i18n(\"Export List to\") + \" CSV\");\n const tableContent = await getExportContent(progressPopup, props);\n const csvExport = await spawn(new Worker(new URL('./worker/csvExport.js', import.meta.url) as any, {type: 'module'}));\n const csvContent = await csvExport(tableContent);\n const fileName = `export_${dayjs().format(\"YYYYMMDD_HHmm\")}.csv`;\n await Thread.terminate(csvExport);\n await progressPopup.update(100);\n PlatformSpecific.INSTANCE.saveContent(fileName, csvContent, true);\n props.onExported?.(tableContent.length - 1, fileName);\n break;\n }\n case \"clipboardCopy\": {\n const progressPopup = !hideNotificationOnClipboardCopy ? new ProgressPopup(i18n(\"Export List to\") + \" \" + i18n(\"Clipboard\")) : null;\n const tableContent = await getExportContent(progressPopup, props);\n const clipboardExport = await spawn(new Worker(new URL('./worker/clipboardExport.js', import.meta.url) as any, {type: 'module'}));\n const clipboardContent = await clipboardExport(tableContent);\n const success = ClipboardUtils.copyToClipboard(clipboardContent);\n if (success) {\n await Thread.terminate(clipboardExport);\n await progressPopup?.update(100);\n props.onExported?.(tableContent.length - 1, \"[CLIPBOARD]\");\n } else {\n progressPopup?.error();\n }\n break;\n }\n case \"pdfExport\": {\n const progressPopup = new ProgressPopup(i18n(\"Export List to\") + \" PDF\");\n const tableContent = await getExportContent(progressPopup, props);\n const pdfExport = await spawn(new Worker(new URL('./worker/pdfExport.js', import.meta.url) as any, {type: 'module'}));\n pdfExport.handler().subscribe(async (data: string) => {\n const fileName = `export_${dayjs().format(\"YYYYMMDD_HHmm\")}.pdf`;\n Thread.terminate(pdfExport);\n await progressPopup.update(100);\n PlatformSpecific.INSTANCE.saveContent(fileName, data, false);\n props.onExported?.(tableContent.length - 1, fileName);\n });\n pdfExport.export(tableContent, {pageOrientation: props.pageOrientation});\n break;\n }\n }\n props.onExport(false);\n }\n\n let menuItems: MenuElement[] = [\n {\n key: \"txtExport\",\n icon: <FileOutlined/>,\n disabled: props.exporting,\n label: i18n(\"Export List to\") + \" TXT\",\n },\n {\n key: \"csvExport\",\n icon: <FileTextOutlined/>,\n disabled: props.exporting,\n label: i18n(\"Export List to\") + \" CSV\",\n },\n {\n key: \"pdfExport\",\n icon: <FilePdfOutlined/>,\n disabled: props.exporting,\n label: <>\n {i18n(\"Export List to\") + \" PDF\"}\n <Switch\n style={{marginLeft: 8}}\n checkedChildren={i18n(\"Landscape\") + \" \"}\n unCheckedChildren={\"\" + i18n(\"Portrait\")}\n checked={props.pageOrientation !== \"PORTRAIT\"}\n onChange={(checked, e) => {\n e.stopPropagation();\n (e as any).nativeEvent.stopImmediatePropagation();\n props.onPageOrientationChange(checked ? \"LANDSCAPE\" : \"PORTRAIT\")\n }}\n />\n </>\n },\n {\n key: \"divider1\",\n type: \"divider\",\n },\n {\n key: \"clipboardCopy\",\n icon: <CopyOutlined/>,\n disabled: props.exporting,\n label: <>\n {i18n(\"Copy to Clipboard\")}\n <Typography.Text code style={{float: \"right\"}}>CTRL+C</Typography.Text>\n </>,\n }\n ];\n\n if (renderer) {\n menuItems = renderer(menuItems);\n }\n\n return {\n items: menuItems,\n onClick: (item) => {\n onExportMenuClick(item.key);\n if (onClick) {\n onClick(item.key.toString());\n }\n },\n }\n}\n"]}
|
|
@@ -4,7 +4,7 @@ import pdfFonts from "pdfmake/build/vfs_fonts";
|
|
|
4
4
|
import dayjs from "dayjs";
|
|
5
5
|
import { Observable, Subject } from "threads/observable";
|
|
6
6
|
import { LocaleHolder } from "d2core/i18n/localeHolder";
|
|
7
|
-
pdfMake.vfs = pdfFonts
|
|
7
|
+
pdfMake.vfs = pdfFonts;
|
|
8
8
|
function getPdfConfig(tableData, pageConfig) {
|
|
9
9
|
tableData[0] = tableData[0].map((value) => {
|
|
10
10
|
return { text: value, style: 'tableHeader' };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdfExport.js","sourceRoot":"","sources":["../../../../../../components/grid/export/worker/pdfExport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAA;AACrC,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAE5C,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAE,OAAO,EAAC,MAAM,oBAAoB,CAAA;AACtD,OAAO,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAEtD,OAAO,CAAC,GAAG,GAAG,QAAQ,CAAC
|
|
1
|
+
{"version":3,"file":"pdfExport.js","sourceRoot":"","sources":["../../../../../../components/grid/export/worker/pdfExport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAA;AACrC,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAE5C,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAE,OAAO,EAAC,MAAM,oBAAoB,CAAA;AACtD,OAAO,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAEtD,OAAO,CAA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E;SACf;QACD,MAAM,EAAE,UAAU,WAAmB,EAAE,SAAiB;YACpD,OAAO;gBACH,KAAK,EAAE;oBACH,MAAM,EAAE,CAAC,GAAG,CAAC;oBACb,IAAI,EAAE;wBACF;4BACI,EAAC,IAAI,EAAE,GAAG,WAAW,IAAI,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAC;yBAC7D;qBACJ;iBACJ;gBACD,MAAM,EAAE,WAAW;aACtB,CAAC;QACN,CAAC;QACD,IAAI,EAAE;YACF,KAAK,EAAE,UAAU,KAAK,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE;YAC7E,MAAM,EAAE,OAAO;SAClB;QACD,eAAe,EAAE,UAAU,CAAC,eAAe;KAC9C,CAAC;AACN,CAAC;AAED,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAC9B,MAAM,SAAS,GAAG;IACd,MAAM,CAAC,SAAwB,EAAE,UAAsB;QACnD,OAAO,CAAC,SAAS,CAAC,YAAY,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE;YACtE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACnB,OAAO,CAAC,QAAQ,EAAE,CAAC;QACvB,CAAC,CAAC,CAAC;IACP,CAAC;IACD,OAAO;QACH,OAAO,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;CACJ,CAAC;AAEF,MAAM,CAAC,SAAS,CAAC,CAAC","sourcesContent":["import {expose} from \"threads/worker\"\nimport pdfMake from \"pdfmake/build/pdfmake\";\nimport {PageOrientation, TDocumentDefinitions} from \"pdfmake/interfaces\";\nimport pdfFonts from \"pdfmake/build/vfs_fonts\";\nimport dayjs from \"dayjs\";\nimport {Observable, Subject} from \"threads/observable\"\nimport {LocaleHolder} from \"d2core/i18n/localeHolder\";\n\npdfMake.vfs = pdfFonts;\n\ninterface PageConfig {\n pageOrientation: PageOrientation\n}\n\ntype TableCell = string | { text: string, style: string }\n\nfunction getPdfConfig(tableData: TableCell[][], pageConfig: PageConfig): TDocumentDefinitions {\n // styling header\n tableData[0] = tableData[0].map((value) => {\n return {text: value as string, style: 'tableHeader'};\n });\n // escaping empty data\n tableData.forEach((row) => {\n row.forEach((value, index) => {\n if (value === undefined || value === null) {\n row[index] = \"\";\n }\n });\n });\n return {\n content: [{\n style: 'tableExample',\n table: {\n headerRows: 1,\n // dontBreakRows: true,\n // keepWithHeaderRows: 1,\n body: tableData\n }\n }],\n styles: {\n header: {\n fontSize: 10,\n bold: true,\n margin: [0, 0, 0, 10]\n },\n subheader: {\n fontSize: 9,\n bold: true,\n margin: [0, 10, 0, 5]\n },\n tableExample: {\n margin: [0, 5, 0, 15],\n\n },\n tableHeader: {\n bold: true,\n fontSize: 10,\n }\n },\n defaultStyle: {\n // alignment: 'justify',\n fontSize: 10,\n },\n footer: function (currentPage: number, pageCount: number) {\n return {\n table: {\n widths: ['*'],\n body: [\n [\n {text: `${currentPage}/${pageCount}`, alignment: 'center'},\n ]\n ]\n },\n layout: 'noBorders'\n };\n },\n info: {\n title: `Export ${dayjs().format(LocaleHolder.getDateTimeFormat(true, true))}`,\n author: 'D2000',\n },\n pageOrientation: pageConfig.pageOrientation\n };\n}\n\nconst subject = new Subject();\nconst pdfExport = {\n export(tableData: TableCell[][], pageConfig: PageConfig) {\n pdfMake.createPdf(getPdfConfig(tableData, pageConfig)).getBase64((data) => {\n subject.next(data);\n subject.complete();\n });\n },\n handler() {\n return Observable.from(subject);\n },\n};\n\nexpose(pdfExport);"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "d2coreui",
|
|
3
|
-
"version": "23.0.
|
|
3
|
+
"version": "23.0.51",
|
|
4
4
|
"description": "Core UI components and utilities library.",
|
|
5
5
|
"author": "Ipesoft s.r.o.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@types/draft-convert": "2.1.8",
|
|
17
17
|
"@types/draft-js": "0.11.18",
|
|
18
18
|
"@types/lodash": "4.17.5",
|
|
19
|
-
"@types/pdfmake": "0.2.
|
|
19
|
+
"@types/pdfmake": "0.2.13",
|
|
20
20
|
"@types/react": "18.3.7",
|
|
21
21
|
"@types/react-collapse": "5.0.4",
|
|
22
22
|
"@types/react-color": "3.0.12",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"ag-grid-react": "34.3.1",
|
|
27
27
|
"antd": "5.29.3",
|
|
28
28
|
"antd-style": "4.1.0",
|
|
29
|
-
"codemirror": "5.
|
|
29
|
+
"codemirror": "5.65.20",
|
|
30
30
|
"dayjs": "1.11.13",
|
|
31
31
|
"dom-scroll-into-view": "2.0.1",
|
|
32
32
|
"draft-convert": "2.1.12",
|
|
@@ -37,9 +37,8 @@
|
|
|
37
37
|
"lodash": "4.17.23",
|
|
38
38
|
"memoize-one": "6.0.0",
|
|
39
39
|
"parse-decimal-number": "1.0.0",
|
|
40
|
-
"pdfmake": "0.2.
|
|
40
|
+
"pdfmake": "0.2.23",
|
|
41
41
|
"process": "0.11.10",
|
|
42
|
-
"react-codemirror-runmode": "2.0.1",
|
|
43
42
|
"react-codemirror2": "8.0.0",
|
|
44
43
|
"react-collapse": "5.1.1",
|
|
45
44
|
"react-color": "2.19.3",
|
|
@@ -53,18 +52,14 @@
|
|
|
53
52
|
"threads": "1.7.0",
|
|
54
53
|
"ts-key-enum": "2.0.12"
|
|
55
54
|
},
|
|
56
|
-
"devDependencies": {
|
|
57
|
-
"replace-in-files-cli": "2.2.0"
|
|
58
|
-
},
|
|
59
55
|
"scripts": {
|
|
60
56
|
"cleanBuild": "@powershell if (Test-Path \"./lib/esm\") {rm -r ./lib/esm}",
|
|
61
57
|
"copyPackageJson": "@powershell copy './package.json' './lib/esm/'",
|
|
62
58
|
"copyStyles": "@powershell cp -R './style' './lib/esm/'",
|
|
63
59
|
"copyIcons": "@powershell cp -R './components/icons/*.svg' './lib/esm/components/icons/'",
|
|
64
60
|
"copyIcons2": "@powershell cp -R './components/icons/*.png' './lib/esm/components/icons/'",
|
|
65
|
-
"replaceWorkerImports": "replace-in-files --string='.ts' --replacement='.js' ./lib/esm/components/grid/export/contextMenu.js ",
|
|
66
61
|
"build": "tsc -P tsconfig.build.json",
|
|
67
|
-
"publish-lib": "yarn cleanBuild && yarn build && yarn copyPackageJson && yarn copyStyles && yarn copyIcons && yarn copyIcons2 &&
|
|
68
|
-
"publish-dryrun": "yarn cleanBuild && yarn build && yarn copyPackageJson && yarn copyStyles && yarn copyIcons && yarn copyIcons2 && yarn
|
|
62
|
+
"publish-lib": "yarn cleanBuild && yarn build && yarn copyPackageJson && yarn copyStyles && yarn copyIcons && yarn copyIcons2 && yarn publish ./lib/esm",
|
|
63
|
+
"publish-dryrun": "yarn cleanBuild && yarn build && yarn copyPackageJson && yarn copyStyles && yarn copyIcons && yarn copyIcons2 && yarn publish ./lib/esm --dry-run"
|
|
69
64
|
}
|
|
70
65
|
}
|
package/style/index.less
CHANGED
|
@@ -1,241 +1,241 @@
|
|
|
1
|
-
// @tree-node-padding: 2px;
|
|
2
|
-
@import '
|
|
3
|
-
|
|
4
|
-
body {
|
|
5
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
6
|
-
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
7
|
-
'Noto Color Emoji';
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.stronger-divider-with-text.ant-divider-horizontal.ant-divider-with-text-center::before,
|
|
11
|
-
.stronger-divider-with-text.ant-divider-horizontal.ant-divider-with-text-center::after {
|
|
12
|
-
border-top: 1px solid #bbb;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.stronger-divider.ant-divider-horizontal {
|
|
16
|
-
border-top: 1px solid #bbb;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.dictionary-autocomplete > textarea {
|
|
20
|
-
width: calc(100% - 2rem);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.ant-tabs-content-left, .ant-tabs-tabpane-active {
|
|
24
|
-
height: 100% !important;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
// fixing input group button selection
|
|
29
|
-
.ant-input-group > .ant-btn:hover {
|
|
30
|
-
z-index: 2;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// special tooltips
|
|
34
|
-
.control-panel-popover .ant-popover-arrow {
|
|
35
|
-
border-top-color: #fafafa !important;
|
|
36
|
-
border-left-color: #fafafa !important;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.control-panel-popover .ant-popover-inner {
|
|
40
|
-
background-color: #fafafa;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// table
|
|
44
|
-
.react-resizable {
|
|
45
|
-
position: relative;
|
|
46
|
-
background-clip: padding-box;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.react-resizable-handle {
|
|
50
|
-
position: absolute;
|
|
51
|
-
width: 10px;
|
|
52
|
-
height: 100%;
|
|
53
|
-
bottom: 0;
|
|
54
|
-
right: -5px;
|
|
55
|
-
cursor: col-resize;
|
|
56
|
-
z-index: 1;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.ant-table th {
|
|
60
|
-
white-space: nowrap;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.ant-table-body {
|
|
64
|
-
overflow-x: auto !important;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.ant-transfer-list-header {
|
|
68
|
-
text-align: right;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.ant-transfer-list-header-title {
|
|
72
|
-
left: 12px;
|
|
73
|
-
right: unset !important;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.ant-descriptions-view {
|
|
77
|
-
overflow: auto;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.selected:focus {
|
|
81
|
-
outline: none;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.search-string-not-found .ant-tooltip-inner {
|
|
85
|
-
color: #ff4d4f;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.disabled .ant-input-disabled {
|
|
89
|
-
color: rgba(0, 0, 0, 0.65);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.disabled .ant-input-number-input, .disabled .d2-input-number-input {
|
|
93
|
-
color: rgba(0, 0, 0, 0.65);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.ant-descriptions-item-label {
|
|
97
|
-
white-space: nowrap;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.select-with-one-item .ant-select-selector {
|
|
101
|
-
height: 28px;
|
|
102
|
-
overflow: auto;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.ant-select-selection-item {
|
|
106
|
-
max-width: calc(100% - 16px);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.invalid input {
|
|
110
|
-
color: red;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.custom-date-time-picker .ant-input-affix-wrapper {
|
|
114
|
-
padding-right: 26px;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.custom-date-time-picker .ant-input-affix-wrapper {
|
|
118
|
-
padding-right: 26px;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.ReactCollapse--collapse {
|
|
122
|
-
transition: height 500ms;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.ant-drawer-close {
|
|
126
|
-
box-shadow: none;
|
|
127
|
-
background: transparent;
|
|
128
|
-
border: 0;
|
|
129
|
-
color: rgba(0,0,0,.45);
|
|
130
|
-
cursor: pointer;
|
|
131
|
-
display: block;
|
|
132
|
-
font-size: 16px;
|
|
133
|
-
font-style: normal;
|
|
134
|
-
font-weight: 700;
|
|
135
|
-
line-height: 1;
|
|
136
|
-
outline: 0;
|
|
137
|
-
padding: 20px;
|
|
138
|
-
position: absolute;
|
|
139
|
-
right: 0;
|
|
140
|
-
text-align: center;
|
|
141
|
-
text-decoration: none;
|
|
142
|
-
text-rendering: auto;
|
|
143
|
-
text-transform: none;
|
|
144
|
-
top: 0;
|
|
145
|
-
transition: color .3s;
|
|
146
|
-
z-index: 10;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
// oprava pozicie title textu vo filter paneloch
|
|
150
|
-
.d2-drawer-header {
|
|
151
|
-
position: relative;
|
|
152
|
-
padding: 16px 24px;
|
|
153
|
-
color: rgba(0, 0, 0, 0.85);
|
|
154
|
-
background: #fff;
|
|
155
|
-
border-bottom: 1px solid #f0f0f0;
|
|
156
|
-
border-radius: 2px 2px 0 0;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.d2-drawer-title {
|
|
160
|
-
margin: 0;
|
|
161
|
-
color: rgba(0, 0, 0, 0.85);
|
|
162
|
-
font-weight: 500;
|
|
163
|
-
font-size: 16px;
|
|
164
|
-
line-height: 22px;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
// oprava nevyraznej farby srafovania dividera
|
|
168
|
-
.ant-divider-with-text.ant-divider-dashed:before, .ant-divider-with-text.ant-divider-dashed:after {
|
|
169
|
-
border-block-start-color: rgba(0, 0, 0, 0.85);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
// oprava page heading
|
|
173
|
-
.d2-page-header-heading-left {
|
|
174
|
-
display: flex;
|
|
175
|
-
align-items: center;
|
|
176
|
-
margin: 4px 0;
|
|
177
|
-
overflow: hidden;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.d2-page-header-compact .d2-page-header-heading {
|
|
181
|
-
flex-wrap: wrap;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.d2-page-header-heading {
|
|
185
|
-
display: flex;
|
|
186
|
-
justify-content: space-between;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.d2-page-header {
|
|
190
|
-
box-sizing: border-box;
|
|
191
|
-
margin: 0;
|
|
192
|
-
padding: 0;
|
|
193
|
-
color: rgba(0, 0, 0, 0.85);
|
|
194
|
-
font-size: 14px;
|
|
195
|
-
font-variant: tabular-nums;
|
|
196
|
-
line-height: 1.5715;
|
|
197
|
-
list-style: none;
|
|
198
|
-
font-feature-settings: 'tnum';
|
|
199
|
-
position: relative;
|
|
200
|
-
padding: 16px 12px;
|
|
201
|
-
background-color: #fff;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.d2-page-header-back {
|
|
205
|
-
margin-right: 16px;
|
|
206
|
-
font-size: 16px;
|
|
207
|
-
line-height: 1;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.d2-page-header-heading-title {
|
|
211
|
-
margin-right: 12px;
|
|
212
|
-
margin-bottom: 0;
|
|
213
|
-
color: rgba(0, 0, 0, 0.85);
|
|
214
|
-
font-weight: 600;
|
|
215
|
-
font-size: 20px;
|
|
216
|
-
line-height: 32px;
|
|
217
|
-
overflow: hidden;
|
|
218
|
-
white-space: nowrap;
|
|
219
|
-
text-overflow: ellipsis;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
.d2-page-header-heading-left .ant-input-borderless {
|
|
223
|
-
font-size: 18px !important;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
.d2-page-header-heading-extra {
|
|
227
|
-
margin: 4px 0;
|
|
228
|
-
white-space: nowrap;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
.d2-page-header-heading-extra > * {
|
|
232
|
-
margin-left: 12px;
|
|
233
|
-
white-space: unset;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
// ag-grid with no header
|
|
237
|
-
.ag-grid-no-header .ag-theme-balham .ag-header {
|
|
238
|
-
height: 0 !important;
|
|
239
|
-
min-height: 0 !important;
|
|
240
|
-
border-bottom: 0 !important;
|
|
1
|
+
// @tree-node-padding: 2px;
|
|
2
|
+
@import 'antd/dist/reset.css';
|
|
3
|
+
|
|
4
|
+
body {
|
|
5
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
6
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
7
|
+
'Noto Color Emoji';
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.stronger-divider-with-text.ant-divider-horizontal.ant-divider-with-text-center::before,
|
|
11
|
+
.stronger-divider-with-text.ant-divider-horizontal.ant-divider-with-text-center::after {
|
|
12
|
+
border-top: 1px solid #bbb;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.stronger-divider.ant-divider-horizontal {
|
|
16
|
+
border-top: 1px solid #bbb;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.dictionary-autocomplete > textarea {
|
|
20
|
+
width: calc(100% - 2rem);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.ant-tabs-content-left, .ant-tabs-tabpane-active {
|
|
24
|
+
height: 100% !important;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
// fixing input group button selection
|
|
29
|
+
.ant-input-group > .ant-btn:hover {
|
|
30
|
+
z-index: 2;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// special tooltips
|
|
34
|
+
.control-panel-popover .ant-popover-arrow {
|
|
35
|
+
border-top-color: #fafafa !important;
|
|
36
|
+
border-left-color: #fafafa !important;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.control-panel-popover .ant-popover-inner {
|
|
40
|
+
background-color: #fafafa;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// table
|
|
44
|
+
.react-resizable {
|
|
45
|
+
position: relative;
|
|
46
|
+
background-clip: padding-box;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.react-resizable-handle {
|
|
50
|
+
position: absolute;
|
|
51
|
+
width: 10px;
|
|
52
|
+
height: 100%;
|
|
53
|
+
bottom: 0;
|
|
54
|
+
right: -5px;
|
|
55
|
+
cursor: col-resize;
|
|
56
|
+
z-index: 1;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.ant-table th {
|
|
60
|
+
white-space: nowrap;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ant-table-body {
|
|
64
|
+
overflow-x: auto !important;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.ant-transfer-list-header {
|
|
68
|
+
text-align: right;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.ant-transfer-list-header-title {
|
|
72
|
+
left: 12px;
|
|
73
|
+
right: unset !important;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.ant-descriptions-view {
|
|
77
|
+
overflow: auto;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.selected:focus {
|
|
81
|
+
outline: none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.search-string-not-found .ant-tooltip-inner {
|
|
85
|
+
color: #ff4d4f;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.disabled .ant-input-disabled {
|
|
89
|
+
color: rgba(0, 0, 0, 0.65);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.disabled .ant-input-number-input, .disabled .d2-input-number-input {
|
|
93
|
+
color: rgba(0, 0, 0, 0.65);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.ant-descriptions-item-label {
|
|
97
|
+
white-space: nowrap;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.select-with-one-item .ant-select-selector {
|
|
101
|
+
height: 28px;
|
|
102
|
+
overflow: auto;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.ant-select-selection-item {
|
|
106
|
+
max-width: calc(100% - 16px);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.invalid input {
|
|
110
|
+
color: red;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.custom-date-time-picker .ant-input-affix-wrapper {
|
|
114
|
+
padding-right: 26px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.custom-date-time-picker .ant-input-affix-wrapper {
|
|
118
|
+
padding-right: 26px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.ReactCollapse--collapse {
|
|
122
|
+
transition: height 500ms;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.ant-drawer-close {
|
|
126
|
+
box-shadow: none;
|
|
127
|
+
background: transparent;
|
|
128
|
+
border: 0;
|
|
129
|
+
color: rgba(0,0,0,.45);
|
|
130
|
+
cursor: pointer;
|
|
131
|
+
display: block;
|
|
132
|
+
font-size: 16px;
|
|
133
|
+
font-style: normal;
|
|
134
|
+
font-weight: 700;
|
|
135
|
+
line-height: 1;
|
|
136
|
+
outline: 0;
|
|
137
|
+
padding: 20px;
|
|
138
|
+
position: absolute;
|
|
139
|
+
right: 0;
|
|
140
|
+
text-align: center;
|
|
141
|
+
text-decoration: none;
|
|
142
|
+
text-rendering: auto;
|
|
143
|
+
text-transform: none;
|
|
144
|
+
top: 0;
|
|
145
|
+
transition: color .3s;
|
|
146
|
+
z-index: 10;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// oprava pozicie title textu vo filter paneloch
|
|
150
|
+
.d2-drawer-header {
|
|
151
|
+
position: relative;
|
|
152
|
+
padding: 16px 24px;
|
|
153
|
+
color: rgba(0, 0, 0, 0.85);
|
|
154
|
+
background: #fff;
|
|
155
|
+
border-bottom: 1px solid #f0f0f0;
|
|
156
|
+
border-radius: 2px 2px 0 0;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.d2-drawer-title {
|
|
160
|
+
margin: 0;
|
|
161
|
+
color: rgba(0, 0, 0, 0.85);
|
|
162
|
+
font-weight: 500;
|
|
163
|
+
font-size: 16px;
|
|
164
|
+
line-height: 22px;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
// oprava nevyraznej farby srafovania dividera
|
|
168
|
+
.ant-divider-with-text.ant-divider-dashed:before, .ant-divider-with-text.ant-divider-dashed:after {
|
|
169
|
+
border-block-start-color: rgba(0, 0, 0, 0.85);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// oprava page heading
|
|
173
|
+
.d2-page-header-heading-left {
|
|
174
|
+
display: flex;
|
|
175
|
+
align-items: center;
|
|
176
|
+
margin: 4px 0;
|
|
177
|
+
overflow: hidden;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.d2-page-header-compact .d2-page-header-heading {
|
|
181
|
+
flex-wrap: wrap;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.d2-page-header-heading {
|
|
185
|
+
display: flex;
|
|
186
|
+
justify-content: space-between;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.d2-page-header {
|
|
190
|
+
box-sizing: border-box;
|
|
191
|
+
margin: 0;
|
|
192
|
+
padding: 0;
|
|
193
|
+
color: rgba(0, 0, 0, 0.85);
|
|
194
|
+
font-size: 14px;
|
|
195
|
+
font-variant: tabular-nums;
|
|
196
|
+
line-height: 1.5715;
|
|
197
|
+
list-style: none;
|
|
198
|
+
font-feature-settings: 'tnum';
|
|
199
|
+
position: relative;
|
|
200
|
+
padding: 16px 12px;
|
|
201
|
+
background-color: #fff;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.d2-page-header-back {
|
|
205
|
+
margin-right: 16px;
|
|
206
|
+
font-size: 16px;
|
|
207
|
+
line-height: 1;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.d2-page-header-heading-title {
|
|
211
|
+
margin-right: 12px;
|
|
212
|
+
margin-bottom: 0;
|
|
213
|
+
color: rgba(0, 0, 0, 0.85);
|
|
214
|
+
font-weight: 600;
|
|
215
|
+
font-size: 20px;
|
|
216
|
+
line-height: 32px;
|
|
217
|
+
overflow: hidden;
|
|
218
|
+
white-space: nowrap;
|
|
219
|
+
text-overflow: ellipsis;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.d2-page-header-heading-left .ant-input-borderless {
|
|
223
|
+
font-size: 18px !important;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.d2-page-header-heading-extra {
|
|
227
|
+
margin: 4px 0;
|
|
228
|
+
white-space: nowrap;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.d2-page-header-heading-extra > * {
|
|
232
|
+
margin-left: 12px;
|
|
233
|
+
white-space: unset;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
// ag-grid with no header
|
|
237
|
+
.ag-grid-no-header .ag-theme-balham .ag-header {
|
|
238
|
+
height: 0 !important;
|
|
239
|
+
min-height: 0 !important;
|
|
240
|
+
border-bottom: 0 !important;
|
|
241
241
|
}
|
package/tsconfig.build.json
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../tsconfig.base.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"outDir": "lib/esm",
|
|
5
|
-
"resolveJsonModule": true,
|
|
6
|
-
"allowJs": true,
|
|
7
|
-
"sourceMap": true,
|
|
8
|
-
"inlineSources": true,
|
|
9
|
-
"paths": {
|
|
10
|
-
"d2core": [
|
|
11
|
-
"../core"
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"include": [
|
|
16
|
-
"./**/*",
|
|
17
|
-
"./**/*.json",
|
|
18
|
-
"./**/*.ts*"
|
|
19
|
-
],
|
|
20
|
-
"exclude": [
|
|
21
|
-
"node_modules",
|
|
22
|
-
"lib"
|
|
23
|
-
]
|
|
24
|
-
}
|