@addev-be/ui 3.2.5 → 3.2.9
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/dist/assets/icons/angle-left.svg.js +5 -0
- package/dist/assets/icons/angle-right.svg.js +5 -0
- package/dist/assets/icons/arrow-down-1-9.svg.js +5 -0
- package/dist/assets/icons/arrow-down-a-z.svg.js +5 -0
- package/dist/assets/icons/arrow-down-big-small.svg.js +5 -0
- package/dist/assets/icons/arrow-up-9-1.svg.js +5 -0
- package/dist/assets/icons/arrow-up-big-small.svg.js +5 -0
- package/dist/assets/icons/arrow-up-z-a.svg.js +5 -0
- package/dist/assets/icons/arrows-rotate.svg.js +5 -0
- package/dist/assets/icons/arrows-up-down.svg.js +5 -0
- package/dist/assets/icons/bars.svg.js +5 -0
- package/dist/assets/icons/check.svg.js +5 -0
- package/dist/assets/icons/chevron-down.svg.js +5 -0
- package/dist/assets/icons/chevron-left.svg.js +5 -0
- package/dist/assets/icons/chevron-right.svg.js +5 -0
- package/dist/assets/icons/circle-check.svg.js +5 -0
- package/dist/assets/icons/circle-info.svg.js +5 -0
- package/dist/assets/icons/circle-xmark.svg.js +5 -0
- package/dist/assets/icons/copy.svg.js +5 -0
- package/dist/assets/icons/down.svg.js +5 -0
- package/dist/assets/icons/ellipsis.svg.js +5 -0
- package/dist/assets/icons/filter-full.svg.js +5 -0
- package/dist/assets/icons/filter-slash.svg.js +5 -0
- package/dist/assets/icons/filter.svg.js +5 -0
- package/dist/assets/icons/floppy-disk.svg.js +5 -0
- package/dist/assets/icons/hashtag.svg.js +5 -0
- package/dist/assets/icons/image-slash.svg.js +5 -0
- package/dist/assets/icons/left.svg.js +5 -0
- package/dist/assets/icons/magnifier.svg.js +5 -0
- package/dist/assets/icons/phone.svg.js +5 -0
- package/dist/assets/icons/plus.svg.js +5 -0
- package/dist/assets/icons/right.svg.js +5 -0
- package/dist/assets/icons/sigma.svg.js +5 -0
- package/dist/assets/icons/sort-calendar-ascending.svg.js +7 -0
- package/dist/assets/icons/sort-calendar-descending.svg.js +5 -0
- package/dist/assets/icons/spinner-third.svg.js +5 -0
- package/dist/assets/icons/table-columns.svg.js +5 -0
- package/dist/assets/icons/table-footer-slash.svg.js +5 -0
- package/dist/assets/icons/table-footer.svg.js +5 -0
- package/dist/assets/icons/table.svg.js +5 -0
- package/dist/assets/icons/tally.svg.js +5 -0
- package/dist/assets/icons/trash-can.svg.js +5 -0
- package/dist/assets/icons/triangle-exclamation.svg.js +5 -0
- package/dist/assets/icons/up.svg.js +5 -0
- package/dist/assets/icons/user-tie.svg.js +5 -0
- package/dist/assets/icons/x-bar.svg.js +13 -0
- package/dist/assets/icons/xmark-large.svg.js +5 -0
- package/dist/assets/icons/xmark.svg.js +5 -0
- package/dist/components/auth/LoginForm.js +64 -49
- package/dist/components/auth/LoginPage.js +21 -8
- package/dist/components/auth/PasswordRecoveryForm.js +36 -24
- package/dist/components/auth/PasswordResetForm.js +71 -55
- package/dist/components/auth/index.js +9 -19
- package/dist/components/auth/styles.d.ts +1 -1
- package/dist/components/auth/styles.js +15 -15
- package/dist/components/common/Avatar/index.d.ts +2 -2
- package/dist/components/common/Avatar/index.js +28 -59
- package/dist/components/common/Avatar/styles.d.ts +1 -1
- package/dist/components/common/Avatar/styles.js +53 -52
- package/dist/components/common/Card/index.js +7 -33
- package/dist/components/common/Card/styles.d.ts +3 -3
- package/dist/components/common/Card/styles.js +36 -16
- package/dist/components/common/ContextMenu/index.js +42 -61
- package/dist/components/common/ContextMenu/styles.d.ts +5 -5
- package/dist/components/common/ContextMenu/styles.js +104 -65
- package/dist/components/common/Ellipsis.d.ts +1 -1
- package/dist/components/common/Ellipsis.js +20 -27
- package/dist/components/common/Label.d.ts +2 -2
- package/dist/components/common/Label.js +73 -82
- package/dist/components/common/Message/index.js +35 -61
- package/dist/components/common/Message/styles.d.ts +4 -4
- package/dist/components/common/Message/styles.js +39 -51
- package/dist/components/common/TabsView/TabsList.js +33 -40
- package/dist/components/common/TabsView/TabsView.js +29 -16
- package/dist/components/common/TabsView/styles.d.ts +6 -6
- package/dist/components/common/TabsView/styles.js +75 -56
- package/dist/components/common/TabsView/types.d.ts +2 -2
- package/dist/components/common/index.js +19 -22
- package/dist/components/forms/AutoTextArea.js +28 -39
- package/dist/components/forms/BillitIdentifier/index.js +58 -69
- package/dist/components/forms/BillitIdentifier/styles.d.ts +2 -2
- package/dist/components/forms/BillitIdentifier/styles.js +43 -14
- package/dist/components/forms/Button.d.ts +4 -4
- package/dist/components/forms/Button.js +99 -84
- package/dist/components/forms/Form/Checkbox.js +6 -32
- package/dist/components/forms/Form/CustomSelect.js +53 -48
- package/dist/components/forms/Form/FormGroup.d.ts +2 -2
- package/dist/components/forms/Form/FormGroup.js +19 -9
- package/dist/components/forms/Form/Input.js +6 -32
- package/dist/components/forms/Form/Row.d.ts +1 -1
- package/dist/components/forms/Form/Row.js +16 -9
- package/dist/components/forms/Form/Select.js +55 -56
- package/dist/components/forms/Form/TextArea.js +7 -33
- package/dist/components/forms/Form/index.d.ts +19 -19
- package/dist/components/forms/Form/index.js +30 -30
- package/dist/components/forms/Form/styles.d.ts +10 -10
- package/dist/components/forms/Form/styles.js +132 -63
- package/dist/components/forms/IconButton.d.ts +2 -2
- package/dist/components/forms/IconButton.js +45 -63
- package/dist/components/forms/IndeterminateCheckbox.js +31 -39
- package/dist/components/forms/NumberInput.d.ts +2 -2
- package/dist/components/forms/NumberInput.js +38 -39
- package/dist/components/forms/Select.js +16 -45
- package/dist/components/forms/VerticalLabel.js +12 -31
- package/dist/components/forms/index.js +36 -26
- package/dist/components/forms/styles.d.ts +8 -8
- package/dist/components/forms/styles.js +38 -49
- package/dist/components/grid/DataGrid/DataGridCell.js +56 -68
- package/dist/components/grid/DataGrid/DataGridColumnsModal/helpers.js +6 -17
- package/dist/components/grid/DataGrid/DataGridColumnsModal/hooks.js +46 -37
- package/dist/components/grid/DataGrid/DataGridColumnsModal/index.js +147 -113
- package/dist/components/grid/DataGrid/DataGridColumnsModal/styles.d.ts +6 -6
- package/dist/components/grid/DataGrid/DataGridColumnsModal/styles.js +95 -63
- package/dist/components/grid/DataGrid/DataGridEditableCell/CheckboxEditableCell.js +30 -22
- package/dist/components/grid/DataGrid/DataGridEditableCell/DateEditableCell.js +30 -25
- package/dist/components/grid/DataGrid/DataGridEditableCell/NumberEditableCell.js +43 -33
- package/dist/components/grid/DataGrid/DataGridEditableCell/TextEditableCell.js +30 -22
- package/dist/components/grid/DataGrid/DataGridEditableCell/index.js +61 -88
- package/dist/components/grid/DataGrid/DataGridEditableCell/styles.d.ts +1 -1
- package/dist/components/grid/DataGrid/DataGridEditableCell/styles.js +34 -16
- package/dist/components/grid/DataGrid/DataGridFilterMenu/FilterValuesScroller.js +91 -93
- package/dist/components/grid/DataGrid/DataGridFilterMenu/helpers.js +19 -18
- package/dist/components/grid/DataGrid/DataGridFilterMenu/hooks.js +59 -48
- package/dist/components/grid/DataGrid/DataGridFilterMenu/index.js +261 -225
- package/dist/components/grid/DataGrid/DataGridFilterMenu/styles.d.ts +5 -5
- package/dist/components/grid/DataGrid/DataGridFilterMenu/styles.js +91 -30
- package/dist/components/grid/DataGrid/DataGridFooter.js +40 -50
- package/dist/components/grid/DataGrid/DataGridHeader.js +58 -110
- package/dist/components/grid/DataGrid/DataGridHeaderCell.js +85 -79
- package/dist/components/grid/DataGrid/DataGridRowTemplate.js +72 -80
- package/dist/components/grid/DataGrid/DataGridToolbar.js +91 -137
- package/dist/components/grid/DataGrid/FilterModalContent/index.js +112 -123
- package/dist/components/grid/DataGrid/FilterModalContent/styles.d.ts +1 -1
- package/dist/components/grid/DataGrid/FilterModalContent/styles.js +23 -14
- package/dist/components/grid/DataGrid/constants.js +9 -9
- package/dist/components/grid/DataGrid/helpers/columns.js +301 -171
- package/dist/components/grid/DataGrid/helpers/filters.js +145 -333
- package/dist/components/grid/DataGrid/hooks/index.d.ts +3 -3
- package/dist/components/grid/DataGrid/hooks/index.js +24 -29
- package/dist/components/grid/DataGrid/hooks/useDataGrid.js +279 -291
- package/dist/components/grid/DataGrid/hooks/useDataGridChangedRows.js +75 -89
- package/dist/components/grid/DataGrid/hooks/useDataGridCopy.js +103 -156
- package/dist/components/grid/DataGrid/hooks/useDataGridSettings.d.ts +1 -1
- package/dist/components/grid/DataGrid/hooks/useDataGridSettings.js +40 -42
- package/dist/components/grid/DataGrid/hooks/useRefreshModal.js +38 -24
- package/dist/components/grid/DataGrid/index.js +104 -97
- package/dist/components/grid/DataGrid/styles.d.ts +19 -19
- package/dist/components/grid/DataGrid/styles.js +360 -179
- package/dist/components/grid/DataGrid/types.d.ts +2 -2
- package/dist/components/grid/DataGrid/types.js +16 -44
- package/dist/components/grid/SqlRequestDataGrid/helpers/columns.js +371 -309
- package/dist/components/grid/SqlRequestDataGrid/helpers/rows.js +10 -16
- package/dist/components/grid/SqlRequestDataGrid/helpers/sqlRequests.js +9 -18
- package/dist/components/grid/SqlRequestDataGrid/index.js +290 -339
- package/dist/components/grid/SqlRequestDataGrid/styles.d.ts +2 -2
- package/dist/components/grid/SqlRequestDataGrid/styles.js +15 -13
- package/dist/components/grid/SqlRequestForeignList/index.js +144 -128
- package/dist/components/grid/SqlRequestForeignList/styles.d.ts +3 -3
- package/dist/components/grid/SqlRequestForeignList/styles.js +42 -21
- package/dist/components/grid/SqlRequestGrid/filters/FiltersSidebar.js +94 -59
- package/dist/components/grid/SqlRequestGrid/filters/styles.d.ts +4 -4
- package/dist/components/grid/SqlRequestGrid/filters/styles.js +81 -16
- package/dist/components/grid/SqlRequestGrid/helpers/sqlRequests.js +8 -17
- package/dist/components/grid/SqlRequestGrid/index.js +214 -232
- package/dist/components/grid/SqlRequestGrid/styles.d.ts +1 -1
- package/dist/components/grid/SqlRequestGrid/styles.js +20 -16
- package/dist/components/grid/VirtualScroller/hooks.js +39 -49
- package/dist/components/grid/VirtualScroller/index.js +62 -74
- package/dist/components/grid/VirtualScroller/styles.d.ts +5 -5
- package/dist/components/grid/VirtualScroller/styles.js +46 -40
- package/dist/components/grid/index.js +60 -26
- package/dist/components/layout/Columns.d.ts +2 -2
- package/dist/components/layout/Columns.js +19 -20
- package/dist/components/layout/Dropdown/index.d.ts +1 -1
- package/dist/components/layout/Dropdown/index.js +50 -114
- package/dist/components/layout/Dropdown/styles.d.ts +2 -2
- package/dist/components/layout/Dropdown/styles.js +40 -60
- package/dist/components/layout/Flexbox.d.ts +2 -2
- package/dist/components/layout/Flexbox.js +12 -25
- package/dist/components/layout/Grid/index.js +6 -6
- package/dist/components/layout/Grid/styles.d.ts +2 -2
- package/dist/components/layout/Grid/styles.js +19 -28
- package/dist/components/layout/Loading/index.js +20 -51
- package/dist/components/layout/Loading/styles.d.ts +2 -2
- package/dist/components/layout/Loading/styles.js +29 -17
- package/dist/components/layout/Masonry/index.js +17 -19
- package/dist/components/layout/Masonry/styles.d.ts +2 -2
- package/dist/components/layout/Masonry/styles.js +16 -16
- package/dist/components/layout/Modal/index.d.ts +1 -1
- package/dist/components/layout/Modal/index.js +31 -74
- package/dist/components/layout/Modal/styles.d.ts +9 -9
- package/dist/components/layout/Modal/styles.js +103 -65
- package/dist/components/layout/index.js +16 -22
- package/dist/components/search/HighlightedText.js +18 -43
- package/dist/components/search/QuickSearchBar.js +86 -101
- package/dist/components/search/QuickSearchResults.js +56 -82
- package/dist/components/search/index.js +18 -20
- package/dist/components/search/styles.d.ts +10 -10
- package/dist/components/search/styles.js +88 -39
- package/dist/config/index.js +1 -2
- package/dist/helpers/components.js +3 -7
- package/dist/helpers/dates.d.ts +1 -1
- package/dist/helpers/dates.js +10 -17
- package/dist/helpers/index.js +32 -22
- package/dist/helpers/numbers.js +36 -69
- package/dist/helpers/responsive.js +45 -55
- package/dist/helpers/styled/size.d.ts +2 -2
- package/dist/helpers/styled/size.js +12 -26
- package/dist/helpers/styled/space.d.ts +4 -4
- package/dist/helpers/styled/space.js +60 -89
- package/dist/helpers/styled/typography.d.ts +2 -2
- package/dist/helpers/styled/typography.js +13 -60
- package/dist/helpers/text.js +8 -16
- package/dist/hooks/index.js +23 -23
- package/dist/hooks/providers.d.ts +5 -5
- package/dist/hooks/providers.js +16 -22
- package/dist/hooks/useContainerMediaQuery.js +8 -9
- package/dist/hooks/useElementSize.js +17 -22
- package/dist/hooks/useMediaQuery.js +8 -10
- package/dist/hooks/useMediaQueryForWidth.js +27 -25
- package/dist/hooks/useMutableState.d.ts +1 -1
- package/dist/hooks/useMutableState.js +20 -20
- package/dist/hooks/useShowArchived.js +19 -20
- package/dist/hooks/useWindowSize.js +14 -18
- package/dist/icons/index.d.ts +48 -48
- package/dist/icons/index.js +118 -147
- package/dist/providers/AuthenticationProvider/helpers.js +5 -5
- package/dist/providers/AuthenticationProvider/index.d.ts +1 -1
- package/dist/providers/AuthenticationProvider/index.js +147 -260
- package/dist/providers/LoadingProvider/index.d.ts +1 -1
- package/dist/providers/LoadingProvider/index.js +16 -24
- package/dist/providers/PortalsProvider/index.d.ts +1 -1
- package/dist/providers/PortalsProvider/index.js +27 -55
- package/dist/providers/PortalsProvider/styles.d.ts +3 -3
- package/dist/providers/PortalsProvider/styles.js +30 -20
- package/dist/providers/SettingsProvider/index.d.ts +1 -1
- package/dist/providers/SettingsProvider/index.js +42 -52
- package/dist/providers/ToastProvider/index.d.ts +1 -1
- package/dist/providers/ToastProvider/index.js +67 -64
- package/dist/providers/TrackingProvider/hooks.js +11 -14
- package/dist/providers/TrackingProvider/index.d.ts +1 -1
- package/dist/providers/TrackingProvider/index.js +38 -39
- package/dist/providers/UiProviders/index.d.ts +2 -4
- package/dist/providers/UiProviders/index.js +35 -70
- package/dist/providers/UiProviders/styles.d.ts +1 -1
- package/dist/providers/UiProviders/styles.js +11 -12
- package/dist/providers/index.js +18 -21
- package/dist/services/HttpService.js +49 -122
- package/dist/services/WebSocketService.js +92 -154
- package/dist/services/globalSearch.d.ts +1 -2
- package/dist/services/globalSearch.js +4 -7
- package/dist/services/hooks.js +51 -112
- package/dist/services/index.js +96 -32
- package/dist/services/requests/auth.js +13 -27
- package/dist/services/requests/generic.js +14 -34
- package/dist/services/requests/tracking.js +4 -7
- package/dist/services/requests/userProfiles.js +9 -19
- package/dist/services/requests/users.js +11 -19
- package/dist/services/sqlRequests.js +11 -11
- package/dist/services/types/auth.js +44 -82
- package/dist/services/types/base.js +8 -41
- package/dist/services/types/generic.js +41 -94
- package/dist/services/types/tracking.js +18 -48
- package/dist/services/types/userProfiles.js +34 -71
- package/dist/services/types/users.js +43 -80
- package/dist/services/updateSqlRequests.js +5 -6
- package/dist/theme/ThemeProvider.d.ts +1 -1
- package/dist/theme/ThemeProvider.js +41 -52
- package/dist/theme/defaultTheme.js +432 -441
- package/dist/theme/helpers.d.ts +1 -1
- package/dist/theme/helpers.js +36 -68
- package/dist/theme/index.js +18 -19
- package/dist/theme/types.d.ts +1 -1
- package/dist/types/index.js +1 -2
- package/dist/ui.css +1 -0
- package/package.json +37 -20
- package/tsconfig.tsbuildinfo +1 -1
- package/vite.config.ts +94 -0
- package/dist/Icons.d.ts +0 -59
- package/dist/Icons.js +0 -149
- package/dist/components/common/TabsView/index.js +0 -19
- package/dist/components/common/TabsView/types.js +0 -2
- package/dist/components/data/DataGrid/DataGridCell.d.ts +0 -2
- package/dist/components/data/DataGrid/DataGridCell.js +0 -69
- package/dist/components/data/DataGrid/DataGridColumnsModal/helpers.d.ts +0 -2
- package/dist/components/data/DataGrid/DataGridColumnsModal/helpers.js +0 -18
- package/dist/components/data/DataGrid/DataGridColumnsModal/hooks.d.ts +0 -6
- package/dist/components/data/DataGrid/DataGridColumnsModal/hooks.js +0 -38
- package/dist/components/data/DataGrid/DataGridColumnsModal/index.d.ts +0 -15
- package/dist/components/data/DataGrid/DataGridColumnsModal/index.js +0 -116
- package/dist/components/data/DataGrid/DataGridColumnsModal/styles.d.ts +0 -10
- package/dist/components/data/DataGrid/DataGridColumnsModal/styles.js +0 -64
- package/dist/components/data/DataGrid/DataGridEditableCell/CheckboxEditableCell.d.ts +0 -2
- package/dist/components/data/DataGrid/DataGridEditableCell/CheckboxEditableCell.js +0 -23
- package/dist/components/data/DataGrid/DataGridEditableCell/DateEditableCell.d.ts +0 -2
- package/dist/components/data/DataGrid/DataGridEditableCell/DateEditableCell.js +0 -27
- package/dist/components/data/DataGrid/DataGridEditableCell/NumberEditableCell.d.ts +0 -7
- package/dist/components/data/DataGrid/DataGridEditableCell/NumberEditableCell.js +0 -34
- package/dist/components/data/DataGrid/DataGridEditableCell/TextEditableCell.d.ts +0 -2
- package/dist/components/data/DataGrid/DataGridEditableCell/TextEditableCell.js +0 -23
- package/dist/components/data/DataGrid/DataGridEditableCell/index.d.ts +0 -2
- package/dist/components/data/DataGrid/DataGridEditableCell/index.js +0 -91
- package/dist/components/data/DataGrid/DataGridEditableCell/styles.d.ts +0 -3
- package/dist/components/data/DataGrid/DataGridEditableCell/styles.js +0 -17
- package/dist/components/data/DataGrid/DataGridEditableCell/types.d.ts +0 -11
- package/dist/components/data/DataGrid/DataGridEditableCell/types.js +0 -3
- package/dist/components/data/DataGrid/DataGridFilterMenu/FilterValuesScroller.d.ts +0 -13
- package/dist/components/data/DataGrid/DataGridFilterMenu/FilterValuesScroller.js +0 -96
- package/dist/components/data/DataGrid/DataGridFilterMenu/helpers.d.ts +0 -2
- package/dist/components/data/DataGrid/DataGridFilterMenu/helpers.js +0 -19
- package/dist/components/data/DataGrid/DataGridFilterMenu/hooks.d.ts +0 -10
- package/dist/components/data/DataGrid/DataGridFilterMenu/hooks.js +0 -51
- package/dist/components/data/DataGrid/DataGridFilterMenu/index.d.ts +0 -10
- package/dist/components/data/DataGrid/DataGridFilterMenu/index.js +0 -230
- package/dist/components/data/DataGrid/DataGridFilterMenu/styles.d.ts +0 -8
- package/dist/components/data/DataGrid/DataGridFilterMenu/styles.js +0 -31
- package/dist/components/data/DataGrid/DataGridFooter.d.ts +0 -4
- package/dist/components/data/DataGrid/DataGridFooter.js +0 -52
- package/dist/components/data/DataGrid/DataGridHeader.d.ts +0 -4
- package/dist/components/data/DataGrid/DataGridHeader.js +0 -113
- package/dist/components/data/DataGrid/DataGridHeaderCell.d.ts +0 -2
- package/dist/components/data/DataGrid/DataGridHeaderCell.js +0 -81
- package/dist/components/data/DataGrid/DataGridRowTemplate.d.ts +0 -3
- package/dist/components/data/DataGrid/DataGridRowTemplate.js +0 -82
- package/dist/components/data/DataGrid/DataGridToolbar.d.ts +0 -4
- package/dist/components/data/DataGrid/DataGridToolbar.js +0 -141
- package/dist/components/data/DataGrid/FilterModalContent/index.d.ts +0 -7
- package/dist/components/data/DataGrid/FilterModalContent/index.js +0 -127
- package/dist/components/data/DataGrid/FilterModalContent/styles.d.ts +0 -1
- package/dist/components/data/DataGrid/FilterModalContent/styles.js +0 -15
- package/dist/components/data/DataGrid/constants.d.ts +0 -6
- package/dist/components/data/DataGrid/constants.js +0 -9
- package/dist/components/data/DataGrid/helpers/columns.d.ts +0 -16
- package/dist/components/data/DataGrid/helpers/columns.js +0 -173
- package/dist/components/data/DataGrid/helpers/filters.d.ts +0 -18
- package/dist/components/data/DataGrid/helpers/filters.js +0 -334
- package/dist/components/data/DataGrid/helpers/index.d.ts +0 -2
- package/dist/components/data/DataGrid/helpers/index.js +0 -18
- package/dist/components/data/DataGrid/hooks/index.d.ts +0 -7
- package/dist/components/data/DataGrid/hooks/index.js +0 -30
- package/dist/components/data/DataGrid/hooks/useDataGrid.d.ts +0 -2
- package/dist/components/data/DataGrid/hooks/useDataGrid.js +0 -293
- package/dist/components/data/DataGrid/hooks/useDataGridChangedRows.d.ts +0 -9
- package/dist/components/data/DataGrid/hooks/useDataGridChangedRows.js +0 -91
- package/dist/components/data/DataGrid/hooks/useDataGridCopy.d.ts +0 -4
- package/dist/components/data/DataGrid/hooks/useDataGridCopy.js +0 -158
- package/dist/components/data/DataGrid/hooks/useDataGridSettings.d.ts +0 -12
- package/dist/components/data/DataGrid/hooks/useDataGridSettings.js +0 -43
- package/dist/components/data/DataGrid/hooks/useRefreshModal.d.ts +0 -5
- package/dist/components/data/DataGrid/hooks/useRefreshModal.js +0 -25
- package/dist/components/data/DataGrid/index.d.ts +0 -5
- package/dist/components/data/DataGrid/index.js +0 -99
- package/dist/components/data/DataGrid/styles.d.ts +0 -45
- package/dist/components/data/DataGrid/styles.js +0 -180
- package/dist/components/data/DataGrid/types.d.ts +0 -250
- package/dist/components/data/DataGrid/types.js +0 -44
- package/dist/components/data/SqlRequestDataGrid/SqlRequestForeignListEditableCell.d.ts +0 -2
- package/dist/components/data/SqlRequestDataGrid/SqlRequestForeignListEditableCell.js +0 -19
- package/dist/components/data/SqlRequestDataGrid/helpers/columns.d.ts +0 -16
- package/dist/components/data/SqlRequestDataGrid/helpers/columns.js +0 -313
- package/dist/components/data/SqlRequestDataGrid/helpers/index.d.ts +0 -2
- package/dist/components/data/SqlRequestDataGrid/helpers/index.js +0 -18
- package/dist/components/data/SqlRequestDataGrid/helpers/rows.d.ts +0 -2
- package/dist/components/data/SqlRequestDataGrid/helpers/rows.js +0 -17
- package/dist/components/data/SqlRequestDataGrid/helpers/sqlRequests.d.ts +0 -3
- package/dist/components/data/SqlRequestDataGrid/helpers/sqlRequests.js +0 -19
- package/dist/components/data/SqlRequestDataGrid/index.d.ts +0 -6
- package/dist/components/data/SqlRequestDataGrid/index.js +0 -343
- package/dist/components/data/SqlRequestDataGrid/styles.d.ts +0 -2
- package/dist/components/data/SqlRequestDataGrid/styles.js +0 -14
- package/dist/components/data/SqlRequestDataGrid/types.d.ts +0 -31
- package/dist/components/data/SqlRequestDataGrid/types.js +0 -3
- package/dist/components/data/SqlRequestForeignList/index.d.ts +0 -5
- package/dist/components/data/SqlRequestForeignList/index.js +0 -131
- package/dist/components/data/SqlRequestForeignList/styles.d.ts +0 -9
- package/dist/components/data/SqlRequestForeignList/styles.js +0 -22
- package/dist/components/data/SqlRequestForeignList/types.d.ts +0 -22
- package/dist/components/data/SqlRequestForeignList/types.js +0 -2
- package/dist/components/data/SqlRequestGrid/filters/FiltersSidebar.d.ts +0 -10
- package/dist/components/data/SqlRequestGrid/filters/FiltersSidebar.js +0 -60
- package/dist/components/data/SqlRequestGrid/filters/styles.d.ts +0 -4
- package/dist/components/data/SqlRequestGrid/filters/styles.js +0 -17
- package/dist/components/data/SqlRequestGrid/helpers/index.d.ts +0 -1
- package/dist/components/data/SqlRequestGrid/helpers/index.js +0 -17
- package/dist/components/data/SqlRequestGrid/helpers/sqlRequests.d.ts +0 -3
- package/dist/components/data/SqlRequestGrid/helpers/sqlRequests.js +0 -18
- package/dist/components/data/SqlRequestGrid/index.d.ts +0 -5
- package/dist/components/data/SqlRequestGrid/index.js +0 -235
- package/dist/components/data/SqlRequestGrid/styles.d.ts +0 -2
- package/dist/components/data/SqlRequestGrid/styles.js +0 -17
- package/dist/components/data/SqlRequestGrid/types.d.ts +0 -40
- package/dist/components/data/SqlRequestGrid/types.js +0 -2
- package/dist/components/data/VirtualScroller/hooks.d.ts +0 -18
- package/dist/components/data/VirtualScroller/hooks.js +0 -50
- package/dist/components/data/VirtualScroller/index.d.ts +0 -15
- package/dist/components/data/VirtualScroller/index.js +0 -77
- package/dist/components/data/VirtualScroller/styles.d.ts +0 -14
- package/dist/components/data/VirtualScroller/styles.js +0 -41
- package/dist/components/data/VirtualScroller/types.d.ts +0 -6
- package/dist/components/data/VirtualScroller/types.js +0 -2
- package/dist/components/data/index.d.ts +0 -12
- package/dist/components/data/index.js +0 -28
- package/dist/components/grid/DataGrid/DataGridEditableCell/types.js +0 -3
- package/dist/components/grid/DataGrid/helpers/index.js +0 -18
- package/dist/components/grid/SqlRequestDataGrid/helpers/index.js +0 -18
- package/dist/components/grid/SqlRequestDataGrid/types.js +0 -3
- package/dist/components/grid/SqlRequestForeignList/types.js +0 -2
- package/dist/components/grid/SqlRequestGrid/helpers/index.js +0 -17
- package/dist/components/grid/SqlRequestGrid/types.js +0 -2
- package/dist/components/grid/VirtualScroller/types.js +0 -2
- package/dist/components/index.d.ts +0 -6
- package/dist/components/index.js +0 -22
- package/dist/components/search/types.js +0 -2
- package/dist/components/ui/Avatar/index.d.ts +0 -10
- package/dist/components/ui/Avatar/index.js +0 -62
- package/dist/components/ui/Avatar/styles.d.ts +0 -4
- package/dist/components/ui/Avatar/styles.js +0 -53
- package/dist/components/ui/Card/index.d.ts +0 -10
- package/dist/components/ui/Card/index.js +0 -34
- package/dist/components/ui/Card/styles.d.ts +0 -4
- package/dist/components/ui/Card/styles.js +0 -17
- package/dist/components/ui/ContextMenu/index.d.ts +0 -11
- package/dist/components/ui/ContextMenu/index.js +0 -63
- package/dist/components/ui/ContextMenu/styles.d.ts +0 -10
- package/dist/components/ui/ContextMenu/styles.js +0 -66
- package/dist/components/ui/Ellipsis.d.ts +0 -12
- package/dist/components/ui/Ellipsis.js +0 -28
- package/dist/components/ui/Label.d.ts +0 -10
- package/dist/components/ui/Label.js +0 -84
- package/dist/components/ui/Message/index.d.ts +0 -9
- package/dist/components/ui/Message/index.js +0 -63
- package/dist/components/ui/Message/styles.d.ts +0 -6
- package/dist/components/ui/Message/styles.js +0 -52
- package/dist/components/ui/TabsView/TabsList.d.ts +0 -11
- package/dist/components/ui/TabsView/TabsList.js +0 -42
- package/dist/components/ui/TabsView/TabsView.d.ts +0 -11
- package/dist/components/ui/TabsView/TabsView.js +0 -17
- package/dist/components/ui/TabsView/index.d.ts +0 -3
- package/dist/components/ui/TabsView/index.js +0 -19
- package/dist/components/ui/TabsView/styles.d.ts +0 -11
- package/dist/components/ui/TabsView/styles.js +0 -57
- package/dist/components/ui/TabsView/types.d.ts +0 -10
- package/dist/components/ui/TabsView/types.js +0 -2
- package/dist/components/ui/index.d.ts +0 -7
- package/dist/components/ui/index.js +0 -23
- package/dist/helpers/getScrollbarSize.js +0 -17
- package/dist/helpers/types.js +0 -8
- package/dist/hooks/useMutableState.test.js +0 -320
- package/dist/index.d.ts +0 -91
- package/dist/index.js +0 -107
- package/dist/providers/ThemeProvider/ThemeProvider.d.ts +0 -8
- package/dist/providers/ThemeProvider/ThemeProvider.js +0 -53
- package/dist/providers/ThemeProvider/defaultTheme.d.ts +0 -3
- package/dist/providers/ThemeProvider/defaultTheme.js +0 -450
- package/dist/providers/ThemeProvider/helpers.d.ts +0 -13
- package/dist/providers/ThemeProvider/helpers.js +0 -69
- package/dist/providers/ThemeProvider/index.d.ts +0 -8
- package/dist/providers/ThemeProvider/index.js +0 -53
- package/dist/providers/ThemeProvider/types.d.ts +0 -28
- package/dist/providers/ThemeProvider/types.js +0 -2
- package/dist/providers/hooks.d.ts +0 -11
- package/dist/providers/hooks.js +0 -22
- package/dist/services/advancedRequests.js +0 -13
- package/dist/services/base.js +0 -7
- package/dist/services/requests/printing.js +0 -8
- package/dist/services/smartQueries.js +0 -10
- package/dist/services/smartRequests.js +0 -1
- package/dist/services/types/printing.js +0 -2
- package/dist/theme/types.js +0 -2
- package/dist/types.d.ts +0 -3
- package/dist/types.js +0 -2
|
@@ -1,102 +1,87 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
})
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
var onSelect = (0, react_1.useCallback)(function () {
|
|
88
|
-
setTerm('');
|
|
89
|
-
setResults(null);
|
|
90
|
-
setDropdownVisible(false);
|
|
91
|
-
setIsSelecting(true);
|
|
92
|
-
setTimeout(function () { return setIsSelecting(false); }, 500);
|
|
93
|
-
}, []);
|
|
94
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(InputComponent, { type: "text", ref: fakeInputRef, value: term, onFocus: onFocus, placeholder: placeholder }), dropdownVisible && rect && ((0, jsx_runtime_1.jsx)(Dropdown_1.Dropdown, { "$sourceRect": destRect, onClose: function () {
|
|
95
|
-
setDropdownVisible(false);
|
|
96
|
-
setTerm('');
|
|
97
|
-
setResults(null);
|
|
98
|
-
}, "$width": rect.width, "$height": [results ? 250 : rect.height, 400], "$autoPositionY": false, children: (0, jsx_runtime_1.jsxs)(styles.QuickSearchDropdownContainer, { children: [(0, jsx_runtime_1.jsx)(InputComponent, { type: "text", ref: inputRef, value: term, placeholder: placeholder, onChange: function (e) { return setTerm(e.target.value); }, onClick: function (e) { return e.stopPropagation(); }, onPaste: function (e) {
|
|
99
|
-
e.clipboardData.getData('text');
|
|
100
|
-
} }), results && ((0, jsx_runtime_1.jsx)(QuickSearchResults_1.QuickSearchResults, { results: results, definitions: types, term: debouncedTerm, onSelect: onSelect }))] }) }))] }));
|
|
1
|
+
import { jsxs as w, Fragment as $, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { QuickSearchDropdownContainer as v } from "./styles.js";
|
|
3
|
+
import { useState as l, useEffect as S, useRef as b, useCallback as D } from "react";
|
|
4
|
+
import { Dropdown as F } from "../layout/Dropdown/index.js";
|
|
5
|
+
import { Input as P } from "../forms/styles.js";
|
|
6
|
+
import { QuickSearchResults as Q } from "./QuickSearchResults.js";
|
|
7
|
+
import { useDebounce as j } from "@uidotdev/usehooks";
|
|
8
|
+
import { useGlobalSearchRequestHandler as q } from "../../services/globalSearch.js";
|
|
9
|
+
const G = ({
|
|
10
|
+
types: u,
|
|
11
|
+
placeholder: m,
|
|
12
|
+
inputComponent: d = P
|
|
13
|
+
}) => {
|
|
14
|
+
const [a, n] = l(""), [x, o] = l(!1), [r, p] = l(!1), s = j(a, 300), [f, i] = l(null);
|
|
15
|
+
S(() => {
|
|
16
|
+
n(""), i(null), o(!1);
|
|
17
|
+
}, []);
|
|
18
|
+
const h = b(null), g = b(null), t = h.current?.getBoundingClientRect() ?? new DOMRect(), k = new DOMRect(t.x, t.y, t.width, 0), R = q();
|
|
19
|
+
S(() => {
|
|
20
|
+
r || s && R({
|
|
21
|
+
types: u,
|
|
22
|
+
searchTerm: s,
|
|
23
|
+
limit: 5
|
|
24
|
+
}).then((e) => {
|
|
25
|
+
i(e.data), o(!0);
|
|
26
|
+
});
|
|
27
|
+
}, [R, s, u, r]);
|
|
28
|
+
const C = D(() => {
|
|
29
|
+
r || (o(!0), requestAnimationFrame(() => {
|
|
30
|
+
g.current?.focus();
|
|
31
|
+
}));
|
|
32
|
+
}, [r]), T = D(() => {
|
|
33
|
+
n(""), i(null), o(!1), p(!0), setTimeout(() => p(!1), 500);
|
|
34
|
+
}, []);
|
|
35
|
+
return /* @__PURE__ */ w($, { children: [
|
|
36
|
+
/* @__PURE__ */ c(
|
|
37
|
+
d,
|
|
38
|
+
{
|
|
39
|
+
type: "text",
|
|
40
|
+
ref: h,
|
|
41
|
+
value: a,
|
|
42
|
+
onFocus: C,
|
|
43
|
+
placeholder: m
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
x && t && /* @__PURE__ */ c(
|
|
47
|
+
F,
|
|
48
|
+
{
|
|
49
|
+
$sourceRect: k,
|
|
50
|
+
onClose: () => {
|
|
51
|
+
o(!1), n(""), i(null);
|
|
52
|
+
},
|
|
53
|
+
$width: t.width,
|
|
54
|
+
$height: [f ? 250 : t.height, 400],
|
|
55
|
+
$autoPositionY: !1,
|
|
56
|
+
children: /* @__PURE__ */ w(v, { children: [
|
|
57
|
+
/* @__PURE__ */ c(
|
|
58
|
+
d,
|
|
59
|
+
{
|
|
60
|
+
type: "text",
|
|
61
|
+
ref: g,
|
|
62
|
+
value: a,
|
|
63
|
+
placeholder: m,
|
|
64
|
+
onChange: (e) => n(e.target.value),
|
|
65
|
+
onClick: (e) => e.stopPropagation(),
|
|
66
|
+
onPaste: (e) => {
|
|
67
|
+
e.clipboardData.getData("text");
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
),
|
|
71
|
+
f && /* @__PURE__ */ c(
|
|
72
|
+
Q,
|
|
73
|
+
{
|
|
74
|
+
results: f,
|
|
75
|
+
definitions: u,
|
|
76
|
+
term: s,
|
|
77
|
+
onSelect: T
|
|
78
|
+
}
|
|
79
|
+
)
|
|
80
|
+
] })
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
] });
|
|
84
|
+
};
|
|
85
|
+
export {
|
|
86
|
+
G as QuickSearchBar
|
|
101
87
|
};
|
|
102
|
-
exports.QuickSearchBar = QuickSearchBar;
|
|
@@ -1,84 +1,58 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
1
|
+
import { jsx as n, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import { QuickSearchResultsTitle as C, QuickSearchResultsItem as D, QuickSearchResultsContainer as j, QuickSearchResultsListContainer as x, QuickSearchResultsDetailsContainer as E, QuickSearchResultsDetailsDivider as I } from "./styles.js";
|
|
3
|
+
import { useState as y, useMemo as k } from "react";
|
|
4
|
+
import { pickBy as M } from "lodash";
|
|
5
|
+
const v = (S) => {
|
|
6
|
+
const { definitions: c, results: f, term: s, onSelect: R } = S, [o, p] = y(-1), u = M(
|
|
7
|
+
f,
|
|
8
|
+
(e) => e.length > 0
|
|
9
|
+
), h = k(
|
|
10
|
+
() => Object.keys(u).reduce(
|
|
11
|
+
(e, t) => [
|
|
12
|
+
...e,
|
|
13
|
+
...u[t].map((r) => ({
|
|
14
|
+
result: r,
|
|
15
|
+
type: t
|
|
16
|
+
}))
|
|
17
|
+
],
|
|
18
|
+
[]
|
|
19
|
+
),
|
|
20
|
+
[u]
|
|
21
|
+
), Q = k(() => {
|
|
22
|
+
const e = [];
|
|
23
|
+
let t = null;
|
|
24
|
+
return h.forEach(({ result: r, type: l }, d) => {
|
|
25
|
+
const m = c[l];
|
|
26
|
+
t !== l && (t = l, e.push(
|
|
27
|
+
/* @__PURE__ */ n(C, { children: m.title }, `title-${String(l)}`)
|
|
28
|
+
)), e.push(
|
|
29
|
+
/* @__PURE__ */ n(
|
|
30
|
+
D,
|
|
31
|
+
{
|
|
32
|
+
onClick: () => {
|
|
33
|
+
m.onClick?.(r), R?.();
|
|
34
|
+
},
|
|
35
|
+
onMouseEnter: () => p(d),
|
|
36
|
+
className: o === d ? "highlighted" : "",
|
|
37
|
+
children: m.quickRenderer(r, s)
|
|
38
|
+
},
|
|
39
|
+
`result-${d}`
|
|
40
|
+
)
|
|
41
|
+
);
|
|
42
|
+
}), e;
|
|
43
|
+
}, [c, o, h, s, R]), i = h[o], a = i ? c[i?.type] : null;
|
|
44
|
+
return /* @__PURE__ */ g(j, { children: [
|
|
45
|
+
/* @__PURE__ */ n(x, { children: Q }),
|
|
46
|
+
a && /* @__PURE__ */ g(E, { children: [
|
|
47
|
+
a.titleRenderer(i.result, s),
|
|
48
|
+
/* @__PURE__ */ n(I, {}),
|
|
49
|
+
a.detailsRenderer(
|
|
50
|
+
i.result,
|
|
51
|
+
s
|
|
52
|
+
)
|
|
53
|
+
] })
|
|
54
|
+
] });
|
|
43
55
|
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
47
|
-
var styles = __importStar(require("./styles"));
|
|
48
|
-
var react_1 = require("react");
|
|
49
|
-
var lodash_1 = require("lodash");
|
|
50
|
-
var QuickSearchResults = function (props) {
|
|
51
|
-
var definitions = props.definitions, allResults = props.results, term = props.term, onSelect = props.onSelect;
|
|
52
|
-
var _a = (0, react_1.useState)(-1), highlightedIndex = _a[0], setHighlightedIndex = _a[1];
|
|
53
|
-
var notEmptyResults = (0, lodash_1.pickBy)(allResults, function (results) { return results.length > 0; });
|
|
54
|
-
var resultsArray = (0, react_1.useMemo)(function () {
|
|
55
|
-
return Object.keys(notEmptyResults).reduce(function (acc, type) { return __spreadArray(__spreadArray([], acc, true), notEmptyResults[type].map(function (result) { return ({
|
|
56
|
-
result: result,
|
|
57
|
-
type: type,
|
|
58
|
-
}); }), true); }, []);
|
|
59
|
-
}, [notEmptyResults]);
|
|
60
|
-
var elements = (0, react_1.useMemo)(function () {
|
|
61
|
-
var elements = [];
|
|
62
|
-
var currentType = null;
|
|
63
|
-
resultsArray.forEach(function (_a, index) {
|
|
64
|
-
var result = _a.result, type = _a.type;
|
|
65
|
-
var definition = definitions[type];
|
|
66
|
-
if (currentType !== type) {
|
|
67
|
-
currentType = type;
|
|
68
|
-
elements.push((0, jsx_runtime_1.jsx)(styles.QuickSearchResultsTitle, { children: definition.title }, "title-".concat(String(type))));
|
|
69
|
-
}
|
|
70
|
-
elements.push((0, jsx_runtime_1.jsx)(styles.QuickSearchResultsItem, { onClick: function () {
|
|
71
|
-
var _a;
|
|
72
|
-
(_a = definition.onClick) === null || _a === void 0 ? void 0 : _a.call(definition, result);
|
|
73
|
-
onSelect === null || onSelect === void 0 ? void 0 : onSelect();
|
|
74
|
-
}, onMouseEnter: function () { return setHighlightedIndex(index); }, className: highlightedIndex === index ? 'highlighted' : '', children: definition.quickRenderer(result, term) }, "result-".concat(index)));
|
|
75
|
-
});
|
|
76
|
-
return elements;
|
|
77
|
-
}, [definitions, highlightedIndex, resultsArray, term, onSelect]);
|
|
78
|
-
var highlightedResult = resultsArray[highlightedIndex];
|
|
79
|
-
var highlightedDefinition = highlightedResult
|
|
80
|
-
? definitions[highlightedResult === null || highlightedResult === void 0 ? void 0 : highlightedResult.type]
|
|
81
|
-
: null;
|
|
82
|
-
return ((0, jsx_runtime_1.jsxs)(styles.QuickSearchResultsContainer, { children: [(0, jsx_runtime_1.jsx)(styles.QuickSearchResultsListContainer, { children: elements }), highlightedDefinition && ((0, jsx_runtime_1.jsxs)(styles.QuickSearchResultsDetailsContainer, { children: [highlightedDefinition.titleRenderer(highlightedResult.result, term), (0, jsx_runtime_1.jsx)(styles.QuickSearchResultsDetailsDivider, {}), highlightedDefinition.detailsRenderer(highlightedResult.result, term)] }))] }));
|
|
56
|
+
export {
|
|
57
|
+
v as QuickSearchResults
|
|
83
58
|
};
|
|
84
|
-
exports.QuickSearchResults = QuickSearchResults;
|
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { QuickSearchBar as i } from "./QuickSearchBar.js";
|
|
2
|
+
import { QuickSearchResults as s } from "./QuickSearchResults.js";
|
|
3
|
+
import { HighlightedText as a } from "./HighlightedText.js";
|
|
4
|
+
import { QuickSearchDropdownContainer as l, QuickSearchResultDetailsTitle as h, QuickSearchResultsContainer as o, QuickSearchResultsDetailsContainer as k, QuickSearchResultsDetailsDivider as Q, QuickSearchResultsDetailsList as S, QuickSearchResultsDetailsTerm as R, QuickSearchResultsItem as n, QuickSearchResultsListContainer as D, QuickSearchResultsTitle as m } from "./styles.js";
|
|
5
|
+
export {
|
|
6
|
+
a as HighlightedText,
|
|
7
|
+
i as QuickSearchBar,
|
|
8
|
+
l as QuickSearchDropdownContainer,
|
|
9
|
+
h as QuickSearchResultDetailsTitle,
|
|
10
|
+
s as QuickSearchResults,
|
|
11
|
+
o as QuickSearchResultsContainer,
|
|
12
|
+
k as QuickSearchResultsDetailsContainer,
|
|
13
|
+
Q as QuickSearchResultsDetailsDivider,
|
|
14
|
+
S as QuickSearchResultsDetailsList,
|
|
15
|
+
R as QuickSearchResultsDetailsTerm,
|
|
16
|
+
n as QuickSearchResultsItem,
|
|
17
|
+
D as QuickSearchResultsListContainer,
|
|
18
|
+
m as QuickSearchResultsTitle
|
|
15
19
|
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./QuickSearchBar"), exports);
|
|
18
|
-
__exportStar(require("./QuickSearchResults"), exports);
|
|
19
|
-
__exportStar(require("./HighlightedText"), exports);
|
|
20
|
-
__exportStar(require("./types"), exports);
|
|
21
|
-
__exportStar(require("./styles"), exports);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare const QuickSearchDropdownContainer: import(
|
|
2
|
-
export declare const QuickSearchResultsContainer: import(
|
|
3
|
-
export declare const QuickSearchResultsListContainer: import(
|
|
4
|
-
export declare const QuickSearchResultsTitle: import(
|
|
5
|
-
export declare const QuickSearchResultsItem: import(
|
|
6
|
-
export declare const QuickSearchResultsDetailsContainer: import(
|
|
7
|
-
export declare const QuickSearchResultsDetailsDivider: import(
|
|
8
|
-
export declare const QuickSearchResultDetailsTitle: import(
|
|
9
|
-
export declare const QuickSearchResultsDetailsList: import(
|
|
10
|
-
export declare const QuickSearchResultsDetailsTerm: import(
|
|
1
|
+
export declare const QuickSearchDropdownContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, never>> & string;
|
|
2
|
+
export declare const QuickSearchResultsContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, never>> & string;
|
|
3
|
+
export declare const QuickSearchResultsListContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, never>> & string;
|
|
4
|
+
export declare const QuickSearchResultsTitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, never>> & string;
|
|
5
|
+
export declare const QuickSearchResultsItem: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, never>> & string;
|
|
6
|
+
export declare const QuickSearchResultsDetailsContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, never>> & string;
|
|
7
|
+
export declare const QuickSearchResultsDetailsDivider: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHRElement>, HTMLHRElement>, never>> & string;
|
|
8
|
+
export declare const QuickSearchResultDetailsTitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, never>, never>> & string;
|
|
9
|
+
export declare const QuickSearchResultsDetailsList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDListElement>, HTMLDListElement>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDListElement>, HTMLDListElement>>, never>, never>> & string;
|
|
10
|
+
export declare const QuickSearchResultsDetailsTerm: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>>, never>, never>> & string;
|
|
@@ -1,40 +1,89 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import e from "styled-components";
|
|
2
|
+
const t = e.div.attrs({
|
|
3
|
+
className: "QuickSearchDropdownContainer"
|
|
4
|
+
})`
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
height: 100%;
|
|
8
|
+
`, s = e.div.attrs({
|
|
9
|
+
className: "QuickSearchResultsContainer"
|
|
10
|
+
})`
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: row;
|
|
13
|
+
height: 100%;
|
|
14
|
+
flex: 1;
|
|
15
|
+
padding: var(--space-2) 0;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
`, r = e.div.attrs({
|
|
18
|
+
className: "QuickSearchResultsListContainer"
|
|
19
|
+
})`
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
padding: var(--space-2);
|
|
23
|
+
border-right: 1px solid var(--color-base-200);
|
|
24
|
+
flex: 1;
|
|
25
|
+
overflow: auto;
|
|
26
|
+
`, i = e.div.attrs({
|
|
27
|
+
className: "QuickSearchResultsTitle"
|
|
28
|
+
})`
|
|
29
|
+
margin: 0;
|
|
30
|
+
margin-bottom: var(--space-1);
|
|
31
|
+
&:not(:first-child) {
|
|
32
|
+
margin-top: var(--space-2);
|
|
33
|
+
}
|
|
34
|
+
font-weight: bold;
|
|
35
|
+
font-size: var(--text-sm);
|
|
36
|
+
text-transform: uppercase;
|
|
37
|
+
letter-spacing: 0.1em;
|
|
38
|
+
color: var(--color-text-500);
|
|
39
|
+
`, c = e.div.attrs({
|
|
40
|
+
className: "QuickSearchResultsItem"
|
|
41
|
+
})`
|
|
42
|
+
padding: var(--space-2) var(--space-3);
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
border-radius: 4px;
|
|
45
|
+
&:hover {
|
|
46
|
+
background-color: var(--color-base-100);
|
|
47
|
+
}
|
|
48
|
+
`, o = e.div.attrs({
|
|
49
|
+
className: "QuickSearchResultsDetailsContainer"
|
|
50
|
+
})`
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
padding: var(--space-2);
|
|
54
|
+
flex: 1;
|
|
55
|
+
`, l = e.hr`
|
|
56
|
+
margin: var(--space-2) 0;
|
|
57
|
+
height: 1px;
|
|
58
|
+
border: none;
|
|
59
|
+
background-color: var(--color-base-200);
|
|
60
|
+
`, n = e.div.attrs({
|
|
61
|
+
className: "QuickSearchResultDetailsTitle"
|
|
62
|
+
})`
|
|
63
|
+
margin: 0;
|
|
64
|
+
`, u = e.dl.attrs({
|
|
65
|
+
className: "QuickSearchResultsDetailsList"
|
|
66
|
+
})`
|
|
67
|
+
display: grid;
|
|
68
|
+
grid-template-columns: 1fr 3fr;
|
|
69
|
+
grid-gap: var(--space-2);
|
|
70
|
+
`, d = e.dt.attrs({
|
|
71
|
+
className: "QuickSearchResultsDetailsTerm"
|
|
72
|
+
})`
|
|
73
|
+
text-transform: uppercase;
|
|
74
|
+
font-size: var(--text-sm);
|
|
75
|
+
font-weight: bold;
|
|
76
|
+
color: var(--color-text-500);
|
|
77
|
+
`;
|
|
78
|
+
export {
|
|
79
|
+
t as QuickSearchDropdownContainer,
|
|
80
|
+
n as QuickSearchResultDetailsTitle,
|
|
81
|
+
s as QuickSearchResultsContainer,
|
|
82
|
+
o as QuickSearchResultsDetailsContainer,
|
|
83
|
+
l as QuickSearchResultsDetailsDivider,
|
|
84
|
+
u as QuickSearchResultsDetailsList,
|
|
85
|
+
d as QuickSearchResultsDetailsTerm,
|
|
86
|
+
c as QuickSearchResultsItem,
|
|
87
|
+
r as QuickSearchResultsListContainer,
|
|
88
|
+
i as QuickSearchResultsTitle
|
|
5
89
|
};
|
|
6
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.QuickSearchResultsDetailsTerm = exports.QuickSearchResultsDetailsList = exports.QuickSearchResultDetailsTitle = exports.QuickSearchResultsDetailsDivider = exports.QuickSearchResultsDetailsContainer = exports.QuickSearchResultsItem = exports.QuickSearchResultsTitle = exports.QuickSearchResultsListContainer = exports.QuickSearchResultsContainer = exports.QuickSearchDropdownContainer = void 0;
|
|
11
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.QuickSearchDropdownContainer = styled_components_1.default.div.attrs({
|
|
13
|
-
className: 'QuickSearchDropdownContainer',
|
|
14
|
-
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n height: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n height: 100%;\n"])));
|
|
15
|
-
exports.QuickSearchResultsContainer = styled_components_1.default.div.attrs({
|
|
16
|
-
className: 'QuickSearchResultsContainer',
|
|
17
|
-
})(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n height: 100%;\n flex: 1;\n padding: var(--space-2) 0;\n overflow: hidden;\n"], ["\n display: flex;\n flex-direction: row;\n height: 100%;\n flex: 1;\n padding: var(--space-2) 0;\n overflow: hidden;\n"])));
|
|
18
|
-
exports.QuickSearchResultsListContainer = styled_components_1.default.div.attrs({
|
|
19
|
-
className: 'QuickSearchResultsListContainer',
|
|
20
|
-
})(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n padding: var(--space-2);\n border-right: 1px solid var(--color-base-200);\n flex: 1;\n overflow: auto;\n"], ["\n display: flex;\n flex-direction: column;\n padding: var(--space-2);\n border-right: 1px solid var(--color-base-200);\n flex: 1;\n overflow: auto;\n"])));
|
|
21
|
-
exports.QuickSearchResultsTitle = styled_components_1.default.div.attrs({
|
|
22
|
-
className: 'QuickSearchResultsTitle',
|
|
23
|
-
})(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n margin: 0;\n margin-bottom: var(--space-1);\n &:not(:first-child) {\n margin-top: var(--space-2);\n }\n font-weight: bold;\n font-size: var(--text-sm);\n text-transform: uppercase;\n letter-spacing: 0.1em;\n color: var(--color-text-500);\n"], ["\n margin: 0;\n margin-bottom: var(--space-1);\n &:not(:first-child) {\n margin-top: var(--space-2);\n }\n font-weight: bold;\n font-size: var(--text-sm);\n text-transform: uppercase;\n letter-spacing: 0.1em;\n color: var(--color-text-500);\n"])));
|
|
24
|
-
exports.QuickSearchResultsItem = styled_components_1.default.div.attrs({
|
|
25
|
-
className: 'QuickSearchResultsItem',
|
|
26
|
-
})(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n padding: var(--space-2) var(--space-3);\n cursor: pointer;\n border-radius: 4px;\n &:hover {\n background-color: var(--color-base-100);\n }\n"], ["\n padding: var(--space-2) var(--space-3);\n cursor: pointer;\n border-radius: 4px;\n &:hover {\n background-color: var(--color-base-100);\n }\n"])));
|
|
27
|
-
exports.QuickSearchResultsDetailsContainer = styled_components_1.default.div.attrs({
|
|
28
|
-
className: 'QuickSearchResultsDetailsContainer',
|
|
29
|
-
})(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n padding: var(--space-2);\n flex: 1;\n"], ["\n display: flex;\n flex-direction: column;\n padding: var(--space-2);\n flex: 1;\n"])));
|
|
30
|
-
exports.QuickSearchResultsDetailsDivider = styled_components_1.default.hr(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n margin: var(--space-2) 0;\n height: 1px;\n border: none;\n background-color: var(--color-base-200);\n"], ["\n margin: var(--space-2) 0;\n height: 1px;\n border: none;\n background-color: var(--color-base-200);\n"])));
|
|
31
|
-
exports.QuickSearchResultDetailsTitle = styled_components_1.default.div.attrs({
|
|
32
|
-
className: 'QuickSearchResultDetailsTitle',
|
|
33
|
-
})(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n margin: 0;\n"], ["\n margin: 0;\n"])));
|
|
34
|
-
exports.QuickSearchResultsDetailsList = styled_components_1.default.dl.attrs({
|
|
35
|
-
className: 'QuickSearchResultsDetailsList',
|
|
36
|
-
})(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: grid;\n grid-template-columns: 1fr 3fr;\n grid-gap: var(--space-2);\n"], ["\n display: grid;\n grid-template-columns: 1fr 3fr;\n grid-gap: var(--space-2);\n"])));
|
|
37
|
-
exports.QuickSearchResultsDetailsTerm = styled_components_1.default.dt.attrs({
|
|
38
|
-
className: 'QuickSearchResultsDetailsTerm',
|
|
39
|
-
})(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n text-transform: uppercase;\n font-size: var(--text-sm);\n font-weight: bold;\n color: var(--color-text-500);\n"], ["\n text-transform: uppercase;\n font-size: var(--text-sm);\n font-weight: bold;\n color: var(--color-text-500);\n"])));
|
|
40
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;
|
package/dist/config/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var withDisplayName = function (component, displayName) {
|
|
5
|
-
component.displayName = displayName;
|
|
6
|
-
return component;
|
|
1
|
+
const i = (a, e) => (a.displayName = e, a);
|
|
2
|
+
export {
|
|
3
|
+
i as withDisplayName
|
|
7
4
|
};
|
|
8
|
-
exports.withDisplayName = withDisplayName;
|
package/dist/helpers/dates.d.ts
CHANGED
package/dist/helpers/dates.js
CHANGED
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import r from "moment";
|
|
2
|
+
const s = (m, o = "DD/MM/YYYY") => {
|
|
3
|
+
const t = r.utc(m);
|
|
4
|
+
return t.isValid() ? t.format(o) : "";
|
|
5
|
+
}, Y = (m, o = "DD/MM/YYYY HH:mm:ss") => {
|
|
6
|
+
const t = r.utc(m);
|
|
7
|
+
return t.isValid() ? t.format(o) : "";
|
|
4
8
|
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var formatDate = function (date, format) {
|
|
9
|
-
if (format === void 0) { format = 'DD/MM/YYYY'; }
|
|
10
|
-
var m = moment_1.default.utc(date);
|
|
11
|
-
return m.isValid() ? m.format(format) : '';
|
|
9
|
+
export {
|
|
10
|
+
s as formatDate,
|
|
11
|
+
Y as formatDateTime
|
|
12
12
|
};
|
|
13
|
-
exports.formatDate = formatDate;
|
|
14
|
-
var formatDateTime = function (date, format) {
|
|
15
|
-
if (format === void 0) { format = 'DD/MM/YYYY HH:mm:ss'; }
|
|
16
|
-
var m = moment_1.default.utc(date);
|
|
17
|
-
return m.isValid() ? m.format(format) : '';
|
|
18
|
-
};
|
|
19
|
-
exports.formatDateTime = formatDateTime;
|