@gusto/embedded-react-sdk 0.46.0 → 0.46.2

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.
Files changed (152) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/dist/components/Common/DataView/DataCards/DataCards.d.ts +2 -1
  3. package/dist/components/Common/DataView/DataCards/DataCards.js +14 -13
  4. package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
  5. package/dist/components/Common/DataView/DataTable/DataTable.d.ts +2 -1
  6. package/dist/components/Common/DataView/DataTable/DataTable.js +51 -50
  7. package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
  8. package/dist/components/Common/DataView/DataView.d.ts +1 -0
  9. package/dist/components/Common/DataView/DataView.js.map +1 -1
  10. package/dist/components/Common/DataView/useDataView.d.ts +8 -1
  11. package/dist/components/Common/DataView/useDataView.js +20 -17
  12. package/dist/components/Common/DataView/useDataView.js.map +1 -1
  13. package/dist/components/Employee/Compensation/management/AddAnotherJob/AddAnotherJob.d.ts +9 -0
  14. package/dist/components/Employee/Compensation/management/AddAnotherJob/AddAnotherJob.js +76 -0
  15. package/dist/components/Employee/Compensation/management/AddAnotherJob/AddAnotherJob.js.map +1 -0
  16. package/dist/components/Employee/Compensation/management/AddAnotherJob/AddAnotherJob.module.scss.js +8 -0
  17. package/dist/components/Employee/Compensation/management/AddAnotherJob/AddAnotherJob.module.scss.js.map +1 -0
  18. package/dist/components/Employee/Compensation/management/EditCompensation/EditCompensation.js +57 -202
  19. package/dist/components/Employee/Compensation/management/EditCompensation/EditCompensation.js.map +1 -1
  20. package/dist/components/Employee/Compensation/management/EditPendingCompensation/EditPendingCompensation.d.ts +25 -0
  21. package/dist/components/Employee/Compensation/management/EditPendingCompensation/EditPendingCompensation.js +81 -0
  22. package/dist/components/Employee/Compensation/management/EditPendingCompensation/EditPendingCompensation.js.map +1 -0
  23. package/dist/components/Employee/Compensation/management/EditPendingCompensation/EditPendingCompensation.module.scss.js +8 -0
  24. package/dist/components/Employee/Compensation/management/EditPendingCompensation/EditPendingCompensation.module.scss.js.map +1 -0
  25. package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.d.ts +18 -0
  26. package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.js +171 -0
  27. package/dist/components/Employee/Compensation/management/ManagementCompensationFormBody.js.map +1 -0
  28. package/dist/components/Employee/Compensation/management/index.d.ts +3 -0
  29. package/dist/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.d.ts +6 -1
  30. package/dist/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.js +67 -209
  31. package/dist/components/Employee/Compensation/onboarding/EditCompensation/EditCompensation.js.map +1 -1
  32. package/dist/components/Employee/Compensation/shared/AddCompensationFormBody.d.ts +18 -0
  33. package/dist/components/Employee/Compensation/shared/AddCompensationFormBody.js +169 -0
  34. package/dist/components/Employee/Compensation/shared/AddCompensationFormBody.js.map +1 -0
  35. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.d.ts +16 -0
  36. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js +36 -30
  37. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js.map +1 -1
  38. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.d.ts +1 -1
  39. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js.map +1 -1
  40. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js +213 -191
  41. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js.map +1 -1
  42. package/dist/components/Employee/Dashboard/Dashboard.js +65 -53
  43. package/dist/components/Employee/Dashboard/Dashboard.js.map +1 -1
  44. package/dist/components/Employee/Dashboard/DashboardComponents.d.ts +3 -3
  45. package/dist/components/Employee/Dashboard/DashboardComponents.js +138 -101
  46. package/dist/components/Employee/Dashboard/DashboardComponents.js.map +1 -1
  47. package/dist/components/Employee/Dashboard/JobAndPayView.js +340 -320
  48. package/dist/components/Employee/Dashboard/JobAndPayView.js.map +1 -1
  49. package/dist/components/Employee/Dashboard/JobAndPayView.module.scss.js +5 -3
  50. package/dist/components/Employee/Dashboard/JobAndPayView.module.scss.js.map +1 -1
  51. package/dist/components/Employee/Dashboard/dashboardStateMachine.js +147 -148
  52. package/dist/components/Employee/Dashboard/dashboardStateMachine.js.map +1 -1
  53. package/dist/components/Employee/Dashboard/getPendingCompensationChanges.d.ts +6 -0
  54. package/dist/components/Employee/Dashboard/getPendingCompensationChanges.js +13 -12
  55. package/dist/components/Employee/Dashboard/getPendingCompensationChanges.js.map +1 -1
  56. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.d.ts +2 -2
  57. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js +34 -35
  58. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js.map +1 -1
  59. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js +37 -40
  60. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js.map +1 -1
  61. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.d.ts +1 -2
  62. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js +64 -71
  63. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js.map +1 -1
  64. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlow.d.ts +2 -0
  65. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlow.js +25 -0
  66. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlow.js.map +1 -0
  67. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlowComponents.d.ts +13 -0
  68. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlowComponents.js +37 -0
  69. package/dist/components/Employee/EmployeeListFlow/EmployeeListFlowComponents.js.map +1 -0
  70. package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.d.ts +6 -0
  71. package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.js +69 -0
  72. package/dist/components/Employee/EmployeeListFlow/employeeListStateMachine.js.map +1 -0
  73. package/dist/components/Employee/EmployeeListFlow/index.d.ts +3 -0
  74. package/dist/components/Employee/HomeAddress/management/HomeAddress.js +15 -12
  75. package/dist/components/Employee/HomeAddress/management/HomeAddress.js.map +1 -1
  76. package/dist/components/Employee/HomeAddress/management/HomeAddressView.d.ts +2 -1
  77. package/dist/components/Employee/HomeAddress/management/HomeAddressView.js +86 -83
  78. package/dist/components/Employee/HomeAddress/management/HomeAddressView.js.map +1 -1
  79. package/dist/components/Employee/WorkAddress/management/WorkAddress.js +14 -11
  80. package/dist/components/Employee/WorkAddress/management/WorkAddress.js.map +1 -1
  81. package/dist/components/Employee/WorkAddress/management/WorkAddressView.d.ts +2 -1
  82. package/dist/components/Employee/WorkAddress/management/WorkAddressView.js +92 -89
  83. package/dist/components/Employee/WorkAddress/management/WorkAddressView.js.map +1 -1
  84. package/dist/components/Employee/exports/employeeManagement.d.ts +2 -0
  85. package/dist/components/Employee/exports/employeeManagement.js +18 -16
  86. package/dist/components/Employee/exports/employeeManagement.js.map +1 -1
  87. package/dist/components/Employee/index.d.ts +2 -0
  88. package/dist/components/Employee/index.js +32 -30
  89. package/dist/components/Employee/index.js.map +1 -1
  90. package/dist/components/Flow/FlowHeader.js +34 -31
  91. package/dist/components/Flow/FlowHeader.js.map +1 -1
  92. package/dist/components/Flow/useFlow.d.ts +12 -0
  93. package/dist/components/Flow/useFlow.js.map +1 -1
  94. package/dist/components/TimeOff/PolicyList/PolicyList.js +92 -69
  95. package/dist/components/TimeOff/PolicyList/PolicyList.js.map +1 -1
  96. package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js +23 -23
  97. package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js.map +1 -1
  98. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.d.ts +1 -1
  99. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +1 -1
  100. package/dist/components/TimeOff/TimeOffFlow/timeOffStateMachine.js +73 -56
  101. package/dist/components/TimeOff/TimeOffFlow/timeOffStateMachine.js.map +1 -1
  102. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +58 -58
  103. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +1 -1
  104. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.d.ts +1 -1
  105. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +91 -87
  106. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +1 -1
  107. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormTypes.d.ts +2 -0
  108. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js +91 -124
  109. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js.map +1 -1
  110. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.d.ts +1 -1
  111. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js +72 -87
  112. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js.map +1 -1
  113. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.d.ts +1 -6
  114. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js +160 -220
  115. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js.map +1 -1
  116. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.d.ts +7 -3
  117. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js +77 -54
  118. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js.map +1 -1
  119. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.test.d.ts +1 -0
  120. package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.js +12 -11
  121. package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.js.map +1 -1
  122. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js +177 -147
  123. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js.map +1 -1
  124. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.d.ts +1 -1
  125. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js +38 -36
  126. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js.map +1 -1
  127. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTableTypes.d.ts +2 -0
  128. package/dist/i18n/en/Company.TimeOff.SelectEmployees.json.js +10 -10
  129. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js +17 -15
  130. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js.map +1 -1
  131. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js +9 -9
  132. package/dist/i18n/en/Employee.Compensation.json.js +64 -56
  133. package/dist/i18n/en/Employee.Compensation.json.js.map +1 -1
  134. package/dist/i18n/en/Employee.Dashboard.json.js +26 -24
  135. package/dist/i18n/en/Employee.Dashboard.json.js.map +1 -1
  136. package/dist/i18n/en/Employee.HomeAddress.Management.json.js +12 -10
  137. package/dist/i18n/en/Employee.HomeAddress.Management.json.js.map +1 -1
  138. package/dist/i18n/en/Employee.ManagementEmployeeList.json.js +32 -30
  139. package/dist/i18n/en/Employee.ManagementEmployeeList.json.js.map +1 -1
  140. package/dist/i18n/en/Employee.WorkAddress.Management.json.js +16 -14
  141. package/dist/i18n/en/Employee.WorkAddress.Management.json.js.map +1 -1
  142. package/dist/i18n/en/common.json.d.ts +14 -0
  143. package/dist/partner-hook-utils/form/fields/DatePickerHookField.js +33 -32
  144. package/dist/partner-hook-utils/form/fields/DatePickerHookField.js.map +1 -1
  145. package/dist/partner-hook-utils/types.d.ts +4 -0
  146. package/dist/shared/constants.d.ts +2 -0
  147. package/dist/shared/constants.js +13 -12
  148. package/dist/shared/constants.js.map +1 -1
  149. package/dist/style.css +1 -1
  150. package/dist/types/i18next.d.ts +26 -12
  151. package/docs/reference/endpoint-inventory.json +24 -8
  152. package/package.json +1 -1
