andoncloud-dashboard-toolkit 1.5.48 → 1.5.50

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.
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+
3
+ const DragIcon: React.FC<React.SVGProps<SVGSVGElement>> = (props) => (
4
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
5
+ <path
6
+ 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"
7
+ fill="white"
8
+ />
9
+ </svg>
10
+ );
11
+
12
+ export default DragIcon;
@@ -0,0 +1,92 @@
1
+ const bgPattern = `data:image/svg+xml,${encodeURIComponent(`<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>`)}`;
91
+
92
+ export default bgPattern;
@@ -0,0 +1,5 @@
1
+ const resizeIcon = `data:image/svg+xml,${encodeURIComponent(`<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>`)}`;
4
+
5
+ export default resizeIcon;
package/dist/index.d.ts CHANGED
@@ -8006,7 +8006,6 @@ interface WidgetProps<WidgetData extends BaseWidgetData, WidgetSettings extends
8006
8006
  filters?: FilterValues;
8007
8007
  settings?: WidgetSettings;
8008
8008
  onSettingsChange?: (settings: WidgetSettings) => void;
8009
- onLocalesRegistered?: () => void;
8010
8009
  openSettingsModal?: boolean;
8011
8010
  onSettingsModalOpened?: () => void;
8012
8011
  onSettingsModalClosed?: () => void;
@@ -8176,7 +8175,7 @@ declare const useGqlClients: ({
8176
8175
  }: ClientsProps) => GqlClients;
8177
8176
  //#endregion
8178
8177
  //#region src/version.d.ts
8179
- declare const LIBRARY_VERSION = "1.5.48";
8178
+ declare const LIBRARY_VERSION = "1.5.50";
8180
8179
  //#endregion
