@povio/ui 0.0.7 → 0.0.8
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/index.js +62585 -0
- package/package.json +5 -57
- package/povio-ui-0.0.8.tgz +0 -0
- package/{dist → src}/components/Menu/MenuDesktop.d.ts +1 -1
- package/{dist → src}/components/Menu/MenuItem.d.ts +1 -1
- package/{dist → src}/components/Menu/MenuMobile.d.ts +1 -1
- package/{dist → src}/components/Menu/MenuPopover.d.ts +1 -1
- package/{dist → src}/components/buttons/Button/Button.d.ts +1 -1
- package/{dist → src}/components/buttons/Button/button.cva.d.ts +1 -1
- package/{dist → src}/components/buttons/IconButton/IconButton.d.ts +1 -1
- package/{dist → src}/components/buttons/InlineIconButton/InlineIconButton.d.ts +1 -1
- package/{dist → src}/components/buttons/PillButton/PillButton.d.ts +2 -2
- package/{dist → src}/components/buttons/PillButton/pillButton.cva.d.ts +1 -1
- package/{dist → src}/components/buttons/SplitButton/SplitButton.d.ts +2 -2
- package/{dist → src}/components/buttons/TextButton/TextButton.d.ts +3 -3
- package/{dist → src}/components/buttons/ToggleButton/ToggleButton.d.ts +3 -3
- package/{dist → src}/components/buttons/shared/ButtonContent.d.ts +3 -3
- package/{dist → src}/components/inputs/Checkbox/Checkbox.d.ts +3 -3
- package/{dist → src}/components/inputs/Checkbox/CheckboxCheckmark.d.ts +1 -1
- package/{dist → src}/components/inputs/Checkbox/checkbox.cva.d.ts +1 -1
- package/{dist → src}/components/inputs/DateTime/DatePicker/DatePicker.d.ts +3 -3
- package/{dist → src}/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +3 -3
- package/{dist → src}/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +3 -3
- package/{dist → src}/components/inputs/DateTime/TimePicker/TimePicker.d.ts +3 -3
- package/{dist → src}/components/inputs/DateTime/shared/CalendarHeader.d.ts +1 -1
- package/{dist → src}/components/inputs/DateTime/shared/DatePickerInput.d.ts +2 -2
- package/{dist → src}/components/inputs/DateTime/shared/TimePickerInput.d.ts +2 -2
- package/{dist → src}/components/inputs/File/fileUpload.types.d.ts +3 -3
- package/{dist → src}/components/inputs/File/inputUpload.types.d.ts +2 -2
- package/{dist → src}/components/inputs/File/shared/FileCard.d.ts +1 -1
- package/{dist → src}/components/inputs/File/shared/FileCardList.d.ts +1 -1
- package/{dist → src}/components/inputs/File/shared/FileUploadContent.d.ts +1 -1
- package/{dist → src}/components/inputs/File/shared/FileUploadContentEmpty.d.ts +1 -1
- package/{dist → src}/components/inputs/File/shared/FileUploadContentError.d.ts +1 -1
- package/{dist → src}/components/inputs/File/shared/FileUploadContentFilled.d.ts +1 -1
- package/{dist → src}/components/inputs/File/shared/FileUploadContentLoading.d.ts +1 -1
- package/{dist → src}/components/inputs/File/shared/InputUploadContent.d.ts +1 -1
- package/{dist → src}/components/inputs/FormField/FormField.d.ts +3 -3
- package/src/components/inputs/FormField/FormFieldLabel.d.ts +12 -0
- package/{dist → src}/components/inputs/Input/NumberInput/NumberInput.d.ts +4 -4
- package/{dist → src}/components/inputs/Input/PasswordInput/PasswordInput.d.ts +2 -2
- package/{dist → src}/components/inputs/Input/TextArea/TextArea.d.ts +3 -3
- package/{dist → src}/components/inputs/Input/TextInput/TextInput.d.ts +5 -4
- package/{dist → src}/components/inputs/Input/shared/InputContent.d.ts +3 -3
- package/{dist → src}/components/inputs/Inputs/Form.d.ts +2 -2
- package/{dist → src}/components/inputs/Inputs/InputItem.d.ts +16 -16
- package/{dist → src}/components/inputs/RadioGroup/RadioGroup.d.ts +3 -3
- package/{dist → src}/components/inputs/RadioGroup/radio.cva.d.ts +1 -1
- package/{dist → src}/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +3 -3
- package/{dist → src}/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +3 -3
- package/{dist → src}/components/inputs/Selection/Select/Select.d.ts +3 -3
- package/{dist → src}/components/inputs/Selection/shared/SelectBase.d.ts +5 -4
- package/{dist → src}/components/inputs/Selection/shared/SelectDesktop.d.ts +1 -1
- package/{dist → src}/components/inputs/Selection/shared/SelectInput.d.ts +6 -6
- package/src/components/inputs/Selection/shared/SelectInputTags.d.ts +11 -0
- package/src/components/inputs/Selection/shared/SelectListBox.d.ts +9 -0
- package/{dist → src}/components/inputs/Selection/shared/SelectListBoxItem.d.ts +2 -2
- package/{dist → src}/components/inputs/Selection/shared/SelectListBoxItemSelectAll.d.ts +1 -1
- package/{dist → src}/components/inputs/Selection/shared/SelectListBoxLoadingItem.d.ts +1 -1
- package/{dist → src}/components/inputs/Selection/shared/SelectMobile.d.ts +1 -1
- package/{dist → src}/components/inputs/Selection/shared/select.context.d.ts +2 -2
- package/{dist → src}/components/inputs/Selection/shared/select.types.d.ts +9 -1
- package/{dist → src}/components/inputs/Selection/shared/useSelectItems.d.ts +2 -2
- package/{dist → src}/components/inputs/Slider/Slider.d.ts +2 -2
- package/{dist → src}/components/inputs/TextEditor/TextEditor.d.ts +2 -2
- package/{dist → src}/components/inputs/TextEditor/Toolbar/HyperlinkAction.d.ts +1 -1
- package/{dist → src}/components/inputs/TextEditor/Toolbar/TextAlignSelect.d.ts +1 -1
- package/{dist → src}/components/inputs/TextEditor/Toolbar/TextColorSelect.d.ts +1 -1
- package/{dist → src}/components/inputs/TextEditor/Toolbar/TextHighlightSelect.d.ts +1 -1
- package/{dist → src}/components/inputs/TextEditor/Toolbar/TextListActions.d.ts +1 -1
- package/{dist → src}/components/inputs/TextEditor/Toolbar/TextMarksActions.d.ts +1 -1
- package/{dist → src}/components/inputs/TextEditor/Toolbar/TextStyleSelect.d.ts +1 -1
- package/{dist → src}/components/inputs/Toggle/Toggle.d.ts +3 -3
- package/{dist → src}/components/inputs/Toggle/toggle.cva.d.ts +1 -1
- package/{dist → src}/components/inputs/shared/CheckContent.d.ts +1 -1
- package/src/components/inputs/shared/InputClear.d.ts +8 -0
- package/{dist → src}/components/inputs/shared/label.cva.d.ts +1 -1
- package/{dist → src}/components/overlays/ActionModal/ActionModal.d.ts +2 -2
- package/{dist → src}/components/overlays/Modal/Modal.d.ts +1 -1
- package/{dist → src}/components/overlays/Tooltip/Tooltip.d.ts +4 -2
- package/src/components/overlays/Tooltip/tooltip.cva.d.ts +21 -0
- package/{dist → src}/components/segment/segment.types.d.ts +1 -1
- package/{dist → src}/components/shared/pagination/PaginationList.d.ts +1 -1
- package/{dist → src}/components/status/Alert/Alert.d.ts +1 -1
- package/{dist → src}/components/status/Loader/Loader.d.ts +1 -1
- package/{dist → src}/components/status/Toast/Toast.d.ts +1 -1
- package/{dist → src}/components/status/Toast/toast.cva.d.ts +1 -1
- package/{dist → src}/components/table/table.cva.d.ts +7 -3
- package/{dist → src}/components/text/Link/Link.d.ts +1 -1
- package/{dist → src}/components/text/Tag/Tag.d.ts +1 -1
- package/{dist → src}/components/text/Typography/Typography.d.ts +1 -1
- package/{dist → src}/config/confirmation.context.d.ts +1 -1
- package/{dist → src}/config/uiConfig.context.d.ts +10 -8
- package/{dist → src}/config/uiStyle.context.d.ts +15 -14
- package/{dist → src}/helpers/dynamicInputs.d.ts +4 -2
- package/{dist → src}/hooks/useFormAutosave.d.ts +2 -2
- package/{dist → src}/index.d.ts +12 -6
- package/{dist → src}/types/react-query.d.ts +1 -1
- package/src/utils/vendor/acl/AclGuard.d.ts +8 -0
- package/src/utils/vendor/acl/Can.d.ts +9 -0
- package/src/utils/vendor/acl/ability.context.d.ts +15 -0
- package/src/utils/vendor/acl/appAbility.types.d.ts +3 -0
- package/src/utils/vendor/auth/AuthGuard.d.ts +6 -0
- package/src/utils/vendor/auth/auth.context.d.ts +21 -0
- package/src/utils/vendor/auth/withPrivateAuthGuard.d.ts +6 -0
- package/{dist/utils/rest/rest-client.d.ts → src/utils/vendor/rest-client.types.d.ts} +8 -14
- package/{dist → src}/utils/zod.utils.d.ts +2 -1
- package/vite.config.d.ts +2 -0
- package/dist/assets/icons/AlignCenter.js +0 -21
- package/dist/assets/icons/AlignLeft.js +0 -21
- package/dist/assets/icons/AlignLeftRight.js +0 -21
- package/dist/assets/icons/AlignRight.js +0 -21
- package/dist/assets/icons/ArrowDropDown.js +0 -21
- package/dist/assets/icons/ArrowDropUp.js +0 -21
- package/dist/assets/icons/ArrowLeft.js +0 -21
- package/dist/assets/icons/ArrowRight.js +0 -21
- package/dist/assets/icons/Bold.js +0 -21
- package/dist/assets/icons/BulletedList.js +0 -21
- package/dist/assets/icons/Calendar.js +0 -23
- package/dist/assets/icons/Check.js +0 -23
- package/dist/assets/icons/CheckCircle.js +0 -21
- package/dist/assets/icons/CheckboxCheckmark.js +0 -24
- package/dist/assets/icons/CheckboxIndeterminate.js +0 -24
- package/dist/assets/icons/ChevronDown.js +0 -23
- package/dist/assets/icons/ChevronLeft.js +0 -23
- package/dist/assets/icons/ChevronRight.js +0 -23
- package/dist/assets/icons/ChevronUp.js +0 -23
- package/dist/assets/icons/ChevronsLeft.js +0 -34
- package/dist/assets/icons/ChevronsRight.js +0 -34
- package/dist/assets/icons/Clock.js +0 -21
- package/dist/assets/icons/Close.js +0 -21
- package/dist/assets/icons/DateTime.js +0 -25
- package/dist/assets/icons/Drag.js +0 -21
- package/dist/assets/icons/File.js +0 -23
- package/dist/assets/icons/Highlight.js +0 -21
- package/dist/assets/icons/HighlightOn.js +0 -30
- package/dist/assets/icons/Info.js +0 -34
- package/dist/assets/icons/Italic.js +0 -21
- package/dist/assets/icons/Link.js +0 -21
- package/dist/assets/icons/Menu.js +0 -23
- package/dist/assets/icons/NumberedList.js +0 -21
- package/dist/assets/icons/PointerHorizontal.js +0 -21
- package/dist/assets/icons/PointerVertical.js +0 -21
- package/dist/assets/icons/Send.js +0 -23
- package/dist/assets/icons/Strikethrough.js +0 -21
- package/dist/assets/icons/TextColor.js +0 -30
- package/dist/assets/icons/Today.js +0 -21
- package/dist/assets/icons/Underlined.js +0 -23
- package/dist/assets/icons/Upload.js +0 -30
- package/dist/assets/icons/View.js +0 -18
- package/dist/assets/icons/ViewOff.js +0 -18
- package/dist/assets/icons/Warningfilled.js +0 -23
- package/dist/assets/locales/en/translation.json.js +0 -14
- package/dist/assets/locales/sl/translation.json.js +0 -14
- package/dist/components/Menu/Menu.js +0 -14
- package/dist/components/Menu/MenuDesktop.js +0 -68
- package/dist/components/Menu/MenuItem.js +0 -33
- package/dist/components/Menu/MenuMobile.js +0 -78
- package/dist/components/Menu/MenuPopover.js +0 -38
- package/dist/components/buttons/Button/Button.js +0 -68
- package/dist/components/buttons/Button/button.cva.js +0 -672
- package/dist/components/buttons/IconButton/IconButton.js +0 -17
- package/dist/components/buttons/InlineIconButton/InlineIconButton.js +0 -18
- package/dist/components/buttons/PillButton/PillButton.js +0 -44
- package/dist/components/buttons/PillButton/pillButton.cva.js +0 -86
- package/dist/components/buttons/SplitButton/SplitButton.js +0 -62
- package/dist/components/buttons/TextButton/TextButton.js +0 -18
- package/dist/components/buttons/ToggleButton/ToggleButton.js +0 -21
- package/dist/components/buttons/shared/ButtonContent.js +0 -53
- package/dist/components/buttons/shared/buttonContent.cva.js +0 -16
- package/dist/components/inputs/Checkbox/Checkbox.js +0 -81
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +0 -49
- package/dist/components/inputs/Checkbox/checkbox.cva.js +0 -47
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +0 -234
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +0 -668
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +0 -248
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +0 -224
- package/dist/components/inputs/DateTime/shared/Calendar.js +0 -85
- package/dist/components/inputs/DateTime/shared/CalendarCell.js +0 -160
- package/dist/components/inputs/DateTime/shared/CalendarGrid.js +0 -67
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +0 -89
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +0 -203
- package/dist/components/inputs/DateTime/shared/DateField.js +0 -62
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +0 -163
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +0 -54
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +0 -76
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +0 -41
- package/dist/components/inputs/DateTime/shared/MonthPicker.js +0 -82
- package/dist/components/inputs/DateTime/shared/RangeCalendar.js +0 -131
- package/dist/components/inputs/DateTime/shared/TimeField.js +0 -26
- package/dist/components/inputs/DateTime/shared/TimePickerForm.js +0 -186
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +0 -107
- package/dist/components/inputs/DateTime/shared/YearPicker.js +0 -89
- package/dist/components/inputs/File/FileUpload.js +0 -254
- package/dist/components/inputs/File/FileUploadContainer.js +0 -17
- package/dist/components/inputs/File/InputUpload.js +0 -176
- package/dist/components/inputs/File/shared/FileCard.js +0 -67
- package/dist/components/inputs/File/shared/FileCardList.js +0 -20
- package/dist/components/inputs/File/shared/FileProgressBar.js +0 -32
- package/dist/components/inputs/File/shared/FileUploadContent.js +0 -92
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +0 -92
- package/dist/components/inputs/File/shared/FileUploadContentError.js +0 -167
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +0 -176
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +0 -128
- package/dist/components/inputs/File/shared/InputUploadContent.js +0 -68
- package/dist/components/inputs/File/shared/InputUploadFilled.js +0 -31
- package/dist/components/inputs/File/shared/fileUpload.cva.js +0 -57
- package/dist/components/inputs/File/shared/inputUploadButton.cva.js +0 -48
- package/dist/components/inputs/FormField/FormField.js +0 -54
- package/dist/components/inputs/FormField/FormFieldError.js +0 -16
- package/dist/components/inputs/FormField/FormFieldHeader.js +0 -57
- package/dist/components/inputs/FormField/FormFieldHeaderClose.js +0 -20
- package/dist/components/inputs/FormField/FormFieldLabel.d.ts +0 -11
- package/dist/components/inputs/FormField/FormFieldLabel.js +0 -31
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +0 -157
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +0 -26
- package/dist/components/inputs/Input/TextArea/TextArea.js +0 -149
- package/dist/components/inputs/Input/TextInput/TextInput.js +0 -147
- package/dist/components/inputs/Input/shared/InputContent.js +0 -106
- package/dist/components/inputs/Inputs/Form.js +0 -68
- package/dist/components/inputs/Inputs/InputItem.js +0 -63
- package/dist/components/inputs/Inputs/Inputs.js +0 -32
- package/dist/components/inputs/RadioGroup/RadioGroup.js +0 -113
- package/dist/components/inputs/RadioGroup/radio.cva.js +0 -47
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +0 -39
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +0 -25
- package/dist/components/inputs/Selection/Select/Select.js +0 -32
- package/dist/components/inputs/Selection/shared/SelectBase.js +0 -24
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +0 -211
- package/dist/components/inputs/Selection/shared/SelectInput.js +0 -237
- package/dist/components/inputs/Selection/shared/SelectListBox.d.ts +0 -9
- package/dist/components/inputs/Selection/shared/SelectListBox.js +0 -97
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +0 -78
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +0 -45
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +0 -47
- package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +0 -42
- package/dist/components/inputs/Selection/shared/SelectMobile.js +0 -161
- package/dist/components/inputs/Selection/shared/select.context.js +0 -243
- package/dist/components/inputs/Selection/shared/useSelectItems.js +0 -94
- package/dist/components/inputs/Slider/Slider.js +0 -137
- package/dist/components/inputs/TextEditor/TextEditor.js +0 -223
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +0 -34
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +0 -80
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +0 -92
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +0 -56
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +0 -33
- package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +0 -31
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +0 -37
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +0 -51
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +0 -73
- package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +0 -61
- package/dist/components/inputs/TextEditor/textEditor.types.js +0 -40
- package/dist/components/inputs/Toggle/Toggle.js +0 -65
- package/dist/components/inputs/Toggle/toggle.cva.js +0 -44
- package/dist/components/inputs/shared/CheckContent.js +0 -22
- package/dist/components/inputs/shared/InputClear.d.ts +0 -6
- package/dist/components/inputs/shared/InputClear.js +0 -26
- package/dist/components/inputs/shared/input.cva.js +0 -167
- package/dist/components/inputs/shared/label.cva.js +0 -133
- package/dist/components/outline.clsx.js +0 -11
- package/dist/components/overlays/ActionModal/ActionModal.js +0 -80
- package/dist/components/overlays/BottomSheet/BottomSheet.js +0 -256
- package/dist/components/overlays/Drawer/Drawer.js +0 -84
- package/dist/components/overlays/Modal/Modal.js +0 -53
- package/dist/components/overlays/Modal/modal.cva.js +0 -53
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +0 -71
- package/dist/components/overlays/Tooltip/Tooltip.js +0 -44
- package/dist/components/overlays/Tooltip/TooltipEllipsis.js +0 -27
- package/dist/components/segment/Segment.js +0 -113
- package/dist/components/segment/SegmentItem.js +0 -41
- package/dist/components/shared/pagination/Pagination.js +0 -75
- package/dist/components/shared/pagination/PaginationList.js +0 -145
- package/dist/components/shared/pagination/minWidth.cva.js +0 -15
- package/dist/components/status/Alert/Alert.js +0 -41
- package/dist/components/status/Alert/alert.cva.js +0 -64
- package/dist/components/status/Loader/Loader.js +0 -37
- package/dist/components/status/Loader/loader.cva.js +0 -27
- package/dist/components/status/Toast/Toast.js +0 -64
- package/dist/components/status/Toast/toast.cva.js +0 -150
- package/dist/components/status/Toast/useToast.js +0 -83
- package/dist/components/status/shared/status.cva.js +0 -62
- package/dist/components/table/CellText.js +0 -18
- package/dist/components/table/ColumnConfig.js +0 -124
- package/dist/components/table/HeaderText.js +0 -15
- package/dist/components/table/InfiniteTable.js +0 -40
- package/dist/components/table/PaginatedTable.js +0 -33
- package/dist/components/table/Table.js +0 -352
- package/dist/components/table/table.cva.js +0 -37
- package/dist/components/text/Link/Link.js +0 -18
- package/dist/components/text/Link/link.cva.js +0 -18
- package/dist/components/text/Tag/Tag.js +0 -49
- package/dist/components/text/Tag/tag.cva.js +0 -59
- package/dist/components/text/Typography/Typography.js +0 -22
- package/dist/components/text/Typography/typography.cva.js +0 -100
- package/dist/config/confirmation.context.js +0 -107
- package/dist/config/i18n.js +0 -15
- package/dist/config/router.context.js +0 -43
- package/dist/config/uiConfig.context.js +0 -62
- package/dist/config/uiStyle.context.js +0 -16
- package/dist/helpers/dynamicColumns.js +0 -359
- package/dist/helpers/dynamicInputs.js +0 -214
- package/dist/hooks/useAutosave.js +0 -80
- package/dist/hooks/useBreakpoint.js +0 -20
- package/dist/hooks/useDebounceCallback.js +0 -29
- package/dist/hooks/useDeepCompare.js +0 -25
- package/dist/hooks/useFilters.js +0 -120
- package/dist/hooks/useForm.js +0 -22
- package/dist/hooks/useFormAutosave.js +0 -67
- package/dist/hooks/useIntersectionObserver.js +0 -27
- package/dist/hooks/useLocalStorage.js +0 -63
- package/dist/hooks/useLongPressRepeat.js +0 -33
- package/dist/hooks/usePagination.js +0 -35
- package/dist/hooks/useScrollableListBox.js +0 -30
- package/dist/hooks/useSingletonMutation.d.ts +0 -4
- package/dist/hooks/useSingletonMutation.js +0 -27
- package/dist/hooks/useSorting.js +0 -30
- package/dist/hooks/useStateAndRef.js +0 -17
- package/dist/hooks/useTableColumnConfig.js +0 -59
- package/dist/hooks/useTableNav.js +0 -409
- package/dist/hooks/useTranslationMemo.js +0 -14
- package/dist/index.js +0 -280
- package/dist/utils/array.utils.js +0 -12
- package/dist/utils/compoundMapper.js +0 -14
- package/dist/utils/date-time.utils.js +0 -77
- package/dist/utils/date.utils.js +0 -12
- package/dist/utils/dom.utils.js +0 -13
- package/dist/utils/file.utils.js +0 -63
- package/dist/utils/isEqual.js +0 -94
- package/dist/utils/logger.js +0 -19
- package/dist/utils/object.utils.js +0 -53
- package/dist/utils/queries.utils.js +0 -9
- package/dist/utils/rest/interceptors/logging.interceptor.d.ts +0 -2
- package/dist/utils/rest/interceptors/logging.interceptor.js +0 -17
- package/dist/utils/rest/interceptors/response.interceptor.d.ts +0 -2
- package/dist/utils/rest/interceptors/response.interceptor.js +0 -25
- package/dist/utils/rest/interceptors/rest-interceptor.js +0 -21
- package/dist/utils/rest/rest-client.js +0 -62
- package/dist/utils/rest/rest.utils.js +0 -51
- package/dist/utils/routing.utils.js +0 -15
- package/dist/utils/string.utils.js +0 -12
- package/dist/utils/vendor/error-handling.js +0 -119
- package/dist/utils/zod.utils.js +0 -25
- /package/{dist → src}/assets/icons/AlignCenter.d.ts +0 -0
- /package/{dist → src}/assets/icons/AlignLeft.d.ts +0 -0
- /package/{dist → src}/assets/icons/AlignLeftRight.d.ts +0 -0
- /package/{dist → src}/assets/icons/AlignRight.d.ts +0 -0
- /package/{dist → src}/assets/icons/ArrowDropDown.d.ts +0 -0
- /package/{dist → src}/assets/icons/ArrowDropUp.d.ts +0 -0
- /package/{dist → src}/assets/icons/ArrowLeft.d.ts +0 -0
- /package/{dist → src}/assets/icons/ArrowRight.d.ts +0 -0
- /package/{dist → src}/assets/icons/Bold.d.ts +0 -0
- /package/{dist → src}/assets/icons/BulletedList.d.ts +0 -0
- /package/{dist → src}/assets/icons/Calendar.d.ts +0 -0
- /package/{dist → src}/assets/icons/Check.d.ts +0 -0
- /package/{dist → src}/assets/icons/CheckCircle.d.ts +0 -0
- /package/{dist → src}/assets/icons/CheckboxCheckmark.d.ts +0 -0
- /package/{dist → src}/assets/icons/CheckboxIndeterminate.d.ts +0 -0
- /package/{dist → src}/assets/icons/ChevronDown.d.ts +0 -0
- /package/{dist → src}/assets/icons/ChevronLeft.d.ts +0 -0
- /package/{dist → src}/assets/icons/ChevronRight.d.ts +0 -0
- /package/{dist → src}/assets/icons/ChevronUp.d.ts +0 -0
- /package/{dist → src}/assets/icons/ChevronsLeft.d.ts +0 -0
- /package/{dist → src}/assets/icons/ChevronsRight.d.ts +0 -0
- /package/{dist → src}/assets/icons/Clock.d.ts +0 -0
- /package/{dist → src}/assets/icons/Close.d.ts +0 -0
- /package/{dist → src}/assets/icons/DateTime.d.ts +0 -0
- /package/{dist → src}/assets/icons/Drag.d.ts +0 -0
- /package/{dist → src}/assets/icons/File.d.ts +0 -0
- /package/{dist → src}/assets/icons/Highlight.d.ts +0 -0
- /package/{dist → src}/assets/icons/HighlightOn.d.ts +0 -0
- /package/{dist → src}/assets/icons/Info.d.ts +0 -0
- /package/{dist → src}/assets/icons/Italic.d.ts +0 -0
- /package/{dist → src}/assets/icons/Link.d.ts +0 -0
- /package/{dist → src}/assets/icons/Menu.d.ts +0 -0
- /package/{dist → src}/assets/icons/NumberedList.d.ts +0 -0
- /package/{dist → src}/assets/icons/PointerHorizontal.d.ts +0 -0
- /package/{dist → src}/assets/icons/PointerVertical.d.ts +0 -0
- /package/{dist → src}/assets/icons/Send.d.ts +0 -0
- /package/{dist → src}/assets/icons/Strikethrough.d.ts +0 -0
- /package/{dist → src}/assets/icons/TextColor.d.ts +0 -0
- /package/{dist → src}/assets/icons/Today.d.ts +0 -0
- /package/{dist → src}/assets/icons/Underlined.d.ts +0 -0
- /package/{dist → src}/assets/icons/Upload.d.ts +0 -0
- /package/{dist → src}/assets/icons/View.d.ts +0 -0
- /package/{dist → src}/assets/icons/ViewOff.d.ts +0 -0
- /package/{dist/assets/icons/Warningfilled.d.ts → src/assets/icons/WarningFilled.d.ts} +0 -0
- /package/{dist → src}/components/Menu/Menu.d.ts +0 -0
- /package/{dist → src}/components/buttons/shared/buttonContent.cva.d.ts +0 -0
- /package/{dist → src}/components/inputs/DateTime/shared/Calendar.d.ts +0 -0
- /package/{dist → src}/components/inputs/DateTime/shared/CalendarCell.d.ts +0 -0
- /package/{dist → src}/components/inputs/DateTime/shared/CalendarGrid.d.ts +0 -0
- /package/{dist → src}/components/inputs/DateTime/shared/CalendarSelectHeader.d.ts +0 -0
- /package/{dist → src}/components/inputs/DateTime/shared/DateField.d.ts +0 -0
- /package/{dist → src}/components/inputs/DateTime/shared/DateSegmentItem.d.ts +0 -0
- /package/{dist → src}/components/inputs/DateTime/shared/DateTimeDialog.d.ts +0 -0
- /package/{dist → src}/components/inputs/DateTime/shared/DateTimeDialogFooter.d.ts +0 -0
- /package/{dist → src}/components/inputs/DateTime/shared/MonthPicker.d.ts +0 -0
- /package/{dist → src}/components/inputs/DateTime/shared/RangeCalendar.d.ts +0 -0
- /package/{dist → src}/components/inputs/DateTime/shared/TimeField.d.ts +0 -0
- /package/{dist → src}/components/inputs/DateTime/shared/TimePickerForm.d.ts +0 -0
- /package/{dist → src}/components/inputs/DateTime/shared/YearPicker.d.ts +0 -0
- /package/{dist → src}/components/inputs/File/FileUpload.d.ts +0 -0
- /package/{dist → src}/components/inputs/File/FileUploadContainer.d.ts +0 -0
- /package/{dist → src}/components/inputs/File/InputUpload.d.ts +0 -0
- /package/{dist → src}/components/inputs/File/index.d.ts +0 -0
- /package/{dist → src}/components/inputs/File/shared/FileProgressBar.d.ts +0 -0
- /package/{dist → src}/components/inputs/File/shared/InputUploadFilled.d.ts +0 -0
- /package/{dist → src}/components/inputs/File/shared/fileUpload.cva.d.ts +0 -0
- /package/{dist → src}/components/inputs/File/shared/inputUploadButton.cva.d.ts +0 -0
- /package/{dist → src}/components/inputs/FormField/FormFieldError.d.ts +0 -0
- /package/{dist → src}/components/inputs/FormField/FormFieldHeader.d.ts +0 -0
- /package/{dist → src}/components/inputs/FormField/FormFieldHeaderClose.d.ts +0 -0
- /package/{dist → src}/components/inputs/Inputs/Inputs.d.ts +0 -0
- /package/{dist → src}/components/inputs/Selection/shared/SelectListBoxSelectionBar.d.ts +0 -0
- /package/{dist → src}/components/inputs/TextEditor/Toolbar/ColorPicker.d.ts +0 -0
- /package/{dist → src}/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.d.ts +0 -0
- /package/{dist → src}/components/inputs/TextEditor/Toolbar/TextEditorToolbar.d.ts +0 -0
- /package/{dist → src}/components/inputs/TextEditor/textEditor.types.d.ts +0 -0
- /package/{dist → src}/components/inputs/shared/form.types.d.ts +0 -0
- /package/{dist → src}/components/inputs/shared/input.cva.d.ts +0 -0
- /package/{dist → src}/components/outline.clsx.d.ts +0 -0
- /package/{dist → src}/components/overlays/BottomSheet/BottomSheet.d.ts +0 -0
- /package/{dist → src}/components/overlays/Drawer/Drawer.d.ts +0 -0
- /package/{dist → src}/components/overlays/Modal/modal.cva.d.ts +0 -0
- /package/{dist → src}/components/overlays/ResponsivePopover/ResponsivePopover.d.ts +0 -0
- /package/{dist → src}/components/overlays/Tooltip/TooltipEllipsis.d.ts +0 -0
- /package/{dist → src}/components/segment/Segment.d.ts +0 -0
- /package/{dist → src}/components/segment/SegmentItem.d.ts +0 -0
- /package/{dist → src}/components/shared/pagination/Pagination.d.ts +0 -0
- /package/{dist → src}/components/shared/pagination/minWidth.cva.d.ts +0 -0
- /package/{dist → src}/components/status/Alert/alert.cva.d.ts +0 -0
- /package/{dist → src}/components/status/Loader/loader.cva.d.ts +0 -0
- /package/{dist → src}/components/status/Toast/useToast.d.ts +0 -0
- /package/{dist → src}/components/status/shared/status.cva.d.ts +0 -0
- /package/{dist → src}/components/table/CellText.d.ts +0 -0
- /package/{dist → src}/components/table/ColumnConfig.d.ts +0 -0
- /package/{dist → src}/components/table/HeaderText.d.ts +0 -0
- /package/{dist → src}/components/table/InfiniteTable.d.ts +0 -0
- /package/{dist → src}/components/table/PaginatedTable.d.ts +0 -0
- /package/{dist → src}/components/table/Table.d.ts +0 -0
- /package/{dist → src}/components/text/Link/link.cva.d.ts +0 -0
- /package/{dist → src}/components/text/Tag/tag.cva.d.ts +0 -0
- /package/{dist → src}/components/text/Typography/typography.cva.d.ts +0 -0
- /package/{dist → src}/config/i18n.d.ts +0 -0
- /package/{dist → src}/config/router.context.d.ts +0 -0
- /package/{dist → src}/helpers/dynamicColumns.d.ts +0 -0
- /package/{dist → src}/hooks/useAutosave.d.ts +0 -0
- /package/{dist → src}/hooks/useBreakpoint.d.ts +0 -0
- /package/{dist → src}/hooks/useDebounceCallback.d.ts +0 -0
- /package/{dist → src}/hooks/useDeepCompare.d.ts +0 -0
- /package/{dist → src}/hooks/useFilters.d.ts +0 -0
- /package/{dist → src}/hooks/useForm.d.ts +0 -0
- /package/{dist → src}/hooks/useIntersectionObserver.d.ts +0 -0
- /package/{dist → src}/hooks/useLocalStorage.d.ts +0 -0
- /package/{dist → src}/hooks/useLongPressRepeat.d.ts +0 -0
- /package/{dist → src}/hooks/usePagination.d.ts +0 -0
- /package/{dist → src}/hooks/useScrollableListBox.d.ts +0 -0
- /package/{dist → src}/hooks/useSorting.d.ts +0 -0
- /package/{dist → src}/hooks/useStateAndRef.d.ts +0 -0
- /package/{dist → src}/hooks/useTableColumnConfig.d.ts +0 -0
- /package/{dist → src}/hooks/useTableNav.d.ts +0 -0
- /package/{dist → src}/hooks/useTranslationMemo.d.ts +0 -0
- /package/{dist → src}/types/common.d.ts +0 -0
- /package/{dist → src}/utils/array.utils.d.ts +0 -0
- /package/{dist → src}/utils/array.utils.spec.d.ts +0 -0
- /package/{dist → src}/utils/compoundMapper.d.ts +0 -0
- /package/{dist → src}/utils/compoundMapper.spec.d.ts +0 -0
- /package/{dist → src}/utils/date-time.utils.d.ts +0 -0
- /package/{dist → src}/utils/date-time.utils.spec.d.ts +0 -0
- /package/{dist → src}/utils/date.utils.d.ts +0 -0
- /package/{dist → src}/utils/date.utils.spec.d.ts +0 -0
- /package/{dist → src}/utils/dom.utils.d.ts +0 -0
- /package/{dist → src}/utils/file.utils.d.ts +0 -0
- /package/{dist → src}/utils/isEqual.d.ts +0 -0
- /package/{dist → src}/utils/logger.d.ts +0 -0
- /package/{dist → src}/utils/object.utils.d.ts +0 -0
- /package/{dist → src}/utils/queries.utils.d.ts +0 -0
- /package/{dist/utils/rest → src/utils}/rest.utils.d.ts +0 -0
- /package/{dist → src}/utils/routing.utils.d.ts +0 -0
- /package/{dist → src}/utils/string.utils.d.ts +0 -0
- /package/{dist → src}/utils/vendor/error-handling.d.ts +0 -0
- /package/{dist/utils/rest/interceptors → src/utils/vendor}/rest-interceptor.d.ts +0 -0
- /package/{dist/styles → styles}/editor.css +0 -0
- /package/{dist/styles → styles}/index.css +0 -0
package/dist/index.js
DELETED
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
import { AlignCenterIcon } from "./assets/icons/AlignCenter.js";
|
|
2
|
-
import { AlignLeftIcon } from "./assets/icons/AlignLeft.js";
|
|
3
|
-
import { AlignLeftRightIcon } from "./assets/icons/AlignLeftRight.js";
|
|
4
|
-
import { AlignRightIcon } from "./assets/icons/AlignRight.js";
|
|
5
|
-
import { ArrowDropDownIcon } from "./assets/icons/ArrowDropDown.js";
|
|
6
|
-
import { ArrowDropUpIcon } from "./assets/icons/ArrowDropUp.js";
|
|
7
|
-
import { ArrowLeftIcon } from "./assets/icons/ArrowLeft.js";
|
|
8
|
-
import { ArrowRightIcon } from "./assets/icons/ArrowRight.js";
|
|
9
|
-
import { BoldIcon } from "./assets/icons/Bold.js";
|
|
10
|
-
import { BulletedListIcon } from "./assets/icons/BulletedList.js";
|
|
11
|
-
import { CalendarIcon } from "./assets/icons/Calendar.js";
|
|
12
|
-
import { CheckIcon } from "./assets/icons/Check.js";
|
|
13
|
-
import { CheckboxCheckmarkIcon } from "./assets/icons/CheckboxCheckmark.js";
|
|
14
|
-
import { CheckboxIndeterminateIcon } from "./assets/icons/CheckboxIndeterminate.js";
|
|
15
|
-
import { ChevronDownIcon } from "./assets/icons/ChevronDown.js";
|
|
16
|
-
import { ChevronLeftIcon } from "./assets/icons/ChevronLeft.js";
|
|
17
|
-
import { ChevronRightIcon } from "./assets/icons/ChevronRight.js";
|
|
18
|
-
import { ChevronsLeftIcon } from "./assets/icons/ChevronsLeft.js";
|
|
19
|
-
import { ChevronsRightIcon } from "./assets/icons/ChevronsRight.js";
|
|
20
|
-
import { ChevronUpIcon } from "./assets/icons/ChevronUp.js";
|
|
21
|
-
import { ClockIcon } from "./assets/icons/Clock.js";
|
|
22
|
-
import { CloseIcon } from "./assets/icons/Close.js";
|
|
23
|
-
import { DateTimeIcon } from "./assets/icons/DateTime.js";
|
|
24
|
-
import { HighlightIcon } from "./assets/icons/Highlight.js";
|
|
25
|
-
import { HighlightOnIcon } from "./assets/icons/HighlightOn.js";
|
|
26
|
-
import { InfoIcon } from "./assets/icons/Info.js";
|
|
27
|
-
import { ItalicIcon } from "./assets/icons/Italic.js";
|
|
28
|
-
import { LinkIcon } from "./assets/icons/Link.js";
|
|
29
|
-
import { MenuIcon } from "./assets/icons/Menu.js";
|
|
30
|
-
import { NumberedListIcon } from "./assets/icons/NumberedList.js";
|
|
31
|
-
import { PointerHorizontalIcon } from "./assets/icons/PointerHorizontal.js";
|
|
32
|
-
import { PointerVerticalIcon } from "./assets/icons/PointerVertical.js";
|
|
33
|
-
import { SendIcon } from "./assets/icons/Send.js";
|
|
34
|
-
import { StrikethroughIcon } from "./assets/icons/Strikethrough.js";
|
|
35
|
-
import { TextColorIcon } from "./assets/icons/TextColor.js";
|
|
36
|
-
import { UnderlinedIcon } from "./assets/icons/Underlined.js";
|
|
37
|
-
import { ViewIcon } from "./assets/icons/View.js";
|
|
38
|
-
import { ViewOffIcon } from "./assets/icons/ViewOff.js";
|
|
39
|
-
import { Button } from "./components/buttons/Button/Button.js";
|
|
40
|
-
import { IconButton } from "./components/buttons/IconButton/IconButton.js";
|
|
41
|
-
import { InlineIconButton } from "./components/buttons/InlineIconButton/InlineIconButton.js";
|
|
42
|
-
import { PillButton } from "./components/buttons/PillButton/PillButton.js";
|
|
43
|
-
import { SplitButton } from "./components/buttons/SplitButton/SplitButton.js";
|
|
44
|
-
import { TextButton } from "./components/buttons/TextButton/TextButton.js";
|
|
45
|
-
import { ToggleButton } from "./components/buttons/ToggleButton/ToggleButton.js";
|
|
46
|
-
import { Checkbox } from "./components/inputs/Checkbox/Checkbox.js";
|
|
47
|
-
import { DatePicker } from "./components/inputs/DateTime/DatePicker/DatePicker.js";
|
|
48
|
-
import { DateRangePicker } from "./components/inputs/DateTime/DateRangePicker/DateRangePicker.js";
|
|
49
|
-
import { DateTimePicker } from "./components/inputs/DateTime/DateTimePicker/DateTimePicker.js";
|
|
50
|
-
import { TimePicker } from "./components/inputs/DateTime/TimePicker/TimePicker.js";
|
|
51
|
-
import { FileUpload } from "./components/inputs/File/FileUpload.js";
|
|
52
|
-
import { FileUploadContainer } from "./components/inputs/File/FileUploadContainer.js";
|
|
53
|
-
import { InputUpload } from "./components/inputs/File/InputUpload.js";
|
|
54
|
-
import { FormField } from "./components/inputs/FormField/FormField.js";
|
|
55
|
-
import { NumberInput } from "./components/inputs/Input/NumberInput/NumberInput.js";
|
|
56
|
-
import { PasswordInput } from "./components/inputs/Input/PasswordInput/PasswordInput.js";
|
|
57
|
-
import { TextArea } from "./components/inputs/Input/TextArea/TextArea.js";
|
|
58
|
-
import { TextInput } from "./components/inputs/Input/TextInput/TextInput.js";
|
|
59
|
-
import { Form } from "./components/inputs/Inputs/Form.js";
|
|
60
|
-
import { Inputs } from "./components/inputs/Inputs/Inputs.js";
|
|
61
|
-
import { RadioGroup } from "./components/inputs/RadioGroup/RadioGroup.js";
|
|
62
|
-
import { Autocomplete } from "./components/inputs/Selection/Autocomplete/Autocomplete.js";
|
|
63
|
-
import { QueryAutocomplete } from "./components/inputs/Selection/Autocomplete/QueryAutocomplete.js";
|
|
64
|
-
import { Select } from "./components/inputs/Selection/Select/Select.js";
|
|
65
|
-
import { Slider } from "./components/inputs/Slider/Slider.js";
|
|
66
|
-
import { TextEditor } from "./components/inputs/TextEditor/TextEditor.js";
|
|
67
|
-
import { Toggle } from "./components/inputs/Toggle/Toggle.js";
|
|
68
|
-
import { Menu } from "./components/Menu/Menu.js";
|
|
69
|
-
import { MenuPopover } from "./components/Menu/MenuPopover.js";
|
|
70
|
-
import { uiOutlineClass } from "./components/outline.clsx.js";
|
|
71
|
-
import { ActionModal } from "./components/overlays/ActionModal/ActionModal.js";
|
|
72
|
-
import { BottomSheet } from "./components/overlays/BottomSheet/BottomSheet.js";
|
|
73
|
-
import { Drawer } from "./components/overlays/Drawer/Drawer.js";
|
|
74
|
-
import { Modal } from "./components/overlays/Modal/Modal.js";
|
|
75
|
-
import { ResponsivePopover } from "./components/overlays/ResponsivePopover/ResponsivePopover.js";
|
|
76
|
-
import { Tooltip } from "./components/overlays/Tooltip/Tooltip.js";
|
|
77
|
-
import { TooltipEllipsis } from "./components/overlays/Tooltip/TooltipEllipsis.js";
|
|
78
|
-
import { Segment } from "./components/segment/Segment.js";
|
|
79
|
-
import { Pagination } from "./components/shared/pagination/Pagination.js";
|
|
80
|
-
import { PaginationList } from "./components/shared/pagination/PaginationList.js";
|
|
81
|
-
import { Alert } from "./components/status/Alert/Alert.js";
|
|
82
|
-
import { Loader } from "./components/status/Loader/Loader.js";
|
|
83
|
-
import { Toast, ToastContainer } from "./components/status/Toast/Toast.js";
|
|
84
|
-
import { useToast } from "./components/status/Toast/useToast.js";
|
|
85
|
-
import { CellText } from "./components/table/CellText.js";
|
|
86
|
-
import { ColumnConfigModal } from "./components/table/ColumnConfig.js";
|
|
87
|
-
import { HeaderText } from "./components/table/HeaderText.js";
|
|
88
|
-
import { InfiniteTable } from "./components/table/InfiniteTable.js";
|
|
89
|
-
import { PaginatedTable } from "./components/table/PaginatedTable.js";
|
|
90
|
-
import { Table } from "./components/table/Table.js";
|
|
91
|
-
import { Link } from "./components/text/Link/Link.js";
|
|
92
|
-
import { Tag } from "./components/text/Tag/Tag.js";
|
|
93
|
-
import { Typography } from "./components/text/Typography/Typography.js";
|
|
94
|
-
import { Confirmation } from "./config/confirmation.context.js";
|
|
95
|
-
import { ns, resources } from "./config/i18n.js";
|
|
96
|
-
import { UIRouter } from "./config/router.context.js";
|
|
97
|
-
import { UIConfig } from "./config/uiConfig.context.js";
|
|
98
|
-
import { UIStyle } from "./config/uiStyle.context.js";
|
|
99
|
-
import { dynamicColumns } from "./helpers/dynamicColumns.js";
|
|
100
|
-
import { dynamicInputs } from "./helpers/dynamicInputs.js";
|
|
101
|
-
import { useAutosave } from "./hooks/useAutosave.js";
|
|
102
|
-
import { useBreakpoint } from "./hooks/useBreakpoint.js";
|
|
103
|
-
import { useDebounceCallback } from "./hooks/useDebounceCallback.js";
|
|
104
|
-
import { useDeepCompareEffect, useDeepCompareLayoutEffect, useDeepCompareMemo } from "./hooks/useDeepCompare.js";
|
|
105
|
-
import { useFilters } from "./hooks/useFilters.js";
|
|
106
|
-
import { useForm } from "./hooks/useForm.js";
|
|
107
|
-
import { useFormAutosave } from "./hooks/useFormAutosave.js";
|
|
108
|
-
import { useIntersectionObserver } from "./hooks/useIntersectionObserver.js";
|
|
109
|
-
import { useLocalStorage } from "./hooks/useLocalStorage.js";
|
|
110
|
-
import { useLongPressRepeat } from "./hooks/useLongPressRepeat.js";
|
|
111
|
-
import { usePagination } from "./hooks/usePagination.js";
|
|
112
|
-
import { useScrollableListBox } from "./hooks/useScrollableListBox.js";
|
|
113
|
-
import { useSingletonMutation } from "./hooks/useSingletonMutation.js";
|
|
114
|
-
import { useSorting } from "./hooks/useSorting.js";
|
|
115
|
-
import { useStateAndRef } from "./hooks/useStateAndRef.js";
|
|
116
|
-
import { useTableColumnConfig } from "./hooks/useTableColumnConfig.js";
|
|
117
|
-
import { useTableNav } from "./hooks/useTableNav.js";
|
|
118
|
-
import { useTranslationMemo } from "./hooks/useTranslationMemo.js";
|
|
119
|
-
import { ArrayUtils } from "./utils/array.utils.js";
|
|
120
|
-
import { compoundMapper } from "./utils/compoundMapper.js";
|
|
121
|
-
import { DateUtils } from "./utils/date.utils.js";
|
|
122
|
-
import { DateTimeUtils } from "./utils/date-time.utils.js";
|
|
123
|
-
import { DomUtils } from "./utils/dom.utils.js";
|
|
124
|
-
import { FileUtils } from "./utils/file.utils.js";
|
|
125
|
-
import { isEqual } from "./utils/isEqual.js";
|
|
126
|
-
import { logger } from "./utils/logger.js";
|
|
127
|
-
import { ObjectUtils } from "./utils/object.utils.js";
|
|
128
|
-
import { QueriesUtils } from "./utils/queries.utils.js";
|
|
129
|
-
import { LoggingInterceptor } from "./utils/rest/interceptors/logging.interceptor.js";
|
|
130
|
-
import { ResponseInterceptor } from "./utils/rest/interceptors/response.interceptor.js";
|
|
131
|
-
import { RestInterceptor } from "./utils/rest/interceptors/rest-interceptor.js";
|
|
132
|
-
import { RestUtils } from "./utils/rest/rest.utils.js";
|
|
133
|
-
import { RestClient } from "./utils/rest/rest-client.js";
|
|
134
|
-
import { RoutingUtils } from "./utils/routing.utils.js";
|
|
135
|
-
import { StringUtils } from "./utils/string.utils.js";
|
|
136
|
-
import { ApplicationException, ErrorHandler, SharedErrorHandler } from "./utils/vendor/error-handling.js";
|
|
137
|
-
export {
|
|
138
|
-
ActionModal,
|
|
139
|
-
Alert,
|
|
140
|
-
AlignCenterIcon,
|
|
141
|
-
AlignLeftIcon,
|
|
142
|
-
AlignLeftRightIcon,
|
|
143
|
-
AlignRightIcon,
|
|
144
|
-
ApplicationException,
|
|
145
|
-
ArrayUtils,
|
|
146
|
-
ArrowDropDownIcon,
|
|
147
|
-
ArrowDropUpIcon,
|
|
148
|
-
ArrowLeftIcon,
|
|
149
|
-
ArrowRightIcon,
|
|
150
|
-
Autocomplete,
|
|
151
|
-
BoldIcon,
|
|
152
|
-
BottomSheet,
|
|
153
|
-
BulletedListIcon,
|
|
154
|
-
Button,
|
|
155
|
-
CalendarIcon,
|
|
156
|
-
CellText,
|
|
157
|
-
CheckIcon,
|
|
158
|
-
Checkbox,
|
|
159
|
-
CheckboxCheckmarkIcon,
|
|
160
|
-
CheckboxIndeterminateIcon,
|
|
161
|
-
ChevronDownIcon,
|
|
162
|
-
ChevronLeftIcon,
|
|
163
|
-
ChevronRightIcon,
|
|
164
|
-
ChevronUpIcon,
|
|
165
|
-
ChevronsLeftIcon,
|
|
166
|
-
ChevronsRightIcon,
|
|
167
|
-
ClockIcon,
|
|
168
|
-
CloseIcon,
|
|
169
|
-
ColumnConfigModal,
|
|
170
|
-
Confirmation,
|
|
171
|
-
DatePicker,
|
|
172
|
-
DateRangePicker,
|
|
173
|
-
DateTimeIcon,
|
|
174
|
-
DateTimePicker,
|
|
175
|
-
DateTimeUtils,
|
|
176
|
-
DateUtils,
|
|
177
|
-
DomUtils,
|
|
178
|
-
Drawer,
|
|
179
|
-
ErrorHandler,
|
|
180
|
-
FileUpload,
|
|
181
|
-
FileUploadContainer,
|
|
182
|
-
FileUtils,
|
|
183
|
-
Form,
|
|
184
|
-
FormField,
|
|
185
|
-
HeaderText,
|
|
186
|
-
HighlightIcon,
|
|
187
|
-
HighlightOnIcon,
|
|
188
|
-
IconButton,
|
|
189
|
-
InfiniteTable,
|
|
190
|
-
InfoIcon,
|
|
191
|
-
InlineIconButton,
|
|
192
|
-
InputUpload,
|
|
193
|
-
Inputs,
|
|
194
|
-
ItalicIcon,
|
|
195
|
-
Link,
|
|
196
|
-
LinkIcon,
|
|
197
|
-
Loader,
|
|
198
|
-
LoggingInterceptor,
|
|
199
|
-
Menu,
|
|
200
|
-
MenuIcon,
|
|
201
|
-
MenuPopover,
|
|
202
|
-
Modal,
|
|
203
|
-
NumberInput,
|
|
204
|
-
NumberedListIcon,
|
|
205
|
-
ObjectUtils,
|
|
206
|
-
PaginatedTable,
|
|
207
|
-
Pagination,
|
|
208
|
-
PaginationList,
|
|
209
|
-
PasswordInput,
|
|
210
|
-
PillButton,
|
|
211
|
-
PointerHorizontalIcon,
|
|
212
|
-
PointerVerticalIcon,
|
|
213
|
-
QueriesUtils,
|
|
214
|
-
QueryAutocomplete,
|
|
215
|
-
RadioGroup,
|
|
216
|
-
ResponseInterceptor,
|
|
217
|
-
ResponsivePopover,
|
|
218
|
-
RestClient,
|
|
219
|
-
RestInterceptor,
|
|
220
|
-
RestUtils,
|
|
221
|
-
RoutingUtils,
|
|
222
|
-
Segment,
|
|
223
|
-
Select,
|
|
224
|
-
SendIcon,
|
|
225
|
-
SharedErrorHandler,
|
|
226
|
-
Slider,
|
|
227
|
-
SplitButton,
|
|
228
|
-
StrikethroughIcon,
|
|
229
|
-
StringUtils,
|
|
230
|
-
Table,
|
|
231
|
-
Tag,
|
|
232
|
-
TextArea,
|
|
233
|
-
TextButton,
|
|
234
|
-
TextColorIcon,
|
|
235
|
-
TextEditor,
|
|
236
|
-
TextInput,
|
|
237
|
-
TimePicker,
|
|
238
|
-
Toast,
|
|
239
|
-
ToastContainer,
|
|
240
|
-
Toggle,
|
|
241
|
-
ToggleButton,
|
|
242
|
-
Tooltip,
|
|
243
|
-
TooltipEllipsis,
|
|
244
|
-
Typography,
|
|
245
|
-
UIConfig,
|
|
246
|
-
UIRouter,
|
|
247
|
-
UIStyle,
|
|
248
|
-
UnderlinedIcon,
|
|
249
|
-
ViewIcon,
|
|
250
|
-
ViewOffIcon,
|
|
251
|
-
compoundMapper,
|
|
252
|
-
dynamicColumns,
|
|
253
|
-
dynamicInputs,
|
|
254
|
-
isEqual,
|
|
255
|
-
logger,
|
|
256
|
-
ns,
|
|
257
|
-
resources,
|
|
258
|
-
uiOutlineClass,
|
|
259
|
-
useAutosave,
|
|
260
|
-
useBreakpoint,
|
|
261
|
-
useDebounceCallback,
|
|
262
|
-
useDeepCompareEffect,
|
|
263
|
-
useDeepCompareLayoutEffect,
|
|
264
|
-
useDeepCompareMemo,
|
|
265
|
-
useFilters,
|
|
266
|
-
useForm,
|
|
267
|
-
useFormAutosave,
|
|
268
|
-
useIntersectionObserver,
|
|
269
|
-
useLocalStorage,
|
|
270
|
-
useLongPressRepeat,
|
|
271
|
-
usePagination,
|
|
272
|
-
useScrollableListBox,
|
|
273
|
-
useSingletonMutation,
|
|
274
|
-
useSorting,
|
|
275
|
-
useStateAndRef,
|
|
276
|
-
useTableColumnConfig,
|
|
277
|
-
useTableNav,
|
|
278
|
-
useToast,
|
|
279
|
-
useTranslationMemo
|
|
280
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const compoundMapper = (config) => {
|
|
2
|
-
return (props) => {
|
|
3
|
-
const variant = config.compoundVariants?.find((v) => {
|
|
4
|
-
return Object.entries(v).filter(([key]) => key !== "value").every(([key, value]) => {
|
|
5
|
-
const prop = props[key] || config.defaultVariants?.[key];
|
|
6
|
-
return Array.isArray(value) ? value.includes(prop) : prop === value;
|
|
7
|
-
});
|
|
8
|
-
});
|
|
9
|
-
return variant?.value ?? config.default;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export {
|
|
13
|
-
compoundMapper
|
|
14
|
-
};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { parseAbsoluteToLocal, getLocalTimeZone, fromDate, CalendarDate, parseAbsolute, CalendarDateTime } from "@internationalized/date";
|
|
2
|
-
import { DateTime } from "luxon";
|
|
3
|
-
var DateTimeUtils;
|
|
4
|
-
((DateTimeUtils2) => {
|
|
5
|
-
function fromISOtoZonedDateTime(isoString) {
|
|
6
|
-
return parseAbsoluteToLocal(isoString);
|
|
7
|
-
}
|
|
8
|
-
DateTimeUtils2.fromISOtoZonedDateTime = fromISOtoZonedDateTime;
|
|
9
|
-
function fromDateValueToISO(dateValue) {
|
|
10
|
-
return dateValue.toDate(getLocalTimeZone()).toISOString();
|
|
11
|
-
}
|
|
12
|
-
DateTimeUtils2.fromDateValueToISO = fromDateValueToISO;
|
|
13
|
-
function fromLocalToZonedDateTime(date) {
|
|
14
|
-
return fromDate(date, getLocalTimeZone());
|
|
15
|
-
}
|
|
16
|
-
DateTimeUtils2.fromLocalToZonedDateTime = fromLocalToZonedDateTime;
|
|
17
|
-
function fromDateValueToLocal(dateValue) {
|
|
18
|
-
return dateValue.toDate(getLocalTimeZone());
|
|
19
|
-
}
|
|
20
|
-
DateTimeUtils2.fromDateValueToLocal = fromDateValueToLocal;
|
|
21
|
-
function fromCalendarDateToUTCISO(calendarDate, options = {}) {
|
|
22
|
-
const date = DateTime.fromObject(
|
|
23
|
-
{
|
|
24
|
-
year: calendarDate.year,
|
|
25
|
-
month: calendarDate.month,
|
|
26
|
-
day: calendarDate.day
|
|
27
|
-
},
|
|
28
|
-
{ zone: "utc" }
|
|
29
|
-
);
|
|
30
|
-
if (options.endOfDay) {
|
|
31
|
-
return date.endOf("day").toUTC().toISO() ?? calendarDate.toString();
|
|
32
|
-
}
|
|
33
|
-
return date.toUTC().toISO() ?? calendarDate.toString();
|
|
34
|
-
}
|
|
35
|
-
DateTimeUtils2.fromCalendarDateToUTCISO = fromCalendarDateToUTCISO;
|
|
36
|
-
function fromUTCISOToCalendarDate(isoString) {
|
|
37
|
-
const date = new Date(isoString);
|
|
38
|
-
return new CalendarDate(date.getUTCFullYear(), date.getUTCMonth() + 1, date.getUTCDate());
|
|
39
|
-
}
|
|
40
|
-
DateTimeUtils2.fromUTCISOToCalendarDate = fromUTCISOToCalendarDate;
|
|
41
|
-
function fromCalendarDateTimeToUTCISO(calendarDateTime) {
|
|
42
|
-
return calendarDateTime.toDate("UTC").toISOString();
|
|
43
|
-
}
|
|
44
|
-
DateTimeUtils2.fromCalendarDateTimeToUTCISO = fromCalendarDateTimeToUTCISO;
|
|
45
|
-
function fromUTCISOToCalendarDateTime(isoString) {
|
|
46
|
-
const zonedDateTime = parseAbsolute(isoString, "UTC");
|
|
47
|
-
return new CalendarDateTime(
|
|
48
|
-
zonedDateTime.year,
|
|
49
|
-
zonedDateTime.month,
|
|
50
|
-
zonedDateTime.day,
|
|
51
|
-
zonedDateTime.hour,
|
|
52
|
-
zonedDateTime.minute,
|
|
53
|
-
zonedDateTime.second,
|
|
54
|
-
zonedDateTime.millisecond
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
DateTimeUtils2.fromUTCISOToCalendarDateTime = fromUTCISOToCalendarDateTime;
|
|
58
|
-
function formatTextDateToCalendarDateTime(textDate) {
|
|
59
|
-
if (!textDate?.includes("hh")) {
|
|
60
|
-
return null;
|
|
61
|
-
}
|
|
62
|
-
const datePart = textDate.split(",").at(0)?.trim();
|
|
63
|
-
if (!datePart) {
|
|
64
|
-
return null;
|
|
65
|
-
}
|
|
66
|
-
const date = new Date(datePart);
|
|
67
|
-
if (!date || date.toString() === "Invalid Date") {
|
|
68
|
-
return null;
|
|
69
|
-
}
|
|
70
|
-
const zonedDateTime = fromDate(date, getLocalTimeZone());
|
|
71
|
-
return new CalendarDateTime(zonedDateTime.year, zonedDateTime.month, zonedDateTime.day, 0, 0, 0, 0);
|
|
72
|
-
}
|
|
73
|
-
DateTimeUtils2.formatTextDateToCalendarDateTime = formatTextDateToCalendarDateTime;
|
|
74
|
-
})(DateTimeUtils || (DateTimeUtils = {}));
|
|
75
|
-
export {
|
|
76
|
-
DateTimeUtils
|
|
77
|
-
};
|
package/dist/utils/date.utils.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { DateTime } from "luxon";
|
|
2
|
-
var DateUtils;
|
|
3
|
-
((DateUtils2) => {
|
|
4
|
-
const DATE_FORMAT = "dd/MM/yyyy";
|
|
5
|
-
function formatDate(date, format = DATE_FORMAT) {
|
|
6
|
-
return DateTime.fromJSDate(date).toFormat(format);
|
|
7
|
-
}
|
|
8
|
-
DateUtils2.formatDate = formatDate;
|
|
9
|
-
})(DateUtils || (DateUtils = {}));
|
|
10
|
-
export {
|
|
11
|
-
DateUtils
|
|
12
|
-
};
|
package/dist/utils/dom.utils.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
var DomUtils;
|
|
2
|
-
((DomUtils2) => {
|
|
3
|
-
const KEYBOARD_INPUTS = ["button", "submit", "checkbox", "file", "image"];
|
|
4
|
-
DomUtils2.isKeyboardInput = (elem) => {
|
|
5
|
-
return elem.tagName === "INPUT" && !KEYBOARD_INPUTS.includes(elem.type) || elem.hasAttribute("contenteditable");
|
|
6
|
-
};
|
|
7
|
-
DomUtils2.isKeyboardEvent = (event) => {
|
|
8
|
-
return event.nativeEvent instanceof KeyboardEvent;
|
|
9
|
-
};
|
|
10
|
-
})(DomUtils || (DomUtils = {}));
|
|
11
|
-
export {
|
|
12
|
-
DomUtils
|
|
13
|
-
};
|
package/dist/utils/file.utils.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { RestUtils } from "./rest/rest.utils.js";
|
|
2
|
-
var FileUtils;
|
|
3
|
-
((FileUtils2) => {
|
|
4
|
-
FileUtils2.getObjectUrl = (data, revokeTimeoutMs = 4e4) => {
|
|
5
|
-
const url = URL.createObjectURL(data instanceof Blob ? data : data.data);
|
|
6
|
-
setTimeout(() => URL.revokeObjectURL(url), revokeTimeoutMs);
|
|
7
|
-
return url;
|
|
8
|
-
};
|
|
9
|
-
FileUtils2.openFile = (data, target = "_blank", revokeTimeoutMs) => {
|
|
10
|
-
const url = (0, FileUtils2.getObjectUrl)(data, revokeTimeoutMs);
|
|
11
|
-
window.open(url, target);
|
|
12
|
-
};
|
|
13
|
-
FileUtils2.downloadFile = (data, fileName, revokeTimeoutMs) => {
|
|
14
|
-
const url = (0, FileUtils2.getObjectUrl)(data, revokeTimeoutMs);
|
|
15
|
-
const contentDispositionFileName = data instanceof Blob ? void 0 : RestUtils.extractContentDispositionFilename(data.headers);
|
|
16
|
-
const a = document.createElement("a");
|
|
17
|
-
a.download = fileName ?? contentDispositionFileName ?? "download";
|
|
18
|
-
a.rel = "noopener";
|
|
19
|
-
a.href = url;
|
|
20
|
-
setTimeout(() => a.dispatchEvent(new MouseEvent("click")));
|
|
21
|
-
};
|
|
22
|
-
FileUtils2.isFileTypeAccepted = (file, fileTypes) => {
|
|
23
|
-
if (!fileTypes || fileTypes.length === 0) {
|
|
24
|
-
return true;
|
|
25
|
-
}
|
|
26
|
-
return fileTypes.some((type) => {
|
|
27
|
-
if (type.includes("/")) {
|
|
28
|
-
return file.type === type || type.endsWith("/*") && file.type.startsWith(type.slice(0, -1));
|
|
29
|
-
}
|
|
30
|
-
return file.name.toLowerCase().endsWith(type.toLowerCase());
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
FileUtils2.getCalculatedFileSize = (file) => {
|
|
34
|
-
if (!file) {
|
|
35
|
-
return "";
|
|
36
|
-
}
|
|
37
|
-
if (file.size < 1024) {
|
|
38
|
-
return `${file.size} B`;
|
|
39
|
-
}
|
|
40
|
-
if (file.size < 1024 * 1024) {
|
|
41
|
-
return `${(file.size / 1024).toFixed(2)} KB`;
|
|
42
|
-
}
|
|
43
|
-
if (file.size < 1024 * 1024 * 1024) {
|
|
44
|
-
return `${(file.size / 1024 / 1024).toFixed(2)} MB`;
|
|
45
|
-
}
|
|
46
|
-
return `${(file.size / 1024 / 1024 / 1024).toFixed(2)} GB`;
|
|
47
|
-
};
|
|
48
|
-
FileUtils2.formatBytes = (size, decimals = 2) => {
|
|
49
|
-
if (size < 1024) {
|
|
50
|
-
return `${size} B`;
|
|
51
|
-
}
|
|
52
|
-
if (size < 1024 * 1024) {
|
|
53
|
-
return `${(size / 1024).toFixed(decimals)} KB`;
|
|
54
|
-
}
|
|
55
|
-
if (size < 1024 * 1024 * 1024) {
|
|
56
|
-
return `${(size / 1024 / 1024).toFixed(decimals)} MB`;
|
|
57
|
-
}
|
|
58
|
-
return `${(size / 1024 / 1024 / 1024).toFixed(decimals)} GB`;
|
|
59
|
-
};
|
|
60
|
-
})(FileUtils || (FileUtils = {}));
|
|
61
|
-
export {
|
|
62
|
-
FileUtils
|
|
63
|
-
};
|
package/dist/utils/isEqual.js
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { ObjectUtils } from "./object.utils.js";
|
|
2
|
-
const isEqual = (a, b) => {
|
|
3
|
-
return eq(a, b);
|
|
4
|
-
};
|
|
5
|
-
const eq = (a, b, aStack, bStack) => {
|
|
6
|
-
if (a === b) {
|
|
7
|
-
return a !== 0 || 1 / a === 1 / b;
|
|
8
|
-
}
|
|
9
|
-
if (a == null || b == null) {
|
|
10
|
-
return a === b;
|
|
11
|
-
}
|
|
12
|
-
if (a !== a) {
|
|
13
|
-
return b !== b;
|
|
14
|
-
}
|
|
15
|
-
const type = typeof a;
|
|
16
|
-
if (type !== "function" && type !== "object" && typeof b !== "object") {
|
|
17
|
-
return false;
|
|
18
|
-
}
|
|
19
|
-
return deepEq(a, b, aStack, bStack);
|
|
20
|
-
};
|
|
21
|
-
const deepEq = (a, b, aStack, bStack) => {
|
|
22
|
-
const className = toString.call(a);
|
|
23
|
-
if (className !== toString.call(b)) {
|
|
24
|
-
return false;
|
|
25
|
-
}
|
|
26
|
-
switch (className) {
|
|
27
|
-
// Strings, numbers, regular expressions, dates, and booleans are compared by value.
|
|
28
|
-
// RegExps are coerced to strings for comparison (Note: '' + /a/i === '/a/i')
|
|
29
|
-
case "[object RegExp]":
|
|
30
|
-
case "[object String]":
|
|
31
|
-
return `${a}` === `${b}`;
|
|
32
|
-
case "[object Number]":
|
|
33
|
-
if (+a !== +a) {
|
|
34
|
-
return +b !== +b;
|
|
35
|
-
}
|
|
36
|
-
return +a === 0 ? 1 / +a === 1 / b : +a === +b;
|
|
37
|
-
case "[object Date]":
|
|
38
|
-
case "[object Boolean]":
|
|
39
|
-
return +a === +b;
|
|
40
|
-
case "[object Symbol]":
|
|
41
|
-
return Symbol.prototype.valueOf.call(a) === Symbol.prototype.valueOf.call(b);
|
|
42
|
-
}
|
|
43
|
-
const areArrays = className === "[object Array]";
|
|
44
|
-
if (!areArrays) {
|
|
45
|
-
if (typeof a !== "object" || typeof b !== "object") {
|
|
46
|
-
return false;
|
|
47
|
-
}
|
|
48
|
-
const aCtor = a.constructor;
|
|
49
|
-
const bCtor = b.constructor;
|
|
50
|
-
if (aCtor !== bCtor && !(ObjectUtils.isFunction(aCtor) && aCtor instanceof aCtor && ObjectUtils.isFunction(bCtor) && bCtor instanceof bCtor) && "constructor" in a && "constructor" in b) {
|
|
51
|
-
return false;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
aStack = aStack || [];
|
|
55
|
-
bStack = bStack || [];
|
|
56
|
-
let { length } = aStack;
|
|
57
|
-
while (length--) {
|
|
58
|
-
if (aStack[length] === a) {
|
|
59
|
-
return bStack[length] === b;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
aStack.push(a);
|
|
63
|
-
bStack.push(b);
|
|
64
|
-
if (areArrays) {
|
|
65
|
-
length = a.length;
|
|
66
|
-
if (length !== b.length) {
|
|
67
|
-
return false;
|
|
68
|
-
}
|
|
69
|
-
while (length--) {
|
|
70
|
-
if (!eq(a[length], b[length], aStack, bStack)) {
|
|
71
|
-
return false;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
} else {
|
|
75
|
-
const keys = Object.keys(a);
|
|
76
|
-
let key;
|
|
77
|
-
length = keys.length;
|
|
78
|
-
if (Object.keys(b).length !== length) {
|
|
79
|
-
return false;
|
|
80
|
-
}
|
|
81
|
-
while (length--) {
|
|
82
|
-
key = keys[length];
|
|
83
|
-
if (!(Object.prototype.hasOwnProperty.call(b, key) && eq(a[key], b[key], aStack, bStack))) {
|
|
84
|
-
return false;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
aStack.pop();
|
|
89
|
-
bStack.pop();
|
|
90
|
-
return true;
|
|
91
|
-
};
|
|
92
|
-
export {
|
|
93
|
-
isEqual
|
|
94
|
-
};
|
package/dist/utils/logger.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import log from "loglevel";
|
|
2
|
-
import prefix from "loglevel-plugin-prefix";
|
|
3
|
-
prefix.reg(log);
|
|
4
|
-
prefix.apply(log, {
|
|
5
|
-
template: "[%t] %l:",
|
|
6
|
-
timestampFormatter: (date) => {
|
|
7
|
-
return date.toISOString();
|
|
8
|
-
}
|
|
9
|
-
});
|
|
10
|
-
const logger = {
|
|
11
|
-
info: (...args) => log.info(...args),
|
|
12
|
-
debug: (...args) => log.debug(...args),
|
|
13
|
-
warn: (...args) => log.warn(...args),
|
|
14
|
-
error: (...args) => log.error(...args),
|
|
15
|
-
trace: (...args) => log.trace(...args)
|
|
16
|
-
};
|
|
17
|
-
export {
|
|
18
|
-
logger
|
|
19
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
var ObjectUtils;
|
|
2
|
-
((ObjectUtils2) => {
|
|
3
|
-
ObjectUtils2.isNil = (obj) => {
|
|
4
|
-
return obj == null;
|
|
5
|
-
};
|
|
6
|
-
ObjectUtils2.isFunction = (obj) => {
|
|
7
|
-
return typeof obj === "function";
|
|
8
|
-
};
|
|
9
|
-
ObjectUtils2.isObject = (obj) => {
|
|
10
|
-
return typeof obj === "object" && !!obj;
|
|
11
|
-
};
|
|
12
|
-
ObjectUtils2.isString = (obj) => {
|
|
13
|
-
return Object.prototype.toString.call(obj) === "[object String]";
|
|
14
|
-
};
|
|
15
|
-
ObjectUtils2.isDate = (obj) => {
|
|
16
|
-
return Object.prototype.toString.call(obj) === "[object Date]";
|
|
17
|
-
};
|
|
18
|
-
ObjectUtils2.isRegExp = (obj) => {
|
|
19
|
-
return Object.prototype.toString.call(obj) === "[object RegExp]";
|
|
20
|
-
};
|
|
21
|
-
ObjectUtils2.isEmpty = (obj) => {
|
|
22
|
-
if (obj == null) {
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
if (Array.isArray(obj) || (0, ObjectUtils2.isString)(obj)) {
|
|
26
|
-
return obj.length === 0;
|
|
27
|
-
}
|
|
28
|
-
return Object.keys(obj).length === 0;
|
|
29
|
-
};
|
|
30
|
-
ObjectUtils2.deepConditionalMerge = (target, source, condition) => {
|
|
31
|
-
const output = { ...target };
|
|
32
|
-
for (const key in source) {
|
|
33
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
34
|
-
const value = source[key];
|
|
35
|
-
if (condition(value, key)) {
|
|
36
|
-
if (typeof value === "object" && !Array.isArray(value)) {
|
|
37
|
-
output[key] = (0, ObjectUtils2.deepConditionalMerge)(
|
|
38
|
-
output[key],
|
|
39
|
-
value,
|
|
40
|
-
condition
|
|
41
|
-
);
|
|
42
|
-
} else {
|
|
43
|
-
output[key] = value;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return output;
|
|
49
|
-
};
|
|
50
|
-
})(ObjectUtils || (ObjectUtils = {}));
|
|
51
|
-
export {
|
|
52
|
-
ObjectUtils
|
|
53
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { logger } from "../../logger.js";
|
|
2
|
-
import { RestInterceptor } from "./rest-interceptor.js";
|
|
3
|
-
const LoggingInterceptor = new RestInterceptor((client) => {
|
|
4
|
-
return client.interceptors.request.use(
|
|
5
|
-
(config) => {
|
|
6
|
-
logger.info("Rest call", config.method, config.url, config.data);
|
|
7
|
-
return config;
|
|
8
|
-
},
|
|
9
|
-
(error) => {
|
|
10
|
-
logger.error("Rest call error", error);
|
|
11
|
-
return Promise.reject(error);
|
|
12
|
-
}
|
|
13
|
-
);
|
|
14
|
-
});
|
|
15
|
-
export {
|
|
16
|
-
LoggingInterceptor
|
|
17
|
-
};
|