cortex-react-components 3.0.3 → 3.0.5
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/{chunk-YOPRYLFQ.mjs → chunk-3VMFZKXK.mjs} +8 -10
- package/dist/{chunk-GHJMJFGY.mjs → chunk-45O7B4HD.mjs} +4 -4
- package/dist/{chunk-LBPVX5BQ.mjs → chunk-6YUBCG37.mjs} +1 -1
- package/dist/{chunk-FTLBZLKM.mjs → chunk-7VIJAEXG.mjs} +1 -1
- package/dist/{chunk-XYLSOGTP.mjs → chunk-AAKDTRG3.mjs} +1 -1
- package/dist/{chunk-MZ5QY6FR.mjs → chunk-AIDKOVWV.mjs} +1 -1
- package/dist/{chunk-4IIO3HGE.mjs → chunk-ANQCYFDZ.mjs} +1 -1
- package/dist/{chunk-QW6LT3YJ.mjs → chunk-B7C24XQW.mjs} +1 -1
- package/dist/{chunk-BBN4ACON.mjs → chunk-BLU3UIFA.mjs} +1 -1
- package/dist/{chunk-CEDQJQTB.mjs → chunk-BXUQXISR.mjs} +2 -2
- package/dist/{chunk-FKQJ7IQO.mjs → chunk-CFAFJ5KR.mjs} +1 -1
- package/dist/{chunk-F5IX63U6.mjs → chunk-CPG7EY4Z.mjs} +2 -2
- package/dist/{chunk-DTQRTHVU.mjs → chunk-D2X3D3E5.mjs} +2 -2
- package/dist/{chunk-PIQP7ZHT.mjs → chunk-DYHCGFWB.mjs} +1 -1
- package/dist/{chunk-OZR2CEWZ.mjs → chunk-FNWH4ITN.mjs} +1 -1
- package/dist/{chunk-M62EDEAI.mjs → chunk-FTVOJKVA.mjs} +2 -2
- package/dist/{chunk-NPH4VQCE.mjs → chunk-IBMNGXJR.mjs} +1 -1
- package/dist/{chunk-UHF447FN.mjs → chunk-IM6PU3RO.mjs} +8 -5
- package/dist/{chunk-QRFYWH62.mjs → chunk-IT3HYIBL.mjs} +1 -1
- package/dist/{chunk-RAHAHVM3.mjs → chunk-KO4VYIIH.mjs} +2 -2
- package/dist/{chunk-Z4DNGL7M.mjs → chunk-KVIDH5SD.mjs} +1 -1
- package/dist/{chunk-BXDKCANT.mjs → chunk-NX7KXPAH.mjs} +1 -1
- package/dist/{chunk-SZ4XM4DO.mjs → chunk-OQ2FYTMU.mjs} +1 -1
- package/dist/{chunk-JUAQVZZ4.mjs → chunk-QNKQX4CK.mjs} +2 -2
- package/dist/{chunk-RQTK2RHW.mjs → chunk-QY2VILFH.mjs} +1 -1
- package/dist/chunk-T7TGES6Z.mjs +25 -0
- package/dist/{chunk-RFZOUE5F.mjs → chunk-UFLN6VHA.mjs} +1 -1
- package/dist/{chunk-KHH36D4P.mjs → chunk-UIWLR6ZC.mjs} +2 -2
- package/dist/{chunk-57HPETD7.mjs → chunk-UTC3MM5G.mjs} +6 -6
- package/dist/{chunk-SJDKHYVC.mjs → chunk-UZYB4PHX.mjs} +12 -12
- package/dist/{chunk-KN5M6SSZ.mjs → chunk-VLBEXIPH.mjs} +5 -5
- package/dist/{chunk-4LGHSMMQ.mjs → chunk-XOABWF35.mjs} +1 -1
- package/dist/{chunk-72B7V3AA.mjs → chunk-YBNK6GSG.mjs} +1 -1
- package/dist/{chunk-3S2VABQS.mjs → chunk-YWM44RIV.mjs} +1 -1
- package/dist/{chunk-EHJIM6JR.mjs → chunk-ZOFHFHXL.mjs} +1 -1
- package/dist/components/Blocks/Banner.mjs +4 -4
- package/dist/components/Blocks/CallToAction.mjs +4 -4
- package/dist/components/Blocks/CollapsibleArea.mjs +5 -5
- package/dist/components/Blocks/Content.mjs +5 -5
- package/dist/components/Blocks/FeaturesBlock.mjs +4 -4
- package/dist/components/Blocks/RelatedPosts.mjs +5 -5
- package/dist/components/Blocks/RenderBlocks.js +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +7 -7
- package/dist/components/Blocks/ReusableContentBlock.mjs +7 -7
- package/dist/components/Blocks/index.js +1 -1
- package/dist/components/Blocks/index.mjs +19 -19
- package/dist/components/CRM/index.mjs +3 -3
- package/dist/components/Cards/ContentCard.mjs +4 -4
- package/dist/components/Cards/FeatureCard.mjs +4 -4
- package/dist/components/Cards/index.mjs +4 -4
- package/dist/components/DeliveryLead/DeliveryLeadSubmission.js +14 -5
- package/dist/components/DeliveryLead/DeliveryLeadSubmission.mjs +2 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.js +24 -8
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.mjs +2 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.js +29 -13
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +4 -3
- package/dist/components/DeliveryLead/index.js +37 -17
- package/dist/components/DeliveryLead/index.mjs +12 -4
- package/dist/components/DeliveryLead/types.d.ts +53 -10
- package/dist/components/DeliveryLead/types.js +33 -0
- package/dist/components/DeliveryLead/types.mjs +11 -0
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +3 -3
- package/dist/components/DigitalColleagues/MainPage.mjs +9 -9
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +4 -4
- package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +2 -2
- package/dist/components/DigitalColleagues/Views/index.mjs +7 -7
- package/dist/components/DigitalColleagues/index.mjs +18 -18
- package/dist/components/Foundary/AppSidebarLeft.mjs +3 -3
- package/dist/components/Foundary/Knowledge/add-knowledge-modal.mjs +3 -3
- package/dist/components/Foundary/Knowledge/add-team-context.mjs +3 -3
- package/dist/components/Foundary/MainPage.mjs +9 -9
- package/dist/components/Foundary/Pages/dashboardpage.mjs +7 -7
- package/dist/components/Foundary/Views/KnowledgeView.mjs +5 -5
- package/dist/components/Foundary/Views/index.mjs +6 -6
- package/dist/components/Foundary/file-edit.mjs +3 -3
- package/dist/components/Foundary/index.mjs +14 -14
- package/dist/components/HeaderFooter/SectionHeading.mjs +5 -5
- package/dist/components/HeaderFooter/index.mjs +13 -13
- package/dist/components/Heros/HighImpact/index.mjs +5 -5
- package/dist/components/Heros/LowImpact/index.mjs +5 -5
- package/dist/components/Heros/MediumImpact/index.mjs +5 -5
- package/dist/components/Heros/PostHero/index.mjs +3 -3
- package/dist/components/Heros/RenderHero.mjs +8 -8
- package/dist/components/Heros/index.mjs +13 -13
- package/dist/components/Holidays/HolidayTracker.mjs +2 -2
- package/dist/components/Holidays/index.mjs +4 -4
- package/dist/components/Layouts/OutputHeaderFooter.mjs +6 -6
- package/dist/components/Layouts/Print.mjs +10 -10
- package/dist/components/Layouts/SlideShow.mjs +14 -14
- package/dist/components/Layouts/index.mjs +15 -15
- package/dist/components/Menus/SidebarLeft.mjs +3 -3
- package/dist/components/Menus/SidebarLeftMulti.mjs +3 -3
- package/dist/components/Menus/SidebarRight.mjs +3 -3
- package/dist/components/Menus/index.mjs +5 -5
- package/dist/components/Payload/RichText/index.mjs +4 -4
- package/dist/components/Payload/RichText/serialize.mjs +4 -4
- package/dist/components/Payload/index.mjs +7 -7
- package/dist/components/Projects/FileView.mjs +4 -4
- package/dist/components/Projects/KanbanBoardView.mjs +4 -4
- package/dist/components/Projects/ProjectPage.mjs +4 -4
- package/dist/components/Projects/ProjectView.mjs +4 -4
- package/dist/components/Projects/TaskDetailsModal.mjs +3 -3
- package/dist/components/Projects/file-list.mjs +3 -3
- package/dist/components/Projects/index.mjs +4 -4
- package/dist/components/dc-temp/index.mjs +5 -5
- package/dist/components/index.js +38 -16
- package/dist/components/index.mjs +83 -75
- package/dist/components/ui/index.mjs +9 -9
- package/dist/components/ui/sidebar.mjs +2 -2
- package/dist/decorators/Intranet.mjs +46 -45
- package/dist/index.js +38 -16
- package/dist/index.mjs +94 -86
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +15 -15
- package/dist/pages/Documentation.mjs +11 -11
- package/dist/pages/IndexPage.mjs +19 -19
- package/dist/pages/Intranet.mjs +4 -4
- package/dist/pages/LandingPage.mjs +56 -55
- package/dist/pages/Page.mjs +19 -19
- package/dist/pages/Publish.mjs +45 -44
- package/dist/pages/Website.js +1 -1
- package/dist/pages/Website.mjs +18 -18
- package/dist/payload-types.d.ts +1 -1
- package/dist/sections/AboutSection.mjs +6 -6
- package/dist/sections/BlogDetail.mjs +5 -5
- package/dist/sections/BlogList.mjs +6 -6
- package/dist/sections/BlogListSection.mjs +5 -5
- package/dist/sections/ContactSection.mjs +6 -6
- package/dist/sections/PageSections.mjs +54 -53
- package/dist/sections/PricingSection.mjs +6 -6
- package/dist/sections/ServiceDetail.mjs +5 -5
- package/dist/sections/ServiceDetailSection.mjs +5 -5
- package/dist/sections/ServiceSection.mjs +45 -44
- package/dist/sections/form/index.mjs +2 -2
- package/dist/sections/index.mjs +54 -53
- package/package.json +1 -1
- package/dist/{chunk-EUAUP52U.mjs → chunk-7UMFQPR5.mjs} +3 -3
- package/dist/{chunk-URDEWGQC.mjs → chunk-AJUSUNMM.mjs} +3 -3
- package/dist/{chunk-GXTF5CHJ.mjs → chunk-EUBIQIF4.mjs} +3 -3
- package/dist/{chunk-OT2SSFKS.mjs → chunk-GSG52WU5.mjs} +3 -3
- package/dist/{chunk-VIDNNRMY.mjs → chunk-S4MC47ZA.mjs} +3 -3
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ContentBlock
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-IT3HYIBL.mjs";
|
|
4
|
+
import "../../chunk-45O7B4HD.mjs";
|
|
5
5
|
import "../../chunk-YLULVMZ7.mjs";
|
|
6
6
|
import "../../chunk-2NXKZY7U.mjs";
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-G6EC37S7.mjs";
|
|
7
|
+
import "../../chunk-GSG52WU5.mjs";
|
|
9
8
|
import "../../chunk-US72SCH3.mjs";
|
|
9
|
+
import "../../chunk-G6EC37S7.mjs";
|
|
10
10
|
import "../../chunk-LTOFCHXU.mjs";
|
|
11
11
|
import "../../chunk-GTHNG3Q7.mjs";
|
|
12
12
|
import "../../chunk-4GLXI5J3.mjs";
|
|
@@ -14,11 +14,11 @@ import "../../chunk-2X45TVQS.mjs";
|
|
|
14
14
|
import "../../chunk-DTQ2W22B.mjs";
|
|
15
15
|
import "../../chunk-LIJ2ES4B.mjs";
|
|
16
16
|
import "../../chunk-KIZUBPPQ.mjs";
|
|
17
|
-
import "../../chunk-WPX6MOFB.mjs";
|
|
18
17
|
import "../../chunk-HLEMFDTD.mjs";
|
|
19
18
|
import "../../chunk-2YHN7ZCJ.mjs";
|
|
20
19
|
import "../../chunk-ZYKYDIOF.mjs";
|
|
21
20
|
import "../../chunk-MW5UCIIC.mjs";
|
|
21
|
+
import "../../chunk-WPX6MOFB.mjs";
|
|
22
22
|
import "../../chunk-R57RJLFQ.mjs";
|
|
23
23
|
import "../../chunk-GIHP74M4.mjs";
|
|
24
24
|
import "../../chunk-3BYULUMU.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FeaturesBlock
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-45O7B4HD.mjs";
|
|
4
4
|
import "../../chunk-YLULVMZ7.mjs";
|
|
5
5
|
import "../../chunk-2NXKZY7U.mjs";
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-G6EC37S7.mjs";
|
|
6
|
+
import "../../chunk-GSG52WU5.mjs";
|
|
8
7
|
import "../../chunk-US72SCH3.mjs";
|
|
8
|
+
import "../../chunk-G6EC37S7.mjs";
|
|
9
9
|
import "../../chunk-LTOFCHXU.mjs";
|
|
10
10
|
import "../../chunk-GTHNG3Q7.mjs";
|
|
11
11
|
import "../../chunk-4GLXI5J3.mjs";
|
|
@@ -13,11 +13,11 @@ import "../../chunk-2X45TVQS.mjs";
|
|
|
13
13
|
import "../../chunk-DTQ2W22B.mjs";
|
|
14
14
|
import "../../chunk-LIJ2ES4B.mjs";
|
|
15
15
|
import "../../chunk-KIZUBPPQ.mjs";
|
|
16
|
-
import "../../chunk-WPX6MOFB.mjs";
|
|
17
16
|
import "../../chunk-HLEMFDTD.mjs";
|
|
18
17
|
import "../../chunk-2YHN7ZCJ.mjs";
|
|
19
18
|
import "../../chunk-ZYKYDIOF.mjs";
|
|
20
19
|
import "../../chunk-MW5UCIIC.mjs";
|
|
20
|
+
import "../../chunk-WPX6MOFB.mjs";
|
|
21
21
|
import "../../chunk-R57RJLFQ.mjs";
|
|
22
22
|
import "../../chunk-GIHP74M4.mjs";
|
|
23
23
|
import "../../chunk-3BYULUMU.mjs";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RelatedPosts
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-ZOFHFHXL.mjs";
|
|
4
4
|
import "../../chunk-EGZL4DVZ.mjs";
|
|
5
5
|
import "../../chunk-4Z4X2GG7.mjs";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-45O7B4HD.mjs";
|
|
7
7
|
import "../../chunk-YLULVMZ7.mjs";
|
|
8
8
|
import "../../chunk-2NXKZY7U.mjs";
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-G6EC37S7.mjs";
|
|
9
|
+
import "../../chunk-GSG52WU5.mjs";
|
|
11
10
|
import "../../chunk-US72SCH3.mjs";
|
|
11
|
+
import "../../chunk-G6EC37S7.mjs";
|
|
12
12
|
import "../../chunk-LTOFCHXU.mjs";
|
|
13
13
|
import "../../chunk-GTHNG3Q7.mjs";
|
|
14
14
|
import "../../chunk-4GLXI5J3.mjs";
|
|
@@ -16,11 +16,11 @@ import "../../chunk-2X45TVQS.mjs";
|
|
|
16
16
|
import "../../chunk-DTQ2W22B.mjs";
|
|
17
17
|
import "../../chunk-LIJ2ES4B.mjs";
|
|
18
18
|
import "../../chunk-KIZUBPPQ.mjs";
|
|
19
|
-
import "../../chunk-WPX6MOFB.mjs";
|
|
20
19
|
import "../../chunk-HLEMFDTD.mjs";
|
|
21
20
|
import "../../chunk-2YHN7ZCJ.mjs";
|
|
22
21
|
import "../../chunk-ZYKYDIOF.mjs";
|
|
23
22
|
import "../../chunk-MW5UCIIC.mjs";
|
|
23
|
+
import "../../chunk-WPX6MOFB.mjs";
|
|
24
24
|
import "../../chunk-R57RJLFQ.mjs";
|
|
25
25
|
import "../../chunk-GIHP74M4.mjs";
|
|
26
26
|
import "../../chunk-3BYULUMU.mjs";
|
|
@@ -3929,7 +3929,7 @@ var ThemeWithShapes = (props) => {
|
|
|
3929
3929
|
if (props.index === 0) {
|
|
3930
3930
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("section", { className: "relative flex w-full", children: [
|
|
3931
3931
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: cn("absolute inset-0 w-screen h-full light bg-background") }),
|
|
3932
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: cn("container h-full relative pt-6 pb-12 min-h-[22em]
|
|
3932
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: cn("container h-full relative pt-6 pb-12 min-h-[22em] light bg-background"), children: props.children })
|
|
3933
3933
|
] });
|
|
3934
3934
|
}
|
|
3935
3935
|
const darkmode = (index) => {
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
RenderBlocksWithShapes,
|
|
6
6
|
Theme,
|
|
7
7
|
ThemeWithShapes
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
8
|
+
} from "../../chunk-UTC3MM5G.mjs";
|
|
9
|
+
import "../../chunk-IT3HYIBL.mjs";
|
|
10
|
+
import "../../chunk-UFLN6VHA.mjs";
|
|
11
|
+
import "../../chunk-45O7B4HD.mjs";
|
|
12
12
|
import "../../chunk-YLULVMZ7.mjs";
|
|
13
13
|
import "../../chunk-2NXKZY7U.mjs";
|
|
14
|
-
import "../../chunk-
|
|
15
|
-
import "../../chunk-G6EC37S7.mjs";
|
|
14
|
+
import "../../chunk-GSG52WU5.mjs";
|
|
16
15
|
import "../../chunk-US72SCH3.mjs";
|
|
16
|
+
import "../../chunk-G6EC37S7.mjs";
|
|
17
17
|
import "../../chunk-LTOFCHXU.mjs";
|
|
18
18
|
import "../../chunk-GTHNG3Q7.mjs";
|
|
19
19
|
import "../../chunk-4GLXI5J3.mjs";
|
|
@@ -21,11 +21,11 @@ import "../../chunk-2X45TVQS.mjs";
|
|
|
21
21
|
import "../../chunk-DTQ2W22B.mjs";
|
|
22
22
|
import "../../chunk-LIJ2ES4B.mjs";
|
|
23
23
|
import "../../chunk-KIZUBPPQ.mjs";
|
|
24
|
-
import "../../chunk-WPX6MOFB.mjs";
|
|
25
24
|
import "../../chunk-HLEMFDTD.mjs";
|
|
26
25
|
import "../../chunk-2YHN7ZCJ.mjs";
|
|
27
26
|
import "../../chunk-ZYKYDIOF.mjs";
|
|
28
27
|
import "../../chunk-MW5UCIIC.mjs";
|
|
28
|
+
import "../../chunk-WPX6MOFB.mjs";
|
|
29
29
|
import "../../chunk-R57RJLFQ.mjs";
|
|
30
30
|
import "../../chunk-GIHP74M4.mjs";
|
|
31
31
|
import "../../chunk-3BYULUMU.mjs";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ReusableContentBlock
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-UTC3MM5G.mjs";
|
|
4
|
+
import "../../chunk-IT3HYIBL.mjs";
|
|
5
|
+
import "../../chunk-UFLN6VHA.mjs";
|
|
6
|
+
import "../../chunk-45O7B4HD.mjs";
|
|
7
7
|
import "../../chunk-YLULVMZ7.mjs";
|
|
8
8
|
import "../../chunk-2NXKZY7U.mjs";
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-G6EC37S7.mjs";
|
|
9
|
+
import "../../chunk-GSG52WU5.mjs";
|
|
11
10
|
import "../../chunk-US72SCH3.mjs";
|
|
11
|
+
import "../../chunk-G6EC37S7.mjs";
|
|
12
12
|
import "../../chunk-LTOFCHXU.mjs";
|
|
13
13
|
import "../../chunk-GTHNG3Q7.mjs";
|
|
14
14
|
import "../../chunk-4GLXI5J3.mjs";
|
|
@@ -16,11 +16,11 @@ import "../../chunk-2X45TVQS.mjs";
|
|
|
16
16
|
import "../../chunk-DTQ2W22B.mjs";
|
|
17
17
|
import "../../chunk-LIJ2ES4B.mjs";
|
|
18
18
|
import "../../chunk-KIZUBPPQ.mjs";
|
|
19
|
-
import "../../chunk-WPX6MOFB.mjs";
|
|
20
19
|
import "../../chunk-HLEMFDTD.mjs";
|
|
21
20
|
import "../../chunk-2YHN7ZCJ.mjs";
|
|
22
21
|
import "../../chunk-ZYKYDIOF.mjs";
|
|
23
22
|
import "../../chunk-MW5UCIIC.mjs";
|
|
23
|
+
import "../../chunk-WPX6MOFB.mjs";
|
|
24
24
|
import "../../chunk-R57RJLFQ.mjs";
|
|
25
25
|
import "../../chunk-GIHP74M4.mjs";
|
|
26
26
|
import "../../chunk-3BYULUMU.mjs";
|
|
@@ -4310,7 +4310,7 @@ var ThemeWithShapes = (props) => {
|
|
|
4310
4310
|
if (props.index === 0) {
|
|
4311
4311
|
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("section", { className: "relative flex w-full", children: [
|
|
4312
4312
|
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: cn("absolute inset-0 w-screen h-full light bg-background") }),
|
|
4313
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: cn("container h-full relative pt-6 pb-12 min-h-[22em]
|
|
4313
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: cn("container h-full relative pt-6 pb-12 min-h-[22em] light bg-background"), children: props.children })
|
|
4314
4314
|
] });
|
|
4315
4315
|
}
|
|
4316
4316
|
const darkmode = (index) => {
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
WhyUs
|
|
3
|
-
} from "../../chunk-KC2JN5E4.mjs";
|
|
4
|
-
import {
|
|
5
|
-
Insight
|
|
6
|
-
} from "../../chunk-RVVTP5NL.mjs";
|
|
7
1
|
import {
|
|
8
2
|
ProposalSummary
|
|
9
3
|
} from "../../chunk-64SYH2HO.mjs";
|
|
10
4
|
import {
|
|
11
5
|
RelatedPosts
|
|
12
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-ZOFHFHXL.mjs";
|
|
13
7
|
import "../../chunk-EGZL4DVZ.mjs";
|
|
8
|
+
import {
|
|
9
|
+
WhyUs
|
|
10
|
+
} from "../../chunk-KC2JN5E4.mjs";
|
|
14
11
|
import "../../chunk-WE7DY7DV.mjs";
|
|
15
12
|
import {
|
|
16
13
|
HeadingImage
|
|
17
14
|
} from "../../chunk-R5QFVX2Y.mjs";
|
|
15
|
+
import {
|
|
16
|
+
Insight
|
|
17
|
+
} from "../../chunk-RVVTP5NL.mjs";
|
|
18
18
|
import "../../chunk-XPLDQMNA.mjs";
|
|
19
19
|
import "../../chunk-4Z4X2GG7.mjs";
|
|
20
|
-
import {
|
|
21
|
-
InfoTile
|
|
22
|
-
} from "../../chunk-R6GWYR6G.mjs";
|
|
23
20
|
import {
|
|
24
21
|
MOTD
|
|
25
22
|
} from "../../chunk-VSL4NZ5W.mjs";
|
|
23
|
+
import {
|
|
24
|
+
InfoTile
|
|
25
|
+
} from "../../chunk-R6GWYR6G.mjs";
|
|
26
26
|
import {
|
|
27
27
|
DarkTop,
|
|
28
28
|
LightTop,
|
|
@@ -31,22 +31,22 @@ import {
|
|
|
31
31
|
ReusableContentBlock,
|
|
32
32
|
Theme,
|
|
33
33
|
ThemeWithShapes
|
|
34
|
-
} from "../../chunk-
|
|
35
|
-
import "../../chunk-RFZOUE5F.mjs";
|
|
34
|
+
} from "../../chunk-UTC3MM5G.mjs";
|
|
36
35
|
import {
|
|
37
36
|
ContentBlock
|
|
38
|
-
} from "../../chunk-
|
|
37
|
+
} from "../../chunk-IT3HYIBL.mjs";
|
|
38
|
+
import "../../chunk-UFLN6VHA.mjs";
|
|
39
39
|
import {
|
|
40
40
|
BannerBlock,
|
|
41
41
|
CallToActionBlock,
|
|
42
42
|
CallToActionBlockOld,
|
|
43
43
|
FeaturesBlock
|
|
44
|
-
} from "../../chunk-
|
|
44
|
+
} from "../../chunk-45O7B4HD.mjs";
|
|
45
45
|
import "../../chunk-YLULVMZ7.mjs";
|
|
46
46
|
import "../../chunk-2NXKZY7U.mjs";
|
|
47
|
-
import "../../chunk-
|
|
48
|
-
import "../../chunk-G6EC37S7.mjs";
|
|
47
|
+
import "../../chunk-GSG52WU5.mjs";
|
|
49
48
|
import "../../chunk-US72SCH3.mjs";
|
|
49
|
+
import "../../chunk-G6EC37S7.mjs";
|
|
50
50
|
import "../../chunk-LTOFCHXU.mjs";
|
|
51
51
|
import "../../chunk-GTHNG3Q7.mjs";
|
|
52
52
|
import "../../chunk-4GLXI5J3.mjs";
|
|
@@ -56,15 +56,15 @@ import "../../chunk-LIJ2ES4B.mjs";
|
|
|
56
56
|
import {
|
|
57
57
|
MediaBlock
|
|
58
58
|
} from "../../chunk-KIZUBPPQ.mjs";
|
|
59
|
-
import {
|
|
60
|
-
CodeBlock
|
|
61
|
-
} from "../../chunk-WPX6MOFB.mjs";
|
|
62
59
|
import {
|
|
63
60
|
ImageBlock
|
|
64
61
|
} from "../../chunk-HLEMFDTD.mjs";
|
|
65
62
|
import "../../chunk-2YHN7ZCJ.mjs";
|
|
66
63
|
import "../../chunk-ZYKYDIOF.mjs";
|
|
67
64
|
import "../../chunk-MW5UCIIC.mjs";
|
|
65
|
+
import {
|
|
66
|
+
CodeBlock
|
|
67
|
+
} from "../../chunk-WPX6MOFB.mjs";
|
|
68
68
|
import "../../chunk-R57RJLFQ.mjs";
|
|
69
69
|
import {
|
|
70
70
|
CopyButton
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
NewDealForm
|
|
3
|
-
} from "../../chunk-DAQOEDAR.mjs";
|
|
4
1
|
import {
|
|
5
2
|
CRMCogeBoard
|
|
6
3
|
} from "../../chunk-7H3IRT7K.mjs";
|
|
@@ -16,6 +13,9 @@ import {
|
|
|
16
13
|
import {
|
|
17
14
|
DealCard
|
|
18
15
|
} from "../../chunk-VBDVWLWO.mjs";
|
|
16
|
+
import {
|
|
17
|
+
NewDealForm
|
|
18
|
+
} from "../../chunk-DAQOEDAR.mjs";
|
|
19
19
|
import {
|
|
20
20
|
NewCustomerForm
|
|
21
21
|
} from "../../chunk-RWCRMX3T.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ContentCard
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-45O7B4HD.mjs";
|
|
4
4
|
import "../../chunk-YLULVMZ7.mjs";
|
|
5
5
|
import "../../chunk-2NXKZY7U.mjs";
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-G6EC37S7.mjs";
|
|
6
|
+
import "../../chunk-GSG52WU5.mjs";
|
|
8
7
|
import "../../chunk-US72SCH3.mjs";
|
|
8
|
+
import "../../chunk-G6EC37S7.mjs";
|
|
9
9
|
import "../../chunk-LTOFCHXU.mjs";
|
|
10
10
|
import "../../chunk-GTHNG3Q7.mjs";
|
|
11
11
|
import "../../chunk-4GLXI5J3.mjs";
|
|
@@ -13,11 +13,11 @@ import "../../chunk-2X45TVQS.mjs";
|
|
|
13
13
|
import "../../chunk-DTQ2W22B.mjs";
|
|
14
14
|
import "../../chunk-LIJ2ES4B.mjs";
|
|
15
15
|
import "../../chunk-KIZUBPPQ.mjs";
|
|
16
|
-
import "../../chunk-WPX6MOFB.mjs";
|
|
17
16
|
import "../../chunk-HLEMFDTD.mjs";
|
|
18
17
|
import "../../chunk-2YHN7ZCJ.mjs";
|
|
19
18
|
import "../../chunk-ZYKYDIOF.mjs";
|
|
20
19
|
import "../../chunk-MW5UCIIC.mjs";
|
|
20
|
+
import "../../chunk-WPX6MOFB.mjs";
|
|
21
21
|
import "../../chunk-R57RJLFQ.mjs";
|
|
22
22
|
import "../../chunk-GIHP74M4.mjs";
|
|
23
23
|
import "../../chunk-3BYULUMU.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FeatureCard
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-45O7B4HD.mjs";
|
|
4
4
|
import "../../chunk-YLULVMZ7.mjs";
|
|
5
5
|
import "../../chunk-2NXKZY7U.mjs";
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-G6EC37S7.mjs";
|
|
6
|
+
import "../../chunk-GSG52WU5.mjs";
|
|
8
7
|
import "../../chunk-US72SCH3.mjs";
|
|
8
|
+
import "../../chunk-G6EC37S7.mjs";
|
|
9
9
|
import "../../chunk-LTOFCHXU.mjs";
|
|
10
10
|
import "../../chunk-GTHNG3Q7.mjs";
|
|
11
11
|
import "../../chunk-4GLXI5J3.mjs";
|
|
@@ -13,11 +13,11 @@ import "../../chunk-2X45TVQS.mjs";
|
|
|
13
13
|
import "../../chunk-DTQ2W22B.mjs";
|
|
14
14
|
import "../../chunk-LIJ2ES4B.mjs";
|
|
15
15
|
import "../../chunk-KIZUBPPQ.mjs";
|
|
16
|
-
import "../../chunk-WPX6MOFB.mjs";
|
|
17
16
|
import "../../chunk-HLEMFDTD.mjs";
|
|
18
17
|
import "../../chunk-2YHN7ZCJ.mjs";
|
|
19
18
|
import "../../chunk-ZYKYDIOF.mjs";
|
|
20
19
|
import "../../chunk-MW5UCIIC.mjs";
|
|
20
|
+
import "../../chunk-WPX6MOFB.mjs";
|
|
21
21
|
import "../../chunk-R57RJLFQ.mjs";
|
|
22
22
|
import "../../chunk-GIHP74M4.mjs";
|
|
23
23
|
import "../../chunk-3BYULUMU.mjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ContentCard,
|
|
3
3
|
FeatureCard
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-45O7B4HD.mjs";
|
|
5
5
|
import "../../chunk-YLULVMZ7.mjs";
|
|
6
6
|
import "../../chunk-2NXKZY7U.mjs";
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-G6EC37S7.mjs";
|
|
7
|
+
import "../../chunk-GSG52WU5.mjs";
|
|
9
8
|
import "../../chunk-US72SCH3.mjs";
|
|
9
|
+
import "../../chunk-G6EC37S7.mjs";
|
|
10
10
|
import "../../chunk-LTOFCHXU.mjs";
|
|
11
11
|
import {
|
|
12
12
|
Image
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
Hero
|
|
25
25
|
} from "../../chunk-LIJ2ES4B.mjs";
|
|
26
26
|
import "../../chunk-KIZUBPPQ.mjs";
|
|
27
|
-
import "../../chunk-WPX6MOFB.mjs";
|
|
28
27
|
import "../../chunk-HLEMFDTD.mjs";
|
|
29
28
|
import "../../chunk-2YHN7ZCJ.mjs";
|
|
30
29
|
import "../../chunk-ZYKYDIOF.mjs";
|
|
31
30
|
import "../../chunk-MW5UCIIC.mjs";
|
|
31
|
+
import "../../chunk-WPX6MOFB.mjs";
|
|
32
32
|
import "../../chunk-R57RJLFQ.mjs";
|
|
33
33
|
import "../../chunk-GIHP74M4.mjs";
|
|
34
34
|
import "../../chunk-3BYULUMU.mjs";
|
|
@@ -2560,6 +2560,15 @@ Label.displayName = LabelPrimitive.Root.displayName;
|
|
|
2560
2560
|
// src/components/DeliveryLead/DeliveryLeadSubmission.tsx
|
|
2561
2561
|
var import_lucide_react2 = require("lucide-react");
|
|
2562
2562
|
|
|
2563
|
+
// src/components/DeliveryLead/types.ts
|
|
2564
|
+
var RAG_STATUS_OPTIONS = [
|
|
2565
|
+
{ label: "Not Started", value: "Not-Started" },
|
|
2566
|
+
{ label: "On Track", value: "On-Track" },
|
|
2567
|
+
{ label: "Delayed", value: "Delayed" },
|
|
2568
|
+
{ label: "At Risk", value: "At Risk" },
|
|
2569
|
+
{ label: "Delivered", value: "Delivered" }
|
|
2570
|
+
];
|
|
2571
|
+
|
|
2563
2572
|
// src/components/ui/select.tsx
|
|
2564
2573
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"));
|
|
2565
2574
|
var import_lucide_react = require("lucide-react");
|
|
@@ -2672,10 +2681,9 @@ var createEmptyMilestone = () => ({
|
|
|
2672
2681
|
name: "",
|
|
2673
2682
|
commentary: "",
|
|
2674
2683
|
dueDate: "",
|
|
2675
|
-
rag: "
|
|
2684
|
+
rag: "Not-Started",
|
|
2676
2685
|
id: null
|
|
2677
2686
|
});
|
|
2678
|
-
var ragOptions = ["On-Track", "Off-Track", "At Risk", "Complete"];
|
|
2679
2687
|
var formatDateInputValue = (value) => {
|
|
2680
2688
|
if (!value) return "";
|
|
2681
2689
|
const parsed = new Date(value);
|
|
@@ -2722,7 +2730,7 @@ var buildMilestonesFromPrefill = (prefilled) => {
|
|
|
2722
2730
|
name: milestone?.name ?? "",
|
|
2723
2731
|
commentary: milestone?.commentary ?? "",
|
|
2724
2732
|
dueDate: formatDateInputValue(milestone?.dueDate ?? ""),
|
|
2725
|
-
rag: milestone?.rag ?? "
|
|
2733
|
+
rag: milestone?.rag ?? "Not-Started",
|
|
2726
2734
|
id: milestone?.id ?? null
|
|
2727
2735
|
}));
|
|
2728
2736
|
};
|
|
@@ -2762,10 +2770,11 @@ function DeliveryLeadSubmissionComponent({ onSubmit, customerProjectPairs, initi
|
|
|
2762
2770
|
const prefilledProject = getProjectOption(initialData?.project, getNumericId(initialData?.customer));
|
|
2763
2771
|
const projectsForCustomer = (customerProjectPairs ?? []).filter((cp) => cp.customer.id === clientId).map((cp) => cp.project);
|
|
2764
2772
|
const filteredProjects = clientId && prefilledProject && prefilledProject.customerId === clientId && !projectsForCustomer.some((project) => project.id === prefilledProject.id) ? [...projectsForCustomer, { id: prefilledProject.id, name: prefilledProject.name }] : projectsForCustomer;
|
|
2773
|
+
const ragValues = RAG_STATUS_OPTIONS.map((opt) => opt.value);
|
|
2765
2774
|
const handleMilestoneChange = (idx, field, value) => {
|
|
2766
2775
|
setMilestones((prev) => {
|
|
2767
2776
|
const newMilestones = [...prev];
|
|
2768
|
-
if (field === "rag" && !
|
|
2777
|
+
if (field === "rag" && !ragValues.includes(value)) {
|
|
2769
2778
|
return prev;
|
|
2770
2779
|
}
|
|
2771
2780
|
newMilestones[idx] = { ...newMilestones[idx], [field]: value };
|
|
@@ -2935,7 +2944,7 @@ function DeliveryLeadSubmissionComponent({ onSubmit, customerProjectPairs, initi
|
|
|
2935
2944
|
className: "w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",
|
|
2936
2945
|
value: m.rag,
|
|
2937
2946
|
onChange: (e) => handleMilestoneChange(idx, "rag", e.target.value),
|
|
2938
|
-
children:
|
|
2947
|
+
children: RAG_STATUS_OPTIONS.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("option", { value: opt.value, children: opt.label }, opt.value))
|
|
2939
2948
|
}
|
|
2940
2949
|
)
|
|
2941
2950
|
] }),
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
DeliveryLeadSubmissionComponent
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-IM6PU3RO.mjs";
|
|
6
|
+
import "../../chunk-T7TGES6Z.mjs";
|
|
6
7
|
import "../../chunk-EMGZSA3M.mjs";
|
|
7
8
|
import "../../chunk-7CVOGGH6.mjs";
|
|
8
9
|
import "../../chunk-I6LSWXZW.mjs";
|
|
@@ -2559,13 +2559,29 @@ Label.displayName = LabelPrimitive.Root.displayName;
|
|
|
2559
2559
|
|
|
2560
2560
|
// src/components/DeliveryLead/DeliveryLeadSubmissionList.tsx
|
|
2561
2561
|
var import_lucide_react = require("lucide-react");
|
|
2562
|
-
|
|
2563
|
-
|
|
2562
|
+
|
|
2563
|
+
// src/components/DeliveryLead/types.ts
|
|
2564
|
+
var RAG_STATUS_OPTIONS = [
|
|
2565
|
+
{ label: "Not Started", value: "Not-Started" },
|
|
2566
|
+
{ label: "On Track", value: "On-Track" },
|
|
2567
|
+
{ label: "Delayed", value: "Delayed" },
|
|
2568
|
+
{ label: "At Risk", value: "At Risk" },
|
|
2569
|
+
{ label: "Delivered", value: "Delivered" }
|
|
2570
|
+
];
|
|
2571
|
+
var RAG_COLOR_MAP = {
|
|
2572
|
+
"Not-Started": "bg-gray-100 text-gray-800 border-gray-200",
|
|
2564
2573
|
"On-Track": "bg-green-100 text-green-800 border-green-200",
|
|
2565
|
-
"
|
|
2574
|
+
"Delayed": "bg-red-100 text-red-800 border-red-200",
|
|
2566
2575
|
"At Risk": "bg-yellow-100 text-yellow-800 border-yellow-200",
|
|
2567
|
-
|
|
2576
|
+
"Delivered": "bg-blue-100 text-blue-800 border-blue-200"
|
|
2577
|
+
};
|
|
2578
|
+
var getRagStatusLabel = (value) => {
|
|
2579
|
+
const option = RAG_STATUS_OPTIONS.find((opt) => opt.value === value);
|
|
2580
|
+
return option?.label ?? value;
|
|
2568
2581
|
};
|
|
2582
|
+
|
|
2583
|
+
// src/components/DeliveryLead/DeliveryLeadSubmissionList.tsx
|
|
2584
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
2569
2585
|
function DeliveryLeadSubmissionList({
|
|
2570
2586
|
submissions,
|
|
2571
2587
|
isLoading = false
|
|
@@ -2640,8 +2656,8 @@ function DeliveryLeadSubmissionList({
|
|
|
2640
2656
|
submission.milestones?.slice(0, 3).map((milestone, idx) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
2641
2657
|
"span",
|
|
2642
2658
|
{
|
|
2643
|
-
className: `inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${
|
|
2644
|
-
children: milestone.rag
|
|
2659
|
+
className: `inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${RAG_COLOR_MAP[milestone.rag]}`,
|
|
2660
|
+
children: getRagStatusLabel(milestone.rag)
|
|
2645
2661
|
},
|
|
2646
2662
|
idx
|
|
2647
2663
|
)),
|
|
@@ -2745,8 +2761,8 @@ function DeliveryLeadSubmissionList({
|
|
|
2745
2761
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { className: "px-4 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
2746
2762
|
"span",
|
|
2747
2763
|
{
|
|
2748
|
-
className: `inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${
|
|
2749
|
-
children: milestone.rag
|
|
2764
|
+
className: `inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${RAG_COLOR_MAP[milestone.rag]}`,
|
|
2765
|
+
children: getRagStatusLabel(milestone.rag)
|
|
2750
2766
|
}
|
|
2751
2767
|
) })
|
|
2752
2768
|
] }, idx)) })
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
DeliveryLeadSubmissionList
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-3VMFZKXK.mjs";
|
|
6
|
+
import "../../chunk-T7TGES6Z.mjs";
|
|
6
7
|
import "../../chunk-7CVOGGH6.mjs";
|
|
7
8
|
import "../../chunk-I6LSWXZW.mjs";
|
|
8
9
|
import "../../chunk-BXLYIIII.mjs";
|
|
@@ -2562,13 +2562,29 @@ Label.displayName = LabelPrimitive.Root.displayName;
|
|
|
2562
2562
|
|
|
2563
2563
|
// src/components/DeliveryLead/DeliveryLeadSubmissionList.tsx
|
|
2564
2564
|
var import_lucide_react = require("lucide-react");
|
|
2565
|
-
|
|
2566
|
-
|
|
2565
|
+
|
|
2566
|
+
// src/components/DeliveryLead/types.ts
|
|
2567
|
+
var RAG_STATUS_OPTIONS = [
|
|
2568
|
+
{ label: "Not Started", value: "Not-Started" },
|
|
2569
|
+
{ label: "On Track", value: "On-Track" },
|
|
2570
|
+
{ label: "Delayed", value: "Delayed" },
|
|
2571
|
+
{ label: "At Risk", value: "At Risk" },
|
|
2572
|
+
{ label: "Delivered", value: "Delivered" }
|
|
2573
|
+
];
|
|
2574
|
+
var RAG_COLOR_MAP = {
|
|
2575
|
+
"Not-Started": "bg-gray-100 text-gray-800 border-gray-200",
|
|
2567
2576
|
"On-Track": "bg-green-100 text-green-800 border-green-200",
|
|
2568
|
-
"
|
|
2577
|
+
"Delayed": "bg-red-100 text-red-800 border-red-200",
|
|
2569
2578
|
"At Risk": "bg-yellow-100 text-yellow-800 border-yellow-200",
|
|
2570
|
-
|
|
2579
|
+
"Delivered": "bg-blue-100 text-blue-800 border-blue-200"
|
|
2580
|
+
};
|
|
2581
|
+
var getRagStatusLabel = (value) => {
|
|
2582
|
+
const option = RAG_STATUS_OPTIONS.find((opt) => opt.value === value);
|
|
2583
|
+
return option?.label ?? value;
|
|
2571
2584
|
};
|
|
2585
|
+
|
|
2586
|
+
// src/components/DeliveryLead/DeliveryLeadSubmissionList.tsx
|
|
2587
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
2572
2588
|
function DeliveryLeadSubmissionList({
|
|
2573
2589
|
submissions,
|
|
2574
2590
|
isLoading = false
|
|
@@ -2643,8 +2659,8 @@ function DeliveryLeadSubmissionList({
|
|
|
2643
2659
|
submission.milestones?.slice(0, 3).map((milestone, idx) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
2644
2660
|
"span",
|
|
2645
2661
|
{
|
|
2646
|
-
className: `inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${
|
|
2647
|
-
children: milestone.rag
|
|
2662
|
+
className: `inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${RAG_COLOR_MAP[milestone.rag]}`,
|
|
2663
|
+
children: getRagStatusLabel(milestone.rag)
|
|
2648
2664
|
},
|
|
2649
2665
|
idx
|
|
2650
2666
|
)),
|
|
@@ -2748,8 +2764,8 @@ function DeliveryLeadSubmissionList({
|
|
|
2748
2764
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { className: "px-4 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
2749
2765
|
"span",
|
|
2750
2766
|
{
|
|
2751
|
-
className: `inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${
|
|
2752
|
-
children: milestone.rag
|
|
2767
|
+
className: `inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${RAG_COLOR_MAP[milestone.rag]}`,
|
|
2768
|
+
children: getRagStatusLabel(milestone.rag)
|
|
2753
2769
|
}
|
|
2754
2770
|
) })
|
|
2755
2771
|
] }, idx)) })
|
|
@@ -2880,10 +2896,9 @@ var createEmptyMilestone = () => ({
|
|
|
2880
2896
|
name: "",
|
|
2881
2897
|
commentary: "",
|
|
2882
2898
|
dueDate: "",
|
|
2883
|
-
rag: "
|
|
2899
|
+
rag: "Not-Started",
|
|
2884
2900
|
id: null
|
|
2885
2901
|
});
|
|
2886
|
-
var ragOptions = ["On-Track", "Off-Track", "At Risk", "Complete"];
|
|
2887
2902
|
var formatDateInputValue = (value) => {
|
|
2888
2903
|
if (!value) return "";
|
|
2889
2904
|
const parsed = new Date(value);
|
|
@@ -2930,7 +2945,7 @@ var buildMilestonesFromPrefill = (prefilled) => {
|
|
|
2930
2945
|
name: milestone?.name ?? "",
|
|
2931
2946
|
commentary: milestone?.commentary ?? "",
|
|
2932
2947
|
dueDate: formatDateInputValue(milestone?.dueDate ?? ""),
|
|
2933
|
-
rag: milestone?.rag ?? "
|
|
2948
|
+
rag: milestone?.rag ?? "Not-Started",
|
|
2934
2949
|
id: milestone?.id ?? null
|
|
2935
2950
|
}));
|
|
2936
2951
|
};
|
|
@@ -2970,10 +2985,11 @@ function DeliveryLeadSubmissionComponent({ onSubmit, customerProjectPairs, initi
|
|
|
2970
2985
|
const prefilledProject = getProjectOption(initialData?.project, getNumericId(initialData?.customer));
|
|
2971
2986
|
const projectsForCustomer = (customerProjectPairs ?? []).filter((cp) => cp.customer.id === clientId).map((cp) => cp.project);
|
|
2972
2987
|
const filteredProjects = clientId && prefilledProject && prefilledProject.customerId === clientId && !projectsForCustomer.some((project) => project.id === prefilledProject.id) ? [...projectsForCustomer, { id: prefilledProject.id, name: prefilledProject.name }] : projectsForCustomer;
|
|
2988
|
+
const ragValues = RAG_STATUS_OPTIONS.map((opt) => opt.value);
|
|
2973
2989
|
const handleMilestoneChange = (idx, field, value) => {
|
|
2974
2990
|
setMilestones((prev) => {
|
|
2975
2991
|
const newMilestones = [...prev];
|
|
2976
|
-
if (field === "rag" && !
|
|
2992
|
+
if (field === "rag" && !ragValues.includes(value)) {
|
|
2977
2993
|
return prev;
|
|
2978
2994
|
}
|
|
2979
2995
|
newMilestones[idx] = { ...newMilestones[idx], [field]: value };
|
|
@@ -3143,7 +3159,7 @@ function DeliveryLeadSubmissionComponent({ onSubmit, customerProjectPairs, initi
|
|
|
3143
3159
|
className: "w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",
|
|
3144
3160
|
value: m.rag,
|
|
3145
3161
|
onChange: (e) => handleMilestoneChange(idx, "rag", e.target.value),
|
|
3146
|
-
children:
|
|
3162
|
+
children: RAG_STATUS_OPTIONS.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("option", { value: opt.value, children: opt.label }, opt.value))
|
|
3147
3163
|
}
|
|
3148
3164
|
)
|
|
3149
3165
|
] }),
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
DeliveryLeadSubmissionWithList
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-FTVOJKVA.mjs";
|
|
6
|
+
import "../../chunk-3VMFZKXK.mjs";
|
|
7
|
+
import "../../chunk-IM6PU3RO.mjs";
|
|
8
|
+
import "../../chunk-T7TGES6Z.mjs";
|
|
8
9
|
import "../../chunk-EMGZSA3M.mjs";
|
|
9
10
|
import "../../chunk-7CVOGGH6.mjs";
|
|
10
11
|
import "../../chunk-I6LSWXZW.mjs";
|