8181
8180
  export { AccessRequestTypeEnum, ActualStaffingCount, ActualStaffingCountFilter, ActualStaffingCountsDocument, ActualStaffingCountsQuery, ActualStaffingCountsQueryVariables, AndonLightColor, ApplicationInfo, ApplicationInfoDocument, ApplicationInfoQuery, ApplicationInfoQueryVariables, AssignOperatorDocument, AssignOperatorInput, AssignOperatorMutation, AssignOperatorMutationVariables, AssignOperatorToWorkplaceDocument, AssignOperatorToWorkplaceMutation, AssignOperatorToWorkplaceMutationVariables, AssignOperatorToWorkplacePayload, AssignOperator_Assignment, AssignedOperator, AssignmentSummary, AvailabilityInsightsDocument, AvailabilityInsightsEntry, AvailabilityInsightsInput, AvailabilityInsightsQuery, AvailabilityInsightsQueryVariables, AvailabilityInsightsResult, AvailabilityStatus, BaseWidgetData, BaseWidgetSettings, BulkStaffingPlanInput, BulkUpsertStaffingPlansDocument, BulkUpsertStaffingPlansMutation, BulkUpsertStaffingPlansMutationVariables, BulkUpsertStaffingPlansPayload, type CalculateContext, type CalendarPeriodId, CompanyConfig, CompanyConfigDocument, CompanyConfigQuery, CompanyConfigQueryVariables, ConfirmTooltip, Counter, CounterDirectoriesDocument, CounterDirectoriesQuery, CounterDirectoriesQueryVariables, CounterDirectory, CounterDirectoryFilter, CounterFilter, CounterKindEnum, CountersDocument, CountersQuery, CountersQueryVariables, CreateDashboardDocument, CreateDashboardMutation, CreateDashboardMutationVariables, CreateDashboardPayload, CreateOrderDocument, CreateOrderMutation, CreateOrderMutationVariables, CreateOrderPayload, CreateProductDocument, CreateProductMutation, CreateProductMutationVariables, CreateProductPayload, CreateStaffingPlanDocument, CreateStaffingPlanMutation, CreateStaffingPlanMutationVariables, CreateStaffingPlanPayload, CreateStatusChangeDocument, CreateStatusChangeMutation, CreateStatusChangeMutationVariables, CreateStatusChangePayload, CreateUserPresenceDocument, CreateUserPresenceMutation, CreateUserPresenceMutationVariables, CreateUserPresencePayload, CreateWidgetDocument, CreateWidgetMutation, CreateWidgetMutationVariables, CreateWidgetPayload, CurrentUserDocument, CurrentUserQuery, CurrentUserQueryVariables, Dashboard, DashboardFilter, DashboardFilters, type DashboardFiltersProps, DashboardsDocument, DashboardsQuery, DashboardsQueryVariables, type DateRange, DayType, Department, DepartmentFilter, DepartmentsDocument, DepartmentsQuery, DepartmentsQueryVariables, DeviceConfig, Exact, type FilterValues, FloorPlan, FloorPlanFilter, FloorPlansDocument, FloorPlansQuery, FloorPlansQueryVariables, GetWorkplacePerformanceInsightsDocument, GetWorkplacePerformanceInsightsQuery, GetWorkplacePerformanceInsightsQueryVariables, GetWorkplacePerformanceInsights_Reason, GetWorkplacePerformanceInsights_Result, GqlClients, GraphqlWsClient, Incremental, InputMaybe, InsightsAggregation, Item, ListActualStaffingCountsDocument, ListActualStaffingCountsQuery, ListActualStaffingCountsQueryVariables, ListActualStaffingCounts_ActualStaffingCount, ListStaffingPlansDocument, ListStaffingPlansQuery, ListStaffingPlansQueryVariables, ListStaffingPlans_StaffingPlan, ListStatusChangesDocument, ListStatusChangesQuery, ListStatusChangesQueryVariables, ListStatusChanges_StatusChange, ListWorkOrdersDocument, ListWorkOrdersQuery, ListWorkOrdersQueryVariables, ListWorkOrders_WorkOrder, ListWorkplaceAssignmentsDocument, ListWorkplaceAssignmentsQuery, ListWorkplaceAssignmentsQueryVariables, ListWorkplaceAssignments_AssignmentSummary, ListWorkplaceAssignments_UnassignedOperator, ListWorkplaceAssignments_WorkplaceWithAssignment, ListWorkplacesDocument, ListWorkplacesQuery, ListWorkplacesQueryVariables, ListWorkplaces_Workplace, MakeEmpty, MakeMaybe, MakeOptional, Maybe, Metric, MetricCard, MetricTypeEnum, MetricUnitEnum, MetricValue, MetricValuesDocument, MetricValuesQuery, MetricValuesQueryVariables, MetricsDocument, MetricsQuery, MetricsQueryVariables, Mutation, MutationAssignOperatorToWorkplaceArgs, MutationBulkUpsertStaffingPlansArgs, MutationCreateDashboardArgs, MutationCreateOrderArgs, MutationCreateProductArgs, MutationCreateStaffingPlanArgs, MutationCreateStatusChangeArgs, MutationCreateUserPresenceArgs, MutationCreateWidgetArgs, MutationError, MutationPauseOrderExecutionArgs, MutationRemoveDashboardArgs, MutationRemoveStaffingPlanArgs, MutationRemoveUserPresenceArgs, MutationRemoveWidgetArgs, MutationRemoveWorkplaceUsersPresencesArgs, MutationRequestFeatureAccessArgs, MutationSetCounterArgs, MutationStartOrderExecutionArgs, MutationStartTrialArgs, MutationStopOrderExecutionArgs, MutationUnassignOperatorFromWorkplaceArgs, MutationUpdateDashboardArgs, MutationUpdateNotificationArgs, MutationUpdateOrderArgs, MutationUpdateOrderExecutionArgs, MutationUpdateStaffingPlanArgs, MutationUpdateStatusChangeArgs, MutationUpdateWidgetArgs, MutationUpdateWorkOrderArgs, NormalizedShift, Notification, NotificationFilter, NotificationsDocument, NotificationsQuery, NotificationsQueryVariables, Order, OrderConfig, OrderExecution, OrderExecutionConfig, OrderExecutionFilter, OrderFilter, OrderInput, OrdersDocument, OrdersExecutionsDocument, OrdersExecutionsQuery, OrdersExecutionsQueryVariables, OrdersQuery, OrdersQueryVariables, PauseOrderExecutionDocument, PauseOrderExecutionMutation, PauseOrderExecutionMutationVariables, PauseOrderExecutionPayload, Period, type PeriodCategory, type PeriodDefinition, type PeriodId, PresenceStatusEnum, Product, ProductConfig, ProductFilter, ProductInput, ProductionInsightsDocument, ProductionInsightsEntry, ProductionInsightsInput, ProductionInsightsQuery, ProductionInsightsQueryVariables, ProductionInsightsResult, ProductionMode, ProductsDocument, ProductsQuery, ProductsQueryVariables, Query, QueryActualStaffingCountsArgs, QueryAvailabilityInsightsArgs, QueryCounterDirectoriesArgs, QueryCountersArgs, QueryDashboardsArgs, QueryDepartmentsArgs, QueryFloorPlansArgs, QueryMetricValuesArgs, QueryNotificationsArgs, QueryOrdersArgs, QueryOrdersExecutionsArgs, QueryProductionInsightsArgs, QueryProductsArgs, QueryReasonsArgs, QueryReasonsRecommendationArgs, QueryStaffingPlansArgs, QueryStandardRatesArgs, QueryStatusChangeTransitionPermissionsArgs, QueryStatusChangesArgs, QueryStatusInsightsArgs, QueryUsersArgs, QueryUsersPresencesArgs, QueryWidgetArgs, QueryWidgetsArgs, QueryWorkOrdersArgs, QueryWorkOrdersInsightsArgs, QueryWorkplaceAssignmentsArgs, QueryWorkplacePerformanceInsightsArgs, QueryWorkplacesArgs, Reason, ReasonFilter, ReasonsDocument, ReasonsQuery, ReasonsQueryVariables, ReasonsRecommendation, ReasonsRecommendationDocument, ReasonsRecommendationQuery, ReasonsRecommendationQueryVariables, RemoveDashboardDocument, RemoveDashboardMutation, RemoveDashboardMutationVariables, RemoveDashboardPayload, RemoveStaffingPlanDocument, RemoveStaffingPlanMutation, RemoveStaffingPlanMutationVariables, RemoveStaffingPlanPayload, RemoveUserPresenceDocument, RemoveUserPresenceMutation, RemoveUserPresenceMutationVariables, RemoveUserPresencePayload, RemoveWidgetDocument, RemoveWidgetMutation, RemoveWidgetMutationVariables, RemoveWidgetPayload, RemoveWorkplaceUsersPresencesDocument, RemoveWorkplaceUsersPresencesMutation, RemoveWorkplaceUsersPresencesMutationVariables, RemoveWorkplaceUsersPresencesPayload, RequestFeatureAccessDocument, RequestFeatureAccessInput, RequestFeatureAccessMutation, RequestFeatureAccessMutationPayload, RequestFeatureAccessMutationVariables, RoleConfig, Scalars, ScreenEnum, ScreenSaverConfig, Sdk, SdkFunctionWrapper, SetCounterDocument, SetCounterMutation, SetCounterMutationVariables, SetCounterPayload, Shift, type ShiftPeriodId, ShiftsDocument, ShiftsQuery, ShiftsQueryVariables, SortableSelect, StaffingPlan, StaffingPlanFilter, StaffingPlanInput, StaffingPlanUpdateInput, StaffingPlansDocument, StaffingPlansQuery, StaffingPlansQueryVariables, StandardRate, StandardRatesDocument, StandardRatesQuery, StandardRatesQueryVariables, StartOrderExecutionDocument, StartOrderExecutionMutation, StartOrderExecutionMutationVariables, StartOrderExecutionPayload, StartTrialDocument, StartTrialInput, StartTrialMutation, StartTrialMutationPayload, StartTrialMutationVariables, StatusChange, StatusChangeFilter, StatusChangeTransitionPermission, StatusChangeTransitionPermissionFilter, StatusChangeTransitionPermissionsDocument, StatusChangeTransitionPermissionsQuery, StatusChangeTransitionPermissionsQueryVariables, StatusChangesDocument, StatusChangesQuery, StatusChangesQueryVariables, StatusInsightsDocument, StatusInsightsEntry, StatusInsightsInput, StatusInsightsQuery, StatusInsightsQueryVariables, StatusInsightsResult, StatusScreenDisplayBlocksEnum, StopOrderExecutionDocument, StopOrderExecutionMutation, StopOrderExecutionMutationVariables, StopOrderExecutionPayload, Subscription, SubscriptionWorkplaceEventArgs, TrainingStatus, UnassignOperatorDocument, UnassignOperatorFromWorkplaceDocument, UnassignOperatorFromWorkplaceMutation, UnassignOperatorFromWorkplaceMutationVariables, UnassignOperatorFromWorkplacePayload, UnassignOperatorInput, UnassignOperatorMutation, UnassignOperatorMutationVariables, UnassignOperator_Assignment, UnplannedOperator, UpdateDashboardDocument, UpdateDashboardMutation, UpdateDashboardMutationVariables, UpdateDashboardPayload, UpdateNotificationDocument, UpdateNotificationMutation, UpdateNotificationMutationVariables, UpdateNotificationPayload, UpdateOrderDocument, UpdateOrderExecutionDocument, UpdateOrderExecutionMutation, UpdateOrderExecutionMutationVariables, UpdateOrderExecutionPayload, UpdateOrderInput, UpdateOrderMutation, UpdateOrderMutationVariables, UpdateOrderPayload, UpdateStaffingPlanDocument, UpdateStaffingPlanMutation, UpdateStaffingPlanMutationVariables, UpdateStaffingPlanPayload, UpdateStatusChangeDocument, UpdateStatusChangeInput, UpdateStatusChangeMutation, UpdateStatusChangeMutationVariables, UpdateStatusChangePayload, UpdateWidgetDocument, UpdateWidgetMutation, UpdateWidgetMutationVariables, UpdateWidgetPayload, UpdateWorkOrderDocument, UpdateWorkOrderInput, UpdateWorkOrderMutation, UpdateWorkOrderMutationVariables, UpdateWorkOrderPayload, User, UserFilter, UserPresence, UserPresenceFilter, UsersDocument, UsersPresencesDocument, UsersPresencesQuery, UsersPresencesQueryVariables, UsersQuery, UsersQueryVariables, type WeekPeriodId, Widget, WidgetCard, WidgetCardProps, WidgetDocument, WidgetErrorBoundary, WidgetFilter, WidgetProps, WidgetQuery, WidgetQueryVariables, WidgetsDocument, WidgetsQuery, WidgetsQueryVariables, WorkOrder, WorkOrderCategory, WorkOrderCreationMethodEnum, WorkOrderFilter, WorkOrderPriorityEnum, WorkOrderStatusEnum, WorkOrdersDocument, WorkOrdersInsightsCategoryEntry, WorkOrdersInsightsDocument, WorkOrdersInsightsDurationEntry, WorkOrdersInsightsInput, WorkOrdersInsightsQuery, WorkOrdersInsightsQueryVariables, WorkOrdersInsightsResult, WorkOrdersQuery, WorkOrdersQueryVariables, Workplace, WorkplaceAssignment, WorkplaceAssignmentsDocument, WorkplaceAssignmentsInput, WorkplaceAssignmentsQuery, WorkplaceAssignmentsQueryVariables, WorkplaceAssignmentsView, WorkplaceConfig, WorkplaceEvent, WorkplaceEventDocument, WorkplaceEventSubjectUnion, WorkplaceEventSubscription, WorkplaceEventSubscriptionPayload, WorkplaceEventSubscriptionVariables, WorkplaceFilter, WorkplacePerformanceInsightsDocument, WorkplacePerformanceInsightsInput, WorkplacePerformanceInsightsQuery, WorkplacePerformanceInsightsQueryVariables, WorkplacePerformanceInsightsReason, WorkplacePerformanceInsightsResult, WorkplacePerformanceInsightsStatusChange, WorkplaceWithAssignment, WorkplacesDocument, WorkplacesQuery, WorkplacesQueryVariables, findPeriodById, generateTimeRange, getCurrentShift, getGqlWsClient, getGraphqlSdk, getNextBoundary, getRecentShift, getSdk, getShiftTimeRange, getTimeRangeLabel, getValidAggregations, normalizeShifts, periods, resolveAggregation, resolveShiftIdForPeriod, useGqlClients, LIBRARY_VERSION as version };
