urfu-ui-kit-react 2.1.3 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -25
- package/dist/components/Accordion/Accordion.js +18 -0
- package/dist/components/BreadCrumbs/BreadCrumbs.d.ts +1 -1
- package/dist/components/BreadCrumbs/BreadCrumbs.d.ts.map +1 -1
- package/dist/components/BreadCrumbs/BreadCrumbs.js +32 -0
- package/dist/components/Button/Button.d.ts +1 -0
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +88 -0
- package/dist/components/Button/Button.types.d.ts +9 -3
- package/dist/components/Button/Button.types.d.ts.map +1 -1
- package/dist/components/Button/ButtonRefreshIcon.js +35 -0
- package/dist/components/Calendar/Calendar.d.ts +1 -5
- package/dist/components/Calendar/Calendar.d.ts.map +1 -1
- package/dist/components/Calendar/Calendar.js +355 -0
- package/dist/components/Calendar/CalendarSelect.js +149 -0
- package/dist/components/Calendar/MaskedDateInput.d.ts.map +1 -1
- package/dist/components/Calendar/MaskedDateInput.js +191 -0
- package/dist/components/Calendar/dateMask.d.ts +0 -1
- package/dist/components/Calendar/dateMask.d.ts.map +1 -1
- package/dist/components/Card/Card.d.ts +1 -1
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Card/Card.js +75 -0
- package/dist/components/Checkbox/Checkbox.js +30 -0
- package/dist/components/ColumnSettings/ColumnSettings.js +216 -0
- package/dist/components/ConfirmModal/ConfirmModal.d.ts +1 -0
- package/dist/components/ConfirmModal/ConfirmModal.d.ts.map +1 -1
- package/dist/components/ConfirmModal/ConfirmModal.js +40 -0
- package/dist/components/ErrorScreen/ErrorScreen.d.ts +1 -1
- package/dist/components/ErrorScreen/ErrorScreen.d.ts.map +1 -1
- package/dist/components/ErrorScreen/ErrorScreen.js +221 -0
- package/dist/components/ErrorScreen/ErrorScreenIllustration.js +57 -0
- package/dist/components/FormField/FormField.d.ts +1 -1
- package/dist/components/FormField/FormField.d.ts.map +1 -1
- package/dist/components/FormField/FormField.js +40 -0
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/Icon/Icon.js +32 -0
- package/dist/components/Icon/Icon.types.d.ts +3 -1
- package/dist/components/Icon/Icon.types.d.ts.map +1 -1
- package/dist/components/InputExpandTextarea/InputExpandTextarea.d.ts +1 -1
- package/dist/components/InputExpandTextarea/InputExpandTextarea.d.ts.map +1 -1
- package/dist/components/InputExpandTextarea/InputExpandTextarea.js +144 -0
- package/dist/components/InputFile/InputFile.d.ts +1 -1
- package/dist/components/InputFile/InputFile.d.ts.map +1 -1
- package/dist/components/InputFile/InputFile.js +203 -0
- package/dist/components/InputFile/InputFile.types.d.ts +0 -6
- package/dist/components/InputFile/InputFile.types.d.ts.map +1 -1
- package/dist/components/InputNumber/InputNumber.d.ts +1 -1
- package/dist/components/InputNumber/InputNumber.d.ts.map +1 -1
- package/dist/components/InputNumber/InputNumber.js +220 -0
- package/dist/components/InputText/InputAffix.d.ts +1 -1
- package/dist/components/InputText/InputAffix.js +109 -0
- package/dist/components/InputText/InputText.d.ts +2 -1
- package/dist/components/InputText/InputText.d.ts.map +1 -1
- package/dist/components/InputText/InputText.js +137 -0
- package/dist/components/InputTime/InputTime.d.ts +1 -1
- package/dist/components/InputTime/InputTime.d.ts.map +1 -1
- package/dist/components/InputTime/InputTime.js +335 -0
- package/dist/components/InputTime/InputTimeDropdown.js +31 -0
- package/dist/components/InputTime/inputTimeKeyDown.js +63 -0
- package/dist/components/InputTime/useInputTimeWheel.js +45 -0
- package/dist/components/Menu/Menu.d.ts +1 -1
- package/dist/components/Menu/Menu.d.ts.map +1 -1
- package/dist/components/Menu/Menu.js +113 -0
- package/dist/components/Message/Message.js +29 -0
- package/dist/components/Modal/Modal.d.ts +1 -0
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.js +102 -0
- package/dist/components/Modal/editorFocus.js +15 -0
- package/dist/components/Modal/useModalFocus.js +112 -0
- package/dist/components/Modal/useModalTitleClearance.js +48 -0
- package/dist/components/Multiselect/Multiselect.d.ts +1 -0
- package/dist/components/Multiselect/Multiselect.d.ts.map +1 -1
- package/dist/components/Multiselect/Multiselect.js +408 -0
- package/dist/components/Notification/Notification.d.ts +1 -1
- package/dist/components/Notification/Notification.d.ts.map +1 -1
- package/dist/components/Notification/Notification.js +156 -0
- package/dist/components/OfflineBanner/OfflineBanner.d.ts +1 -1
- package/dist/components/OfflineBanner/OfflineBanner.d.ts.map +1 -1
- package/dist/components/OfflineBanner/OfflineBanner.js +40 -0
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.js +126 -0
- package/dist/components/Preloader/Preloader.d.ts.map +1 -1
- package/dist/components/Preloader/Preloader.js +60 -0
- package/dist/components/Radio/Radio.js +34 -0
- package/dist/components/Search/Search.d.ts +1 -1
- package/dist/components/Search/Search.d.ts.map +1 -1
- package/dist/components/Search/Search.js +47 -0
- package/dist/components/SearchSelect/SearchSelect.js +295 -0
- package/dist/components/SearchSelect/SearchSelectOption.js +41 -0
- package/dist/components/SearchSelect/useFlippedPlacement.js +25 -0
- package/dist/components/Select/MobileOptionSheet.d.ts +1 -1
- package/dist/components/Select/MobileOptionSheet.d.ts.map +1 -1
- package/dist/components/Select/MobileOptionSheet.js +116 -0
- package/dist/components/Select/Select.js +319 -0
- package/dist/components/Skeleton/Skeleton.js +38 -0
- package/dist/components/Skeleton/Skeleton.types.d.ts +4 -2
- package/dist/components/Skeleton/Skeleton.types.d.ts.map +1 -1
- package/dist/components/Status/Status.js +43 -0
- package/dist/components/StickyActionBar/StickyActionBar.d.ts +1 -1
- package/dist/components/StickyActionBar/StickyActionBar.d.ts.map +1 -1
- package/dist/components/StickyActionBar/StickyActionBar.js +73 -0
- package/dist/components/Switch/Switch.d.ts +1 -1
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Switch/Switch.js +29 -0
- package/dist/components/Table/Filter/DefaultInput.d.ts.map +1 -1
- package/dist/components/Table/Filter/DefaultInput.js +22 -0
- package/dist/components/Table/Filter/Filter.js +233 -0
- package/dist/components/Table/Filter/Filter.types.d.ts +17 -13
- package/dist/components/Table/Filter/Filter.types.d.ts.map +1 -1
- package/dist/components/Table/Filter/FilterBooleanBox.d.ts +1 -0
- package/dist/components/Table/Filter/FilterBooleanBox.d.ts.map +1 -1
- package/dist/components/Table/Filter/FilterBooleanBox.js +40 -0
- package/dist/components/Table/Filter/FilterBoxShell.js +89 -0
- package/dist/components/Table/Filter/FilterConditionSelect.js +14 -0
- package/dist/components/Table/Filter/FilterDateBox.d.ts +1 -0
- package/dist/components/Table/Filter/FilterDateBox.d.ts.map +1 -1
- package/dist/components/Table/Filter/FilterDateBox.js +173 -0
- package/dist/components/Table/Filter/FilterPanel.js +25 -0
- package/dist/components/Table/Filter/FilterSortIndicator.js +24 -0
- package/dist/components/Table/Filter/FilterStringBox.js +115 -0
- package/dist/components/Table/Filter/Functions.d.ts +0 -6
- package/dist/components/Table/Filter/Functions.d.ts.map +1 -1
- package/dist/components/Table/Filter/Functions.js +76 -0
- package/dist/components/Table/Filter/SelectFilter.js +114 -0
- package/dist/components/Table/Filter/SelectOptions.js +21 -0
- package/dist/components/Table/Filter/TableFilterOptions.d.ts +1 -0
- package/dist/components/Table/Filter/TableFilterOptions.d.ts.map +1 -1
- package/dist/components/Table/Filter/TableFilterOptions.js +268 -0
- package/dist/components/Table/Filter/TableFilterSortButton.js +17 -0
- package/dist/components/Table/Filter/filterBoxHelpers.js +2 -0
- package/dist/components/Table/Filter/filterExpression.js +48 -0
- package/dist/components/Table/Filter/filterLoading.js +2 -0
- package/dist/components/Table/Filter/useFilterDates.js +33 -0
- package/dist/components/Table/Filter/useFilterOptionsPreload.js +22 -0
- package/dist/components/Table/Filter/useLocalFilterSearch.js +32 -0
- package/dist/components/Table/Filter/usePagedFilterOptions.js +71 -0
- package/dist/components/Table/Filter/useServerFilterOptions.js +35 -0
- package/dist/components/Table/Filter/useVirtualOptionWindow.js +80 -0
- package/dist/components/Table/Functions.js +54 -0
- package/dist/components/Table/Skeleton/TableSkeleton.js +28 -0
- package/dist/components/Table/Skeleton/createSkeletonColumns.js +9 -0
- package/dist/components/Table/Table.d.ts +1 -0
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Table/Table.dataPipeline.d.ts.map +1 -1
- package/dist/components/Table/Table.dataPipeline.js +75 -0
- package/dist/components/Table/Table.helpers.d.ts +2 -2
- package/dist/components/Table/Table.helpers.d.ts.map +1 -1
- package/dist/components/Table/Table.helpers.js +72 -0
- package/dist/components/Table/Table.js +419 -0
- package/dist/components/Table/Table.types.d.ts +6 -2
- package/dist/components/Table/Table.types.d.ts.map +1 -1
- package/dist/components/Table/TableHead.d.ts.map +1 -1
- package/dist/components/Table/TableHead.js +189 -0
- package/dist/components/Table/TableMobileCard.js +215 -0
- package/dist/components/Table/TableMobileFilters.js +56 -0
- package/dist/components/Table/TableMobileView.js +316 -0
- package/dist/components/Table/TableRow.js +136 -0
- package/dist/components/Table/useColumnResize.d.ts +3 -2
- package/dist/components/Table/useColumnResize.d.ts.map +1 -1
- package/dist/components/Table/useColumnResize.js +44 -0
- package/dist/components/Table/useDelayedSkeleton.d.ts +0 -2
- package/dist/components/Table/useDelayedSkeleton.d.ts.map +1 -1
- package/dist/components/Table/useDelayedSkeleton.js +32 -0
- package/dist/components/Table/useMobileFilterColumns.d.ts +1 -1
- package/dist/components/Table/useMobileFilterColumns.d.ts.map +1 -1
- package/dist/components/Table/useMobileFilterColumns.js +52 -0
- package/dist/components/Table/useStableColumnWidths.js +22 -0
- package/dist/components/Table/useTableColumnPinning.d.ts +2 -57
- package/dist/components/Table/useTableColumnPinning.d.ts.map +1 -1
- package/dist/components/Table/useTableColumnPinning.js +52 -0
- package/dist/components/Table/useTableFilters.js +39 -0
- package/dist/components/Table/useTableSortState.js +38 -0
- package/dist/components/Table/useTableVirtualization.js +145 -0
- package/dist/components/Tabs/Tabs.d.ts +1 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.js +135 -0
- package/dist/components/Tabs/useTabsOverflow.js +49 -0
- package/dist/components/Textarea/Textarea.js +102 -0
- package/dist/components/Tooltip/Tooltip.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.js +218 -0
- package/dist/components/TreeView/TreeView.d.ts +1 -0
- package/dist/components/TreeView/TreeView.d.ts.map +1 -1
- package/dist/components/TreeView/TreeView.js +323 -0
- package/dist/components/TreeView/TreeView.types.d.ts +0 -4
- package/dist/components/TreeView/TreeView.types.d.ts.map +1 -1
- package/dist/dev/index.js +2 -2
- package/dist/dev/types/vanilla/src/dev/shown.d.ts +0 -2
- package/dist/dev/types/vanilla/src/dev/store.d.ts +0 -4
- package/dist/fonts/icons/urfu-ui-icon-font.eot +0 -0
- package/dist/fonts/icons/urfu-ui-icon-font.svg +3 -0
- package/dist/fonts/icons/urfu-ui-icon-font.ttf +0 -0
- package/dist/fonts/icons/urfu-ui-icon-font.woff +0 -0
- package/dist/fonts/icons/urfu-ui-icon-font.woff2 +0 -0
- package/dist/hooks/useActiveOptionScroll.js +20 -0
- package/dist/hooks/useAnchoredPosition.js +37 -0
- package/dist/hooks/useAutoId.d.ts +0 -1
- package/dist/hooks/useAutoId.d.ts.map +1 -1
- package/dist/hooks/useAutoId.js +7 -0
- package/dist/hooks/useAutoPortal.js +11 -0
- package/dist/hooks/useDebounce.js +11 -0
- package/dist/hooks/useDismiss.d.ts +1 -1
- package/dist/hooks/useDismiss.d.ts.map +1 -1
- package/dist/hooks/useDismiss.js +20 -0
- package/dist/hooks/useInputOverflow.d.ts +9 -0
- package/dist/hooks/useInputOverflow.d.ts.map +1 -0
- package/dist/hooks/useInputOverflow.js +16 -0
- package/dist/hooks/useMediaQuery.js +21 -0
- package/dist/hooks/useMobilePicker.js +7 -0
- package/dist/hooks/useMountTransition.d.ts +1 -1
- package/dist/hooks/useMountTransition.d.ts.map +1 -1
- package/dist/hooks/useMountTransition.js +21 -0
- package/dist/hooks/useOnlineStatus.js +11 -0
- package/dist/hooks/useOptionKeyboardNavigation.js +63 -0
- package/dist/hooks/usePagination.js +31 -0
- package/dist/hooks/useSelectEngine.d.ts +3 -3
- package/dist/hooks/useSelectEngine.d.ts.map +1 -1
- package/dist/hooks/useSelectEngine.js +96 -0
- package/dist/hooks/useTableSort.js +13 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/responsive/uiKitResponsive.js +44 -0
- package/dist/shared/fieldAccessibility.js +8 -0
- package/dist/shared/iconNames.d.ts +5 -0
- package/dist/shared/iconNames.d.ts.map +1 -0
- package/dist/shared/inputOverflow.d.ts +10 -0
- package/dist/shared/inputOverflow.d.ts.map +1 -0
- package/dist/shared/kitCopy.js +9 -0
- package/dist/shared/optionStateColors.js +5 -0
- package/dist/shared/optionValue.d.ts +1 -1
- package/dist/shared/optionValue.d.ts.map +1 -1
- package/dist/shared/optionValue.js +11 -0
- package/dist/shared/popupTransition.js +11 -0
- package/dist/shared/size.d.ts +0 -1
- package/dist/shared/size.d.ts.map +1 -1
- package/dist/shared/size.js +4 -0
- package/dist/shared/sortRows.js +24 -0
- package/dist/shared/uiKitDefaults.js +25 -0
- package/dist/style-no-fonts.css +1 -1
- package/dist/style.css +1 -1
- package/dist/style.layer.css +8 -8
- package/dist/style.shell.css +15 -11
- package/dist/urfu-ui-kit-react.js +57 -17543
- package/dist/vanilla/core/BoundedOptionPageCache.js +41 -0
- package/dist/vanilla/core/dateMask.js +28 -0
- package/dist/vanilla/core/describeError.js +243 -0
- package/dist/vanilla/core/devLauncherOffset.js +20 -0
- package/dist/vanilla/core/distributeTabs.js +25 -0
- package/dist/vanilla/core/hasPreviousPage.js +6 -0
- package/dist/vanilla/core/inputMode.js +17 -0
- package/dist/vanilla/core/inputOverflow.js +34 -0
- package/dist/vanilla/core/kitRegistry.js +160 -0
- package/dist/vanilla/core/reconcileColumnOrder.js +5 -0
- package/dist/vanilla/core/sheetTitle.js +11 -0
- package/dist/vanilla/core/validation.js +21 -0
- package/dist/vendor/@floating-ui/core/dist/floating-ui.core.js +323 -0
- package/dist/vendor/@floating-ui/dom/dist/floating-ui.dom.js +383 -0
- package/dist/vendor/@floating-ui/react/dist/floating-ui.react.js +255 -0
- package/dist/vendor/@floating-ui/react-dom/dist/floating-ui.react-dom.js +183 -0
- package/dist/vendor/@floating-ui/utils/dist/floating-ui.utils.dom.js +110 -0
- package/dist/vendor/@floating-ui/utils/dist/floating-ui.utils.js +106 -0
- package/dist/vendor/clsx/dist/clsx.js +14 -0
- package/dist/vendor/date-fns/_lib/addLeadingZeros.js +5 -0
- package/dist/vendor/date-fns/_lib/defaultOptions.js +5 -0
- package/dist/vendor/date-fns/_lib/format/formatters.js +547 -0
- package/dist/vendor/date-fns/_lib/format/lightFormatters.js +56 -0
- package/dist/vendor/date-fns/_lib/format/longFormatters.js +47 -0
- package/dist/vendor/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +16 -0
- package/dist/vendor/date-fns/_lib/protectedTokens.js +16 -0
- package/dist/vendor/date-fns/addDays.js +7 -0
- package/dist/vendor/date-fns/addHours.js +6 -0
- package/dist/vendor/date-fns/addMilliseconds.js +7 -0
- package/dist/vendor/date-fns/addMinutes.js +6 -0
- package/dist/vendor/date-fns/addMonths.js +17 -0
- package/dist/vendor/date-fns/addQuarters.js +6 -0
- package/dist/vendor/date-fns/addSeconds.js +5 -0
- package/dist/vendor/date-fns/addWeeks.js +6 -0
- package/dist/vendor/date-fns/addYears.js +5 -0
- package/dist/vendor/date-fns/constants.js +2 -0
- package/dist/vendor/date-fns/constructFrom.js +4 -0
- package/dist/vendor/date-fns/differenceInCalendarDays.js +8 -0
- package/dist/vendor/date-fns/differenceInCalendarMonths.js +6 -0
- package/dist/vendor/date-fns/differenceInCalendarQuarters.js +7 -0
- package/dist/vendor/date-fns/differenceInCalendarYears.js +6 -0
- package/dist/vendor/date-fns/differenceInDays.js +13 -0
- package/dist/vendor/date-fns/endOfDay.js +6 -0
- package/dist/vendor/date-fns/endOfMonth.js +6 -0
- package/dist/vendor/date-fns/endOfWeek.js +8 -0
- package/dist/vendor/date-fns/endOfYear.js +6 -0
- package/dist/vendor/date-fns/format.js +53 -0
- package/dist/vendor/date-fns/getDate.js +5 -0
- package/dist/vendor/date-fns/getDay.js +5 -0
- package/dist/vendor/date-fns/getDayOfYear.js +8 -0
- package/dist/vendor/date-fns/getDaysInMonth.js +7 -0
- package/dist/vendor/date-fns/getDefaultOptions.js +5 -0
- package/dist/vendor/date-fns/getHours.js +5 -0
- package/dist/vendor/date-fns/getISODay.js +6 -0
- package/dist/vendor/date-fns/getISOWeek.js +9 -0
- package/dist/vendor/date-fns/getISOWeekYear.js +12 -0
- package/dist/vendor/date-fns/getMinutes.js +5 -0
- package/dist/vendor/date-fns/getMonth.js +5 -0
- package/dist/vendor/date-fns/getQuarter.js +6 -0
- package/dist/vendor/date-fns/getSeconds.js +5 -0
- package/dist/vendor/date-fns/getTime.js +5 -0
- package/dist/vendor/date-fns/getWeek.js +9 -0
- package/dist/vendor/date-fns/getWeekYear.js +14 -0
- package/dist/vendor/date-fns/getYear.js +5 -0
- package/dist/vendor/date-fns/isAfter.js +6 -0
- package/dist/vendor/date-fns/isBefore.js +6 -0
- package/dist/vendor/date-fns/isDate.js +4 -0
- package/dist/vendor/date-fns/isEqual.js +6 -0
- package/dist/vendor/date-fns/isSameDay.js +6 -0
- package/dist/vendor/date-fns/isSameMonth.js +6 -0
- package/dist/vendor/date-fns/isSameQuarter.js +6 -0
- package/dist/vendor/date-fns/isSameWeek.js +6 -0
- package/dist/vendor/date-fns/isSameYear.js +6 -0
- package/dist/vendor/date-fns/isValid.js +9 -0
- package/dist/vendor/date-fns/isWithinInterval.js +9 -0
- package/dist/vendor/date-fns/locale/_lib/buildFormatLongFn.js +7 -0
- package/dist/vendor/date-fns/locale/_lib/buildLocalizeFn.js +16 -0
- package/dist/vendor/date-fns/locale/_lib/buildMatchFn.js +29 -0
- package/dist/vendor/date-fns/locale/_lib/buildMatchPatternFn.js +13 -0
- package/dist/vendor/date-fns/locale/en-US/_lib/formatDistance.js +68 -0
- package/dist/vendor/date-fns/locale/en-US/_lib/formatLong.js +31 -0
- package/dist/vendor/date-fns/locale/en-US/_lib/formatRelative.js +9 -0
- package/dist/vendor/date-fns/locale/en-US/_lib/localize.js +153 -0
- package/dist/vendor/date-fns/locale/en-US/_lib/match.js +108 -0
- package/dist/vendor/date-fns/locale/en-US.js +18 -0
- package/dist/vendor/date-fns/locale/ru/_lib/formatDistance.js +182 -0
- package/dist/vendor/date-fns/locale/ru/_lib/formatLong.js +28 -0
- package/dist/vendor/date-fns/locale/ru/_lib/formatRelative.js +62 -0
- package/dist/vendor/date-fns/locale/ru/_lib/localize.js +177 -0
- package/dist/vendor/date-fns/locale/ru/_lib/match.js +109 -0
- package/dist/vendor/date-fns/locale/ru.js +18 -0
- package/dist/vendor/date-fns/max.js +9 -0
- package/dist/vendor/date-fns/min.js +9 -0
- package/dist/vendor/date-fns/parse/_lib/Parser.js +20 -0
- package/dist/vendor/date-fns/parse/_lib/Setter.js +36 -0
- package/dist/vendor/date-fns/parse/_lib/constants.js +46 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +46 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/AMPMParser.js +46 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/DateParser.js +59 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/DayOfYearParser.js +49 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/DayParser.js +45 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/DayPeriodParser.js +46 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/EraParser.js +29 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ExtendedYearParser.js +19 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +20 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/Hour0To11Parser.js +30 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/Hour0to23Parser.js +30 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/Hour1To24Parser.js +31 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/Hour1to12Parser.js +31 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ISODayParser.js +101 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +45 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +45 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ISOWeekParser.js +47 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +38 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/LocalDayParser.js +76 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/LocalWeekParser.js +46 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +67 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/MinuteParser.js +30 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/MonthParser.js +73 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/QuarterParser.js +71 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/SecondParser.js +30 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +76 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +73 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +71 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +20 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +20 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/YearParser.js +47 -0
- package/dist/vendor/date-fns/parse/_lib/parsers.js +65 -0
- package/dist/vendor/date-fns/parse/_lib/utils.js +90 -0
- package/dist/vendor/date-fns/parse.js +85 -0
- package/dist/vendor/date-fns/parseISO.js +119 -0
- package/dist/vendor/date-fns/set.js +8 -0
- package/dist/vendor/date-fns/setDay.js +9 -0
- package/dist/vendor/date-fns/setHours.js +6 -0
- package/dist/vendor/date-fns/setISODay.js +8 -0
- package/dist/vendor/date-fns/setISOWeek.js +7 -0
- package/dist/vendor/date-fns/setMinutes.js +6 -0
- package/dist/vendor/date-fns/setMonth.js +10 -0
- package/dist/vendor/date-fns/setQuarter.js +7 -0
- package/dist/vendor/date-fns/setSeconds.js +6 -0
- package/dist/vendor/date-fns/setWeek.js +7 -0
- package/dist/vendor/date-fns/setYear.js +7 -0
- package/dist/vendor/date-fns/startOfDay.js +6 -0
- package/dist/vendor/date-fns/startOfISOWeek.js +5 -0
- package/dist/vendor/date-fns/startOfISOWeekYear.js +8 -0
- package/dist/vendor/date-fns/startOfMonth.js +6 -0
- package/dist/vendor/date-fns/startOfQuarter.js +6 -0
- package/dist/vendor/date-fns/startOfWeek.js +8 -0
- package/dist/vendor/date-fns/startOfWeekYear.js +10 -0
- package/dist/vendor/date-fns/startOfYear.js +7 -0
- package/dist/vendor/date-fns/subDays.js +5 -0
- package/dist/vendor/date-fns/subMonths.js +5 -0
- package/dist/vendor/date-fns/subQuarters.js +5 -0
- package/dist/vendor/date-fns/subWeeks.js +5 -0
- package/dist/vendor/date-fns/subYears.js +5 -0
- package/dist/vendor/date-fns/toDate.js +5 -0
- package/dist/vendor/date-fns/transpose.js +15 -0
- package/dist/vendor/react-datepicker/dist/es/index.js +2696 -0
- package/package.json +37 -35
- package/dist/hooks/useOutsideAlerter.d.ts +0 -3
- package/dist/hooks/useOutsideAlerter.d.ts.map +0 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
const l = (n, a, i, u) => {
|
|
2
|
+
const o = { ...n };
|
|
3
|
+
u.forEach(({ field: e, resizeOff: r }) => {
|
|
4
|
+
!r && e in i && (o[e] = i[e]);
|
|
5
|
+
});
|
|
6
|
+
const s = Object.entries(a).reduce(
|
|
7
|
+
(e, [r, c]) => (c !== void 0 && typeof c == "number" && (e[r] = c), e),
|
|
8
|
+
o
|
|
9
|
+
);
|
|
10
|
+
return Object.entries(i).reduce(
|
|
11
|
+
(e, [r, c]) => {
|
|
12
|
+
const f = u.find((d) => d.field === r);
|
|
13
|
+
return f && f.resizeOff && (e[r] = c), e;
|
|
14
|
+
},
|
|
15
|
+
s
|
|
16
|
+
);
|
|
17
|
+
}, D = (n, a, i, u) => {
|
|
18
|
+
const o = (r) => {
|
|
19
|
+
if (r != null) {
|
|
20
|
+
if (r instanceof Date) return r;
|
|
21
|
+
if (typeof r == "string" || typeof r == "number") return new Date(r);
|
|
22
|
+
}
|
|
23
|
+
}, s = n instanceof Date ? n : new Date(n), t = o(i), e = o(u);
|
|
24
|
+
switch (a) {
|
|
25
|
+
case "before":
|
|
26
|
+
return t != null && s <= t;
|
|
27
|
+
case "after":
|
|
28
|
+
return t != null && s > t;
|
|
29
|
+
case "exact":
|
|
30
|
+
return t != null && s.getTime() === t.getTime();
|
|
31
|
+
case "except":
|
|
32
|
+
return t != null && s.getTime() !== t.getTime();
|
|
33
|
+
case "between":
|
|
34
|
+
return t && e ? s > t && s < e : (t ? s > t : !0) && (e ? s < e : !0);
|
|
35
|
+
default:
|
|
36
|
+
return !1;
|
|
37
|
+
}
|
|
38
|
+
}, b = (n) => {
|
|
39
|
+
switch (n) {
|
|
40
|
+
case "horizontal":
|
|
41
|
+
return "";
|
|
42
|
+
case "vertical":
|
|
43
|
+
return " vertical-borders";
|
|
44
|
+
case "none":
|
|
45
|
+
return " none-borders";
|
|
46
|
+
case "both":
|
|
47
|
+
return " both-borders";
|
|
48
|
+
}
|
|
49
|
+
}, h = (n) => {
|
|
50
|
+
n.preventDefault();
|
|
51
|
+
}, g = (n, a) => {
|
|
52
|
+
n.dataTransfer.setData("index", a);
|
|
53
|
+
};
|
|
54
|
+
export { b as bordersSwitcher$u, l as columnWidthsFormatter$u, D as getDataFromDateFilterType$u, h as handleDragOver$u, g as handleDragStart$u };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as l, Fragment as j } from "react/jsx-runtime";
|
|
2
|
+
/* empty css */
|
|
3
|
+
const _ = ({
|
|
4
|
+
columns: k,
|
|
5
|
+
rows: u = 10,
|
|
6
|
+
rowHeight: i = 32,
|
|
7
|
+
tdHeights: r,
|
|
8
|
+
tdContentHeights: t,
|
|
9
|
+
tdContentWidths: a,
|
|
10
|
+
tdStyles: c,
|
|
11
|
+
fillColumnIndex: v = -1
|
|
12
|
+
}) => /* @__PURE__ */ l(j, { children: Array.from({ length: r ? r.length : u }).map((A, n) => /* @__PURE__ */ l("tr", { children: k.map((h, e) => {
|
|
13
|
+
var s, p, f, g;
|
|
14
|
+
const m = r && ((s = r[n]) == null ? void 0 : s[e]) || i, y = t && ((p = t[n]) == null ? void 0 : p[e]) || m * 0.6, N = c ? ((f = c[n]) == null ? void 0 : f[e]) || {} : {}, b = e === v ? "100%" : a && ((g = a[n]) != null && g[e]) ? a[n][e] : h.width !== void 0 ? h.width : 100;
|
|
15
|
+
return /* @__PURE__ */ l("td", { style: { ...N, height: m }, children: /* @__PURE__ */ l(
|
|
16
|
+
"div",
|
|
17
|
+
{
|
|
18
|
+
className: "skeleton-cell-frame",
|
|
19
|
+
style: {
|
|
20
|
+
height: y,
|
|
21
|
+
width: b,
|
|
22
|
+
margin: "0 auto"
|
|
23
|
+
},
|
|
24
|
+
children: /* @__PURE__ */ l("div", { className: "skeleton-cell" })
|
|
25
|
+
}
|
|
26
|
+
) }, e);
|
|
27
|
+
}) }, n)) });
|
|
28
|
+
export { _ as TableSkeleton$u };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
const n = (e) => e === void 0 ? [] : (typeof e == "number" ? Array.from({ length: Math.max(0, Math.floor(e)) }, () => {
|
|
3
|
+
}) : e).map((t, o) => ({
|
|
4
|
+
key: `u-skeleton-${o}`,
|
|
5
|
+
field: `u-skeleton-${o}`,
|
|
6
|
+
title: t ?? "",
|
|
7
|
+
...t === void 0 ? { renderHeader: () => /* @__PURE__ */ r("span", { className: "skeleton-cell u-table-skeleton-head", "aria-hidden": "true" }) } : {}
|
|
8
|
+
}));
|
|
9
|
+
export { n as createSkeletonColumns$u };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { TableProperties } from "./Table.types";
|
|
3
3
|
import "./Table.less";
|
|
4
|
+
|
|
4
5
|
export declare const Table: <Row>({ data: dataProp, columns: sourceColumns, borders, striped, linesNotActive, fixedHeader, headerBorders, tdStyle, thStyle, cellStyle, tdContentStyle, thContentStyle, cellContentStyle, contentForEmptyTable, messageForEmptyTable, messageForEmptyFilter, mobileMessageForEmptyTable, className, allTdStyleFunction, allTdContentStyleFunction, id, draggable, resize, fillContainer, fillColumnKey, onDrop, maxHeight, minHeight, whereFindChecked, filterEmptyLabel, virtualizationOn, parentDataField, rowHeight, visibleRows, setFilteredTableData, withoutHeader, filterResetParam, filterMode, filters: controlledFilters, defaultFilters, onFiltersChange, pagination, isLoading: isLoadingProp, isLoadingPreloader, skeletonDelay, initialSkeletonRows, initialSkeletonRowHeight, skeletonColumns, preloaderHeight, sort: controlledSort, sortDir: controlledSortDir, onSortChange, managedSort, defaultSort, page, pageSize, mobileView, mobileCardCollapsible, mobileCardLabels, mobileMaxVisible, mobileCardColumns, mobileCardGap, mobileCardDivider, mobileBreakpoint, renderMobileCard, renderMobileToolbar, mobileFilterOptions, mobileFilterColumns, renderMobileFilter, onMobileFiltersReset, mobileFilterSortLabel, mobileSortBar, mobileSortLabel, mobileSortStyle, mobileCardFlat, mobileCardInset, mobileCardDensity, }: TableProperties<Row>) => import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AACA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,cAAc,CAAC;AA+
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AACA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,cAAc,CAAC;AACtB,OAAO,2DAA2D,CAAC;AA+BnE,eAAO,MAAM,KAAK,GAAI,GAAG,EAAG,8wCA8EzB,eAAe,CAAC,GAAG,CAAC,4CAoatB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.dataPipeline.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.dataPipeline.ts"],"names":[],"mappings":"AAMA,UAAU,+BAA+B;
|
|
1
|
+
{"version":3,"file":"Table.dataPipeline.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.dataPipeline.ts"],"names":[],"mappings":"AAMA,UAAU,+BAA+B;IAEvC,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,OAAO,EAAE,GAAG,EAAE,CAAC;IACf,IAAI,EAAE;QAAE,GAAG,EAAE,OAAO,GAAG,SAAS,CAAC;QAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;IAC/D,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;IAC3C,WAAW,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAC;QAAC,GAAG,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAC/E,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAClC;AAED,eAAO,MAAM,yBAAyB,GAAI,yHAUvC,+BAA+B,UA8KjC,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { getDataFromDateFilterType$u as x } from "./Functions.js";
|
|
2
|
+
const E = ({
|
|
3
|
+
data: y,
|
|
4
|
+
columns: p,
|
|
5
|
+
sort: l,
|
|
6
|
+
uncheckedValues: g,
|
|
7
|
+
filterDates: B,
|
|
8
|
+
whereFindChecked: b,
|
|
9
|
+
filterEmptyLabel: h,
|
|
10
|
+
parentDataField: u,
|
|
11
|
+
filterMode: w = "client"
|
|
12
|
+
}) => {
|
|
13
|
+
const j = B.filter(
|
|
14
|
+
(t) => !(t.begin === null && t.end === null)
|
|
15
|
+
), O = (t) => {
|
|
16
|
+
if (w === "server") return !0;
|
|
17
|
+
const e = b.length > 0 ? t[b] : t, n = Object.keys(g).length === 0 || Object.keys(g).every((r) => {
|
|
18
|
+
const s = p == null ? void 0 : p.find((c) => c.field === r), o = s != null && s.filterValue ? s.filterValue(e) : e[r];
|
|
19
|
+
return Array.isArray(o) && o.every((c) => typeof c == "object" && "title" in c) ? !o.every(
|
|
20
|
+
(c) => g[r].includes(c.title)
|
|
21
|
+
) : Array.isArray(o) ? !o.every((c) => g[r].includes(c)) : typeof o == "object" && o !== null && "title" in o ? !g[r].includes(o.title) : !g[r].includes(
|
|
22
|
+
o == null || typeof o == "string" && o.length === 0 ? h : o
|
|
23
|
+
);
|
|
24
|
+
}), a = j.length === 0 || Object.keys(e).some(
|
|
25
|
+
(r) => j.some(
|
|
26
|
+
(s) => s.id === r && x(
|
|
27
|
+
e[r],
|
|
28
|
+
s.type,
|
|
29
|
+
s.begin,
|
|
30
|
+
s.end
|
|
31
|
+
)
|
|
32
|
+
)
|
|
33
|
+
), i = j.some(
|
|
34
|
+
(r) => r.type === "except" && !Object.keys(e).includes(r.id)
|
|
35
|
+
);
|
|
36
|
+
return n && (a || i);
|
|
37
|
+
}, S = (t, e) => {
|
|
38
|
+
if (t.customOrderSort || e.customOrderSort)
|
|
39
|
+
return (t.customOrderSort || 0) > (e.customOrderSort || 0) ? -1 : 1;
|
|
40
|
+
const n = p.find((v) => v.field === l.column);
|
|
41
|
+
if (n != null && n.sortComparator)
|
|
42
|
+
return l.asc ? n.sortComparator(t, e) : -n.sortComparator(t, e);
|
|
43
|
+
const a = (v) => {
|
|
44
|
+
if (n != null && n.sortValue) return n.sortValue(v);
|
|
45
|
+
const f = b.length > 0 ? v[b][l.column] : v[l.column];
|
|
46
|
+
return Array.isArray(f) ? f.length > 0 && f.every((N) => typeof N == "object" && "title" in N) ? f[0].title : f[0] : typeof f == "object" && f !== null && "title" in f ? f.title : f;
|
|
47
|
+
}, i = a(t), r = a(e);
|
|
48
|
+
if (typeof i == "boolean" && typeof r == "boolean")
|
|
49
|
+
return l.asc ? i === r ? 0 : i ? 1 : -1 : i === r ? 0 : i ? -1 : 1;
|
|
50
|
+
const s = typeof i == "number" ? i : void 0, o = typeof r == "number" ? r : void 0;
|
|
51
|
+
if (!isNaN(s) && !isNaN(o))
|
|
52
|
+
return l.asc ? s - o : o - s;
|
|
53
|
+
if (i == null) return l.asc ? -1 : 1;
|
|
54
|
+
if (r == null) return l.asc ? 1 : -1;
|
|
55
|
+
const c = i.toString().toLowerCase(), m = r.toString().toLowerCase();
|
|
56
|
+
return c < m ? l.asc ? -1 : 1 : c > m ? l.asc ? 1 : -1 : 0;
|
|
57
|
+
}, A = [...u ? y == null ? void 0 : y.map((t) => {
|
|
58
|
+
var e;
|
|
59
|
+
return {
|
|
60
|
+
...t,
|
|
61
|
+
[u]: (e = t[u]) == null ? void 0 : e.filter(
|
|
62
|
+
(n) => O(n)
|
|
63
|
+
)
|
|
64
|
+
};
|
|
65
|
+
}).filter(
|
|
66
|
+
(t) => {
|
|
67
|
+
var e;
|
|
68
|
+
return !t[u] && O(t) || ((e = t[u]) == null ? void 0 : e.length) > 0;
|
|
69
|
+
}
|
|
70
|
+
) : y == null ? void 0 : y.filter((t) => O(t))];
|
|
71
|
+
return (l == null ? void 0 : l.asc) === void 0 || (A.sort((t, e) => S(t, e)), u && A.forEach((t) => {
|
|
72
|
+
t[u] && Array.isArray(t[u]) && t[u].sort((e, n) => S(e, n));
|
|
73
|
+
})), A;
|
|
74
|
+
};
|
|
75
|
+
export { E as computeFilteredSortedData$u };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
1
2
|
import type { TableFilterValue, TableServerFilter } from './Table.filterTypes';
|
|
2
3
|
export declare const pxAdd: (value: number) => string;
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const adaptTypographyStyle: (style: Record<string, unknown> | null | undefined) => Record<string, unknown>;
|
|
4
|
+
export declare const adaptTypographyStyle: (style: Record<string, unknown> | null | undefined) => CSSProperties | undefined;
|
|
5
5
|
/** Размер задаёт ячейка; её содержимое занимает доступную ширину без повторного ограничения. */
|
|
6
6
|
export declare const getHeaderCellSizing: (column: {
|
|
7
7
|
field?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.helpers.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAI/E,eAAO,MAAM,KAAK,GAAI,OAAO,MAAM,WAElC,CAAC;
|
|
1
|
+
{"version":3,"file":"Table.helpers.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAI/E,eAAO,MAAM,KAAK,GAAI,OAAO,MAAM,WAElC,CAAC;AAuCF,eAAO,MAAM,oBAAoB,GAC/B,OAAO,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,KAChD,aAAa,GAAG,SAgBlB,CAAC;AAEF,gGAAgG;AAChG,eAAO,MAAM,mBAAmB,GAC9B,QAAQ;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,EAC/D,cAAc,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACpC,SAAS,OAAO,EAChB,oBAAe;;;CAUhB,CAAC;AAGF,+EAA+E;AAC/E,eAAO,MAAM,kBAAkB,GAAI,OAAO,OAAO,YACa,CAAC;AAE/D,wBAAgB,oBAAoB,CAAC,MAAM,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAQxE;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,EAAE;IAC1G,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE;QAAE,WAAW,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACxD,sEAAsE;IACtE,aAAa,CAAC,EAAE,SAAS;QAAE,KAAK,EAAE,gBAAgB,CAAA;KAAE,EAAE,CAAC;IACvD,gEAAgE;IAChE,WAAW,CAAC,EAAE;QAAE,GAAG,EAAE,SAAS,OAAO,EAAE,CAAC;QAAC,SAAS,CAAC,EAAE,SAAS,OAAO,EAAE,CAAA;KAAE,CAAC;CAC3E,GAAG,MAAM,GAAG,SAAS,CAerB;AAED,wBAAgB,2BAA2B,CAAC,MAAM,CAAC,EAAE,iBAAiB,GAAG,MAAM,GAAG,SAAS,CAE1F;AAED,sFAAsF;AACtF,wBAAgB,eAAe,CAAC,GAAG,EAAE,IAAI,EAAE,SAAS,GAAG,EAAE,EAAE,MAAM,EAAE;IACjE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,eAAe,CAAC,EAAE,OAAO,CAAC;CAClG,GAAG,OAAO,CAYV;AAED,4FAA4F;AAC5F,wBAAgB,aAAa,CAAC,OAAO,EAAE,SAAS;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAE3F;AAED,+DAA+D;AAC/D,MAAM,WAAW,YAAY;IAAG,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE;AAEtE;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAQ7G"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { filterExpressionSummary$u as a } from "./Filter/filterExpression.js";
|
|
2
|
+
const l = (e) => `${e}px`, c = (e) => {
|
|
3
|
+
if (typeof e == "number")
|
|
4
|
+
return `calc(${e} * var(--u-unit, 1px))`;
|
|
5
|
+
if (typeof e == "string") {
|
|
6
|
+
const n = e.trim().match(/^(-?\d+(?:\.\d+)?)px$/);
|
|
7
|
+
if (n)
|
|
8
|
+
return `calc(${n[1]} * var(--u-unit, 1px))`;
|
|
9
|
+
}
|
|
10
|
+
return e;
|
|
11
|
+
}, h = /* @__PURE__ */ new Set([10, 11, 12, 13, 14, 16, 18, 20, 24, 40, 52]), d = (e) => {
|
|
12
|
+
if (typeof e == "number") return e;
|
|
13
|
+
if (typeof e != "string") return null;
|
|
14
|
+
const t = e.trim().match(/^(-?\d+(?:\.\d+)?)px$/);
|
|
15
|
+
return t ? Number(t[1]) : null;
|
|
16
|
+
}, p = (e) => {
|
|
17
|
+
const t = d(e);
|
|
18
|
+
if (t === null) return e;
|
|
19
|
+
const n = `calc(${t} * var(--u-unit, 1px))`;
|
|
20
|
+
return h.has(t) ? `var(--u-font-size-${t}, ${n})` : `max(${n}, ${Math.min(t, 12)}px)`;
|
|
21
|
+
}, S = (e) => {
|
|
22
|
+
if (!e) return e;
|
|
23
|
+
const t = { ...e }, n = d(t.fontSize), r = typeof t.lineHeight == "string" ? d(t.lineHeight) : null;
|
|
24
|
+
return "fontSize" in t && (t.fontSize = p(t.fontSize)), "lineHeight" in t && (t.lineHeight = n && r !== null ? Math.round(r / n * 1e4) / 1e4 : c(t.lineHeight)), t;
|
|
25
|
+
}, y = (e, t, n, r = 0) => {
|
|
26
|
+
const i = t[e.field], o = n && !e.resizeOff;
|
|
27
|
+
return {
|
|
28
|
+
width: o ? Math.max(i || e.width || 0, e.width || 0) + r || "auto" : void 0,
|
|
29
|
+
minWidth: o && e.width ? e.width : void 0
|
|
30
|
+
};
|
|
31
|
+
}, x = (e) => typeof e == "string" && /^\S{1,8}$/u.test(e.trim());
|
|
32
|
+
function v(e) {
|
|
33
|
+
var n;
|
|
34
|
+
if (!e) return !1;
|
|
35
|
+
if (e.type === "date") return e.date != null || e.endDate != null;
|
|
36
|
+
const t = (n = e.paged) == null ? void 0 : n.expression;
|
|
37
|
+
return t ? !t.defaultSelected || t.rules.length > 0 || t.include.length > 0 || t.exclude.length > 0 : e.selection.mode === "include" || e.selection.values.length > 0;
|
|
38
|
+
}
|
|
39
|
+
function z({ filter: e, explicitCount: t, pagedSummary: n, loadedOptions: r, localValues: i }) {
|
|
40
|
+
if ((e == null ? void 0 : e.type) === "values" && e.paged) {
|
|
41
|
+
const s = n ?? a(e.paged.expression, [], !1);
|
|
42
|
+
return s.allSelected ? void 0 : s.count;
|
|
43
|
+
}
|
|
44
|
+
if (t !== void 0) return t;
|
|
45
|
+
if ((e == null ? void 0 : e.type) === "values") {
|
|
46
|
+
const { mode: s, values: u } = e.selection;
|
|
47
|
+
return s === "include" ? new Set(u).size : u.length ? r == null ? void 0 : r.filter((f) => !u.includes(f.value)).length : void 0;
|
|
48
|
+
}
|
|
49
|
+
if (e || !(i != null && i.all.length)) return;
|
|
50
|
+
const o = i.all.filter((s) => {
|
|
51
|
+
var u;
|
|
52
|
+
return !((u = i.unchecked) != null && u.includes(s));
|
|
53
|
+
}).length;
|
|
54
|
+
return o === i.all.length ? void 0 : o;
|
|
55
|
+
}
|
|
56
|
+
function $(e) {
|
|
57
|
+
var t, n;
|
|
58
|
+
return (e == null ? void 0 : e.type) === "values" ? JSON.stringify([(t = e.paged) == null ? void 0 : t.contextKey, ((n = e.paged) == null ? void 0 : n.expression) ?? e.selection]) : void 0;
|
|
59
|
+
}
|
|
60
|
+
function b(e, t) {
|
|
61
|
+
if (typeof t.filterHasValues == "boolean") return t.filterHasValues;
|
|
62
|
+
if (!e.length) return !1;
|
|
63
|
+
const n = (r) => r != null && r !== "" && (!Array.isArray(r) || r.some(n));
|
|
64
|
+
return t.filterValue ? e.some((r) => n(t.filterValue(r))) : t.field && e.some((r) => Object.prototype.hasOwnProperty.call(r, t.field)) ? e.some((r) => n(r[t.field])) : !!t.render;
|
|
65
|
+
}
|
|
66
|
+
function H(e, t) {
|
|
67
|
+
return e.slice(0, t).reduce((n, r) => n + (r.width || 0), 0);
|
|
68
|
+
}
|
|
69
|
+
function A(e, t, n, r) {
|
|
70
|
+
return t ? (e.offset === void 0 && (e.offset = e.tableWidth === void 0 ? 0 : n - e.tableWidth), n - e.offset <= r) : (e.tableWidth = n, e.offset = void 0, n <= r);
|
|
71
|
+
}
|
|
72
|
+
export { S as adaptTypographyStyle$u, z as getFilterSelectedCount$u, y as getHeaderCellSizing$u, $ as getServerFilterSelectionKey$u, H as getStickyLeft$u, b as hasColumnValues$u, v as isServerFilterActive$u, x as isShortTableHeader$u, A as nextCardMode$u, l as pxAdd$u };
|