@linzjs/lui 17.16.1 → 17.16.2-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.
Files changed (174) hide show
  1. package/dist/animations/loader-easter.json +2790 -0
  2. package/dist/animations/loader-xmas.json +3813 -0
  3. package/dist/animations/loader.json +1494 -0
  4. package/dist/assets/svg-content.js +323 -0
  5. package/dist/assets/svg-content.js.map +1 -0
  6. package/dist/components/LuiAccordicard/LuiAccordicard.js +55 -0
  7. package/dist/components/LuiAccordicard/LuiAccordicard.js.map +1 -0
  8. package/dist/components/LuiAccordicardStatic/LuiAccordicardStatic.js +17 -0
  9. package/dist/components/LuiAccordicardStatic/LuiAccordicardStatic.js.map +1 -0
  10. package/dist/components/LuiBadge/LuiBadge.d.ts +1 -1
  11. package/dist/components/LuiBadge/LuiBadge.js +4 -0
  12. package/dist/components/LuiBadge/LuiBadge.js.map +1 -0
  13. package/dist/components/LuiBanner/LuiBanner.js +26 -0
  14. package/dist/components/LuiBanner/LuiBanner.js.map +1 -0
  15. package/dist/components/LuiButton/LuiButton.js +38 -0
  16. package/dist/components/LuiButton/LuiButton.js.map +1 -0
  17. package/dist/components/LuiError/LuiError.js +10 -0
  18. package/dist/components/LuiError/LuiError.js.map +1 -0
  19. package/dist/components/LuiErrorPage/LuiErrorPage.js +13 -0
  20. package/dist/components/LuiErrorPage/LuiErrorPage.js.map +1 -0
  21. package/dist/components/LuiExpandableBanner/LuiExpandableBanner.js +54 -0
  22. package/dist/components/LuiExpandableBanner/LuiExpandableBanner.js.map +1 -0
  23. package/dist/components/LuiFilterContainer/LuiFilterContainer.js +20 -0
  24. package/dist/components/LuiFilterContainer/LuiFilterContainer.js.map +1 -0
  25. package/dist/components/LuiFilterMenu/LuiFilterMenu.js +50 -0
  26. package/dist/components/LuiFilterMenu/LuiFilterMenu.js.map +1 -0
  27. package/dist/components/LuiFooter/LuiFooter.js +37 -0
  28. package/dist/components/LuiFooter/LuiFooter.js.map +1 -0
  29. package/dist/components/LuiFormElements/ClearableLuiTextInput/ClearableLuiTextInput.js +21 -0
  30. package/dist/components/LuiFormElements/ClearableLuiTextInput/ClearableLuiTextInput.js.map +1 -0
  31. package/dist/components/LuiFormElements/LuiCheckboxInput/LuiCheckboxInput.js +23 -0
  32. package/dist/components/LuiFormElements/LuiCheckboxInput/LuiCheckboxInput.js.map +1 -0
  33. package/dist/components/LuiFormElements/LuiFileInputBox/LuiFileInputBox.js +90 -0
  34. package/dist/components/LuiFormElements/LuiFileInputBox/LuiFileInputBox.js.map +1 -0
  35. package/dist/components/LuiFormElements/LuiRadioInput/LuiRadioInput.js +41 -0
  36. package/dist/components/LuiFormElements/LuiRadioInput/LuiRadioInput.js.map +1 -0
  37. package/dist/components/LuiFormElements/LuiSelectInput/LuiSelectInput.js +22 -0
  38. package/dist/components/LuiFormElements/LuiSelectInput/LuiSelectInput.js.map +1 -0
  39. package/dist/components/LuiFormElements/LuiTextAreaInput/LuiTextAreaInput.js +20 -0
  40. package/dist/components/LuiFormElements/LuiTextAreaInput/LuiTextAreaInput.js.map +1 -0
  41. package/dist/components/LuiFormElements/LuiTextInput/LuiTextInput.js +29 -0
  42. package/dist/components/LuiFormElements/LuiTextInput/LuiTextInput.js.map +1 -0
  43. package/dist/components/LuiForms/LuiComboSelect/LuiComboSelect.js +54 -0
  44. package/dist/components/LuiForms/LuiComboSelect/LuiComboSelect.js.map +1 -0
  45. package/dist/components/LuiForms/LuiFormSection/LuiFormSectionHeader.js +9 -0
  46. package/dist/components/LuiForms/LuiFormSection/LuiFormSectionHeader.js.map +1 -0
  47. package/dist/components/LuiForms/LuiFormSection/LuiHelpInfo/LuiHelpInfo.js +7 -0
  48. package/dist/components/LuiForms/LuiFormSection/LuiHelpInfo/LuiHelpInfo.js.map +1 -0
  49. package/dist/components/LuiHeader/LuiHeader.js +79 -0
  50. package/dist/components/LuiHeader/LuiHeader.js.map +1 -0
  51. package/dist/components/LuiHeaderMenu/LuiHeaderMenus.js +73 -0
  52. package/dist/components/LuiHeaderMenu/LuiHeaderMenus.js.map +1 -0
  53. package/dist/components/LuiIcon/LuiIcon.js +39 -0
  54. package/dist/components/LuiIcon/LuiIcon.js.map +1 -0
  55. package/dist/components/LuiListBox/LuiListBox.js +60 -0
  56. package/dist/components/LuiListBox/LuiListBox.js.map +1 -0
  57. package/dist/components/LuiListBox/LuiListBoxGroup.js +15 -0
  58. package/dist/components/LuiListBox/LuiListBoxGroup.js.map +1 -0
  59. package/dist/components/LuiListBox/LuiListBoxItem.js +20 -0
  60. package/dist/components/LuiListBox/LuiListBoxItem.js.map +1 -0
  61. package/dist/components/LuiListBox/Renderers/CheckboxItemRenderer.js +10 -0
  62. package/dist/components/LuiListBox/Renderers/CheckboxItemRenderer.js.map +1 -0
  63. package/dist/components/LuiListBox/Renderers/RadioItemRenderer.js +7 -0
  64. package/dist/components/LuiListBox/Renderers/RadioItemRenderer.js.map +1 -0
  65. package/dist/components/LuiListBox/useLuiListBox.js +60 -0
  66. package/dist/components/LuiListBox/useLuiListBox.js.map +1 -0
  67. package/dist/components/LuiLoadingSpinner/LuiLoadingSpinner.js +62 -0
  68. package/dist/components/LuiLoadingSpinner/LuiLoadingSpinner.js.map +1 -0
  69. package/dist/components/LuiLoadingSpinner/LuiLottieLight.js +28 -0
  70. package/dist/components/LuiLoadingSpinner/LuiLottieLight.js.map +1 -0
  71. package/dist/components/LuiMenu/LuiMenu.js +18 -0
  72. package/dist/components/LuiMenu/LuiMenu.js.map +1 -0
  73. package/dist/components/LuiMenuTrigger/LuiMenuTrigger.js +10 -0
  74. package/dist/components/LuiMenuTrigger/LuiMenuTrigger.js.map +1 -0
  75. package/dist/components/LuiModal/LuiModal.js +57 -0
  76. package/dist/components/LuiModal/LuiModal.js.map +1 -0
  77. package/dist/components/LuiModal/LuiModalContext.js +30 -0
  78. package/dist/components/LuiModal/LuiModalContext.js.map +1 -0
  79. package/dist/components/LuiSearchBox/LuiSearchBox.js +67 -0
  80. package/dist/components/LuiSearchBox/LuiSearchBox.js.map +1 -0
  81. package/dist/components/LuiSearchInput/LuiSearchInput.js +184 -0
  82. package/dist/components/LuiSearchInput/LuiSearchInput.js.map +1 -0
  83. package/dist/components/LuiSearchInput/ResultsDisplay.js +38 -0
  84. package/dist/components/LuiSearchInput/ResultsDisplay.js.map +1 -0
  85. package/dist/components/LuiSelectMenu/LuiSelectDataMenu.js +34 -0
  86. package/dist/components/LuiSelectMenu/LuiSelectDataMenu.js.map +1 -0
  87. package/dist/components/LuiSelectMenu/LuiSelectMenu.js +29 -0
  88. package/dist/components/LuiSelectMenu/LuiSelectMenu.js.map +1 -0
  89. package/dist/components/LuiShadow/LuiShadow.js +6 -0
  90. package/dist/components/LuiShadow/LuiShadow.js.map +1 -0
  91. package/dist/components/LuiSidePanel/LuiSidePanel.js +51 -0
  92. package/dist/components/LuiSidePanel/LuiSidePanel.js.map +1 -0
  93. package/dist/components/LuiSidePanel/LuiSidePanelHelper.js +31 -0
  94. package/dist/components/LuiSidePanel/LuiSidePanelHelper.js.map +1 -0
  95. package/dist/components/LuiStaticMessage/LuiStaticMessage.js +17 -0
  96. package/dist/components/LuiStaticMessage/LuiStaticMessage.js.map +1 -0
  97. package/dist/components/LuiSwitchButton/LuiSwitchButton.js +12 -0
  98. package/dist/components/LuiSwitchButton/LuiSwitchButton.js.map +1 -0
  99. package/dist/components/LuiTabs/LuiTab/LuiTab.js +6 -0
  100. package/dist/components/LuiTabs/LuiTab/LuiTab.js.map +1 -0
  101. package/dist/components/LuiTabs/LuiTabs.js +11 -0
  102. package/dist/components/LuiTabs/LuiTabs.js.map +1 -0
  103. package/dist/components/LuiTabs/LuiTabsGroup/LuiTabsGroup.js +6 -0
  104. package/dist/components/LuiTabs/LuiTabsGroup/LuiTabsGroup.js.map +1 -0
  105. package/dist/components/LuiTabs/LuiTabsPanel/LuiTabsPanel.js +16 -0
  106. package/dist/components/LuiTabs/LuiTabsPanel/LuiTabsPanel.js.map +1 -0
  107. package/dist/components/LuiTabs/LuiTabsPanelSwitch/LuiTabsPanelSwitch.js +12 -0
  108. package/dist/components/LuiTabs/LuiTabsPanelSwitch/LuiTabsPanelSwitch.js.map +1 -0
  109. package/dist/components/LuiToastMessage/LuiToastMessage.js +47 -0
  110. package/dist/components/LuiToastMessage/LuiToastMessage.js.map +1 -0
  111. package/dist/components/LuiTooltip/LuiTooltip.js +32 -0
  112. package/dist/components/LuiTooltip/LuiTooltip.js.map +1 -0
  113. package/dist/components/LuiUpdateSplashModal/LuiUpdatesSplashModal.d.ts +1 -1
  114. package/dist/components/LuiUpdateSplashModal/LuiUpdatesSplashModal.js +41 -0
  115. package/dist/components/LuiUpdateSplashModal/LuiUpdatesSplashModal.js.map +1 -0
  116. package/dist/components/common/Hooks.js +51 -0
  117. package/dist/components/common/Hooks.js.map +1 -0
  118. package/dist/components/common/ResponsiveUtils.js +16 -0
  119. package/dist/components/common/ResponsiveUtils.js.map +1 -0
  120. package/dist/components/common/StorybookSupport.js +14 -0
  121. package/dist/components/common/StorybookSupport.js.map +1 -0
  122. package/dist/components/lol/LOLActiveFirmMessage.js +30 -0
  123. package/dist/components/lol/LOLActiveFirmMessage.js.map +1 -0
  124. package/dist/components/lol/LOLAppLauncherMenu.js +86 -0
  125. package/dist/components/lol/LOLAppLauncherMenu.js.map +1 -0
  126. package/dist/components/lol/LOLAuthorisedLink.js +35 -0
  127. package/dist/components/lol/LOLAuthorisedLink.js.map +1 -0
  128. package/dist/components/lol/LOLCommonDrawerMenu.js +58 -0
  129. package/dist/components/lol/LOLCommonDrawerMenu.js.map +1 -0
  130. package/dist/components/lol/LOLDrawerMenuFirmSwitcher.js +21 -0
  131. package/dist/components/lol/LOLDrawerMenuFirmSwitcher.js.map +1 -0
  132. package/dist/components/lol/LOLFirmSwitcher.js +84 -0
  133. package/dist/components/lol/LOLFirmSwitcher.js.map +1 -0
  134. package/dist/components/lol/LOLLogoutLink.js +46 -0
  135. package/dist/components/lol/LOLLogoutLink.js.map +1 -0
  136. package/dist/components/lol/LOLSearchBox.js +105 -0
  137. package/dist/components/lol/LOLSearchBox.js.map +1 -0
  138. package/dist/components/lol/LOLUserLastLogin.js +25 -0
  139. package/dist/components/lol/LOLUserLastLogin.js.map +1 -0
  140. package/dist/components/lol/MockBackendUtils.js +30 -0
  141. package/dist/components/lol/MockBackendUtils.js.map +1 -0
  142. package/dist/components/lol/contexts/LOLGlobalClientRefContext.js +75 -0
  143. package/dist/components/lol/contexts/LOLGlobalClientRefContext.js.map +1 -0
  144. package/dist/components/lol/contexts/LOLUserContext.js +160 -0
  145. package/dist/components/lol/contexts/LOLUserContext.js.map +1 -0
  146. package/dist/components/lol/contexts/LOLUserContextSupport.js +11 -0
  147. package/dist/components/lol/contexts/LOLUserContextSupport.js.map +1 -0
  148. package/dist/components/lol/handlers.js +54 -0
  149. package/dist/components/lol/handlers.js.map +1 -0
  150. package/dist/contexts/LuiMessagingContextProvider.js +38 -0
  151. package/dist/contexts/LuiMessagingContextProvider.js.map +1 -0
  152. package/dist/fonts.js +11 -0
  153. package/dist/fonts.js.map +1 -0
  154. package/dist/hooks/index.js +2 -0
  155. package/dist/hooks/index.js.map +1 -0
  156. package/dist/hooks/useClickedOutsideElement.js +29 -0
  157. package/dist/hooks/useClickedOutsideElement.js.map +1 -0
  158. package/dist/hooks/useDeprecatedWarning.js +9 -0
  159. package/dist/hooks/useDeprecatedWarning.js.map +1 -0
  160. package/dist/index.d.ts +0 -9
  161. package/dist/index.js +5326 -4679
  162. package/dist/index.js.map +1 -1
  163. package/dist/lui.esm.js +5329 -4672
  164. package/dist/lui.esm.js.map +1 -1
  165. package/package.json +18 -19
  166. package/dist/components/LuiBearingInput/LuiBearingInput.d.ts +0 -23
  167. package/dist/components/LuiFormikForms/LuiFormikCheckbox/LuiFormikCheckbox.d.ts +0 -9
  168. package/dist/components/LuiFormikForms/LuiFormikForm.d.ts +0 -10
  169. package/dist/components/LuiFormikForms/LuiFormikFormLabel/LuiFormikFormLabel.d.ts +0 -8
  170. package/dist/components/LuiFormikForms/LuiFormikFormSubmitButton/LuiFormikFormSubmitButton.d.ts +0 -6
  171. package/dist/components/LuiFormikForms/LuiFormikRadioButton/LuiFormikRadioButton.d.ts +0 -8
  172. package/dist/components/LuiFormikForms/LuiFormikRadioGroup/LuiFormikRadioGroup.d.ts +0 -7
  173. package/dist/components/LuiFormikForms/LuiFormikSelect/LuiFormikSelect.d.ts +0 -11
  174. package/dist/components/LuiFormikForms/LuiFormikTextInput/LuiFormikTextInput.d.ts +0 -17
