@bigbinary/neeto-approvals-frontend 1.0.0 → 1.0.1

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.
@@ -46,7 +46,8 @@
46
46
  "waitingFor": "Waiting for",
47
47
  "templateDetails": "Template details",
48
48
  "field": "Field",
49
- "noDataHelpText": "Here is how you can use <a>{{entity, anyCase}}.</a>"
49
+ "noDataHelpText": "Here is how you can use <a>{{entity, anyCase}}</a>.",
50
+ "noDataHelpTextLearnMore": "Learn more about <a>{{entity, anyCase}}</a>."
50
51
  },
51
52
  "validations": {
52
53
  "limitExceeded": "You have exceeded the limit of {{limit}} characters for the {{what}}.",
package/dist/index.cjs.js CHANGED
@@ -596,7 +596,8 @@ var RequestDetailsPane = function RequestDetailsPane(_ref) {
596
596
  function ownKeys$a(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
597
597
  function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$a(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
598
598
  var History = function History(_ref) {
599
- var requestUrl = _ref.requestUrl;
599
+ var helpDocUrl = _ref.helpDocUrl,
600
+ requestUrl = _ref.requestUrl;
600
601
  var _useState = React.useState(DEFAULT_FILTER_VALUES),
601
602
  _useState2 = _slicedToArray(_useState, 2),
602
603
  filters = _useState2[0],
@@ -664,6 +665,22 @@ var History = function History(_ref) {
664
665
  }) : /*#__PURE__*/jsxRuntime.jsx("div", {
665
666
  className: "flex h-full w-full flex-grow items-center justify-center",
666
667
  children: /*#__PURE__*/jsxRuntime.jsx(NoData__default["default"], {
668
+ helpText: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
669
+ i18nKey: "neetoApprovals.common.noDataHelpTextLearnMore",
670
+ style: "link",
671
+ values: {
672
+ entity: t("neetoApprovals.common.history")
673
+ },
674
+ components: {
675
+ a: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
676
+ style: "link",
677
+ target: "_blank",
678
+ to: {
679
+ pathname: helpDocUrl
680
+ }
681
+ })
682
+ }
683
+ }),
667
684
  title: t("neetoApprovals.common.notFound_", {
668
685
  what: t("neetoApprovals.common.record", constants.PLURAL)
669
686
  })
@@ -685,7 +702,8 @@ var PENDING_TABLE_COLUMNS = neetoCist.removeBy({
685
702
  function ownKeys$9(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
686
703
  function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
687
704
  var PendingRequests = function PendingRequests(_ref) {
688
- var requestUrl = _ref.requestUrl;
705
+ var helpDocUrl = _ref.helpDocUrl,
706
+ requestUrl = _ref.requestUrl;
689
707
  var _useState = React.useState(DEFAULT_FILTER_VALUES),
690
708
  _useState2 = _slicedToArray(_useState, 2),
691
709
  filters = _useState2[0],
@@ -747,6 +765,22 @@ var PendingRequests = function PendingRequests(_ref) {
747
765
  }) : /*#__PURE__*/jsxRuntime.jsx("div", {
748
766
  className: "flex h-full w-full flex-grow items-center justify-center",
749
767
  children: /*#__PURE__*/jsxRuntime.jsx(NoData__default["default"], {
768
+ helpText: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
769
+ i18nKey: "neetoApprovals.common.noDataHelpTextLearnMore",
770
+ style: "link",
771
+ components: {
772
+ a: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
773
+ style: "link",
774
+ target: "_blank",
775
+ to: {
776
+ pathname: helpDocUrl
777
+ }
778
+ })
779
+ },
780
+ values: {
781
+ entity: t("neetoApprovals.common.pendingApproval", constants.PLURAL)
782
+ }
783
+ }),
750
784
  title: t("neetoApprovals.common.notFound_", {
751
785
  what: t("neetoApprovals.common.pendingApproval", constants.PLURAL)
752
786
  })
@@ -1146,12 +1180,13 @@ var renderNoDataHelpText = function renderNoDataHelpText(_ref) {
1146
1180
  url = _ref.url;
1147
1181
  return /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
1148
1182
  i18nKey: "neetoApprovals.common.noDataHelpText",
1183
+ style: "link",
1149
1184
  values: {
1150
- entity: entity
1185
+ entity: entity.toLocaleLowerCase()
1151
1186
  },
1152
1187
  components: {
1153
- a: /*#__PURE__*/jsxRuntime.jsx(reactRouterDom.Link, {
1154
- className: "neeto-ui-text-primary-600 underline",
1188
+ a: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
1189
+ style: "link",
1155
1190
  target: "_blank",
1156
1191
  to: {
1157
1192
  pathname: url