8182
8181
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -6678,7 +6678,7 @@ const styles = {
6678
6678
  };
6679
6679
  //#endregion
6680
6680
  //#region src/components/WidgetCard/index.tsx
6681
- const WidgetCard = React.forwardRef(({ children, title, Widget, id, getTitle, thumbnail, url, wsUrl, lang, filters, openSettingsModal, onSettingsModalOpened, onSettingsModalClosed, onLocalesRegistered, sidePanelOpened, updateSidePanelProps, onDelete, editMode, version, requiredFeatures, extraPermissions, ...cardProps }, ref) => {
6681
+ const WidgetCard = React.forwardRef(({ children, title, Widget, id, getTitle, thumbnail, url, wsUrl, lang, filters, openSettingsModal, onSettingsModalOpened, onSettingsModalClosed, sidePanelOpened, updateSidePanelProps, onDelete, editMode, version, requiredFeatures, extraPermissions, ...cardProps }, ref) => {
6682
6682
  const { graphqlSdk } = useGqlClients({
6683
6683
  url,
6684
6684
  wsUrl,
@@ -6687,7 +6687,6 @@ const WidgetCard = React.forwardRef(({ children, title, Widget, id, getTitle, th
6687
6687
  const { hasAccess } = useAccess(requiredFeatures, { extraPermissions });
6688
6688
  const [widgetData, setWidgetData] = useState();
6689
6689
  const [widgetSettings, setWidgetSettings] = useState();
6690
- const [localesReady, setLocalesReady] = useState(false);
6691
6690
  const [deleteInProgress, setDeleteInProgress] = useState(false);
6692
6691
  const [removeTooltipOpened, setRemoveTooltipOpened] = useState(false);
6693
6692
  const handleDataChange = useCallback((newData) => {
@@ -6698,7 +6697,7 @@ const WidgetCard = React.forwardRef(({ children, title, Widget, id, getTitle, th
6698
6697
  }, []);
6699
6698
  const { t } = useTranslation();
6700
6699
  registerTranslations(resources);
6701
- const previewTitle = useCallback(() => {
6700
+ const displayTitle = useCallback(() => {
6702
6701
  const trimmed = widgetSettings?.customTitle?.trim();
6703
6702
  if (trimmed) return trimmed;
6704
6703
  if (getTitle) try {
@@ -6712,8 +6711,7 @@ const WidgetCard = React.forwardRef(({ children, title, Widget, id, getTitle, th
6712
6711
  filters,
6713
6712
  lang,
6714
6713
  getTitle,
6715
- title,
6716
- localesReady
6714
+ title
6717
6715
  ])();
6718
6716
  const handleOpenSettingsModal = () => {
6719
6717
  if (onSettingsModalOpened) onSettingsModalOpened();
@@ -6800,7 +6798,7 @@ const WidgetCard = React.forwardRef(({ children, title, Widget, id, getTitle, th
6800
6798
  variant: "subtitle1",
6801
6799
  sx: mergeSx(styles.title, !editMode && styles.titlePreview),
6802
6800
  "data-testid": "widget-card.title"
6803
- }, editMode ? title : previewTitle),
6801
+ }, displayTitle),
6804
6802
  action: /* @__PURE__ */ React.createElement(Box, { sx: mergeSx(styles.controls, !editMode && styles.controlsHiddenRight) }, renderActionButtons()),
6805
6803
  sx: mergeSx(styles.header, !editMode && styles.headerPreview),
6806
6804
  "data-testid": "widget-card.header"
@@ -6821,7 +6819,6 @@ const WidgetCard = React.forwardRef(({ children, title, Widget, id, getTitle, th
6821
6819
  filters,
6822
6820
  onDataChange: handleDataChange,
6823
6821
  onSettingsChange: handleSettingsChange,
6824
- onLocalesRegistered: () => setLocalesReady(true),
6825
6822
  openSettingsModal,
6826
6823
  onSettingsModalOpened,
6827
6824
  onSettingsModalClosed,
@@ -6881,7 +6878,7 @@ const generateTimeRange = (start, end, unit, step) => {
6881
6878
  };
6882
6879
  //#endregion
6883
6880
  //#region src/version.ts
6884
- const LIBRARY_VERSION = "1.5.48";
6881
+ const LIBRARY_VERSION = "1.5.50";
6885
6882
  //#endregion
6886
6883
  export { AccessRequestTypeEnum, ActualStaffingCountsDocument, AndonLightColor, ApplicationInfoDocument, AssignOperatorDocument, AssignOperatorToWorkplaceDocument, AvailabilityInsightsDocument, AvailabilityStatus, BulkUpsertStaffingPlansDocument, CompanyConfigDocument, ConfirmTooltip, CounterDirectoriesDocument, CounterKindEnum, CountersDocument, CreateDashboardDocument, CreateOrderDocument, CreateProductDocument, CreateStaffingPlanDocument, CreateStatusChangeDocument, CreateUserPresenceDocument, CreateWidgetDocument, CurrentUserDocument, DashboardFilters, DashboardsDocument, DayType, DepartmentsDocument, FloorPlansDocument, GetWorkplacePerformanceInsightsDocument, GraphqlWsClient, InsightsAggregation, ListActualStaffingCountsDocument, ListStaffingPlansDocument, ListStatusChangesDocument, ListWorkOrdersDocument, ListWorkplaceAssignmentsDocument, ListWorkplacesDocument, MetricCard, MetricTypeEnum, MetricUnitEnum, MetricValuesDocument, MetricsDocument, NotificationsDocument, OrdersDocument, OrdersExecutionsDocument, PauseOrderExecutionDocument, Period, PresenceStatusEnum, ProductionInsightsDocument, ProductionMode, ProductsDocument, ReasonsDocument, ReasonsRecommendationDocument, RemoveDashboardDocument, RemoveStaffingPlanDocument, RemoveUserPresenceDocument, RemoveWidgetDocument, RemoveWorkplaceUsersPresencesDocument, RequestFeatureAccessDocument, ScreenEnum, SetCounterDocument, ShiftsDocument, SortableSelect, StaffingPlansDocument, StandardRatesDocument, StartOrderExecutionDocument, StartTrialDocument, StatusChangeTransitionPermissionsDocument, StatusChangesDocument, StatusInsightsDocument, StatusScreenDisplayBlocksEnum, StopOrderExecutionDocument, TrainingStatus, UnassignOperatorDocument, UnassignOperatorFromWorkplaceDocument, UpdateDashboardDocument, UpdateNotificationDocument, UpdateOrderDocument, UpdateOrderExecutionDocument, UpdateStaffingPlanDocument, UpdateStatusChangeDocument, UpdateWidgetDocument, UpdateWorkOrderDocument, UsersDocument, UsersPresencesDocument, WidgetCard, WidgetDocument, WidgetErrorBoundary, WidgetsDocument, WorkOrderCreationMethodEnum, WorkOrderPriorityEnum, WorkOrderStatusEnum, WorkOrdersDocument, WorkOrdersInsightsDocument, WorkplaceAssignmentsDocument, WorkplaceEvent, WorkplaceEventDocument, WorkplacePerformanceInsightsDocument, WorkplacesDocument, findPeriodById, generateTimeRange, getCurrentShift, getGqlWsClient, getGraphqlSdk, getNextBoundary, getRecentShift, getSdk, getShiftTimeRange, getTimeRangeLabel, getValidAggregations, normalizeShifts, periods, resolveAggregation, resolveShiftIdForPeriod, useGqlClients, LIBRARY_VERSION as version };
6887
6884