@voplus/morpho-document 6.1.17 → 6.1.19
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/es/Modules.js +4 -0
- package/es/Modules.js.map +1 -1
- package/es/components/AddDocOverlay/index.js +6 -2
- package/es/components/AddDocOverlay/index.js.map +1 -1
- package/es/components/AddDocOverlay/index.less +1 -1
- package/es/components/AddDocOverlay/state.js +1 -1
- package/es/components/AddDocOverlay/state.js.map +1 -1
- package/es/components/DocumentHeader/index.js +5 -22
- package/es/components/DocumentHeader/index.js.map +1 -1
- package/es/components/DocumentListView/DocumentListView2.js +5 -8
- package/es/components/DocumentListView/DocumentListView2.js.map +1 -1
- package/es/components/NewDocumentForm/DocumentForm.js +4 -2
- package/es/components/NewDocumentForm/DocumentForm.js.map +1 -1
- package/es/components/NewDocumentForm/state.js +4 -1
- package/es/components/NewDocumentForm/state.js.map +1 -1
- package/es/data/action-plan/ActionPlanStore.d.ts +33 -0
- package/es/data/action-plan/ActionPlanStore.js +115 -0
- package/es/data/action-plan/ActionPlanStore.js.map +1 -0
- package/es/data/action-plan/action-plan-events/index.d.ts +3 -0
- package/es/data/action-plan/action-plan-events/index.js +4 -0
- package/es/data/action-plan/action-plan-events/index.js.map +1 -0
- package/es/data/action-plan/action-plan-events/useAutoUpdateListData.d.ts +4 -0
- package/es/data/action-plan/action-plan-events/useAutoUpdateListData.js +15 -0
- package/es/data/action-plan/action-plan-events/useAutoUpdateListData.js.map +1 -0
- package/es/data/action-plan/action-plan-events/useOnDeleteActionPlan.d.ts +4 -0
- package/es/data/action-plan/action-plan-events/useOnDeleteActionPlan.js +16 -0
- package/es/data/action-plan/action-plan-events/useOnDeleteActionPlan.js.map +1 -0
- package/es/data/action-plan/action-plan-events/useOnNewActionPlan.d.ts +4 -0
- package/es/data/action-plan/action-plan-events/useOnNewActionPlan.js +17 -0
- package/es/data/action-plan/action-plan-events/useOnNewActionPlan.js.map +1 -0
- package/es/data/action-plan/hooks.d.ts +10 -0
- package/es/data/action-plan/hooks.js +18 -0
- package/es/data/action-plan/hooks.js.map +1 -0
- package/es/data/action-plan/index.d.ts +4 -0
- package/es/data/action-plan/index.js +5 -0
- package/es/data/action-plan/index.js.map +1 -0
- package/es/data/action-plan/interfaces.d.ts +7 -0
- package/es/data/action-plan/interfaces.js.map +1 -0
- package/es/data/action-plan/metas.d.ts +9 -0
- package/es/data/action-plan/metas.js +31 -0
- package/es/data/action-plan/metas.js.map +1 -0
- package/es/data/action-plan/types.d.ts +22 -0
- package/es/data/action-plan/types.js +2 -0
- package/es/data/action-plan/types.js.map +1 -0
- package/es/data/action-plan-template/ActionPlanTemplateStore.d.ts +12 -0
- package/es/data/action-plan-template/ActionPlanTemplateStore.js +28 -0
- package/es/data/action-plan-template/ActionPlanTemplateStore.js.map +1 -0
- package/es/data/action-plan-template/hook.d.ts +5 -0
- package/es/data/action-plan-template/hook.js +16 -0
- package/es/data/action-plan-template/hook.js.map +1 -0
- package/es/data/action-plan-template/index.d.ts +4 -0
- package/es/data/action-plan-template/index.js +5 -0
- package/es/data/action-plan-template/index.js.map +1 -0
- package/es/data/action-plan-template/interfaces.d.ts +4 -0
- package/es/data/action-plan-template/interfaces.js.map +1 -0
- package/es/data/action-plan-template/metas.d.ts +14 -0
- package/es/data/action-plan-template/metas.js +43 -0
- package/es/data/action-plan-template/metas.js.map +1 -0
- package/es/data/action-plan-template/types.d.ts +8 -0
- package/es/data/action-plan-template/types.js +2 -0
- package/es/data/action-plan-template/types.js.map +1 -0
- package/es/data/library/LibraryStore.js.map +1 -0
- package/es/data/library/hook.js.map +1 -0
- package/es/data/library/index.js.map +1 -0
- package/es/data/library/interfaces.js +2 -0
- package/es/data/library/interfaces.js.map +1 -0
- package/es/data/message-schedule/MessageScheduleStore.d.ts +33 -0
- package/es/data/message-schedule/MessageScheduleStore.js +115 -0
- package/es/data/message-schedule/MessageScheduleStore.js.map +1 -0
- package/es/data/message-schedule/hooks.d.ts +10 -0
- package/es/data/message-schedule/hooks.js +18 -0
- package/es/data/message-schedule/hooks.js.map +1 -0
- package/es/data/message-schedule/index.d.ts +4 -0
- package/es/data/message-schedule/index.js +5 -0
- package/es/data/message-schedule/index.js.map +1 -0
- package/es/data/message-schedule/interfaces.d.ts +12 -0
- package/es/data/message-schedule/interfaces.js +2 -0
- package/es/data/message-schedule/interfaces.js.map +1 -0
- package/es/data/message-schedule/message-schedule-events/index.d.ts +3 -0
- package/es/data/message-schedule/message-schedule-events/index.js +4 -0
- package/es/data/message-schedule/message-schedule-events/index.js.map +1 -0
- package/es/data/message-schedule/message-schedule-events/useAutoUpdateListData.d.ts +4 -0
- package/es/data/message-schedule/message-schedule-events/useAutoUpdateListData.js +15 -0
- package/es/data/message-schedule/message-schedule-events/useAutoUpdateListData.js.map +1 -0
- package/es/data/message-schedule/message-schedule-events/useOnDeleteMessageSchedule.d.ts +4 -0
- package/es/data/message-schedule/message-schedule-events/useOnDeleteMessageSchedule.js +16 -0
- package/es/data/message-schedule/message-schedule-events/useOnDeleteMessageSchedule.js.map +1 -0
- package/es/data/message-schedule/message-schedule-events/useOnNewMessageSchedule.d.ts +4 -0
- package/es/data/message-schedule/message-schedule-events/useOnNewMessageSchedule.js +17 -0
- package/es/data/message-schedule/message-schedule-events/useOnNewMessageSchedule.js.map +1 -0
- package/es/data/message-schedule/metas.d.ts +9 -0
- package/es/data/message-schedule/metas.js +31 -0
- package/es/data/message-schedule/metas.js.map +1 -0
- package/es/data/message-schedule/types.d.ts +25 -0
- package/es/data/message-schedule/types.js +2 -0
- package/es/data/message-schedule/types.js.map +1 -0
- package/es/data/v-submit/VSubmitStore.js.map +1 -0
- package/es/data/v-submit/hook.js.map +1 -0
- package/es/data/v-submit/index.js.map +1 -0
- package/es/data/v-submit/interfaces.js +2 -0
- package/es/data/v-submit/interfaces.js.map +1 -0
- package/es/modules/action-plan/components/ActionPlanHeader/index.d.ts +6 -0
- package/es/modules/action-plan/components/ActionPlanHeader/index.js +19 -0
- package/es/modules/action-plan/components/ActionPlanHeader/index.js.map +1 -0
- package/es/modules/action-plan/components/ActionPlanItem/index.d.ts +5 -0
- package/es/modules/action-plan/components/ActionPlanItem/index.js +39 -0
- package/es/modules/action-plan/components/ActionPlanItem/index.js.map +1 -0
- package/es/modules/action-plan/components/ActionPlanItem/index.less +30 -0
- package/es/modules/action-plan/components/ActionPlanList/index.d.ts +27 -0
- package/es/modules/action-plan/components/ActionPlanList/index.js +93 -0
- package/es/modules/action-plan/components/ActionPlanList/index.js.map +1 -0
- package/es/modules/action-plan/components/ActionPlanList/index.less +16 -0
- package/es/modules/action-plan/components/ActionPlanProperties/index.d.ts +20 -0
- package/es/modules/action-plan/components/ActionPlanProperties/index.js +39 -0
- package/es/modules/action-plan/components/ActionPlanProperties/index.js.map +1 -0
- package/es/modules/action-plan/components/ActionPlanPropertiesView/index.d.ts +6 -0
- package/es/modules/action-plan/components/ActionPlanPropertiesView/index.js +15 -0
- package/es/modules/action-plan/components/ActionPlanPropertiesView/index.js.map +1 -0
- package/es/modules/action-plan/components/ActionPlanQuickViewDialog/index.d.ts +8 -0
- package/es/modules/action-plan/components/ActionPlanQuickViewDialog/index.js +13 -0
- package/es/modules/action-plan/components/ActionPlanQuickViewDialog/index.js.map +1 -0
- package/es/modules/action-plan/components/ActionPlanQuickViewDialog/index.less +7 -0
- package/es/modules/action-plan/components/ActionPlanTabs/index.d.ts +6 -0
- package/es/modules/action-plan/components/ActionPlanTabs/index.js +49 -0
- package/es/modules/action-plan/components/ActionPlanTabs/index.js.map +1 -0
- package/es/modules/action-plan/components/NewActionPlanForm/NewActionPlanFormDialog.d.ts +9 -0
- package/es/modules/action-plan/components/NewActionPlanForm/NewActionPlanFormDialog.js +13 -0
- package/es/modules/action-plan/components/NewActionPlanForm/NewActionPlanFormDialog.js.map +1 -0
- package/es/modules/action-plan/components/NewActionPlanForm/index.d.ts +15 -0
- package/es/modules/action-plan/components/NewActionPlanForm/index.js +59 -0
- package/es/modules/action-plan/components/NewActionPlanForm/index.js.map +1 -0
- package/es/modules/action-plan/components/NewActionPlanForm/index.less +10 -0
- package/es/modules/action-plan/components/NewActionPlanForm/state.d.ts +12 -0
- package/es/modules/action-plan/components/NewActionPlanForm/state.js +32 -0
- package/es/modules/action-plan/components/NewActionPlanForm/state.js.map +1 -0
- package/es/modules/action-plan/controls/ActionPlanMenu/index.d.ts +10 -0
- package/es/modules/action-plan/controls/ActionPlanMenu/index.js +23 -0
- package/es/modules/action-plan/controls/ActionPlanMenu/index.js.map +1 -0
- package/es/modules/action-plan/pages/ActionPlanDefaultView/index.d.ts +3 -0
- package/es/modules/action-plan/pages/ActionPlanDefaultView/index.js +29 -0
- package/es/modules/action-plan/pages/ActionPlanDefaultView/index.js.map +1 -0
- package/es/modules/action-plan/pages/ActionPlanDefaultView/index.less +4 -0
- package/es/modules/action-plan-template/components/ActionPlanTemplateProperties/index.d.ts +25 -0
- package/es/modules/action-plan-template/components/ActionPlanTemplateProperties/index.js +26 -0
- package/es/modules/action-plan-template/components/ActionPlanTemplateProperties/index.js.map +1 -0
- package/es/modules/action-plan-template/components/ActionPlanTemplatePropertiesView/index.d.ts +6 -0
- package/es/modules/action-plan-template/components/ActionPlanTemplatePropertiesView/index.js +25 -0
- package/es/modules/action-plan-template/components/ActionPlanTemplatePropertiesView/index.js.map +1 -0
- package/es/modules/action-plan-template/components/ActionPlanTemplateQuickViewDialog/index.d.ts +7 -0
- package/es/modules/action-plan-template/components/ActionPlanTemplateQuickViewDialog/index.js +26 -0
- package/es/modules/action-plan-template/components/ActionPlanTemplateQuickViewDialog/index.js.map +1 -0
- package/es/modules/action-plan-template/components/ActionPlanTemplateTabs/index.d.ts +6 -0
- package/es/modules/action-plan-template/components/ActionPlanTemplateTabs/index.js +47 -0
- package/es/modules/action-plan-template/components/ActionPlanTemplateTabs/index.js.map +1 -0
- package/es/modules/action-plan-template/controls/ActionPlanTemplateDataIconBar/index.d.ts +12 -0
- package/es/modules/action-plan-template/controls/ActionPlanTemplateDataIconBar/index.js +19 -0
- package/es/modules/action-plan-template/controls/ActionPlanTemplateDataIconBar/index.js.map +1 -0
- package/es/modules/action-plan-template/controls/ActionPlanTemplateMenu/index.d.ts +5 -0
- package/es/modules/action-plan-template/controls/ActionPlanTemplateMenu/index.js +15 -0
- package/es/modules/action-plan-template/controls/ActionPlanTemplateMenu/index.js.map +1 -0
- package/es/modules/action-plan-template/pages/ActionPlanTemplateDefaultView/index.d.ts +5 -0
- package/es/modules/action-plan-template/pages/ActionPlanTemplateDefaultView/index.js +33 -0
- package/es/modules/action-plan-template/pages/ActionPlanTemplateDefaultView/index.js.map +1 -0
- package/es/modules/action-plan-template/pages/ActionPlanTemplateDefaultView/index.less +4 -0
- package/es/modules/message-schedule/components/MessageScheduleHeader/index.d.ts +6 -0
- package/es/modules/message-schedule/components/MessageScheduleHeader/index.js +19 -0
- package/es/modules/message-schedule/components/MessageScheduleHeader/index.js.map +1 -0
- package/es/modules/message-schedule/components/MessageScheduleItem/index.d.ts +5 -0
- package/es/modules/message-schedule/components/MessageScheduleItem/index.js +40 -0
- package/es/modules/message-schedule/components/MessageScheduleItem/index.js.map +1 -0
- package/es/modules/message-schedule/components/MessageScheduleItem/index.less +30 -0
- package/es/modules/message-schedule/components/MessageScheduleList/index.d.ts +27 -0
- package/es/modules/message-schedule/components/MessageScheduleList/index.js +93 -0
- package/es/modules/message-schedule/components/MessageScheduleList/index.js.map +1 -0
- package/es/modules/message-schedule/components/MessageScheduleList/index.less +14 -0
- package/es/modules/message-schedule/components/MessageScheduleProperties/index.d.ts +20 -0
- package/es/modules/message-schedule/components/MessageScheduleProperties/index.js +58 -0
- package/es/modules/message-schedule/components/MessageScheduleProperties/index.js.map +1 -0
- package/es/modules/message-schedule/components/MessageSchedulePropertiesView/index.d.ts +6 -0
- package/es/modules/message-schedule/components/MessageSchedulePropertiesView/index.js +15 -0
- package/es/modules/message-schedule/components/MessageSchedulePropertiesView/index.js.map +1 -0
- package/es/modules/message-schedule/components/MessageScheduleQuickViewDialog/index.d.ts +8 -0
- package/es/modules/message-schedule/components/MessageScheduleQuickViewDialog/index.js +13 -0
- package/es/modules/message-schedule/components/MessageScheduleQuickViewDialog/index.js.map +1 -0
- package/es/modules/message-schedule/components/MessageScheduleQuickViewDialog/index.less +7 -0
- package/es/modules/message-schedule/components/MessageScheduleTabs/index.d.ts +6 -0
- package/es/modules/message-schedule/components/MessageScheduleTabs/index.js +52 -0
- package/es/modules/message-schedule/components/MessageScheduleTabs/index.js.map +1 -0
- package/es/modules/message-schedule/components/NewMessageScheduleForm/NewMessageScheduleFormDialog.d.ts +10 -0
- package/es/modules/message-schedule/components/NewMessageScheduleForm/NewMessageScheduleFormDialog.js +14 -0
- package/es/modules/message-schedule/components/NewMessageScheduleForm/NewMessageScheduleFormDialog.js.map +1 -0
- package/es/modules/message-schedule/components/NewMessageScheduleForm/index.d.ts +15 -0
- package/es/modules/message-schedule/components/NewMessageScheduleForm/index.js +62 -0
- package/es/modules/message-schedule/components/NewMessageScheduleForm/index.js.map +1 -0
- package/es/modules/message-schedule/components/NewMessageScheduleForm/index.less +17 -0
- package/es/modules/message-schedule/components/NewMessageScheduleForm/state.d.ts +12 -0
- package/es/modules/message-schedule/components/NewMessageScheduleForm/state.js +32 -0
- package/es/modules/message-schedule/components/NewMessageScheduleForm/state.js.map +1 -0
- package/es/modules/message-schedule/controls/MessageScheduleMenu/index.d.ts +10 -0
- package/es/modules/message-schedule/controls/MessageScheduleMenu/index.js +23 -0
- package/es/modules/message-schedule/controls/MessageScheduleMenu/index.js.map +1 -0
- package/es/modules/message-schedule/pages/MessageScheduleDefaultView/index.d.ts +3 -0
- package/es/modules/message-schedule/pages/MessageScheduleDefaultView/index.js +29 -0
- package/es/modules/message-schedule/pages/MessageScheduleDefaultView/index.js.map +1 -0
- package/es/modules/message-schedule/pages/MessageScheduleDefaultView/index.less +7 -0
- package/es/modules/message-template/components/MessageTemplateProperties/index.js +3 -3
- package/es/modules/message-template/components/MessageTemplateProperties/index.js.map +1 -1
- package/es/modules/message-template/components/MessageTemplatePropertiesView/index.d.ts +0 -1
- package/es/modules/message-template/components/MessageTemplatePropertiesView/index.js +0 -1
- package/es/modules/message-template/components/MessageTemplatePropertiesView/index.js.map +1 -1
- package/es/modules/quick-access/AdvanceFilterForm/index.js +14 -28
- package/es/modules/quick-access/AdvanceFilterForm/index.js.map +1 -1
- package/es/modules/quick-access/AdvanceFilterForm/state.d.ts +0 -1
- package/es/modules/quick-access/AdvanceFilterForm/state.js +2 -12
- package/es/modules/quick-access/AdvanceFilterForm/state.js.map +1 -1
- package/es/modules/registered-document/components/RegisteredDocumentTableList/index.less +0 -3
- package/es/obsolete/LibraryDefaultView/LibraryDefaultView2.js +1 -1
- package/es/obsolete/LibraryDefaultView/LibraryDefaultView2.js.map +1 -1
- package/es/obsolete/LibraryDefaultView/index.js +1 -1
- package/es/obsolete/LibraryDefaultView/index.js.map +1 -1
- package/es/pages/Library/LibraryDefaultView/index.js +20 -15
- package/es/pages/Library/LibraryDefaultView/index.js.map +1 -1
- package/es/pages/Library/components/DocumentTree/index.d.ts +2 -2
- package/es/pages/Library/components/DocumentTree/index.js +31 -4
- package/es/pages/Library/components/DocumentTree/index.js.map +1 -1
- package/es/pages/VSubmit/VSubmitDefaultView/index.js +1 -1
- package/es/pages/VSubmit/VSubmitDefaultView/index.js.map +1 -1
- package/es/pages/VSubmit/VSubmitSubmitterView/index.js +1 -1
- package/es/pages/VSubmit/VSubmitSubmitterView/index.js.map +1 -1
- package/es/routes.d.ts +6 -0
- package/es/routes.js +13 -0
- package/es/routes.js.map +1 -1
- package/package.json +1 -1
- package/es/modules/message-template/components/MessageTemplatePropertiesView/index.less +0 -14
- package/es/pages/Library/data/LibraryStore.js.map +0 -1
- package/es/pages/Library/data/hook.js.map +0 -1
- package/es/pages/Library/data/index.js.map +0 -1
- package/es/pages/Library/data/interfaces.js.map +0 -1
- package/es/pages/VSubmit/data/VSubmitStore.js.map +0 -1
- package/es/pages/VSubmit/data/hook.js.map +0 -1
- package/es/pages/VSubmit/data/index.js.map +0 -1
- package/es/pages/VSubmit/data/interfaces.js.map +0 -1
- /package/es/{pages/VSubmit/data → data/action-plan}/interfaces.js +0 -0
- /package/es/{pages/Library/data → data/action-plan-template}/interfaces.js +0 -0
- /package/es/{pages/Library/data → data/library}/LibraryStore.d.ts +0 -0
- /package/es/{pages/Library/data → data/library}/LibraryStore.js +0 -0
- /package/es/{pages/Library/data → data/library}/hook.d.ts +0 -0
- /package/es/{pages/Library/data → data/library}/hook.js +0 -0
- /package/es/{pages/Library/data → data/library}/index.d.ts +0 -0
- /package/es/{pages/Library/data → data/library}/index.js +0 -0
- /package/es/{pages/Library/data → data/library}/interfaces.d.ts +0 -0
- /package/es/{pages/VSubmit/data → data/v-submit}/VSubmitStore.d.ts +0 -0
- /package/es/{pages/VSubmit/data → data/v-submit}/VSubmitStore.js +0 -0
- /package/es/{pages/VSubmit/data → data/v-submit}/hook.d.ts +0 -0
- /package/es/{pages/VSubmit/data → data/v-submit}/hook.js +0 -0
- /package/es/{pages/VSubmit/data → data/v-submit}/index.d.ts +0 -0
- /package/es/{pages/VSubmit/data → data/v-submit}/index.js +0 -0
- /package/es/{pages/VSubmit/data → data/v-submit}/interfaces.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/data/message-schedule/message-schedule-events/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMessageSchedule } from "../interfaces";
|
|
2
|
+
import { ListDataContextState } from "@voplus/morpho-ui/es/data";
|
|
3
|
+
/** React hook to call action when a new MessageSchedule has been created. */
|
|
4
|
+
export declare const useAutoUpdateListData: (list: ListDataContextState<any>, shouldUpdate: (d: IMessageSchedule, event: string) => boolean) => void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useOnDeleteMessageSchedule, useOnNewMessageSchedule } from ".";
|
|
2
|
+
/** React hook to call action when a new MessageSchedule has been created. */
|
|
3
|
+
export const useAutoUpdateListData = (list, shouldUpdate) => {
|
|
4
|
+
useOnNewMessageSchedule((s, d) => {
|
|
5
|
+
console.log(s, d);
|
|
6
|
+
console.log(shouldUpdate(d, "new"));
|
|
7
|
+
if (shouldUpdate(d, "new"))
|
|
8
|
+
list.union([d]);
|
|
9
|
+
});
|
|
10
|
+
useOnDeleteMessageSchedule((s, d) => {
|
|
11
|
+
if (shouldUpdate(d, "new"))
|
|
12
|
+
list.remove(d.id);
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=useAutoUpdateListData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAutoUpdateListData.js","sourceRoot":"","sources":["../../../../src/data/message-schedule/message-schedule-events/useAutoUpdateListData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,MAAM,GAAG,CAAC;AAIxE,6EAA6E;AAC7E,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACpC,IAA+B,EAC/B,YAA6D,EAC5D,EAAE;IACH,uBAAuB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QAChC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAClB,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;QACpC,IAAI,YAAY,CAAC,CAAC,EAAE,KAAK,CAAC;YAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7C,CAAC,CAAC,CAAC;IAEH,0BAA0B,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QACnC,IAAI,YAAY,CAAC,CAAC,EAAE,KAAK,CAAC;YAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { MessageScheduleStore } from "../MessageScheduleStore";
|
|
2
|
+
import { IMessageSchedule } from "../interfaces";
|
|
3
|
+
/** React hook to call action when a delete MessageSchedule has been created. */
|
|
4
|
+
export declare const useOnDeleteMessageSchedule: (action: (store: MessageScheduleStore, doc: IMessageSchedule) => void) => void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useMessageScheduleStore } from "../MessageScheduleStore";
|
|
2
|
+
import { useEffect } from "react";
|
|
3
|
+
/** React hook to call action when a delete MessageSchedule has been created. */
|
|
4
|
+
export const useOnDeleteMessageSchedule = (action) => {
|
|
5
|
+
const store = useMessageScheduleStore();
|
|
6
|
+
const onDeleteMessageSchedule = (store, doc) => {
|
|
7
|
+
action(store, doc);
|
|
8
|
+
};
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
store.MessageScheduleDeletedEvent.subscribe(onDeleteMessageSchedule);
|
|
11
|
+
return () => {
|
|
12
|
+
store.MessageScheduleDeletedEvent.unsubscribe(onDeleteMessageSchedule);
|
|
13
|
+
};
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=useOnDeleteMessageSchedule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOnDeleteMessageSchedule.js","sourceRoot":"","sources":["../../../../src/data/message-schedule/message-schedule-events/useOnDeleteMessageSchedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAExF,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,gFAAgF;AAChF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACzC,MAAoE,EACnE,EAAE;IACH,MAAM,KAAK,GAAG,uBAAuB,EAAE,CAAC;IACxC,MAAM,uBAAuB,GAAG,CAAC,KAA2B,EAAE,GAAqB,EAAE,EAAE;QACtF,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACpB,CAAC,CAAC;IACF,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,2BAA2B,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC;QACrE,OAAO,GAAG,EAAE;YACX,KAAK,CAAC,2BAA2B,CAAC,WAAW,CAAC,uBAAuB,CAAC,CAAC;QACxE,CAAC,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { MessageScheduleStore } from "../MessageScheduleStore";
|
|
2
|
+
import { IMessageSchedule } from "../interfaces";
|
|
3
|
+
/** React hook to call action when a new MessageSchedule has been created. */
|
|
4
|
+
export declare const useOnNewMessageSchedule: (action: (store: MessageScheduleStore, doc: IMessageSchedule) => void) => void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useMessageScheduleStore } from "../MessageScheduleStore";
|
|
2
|
+
import { useEffect } from "react";
|
|
3
|
+
/** React hook to call action when a new MessageSchedule has been created. */
|
|
4
|
+
export const useOnNewMessageSchedule = (action) => {
|
|
5
|
+
const store = useMessageScheduleStore();
|
|
6
|
+
const onNewMessageSchedule = (store, doc) => {
|
|
7
|
+
// console.log(`onNewMessageSchedule - ${doc.id} ${doc.name}`);
|
|
8
|
+
action(store, doc);
|
|
9
|
+
};
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
store.MessageScheduleCreatedEvent.subscribe(onNewMessageSchedule);
|
|
12
|
+
return () => {
|
|
13
|
+
store.MessageScheduleCreatedEvent.unsubscribe(onNewMessageSchedule);
|
|
14
|
+
};
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=useOnNewMessageSchedule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOnNewMessageSchedule.js","sourceRoot":"","sources":["../../../../src/data/message-schedule/message-schedule-events/useOnNewMessageSchedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAExF,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,6EAA6E;AAC7E,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACtC,MAAoE,EACnE,EAAE;IACH,MAAM,KAAK,GAAG,uBAAuB,EAAE,CAAC;IACxC,MAAM,oBAAoB,GAAG,CAAC,KAA2B,EAAE,GAAqB,EAAE,EAAE;QACnF,+DAA+D;QAC/D,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACpB,CAAC,CAAC;IACF,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,2BAA2B,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;QAClE,OAAO,GAAG,EAAE;YACX,KAAK,CAAC,2BAA2B,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;QACrE,CAAC,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { INode, QuickViewProps } from "@voplus/morpho-document-core";
|
|
2
|
+
import { DefaultDocumentTypeMeta } from "../DocumentMetaStore";
|
|
3
|
+
export declare class MessageScheduleMeta extends DefaultDocumentTypeMeta {
|
|
4
|
+
static TypeName: string;
|
|
5
|
+
getRoute(node: INode): string;
|
|
6
|
+
get name(): string;
|
|
7
|
+
getPropertiesView(node: INode): JSX.Element;
|
|
8
|
+
getQuickView(node: INode, props: QuickViewProps): JSX.Element;
|
|
9
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { lazy } from "react";
|
|
2
|
+
import { DefaultDocumentTypeMeta } from "../DocumentMetaStore";
|
|
3
|
+
import { suspense } from "@voplus/morpho-ui/es/controls/Suspense";
|
|
4
|
+
const MessageSchedulePropertiesView = lazy(() => import("../../modules/message-schedule/components/MessageSchedulePropertiesView"));
|
|
5
|
+
const MessageScheduleQuickViewDialog = lazy(() => import("../../modules/message-schedule/components/MessageScheduleQuickViewDialog"));
|
|
6
|
+
export class MessageScheduleMeta extends DefaultDocumentTypeMeta {
|
|
7
|
+
getRoute(node) {
|
|
8
|
+
return `/message-schedule/${node.id}`;
|
|
9
|
+
}
|
|
10
|
+
get name() {
|
|
11
|
+
return MessageScheduleMeta.TypeName;
|
|
12
|
+
}
|
|
13
|
+
getPropertiesView(node) {
|
|
14
|
+
return suspense(MessageSchedulePropertiesView)({ id: node.id });
|
|
15
|
+
}
|
|
16
|
+
getQuickView(node, props) {
|
|
17
|
+
props.id = node.id;
|
|
18
|
+
return suspense(MessageScheduleQuickViewDialog)({
|
|
19
|
+
id: node.id,
|
|
20
|
+
visible: props.visible,
|
|
21
|
+
onCancel: props.onCancel,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
Object.defineProperty(MessageScheduleMeta, "TypeName", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
configurable: true,
|
|
28
|
+
writable: true,
|
|
29
|
+
value: "MessageScheduleNode"
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=metas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metas.js","sourceRoot":"","sources":["../../../src/data/message-schedule/metas.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAElE,MAAM,6BAA6B,GAAG,IAAI,CACzC,GAAG,EAAE,CAAC,MAAM,CAAC,yEAAyE,CAAC,CACvF,CAAC;AACF,MAAM,8BAA8B,GAAG,IAAI,CAC1C,GAAG,EAAE,CAAC,MAAM,CAAC,0EAA0E,CAAC,CACxF,CAAC;AAEF,MAAM,OAAO,mBAAoB,SAAQ,uBAAuB;IAGxD,QAAQ,CAAC,IAAW;QAC1B,OAAO,qBAAqB,IAAI,CAAC,EAAE,EAAE,CAAC;IACvC,CAAC;IAED,IAAW,IAAI;QACd,OAAO,mBAAmB,CAAC,QAAQ,CAAC;IACrC,CAAC;IAEM,iBAAiB,CAAC,IAAW;QACnC,OAAO,QAAQ,CAAC,6BAA6B,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IACjE,CAAC;IAEM,YAAY,CAAC,IAAW,EAAE,KAAqB;QACrD,KAAK,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;QAEnB,OAAO,QAAQ,CAAC,8BAA8B,CAAC,CAAC;YAC/C,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ;SACxB,CAAC,CAAC;IACJ,CAAC;;AAtBa;;;;WAAW,qBAAqB;GAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { LoadOptions, StoreActionOptions } from "@voplus/morpho-data";
|
|
2
|
+
import { DeleteDocumentOptions } from "@voplus/morpho-document-core";
|
|
3
|
+
import { IMessageSchedule } from "./interfaces";
|
|
4
|
+
/** Custom load org contact options type */
|
|
5
|
+
export type LoadMessageScheduleOptions = {
|
|
6
|
+
/** Comma separated include options e.g. path */
|
|
7
|
+
includes?: string;
|
|
8
|
+
} & LoadOptions<IMessageSchedule>;
|
|
9
|
+
export type MessageScheduleCreateOptions = {
|
|
10
|
+
ParentNodeId: string;
|
|
11
|
+
TemplateId: string;
|
|
12
|
+
};
|
|
13
|
+
export type MessageScheduleEditOptions = {
|
|
14
|
+
TemplateId?: string;
|
|
15
|
+
Offset?: number;
|
|
16
|
+
};
|
|
17
|
+
export type CreateMessageScheduleOptions = {
|
|
18
|
+
data: MessageScheduleCreateOptions;
|
|
19
|
+
} & StoreActionOptions;
|
|
20
|
+
export type EditMessageScheduleOptions = {
|
|
21
|
+
data: MessageScheduleEditOptions;
|
|
22
|
+
} & StoreActionOptions;
|
|
23
|
+
export type DeleteMessageScheduleOptions = {
|
|
24
|
+
data?: DeleteDocumentOptions;
|
|
25
|
+
} & StoreActionOptions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/data/message-schedule/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VSubmitStore.js","sourceRoot":"","sources":["../../../src/data/v-submit/VSubmitStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,iBAAiB,EAIjB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,MAAM,SAAS,GAAG,cAAc,CAAC;AAEjC,MAAM,OAAO,YAAa,SAAQ,iBAOjC;IAIA,YAAmB,QAAqB,EAAE,SAAwB;QACjE,KAAK,CAAC,QAAQ,EAAE,eAAe,EAAE,SAAS,CAAC,CAAC;QAJ7C,wBAAwB;QACR;;;;mBAAe,SAAS;WAAC;IAIzC,CAAC;CACD;AAED,0BAA0B;AAC1B,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IACnC,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IACrC,OAAO,QAAQ,CACd,SAAS,EACT,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,SAAS,CAAC,CACrE,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hook.js","sourceRoot":"","sources":["../../../src/data/v-submit/hook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAGrF,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAU,EAAE,OAA6B,EAAE,EAAE;IACvE,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA0B,CAAC;IAC1D,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IAChC,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IAErC,OAAO,qBAAqB,CAC3B,EAAE,EACF,SAAS,CAAC,KAAK,EACf,CAAC,iBAAiB,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,iBAAiB,CAAC,EACxD,OAAO,CACK,CAAC;AACf,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/v-submit/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/data/v-submit/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Open, Close } from "../../../../controls/ToolBar/buttons";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import { useActionPlan } from "../../../../data/action-plan";
|
|
5
|
+
import { useMetaStore } from "@voplus/morpho-document-core";
|
|
6
|
+
import ActionPlanMenu from "../../controls/ActionPlanMenu";
|
|
7
|
+
import ToolBar from "../../../../controls/ToolBar/ToolBar2";
|
|
8
|
+
import NodeHeaderLayout from "@voplus/morpho-ui/es/controls/NodeHeaderLayout";
|
|
9
|
+
const ActionPlanHeader = (props) => {
|
|
10
|
+
const { id, close } = props;
|
|
11
|
+
const meta = useMetaStore();
|
|
12
|
+
const actionPlan = useActionPlan(id);
|
|
13
|
+
return observe(() => (React.createElement(NodeHeaderLayout, { content: actionPlan.name, tool: React.createElement(ToolBar, { id: id, showMenu: false },
|
|
14
|
+
React.createElement(Open, { size: "middle", url: meta.getRoute(actionPlan) }),
|
|
15
|
+
close && React.createElement(Close, null),
|
|
16
|
+
React.createElement(ActionPlanMenu, { id: id, closeAside: true })) })));
|
|
17
|
+
};
|
|
18
|
+
export default ActionPlanHeader;
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionPlanHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,gBAAgB,MAAM,gDAAgD,CAAC;AAE9E,MAAM,gBAAgB,GAAG,CAAC,KAAsC,EAAE,EAAE;IACnE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAC5B,MAAM,IAAI,GAAG,YAAY,EAAE,CAAC;IAC5B,MAAM,UAAU,GAAG,aAAa,CAAC,EAAE,CAAC,CAAC;IAErC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,gBAAgB,IAChB,OAAO,EAAE,UAAU,CAAC,IAAI,EACxB,IAAI,EACH,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK;YAC/B,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,UAAiB,CAAC,GAAI;YAC5D,KAAK,IAAI,oBAAC,KAAK,OAAG;YACnB,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CACnC,GAEV,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Skeleton } from "antd";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import { useMetaStore } from "@voplus/morpho-document-core";
|
|
5
|
+
import { Open } from "../../../../controls/ToolBar/buttons";
|
|
6
|
+
import { useActionPlan } from "../../../../data/action-plan";
|
|
7
|
+
import { ColumnItem, ColumnItemCol } from "@voplus/morpho-ui/es/controls/ColumnItem";
|
|
8
|
+
import ActionPlanQuickViewDialog from "../ActionPlanQuickViewDialog";
|
|
9
|
+
import ActionPlanPropertiesView from "../ActionPlanPropertiesView";
|
|
10
|
+
import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
|
|
11
|
+
import ActionPlanMenu from "../../controls/ActionPlanMenu";
|
|
12
|
+
import ToolBar from "../../../../controls/ToolBar/ToolBar2";
|
|
13
|
+
import classnames from "classnames";
|
|
14
|
+
import styles from "./index.less";
|
|
15
|
+
const ActionPlanItem = (props) => {
|
|
16
|
+
const { id } = props;
|
|
17
|
+
const actionPlan = useActionPlan(id);
|
|
18
|
+
const meta = useMetaStore();
|
|
19
|
+
const [hover, setHover] = useState(false);
|
|
20
|
+
return observe(() => (React.createElement(ItemFunction, { className: styles["action-plan-item"], onMouseOver: () => setHover(true), onMouseLeave: () => setHover(false), propertiesView: React.createElement(ActionPlanPropertiesView, { id: id }), quickViewDialog: (onCancel) => (React.createElement(ActionPlanQuickViewDialog, { id: id, visible: true, onCancel: onCancel })) },
|
|
21
|
+
React.createElement(Skeleton, { paragraph: { rows: 1 }, loading: !actionPlan.loaded },
|
|
22
|
+
React.createElement(ColumnItem, { className: "action-plan-column-item" },
|
|
23
|
+
React.createElement(ColumnItemCol, { span: 10, label: "Name" },
|
|
24
|
+
React.createElement("div", { className: "action-plan-item-name" }, `${actionPlan.name}`)),
|
|
25
|
+
React.createElement(ColumnItemCol, { span: 8 },
|
|
26
|
+
React.createElement(React.Fragment, null)),
|
|
27
|
+
React.createElement(ColumnItemCol, { span: 3 },
|
|
28
|
+
React.createElement(React.Fragment, null)),
|
|
29
|
+
React.createElement(ColumnItemCol, { span: 3, align: "flex-end" },
|
|
30
|
+
React.createElement("div", { className: classnames("action-plan-item-tool", { show: hover }), onClick: (e) => {
|
|
31
|
+
e.stopPropagation();
|
|
32
|
+
setHover(false);
|
|
33
|
+
} },
|
|
34
|
+
React.createElement(ToolBar, { id: id, showMenu: false },
|
|
35
|
+
React.createElement(Open, { size: "middle", url: meta.getRoute(actionPlan) }),
|
|
36
|
+
React.createElement(ActionPlanMenu, { id: id, closeAside: true })))))))));
|
|
37
|
+
};
|
|
38
|
+
export default ActionPlanItem;
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionPlanItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,yBAAyB,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uBAAuB,IAAE,GAAG,UAAU,CAAC,IAAI,EAAE,CAAO,CACpD;gBAChB,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC;oBACrB,yCAAK,CACU;gBAChB,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC;oBACrB,yCAAK,CACU;gBAChB,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAC,UAAU;oBACvC,6BACC,SAAS,EAAE,UAAU,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAC/D,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;4BACd,CAAC,CAAC,eAAe,EAAE,CAAC;4BACpB,QAAQ,CAAC,KAAK,CAAC,CAAC;wBACjB,CAAC;wBAED,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK;4BAC/B,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,UAAiB,CAAC,GAAI;4BAC7D,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CACnC,CACL,CACS,CACJ,CACH,CACG,CACf,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
|
+
|
|
3
|
+
.action-plan-item {
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
padding: 0 20px;
|
|
6
|
+
|
|
7
|
+
&:hover {
|
|
8
|
+
background-color: #f5f8fd;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:global {
|
|
12
|
+
.action-plan-column-item {
|
|
13
|
+
padding: 7px 20px;
|
|
14
|
+
|
|
15
|
+
.action-plan-item-name {
|
|
16
|
+
color: #575757;
|
|
17
|
+
font-weight: 500;
|
|
18
|
+
word-break: break-all;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.action-plan-item-tool {
|
|
22
|
+
display: none;
|
|
23
|
+
|
|
24
|
+
&.show {
|
|
25
|
+
display: block;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IActionPlan } from "../../../../data/action-plan";
|
|
3
|
+
import { FilterOption } from "@voplus/morpho-data";
|
|
4
|
+
export type ActionPlanListProps = {
|
|
5
|
+
parentNodeId: string;
|
|
6
|
+
/** title */
|
|
7
|
+
viewTitle?: React.ReactNode;
|
|
8
|
+
filterOptions?: FilterOption[];
|
|
9
|
+
/** can aside */
|
|
10
|
+
asideable?: boolean;
|
|
11
|
+
/** 头部的显示方式 */
|
|
12
|
+
headerType?: "dashboard" | "tool" | "card";
|
|
13
|
+
/** Call back when received total number of action plan. */
|
|
14
|
+
onTotal?: (total: number) => void;
|
|
15
|
+
/** Call back when an item has been clicked on the list. */
|
|
16
|
+
onClickItem?: (item: IActionPlan) => void;
|
|
17
|
+
};
|
|
18
|
+
declare const ActionPlanList: {
|
|
19
|
+
(props: ActionPlanListProps): React.JSX.Element;
|
|
20
|
+
defaultProps: {
|
|
21
|
+
viewTitle: string;
|
|
22
|
+
asideable: boolean;
|
|
23
|
+
filter: boolean;
|
|
24
|
+
headerType: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export default ActionPlanList;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { useRenderOnChange, observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { useActionPlanListEffect } from "../../../../data/action-plan";
|
|
4
|
+
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
5
|
+
import { useAutoUpdateListData } from "../../../../data/action-plan/action-plan-events";
|
|
6
|
+
import { useViewLayoutContext } from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout/ViewLayoutContext";
|
|
7
|
+
import { useViewContext } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
8
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
9
|
+
import { faSuitcase } from "@fortawesome/pro-solid-svg-icons";
|
|
10
|
+
import NewActionPlanForm from "../NewActionPlanForm";
|
|
11
|
+
import NewActionPlanFormDialog from "../NewActionPlanForm/NewActionPlanFormDialog";
|
|
12
|
+
import DocumentItemFrame from "../../../../controls/DocumentItemFrame";
|
|
13
|
+
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView";
|
|
14
|
+
import ActionPlanItem from "../ActionPlanItem";
|
|
15
|
+
import styles from "./index.less";
|
|
16
|
+
const ActionPlanList = (props) => {
|
|
17
|
+
const { viewTitle, headerType, filterOptions, parentNodeId } = props;
|
|
18
|
+
const [add, setAdd] = useState(false);
|
|
19
|
+
const view = useViewContext();
|
|
20
|
+
const layoutContext = useViewLayoutContext();
|
|
21
|
+
const list = useCreateListDataState({
|
|
22
|
+
filterDefaults: {
|
|
23
|
+
filters: filters(),
|
|
24
|
+
},
|
|
25
|
+
}, [filterOptions, parentNodeId]);
|
|
26
|
+
const listHeaderProps = {
|
|
27
|
+
visible: true,
|
|
28
|
+
addAble: true,
|
|
29
|
+
sortable: false,
|
|
30
|
+
searchOptions: { placeholder: "Search in action plan" },
|
|
31
|
+
onAdd: onAdd,
|
|
32
|
+
};
|
|
33
|
+
/** useOnNewDocument, useOnDeleteDocument的sugar syntax 自動更新list. */
|
|
34
|
+
useAutoUpdateListData(list, (d) => true);
|
|
35
|
+
useRenderOnChange(() => list.filters.options);
|
|
36
|
+
/** 把ListDataState传给useActionPlanListEffect,使之可以自動更新loading, hasmore. */
|
|
37
|
+
useActionPlanListEffect(list, (result, total) => {
|
|
38
|
+
var _a;
|
|
39
|
+
list.union(result);
|
|
40
|
+
(_a = props.onTotal) === null || _a === void 0 ? void 0 : _a.call(props, total);
|
|
41
|
+
}, {
|
|
42
|
+
Total: true,
|
|
43
|
+
...list.filters.options,
|
|
44
|
+
});
|
|
45
|
+
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
|
46
|
+
React.createElement(ListView, { asideable: props.asideable, className: styles["action-plan-list"], headerProps: {
|
|
47
|
+
headerToolProps: headerType === "tool" ? listHeaderProps : undefined,
|
|
48
|
+
headDashboardProps: headerType === "dashboard"
|
|
49
|
+
? {
|
|
50
|
+
headerType: "page",
|
|
51
|
+
title: viewTitle,
|
|
52
|
+
avatarIcon: React.createElement(FAIcon, { icon: faSuitcase }),
|
|
53
|
+
description: "Your tasks: prioritize and complete your action plan.",
|
|
54
|
+
listHeaderProps: listHeaderProps,
|
|
55
|
+
}
|
|
56
|
+
: headerType === "card"
|
|
57
|
+
? {
|
|
58
|
+
headerType: "page",
|
|
59
|
+
title: viewTitle,
|
|
60
|
+
className: "page-card",
|
|
61
|
+
listHeaderProps: listHeaderProps,
|
|
62
|
+
}
|
|
63
|
+
: undefined,
|
|
64
|
+
}, renderItem: ({ item, connectDragSource }) => (React.createElement(DocumentItemFrame, { key: item.id, onClick: () => { var _a; return (_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item); } },
|
|
65
|
+
React.createElement(ActionPlanItem, { id: item.id }))) }),
|
|
66
|
+
add && (React.createElement(NewActionPlanFormDialog, { parentNodeId: parentNodeId, onCancel: () => setAdd(false), onSave: () => setAdd(false) })))));
|
|
67
|
+
function filters() {
|
|
68
|
+
let filter = [
|
|
69
|
+
// { c: "ParentNodeId", o: "=", l: "And", v1: parentNodeId }
|
|
70
|
+
];
|
|
71
|
+
if (filterOptions)
|
|
72
|
+
filter = filterOptions;
|
|
73
|
+
return filter;
|
|
74
|
+
}
|
|
75
|
+
function onAdd(asideContext) {
|
|
76
|
+
if ((view === null || view === void 0 ? void 0 : view.Type) === "PropertiesView") {
|
|
77
|
+
setAdd(!add);
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(NewActionPlanForm, { showView: true, parentNodeId: parentNodeId }), {
|
|
81
|
+
span: (layoutContext === null || layoutContext === void 0 ? void 0 : layoutContext.asideColSpan) ? layoutContext.asideColSpan : 12,
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
ActionPlanList.defaultProps = {
|
|
87
|
+
viewTitle: "Action Plan",
|
|
88
|
+
asideable: true,
|
|
89
|
+
filter: true,
|
|
90
|
+
headerType: "dashboard",
|
|
91
|
+
};
|
|
92
|
+
export default ActionPlanList;
|
|
93
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionPlanList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAe,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,iDAAiD,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,4EAA4E,CAAC;AAClH,OAAO,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAC1F,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,uBAAuB,MAAM,8CAA8C,CAAC;AACnF,OAAO,iBAAiB,MAAM,wCAAwC,CAAC;AACvE,OAAO,QAAQ,MAAM,0DAA0D,CAAC;AAChF,O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C5B,4DAA4D;SAC5D,CAAC;QAEF,IAAI,aAAa;YAAE,MAAM,GAAG,aAAa,CAAC;QAE1C,OAAO,MAAM,CAAC;IACf,CAAC;IAED,SAAS,KAAK,CAAC,YAA0B;QACxC,IAAI,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,MAAK,gBAAgB,EAAE,CAAC;YACrC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;QACd,CAAC;aAAM,CAAC;YACP,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,SAAS,CAAC,oBAAC,iBAAiB,IAAC,QAAQ,QAAC,YAAY,EAAE,YAAY,GAAI,EAAE;gBACnF,IAAI,EAAE,CAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,YAAY,EAAC,CAAC,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE;aACnE,CAAC,CAAC;QACJ,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,cAAc,CAAC,YAAY,GAAG;IAC7B,SAAS,EAAE,aAAa;IACxB,SAAS,EAAE,IAAI;IACf,MAAM,EAAE,IAAI;IACZ,UAAU,EAAE,WAAW;CACvB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type ActionPlanPropertiesName = "ActionPlan";
|
|
3
|
+
declare const ActionPlanProperties: {
|
|
4
|
+
(props: {
|
|
5
|
+
id: string;
|
|
6
|
+
headerVisible?: boolean;
|
|
7
|
+
actionPlanTitle?: string;
|
|
8
|
+
actionPlanProperties?: {
|
|
9
|
+
name: ActionPlanPropertiesName;
|
|
10
|
+
visible?: boolean;
|
|
11
|
+
}[];
|
|
12
|
+
}): React.JSX.Element;
|
|
13
|
+
defaultProps: {
|
|
14
|
+
actionPlanTitle: string;
|
|
15
|
+
actionPlanProperties: {
|
|
16
|
+
name: string;
|
|
17
|
+
}[];
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default ActionPlanProperties;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
4
|
+
import { faEllipsisVertical } from "@fortawesome/pro-light-svg-icons";
|
|
5
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
6
|
+
import { useActionPlan, useActionPlanStore } from "../../../../data/action-plan";
|
|
7
|
+
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
8
|
+
import ActionPlanMenu from "../../controls/ActionPlanMenu";
|
|
9
|
+
import ToolBar from "../../../../controls/ToolBar/ToolBar2";
|
|
10
|
+
import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
|
11
|
+
const ActionPlanProperties = (props) => {
|
|
12
|
+
/** 加class name 为了方便做integration tests */
|
|
13
|
+
const classId = "action-plan-properties";
|
|
14
|
+
const { id, headerVisible, actionPlanTitle, actionPlanProperties } = props;
|
|
15
|
+
const actionPlan = useActionPlan(id);
|
|
16
|
+
const store = useActionPlanStore();
|
|
17
|
+
return observe(() => {
|
|
18
|
+
const filterPro = actionPlanProperties === null || actionPlanProperties === void 0 ? void 0 : actionPlanProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
|
|
19
|
+
return (React.createElement("div", { className: "properties-list" },
|
|
20
|
+
headerVisible && (React.createElement("div", { className: "properties-header" },
|
|
21
|
+
React.createElement("div", { className: "title" }, actionPlan === null || actionPlan === void 0 ? void 0 : actionPlan.name),
|
|
22
|
+
React.createElement(ToolBar, { id: id, showMenu: false },
|
|
23
|
+
React.createElement(ActionPlanMenu, { id: id, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) })))),
|
|
24
|
+
React.createElement(Scrollbars, { autoHide: true },
|
|
25
|
+
React.createElement(PropertiesSection, { title: actionPlanTitle, properties: () => filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(Prop, { key: i.name, label: i.name, className: `${classId}-${i.name}` }, renderProp(i)))) }))));
|
|
26
|
+
});
|
|
27
|
+
function renderProp(item) {
|
|
28
|
+
switch (item.name) {
|
|
29
|
+
case "ActionPlan":
|
|
30
|
+
return React.createElement("span", { className: "add-info-style" }, "\u6682\u65E0\u5185\u5BB9(\u5360\u4F4D)");
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
ActionPlanProperties.defaultProps = {
|
|
35
|
+
actionPlanTitle: "ACTION PLAN PROPERTIES",
|
|
36
|
+
actionPlanProperties: [{ name: "ActionPlan" }],
|
|
37
|
+
};
|
|
38
|
+
export default ActionPlanProperties;
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionPlanProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,IAAI,MAAM,oCAAoC,CAAC;AAItD,MAAM,oBAAoB,GAAG,CAAC,KAK7B,EAAE,EAAE;IACJ,yCAAyC;IACzC,MAAM,OAAO,GAAG,wBAAwB,CAAC;IAEzC,MAAM,EAAE,EAAE,EAAE,aAAa,EAAE,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E,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YACnB,KAAK,YAAY;gBAChB,OAAO,8BAAM,SAAS,EAAC,gBAAgB,6CAAgB,CAAC;QAC1D,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,oBAAoB,CAAC,YAAY,GAAG;IACnC,eAAe,EAAE,wBAAwB;IACzC,oBAAoB,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;CAC9C,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { useMemo } from "react";
|
|
2
|
+
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
3
|
+
import ActionPlanHeader from "../ActionPlanHeader";
|
|
4
|
+
import ActionPlanTabs from "../ActionPlanTabs";
|
|
5
|
+
import { observe } from "@voplus/morpho-ui";
|
|
6
|
+
const ActionPlanPropertiesView = (props) => {
|
|
7
|
+
const id = props.id;
|
|
8
|
+
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
9
|
+
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
10
|
+
React.createElement("div", { className: "module-detail-view action-plan-properties-view" },
|
|
11
|
+
React.createElement(ActionPlanHeader, { id: id, close: true }),
|
|
12
|
+
React.createElement(ActionPlanTabs, { id: id, properties: true })))));
|
|
13
|
+
};
|
|
14
|
+
export default ActionPlanPropertiesView;
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionPlanPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,wBAAwB,GAAG,CAAC,KAAwC,EAAE,EAAE;IAC7E,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEtE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,6BAAK,SAAS,EAAC,gDAAgD;YAC9D,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,KAAK,SAAG;YAClC,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CAChC,CACgB,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import ActionPlanHeader from "../ActionPlanHeader";
|
|
4
|
+
import ActionPlanProperties from "../ActionPlanProperties";
|
|
5
|
+
import QuickViewDialog from "../../../../controls/QuickViewDialog";
|
|
6
|
+
import "./index.less";
|
|
7
|
+
const ActionPlanQuickViewDialog = (props) => {
|
|
8
|
+
const { id } = props;
|
|
9
|
+
return observe(() => (React.createElement(QuickViewDialog, { ...props, className: "action-plan-quick-view", header: React.createElement(ActionPlanHeader, { id: id }), subButtons: [{ name: "Document" }, { name: "Activities" }] },
|
|
10
|
+
React.createElement(ActionPlanProperties, { id: id }))));
|
|
11
|
+
};
|
|
12
|
+
export default ActionPlanQuickViewDialog;
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionPlanQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,eAAe,MAAM,sCAAsC,CAAC;AACnE,OAAO,cAAc,CAAC;AAEtB,MAAM,yBAAyB,GAAG,CAAC,KAIlC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,eAAe,OACX,KAAK,EACT,SAAS,EAAC,wBAAwB,EAClC,MAAM,EAAE,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,GAAI,EACpC,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;QAE1D,oBAAC,oBAAoB,IAAC,EAAE,EAAE,EAAE,GAAI,CACf,CAClB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|