andoncloud-dashboard-toolkit 1.5.45 → 1.5.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +8182 -12
- package/dist/index.js +6888 -16
- package/dist/index.js.map +1 -1
- package/package.json +7 -10
- package/dist/assets/bg-pattern.svg +0 -90
- package/dist/assets/drag-icon.svg +0 -3
- package/dist/assets/resize-icon.svg +0 -3
- package/dist/components/ConfirmTooltip/ConfirmTooltip.cy.d.ts +0 -1
- package/dist/components/ConfirmTooltip/index.d.ts +0 -13
- package/dist/components/ConfirmTooltip/styles.d.ts +0 -3
- package/dist/components/DashboardFilters/AccessDeniedModal/AccessDeniedModal.cy.d.ts +0 -1
- package/dist/components/DashboardFilters/AccessDeniedModal/index.d.ts +0 -14
- package/dist/components/DashboardFilters/AccessDeniedModal/styles.d.ts +0 -3
- package/dist/components/DashboardFilters/DashboardFilters.cy.d.ts +0 -1
- package/dist/components/DashboardFilters/DateRangePicker/DateRangePicker.cy.d.ts +0 -1
- package/dist/components/DashboardFilters/DateRangePicker/index.d.ts +0 -18
- package/dist/components/DashboardFilters/DateRangePicker/styles.d.ts +0 -3
- package/dist/components/DashboardFilters/DayTypeSelector/DayTypeSelector.cy.d.ts +0 -1
- package/dist/components/DashboardFilters/DayTypeSelector/index.d.ts +0 -8
- package/dist/components/DashboardFilters/DayTypeSelector/styles.d.ts +0 -3
- package/dist/components/DashboardFilters/PeriodList/PeriodList.cy.d.ts +0 -1
- package/dist/components/DashboardFilters/PeriodList/index.d.ts +0 -13
- package/dist/components/DashboardFilters/PeriodList/styles.d.ts +0 -3
- package/dist/components/DashboardFilters/ShiftSelector/ShiftSelector.cy.d.ts +0 -1
- package/dist/components/DashboardFilters/ShiftSelector/index.d.ts +0 -9
- package/dist/components/DashboardFilters/ShiftSelector/styles.d.ts +0 -3
- package/dist/components/DashboardFilters/constants.d.ts +0 -2
- package/dist/components/DashboardFilters/index.d.ts +0 -4
- package/dist/components/DashboardFilters/periods.cy.d.ts +0 -1
- package/dist/components/DashboardFilters/styles.d.ts +0 -3
- package/dist/components/DashboardFilters/types.d.ts +0 -36
- package/dist/components/DashboardFilters/useDashboardFilters.d.ts +0 -13
- package/dist/components/MetricCard/index.d.ts +0 -14
- package/dist/components/MetricCard/styles.d.ts +0 -15
- package/dist/components/SortableSelect/index.d.ts +0 -14
- package/dist/components/WidgetCard/ErrorBoundary.cy.d.ts +0 -1
- package/dist/components/WidgetCard/ErrorBoundary.d.ts +0 -6
- package/dist/components/WidgetCard/WidgetCard.cy.d.ts +0 -1
- package/dist/components/WidgetCard/errorBoundaryStyles.d.ts +0 -2
- package/dist/components/WidgetCard/index.d.ts +0 -7
- package/dist/components/WidgetCard/styles.d.ts +0 -3
- package/dist/components/index.d.ts +0 -7
- package/dist/graphql-sdk.d.ts +0 -7901
- package/dist/graphql-ws.d.ts +0 -2
- package/dist/helpers/aggregation.cy.d.ts +0 -1
- package/dist/helpers/aggregation.d.ts +0 -8
- package/dist/helpers/filters.d.ts +0 -2
- package/dist/helpers/periods.d.ts +0 -8
- package/dist/helpers/sdk.d.ts +0 -75
- package/dist/helpers/shifts.cy.d.ts +0 -1
- package/dist/helpers/shifts.d.ts +0 -11
- package/dist/helpers/time.cy.d.ts +0 -1
- package/dist/helpers/time.d.ts +0 -2
- package/dist/hooks/useGqlClients.d.ts +0 -8
- package/dist/locales/index.d.ts +0 -135
- package/dist/operations/generated/index.d.ts +0 -3
- package/dist/operations/generated/mutations/index.d.ts +0 -29
- package/dist/operations/generated/queries/index.d.ts +0 -34
- package/dist/operations/generated/subscriptions/index.d.ts +0 -1
- package/dist/types.d.ts +0 -55
- package/dist/utils/actioncable-client.cy.d.ts +0 -1
- package/dist/utils/actioncable-client.d.ts +0 -17
- package/dist/utils/graphql-ws-client.cy.d.ts +0 -1
- package/dist/utils/graphql-ws-client.d.ts +0 -20
- package/dist/version.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,24 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "andoncloud-dashboard-toolkit",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.48",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "Made with create-react-library",
|
|
5
6
|
"author": "",
|
|
6
7
|
"license": "MIT",
|
|
7
8
|
"main": "dist/index.js",
|
|
8
|
-
"module": "dist/index.js",
|
|
9
|
-
"source": "src/index.tsx",
|
|
10
9
|
"exports": {
|
|
11
10
|
"types": "./dist/index.d.ts",
|
|
12
11
|
"default": "./dist/index.js"
|
|
13
12
|
},
|
|
14
13
|
"types": "./dist/index.d.ts",
|
|
15
|
-
"engines": {
|
|
16
|
-
"node": ">=14",
|
|
17
|
-
"npm": ">=7"
|
|
18
|
-
},
|
|
19
14
|
"scripts": {
|
|
20
|
-
"build": "library-scripts build
|
|
21
|
-
"build:watch": "library-scripts build-watch
|
|
15
|
+
"build": "library-scripts build",
|
|
16
|
+
"build:watch": "library-scripts build-watch",
|
|
22
17
|
"generate": "run-s generate-operations generate-sdk prettier",
|
|
23
18
|
"generate-operations": "gqlg --schemaFilePath ./graphql-schema/schema.graphql --destDirPath ./src/operations/generated",
|
|
24
19
|
"generate-sdk": "graphql-codegen",
|
|
@@ -44,6 +39,7 @@
|
|
|
44
39
|
"react-i18next": ">=12.0.0"
|
|
45
40
|
},
|
|
46
41
|
"devDependencies": {
|
|
42
|
+
"@craco/craco": "^7.1.0",
|
|
47
43
|
"@emotion/react": "^11.14.0",
|
|
48
44
|
"@emotion/styled": "^11.14.1",
|
|
49
45
|
"@graphql-codegen/cli": "^6.2.1",
|
|
@@ -65,7 +61,7 @@
|
|
|
65
61
|
"@types/react-dom": "^19.2.3",
|
|
66
62
|
"@types/react-text-truncate": "^0.19.0",
|
|
67
63
|
"actioncable": "^5.2.8",
|
|
68
|
-
"andoncloud-library-scripts": "^
|
|
64
|
+
"andoncloud-library-scripts": "^2.0.0",
|
|
69
65
|
"andoncloud-sdk": "^1.7.22",
|
|
70
66
|
"copyfiles": "^2.4.1",
|
|
71
67
|
"cross-env": "^10.1.0",
|
|
@@ -89,6 +85,7 @@
|
|
|
89
85
|
"react-i18next": "^16.6.2",
|
|
90
86
|
"react-router-dom": "^7.13.1",
|
|
91
87
|
"react-scripts": "^5.0.1",
|
|
88
|
+
"tsdown": "^0.21.4",
|
|
92
89
|
"typescript": "^5.9.3",
|
|
93
90
|
"webpack-cli": "^7.0.2",
|
|
94
91
|
"webpack-dev-server": "^5.2.3"
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
<svg width="297" height="403" viewBox="0 0 297 403" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M938.46 -10H921.49L-10 921.49V938.46L938.46 -10Z" fill="black" fill-opacity="0.1"/>
|
|
3
|
-
<path d="M904.52 -10H887.54L-10 887.54V904.52L904.52 -10Z" fill="black" fill-opacity="0.1"/>
|
|
4
|
-
<path d="M870.58 -10H853.6L-10 853.6V870.58L870.58 -10Z" fill="black" fill-opacity="0.1"/>
|
|
5
|
-
<path d="M1006.34 -10H989.37L-10 989.37V1006.34L1006.34 -10Z" fill="black" fill-opacity="0.1"/>
|
|
6
|
-
<path d="M972.4 -10H955.43L-10 955.43V972.4L972.4 -10Z" fill="black" fill-opacity="0.1"/>
|
|
7
|
-
<path d="M836.63 -10H819.66L-10 819.66V836.63L836.63 -10Z" fill="black" fill-opacity="0.1"/>
|
|
8
|
-
<path d="M768.75 -10H751.78L-10 751.78V768.75L768.75 -10Z" fill="black" fill-opacity="0.1"/>
|
|
9
|
-
<path d="M1040.28 -10H1023.31L-10 1023.31V1040.28L1040.28 -10Z" fill="black" fill-opacity="0.1"/>
|
|
10
|
-
<path d="M802.69 -10H785.72L-10 785.72V802.69L802.69 -10Z" fill="black" fill-opacity="0.1"/>
|
|
11
|
-
<path d="M734.81 -10H717.84L-10 717.84V734.81L734.81 -10Z" fill="black" fill-opacity="0.1"/>
|
|
12
|
-
<path d="M1447.57 -10H1430.6L350.6 1070H367.57L1447.57 -10Z" fill="black" fill-opacity="0.1"/>
|
|
13
|
-
<path d="M1379.69 -10H1362.72L282.72 1070H299.69L1379.69 -10Z" fill="black" fill-opacity="0.1"/>
|
|
14
|
-
<path d="M1311.81 -10H1294.84L214.84 1070H231.81L1311.81 -10Z" fill="black" fill-opacity="0.1"/>
|
|
15
|
-
<path d="M1345.75 -10H1328.78L248.78 1070H265.75L1345.75 -10Z" fill="black" fill-opacity="0.1"/>
|
|
16
|
-
<path d="M700.87 -10H683.9L-10 683.9V700.87L700.87 -10Z" fill="black" fill-opacity="0.1"/>
|
|
17
|
-
<path d="M1413.63 -10H1396.66L316.66 1070H333.63L1413.63 -10Z" fill="black" fill-opacity="0.1"/>
|
|
18
|
-
<path d="M1142.1 -10H1125.13L45.13 1070H62.1L1142.1 -10Z" fill="black" fill-opacity="0.1"/>
|
|
19
|
-
<path d="M1108.16 -10H1091.19L11.19 1070H28.16L1108.16 -10Z" fill="black" fill-opacity="0.1"/>
|
|
20
|
-
<path d="M1176.04 -10H1159.07L79.07 1070H96.04L1176.04 -10Z" fill="black" fill-opacity="0.1"/>
|
|
21
|
-
<path d="M1243.93 -10H1226.96L146.96 1070H163.93L1243.93 -10Z" fill="black" fill-opacity="0.1"/>
|
|
22
|
-
<path d="M1209.99 -10H1193.02L113.02 1070H129.99L1209.99 -10Z" fill="black" fill-opacity="0.1"/>
|
|
23
|
-
<path d="M1277.87 -10H1260.9L180.9 1070H197.87L1277.87 -10Z" fill="black" fill-opacity="0.1"/>
|
|
24
|
-
<path d="M429.34 -10H412.37L-10 412.37V429.34L429.34 -10Z" fill="black" fill-opacity="0.1"/>
|
|
25
|
-
<path d="M157.81 -10H140.84L-10 140.84V157.81L157.81 -10Z" fill="black" fill-opacity="0.1"/>
|
|
26
|
-
<path d="M191.75 -10H174.78L-10 174.78V191.75L191.75 -10Z" fill="black" fill-opacity="0.1"/>
|
|
27
|
-
<path d="M123.87 -10H106.9L-10 106.9V123.87L123.87 -10Z" fill="black" fill-opacity="0.1"/>
|
|
28
|
-
<path d="M225.69 -10H208.72L-10 208.72V225.69L225.69 -10Z" fill="black" fill-opacity="0.1"/>
|
|
29
|
-
<path d="M259.63 -10H242.66L-10 242.66V259.63L259.63 -10Z" fill="black" fill-opacity="0.1"/>
|
|
30
|
-
<path d="M1057.25 -10L-10 1057.25V1070H-5.78L1074.22 -10H1057.25Z" fill="black" fill-opacity="0.1"/>
|
|
31
|
-
<path d="M293.57 -10H276.61L-10 276.61V293.57L293.57 -10Z" fill="black" fill-opacity="0.1"/>
|
|
32
|
-
<path d="M22.05 -10H5.08L-10 5.08V22.05L22.05 -10Z" fill="black" fill-opacity="0.1"/>
|
|
33
|
-
<path d="M55.99 -10H39.02L-10 39.02V55.99L55.99 -10Z" fill="black" fill-opacity="0.1"/>
|
|
34
|
-
<path d="M89.93 -10H72.96L-10 72.96V89.93L89.93 -10Z" fill="black" fill-opacity="0.1"/>
|
|
35
|
-
<path d="M1481.52 -10H1464.54L384.54 1070H401.51L1481.52 -10Z" fill="black" fill-opacity="0.1"/>
|
|
36
|
-
<path d="M565.1 -10H548.13L-10 548.13V565.1L565.1 -10Z" fill="black" fill-opacity="0.1"/>
|
|
37
|
-
<path d="M497.22 -10H480.25L-10 480.25V497.22L497.22 -10Z" fill="black" fill-opacity="0.1"/>
|
|
38
|
-
<path d="M327.52 -10H310.55L-10 310.55V327.52L327.52 -10Z" fill="black" fill-opacity="0.1"/>
|
|
39
|
-
<path d="M632.99 -10H616.02L-10 616.02V632.99L632.99 -10Z" fill="black" fill-opacity="0.1"/>
|
|
40
|
-
<path d="M599.04 -10H582.08L-10 582.08V599.04L599.04 -10Z" fill="black" fill-opacity="0.1"/>
|
|
41
|
-
<path d="M531.16 -10H514.19L-10 514.19V531.16L531.16 -10Z" fill="black" fill-opacity="0.1"/>
|
|
42
|
-
<path d="M463.28 -10H446.31L-10 446.31V463.28L463.28 -10Z" fill="black" fill-opacity="0.1"/>
|
|
43
|
-
<path d="M361.46 -10H344.49L-10 344.49V361.46L361.46 -10Z" fill="black" fill-opacity="0.1"/>
|
|
44
|
-
<path d="M395.4 -10H378.43L-10 378.43V395.4L395.4 -10Z" fill="black" fill-opacity="0.1"/>
|
|
45
|
-
<path d="M666.93 -10H649.96L-10 649.96V666.93L666.93 -10Z" fill="black" fill-opacity="0.1"/>
|
|
46
|
-
<path d="M1910 410.04V393.07L1233.07 1070H1250.04L1910 410.04Z" fill="black" fill-opacity="0.1"/>
|
|
47
|
-
<path d="M1910 342.16V325.19L1165.19 1070H1182.16L1910 342.16Z" fill="black" fill-opacity="0.1"/>
|
|
48
|
-
<path d="M1910 579.75V562.78L1402.78 1070H1419.75L1910 579.75Z" fill="black" fill-opacity="0.1"/>
|
|
49
|
-
<path d="M1910 613.69V596.72L1436.72 1070H1453.69L1910 613.69Z" fill="black" fill-opacity="0.1"/>
|
|
50
|
-
<path d="M1910 681.57V664.6L1504.6 1070H1521.57L1910 681.57Z" fill="black" fill-opacity="0.1"/>
|
|
51
|
-
<path d="M1910 647.63V630.66L1470.66 1070H1487.63L1910 647.63Z" fill="black" fill-opacity="0.1"/>
|
|
52
|
-
<path d="M1910 376.1V359.13L1199.13 1070H1216.1L1910 376.1Z" fill="black" fill-opacity="0.1"/>
|
|
53
|
-
<path d="M1910 443.98V427.01L1267.01 1070H1283.98L1910 443.98Z" fill="black" fill-opacity="0.1"/>
|
|
54
|
-
<path d="M1910 511.87V494.9L1334.9 1070H1351.87L1910 511.87Z" fill="black" fill-opacity="0.1"/>
|
|
55
|
-
<path d="M1910 715.51V698.54L1538.54 1070H1555.51L1910 715.51Z" fill="black" fill-opacity="0.1"/>
|
|
56
|
-
<path d="M1910 477.93V460.95L1300.95 1070H1317.92L1910 477.93Z" fill="black" fill-opacity="0.1"/>
|
|
57
|
-
<path d="M1910 545.81V528.84L1368.84 1070H1385.81L1910 545.81Z" fill="black" fill-opacity="0.1"/>
|
|
58
|
-
<path d="M1910 953.1V936.13L1776.13 1070H1793.1L1910 953.1Z" fill="black" fill-opacity="0.1"/>
|
|
59
|
-
<path d="M1910 919.16V902.19L1742.19 1070H1759.16L1910 919.16Z" fill="black" fill-opacity="0.1"/>
|
|
60
|
-
<path d="M1910 987.04V970.07L1810.07 1070H1827.04L1910 987.04Z" fill="black" fill-opacity="0.1"/>
|
|
61
|
-
<path d="M1910 749.45V732.48L1572.48 1070H1589.45L1910 749.45Z" fill="black" fill-opacity="0.1"/>
|
|
62
|
-
<path d="M1910 1054.92V1037.95L1877.95 1070H1894.92L1910 1054.92Z" fill="black" fill-opacity="0.1"/>
|
|
63
|
-
<path d="M1910 1020.98V1004.01L1844.01 1070H1860.98L1910 1020.98Z" fill="black" fill-opacity="0.1"/>
|
|
64
|
-
<path d="M1910 783.39V766.42L1606.42 1070H1623.39L1910 783.39Z" fill="black" fill-opacity="0.1"/>
|
|
65
|
-
<path d="M1910 817.34V800.37L1640.37 1070H1657.34L1910 817.34Z" fill="black" fill-opacity="0.1"/>
|
|
66
|
-
<path d="M1910 851.28V834.31L1674.31 1070H1691.28L1910 851.28Z" fill="black" fill-opacity="0.1"/>
|
|
67
|
-
<path d="M1910 885.22V868.25L1708.25 1070H1725.22L1910 885.22Z" fill="black" fill-opacity="0.1"/>
|
|
68
|
-
<path d="M1910 308.22V291.25L1131.25 1070H1148.22L1910 308.22Z" fill="black" fill-opacity="0.1"/>
|
|
69
|
-
<path d="M1719.1 -10H1702.13L622.13 1070H639.1L1719.1 -10Z" fill="black" fill-opacity="0.1"/>
|
|
70
|
-
<path d="M1753.04 -10H1736.07L656.07 1070H673.04L1753.04 -10Z" fill="black" fill-opacity="0.1"/>
|
|
71
|
-
<path d="M1820.93 -10H1803.96L723.96 1070H740.93L1820.93 -10Z" fill="black" fill-opacity="0.1"/>
|
|
72
|
-
<path d="M1786.98 -10H1770.01L690.01 1070H706.99L1786.98 -10Z" fill="black" fill-opacity="0.1"/>
|
|
73
|
-
<path d="M1854.87 -10H1837.9L757.9 1070H774.87L1854.87 -10Z" fill="black" fill-opacity="0.1"/>
|
|
74
|
-
<path d="M1685.16 -10H1668.19L588.19 1070H605.16L1685.16 -10Z" fill="black" fill-opacity="0.1"/>
|
|
75
|
-
<path d="M1583.34 -10H1566.37L486.37 1070H503.34L1583.34 -10Z" fill="black" fill-opacity="0.1"/>
|
|
76
|
-
<path d="M1549.4 -10H1532.43L452.43 1070H469.4L1549.4 -10Z" fill="black" fill-opacity="0.1"/>
|
|
77
|
-
<path d="M1651.22 -10H1634.25L554.25 1070H571.22L1651.22 -10Z" fill="black" fill-opacity="0.1"/>
|
|
78
|
-
<path d="M1617.28 -10H1600.31L520.31 1070H537.28L1617.28 -10Z" fill="black" fill-opacity="0.1"/>
|
|
79
|
-
<path d="M1910 36.69V19.72L859.72 1070H876.69L1910 36.69Z" fill="black" fill-opacity="0.1"/>
|
|
80
|
-
<path d="M1910 206.4V189.43L1029.42 1070H1046.4L1910 206.4Z" fill="black" fill-opacity="0.1"/>
|
|
81
|
-
<path d="M1910 172.46V155.48L995.48 1070H1012.46L1910 172.46Z" fill="black" fill-opacity="0.1"/>
|
|
82
|
-
<path d="M1910 240.34V223.37L1063.37 1070H1080.34L1910 240.34Z" fill="black" fill-opacity="0.1"/>
|
|
83
|
-
<path d="M1910 138.51V121.54L961.54 1070H978.51L1910 138.51Z" fill="black" fill-opacity="0.1"/>
|
|
84
|
-
<path d="M1888.81 -10H1871.84L791.84 1070H808.81L1888.81 -10Z" fill="black" fill-opacity="0.1"/>
|
|
85
|
-
<path d="M1910 274.28V257.31L1097.31 1070H1114.28L1910 274.28Z" fill="black" fill-opacity="0.1"/>
|
|
86
|
-
<path d="M1515.46 -10H1498.48L418.49 1070H435.46L1515.46 -10Z" fill="black" fill-opacity="0.1"/>
|
|
87
|
-
<path d="M1910 2.75V-10H1905.78L825.78 1070H842.75L1910 2.75Z" fill="black" fill-opacity="0.1"/>
|
|
88
|
-
<path d="M1910 70.63V53.66L893.66 1070H910.63L1910 70.63Z" fill="black" fill-opacity="0.1"/>
|
|
89
|
-
<path d="M1910 104.57V87.6L927.6 1070H944.57L1910 104.57Z" fill="black" fill-opacity="0.1"/>
|
|
90
|
-
</svg>
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M2.46147 10.5737C2.99531 11.0586 3.63181 10.6829 3.63181 10.0478V8.74325H7.26604V12.3699H5.94512C5.30862 12.3699 4.93904 13.0119 5.41813 13.5378L7.42345 15.7234C7.75197 16.0922 8.25159 16.0922 8.58011 15.7234L10.5786 13.5447C11.0645 13.0119 10.6949 12.3699 10.0516 12.3699H8.74437V8.74325H12.3649V10.0478C12.3649 10.6829 13.0083 11.0586 13.5421 10.5737L15.7254 8.57933C16.095 8.24467 16.0881 7.74609 15.7254 7.42508L13.5353 5.42393C13.0083 4.94584 12.3649 5.31465 12.3649 5.94983V7.26117H8.74437V3.62767H10.0516C10.6949 3.62767 11.0645 2.98566 10.5786 2.45293L8.57327 0.267369C8.23791 -0.101445 7.73828 -0.0809553 7.41661 0.281028L5.41813 2.46659C4.93904 2.98566 5.30862 3.62767 5.94512 3.62767H7.26604V7.26117H3.63181V5.94983C3.63181 5.31465 2.98846 4.94584 2.46831 5.42393L0.278192 7.41825C-0.0777021 7.73926 -0.105079 8.23784 0.271348 8.5725L2.46147 10.5737Z" fill="white"/>
|
|
3
|
-
</svg>
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M0.602543 3.50035C0.853628 3.50035 1.04095 3.3172 1.04095 3.0624V2.77972L0.95725 1.54551L1.87789 2.51297L3.01774 3.6596C3.10143 3.74719 3.20904 3.787 3.32462 3.787C3.59563 3.787 3.79092 3.60386 3.79092 3.33313C3.79092 3.20971 3.74309 3.10221 3.6594 3.01462L2.51557 1.87198L1.54311 0.956271L2.78658 1.03988H3.09745C3.34853 1.03988 3.53983 0.856738 3.53983 0.601932C3.53983 0.347127 3.35252 0.160004 3.09745 0.160004H0.885512C0.427183 0.160004 0.160156 0.426753 0.160156 0.884607V3.0624C0.160156 3.31322 0.347473 3.50035 0.602543 3.50035ZM4.90287 7.84H7.1148C7.57313 7.84 7.84016 7.57325 7.84016 7.1154V4.93761C7.84016 4.68678 7.64885 4.49966 7.39777 4.49966C7.14668 4.49966 6.95937 4.6828 6.95937 4.93761V5.22028L7.04306 6.4545L6.12242 5.48703L4.98257 4.34041C4.89888 4.25282 4.79127 4.21301 4.67171 4.21301C4.4007 4.21301 4.20541 4.39615 4.20541 4.66688C4.20541 4.7903 4.25323 4.90178 4.34091 4.98538L5.48474 6.12803L6.4572 7.04374L5.21373 6.96013H4.90287C4.6478 6.96013 4.46048 7.14327 4.46048 7.39808C4.46048 7.65288 4.6478 7.84 4.90287 7.84Z" fill="white"/>
|
|
3
|
-
</svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TooltipProps } from '@mui/material';
|
|
3
|
-
interface ConfirmTooltipProps extends Omit<TooltipProps, 'title'> {
|
|
4
|
-
confirmMessage: string;
|
|
5
|
-
confirmButtonText: string;
|
|
6
|
-
cancelButtonText: string;
|
|
7
|
-
onCancel: () => void;
|
|
8
|
-
onConfirm: () => void;
|
|
9
|
-
confirmButtonTestId?: string;
|
|
10
|
-
cancelButtonTestId?: string;
|
|
11
|
-
}
|
|
12
|
-
declare const ConfirmTooltip: React.FC<ConfirmTooltipProps>;
|
|
13
|
-
export default ConfirmTooltip;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AccessButton, AccessState, CooldownInfo, FeatureRequestPayload } from 'andoncloud-sdk';
|
|
3
|
-
export type AccessDeniedModalProps = {
|
|
4
|
-
open: boolean;
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
accessState: AccessState;
|
|
7
|
-
buttons: AccessButton[];
|
|
8
|
-
daysSinceExpiry: number | null;
|
|
9
|
-
cooldownInfo: CooldownInfo;
|
|
10
|
-
workplaceId?: string;
|
|
11
|
-
onFeatureRequest?: (payload: FeatureRequestPayload) => Promise<boolean>;
|
|
12
|
-
};
|
|
13
|
-
declare const AccessDeniedModal: React.FC<AccessDeniedModalProps>;
|
|
14
|
-
export default AccessDeniedModal;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import 'dayjs/locale/pl';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { DayType, Shift } from '../../../graphql-sdk';
|
|
4
|
-
import type { DateRange, PeriodDefinition, PeriodId } from '../types';
|
|
5
|
-
export type DateRangePickerProps = {
|
|
6
|
-
dateRange: DateRange;
|
|
7
|
-
dayType: DayType;
|
|
8
|
-
shifts: Shift[];
|
|
9
|
-
selectedShiftIds: string[];
|
|
10
|
-
hasAccess: boolean;
|
|
11
|
-
selectedPeriodId?: PeriodId;
|
|
12
|
-
onDayTypeChange: (dayType: DayType) => void;
|
|
13
|
-
onDateRangeChange: (dateRange: DateRange) => void;
|
|
14
|
-
onPeriodSelect: (period: PeriodDefinition, dateRange: DateRange) => void;
|
|
15
|
-
onAccessDenied: () => void;
|
|
16
|
-
};
|
|
17
|
-
declare const DateRangePicker: React.FC<DateRangePickerProps>;
|
|
18
|
-
export default DateRangePicker;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DayType } from '../../../graphql-sdk';
|
|
3
|
-
export type DayTypeSelectorProps = {
|
|
4
|
-
value: DayType;
|
|
5
|
-
onChange: (value: DayType) => void;
|
|
6
|
-
};
|
|
7
|
-
declare const DayTypeSelector: React.FC<DayTypeSelectorProps>;
|
|
8
|
-
export default DayTypeSelector;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DayType, Shift } from '../../../graphql-sdk';
|
|
3
|
-
import type { DateRange, PeriodDefinition, PeriodId } from '../types';
|
|
4
|
-
export type PeriodListProps = {
|
|
5
|
-
dayType: DayType;
|
|
6
|
-
shifts: Shift[];
|
|
7
|
-
selectedShiftIds: string[];
|
|
8
|
-
selectedPeriodId?: PeriodId;
|
|
9
|
-
hasAccess: boolean;
|
|
10
|
-
onPeriodSelect: (period: PeriodDefinition, dateRange: DateRange) => void;
|
|
11
|
-
};
|
|
12
|
-
declare const PeriodList: React.FC<PeriodListProps>;
|
|
13
|
-
export default PeriodList;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Shift } from '../../../graphql-sdk';
|
|
3
|
-
export type ShiftSelectorProps = {
|
|
4
|
-
shifts: Shift[];
|
|
5
|
-
selectedShiftIds: string[];
|
|
6
|
-
onChange: (shiftIds: string[]) => void;
|
|
7
|
-
};
|
|
8
|
-
declare const ShiftSelector: React.FC<ShiftSelectorProps>;
|
|
9
|
-
export default ShiftSelector;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { FeatureRequestPayload } from 'andoncloud-sdk';
|
|
2
|
-
import type { DayType, Shift } from '../../graphql-sdk';
|
|
3
|
-
export type DateRange = {
|
|
4
|
-
from: string;
|
|
5
|
-
to: string;
|
|
6
|
-
};
|
|
7
|
-
export type CalendarPeriodId = 'today' | 'yesterday' | 'last_7_days' | 'last_14_days' | 'last_30_days' | 'last_90_days' | 'last_180_days' | 'last_365_days' | 'current_week' | 'current_month' | 'current_quarter' | 'current_year' | 'previous_week' | 'previous_month' | 'previous_quarter' | 'previous_year' | 'last_2_weeks' | 'last_4_weeks' | 'last_8_weeks' | 'last_12_weeks' | 'last_3_months' | 'last_6_months' | 'last_12_months';
|
|
8
|
-
export type ShiftPeriodId = 'current_shift' | 'last_shift';
|
|
9
|
-
export type WeekPeriodId = `week_${number}`;
|
|
10
|
-
export type PeriodId = CalendarPeriodId | ShiftPeriodId | WeekPeriodId;
|
|
11
|
-
export type FilterValues = {
|
|
12
|
-
dayType: DayType;
|
|
13
|
-
selectedPeriodId?: PeriodId;
|
|
14
|
-
dateRange: DateRange;
|
|
15
|
-
shiftIds: string[];
|
|
16
|
-
};
|
|
17
|
-
export type DashboardFiltersProps = {
|
|
18
|
-
initialValues?: Partial<FilterValues>;
|
|
19
|
-
onChange: (values: FilterValues) => void;
|
|
20
|
-
shifts: Shift[];
|
|
21
|
-
onFeatureRequest?: (payload: FeatureRequestPayload) => Promise<boolean>;
|
|
22
|
-
};
|
|
23
|
-
export type PeriodCategory = 'shift_based' | 'rolling' | 'relative_days' | 'previous' | 'current' | 'calendar_weeks' | 'fiscal' | 'weeks';
|
|
24
|
-
export type CalculateContext = {
|
|
25
|
-
dayType: DayType;
|
|
26
|
-
shifts: Shift[];
|
|
27
|
-
selectedShiftIds: string[];
|
|
28
|
-
};
|
|
29
|
-
export type PeriodDefinition = {
|
|
30
|
-
id: PeriodId;
|
|
31
|
-
labelKey: string;
|
|
32
|
-
labelParams?: Record<string, string | number>;
|
|
33
|
-
needAccess: boolean;
|
|
34
|
-
category: PeriodCategory;
|
|
35
|
-
calculate: (ctx: CalculateContext) => DateRange;
|
|
36
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type Shift, DayType } from '../../graphql-sdk';
|
|
2
|
-
import type { DateRange, FilterValues, PeriodDefinition, PeriodId } from './types';
|
|
3
|
-
export type DashboardFiltersHandlers = {
|
|
4
|
-
handleDayTypeChange: (dayType: DayType) => void;
|
|
5
|
-
handleShiftChange: (shiftIds: string[]) => void;
|
|
6
|
-
handleDateRangeChange: (dateRange: DateRange) => void;
|
|
7
|
-
handlePeriodSelect: (period: PeriodDefinition, dateRange: DateRange) => void;
|
|
8
|
-
};
|
|
9
|
-
export declare const useDashboardFilters: (savedFilters: FilterValues | undefined, shifts: Shift[], onChange: (values: FilterValues) => void) => {
|
|
10
|
-
filterValues: FilterValues;
|
|
11
|
-
selectedPeriodId: PeriodId | undefined;
|
|
12
|
-
handlers: DashboardFiltersHandlers;
|
|
13
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CardProps } from '@mui/material';
|
|
3
|
-
import { MetricValue } from '../../graphql-sdk';
|
|
4
|
-
interface MetricCardProps extends CardProps {
|
|
5
|
-
title: string;
|
|
6
|
-
metricLabel: React.ReactNode;
|
|
7
|
-
metricValue?: MetricValue;
|
|
8
|
-
progressValue?: MetricValue;
|
|
9
|
-
extraValue?: React.ReactNode;
|
|
10
|
-
animateBackgroundColor?: boolean;
|
|
11
|
-
rounded?: boolean;
|
|
12
|
-
}
|
|
13
|
-
declare const MetricCard: React.FC<MetricCardProps>;
|
|
14
|
-
export default MetricCard;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { SxProps, Theme } from '@mui/system';
|
|
2
|
-
interface StylesProps {
|
|
3
|
-
card: {
|
|
4
|
-
rounded?: boolean;
|
|
5
|
-
};
|
|
6
|
-
cardOverlay: {
|
|
7
|
-
background: string;
|
|
8
|
-
};
|
|
9
|
-
showBgPattern: boolean;
|
|
10
|
-
backgroundColor: string;
|
|
11
|
-
animateBackgroundColor?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const hexToRgba: (hex: string, alpha?: number) => string;
|
|
14
|
-
declare const makeStyles: (props: StylesProps) => Record<string, SxProps<Theme>>;
|
|
15
|
-
export default makeStyles;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { OnChangeValue, Options } from 'react-select';
|
|
3
|
-
export interface Option {
|
|
4
|
-
label: string;
|
|
5
|
-
value: string;
|
|
6
|
-
}
|
|
7
|
-
interface SortableSelectProps {
|
|
8
|
-
placeholder: string;
|
|
9
|
-
options: Options<Option>;
|
|
10
|
-
selected: Array<Option['value']>;
|
|
11
|
-
onChange: (selected: OnChangeValue<Option['value'], true>) => void;
|
|
12
|
-
}
|
|
13
|
-
declare const SortableSelect: React.FC<SortableSelectProps>;
|
|
14
|
-
export default SortableSelect;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { WidgetCardProps as BaseWidgetCardProps } from '../../types';
|
|
3
|
-
type WidgetCardProps = Omit<BaseWidgetCardProps, 'ref'> & {
|
|
4
|
-
ref?: React.LegacyRef<HTMLDivElement>;
|
|
5
|
-
};
|
|
6
|
-
declare const WidgetCard: React.FC<WidgetCardProps>;
|
|
7
|
-
export { WidgetCard };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { default as ConfirmTooltip } from './ConfirmTooltip';
|
|
2
|
-
export { default as DashboardFilters } from './DashboardFilters';
|
|
3
|
-
export { default as MetricCard } from './MetricCard';
|
|
4
|
-
export { default as SortableSelect } from './SortableSelect';
|
|
5
|
-
export { WidgetCard } from './WidgetCard';
|
|
6
|
-
export { WidgetErrorBoundary } from './WidgetCard/ErrorBoundary';
|
|
7
|
-
export type { DateRange, FilterValues, DashboardFiltersProps, PeriodDefinition, PeriodCategory, PeriodId, CalendarPeriodId, ShiftPeriodId, WeekPeriodId, CalculateContext, } from './DashboardFilters/types';
|