@@ -1,17 +1,17 @@
1
- import { jsx as r, jsxs as I } from "react/jsx-runtime";
1
+ import { jsx as r, jsxs as V } from "react/jsx-runtime";
2
2
  import { useMemo as m } from "react";
3
- import { useTranslation as R } from "react-i18next";
3
+ import { useTranslation as F } from "react-i18next";
4
4
  import d from "./EmployeeTable.module.scss.js";
5
- import { Flex as V } from "../../../Common/Flex/Flex.js";
5
+ import { Flex as O } from "../../../Common/Flex/Flex.js";
6
6
  import "classnames";
7
7
  import "../../../../shared/constants.js";
8
8
  import { useComponentContext as y } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
9
- import { useI18n as F } from "../../../../i18n/I18n.js";
10
- import { firstLastName as O } from "../../../../helpers/formattedStrings.js";
11
- import P from "../../../../assets/icons/search-lg.svg.js";
12
- import { useDataView as _ } from "../../../Common/DataView/useDataView.js";
13
- import { DataView as z } from "../../../Common/DataView/DataView.js";
14
- function ee({
9
+ import { useI18n as P } from "../../../../i18n/I18n.js";
10
+ import { firstLastName as _ } from "../../../../helpers/formattedStrings.js";
11
+ import z from "../../../../assets/icons/search-lg.svg.js";
12
+ import { useDataView as H } from "../../../Common/DataView/useDataView.js";
13
+ import { DataView as W } from "../../../Common/DataView/DataView.js";
14
+ function re({
15
15
  data: o,
16
16
  label: n,
17
17
  additionalColumns: l = [],
@@ -20,31 +20,33 @@ function ee({
20
20
  onSearchChange: b,
21
21
  onSearchClear: T,
22
22
  searchPlaceholder: g,
23
- selectionMode: x,
23
+ hideSearch: x,
24
+ selectionMode: C,
24
25
  onSelect: p,
25
- onSelectAll: C,
26
- getIsItemSelected: E,
26
+ onSelectAll: E,
27
+ getIsItemSelected: S,
28
+ hideSelectAll: N,
27
29
  itemMenu: u,
28
- pagination: S,
29
- isFetching: N,
30
+ pagination: j,
31
+ isFetching: v,
30
32
  emptyState: f,
31
33
  emptySearchState: a,
32
- footer: j
34
+ footer: L
33
35
  }) {
34
- F("Company.TimeOff.EmployeeTable");
35
- const { t } = R("Company.TimeOff.EmployeeTable"), v = y(), s = c.length > 0 && o.length === 0, L = (e) => {
36
+ P("Company.TimeOff.EmployeeTable");
37
+ const { t } = F("Company.TimeOff.EmployeeTable"), D = y(), s = c.length > 0 && o.length === 0, k = (e) => {
36
38
  b(e), e || T();
37
39
  }, h = m(() => {
38
40
  const e = t("noSearchResults");
39
41
  return function() {
40
- return /* @__PURE__ */ r(H, { message: e });
42
+ return /* @__PURE__ */ r($, { message: e });
41
43
  };
42
- }, [t]), D = m(() => s && a ? a : s ? h : f, [s, a, f, h]), k = m(
44
+ }, [t]), w = m(() => s && a ? a : s ? h : f, [s, a, f, h]), I = m(
43
45
  () => [
44
46
  {
45
47
  key: "name",
46
48
  title: t("name"),
47
- render: (e) => /* @__PURE__ */ r("span", { id: `employee-name-${e.uuid}`, children: O({
49
+ render: (e) => /* @__PURE__ */ r("span", { id: `employee-name-${e.uuid}`, children: _({
48
50
  first_name: e.firstName,
49
51
  last_name: e.lastName
50
52
  }) })
@@ -59,19 +61,19 @@ function ee({
59
61
  ...l
60
62
  ],
61
63
  [t, l, i]
62
- ), w = _({
64
+ ), R = H({
63
65
  data: o,
64
- columns: k,
66
+ columns: I,
65
67
  itemMenu: u,
66
- pagination: S,
67
- isFetching: N,
68
- emptyState: D,
69
- footer: j,
70
- ...p && { selectionMode: x, onSelect: p, onSelectAll: C, getIsItemSelected: E }
68
+ pagination: j,
69
+ isFetching: v,
70
+ emptyState: w,
71
+ footer: L,
72
+ ...p && { selectionMode: C, onSelect: p, onSelectAll: E, getIsItemSelected: S, hideSelectAll: N }
71
73
  });
72
- return /* @__PURE__ */ I("div", { className: d.root, "data-has-menu": u ? !0 : void 0, children: [
73
- /* @__PURE__ */ r("div", { className: d.searchContainer, children: /* @__PURE__ */ r(
74
- v.TextInput,
74
+ return /* @__PURE__ */ V("div", { className: d.root, "data-has-menu": u ? !0 : void 0, children: [
75
+ !x && /* @__PURE__ */ r("div", { className: d.searchContainer, children: /* @__PURE__ */ r(
76
+ D.TextInput,
75
77
  {
76
78
  name: "employee-search",
77
79
  type: "search",
@@ -79,18 +81,18 @@ function ee({
79
81
  shouldVisuallyHideLabel: !0,
80
82
  placeholder: g ?? t("searchPlaceholder"),
81
83
  value: c,
82
- onChange: L,
83
- adornmentStart: /* @__PURE__ */ r(P, { "aria-hidden": !0 })
84
+ onChange: k,
85
+ adornmentStart: /* @__PURE__ */ r(z, { "aria-hidden": !0 })
84
86
  }
85
87
  ) }),
86
- /* @__PURE__ */ r(z, { label: n ?? t("tableLabel"), ...w })
88
+ /* @__PURE__ */ r(W, { label: n ?? t("tableLabel"), ...R })
87
89
  ] });
88
90
  }
89
- function H({ message: o }) {
91
+ function $({ message: o }) {
90
92
  const { Text: n } = y();
91
- return /* @__PURE__ */ r(V, { flexDirection: "column", alignItems: "center", gap: 8, children: /* @__PURE__ */ r(n, { size: "sm", children: o }) });
93
+ return /* @__PURE__ */ r(O, { flexDirection: "column", alignItems: "center", gap: 8, children: /* @__PURE__ */ r(n, { size: "sm", children: o }) });
92
94
  }
93
95
  export {
94
- ee as EmployeeTable
96
+ re as EmployeeTable
95
97
  };
96
98
  //# sourceMappingURL=EmployeeTable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EmployeeTable.js","sources":["../../../../../src/components/TimeOff/shared/EmployeeTable/EmployeeTable.tsx"],"sourcesContent":["import { useMemo } from 'react'\nimport { useTranslation } from 'react-i18next'\nimport type { EmployeeTableItem, EmployeeTableProps } from './EmployeeTableTypes'\nimport styles from './EmployeeTable.module.scss'\nimport { DataView, Flex, useDataView } from '@/components/Common'\nimport type { useDataViewProp } from '@/components/Common/DataView/useDataView'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useI18n } from '@/i18n/I18n'\nimport { firstLastName } from '@/helpers/formattedStrings'\nimport SearchIcon from '@/assets/icons/search-lg.svg?react'\n\nexport function EmployeeTable<T extends EmployeeTableItem>({\n data,\n label,\n additionalColumns = [],\n hideJobTitle,\n searchValue,\n onSearchChange,\n onSearchClear,\n searchPlaceholder,\n selectionMode,\n onSelect,\n onSelectAll,\n getIsItemSelected,\n itemMenu,\n pagination,\n isFetching,\n emptyState,\n emptySearchState,\n footer,\n}: EmployeeTableProps<T>) {\n useI18n('Company.TimeOff.EmployeeTable')\n const { t } = useTranslation('Company.TimeOff.EmployeeTable')\n const Components = useComponentContext()\n\n const isSearchWithNoResults = searchValue.length > 0 && data.length === 0\n\n const handleSearchChange = (value: string) => {\n onSearchChange(value)\n if (!value) onSearchClear()\n }\n\n const defaultEmptySearch = useMemo(() => {\n const noSearchResults = t('noSearchResults')\n return function EmptySearchFallback() {\n return <DefaultEmptySearchState message={noSearchResults} />\n }\n }, [t])\n\n const resolvedEmptyState = useMemo(() => {\n if (isSearchWithNoResults && emptySearchState) {\n return emptySearchState\n }\n if (isSearchWithNoResults) {\n return defaultEmptySearch\n }\n return emptyState\n }, [isSearchWithNoResults, emptySearchState, emptyState, defaultEmptySearch])\n\n const columns = useMemo(\n () => [\n {\n key: 'name',\n title: t('name'),\n render: (item: T) => (\n <span id={`employee-name-${item.uuid}`}>\n {firstLastName({\n first_name: item.firstName,\n last_name: item.lastName,\n })}\n </span>\n ),\n },\n ...(hideJobTitle\n ? []\n : [\n {\n key: 'jobTitle' as keyof T,\n title: t('jobTitle'),\n render: (item: T) => item.jobTitle ?? '',\n },\n ]),\n ...additionalColumns,\n ],\n [t, additionalColumns, hideJobTitle],\n )\n\n const dataViewProps = useDataView<T>({\n data,\n columns,\n itemMenu,\n pagination,\n isFetching,\n emptyState: resolvedEmptyState,\n footer,\n ...(onSelect && { selectionMode, onSelect, onSelectAll, getIsItemSelected }),\n } as useDataViewProp<T>)\n\n return (\n <div className={styles.root} data-has-menu={itemMenu ? true : undefined}>\n <div className={styles.searchContainer}>\n <Components.TextInput\n name=\"employee-search\"\n type=\"search\"\n label={t('searchLabel')}\n shouldVisuallyHideLabel\n placeholder={searchPlaceholder ?? t('searchPlaceholder')}\n value={searchValue}\n onChange={handleSearchChange}\n adornmentStart={<SearchIcon aria-hidden />}\n />\n </div>\n <DataView label={label ?? t('tableLabel')} {...dataViewProps} />\n </div>\n )\n}\n\nfunction DefaultEmptySearchState({ message }: { message: string }) {\n const { Text } = useComponentContext()\n return (\n <Flex flexDirection=\"column\" alignItems=\"center\" gap={8}>\n <Text size=\"sm\">{message}</Text>\n </Flex>\n )\n}\n"],"names":["EmployeeTable","data","label","additionalColumns","hideJobTitle","searchValue","onSearchChange","onSearchClear","searchPlaceholder","selectionMode","onSelect","onSelectAll","getIsItemSelected","itemMenu","pagination","isFetching","emptyState","emptySearchState","footer","useI18n","useTranslation","Components","useComponentContext","isSearchWithNoResults","handleSearchChange","value","defaultEmptySearch","useMemo","noSearchResults","jsx","DefaultEmptySearchState","resolvedEmptyState","columns","item","firstLastName","dataViewProps","useDataView","jsxs","styles","SearchIcon","DataView","message","Text","Flex"],"mappings":"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"}
1
+ {"version":3,"file":"EmployeeTable.js","sources":["../../../../../src/components/TimeOff/shared/EmployeeTable/EmployeeTable.tsx"],"sourcesContent":["import { useMemo } from 'react'\nimport { useTranslation } from 'react-i18next'\nimport type { EmployeeTableItem, EmployeeTableProps } from './EmployeeTableTypes'\nimport styles from './EmployeeTable.module.scss'\nimport { DataView, Flex, useDataView } from '@/components/Common'\nimport type { useDataViewProp } from '@/components/Common/DataView/useDataView'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useI18n } from '@/i18n/I18n'\nimport { firstLastName } from '@/helpers/formattedStrings'\nimport SearchIcon from '@/assets/icons/search-lg.svg?react'\n\nexport function EmployeeTable<T extends EmployeeTableItem>({\n data,\n label,\n additionalColumns = [],\n hideJobTitle,\n searchValue,\n onSearchChange,\n onSearchClear,\n searchPlaceholder,\n hideSearch,\n selectionMode,\n onSelect,\n onSelectAll,\n getIsItemSelected,\n hideSelectAll,\n itemMenu,\n pagination,\n isFetching,\n emptyState,\n emptySearchState,\n footer,\n}: EmployeeTableProps<T>) {\n useI18n('Company.TimeOff.EmployeeTable')\n const { t } = useTranslation('Company.TimeOff.EmployeeTable')\n const Components = useComponentContext()\n\n const isSearchWithNoResults = searchValue.length > 0 && data.length === 0\n\n const handleSearchChange = (value: string) => {\n onSearchChange(value)\n if (!value) onSearchClear()\n }\n\n const defaultEmptySearch = useMemo(() => {\n const noSearchResults = t('noSearchResults')\n return function EmptySearchFallback() {\n return <DefaultEmptySearchState message={noSearchResults} />\n }\n }, [t])\n\n const resolvedEmptyState = useMemo(() => {\n if (isSearchWithNoResults && emptySearchState) {\n return emptySearchState\n }\n if (isSearchWithNoResults) {\n return defaultEmptySearch\n }\n return emptyState\n }, [isSearchWithNoResults, emptySearchState, emptyState, defaultEmptySearch])\n\n const columns = useMemo(\n () => [\n {\n key: 'name',\n title: t('name'),\n render: (item: T) => (\n <span id={`employee-name-${item.uuid}`}>\n {firstLastName({\n first_name: item.firstName,\n last_name: item.lastName,\n })}\n </span>\n ),\n },\n ...(hideJobTitle\n ? []\n : [\n {\n key: 'jobTitle' as keyof T,\n title: t('jobTitle'),\n render: (item: T) => item.jobTitle ?? '',\n },\n ]),\n ...additionalColumns,\n ],\n [t, additionalColumns, hideJobTitle],\n )\n\n const dataViewProps = useDataView<T>({\n data,\n columns,\n itemMenu,\n pagination,\n isFetching,\n emptyState: resolvedEmptyState,\n footer,\n ...(onSelect && { selectionMode, onSelect, onSelectAll, getIsItemSelected, hideSelectAll }),\n } as useDataViewProp<T>)\n\n return (\n <div className={styles.root} data-has-menu={itemMenu ? true : undefined}>\n {!hideSearch && (\n <div className={styles.searchContainer}>\n <Components.TextInput\n name=\"employee-search\"\n type=\"search\"\n label={t('searchLabel')}\n shouldVisuallyHideLabel\n placeholder={searchPlaceholder ?? t('searchPlaceholder')}\n value={searchValue}\n onChange={handleSearchChange}\n adornmentStart={<SearchIcon aria-hidden />}\n />\n </div>\n )}\n <DataView label={label ?? t('tableLabel')} {...dataViewProps} />\n </div>\n )\n}\n\nfunction DefaultEmptySearchState({ message }: { message: string }) {\n const { Text } = useComponentContext()\n return (\n <Flex flexDirection=\"column\" alignItems=\"center\" gap={8}>\n <Text size=\"sm\">{message}</Text>\n </Flex>\n )\n}\n"],"names":["EmployeeTable","data","label","additionalColumns","hideJobTitle","searchValue","onSearchChange","onSearchClear","searchPlaceholder","hideSearch","selectionMode","onSelect","onSelectAll","getIsItemSelected","hideSelectAll","itemMenu","pagination","isFetching","emptyState","emptySearchState","footer","useI18n","useTranslation","Components","useComponentContext","isSearchWithNoResults","handleSearchChange","value","defaultEmptySearch","useMemo","noSearchResults","jsx","DefaultEmptySearchState","resolvedEmptyState","columns","item","firstLastName","dataViewProps","useDataView","jsxs","styles","SearchIcon","DataView","message","Text","Flex"],"mappings":"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"}
@@ -16,10 +16,12 @@ export interface EmployeeTableProps<T extends EmployeeTableItem> {
16
16
  onSearchChange: (value: string) => void;
17
17
  onSearchClear: () => void;
18
18
  searchPlaceholder?: string;
19
+ hideSearch?: boolean;
19
20
  selectionMode?: SelectionMode;
20
21
  onSelect?: (item: T, checked: boolean) => void;
21
22
  onSelectAll?: (checked: boolean, visibleItems: T[]) => void;
22
23
  getIsItemSelected?: (item: T) => boolean;
24
+ hideSelectAll?: boolean;
23
25
  itemMenu?: (item: T) => ReactNode;
24
26
  pagination?: PaginationControlProps;
25
27
  isFetching?: boolean;
@@ -1,7 +1,7 @@
1
- const e = "Add employees to policy", o = "Select the employees you want to add to this policy.", t = "Select the employees you want to add to this holiday pay policy.", i = "Any employees currently assigned to another {{policyType}} policy will be moved to this policy.", l = "paid time off", c = "sick leave", n = "Department", a = "Starting balance (hrs)", s = "Back", p = "Continue", d = { removeEmployeesFailed: "Unable to remove employees from this policy. {{details}}", completePolicyFailed: "Unable to complete this policy. {{details}}" }, y = { title_one: "Remove {{count}} employee from this policy?", title_other: "Remove {{count}} employees from this policy?", description_one: "This employee's balance for this policy will be removed. They can be re-added later.", description_other: "These employees' balances for this policy will be removed. They can be re-added later.", confirmCta: "Remove and save", cancelCta: "Cancel" }, r = { title_one: "Add {{count}} employee to this policy?", title_other: "Add {{count}} employees to this policy?", description_one: "This employee will be added to the policy with the specified starting balance.", description_other: "These employees will be added to the policy with the specified starting balances.", confirmCta: "Add and save", cancelCta: "Cancel" }, m = {
1
+ const e = "Add employees to policy", t = "Select the employees you want to add to this policy.", o = "Select the employees you want to add to this holiday pay policy.", i = "Any employees currently assigned to another {{policyType}} policy will be moved to this policy.", l = "paid time off", c = "sick leave", n = "Department", a = "Starting balance (hrs)", s = "Back", p = "Continue", d = "All eligible employees have already been added to this policy.", y = { completePolicyFailed: "Unable to complete this policy. {{details}}" }, r = { title_one: "Add {{count}} employee to this policy?", title_other: "Add {{count}} employees to this policy?", description_one: "This employee will be added to the policy with the specified starting balance.", description_other: "These employees will be added to the policy with the specified starting balances.", confirmCta: "Add and save", cancelCta: "Cancel" }, h = {
2
2
  title: e,
3
- description: o,
4
- holidayDescription: t,
3
+ description: t,
4
+ holidayDescription: o,
5
5
  reassignmentWarning: i,
6
6
  policyTypeLabel_vacation: l,
7
7
  policyTypeLabel_sick: c,
@@ -9,23 +9,23 @@ const e = "Add employees to policy", o = "Select the employees you want to add t
9
9
  startingBalanceColumn: a,
10
10
  backCta: s,
11
11
  continueCta: p,
12
- errors: d,
13
- removeConfirmDialog: y,
12
+ emptyState: d,
13
+ errors: y,
14
14
  addConfirmDialog: r
15
15
  };
16
16
  export {
17
17
  r as addConfirmDialog,
18
18
  s as backCta,
19
19
  p as continueCta,
20
- m as default,
20
+ h as default,
21
21
  n as departmentColumn,
22
- o as description,
23
- d as errors,
24
- t as holidayDescription,
22
+ t as description,
23
+ d as emptyState,
24
+ y as errors,
25
+ o as holidayDescription,
25
26
  c as policyTypeLabel_sick,
26
27
  l as policyTypeLabel_vacation,
27
28
  i as reassignmentWarning,
28
- y as removeConfirmDialog,
29
29
  a as startingBalanceColumn,
30
30
  e as title
31
31
  };
@@ -1,33 +1,35 @@
1
- const e = "Time Off Policies", o = "Create policy", l = { name: "Name", enrolled: "Enrolled" }, t = "Time off policies", i = { viewPolicy: "View policy", deletePolicy: "Delete policy", menuTrigger: "Actions for {{name}}", menuFor: "Actions for {{name}}" }, c = "Finish setup", a = "All employees", n = "–", y = "{{count}} employee", s = "{{count}} employees", p = "Incomplete", d = "Holiday pay policy", m = { title: 'Are you sure you want to delete the policy "{{name}}"?', description: 'This will delete the policy "{{name}}" and all associated time off requests.', confirmCta: "Delete policy", cancelCta: "Cancel" }, f = { title: "Are you sure you want to delete the company holiday pay policy?", description: "This will delete the company holiday pay policy." }, r = { heading: "You don't have any time off policies", body: "Manage employee time off by creating a policy." }, u = { policyDeleted: 'Policy "{{name}}" deleted successfully', holidayDeleted: "Holiday pay policy deleted successfully", invalidPolicyType: "Please select a valid policy type." }, h = {
1
+ const e = "Time Off Policies", o = "Create policy", l = { name: "Name", enrolled: "Enrolled" }, t = "Time off policies", i = { viewPolicy: "View policy", deletePolicy: "Delete policy", menuTrigger: "Actions for {{name}}", menuFor: "Actions for {{name}}" }, a = "Finish setup", c = "All employees", n = "–", s = "{{count}} employee", y = "{{count}} employees", p = "Incomplete", d = "Holiday pay policy", m = { title: 'Are you sure you want to delete the policy "{{name}}"?', description: 'This will delete the policy "{{name}}" and all associated time off requests.', confirmCta: "Delete policy", cancelCta: "Cancel" }, r = { title: "Are you sure you want to delete the company holiday pay policy?", description: "This will delete the company holiday pay policy." }, f = { heading: "You don't have any time off policies", body: "Manage employee time off by creating a policy." }, u = { policyDeleted: 'Policy "{{name}}" deleted successfully', holidayDeleted: "Holiday pay policy deleted successfully", invalidPolicyType: "Please select a valid policy type." }, h = { pendingRequestsBlockDeletion: '"{{name}}" has pending or approved time off requests. Please decline or cancel those requests before deleting this policy.', deleteFailed: "Unable to delete this policy. Please try again." }, g = {
2
2
  pageTitle: e,
3
3
  createPolicyCta: o,
4
4
  tableHeaders: l,
5
5
  tableLabel: t,
6
6
  actions: i,
7
- finishSetupCta: c,
8
- allEmployeesLabel: a,
7
+ finishSetupCta: a,
8
+ allEmployeesLabel: c,
9
9
  enrolledDash: n,
10
- employeeCount_one: y,
11
- employeeCount_other: s,
10
+ employeeCount_one: s,
11
+ employeeCount_other: y,
12
12
  incompleteBadge: p,
13
13
  holidayPayPolicy: d,
14
14
  deletePolicyDialog: m,
15
- deleteHolidayDialog: f,
16
- emptyState: r,
17
- flash: u
15
+ deleteHolidayDialog: r,
16
+ emptyState: f,
17
+ flash: u,
18
+ errors: h
18
19
  };
19
20
  export {
20
21
  i as actions,
21
- a as allEmployeesLabel,
22
+ c as allEmployeesLabel,
22
23
  o as createPolicyCta,
23
- h as default,
24
- f as deleteHolidayDialog,
24
+ g as default,
25
+ r as deleteHolidayDialog,
25
26
  m as deletePolicyDialog,
26
- y as employeeCount_one,
27
- s as employeeCount_other,
28
- r as emptyState,
27
+ s as employeeCount_one,
28
+ y as employeeCount_other,
29
+ f as emptyState,
29
30
  n as enrolledDash,
30
- c as finishSetupCta,
31
+ h as errors,
32
+ a as finishSetupCta,
31
33
  u as flash,
32
34
  d as holidayPayPolicy,
33
35
  p as incompleteBadge,
@@ -1 +1 @@
1
- {"version":3,"file":"Company.TimeOff.TimeOffPolicies.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Company.TimeOff.TimeOffPolicies.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- const e = "Time off policies", a = "Add employee", o = { vacation: "Paid time off policy", sick: "Sick leave policy" }, r = { employees: "Employees", policyDetails: "Policy details" }, t = "Details", i = "Edit policy", l = { label: "Policy type", vacation: "Paid time off", sick: "Sick leave", custom: "Custom policy", parentalLeave: "Parental leave", weather: "Weather policy", volunteer: "Volunteer policy", personalDay: "Personal day", learningAndDevelopment: "Learning and development", juryDuty: "Jury duty", floatingHoliday: "Floating holiday", bereavement: "Bereavement" }, n = "Policy name", c = "Accrual rate", s = { label: "Accrual type", unlimited: "Unlimited", perPayPeriod: "Fixed", perCalendarYear: "Fixed", perAnniversaryYear: "Fixed", perHourWorked: "Based on hours worked", perHourWorkedNoOvertime: "Based on hours worked", perHourPaid: "Based on hours worked", perHourPaidNoOvertime: "Based on hours worked" }, d = { label: "Accrual rate", unlimited: "-", perPayPeriod: "{{accrualRate}} hour(s) per pay period", perCalendarYear: "{{accrualRate}} hour(s) per calendar year", perAnniversaryYear: "{{accrualRate}} hour(s) per anniversary year", perHourWorked: "{{accrualRate}} hour(s) for every {{accrualRateUnit}} hour(s) worked, including overtime", perHourWorkedNoOvertime: "{{accrualRate}} hour(s) for every {{accrualRateUnit}} hour(s) worked, excluding overtime", perHourPaid: "{{accrualRate}} hour(s) for every {{accrualRateUnit}} hour(s) including overtime and all paid hours", perHourPaidNoOvertime: "{{accrualRate}} hour(s) for every {{accrualRateUnit}} hour(s) worked and all paid hours, excluding overtime" }, m = "Reset date", u = "Policy settings", p = "Change", y = { label: "Accrual maximum", noMaximum: "No maximum", withMaximum: "{{count}} hour(s) per year" }, h = { label: "Balance maximum", noMaximum: "No maximum", withMaximum: "{{count}} hour(s)" }, v = { label: "Carry over limit", noLimit: "No carry over limit", withLimit: "{{count}} hour(s)" }, b = { label: "Waiting period", noPeriod: "No waiting period", withPeriod: "{{count}} day(s)" }, f = { label: "Paid out on termination", yes: "Yes, remaining time off balances for this policy are paid out when an employee is dismissed.", no: "No, remaining time off balances for this policy are not paid out when an employee is dismissed." }, P = { balance: "Balance (hrs)", actions: "Actions", editBalance: "Edit balance", removeEmployee: "Remove employee" }, g = { title: "Add employee to this policy", description: "Select the employees to add to this policy. Employees not shown are either already included or not eligible." }, R = { title: "Edit {{name}} time off balance", balanceLabel: "Balance (hrs)", currentBalance: "Current balance", hoursUnit: "hours", cancelCta: "Cancel", updateCta: "Update balance" }, x = { title: "Remove {{name}} from policy?", alert: "When you remove an employee from a policy, any existing balance is removed.", removeCta: "Remove employee" }, w = { title: "Remove {{count}} employee(s) from policy?", alert: "When you remove an employee from a policy, any existing balance is removed.", removeCta: "Remove employees" }, k = { employeeRemoved: "{{name}} has been removed from the policy.", employeesAdded_one: "{{count}} employee has been added to this policy.", employeesAdded_other: "{{count}} employees have been added to this policy.", balanceUpdated: "{{name}}'s time off balance has been updated." }, C = {
1
+ const e = "Time off policies", a = "Add employee", o = { vacation: "Paid time off policy", sick: "Sick leave policy" }, r = { employees: "Employees", policyDetails: "Policy details" }, t = "Details", i = "Edit policy", l = { label: "Policy type", vacation: "Paid time off", sick: "Sick leave", custom: "Custom policy", parentalLeave: "Parental leave", weather: "Weather policy", volunteer: "Volunteer policy", personalDay: "Personal day", learningAndDevelopment: "Learning and development", juryDuty: "Jury duty", floatingHoliday: "Floating holiday", bereavement: "Bereavement" }, n = "Policy name", c = "Accrual rate", s = { label: "Accrual type", unlimited: "Unlimited", perPayPeriod: "Fixed", perCalendarYear: "Fixed", perAnniversaryYear: "Fixed", perHourWorked: "Based on hours worked", perHourWorkedNoOvertime: "Based on hours worked", perHourPaid: "Based on hours worked", perHourPaidNoOvertime: "Based on hours worked" }, d = { label: "Accrual rate", unlimited: "-", perPayPeriod: "{{accrualRate}} hour(s) per pay period", perCalendarYear: "{{accrualRate}} hour(s) per calendar year", perAnniversaryYear: "{{accrualRate}} hour(s) per anniversary year", perHourWorked: "{{accrualRate}} hour(s) for every {{accrualRateUnit}} hour(s) worked, including overtime", perHourWorkedNoOvertime: "{{accrualRate}} hour(s) for every {{accrualRateUnit}} hour(s) worked, excluding overtime", perHourPaid: "{{accrualRate}} hour(s) for every {{accrualRateUnit}} hour(s) including overtime and all paid hours", perHourPaidNoOvertime: "{{accrualRate}} hour(s) for every {{accrualRateUnit}} hour(s) worked and all paid hours, excluding overtime" }, m = "Reset date", u = "Policy settings", p = "Change", y = { label: "Accrual maximum", noMaximum: "No maximum", withMaximum: "{{count}} hour(s) per year" }, h = { label: "Balance maximum", noMaximum: "No maximum", withMaximum: "{{count}} hour(s)" }, v = { label: "Carry over limit", noLimit: "No carry over limit", withLimit: "{{count}} hour(s)" }, b = { label: "Waiting period", noPeriod: "No waiting period", withPeriod: "{{count}} day(s)" }, f = { label: "Paid out on termination", yes: "Yes, remaining time off balances for this policy are paid out when an employee is dismissed.", no: "No, remaining time off balances for this policy are not paid out when an employee is dismissed." }, x = { balance: "Balance (hrs)", actions: "Actions", editBalance: "Edit balance", removeEmployee: "Remove employee" }, P = { title: "Add employee to this policy", description: "Select the employees to add to this policy. Employees not shown are either already included or not eligible." }, g = { title: "Edit {{name}} time off balance", balanceLabel: "Balance (hrs)", currentBalance: "Current balance", hoursUnit: "hours", cancelCta: "Cancel", updateCta: "Update balance", errors: { balanceExceedsMax: "Balance cannot exceed the policy maximum of {{max}} hours. Reduce the balance or increase the policy's balance maximum.", updateFailed: "Unable to update balance. Please try again." } }, R = { title: "Remove {{name}} from policy?", alert: "When you remove an employee from a policy, any existing balance is removed.", removeCta: "Remove employee" }, w = { title: "Remove {{count}} employee(s) from policy?", alert: "When you remove an employee from a policy, any existing balance is removed.", removeCta: "Remove employees" }, k = { employeeRemoved: "{{name}} has been removed from the policy.", employeesAdded_one: "{{count}} employee has been added to this policy.", employeesAdded_other: "{{count}} employees have been added to this policy.", balanceUpdated: "{{name}}'s time off balance has been updated." }, C = {
2
2
  breadcrumb: e,
3
3
  addEmployeeCta: a,
4
4
  subtitle: o,
@@ -18,10 +18,10 @@ const e = "Time off policies", a = "Add employee", o = { vacation: "Paid time of
18
18
  carryoverLimitHours: v,
19
19
  accrualWaitingPeriodDays: b,
20
20
  paidOutOnTermination: f,
21
- employeeTable: P,
22
- addEmployeeModal: g,
23
- editBalanceModal: R,
24
- removeEmployeeModal: x,
21
+ employeeTable: x,
22
+ addEmployeeModal: P,
23
+ editBalanceModal: g,
24
+ removeEmployeeModal: R,
25
25
  removeEmployeesModal: w,
26
26
  flash: k
27
27
  };
@@ -31,15 +31,15 @@ export {
31
31
  c as accrualRateTitle,
32
32
  b as accrualWaitingPeriodDays,
33
33
  a as addEmployeeCta,
34
- g as addEmployeeModal,
34
+ P as addEmployeeModal,
35
35
  e as breadcrumb,
36
36
  v as carryoverLimitHours,
37
37
  p as changeSettingsCta,
38
38
  C as default,
39
39
  t as details,
40
- R as editBalanceModal,
40
+ g as editBalanceModal,
41
41
  i as editPolicyCta,
42
- P as employeeTable,
42
+ x as employeeTable,
43
43
  k as flash,
44
44
  y as maxAccrualHoursPerYear,
45
45
  h as maxHours,
@@ -47,7 +47,7 @@ export {
47
47
  n as policyName,
48
48
  u as policySettingsTitle,
49
49
  l as policyType,
50
- x as removeEmployeeModal,
50
+ R as removeEmployeeModal,
51
51
  w as removeEmployeesModal,
52
52
  m as resetDate,
53
53
  o as subtitle,
@@ -1,70 +1,78 @@
1
- const e = "+ Add another job", t = "Adjust for minimum wage", o = "Determines whether the compensation should be adjusted for minimum wage. Only applies to Nonexempt employees.", a = "Minimum wage", i = "What minimum wage requirement should compensation be adjusted to", n = { amountColumn: "Amount", deleteCta: "Delete", editCta: "Edit", jobColumn: "Job title", perColumn: "Per", tableLabel: "List of all jobs for the employee", typeColumn: "Pay type" }, s = "Compensation amount", l = "Back", c = "Cancel", m = "Cancel", r = '<ClassificationLink href="https://support.gusto.com/team-management/team-payments/pay-rates/1001671771/Employee-classification-options.htm" target="_blank">Learn more about employee classifications.</ClassificationLink>', d = "Employee type", p = { "Commission Only Exempt": "Commission Only/No Overtime", "Commission Only Nonexempt": "Commission Only/Eligible for overtime", Exempt: "Salary/No overtime", Nonexempt: "Paid by the hour", Owner: "Owner's draw", "Salaried Nonexempt": "Salary/Eligible for overtime" }, h = "Job actions", u = "Job Title", y = "The period over which the compensation amount is tracked (e.g., hourly, daily, weekly, monthly, annually).", f = "Per", b = { Hour: "Hour", Month: "Month", Paycheck: "Paycheck", Week: "Week", Year: "Year" }, C = "Save job", g = "Continue", k = "Compensation", w = "Edit job", v = "Add job", W = "Effective date", L = { editCompensationTitle: "Edit compensation", jobTitleLabel: "Job title", wageLabel: "Wage", wageFrequencyLabel: "Wage frequency", wageFrequencyOptions: { Hour: "Hourly", Week: "Weekly", Month: "Monthly", Year: "Annually", Paycheck: "Per paycheck" }, twoPercentShareholderLabel: "This employee is a 2% shareholder", saveCta: "Save", scheduledClassificationChangeNotification: "Scheduling this classification change will delete the employee's additional jobs when it goes into effect." }, j = { classificationChangeNotification: "Changing this employee's classification will delete the employee's additional pay rates.", exemptThreshold: "Most employees who make under {{limit}}/year should be eligible for overtime.", paymentUnit: "Payment unit must be one of Hour, Week, Month, or Year", rate: "Amount is a required field", nonZeroRate: "Amount must be at least $1.00", rateExemptThreshold: "FLSA Exempt employees must meet salary threshold of {{limit}}/year", title: "Title is a required field", minimumWage: "Please select minimum wage for adjustment", stateWcClassCode: "Please select a risk class code", effectiveDate: "Effective date is a required field", effectiveDateBeforeHire: "Effective date cannot be before the employee's hire date.", jobTitleSentence: "Job title is a required field" }, E = "Workers' compensation coverage", T = "Washington administers <wcLink>workers’ compensation insurance</wcLink> to protect workers and employers from the financial impact of a work-related injury. Indicate here if this employee is exempt from the workers’ comp tax.", x = { yes: "Yes, this employee is covered", no: "No, this employee is not covered" }, P = "Risk class code", S = "The risk class code associated with this employee’s job function. We need this to pay and file your taxes correctly.", N = "Select if employee is a 2% shareholder", O = {
1
+ const e = "+ Add another job", t = "Add another job", o = "Adjust for minimum wage", a = "Determines whether the compensation should be adjusted for minimum wage. Only applies to Nonexempt employees.", i = "Minimum wage", n = "What minimum wage requirement should compensation be adjusted to", s = { amountColumn: "Amount", deleteCta: "Delete", editCta: "Edit", jobColumn: "Job title", perColumn: "Per", tableLabel: "List of all jobs for the employee", typeColumn: "Pay type" }, l = "Compensation amount", r = "Back", c = "Cancel", m = "Cancel", d = '<ClassificationLink href="https://support.gusto.com/team-management/team-payments/pay-rates/1001671771/Employee-classification-options.htm" target="_blank">Learn more about employee classifications.</ClassificationLink>', h = "Employee type", p = { "Commission Only Exempt": "Commission Only/No Overtime", "Commission Only Nonexempt": "Commission Only/Eligible for overtime", Exempt: "Salary/No overtime", Nonexempt: "Paid by the hour", Owner: "Owner's draw", "Salaried Nonexempt": "Salary/Eligible for overtime" }, u = "Job actions", f = "Job Title", y = "The period over which the compensation amount is tracked (e.g., hourly, daily, weekly, monthly, annually).", b = "Wage frequency", C = { Hour: "Hour", Month: "Month", Paycheck: "Paycheck", Week: "Week", Year: "Year" }, g = "Effective date", k = "Changes will take effect on this date.", v = "Start date", w = "Save job", W = "Continue", L = "Compensation", j = "Edit job", D = "Add job", E = "Effective date", T = { editCompensationTitle: "Edit compensation", jobTitleLabel: "Job title", wageLabel: "Wage", wageFrequencyLabel: "Wage frequency", wageFrequencyOptions: { Hour: "Hourly", Week: "Weekly", Month: "Monthly", Year: "Annually", Paycheck: "Per paycheck" }, hireDateLabel: "Hire date", twoPercentShareholderLabel: "This employee is a 2% shareholder", saveCta: "Save" }, x = { effectiveDate: "Effective date is a required field", effectiveDateBeforeHire: "Effective date cannot be before the employee's hire date.", hireDate: "Start date is required", classificationChangeNotification: "Changing this employee's classification will immediately delete their additional jobs.", exemptThreshold: "Most employees who make under {{limit}}/year should be eligible for overtime.", paymentUnit: "Payment unit must be one of Hour, Week, Month, or Year", rate: "Amount is a required field", nonZeroRate: "Amount must be at least $1.00", rateExemptThreshold: "FLSA Exempt employees must meet salary threshold of {{limit}}/year", title: "Title is a required field", minimumWage: "Please select minimum wage for adjustment", stateWcClassCode: "Please select a risk class code", effectiveDateBeforeMin: "Effective date must be in the future", jobTitleSentence: "Job title is a required field" }, S = "Workers' compensation coverage", P = "Washington administers <wcLink>workers’ compensation insurance</wcLink> to protect workers and employers from the financial impact of a work-related injury. Indicate here if this employee is exempt from the workers’ comp tax.", A = { yes: "Yes, this employee is covered", no: "No, this employee is not covered" }, O = "Risk class code", q = "The risk class code associated with this employee’s job function. We need this to pay and file your taxes correctly.", M = "Select if employee is a 2% shareholder", N = {
2
2
  addAnotherJobCta: e,
3
- adjustForMinimumWage: t,
4
- adjustForMinimumWageDescription: o,
5
- minimumWageLabel: a,
6
- minimumWageDescription: i,
7
- allCompensations: n,
8
- amount: s,
9
- backCta: l,
3
+ addAnotherJobTitle: t,
4
+ adjustForMinimumWage: o,
5
+ adjustForMinimumWageDescription: a,
6
+ minimumWageLabel: i,
7
+ minimumWageDescription: n,
8
+ allCompensations: s,
9
+ amount: l,
10
+ backCta: r,
10
11
  cancelCta: c,
11
12
  cancelNewJobCta: m,
12
- classificationLink: r,
13
- employeeClassification: d,
13
+ classificationLink: d,
14
+ employeeClassification: h,
14
15
  flsaStatusLabels: p,
15
- hamburgerTitle: h,
16
- jobTitle: u,
16
+ hamburgerTitle: u,
17
+ jobTitle: f,
17
18
  paymentUnitDescription: y,
18
- paymentUnitLabel: f,
19
- paymentUnitOptions: b,
20
- saveNewJobCta: C,
21
- submitCta: g,
22
- title: k,
23
- editTitle: w,
24
- addTitle: v,
25
- effectiveDateLabel: W,
26
- management: L,
27
- validations: j,
28
- stateWcCoveredLabel: E,
29
- stateWcCoveredDescription: T,
30
- stateWcCoveredOptions: x,
31
- stateWcClassCodeLabel: P,
32
- stateWcClassCodeDescription: S,
33
- twoPercentStakeholderLabel: N
19
+ paymentUnitLabel: b,
20
+ paymentUnitOptions: C,
21
+ effectiveDate: g,
22
+ effectiveDateDescription: k,
23
+ hireDate: v,
24
+ saveNewJobCta: w,
25
+ submitCta: W,
26
+ title: L,
27
+ editTitle: j,
28
+ addTitle: D,
29
+ effectiveDateLabel: E,
30
+ management: T,
31
+ validations: x,
32
+ stateWcCoveredLabel: S,
33
+ stateWcCoveredDescription: P,
34
+ stateWcCoveredOptions: A,
35
+ stateWcClassCodeLabel: O,
36
+ stateWcClassCodeDescription: q,
37
+ twoPercentStakeholderLabel: M
34
38
  };
35
39
  export {
36
40
  e as addAnotherJobCta,
37
- v as addTitle,
38
- t as adjustForMinimumWage,
39
- o as adjustForMinimumWageDescription,
40
- n as allCompensations,
41
- s as amount,
42
- l as backCta,
41
+ t as addAnotherJobTitle,
42
+ D as addTitle,
43
+ o as adjustForMinimumWage,
44
+ a as adjustForMinimumWageDescription,
45
+ s as allCompensations,
46
+ l as amount,
47
+ r as backCta,
43
48
  c as cancelCta,
44
49
  m as cancelNewJobCta,
45
- r as classificationLink,
46
- O as default,
47
- w as editTitle,
48
- W as effectiveDateLabel,
49
- d as employeeClassification,
50
+ d as classificationLink,
51
+ N as default,
52
+ j as editTitle,
53
+ g as effectiveDate,
54
+ k as effectiveDateDescription,
55
+ E as effectiveDateLabel,
56
+ h as employeeClassification,
50
57
  p as flsaStatusLabels,
51
- h as hamburgerTitle,
52
- u as jobTitle,
53
- L as management,
54
- i as minimumWageDescription,
55
- a as minimumWageLabel,
58
+ u as hamburgerTitle,
59
+ v as hireDate,
60
+ f as jobTitle,
61
+ T as management,
62
+ n as minimumWageDescription,
63
+ i as minimumWageLabel,
56
64
  y as paymentUnitDescription,
57
- f as paymentUnitLabel,
58
- b as paymentUnitOptions,
59
- C as saveNewJobCta,
60
- S as stateWcClassCodeDescription,
61
- P as stateWcClassCodeLabel,
62
- T as stateWcCoveredDescription,
63
- E as stateWcCoveredLabel,
64
- x as stateWcCoveredOptions,
65
- g as submitCta,
66
- k as title,
67
- N as twoPercentStakeholderLabel,
68
- j as validations
65
+ b as paymentUnitLabel,
66
+ C as paymentUnitOptions,
67
+ w as saveNewJobCta,
68
+ q as stateWcClassCodeDescription,
69
+ O as stateWcClassCodeLabel,
70
+ P as stateWcCoveredDescription,
71
+ S as stateWcCoveredLabel,
72
+ A as stateWcCoveredOptions,
73
+ W as submitCta,
74
+ L as title,
75
+ M as twoPercentStakeholderLabel,
76
+ x as validations
69
77
  };
70
78
  //# sourceMappingURL=Employee.Compensation.json.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Employee.Compensation.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Employee.Compensation.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,30 +1,32 @@
1
- const e = "Employee Dashboard", t = "Employee dashboard tabs", a = { basicDetails: "Basic details", jobAndPay: "Job and pay", taxes: "Taxes", documents: "Documents" }, n = { title: "Basic details", editCta: "Edit", legalName: "Legal name", startDate: "Start date", socialSecurityNumber: "Social security number", dateOfBirth: "Date of birth", personalEmail: "Personal email" }, o = { title: "Home address", manageCta: "Manage", currentAddress: "Current address", noAddress: "No home address on file" }, i = { title: "Work address", manageCta: "Manage", currentAddress: "Current address", noAddress: "No work address on file" }, d = { compensation: { title: "Compensation", editCta: "Edit", jobTitle: "Job title", type: "Type", types: { hourly: "Hourly/Overtime eligible", salary: "Salary/No overtime" }, wage: "Wage", effectiveDate: "Effective date", addJobCta: "Add job", addAnotherJobCta: "Add another job", tableLabel: "List of jobs", hamburgerTitle: "Job actions", editJobCta: "Edit", deleteJobCta: "Delete", columns: { jobTitle: "Job title", payType: "Pay type", effectiveDate: "Effective date" }, deleteJobDialog: { title: "Delete job?", description: "{{jobTitle}} will be permanently removed.", confirmCta: "Delete", cancelCta: "Cancel" }, emptyState: { title: "No compensation", description: "Compensation will appear here once added" }, pendingChange: { alertLabel: "Compensation will change on {{date}}.", alertLabelWithJob: "Compensation for {{jobTitle}} will change on {{date}}.", summaryLabel: "There are multiple pending changes to {{name}}'s compensation.", reviewCta: "Review", cancelCta: "Cancel change", modal: { title: "Review pending changes", description: "These compensation changes are scheduled to take effect on the dates below. Cancel any change to remove it.", closeCta: "Close" }, details: { titleChange: "Job title will change to {{title}}", payChange: "Pay will change to {{formattedRate}}", flsaChange: "Employee type will change to {{flsaLabel}}", newJob: "{{name}} will start an additional job as {{title}} at {{formattedRate}}", newJobNoTitle: "{{name}} will start an additional job at {{formattedRate}}", newJobNoRate: "{{name}} will start an additional job as {{title}}", newJobMinimal: "{{name}} will start an additional job", minWageEnabled: "Minimum wage adjustment will be enabled at {{formattedWage}}", minWageEnabledNoRate: "Minimum wage adjustment will be enabled", minWageDisabled: "Minimum wage adjustment will be removed", minWageChanged: "Minimum wage adjustment rate will change to {{formattedWage}}", minWageChangedNoRate: "Minimum wage adjustment will change" } } }, payment: { title: "Payment", splitPaycheckCta: "Split paycheck", addBankAccountCta: "Add bank account", listLabel: "List of bank accounts", nickname: "Nickname", routingNumber: "Routing number", accountType: "Account type", emptyState: { title: "No bank accounts", description: "Bank accounts will appear here once added" } }, deductions: { title: "Deductions", addDeductionCta: "Add deduction", listLabel: "List of deductions", deduction: "Deduction", frequency: "Frequency", withhold: "Withheld", recurring: "Recurring", oneTime: "One-time", amountPerPaycheck: "{{value}} per paycheck", emptyState: { title: "No deductions", description: "Employee deductions will appear here" } }, paystubs: { title: "Paystubs", listLabel: "List of paystubs", payday: "Payday", checkAmount: "Check amount", grossPay: "Gross pay", paymentMethod: "Payment method", noPaymentMethod: "Not available", downloadCta: "Download paystub", downloadError: "Unable to download paystub", downloadLoadingMessage: "Generating paystub…", emptyState: { title: "No paystubs", description: "Paystubs will appear here after payroll is run" } } }, s = { federal: { title: "Federal taxes", editCta: "Edit", filingStatus: "Filing status", multipleJobs: "Multiple jobs", dependentsAndOtherCredits: "Dependents and other credits", otherIncome: "Other income", deductions: "Deductions", extraWithholding: "Extra withholding" }, state: { title: "State taxes", editCta: "Edit", noStateTaxes: "No state taxes on file" } }, l = { title: "Forms", listLabel: "List of employee forms", viewCta: "View", columns: { title: "Form", year: "Year", status: "Status", requiresSigning: "Signing status", actions: "Actions" }, signingStatus: { signed: "Signed", notSigned: "Not signed" }, status: { draft: "Draft", final: "Final" }, emptyState: { title: "No forms", description: "Employee forms will appear here once available" } }, c = { yes: "Yes", no: "No" }, r = { bankAccountAdded: "Bank account successfully added.", bankAccountDeleted: "Bank account successfully deleted.", splitUpdated: "Split payment successfully updated.", deductionAdded: "Deduction successfully added.", deductionUpdated: "Deduction successfully updated.", deductionDeleted: "Deduction successfully deleted." }, m = { addJobTitle: "Add a job", editTitle: "Edit compensation", addAnotherJobTitle: "Add another job" }, u = {
1
+ const e = "Employee Dashboard", t = "Employee", a = "Employee dashboard tabs", n = { basicDetails: "Basic details", jobAndPay: "Job and pay", taxes: "Taxes", documents: "Documents" }, o = { title: "Basic details", editCta: "Edit", legalName: "Legal name", startDate: "Start date", socialSecurityNumber: "Social security number", dateOfBirth: "Date of birth", personalEmail: "Personal email" }, i = { title: "Home address", manageCta: "Manage", currentAddress: "Current address", noAddress: "No home address on file" }, d = { title: "Work address", manageCta: "Manage", currentAddress: "Current address", noAddress: "No work address on file" }, s = { compensation: { title: "Compensation", editCta: "Edit", jobTitle: "Job title", type: "Type", types: { hourly: "Hourly/Overtime eligible", salary: "Salary/No overtime" }, wage: "Wage", effectiveDate: "Effective date", addJobCta: "Add job", addAnotherJobCta: "Add another job", tableLabel: "List of jobs", hamburgerTitle: "Job actions", editJobCta: "Edit", deleteJobCta: "Delete", columns: { jobTitle: "Job title", payType: "Pay type", effectiveDate: "Effective date", status: "Status" }, pendingStatus: "Pending", deleteJobDialog: { title: "Delete job?", description: "{{jobTitle}} will be permanently removed.", confirmCta: "Delete", cancelCta: "Cancel" }, emptyState: { title: "No compensation", description: "Compensation will appear here once added" }, pendingChange: { alertLabel: "Compensation will change on {{date}}.", alertLabelWithJob: "Compensation for {{jobTitle}} will change on {{date}}.", summaryLabel: "There are multiple pending changes to {{name}}'s compensation.", reviewCta: "Review", cancelCta: "Cancel change", modal: { title: "Review pending changes", description: "These compensation changes are scheduled to take effect on the dates below. Cancel any change to remove it.", closeCta: "Close" }, details: { titleChange: "Job title will change to {{title}}", payChange: "Pay will change to {{formattedRate}}", flsaChange: "Employee type will change to {{flsaLabel}}", newJob: "{{name}} will start an additional job as {{title}} at {{formattedRate}}", newJobNoTitle: "{{name}} will start an additional job at {{formattedRate}}", newJobNoRate: "{{name}} will start an additional job as {{title}}", newJobMinimal: "{{name}} will start an additional job", minWageEnabled: "Minimum wage adjustment will be enabled at {{formattedWage}}", minWageEnabledNoRate: "Minimum wage adjustment will be enabled", minWageDisabled: "Minimum wage adjustment will be removed", minWageChanged: "Minimum wage adjustment rate will change to {{formattedWage}}", minWageChangedNoRate: "Minimum wage adjustment will change" } } }, payment: { title: "Payment", splitPaycheckCta: "Split paycheck", addBankAccountCta: "Add bank account", listLabel: "List of bank accounts", nickname: "Nickname", routingNumber: "Routing number", accountType: "Account type", emptyState: { title: "No bank accounts", description: "Bank accounts will appear here once added" } }, deductions: { title: "Deductions", addDeductionCta: "Add deduction", listLabel: "List of deductions", deduction: "Deduction", frequency: "Frequency", withhold: "Withheld", recurring: "Recurring", oneTime: "One-time", amountPerPaycheck: "{{value}} per paycheck", emptyState: { title: "No deductions", description: "Employee deductions will appear here" } }, paystubs: { title: "Paystubs", listLabel: "List of paystubs", payday: "Payday", checkAmount: "Check amount", grossPay: "Gross pay", paymentMethod: "Payment method", noPaymentMethod: "Not available", downloadCta: "Download paystub", downloadError: "Unable to download paystub", downloadLoadingMessage: "Generating paystub…", emptyState: { title: "No paystubs", description: "Paystubs will appear here after payroll is run" } } }, l = { federal: { title: "Federal taxes", editCta: "Edit", filingStatus: "Filing status", multipleJobs: "Multiple jobs", dependentsAndOtherCredits: "Dependents and other credits", otherIncome: "Other income", deductions: "Deductions", extraWithholding: "Extra withholding" }, state: { title: "State taxes", editCta: "Edit", noStateTaxes: "No state taxes on file" } }, c = { title: "Forms", listLabel: "List of employee forms", viewCta: "View", columns: { title: "Form", year: "Year", status: "Status", requiresSigning: "Signing status", actions: "Actions" }, signingStatus: { signed: "Signed", notSigned: "Not signed" }, status: { draft: "Draft", final: "Final" }, emptyState: { title: "No forms", description: "Employee forms will appear here once available" } }, r = { yes: "Yes", no: "No" }, m = { bankAccountAdded: "Bank account successfully added.", bankAccountDeleted: "Bank account successfully deleted.", splitUpdated: "Split payment successfully updated.", deductionAdded: "Deduction successfully added.", deductionUpdated: "Deduction successfully updated.", deductionDeleted: "Deduction successfully deleted.", jobAdded: "Job successfully added." }, u = { addJobTitle: "Add a job", editTitle: "Edit compensation", addAnotherJobTitle: "Add another job", saveCta: "Save job" }, b = {
2
2
  title: e,
3
- tabsLabel: t,
4
- tabs: a,
5
- basicDetails: n,
6
- homeAddress: o,
7
- workAddress: i,
8
- jobAndPay: d,
9
- taxes: s,
10
- documents: l,
11
- common: c,
12
- alerts: r,
13
- compensationFlow: m
3
+ employeeRoleLabel: t,
4
+ tabsLabel: a,
5
+ tabs: n,
6
+ basicDetails: o,
7
+ homeAddress: i,
8
+ workAddress: d,
9
+ jobAndPay: s,
10
+ taxes: l,
11
+ documents: c,
12
+ common: r,
13
+ alerts: m,
14
+ compensationFlow: u
14
15
  };
15
16
  export {
16
- r as alerts,
17
- n as basicDetails,
18
- c as common,
19
- m as compensationFlow,
20
- u as default,
21
- l as documents,
22
- o as homeAddress,
23
- d as jobAndPay,
24
- a as tabs,
25
- t as tabsLabel,
26
- s as taxes,
17
+ m as alerts,
18
+ o as basicDetails,
19
+ r as common,
20
+ u as compensationFlow,
21
+ b as default,
22
+ c as documents,
23
+ t as employeeRoleLabel,
24
+ i as homeAddress,
25
+ s as jobAndPay,
26
+ n as tabs,
27
+ a as tabsLabel,
28
+ l as taxes,
27
29
  e as title,
28
- i as workAddress
30
+ d as workAddress
29
31
  };
30
32
  //# sourceMappingURL=Employee.Dashboard.json.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Employee.Dashboard.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Employee.Dashboard.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}