@webiny/app-scheduler 0.0.0-unstable.0d717d18dd
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/LICENSE +21 -0
- package/README.md +11 -0
- package/domain/schedulerEntry.d.ts +16 -0
- package/domain/schedulerEntry.js +19 -0
- package/domain/schedulerEntry.js.map +1 -0
- package/features/cancelScheduledAction/CancelScheduledActionGateway.d.ts +11 -0
- package/features/cancelScheduledAction/CancelScheduledActionGateway.js +41 -0
- package/features/cancelScheduledAction/CancelScheduledActionGateway.js.map +1 -0
- package/features/cancelScheduledAction/abstractions.d.ts +11 -0
- package/features/cancelScheduledAction/abstractions.js +5 -0
- package/features/cancelScheduledAction/abstractions.js.map +1 -0
- package/features/cancelScheduledAction/feature.d.ts +1 -0
- package/features/cancelScheduledAction/feature.js +11 -0
- package/features/cancelScheduledAction/feature.js.map +1 -0
- package/features/feature.d.ts +1 -0
- package/features/feature.js +19 -0
- package/features/feature.js.map +1 -0
- package/features/getScheduledAction/GetScheduledActionGateway.d.ts +11 -0
- package/features/getScheduledAction/GetScheduledActionGateway.js +57 -0
- package/features/getScheduledAction/GetScheduledActionGateway.js.map +1 -0
- package/features/getScheduledAction/abstractions.d.ts +13 -0
- package/features/getScheduledAction/abstractions.js +5 -0
- package/features/getScheduledAction/abstractions.js.map +1 -0
- package/features/getScheduledAction/feature.d.ts +1 -0
- package/features/getScheduledAction/feature.js +11 -0
- package/features/getScheduledAction/feature.js.map +1 -0
- package/features/graphqlFields.d.ts +2 -0
- package/features/graphqlFields.js +23 -0
- package/features/graphqlFields.js.map +1 -0
- package/features/listScheduledActions/ListScheduledActionsGateway.d.ts +11 -0
- package/features/listScheduledActions/ListScheduledActionsGateway.js +84 -0
- package/features/listScheduledActions/ListScheduledActionsGateway.js.map +1 -0
- package/features/listScheduledActions/abstractions.d.ts +30 -0
- package/features/listScheduledActions/abstractions.js +5 -0
- package/features/listScheduledActions/abstractions.js.map +1 -0
- package/features/listScheduledActions/feature.d.ts +1 -0
- package/features/listScheduledActions/feature.js +11 -0
- package/features/listScheduledActions/feature.js.map +1 -0
- package/features/schedulePublishAction/SchedulePublishActionGateway.d.ts +11 -0
- package/features/schedulePublishAction/SchedulePublishActionGateway.js +67 -0
- package/features/schedulePublishAction/SchedulePublishActionGateway.js.map +1 -0
- package/features/schedulePublishAction/abstractions.d.ts +16 -0
- package/features/schedulePublishAction/abstractions.js +5 -0
- package/features/schedulePublishAction/abstractions.js.map +1 -0
- package/features/schedulePublishAction/feature.d.ts +1 -0
- package/features/schedulePublishAction/feature.js +11 -0
- package/features/schedulePublishAction/feature.js.map +1 -0
- package/features/scheduleUnpublishAction/ScheduleUnpublishActionGateway.d.ts +11 -0
- package/features/scheduleUnpublishAction/ScheduleUnpublishActionGateway.js +71 -0
- package/features/scheduleUnpublishAction/ScheduleUnpublishActionGateway.js.map +1 -0
- package/features/scheduleUnpublishAction/abstractions.d.ts +16 -0
- package/features/scheduleUnpublishAction/abstractions.js +5 -0
- package/features/scheduleUnpublishAction/abstractions.js.map +1 -0
- package/features/scheduleUnpublishAction/feature.d.ts +1 -0
- package/features/scheduleUnpublishAction/feature.js +11 -0
- package/features/scheduleUnpublishAction/feature.js.map +1 -0
- package/index.d.ts +9 -0
- package/index.js +17 -0
- package/index.js.map +1 -0
- package/package.json +56 -0
- package/presentation/SchedulerConfigs/SchedulerConfigs.d.ts +2 -0
- package/presentation/SchedulerConfigs/SchedulerConfigs.js +52 -0
- package/presentation/SchedulerConfigs/SchedulerConfigs.js.map +1 -0
- package/presentation/SchedulerConfigs/index.d.ts +1 -0
- package/presentation/SchedulerConfigs/index.js +1 -0
- package/presentation/components/Actions/CancelItem/CancelItem.d.ts +2 -0
- package/presentation/components/Actions/CancelItem/CancelItem.js +18 -0
- package/presentation/components/Actions/CancelItem/CancelItem.js.map +1 -0
- package/presentation/components/Actions/CancelItem/index.d.ts +1 -0
- package/presentation/components/Actions/CancelItem/index.js +1 -0
- package/presentation/components/Actions/index.d.ts +1 -0
- package/presentation/components/Actions/index.js +1 -0
- package/presentation/components/BottomInfoBar/BottomInfoBar.styled.d.ts +20 -0
- package/presentation/components/BottomInfoBar/BottomInfoBar.styled.js +43 -0
- package/presentation/components/BottomInfoBar/BottomInfoBar.styled.js.map +1 -0
- package/presentation/components/BottomInfoBar/ListMeta.d.ts +7 -0
- package/presentation/components/BottomInfoBar/ListMeta.js +9 -0
- package/presentation/components/BottomInfoBar/ListMeta.js.map +1 -0
- package/presentation/components/BottomInfoBar/ListStatus.d.ts +5 -0
- package/presentation/components/BottomInfoBar/ListStatus.js +12 -0
- package/presentation/components/BottomInfoBar/ListStatus.js.map +1 -0
- package/presentation/components/Cells/CellActions/CellActions.d.ts +2 -0
- package/presentation/components/Cells/CellActions/CellActions.js +18 -0
- package/presentation/components/Cells/CellActions/CellActions.js.map +1 -0
- package/presentation/components/Cells/CellActions/index.d.ts +1 -0
- package/presentation/components/Cells/CellActions/index.js +1 -0
- package/presentation/components/Cells/CellRevision/CellRevision.d.ts +2 -0
- package/presentation/components/Cells/CellRevision/CellRevision.js +15 -0
- package/presentation/components/Cells/CellRevision/CellRevision.js.map +1 -0
- package/presentation/components/Cells/CellRevision/CellRevision.styled.d.ts +11 -0
- package/presentation/components/Cells/CellRevision/CellRevision.styled.js +18 -0
- package/presentation/components/Cells/CellRevision/CellRevision.styled.js.map +1 -0
- package/presentation/components/Cells/CellRevision/index.d.ts +1 -0
- package/presentation/components/Cells/CellRevision/index.js +1 -0
- package/presentation/components/Cells/CellScheduledBy/CellScheduledBy.d.ts +2 -0
- package/presentation/components/Cells/CellScheduledBy/CellScheduledBy.js +10 -0
- package/presentation/components/Cells/CellScheduledBy/CellScheduledBy.js.map +1 -0
- package/presentation/components/Cells/CellScheduledBy/index.d.ts +1 -0
- package/presentation/components/Cells/CellScheduledBy/index.js +1 -0
- package/presentation/components/Cells/CellScheduledOn/CellScheduledOn.d.ts +24 -0
- package/presentation/components/Cells/CellScheduledOn/CellScheduledOn.js +19 -0
- package/presentation/components/Cells/CellScheduledOn/CellScheduledOn.js.map +1 -0
- package/presentation/components/Cells/CellScheduledOn/index.d.ts +1 -0
- package/presentation/components/Cells/CellScheduledOn/index.js +1 -0
- package/presentation/components/Cells/CellTitle/CellTitle.d.ts +2 -0
- package/presentation/components/Cells/CellTitle/CellTitle.js +14 -0
- package/presentation/components/Cells/CellTitle/CellTitle.js.map +1 -0
- package/presentation/components/Cells/CellTitle/CellTitle.styled.d.ts +11 -0
- package/presentation/components/Cells/CellTitle/CellTitle.styled.js +18 -0
- package/presentation/components/Cells/CellTitle/CellTitle.styled.js.map +1 -0
- package/presentation/components/Cells/CellTitle/index.d.ts +1 -0
- package/presentation/components/Cells/CellTitle/index.js +1 -0
- package/presentation/components/Cells/CellType/CellActionType.d.ts +2 -0
- package/presentation/components/Cells/CellType/CellActionType.js +15 -0
- package/presentation/components/Cells/CellType/CellActionType.js.map +1 -0
- package/presentation/components/Cells/CellType/CellActionType.styled.d.ts +11 -0
- package/presentation/components/Cells/CellType/CellActionType.styled.js +18 -0
- package/presentation/components/Cells/CellType/CellActionType.styled.js.map +1 -0
- package/presentation/components/Cells/CellType/index.d.ts +1 -0
- package/presentation/components/Cells/CellType/index.js +1 -0
- package/presentation/components/Cells/index.d.ts +6 -0
- package/presentation/components/Cells/index.js +6 -0
- package/presentation/components/Empty/Empty.styled.d.ts +8 -0
- package/presentation/components/Empty/Empty.styled.js +16 -0
- package/presentation/components/Empty/Empty.styled.js.map +1 -0
- package/presentation/components/Title/Title.d.ts +5 -0
- package/presentation/components/Title/Title.js +10 -0
- package/presentation/components/Title/Title.js.map +1 -0
- package/presentation/components/Title/Title.styled.d.ts +3 -0
- package/presentation/components/Title/Title.styled.js +13 -0
- package/presentation/components/Title/Title.styled.js.map +1 -0
- package/presentation/components/Title/index.d.ts +1 -0
- package/presentation/components/Title/index.js +1 -0
- package/presentation/configs/index.d.ts +1 -0
- package/presentation/configs/index.js +1 -0
- package/presentation/configs/list/Browser/EntryAction.d.ts +8 -0
- package/presentation/configs/list/Browser/EntryAction.js +13 -0
- package/presentation/configs/list/Browser/EntryAction.js.map +1 -0
- package/presentation/configs/list/Browser/Table/Column.d.ts +15 -0
- package/presentation/configs/list/Browser/Table/Column.js +11 -0
- package/presentation/configs/list/Browser/Table/Column.js.map +1 -0
- package/presentation/configs/list/Browser/Table/Sorting.d.ts +5 -0
- package/presentation/configs/list/Browser/Table/Sorting.js +7 -0
- package/presentation/configs/list/Browser/Table/Sorting.js.map +1 -0
- package/presentation/configs/list/Browser/Table/index.d.ts +19 -0
- package/presentation/configs/list/Browser/Table/index.js +9 -0
- package/presentation/configs/list/Browser/Table/index.js.map +1 -0
- package/presentation/configs/list/Browser/index.d.ts +23 -0
- package/presentation/configs/list/Browser/index.js +9 -0
- package/presentation/configs/list/Browser/index.js.map +1 -0
- package/presentation/configs/list/SchedulerListConfig.d.ts +35 -0
- package/presentation/configs/list/SchedulerListConfig.js +30 -0
- package/presentation/configs/list/SchedulerListConfig.js.map +1 -0
- package/presentation/configs/list/index.d.ts +1 -0
- package/presentation/configs/list/index.js +1 -0
- package/presentation/hooks/index.d.ts +2 -0
- package/presentation/hooks/index.js +2 -0
- package/presentation/hooks/useCancelSchedulerItem.d.ts +8 -0
- package/presentation/hooks/useCancelSchedulerItem.js +32 -0
- package/presentation/hooks/useCancelSchedulerItem.js.map +1 -0
- package/presentation/hooks/useSchedulerItem.d.ts +11 -0
- package/presentation/hooks/useSchedulerItem.js +7 -0
- package/presentation/hooks/useSchedulerItem.js.map +1 -0
- package/presentation/scheduleDialog/ScheduleDialogPresenter.d.ts +26 -0
- package/presentation/scheduleDialog/ScheduleDialogPresenter.js +115 -0
- package/presentation/scheduleDialog/ScheduleDialogPresenter.js.map +1 -0
- package/presentation/scheduleDialog/abstractions.d.ts +35 -0
- package/presentation/scheduleDialog/abstractions.js +5 -0
- package/presentation/scheduleDialog/abstractions.js.map +1 -0
- package/presentation/scheduleDialog/components/CancelButtonComponent.d.ts +10 -0
- package/presentation/scheduleDialog/components/CancelButtonComponent.js +20 -0
- package/presentation/scheduleDialog/components/CancelButtonComponent.js.map +1 -0
- package/presentation/scheduleDialog/components/FormComponent.d.ts +9 -0
- package/presentation/scheduleDialog/components/FormComponent.js +32 -0
- package/presentation/scheduleDialog/components/FormComponent.js.map +1 -0
- package/presentation/scheduleDialog/components/ReschedulingAlert.d.ts +7 -0
- package/presentation/scheduleDialog/components/ReschedulingAlert.js +14 -0
- package/presentation/scheduleDialog/components/ReschedulingAlert.js.map +1 -0
- package/presentation/scheduleDialog/components/SchedulerDialogFormComponentDateTimeInput.d.ts +24 -0
- package/presentation/scheduleDialog/components/SchedulerDialogFormComponentDateTimeInput.js +15 -0
- package/presentation/scheduleDialog/components/SchedulerDialogFormComponentDateTimeInput.js.map +1 -0
- package/presentation/scheduleDialog/createMinDateValidator.d.ts +7 -0
- package/presentation/scheduleDialog/createMinDateValidator.js +14 -0
- package/presentation/scheduleDialog/createMinDateValidator.js.map +1 -0
- package/presentation/scheduleDialog/feature.d.ts +3 -0
- package/presentation/scheduleDialog/feature.js +17 -0
- package/presentation/scheduleDialog/feature.js.map +1 -0
- package/presentation/scheduleDialog/useScheduleDialog.d.ts +20 -0
- package/presentation/scheduleDialog/useScheduleDialog.js +128 -0
- package/presentation/scheduleDialog/useScheduleDialog.js.map +1 -0
- package/presentation/schedulerList/Scheduler.d.ts +18 -0
- package/presentation/schedulerList/Scheduler.js +28 -0
- package/presentation/schedulerList/Scheduler.js.map +1 -0
- package/presentation/schedulerList/SchedulerListDataSource.d.ts +15 -0
- package/presentation/schedulerList/SchedulerListDataSource.js +41 -0
- package/presentation/schedulerList/SchedulerListDataSource.js.map +1 -0
- package/presentation/schedulerList/SchedulerListPresenter.d.ts +21 -0
- package/presentation/schedulerList/SchedulerListPresenter.js +47 -0
- package/presentation/schedulerList/SchedulerListPresenter.js.map +1 -0
- package/presentation/schedulerList/abstractions.d.ts +13 -0
- package/presentation/schedulerList/abstractions.js +5 -0
- package/presentation/schedulerList/abstractions.js.map +1 -0
- package/presentation/schedulerList/components/BottomInfoBar.d.ts +9 -0
- package/presentation/schedulerList/components/BottomInfoBar.js +18 -0
- package/presentation/schedulerList/components/BottomInfoBar.js.map +1 -0
- package/presentation/schedulerList/components/Empty.d.ts +9 -0
- package/presentation/schedulerList/components/Empty.js +21 -0
- package/presentation/schedulerList/components/Empty.js.map +1 -0
- package/presentation/schedulerList/components/SchedulerListView.d.ts +8 -0
- package/presentation/schedulerList/components/SchedulerListView.js +40 -0
- package/presentation/schedulerList/components/SchedulerListView.js.map +1 -0
- package/presentation/schedulerList/components/SchedulerOverlay.d.ts +11 -0
- package/presentation/schedulerList/components/SchedulerOverlay.js +38 -0
- package/presentation/schedulerList/components/SchedulerOverlay.js.map +1 -0
- package/presentation/schedulerList/components/SchedulerTable.d.ts +9 -0
- package/presentation/schedulerList/components/SchedulerTable.js +48 -0
- package/presentation/schedulerList/components/SchedulerTable.js.map +1 -0
- package/presentation/schedulerList/components/SearchInput.d.ts +9 -0
- package/presentation/schedulerList/components/SearchInput.js +30 -0
- package/presentation/schedulerList/components/SearchInput.js.map +1 -0
- package/presentation/schedulerList/feature.d.ts +3 -0
- package/presentation/schedulerList/feature.js +17 -0
- package/presentation/schedulerList/feature.js.map +1 -0
- package/presentation/schedulerList/useSchedulerListPresenter.d.ts +1 -0
- package/presentation/schedulerList/useSchedulerListPresenter.js +6 -0
- package/presentation/schedulerList/useSchedulerListPresenter.js.map +1 -0
- package/types.d.ts +30 -0
- package/types.js +8 -0
- package/types.js.map +1 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { OptionsMenu } from "@webiny/app-admin";
|
|
3
|
+
import { SchedulerListConfig, useSchedulerListConfig } from "../../../configs/index.js";
|
|
4
|
+
import { SchedulerItemProvider } from "../../../hooks/index.js";
|
|
5
|
+
const CellActions = ()=>{
|
|
6
|
+
const { useTableRow } = SchedulerListConfig.Browser.Table.Column;
|
|
7
|
+
const { row } = useTableRow();
|
|
8
|
+
const { browser } = useSchedulerListConfig();
|
|
9
|
+
return /*#__PURE__*/ react.createElement(SchedulerItemProvider, {
|
|
10
|
+
item: row.data
|
|
11
|
+
}, /*#__PURE__*/ react.createElement(OptionsMenu, {
|
|
12
|
+
actions: browser.entryActions,
|
|
13
|
+
"data-testid": "table.row.scheduler.entry.menu-action"
|
|
14
|
+
}));
|
|
15
|
+
};
|
|
16
|
+
export { CellActions };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=CellActions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/components/Cells/CellActions/CellActions.js","sources":["../../../../../src/presentation/components/Cells/CellActions/CellActions.tsx"],"sourcesContent":["import React from \"react\";\nimport { OptionsMenu } from \"@webiny/app-admin\";\nimport { SchedulerListConfig, useSchedulerListConfig } from \"~/presentation/configs/index.js\";\nimport { SchedulerItemProvider } from \"~/presentation/hooks/index.js\";\n\nexport const CellActions = () => {\n const { useTableRow } = SchedulerListConfig.Browser.Table.Column;\n const { row } = useTableRow();\n const { browser } = useSchedulerListConfig();\n\n return (\n <SchedulerItemProvider item={row.data}>\n <OptionsMenu\n actions={browser.entryActions}\n data-testid={\"table.row.scheduler.entry.menu-action\"}\n />\n </SchedulerItemProvider>\n );\n};\n"],"names":["CellActions","useTableRow","SchedulerListConfig","row","browser","useSchedulerListConfig","SchedulerItemProvider","OptionsMenu"],"mappings":";;;;AAKO,MAAMA,cAAc;IACvB,MAAM,EAAEC,WAAW,EAAE,GAAGC,oBAAoB,OAAO,CAAC,KAAK,CAAC,MAAM;IAChE,MAAM,EAAEC,GAAG,EAAE,GAAGF;IAChB,MAAM,EAAEG,OAAO,EAAE,GAAGC;IAEpB,OAAO,WAAP,GACI,oBAACC,uBAAqBA;QAAC,MAAMH,IAAI,IAAI;qBACjC,oBAACI,aAAWA;QACR,SAASH,QAAQ,YAAY;QAC7B,eAAa;;AAI7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CellActions.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CellActions.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { RowText, RowTitle } from "./CellRevision.styled.js";
|
|
3
|
+
import { SchedulerListConfig } from "../../../configs/index.js";
|
|
4
|
+
import { parseIdentifier } from "@webiny/utils/parseIdentifier.js";
|
|
5
|
+
const CellRevision = ()=>{
|
|
6
|
+
const { useTableRow } = SchedulerListConfig.Browser.Table.Column;
|
|
7
|
+
const { row } = useTableRow();
|
|
8
|
+
const { version } = parseIdentifier(row.data.targetId);
|
|
9
|
+
return /*#__PURE__*/ react.createElement(RowTitle, null, /*#__PURE__*/ react.createElement(RowText, {
|
|
10
|
+
size: "sm"
|
|
11
|
+
}, version));
|
|
12
|
+
};
|
|
13
|
+
export { CellRevision };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=CellRevision.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/components/Cells/CellRevision/CellRevision.js","sources":["../../../../../src/presentation/components/Cells/CellRevision/CellRevision.tsx"],"sourcesContent":["import React from \"react\";\nimport { RowText, RowTitle } from \"./CellRevision.styled.js\";\nimport { SchedulerListConfig } from \"~/presentation/configs/index.js\";\nimport { parseIdentifier } from \"@webiny/utils/parseIdentifier.js\";\n\nexport const CellRevision = () => {\n const { useTableRow } = SchedulerListConfig.Browser.Table.Column;\n const { row } = useTableRow();\n\n const { version } = parseIdentifier(row.data.targetId);\n return (\n <RowTitle>\n <RowText size={\"sm\"}>{version}</RowText>\n </RowTitle>\n );\n};\n"],"names":["CellRevision","useTableRow","SchedulerListConfig","row","version","parseIdentifier","RowTitle","RowText"],"mappings":";;;;AAKO,MAAMA,eAAe;IACxB,MAAM,EAAEC,WAAW,EAAE,GAAGC,oBAAoB,OAAO,CAAC,KAAK,CAAC,MAAM;IAChE,MAAM,EAAEC,GAAG,EAAE,GAAGF;IAEhB,MAAM,EAAEG,OAAO,EAAE,GAAGC,gBAAgBF,IAAI,IAAI,CAAC,QAAQ;IACrD,OAAO,WAAP,GACI,oBAACG,UAAQA,MAAAA,WAAAA,GACL,oBAACC,SAAOA;QAAC,MAAM;OAAOH;AAGlC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const RowTitle: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
+
export declare const RowIcon: import("@emotion/styled").StyledComponent<{
|
|
6
|
+
theme?: import("@emotion/react").Theme;
|
|
7
|
+
as?: React.ElementType;
|
|
8
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
+
export declare const RowText: import("@emotion/styled").StyledComponent<import("@webiny/admin-ui").TextProps & {
|
|
10
|
+
theme?: import("@emotion/react").Theme;
|
|
11
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
|
+
import { Text } from "@webiny/admin-ui";
|
|
3
|
+
const RowTitle = styled("div")`
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
`;
|
|
7
|
+
const RowIcon = styled("div")`
|
|
8
|
+
margin-right: 8px;
|
|
9
|
+
height: 24px;
|
|
10
|
+
`;
|
|
11
|
+
const RowText = styled(Text)`
|
|
12
|
+
white-space: nowrap;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
text-overflow: ellipsis;
|
|
15
|
+
`;
|
|
16
|
+
export { RowIcon, RowText, RowTitle };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=CellRevision.styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/components/Cells/CellRevision/CellRevision.styled.js","sources":["../../../../../src/presentation/components/Cells/CellRevision/CellRevision.styled.tsx"],"sourcesContent":["import styled from \"@emotion/styled\";\nimport { Text } from \"@webiny/admin-ui\";\n\nexport const RowTitle = styled(\"div\")`\n display: flex;\n align-items: center;\n`;\n\nexport const RowIcon = styled(\"div\")`\n margin-right: 8px;\n height: 24px;\n`;\n\nexport const RowText = styled(Text)`\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n"],"names":["RowTitle","styled","RowIcon","RowText","Text"],"mappings":";;AAGO,MAAMA,WAAWC,OAAO,MAAM,CAAC;;;AAGtC,CAAC;AAEM,MAAMC,UAAUD,OAAO,MAAM,CAAC;;;AAGrC,CAAC;AAEM,MAAME,UAAUF,OAAOG,KAAK,CAAC;;;;AAIpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CellRevision.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CellRevision.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { SchedulerListConfig } from "../../../configs/index.js";
|
|
3
|
+
const CellScheduledBy = ()=>{
|
|
4
|
+
const { useTableRow } = SchedulerListConfig.Browser.Table.Column;
|
|
5
|
+
const { row } = useTableRow();
|
|
6
|
+
return /*#__PURE__*/ react.createElement(react.Fragment, null, row.data.scheduledBy?.displayName || "unknown");
|
|
7
|
+
};
|
|
8
|
+
export { CellScheduledBy };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=CellScheduledBy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/components/Cells/CellScheduledBy/CellScheduledBy.js","sources":["../../../../../src/presentation/components/Cells/CellScheduledBy/CellScheduledBy.tsx"],"sourcesContent":["import React from \"react\";\nimport { SchedulerListConfig } from \"~/presentation/configs/index.js\";\n\nexport const CellScheduledBy = () => {\n const { useTableRow } = SchedulerListConfig.Browser.Table.Column;\n const { row } = useTableRow();\n\n return <>{row.data.scheduledBy?.displayName || \"unknown\"}</>;\n};\n"],"names":["CellScheduledBy","useTableRow","SchedulerListConfig","row"],"mappings":";;AAGO,MAAMA,kBAAkB;IAC3B,MAAM,EAAEC,WAAW,EAAE,GAAGC,oBAAoB,OAAO,CAAC,KAAK,CAAC,MAAM;IAChE,MAAM,EAAEC,GAAG,EAAE,GAAGF;IAEhB,OAAO,WAAP,GAAO,0CAAGE,IAAI,IAAI,CAAC,WAAW,EAAE,eAAe;AACnD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CellScheduledBy.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CellScheduledBy.js";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface ICellScheduledOnLabelProps {
|
|
3
|
+
dateTime: Date | undefined;
|
|
4
|
+
}
|
|
5
|
+
export declare const CellScheduledOnLabel: (({ dateTime }: ICellScheduledOnLabelProps) => React.JSX.Element) & {
|
|
6
|
+
original: ({ dateTime }: ICellScheduledOnLabelProps) => React.JSX.Element;
|
|
7
|
+
originalName: string;
|
|
8
|
+
displayName: string;
|
|
9
|
+
} & {
|
|
10
|
+
original: (({ dateTime }: ICellScheduledOnLabelProps) => React.JSX.Element) & {
|
|
11
|
+
original: ({ dateTime }: ICellScheduledOnLabelProps) => React.JSX.Element;
|
|
12
|
+
originalName: string;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
originalName: string;
|
|
16
|
+
displayName: string;
|
|
17
|
+
} & {
|
|
18
|
+
createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<(({ dateTime }: ICellScheduledOnLabelProps) => React.JSX.Element) & {
|
|
19
|
+
original: ({ dateTime }: ICellScheduledOnLabelProps) => React.JSX.Element;
|
|
20
|
+
originalName: string;
|
|
21
|
+
displayName: string;
|
|
22
|
+
}>) => (props: unknown) => React.JSX.Element;
|
|
23
|
+
};
|
|
24
|
+
export declare const CellScheduledOn: () => React.JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { SchedulerListConfig } from "../../../configs/index.js";
|
|
3
|
+
import { makeDecoratable } from "@webiny/react-composition";
|
|
4
|
+
import { useDateFormatter } from "@webiny/app-admin";
|
|
5
|
+
const CellScheduledOnLabel = makeDecoratable("Scheduler.CellScheduledOnLabel", ({ dateTime })=>{
|
|
6
|
+
const dateFormatter = useDateFormatter();
|
|
7
|
+
if (!dateTime) return /*#__PURE__*/ react.createElement(react.Fragment, null, "Missing publish or unpublish date.");
|
|
8
|
+
return /*#__PURE__*/ react.createElement(react.Fragment, null, dateFormatter.format(dateTime));
|
|
9
|
+
});
|
|
10
|
+
const CellScheduledOn = ()=>{
|
|
11
|
+
const { useTableRow } = SchedulerListConfig.Browser.Table.Column;
|
|
12
|
+
const { row } = useTableRow();
|
|
13
|
+
return /*#__PURE__*/ react.createElement(CellScheduledOnLabel, {
|
|
14
|
+
dateTime: row.data.publishOn || row.data.unpublishOn
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
export { CellScheduledOn, CellScheduledOnLabel };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=CellScheduledOn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/components/Cells/CellScheduledOn/CellScheduledOn.js","sources":["../../../../../src/presentation/components/Cells/CellScheduledOn/CellScheduledOn.tsx"],"sourcesContent":["import React from \"react\";\nimport { SchedulerListConfig } from \"~/presentation/configs/index.js\";\nimport { makeDecoratable } from \"@webiny/react-composition\";\nimport { useDateFormatter } from \"@webiny/app-admin\";\n\nexport interface ICellScheduledOnLabelProps {\n dateTime: Date | undefined;\n}\n\nexport const CellScheduledOnLabel = makeDecoratable(\n \"Scheduler.CellScheduledOnLabel\",\n ({ dateTime }: ICellScheduledOnLabelProps) => {\n const dateFormatter = useDateFormatter();\n if (!dateTime) {\n return <>Missing publish or unpublish date.</>;\n }\n\n return <>{dateFormatter.format(dateTime)}</>;\n }\n);\n\nexport const CellScheduledOn = () => {\n const { useTableRow } = SchedulerListConfig.Browser.Table.Column;\n const { row } = useTableRow();\n\n return <CellScheduledOnLabel dateTime={row.data.publishOn || row.data.unpublishOn} />;\n};\n"],"names":["CellScheduledOnLabel","makeDecoratable","dateTime","dateFormatter","useDateFormatter","CellScheduledOn","useTableRow","SchedulerListConfig","row"],"mappings":";;;;AASO,MAAMA,uBAAuBC,gBAChC,kCACA,CAAC,EAAEC,QAAQ,EAA8B;IACrC,MAAMC,gBAAgBC;IACtB,IAAI,CAACF,UACD,OAAO,WAAP,GAAO,0CAAE;IAGb,OAAO,WAAP,GAAO,0CAAGC,cAAc,MAAM,CAACD;AACnC;AAGG,MAAMG,kBAAkB;IAC3B,MAAM,EAAEC,WAAW,EAAE,GAAGC,oBAAoB,OAAO,CAAC,KAAK,CAAC,MAAM;IAChE,MAAM,EAAEC,GAAG,EAAE,GAAGF;IAEhB,OAAO,WAAP,GAAO,oBAACN,sBAAoBA;QAAC,UAAUQ,IAAI,IAAI,CAAC,SAAS,IAAIA,IAAI,IAAI,CAAC,WAAW;;AACrF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CellScheduledOn.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CellScheduledOn.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { ReactComponent } from "@material-design-icons/svg/outlined/description.svg";
|
|
3
|
+
import { RowIcon, RowText, RowTitle } from "./CellTitle.styled.js";
|
|
4
|
+
import { SchedulerListConfig } from "../../../configs/index.js";
|
|
5
|
+
const CellTitle = ()=>{
|
|
6
|
+
const { useTableRow } = SchedulerListConfig.Browser.Table.Column;
|
|
7
|
+
const { row } = useTableRow();
|
|
8
|
+
return /*#__PURE__*/ react.createElement(RowTitle, null, /*#__PURE__*/ react.createElement(RowIcon, null, /*#__PURE__*/ react.createElement(ReactComponent, null)), /*#__PURE__*/ react.createElement(RowText, {
|
|
9
|
+
size: "sm"
|
|
10
|
+
}, row.data.title));
|
|
11
|
+
};
|
|
12
|
+
export { CellTitle };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=CellTitle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/components/Cells/CellTitle/CellTitle.js","sources":["../../../../../src/presentation/components/Cells/CellTitle/CellTitle.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as File } from \"@material-design-icons/svg/outlined/description.svg\";\nimport { RowIcon, RowText, RowTitle } from \"./CellTitle.styled.js\";\nimport { SchedulerListConfig } from \"~/presentation/configs/index.js\";\n\nexport const CellTitle = () => {\n const { useTableRow } = SchedulerListConfig.Browser.Table.Column;\n const { row } = useTableRow();\n\n return (\n <RowTitle>\n <RowIcon>\n <File />\n </RowIcon>\n <RowText size={\"sm\"}>{row.data.title}</RowText>\n </RowTitle>\n );\n};\n"],"names":["CellTitle","useTableRow","SchedulerListConfig","row","RowTitle","RowIcon","File","RowText"],"mappings":";;;;AAKO,MAAMA,YAAY;IACrB,MAAM,EAAEC,WAAW,EAAE,GAAGC,oBAAoB,OAAO,CAAC,KAAK,CAAC,MAAM;IAChE,MAAM,EAAEC,GAAG,EAAE,GAAGF;IAEhB,OAAO,WAAP,GACI,oBAACG,UAAQA,MAAAA,WAAAA,GACL,oBAACC,SAAOA,MAAAA,WAAAA,GACJ,oBAACC,gBAAIA,QAAAA,WAAAA,GAET,oBAACC,SAAOA;QAAC,MAAM;OAAOJ,IAAI,IAAI,CAAC,KAAK;AAGhD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const RowTitle: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
+
export declare const RowIcon: import("@emotion/styled").StyledComponent<{
|
|
6
|
+
theme?: import("@emotion/react").Theme;
|
|
7
|
+
as?: React.ElementType;
|
|
8
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
+
export declare const RowText: import("@emotion/styled").StyledComponent<import("@webiny/admin-ui").TextProps & {
|
|
10
|
+
theme?: import("@emotion/react").Theme;
|
|
11
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
|
+
import { Text } from "@webiny/admin-ui";
|
|
3
|
+
const RowTitle = styled("div")`
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
`;
|
|
7
|
+
const RowIcon = styled("div")`
|
|
8
|
+
margin-right: 8px;
|
|
9
|
+
height: 24px;
|
|
10
|
+
`;
|
|
11
|
+
const RowText = styled(Text)`
|
|
12
|
+
white-space: nowrap;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
text-overflow: ellipsis;
|
|
15
|
+
`;
|
|
16
|
+
export { RowIcon, RowText, RowTitle };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=CellTitle.styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/components/Cells/CellTitle/CellTitle.styled.js","sources":["../../../../../src/presentation/components/Cells/CellTitle/CellTitle.styled.tsx"],"sourcesContent":["import styled from \"@emotion/styled\";\nimport { Text } from \"@webiny/admin-ui\";\n\nexport const RowTitle = styled(\"div\")`\n display: flex;\n align-items: center;\n`;\n\nexport const RowIcon = styled(\"div\")`\n margin-right: 8px;\n height: 24px;\n`;\n\nexport const RowText = styled(Text)`\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n"],"names":["RowTitle","styled","RowIcon","RowText","Text"],"mappings":";;AAGO,MAAMA,WAAWC,OAAO,MAAM,CAAC;;;AAGtC,CAAC;AAEM,MAAMC,UAAUD,OAAO,MAAM,CAAC;;;AAGrC,CAAC;AAEM,MAAME,UAAUF,OAAOG,KAAK,CAAC;;;;AAIpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CellTitle.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CellTitle.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { ReactComponent } from "@webiny/icons/publish.svg";
|
|
3
|
+
import { ReactComponent as unpublished_svg_ReactComponent } from "@webiny/icons/unpublished.svg";
|
|
4
|
+
import { RowIcon, RowText, RowType } from "./CellActionType.styled.js";
|
|
5
|
+
import { SchedulerListConfig } from "../../../configs/index.js";
|
|
6
|
+
const CellActionType = ()=>{
|
|
7
|
+
const { useTableRow } = SchedulerListConfig.Browser.Table.Column;
|
|
8
|
+
const { row } = useTableRow();
|
|
9
|
+
return /*#__PURE__*/ react.createElement(RowType, null, /*#__PURE__*/ react.createElement(RowIcon, null, "publish" === row.data.actionType ? /*#__PURE__*/ react.createElement(ReactComponent, null) : /*#__PURE__*/ react.createElement(unpublished_svg_ReactComponent, null)), /*#__PURE__*/ react.createElement(RowText, {
|
|
10
|
+
size: "sm"
|
|
11
|
+
}, row.data.actionType));
|
|
12
|
+
};
|
|
13
|
+
export { CellActionType };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=CellActionType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/components/Cells/CellType/CellActionType.js","sources":["../../../../../src/presentation/components/Cells/CellType/CellActionType.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as Publish } from \"@webiny/icons/publish.svg\";\nimport { ReactComponent as Unpublish } from \"@webiny/icons/unpublished.svg\";\nimport { RowIcon, RowText, RowType } from \"./CellActionType.styled.js\";\nimport { SchedulerListConfig } from \"~/presentation/configs/index.js\";\n\nexport const CellActionType = () => {\n const { useTableRow } = SchedulerListConfig.Browser.Table.Column;\n const { row } = useTableRow();\n\n return (\n <RowType>\n <RowIcon>{row.data.actionType === \"publish\" ? <Publish /> : <Unpublish />}</RowIcon>\n <RowText size={\"sm\"}>{row.data.actionType}</RowText>\n </RowType>\n );\n};\n"],"names":["CellActionType","useTableRow","SchedulerListConfig","row","RowType","RowIcon","Publish","Unpublish","RowText"],"mappings":";;;;;AAMO,MAAMA,iBAAiB;IAC1B,MAAM,EAAEC,WAAW,EAAE,GAAGC,oBAAoB,OAAO,CAAC,KAAK,CAAC,MAAM;IAChE,MAAM,EAAEC,GAAG,EAAE,GAAGF;IAEhB,OAAO,WAAP,GACI,oBAACG,SAAOA,MAAAA,WAAAA,GACJ,oBAACC,SAAOA,MAAEF,AAAwB,cAAxBA,IAAI,IAAI,CAAC,UAAU,GAAiB,WAAZ,GAAY,oBAACG,gBAAOA,QAAAA,WAAAA,GAAM,oBAACC,gCAASA,QAAAA,WAAAA,GACtE,oBAACC,SAAOA;QAAC,MAAM;OAAOL,IAAI,IAAI,CAAC,UAAU;AAGrD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const RowType: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
+
export declare const RowIcon: import("@emotion/styled").StyledComponent<{
|
|
6
|
+
theme?: import("@emotion/react").Theme;
|
|
7
|
+
as?: React.ElementType;
|
|
8
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
+
export declare const RowText: import("@emotion/styled").StyledComponent<import("@webiny/admin-ui").TextProps & {
|
|
10
|
+
theme?: import("@emotion/react").Theme;
|
|
11
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
|
+
import { Text } from "@webiny/admin-ui";
|
|
3
|
+
const RowType = styled("div")`
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
`;
|
|
7
|
+
const RowIcon = styled("div")`
|
|
8
|
+
margin-right: 8px;
|
|
9
|
+
height: 24px;
|
|
10
|
+
`;
|
|
11
|
+
const RowText = styled(Text)`
|
|
12
|
+
white-space: nowrap;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
text-overflow: ellipsis;
|
|
15
|
+
`;
|
|
16
|
+
export { RowIcon, RowText, RowType };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=CellActionType.styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/components/Cells/CellType/CellActionType.styled.js","sources":["../../../../../src/presentation/components/Cells/CellType/CellActionType.styled.tsx"],"sourcesContent":["import styled from \"@emotion/styled\";\nimport { Text } from \"@webiny/admin-ui\";\n\nexport const RowType = styled(\"div\")`\n display: flex;\n align-items: center;\n`;\n\nexport const RowIcon = styled(\"div\")`\n margin-right: 8px;\n height: 24px;\n`;\n\nexport const RowText = styled(Text)`\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n"],"names":["RowType","styled","RowIcon","RowText","Text"],"mappings":";;AAGO,MAAMA,UAAUC,OAAO,MAAM,CAAC;;;AAGrC,CAAC;AAEM,MAAMC,UAAUD,OAAO,MAAM,CAAC;;;AAGrC,CAAC;AAEM,MAAME,UAAUF,OAAOG,KAAK,CAAC;;;;AAIpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CellActionType.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CellActionType.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const EmptyWrapper: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
+
export declare const EmptyOuter: import("@emotion/styled").StyledComponent<{
|
|
6
|
+
theme?: import("@emotion/react").Theme;
|
|
7
|
+
as?: React.ElementType;
|
|
8
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
|
+
const EmptyWrapper = styled("div")`
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: calc(100% - 95px);
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
`;
|
|
9
|
+
const EmptyOuter = styled("div")`
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
align-items: center;
|
|
13
|
+
`;
|
|
14
|
+
export { EmptyOuter, EmptyWrapper };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=Empty.styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/components/Empty/Empty.styled.js","sources":["../../../../src/presentation/components/Empty/Empty.styled.tsx"],"sourcesContent":["import styled from \"@emotion/styled\";\n\nexport const EmptyWrapper = styled(\"div\")`\n width: 100%;\n height: calc(100% - 95px);\n display: flex;\n justify-content: center;\n align-items: center;\n`;\n\nexport const EmptyOuter = styled(\"div\")`\n display: flex;\n flex-direction: column;\n align-items: center;\n`;\n"],"names":["EmptyWrapper","styled","EmptyOuter"],"mappings":";AAEO,MAAMA,eAAeC,OAAO,MAAM,CAAC;;;;;;AAM1C,CAAC;AAEM,MAAMC,aAAaD,OAAO,MAAM,CAAC;;;;AAIxC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { Skeleton } from "@webiny/admin-ui";
|
|
3
|
+
import { Name } from "./Title.styled.js";
|
|
4
|
+
const Title = ({ title })=>/*#__PURE__*/ react.createElement(Name, {
|
|
5
|
+
level: 6,
|
|
6
|
+
as: "h1"
|
|
7
|
+
}, title || /*#__PURE__*/ react.createElement(Skeleton, null));
|
|
8
|
+
export { Title };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=Title.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/components/Title/Title.js","sources":["../../../../src/presentation/components/Title/Title.tsx"],"sourcesContent":["import React from \"react\";\nimport { Skeleton } from \"@webiny/admin-ui\";\nimport { Name } from \"./Title.styled.js\";\n\nexport interface TitleProps {\n title?: string;\n}\n\nexport const Title = ({ title }: TitleProps) => {\n return (\n <Name level={6} as={\"h1\"}>\n {title || <Skeleton />}\n </Name>\n );\n};\n"],"names":["Title","title","Name","Skeleton"],"mappings":";;;AAQO,MAAMA,QAAQ,CAAC,EAAEC,KAAK,EAAc,GAChC,WAAP,GACI,oBAACC,MAAIA;QAAC,OAAO;QAAG,IAAI;OACfD,SAAS,WAATA,GAAS,oBAACE,UAAQA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
|
+
import { Heading } from "@webiny/admin-ui";
|
|
3
|
+
const Name = styled(Heading)`
|
|
4
|
+
color: var(--mdc-theme-text-primary-on-background);
|
|
5
|
+
padding-left: 8px;
|
|
6
|
+
line-height: 48px;
|
|
7
|
+
white-space: nowrap;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
text-overflow: ellipsis;
|
|
10
|
+
`;
|
|
11
|
+
export { Name };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=Title.styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/components/Title/Title.styled.js","sources":["../../../../src/presentation/components/Title/Title.styled.tsx"],"sourcesContent":["import styled from \"@emotion/styled\";\nimport { Heading } from \"@webiny/admin-ui\";\n\nexport const Name = styled(Heading)`\n color: var(--mdc-theme-text-primary-on-background);\n padding-left: 8px;\n line-height: 48px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n"],"names":["Name","styled","Heading"],"mappings":";;AAGO,MAAMA,OAAOC,OAAOC,QAAQ,CAAC;;;;;;;AAOpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Title.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Title.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./list/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./list/index.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AcoConfig, type RecordActionConfig } from "@webiny/app-aco";
|
|
3
|
+
export type { RecordActionConfig as EntryActionConfig };
|
|
4
|
+
type EntryActionProps = React.ComponentProps<typeof AcoConfig.Record.Action>;
|
|
5
|
+
declare const BaseEntryAction: (props: EntryActionProps) => React.JSX.Element;
|
|
6
|
+
export declare const EntryAction: typeof BaseEntryAction & {
|
|
7
|
+
OptionsMenuItem: (props: import("@webiny/app-admin/components").OptionsMenuItemProps) => React.JSX.Element;
|
|
8
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { CompositionScope } from "@webiny/react-composition";
|
|
3
|
+
import { AcoConfig } from "@webiny/app-aco";
|
|
4
|
+
const { Record: Record } = AcoConfig;
|
|
5
|
+
const BaseEntryAction = (props)=>/*#__PURE__*/ react.createElement(CompositionScope, {
|
|
6
|
+
name: "scheduler"
|
|
7
|
+
}, /*#__PURE__*/ react.createElement(Record.Action, props));
|
|
8
|
+
const EntryAction = Object.assign(BaseEntryAction, {
|
|
9
|
+
OptionsMenuItem: Record.Action.OptionsMenuItem
|
|
10
|
+
});
|
|
11
|
+
export { EntryAction };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=EntryAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/configs/list/Browser/EntryAction.js","sources":["../../../../../src/presentation/configs/list/Browser/EntryAction.tsx"],"sourcesContent":["import React from \"react\";\nimport { CompositionScope } from \"@webiny/react-composition\";\nimport { AcoConfig, type RecordActionConfig } from \"@webiny/app-aco\";\n\nconst { Record } = AcoConfig;\n\nexport type { RecordActionConfig as EntryActionConfig };\n\ntype EntryActionProps = React.ComponentProps<typeof AcoConfig.Record.Action>;\n\nconst BaseEntryAction = (props: EntryActionProps) => {\n return (\n <CompositionScope name={\"scheduler\"}>\n <Record.Action {...props} />\n </CompositionScope>\n );\n};\n\nexport const EntryAction = Object.assign(BaseEntryAction, {\n OptionsMenuItem: Record.Action.OptionsMenuItem\n});\n"],"names":["Record","AcoConfig","BaseEntryAction","props","CompositionScope","EntryAction","Object"],"mappings":";;;AAIA,MAAM,EAAEA,QAAAA,MAAM,EAAE,GAAGC;AAMnB,MAAMC,kBAAkB,CAACC,QACd,WAAP,GACI,oBAACC,kBAAgBA;QAAC,MAAM;qBACpB,oBAACJ,OAAO,MAAM,EAAKG;AAKxB,MAAME,cAAcC,OAAO,MAAM,CAACJ,iBAAiB;IACtD,iBAAiBF,OAAO,MAAM,CAAC,eAAe;AAClD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AcoConfig, type TableColumnConfig as ColumnConfig } from "@webiny/app-aco";
|
|
3
|
+
import type { SchedulerEntryTableRow } from "../../../../../types.js";
|
|
4
|
+
export type { ColumnConfig };
|
|
5
|
+
type ColumnProps = React.ComponentProps<typeof AcoConfig.Table.Column>;
|
|
6
|
+
declare const BaseColumn: (props: ColumnProps) => React.JSX.Element;
|
|
7
|
+
export declare const Column: typeof BaseColumn & {
|
|
8
|
+
useTableRow: {
|
|
9
|
+
(): import("@webiny/app-admin/components").TableRowContextData<SchedulerEntryTableRow>;
|
|
10
|
+
<TUserRow>(): import("@webiny/app-admin/components").TableRowContextData<SchedulerEntryTableRow & {
|
|
11
|
+
data: TUserRow;
|
|
12
|
+
}>;
|
|
13
|
+
};
|
|
14
|
+
isFolderRow: (row: import("@webiny/app-aco").TableRow) => row is import("@webiny/app-aco").FolderTableRow;
|
|
15
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { AcoConfig } from "@webiny/app-aco";
|
|
3
|
+
const { Table: Table } = AcoConfig;
|
|
4
|
+
const BaseColumn = (props)=>/*#__PURE__*/ react.createElement(Table.Column, props);
|
|
5
|
+
const Column = Object.assign(BaseColumn, {
|
|
6
|
+
useTableRow: Table.Column.createUseTableRow(),
|
|
7
|
+
isFolderRow: Table.Column.isFolderRow
|
|
8
|
+
});
|
|
9
|
+
export { Column };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=Column.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/configs/list/Browser/Table/Column.js","sources":["../../../../../../src/presentation/configs/list/Browser/Table/Column.tsx"],"sourcesContent":["import React from \"react\";\nimport { AcoConfig, type TableColumnConfig as ColumnConfig } from \"@webiny/app-aco\";\nimport type { SchedulerEntryTableRow } from \"~/types.js\";\n\nconst { Table } = AcoConfig;\n\nexport type { ColumnConfig };\n\ntype ColumnProps = React.ComponentProps<typeof AcoConfig.Table.Column>;\n\nconst BaseColumn = (props: ColumnProps) => {\n return <Table.Column {...props} />;\n};\n\nexport const Column = Object.assign(BaseColumn, {\n useTableRow: Table.Column.createUseTableRow<SchedulerEntryTableRow>(),\n isFolderRow: Table.Column.isFolderRow\n});\n"],"names":["Table","AcoConfig","BaseColumn","props","Column","Object"],"mappings":";;AAIA,MAAM,EAAEA,OAAAA,KAAK,EAAE,GAAGC;AAMlB,MAAMC,aAAa,CAACC,QACT,WAAP,GAAO,oBAACH,MAAM,MAAM,EAAKG;AAGtB,MAAMC,SAASC,OAAO,MAAM,CAACH,YAAY;IAC5C,aAAaF,MAAM,MAAM,CAAC,iBAAiB;IAC3C,aAAaA,MAAM,MAAM,CAAC,WAAW;AACzC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AcoConfig, type TableSortingConfig as SortingConfig } from "@webiny/app-aco";
|
|
3
|
+
export type { SortingConfig };
|
|
4
|
+
type SortingProps = React.ComponentProps<typeof AcoConfig.Table.Sorting>;
|
|
5
|
+
export declare const Sorting: (props: SortingProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/configs/list/Browser/Table/Sorting.js","sources":["../../../../../../src/presentation/configs/list/Browser/Table/Sorting.tsx"],"sourcesContent":["import React from \"react\";\nimport { AcoConfig, type TableSortingConfig as SortingConfig } from \"@webiny/app-aco\";\n\nconst { Table } = AcoConfig;\n\nexport type { SortingConfig };\n\ntype SortingProps = React.ComponentProps<typeof AcoConfig.Table.Sorting>;\n\nexport const Sorting = (props: SortingProps) => {\n return <Table.Sorting {...props} />;\n};\n"],"names":["Table","AcoConfig","Sorting","props"],"mappings":";;AAGA,MAAM,EAAEA,OAAAA,KAAK,EAAE,GAAGC;AAMX,MAAMC,UAAU,CAACC,QACb,WAAP,GAAO,oBAACH,MAAM,OAAO,EAAKG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ColumnConfig } from "./Column.js";
|
|
2
|
+
import type { SortingConfig } from "./Sorting.js";
|
|
3
|
+
import { Sorting } from "./Sorting.js";
|
|
4
|
+
export interface TableConfig {
|
|
5
|
+
columns: ColumnConfig[];
|
|
6
|
+
sorting: SortingConfig[];
|
|
7
|
+
}
|
|
8
|
+
export declare const Table: {
|
|
9
|
+
Column: ((props: import("@webiny/app-admin/config/table/Column.js").ColumnProps) => import("react").JSX.Element) & {
|
|
10
|
+
useTableRow: {
|
|
11
|
+
(): import("@webiny/app-admin/index.js").TableRowContextData<import("../../../../../types.js").SchedulerEntryTableRow>;
|
|
12
|
+
<TUserRow>(): import("@webiny/app-admin/index.js").TableRowContextData<import("../../../../../types.js").SchedulerEntryTableRow & {
|
|
13
|
+
data: TUserRow;
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
16
|
+
isFolderRow: (row: import("@webiny/app-admin/index.js").TableRow) => row is import("@webiny/app-aco/table.types.js").FolderTableRow;
|
|
17
|
+
};
|
|
18
|
+
Sorting: typeof Sorting;
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/configs/list/Browser/Table/index.js","sources":["../../../../../../src/presentation/configs/list/Browser/Table/index.ts"],"sourcesContent":["import type { ColumnConfig } from \"./Column.js\";\nimport { Column } from \"./Column.js\";\nimport type { SortingConfig } from \"./Sorting.js\";\nimport { Sorting } from \"./Sorting.js\";\n\nexport interface TableConfig {\n columns: ColumnConfig[];\n sorting: SortingConfig[];\n}\n\nexport const Table = {\n Column,\n Sorting\n};\n"],"names":["Table","Column","Sorting"],"mappings":";;AAUO,MAAMA,QAAQ;IACjBC,QAAMA;IACNC,SAAOA;AACX"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { EntryActionConfig } from "./EntryAction.js";
|
|
2
|
+
import type { TableConfig } from "./Table/index.js";
|
|
3
|
+
export interface BrowserConfig {
|
|
4
|
+
entryActions: EntryActionConfig[];
|
|
5
|
+
table: TableConfig;
|
|
6
|
+
}
|
|
7
|
+
export declare const Browser: {
|
|
8
|
+
EntryAction: ((props: import("@webiny/app-aco/config/record/Action.js").ActionProps) => import("react").JSX.Element) & {
|
|
9
|
+
OptionsMenuItem: (props: import("@webiny/app-admin/index.js").OptionsMenuItemProps) => React.JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
Table: {
|
|
12
|
+
Column: ((props: import("@webiny/app-admin/config/table/Column.js").ColumnProps) => import("react").JSX.Element) & {
|
|
13
|
+
useTableRow: {
|
|
14
|
+
(): import("@webiny/app-admin/index.js").TableRowContextData<import("../../../../types.js").SchedulerEntryTableRow>;
|
|
15
|
+
<TUserRow>(): import("@webiny/app-admin/index.js").TableRowContextData<import("../../../../types.js").SchedulerEntryTableRow & {
|
|
16
|
+
data: TUserRow;
|
|
17
|
+
}>;
|
|
18
|
+
};
|
|
19
|
+
isFolderRow: (row: import("@webiny/app-admin/index.js").TableRow) => row is import("@webiny/app-aco/table.types.js").FolderTableRow;
|
|
20
|
+
};
|
|
21
|
+
Sorting: typeof import("./Table/Sorting.js").Sorting;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/configs/list/Browser/index.js","sources":["../../../../../src/presentation/configs/list/Browser/index.ts"],"sourcesContent":["import type { EntryActionConfig } from \"./EntryAction.js\";\nimport { EntryAction } from \"./EntryAction.js\";\nimport type { TableConfig } from \"./Table/index.js\";\nimport { Table } from \"./Table/index.js\";\n\nexport interface BrowserConfig {\n entryActions: EntryActionConfig[];\n table: TableConfig;\n}\n\nexport const Browser = {\n EntryAction,\n Table\n};\n"],"names":["Browser","EntryAction","Table"],"mappings":";;AAUO,MAAMA,UAAU;IACnBC,aAAWA;IACXC,OAAKA;AACT"}
|