@@ -0,0 +1,35 @@
1
+ import { __awaiter, __generator } from "tslib";
2
+ import React from 'react';
3
+ import { LuiDrawerMenuOption } from '../LuiHeaderMenu/LuiHeaderMenus';
4
+ import ExternalIcon from '../../assets/images/lui-icon-open-externally.svg';
5
+ import { useLOLUserContext } from './contexts/LOLUserContext';
6
+ import clsx from 'clsx';
7
+ import { useDeprecatedWarning } from '../../hooks/useDeprecatedWarning';
8
+ /**
9
+ * Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
10
+ */
11
+ export var LOLAuthorisedLink = function (props) {
12
+ useDeprecatedWarning('LOLAuthorisedLink');
13
+ var hasAnyPrivilege = useLOLUserContext().hasAnyPrivilege;
14
+ var icon = props.icon, activeIcon = props.activeIcon, active = props.active, label = props.label, path = props.path, openExternally = props.openExternally, anyPrivileges = props.anyPrivileges;
15
+ var onClickHandler = function () { return __awaiter(void 0, void 0, void 0, function () {
16
+ return __generator(this, function (_a) {
17
+ if (openExternally) {
18
+ window.open(path, '_blank');
19
+ }
20
+ else {
21
+ window.location.assign(path);
22
+ }
23
+ return [2 /*return*/];
24
+ });
25
+ }); };
26
+ if (!hasAnyPrivilege(anyPrivileges)) {
27
+ return null;
28
+ }
29
+ return (React.createElement("div", { className: clsx('LOLAuthorisedLink', active && 'active') },
30
+ React.createElement(LuiDrawerMenuOption, { icon: React.createElement("div", { className: active
31
+ ? 'LOLAuthorisedLink-icon-active'
32
+ : 'LOLAuthorisedLink-icon' },
33
+ React.createElement("img", { src: active ? activeIcon : icon, alt: label, style: { width: '48px', height: '48px' } })), label: label, onClick: onClickHandler, badge: openExternally ? (React.createElement("img", { src: ExternalIcon, alt: "Link opens in a new tab", style: { width: '16px', height: '16px', marginTop: '16px' } })) : (React.createElement(React.Fragment, null)) })));
34
+ };
35
+ //# sourceMappingURL=LOLAuthorisedLink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LOLAuthorisedLink.js","sourceRoot":"","sources":["../../../src/components/lol/LOLAuthorisedLink.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,YAAY,MAAM,kDAAkD,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAexE;;GAEG;AACH,MAAM,CAAC,IAAM,iBAAiB,GAAG,UAC/B,KAA6B;IAE7B,oBAAoB,CAAC,mBAAmB,CAAC,CAAC;IAClC,IAAA,eAAe,GAAK,iBAAiB,EAAE,gBAAxB,CAAyB;IAE9C,IAAA,IAAI,GAOF,KAAK,KAPH,EACJ,UAAU,GAMR,KAAK,WANG,EACV,MAAM,GAKJ,KAAK,OALD,EACN,KAAK,GAIH,KAAK,MAJF,EACL,IAAI,GAGF,KAAK,KAHH,EACJ,cAAc,GAEZ,KAAK,eAFO,EACd,aAAa,GACX,KAAK,cADM,CACL;IAEV,IAAM,cAAc,GAAG;;YACrB,IAAI,cAAc,EAAE;gBAClB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;aAC7B;iBAAM;gBACL,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;aAC9B;;;SACF,CAAC;IAEF,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC,EAAE;QACnC,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,6BAAK,SAAS,EAAE,IAAI,CAAC,mBAAmB,EAAE,MAAM,IAAI,QAAQ,CAAC;QAC3D,oBAAC,mBAAmB,IAClB,IAAI,EACF,6BACE,SAAS,EACP,MAAM;oBACJ,CAAC,CAAC,+BAA+B;oBACjC,CAAC,CAAC,wBAAwB;gBAG9B,6BACE,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,EAC/B,GAAG,EAAE,KAAK,EACV,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GACxC,CACE,EAER,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,cAAc,EACvB,KAAK,EACH,cAAc,CAAC,CAAC,CAAC,CACf,6BACE,GAAG,EAAE,YAAY,EACjB,GAAG,EAAC,yBAAyB,EAC7B,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAC3D,CACH,CAAC,CAAC,CAAC,CACF,yCAAK,CACN,GAEH,CACE,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,58 @@
1
+ import { __assign, __rest } from "tslib";
2
+ import React from 'react';
3
+ import { LOLAppLauncherMenu, } from './LOLAppLauncherMenu';
4
+ import { LOLDrawerMenuFirmSwitcher } from './LOLDrawerMenuFirmSwitcher';
5
+ import { LOLUserLastLogin } from './LOLUserLastLogin';
6
+ import { LOLLogoutLink } from './LOLLogoutLink';
7
+ import { useLOLUserContext } from './contexts/LOLUserContext';
8
+ import { LuiDrawerMenuDivider, LuiDrawerMenu, LuiDrawerMenuOption, } from '../LuiHeaderMenu/LuiHeaderMenus';
9
+ import ExternalIcon from '../../assets/images/lui-icon-open-externally.svg';
10
+ import { useDeprecatedWarning } from '../../hooks/useDeprecatedWarning';
11
+ /**
12
+ * Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
13
+ */
14
+ export var LOLDrawerMenu = function (props) {
15
+ useDeprecatedWarning('LOLDrawerMenu');
16
+ return (React.createElement(LuiDrawerMenu, { hasStickyHeader: props.hasStickyHeader },
17
+ React.createElement("div", { className: "LOLDrawerMenu" },
18
+ React.createElement("div", { className: "LOLDrawerMenu-contents" }, props.children),
19
+ React.createElement("div", { className: "LOLDrawerMenu-footer" },
20
+ React.createElement(LOLUserLastLogin, null)))));
21
+ };
22
+ export var LOLCommonDrawerMenu = function (props) {
23
+ var appSpecificLinks = props.appSpecificLinks, appSpecificSections = props.appSpecificSections, path = props.path, hasStickyHeader = props.hasStickyHeader, showRequestsLink = props.showRequestsLink, restOfProps = __rest(props, ["appSpecificLinks", "appSpecificSections", "path", "hasStickyHeader", "showRequestsLink"]);
24
+ return (React.createElement(LOLDrawerMenu, { hasStickyHeader: hasStickyHeader },
25
+ appSpecificSections,
26
+ React.createElement(LOLAppLauncherMenu, __assign({ pathname: path }, restOfProps)),
27
+ React.createElement(LOLDrawerMenuFirmSwitcher, { minimumFilterCount: 5 }),
28
+ showRequestsLink && (React.createElement(React.Fragment, null,
29
+ React.createElement(LuiDrawerMenuDivider, null),
30
+ React.createElement(LOLCommonMenuRequestsLink, null))),
31
+ appSpecificLinks && (React.createElement(React.Fragment, null,
32
+ React.createElement(LuiDrawerMenuDivider, null),
33
+ appSpecificLinks)),
34
+ React.createElement(LuiDrawerMenuDivider, null),
35
+ React.createElement(LOLCommonDrawerMenuAfterLinks, { path: path })));
36
+ };
37
+ export var LOLCommonDrawerMenuAfterLinks = function (props) {
38
+ var isInternal = useLOLUserContext().isInternal;
39
+ var path = props.path;
40
+ var contextPath = path.substr(0, path.indexOf('/', 1));
41
+ var gotoLink = function (url) {
42
+ window.location.assign(url);
43
+ };
44
+ return (React.createElement(React.Fragment, null,
45
+ !isInternal() && (React.createElement(LuiDrawerMenuOption, { label: "Change password", onClick: function () {
46
+ gotoLink("/manage/my-preferences?redirectPath=".concat(encodeURIComponent(path)));
47
+ } })),
48
+ React.createElement(LOLLogoutLink, { redirectPath: function () { return contextPath; } })));
49
+ };
50
+ var LOLCommonMenuRequestsLink = function () {
51
+ var openRequestsApp = function () {
52
+ window.open('/requests', '_blank');
53
+ };
54
+ return (React.createElement(LuiDrawerMenuOption, { label: 'Create request', onClick: function () {
55
+ openRequestsApp();
56
+ }, badge: React.createElement("img", { src: ExternalIcon, alt: "Link opens in a new tab", style: { width: '16px', height: '16px', marginTop: '4px' } }) }));
57
+ };
58
+ //# sourceMappingURL=LOLCommonDrawerMenu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LOLCommonDrawerMenu.js","sourceRoot":"","sources":["../../../src/components/lol/LOLCommonDrawerMenu.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EACL,kBAAkB,GAEnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,mBAAmB,GACpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,YAAY,MAAM,kDAAkD,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE;;GAEG;AACH,MAAM,CAAC,IAAM,aAAa,GAAG,UAAC,KAG7B;IACC,oBAAoB,CAAC,eAAe,CAAC,CAAC;IACtC,OAAO,CACL,oBAAC,aAAa,IAAC,eAAe,EAAE,KAAK,CAAC,eAAe;QACnD,6BAAK,SAAS,EAAC,eAAe;YAC5B,6BAAK,SAAS,EAAC,wBAAwB,IAAE,KAAK,CAAC,QAAQ,CAAO;YAC9D,6BAAK,SAAS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CACL;QACG,CAAC,UAAU,EAAE,IAAI,CAChB,oBAAC,mBAAmB,IAClB,KAAK,EAAC,iBAAiB,EACvB,OAAO,EAAE;gBACP,QAAQ,CACN,8CAAuC,kBAAkB,CAAC,IAAI,CAAC,CAAE,CAClE,CAAC;YACJ,CAAC,GACD,CACH;QACD,oBAAC,aAAa,IAAC,YAAY,EAAE,cAAM,OAAA,WAAW,EAAX,CAAW,GAAI,CACjD,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,IAAM,yBAAyB,GAAG;IAChC,IAAM,eAAe,GAAG;QACtB,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IACrC,CAAC,CAAC;IAEF,OAAO,CACL,oBAAC,mBAAmB,IAClB,KAAK,EAAE,gBAAgB,EACvB,OAAO,EAAE;YACP,eAAe,EAAE,CAAC;QACpB,CAAC,EACD,KAAK,EACH,6BACE,GAAG,EAAE,YAAY,EACjB,GAAG,EAAC,yBAAyB,EAC7B,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,GAC1D,GAEJ,CACH,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import { useLOLUserContext } from './contexts/LOLUserContext';
3
+ import { LOLFirmSwitcherMenuContent } from './LOLFirmSwitcher';
4
+ import { useDeprecatedWarning } from '../../hooks/useDeprecatedWarning';
5
+ /**
6
+ * Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
7
+ */
8
+ export var LOLDrawerMenuFirmSwitcher = function (props) {
9
+ useDeprecatedWarning('LOLDrawerMenuFirmSwitcher');
10
+ var minimumFilterCount = props.minimumFilterCount;
11
+ var _a = useLOLUserContext(), user = _a.user, selectedFirm = _a.selectedFirm, changeFirm = _a.changeFirm;
12
+ var firms = user === null || user === void 0 ? void 0 : user.firms;
13
+ if (!firms || !selectedFirm) {
14
+ return null;
15
+ }
16
+ if (firms.length < 2) {
17
+ return null;
18
+ }
19
+ return (React.createElement(LOLFirmSwitcherMenuContent, { firms: firms, selectedFirm: selectedFirm, changeFirm: changeFirm, collapsible: true, minimumFilterCount: minimumFilterCount }));
20
+ };
21
+ //# sourceMappingURL=LOLDrawerMenuFirmSwitcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LOLDrawerMenuFirmSwitcher.js","sourceRoot":"","sources":["../../../src/components/lol/LOLDrawerMenuFirmSwitcher.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAMxE;;GAEG;AACH,MAAM,CAAC,IAAM,yBAAyB,GAElC,UAAC,KAAK;IACR,oBAAoB,CAAC,2BAA2B,CAAC,CAAC;IAC1C,IAAA,kBAAkB,GAAK,KAAK,mBAAV,CAAW;IAC/B,IAAA,KAAqC,iBAAiB,EAAE,EAAtD,IAAI,UAAA,EAAE,YAAY,kBAAA,EAAE,UAAU,gBAAwB,CAAC;IAC/D,IAAM,KAAK,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,CAAC;IAE1B,IAAI,CAAC,KAAK,IAAI,CAAC,YAAY,EAAE;QAC3B,OAAO,IAAI,CAAC;KACb;IAED,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;QACpB,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,oBAAC,0BAA0B,IACzB,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,IAAI,EACjB,kBAAkB,EAAE,kBAAkB,GACtC,CACH,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,84 @@
1
+ import { __assign, __awaiter, __generator, __rest } from "tslib";
2
+ import React, { useCallback, useState } from 'react';
3
+ import { LuiHeaderMenuItem } from '../LuiHeader/LuiHeader';
4
+ import { useLOLUserContext } from './contexts/LOLUserContext';
5
+ import { LuiDrawerMenuSection, LuiDropdownMenu, } from '../LuiHeaderMenu/LuiHeaderMenus';
6
+ import { LuiFilterContainer } from '../LuiFilterContainer/LuiFilterContainer';
7
+ import { useLOLGlobalClientRefContext } from './contexts/LOLGlobalClientRefContext';
8
+ import { useDeprecatedWarning } from '../../hooks/useDeprecatedWarning';
9
+ /**
10
+ * Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
11
+ */
12
+ export var LOLFirmSwitcherMenu = function (_a) {
13
+ var _b = _a.showClientRef, showClientRef = _b === void 0 ? false : _b, restOfProps = __rest(_a, ["showClientRef"]);
14
+ useDeprecatedWarning('LOLFirmSwitcherMenu');
15
+ var _c = useLOLUserContext(), user = _c.user, selectedFirm = _c.selectedFirm, changeFirm = _c.changeFirm, isInternal = _c.isInternal;
16
+ var clientRef = useLOLGlobalClientRefContext().clientRef;
17
+ var firms = user.firms;
18
+ var clientRefElement = showClientRef ? (React.createElement(React.Fragment, null,
19
+ React.createElement("br", null),
20
+ React.createElement("span", null,
21
+ "Client Ref: ",
22
+ clientRef))) : null;
23
+ var label = isInternal() ? (React.createElement("div", { className: "LOLFirmSwitcherMenu-header" },
24
+ user.id,
25
+ clientRefElement)) : (React.createElement("div", { className: "LOLFirmSwitcherMenu-header" },
26
+ selectedFirm && (React.createElement(React.Fragment, null,
27
+ React.createElement("span", null, selectedFirm.name),
28
+ React.createElement("br", null))),
29
+ React.createElement("span", null,
30
+ "User ID: ",
31
+ user.id),
32
+ clientRefElement));
33
+ var dropdownMenuProps = __assign(__assign({}, restOfProps), { label: label });
34
+ if (firms.length < 2) {
35
+ return React.createElement(LuiHeaderMenuItem, __assign({}, dropdownMenuProps));
36
+ }
37
+ return (React.createElement(LuiDropdownMenu, __assign({}, dropdownMenuProps),
38
+ React.createElement(LOLFirmSwitcherMenuContent, { firms: firms, selectedFirm: selectedFirm, changeFirm: changeFirm })));
39
+ };
40
+ export var LOLFirmSwitcherMenuContent = function (_a) {
41
+ var firms = _a.firms, selectedFirm = _a.selectedFirm, changeFirm = _a.changeFirm, _b = _a.collapsible, collapsible = _b === void 0 ? false : _b, _c = _a.minimumFilterCount, minimumFilterCount = _c === void 0 ? 5 : _c;
42
+ var showFilter = firms.length >= minimumFilterCount;
43
+ return (React.createElement(LuiDrawerMenuSection, { title: "Switch account", collapsible: collapsible && showFilter },
44
+ React.createElement(FirmSwitcher, { options: firms, selectedId: selectedFirm === null || selectedFirm === void 0 ? void 0 : selectedFirm.id, onSelect: function (id) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
45
+ return [2 /*return*/, changeFirm(id)];
46
+ }); }); }, showFilter: showFilter })));
47
+ };
48
+ export var FirmOption = function (_a) {
49
+ var _b = _a.value, id = _b.id, name = _b.name, onSelect = _a.onSelect, selected = _a.selected, disabled = _a.disabled;
50
+ return (React.createElement("div", { className: 'LOLFirmSwitcherMenu-option', onClick: function () { return onSelect(id); }, "aria-disabled": disabled, "data-testid": "firm-".concat(id) },
51
+ React.createElement("span", null, name),
52
+ selected && React.createElement("i", { className: "material-icons-round" }, "check_circle")));
53
+ };
54
+ var FirmSwitcher = function (_a) {
55
+ var options = _a.options, selectedId = _a.selectedId, onSelect = _a.onSelect, _b = _a.showFilter, showFilter = _b === void 0 ? true : _b;
56
+ var _c = useState(false), busy = _c[0], setBusy = _c[1];
57
+ var onSelectInternal = function (optionId) { return __awaiter(void 0, void 0, void 0, function () {
58
+ return __generator(this, function (_a) {
59
+ switch (_a.label) {
60
+ case 0:
61
+ if (!!busy) return [3 /*break*/, 2];
62
+ setBusy(true);
63
+ return [4 /*yield*/, onSelect(optionId)];
64
+ case 1:
65
+ _a.sent();
66
+ setBusy(false);
67
+ _a.label = 2;
68
+ case 2: return [2 /*return*/];
69
+ }
70
+ });
71
+ }); };
72
+ var filterFunction = useCallback(function (filterString) {
73
+ var upperCaseFilterString = filterString.trim().toUpperCase();
74
+ return options.filter(function (firm) {
75
+ return firm.name.toUpperCase().includes(upperCaseFilterString);
76
+ });
77
+ }, [options]);
78
+ var renderFunction = function (filteredOptions) {
79
+ return (React.createElement(React.Fragment, null, filteredOptions.map(function (option) { return (React.createElement(FirmOption, { key: option.id, value: option, selected: option.id === selectedId, onSelect: onSelectInternal, disabled: busy })); })));
80
+ };
81
+ return (React.createElement("div", { className: "LOLFirmSwitcherMenu" },
82
+ React.createElement(LuiFilterContainer, { showFilter: showFilter, filterFunction: filterFunction, renderFunction: renderFunction })));
83
+ };
84
+ //# sourceMappingURL=LOLFirmSwitcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LOLFirmSwitcher.js","sourceRoot":"","sources":["../../../src/components/lol/LOLFirmSwitcher.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAS,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAEL,oBAAoB,EACpB,eAAe,GAChB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAMxE;;GAEG;AACH,MAAM,CAAC,IAAM,mBAAmB,GAE5B,UAAC,EAAyC;IAAvC,IAAA,qBAAqB,EAArB,aAAa,mBAAG,KAAK,KAAA,EAAK,WAAW,cAAvC,iBAAyC,CAAF;IAC1C,oBAAoB,CAAC,qBAAqB,CAAC,CAAC;IACtC,IAAA,KAAiD,iBAAiB,EAAE,EAAlE,IAAI,UAAA,E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K,CAAC,CAAC;;;;;SAElB,CAAC;IAEF,IAAM,cAAc,GAAG,WAAW,CAChC,UAAC,YAAoB;QACnB,IAAM,qBAAqB,GAAG,YAAY,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QAChE,OAAO,OAAO,CAAC,MAAM,CAAC,UAAC,IAAI;YACzB,OAAA,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;QAAvD,CAAuD,CACxD,CAAC;IACJ,CAAC,EACD,CAAC,OAAO,CAAC,CACV,CAAC;IAEF,IAAM,cAAc,GAAG,UAAC,eAAwB;QAC9C,OAAO,CACL,0CACG,eAAe,CAAC,GAAG,CAAC,UAAC,MAAM,IAAK,OAAA,CAC/B,oBAAC,UAAU,IACT,GAAG,EAAE,MAAM,CAAC,EAAE,EACd,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,CAAC,EAAE,KAAK,UAAU,EAClC,QAAQ,EAAE,gBAAgB,EAC1B,QAAQ,EAAE,IAAI,GACd,CACH,EARgC,CAQhC,CAAC,CACD,CACJ,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CACL,6BAAK,SAAS,EAAC,qBAAqB;QAClC,oBAAC,kBAAkB,IACjB,UAAU,EAAE,UAAU,EACtB,cAAc,EAAE,cAAc,EAC9B,cAAc,EAAE,cAAc,GAC9B,CACE,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,46 @@
1
+ import { __awaiter, __generator } from "tslib";
2
+ import React from 'react';
3
+ import { LuiDrawerMenuOption } from '../LuiHeaderMenu/LuiHeaderMenus';
4
+ import { useLOLUserContext } from './contexts/LOLUserContext';
5
+ import { useDeprecatedWarning } from '../../hooks/useDeprecatedWarning';
6
+ /**
7
+ * Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
8
+ */
9
+ export var LOLLogoutLink = function (props) {
10
+ useDeprecatedWarning('LOLLogoutLink');
11
+ var redirectPathString = props.redirectPath();
12
+ var user = useLOLUserContext().user;
13
+ if (!user) {
14
+ return null;
15
+ }
16
+ var logout = function () { return __awaiter(void 0, void 0, void 0, function () {
17
+ var _a, res;
18
+ return __generator(this, function (_b) {
19
+ switch (_b.label) {
20
+ case 0:
21
+ _a = props.callBackBeforeLogout;
22
+ if (!_a) return [3 /*break*/, 2];
23
+ return [4 /*yield*/, props.callBackBeforeLogout()];
24
+ case 1:
25
+ _a = (_b.sent()) === false;
26
+ _b.label = 2;
27
+ case 2:
28
+ if (_a) {
29
+ return [2 /*return*/];
30
+ }
31
+ return [4 /*yield*/, fetch('/auth/api/logout')];
32
+ case 3:
33
+ res = _b.sent();
34
+ if (res.status === 200) {
35
+ window.location.assign("/auth/login?redirectPath=".concat(redirectPathString));
36
+ }
37
+ else {
38
+ // TODO: determine best handling of logout endpoint returning non-OK
39
+ }
40
+ return [2 /*return*/];
41
+ }
42
+ });
43
+ }); };
44
+ return React.createElement(LuiDrawerMenuOption, { label: "Logout ".concat(user.id), onClick: logout });
45
+ };
46
+ //# sourceMappingURL=LOLLogoutLink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LOLLogoutLink.js","sourceRoot":"","sources":["../../../src/components/lol/LOLLogoutLink.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAQxE;;GAEG;AACH,MAAM,CAAC,IAAM,aAAa,GAAG,UAAC,KAAY;IACxC,oBAAoB,CAAC,eAAe,CAAC,CAAC;IACtC,IAAM,kBAAkB,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC;IACxC,IAAA,IAAI,GAAK,iBAAiB,EAAE,KAAxB,CAAyB;IAErC,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,IAAI,CAAC;KACb;IAED,IAAM,MAAM,GAAG;;;;;oBAEX,KAAA,KAAK,CAAC,oBAAoB,CAAA;6BAA1B,wBAA0B;oBACzB,qBAAM,KAAK,CAAC,oBAAoB,EAAE,EAAA;;oBAAnC,KAAA,CAAC,SAAkC,CAAC,KAAK,KAAK,CAAA;;;oBAFhD,QAGE;wBACA,sBAAO;qBACR;oBAEW,qBAAM,KAAK,CAAC,kBAAkB,CAAC,EAAA;;oBAArC,GAAG,GAAG,SAA+B;oBAC3C,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG,EAAE;wBACtB,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,mCAA4B,kBAAkB,CAAE,CAAC,CAAC;qBAC1E;yBAAM;wBACL,oEAAoE;qBACrE;;;;SACF,CAAC;IACF,OAAO,oBAAC,mBAAmB,IAAC,KAAK,EAAE,iBAAU,IAAK,CAAC,EAAE,CAAE,EAAE,OAAO,EAAE,MAAM,GAAI,CAAC;AAC/E,CAAC,CAAC"}
@@ -0,0 +1,105 @@
1
+ import React from 'react';
2
+ import { LuiSearchBox } from '../LuiSearchBox/LuiSearchBox';
3
+ import { useDeprecatedWarning } from '../../hooks/useDeprecatedWarning';
4
+ var exampleSearchResults = [
5
+ {
6
+ id: 'DP44035-1',
7
+ description: 'This is a example Newlands search result'
8
+ },
9
+ {
10
+ id: 'DP44035-2',
11
+ description: 'This is a example Newlands search result 2'
12
+ },
13
+ ];
14
+ var getDefaultOptions = function (input) {
15
+ if (input) {
16
+ var results_1 = exampleSearchResults.filter(function (item) {
17
+ return item.description.toUpperCase().includes(input.toUpperCase());
18
+ });
19
+ return new Promise(function (resolve) {
20
+ setTimeout(function () { return resolve(results_1); }, 250);
21
+ });
22
+ }
23
+ else {
24
+ return Promise.resolve([]);
25
+ }
26
+ };
27
+ var defaultSelectOption = function (selectedOption) {
28
+ console.log('SELECTED OPTION: ', selectedOption);
29
+ };
30
+ var resultStyle = { verticalAlign: 'middle' };
31
+ var defaultRenderItem = function (item) {
32
+ return React.createElement("span", { style: resultStyle }, item.description);
33
+ };
34
+ var searchBoxOptions = [
35
+ {
36
+ groupTitle: 'Title',
37
+ value: 'address',
38
+ title: 'Address',
39
+ name: 'address',
40
+ placeholderText: 'Enter a place, street or address. e.g. Newlands',
41
+ disclaimer: 'This is a default disclaimer, add your own search options',
42
+ getOption: getDefaultOptions,
43
+ onSelectOption: defaultSelectOption,
44
+ renderItem: defaultRenderItem
45
+ },
46
+ {
47
+ value: 'titleReference',
48
+ title: 'Title Reference',
49
+ placeholderText: 'Enter a title reference e.g. TN117/154',
50
+ getOption: getDefaultOptions,
51
+ onSelectOption: defaultSelectOption
52
+ },
53
+ {
54
+ value: 'ownerName',
55
+ title: 'Registered Owner',
56
+ placeholderText: 'Enter owners name',
57
+ getOption: getDefaultOptions,
58
+ onSelectOption: defaultSelectOption
59
+ },
60
+ {
61
+ value: 'lgdId',
62
+ title: 'Legal Description',
63
+ placeholderText: 'Example: Lot 2 DP 1234',
64
+ getOption: getDefaultOptions,
65
+ onSelectOption: defaultSelectOption
66
+ },
67
+ {
68
+ value: 'parcelId',
69
+ title: 'Parcel ID',
70
+ placeholderText: 'Enter a parcel id e.g 93851642',
71
+ disclaimer: 'testdd2',
72
+ getOption: getDefaultOptions,
73
+ onSelectOption: defaultSelectOption
74
+ },
75
+ {
76
+ groupTitle: 'Survey',
77
+ groupDivider: true,
78
+ value: 'surveyNumber',
79
+ title: 'Survey number',
80
+ placeholderText: 'Enter a survey number, e.g. DP 44035',
81
+ getOption: getDefaultOptions,
82
+ onSelectOption: defaultSelectOption
83
+ },
84
+ {
85
+ groupTitle: 'Instrument',
86
+ groupDivider: true,
87
+ value: 'instrumentNumber',
88
+ title: 'Instrument Number',
89
+ placeholderText: 'Example: 7723502.2',
90
+ getOption: getDefaultOptions,
91
+ onSelectOption: defaultSelectOption
92
+ },
93
+ ];
94
+ export var getDefaultSearchMenuOptions = function () {
95
+ return searchBoxOptions;
96
+ };
97
+ /**
98
+ * Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
99
+ */
100
+ export var LOLSearchBox = function (_a) {
101
+ var searchBoxOptions = _a.searchBoxOptions, initOptionValue = _a.initOptionValue, onMenuSelect = _a.onMenuSelect;
102
+ useDeprecatedWarning('LOLSearchBox');
103
+ return (React.createElement(LuiSearchBox, { onMenuSelect: onMenuSelect, initOptionValue: initOptionValue, searchBoxOptions: searchBoxOptions ? searchBoxOptions : getDefaultSearchMenuOptions() }));
104
+ };
105
+ //# sourceMappingURL=LOLSearchBox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LOLSearchBox.js","sourceRoot":"","sources":["../../../src/components/lol/LOLSearchBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAqB,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE,IAAM,oBAAoB,GAAG;IAC3B;QACE,EAAE,EAAE,WAAW;QACf,WAAW,EAAE,0CAA0C;KACxD;IACD;QACE,EAAE,EAAE,WAAW;QACf,WAAW,EAAE,4CAA4C;KAC1D;CACF,CAAC;AAEF,IAAM,iBAAiB,GAAgD,UACrE,KAAa;IAEb,IAAI,KAAK,EAAE;QACT,IAAM,SAAO,GAAG,oBAAoB,CAAC,MAAM,CAAC,UAAC,IAAI;YAC/C,OAAO,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC;QACtE,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,OAAO,CAAC,UAAC,OAAO;YACzB,UAAU,CAAC,cAAM,OAAA,OAAO,CAAC,SAAO,CAAC,EAAhB,CAAgB,EAAE,GAAG,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAC;KACJ;SAAM;QACL,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;KAC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AY,EAAE,IAAI;QAClB,KAAK,EAAE,cAAc;QACrB,KAAK,EAAE,eAAe;QACtB,eAAe,EAAE,sCAAsC;QACvD,SAAS,EAAE,iBAAiB;QAC5B,cAAc,EAAE,mBAAmB;KACpC;IAED;QACE,UAAU,EAAE,YAAY;QACxB,YAAY,EAAE,IAAI;QAClB,KAAK,EAAE,kBAAkB;QACzB,KAAK,EAAE,mBAAmB;QAC1B,eAAe,EAAE,oBAAoB;QACrC,SAAS,EAAE,iBAAiB;QAC5B,cAAc,EAAE,mBAAmB;KACpC;CACF,CAAC;AAEF,MAAM,CAAC,IAAM,2BAA2B,GAAG;IACzC,OAAO,gBAAgB,CAAC;AAC1B,CAAC,CAAC;AAQF;;GAEG;AACH,MAAM,CAAC,IAAM,YAAY,GAAG,UAAC,EAIR;QAHnB,gBAAgB,sBAAA,EAChB,eAAe,qBAAA,EACf,YAAY,kBAAA;IAEZ,oBAAoB,CAAC,cAAc,CAAC,CAAC;IACrC,OAAO,CACL,oBAAC,YAAY,IACX,YAAY,EAAE,YAAY,EAC1B,eAAe,EAAE,eAAe,EAChC,gBAAgB,EACd,gBAAgB,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,2BAA2B,EAAE,GAErE,CACH,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import { useLOLUserContext } from './contexts/LOLUserContext';
3
+ import { useDeprecatedWarning } from '../../hooks/useDeprecatedWarning';
4
+ /**
5
+ * Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
6
+ */
7
+ export var LOLUserLastLogin = function () {
8
+ var _a;
9
+ useDeprecatedWarning('LOLUserLastLogin');
10
+ var lastLogin;
11
+ var context = useLOLUserContext();
12
+ var lastLoginISO = (_a = context === null || context === void 0 ? void 0 : context.user) === null || _a === void 0 ? void 0 : _a.lastLogin;
13
+ lastLogin = lastLoginISO
14
+ ? new Date(lastLoginISO).toLocaleString('en-NZ')
15
+ : null;
16
+ return (React.createElement("div", { className: "LOLUserLastLogin lui-padding-left-xxs lui-padding-right-xxs" },
17
+ React.createElement("small", null,
18
+ React.createElement("span", null,
19
+ React.createElement("strong", null,
20
+ "Last login: ",
21
+ lastLogin)),
22
+ React.createElement("br", null),
23
+ React.createElement("span", null, "Not you? Please, call us on 0800 665 463"))));
24
+ };
25
+ //# sourceMappingURL=LOLUserLastLogin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LOLUserLastLogin.js","sourceRoot":"","sources":["../../../src/components/lol/LOLUserLastLogin.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE;;GAEG;AACH,MAAM,CAAC,IAAM,gBAAgB,GAEzB;;IACF,oBAAoB,CAAC,kBAAkB,CAAC,CAAC;IACzC,IAAI,SAAS,CAAC;IACd,IAAM,OAAO,GAAG,iBAAiB,EAAE,CAAC;IAEpC,IAAM,YAAY,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,0CAAE,SAAS,CAAC;IAC9C,SAAS,GAAG,YAAY;QACtB,CAAC,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC;QAChD,CAAC,CAAC,IAAI,CAAC;IAET,OAAO,CACL,6BAAK,SAAS,EAAC,6DAA6D;QAC1E;YACE;gBACE;;oBAAqB,SAAS,CAAU,CACnC;YACP,+BAAM;YACN,6EAAqD,CAC/C,CACJ,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { rest } from 'msw';
2
+ import { setupServer } from 'msw/node';
3
+ export var server = setupServer();
4
+ export var Api = {
5
+ LOGIN: { handler: rest.post, pathname: '/auth/api/login' },
6
+ LOGOUT: { handler: rest.get, pathname: '/auth/api/logout' },
7
+ GET_USER_INFO: { handler: rest.get, pathname: '/auth/api/userinfo' }
8
+ };
9
+ export var mockBackend = function (_a, resolver) {
10
+ var handler = _a.handler, pathname = _a.pathname;
11
+ var mockFn = jest.fn(resolver);
12
+ server.use(handler(pathname, mockFn));
13
+ return mockFn;
14
+ };
15
+ export var unauthorised = {
16
+ status: 403,
17
+ body: {
18
+ errorMessage: 'Not authorized'
19
+ }
20
+ };
21
+ var isResponse = function (response) {
22
+ return typeof response === 'object';
23
+ };
24
+ export var response = function (response) {
25
+ var _a = isResponse(response) ? response : response(), status = _a.status, body = _a.body;
26
+ return function (_, res, ctx) {
27
+ return res(ctx.status(status), ctx.json(body));
28
+ };
29
+ };
30
+ //# sourceMappingURL=MockBackendUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MockBackendUtils.js","sourceRoot":"","sources":["../../../src/components/lol/MockBackendUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,IAAI,EAAe,MAAM,KAAK,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAIvC,MAAM,CAAC,IAAM,MAAM,GAAG,WAAW,EAAE,CAAC;AAUpC,MAAM,CAAC,IAAM,GAAG,GAAG;IACjB,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,iBAAiB,EAAE;IAC1D,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE,QAAQ,EAAE,kBAAkB,EAAE;IAC3D,aAAa,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE,QAAQ,EAAE,oBAAoB,EAAE;CACrE,CAAC;AAEF,MAAM,CAAC,IAAM,WAAW,GAAG,UACzB,EAA2B,EAC3B,QAAuE;QADrE,OAAO,aAAA,EAAE,QAAQ,cAAA;IAGnB,IAAM,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;IACjC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,YAAY,GAAwC;IAC/D,MAAM,EAAE,GAAG;IACX,IAAI,EAAE;QACJ,YAAY,EAAE,gBAAgB;KAC/B;CACF,CAAC;AAOF,IAAM,UAAU,GAAG,UACjB,QAA2D;IAE3D,OAAO,OAAQ,QAAgC,KAAK,QAAQ,CAAC;AAC/D,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,QAAQ,GAAG,UACtB,QAA2D;IAErD,IAAA,KAAmB,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE,EAA7D,MAAM,YAAA,EAAE,IAAI,UAAiD,CAAC;IAEtE,OAAO,UAAC,CAAC,EAAE,GAAG,EAAE,GAAG;QACjB,OAAO,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,IAAI,CAAW,IAAI,CAAC,CAAC,CAAC;IAC3D,CAAC,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,75 @@
1
+ import React, { useCallback, useContext, useEffect, useState } from 'react';
2
+ import { useLOLUserContext } from './LOLUserContext';
3
+ import { useDeprecatedWarning } from '../../../hooks/useDeprecatedWarning';
4
+ export function useLOLGlobalClientRefContext() {
5
+ return useContext(LOLGlobalClientRefContext);
6
+ }
7
+ export var LOLGlobalClientRefContext = React.createContext({
8
+ clientRef: '',
9
+ changeClientRef: function () {
10
+ // no-op
11
+ }
12
+ });
13
+ /**
14
+ * Deprecated: this is Landonline specific and has been moved to https://github.com/linz/landonline-common-js
15
+ */
16
+ export var LOLGlobalClientRefContextProvider = function (props) {
17
+ useDeprecatedWarning('LOLGlobalClientRefContextProvider');
18
+ var useUserIdAsClientReference = props.useUserIdAsClientReference;
19
+ var _a = useLOLUserContext(), user = _a.user, selectedFirm = _a.selectedFirm;
20
+ var _b = useState(''), clientRef = _b[0], setClientRef = _b[1];
21
+ var _c = useState(undefined), lastSelectedFirmId = _c[0], setLastSelectedFirmId = _c[1];
22
+ var changeClientRef = useCallback(function (clientRef) {
23
+ setClientRef(clientRef);
24
+ setGlobalClientRefCache(clientRef);
25
+ }, []);
26
+ useEffect(function () {
27
+ if (!user) {
28
+ return;
29
+ }
30
+ var cachedClientRef = getGlobalClientRefCache();
31
+ var clientRef = '';
32
+ if (cachedClientRef === null && useUserIdAsClientReference) {
33
+ clientRef = user.id;
34
+ }
35
+ else if (cachedClientRef !== null) {
36
+ clientRef = cachedClientRef;
37
+ }
38
+ setClientRef(clientRef);
39
+ setGlobalClientRefCache(clientRef);
40
+ setLastSelectedFirmId(selectedFirm === null || selectedFirm === void 0 ? void 0 : selectedFirm.id);
41
+ }, [user, selectedFirm, useUserIdAsClientReference]);
42
+ useEffect(function () {
43
+ if (!selectedFirm ||
44
+ !lastSelectedFirmId ||
45
+ selectedFirm.id === lastSelectedFirmId) {
46
+ return;
47
+ }
48
+ // Reset client reference when changing firm
49
+ changeClientRef(useUserIdAsClientReference ? user.id : '');
50
+ setLastSelectedFirmId(selectedFirm.id);
51
+ }, [
52
+ user,
53
+ selectedFirm,
54
+ lastSelectedFirmId,
55
+ changeClientRef,
56
+ useUserIdAsClientReference,
57
+ ]);
58
+ return (React.createElement(LOLGlobalClientRefContext.Provider, { value: {
59
+ clientRef: clientRef,
60
+ changeClientRef: changeClientRef
61
+ } }, props.children));
62
+ };
63
+ export var GLOBAL_CLIENT_REFERENCE_KEY = 'globalClientReference';
64
+ export function getGlobalClientRefCache() {
65
+ return window.sessionStorage.getItem(GLOBAL_CLIENT_REFERENCE_KEY);
66
+ }
67
+ export function setGlobalClientRefCache(clientReference) {
68
+ if (clientReference === null) {
69
+ window.sessionStorage.removeItem(GLOBAL_CLIENT_REFERENCE_KEY);
70
+ }
71
+ else {
72
+ window.sessionStorage.setItem(GLOBAL_CLIENT_REFERENCE_KEY, clientReference);
73
+ }
74
+ }
75
+ //# sourceMappingURL=LOLGlobalClientRefContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LOLGlobalClientRefContext.js","sourceRoot":"","sources":["../../../../src/components/lol/contexts/LOLGlobalClientRefContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAO3E,MAAM,UAAU,4BAA4B;IAC1C,OAAO,UAAU,CAAC,yBAAyB,CAAC,CAAC;AAC/C,CAAC;AAED,MAAM,CAAC,IAAM,yBAAyB,GAAG,KAAK,CAAC,aAAa,CAC1D;IACE,SAAS,EAAE,EAAE;IACb,eAAe,EAAE;QACf,QAAQ;IACV,CAAC;CACF,CACF,CAAC;AAUF;;GAEG;AACH,MAAM,CAAC,IAAM,iCAAiC,GAAG,UAC/C,KAAkD;IAElD,oBAAoB,CAAC,mCAAmC,CAAC,CAAC;IAClD,IAAA,0BAA0B,GAAK,KAAK,2BAAV,CAAW;IACvC,IAAA,KAAyB,iBAAiB,EAAE,EAA1C,IAAI,UAAA,EAAE,YAAY,kBAAwB,CAAC;IAC7C,IAAA,KAA4B,QAAQ,CAAS,EAAE,CAAC,EAA/C,SAAS,QAAA,EAAE,YAAY,QAAwB,CAAC;IACjD,IAAA,KAA8C,QAAQ,CAE1D,SAAS,CAAC,EAFL,kBAAkB,QAAA,EAAE,qBAAqB,QAEpC,CAAC;IAEb,IAAM,eAAe,GAAG,WAAW,CAAC,UAAC,SAAiB;QACpD,YAAY,CAAC,SAAS,CAAC,CAAC;QACxB,uBAAuB,CAAC,SAAS,CAAC,CAAC;IACrC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,SAAS,CAAC;QACR,IAAI,CAAC,I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