@cerebruminc/cerebellum 11.2.2 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/lib/cjs/{AddMenu-64ef6b8c.js → AddMenu-093967a3.js} +3 -3
- package/lib/cjs/AddMenu-093967a3.js.map +1 -0
- package/lib/cjs/AddMenu.cjs +9 -8
- package/lib/cjs/AddMenu.cjs.map +1 -1
- package/lib/cjs/{AddressInput-a192ebc6.js → AddressInput-c28e1b52.js} +1071 -993
- package/lib/{esm/AddressInput-8408e58c.js.map → cjs/AddressInput-c28e1b52.js.map} +1 -1
- package/lib/cjs/AddressInput.cjs +5 -4
- package/lib/cjs/AddressInput.cjs.map +1 -1
- package/lib/cjs/ArrowUp.cjs +0 -1
- package/lib/cjs/ArrowUp.cjs.map +1 -1
- package/lib/cjs/CheckboxCellWrapper.cjs +8 -80
- package/lib/cjs/CheckboxCellWrapper.cjs.map +1 -1
- package/lib/cjs/{CheckboxGroup-61c52880.js → CheckboxGroup-f6c7bde4.js} +2 -2
- package/lib/cjs/CheckboxGroup-f6c7bde4.js.map +1 -0
- package/lib/cjs/CheckboxGroup.cjs +2 -2
- package/lib/cjs/{CheckboxItem-41bbef33.js → CheckboxItem-7f16206d.js} +1 -1
- package/lib/cjs/CheckboxItem-7f16206d.js.map +1 -0
- package/lib/cjs/CheckboxItem.cjs +1 -1
- package/lib/cjs/{ClearableTag-de4fe183.js → ClearableTag-99e97cdb.js} +3 -3
- package/lib/cjs/{ClearableTag-de4fe183.js.map → ClearableTag-99e97cdb.js.map} +1 -1
- package/lib/cjs/ClearableTag.cjs +2 -2
- package/lib/cjs/{ColorDotDropdown-88523aa4.js → ColorDotDropdown-ed4d3a83.js} +2 -2
- package/lib/cjs/ColorDotDropdown-ed4d3a83.js.map +1 -0
- package/lib/cjs/ColorDotDropdown.cjs +12 -11
- package/lib/cjs/ColorDotDropdown.cjs.map +1 -1
- package/lib/cjs/{ColorPicker-c1fdfef3.js → ColorPicker-6a8a9952.js} +2 -2
- package/lib/cjs/ColorPicker-6a8a9952.js.map +1 -0
- package/lib/cjs/ColorPicker.cjs +2 -2
- package/lib/cjs/{ConfigurableInput-0404c82f.js → ConfigurableInput-7a10129c.js} +3 -3
- package/lib/cjs/ConfigurableInput-7a10129c.js.map +1 -0
- package/lib/cjs/ConfigurableInput.cjs +8 -7
- package/lib/cjs/ConfigurableInput.cjs.map +1 -1
- package/lib/cjs/{ConfirmModal-85aa1730.js → ConfirmModal-f4521187.js} +2 -2
- package/lib/cjs/ConfirmModal-f4521187.js.map +1 -0
- package/lib/cjs/ConfirmModal.cjs +2 -2
- package/lib/cjs/{ConfirmationModal-d0a8b41b.js → ConfirmationModal-20ee2fbf.js} +2 -2
- package/lib/cjs/ConfirmationModal-20ee2fbf.js.map +1 -0
- package/lib/cjs/ConfirmationModal.cjs +2 -2
- package/lib/cjs/{CountyDropdown-ccadc69d.js → CountyDropdown-01e1ae92.js} +2 -2
- package/lib/cjs/CountyDropdown-01e1ae92.js.map +1 -0
- package/lib/cjs/CountyDropdown.cjs +12 -11
- package/lib/cjs/CountyDropdown.cjs.map +1 -1
- package/lib/cjs/{CreditCardInput-110e1b0f.js → CreditCardInput-fea0eacc.js} +3 -3
- package/lib/cjs/CreditCardInput-fea0eacc.js.map +1 -0
- package/lib/cjs/CreditCardInput.cjs +4 -4
- package/lib/cjs/{CurrencyInput-615f2339.js → CurrencyInput-6e332f97.js} +3 -3
- package/lib/cjs/CurrencyInput-6e332f97.js.map +1 -0
- package/lib/cjs/CurrencyInput.cjs +4 -4
- package/lib/cjs/DatePicker.cjs +10 -8
- package/lib/cjs/DatePicker.cjs.map +1 -1
- package/lib/cjs/{DescriptiveDropdownInput-83591eb7.js → DescriptiveDropdownInput-e5168c60.js} +3 -3
- package/lib/cjs/{DescriptiveDropdownInput-83591eb7.js.map → DescriptiveDropdownInput-e5168c60.js.map} +1 -1
- package/lib/cjs/DescriptiveDropdownInput.cjs +8 -7
- package/lib/cjs/DescriptiveDropdownInput.cjs.map +1 -1
- package/lib/cjs/{DescriptiveSwitchMenu-0d88ec59.js → DescriptiveSwitchMenu-1d4b2ad8.js} +5 -4
- package/lib/cjs/DescriptiveSwitchMenu-1d4b2ad8.js.map +1 -0
- package/lib/cjs/DescriptiveSwitchMenu.cjs +3 -2
- package/lib/cjs/DescriptiveSwitchMenu.cjs.map +1 -1
- package/lib/cjs/{DialogHandler-1427e882.js → DialogHandler-5793470b.js} +3 -3
- package/lib/cjs/{DialogHandler-1427e882.js.map → DialogHandler-5793470b.js.map} +1 -1
- package/lib/cjs/DialogHandler.cjs +7 -7
- package/lib/cjs/{Drawer-98706b47.js → Drawer-8207f39d.js} +3 -3
- package/lib/cjs/{Drawer-98706b47.js.map → Drawer-8207f39d.js.map} +1 -1
- package/lib/cjs/Drawer.cjs +4 -4
- package/lib/cjs/{DropdownInput-623658c4.js → DropdownInput-63ae74a8.js} +3 -3
- package/lib/cjs/DropdownInput-63ae74a8.js.map +1 -0
- package/lib/cjs/DropdownInput.cjs +11 -10
- package/lib/cjs/DropdownInput.cjs.map +1 -1
- package/lib/cjs/{EmailInput-91f2b622.js → EmailInput-a209e14b.js} +3 -3
- package/lib/cjs/EmailInput-a209e14b.js.map +1 -0
- package/lib/cjs/EmailInput.cjs +4 -4
- package/lib/cjs/{FiltersBar-90bccccc.js → FiltersBar-476dedef.js} +3 -3
- package/lib/cjs/FiltersBar-476dedef.js.map +1 -0
- package/lib/cjs/FiltersBar.cjs +5 -5
- package/lib/cjs/Form.cjs +38 -36
- package/lib/cjs/Form.cjs.map +1 -1
- package/lib/cjs/{FormStyles-a203f5d9.js → FormStyles-e5443bf8.js} +3 -3
- package/lib/cjs/{FormStyles-a203f5d9.js.map → FormStyles-e5443bf8.js.map} +1 -1
- package/lib/cjs/FormWrapper.cjs +4 -3
- package/lib/cjs/FormWrapper.cjs.map +1 -1
- package/lib/cjs/{FormikContainer-bb766863.js → FormikContainer-c8bb8398.js} +28 -28
- package/lib/cjs/{FormikContainer-bb766863.js.map → FormikContainer-c8bb8398.js.map} +1 -1
- package/lib/cjs/{IconSwitcher-b1335974.js → IconSwitcher-645d4a08.js} +3 -3
- package/lib/cjs/{IconSwitcher-b1335974.js.map → IconSwitcher-645d4a08.js.map} +1 -1
- package/lib/cjs/IconSwitcher.cjs +10 -9
- package/lib/cjs/IconSwitcher.cjs.map +1 -1
- package/lib/cjs/{IconTile-082fe747.js → IconTile-bd724c43.js} +2 -2
- package/lib/cjs/IconTile-bd724c43.js.map +1 -0
- package/lib/cjs/IconTile.cjs +3 -3
- package/lib/cjs/{ImagePicker-bce1f622.js → ImagePicker-511ec76c.js} +3 -3
- package/lib/cjs/{ImagePicker-bce1f622.js.map → ImagePicker-511ec76c.js.map} +1 -1
- package/lib/cjs/ImagePicker.cjs +6 -6
- package/lib/cjs/{InlineCreditCardInput-af5a069f.js → InlineCreditCardInput-749284b4.js} +2 -2
- package/lib/cjs/{InlineCreditCardInput-af5a069f.js.map → InlineCreditCardInput-749284b4.js.map} +1 -1
- package/lib/cjs/InlineCreditCardInput.cjs +2 -2
- package/lib/cjs/{InlineCurrencyInput-21ca9a84.js → InlineCurrencyInput-0ea77ddc.js} +2 -2
- package/lib/cjs/InlineCurrencyInput-0ea77ddc.js.map +1 -0
- package/lib/cjs/InlineCurrencyInput.cjs +2 -2
- package/lib/cjs/{InlineDatePicker-69418d03.js → InlineDatePicker-96cffe99.js} +42 -39
- package/lib/cjs/{InlineDatePicker-69418d03.js.map → InlineDatePicker-96cffe99.js.map} +1 -1
- package/lib/cjs/InlineDatePicker.cjs +10 -8
- package/lib/cjs/InlineDatePicker.cjs.map +1 -1
- package/lib/cjs/{InlineDescriptiveDropdown-9d9e30ba.js → InlineDescriptiveDropdown-c90497b0.js} +4 -4
- package/lib/cjs/{InlineDescriptiveDropdown-9d9e30ba.js.map → InlineDescriptiveDropdown-c90497b0.js.map} +1 -1
- package/lib/cjs/InlineDescriptiveDropdown.cjs +8 -7
- package/lib/cjs/InlineDescriptiveDropdown.cjs.map +1 -1
- package/lib/cjs/{InlineDropdown-a105a638.js → InlineDropdown-0d10be76.js} +4 -4
- package/lib/cjs/InlineDropdown-0d10be76.js.map +1 -0
- package/lib/cjs/InlineDropdown.cjs +10 -9
- package/lib/cjs/InlineDropdown.cjs.map +1 -1
- package/lib/cjs/{InlineEmailInput-b20d972a.js → InlineEmailInput-f7f57a91.js} +2 -2
- package/lib/cjs/InlineEmailInput-f7f57a91.js.map +1 -0
- package/lib/cjs/InlineEmailInput.cjs +2 -2
- package/lib/cjs/{InlineInput-32236399.js → InlineInput-b5f03319.js} +3 -3
- package/lib/cjs/{InlineInput-32236399.js.map → InlineInput-b5f03319.js.map} +1 -1
- package/lib/cjs/InlineInput.cjs +1 -1
- package/lib/cjs/InlineInputButton.cjs +3 -3
- package/lib/cjs/InlinePasswordInput.cjs +3 -3
- package/lib/cjs/{InlinePhoneInput-44fd467f.js → InlinePhoneInput-e0d92ad2.js} +2 -2
- package/lib/cjs/{InlinePhoneInput-44fd467f.js.map → InlinePhoneInput-e0d92ad2.js.map} +1 -1
- package/lib/cjs/InlinePhoneInput.cjs +2 -2
- package/lib/cjs/InlineSsnInput.cjs +1 -1
- package/lib/cjs/InlineTextarea.cjs +0 -1
- package/lib/cjs/InlineTextarea.cjs.map +1 -1
- package/lib/cjs/InlineZipCodeInput.cjs +1 -1
- package/lib/cjs/{Input-ae515514.js → Input-d1fd386c.js} +3 -3
- package/lib/cjs/Input-d1fd386c.js.map +1 -0
- package/lib/cjs/InputButton.cjs +3 -3
- package/lib/cjs/{LogoSidebar-4ec31040.js → LogoSidebar-e1cd9ed5.js} +2 -2
- package/lib/cjs/LogoSidebar-e1cd9ed5.js.map +1 -0
- package/lib/cjs/LogoSidebar.cjs +2 -2
- package/lib/cjs/{Modal-a0e09702.js → Modal-c5859a5b.js} +2 -6
- package/lib/cjs/{Modal-a0e09702.js.map → Modal-c5859a5b.js.map} +1 -1
- package/lib/cjs/Modal.cjs +1 -1
- package/lib/cjs/{MultiSelect-fb811d9b.js → MultiSelect-ae158520.js} +3 -3
- package/lib/cjs/{MultiSelect-fb811d9b.js.map → MultiSelect-ae158520.js.map} +1 -1
- package/lib/cjs/MultiSelect.cjs +11 -10
- package/lib/cjs/MultiSelect.cjs.map +1 -1
- package/lib/cjs/NotFound.cjs +0 -1
- package/lib/cjs/NotFound.cjs.map +1 -1
- package/lib/cjs/PasswordInput.cjs +3 -3
- package/lib/cjs/PhoneCell.cjs +6 -78
- package/lib/cjs/PhoneCell.cjs.map +1 -1
- package/lib/cjs/{PhoneInput-db484188.js → PhoneInput-b1a040e0.js} +3 -3
- package/lib/cjs/PhoneInput-b1a040e0.js.map +1 -0
- package/lib/cjs/PhoneInput.cjs +4 -4
- package/lib/cjs/{RJSForm-37b20383.js → RJSForm-1543f2dc.js} +8 -8
- package/lib/cjs/{RJSForm-37b20383.js.map → RJSForm-1543f2dc.js.map} +1 -1
- package/lib/cjs/RJSForm.cjs +20 -18
- package/lib/cjs/RJSForm.cjs.map +1 -1
- package/lib/cjs/{RJSFormRenderer-ca67d88d.js → RJSFormRenderer-9f056767.js} +2 -2
- package/lib/cjs/{RJSFormRenderer-ca67d88d.js.map → RJSFormRenderer-9f056767.js.map} +1 -1
- package/lib/cjs/RJSFormRenderer.cjs +3 -3
- package/lib/cjs/Radio-eb655a9b.js +24 -0
- package/lib/cjs/Radio-eb655a9b.js.map +1 -0
- package/lib/cjs/Radio.cjs +2 -1
- package/lib/cjs/Radio.cjs.map +1 -1
- package/lib/cjs/{RadioGroup-83e22272.js → RadioGroup-5999841f.js} +2 -2
- package/lib/cjs/RadioGroup-5999841f.js.map +1 -0
- package/lib/cjs/RadioGroup.cjs +4 -3
- package/lib/cjs/RadioGroup.cjs.map +1 -1
- package/lib/cjs/{RadioItem-ae4d8a2f.js → RadioItem-5709e5ae.js} +6 -5
- package/lib/cjs/RadioItem-5709e5ae.js.map +1 -0
- package/lib/cjs/RadioItem.cjs +3 -2
- package/lib/cjs/RadioItem.cjs.map +1 -1
- package/lib/cjs/{Radio-4ef8e27f.js → RadioStyles-384c584e.js} +2 -18
- package/lib/cjs/RadioStyles-384c584e.js.map +1 -0
- package/lib/cjs/{SearchInput-aa38f9d2.js → SearchInput-840e3198.js} +2 -2
- package/lib/cjs/{SearchInput-aa38f9d2.js.map → SearchInput-840e3198.js.map} +1 -1
- package/lib/cjs/SearchInput.cjs +2 -2
- package/lib/cjs/{SearchMenu-bf22b7d8.js → SearchMenu-e9bb000f.js} +6 -6
- package/lib/cjs/{SearchMenu-bf22b7d8.js.map → SearchMenu-e9bb000f.js.map} +1 -1
- package/lib/cjs/SearchMenu.cjs +8 -7
- package/lib/cjs/SearchMenu.cjs.map +1 -1
- package/lib/cjs/{SelectSearch-1e4a6fc5.js → SelectSearch-82749b35.js} +4 -4
- package/lib/cjs/{SelectSearch-1e4a6fc5.js.map → SelectSearch-82749b35.js.map} +1 -1
- package/lib/cjs/SelectSearch.cjs +10 -9
- package/lib/cjs/SelectSearch.cjs.map +1 -1
- package/lib/cjs/{SnackContainer-19acf90d.js → SnackContainer-342c8165.js} +27 -11
- package/lib/cjs/{SnackContainer-19acf90d.js.map → SnackContainer-342c8165.js.map} +1 -1
- package/lib/cjs/SsnInput.cjs +2 -2
- package/lib/cjs/{StateDropdown-fa94c66e.js → StateDropdown-bca1479a.js} +2 -2
- package/lib/cjs/StateDropdown-bca1479a.js.map +1 -0
- package/lib/cjs/StateDropdown.cjs +12 -11
- package/lib/cjs/StateDropdown.cjs.map +1 -1
- package/lib/cjs/{StatusDropdown-6b76877d.js → StatusDropdown-93ed20df.js} +3 -3
- package/lib/cjs/StatusDropdown-93ed20df.js.map +1 -0
- package/lib/cjs/StatusDropdown.cjs +13 -12
- package/lib/cjs/StatusDropdown.cjs.map +1 -1
- package/lib/cjs/{TabModal-b3646079.js → TabModal-973047b6.js} +2 -2
- package/lib/cjs/{TabModal-b3646079.js.map → TabModal-973047b6.js.map} +1 -1
- package/lib/cjs/TabModal.cjs +2 -2
- package/lib/cjs/Table.cjs +842 -75
- package/lib/cjs/Table.cjs.map +1 -1
- package/lib/cjs/{TableFiltersPanel-2be2f441.js → TableFiltersPanel-cd3558b9.js} +2 -2
- package/lib/cjs/TableFiltersPanel-cd3558b9.js.map +1 -0
- package/lib/cjs/TableFiltersPanel.cjs +9 -8
- package/lib/cjs/TableFiltersPanel.cjs.map +1 -1
- package/lib/cjs/TableStyles-93505c43.js +370 -0
- package/lib/cjs/TableStyles-93505c43.js.map +1 -0
- package/lib/cjs/{TextLink-197a70a8.js → TextLink-c13275eb.js} +3 -3
- package/lib/cjs/{TextLink-197a70a8.js.map → TextLink-c13275eb.js.map} +1 -1
- package/lib/cjs/TextLink.cjs +3 -3
- package/lib/cjs/Textarea.cjs +1 -1
- package/lib/cjs/ThemeProvider.cjs +6 -6
- package/lib/cjs/ToggleCell.cjs +6 -78
- package/lib/cjs/ToggleCell.cjs.map +1 -1
- package/lib/cjs/{ToggleGroup-9d2d1f75.js → ToggleGroup-17995f3f.js} +2 -2
- package/lib/cjs/ToggleGroup-17995f3f.js.map +1 -0
- package/lib/cjs/ToggleGroup.cjs +4 -4
- package/lib/cjs/{ToggleItem-a297644f.js → ToggleItem-44cf3e19.js} +2 -2
- package/lib/cjs/ToggleItem-44cf3e19.js.map +1 -0
- package/lib/cjs/ToggleItem.cjs +3 -3
- package/lib/cjs/Truncate.cjs +2 -2
- package/lib/cjs/{TruncatePicker-6ba8a4b8.js → TruncatePicker-4ede1db6.js} +2 -2
- package/lib/cjs/{TruncatePicker-6ba8a4b8.js.map → TruncatePicker-4ede1db6.js.map} +1 -1
- package/lib/cjs/{Typography-a56f047e.js → Typography-2366f528.js} +2 -2
- package/lib/cjs/Typography-2366f528.js.map +1 -0
- package/lib/cjs/Typography.cjs +3 -3
- package/lib/cjs/{UploadDropzone-e1d356bf.js → UploadDropzone-0cc515c3.js} +4 -4
- package/lib/cjs/{UploadDropzone-e1d356bf.js.map → UploadDropzone-0cc515c3.js.map} +1 -1
- package/lib/cjs/UploadDropzone.cjs +5 -5
- package/lib/cjs/UserCard.cjs +2 -2
- package/lib/cjs/UserCardModal.cjs +2 -2
- package/lib/cjs/{UserInformationCard-b3c9f8aa.js → UserInformationCard-51fa3f4f.js} +7 -5
- package/lib/cjs/{UserInformationCard-b3c9f8aa.js.map → UserInformationCard-51fa3f4f.js.map} +1 -1
- package/lib/cjs/UserInformationCard.cjs +5 -5
- package/lib/cjs/ZipCodeInput.cjs +2 -2
- package/lib/cjs/_commonjsHelpers-b3309d7b.js +11 -0
- package/lib/cjs/_commonjsHelpers-b3309d7b.js.map +1 -0
- package/lib/cjs/cerebellumTheme.cjs +0 -1
- package/lib/cjs/cerebellumTheme.cjs.map +1 -1
- package/lib/cjs/cortexTheme.cjs +0 -1
- package/lib/cjs/cortexTheme.cjs.map +1 -1
- package/lib/cjs/index.cjs +64 -61
- package/lib/cjs/index.cjs.map +1 -1
- package/lib/cjs/{useMeasure-b9d80d54.js → useMeasure-aca2fa8d.js} +5 -3
- package/lib/cjs/{useMeasure-b9d80d54.js.map → useMeasure-aca2fa8d.js.map} +1 -1
- package/lib/cjs/{useMeasureWatchResize-e01396c5.js → useMeasureWatchResize-f6701a66.js} +2 -2
- package/lib/cjs/useMeasureWatchResize-f6701a66.js.map +1 -0
- package/lib/esm/{AddMenu-50ec2c27.js → AddMenu-806203ac.js} +3 -3
- package/lib/esm/AddMenu-806203ac.js.map +1 -0
- package/lib/esm/AddMenu.js +9 -8
- package/lib/esm/AddMenu.js.map +1 -1
- package/lib/esm/{AddressInput-8408e58c.js → AddressInput-1ac2a460.js} +1070 -992
- package/lib/{cjs/AddressInput-a192ebc6.js.map → esm/AddressInput-1ac2a460.js.map} +1 -1
- package/lib/esm/AddressInput.js +5 -4
- package/lib/esm/AddressInput.js.map +1 -1
- package/lib/esm/ArrowUp.js +1 -1
- package/lib/esm/CheckboxCellWrapper.js +6 -78
- package/lib/esm/CheckboxCellWrapper.js.map +1 -1
- package/lib/esm/{CheckboxGroup-05dc484c.js → CheckboxGroup-8c6b20c0.js} +2 -2
- package/lib/esm/CheckboxGroup-8c6b20c0.js.map +1 -0
- package/lib/esm/CheckboxGroup.js +2 -2
- package/lib/esm/{CheckboxItem-ea3b44d8.js → CheckboxItem-54c8c51c.js} +1 -1
- package/lib/esm/CheckboxItem-54c8c51c.js.map +1 -0
- package/lib/esm/CheckboxItem.js +1 -1
- package/lib/esm/{ClearableTag-6d18403d.js → ClearableTag-26511417.js} +3 -3
- package/lib/esm/{ClearableTag-6d18403d.js.map → ClearableTag-26511417.js.map} +1 -1
- package/lib/esm/ClearableTag.js +2 -2
- package/lib/esm/{ColorDotDropdown-f0126c86.js → ColorDotDropdown-9693642c.js} +2 -2
- package/lib/esm/ColorDotDropdown-9693642c.js.map +1 -0
- package/lib/esm/ColorDotDropdown.js +12 -11
- package/lib/esm/ColorDotDropdown.js.map +1 -1
- package/lib/esm/{ColorPicker-ca7c732c.js → ColorPicker-e2031e7d.js} +2 -2
- package/lib/esm/ColorPicker-e2031e7d.js.map +1 -0
- package/lib/esm/ColorPicker.js +2 -2
- package/lib/esm/{ConfigurableInput-90ed2416.js → ConfigurableInput-a5f3d818.js} +3 -3
- package/lib/esm/ConfigurableInput-a5f3d818.js.map +1 -0
- package/lib/esm/ConfigurableInput.js +8 -7
- package/lib/esm/ConfigurableInput.js.map +1 -1
- package/lib/esm/{ConfirmModal-f5bc8ef4.js → ConfirmModal-485910ce.js} +2 -2
- package/lib/esm/ConfirmModal-485910ce.js.map +1 -0
- package/lib/esm/ConfirmModal.js +2 -2
- package/lib/esm/{ConfirmationModal-fec2be48.js → ConfirmationModal-b2307973.js} +2 -2
- package/lib/esm/ConfirmationModal-b2307973.js.map +1 -0
- package/lib/esm/ConfirmationModal.js +2 -2
- package/lib/esm/{CountyDropdown-e3af1542.js → CountyDropdown-3decb3a0.js} +2 -2
- package/lib/esm/CountyDropdown-3decb3a0.js.map +1 -0
- package/lib/esm/CountyDropdown.js +12 -11
- package/lib/esm/CountyDropdown.js.map +1 -1
- package/lib/esm/{CreditCardInput-5c5135f3.js → CreditCardInput-048f86c9.js} +3 -3
- package/lib/esm/CreditCardInput-048f86c9.js.map +1 -0
- package/lib/esm/CreditCardInput.js +4 -4
- package/lib/esm/{CurrencyInput-c869b1cb.js → CurrencyInput-9c540d58.js} +3 -3
- package/lib/esm/CurrencyInput-9c540d58.js.map +1 -0
- package/lib/esm/CurrencyInput.js +4 -4
- package/lib/esm/DatePicker.js +10 -8
- package/lib/esm/DatePicker.js.map +1 -1
- package/lib/esm/{DescriptiveDropdownInput-b7503d47.js → DescriptiveDropdownInput-b34b78d6.js} +3 -3
- package/lib/esm/{DescriptiveDropdownInput-b7503d47.js.map → DescriptiveDropdownInput-b34b78d6.js.map} +1 -1
- package/lib/esm/DescriptiveDropdownInput.js +8 -7
- package/lib/esm/DescriptiveDropdownInput.js.map +1 -1
- package/lib/esm/{DescriptiveSwitchMenu-cbb47b80.js → DescriptiveSwitchMenu-1e0728b8.js} +3 -2
- package/lib/esm/DescriptiveSwitchMenu-1e0728b8.js.map +1 -0
- package/lib/esm/DescriptiveSwitchMenu.js +3 -2
- package/lib/esm/DescriptiveSwitchMenu.js.map +1 -1
- package/lib/esm/{DialogHandler-f9e38fa9.js → DialogHandler-ddec3443.js} +3 -3
- package/lib/esm/{DialogHandler-f9e38fa9.js.map → DialogHandler-ddec3443.js.map} +1 -1
- package/lib/esm/DialogHandler.js +6 -7
- package/lib/esm/DialogHandler.js.map +1 -1
- package/lib/esm/{Drawer-67d1d854.js → Drawer-a35155e1.js} +3 -3
- package/lib/esm/{Drawer-67d1d854.js.map → Drawer-a35155e1.js.map} +1 -1
- package/lib/esm/Drawer.js +4 -4
- package/lib/esm/{DropdownInput-894e3d7a.js → DropdownInput-4297cf26.js} +3 -3
- package/lib/esm/DropdownInput-4297cf26.js.map +1 -0
- package/lib/esm/DropdownInput.js +11 -10
- package/lib/esm/DropdownInput.js.map +1 -1
- package/lib/esm/{EmailInput-32bd8b8a.js → EmailInput-fecefcaa.js} +3 -3
- package/lib/esm/EmailInput-fecefcaa.js.map +1 -0
- package/lib/esm/EmailInput.js +4 -4
- package/lib/esm/{FiltersBar-2a734d5f.js → FiltersBar-aecb192f.js} +3 -3
- package/lib/esm/FiltersBar-aecb192f.js.map +1 -0
- package/lib/esm/FiltersBar.js +5 -5
- package/lib/esm/Form.js +38 -36
- package/lib/esm/Form.js.map +1 -1
- package/lib/esm/{FormStyles-8d53d823.js → FormStyles-7f4fdf3b.js} +3 -3
- package/lib/esm/{FormStyles-8d53d823.js.map → FormStyles-7f4fdf3b.js.map} +1 -1
- package/lib/esm/FormWrapper.js +4 -3
- package/lib/esm/FormWrapper.js.map +1 -1
- package/lib/esm/{FormikContainer-64ecc76c.js → FormikContainer-25e19362.js} +28 -28
- package/lib/esm/{FormikContainer-64ecc76c.js.map → FormikContainer-25e19362.js.map} +1 -1
- package/lib/esm/{IconSwitcher-7db68c59.js → IconSwitcher-22f9a691.js} +3 -3
- package/lib/esm/IconSwitcher-22f9a691.js.map +1 -0
- package/lib/esm/IconSwitcher.js +10 -9
- package/lib/esm/IconSwitcher.js.map +1 -1
- package/lib/esm/{IconTile-0c6fc83e.js → IconTile-b4dad474.js} +2 -2
- package/lib/esm/IconTile-b4dad474.js.map +1 -0
- package/lib/esm/IconTile.js +3 -3
- package/lib/esm/{ImagePicker-20d678df.js → ImagePicker-d7a66b1c.js} +3 -3
- package/lib/esm/{ImagePicker-20d678df.js.map → ImagePicker-d7a66b1c.js.map} +1 -1
- package/lib/esm/ImagePicker.js +6 -6
- package/lib/esm/{InlineCreditCardInput-70768742.js → InlineCreditCardInput-c09bc8de.js} +2 -2
- package/lib/esm/{InlineCreditCardInput-70768742.js.map → InlineCreditCardInput-c09bc8de.js.map} +1 -1
- package/lib/esm/InlineCreditCardInput.js +2 -2
- package/lib/esm/{InlineCurrencyInput-1cc1fed2.js → InlineCurrencyInput-f6eb15f9.js} +2 -2
- package/lib/esm/InlineCurrencyInput-f6eb15f9.js.map +1 -0
- package/lib/esm/InlineCurrencyInput.js +2 -2
- package/lib/esm/{InlineDatePicker-298eaaf0.js → InlineDatePicker-e6d6a8de.js} +42 -39
- package/lib/esm/{InlineDatePicker-298eaaf0.js.map → InlineDatePicker-e6d6a8de.js.map} +1 -1
- package/lib/esm/InlineDatePicker.js +10 -8
- package/lib/esm/InlineDatePicker.js.map +1 -1
- package/lib/esm/{InlineDescriptiveDropdown-b999428b.js → InlineDescriptiveDropdown-1bc3a516.js} +4 -4
- package/lib/esm/{InlineDescriptiveDropdown-b999428b.js.map → InlineDescriptiveDropdown-1bc3a516.js.map} +1 -1
- package/lib/esm/InlineDescriptiveDropdown.js +8 -7
- package/lib/esm/InlineDescriptiveDropdown.js.map +1 -1
- package/lib/esm/{InlineDropdown-1cc6090f.js → InlineDropdown-95b5a995.js} +4 -4
- package/lib/esm/InlineDropdown-95b5a995.js.map +1 -0
- package/lib/esm/InlineDropdown.js +10 -9
- package/lib/esm/InlineDropdown.js.map +1 -1
- package/lib/esm/{InlineEmailInput-091066d0.js → InlineEmailInput-8e5e8db6.js} +2 -2
- package/lib/esm/InlineEmailInput-8e5e8db6.js.map +1 -0
- package/lib/esm/InlineEmailInput.js +2 -2
- package/lib/esm/{InlineInput-380c8be0.js → InlineInput-73165151.js} +3 -3
- package/lib/esm/{InlineInput-380c8be0.js.map → InlineInput-73165151.js.map} +1 -1
- package/lib/esm/InlineInput.js +1 -1
- package/lib/esm/InlineInputButton.js +3 -3
- package/lib/esm/InlinePasswordInput.js +3 -3
- package/lib/esm/{InlinePhoneInput-c5c3de39.js → InlinePhoneInput-286e4b82.js} +2 -2
- package/lib/esm/{InlinePhoneInput-c5c3de39.js.map → InlinePhoneInput-286e4b82.js.map} +1 -1
- package/lib/esm/InlinePhoneInput.js +2 -2
- package/lib/esm/InlineSsnInput.js +1 -1
- package/lib/esm/InlineTextarea.js +1 -1
- package/lib/esm/InlineZipCodeInput.js +1 -1
- package/lib/esm/{Input-c4ca5490.js → Input-b6ad5418.js} +3 -3
- package/lib/esm/Input-b6ad5418.js.map +1 -0
- package/lib/esm/InputButton.js +3 -3
- package/lib/esm/{LogoSidebar-0a0b8c94.js → LogoSidebar-df9c5103.js} +2 -2
- package/lib/esm/LogoSidebar-df9c5103.js.map +1 -0
- package/lib/esm/LogoSidebar.js +2 -2
- package/lib/esm/{Modal-4241aa1c.js → Modal-c2ea3041.js} +2 -6
- package/lib/esm/{Modal-4241aa1c.js.map → Modal-c2ea3041.js.map} +1 -1
- package/lib/esm/Modal.js +1 -1
- package/lib/esm/{MultiSelect-10d395fc.js → MultiSelect-56d8814a.js} +3 -3
- package/lib/esm/{MultiSelect-10d395fc.js.map → MultiSelect-56d8814a.js.map} +1 -1
- package/lib/esm/MultiSelect.js +11 -10
- package/lib/esm/MultiSelect.js.map +1 -1
- package/lib/esm/NotFound.js +1 -1
- package/lib/esm/PasswordInput.js +3 -3
- package/lib/esm/PhoneCell.js +6 -78
- package/lib/esm/PhoneCell.js.map +1 -1
- package/lib/esm/{PhoneInput-b24c3298.js → PhoneInput-b4b1c005.js} +3 -3
- package/lib/esm/PhoneInput-b4b1c005.js.map +1 -0
- package/lib/esm/PhoneInput.js +4 -4
- package/lib/esm/{RJSForm-fa367428.js → RJSForm-8d589247.js} +8 -8
- package/lib/esm/{RJSForm-fa367428.js.map → RJSForm-8d589247.js.map} +1 -1
- package/lib/esm/RJSForm.js +20 -18
- package/lib/esm/RJSForm.js.map +1 -1
- package/lib/esm/{RJSFormRenderer-d82f4869.js → RJSFormRenderer-058e6859.js} +2 -2
- package/lib/esm/{RJSFormRenderer-d82f4869.js.map → RJSFormRenderer-058e6859.js.map} +1 -1
- package/lib/esm/RJSFormRenderer.js +3 -3
- package/lib/esm/Radio-ade99d62.js +22 -0
- package/lib/esm/Radio-ade99d62.js.map +1 -0
- package/lib/esm/Radio.js +2 -1
- package/lib/esm/Radio.js.map +1 -1
- package/lib/esm/{RadioGroup-316e2368.js → RadioGroup-01ce46fb.js} +2 -2
- package/lib/esm/RadioGroup-01ce46fb.js.map +1 -0
- package/lib/esm/RadioGroup.js +4 -3
- package/lib/esm/RadioGroup.js.map +1 -1
- package/lib/esm/{RadioItem-66b2fe64.js → RadioItem-6b08c586.js} +3 -2
- package/lib/esm/RadioItem-6b08c586.js.map +1 -0
- package/lib/esm/RadioItem.js +3 -2
- package/lib/esm/RadioItem.js.map +1 -1
- package/lib/esm/{Radio-bcba286a.js → RadioStyles-d324c814.js} +4 -20
- package/lib/esm/RadioStyles-d324c814.js.map +1 -0
- package/lib/esm/{SearchInput-6bfc27c4.js → SearchInput-755ce983.js} +2 -2
- package/lib/esm/SearchInput-755ce983.js.map +1 -0
- package/lib/esm/SearchInput.js +2 -2
- package/lib/esm/{SearchMenu-694db0e3.js → SearchMenu-c8c2d382.js} +6 -6
- package/lib/esm/{SearchMenu-694db0e3.js.map → SearchMenu-c8c2d382.js.map} +1 -1
- package/lib/esm/SearchMenu.js +8 -7
- package/lib/esm/SearchMenu.js.map +1 -1
- package/lib/esm/{SelectSearch-d9e5f4b5.js → SelectSearch-ba7478cd.js} +4 -4
- package/lib/esm/{SelectSearch-d9e5f4b5.js.map → SelectSearch-ba7478cd.js.map} +1 -1
- package/lib/esm/SelectSearch.js +10 -9
- package/lib/esm/SelectSearch.js.map +1 -1
- package/lib/esm/{SnackContainer-a011fafb.js → SnackContainer-2a03b101.js} +27 -11
- package/lib/esm/{UploadDropzone-4cf7a872.js.map → SnackContainer-2a03b101.js.map} +1 -1
- package/lib/esm/SsnInput.js +2 -2
- package/lib/esm/{StateDropdown-8c7fd95c.js → StateDropdown-057be400.js} +2 -2
- package/lib/esm/StateDropdown-057be400.js.map +1 -0
- package/lib/esm/StateDropdown.js +12 -11
- package/lib/esm/StateDropdown.js.map +1 -1
- package/lib/esm/{StatusDropdown-3a7af3cb.js → StatusDropdown-63549716.js} +3 -3
- package/lib/esm/StatusDropdown-63549716.js.map +1 -0
- package/lib/esm/StatusDropdown.js +13 -12
- package/lib/esm/StatusDropdown.js.map +1 -1
- package/lib/esm/{TabModal-51a5d5ca.js → TabModal-2ec69dfc.js} +2 -2
- package/lib/esm/{TabModal-51a5d5ca.js.map → TabModal-2ec69dfc.js.map} +1 -1
- package/lib/esm/TabModal.js +2 -2
- package/lib/esm/Table.js +840 -71
- package/lib/esm/Table.js.map +1 -1
- package/lib/esm/{TableFiltersPanel-44bae887.js → TableFiltersPanel-2352262a.js} +2 -2
- package/lib/esm/TableFiltersPanel-2352262a.js.map +1 -0
- package/lib/esm/TableFiltersPanel.js +9 -8
- package/lib/esm/TableFiltersPanel.js.map +1 -1
- package/lib/esm/TableStyles-e39cda5c.js +324 -0
- package/lib/esm/TableStyles-e39cda5c.js.map +1 -0
- package/lib/esm/{TextLink-ae7a4ea6.js → TextLink-a4a81335.js} +3 -3
- package/lib/esm/{TextLink-ae7a4ea6.js.map → TextLink-a4a81335.js.map} +1 -1
- package/lib/esm/TextLink.js +3 -3
- package/lib/esm/Textarea.js +1 -1
- package/lib/esm/ThemeProvider.js +6 -6
- package/lib/esm/ToggleCell.js +6 -78
- package/lib/esm/ToggleCell.js.map +1 -1
- package/lib/esm/{ToggleGroup-87825bf3.js → ToggleGroup-d43664d7.js} +2 -2
- package/lib/esm/ToggleGroup-d43664d7.js.map +1 -0
- package/lib/esm/ToggleGroup.js +4 -4
- package/lib/esm/{ToggleItem-60a9909b.js → ToggleItem-a65769e2.js} +2 -2
- package/lib/esm/ToggleItem-a65769e2.js.map +1 -0
- package/lib/esm/ToggleItem.js +3 -3
- package/lib/esm/Truncate.js +2 -2
- package/lib/esm/{TruncatePicker-a3a5efbe.js → TruncatePicker-46d02304.js} +2 -2
- package/lib/esm/{TruncatePicker-a3a5efbe.js.map → TruncatePicker-46d02304.js.map} +1 -1
- package/lib/esm/{Typography-e1cfe4d5.js → Typography-9a063836.js} +2 -2
- package/lib/esm/Typography-9a063836.js.map +1 -0
- package/lib/esm/Typography.js +3 -3
- package/lib/esm/{UploadDropzone-4cf7a872.js → UploadDropzone-4aaec2f9.js} +4 -4
- package/lib/esm/{SnackContainer-a011fafb.js.map → UploadDropzone-4aaec2f9.js.map} +1 -1
- package/lib/esm/UploadDropzone.js +5 -5
- package/lib/esm/UserCard.js +2 -2
- package/lib/esm/UserCardModal.js +2 -2
- package/lib/esm/{UserInformationCard-f0c3d887.js → UserInformationCard-0f7cbebf.js} +7 -5
- package/lib/esm/{UserInformationCard-f0c3d887.js.map → UserInformationCard-0f7cbebf.js.map} +1 -1
- package/lib/esm/UserInformationCard.js +5 -5
- package/lib/esm/ZipCodeInput.js +2 -2
- package/lib/esm/_commonjsHelpers-1789f0cf.js +8 -0
- package/lib/esm/_commonjsHelpers-1789f0cf.js.map +1 -0
- package/lib/esm/cerebellumTheme.js +1 -1
- package/lib/esm/cortexTheme.js +1 -1
- package/lib/esm/index.js +68 -65
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/{useMeasure-90ab7d68.js → useMeasure-bac4939c.js} +5 -3
- package/lib/esm/{useMeasure-90ab7d68.js.map → useMeasure-bac4939c.js.map} +1 -1
- package/lib/esm/{useMeasureWatchResize-7859b559.js → useMeasureWatchResize-523c19b2.js} +2 -2
- package/lib/esm/useMeasureWatchResize-523c19b2.js.map +1 -0
- package/lib/types/src/components/AddressInput/types.d.ts +1 -1
- package/lib/types/src/components/Form/types.d.ts +2 -0
- package/lib/types/src/components/Icons/ArrowUp.d.ts +0 -1
- package/lib/types/src/components/SnackContainer/index.d.ts +1 -1
- package/lib/types/src/components/Table/Row.d.ts +1 -2
- package/lib/types/src/components/Table/Table.d.ts +2 -6
- package/lib/types/src/components/Table/const.d.ts +2 -0
- package/lib/types/src/components/Textarea/InlineTextarea.d.ts +0 -1
- package/lib/types/src/pages/NotFound/NotFound.d.ts +0 -1
- package/lib/types/src/theme.d.ts +1 -1
- package/package.json +22 -32
- package/lib/cjs/AddMenu-64ef6b8c.js.map +0 -1
- package/lib/cjs/CheckboxGroup-61c52880.js.map +0 -1
- package/lib/cjs/CheckboxItem-41bbef33.js.map +0 -1
- package/lib/cjs/ColorDotDropdown-88523aa4.js.map +0 -1
- package/lib/cjs/ColorPicker-c1fdfef3.js.map +0 -1
- package/lib/cjs/ConfigurableInput-0404c82f.js.map +0 -1
- package/lib/cjs/ConfirmModal-85aa1730.js.map +0 -1
- package/lib/cjs/ConfirmationModal-d0a8b41b.js.map +0 -1
- package/lib/cjs/CountyDropdown-ccadc69d.js.map +0 -1
- package/lib/cjs/CreditCardInput-110e1b0f.js.map +0 -1
- package/lib/cjs/CurrencyInput-615f2339.js.map +0 -1
- package/lib/cjs/DescriptiveSwitchMenu-0d88ec59.js.map +0 -1
- package/lib/cjs/DropdownInput-623658c4.js.map +0 -1
- package/lib/cjs/EmailInput-91f2b622.js.map +0 -1
- package/lib/cjs/FiltersBar-90bccccc.js.map +0 -1
- package/lib/cjs/IconTile-082fe747.js.map +0 -1
- package/lib/cjs/InlineCurrencyInput-21ca9a84.js.map +0 -1
- package/lib/cjs/InlineDropdown-a105a638.js.map +0 -1
- package/lib/cjs/InlineEmailInput-b20d972a.js.map +0 -1
- package/lib/cjs/Input-ae515514.js.map +0 -1
- package/lib/cjs/LogoSidebar-4ec31040.js.map +0 -1
- package/lib/cjs/PhoneInput-db484188.js.map +0 -1
- package/lib/cjs/Radio-4ef8e27f.js.map +0 -1
- package/lib/cjs/RadioGroup-83e22272.js.map +0 -1
- package/lib/cjs/RadioItem-ae4d8a2f.js.map +0 -1
- package/lib/cjs/StateDropdown-fa94c66e.js.map +0 -1
- package/lib/cjs/StatusDropdown-6b76877d.js.map +0 -1
- package/lib/cjs/Table-373a099a.js +0 -1149
- package/lib/cjs/Table-373a099a.js.map +0 -1
- package/lib/cjs/TableFiltersPanel-2be2f441.js.map +0 -1
- package/lib/cjs/ToggleGroup-9d2d1f75.js.map +0 -1
- package/lib/cjs/ToggleItem-a297644f.js.map +0 -1
- package/lib/cjs/Typography-a56f047e.js.map +0 -1
- package/lib/cjs/useMeasureWatchResize-e01396c5.js.map +0 -1
- package/lib/esm/AddMenu-50ec2c27.js.map +0 -1
- package/lib/esm/CheckboxGroup-05dc484c.js.map +0 -1
- package/lib/esm/CheckboxItem-ea3b44d8.js.map +0 -1
- package/lib/esm/ColorDotDropdown-f0126c86.js.map +0 -1
- package/lib/esm/ColorPicker-ca7c732c.js.map +0 -1
- package/lib/esm/ConfigurableInput-90ed2416.js.map +0 -1
- package/lib/esm/ConfirmModal-f5bc8ef4.js.map +0 -1
- package/lib/esm/ConfirmationModal-fec2be48.js.map +0 -1
- package/lib/esm/CountyDropdown-e3af1542.js.map +0 -1
- package/lib/esm/CreditCardInput-5c5135f3.js.map +0 -1
- package/lib/esm/CurrencyInput-c869b1cb.js.map +0 -1
- package/lib/esm/DescriptiveSwitchMenu-cbb47b80.js.map +0 -1
- package/lib/esm/DropdownInput-894e3d7a.js.map +0 -1
- package/lib/esm/EmailInput-32bd8b8a.js.map +0 -1
- package/lib/esm/FiltersBar-2a734d5f.js.map +0 -1
- package/lib/esm/IconSwitcher-7db68c59.js.map +0 -1
- package/lib/esm/IconTile-0c6fc83e.js.map +0 -1
- package/lib/esm/InlineCurrencyInput-1cc1fed2.js.map +0 -1
- package/lib/esm/InlineDropdown-1cc6090f.js.map +0 -1
- package/lib/esm/InlineEmailInput-091066d0.js.map +0 -1
- package/lib/esm/Input-c4ca5490.js.map +0 -1
- package/lib/esm/LogoSidebar-0a0b8c94.js.map +0 -1
- package/lib/esm/PhoneInput-b24c3298.js.map +0 -1
- package/lib/esm/Radio-bcba286a.js.map +0 -1
- package/lib/esm/RadioGroup-316e2368.js.map +0 -1
- package/lib/esm/RadioItem-66b2fe64.js.map +0 -1
- package/lib/esm/SearchInput-6bfc27c4.js.map +0 -1
- package/lib/esm/StateDropdown-8c7fd95c.js.map +0 -1
- package/lib/esm/StatusDropdown-3a7af3cb.js.map +0 -1
- package/lib/esm/Table-a135dcaa.js +0 -1137
- package/lib/esm/Table-a135dcaa.js.map +0 -1
- package/lib/esm/TableFiltersPanel-44bae887.js.map +0 -1
- package/lib/esm/ToggleGroup-87825bf3.js.map +0 -1
- package/lib/esm/ToggleItem-60a9909b.js.map +0 -1
- package/lib/esm/Typography-e1cfe4d5.js.map +0 -1
- package/lib/esm/useMeasureWatchResize-7859b559.js.map +0 -1
- package/lib/types/src/assets/icons/Vms.d.ts +0 -2
|
@@ -1,1137 +0,0 @@
|
|
|
1
|
-
import { _ as __assign, a as __makeTemplateObject, f as __spreadArray } from './tslib.es6-1648722c.js';
|
|
2
|
-
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
|
-
import React__default, { useState, useEffect, useRef, useReducer, useCallback } from 'react';
|
|
4
|
-
import { styled, useTheme } from 'styled-components';
|
|
5
|
-
import { TextStyleEnum, ButtonColorFamilyEnum } from './ButtonColorFamilyEnum.js';
|
|
6
|
-
import { isOdd, isBrowser, noop } from './isEmptyObject.js';
|
|
7
|
-
import { removeString, addOrRemoveString, replaceObjectById, makeIdString, getObjectById } from './addOrRemoveById.js';
|
|
8
|
-
import { colors } from './colors.js';
|
|
9
|
-
import { BoxedButton } from './BoxedButton.js';
|
|
10
|
-
import './Button.js';
|
|
11
|
-
import { SecondaryButton } from './SecondaryButton.js';
|
|
12
|
-
import { S as SingleButton } from './SingleButton-7a26cb33.js';
|
|
13
|
-
import { TextButton } from './TextButton.js';
|
|
14
|
-
import { ButtonVariantEnum } from './ButtonVariantEnum.js';
|
|
15
|
-
import { H as HorizontalTabMenu } from './HorizontalTabMenu-8775f37d.js';
|
|
16
|
-
import { I as IconButton } from './IconButton-b31ebf93.js';
|
|
17
|
-
import { pressedEnter } from './pressedEnter.js';
|
|
18
|
-
import './IconComponentStyles-7fba9dcb.js';
|
|
19
|
-
import { ArrowUp } from './ArrowUp.js';
|
|
20
|
-
import { CaretLeft } from './CaretLeft.js';
|
|
21
|
-
import { CaretRight } from './CaretRight.js';
|
|
22
|
-
import { X } from './Close-67a64ca0.js';
|
|
23
|
-
import { Edit } from './Edit.js';
|
|
24
|
-
import { Ellipsis } from './Ellipsis.js';
|
|
25
|
-
import { Filter } from './Filter.js';
|
|
26
|
-
import { PlusCircle } from './PlusCircle.js';
|
|
27
|
-
import { Sort } from './Sort.js';
|
|
28
|
-
import { T as TextLink } from './TextLink-ae7a4ea6.js';
|
|
29
|
-
import { T as Tooltip } from './Tooltip-9a18d45a.js';
|
|
30
|
-
import { T as TooltipOptions } from './TooltipOptions-fedcfe46.js';
|
|
31
|
-
import './TooltipOptionsStyles-d3588ab1.js';
|
|
32
|
-
import { T as TableFiltersPanel } from './TableFiltersPanel-44bae887.js';
|
|
33
|
-
import { getPosition } from './getPosition.js';
|
|
34
|
-
import { loadingPseudo } from './Loading.js';
|
|
35
|
-
import { Scroller } from './Scroller.js';
|
|
36
|
-
import { absoluteAfter } from './focusAfter.js';
|
|
37
|
-
import { BodySPrimary, HeadingH3, BodyMSecondary, BodySEmphasis, BodySSecondary, BodySTertiary } from './BodyLEmphasis.js';
|
|
38
|
-
import { a as CheckContainer, C as Checkbox } from './Checkbox-702a7fea.js';
|
|
39
|
-
import { a as RadioContainer, R as Radio } from './Radio-bcba286a.js';
|
|
40
|
-
import { I as InlineCurrencyInput } from './InlineCurrencyInput-1cc1fed2.js';
|
|
41
|
-
import { I as InlineInput } from './InlineInput-380c8be0.js';
|
|
42
|
-
import { I as InlinePhoneInput } from './InlinePhoneInput-c5c3de39.js';
|
|
43
|
-
import { T as Toggle } from './Toggle-02d8a391.js';
|
|
44
|
-
import { D as DropdownInput } from './DropdownInput-894e3d7a.js';
|
|
45
|
-
import { M as MultiSelect } from './MultiSelect-10d395fc.js';
|
|
46
|
-
import { u as useMeasure } from './useMeasure-90ab7d68.js';
|
|
47
|
-
import { usePrevious } from './usePrevious.js';
|
|
48
|
-
import { EditEnum } from './EditEnum.js';
|
|
49
|
-
import { T as TruncatePicker } from './TruncatePicker-a3a5efbe.js';
|
|
50
|
-
import { M as MoreMenuButton } from './MoreMenuButton-7bc8fc43.js';
|
|
51
|
-
import { TableOptionLabel } from './TableOptionLabel.js';
|
|
52
|
-
import update from 'immutability-helper';
|
|
53
|
-
import { C as ClickOutHandler } from './ClickOutHandler-1bb9b06e.js';
|
|
54
|
-
|
|
55
|
-
var EmptySearchIcon = function () {
|
|
56
|
-
return (jsxs("svg", __assign({ viewBox: "0 0 59 60", version: "1.1" }, { children: [jsx("title", { children: "49698A2B-CC72-4B34-BA08-89E56D98B580" }, void 0), jsxs("defs", { children: [jsxs("linearGradient", __assign({ x1: "49.9985243%", y1: "104.484072%", x2: "49.9985243%", y2: "55.1253368%", id: "linearGradient-1" }, { children: [jsx("stop", { stopColor: "#DCE2ED", stopOpacity: "0", offset: "0.17%" }, void 0), jsx("stop", { stopColor: "#DCE2ED", offset: "99.66%" }, void 0)] }), void 0), jsxs("linearGradient", __assign({ x1: "-1701.69525%", y1: "-8870.974%", x2: "518.234746%", y2: "2440.116%", id: "linearGradient-2" }, { children: [jsx("stop", { stopColor: "#FFFFFF", stopOpacity: "0.8", offset: "0%" }, void 0), jsx("stop", { stopColor: "#7EAEFF", offset: "100%" }, void 0)] }), void 0), jsxs("linearGradient", __assign({ x1: "-1507.17%", y1: "-7884.19%", x2: "712.77%", y2: "3426.9%", id: "linearGradient-3" }, { children: [jsx("stop", { stopColor: "#FFFFFF", stopOpacity: "0.8", offset: "0%" }, void 0), jsx("stop", { stopColor: "#7EAEFF", offset: "100%" }, void 0)] }), void 0), jsxs("linearGradient", __assign({ x1: "-1635.81471%", y1: "-8541.44386%", x2: "584.115288%", y2: "2769.64614%", id: "linearGradient-4" }, { children: [jsx("stop", { stopColor: "#FFFFFF", stopOpacity: "0.8", offset: "0%" }, void 0), jsx("stop", { stopColor: "#7EAEFF", offset: "100%" }, void 0)] }), void 0), jsxs("linearGradient", __assign({ x1: "-1790.06448%", y1: "-9319.13016%", x2: "429.865519%", y2: "1991.94984%", id: "linearGradient-5" }, { children: [jsx("stop", { stopColor: "#FFFFFF", stopOpacity: "0.8", offset: "0%" }, void 0), jsx("stop", { stopColor: "#7EAEFF", offset: "100%" }, void 0)] }), void 0), jsxs("linearGradient", __assign({ x1: "-1476.89528%", y1: "-7736.26807%", x2: "743.034718%", y2: "3574.82193%", id: "linearGradient-6" }, { children: [jsx("stop", { stopColor: "#FFFFFF", stopOpacity: "0.8", offset: "0%" }, void 0), jsx("stop", { stopColor: "#7EAEFF", offset: "100%" }, void 0)] }), void 0), jsxs("linearGradient", __assign({ x1: "52.5635867%", y1: "187.750618%", x2: "50.4706199%", y2: "70.8183427%", id: "linearGradient-7" }, { children: [jsx("stop", { stopColor: "#DCE2ED", stopOpacity: "0", offset: "0.17%" }, void 0), jsx("stop", { stopColor: "#DCE2ED", offset: "99.66%" }, void 0)] }), void 0), jsxs("linearGradient", __assign({ x1: "143.143991%", y1: "128.579782%", x2: "47.3045392%", y2: "46.6703715%", id: "linearGradient-8" }, { children: [jsx("stop", { stopColor: "#DCE2ED", stopOpacity: "0", offset: "0.17%" }, void 0), jsx("stop", { stopColor: "#DCE2ED", offset: "99.66%" }, void 0)] }), void 0)] }, void 0), jsx("g", __assign({ id: "4-Templates", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd" }, { children: jsx("g", __assign({ id: "Tables", transform: "translate(-481.000000, -702.000000)" }, { children: jsx("g", __assign({ id: "No-Results", transform: "translate(425.000000, 702.000000)" }, { children: jsxs("g", __assign({ id: "Empty-Search", transform: "translate(56.093260, 0.000000)" }, { children: [jsx("path", { d: "M24.4016808,44.7744888 C24.3849456,44.7972488 24.3464963,44.827958 24.3386726,44.8651103 C24.3248999,44.9055134 24.3342451,44.9502113 24.3630512,44.9817123 C24.3918573,45.0132132 24.4355436,45.0265079 24.4770141,45.0163938 C24.5184846,45.0062797 24.5511449,44.9743651 24.5622139,44.9331391 C24.5797859,44.8544834 24.5056905,44.7778359 24.4016808,44.7744888 Z", id: "Path" }, void 0), jsx("path", { d: "M15.2513821,44.2836435 C15.2479096,44.300588 15.2639336,44.3212979 15.2717573,44.3406689 L15.3333849,44.2889988 L15.2943081,44.2446922 C15.2789535,44.2574947 15.2543526,44.2683726 15.2513821,44.2836435 Z", id: "Path" }, void 0), jsx("path", { d: "M20.6034452,46.9448016 C20.5687662,46.9405167 20.5338842,46.9510162 20.5073324,46.9737317 C20.4807806,46.9964472 20.465008,47.0292834 20.4638731,47.0642077 C20.4596986,47.1244751 20.5036803,47.1773601 20.563699,47.1842414 C20.5971833,47.1944256 20.6334364,47.1896225 20.6631135,47.1710703 C20.6927907,47.1525181 20.7129883,47.1220318 20.7185002,47.0874697 C20.7233408,47.0530783 20.713715,47.0182185 20.6919129,46.9911839 C20.6701108,46.9641493 20.6380815,46.9473568 20.6034452,46.9448016 Z", id: "Path" }, void 0), jsx("path", { d: "M17.6008877,43.4912706 C17.5631002,43.5456218 17.5560923,43.6156445 17.5823594,43.6764064 C17.6086265,43.7371682 17.6644361,43.7800351 17.7299166,43.789744 C17.8503326,43.8117755 17.9707937,43.7514596 18.025294,43.6418461 C18.0537708,43.587672 18.045418,43.5214842 18.004375,43.4760833 C17.9512467,43.4198899 17.8764676,43.3893347 17.7991898,43.3922434 C17.721912,43.3951522 17.6496415,43.4312423 17.6008877,43.4912706 L17.6008877,43.4912706 Z", id: "Path" }, void 0), jsx("path", { d: "M20.841337,48.5738959 C20.8216312,48.5646915 20.7576607,48.6052745 20.7442725,48.6366531 C20.7156552,48.7025064 20.777743,48.7914543 20.8394543,48.7789029 C20.8763137,48.7714975 20.9071903,48.7342616 20.9604502,48.6964399 C20.9117506,48.6430962 20.883468,48.5936854 20.841337,48.5738959 Z", id: "Path" }, void 0), jsx("path", { d: "M29.2231942,48.0299998 C29.1974938,48.0457008 29.1731563,48.0635306 29.1504376,48.0833016 L29.199723,48.1425863 C29.2221555,48.1227415 29.2419528,48.100104 29.2586311,48.0752269 C29.2625221,48.0676542 29.2265413,48.0280753 29.2231942,48.0299998 Z", id: "Path" }, void 0), jsx("path", { d: "M33.8423364,45.1935817 C33.8134904,45.1883629 33.7837617,45.1950819 33.7599637,45.2121988 C33.7361658,45.2293156 33.720339,45.2553627 33.7161106,45.2843705 C33.7137012,45.3193531 33.7253279,45.3538543 33.7484192,45.3802433 C33.7715106,45.4066322 33.8041637,45.4227345 33.8391567,45.4249885 C33.8743592,45.4261934 33.9084182,45.4123966 33.9328577,45.3870316 C33.9572971,45.3616666 33.9698189,45.3271185 33.967307,45.291985 C33.9566382,45.2219479 33.9040477,45.199439 33.8423364,45.1935817 Z", id: "Path" }, void 0), jsx("path", { d: "M32.6358912,46.2320048 C32.5817907,46.138061 32.4871518,46.0745475 32.3797133,46.0600803 C32.2722749,46.0456132 32.1642066,46.0818312 32.0871837,46.1581186 C32.0401007,46.2027156 31.9965555,46.2509049 31.9569415,46.3022511 C31.9634264,46.4684741 32.0905307,46.5021957 32.1864656,46.5645764 C32.2659317,46.6174764 32.3618815,46.639773 32.456531,46.6273336 C32.6037748,46.5716119 32.6874748,46.4159371 32.6527519,46.2623793 C32.6482156,46.2516897 32.642564,46.2415085 32.6358912,46.2320048 L32.6358912,46.2320048 Z", id: "Path" }, void 0), jsx("path", { d: "M14.2495674,42.6296973 C14.2455577,42.6524916 14.2528895,42.6758114 14.2692216,42.6922101 C14.2855537,42.7086088 14.3088435,42.7160354 14.3316538,42.7121185 C14.3582211,42.7106123 14.383324,42.683292 14.4338226,42.652541 C14.3988526,42.6203488 14.3591632,42.5936964 14.3161319,42.5735087 C14.2988109,42.5689902 14.2529562,42.6067282 14.2495674,42.6296973 Z", id: "Path" }, void 0), jsx("path", { d: "M27.4406793,44.4086978 C27.50115,44.4133943 27.5598362,44.3869066 27.5963173,44.3384515 C27.5106327,44.3512958 27.4245298,44.3627595 27.3384269,44.374516 C27.3687525,44.3950288 27.4041143,44.4068498 27.4406793,44.4086978 L27.4406793,44.4086978 Z", id: "Path" }, void 0), jsx("path", { d: "M5.29866932,33.049637 C5.25891412,33.0400791 5.21698407,33.0469688 5.18237763,33.0687455 C5.14777119,33.0905222 5.12341715,33.1253429 5.11483244,33.1653195 C5.10490089,33.2106092 5.1138954,33.2579904 5.13973289,33.2964899 C5.16557037,33.3349894 5.20600958,33.3612676 5.25168506,33.3692387 C5.34778935,33.3740517 5.43138669,33.3040378 5.44351303,33.2085802 C5.44689911,33.1679248 5.43321076,33.1276944 5.40573195,33.0975407 C5.37825315,33.0673871 5.33946359,33.0500312 5.29866932,33.049637 L5.29866932,33.049637 Z", id: "Path" }, void 0), jsx("path", { d: "M4.50734234,31.1788855 C4.42209049,31.170757 4.34618588,31.2327781 4.33716054,31.3179396 C4.32813521,31.4031012 4.38935385,31.4796544 4.47441571,31.4895757 C4.50852759,31.4997049 4.54529071,31.4955444 4.57627618,31.478048 C4.60726164,31.4605516 4.62981164,31.4312202 4.638756,31.3967786 C4.66162907,31.3004749 4.6031938,31.2035851 4.50734234,31.1788855 L4.50734234,31.1788855 Z", id: "Path" }, void 0), jsx("path", { d: "M3.81851885,34.2646591 C3.80849859,34.3100226 3.81352131,34.3574153 3.8328275,34.3996708 C3.88759075,34.4946003 3.9992745,34.5409278 4.10515209,34.5126338 C4.21042996,34.4922845 4.28878802,34.4035669 4.29597595,34.2965816 C4.28918093,34.2492143 4.27270304,34.2037542 4.2475692,34.1630342 C4.1835384,34.1007022 4.09208963,34.0754234 4.00513546,34.0960194 C3.91818129,34.1166154 3.84778738,34.1802282 3.81851885,34.2646591 L3.81851885,34.2646591 Z", id: "Path" }, void 0), jsx("path", { d: "M6.41654315,40.3847871 C6.38943202,40.3879668 6.34638055,40.4190107 6.3442468,40.4407247 C6.34153284,40.4645519 6.35001068,40.4882921 6.36720374,40.5050103 C6.3843968,40.5217285 6.4083651,40.5295383 6.43210694,40.5261583 C6.460013,40.5246521 6.48649655,40.4955327 6.50641152,40.4832741 C6.51142843,40.4574854 6.50394694,40.4308436 6.48623825,40.4114366 C6.46852955,40.3920295 6.44268231,40.3821463 6.41654315,40.3847871 Z", id: "Path" }, void 0), jsx("path", { d: "M6.85973479,37.6590727 C6.82507374,37.6548882 6.79017342,37.6646816 6.76274953,37.6862878 C6.73532564,37.7078941 6.71763697,37.7395335 6.71359409,37.7742114 C6.71332268,37.8465094 6.76653788,37.9078758 6.8381463,37.9178418 C6.91019028,37.9234742 6.97467603,37.8733287 6.98696463,37.8021174 C6.98280569,37.7307225 6.93015743,37.67153 6.85973479,37.6590727 Z", id: "Path" }, void 0), jsx("path", { d: "M10.5625376,44.0070096 C10.5552577,44.0669218 10.6175129,44.1381304 10.6662544,44.1199726 C10.7041597,44.1059568 10.7324423,44.0658759 10.7851166,44.019561 C10.730727,43.980024 10.6996412,43.9424115 10.6615685,43.9331652 C10.638298,43.9268472 10.6134149,43.931576 10.5940844,43.9459902 C10.574754,43.9604043 10.5631218,43.9829038 10.5625376,44.0070096 Z", id: "Path" }, void 0), jsx("path", { d: "M9.43909926,39.1989681 C9.38726178,39.196165 9.34082142,39.224071 9.34605119,39.2728543 C9.36495677,39.3305594 9.39267451,39.3849928 9.42822134,39.4342241 C9.47604236,39.3780773 9.51256707,39.3510917 9.52637366,39.3153619 C9.53452657,39.2878791 9.5291952,39.2581594 9.5119979,39.2352242 C9.49480061,39.2122889 9.46776554,39.1988431 9.43909926,39.1989681 L9.43909926,39.1989681 Z", id: "Path" }, void 0), jsx("path", { d: "M40.8824019,41.1409282 C40.8101164,41.129334 40.740544,41.1735012 40.720279,41.2438501 C40.7073108,41.277064 40.7090099,41.3142156 40.7249557,41.3461071 C40.7409015,41.3779987 40.7696033,41.4016489 40.8039554,41.4112027 C40.8648531,41.4213429 40.9236235,41.3840254 40.9403478,41.3245977 C40.9724579,41.257671 40.9471052,41.1773112 40.8824019,41.1409282 L40.8824019,41.1409282 Z", id: "Path" }, void 0), jsx("path", { d: "M41.9968032,39.8763698 C41.9321263,39.8846634 41.8742055,39.9205468 41.8379799,39.9747648 C41.8017543,40.0289828 41.7907707,40.0962272 41.807862,40.1591539 C41.8182379,40.1880641 41.8547208,40.2075607 41.8723347,40.224798 C41.9381096,40.2412966 42.0078107,40.2255476 42.0601022,40.1823718 C42.1123936,40.1391961 42.1410486,40.0737349 42.1372957,40.0060262 C42.1330112,39.9320306 42.0709043,39.8747139 41.9968032,39.8763698 L41.9968032,39.8763698 Z", id: "Path" }, void 0), jsx("path", { d: "M24.6149718,0 C14.6048216,-0.000697265166 5.59143069,6.06127341 1.81723297,15.3326562 C-1.95696475,24.6040389 0.259979557,35.2376584 7.4245918,42.2284694 C7.45166878,42.1911979 7.49736697,42.1722688 7.54286828,42.1794769 C7.58360337,42.1825948 7.62093221,42.2033882 7.64502559,42.2363818 C7.66911897,42.2693754 7.67756208,42.3112624 7.66813174,42.3510133 C7.66217412,42.3794826 7.64656738,42.4050209 7.62395064,42.4233097 C15.5104478,49.9448462 27.4028254,51.3881763 36.859579,45.9715204 C36.8492157,45.9416387 36.845824,45.9097826 36.8496634,45.8783887 C36.8559375,45.8372822 36.878633,45.8004848 36.9125499,45.7764275 C36.9464668,45.7523702 36.988698,45.7431149 37.0295675,45.7507823 C37.0689849,45.7591488 37.1043394,45.7807839 37.1297281,45.8120752 C46.6843932,40.1700869 51.2831944,28.8330378 48.3591352,18.129135 C45.4350759,7.42523223 35.7110818,0.000840313523 24.6149718,0 L24.6149718,0 Z M4.10515209,34.5127175 C3.9992745,34.5410115 3.88759075,34.4946839 3.8328275,34.3997545 C3.81352131,34.357499 3.80849859,34.3101063 3.81851885,34.2647427 C3.84780669,34.1803253 3.91820895,34.116733 4.00516071,34.0961545 C4.09211248,34.0755761 4.18355019,34.1008665 4.2475692,34.1632015 C4.27270304,34.2039215 4.28918093,34.2493817 4.29597595,34.2967489 C4.28875151,34.4037023 4.21040155,34.4923764 4.10515209,34.5127175 L4.10515209,34.5127175 Z M4.63871416,31.3967786 C4.6297698,31.4312202 4.6072198,31.4605516 4.57623434,31.478048 C4.54524887,31.4955444 4.50848575,31.4997049 4.47437387,31.4895757 C4.38931202,31.4796544 4.32809337,31.4031012 4.33711871,31.3179396 C4.34614404,31.2327781 4.42204865,31.170757 4.5073005,31.1788855 C4.60315196,31.2035851 4.66158724,31.3004749 4.63871416,31.3967786 L4.63871416,31.3967786 Z M5.25168506,33.3692387 C5.20600958,33.3612676 5.16557037,33.3349894 5.13973289,33.2964899 C5.1138954,33.2579904 5.10490089,33.2106092 5.11483244,33.1653195 C5.12341715,33.1253429 5.14777119,33.0905222 5.18237763,33.0687455 C5.21698407,33.0469688 5.25891412,33.0400791 5.29866932,33.049637 C5.3394715,33.0500303 5.37826822,33.0673919 5.40574839,33.097555 C5.43322857,33.1277181 5.44691139,33.1679597 5.44351303,33.208622 C5.43136674,33.3040629 5.34777515,33.3740537 5.25168506,33.3692387 L5.25168506,33.3692387 Z M6.43210694,40.5261583 C6.4083651,40.5295383 6.3843968,40.5217285 6.36720374,40.5050103 C6.35001068,40.4882921 6.34153284,40.4645519 6.3442468,40.4407247 C6.34638055,40.4190107 6.38943202,40.3879668 6.41654315,40.3847871 C6.44268231,40.3821463 6.46852955,40.3920295 6.48623825,40.4114366 C6.50394694,40.4308436 6.51142843,40.4574854 6.50641152,40.4832741 C6.48628736,40.4955327 6.460013,40.5246521 6.43210694,40.5261583 L6.43210694,40.5261583 Z M6.8381463,37.9178418 C6.76653788,37.9078758 6.71332268,37.8465094 6.71359409,37.7742114 C6.71763697,37.7395335 6.73532564,37.7078941 6.76274953,37.6862878 C6.79017342,37.6646816 6.82507374,37.6548882 6.85973479,37.6590727 C6.93015743,37.67153 6.98280569,37.7307225 6.98696463,37.8021174 C6.97461891,37.8732783 6.9101496,37.9233567 6.8381463,37.9177163 L6.8381463,37.9178418 Z M9.52637366,39.3152364 C9.51256707,39.3509661 9.47616787,39.3779936 9.42822134,39.4340986 C9.39267451,39.3848673 9.36495677,39.3304338 9.34605119,39.2727288 C9.34082142,39.2240292 9.38726178,39.1960394 9.43909926,39.1988426 C9.46779516,39.1987056 9.49486018,39.2121681 9.5120634,39.235136 C9.52926661,39.2581039 9.5345748,39.2878625 9.52637366,39.3153619 L9.52637366,39.3152364 Z M10.6662544,44.1199726 C10.6175129,44.1380049 10.5552577,44.0667963 10.5625376,44.0070096 C10.5631973,43.9829483 10.574861,43.9605202 10.5941807,43.946163 C10.6135004,43.9318058 10.6383397,43.9271074 10.6615685,43.9334163 C10.6996412,43.9426625 10.7308943,43.980275 10.7851166,44.0198121 C10.7324423,44.0660014 10.7041597,44.1060824 10.6662544,44.1200981 L10.6662544,44.1199726 Z M14.3316538,42.711993 C14.3088435,42.7159099 14.2855537,42.7084832 14.2692216,42.6920845 C14.2528895,42.6756858 14.2455577,42.652366 14.2495674,42.6295718 C14.2529562,42.6066027 14.2988109,42.5688646 14.3161319,42.5733832 C14.3591632,42.5935708 14.3988526,42.6202233 14.4338226,42.6524154 C14.383324,42.683292 14.3582211,42.7106123 14.3316538,42.7121185 L14.3316538,42.711993 Z M15.2716318,44.3405434 C15.2639754,44.3213815 15.247784,44.3004624 15.2512566,44.283518 C15.2543526,44.2682471 15.2789535,44.2573691 15.2941826,44.2445667 L15.3332594,44.2888733 L15.2716318,44.3405434 Z M18.025294,43.6418461 C17.9707937,43.7514596 17.8503326,43.8117755 17.7299166,43.789744 C17.6644361,43.7800351 17.6086265,43.7371682 17.5823594,43.6764064 C17.5560923,43.6156445 17.5631002,43.5456218 17.6008877,43.4912706 C17.6496418,43.4311998 17.7219399,43.395081 17.7992509,43.3921719 C17.876562,43.3892628 17.95137,43.4198463 18.0045005,43.4760833 C18.0454881,43.5215216 18.0537737,43.5877061 18.0252522,43.6418461 L18.025294,43.6418461 Z M20.563699,47.1842414 C20.5036803,47.1773601 20.4596986,47.1244751 20.4638731,47.0642077 C20.465008,47.0292834 20.4807806,46.9964472 20.5073324,46.9737317 C20.5338842,46.9510162 20.5687662,46.9405167 20.6034452,46.9448016 C20.6380815,46.9473568 20.6701108,46.9641493 20.6919129,46.9911839 C20.713715,47.0182185 20.7233408,47.0530783 20.7185002,47.0874697 C20.7129883,47.1220318 20.6927907,47.1525181 20.6631135,47.1710703 C20.6334364,47.1896225 20.5971833,47.1944256 20.563699,47.1842414 L20.563699,47.1842414 Z M20.8394543,48.7789029 C20.7778267,48.7914543 20.7156552,48.7023809 20.7442725,48.6366531 C20.757828,48.6054419 20.8216312,48.5648589 20.841337,48.5738959 C20.883468,48.5936017 20.9117506,48.6430125 20.9604502,48.696398 C20.9071903,48.7343034 20.8763137,48.7715394 20.8394543,48.7789029 Z M24.4769058,45.0159787 C24.4369557,45.0195294 24.397634,45.0042516 24.3705609,44.9746598 C24.3434878,44.9450681 24.3317588,44.904546 24.3388399,44.8650684 C24.3466637,44.8279161 24.3851548,44.7972069 24.4018482,44.774447 C24.5058579,44.777794 24.5799532,44.8543997 24.5623812,44.9330973 C24.5490934,44.9730086 24.5172015,45.0039483 24.4769058,45.0160205 L24.4769058,45.0159787 Z M29.199723,48.1424608 L29.1504376,48.0831761 C29.1731563,48.0634051 29.1974938,48.0455753 29.2231942,48.0298743 C29.2265413,48.0280334 29.2625221,48.0675286 29.2586311,48.0751013 C29.2419557,48.0999932 29.2221583,48.1226449 29.199723,48.1425026 L29.199723,48.1424608 Z M32.456531,46.6272499 C32.3618815,46.6396894 32.2659317,46.6173927 32.1864656,46.5644927 C32.0905307,46.502112 31.9634264,46.4682649 31.9569415,46.3021674 C31.9965555,46.2508212 32.0401007,46.2026319 32.0871837,46.158035 C32.1642066,46.0817475 32.2722749,46.0455296 32.3797133,46.0599967 C32.4871518,46.0744638 32.5817907,46.1379773 32.6358912,46.2319212 C32.6425179,46.2414172 32.6481272,46.251584 32.6526264,46.2622538 C32.6874111,46.415805 32.603763,46.5715185 32.456531,46.6272918 L32.456531,46.6272499 Z M33.8391567,45.4249467 C33.8041637,45.4226926 33.7715106,45.4065904 33.7484192,45.3802014 C33.7253279,45.3538124 33.7137012,45.3193113 33.7161106,45.2843286 C33.720339,45.2553209 33.7361658,45.2292738 33.7599637,45.2121569 C33.7837617,45.1950401 33.8134904,45.1883211 33.8423364,45.1935398 C33.9040477,45.1993972 33.9566382,45.2219061 33.967307,45.2919432 C33.9698314,45.3270836 33.9573151,45.3616431 33.9328742,45.3870176 C33.9084333,45.4123921 33.874367,45.4261945 33.8391567,45.4249885 L33.8391567,45.4249467 Z M27.5963173,44.3384097 C27.5598362,44.3868648 27.50115,44.4133524 27.4406793,44.4086559 C27.4041143,44.406808 27.3687525,44.3949869 27.3384269,44.3744742 C16.501045,45.817581 6.53830075,38.2221993 5.059645,27.3896104 C3.58098925,16.5570215 11.143643,6.56941105 21.9713222,5.0552223 C32.7990014,3.54103354 42.8113707,11.070878 44.3610761,21.893531 C45.9107816,32.7161839 38.4138275,42.7532042 27.5963173,44.3384097 L27.5963173,44.3384097 Z M40.9405151,41.324514 C40.9237909,41.3839418 40.8650204,41.4212592 40.8041227,41.411119 C40.7697706,41.4015653 40.7410688,41.377915 40.7251231,41.3460235 C40.7091773,41.3141319 40.7074782,41.2769803 40.7204464,41.2437664 C40.7407114,41.1734176 40.8102837,41.1292503 40.8825693,41.1408445 C40.9472956,41.1772295 40.9726518,41.2576185 40.9405151,41.3245559 L40.9405151,41.324514 Z M41.8723347,40.2247561 C41.8547208,40.2075188 41.8182379,40.1880222 41.807862,40.1591121 C41.7907707,40.0961853 41.8017543,40.028941 41.8379799,39.974723 C41.8742055,39.920505 41.9321263,39.8846216 41.9968032,39.8763279 C42.0709196,39.874673 42.1330329,39.932014 42.1372957,40.0060262 C42.1410486,40.0737349 42.1123936,40.1391961 42.0601022,40.1823718 C42.0078107,40.2255476 41.9381096,40.2412966 41.8723347,40.224798 L41.8723347,40.2247561 Z", id: "Shape", fill: "url(#linearGradient-1)", fillRule: "nonzero" }, void 0), jsx("path", { d: "M34.8506361,40.6915863 C34.8222921,40.6865913 34.7931335,40.6932877 34.7698089,40.7101486 C34.7464842,40.7270095 34.730982,40.7525975 34.7268369,40.7810782 C34.7103109,40.8632902 34.7495969,40.9412765 34.8166635,40.9354191 C34.8611831,40.9244748 34.9032211,40.9051807 34.9405463,40.8785611 C34.9548106,40.8419138 34.9532336,40.8009913 34.9361912,40.7655505 C34.9191488,40.7301096 34.8881683,40.7033263 34.8506361,40.6915863 L34.8506361,40.6915863 Z", id: "Path", fill: "url(#linearGradient-2)", fillRule: "nonzero" }, void 0), jsx("path", { d: "M35.9958721,36.2707152 L36.0116869,36.3223017 L36.0399695,36.3143942 C36.0351632,36.297061 36.0294798,36.279983 36.0229413,36.2632262 L35.9958721,36.2707152 Z", id: "Path", fill: "url(#linearGradient-3)", fillRule: "nonzero" }, void 0), jsx("path", { d: "M19.0706623,42.3498837 C19.0023374,42.3279437 18.9284642,42.3610549 18.8993769,42.4266567 C18.8813471,42.463458 18.8811649,42.5064899 18.8988826,42.5434425 C18.9166003,42.5803951 18.9502661,42.6071979 18.9902494,42.6161836 C19.0297351,42.626501 19.0717279,42.6200776 19.1063238,42.5984285 C19.1409198,42.5767793 19.1650561,42.5418208 19.1730403,42.5017981 C19.1815321,42.4679057 19.1752301,42.4320016 19.1557037,42.4030271 C19.1361772,42.3740527 19.1052639,42.3547346 19.0706623,42.3498837 L19.0706623,42.3498837 Z", id: "Path", fill: "url(#linearGradient-4)", fillRule: "nonzero" }, void 0), jsx("path", { d: "M27.4745683,44.0476763 C27.4214649,44.0424762 27.3685794,44.0595021 27.3284838,44.0947066 C27.2883883,44.1299111 27.264664,44.1801497 27.2629508,44.2334796 C27.259628,44.2908924 27.2887011,44.3453399 27.3382595,44.374516 C27.4243625,44.3627595 27.5104654,44.3512958 27.59615,44.3384515 C27.6167993,44.3121261 27.6291234,44.2802378 27.631545,44.2468678 C27.6405944,44.1492676 27.5715797,44.0616931 27.4745683,44.0476763 Z", id: "Path", fill: "url(#linearGradient-5)", fillRule: "nonzero" }, void 0), jsx("path", { d: "M13.3812163,40.0321751 C13.3517688,40.0385116 13.3234651,40.0493195 13.297289,40.0642231 L13.3516786,40.1601162 C13.3778406,40.1358828 13.4008382,40.1084431 13.4201258,40.0784481 C13.4242259,40.0699131 13.393977,40.0312546 13.3812163,40.0321751 Z", id: "Path", fill: "url(#linearGradient-6)", fillRule: "nonzero" }, void 0), jsx("path", { d: "M37.8439891,36.5142551 C33.2034629,41.1504755 26.5808151,43.2100163 20.1294185,42.0232119 C13.6780218,40.8364075 8.22188894,36.5548442 5.53509677,30.5706841 C7.65418184,37.7058127 13.5691007,43.0679142 20.8772821,44.4789654 C28.1854635,45.8900166 35.671419,43.1153331 40.2944404,37.281959 C44.9174619,31.4485849 45.9086537,23.5267205 42.8654052,16.7341348 C44.9475566,23.7494174 43.0201939,31.3415916 37.8439891,36.5142551 L37.8439891,36.5142551 Z", id: "Path", fill: "url(#linearGradient-7)", fillRule: "nonzero" }, void 0), jsx("path", { d: "M57.8094107,51.4963333 L44.8002528,38.487301 C42.775364,41.3996542 40.1479999,43.8426271 37.0962575,45.6506217 C37.0708929,45.6193152 37.0355507,45.5976639 36.9961388,45.589287 C36.9650563,45.5841676 36.9331512,45.5891381 36.905099,45.6034701 L50.3037282,59.0020576 C51.6421431,60.3326475 53.8038549,60.3326475 55.1422697,59.0020576 L57.8094107,56.3348748 C59.1400006,54.9964599 59.1400006,52.8347482 57.8094107,51.4963333 Z", id: "Path", fill: "url(#linearGradient-8)", fillRule: "nonzero" }, void 0), jsx("path", { d: "M19.8023281,23.6562586 C19.7857194,23.5008944 19.7501431,23.3481496 19.6963939,23.2014359 C19.6432598,23.0558031 19.5709244,22.9179142 19.4813039,22.791422 C19.1506014,22.3257375 18.5858993,22.0858928 18.0211521,22.1712549 C15.8874058,22.4022434 16.2424863,25.719131 18.3800817,25.4877241 C18.6766676,25.4613936 18.9604294,25.354558 19.2007372,25.1787493 C19.3264704,25.0840461 19.435943,24.9695005 19.5248574,24.8396091 C19.5829981,24.7546983 19.6326081,24.6642512 19.6729645,24.5695857 C19.7134164,24.4747534 19.74519,24.37645 19.7678953,24.2758818 C19.7908139,24.1746976 19.8051456,24.0717585 19.8107376,23.9681621 C19.8135951,23.9162828 19.8142938,23.8641524 19.8129132,23.8120639 C19.8115325,23.7599754 19.8078926,23.7080961 19.8023281,23.6562586 Z", id: "Path", fill: "#C0C7D5", fillRule: "nonzero" }, void 0), jsx("path", { d: "M32.1857962,23.4781535 C32.1650277,23.3686215 32.1352779,23.260985 32.0968483,23.1563344 C31.8456868,22.4012467 31.0884417,21.9356637 30.3012799,22.0523508 C30.1661729,22.0664573 30.0328734,22.0944126 29.9034827,22.1357761 C29.7301912,22.1909094 29.5673417,22.2746391 29.4216744,22.3834999 C29.3761386,22.417724 29.3325454,22.4544591 29.2910975,22.4935343 C28.9315324,22.8500171 28.740467,23.3425494 28.7655684,23.8482539 C28.7685499,23.9599765 28.7805264,24.0712773 28.8013819,24.1810765 C28.8323596,24.345292 28.8837595,24.504987 28.954384,24.6564417 C28.9778692,24.7066475 29.003502,24.7556121 29.0312826,24.8033355 C29.1415687,24.9953272 29.2888684,25.1635173 29.4646422,25.2981554 C29.6014802,25.4018845 29.7546394,25.4820979 29.9178332,25.5355033 C30.0350606,25.5737802 30.1561676,25.598953 30.2789384,25.6105609 C30.5503227,25.6350561 30.8238703,25.605463 31.0837372,25.5234957 C31.2570305,25.4683354 31.4198894,25.3846081 31.5655873,25.275772 C31.6111017,25.2415228 31.6546804,25.2047742 31.6961224,25.1656958 C31.8173512,25.0510243 31.9197323,24.9179472 31.9994909,24.7713711 C32.0259745,24.7230899 32.0499896,24.6734698 32.0716617,24.6228875 C32.1366345,24.4699545 32.1808997,24.3090321 32.2032846,24.1443844 C32.2336089,23.9228278 32.2277024,23.6978142 32.1857962,23.4781535 L32.1857962,23.4781535 Z", id: "Path", fill: "#C0C7D5", fillRule: "nonzero" }, void 0), jsx("path", { d: "M27.5671979,27.9028738 C27.6382111,27.6932762 27.6190288,27.4636047 27.5142308,27.2686909 C27.4718917,27.1912347 27.4144104,27.1230825 27.3452047,27.0682861 C27.2269698,26.9776651 27.0823579,26.9281682 26.9333916,26.9273334 C26.0852763,26.9032625 25.2372168,26.8792195 24.3892131,26.8552044 L21.8450763,26.7831172 C21.7919882,26.7814005 21.7388647,26.785172 21.6865515,26.7943717 C21.370897,26.8571087 21.1499452,27.1431441 21.1689716,27.4644099 C21.1689101,27.5522725 21.1832121,27.6395542 21.2113119,27.7228023 C21.2253365,27.7642322 21.2430201,27.8043318 21.2641535,27.8426268 C21.3064794,27.9200921 21.3639627,27.9882468 21.4331796,28.0430316 C21.5514519,28.1336426 21.6960865,28.1831371 21.8450763,28.1839844 L26.9333916,28.3281587 C27.2176258,28.3501687 27.4798179,28.1742374 27.5671979,27.9028738 L27.5671979,27.9028738 Z", id: "Path", fill: "#C0C7D5", fillRule: "nonzero" }, void 0)] }), void 0) }), void 0) }), void 0) }), void 0)] }), void 0));
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
var cellSidePadding = 16;
|
|
60
|
-
var TableGroup = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n overflow: auto;\n padding: ", ";\n /* padding: 20px ", "px 30px 20px; */\n"], ["\n overflow: auto;\n padding: ", ";\n /* padding: 20px ", "px 30px 20px; */\n"])), function (_a) {
|
|
61
|
-
var $bottomPadding = _a.$bottomPadding, $highlightRowExtend = _a.$highlightRowExtend, theme = _a.theme, $topPadding = _a.$topPadding;
|
|
62
|
-
return "".concat($topPadding !== null && $topPadding !== void 0 ? $topPadding : theme.table.topPadding, "px ").concat(($highlightRowExtend || theme.table.highlightRowExtend) + 20, "px ").concat($bottomPadding !== null && $bottomPadding !== void 0 ? $bottomPadding : theme.table.bottomPadding, "px 20px");
|
|
63
|
-
}, function (_a) {
|
|
64
|
-
var highlightRowExtend = _a.$highlightRowExtend, theme = _a.theme;
|
|
65
|
-
return (highlightRowExtend || theme.table.highlightRowExtend) + 20;
|
|
66
|
-
});
|
|
67
|
-
var FullWidth = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n min-width: ", "px;\n position: relative;\n"], ["\n min-width: ", "px;\n position: relative;\n"])), function (_a) {
|
|
68
|
-
var $minimum = _a.$minimum;
|
|
69
|
-
return $minimum;
|
|
70
|
-
});
|
|
71
|
-
var HeaderBox = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-bottom: 1px solid\n ", ";\n display: ", ";\n align-items: end;\n grid-template-columns: ", " [col-", "];\n grid-template-rows: [header] minmax(40px, 1fr);\n position: relative;\n"], ["\n border-bottom: 1px solid\n ", ";\n display: ", ";\n align-items: end;\n grid-template-columns: ", " [col-", "];\n grid-template-rows: [header] minmax(40px, 1fr);\n position: relative;\n"])), function (_a) {
|
|
72
|
-
var headerUnderlineColor = _a.$headerUnderlineColor, $headerless = _a.$headerless, $hideDivider = _a.$hideDivider, theme = _a.theme;
|
|
73
|
-
return $headerless && $hideDivider ? "transparent" : headerUnderlineColor || theme.table.headerUnderlineColor;
|
|
74
|
-
}, function (_a) {
|
|
75
|
-
var $headerless = _a.$headerless;
|
|
76
|
-
return ($headerless ? "block" : "grid");
|
|
77
|
-
}, function (_a) {
|
|
78
|
-
var $columns = _a.$columns;
|
|
79
|
-
return $columns === null || $columns === void 0 ? void 0 : $columns.map(function (_a, index) {
|
|
80
|
-
var fixedWidth = _a.fixedWidth, minWidth = _a.minWidth, width = _a.width;
|
|
81
|
-
return fixedWidth ? "[col-".concat(index, "] ").concat(width, "px ") : "[col-".concat(index, "] minmax(").concat(minWidth || 0, "px, ").concat(width, "fr) ");
|
|
82
|
-
});
|
|
83
|
-
}, function (_a) {
|
|
84
|
-
var $columns = _a.$columns;
|
|
85
|
-
return $columns.length;
|
|
86
|
-
});
|
|
87
|
-
var HeaderCell = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n position: relative;\n text-align: left;\n"], ["\n display: flex;\n position: relative;\n text-align: left;\n"])));
|
|
88
|
-
var HeaderClickTarget = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n grid-column-start: col-", ";\n grid-column-end: col-", ";\n grid-row-start: auto;\n grid-row-end: auto;\n padding-top: 12px;\n position: relative;\n pointer-events: ", ";\n &:after {\n ", ";\n border: solid 1px transparent;\n border-radius: 5px;\n opacity: 0;\n transition: opacity 350ms ease-out 50ms;\n z-index: 0;\n pointer-events: none;\n }\n &:focus-visible {\n outline: none;\n &:after {\n opacity: 1;\n border: solid 1px ", ";\n }\n }\n &:focus-visible {\n outline: none;\n }\n"], ["\n grid-column-start: col-", ";\n grid-column-end: col-", ";\n grid-row-start: auto;\n grid-row-end: auto;\n padding-top: 12px;\n position: relative;\n pointer-events: ", ";\n &:after {\n ", ";\n border: solid 1px transparent;\n border-radius: 5px;\n opacity: 0;\n transition: opacity 350ms ease-out 50ms;\n z-index: 0;\n pointer-events: none;\n }\n &:focus-visible {\n outline: none;\n &:after {\n opacity: 1;\n border: solid 1px ", ";\n }\n }\n &:focus-visible {\n outline: none;\n }\n"])), function (_a) {
|
|
89
|
-
var $index = _a.$index;
|
|
90
|
-
return $index;
|
|
91
|
-
}, function (_a) {
|
|
92
|
-
var $index = _a.$index;
|
|
93
|
-
return $index + 1;
|
|
94
|
-
}, function (_a) {
|
|
95
|
-
var $clickable = _a.$clickable;
|
|
96
|
-
return ($clickable ? "all" : "none");
|
|
97
|
-
}, absoluteAfter({ offset: 0 }), function (_a) {
|
|
98
|
-
var theme = _a.theme;
|
|
99
|
-
return theme.focusColor;
|
|
100
|
-
});
|
|
101
|
-
var HeaderLabel = styled.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n color: ", ";\n cursor: ", ";\n font-size: ", "px;\n font-weight: 700;\n line-height: 140%;\n margin: auto 0;\n padding: 0 ", "px 11px ", "px;\n position: relative;\n &:hover {\n color: ", ";\n }\n"], ["\n color: ", ";\n cursor: ", ";\n font-size: ", "px;\n font-weight: 700;\n line-height: 140%;\n margin: auto 0;\n padding: 0 ", "px 11px ", "px;\n position: relative;\n &:hover {\n color: ", ";\n }\n"])), function (_a) {
|
|
102
|
-
var _b;
|
|
103
|
-
var $active = _a.$active, $activeHeaderColor = _a.$activeHeaderColor, $inactiveHeaderColor = _a.$inactiveHeaderColor, theme = _a.theme;
|
|
104
|
-
return $active ? $activeHeaderColor || theme.table.activeHeaderColor : $inactiveHeaderColor || ((_b = theme.table) === null || _b === void 0 ? void 0 : _b.inactiveHeaderColor);
|
|
105
|
-
}, function (_a) {
|
|
106
|
-
var $clickable = _a.$clickable;
|
|
107
|
-
return ($clickable ? "pointer" : "auto");
|
|
108
|
-
}, function (_a) {
|
|
109
|
-
var $headerFontSize = _a.$headerFontSize, theme = _a.theme;
|
|
110
|
-
return $headerFontSize || theme.table.headerFontSize;
|
|
111
|
-
}, function (_a) {
|
|
112
|
-
var $sortable = _a.$sortable;
|
|
113
|
-
return ($sortable ? cellSidePadding + 25 : cellSidePadding);
|
|
114
|
-
}, cellSidePadding, function (_a) {
|
|
115
|
-
var $active = _a.$active, $activeHeaderColor = _a.$activeHeaderColor, $clickable = _a.$clickable, $inactiveHeaderColor = _a.$inactiveHeaderColor, $inactiveHeaderColorHover = _a.$inactiveHeaderColorHover, theme = _a.theme;
|
|
116
|
-
return $active
|
|
117
|
-
? $activeHeaderColor || theme.table.activeHeaderColor
|
|
118
|
-
: $clickable
|
|
119
|
-
? $inactiveHeaderColorHover || theme.table.inactiveHeaderColorHover
|
|
120
|
-
: $inactiveHeaderColor || theme.table.inactiveHeaderColor;
|
|
121
|
-
});
|
|
122
|
-
var SortIcon = styled.span(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n display: block;\n bottom: ", "px;\n height: ", "px;\n opacity: ", ";\n position: absolute;\n right: ", "px;\n transform: ", ";\n width: ", "px;\n &:hover {\n opacity: 1;\n }\n"], ["\n display: block;\n bottom: ", "px;\n height: ", "px;\n opacity: ", ";\n position: absolute;\n right: ", "px;\n transform: ", ";\n width: ", "px;\n &:hover {\n opacity: 1;\n }\n"])), function (_a) {
|
|
123
|
-
var $active = _a.$active;
|
|
124
|
-
return ($active ? 16 : 11);
|
|
125
|
-
}, function (_a) {
|
|
126
|
-
var $active = _a.$active;
|
|
127
|
-
return ($active ? 9 : 16);
|
|
128
|
-
}, function (_a) {
|
|
129
|
-
var $active = _a.$active;
|
|
130
|
-
return ($active ? 1 : 0.8);
|
|
131
|
-
}, function (_a) {
|
|
132
|
-
var $active = _a.$active;
|
|
133
|
-
return ($active ? 16 : 11);
|
|
134
|
-
}, function (_a) {
|
|
135
|
-
var $flip = _a.$flip;
|
|
136
|
-
return ($flip ? "none" : "rotate(180deg)");
|
|
137
|
-
}, function (_a) {
|
|
138
|
-
var $active = _a.$active;
|
|
139
|
-
return ($active ? 9 : 16);
|
|
140
|
-
});
|
|
141
|
-
var FilterIcon = styled.span(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: block;\n bottom: 13px;\n height: 14px;\n opacity: 0.8;\n position: absolute;\n right: 15px;\n width: 14px;\n &:hover {\n opacity: 1;\n }\n"], ["\n display: block;\n bottom: 13px;\n height: 14px;\n opacity: 0.8;\n position: absolute;\n right: 15px;\n width: 14px;\n &:hover {\n opacity: 1;\n }\n"])));
|
|
142
|
-
var SortIndicator = styled.span(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 10px 10px 0 0;\n display: block;\n height: 4px;\n position: absolute;\n bottom: 0;\n left: 14px;\n right: 14px;\n"], ["\n background-color: ", ";\n border-radius: 10px 10px 0 0;\n display: block;\n height: 4px;\n position: absolute;\n bottom: 0;\n left: 14px;\n right: 14px;\n"])), function (_a) {
|
|
143
|
-
var $active = _a.$active, $sortIndicatorColor = _a.$sortIndicatorColor, theme = _a.theme;
|
|
144
|
-
return $active ? $sortIndicatorColor || theme.table.sortIndicatorColor : "transparent";
|
|
145
|
-
});
|
|
146
|
-
var RowBase = styled.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid transparent;\n border-radius: ", "px;\n cursor: ", ";\n display: grid;\n grid-template-columns: ", " [col-", "];\n grid-template-rows: [row] ", ";\n opacity: ", ";\n padding-left: ", "px;\n padding-right: ", "px;\n pointer-events: ", ";\n position: relative;\n transition: ", ";\n width: ", ";\n\n z-index: ", ";\n\n &:after {\n ", ";\n border-radius: ", ";\n box-shadow: ", ";\n opacity: ", ";\n pointer-events: none;\n right: ", "px;\n transition: opacity 350ms ease-out 200ms;\n }\n &:focus-visible,\n &:hover {\n background-color: ", ";\n z-index: ", ";\n &:after {\n opacity: ", ";\n }\n }\n &:focus-visible {\n outline: none;\n border: 1px solid ", ";\n }\n"], ["\n background-color: ", ";\n border: 1px solid transparent;\n border-radius: ", "px;\n cursor: ", ";\n display: grid;\n grid-template-columns: ", " [col-", "];\n grid-template-rows: [row] ", ";\n opacity: ", ";\n padding-left: ", "px;\n padding-right: ", "px;\n pointer-events: ", ";\n position: relative;\n transition: ", ";\n width: ", ";\n\n z-index: ", ";\n\n &:after {\n ", ";\n border-radius: ", ";\n box-shadow: ", ";\n opacity: ", ";\n pointer-events: none;\n right: ", "px;\n transition: opacity 350ms ease-out 200ms;\n }\n &:focus-visible,\n &:hover {\n background-color: ", ";\n z-index: ", ";\n &:after {\n opacity: ", ";\n }\n }\n &:focus-visible {\n outline: none;\n border: 1px solid ", ";\n }\n"])), function (_a) {
|
|
147
|
-
var $altRow = _a.$altRow, $colorOverride = _a.$colorOverride, $editingMode = _a.$editingMode, $highlightRowColor = _a.$highlightRowColor, $isHighlighted = _a.$isHighlighted, $rowBackgroundColor = _a.$rowBackgroundColor, $rowBackgroundColorAlternating = _a.$rowBackgroundColorAlternating, theme = _a.theme;
|
|
148
|
-
var normal = $altRow
|
|
149
|
-
? $rowBackgroundColorAlternating || theme.table.rowBackgroundColorAlternating
|
|
150
|
-
: $rowBackgroundColor || theme.table.rowBackgroundColor;
|
|
151
|
-
return $colorOverride !== null && $colorOverride !== void 0 ? $colorOverride : ($editingMode || $isHighlighted ? $highlightRowColor || theme.table.highlightRowColor : normal);
|
|
152
|
-
}, function (_a) {
|
|
153
|
-
var _b;
|
|
154
|
-
var $rowBorderRadius = _a.$rowBorderRadius, theme = _a.theme;
|
|
155
|
-
return $rowBorderRadius || ((_b = theme.table) === null || _b === void 0 ? void 0 : _b.rowBorderRadius);
|
|
156
|
-
}, function (_a) {
|
|
157
|
-
var $clickable = _a.$clickable;
|
|
158
|
-
return ($clickable ? "pointer" : "inherit");
|
|
159
|
-
}, function (_a) {
|
|
160
|
-
var $columns = _a.$columns;
|
|
161
|
-
return $columns === null || $columns === void 0 ? void 0 : $columns.map(function (_a, index) {
|
|
162
|
-
var fixedWidth = _a.fixedWidth, minWidth = _a.minWidth, width = _a.width;
|
|
163
|
-
return fixedWidth ? "[col-".concat(index, "] ").concat(width, "px ") : "[col-".concat(index, "] minmax(").concat(minWidth || 0, "px, ").concat(width, "fr) ");
|
|
164
|
-
});
|
|
165
|
-
}, function (_a) {
|
|
166
|
-
var $columns = _a.$columns;
|
|
167
|
-
return $columns.length;
|
|
168
|
-
}, function (_a) {
|
|
169
|
-
var $rowGrow = _a.$rowGrow, $rowHeight = _a.$rowHeight;
|
|
170
|
-
return ($rowGrow ? "minmax(".concat($rowHeight, "px, max-content)") : "".concat($rowHeight, "px"));
|
|
171
|
-
}, function (_a) {
|
|
172
|
-
var $hide = _a.$hide;
|
|
173
|
-
return ($hide ? 0 : 1);
|
|
174
|
-
}, function (_a) {
|
|
175
|
-
var $obscureCheckbox = _a.$obscureCheckbox;
|
|
176
|
-
return ($obscureCheckbox ? 40 : 0);
|
|
177
|
-
}, function (_a) {
|
|
178
|
-
var $highlightRowExtend = _a.$highlightRowExtend, $isHighlighted = _a.$isHighlighted, theme = _a.theme;
|
|
179
|
-
return ($isHighlighted && $highlightRowExtend) || theme.table.highlightRowExtend
|
|
180
|
-
? $highlightRowExtend || theme.table.highlightRowExtend
|
|
181
|
-
: 0;
|
|
182
|
-
}, function (_a) {
|
|
183
|
-
var $hide = _a.$hide;
|
|
184
|
-
return ($hide ? "none" : "all");
|
|
185
|
-
}, function (_a) {
|
|
186
|
-
var $tableIsDragging = _a.$tableIsDragging, $isLoading = _a.$isLoading;
|
|
187
|
-
return $isLoading || $tableIsDragging
|
|
188
|
-
? "none"
|
|
189
|
-
: "opacity 350ms ease-out 200ms, background-color 350ms ease-out 200ms, border-color 350ms ease-out 200ms";
|
|
190
|
-
}, function (_a) {
|
|
191
|
-
var $highlightRowExtend = _a.$highlightRowExtend, $isHighlighted = _a.$isHighlighted, theme = _a.theme;
|
|
192
|
-
return ($isHighlighted && $highlightRowExtend) || theme.table.highlightRowExtend
|
|
193
|
-
? "calc(100% + ".concat($highlightRowExtend || theme.table.highlightRowExtend, "px)")
|
|
194
|
-
: "100%";
|
|
195
|
-
}, function (_a) {
|
|
196
|
-
var $editingMode = _a.$editingMode, $isHighlighted = _a.$isHighlighted;
|
|
197
|
-
return ($editingMode || $isHighlighted ? 2 : 0);
|
|
198
|
-
}, absoluteAfter({}), function (_a) {
|
|
199
|
-
var $editingMode = _a.$editingMode, $rowBorderRadius = _a.$rowBorderRadius, theme = _a.theme;
|
|
200
|
-
var radius = $rowBorderRadius || theme.table.rowBorderRadius;
|
|
201
|
-
return $editingMode ? "".concat(radius, "px 24px 24px ").concat(radius, "px") : "".concat(radius, "px");
|
|
202
|
-
}, function (_a) {
|
|
203
|
-
var $editingMode = _a.$editingMode, $highlightBoxShadow = _a.$highlightBoxShadow, theme = _a.theme;
|
|
204
|
-
return $editingMode ? "0 3px 9px 0.8px rgba(146,151,182,0.2)" : $highlightBoxShadow || theme.table.highlightBoxShadow;
|
|
205
|
-
}, function (_a) {
|
|
206
|
-
var $editingMode = _a.$editingMode, $isHighlighted = _a.$isHighlighted;
|
|
207
|
-
return ($editingMode || $isHighlighted ? 1 : 0);
|
|
208
|
-
}, function (_a) {
|
|
209
|
-
var $editingMode = _a.$editingMode;
|
|
210
|
-
return ($editingMode ? -15 : 0);
|
|
211
|
-
}, function (_a) {
|
|
212
|
-
var $altRow = _a.$altRow, $disableHighlight = _a.$disableHighlight, $highlightRowColor = _a.$highlightRowColor, $rowBackgroundColor = _a.$rowBackgroundColor, $rowBackgroundColorAlternating = _a.$rowBackgroundColorAlternating, theme = _a.theme;
|
|
213
|
-
var normal = $altRow
|
|
214
|
-
? $rowBackgroundColorAlternating || theme.table.rowBackgroundColorAlternating
|
|
215
|
-
: $rowBackgroundColor || theme.table.rowBackgroundColor;
|
|
216
|
-
return $disableHighlight ? normal : $highlightRowColor || theme.table.highlightRowColor;
|
|
217
|
-
}, function (_a) {
|
|
218
|
-
var $editingMode = _a.$editingMode, $isHighlighted = _a.$isHighlighted;
|
|
219
|
-
return ($editingMode || $isHighlighted ? 2 : 1);
|
|
220
|
-
}, function (_a) {
|
|
221
|
-
var $disableHighlight = _a.$disableHighlight;
|
|
222
|
-
return ($disableHighlight ? 0 : 1);
|
|
223
|
-
}, function (_a) {
|
|
224
|
-
var theme = _a.theme;
|
|
225
|
-
return theme.focusColor;
|
|
226
|
-
});
|
|
227
|
-
var Cell = styled.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n border-radius: 6px;\n display: flex;\n grid-column-start: col-", ";\n grid-column-end: col-", ";\n grid-row-start: auto;\n grid-row-end: auto;\n cursor: ", ";\n text-align: left;\n position: relative;\n\n ", ";\n"], ["\n border-radius: 6px;\n display: flex;\n grid-column-start: col-", ";\n grid-column-end: col-", ";\n grid-row-start: auto;\n grid-row-end: auto;\n cursor: ", ";\n text-align: left;\n position: relative;\n\n ", ";\n"])), function (_a) {
|
|
228
|
-
var $index = _a.$index;
|
|
229
|
-
return $index;
|
|
230
|
-
}, function (_a) {
|
|
231
|
-
var $index = _a.$index;
|
|
232
|
-
return $index + 1;
|
|
233
|
-
}, function (_a) {
|
|
234
|
-
var $clickable = _a.$clickable;
|
|
235
|
-
return ($clickable ? "pointer" : "inherit");
|
|
236
|
-
}, function (_a) {
|
|
237
|
-
var $altRow = _a.$altRow, _b = _a.$fetchingAnimationHeight, $fetchingAnimationHeight = _b === void 0 ? FETCHING_ANIMATION_HEIGHT_DEFAULT : _b, $isLoading = _a.$isLoading, _c = _a.$rowHeight, $rowHeight = _c === void 0 ? ROW_HEIGHT_DEFAULT : _c;
|
|
238
|
-
return $isLoading &&
|
|
239
|
-
loadingPseudo({
|
|
240
|
-
borderRadius: $fetchingAnimationHeight / 2 + 1,
|
|
241
|
-
topOffset: $rowHeight / 2 - $fetchingAnimationHeight / 2,
|
|
242
|
-
sideOffset: 17,
|
|
243
|
-
bgColor: $altRow ? colors.COOL_GREY_10 : colors.COOL_GREY_4,
|
|
244
|
-
loadingColor: $altRow ? colors.COOL_GREY_20 : colors.COOL_GREY_15,
|
|
245
|
-
});
|
|
246
|
-
});
|
|
247
|
-
var CellContents = styled.div(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n display: block;\n margin: auto 0;\n max-width: 100%;\n padding: ", ";\n opacity: ", ";\n transition: none;\n width: 100%;\n"], ["\n display: block;\n margin: auto 0;\n max-width: 100%;\n padding: ", ";\n opacity: ", ";\n transition: none;\n width: 100%;\n"])), function (props) {
|
|
248
|
-
var _a, _b, _c, _d;
|
|
249
|
-
var leftPadding = (_b = (_a = props.$leftPadding) !== null && _a !== void 0 ? _a : props.$cellSidePadding) !== null && _b !== void 0 ? _b : cellSidePadding;
|
|
250
|
-
var rightPadding = (_d = (_c = props.$rightPadding) !== null && _c !== void 0 ? _c : (props.$multipleButtons ? 35 : props.$roomForButton ? 15 : props.$cellSidePadding)) !== null && _d !== void 0 ? _d : cellSidePadding;
|
|
251
|
-
return "0 ".concat(rightPadding, "px 0 ").concat(leftPadding, "px");
|
|
252
|
-
}, function (_a) {
|
|
253
|
-
var $isLoading = _a.$isLoading;
|
|
254
|
-
return ($isLoading ? 0 : 1);
|
|
255
|
-
});
|
|
256
|
-
var OptionsMenu = styled.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n cursor: ", ";\n grid-column-start: col-", ";\n grid-column-end: col-", ";\n grid-row-start: auto;\n grid-row-end: auto;\n margin: auto 0;\n opacity: ", ";\n &:focus-within,\n ", ":hover & {\n opacity: ", ";\n }\n"], ["\n cursor: ", ";\n grid-column-start: col-", ";\n grid-column-end: col-", ";\n grid-row-start: auto;\n grid-row-end: auto;\n margin: auto 0;\n opacity: ", ";\n &:focus-within,\n ", ":hover & {\n opacity: ", ";\n }\n"])), function (_a) {
|
|
257
|
-
var $isLoading = _a.$isLoading;
|
|
258
|
-
return ($isLoading ? "auto" : "pointer");
|
|
259
|
-
}, function (_a) {
|
|
260
|
-
var $position = _a.$position;
|
|
261
|
-
return $position - 1;
|
|
262
|
-
}, function (_a) {
|
|
263
|
-
var $position = _a.$position;
|
|
264
|
-
return $position;
|
|
265
|
-
}, function (_a) {
|
|
266
|
-
var $hasOpenTooltip = _a.$hasOpenTooltip;
|
|
267
|
-
return ($hasOpenTooltip ? 1 : 0);
|
|
268
|
-
}, RowBase, function (_a) {
|
|
269
|
-
var $isLoading = _a.$isLoading;
|
|
270
|
-
return ($isLoading ? 0 : 1);
|
|
271
|
-
});
|
|
272
|
-
var HighlightTip = styled.span(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: ", ";\n bottom: 0;\n position: absolute;\n right: 0;\n top: 0;\n width: 5px;\n"], ["\n background-color: ", ";\n border-radius: ", ";\n bottom: 0;\n position: absolute;\n right: 0;\n top: 0;\n width: 5px;\n"])), function (_a) {
|
|
273
|
-
var theme = _a.theme, $highlightTipColor = _a.$highlightTipColor;
|
|
274
|
-
return $highlightTipColor || theme.table.highlightTipColor;
|
|
275
|
-
}, function (_a) {
|
|
276
|
-
var _b, _c;
|
|
277
|
-
var $rowBorderRadius = _a.$rowBorderRadius, theme = _a.theme;
|
|
278
|
-
return "0 ".concat(($rowBorderRadius || ((_b = theme.table) === null || _b === void 0 ? void 0 : _b.rowBorderRadius)) - 1, "px ").concat(($rowBorderRadius || ((_c = theme.table) === null || _c === void 0 ? void 0 : _c.rowBorderRadius)) - 1, "px 0");
|
|
279
|
-
});
|
|
280
|
-
var CheckboxCell = styled.div(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n align-items: center;\n cursor: pointer; // works on Radios\n display: flex;\n grid-column-start: col-0;\n grid-column-end: col-1;\n grid-row-start: auto;\n grid-row-end: auto;\n height: 100%;\n padding-left: 17px;\n width: 100%;\n & ", " {\n cursor: pointer; // works on Checkboxes\n }\n &:focus {\n outline: none;\n ", ":after {\n opacity: 1;\n }\n }\n"], ["\n align-items: center;\n cursor: pointer; // works on Radios\n display: flex;\n grid-column-start: col-0;\n grid-column-end: col-1;\n grid-row-start: auto;\n grid-row-end: auto;\n height: 100%;\n padding-left: 17px;\n width: 100%;\n & ", " {\n cursor: pointer; // works on Checkboxes\n }\n &:focus {\n outline: none;\n ", ":after {\n opacity: 1;\n }\n }\n"])), CheckContainer, CheckContainer);
|
|
281
|
-
var RadioCell = styled(CheckboxCell)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n &:focus {\n outline: none;\n ", ":after {\n opacity: 1;\n }\n }\n"], ["\n &:focus {\n outline: none;\n ", ":after {\n opacity: 1;\n }\n }\n"])), RadioContainer);
|
|
282
|
-
var CheckboxHeaderCell = styled(CheckboxCell)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n padding-bottom: 11px;\n padding-left: 18px;\n"], ["\n padding-bottom: 11px;\n padding-left: 18px;\n"])));
|
|
283
|
-
var EditControls = styled.div(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
|
|
284
|
-
var OkButton = styled.div(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n position: absolute;\n right: 26px;\n top: calc(50% - 13px);\n z-index: 1;\n"], ["\n position: absolute;\n right: 26px;\n top: calc(50% - 13px);\n z-index: 1;\n"])));
|
|
285
|
-
var CancelEditButton = styled.div(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n position: absolute;\n right: -4px;\n top: calc(50% - 11px);\n"], ["\n position: absolute;\n right: -4px;\n top: calc(50% - 11px);\n"])));
|
|
286
|
-
var AddRowSection = styled.div(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
|
|
287
|
-
var AddRowButton = styled.div(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n opacity: ", ";\n pointer-events: ", ";\n position: absolute;\n transform: translate3d(0, ", "px, 0);\n transition: opacity 350ms ease-out 50ms, transform 350ms ease-out 50ms;\n"], ["\n opacity: ", ";\n pointer-events: ", ";\n position: absolute;\n transform: translate3d(0, ", "px, 0);\n transition: opacity 350ms ease-out 50ms, transform 350ms ease-out 50ms;\n"])), function (_a) {
|
|
288
|
-
var $show = _a.$show;
|
|
289
|
-
return ($show ? 1 : 0);
|
|
290
|
-
}, function (_a) {
|
|
291
|
-
var $show = _a.$show;
|
|
292
|
-
return ($show ? "all" : "none");
|
|
293
|
-
}, function (_a) {
|
|
294
|
-
var $show = _a.$show;
|
|
295
|
-
return ($show ? 0 : 100);
|
|
296
|
-
});
|
|
297
|
-
var AddRowButtonClip = styled.div(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n position: absolute;\n top: 13px;\n height: 50px;\n overflow: hidden;\n pointer-events: ", ";\n width: 100%;\n"], ["\n position: absolute;\n top: 13px;\n height: 50px;\n overflow: hidden;\n pointer-events: ", ";\n width: 100%;\n"])), function (_a) {
|
|
298
|
-
var $show = _a.$show;
|
|
299
|
-
return ($show ? "all" : "none");
|
|
300
|
-
});
|
|
301
|
-
var AcceptButton = styled.div(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n opacity: ", ";\n height: 27px;\n pointer-events: ", ";\n position: absolute;\n right: ", "px;\n transition: opacity 350ms ease-out 200ms;\n z-index: 2; /* Needs to be above Row */\n"], ["\n opacity: ", ";\n height: 27px;\n pointer-events: ", ";\n position: absolute;\n right: ", "px;\n transition: opacity 350ms ease-out 200ms;\n z-index: 2; /* Needs to be above Row */\n"])), function (_a) {
|
|
302
|
-
var $show = _a.$show;
|
|
303
|
-
return ($show ? 1 : 0);
|
|
304
|
-
}, function (_a) {
|
|
305
|
-
var $show = _a.$show;
|
|
306
|
-
return ($show ? "all" : "none");
|
|
307
|
-
}, function (_a) {
|
|
308
|
-
var $scrunch = _a.$scrunch;
|
|
309
|
-
return ($scrunch ? 17 : 0);
|
|
310
|
-
});
|
|
311
|
-
var CancelButton = styled.div(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n opacity: ", ";\n pointer-events: ", ";\n position: absolute;\n right: ", "px;\n top: calc(50% - 11px);\n transition: opacity 350ms ease-out 200ms;\n z-index: 2;\n"], ["\n opacity: ", ";\n pointer-events: ", ";\n position: absolute;\n right: ", "px;\n top: calc(50% - 11px);\n transition: opacity 350ms ease-out 200ms;\n z-index: 2;\n"])), function (_a) {
|
|
312
|
-
var $show = _a.$show;
|
|
313
|
-
return ($show ? 1 : 0);
|
|
314
|
-
}, function (_a) {
|
|
315
|
-
var $show = _a.$show;
|
|
316
|
-
return ($show ? "all" : "none");
|
|
317
|
-
}, function (_a) {
|
|
318
|
-
var $scrunch = _a.$scrunch;
|
|
319
|
-
return ($scrunch ? -15 : 12);
|
|
320
|
-
});
|
|
321
|
-
var AddRowValidationMessage = styled(BodySPrimary)(templateObject_26 || (templateObject_26 = __makeTemplateObject(["\n color: ", ";\n margin: 3px 0 0 ", "px;\n opacity: ", ";\n pointer-events: ", ";\n position: relative;\n z-index: 2; /* Needs to be above Row */\n"], ["\n color: ", ";\n margin: 3px 0 0 ", "px;\n opacity: ", ";\n pointer-events: ", ";\n position: relative;\n z-index: 2; /* Needs to be above Row */\n"])), function (_a) {
|
|
322
|
-
var addRowValidationColor = _a.$addRowValidationColor, theme = _a.theme;
|
|
323
|
-
return addRowValidationColor || theme.table.addRowValidationColor;
|
|
324
|
-
}, cellSidePadding, function (_a) {
|
|
325
|
-
var $show = _a.$show;
|
|
326
|
-
return ($show ? 1 : 0);
|
|
327
|
-
}, function (_a) {
|
|
328
|
-
var $show = _a.$show;
|
|
329
|
-
return ($show ? "all" : "none");
|
|
330
|
-
});
|
|
331
|
-
var Center = styled.span(templateObject_27 || (templateObject_27 = __makeTemplateObject(["\n display: block;\n text-align: center;\n"], ["\n display: block;\n text-align: center;\n"])));
|
|
332
|
-
var NoResults = styled.div(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n text-align: center;\n"], ["\n text-align: center;\n"])));
|
|
333
|
-
var NoResultsImage = styled.div(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n height: 100px;\n margin: 100px auto 25px;\n width: 100px;\n"], ["\n height: 100px;\n margin: 100px auto 25px;\n width: 100px;\n"])));
|
|
334
|
-
var NoResultsHeader = styled(HeadingH3)(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n color: ", ";\n margin: 0 auto 10px;\n max-width: 450px;\n text-align: center;\n"], ["\n color: ", ";\n margin: 0 auto 10px;\n max-width: 450px;\n text-align: center;\n"])), function (props) { return props.$noResultsHeaderColor || props.theme.table.noResultsHeaderColor; });
|
|
335
|
-
var NoResultsText = styled(BodyMSecondary)(templateObject_31 || (templateObject_31 = __makeTemplateObject(["\n color: ", ";\n margin: 0 auto 40px;\n max-width: 450px;\n text-align: center;\n"], ["\n color: ", ";\n margin: 0 auto 40px;\n max-width: 450px;\n text-align: center;\n"])), function (props) { return props.$noResultsTextColor || props.theme.table.noResultsTextColor; });
|
|
336
|
-
var ClickShield = styled.div(templateObject_32 || (templateObject_32 = __makeTemplateObject(["\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n"], ["\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n"])));
|
|
337
|
-
// --------- Pagination -----------
|
|
338
|
-
var PaginationFooter = styled.div(templateObject_33 || (templateObject_33 = __makeTemplateObject(["\n position: relative;\n display: flex;\n align-items: center;\n flex-flow: row nowrap;\n justify-content: ", ";\n margin-top: ", ";\n"], ["\n position: relative;\n display: flex;\n align-items: center;\n flex-flow: row nowrap;\n justify-content: ", ";\n margin-top: ", ";\n"])), function (_a) {
|
|
339
|
-
var $isFooterButtonOnly = _a.$isFooterButtonOnly;
|
|
340
|
-
return ($isFooterButtonOnly ? "flex-end" : "space-between");
|
|
341
|
-
}, function (_a) {
|
|
342
|
-
var $isFooterButtonOnly = _a.$isFooterButtonOnly;
|
|
343
|
-
return ($isFooterButtonOnly ? "15px" : "0");
|
|
344
|
-
});
|
|
345
|
-
var PaginationBox = styled.div(templateObject_34 || (templateObject_34 = __makeTemplateObject(["\n position: relative;\n display: flex;\n justify-content: space-around;\n align-items: center;\n gap: 6px;\n"], ["\n position: relative;\n display: flex;\n justify-content: space-around;\n align-items: center;\n gap: 6px;\n"])));
|
|
346
|
-
var LinkBox = styled.div(templateObject_35 || (templateObject_35 = __makeTemplateObject(["\n display: inline-block;\n position: relative;\n top: 2px;\n z-index: 1;\n"], ["\n display: inline-block;\n position: relative;\n top: 2px;\n z-index: 1;\n"])));
|
|
347
|
-
var MenuBox = styled.div(templateObject_36 || (templateObject_36 = __makeTemplateObject(["\n display: inline-block;\n position: relative;\n vertical-align: middle;\n"], ["\n display: inline-block;\n position: relative;\n vertical-align: middle;\n"])));
|
|
348
|
-
var PreviousPageInput = styled(LinkBox)(templateObject_37 || (templateObject_37 = __makeTemplateObject(["\n left: -9px;\n vertical-align: middle;\n width: 30px;\n"], ["\n left: -9px;\n vertical-align: middle;\n width: 30px;\n"])));
|
|
349
|
-
var NextPageInput = styled(PreviousPageInput)(templateObject_38 || (templateObject_38 = __makeTemplateObject(["\n left: -5px;\n"], ["\n left: -5px;\n"])));
|
|
350
|
-
var Results = styled.p(templateObject_39 || (templateObject_39 = __makeTemplateObject(["\n position: relative;\n margin-left: 15px;\n display: inline-block;\n"], ["\n position: relative;\n margin-left: 15px;\n display: inline-block;\n"])));
|
|
351
|
-
var NumberGridBase = styled.div(templateObject_40 || (templateObject_40 = __makeTemplateObject(["\n display: grid;\n grid-template-columns: repeat(", ", 30px);\n"], ["\n display: grid;\n grid-template-columns: repeat(", ", 30px);\n"])), function (_a) {
|
|
352
|
-
var $numberOfColumns = _a.$numberOfColumns;
|
|
353
|
-
return $numberOfColumns;
|
|
354
|
-
});
|
|
355
|
-
var NumberButton = styled.p(templateObject_41 || (templateObject_41 = __makeTemplateObject(["\n color: ", ";\n background-color: transparent;\n font-weight: 400;\n border-radius: 4px;\n text-align: center;\n &:hover {\n color: ", ";\n background-color: ", ";\n font-weight: 600;\n }\n"], ["\n color: ", ";\n background-color: transparent;\n font-weight: 400;\n border-radius: 4px;\n text-align: center;\n &:hover {\n color: ", ";\n background-color: ", ";\n font-weight: 600;\n }\n"])), function (_a) {
|
|
356
|
-
var $textColor = _a.$textColor, theme = _a.theme;
|
|
357
|
-
return $textColor || theme.table.inactiveHeaderColor;
|
|
358
|
-
}, function (_a) {
|
|
359
|
-
var $textColorHover = _a.$textColorHover, theme = _a.theme;
|
|
360
|
-
return $textColorHover || theme.table.activeHeaderColor;
|
|
361
|
-
}, function (_a) {
|
|
362
|
-
var $backgroundHoverColor = _a.$backgroundHoverColor, theme = _a.theme;
|
|
363
|
-
return $backgroundHoverColor || theme.table.rowBackgroundColorAlternating;
|
|
364
|
-
});
|
|
365
|
-
// ------ Edit components ------
|
|
366
|
-
var NudgeToggle = styled.span(templateObject_42 || (templateObject_42 = __makeTemplateObject(["\n display: block;\n margin-left: -13px;\n"], ["\n display: block;\n margin-left: -13px;\n"])));
|
|
367
|
-
var CheckboxBox = styled.span(templateObject_43 || (templateObject_43 = __makeTemplateObject(["\n cursor: pointer;\n display: block;\n margin: 0 auto;\n width: 15px;\n"], ["\n cursor: pointer;\n display: block;\n margin: 0 auto;\n width: 15px;\n"])));
|
|
368
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32, templateObject_33, templateObject_34, templateObject_35, templateObject_36, templateObject_37, templateObject_38, templateObject_39, templateObject_40, templateObject_41, templateObject_42, templateObject_43;
|
|
369
|
-
|
|
370
|
-
var LoadingRows = function (_a) {
|
|
371
|
-
var columns = _a.columns, fetchingAnimationHeight = _a.fetchingAnimationHeight, fetchingRowsNumber = _a.fetchingRowsNumber, rowHeight = _a.rowHeight;
|
|
372
|
-
var loadingRows = [];
|
|
373
|
-
var _loop_1 = function (index) {
|
|
374
|
-
var isAlt = isOdd(index);
|
|
375
|
-
var row = (jsx(RowBase, __assign({ "$altRow": isAlt, "$columns": columns, "$isLoading": true, "$rowHeight": rowHeight }, { children: columns === null || columns === void 0 ? void 0 : columns.map(function (column, i) { return (jsx(Cell, { "$altRow": isAlt, "$clickable": false, "$fetchingAnimationHeight": fetchingAnimationHeight, "$index": i, "$isLoading": column.cellId === "checkbox_header_INTERNAL_ID" ? false : true, "$rowHeight": rowHeight }, "fakeLoader_".concat(column.cellId))); }) }), "fakeLoaderRowBase_".concat(index)));
|
|
376
|
-
loadingRows.push(row);
|
|
377
|
-
};
|
|
378
|
-
for (var index = 0; index < fetchingRowsNumber; index++) {
|
|
379
|
-
_loop_1(index);
|
|
380
|
-
}
|
|
381
|
-
return jsx(Fragment, { children: loadingRows }, void 0);
|
|
382
|
-
};
|
|
383
|
-
|
|
384
|
-
var findDefaultSort = function (_a) {
|
|
385
|
-
var _b;
|
|
386
|
-
var columns = _a.columns, filterFunction = _a.filterFunction;
|
|
387
|
-
var sortId = "";
|
|
388
|
-
for (var i = 0; i < columns.length; i++) {
|
|
389
|
-
var col = columns[i];
|
|
390
|
-
var notFilterable = !filterFunction || !((_b = col.filters) === null || _b === void 0 ? void 0 : _b.length);
|
|
391
|
-
if (!(col === null || col === void 0 ? void 0 : col.disableSort) && notFilterable && (col === null || col === void 0 ? void 0 : col.cellId) && !sortId) {
|
|
392
|
-
sortId = col.cellId;
|
|
393
|
-
i = columns.length * 2;
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
return sortId;
|
|
397
|
-
};
|
|
398
|
-
var setTextEmphasis = function (textStyle) {
|
|
399
|
-
if (!textStyle || textStyle === TextStyleEnum.Primary) {
|
|
400
|
-
return BodySPrimary;
|
|
401
|
-
}
|
|
402
|
-
else if (textStyle === TextStyleEnum.Emphasis) {
|
|
403
|
-
return BodySEmphasis;
|
|
404
|
-
}
|
|
405
|
-
else if (textStyle === TextStyleEnum.Secondary) {
|
|
406
|
-
return BodySSecondary;
|
|
407
|
-
}
|
|
408
|
-
else if (textStyle === TextStyleEnum.Tertiary) {
|
|
409
|
-
return BodySTertiary;
|
|
410
|
-
}
|
|
411
|
-
else {
|
|
412
|
-
return BodySPrimary;
|
|
413
|
-
}
|
|
414
|
-
};
|
|
415
|
-
var formatCellForSort = function (cell) {
|
|
416
|
-
return typeof cell === "string" ? cell.toLowerCase() : cell;
|
|
417
|
-
};
|
|
418
|
-
var pageResults = function (props) {
|
|
419
|
-
var currentPage = props.currentPage, internalPaginationMode = props.internalPaginationMode, rows = props.rows, rowsPerPage = props.rowsPerPage;
|
|
420
|
-
if (rows && internalPaginationMode && currentPage !== undefined && rowsPerPage !== undefined) {
|
|
421
|
-
var first = currentPage * rowsPerPage;
|
|
422
|
-
var last = first + rowsPerPage;
|
|
423
|
-
return rows.slice(first, last);
|
|
424
|
-
}
|
|
425
|
-
else if (rows) {
|
|
426
|
-
return rows;
|
|
427
|
-
}
|
|
428
|
-
else {
|
|
429
|
-
return [];
|
|
430
|
-
}
|
|
431
|
-
};
|
|
432
|
-
var isUsableInitialValue = function (_a) {
|
|
433
|
-
var initialValue = _a.initialValue, editType = _a.editType;
|
|
434
|
-
if (initialValue === undefined || editType === undefined) {
|
|
435
|
-
return false;
|
|
436
|
-
}
|
|
437
|
-
else if (editType === EditEnum.Checkbox || editType === EditEnum.Toggle) {
|
|
438
|
-
return typeof initialValue === "boolean";
|
|
439
|
-
}
|
|
440
|
-
else if (editType === EditEnum.Currency || editType === EditEnum.Number) {
|
|
441
|
-
return typeof initialValue === "number";
|
|
442
|
-
}
|
|
443
|
-
else if (editType === EditEnum.MultiSelect) {
|
|
444
|
-
return Array.isArray(initialValue);
|
|
445
|
-
}
|
|
446
|
-
else if (editType === EditEnum.Phone || editType === EditEnum.Select || editType === EditEnum.String) {
|
|
447
|
-
return typeof initialValue === "string";
|
|
448
|
-
}
|
|
449
|
-
};
|
|
450
|
-
var setCorrectValueType = function (_a) {
|
|
451
|
-
var initialValue = _a.initialValue, editType = _a.editType;
|
|
452
|
-
if (initialValue !== undefined) {
|
|
453
|
-
return initialValue;
|
|
454
|
-
}
|
|
455
|
-
else if (editType === EditEnum.Checkbox || editType === EditEnum.Toggle) {
|
|
456
|
-
return false;
|
|
457
|
-
}
|
|
458
|
-
else if (editType === EditEnum.Currency || editType === EditEnum.Number) {
|
|
459
|
-
return 0;
|
|
460
|
-
}
|
|
461
|
-
else if (editType === EditEnum.MultiSelect) {
|
|
462
|
-
return [];
|
|
463
|
-
}
|
|
464
|
-
else if (editType === EditEnum.Phone || editType === EditEnum.Select || editType === EditEnum.String) {
|
|
465
|
-
return "";
|
|
466
|
-
}
|
|
467
|
-
};
|
|
468
|
-
var sortRows = function (props) {
|
|
469
|
-
var rows = props.rows, ascending = props.ascending, cellId = props.cellId, reverseSort = props.reverseSort;
|
|
470
|
-
if (rows) {
|
|
471
|
-
var doubleFlip = ascending && reverseSort;
|
|
472
|
-
var flip = (ascending || reverseSort) && !doubleFlip;
|
|
473
|
-
var sortedRows = rows.slice().sort(function (rowA, rowB) {
|
|
474
|
-
var valueA = formatCellForSort(rowA[cellId]);
|
|
475
|
-
var valueB = formatCellForSort(rowB[cellId]);
|
|
476
|
-
if (valueA < valueB) {
|
|
477
|
-
return -1;
|
|
478
|
-
}
|
|
479
|
-
if (valueA > valueB) {
|
|
480
|
-
return 1;
|
|
481
|
-
}
|
|
482
|
-
return 0;
|
|
483
|
-
});
|
|
484
|
-
return flip ? sortedRows.reverse() : sortedRows;
|
|
485
|
-
}
|
|
486
|
-
else {
|
|
487
|
-
return [];
|
|
488
|
-
}
|
|
489
|
-
};
|
|
490
|
-
|
|
491
|
-
var EditCell = function (_a) {
|
|
492
|
-
var editType = _a.editType, editSelectLabelFilter = _a.editSelectLabelFilter, editSelectOptions = _a.editSelectOptions, editPlaceholder = _a.editPlaceholder, editWholeDollars = _a.editWholeDollars, focus = _a.focus, index = _a.index, initialValue = _a.initialValue, isVisible = _a.isVisible, label = _a.label, lastCell = _a.lastCell, leftPadding = _a.leftPadding, observeScrollRef = _a.observeScrollRef, rightPadding = _a.rightPadding, roomForButtons = _a.roomForButtons, rowData = _a.rowData, setCellData = _a.setCellData, setEditErrorTooltipPosition = _a.setEditErrorTooltipPosition, showError = _a.showError, submitData = _a.submitData;
|
|
493
|
-
var usableInitialValue = isUsableInitialValue({ initialValue: initialValue, editType: editType });
|
|
494
|
-
var _b = useState(usableInitialValue ? initialValue : setCorrectValueType({ initialValue: initialValue, editType: editType })), value = _b[0], setValue = _b[1];
|
|
495
|
-
var previouslyVisible = usePrevious(isVisible);
|
|
496
|
-
var _c = useMeasure(showError), cellRef = _c[0], cellMeasure = _c[1];
|
|
497
|
-
useEffect(function () {
|
|
498
|
-
if (isVisible && !previouslyVisible) {
|
|
499
|
-
setValue(usableInitialValue ? initialValue : setCorrectValueType({ initialValue: initialValue, editType: editType }));
|
|
500
|
-
}
|
|
501
|
-
}, [isVisible, previouslyVisible]);
|
|
502
|
-
useEffect(function () {
|
|
503
|
-
if (showError) {
|
|
504
|
-
var position = {
|
|
505
|
-
bottom: cellMeasure.bottom,
|
|
506
|
-
left: cellMeasure.left + cellMeasure.width / 2,
|
|
507
|
-
top: cellMeasure.top,
|
|
508
|
-
};
|
|
509
|
-
setEditErrorTooltipPosition === null || setEditErrorTooltipPosition === void 0 ? void 0 : setEditErrorTooltipPosition(position);
|
|
510
|
-
}
|
|
511
|
-
}, [showError]);
|
|
512
|
-
return (jsx(Cell, __assign({ ref: cellRef, "$altRow": false, "$isLoading": false, "$index": index }, { children: jsx(CellContents, __assign({ "$cellSidePadding": editType === EditEnum.Checkbox ? undefined : 10, "$leftPadding": leftPadding, "$rightPadding": rightPadding, "$roomForButton": lastCell, "$multipleButtons": roomForButtons }, { children: editType === EditEnum.Currency && isVisible && typeof value === "number" ? (jsx(InlineCurrencyInput, { focus: focus, inputHeight: 32, inputLabel: label, onEnter: function () { return typeof value !== "boolean" && submitData(value); }, onInputBlur: function () { return setCellData(value); }, onValueChange: function (newValue) { return setValue(Number(newValue)); }, placeholder: editPlaceholder || "$0.00", showValidationMessage: showError, sidePadding: 10, value: value, wholeDollars: !!editWholeDollars }, void 0)) : editType === EditEnum.None ? (jsx(Center, { children: "--" }, void 0)) : editType === EditEnum.Phone && typeof value === "string" ? (jsx(InlinePhoneInput, { focus: focus, inputHeight: 32, inputLabel: label, onEnter: function () { return typeof value !== "boolean" && submitData(value); }, onInputBlur: function () { return setCellData(value); }, onValueChange: function (newValue) { return setValue(newValue); }, placeholder: editPlaceholder || "+0 (000) 000-0000", showValidationMessage: showError, sidePadding: 10, value: value }, void 0)) : editType === EditEnum.Select && isVisible && (typeof value === "string" || typeof value === "number") ? ( // need to force re-render
|
|
513
|
-
jsx(DropdownInput, { disabled: !isVisible, focus: focus, observeScrollRef: observeScrollRef, options: editSelectOptions || [], onSelect: function (option) {
|
|
514
|
-
setValue((option === null || option === void 0 ? void 0 : option.label) || "");
|
|
515
|
-
setCellData((option === null || option === void 0 ? void 0 : option.label) || "");
|
|
516
|
-
}, inline: true, inputHeight: 32, placeholder: editPlaceholder || "".concat(label, "..."), showValidationMessage: showError, sidePadding: 10, value: editSelectLabelFilter ? editSelectLabelFilter({ value: value, rowData: rowData }) : value }, void 0)) : editType === EditEnum.Toggle ? (jsx(NudgeToggle, { children: jsx(Toggle, { active: !!value, disabled: !isVisible, onToggle: function () {
|
|
517
|
-
setValue(!value);
|
|
518
|
-
setCellData(!value);
|
|
519
|
-
} }, void 0) }, void 0)) : editType === EditEnum.Checkbox ? (jsx(CheckboxBox, __assign({ onClick: function () {
|
|
520
|
-
setValue(!value);
|
|
521
|
-
setCellData(!value);
|
|
522
|
-
}, onKeyPress: function (event) {
|
|
523
|
-
if (pressedEnter(event)) {
|
|
524
|
-
event.stopPropagation();
|
|
525
|
-
setValue(!value);
|
|
526
|
-
setCellData(!value);
|
|
527
|
-
}
|
|
528
|
-
}, tabIndex: 0, role: "checkbox" }, { children: jsx(Checkbox, { active: !!value }, void 0) }), void 0)) : editType === EditEnum.MultiSelect && isVisible && Array.isArray(value) ? ( // need to force re-render
|
|
529
|
-
jsx(MultiSelect, { activeIds: value, clearTag: function (_a) {
|
|
530
|
-
var tag = _a.tag;
|
|
531
|
-
var updatedOptions = removeString({ array: value, string: tag.label });
|
|
532
|
-
setValue(updatedOptions);
|
|
533
|
-
setCellData(updatedOptions);
|
|
534
|
-
}, disabled: !isVisible, focus: focus, observeScrollRef: observeScrollRef, options: editSelectOptions || [], onSelect: function (option) {
|
|
535
|
-
var updatedOptions = addOrRemoveString({ array: value, string: (option === null || option === void 0 ? void 0 : option.label) || "" });
|
|
536
|
-
setValue(updatedOptions);
|
|
537
|
-
setCellData(updatedOptions);
|
|
538
|
-
}, inline: true, inputHeight: 32, placeholder: editPlaceholder || "".concat(label, "..."), showValidationMessage: showError, sidePadding: 10, tagless: true }, void 0)) : typeof value === "string" || typeof value === "number" ? (jsx(InlineInput, { focus: focus, inputHeight: 32, inputLabel: label, onEnter: function () { return typeof value !== "boolean" && submitData(value); }, onInputBlur: function () { return setCellData(value); }, onValueChange: function (newValue) { return setValue(newValue); }, placeholder: editPlaceholder || "".concat(label, "..."), showValidationMessage: showError, sidePadding: 10, type: editType === EditEnum.Number ? "number" : "string", value: value }, void 0)) : null }), void 0) }), void 0));
|
|
539
|
-
};
|
|
540
|
-
|
|
541
|
-
var NumberGrid = function (_a) {
|
|
542
|
-
var activeHeaderColor = _a.activeHeaderColor, inactiveHeaderColor = _a.inactiveHeaderColor, numberList = _a.numberList, numberClick = _a.numberClick, rowBackgroundColorAlternating = _a.rowBackgroundColorAlternating;
|
|
543
|
-
var numberOfColumns = (numberList === null || numberList === void 0 ? void 0 : numberList.length) ? Math.ceil(numberList.length / 4) : 1;
|
|
544
|
-
return (jsx(NumberGridBase, __assign({ "$numberOfColumns": numberOfColumns > 2 ? numberOfColumns : 2 }, { children: numberList === null || numberList === void 0 ? void 0 : numberList.map(function (number) {
|
|
545
|
-
return (jsx(NumberButton, __assign({ "$backgroundHoverColor": rowBackgroundColorAlternating, onClick: function () { return numberClick === null || numberClick === void 0 ? void 0 : numberClick(number.id); }, onKeyPress: function (event) {
|
|
546
|
-
if (pressedEnter(event)) {
|
|
547
|
-
numberClick === null || numberClick === void 0 ? void 0 : numberClick(number.id);
|
|
548
|
-
}
|
|
549
|
-
}, role: "button", tabIndex: 0, "$textColor": inactiveHeaderColor, "$textColorHover": activeHeaderColor }, { children: number.label }), number.id));
|
|
550
|
-
}) }), void 0));
|
|
551
|
-
};
|
|
552
|
-
|
|
553
|
-
var Row = function (_a) {
|
|
554
|
-
var calcRowBackgroundColor = _a.calcRowBackgroundColor, cancelEdit = _a.cancelEdit, cellLevelClick = _a.cellLevelClick, clickCheckbox = _a.clickCheckbox, clickRadio = _a.clickRadio, clickRow = _a.clickRow, disableHighlight = _a.disableHighlight, editingMode = _a.editingMode, editRowData = _a.editRowData, editWholeDollars = _a.editWholeDollars, fetching = _a.fetching, fetchingAnimationHeight = _a.fetchingAnimationHeight, columns = _a.columns, columnsWithOptions = _a.columnsWithOptions, hasOpenTooltip = _a.hasOpenTooltip, hasOptions = _a.hasOptions, hideCheckedHighlight = _a.hideCheckedHighlight, highlightBoxShadow = _a.highlightBoxShadow, highlightRow = _a.highlightRow, highlightRowExtend = _a.highlightRowExtend, highlightRowColor = _a.highlightRowColor, highlightTipColor = _a.highlightTipColor, onBlurRow = _a.onBlurRow, onFocusRow = _a.onFocusRow, mouseEnterRow = _a.mouseEnterRow, mouseLeaveRow = _a.mouseLeaveRow, okButtonColorFamily = _a.okButtonColorFamily, row = _a.row, rowIndex = _a.rowIndex, rows = _a.rows, rowBackgroundColor = _a.rowBackgroundColor, rowBackgroundColorAlternating = _a.rowBackgroundColorAlternating, rowBorderRadius = _a.rowBorderRadius, rowGrow = _a.rowGrow, rowHeight = _a.rowHeight, setEditRowData = _a.setEditRowData, setEditErrorTooltipPosition = _a.setEditErrorTooltipPosition, setTooltipOpen = _a.setTooltipOpen, setTooltipPosition = _a.setTooltipPosition, setTooltipInfo = _a.setTooltipInfo, setTooltipIndex = _a.setTooltipIndex, showValidationMessage = _a.showValidationMessage, tableId = _a.tableId, tableIsDragging = _a.tableIsDragging, thisRowId = _a.thisRowId, validationMessage = _a.validationMessage, validateRowEdit = _a.validateRowEdit;
|
|
555
|
-
var ref = useRef(null);
|
|
556
|
-
var isChecked = (!!clickCheckbox || !!clickRadio) && !!row.checked && !hideCheckedHighlight;
|
|
557
|
-
var altRow = isOdd(rowIndex);
|
|
558
|
-
var isHighlighted = isChecked || highlightRow === thisRowId;
|
|
559
|
-
var colorOverride = calcRowBackgroundColor === null || calcRowBackgroundColor === void 0 ? void 0 : calcRowBackgroundColor({ row: row, rowIndex: rowIndex, rows: rows });
|
|
560
|
-
return (jsxs(RowBase, __assign({ ref: ref, "data-testid": editingMode ? "tableEditRow_".concat(thisRowId) : "rowId_".concat(thisRowId), "$altRow": altRow, "$colorOverride": fetching ? undefined : colorOverride, "$clickable": !!clickRow && !cellLevelClick, "$columns": columnsWithOptions, "$disableHighlight": disableHighlight || tableIsDragging, "$editingMode": editingMode, "$highlightBoxShadow": highlightBoxShadow, "$highlightRowColor": highlightRowColor, "$highlightRowExtend": highlightRowExtend, "$isHighlighted": isHighlighted, "$isLoading": fetching }, (clickRow && !cellLevelClick ? { onClick: function () { return clickRow(row); } } : {}), (clickRow ? { onKeyPress: function (event) { return pressedEnter(event) && clickRow(row); } } : {}), { onBlur: function (event) { return onBlurRow === null || onBlurRow === void 0 ? void 0 : onBlurRow({ event: event, row: row }); }, onFocus: function (event) { return onFocusRow === null || onFocusRow === void 0 ? void 0 : onFocusRow({ event: event, row: row }); }, onMouseEnter: function (event) { return mouseEnterRow === null || mouseEnterRow === void 0 ? void 0 : mouseEnterRow({ event: event, row: row }); }, onMouseLeave: function (event) { return mouseLeaveRow === null || mouseLeaveRow === void 0 ? void 0 : mouseLeaveRow({ event: event, row: row }); }, tabIndex: clickRow ? 0 : -1, "$rowBackgroundColor": rowBackgroundColor, "$rowHeight": rowHeight, "$tableIsDragging": tableIsDragging, "$rowBackgroundColorAlternating": rowBackgroundColorAlternating, "$rowBorderRadius": rowBorderRadius, "$rowGrow": rowGrow }, { children: [clickCheckbox && (jsx(CheckboxCell, __assign({ onClick: function () { return clickCheckbox(row); }, onKeyPress: function (event) {
|
|
561
|
-
if (pressedEnter(event)) {
|
|
562
|
-
event.stopPropagation();
|
|
563
|
-
clickCheckbox(row);
|
|
564
|
-
}
|
|
565
|
-
}, role: "checkbox", tabIndex: 0 }, { children: jsx(Checkbox, { active: !!row.checked }, void 0) }), void 0)), clickRadio && !clickCheckbox && (jsx(RadioCell, __assign({ onClick: function () { return clickRadio(row); }, onKeyPress: function (event) {
|
|
566
|
-
if (pressedEnter(event)) {
|
|
567
|
-
event.stopPropagation();
|
|
568
|
-
clickRadio(row);
|
|
569
|
-
}
|
|
570
|
-
}, role: "radio", tabIndex: 0 }, { children: jsx(Radio, { active: !!row.checked, size: 20 }, void 0) }), void 0)), columns === null || columns === void 0 ? void 0 : columns.map(function (column, i) {
|
|
571
|
-
var _a;
|
|
572
|
-
var clickCell = column.clickCell, ComponentWrapper = column.ComponentWrapper, editType = column.editType, cellId = column.cellId, editSelectOptions = column.editSelectOptions, editSelectLabelFilter = column.editSelectLabelFilter, editSelectOptionsFilter = column.editSelectOptionsFilter, editPlaceholder = column.editPlaceholder, label = column.label, leftPadding = column.leftPadding, rightPadding = column.rightPadding;
|
|
573
|
-
var adjustedIndex = clickCheckbox || clickRadio ? i + 1 : i;
|
|
574
|
-
var Text = setTextEmphasis(column.textStyle);
|
|
575
|
-
var contents = row[column.cellId];
|
|
576
|
-
// clickable when there is a cellClick for this row, or a cellClick elsewhere & clickRow
|
|
577
|
-
var clickable = clickCell || (cellLevelClick && clickRow);
|
|
578
|
-
var cellInError = editingMode && showValidationMessage && ((_a = validationMessage === null || validationMessage === void 0 ? void 0 : validationMessage.offendingCellIds) === null || _a === void 0 ? void 0 : _a.includes(column.cellId));
|
|
579
|
-
return editingMode ? (jsx(EditCell, { altRow: altRow, editType: editType, editSelectLabelFilter: editSelectLabelFilter, editSelectOptions: editSelectOptionsFilter ? editSelectOptionsFilter({ column: column, rowData: editRowData }) : editSelectOptions, editPlaceholder: editPlaceholder, editWholeDollars: editWholeDollars, focus: i === 0, index: adjustedIndex, initialValue: contents, isVisible: true, label: typeof label === "string" ? label : "", leftPadding: leftPadding, rightPadding: rightPadding, roomForButtons: adjustedIndex === columns.length - 1, rowData: editRowData, setCellData: function (value) {
|
|
580
|
-
var newData = __assign({}, editRowData);
|
|
581
|
-
newData[cellId] = value;
|
|
582
|
-
setEditRowData(newData);
|
|
583
|
-
}, setEditErrorTooltipPosition: setEditErrorTooltipPosition, showError: cellInError, submitData: function (value) {
|
|
584
|
-
var newData = __assign({}, editRowData);
|
|
585
|
-
newData[cellId] = value;
|
|
586
|
-
setEditRowData(newData);
|
|
587
|
-
validateRowEdit(newData);
|
|
588
|
-
} }, "".concat(tableId, "_addRow_").concat(column.cellId))) : (jsx(Cell, __assign({ "$altRow": altRow, "$clickable": !!clickable, "$fetchingAnimationHeight": fetchingAnimationHeight, "$index": adjustedIndex, "$isLoading": fetching, "$rowHeight": rowHeight }, (clickable ? { onClick: function () { return (clickCell ? clickCell({ cell: contents, column: column, row: row, rows: rows }) : clickRow === null || clickRow === void 0 ? void 0 : clickRow(row)); } } : {}), { children: jsx(CellContents, __assign({ "$isLoading": fetching, "$leftPadding": leftPadding, "$rightPadding": rightPadding }, { children: ComponentWrapper ? (jsx(ComponentWrapper, __assign({ cell: contents, column: column, row: row, rows: rows, rowIndex: rowIndex }, { children: contents }), void 0)) : (jsx(Text, { children: jsx(TruncatePicker, { children: contents }, void 0) }, void 0)) }), void 0) }), "".concat(tableId).concat(thisRowId, "_").concat(column.cellId)));
|
|
589
|
-
}), editingMode && (jsxs(EditControls, { children: [jsx(OkButton, { children: jsx(BoxedButton, { text: "OK", onClick: function () { return validateRowEdit(editRowData); }, paddingString: "6px 7px", textFontSize: 11, colorFamily: okButtonColorFamily }, void 0) }, void 0), jsx(CancelEditButton, { children: jsx(IconButton, { ariaLabel: "tableCancelEditRow_".concat(thisRowId), colorFamily: ButtonColorFamilyEnum.CoolGrey, Icon: X, onClick: cancelEdit, size: 22 }, void 0) }, void 0)] }, void 0)), hasOptions && !editingMode && (jsx(OptionsMenu, __assign({ "$position": (columnsWithOptions === null || columnsWithOptions === void 0 ? void 0 : columnsWithOptions.length) || 1, "$isLoading": fetching, "$hasOpenTooltip": hasOpenTooltip }, { children: jsx(MoreMenuButton, { onClick: function (event) {
|
|
590
|
-
event.stopPropagation();
|
|
591
|
-
setTooltipOpen(true);
|
|
592
|
-
setTooltipPosition(getPosition(event.target));
|
|
593
|
-
setTooltipInfo(row);
|
|
594
|
-
setTooltipIndex(rowIndex);
|
|
595
|
-
} }, void 0) }), void 0)), isHighlighted && (jsx(HighlightTip, { "data-testid": "highlightedTipId_".concat(thisRowId), "$highlightTipColor": highlightTipColor, "$rowBorderRadius": rowBorderRadius }, void 0))] }), void 0));
|
|
596
|
-
};
|
|
597
|
-
Row.defaultProps = {};
|
|
598
|
-
var Row$1 = React__default.memo(Row);
|
|
599
|
-
|
|
600
|
-
var CheckboxHeader = function (_a) {
|
|
601
|
-
var checkboxHeaderActive = _a.checkboxHeaderActive, clickCheckboxHeader = _a.clickCheckboxHeader;
|
|
602
|
-
return (jsx(CheckboxHeaderCell, __assign({ onClick: function (event) { return clickCheckboxHeader === null || clickCheckboxHeader === void 0 ? void 0 : clickCheckboxHeader(event); }, onKeyPress: function (event) {
|
|
603
|
-
if (pressedEnter(event) && clickCheckboxHeader) {
|
|
604
|
-
clickCheckboxHeader(event);
|
|
605
|
-
}
|
|
606
|
-
}, role: "checkbox", tabIndex: 0 }, { children: jsx(Checkbox, { active: checkboxHeaderActive }, void 0) }), void 0));
|
|
607
|
-
};
|
|
608
|
-
|
|
609
|
-
var TableActionType;
|
|
610
|
-
(function (TableActionType) {
|
|
611
|
-
TableActionType["End"] = "END";
|
|
612
|
-
TableActionType["Splice"] = "SPLICE";
|
|
613
|
-
TableActionType["Update"] = "UPDATE";
|
|
614
|
-
})(TableActionType || (TableActionType = {}));
|
|
615
|
-
function tableReducer(state, action) {
|
|
616
|
-
var type = action.type;
|
|
617
|
-
switch (type) {
|
|
618
|
-
case TableActionType.End: {
|
|
619
|
-
return __assign(__assign({}, state), { tableIsDragging: false });
|
|
620
|
-
}
|
|
621
|
-
case TableActionType.Splice: {
|
|
622
|
-
var dragId = action.dragId, nextId = action.nextId;
|
|
623
|
-
var row = state.rowsById[dragId];
|
|
624
|
-
var nextRow = state.rowsById[nextId];
|
|
625
|
-
var rowIndex = state.sortedRows.indexOf(row);
|
|
626
|
-
var nextIndex = state.sortedRows.indexOf(nextRow);
|
|
627
|
-
var updatedRows = update(state.sortedRows, {
|
|
628
|
-
$splice: [
|
|
629
|
-
[rowIndex, 1],
|
|
630
|
-
[nextIndex, 0, row],
|
|
631
|
-
],
|
|
632
|
-
});
|
|
633
|
-
return __assign(__assign({}, state), { sortedRows: updatedRows, tableIsDragging: true });
|
|
634
|
-
}
|
|
635
|
-
case TableActionType.Update: {
|
|
636
|
-
var sortedRows = action.sortedRows, rowId = action.rowId;
|
|
637
|
-
var rowsById = {};
|
|
638
|
-
for (var i = 0; i < sortedRows.length; i += 1) {
|
|
639
|
-
var row = sortedRows[i];
|
|
640
|
-
rowsById[row[rowId]] = row;
|
|
641
|
-
}
|
|
642
|
-
return __assign(__assign({}, state), { rowsById: rowsById, sortedRows: sortedRows });
|
|
643
|
-
}
|
|
644
|
-
default:
|
|
645
|
-
throw new Error();
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
var DEFAULT_NO_RESULTS_TEXT = "No Results Found";
|
|
650
|
-
var DEFAULT_NO_RESULTS_BUTTON_TEXT = "Clear Filters";
|
|
651
|
-
var ADD_ROW_TEXT_DEFAULT = "Add Row";
|
|
652
|
-
var EDIT_OPTION_ID = "internal_edit_id";
|
|
653
|
-
var ROW_LOADING_ID = "loading";
|
|
654
|
-
var FETCHING_ANIMATION_HEIGHT_DEFAULT = 10;
|
|
655
|
-
var ROW_HEIGHT_DEFAULT = 52;
|
|
656
|
-
var PAGINATION_PICKER_MAX = 24;
|
|
657
|
-
var ROW_ID_DEFAULT = "id";
|
|
658
|
-
var TABLE_ID_DEFAULT = "table__";
|
|
659
|
-
var checkboxHeader = {
|
|
660
|
-
cellId: "checkbox_header_INTERNAL_ID",
|
|
661
|
-
label: "",
|
|
662
|
-
width: 40,
|
|
663
|
-
fixedWidth: true,
|
|
664
|
-
disableSort: true,
|
|
665
|
-
};
|
|
666
|
-
var radioHeader = {
|
|
667
|
-
cellId: "radio_header_INTERNAL_ID",
|
|
668
|
-
label: "",
|
|
669
|
-
width: 40,
|
|
670
|
-
fixedWidth: true,
|
|
671
|
-
disableSort: true,
|
|
672
|
-
};
|
|
673
|
-
var optionHeader = {
|
|
674
|
-
cellId: "options",
|
|
675
|
-
label: "",
|
|
676
|
-
width: 40,
|
|
677
|
-
fixedWidth: true,
|
|
678
|
-
disableSort: true,
|
|
679
|
-
};
|
|
680
|
-
var Table = function (_a) {
|
|
681
|
-
var activeHeaderColor = _a.activeHeaderColor, activeFilters = _a.activeFilters, addRow = _a.addRow, addRowButtonColorFamily = _a.addRowButtonColorFamily, addRowButtonFontSize = _a.addRowButtonFontSize, _b = _a.addRowText, addRowText = _b === void 0 ? ADD_ROW_TEXT_DEFAULT : _b, addRowValidation = _a.addRowValidation, addRowValidationColor = _a.addRowValidationColor, addRowValidationMessage = _a.addRowValidationMessage, _c = _a.altOptions, altOptions = _c === void 0 ? [] : _c, bottomPadding = _a.bottomPadding, calcRowBackgroundColor = _a.calcRowBackgroundColor, checkboxHeaderActive = _a.checkboxHeaderActive, clickCheckbox = _a.clickCheckbox, clickCheckboxHeader = _a.clickCheckboxHeader, clickHeader = _a.clickHeader, clickOption = _a.clickOption, clickRadio = _a.clickRadio, clickRow = _a.clickRow, columns = _a.columns, defaultSort = _a.defaultSort, defaultSortReverse = _a.defaultSortReverse, disableSortAll = _a.disableSortAll, dynamicAltOptions = _a.dynamicAltOptions, dynamicOptions = _a.dynamicOptions, editable = _a.editable, editRowValidation = _a.editRowValidation, editRowValidationMessageObject = _a.editRowValidationMessageObject, editWholeDollars = _a.editWholeDollars, _d = _a.fetching, fetching = _d === void 0 ? false : _d, _e = _a.fetchingAnimationHeight, fetchingAnimationHeight = _e === void 0 ? FETCHING_ANIMATION_HEIGHT_DEFAULT : _e, fetchingRowsNumber = _a.fetchingRowsNumber, filterFunction = _a.filterFunction, footerButtonColorFamily = _a.footerButtonColorFamily, onFooterButtonClick = _a.onFooterButtonClick, FooterButtonIcon = _a.FooterButtonIcon, footerButtonText = _a.footerButtonText, headerFontSize = _a.headerFontSize, headerUnderlineColor = _a.headerUnderlineColor, headerless = _a.headerless, _f = _a.hideCheckedHighlight, hideCheckedHighlight = _f === void 0 ? false : _f, hideDivider = _a.hideDivider, highlightBoxShadow = _a.highlightBoxShadow, highlightRow = _a.highlightRow, highlightRowExtend = _a.highlightRowExtend, highlightRowColor = _a.highlightRowColor, highlightTipColor = _a.highlightTipColor, inactiveHeaderColor = _a.inactiveHeaderColor, inactiveHeaderColorHover = _a.inactiveHeaderColorHover, isRowClickable = _a.isRowClickable, _g = _a.loadingRowId, loadingRowId = _g === void 0 ? ROW_LOADING_ID : _g, mouseEnterRow = _a.mouseEnterRow, mouseLeaveRow = _a.mouseLeaveRow, noResultsFunction = _a.noResultsFunction, noResultsButtonColorFamily = _a.noResultsButtonColorFamily, _h = _a.noResultsButtonText, noResultsButtonText = _h === void 0 ? DEFAULT_NO_RESULTS_BUTTON_TEXT : _h, noResultsHeader = _a.noResultsHeader, noResultsHeaderColor = _a.noResultsHeaderColor, _j = _a.noResultsText, noResultsText = _j === void 0 ? DEFAULT_NO_RESULTS_TEXT : _j, noResultsTextColor = _a.noResultsTextColor, observeScrollRef = _a.observeScrollRef, onBlurRow = _a.onBlurRow, onEdit = _a.onEdit, onFocusRow = _a.onFocusRow, onFilterMenuClose = _a.onFilterMenuClose, onFilterMenuOpen = _a.onFilterMenuOpen, onPagination = _a.onPagination, _k = _a.options, options = _k === void 0 ? [] : _k, paginationStart = _a.paginationStart, parentSort = _a.parentSort, rowBackgroundColor = _a.rowBackgroundColor, rowBackgroundColorAlternating = _a.rowBackgroundColorAlternating, rowBorderRadius = _a.rowBorderRadius, rowGrow = _a.rowGrow, _l = _a.rowHeight, rowHeight = _l === void 0 ? ROW_HEIGHT_DEFAULT : _l, _m = _a.rowId, rowId = _m === void 0 ? ROW_ID_DEFAULT : _m, _o = _a.rows, rows = _o === void 0 ? [] : _o, rowsPerPage = _a.rowsPerPage, sortIndicatorColor = _a.sortIndicatorColor, _p = _a.tableId, tableId = _p === void 0 ? TABLE_ID_DEFAULT : _p, topPadding = _a.topPadding, totalItems = _a.totalItems;
|
|
682
|
-
var theme = useTheme();
|
|
683
|
-
var _q = useState(columns), alteredColumns = _q[0], setAlteredColumns = _q[1];
|
|
684
|
-
var _r = useState(false), cellLevelClick = _r[0], setCellLevelClick = _r[1];
|
|
685
|
-
var _s = useState(false), addRowMode = _s[0], setAddRowMode = _s[1];
|
|
686
|
-
var _t = useState({}), addRowData = _t[0], setAddRowData = _t[1];
|
|
687
|
-
var _u = useState({}), editRowData = _u[0], setEditRowData = _u[1];
|
|
688
|
-
var _v = useState({ top: 0, left: 0, bottom: 0 }), editErrorTooltipPosition = _v[0], setEditErrorTooltipPosition = _v[1];
|
|
689
|
-
var _w = useState(""), editRowId = _w[0], setEditRowId = _w[1];
|
|
690
|
-
// filters panel data
|
|
691
|
-
var _x = useState(), filtersPanelContent = _x[0], setFiltersPanelContent = _x[1];
|
|
692
|
-
var _y = useState(false), filtersPanelOpen = _y[0], setFiltersPanelOpen = _y[1];
|
|
693
|
-
var _z = useState(false), filtersPanelUseRadio = _z[0], setFiltersPanelUseRadio = _z[1];
|
|
694
|
-
var _0 = useState(0), filtersPanelIndex = _0[0], setFiltersPanelIndex = _0[1];
|
|
695
|
-
var _1 = useState({
|
|
696
|
-
x: 0,
|
|
697
|
-
y: 0,
|
|
698
|
-
width: 0,
|
|
699
|
-
height: 0,
|
|
700
|
-
top: 0,
|
|
701
|
-
left: 0,
|
|
702
|
-
bottom: 0,
|
|
703
|
-
right: 0,
|
|
704
|
-
}), filtersButtonMeasure = _1[0], setFiltersButtonMeasure = _1[1];
|
|
705
|
-
var filtersRefArray = useRef([]);
|
|
706
|
-
var _2 = useState(false), focusFirstEditableCell = _2[0], setFocusFirstEditableCell = _2[1];
|
|
707
|
-
var _3 = useState([]), optimisticRows = _3[0], setOptimisticRows = _3[1];
|
|
708
|
-
var _4 = useState(false), showAddRowValidationMessage = _4[0], setShowAddRowValidationMessage = _4[1];
|
|
709
|
-
var _5 = useState(false), showEditRowValidationMessage = _5[0], setShowEditRowValidationMessage = _5[1];
|
|
710
|
-
var _6 = useState(""), sortId = _6[0], setSortId = _6[1];
|
|
711
|
-
var _7 = useState(false), sortAscending = _7[0], setSortAscending = _7[1];
|
|
712
|
-
var _8 = useReducer(tableReducer, {
|
|
713
|
-
sortedRows: rows,
|
|
714
|
-
rowsById: {},
|
|
715
|
-
tableIsDragging: false,
|
|
716
|
-
}), _9 = _8[0], sortedRows = _9.sortedRows, tableIsDragging = _9.tableIsDragging, dispatch = _8[1];
|
|
717
|
-
var _10 = useState(1000), tableWidth = _10[0], setTableWidth = _10[1];
|
|
718
|
-
var _11 = useState({}), tooltipInfo = _11[0], setTooltipInfo = _11[1];
|
|
719
|
-
var _12 = useState(0), tooltipIndex = _12[0], setTooltipIndex = _12[1];
|
|
720
|
-
var _13 = useState(false), tooltipOpen = _13[0], setTooltipOpen = _13[1];
|
|
721
|
-
var _14 = useState({ top: 0, left: 0, bottom: 0 }), tooltipPosition = _14[0], setTooltipPosition = _14[1];
|
|
722
|
-
var _15 = useState(options), usableOptions = _15[0], setUsableOptions = _15[1];
|
|
723
|
-
var hasOptions = (usableOptions === null || usableOptions === void 0 ? void 0 : usableOptions.length) > 0;
|
|
724
|
-
var sortableTable = !disableSortAll;
|
|
725
|
-
var showNoResultsMessage = rows.length === 0 && !fetching;
|
|
726
|
-
var showLoadingRows = fetching && rows.length === 0;
|
|
727
|
-
var editOption = {
|
|
728
|
-
id: EDIT_OPTION_ID,
|
|
729
|
-
label: jsx(TableOptionLabel, { Icon: Edit, label: "Edit" }, void 0),
|
|
730
|
-
onClick: function (data) { return setEditRowId(data.row[rowId]); },
|
|
731
|
-
};
|
|
732
|
-
// Memoized Row functions
|
|
733
|
-
var cancelEdit = useCallback(function () {
|
|
734
|
-
setEditRowId("");
|
|
735
|
-
setShowEditRowValidationMessage(false);
|
|
736
|
-
}, []);
|
|
737
|
-
// const cancelEdit = useCallback(() => {}, []);
|
|
738
|
-
// Pagination
|
|
739
|
-
var _16 = useState(0), numberOfPages = _16[0], setNumberOfPages = _16[1]; // 0 for no pagination necessary
|
|
740
|
-
var _17 = useState(0), currentPage = _17[0], setCurrentPage = _17[1];
|
|
741
|
-
var _18 = useState([]), pageNumberOptions = _18[0], setPageNumberOptions = _18[1];
|
|
742
|
-
var _19 = useState(""), paginationKey = _19[0], setPaginationKey = _19[1];
|
|
743
|
-
var _20 = useState(false), showPreviousPagesInput = _20[0], setShowPreviousPagesInput = _20[1];
|
|
744
|
-
var _21 = useState(false), showPreviousPagesInputError = _21[0], setShowPreviousPagesInputError = _21[1];
|
|
745
|
-
var _22 = useState(), previousPagesInputValue = _22[0], setPreviousPagesInputValue = _22[1];
|
|
746
|
-
var _23 = useState(false), showPreviousPagesTooltip = _23[0], setShowPreviousPagesTooltip = _23[1];
|
|
747
|
-
var _24 = useState({ top: 0, left: 0, bottom: 0 }), previousPagesTooltipPosition = _24[0], setPreviousPagesTooltipPosition = _24[1];
|
|
748
|
-
var _25 = useState([]), previousMissingNumbers = _25[0], setPreviousMissingNumbers = _25[1];
|
|
749
|
-
var _26 = useState(false), showNextPagesInput = _26[0], setShowNextPagesInput = _26[1];
|
|
750
|
-
var _27 = useState(false), showNextPagesInputError = _27[0], setShowNextPagesInputError = _27[1];
|
|
751
|
-
var _28 = useState(), nextPagesInputValue = _28[0], setNextPagesInputValue = _28[1];
|
|
752
|
-
var _29 = useState(false), showNextPagesTooltip = _29[0], setShowNextPagesTooltip = _29[1];
|
|
753
|
-
var _30 = useState({ top: 0, left: 0, bottom: 0 }), nextPagesTooltipPosition = _30[0], setNextPagesTooltipPosition = _30[1];
|
|
754
|
-
var _31 = useState([]), nextMissingNumbers = _31[0], setNextMissingNumbers = _31[1];
|
|
755
|
-
var _32 = useState([]), visiblePageNumberOptions = _32[0], setVisiblePageNumberOptions = _32[1];
|
|
756
|
-
var externalPaginationMode = paginationStart !== undefined &&
|
|
757
|
-
onPagination !== undefined &&
|
|
758
|
-
totalItems !== undefined &&
|
|
759
|
-
rowsPerPage !== undefined &&
|
|
760
|
-
totalItems > rows.length;
|
|
761
|
-
var paginationMode = (rowsPerPage && rowsPerPage < rows.length) || externalPaginationMode;
|
|
762
|
-
var fakeFirstLink = numberOfPages > 6 && currentPage >= 4;
|
|
763
|
-
var fakeLastLink = numberOfPages > 6 && currentPage <= numberOfPages - 5;
|
|
764
|
-
var clearPreviousPageInput = function () {
|
|
765
|
-
setShowPreviousPagesInput(false);
|
|
766
|
-
setPreviousPagesInputValue(undefined);
|
|
767
|
-
setShowPreviousPagesInputError(false);
|
|
768
|
-
};
|
|
769
|
-
var clearNextPageInput = function () {
|
|
770
|
-
setShowNextPagesInput(false);
|
|
771
|
-
setNextPagesInputValue(undefined);
|
|
772
|
-
setShowNextPagesInputError(false);
|
|
773
|
-
};
|
|
774
|
-
var sortHeader = function (column) {
|
|
775
|
-
var cellId = column.cellId, disableSort = column.disableSort, reverseSort = column.reverseSort, sortFunction = column.sortFunction;
|
|
776
|
-
var ascending = sortId === cellId && !sortAscending;
|
|
777
|
-
if (clickHeader) {
|
|
778
|
-
clickHeader(column, ascending);
|
|
779
|
-
}
|
|
780
|
-
if (sortableTable && !disableSort) {
|
|
781
|
-
setSortAscending(ascending);
|
|
782
|
-
setSortId(cellId);
|
|
783
|
-
if (!parentSort) {
|
|
784
|
-
var sortParams = { rows: __spreadArray(__spreadArray([], sortedRows, true), optimisticRows, true), ascending: ascending, cellId: cellId, reverseSort: reverseSort };
|
|
785
|
-
var shuffledRows = sortFunction ? sortFunction(sortParams) : sortRows(sortParams);
|
|
786
|
-
dispatch({ type: TableActionType.Update, sortedRows: shuffledRows || [], rowId: rowId });
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
};
|
|
790
|
-
var sortRowsById = function (_a) {
|
|
791
|
-
var cellId = _a.cellId, _b = _a.extraRows, extraRows = _b === void 0 ? [] : _b, reverse = _a.reverse, updatedRows = _a.updatedRows;
|
|
792
|
-
var confirmedRows = updatedRows !== null && updatedRows !== void 0 ? updatedRows : sortedRows;
|
|
793
|
-
var sortingColumn = getObjectById({ array: columns, id: cellId, idKey: "cellId" });
|
|
794
|
-
if (sortingColumn && !sortingColumn.disableSort) {
|
|
795
|
-
var reverseSort = sortingColumn.reverseSort, sortFunction = sortingColumn.sortFunction;
|
|
796
|
-
var sortParams = {
|
|
797
|
-
rows: __spreadArray(__spreadArray([], confirmedRows, true), extraRows, true),
|
|
798
|
-
ascending: sortAscending,
|
|
799
|
-
cellId: cellId,
|
|
800
|
-
reverseSort: reverse ? !reverseSort : reverseSort,
|
|
801
|
-
};
|
|
802
|
-
var shuffledRows = sortFunction ? sortFunction(sortParams) : sortRows(sortParams);
|
|
803
|
-
dispatch({ type: TableActionType.Update, sortedRows: shuffledRows || [], rowId: rowId });
|
|
804
|
-
}
|
|
805
|
-
else {
|
|
806
|
-
dispatch({ type: TableActionType.Update, sortedRows: __spreadArray(__spreadArray([], confirmedRows, true), extraRows, true), rowId: rowId });
|
|
807
|
-
}
|
|
808
|
-
};
|
|
809
|
-
var openFilterPanel = function (props) {
|
|
810
|
-
var column = props.column, index = props.index;
|
|
811
|
-
var rect = filtersRefArray.current[index].getBoundingClientRect();
|
|
812
|
-
setFiltersPanelOpen(true);
|
|
813
|
-
onFilterMenuOpen === null || onFilterMenuOpen === void 0 ? void 0 : onFilterMenuOpen();
|
|
814
|
-
setFiltersButtonMeasure(rect);
|
|
815
|
-
setFiltersPanelContent(column);
|
|
816
|
-
setFiltersPanelIndex(index);
|
|
817
|
-
setFiltersPanelUseRadio(!!column.radioFilters);
|
|
818
|
-
};
|
|
819
|
-
var remeasureFilterPanelPositon = function () {
|
|
820
|
-
var rect = filtersRefArray.current[filtersPanelIndex].getBoundingClientRect();
|
|
821
|
-
setFiltersButtonMeasure(rect);
|
|
822
|
-
};
|
|
823
|
-
var validateNewRow = function (newRow) {
|
|
824
|
-
var newRowWithId = __assign({}, newRow);
|
|
825
|
-
newRowWithId.id = "optimistic_".concat(optimisticRows.length);
|
|
826
|
-
if (addRowValidation) {
|
|
827
|
-
var validation = addRowValidation(newRow);
|
|
828
|
-
if (validation === null || validation === void 0 ? void 0 : validation.isValid) {
|
|
829
|
-
setAddRowMode(false);
|
|
830
|
-
setShowAddRowValidationMessage(false);
|
|
831
|
-
addRow === null || addRow === void 0 ? void 0 : addRow(newRow);
|
|
832
|
-
setOptimisticRows(__spreadArray(__spreadArray([], optimisticRows, true), [newRowWithId], false));
|
|
833
|
-
sortRowsById({ cellId: sortId || "THERE_IS_NO_SORT_ID", extraRows: __spreadArray(__spreadArray([], optimisticRows, true), [newRowWithId], false) });
|
|
834
|
-
}
|
|
835
|
-
else {
|
|
836
|
-
setShowAddRowValidationMessage(true);
|
|
837
|
-
}
|
|
838
|
-
}
|
|
839
|
-
else {
|
|
840
|
-
setAddRowMode(false);
|
|
841
|
-
addRow === null || addRow === void 0 ? void 0 : addRow(newRow);
|
|
842
|
-
setOptimisticRows(__spreadArray(__spreadArray([], optimisticRows, true), [newRowWithId], false));
|
|
843
|
-
sortRowsById({ cellId: sortId || "THERE_IS_NO_SORT_ID", extraRows: __spreadArray(__spreadArray([], optimisticRows, true), [newRowWithId], false) });
|
|
844
|
-
}
|
|
845
|
-
};
|
|
846
|
-
var pageBack = function () {
|
|
847
|
-
var previousPage = (paginationStart || currentPage) - 1;
|
|
848
|
-
if (externalPaginationMode) {
|
|
849
|
-
onPagination({ currentPage: previousPage });
|
|
850
|
-
}
|
|
851
|
-
else {
|
|
852
|
-
setCurrentPage(previousPage);
|
|
853
|
-
}
|
|
854
|
-
};
|
|
855
|
-
var pageNext = function () {
|
|
856
|
-
var nextPage = (paginationStart || currentPage) + 1;
|
|
857
|
-
if (externalPaginationMode) {
|
|
858
|
-
onPagination({ currentPage: nextPage });
|
|
859
|
-
}
|
|
860
|
-
else {
|
|
861
|
-
setCurrentPage(nextPage);
|
|
862
|
-
}
|
|
863
|
-
};
|
|
864
|
-
var setPage = function (newPageId) {
|
|
865
|
-
var zeroIndexPageNumber = Number(newPageId);
|
|
866
|
-
if (externalPaginationMode) {
|
|
867
|
-
onPagination({ currentPage: zeroIndexPageNumber });
|
|
868
|
-
}
|
|
869
|
-
else {
|
|
870
|
-
setCurrentPage(zeroIndexPageNumber);
|
|
871
|
-
}
|
|
872
|
-
};
|
|
873
|
-
// This is memoized, but updates whenever rows are updated.
|
|
874
|
-
var validateRowEdit = useCallback(function (editedRow) {
|
|
875
|
-
if (editRowValidation) {
|
|
876
|
-
var validation = editRowValidation(editedRow);
|
|
877
|
-
if (validation === null || validation === void 0 ? void 0 : validation.isValid) {
|
|
878
|
-
setEditRowId("");
|
|
879
|
-
setShowEditRowValidationMessage(false);
|
|
880
|
-
onEdit === null || onEdit === void 0 ? void 0 : onEdit(editedRow);
|
|
881
|
-
var updatedRows = replaceObjectById({ array: sortedRows, id: editedRow[rowId], idKey: rowId, object: editedRow });
|
|
882
|
-
sortRowsById({ cellId: sortId || "THERE_IS_NO_SORT_ID", extraRows: optimisticRows, updatedRows: updatedRows });
|
|
883
|
-
}
|
|
884
|
-
else {
|
|
885
|
-
setShowEditRowValidationMessage(true);
|
|
886
|
-
}
|
|
887
|
-
}
|
|
888
|
-
else {
|
|
889
|
-
setEditRowId("");
|
|
890
|
-
onEdit === null || onEdit === void 0 ? void 0 : onEdit(editedRow);
|
|
891
|
-
var updatedRows = replaceObjectById({ array: sortedRows, id: editedRow[rowId], idKey: rowId, object: editedRow });
|
|
892
|
-
sortRowsById({ cellId: sortId || "THERE_IS_NO_SORT_ID", extraRows: optimisticRows, updatedRows: updatedRows });
|
|
893
|
-
}
|
|
894
|
-
}, [editRowValidation, onEdit, optimisticRows, rowId, setEditRowId, setShowEditRowValidationMessage, sortId, sortedRows]);
|
|
895
|
-
useEffect(function () {
|
|
896
|
-
setOptimisticRows([]);
|
|
897
|
-
setShowAddRowValidationMessage(false);
|
|
898
|
-
sortRowsById({ cellId: !parentSort && sortId ? sortId : "THERE_IS_NO_SORT_ID", extraRows: [], updatedRows: rows });
|
|
899
|
-
}, [rows]);
|
|
900
|
-
useEffect(function () {
|
|
901
|
-
setUsableOptions(editable ? __spreadArray([editOption], options, true) : options);
|
|
902
|
-
}, [options, editable]);
|
|
903
|
-
useEffect(function () {
|
|
904
|
-
var tableMinimum = 0;
|
|
905
|
-
var cellClicks = false;
|
|
906
|
-
// hasOptions hasn't updated when this runs initially
|
|
907
|
-
var optionsExist = editable || options.length > 0 || altOptions.length > 0;
|
|
908
|
-
// Inject feature based column headers here
|
|
909
|
-
var updatedColumns = __spreadArray([], columns, true);
|
|
910
|
-
if (clickCheckbox) {
|
|
911
|
-
updatedColumns.unshift(checkboxHeader);
|
|
912
|
-
}
|
|
913
|
-
if (clickRadio && !clickCheckbox) {
|
|
914
|
-
updatedColumns.unshift(radioHeader);
|
|
915
|
-
}
|
|
916
|
-
if (optionsExist) {
|
|
917
|
-
updatedColumns.push(optionHeader);
|
|
918
|
-
}
|
|
919
|
-
// Check the columns for cell level clicks & count tableMinimum
|
|
920
|
-
for (var i = 0; i < updatedColumns.length; i++) {
|
|
921
|
-
var _a = updatedColumns[i], clickCell = _a.clickCell, fixedWidth = _a.fixedWidth, width = _a.width, minWidth = _a.minWidth;
|
|
922
|
-
// measure width
|
|
923
|
-
var columnMinWidth = fixedWidth ? width : minWidth;
|
|
924
|
-
tableMinimum = tableMinimum + (columnMinWidth || 0);
|
|
925
|
-
if (clickCell) {
|
|
926
|
-
cellClicks = true;
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
setTableWidth(tableMinimum);
|
|
930
|
-
setCellLevelClick(cellClicks || !!usableOptions || !!clickCheckbox || !!clickRadio);
|
|
931
|
-
setAlteredColumns(updatedColumns);
|
|
932
|
-
}, [columns, usableOptions, clickCheckbox, clickRadio]);
|
|
933
|
-
// Pagination
|
|
934
|
-
useEffect(function () {
|
|
935
|
-
var amountOfPages = 0;
|
|
936
|
-
if (externalPaginationMode) {
|
|
937
|
-
amountOfPages = Math.ceil(totalItems / rowsPerPage);
|
|
938
|
-
}
|
|
939
|
-
else {
|
|
940
|
-
var paginationNeeded = rowsPerPage && rowsPerPage < rows.length;
|
|
941
|
-
amountOfPages = paginationNeeded ? Math.ceil(rows.length / rowsPerPage) : 0;
|
|
942
|
-
}
|
|
943
|
-
setNumberOfPages(amountOfPages);
|
|
944
|
-
var pageTabs = [];
|
|
945
|
-
for (var i = 0; i < amountOfPages; i++) {
|
|
946
|
-
pageTabs.push({ id: i.toString(), label: (i + 1).toString() });
|
|
947
|
-
}
|
|
948
|
-
setPageNumberOptions(pageTabs);
|
|
949
|
-
setCurrentPage(paginationStart || 0);
|
|
950
|
-
}, [paginationStart, rowsPerPage, rows, totalItems]);
|
|
951
|
-
useEffect(function () {
|
|
952
|
-
var showStart = numberOfPages <= 6 || currentPage < 4;
|
|
953
|
-
var showEnd = numberOfPages <= 6 || currentPage > numberOfPages - 5;
|
|
954
|
-
var sliceStart = showStart ? 0 : showEnd ? numberOfPages - 4 : currentPage - 1;
|
|
955
|
-
var sliceEnd = showEnd ? numberOfPages : showStart ? 4 : currentPage + 2;
|
|
956
|
-
var newOptions = pageNumberOptions.slice(sliceStart, sliceEnd);
|
|
957
|
-
setVisiblePageNumberOptions(newOptions);
|
|
958
|
-
setPaginationKey(makeIdString({ array: newOptions }));
|
|
959
|
-
}, [currentPage, numberOfPages]);
|
|
960
|
-
// This useEffect needs to be positioned last, so that if fires after all the other useEffects after the initial render
|
|
961
|
-
useEffect(function () {
|
|
962
|
-
if (sortableTable) {
|
|
963
|
-
var initialSortId = defaultSort || findDefaultSort({ columns: columns, filterFunction: filterFunction });
|
|
964
|
-
setSortId(initialSortId);
|
|
965
|
-
if (!parentSort) {
|
|
966
|
-
sortRowsById({ cellId: initialSortId || "THERE_IS_NO_SORT_ID", reverse: defaultSortReverse, updatedRows: rows });
|
|
967
|
-
}
|
|
968
|
-
setSortAscending(defaultSortReverse ? true : false);
|
|
969
|
-
}
|
|
970
|
-
if (isBrowser) {
|
|
971
|
-
var onScroll_1 = function () {
|
|
972
|
-
setFiltersPanelOpen(false);
|
|
973
|
-
setShowEditRowValidationMessage(false);
|
|
974
|
-
setShowPreviousPagesTooltip(false);
|
|
975
|
-
setShowNextPagesTooltip(false);
|
|
976
|
-
setTooltipOpen(false);
|
|
977
|
-
};
|
|
978
|
-
// clean up code
|
|
979
|
-
var scrollElement_1 = (observeScrollRef === null || observeScrollRef === void 0 ? void 0 : observeScrollRef.current) || window;
|
|
980
|
-
scrollElement_1.removeEventListener("scroll", onScroll_1);
|
|
981
|
-
scrollElement_1.addEventListener("scroll", onScroll_1, { passive: true });
|
|
982
|
-
return function () { return scrollElement_1.removeEventListener("scroll", onScroll_1); };
|
|
983
|
-
}
|
|
984
|
-
}, []);
|
|
985
|
-
return (jsx(TableGroup, __assign({ as: Scroller, "$bottomPadding": bottomPadding, "$highlightRowExtend": highlightRowExtend, "$topPadding": topPadding }, { children: jsxs(FullWidth, __assign({ "$minimum": tableWidth }, { children: [jsx(HeaderBox, __assign({ "$columns": alteredColumns, "$headerless": headerless, "$headerUnderlineColor": headerUnderlineColor, "$hideDivider": hideDivider }, { children: !headerless &&
|
|
986
|
-
(alteredColumns === null || alteredColumns === void 0 ? void 0 : alteredColumns.map(function (column, index) {
|
|
987
|
-
var _a;
|
|
988
|
-
var HeaderComponentWrapper = column.HeaderComponentWrapper;
|
|
989
|
-
var isSortingColumn = column.cellId === sortId;
|
|
990
|
-
var filterable = !!filterFunction && column.filters && ((_a = column.filters) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
991
|
-
var sortable = sortableTable && !column.disableSort && !filterable;
|
|
992
|
-
var iconFill = isSortingColumn
|
|
993
|
-
? sortIndicatorColor || theme.table.sortIndicatorColor
|
|
994
|
-
: inactiveHeaderColor || theme.table.inactiveHeaderColor;
|
|
995
|
-
var clickableHeader = !!column.label;
|
|
996
|
-
return (jsx(HeaderCell, { children: jsx(HeaderClickTarget, __assign({ ref: function (ref) { return (filtersRefArray.current[index] = ref); }, "$clickable": !filtersPanelOpen, "$index": index }, (clickableHeader
|
|
997
|
-
? { onClick: function () { return !fetching && (filterable ? openFilterPanel({ column: column, index: index }) : sortHeader(column)); } }
|
|
998
|
-
: {}), (clickableHeader
|
|
999
|
-
? {
|
|
1000
|
-
onKeyPress: function (event) {
|
|
1001
|
-
if (pressedEnter(event) && !fetching) {
|
|
1002
|
-
if (filterable) {
|
|
1003
|
-
openFilterPanel({ column: column, index: index });
|
|
1004
|
-
}
|
|
1005
|
-
else {
|
|
1006
|
-
sortHeader(column);
|
|
1007
|
-
}
|
|
1008
|
-
}
|
|
1009
|
-
},
|
|
1010
|
-
}
|
|
1011
|
-
: {}), (clickableHeader ? { role: "button" } : {}), { tabIndex: clickableHeader ? 0 : -1 }, { children: column.cellId === "checkbox_header_INTERNAL_ID" ? (jsx(CheckboxHeader, { checkboxHeaderActive: !!checkboxHeaderActive, clickCheckboxHeader: clickCheckboxHeader }, void 0)) : HeaderComponentWrapper ? (jsx(HeaderComponentWrapper, { column: column, columnIndex: index, clickHeader: clickHeader }, void 0)) : (jsxs(HeaderLabel, __assign({ "$active": isSortingColumn, "$activeHeaderColor": activeHeaderColor, "$clickable": !!clickHeader || filterable || sortable, "$headerFontSize": headerFontSize, "$inactiveHeaderColor": inactiveHeaderColor, "$inactiveHeaderColorHover": inactiveHeaderColorHover, "$sortable": sortable || filterable }, { children: [column.label, filterable && (jsx(FilterIcon, { children: jsx(Filter, { fill: inactiveHeaderColor || theme.table.inactiveHeaderColor, title: "Filter Icon" }, void 0) }, void 0)), sortable && (jsx(SortIcon, __assign({ "$active": isSortingColumn, "$flip": sortAscending }, { children: isSortingColumn ? jsx(ArrowUp, { fill: iconFill }, void 0) : jsx(Sort, { fill: iconFill }, void 0) }), void 0)), jsx(SortIndicator, { "$active": isSortingColumn, "$sortIndicatorColor": sortIndicatorColor, "aria-label": isSortingColumn ? "is sorting the table" : "" }, void 0)] }), void 0)) }), void 0) }, column.cellId));
|
|
1012
|
-
})) }), void 0), pageResults({
|
|
1013
|
-
currentPage: currentPage,
|
|
1014
|
-
internalPaginationMode: paginationMode && !externalPaginationMode,
|
|
1015
|
-
rows: sortedRows,
|
|
1016
|
-
rowsPerPage: rowsPerPage,
|
|
1017
|
-
}).map(function (row, rowIndex) {
|
|
1018
|
-
// check for existing options
|
|
1019
|
-
var rowOptions = dynamicOptions ? dynamicOptions({ options: usableOptions, row: row, rowIndex: rowIndex, rows: sortedRows }) : usableOptions;
|
|
1020
|
-
var altRowOptions = dynamicAltOptions
|
|
1021
|
-
? dynamicAltOptions({ options: altOptions, row: tooltipInfo, rowIndex: tooltipIndex, rows: sortedRows }) || []
|
|
1022
|
-
: altOptions;
|
|
1023
|
-
var rowHasOptions = !!((rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.length) || (altRowOptions === null || altRowOptions === void 0 ? void 0 : altRowOptions.length));
|
|
1024
|
-
return (jsx(Row$1, { cancelEdit: cancelEdit, calcRowBackgroundColor: calcRowBackgroundColor, cellLevelClick: cellLevelClick, clickCheckbox: clickCheckbox, clickRadio: clickRadio, clickRow:
|
|
1025
|
-
// prettier-ignore
|
|
1026
|
-
isRowClickable
|
|
1027
|
-
? isRowClickable({ row: row, rowIndex: rowIndex, rows: rows }) ? clickRow : noop
|
|
1028
|
-
: clickRow, columns: columns, columnsWithOptions: alteredColumns, disableHighlight: !!editRowId && editRowId !== row.id, editingMode: editRowId === row.id, editRowData: editRowData, editWholeDollars: !!editWholeDollars, fetching: fetching || row[loadingRowId], fetchingAnimationHeight: fetchingAnimationHeight, hasOptions: rowHasOptions, hasOpenTooltip: tooltipOpen && (tooltipInfo === null || tooltipInfo === void 0 ? void 0 : tooltipInfo.id) === row.id, hideCheckedHighlight: hideCheckedHighlight, highlightBoxShadow: highlightBoxShadow, highlightRow: highlightRow, highlightRowColor: highlightRowColor, highlightRowExtend: highlightRowExtend, highlightTipColor: highlightTipColor, mouseEnterRow: mouseEnterRow, mouseLeaveRow: mouseLeaveRow, okButtonColorFamily: addRowButtonColorFamily || theme.table.addRowButtonColorFamily, onBlurRow: onBlurRow, onFocusRow: onFocusRow, row: row, rowIndex: rowIndex, rows: sortedRows, rowBackgroundColor: rowBackgroundColor, rowBackgroundColorAlternating: rowBackgroundColorAlternating, rowBorderRadius: rowBorderRadius, rowGrow: rowGrow, setEditErrorTooltipPosition: setEditErrorTooltipPosition, setEditRowData: setEditRowData, setTooltipOpen: setTooltipOpen, setTooltipPosition: setTooltipPosition, setTooltipInfo: setTooltipInfo, setTooltipIndex: setTooltipIndex, showValidationMessage: showEditRowValidationMessage, rowHeight: rowHeight, tableId: tableId, tableIsDragging: tableIsDragging, thisRowId: row[rowId], validationMessage: editRowValidationMessageObject, validateRowEdit: validateRowEdit }, "".concat(tableId).concat(row[rowId], "_").concat(sortId, "_").concat(sortAscending ? "asc" : "desc")));
|
|
1029
|
-
}), addRow && (jsxs(AddRowSection, { children: [jsx(RowBase, __assign({ "data-testid": "addRow", "$columns": clickCheckbox ? alteredColumns.slice(1) : alteredColumns, "$highlightBoxShadow": "none", "$hide": !addRowMode, "$obscureCheckbox": !!clickCheckbox, "$rowBackgroundColor": rowBackgroundColor, "$rowBackgroundColorAlternating": rowBackgroundColorAlternating, "$rowBorderRadius": rowBorderRadius, "$rowHeight": rowHeight }, { children: columns === null || columns === void 0 ? void 0 : columns.map(function (column, i) {
|
|
1030
|
-
var editType = column.editType, cellId = column.cellId, editSelectOptions = column.editSelectOptions, editSelectLabelFilter = column.editSelectLabelFilter, editSelectOptionsFilter = column.editSelectOptionsFilter, editPlaceholder = column.editPlaceholder, label = column.label, leftPadding = column.leftPadding, rightPadding = column.rightPadding;
|
|
1031
|
-
return (jsx(EditCell, { altRow: isOdd(sortedRows.length), editType: editType, editSelectLabelFilter: editSelectLabelFilter, editSelectOptions: editSelectOptionsFilter ? editSelectOptionsFilter({ column: column, rowData: addRowData }) : editSelectOptions, editPlaceholder: editPlaceholder, editWholeDollars: editWholeDollars, focus: addRowMode && focusFirstEditableCell && i === 0, index: i, isVisible: addRowMode, label: typeof label === "string" ? label : "", lastCell: i === columns.length - 1 && !hasOptions,
|
|
1032
|
-
// lastCell={false}
|
|
1033
|
-
leftPadding: leftPadding, rightPadding: rightPadding, observeScrollRef: observeScrollRef, rowData: addRowData, setCellData: function (value) {
|
|
1034
|
-
var newData = JSON.parse(JSON.stringify(addRowData));
|
|
1035
|
-
newData[cellId] = value;
|
|
1036
|
-
setAddRowData(newData);
|
|
1037
|
-
}, submitData: function (value) {
|
|
1038
|
-
var newData = JSON.parse(JSON.stringify(addRowData));
|
|
1039
|
-
newData[cellId] = value;
|
|
1040
|
-
setAddRowData(newData);
|
|
1041
|
-
validateNewRow(newData);
|
|
1042
|
-
} }, "".concat(tableId, "_addRow_").concat(column.cellId)));
|
|
1043
|
-
}) }), void 0), jsx(AcceptButton, __assign({ "$show": addRowMode, "$scrunch": !hasOptions }, { children: jsx(BoxedButton, { text: "OK", onClick: function () { return validateNewRow(addRowData); }, textFontSize: 13, colorFamily: addRowButtonColorFamily || theme.table.addRowButtonColorFamily }, void 0) }), void 0), jsx(CancelButton, __assign({ "$show": addRowMode, "$scrunch": !hasOptions }, { children: jsx(IconButton, { colorFamily: ButtonColorFamilyEnum.CoolGrey, Icon: X, onClick: function () {
|
|
1044
|
-
setAddRowMode(false);
|
|
1045
|
-
setShowAddRowValidationMessage(false);
|
|
1046
|
-
}, size: 22 }, void 0) }), void 0), jsx(AddRowButtonClip, __assign({ "$show": !addRowMode }, { children: jsx(AddRowButton, __assign({ "$show": !addRowMode }, { children: jsx(TextButton, { colorFamily: addRowButtonColorFamily || theme.table.addRowButtonColorFamily, Icon: PlusCircle, onClick: function () {
|
|
1047
|
-
setAddRowMode(true);
|
|
1048
|
-
setAddRowData({});
|
|
1049
|
-
setFocusFirstEditableCell(true);
|
|
1050
|
-
}, text: addRowText, textFontSize: addRowButtonFontSize || theme.table.addRowButtonFontSize }, void 0) }), void 0) }), void 0)] }, void 0)), jsx(AddRowValidationMessage, __assign({ "$show": showAddRowValidationMessage && addRowMode, "aria-hidden": showAddRowValidationMessage ? "false" : "true", "$addRowValidationColor": addRowValidationColor }, { children: addRowValidationMessage }), void 0), showNoResultsMessage && (jsxs(NoResults, { children: [jsx(NoResultsImage, { children: jsx(EmptySearchIcon, {}, void 0) }, void 0), !!noResultsHeader ? jsx(NoResultsHeader, __assign({ "$noResultsHeaderColor": noResultsHeaderColor }, { children: noResultsHeader }), void 0) : null, jsx(NoResultsText, __assign({ "$noResultsTextColor": noResultsTextColor }, { children: noResultsText }), void 0), noResultsFunction && (jsx(SecondaryButton, { onClick: noResultsFunction, text: noResultsButtonText, colorFamily: noResultsButtonColorFamily || theme.table.noResultsButtonColorFamily }, void 0))] }, void 0)), showLoadingRows && fetchingRowsNumber && (jsx(LoadingRows, { columns: columns, fetchingAnimationHeight: fetchingAnimationHeight, fetchingRowsNumber: fetchingRowsNumber, rowHeight: rowHeight }, void 0)), (paginationMode || onFooterButtonClick) && (jsxs(PaginationFooter, __assign({ "data-testid": "paginationFooter", "$isFooterButtonOnly": !paginationMode }, { children: [paginationMode && (jsxs(PaginationBox, { children: [jsx(LinkBox, { children: jsx(IconButton, { ariaLabel: "Previous page", disabled: currentPage === 0, Icon: CaretLeft, onClick: pageBack, preventClick: fetching }, void 0) }, void 0), fakeFirstLink && (jsxs(Fragment, { children: [jsx(LinkBox, { children: jsx(TextLink, { borderRadius: 7, clickable: !fetching, onClick: function () { return setPage("0"); }, paddingString: "10px 8px", solidFocus: theme.horizontalTabMenu.focusedColor, text: "1", textStyle: TextStyleEnum.Emphasis }, void 0) }, void 0), showPreviousPagesInput ? (jsx(ClickOutHandler, __assign({ handleClickAway: function () { return clearPreviousPageInput(); } }, { children: jsx(PreviousPageInput, { children: jsx(InlineInput, { focus: true, inputHeight: 29, inputWidth: 43, noMinWidth: true, onValueChange: function (value) { return setPreviousPagesInputValue(Number(value)); }, onEnter: function (value) {
|
|
1051
|
-
var indexedValue = Math.round(Number(value)) - 1;
|
|
1052
|
-
if (indexedValue >= 0 && indexedValue < numberOfPages) {
|
|
1053
|
-
setPage(indexedValue);
|
|
1054
|
-
clearPreviousPageInput();
|
|
1055
|
-
}
|
|
1056
|
-
else {
|
|
1057
|
-
setShowPreviousPagesInputError(true);
|
|
1058
|
-
}
|
|
1059
|
-
}, showValidationMessage: showPreviousPagesInputError, sidePadding: 5,
|
|
1060
|
-
// step="1"
|
|
1061
|
-
type: "number", value: previousPagesInputValue || "" }, void 0) }, void 0) }), void 0)) : (jsx(LinkBox, { children: jsx(IconButton, { ariaLabel: "Select a previous page", Icon: Ellipsis, onClick: function (event) {
|
|
1062
|
-
var firstVisiblePage = Number(visiblePageNumberOptions[0].id);
|
|
1063
|
-
var priorMissingNumbers = pageNumberOptions.slice(1, firstVisiblePage);
|
|
1064
|
-
if (priorMissingNumbers.length > PAGINATION_PICKER_MAX) {
|
|
1065
|
-
setShowPreviousPagesInput(true);
|
|
1066
|
-
}
|
|
1067
|
-
else {
|
|
1068
|
-
setShowPreviousPagesTooltip(true);
|
|
1069
|
-
setPreviousPagesTooltipPosition(getPosition(event.target));
|
|
1070
|
-
}
|
|
1071
|
-
setPreviousMissingNumbers(priorMissingNumbers);
|
|
1072
|
-
}, preventClick: fetching }, void 0) }, void 0))] }, void 0)), jsx(MenuBox, { children: jsx(HorizontalTabMenu, { activeOption: currentPage.toString(), defaultOption: currentPage.toString(), minTabWidth: 24, noMenuPadding: true, onOptionChange: setPage, options: visiblePageNumberOptions, preventClick: fetching, spaceBetweenTabs: 18, textColor: colors.COOL_GREY_100, underlineColor: "transparent" }, paginationKey) }, void 0), fakeLastLink && (jsxs(Fragment, { children: [showNextPagesInput ? (jsx(ClickOutHandler, __assign({ handleClickAway: function () { return clearNextPageInput(); } }, { children: jsx(NextPageInput, { children: jsx(InlineInput, { focus: true, inputHeight: 29, inputWidth: 43, noMinWidth: true, onValueChange: function (value) { return setNextPagesInputValue(Number(value)); }, onEnter: function (value) {
|
|
1073
|
-
var indexedValue = Math.round(Number(value)) - 1;
|
|
1074
|
-
if (indexedValue >= 0 && indexedValue < numberOfPages) {
|
|
1075
|
-
setPage(indexedValue);
|
|
1076
|
-
clearNextPageInput();
|
|
1077
|
-
}
|
|
1078
|
-
else {
|
|
1079
|
-
setShowNextPagesInputError(true);
|
|
1080
|
-
}
|
|
1081
|
-
}, showValidationMessage: showNextPagesInputError, sidePadding: 5,
|
|
1082
|
-
// step="1"
|
|
1083
|
-
type: "number", value: nextPagesInputValue || "" }, void 0) }, void 0) }), void 0)) : (jsx(LinkBox, { children: jsx(IconButton, { ariaLabel: "Select an upcoming page", Icon: Ellipsis, onClick: function (event) {
|
|
1084
|
-
var lastVisiblePage = Number(visiblePageNumberOptions[visiblePageNumberOptions.length - 1].id);
|
|
1085
|
-
var futureMissingNumbers = pageNumberOptions.slice(lastVisiblePage + 1, numberOfPages - 1);
|
|
1086
|
-
if (futureMissingNumbers.length > PAGINATION_PICKER_MAX) {
|
|
1087
|
-
setShowNextPagesInput(true);
|
|
1088
|
-
}
|
|
1089
|
-
else {
|
|
1090
|
-
setShowNextPagesTooltip(true);
|
|
1091
|
-
setNextPagesTooltipPosition(getPosition(event.target));
|
|
1092
|
-
}
|
|
1093
|
-
setNextMissingNumbers(futureMissingNumbers);
|
|
1094
|
-
}, preventClick: fetching }, void 0) }, void 0)), jsx(LinkBox, { children: jsx(TextLink, { borderRadius: 7, clickable: !fetching, onClick: function () { return setPage((numberOfPages - 1).toString()); }, paddingString: "10px 8px", solidFocus: theme.horizontalTabMenu.focusedColor, text: numberOfPages.toString(), textStyle: TextStyleEnum.Emphasis }, void 0) }, void 0)] }, void 0)), jsx(LinkBox, { children: jsx(IconButton, { ariaLabel: "Next page", disabled: currentPage === numberOfPages - 1, Icon: CaretRight, onClick: pageNext, preventClick: fetching }, void 0) }, void 0), onFooterButtonClick && jsx(Results, { children: "".concat(totalItems || rows.length, " results") }, void 0)] }, void 0)), (onFooterButtonClick && (jsx(SingleButton, { colorFamily: footerButtonColorFamily, variant: ButtonVariantEnum.Text, onClick: onFooterButtonClick, text: footerButtonText || "Footer button", Icon: FooterButtonIcon }, void 0))) || jsx(Results, { children: "".concat((totalItems === null || totalItems === void 0 ? void 0 : totalItems.toLocaleString()) || rows.length.toLocaleString(), " results") }, void 0)] }), void 0)), jsx(TooltipOptions, { altOptions: dynamicAltOptions
|
|
1095
|
-
? dynamicAltOptions({ options: altOptions, row: tooltipInfo, rowIndex: tooltipIndex, rows: sortedRows }) || []
|
|
1096
|
-
: altOptions, open: tooltipOpen, onClickout: function () { return setTooltipOpen(false); }, options: dynamicOptions
|
|
1097
|
-
? dynamicOptions({ options: usableOptions, row: tooltipInfo, rowIndex: tooltipIndex, rows: sortedRows }) || []
|
|
1098
|
-
: usableOptions, position: tooltipPosition, onOptionClick: function (option) {
|
|
1099
|
-
var clickedEdit = (option === null || option === void 0 ? void 0 : option.id) === EDIT_OPTION_ID;
|
|
1100
|
-
setTooltipOpen(false);
|
|
1101
|
-
if (clickedEdit) {
|
|
1102
|
-
setEditRowId(tooltipInfo[rowId]);
|
|
1103
|
-
setEditRowData(tooltipInfo); // seed edit data
|
|
1104
|
-
}
|
|
1105
|
-
else {
|
|
1106
|
-
clickOption === null || clickOption === void 0 ? void 0 : clickOption({ row: tooltipInfo, option: option });
|
|
1107
|
-
}
|
|
1108
|
-
}, targetHeight: 30 }, void 0), jsx(Tooltip, { open: showEditRowValidationMessage && !!(editRowValidationMessageObject === null || editRowValidationMessageObject === void 0 ? void 0 : editRowValidationMessageObject.tooltipCellId), position: editErrorTooltipPosition, targetHeight: 32, text: editRowValidationMessageObject === null || editRowValidationMessageObject === void 0 ? void 0 : editRowValidationMessageObject.tooltipText }, void 0), jsx(Tooltip, __assign({ clickable: true, clickOut: function () { return setShowPreviousPagesTooltip(false); }, open: showPreviousPagesTooltip, position: previousPagesTooltipPosition, targetHeight: 30, width: previousMissingNumbers.length > 8 ? Math.ceil(previousMissingNumbers.length / 4) * 30 + 20 : 80 }, { children: jsx(NumberGrid, { activeHeaderColor: activeHeaderColor, inactiveHeaderColor: inactiveHeaderColor, numberList: previousMissingNumbers, numberClick: function (id) {
|
|
1109
|
-
setPage(id);
|
|
1110
|
-
setShowPreviousPagesTooltip(false);
|
|
1111
|
-
}, rowBackgroundColorAlternating: rowBackgroundColorAlternating }, void 0) }), void 0), jsx(Tooltip, __assign({ clickable: true, clickOut: function () { return setShowNextPagesTooltip(false); }, open: showNextPagesTooltip, position: nextPagesTooltipPosition, targetHeight: 30, width: nextMissingNumbers.length > 8 ? Math.ceil(nextMissingNumbers.length / 4) * 30 + 20 : 80 }, { children: jsx(NumberGrid, { activeHeaderColor: activeHeaderColor, inactiveHeaderColor: inactiveHeaderColor, numberList: nextMissingNumbers, numberClick: function (id) {
|
|
1112
|
-
setPage(id);
|
|
1113
|
-
setShowNextPagesTooltip(false);
|
|
1114
|
-
}, rowBackgroundColorAlternating: rowBackgroundColorAlternating }, void 0) }), void 0), filterFunction && filtersPanelContent && (jsx(TableFiltersPanel, { activeFilters: activeFilters, columnData: filtersPanelContent, filterFunction: filterFunction, filtersButtonMeasure: filtersButtonMeasure, filtersPanelOpen: filtersPanelOpen, onFilterMenuClose: onFilterMenuClose, onFilterSelect: remeasureFilterPanelPositon, radioButtons: filtersPanelUseRadio, panelWidth: filtersPanelContent.filterPanelWidth, setFiltersPanelOpen: setFiltersPanelOpen }, void 0)), filtersPanelOpen && jsx(ClickShield, {}, void 0)] }), void 0) }), void 0));
|
|
1115
|
-
};
|
|
1116
|
-
Table.defaultProps = {
|
|
1117
|
-
addRowText: ADD_ROW_TEXT_DEFAULT,
|
|
1118
|
-
checkboxHeaderActive: false,
|
|
1119
|
-
editable: false,
|
|
1120
|
-
editWholeDollars: false,
|
|
1121
|
-
fetching: false,
|
|
1122
|
-
fetchingRowsNumber: 3,
|
|
1123
|
-
fetchingAnimationHeight: FETCHING_ANIMATION_HEIGHT_DEFAULT,
|
|
1124
|
-
hideCheckedHighlight: false,
|
|
1125
|
-
loadingRowId: ROW_LOADING_ID,
|
|
1126
|
-
noResultsButtonText: DEFAULT_NO_RESULTS_BUTTON_TEXT,
|
|
1127
|
-
noResultsText: DEFAULT_NO_RESULTS_TEXT,
|
|
1128
|
-
options: [],
|
|
1129
|
-
rowId: ROW_ID_DEFAULT,
|
|
1130
|
-
rows: [],
|
|
1131
|
-
rowHeight: ROW_HEIGHT_DEFAULT,
|
|
1132
|
-
tableId: TABLE_ID_DEFAULT,
|
|
1133
|
-
};
|
|
1134
|
-
var Table$1 = React__default.memo(Table);
|
|
1135
|
-
|
|
1136
|
-
export { CheckboxBox as C, FETCHING_ANIMATION_HEIGHT_DEFAULT as F, NudgeToggle as N, ROW_HEIGHT_DEFAULT as R, Table as T, Table$1 as a };
|
|
1137
|
-
//# sourceMappingURL=Table-a135dcaa.js.map
|