@hkyhy/marsun-components-core 0.1.43 → 0.1.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_cloneBuffer.js +5 -0
- package/dist/_virtual/_cloneBuffer.js.map +1 -0
- package/dist/_virtual/_commonjs-dynamic-modules.js +7 -0
- package/dist/_virtual/_commonjs-dynamic-modules.js.map +1 -0
- package/dist/_virtual/_commonjsHelpers.js +9 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/_virtual/_nodeUtil.js +5 -0
- package/dist/_virtual/_nodeUtil.js.map +1 -0
- package/dist/_virtual/clone.js +8 -0
- package/dist/_virtual/clone.js.map +1 -0
- package/dist/_virtual/get.js +8 -0
- package/dist/_virtual/get.js.map +1 -0
- package/dist/_virtual/hoist-non-react-statics.cjs.js +3 -0
- package/dist/_virtual/hoist-non-react-statics.cjs.js.map +1 -0
- package/dist/_virtual/index.js +5 -0
- package/dist/_virtual/index.js.map +1 -0
- package/dist/_virtual/isBuffer.js +5 -0
- package/dist/_virtual/isBuffer.js.map +1 -0
- package/dist/_virtual/isEqual.js +8 -0
- package/dist/_virtual/isEqual.js.map +1 -0
- package/dist/_virtual/isNumber.js +8 -0
- package/dist/_virtual/isNumber.js.map +1 -0
- package/dist/_virtual/merge.js +8 -0
- package/dist/_virtual/merge.js.map +1 -0
- package/dist/_virtual/object_hash.js +8 -0
- package/dist/_virtual/object_hash.js.map +1 -0
- package/dist/_virtual/object_hash2.js +5 -0
- package/dist/_virtual/object_hash2.js.map +1 -0
- package/dist/_virtual/omit.js +8 -0
- package/dist/_virtual/omit.js.map +1 -0
- package/dist/_virtual/pick.js +8 -0
- package/dist/_virtual/pick.js.map +1 -0
- package/dist/_virtual/react-is.development.js +5 -0
- package/dist/_virtual/react-is.development.js.map +1 -0
- package/dist/_virtual/react-is.production.min.js +5 -0
- package/dist/_virtual/react-is.production.min.js.map +1 -0
- package/dist/_virtual/transform.js +8 -0
- package/dist/_virtual/transform.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/CitationMarkdownContent/index.js +13 -13
- package/dist/components/AgentHub/Chat/Detail/CitationPanel/index.js +2 -2
- package/dist/components/AgentHub/Chat/Modal/FormModal.js +11 -11
- package/dist/components/AgentHub/Chat/Modal/FormModal.js.map +1 -1
- package/dist/components/AgentHub/KnowledgeBase/Modal/FormModal.js +6 -6
- package/dist/components/AgentHub/KnowledgeBase/Modal/FormModal.js.map +1 -1
- package/dist/components/Filter/CommonFilter/index.js +13 -13
- package/dist/components/Icons/index.js +14 -14
- package/dist/components/ReactFilter/AdvancedFilter/fields/CityFilterItem.d.ts +10 -0
- package/dist/components/ReactFilter/AdvancedFilter/fields/CityFilterItem.js +88 -0
- package/dist/components/ReactFilter/AdvancedFilter/fields/CityFilterItem.js.map +1 -0
- package/dist/components/ReactFilter/AdvancedFilter/fields/InputFilterItem.d.ts +4 -0
- package/dist/components/ReactFilter/AdvancedFilter/fields/InputFilterItem.js +40 -0
- package/dist/components/ReactFilter/AdvancedFilter/fields/InputFilterItem.js.map +1 -0
- package/dist/components/ReactFilter/AdvancedFilter/fields/ListFilterItem.d.ts +4 -0
- package/dist/components/ReactFilter/AdvancedFilter/fields/ListFilterItem.js +43 -0
- package/dist/components/ReactFilter/AdvancedFilter/fields/ListFilterItem.js.map +1 -0
- package/dist/components/ReactFilter/AdvancedFilter/fields/index.d.ts +9 -0
- package/dist/components/ReactFilter/AdvancedFilter/fields/index.js +8 -0
- package/dist/components/ReactFilter/AdvancedFilter/fields/index.js.map +1 -0
- package/dist/components/ReactFilter/AdvancedFilter/index.d.ts +6 -0
- package/dist/components/ReactFilter/AdvancedFilter/index.js +72 -0
- package/dist/components/ReactFilter/AdvancedFilter/index.js.map +1 -0
- package/dist/components/ReactFilter/Filter.d.ts +4 -0
- package/dist/components/ReactFilter/Filter.js +16 -0
- package/dist/components/ReactFilter/Filter.js.map +1 -0
- package/dist/components/ReactFilter/FilterItem.d.ts +7 -0
- package/dist/components/ReactFilter/FilterItem.js +26 -0
- package/dist/components/ReactFilter/FilterItem.js.map +1 -0
- package/dist/components/ReactFilter/FilterItemContainer.d.ts +5 -0
- package/dist/components/ReactFilter/FilterItemContainer.js +5 -0
- package/dist/components/ReactFilter/FilterItemContainer.js.map +1 -0
- package/dist/components/ReactFilter/FilterLines.d.ts +10 -0
- package/dist/components/ReactFilter/FilterLines.js +295 -0
- package/dist/components/ReactFilter/FilterLines.js.map +1 -0
- package/dist/components/ReactFilter/FilterOuter.d.ts +6 -0
- package/dist/components/ReactFilter/FilterOuter.js +28 -0
- package/dist/components/ReactFilter/FilterOuter.js.map +1 -0
- package/dist/components/ReactFilter/FilterProvider.d.ts +7 -0
- package/dist/components/ReactFilter/FilterProvider.js +26 -0
- package/dist/components/ReactFilter/FilterProvider.js.map +1 -0
- package/dist/components/ReactFilter/FilterValueDisplay.d.ts +4 -0
- package/dist/components/ReactFilter/FilterValueDisplay.js +185 -0
- package/dist/components/ReactFilter/FilterValueDisplay.js.map +1 -0
- package/dist/components/ReactFilter/PopoverItem.d.ts +4 -0
- package/dist/components/ReactFilter/PopoverItem.js +167 -0
- package/dist/components/ReactFilter/PopoverItem.js.map +1 -0
- package/dist/components/ReactFilter/SearchInput.d.ts +8 -0
- package/dist/components/ReactFilter/SearchInput.js +55 -0
- package/dist/components/ReactFilter/SearchInput.js.map +1 -0
- package/dist/components/ReactFilter/buildSelectTreeMapping.d.ts +9 -0
- package/dist/components/ReactFilter/buildSelectTreeMapping.js +24 -0
- package/dist/components/ReactFilter/buildSelectTreeMapping.js.map +1 -0
- package/dist/components/ReactFilter/common/TypeDateRangePickerField/index.d.ts +9 -0
- package/dist/components/ReactFilter/common/TypeDateRangePickerField/index.js +158 -0
- package/dist/components/ReactFilter/common/TypeDateRangePickerField/index.js.map +1 -0
- package/dist/components/ReactFilter/common/TypeDateRangePickerField/style.module.scss.js +9 -0
- package/dist/components/ReactFilter/common/TypeDateRangePickerField/style.module.scss.js.map +1 -0
- package/dist/components/ReactFilter/constants/mobilePopup.d.ts +2 -0
- package/dist/components/ReactFilter/constants/mobilePopup.js +6 -0
- package/dist/components/ReactFilter/constants/mobilePopup.js.map +1 -0
- package/dist/components/ReactFilter/context.d.ts +3 -0
- package/dist/components/ReactFilter/context.js +8 -0
- package/dist/components/ReactFilter/context.js.map +1 -0
- package/dist/components/ReactFilter/createFilterValueMapper.d.ts +29 -0
- package/dist/components/ReactFilter/createFilterValueMapper.js +33 -0
- package/dist/components/ReactFilter/createFilterValueMapper.js.map +1 -0
- package/dist/components/ReactFilter/entry.d.ts +24 -0
- package/dist/components/ReactFilter/entry.js +57 -0
- package/dist/components/ReactFilter/entry.js.map +1 -0
- package/dist/components/ReactFilter/fields/DatePickerFilterItem.d.ts +11 -0
- package/dist/components/ReactFilter/fields/DatePickerFilterItem.js +39 -0
- package/dist/components/ReactFilter/fields/DatePickerFilterItem.js.map +1 -0
- package/dist/components/ReactFilter/fields/DateRangePickerFilterItem.d.ts +11 -0
- package/dist/components/ReactFilter/fields/DateRangePickerFilterItem.js +42 -0
- package/dist/components/ReactFilter/fields/DateRangePickerFilterItem.js.map +1 -0
- package/dist/components/ReactFilter/fields/InputFilterItem.d.ts +4 -0
- package/dist/components/ReactFilter/fields/InputFilterItem.js +44 -0
- package/dist/components/ReactFilter/fields/InputFilterItem.js.map +1 -0
- package/dist/components/ReactFilter/fields/NumberRangeFilterItem.d.ts +4 -0
- package/dist/components/ReactFilter/fields/NumberRangeFilterItem.js +109 -0
- package/dist/components/ReactFilter/fields/NumberRangeFilterItem.js.map +1 -0
- package/dist/components/ReactFilter/fields/SelectTreeFilterItem.d.ts +9 -0
- package/dist/components/ReactFilter/fields/SelectTreeFilterItem.js +118 -0
- package/dist/components/ReactFilter/fields/SelectTreeFilterItem.js.map +1 -0
- package/dist/components/ReactFilter/fields/TypeDateRangePickerFilterItem.d.ts +4 -0
- package/dist/components/ReactFilter/fields/TypeDateRangePickerFilterItem.js +40 -0
- package/dist/components/ReactFilter/fields/TypeDateRangePickerFilterItem.js.map +1 -0
- package/dist/components/ReactFilter/fields/index.d.ts +58 -0
- package/dist/components/ReactFilter/fields/index.js +43 -0
- package/dist/components/ReactFilter/fields/index.js.map +1 -0
- package/dist/components/ReactFilter/filterClassNames.d.ts +30 -0
- package/dist/components/ReactFilter/filterClassNames.js +33 -0
- package/dist/components/ReactFilter/filterClassNames.js.map +1 -0
- package/dist/components/ReactFilter/filterInterceptors.d.ts +15 -0
- package/dist/components/ReactFilter/filterInterceptors.js +26 -0
- package/dist/components/ReactFilter/filterInterceptors.js.map +1 -0
- package/dist/components/ReactFilter/flattenSelectTreeOptions.d.ts +11 -0
- package/dist/components/ReactFilter/flattenSelectTreeOptions.js +22 -0
- package/dist/components/ReactFilter/flattenSelectTreeOptions.js.map +1 -0
- package/dist/components/ReactFilter/getFilterValue.d.ts +2 -0
- package/dist/components/ReactFilter/getFilterValue.js +12 -0
- package/dist/components/ReactFilter/getFilterValue.js.map +1 -0
- package/dist/components/ReactFilter/hooks/useFilterIsMobile.d.ts +6 -0
- package/dist/components/ReactFilter/hooks/useFilterIsMobile.js +9 -0
- package/dist/components/ReactFilter/hooks/useFilterIsMobile.js.map +1 -0
- package/dist/components/ReactFilter/hooks/useFilterPopupContainer.d.ts +15 -0
- package/dist/components/ReactFilter/hooks/useFilterPopupContainer.js +32 -0
- package/dist/components/ReactFilter/hooks/useFilterPopupContainer.js.map +1 -0
- package/dist/components/ReactFilter/hooks/useFilterViewportVars.d.ts +2 -0
- package/dist/components/ReactFilter/hooks/useFilterViewportVars.js +23 -0
- package/dist/components/ReactFilter/hooks/useFilterViewportVars.js.map +1 -0
- package/dist/components/ReactFilter/hooks/useHorizontalScrollShadows.d.ts +11 -0
- package/dist/components/ReactFilter/hooks/useHorizontalScrollShadows.js +49 -0
- package/dist/components/ReactFilter/hooks/useHorizontalScrollShadows.js.map +1 -0
- package/dist/components/ReactFilter/hooks/useResponsiveScrollListener.d.ts +2 -0
- package/dist/components/ReactFilter/hooks/useResponsiveScrollListener.js +25 -0
- package/dist/components/ReactFilter/hooks/useResponsiveScrollListener.js.map +1 -0
- package/dist/components/ReactFilter/hooks/useVisibleItemCount.d.ts +15 -0
- package/dist/components/ReactFilter/hooks/useVisibleItemCount.js +23 -0
- package/dist/components/ReactFilter/hooks/useVisibleItemCount.js.map +1 -0
- package/dist/components/ReactFilter/index.d.ts +7 -0
- package/dist/components/ReactFilter/locale/en-US.d.ts +29 -0
- package/dist/components/ReactFilter/locale/en-US.js +32 -0
- package/dist/components/ReactFilter/locale/en-US.js.map +1 -0
- package/dist/components/ReactFilter/locale/index.d.ts +59 -0
- package/dist/components/ReactFilter/locale/zh-CN.d.ts +29 -0
- package/dist/components/ReactFilter/locale/zh-CN.js +32 -0
- package/dist/components/ReactFilter/locale/zh-CN.js.map +1 -0
- package/dist/components/ReactFilter/normalizeFilterList.d.ts +12 -0
- package/dist/components/ReactFilter/normalizeFilterList.js +14 -0
- package/dist/components/ReactFilter/normalizeFilterList.js.map +1 -0
- package/dist/components/ReactFilter/pickSelectValues.d.ts +16 -0
- package/dist/components/ReactFilter/pickSelectValues.js +5 -0
- package/dist/components/ReactFilter/pickSelectValues.js.map +1 -0
- package/dist/components/ReactFilter/style.module.scss.js +75 -0
- package/dist/components/ReactFilter/style.module.scss.js.map +1 -0
- package/dist/components/ReactFilter/types.d.ts +10 -0
- package/dist/components/ReactFilter/useSearchParamsValue.d.ts +34 -0
- package/dist/components/ReactFilter/useSearchParamsValue.js +48 -0
- package/dist/components/ReactFilter/useSearchParamsValue.js.map +1 -0
- package/dist/components/ReactFilter/utils/getMobilePopupMetrics.d.ts +8 -0
- package/dist/components/ReactFilter/utils/getMobilePopupMetrics.js +26 -0
- package/dist/components/ReactFilter/utils/getMobilePopupMetrics.js.map +1 -0
- package/dist/components/ReactFilter/withFieldItem.d.ts +9 -0
- package/dist/components/ReactFilter/withFieldItem.js +178 -0
- package/dist/components/ReactFilter/withFieldItem.js.map +1 -0
- package/dist/components/ReactFilter/withFilterValue.d.ts +6 -0
- package/dist/components/ReactFilter/withFilterValue.js +23 -0
- package/dist/components/ReactFilter/withFilterValue.js.map +1 -0
- package/dist/components/ReactFilter/withLocale.d.ts +4 -0
- package/dist/components/ReactFilter/withLocale.js +15 -0
- package/dist/components/ReactFilter/withLocale.js.map +1 -0
- package/dist/components/Tour/AppTour/index.js +4 -4
- package/dist/components/Tour/AppTour/index.js.map +1 -1
- package/dist/components/Upload/index.js +29 -29
- package/dist/components/Upload/index.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +566 -500
- package/dist/index.js.map +1 -1
- package/dist/marsun-components-core.css +1 -1
- package/dist/node_modules/@ant-design/colors/es/generate.js +75 -0
- package/dist/node_modules/@ant-design/colors/es/generate.js.map +1 -0
- package/dist/node_modules/@ant-design/colors/es/presets.js +6 -0
- package/dist/node_modules/@ant-design/colors/es/presets.js.map +1 -0
- package/dist/node_modules/@ant-design/fast-color/es/FastColor.js +327 -0
- package/dist/node_modules/@ant-design/fast-color/es/FastColor.js.map +1 -0
- package/dist/node_modules/@ant-design/icons/es/components/AntdIcon.js +42 -0
- package/dist/node_modules/@ant-design/icons/es/components/AntdIcon.js.map +1 -0
- package/dist/node_modules/@ant-design/icons/es/components/Context.js +6 -0
- package/dist/node_modules/@ant-design/icons/es/components/Context.js.map +1 -0
- package/dist/node_modules/@ant-design/icons/es/components/IconBase.js +46 -0
- package/dist/node_modules/@ant-design/icons/es/components/IconBase.js.map +1 -0
- package/dist/node_modules/@ant-design/icons/es/components/twoTonePrimaryColor.js +19 -0
- package/dist/node_modules/@ant-design/icons/es/components/twoTonePrimaryColor.js.map +1 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CheckOutlined.js +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CheckOutlined.js.map +1 -0
- package/dist/node_modules/@ant-design/icons/es/icons/DownOutlined.js +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/DownOutlined.js.map +1 -0
- package/dist/node_modules/@ant-design/icons/es/icons/UpOutlined.js +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/UpOutlined.js.map +1 -0
- package/dist/node_modules/@ant-design/icons/es/utils.js +130 -0
- package/dist/node_modules/@ant-design/icons/es/utils.js.map +1 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckOutlined.js +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckOutlined.js.map +1 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/DownOutlined.js +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/DownOutlined.js.map +1 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/UpOutlined.js +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/UpOutlined.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +22 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +26 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +14 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +11 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +15 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js.map +1 -0
- package/dist/node_modules/@formatjs/ecma402-abstract/lib/utils.js +45 -0
- package/dist/node_modules/@formatjs/ecma402-abstract/lib/utils.js.map +1 -0
- package/dist/node_modules/@formatjs/fast-memoize/lib/index.js +52 -0
- package/dist/node_modules/@formatjs/fast-memoize/lib/index.js.map +1 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/date-time-pattern-generator.js +42 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/date-time-pattern-generator.js.map +1 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/error.js +8 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/error.js.map +1 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/index.js +39 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/index.js.map +1 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/parser.js +586 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/parser.js.map +1 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/regex.generated.js +5 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/regex.generated.js.map +1 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/time-data.generated.js +1419 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/time-data.generated.js.map +1 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/types.js +57 -0
- package/dist/node_modules/@formatjs/icu-messageformat-parser/lib/types.js.map +1 -0
- package/dist/node_modules/@formatjs/icu-skeleton-parser/lib/date-time.js +113 -0
- package/dist/node_modules/@formatjs/icu-skeleton-parser/lib/date-time.js.map +1 -0
- package/dist/node_modules/@formatjs/icu-skeleton-parser/lib/number.js +219 -0
- package/dist/node_modules/@formatjs/icu-skeleton-parser/lib/number.js.map +1 -0
- package/dist/node_modules/@formatjs/icu-skeleton-parser/lib/regex.generated.js +5 -0
- package/dist/node_modules/@formatjs/icu-skeleton-parser/lib/regex.generated.js.map +1 -0
- package/dist/node_modules/@formatjs/intl/lib/src/create-intl.js +45 -0
- package/dist/node_modules/@formatjs/intl/lib/src/create-intl.js.map +1 -0
- package/dist/node_modules/@formatjs/intl/lib/src/dateTime.js +94 -0
- package/dist/node_modules/@formatjs/intl/lib/src/dateTime.js.map +1 -0
- package/dist/node_modules/@formatjs/intl/lib/src/displayName.js +25 -0
- package/dist/node_modules/@formatjs/intl/lib/src/displayName.js.map +1 -0
- package/dist/node_modules/@formatjs/intl/lib/src/error.js +96 -0
- package/dist/node_modules/@formatjs/intl/lib/src/error.js.map +1 -0
- package/dist/node_modules/@formatjs/intl/lib/src/list.js +48 -0
- package/dist/node_modules/@formatjs/intl/lib/src/list.js.map +1 -0
- package/dist/node_modules/@formatjs/intl/lib/src/message.js +70 -0
- package/dist/node_modules/@formatjs/intl/lib/src/message.js.map +1 -0
- package/dist/node_modules/@formatjs/intl/lib/src/number.js +58 -0
- package/dist/node_modules/@formatjs/intl/lib/src/number.js.map +1 -0
- package/dist/node_modules/@formatjs/intl/lib/src/plural.js +21 -0
- package/dist/node_modules/@formatjs/intl/lib/src/plural.js.map +1 -0
- package/dist/node_modules/@formatjs/intl/lib/src/relativeTime.js +27 -0
- package/dist/node_modules/@formatjs/intl/lib/src/relativeTime.js.map +1 -0
- package/dist/node_modules/@formatjs/intl/lib/src/utils.js +126 -0
- package/dist/node_modules/@formatjs/intl/lib/src/utils.js.map +1 -0
- package/dist/node_modules/@kne/global-context/dist/index.modern.js +62 -0
- package/dist/node_modules/@kne/global-context/dist/index.modern.js.map +1 -0
- package/dist/node_modules/@kne/react-fetch/dist/index.modern.js +483 -0
- package/dist/node_modules/@kne/react-fetch/dist/index.modern.js.map +1 -0
- package/dist/node_modules/@kne/react-intl/dist/index.modern.js +173 -0
- package/dist/node_modules/@kne/react-intl/dist/index.modern.js.map +1 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/index.js +9 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/index.js.map +1 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/src/components/createFormattedComponent.js +36 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/src/components/createFormattedComponent.js.map +1 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/src/components/createIntl.js +49 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/src/components/createIntl.js.map +1 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/src/components/injectIntl.js +10 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/src/components/injectIntl.js.map +1 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/src/components/provider.js +49 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/src/components/provider.js.map +1 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/src/components/useIntl.js +11 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/src/components/useIntl.js.map +1 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/src/utils.js +35 -0
- package/dist/node_modules/@kne/react-intl/node_modules/react-intl/lib/src/utils.js.map +1 -0
- package/dist/node_modules/@kne/responsive-utils/dist/index.modern.js +239 -0
- package/dist/node_modules/@kne/responsive-utils/dist/index.modern.js.map +1 -0
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +71 -0
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js.map +1 -0
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +96 -0
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js.map +1 -0
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +79 -0
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +11 -0
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js.map +1 -0
- package/dist/node_modules/intl-messageformat/lib/src/core.js +176 -0
- package/dist/node_modules/intl-messageformat/lib/src/core.js.map +1 -0
- package/dist/node_modules/intl-messageformat/lib/src/error.js +53 -0
- package/dist/node_modules/intl-messageformat/lib/src/error.js.map +1 -0
- package/dist/node_modules/intl-messageformat/lib/src/formatters.js +121 -0
- package/dist/node_modules/intl-messageformat/lib/src/formatters.js.map +1 -0
- package/dist/node_modules/lodash/_DataView.js +13 -0
- package/dist/node_modules/lodash/_DataView.js.map +1 -0
- package/dist/node_modules/lodash/_Hash.js +23 -0
- package/dist/node_modules/lodash/_Hash.js.map +1 -0
- package/dist/node_modules/lodash/_ListCache.js +23 -0
- package/dist/node_modules/lodash/_ListCache.js.map +1 -0
- package/dist/node_modules/lodash/_Map.js +13 -0
- package/dist/node_modules/lodash/_Map.js.map +1 -0
- package/dist/node_modules/lodash/_MapCache.js +23 -0
- package/dist/node_modules/lodash/_MapCache.js.map +1 -0
- package/dist/node_modules/lodash/_Promise.js +13 -0
- package/dist/node_modules/lodash/_Promise.js.map +1 -0
- package/dist/node_modules/lodash/_Set.js +13 -0
- package/dist/node_modules/lodash/_Set.js.map +1 -0
- package/dist/node_modules/lodash/_SetCache.js +19 -0
- package/dist/node_modules/lodash/_SetCache.js.map +1 -0
- package/dist/node_modules/lodash/_Stack.js +21 -0
- package/dist/node_modules/lodash/_Stack.js.map +1 -0
- package/dist/node_modules/lodash/_Symbol.js +12 -0
- package/dist/node_modules/lodash/_Symbol.js.map +1 -0
- package/dist/node_modules/lodash/_Uint8Array.js +12 -0
- package/dist/node_modules/lodash/_Uint8Array.js.map +1 -0
- package/dist/node_modules/lodash/_WeakMap.js +13 -0
- package/dist/node_modules/lodash/_WeakMap.js.map +1 -0
- package/dist/node_modules/lodash/_apply.js +23 -0
- package/dist/node_modules/lodash/_apply.js.map +1 -0
- package/dist/node_modules/lodash/_arrayEach.js +15 -0
- package/dist/node_modules/lodash/_arrayEach.js.map +1 -0
- package/dist/node_modules/lodash/_arrayFilter.js +17 -0
- package/dist/node_modules/lodash/_arrayFilter.js.map +1 -0
- package/dist/node_modules/lodash/_arrayLikeKeys.js +27 -0
- package/dist/node_modules/lodash/_arrayLikeKeys.js.map +1 -0
- package/dist/node_modules/lodash/_arrayMap.js +15 -0
- package/dist/node_modules/lodash/_arrayMap.js.map +1 -0
- package/dist/node_modules/lodash/_arrayPush.js +15 -0
- package/dist/node_modules/lodash/_arrayPush.js.map +1 -0
- package/dist/node_modules/lodash/_arraySome.js +16 -0
- package/dist/node_modules/lodash/_arraySome.js.map +1 -0
- package/dist/node_modules/lodash/_assignMergeValue.js +16 -0
- package/dist/node_modules/lodash/_assignMergeValue.js.map +1 -0
- package/dist/node_modules/lodash/_assignValue.js +17 -0
- package/dist/node_modules/lodash/_assignValue.js.map +1 -0
- package/dist/node_modules/lodash/_assocIndexOf.js +18 -0
- package/dist/node_modules/lodash/_assocIndexOf.js.map +1 -0
- package/dist/node_modules/lodash/_baseAssign.js +16 -0
- package/dist/node_modules/lodash/_baseAssign.js.map +1 -0
- package/dist/node_modules/lodash/_baseAssignIn.js +16 -0
- package/dist/node_modules/lodash/_baseAssignIn.js.map +1 -0
- package/dist/node_modules/lodash/_baseAssignValue.js +20 -0
- package/dist/node_modules/lodash/_baseAssignValue.js.map +1 -0
- package/dist/node_modules/lodash/_baseClone.js +71 -0
- package/dist/node_modules/lodash/_baseClone.js.map +1 -0
- package/dist/node_modules/lodash/_baseCreate.js +24 -0
- package/dist/node_modules/lodash/_baseCreate.js.map +1 -0
- package/dist/node_modules/lodash/_baseFlatten.js +21 -0
- package/dist/node_modules/lodash/_baseFlatten.js.map +1 -0
- package/dist/node_modules/lodash/_baseFor.js +12 -0
- package/dist/node_modules/lodash/_baseFor.js.map +1 -0
- package/dist/node_modules/lodash/_baseForOwn.js +16 -0
- package/dist/node_modules/lodash/_baseForOwn.js.map +1 -0
- package/dist/node_modules/lodash/_baseGet.js +19 -0
- package/dist/node_modules/lodash/_baseGet.js.map +1 -0
- package/dist/node_modules/lodash/_baseGetAllKeys.js +17 -0
- package/dist/node_modules/lodash/_baseGetAllKeys.js.map +1 -0
- package/dist/node_modules/lodash/_baseGetTag.js +17 -0
- package/dist/node_modules/lodash/_baseGetTag.js.map +1 -0
- package/dist/node_modules/lodash/_baseHasIn.js +13 -0
- package/dist/node_modules/lodash/_baseHasIn.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsArguments.js +16 -0
- package/dist/node_modules/lodash/_baseIsArguments.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsEqual.js +16 -0
- package/dist/node_modules/lodash/_baseIsEqual.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsEqualDeep.js +39 -0
- package/dist/node_modules/lodash/_baseIsEqualDeep.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsMap.js +16 -0
- package/dist/node_modules/lodash/_baseIsMap.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsMatch.js +38 -0
- package/dist/node_modules/lodash/_baseIsMatch.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsNative.js +23 -0
- package/dist/node_modules/lodash/_baseIsNative.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsSet.js +16 -0
- package/dist/node_modules/lodash/_baseIsSet.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsTypedArray.js +18 -0
- package/dist/node_modules/lodash/_baseIsTypedArray.js.map +1 -0
- package/dist/node_modules/lodash/_baseIteratee.js +19 -0
- package/dist/node_modules/lodash/_baseIteratee.js.map +1 -0
- package/dist/node_modules/lodash/_baseKeys.js +21 -0
- package/dist/node_modules/lodash/_baseKeys.js.map +1 -0
- package/dist/node_modules/lodash/_baseKeysIn.js +22 -0
- package/dist/node_modules/lodash/_baseKeysIn.js.map +1 -0
- package/dist/node_modules/lodash/_baseMatches.js +20 -0
- package/dist/node_modules/lodash/_baseMatches.js.map +1 -0
- package/dist/node_modules/lodash/_baseMatchesProperty.js +24 -0
- package/dist/node_modules/lodash/_baseMatchesProperty.js.map +1 -0
- package/dist/node_modules/lodash/_baseMerge.js +28 -0
- package/dist/node_modules/lodash/_baseMerge.js.map +1 -0
- package/dist/node_modules/lodash/_baseMergeDeep.js +39 -0
- package/dist/node_modules/lodash/_baseMergeDeep.js.map +1 -0
- package/dist/node_modules/lodash/_basePick.js +18 -0
- package/dist/node_modules/lodash/_basePick.js.map +1 -0
- package/dist/node_modules/lodash/_basePickBy.js +21 -0
- package/dist/node_modules/lodash/_basePickBy.js.map +1 -0
- package/dist/node_modules/lodash/_baseProperty.js +15 -0
- package/dist/node_modules/lodash/_baseProperty.js.map +1 -0
- package/dist/node_modules/lodash/_basePropertyDeep.js +17 -0
- package/dist/node_modules/lodash/_basePropertyDeep.js.map +1 -0
- package/dist/node_modules/lodash/_baseRest.js +17 -0
- package/dist/node_modules/lodash/_baseRest.js.map +1 -0
- package/dist/node_modules/lodash/_baseSet.js +32 -0
- package/dist/node_modules/lodash/_baseSet.js.map +1 -0
- package/dist/node_modules/lodash/_baseSetToString.js +21 -0
- package/dist/node_modules/lodash/_baseSetToString.js.map +1 -0
- package/dist/node_modules/lodash/_baseSlice.js +17 -0
- package/dist/node_modules/lodash/_baseSlice.js.map +1 -0
- package/dist/node_modules/lodash/_baseTimes.js +15 -0
- package/dist/node_modules/lodash/_baseTimes.js.map +1 -0
- package/dist/node_modules/lodash/_baseToString.js +25 -0
- package/dist/node_modules/lodash/_baseToString.js.map +1 -0
- package/dist/node_modules/lodash/_baseUnary.js +15 -0
- package/dist/node_modules/lodash/_baseUnary.js.map +1 -0
- package/dist/node_modules/lodash/_baseUnset.js +28 -0
- package/dist/node_modules/lodash/_baseUnset.js.map +1 -0
- package/dist/node_modules/lodash/_cacheHas.js +13 -0
- package/dist/node_modules/lodash/_cacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_castPath.js +18 -0
- package/dist/node_modules/lodash/_castPath.js.map +1 -0
- package/dist/node_modules/lodash/_cloneArrayBuffer.js +16 -0
- package/dist/node_modules/lodash/_cloneArrayBuffer.js.map +1 -0
- package/dist/node_modules/lodash/_cloneBuffer.js +20 -0
- package/dist/node_modules/lodash/_cloneBuffer.js.map +1 -0
- package/dist/node_modules/lodash/_cloneDataView.js +16 -0
- package/dist/node_modules/lodash/_cloneDataView.js.map +1 -0
- package/dist/node_modules/lodash/_cloneRegExp.js +15 -0
- package/dist/node_modules/lodash/_cloneRegExp.js.map +1 -0
- package/dist/node_modules/lodash/_cloneSymbol.js +15 -0
- package/dist/node_modules/lodash/_cloneSymbol.js.map +1 -0
- package/dist/node_modules/lodash/_cloneTypedArray.js +16 -0
- package/dist/node_modules/lodash/_cloneTypedArray.js.map +1 -0
- package/dist/node_modules/lodash/_copyArray.js +16 -0
- package/dist/node_modules/lodash/_copyArray.js.map +1 -0
- package/dist/node_modules/lodash/_copyObject.js +22 -0
- package/dist/node_modules/lodash/_copyObject.js.map +1 -0
- package/dist/node_modules/lodash/_copySymbols.js +16 -0
- package/dist/node_modules/lodash/_copySymbols.js.map +1 -0
- package/dist/node_modules/lodash/_copySymbolsIn.js +16 -0
- package/dist/node_modules/lodash/_copySymbolsIn.js.map +1 -0
- package/dist/node_modules/lodash/_coreJsData.js +12 -0
- package/dist/node_modules/lodash/_coreJsData.js.map +1 -0
- package/dist/node_modules/lodash/_createAssigner.js +23 -0
- package/dist/node_modules/lodash/_createAssigner.js.map +1 -0
- package/dist/node_modules/lodash/_createBaseFor.js +20 -0
- package/dist/node_modules/lodash/_createBaseFor.js.map +1 -0
- package/dist/node_modules/lodash/_customOmitClone.js +15 -0
- package/dist/node_modules/lodash/_customOmitClone.js.map +1 -0
- package/dist/node_modules/lodash/_defineProperty.js +18 -0
- package/dist/node_modules/lodash/_defineProperty.js.map +1 -0
- package/dist/node_modules/lodash/_equalArrays.js +47 -0
- package/dist/node_modules/lodash/_equalArrays.js.map +1 -0
- package/dist/node_modules/lodash/_equalByTag.js +52 -0
- package/dist/node_modules/lodash/_equalByTag.js.map +1 -0
- package/dist/node_modules/lodash/_equalObjects.js +43 -0
- package/dist/node_modules/lodash/_equalObjects.js.map +1 -0
- package/dist/node_modules/lodash/_flatRest.js +17 -0
- package/dist/node_modules/lodash/_flatRest.js.map +1 -0
- package/dist/node_modules/lodash/_freeGlobal.js +12 -0
- package/dist/node_modules/lodash/_freeGlobal.js.map +1 -0
- package/dist/node_modules/lodash/_getAllKeys.js +17 -0
- package/dist/node_modules/lodash/_getAllKeys.js.map +1 -0
- package/dist/node_modules/lodash/_getAllKeysIn.js +17 -0
- package/dist/node_modules/lodash/_getAllKeysIn.js.map +1 -0
- package/dist/node_modules/lodash/_getMapData.js +16 -0
- package/dist/node_modules/lodash/_getMapData.js.map +1 -0
- package/dist/node_modules/lodash/_getMatchData.js +20 -0
- package/dist/node_modules/lodash/_getMatchData.js.map +1 -0
- package/dist/node_modules/lodash/_getNative.js +17 -0
- package/dist/node_modules/lodash/_getNative.js.map +1 -0
- package/dist/node_modules/lodash/_getPrototype.js +12 -0
- package/dist/node_modules/lodash/_getPrototype.js.map +1 -0
- package/dist/node_modules/lodash/_getRawTag.js +22 -0
- package/dist/node_modules/lodash/_getRawTag.js.map +1 -0
- package/dist/node_modules/lodash/_getSymbols.js +17 -0
- package/dist/node_modules/lodash/_getSymbols.js.map +1 -0
- package/dist/node_modules/lodash/_getSymbolsIn.js +19 -0
- package/dist/node_modules/lodash/_getSymbolsIn.js.map +1 -0
- package/dist/node_modules/lodash/_getTag.js +34 -0
- package/dist/node_modules/lodash/_getTag.js.map +1 -0
- package/dist/node_modules/lodash/_getValue.js +13 -0
- package/dist/node_modules/lodash/_getValue.js.map +1 -0
- package/dist/node_modules/lodash/_hasPath.js +27 -0
- package/dist/node_modules/lodash/_hasPath.js.map +1 -0
- package/dist/node_modules/lodash/_hashClear.js +15 -0
- package/dist/node_modules/lodash/_hashClear.js.map +1 -0
- package/dist/node_modules/lodash/_hashDelete.js +14 -0
- package/dist/node_modules/lodash/_hashDelete.js.map +1 -0
- package/dist/node_modules/lodash/_hashGet.js +20 -0
- package/dist/node_modules/lodash/_hashGet.js.map +1 -0
- package/dist/node_modules/lodash/_hashHas.js +16 -0
- package/dist/node_modules/lodash/_hashHas.js.map +1 -0
- package/dist/node_modules/lodash/_hashSet.js +16 -0
- package/dist/node_modules/lodash/_hashSet.js.map +1 -0
- package/dist/node_modules/lodash/_initCloneArray.js +15 -0
- package/dist/node_modules/lodash/_initCloneArray.js.map +1 -0
- package/dist/node_modules/lodash/_initCloneByTag.js +49 -0
- package/dist/node_modules/lodash/_initCloneByTag.js.map +1 -0
- package/dist/node_modules/lodash/_initCloneObject.js +17 -0
- package/dist/node_modules/lodash/_initCloneObject.js.map +1 -0
- package/dist/node_modules/lodash/_isFlattenable.js +17 -0
- package/dist/node_modules/lodash/_isFlattenable.js.map +1 -0
- package/dist/node_modules/lodash/_isIndex.js +15 -0
- package/dist/node_modules/lodash/_isIndex.js.map +1 -0
- package/dist/node_modules/lodash/_isIterateeCall.js +21 -0
- package/dist/node_modules/lodash/_isIterateeCall.js.map +1 -0
- package/dist/node_modules/lodash/_isKey.js +19 -0
- package/dist/node_modules/lodash/_isKey.js.map +1 -0
- package/dist/node_modules/lodash/_isKeyable.js +14 -0
- package/dist/node_modules/lodash/_isKeyable.js.map +1 -0
- package/dist/node_modules/lodash/_isMasked.js +18 -0
- package/dist/node_modules/lodash/_isMasked.js.map +1 -0
- package/dist/node_modules/lodash/_isPrototype.js +15 -0
- package/dist/node_modules/lodash/_isPrototype.js.map +1 -0
- package/dist/node_modules/lodash/_isStrictComparable.js +15 -0
- package/dist/node_modules/lodash/_isStrictComparable.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheClear.js +13 -0
- package/dist/node_modules/lodash/_listCacheClear.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheDelete.js +19 -0
- package/dist/node_modules/lodash/_listCacheDelete.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheGet.js +16 -0
- package/dist/node_modules/lodash/_listCacheGet.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheHas.js +15 -0
- package/dist/node_modules/lodash/_listCacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheSet.js +16 -0
- package/dist/node_modules/lodash/_listCacheSet.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheClear.js +21 -0
- package/dist/node_modules/lodash/_mapCacheClear.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheDelete.js +16 -0
- package/dist/node_modules/lodash/_mapCacheDelete.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheGet.js +15 -0
- package/dist/node_modules/lodash/_mapCacheGet.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheHas.js +15 -0
- package/dist/node_modules/lodash/_mapCacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheSet.js +16 -0
- package/dist/node_modules/lodash/_mapCacheSet.js.map +1 -0
- package/dist/node_modules/lodash/_mapToArray.js +16 -0
- package/dist/node_modules/lodash/_mapToArray.js.map +1 -0
- package/dist/node_modules/lodash/_matchesStrictComparable.js +15 -0
- package/dist/node_modules/lodash/_matchesStrictComparable.js.map +1 -0
- package/dist/node_modules/lodash/_memoizeCapped.js +18 -0
- package/dist/node_modules/lodash/_memoizeCapped.js.map +1 -0
- package/dist/node_modules/lodash/_nativeCreate.js +12 -0
- package/dist/node_modules/lodash/_nativeCreate.js.map +1 -0
- package/dist/node_modules/lodash/_nativeKeys.js +12 -0
- package/dist/node_modules/lodash/_nativeKeys.js.map +1 -0
- package/dist/node_modules/lodash/_nativeKeysIn.js +17 -0
- package/dist/node_modules/lodash/_nativeKeysIn.js.map +1 -0
- package/dist/node_modules/lodash/_nodeUtil.js +20 -0
- package/dist/node_modules/lodash/_nodeUtil.js.map +1 -0
- package/dist/node_modules/lodash/_objectToString.js +14 -0
- package/dist/node_modules/lodash/_objectToString.js.map +1 -0
- package/dist/node_modules/lodash/_overArg.js +15 -0
- package/dist/node_modules/lodash/_overArg.js.map +1 -0
- package/dist/node_modules/lodash/_overRest.js +22 -0
- package/dist/node_modules/lodash/_overRest.js.map +1 -0
- package/dist/node_modules/lodash/_parent.js +16 -0
- package/dist/node_modules/lodash/_parent.js.map +1 -0
- package/dist/node_modules/lodash/_root.js +12 -0
- package/dist/node_modules/lodash/_root.js.map +1 -0
- package/dist/node_modules/lodash/_safeGet.js +14 -0
- package/dist/node_modules/lodash/_safeGet.js.map +1 -0
- package/dist/node_modules/lodash/_setCacheAdd.js +14 -0
- package/dist/node_modules/lodash/_setCacheAdd.js.map +1 -0
- package/dist/node_modules/lodash/_setCacheHas.js +13 -0
- package/dist/node_modules/lodash/_setCacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_setToArray.js +16 -0
- package/dist/node_modules/lodash/_setToArray.js.map +1 -0
- package/dist/node_modules/lodash/_setToString.js +13 -0
- package/dist/node_modules/lodash/_setToString.js.map +1 -0
- package/dist/node_modules/lodash/_shortOut.js +23 -0
- package/dist/node_modules/lodash/_shortOut.js.map +1 -0
- package/dist/node_modules/lodash/_stackClear.js +15 -0
- package/dist/node_modules/lodash/_stackClear.js.map +1 -0
- package/dist/node_modules/lodash/_stackDelete.js +14 -0
- package/dist/node_modules/lodash/_stackDelete.js.map +1 -0
- package/dist/node_modules/lodash/_stackGet.js +13 -0
- package/dist/node_modules/lodash/_stackGet.js.map +1 -0
- package/dist/node_modules/lodash/_stackHas.js +13 -0
- package/dist/node_modules/lodash/_stackHas.js.map +1 -0
- package/dist/node_modules/lodash/_stackSet.js +24 -0
- package/dist/node_modules/lodash/_stackSet.js.map +1 -0
- package/dist/node_modules/lodash/_stringToPath.js +17 -0
- package/dist/node_modules/lodash/_stringToPath.js.map +1 -0
- package/dist/node_modules/lodash/_toKey.js +18 -0
- package/dist/node_modules/lodash/_toKey.js.map +1 -0
- package/dist/node_modules/lodash/_toSource.js +24 -0
- package/dist/node_modules/lodash/_toSource.js.map +1 -0
- package/dist/node_modules/lodash/clone.js +15 -0
- package/dist/node_modules/lodash/clone.js.map +1 -0
- package/dist/node_modules/lodash/constant.js +15 -0
- package/dist/node_modules/lodash/constant.js.map +1 -0
- package/dist/node_modules/lodash/eq.js +13 -0
- package/dist/node_modules/lodash/eq.js.map +1 -0
- package/dist/node_modules/lodash/flatten.js +16 -0
- package/dist/node_modules/lodash/flatten.js.map +1 -0
- package/dist/node_modules/lodash/get.js +16 -0
- package/dist/node_modules/lodash/get.js.map +1 -0
- package/dist/node_modules/lodash/hasIn.js +16 -0
- package/dist/node_modules/lodash/hasIn.js.map +1 -0
- package/dist/node_modules/lodash/identity.js +13 -0
- package/dist/node_modules/lodash/identity.js.map +1 -0
- package/dist/node_modules/lodash/isArguments.js +17 -0
- package/dist/node_modules/lodash/isArguments.js.map +1 -0
- package/dist/node_modules/lodash/isArray.js +11 -0
- package/dist/node_modules/lodash/isArray.js.map +1 -0
- package/dist/node_modules/lodash/isArrayLike.js +16 -0
- package/dist/node_modules/lodash/isArrayLike.js.map +1 -0
- package/dist/node_modules/lodash/isArrayLikeObject.js +16 -0
- package/dist/node_modules/lodash/isArrayLikeObject.js.map +1 -0
- package/dist/node_modules/lodash/isBuffer.js +15 -0
- package/dist/node_modules/lodash/isBuffer.js.map +1 -0
- package/dist/node_modules/lodash/isEqual.js +15 -0
- package/dist/node_modules/lodash/isEqual.js.map +1 -0
- package/dist/node_modules/lodash/isFunction.js +19 -0
- package/dist/node_modules/lodash/isFunction.js.map +1 -0
- package/dist/node_modules/lodash/isLength.js +14 -0
- package/dist/node_modules/lodash/isLength.js.map +1 -0
- package/dist/node_modules/lodash/isMap.js +14 -0
- package/dist/node_modules/lodash/isMap.js.map +1 -0
- package/dist/node_modules/lodash/isNumber.js +16 -0
- package/dist/node_modules/lodash/isNumber.js.map +1 -0
- package/dist/node_modules/lodash/isObject.js +14 -0
- package/dist/node_modules/lodash/isObject.js.map +1 -0
- package/dist/node_modules/lodash/isObjectLike.js +13 -0
- package/dist/node_modules/lodash/isObjectLike.js.map +1 -0
- package/dist/node_modules/lodash/isPlainObject.js +23 -0
- package/dist/node_modules/lodash/isPlainObject.js.map +1 -0
- package/dist/node_modules/lodash/isSet.js +14 -0
- package/dist/node_modules/lodash/isSet.js.map +1 -0
- package/dist/node_modules/lodash/isSymbol.js +16 -0
- package/dist/node_modules/lodash/isSymbol.js.map +1 -0
- package/dist/node_modules/lodash/isTypedArray.js +14 -0
- package/dist/node_modules/lodash/isTypedArray.js.map +1 -0
- package/dist/node_modules/lodash/keys.js +17 -0
- package/dist/node_modules/lodash/keys.js.map +1 -0
- package/dist/node_modules/lodash/keysIn.js +17 -0
- package/dist/node_modules/lodash/keysIn.js.map +1 -0
- package/dist/node_modules/lodash/last.js +14 -0
- package/dist/node_modules/lodash/last.js.map +1 -0
- package/dist/node_modules/lodash/memoize.js +24 -0
- package/dist/node_modules/lodash/memoize.js.map +1 -0
- package/dist/node_modules/lodash/merge.js +15 -0
- package/dist/node_modules/lodash/merge.js.map +1 -0
- package/dist/node_modules/lodash/omit.js +30 -0
- package/dist/node_modules/lodash/omit.js.map +1 -0
- package/dist/node_modules/lodash/pick.js +15 -0
- package/dist/node_modules/lodash/pick.js.map +1 -0
- package/dist/node_modules/lodash/property.js +18 -0
- package/dist/node_modules/lodash/property.js.map +1 -0
- package/dist/node_modules/lodash/stubArray.js +13 -0
- package/dist/node_modules/lodash/stubArray.js.map +1 -0
- package/dist/node_modules/lodash/stubFalse.js +13 -0
- package/dist/node_modules/lodash/stubFalse.js.map +1 -0
- package/dist/node_modules/lodash/toPlainObject.js +16 -0
- package/dist/node_modules/lodash/toPlainObject.js.map +1 -0
- package/dist/node_modules/lodash/toString.js +15 -0
- package/dist/node_modules/lodash/toString.js.map +1 -0
- package/dist/node_modules/lodash/transform.js +31 -0
- package/dist/node_modules/lodash/transform.js.map +1 -0
- package/dist/node_modules/object-hash/dist/object_hash.js +783 -0
- package/dist/node_modules/object-hash/dist/object_hash.js.map +1 -0
- package/dist/node_modules/rc-util/es/Dom/canUseDom.js +7 -0
- package/dist/node_modules/rc-util/es/Dom/canUseDom.js.map +1 -0
- package/dist/node_modules/rc-util/es/Dom/contains.js +16 -0
- package/dist/node_modules/rc-util/es/Dom/contains.js.map +1 -0
- package/dist/node_modules/rc-util/es/Dom/dynamicCSS.js +80 -0
- package/dist/node_modules/rc-util/es/Dom/dynamicCSS.js.map +1 -0
- package/dist/node_modules/rc-util/es/Dom/shadow.js +15 -0
- package/dist/node_modules/rc-util/es/Dom/shadow.js.map +1 -0
- package/dist/node_modules/rc-util/es/warning.js +45 -0
- package/dist/node_modules/rc-util/es/warning.js.map +1 -0
- package/dist/node_modules/tslib/tslib.es6.js +45 -0
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/styles/global.css +1 -1
- package/dist/utils/date.d.ts +5 -0
- package/dist/utils/date.js +27 -19
- package/dist/utils/date.js.map +1 -1
- package/package.json +5 -2
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import y from "../PopoverItem.js";
|
|
3
|
+
import d from "../common/TypeDateRangePickerField/index.js";
|
|
4
|
+
import p from "../../../_virtual/get.js";
|
|
5
|
+
import g from "../style.module.scss.js";
|
|
6
|
+
import f from "dayjs";
|
|
7
|
+
import h from "../withLocale.js";
|
|
8
|
+
const R = h(({ label: s, value: i, onChange: v, ...n }) => /* @__PURE__ */ m(
|
|
9
|
+
y,
|
|
10
|
+
{
|
|
11
|
+
label: s,
|
|
12
|
+
value: i,
|
|
13
|
+
onChange: v,
|
|
14
|
+
onValidate: (r) => {
|
|
15
|
+
const o = r == null ? void 0 : r.value;
|
|
16
|
+
return (o == null ? void 0 : o.type) && Array.isArray(o == null ? void 0 : o.value) && o.value.length === 2;
|
|
17
|
+
},
|
|
18
|
+
children: ({ value: r, onChange: o }) => /* @__PURE__ */ m(
|
|
19
|
+
d,
|
|
20
|
+
{
|
|
21
|
+
...n,
|
|
22
|
+
inputReadOnly: !0,
|
|
23
|
+
className: g["filter-item-text"],
|
|
24
|
+
value: p(r, "value"),
|
|
25
|
+
onChange: (e) => {
|
|
26
|
+
const { format: a = "YYYY-MM-DD" } = n, t = (e == null ? void 0 : e.value) || [];
|
|
27
|
+
let l = "";
|
|
28
|
+
t[0] && !t[1] ? l = `${f(t[0]).format(a)}以后` : !t[0] && t[1] ? l = `${f(t[1]).format(a)}以前` : t[0] && t[1] && (l = `${f(t[0]).format(a)}~${f(t[1]).format(a)}`), o({
|
|
29
|
+
label: l,
|
|
30
|
+
value: e
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
)
|
|
35
|
+
}
|
|
36
|
+
));
|
|
37
|
+
export {
|
|
38
|
+
R as default
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=TypeDateRangePickerFilterItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TypeDateRangePickerFilterItem.js","sources":["../../../../src/components/ReactFilter/fields/TypeDateRangePickerFilterItem.jsx"],"sourcesContent":["// @ts-nocheck\nimport PopoverItem from '../PopoverItem';\nimport TypeDateRangePickerField from '../common/TypeDateRangePickerField';\nimport get from 'lodash/get';\nimport style from '../style.module.scss';\nimport dayjs from 'dayjs';\nimport withLocale from '../withLocale';\n\nconst TypeDateRangePickerFilterItem = withLocale(({ label, value, onChange, ...props }) => {\n return (\n <PopoverItem\n label={label}\n value={value}\n onChange={onChange}\n onValidate={(item) => {\n const itemValue = item?.value;\n return itemValue?.type && Array.isArray(itemValue?.value) && itemValue.value.length === 2;\n }}\n >\n {({ value, onChange }) => (\n <TypeDateRangePickerField\n {...props}\n inputReadOnly\n className={style['filter-item-text']}\n value={get(value, 'value')}\n onChange={(pickerValue) => {\n const { format = 'YYYY-MM-DD' } = props;\n const val = pickerValue?.value || [];\n let displayLabel = '';\n if (val[0] && !val[1]) {\n displayLabel = `${dayjs(val[0]).format(format)}以后`;\n } else if (!val[0] && val[1]) {\n displayLabel = `${dayjs(val[1]).format(format)}以前`;\n } else if (val[0] && val[1]) {\n displayLabel = `${dayjs(val[0]).format(format)}~${dayjs(val[1]).format(format)}`;\n }\n onChange({\n label: displayLabel,\n value: pickerValue,\n });\n }}\n />\n )}\n </PopoverItem>\n );\n});\n\nexport default TypeDateRangePickerFilterItem;\n"],"names":["TypeDateRangePickerFilterItem","withLocale","label","value","onChange","props","jsx","PopoverItem","item","itemValue","TypeDateRangePickerField","style","get","pickerValue","format","val","displayLabel","dayjs"],"mappings":";;;;;;;AAQA,MAAMA,IAAgCC,EAAW,CAAC,EAAE,OAAAC,GAAO,OAAAC,GAAO,UAAAC,GAAU,GAAGC,QAE3E,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,OAAAL;AAAA,IACA,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,YAAY,CAACI,MAAS;AACpB,YAAMC,IAAYD,KAAA,gBAAAA,EAAM;AACxB,cAAOC,KAAA,gBAAAA,EAAW,SAAQ,MAAM,QAAQA,KAAA,gBAAAA,EAAW,KAAK,KAAKA,EAAU,MAAM,WAAW;AAAA,IAC1F;AAAA,IAEC,WAAC,EAAE,OAAAN,GAAO,UAAAC,QACT,gBAAAE;AAAA,MAACI;AAAA,MAAA;AAAA,QACE,GAAGL;AAAA,QACJ,eAAa;AAAA,QACb,WAAWM,EAAM,kBAAkB;AAAA,QACnC,OAAOC,EAAIT,GAAO,OAAO;AAAA,QACzB,UAAU,CAACU,MAAgB;AACzB,gBAAM,EAAE,QAAAC,IAAS,aAAA,IAAiBT,GAC5BU,KAAMF,KAAA,gBAAAA,EAAa,UAAS,CAAA;AAClC,cAAIG,IAAe;AACnB,UAAID,EAAI,CAAC,KAAK,CAACA,EAAI,CAAC,IAClBC,IAAe,GAAGC,EAAMF,EAAI,CAAC,CAAC,EAAE,OAAOD,CAAM,CAAC,OACrC,CAACC,EAAI,CAAC,KAAKA,EAAI,CAAC,IACzBC,IAAe,GAAGC,EAAMF,EAAI,CAAC,CAAC,EAAE,OAAOD,CAAM,CAAC,OACrCC,EAAI,CAAC,KAAKA,EAAI,CAAC,MACxBC,IAAe,GAAGC,EAAMF,EAAI,CAAC,CAAC,EAAE,OAAOD,CAAM,CAAC,IAAIG,EAAMF,EAAI,CAAC,CAAC,EAAE,OAAOD,CAAM,CAAC,KAEhFV,EAAS;AAAA,YACP,OAAOY;AAAA,YACP,OAAOH;AAAA,UAAA,CACR;AAAA,QACH;AAAA,MAAA;AAAA,IAAA;AAAA,EACF;AAAA,CAIP;"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export const InputFilterItem: import('@kne/react-intl/node_modules/@types/react').ForwardRefExoticComponent<object & {
|
|
2
|
+
locale?: string;
|
|
3
|
+
} & import('@kne/react-intl/node_modules/@types/react').RefAttributes<any>>;
|
|
4
|
+
export const NumberRangeFilterItem: import('@kne/react-intl/node_modules/@types/react').ForwardRefExoticComponent<object & {
|
|
5
|
+
locale?: string;
|
|
6
|
+
} & import('@kne/react-intl/node_modules/@types/react').RefAttributes<any>>;
|
|
7
|
+
export { default as DatePickerFilterItem } from './DatePickerFilterItem';
|
|
8
|
+
export { default as DateRangePickerFilterItem } from './DateRangePickerFilterItem';
|
|
9
|
+
export { default as TypeDateRangePickerFilterItem } from './TypeDateRangePickerFilterItem';
|
|
10
|
+
export const SuperSelectFilterItem: ({ value, onChange, interceptor, label, render, ...props }: {
|
|
11
|
+
[x: string]: any;
|
|
12
|
+
value: any;
|
|
13
|
+
onChange: any;
|
|
14
|
+
interceptor: any;
|
|
15
|
+
label: any;
|
|
16
|
+
render: any;
|
|
17
|
+
}) => import("react").JSX.Element;
|
|
18
|
+
export const SelectTableListFilterItem: ({ value, onChange, interceptor, label, render, ...props }: {
|
|
19
|
+
[x: string]: any;
|
|
20
|
+
value: any;
|
|
21
|
+
onChange: any;
|
|
22
|
+
interceptor: any;
|
|
23
|
+
label: any;
|
|
24
|
+
render: any;
|
|
25
|
+
}) => import("react").JSX.Element;
|
|
26
|
+
export { default as SelectTreeFilterItem } from './SelectTreeFilterItem';
|
|
27
|
+
export const SelectCascaderFilterItem: ({ value, onChange, interceptor, label, render, ...props }: {
|
|
28
|
+
[x: string]: any;
|
|
29
|
+
value: any;
|
|
30
|
+
onChange: any;
|
|
31
|
+
interceptor: any;
|
|
32
|
+
label: any;
|
|
33
|
+
render: any;
|
|
34
|
+
}) => import("react").JSX.Element;
|
|
35
|
+
export const SelectFunctionFilterItem: ({ value, onChange, interceptor, label, render, ...props }: {
|
|
36
|
+
[x: string]: any;
|
|
37
|
+
value: any;
|
|
38
|
+
onChange: any;
|
|
39
|
+
interceptor: any;
|
|
40
|
+
label: any;
|
|
41
|
+
render: any;
|
|
42
|
+
}) => import("react").JSX.Element;
|
|
43
|
+
export const SelectIndustryFilterItem: ({ value, onChange, interceptor, label, render, ...props }: {
|
|
44
|
+
[x: string]: any;
|
|
45
|
+
value: any;
|
|
46
|
+
onChange: any;
|
|
47
|
+
interceptor: any;
|
|
48
|
+
label: any;
|
|
49
|
+
render: any;
|
|
50
|
+
}) => import("react").JSX.Element;
|
|
51
|
+
export const SelectAddressFilterItem: ({ value, onChange, interceptor, label, render, ...props }: {
|
|
52
|
+
[x: string]: any;
|
|
53
|
+
value: any;
|
|
54
|
+
onChange: any;
|
|
55
|
+
interceptor: any;
|
|
56
|
+
label: any;
|
|
57
|
+
render: any;
|
|
58
|
+
}) => import("react").JSX.Element;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import "../../../node_modules/@kne/react-intl/dist/index.modern.js";
|
|
3
|
+
import e from "../withFieldItem.js";
|
|
4
|
+
import p from "./InputFilterItem.js";
|
|
5
|
+
import u from "./NumberRangeFilterItem.js";
|
|
6
|
+
import a from "../withLocale.js";
|
|
7
|
+
import s, { SelectTableList as n, SelectCascader as f } from "@kne/super-select";
|
|
8
|
+
import { SelectFunction as I, SelectIndustry as d, SelectAddress as F } from "@kne/super-select-plus";
|
|
9
|
+
import "@kne/super-select/dist/index.css";
|
|
10
|
+
import "@kne/super-select-plus/dist/index.css";
|
|
11
|
+
/* empty css */
|
|
12
|
+
import { default as G } from "./DatePickerFilterItem.js";
|
|
13
|
+
import { default as J } from "./DateRangePickerFilterItem.js";
|
|
14
|
+
import { default as O } from "./TypeDateRangePickerFilterItem.js";
|
|
15
|
+
import { default as U } from "./SelectTreeFilterItem.js";
|
|
16
|
+
import S from "../../../node_modules/@kne/react-intl/node_modules/react-intl/lib/src/components/useIntl.js";
|
|
17
|
+
import "../../../node_modules/@kne/react-intl/node_modules/react-intl/lib/index.js";
|
|
18
|
+
const r = (o) => a(({ placeholder: m, label: t, ...l }) => {
|
|
19
|
+
const { formatMessage: c } = S();
|
|
20
|
+
return /* @__PURE__ */ i(
|
|
21
|
+
o,
|
|
22
|
+
{
|
|
23
|
+
...l,
|
|
24
|
+
label: t,
|
|
25
|
+
placeholder: m || c({ id: "defaultInputPlaceholder" }, { label: t })
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}), C = r(p), N = r(u), $ = e(s, { forcePopup: !0 }), j = e(n, { forcePopup: !0 }), M = e(f, { forcePopup: !0 }), q = e(I, { forcePopup: !0 }), v = e(d, { forcePopup: !0 }), z = e(F, { forcePopup: !0 });
|
|
29
|
+
export {
|
|
30
|
+
G as DatePickerFilterItem,
|
|
31
|
+
J as DateRangePickerFilterItem,
|
|
32
|
+
C as InputFilterItem,
|
|
33
|
+
N as NumberRangeFilterItem,
|
|
34
|
+
z as SelectAddressFilterItem,
|
|
35
|
+
M as SelectCascaderFilterItem,
|
|
36
|
+
q as SelectFunctionFilterItem,
|
|
37
|
+
v as SelectIndustryFilterItem,
|
|
38
|
+
j as SelectTableListFilterItem,
|
|
39
|
+
U as SelectTreeFilterItem,
|
|
40
|
+
$ as SuperSelectFilterItem,
|
|
41
|
+
O as TypeDateRangePickerFilterItem
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/ReactFilter/fields/index.jsx"],"sourcesContent":["// @ts-nocheck\nimport { useIntl } from '@kne/react-intl';\nimport withFieldItem from '../withFieldItem';\nimport InputFilterItemField from './InputFilterItem';\nimport NumberRangeFilterItemField from './NumberRangeFilterItem';\nimport withLocale from '../withLocale';\nimport SuperSelect, { SelectCascader, SelectTableList } from '@kne/super-select';\nimport { SelectAddress, SelectFunction, SelectIndustry } from '@kne/super-select-plus';\nimport '@kne/super-select/dist/index.css';\nimport '@kne/super-select-plus/dist/index.css';\n/** SuperSelect / SelectTree 弹层全局修补(选项撑满、checkbox、叶子 switcher-noop) */\nimport '../superSelectPopup.scss';\n\nconst withInputDefaultPlaceholder = (WrappedComponent) =>\n withLocale(({ placeholder, label, ...props }) => {\n const { formatMessage } = useIntl({ moduleName: 'Filter' });\n return (\n <WrappedComponent\n {...props}\n label={label}\n placeholder={placeholder || formatMessage({ id: 'defaultInputPlaceholder' }, { label })}\n />\n );\n });\n\nexport const InputFilterItem = withInputDefaultPlaceholder(InputFilterItemField);\nexport const NumberRangeFilterItem = withInputDefaultPlaceholder(NumberRangeFilterItemField);\n\nexport { default as DatePickerFilterItem } from './DatePickerFilterItem';\nexport { default as DateRangePickerFilterItem } from './DateRangePickerFilterItem';\nexport { default as TypeDateRangePickerFilterItem } from './TypeDateRangePickerFilterItem';\n\nexport const SuperSelectFilterItem = withFieldItem(SuperSelect, { forcePopup: true });\nexport const SelectTableListFilterItem = withFieldItem(SelectTableList, { forcePopup: true });\nexport { default as SelectTreeFilterItem } from './SelectTreeFilterItem';\nexport const SelectCascaderFilterItem = withFieldItem(SelectCascader, { forcePopup: true });\nexport const SelectFunctionFilterItem = withFieldItem(SelectFunction, { forcePopup: true });\nexport const SelectIndustryFilterItem = withFieldItem(SelectIndustry, { forcePopup: true });\nexport const SelectAddressFilterItem = withFieldItem(SelectAddress, { forcePopup: true });\n"],"names":["withInputDefaultPlaceholder","WrappedComponent","withLocale","placeholder","label","props","formatMessage","useIntl","jsx","InputFilterItem","InputFilterItemField","NumberRangeFilterItem","NumberRangeFilterItemField","SuperSelectFilterItem","withFieldItem","SuperSelect","SelectTableListFilterItem","SelectTableList","SelectCascaderFilterItem","SelectCascader","SelectFunctionFilterItem","SelectFunction","SelectIndustryFilterItem","SelectIndustry","SelectAddressFilterItem","SelectAddress"],"mappings":";;;;;;;;;;;;;;;;;AAaA,MAAMA,IAA8B,CAACC,MACnCC,EAAW,CAAC,EAAE,aAAAC,GAAa,OAAAC,GAAO,GAAGC,QAAY;AAC/C,QAAM,EAAE,eAAAC,MAAkBC,EAAgC;AAC1D,SACE,gBAAAC;AAAA,IAACP;AAAA,IAAA;AAAA,MACE,GAAGI;AAAA,MACJ,OAAAD;AAAA,MACA,aAAaD,KAAeG,EAAc,EAAE,IAAI,0BAAA,GAA6B,EAAE,OAAAF,EAAA,CAAO;AAAA,IAAA;AAAA,EAAA;AAG5F,CAAC,GAEUK,IAAkBT,EAA4BU,CAAoB,GAClEC,IAAwBX,EAA4BY,CAA0B,GAM9EC,IAAwBC,EAAcC,GAAa,EAAE,YAAY,IAAM,GACvEC,IAA4BF,EAAcG,GAAiB,EAAE,YAAY,IAAM,GAE/EC,IAA2BJ,EAAcK,GAAgB,EAAE,YAAY,IAAM,GAC7EC,IAA2BN,EAAcO,GAAgB,EAAE,YAAY,IAAM,GAC7EC,IAA2BR,EAAcS,GAAgB,EAAE,YAAY,IAAM,GAC7EC,IAA0BV,EAAcW,GAAe,EAAE,YAAY,IAAM;"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export namespace FILTER_CLASS {
|
|
2
|
+
let root: string;
|
|
3
|
+
let isMobile: string;
|
|
4
|
+
let title: string;
|
|
5
|
+
let label: string;
|
|
6
|
+
let list: string;
|
|
7
|
+
let listScrollWrap: string;
|
|
8
|
+
let listScroll: string;
|
|
9
|
+
let line: string;
|
|
10
|
+
let extra: string;
|
|
11
|
+
let more: string;
|
|
12
|
+
let moreRow: string;
|
|
13
|
+
let children: string;
|
|
14
|
+
let itemWrap: string;
|
|
15
|
+
let item: string;
|
|
16
|
+
let itemActive: string;
|
|
17
|
+
let itemVisited: string;
|
|
18
|
+
let itemLabel: string;
|
|
19
|
+
let itemIcon: string;
|
|
20
|
+
let itemField: string;
|
|
21
|
+
let valueDisplay: string;
|
|
22
|
+
let valueTag: string;
|
|
23
|
+
let valueTagLabel: string;
|
|
24
|
+
let valueTagContent: string;
|
|
25
|
+
let valueActions: string;
|
|
26
|
+
let valueClear: string;
|
|
27
|
+
let valueToggle: string;
|
|
28
|
+
let advanced: string;
|
|
29
|
+
}
|
|
30
|
+
export default FILTER_CLASS;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
root: "react-filter",
|
|
3
|
+
isMobile: "is-mobile",
|
|
4
|
+
title: "title",
|
|
5
|
+
label: "label",
|
|
6
|
+
list: "list",
|
|
7
|
+
listScrollWrap: "list-scroll-wrap",
|
|
8
|
+
listScroll: "list-scroll",
|
|
9
|
+
line: "line",
|
|
10
|
+
extra: "extra",
|
|
11
|
+
more: "more",
|
|
12
|
+
moreRow: "more-row",
|
|
13
|
+
children: "children",
|
|
14
|
+
itemWrap: "item-wrap",
|
|
15
|
+
item: "item",
|
|
16
|
+
itemActive: "is-active",
|
|
17
|
+
itemVisited: "is-visited",
|
|
18
|
+
itemLabel: "item-label",
|
|
19
|
+
itemIcon: "item-icon",
|
|
20
|
+
itemField: "item-field",
|
|
21
|
+
valueDisplay: "value-display",
|
|
22
|
+
valueTag: "value-tag",
|
|
23
|
+
valueTagLabel: "value-tag-label",
|
|
24
|
+
valueTagContent: "value-tag-content",
|
|
25
|
+
valueActions: "value-actions",
|
|
26
|
+
valueClear: "value-clear",
|
|
27
|
+
valueToggle: "value-toggle",
|
|
28
|
+
advanced: "advanced"
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
e as FILTER_CLASS
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=filterClassNames.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filterClassNames.js","sources":["../../../src/components/ReactFilter/filterClassNames.js"],"sourcesContent":["// @ts-nocheck\n/**\n * Filter 稳定全局类名(供调用方 CSS 选择器定制内部样式)。\n * 根节点:`react-filter`;内部节点为短类名,用 `.react-filter .xxx` 限定作用域。\n * CSS Modules 类仍负责默认样式;此类名并行挂载。\n */\nexport const FILTER_CLASS = {\n root: 'react-filter',\n isMobile: 'is-mobile',\n title: 'title',\n label: 'label',\n list: 'list',\n listScrollWrap: 'list-scroll-wrap',\n listScroll: 'list-scroll',\n line: 'line',\n extra: 'extra',\n more: 'more',\n moreRow: 'more-row',\n children: 'children',\n itemWrap: 'item-wrap',\n item: 'item',\n itemActive: 'is-active',\n itemVisited: 'is-visited',\n itemLabel: 'item-label',\n itemIcon: 'item-icon',\n itemField: 'item-field',\n valueDisplay: 'value-display',\n valueTag: 'value-tag',\n valueTagLabel: 'value-tag-label',\n valueTagContent: 'value-tag-content',\n valueActions: 'value-actions',\n valueClear: 'value-clear',\n valueToggle: 'value-toggle',\n advanced: 'advanced',\n};\n\nexport default FILTER_CLASS;\n"],"names":["FILTER_CLASS"],"mappings":"AAMY,MAACA,IAAe;AAAA,EAC1B,MAAM;AAAA,EACN,UAAU;AAAA,EACV,OAAO;AAAA,EACP,OAAO;AAAA,EACP,MAAM;AAAA,EACN,gBAAgB;AAAA,EAChB,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,EACN,SAAS;AAAA,EACT,UAAU;AAAA,EACV,UAAU;AAAA,EACV,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,WAAW;AAAA,EACX,UAAU;AAAA,EACV,WAAW;AAAA,EACX,cAAc;AAAA,EACd,UAAU;AAAA,EACV,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,UAAU;AACZ;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export namespace singleSelectInterceptor {
|
|
2
|
+
function input(value: any): any;
|
|
3
|
+
function output(selected: any): any;
|
|
4
|
+
}
|
|
5
|
+
export namespace multiSelectInterceptor {
|
|
6
|
+
export function input_1(value: any): any;
|
|
7
|
+
export { input_1 as input };
|
|
8
|
+
export function output_1(selected: any): any;
|
|
9
|
+
export { output_1 as output };
|
|
10
|
+
}
|
|
11
|
+
declare namespace _default {
|
|
12
|
+
export { singleSelectInterceptor as single };
|
|
13
|
+
export { multiSelectInterceptor as multi };
|
|
14
|
+
}
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const t = (r) => r ? r.id != null ? r : r.value != null ? { id: r.value, name: r.label } : r : null, u = (r) => r ? {
|
|
2
|
+
label: r.name ?? r.label,
|
|
3
|
+
value: r.id ?? r.value
|
|
4
|
+
} : null, l = {
|
|
5
|
+
input: (r) => {
|
|
6
|
+
if (!r)
|
|
7
|
+
return r;
|
|
8
|
+
const n = Array.isArray(r) ? r[0] : r;
|
|
9
|
+
return t(n);
|
|
10
|
+
},
|
|
11
|
+
output: (r) => {
|
|
12
|
+
if (!r)
|
|
13
|
+
return r;
|
|
14
|
+
const n = Array.isArray(r) ? r[0] : r;
|
|
15
|
+
return u(n);
|
|
16
|
+
}
|
|
17
|
+
}, o = {
|
|
18
|
+
input: (r) => r && (Array.isArray(r) ? r : [r]).map(t).filter(Boolean),
|
|
19
|
+
output: (r) => r && (Array.isArray(r) ? r : [r]).map(u).filter(Boolean)
|
|
20
|
+
}, a = { single: l, multi: o };
|
|
21
|
+
export {
|
|
22
|
+
a as default,
|
|
23
|
+
o as multiSelectInterceptor,
|
|
24
|
+
l as singleSelectInterceptor
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=filterInterceptors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filterInterceptors.js","sources":["../../../src/components/ReactFilter/filterInterceptors.js"],"sourcesContent":["// @ts-nocheck\nconst toIdName = (item) => {\n if (!item) {\n return null;\n }\n if (item.id != null) {\n return item;\n }\n if (item.value != null) {\n return { id: item.value, name: item.label };\n }\n return item;\n};\n\nconst toLabelValue = (item) => {\n if (!item) {\n return null;\n }\n return {\n label: item.name ?? item.label,\n value: item.id ?? item.value,\n };\n};\n\n/**\n * 单选 SuperSelect interceptor:{id, name} ↔ {label, value}\n * 适用于 valueKey=\"id\" labelKey=\"name\" 的单选场景\n */\nexport const singleSelectInterceptor = {\n input: (value) => {\n if (!value) {\n return value;\n }\n const item = Array.isArray(value) ? value[0] : value;\n const result = toIdName(item);\n return result;\n },\n output: (selected) => {\n if (!selected) {\n return selected;\n }\n const item = Array.isArray(selected) ? selected[0] : selected;\n return toLabelValue(item);\n },\n};\n\n/**\n * 多选 SuperSelect interceptor:[{id, name}] ↔ [{label, value}]\n * 适用于 valueKey=\"id\" labelKey=\"name\" 的多选场景\n */\nexport const multiSelectInterceptor = {\n input: (value) => {\n if (!value) {\n return value;\n }\n const list = Array.isArray(value) ? value : [value];\n return list.map(toIdName).filter(Boolean);\n },\n output: (selected) => {\n if (!selected) {\n return selected;\n }\n const list = Array.isArray(selected) ? selected : [selected];\n return list.map(toLabelValue).filter(Boolean);\n },\n};\n\nexport default { single: singleSelectInterceptor, multi: multiSelectInterceptor };\n"],"names":["toIdName","item","toLabelValue","singleSelectInterceptor","value","selected","multiSelectInterceptor","filterInterceptors"],"mappings":"AACA,MAAMA,IAAW,CAACC,MACXA,IAGDA,EAAK,MAAM,OACNA,IAELA,EAAK,SAAS,OACT,EAAE,IAAIA,EAAK,OAAO,MAAMA,EAAK,MAAK,IAEpCA,IARE,MAWLC,IAAe,CAACD,MACfA,IAGE;AAAA,EACL,OAAOA,EAAK,QAAQA,EAAK;AAAA,EACzB,OAAOA,EAAK,MAAMA,EAAK;AAC3B,IALW,MAYEE,IAA0B;AAAA,EACrC,OAAO,CAACC,MAAU;AAChB,QAAI,CAACA;AACH,aAAOA;AAET,UAAMH,IAAO,MAAM,QAAQG,CAAK,IAAIA,EAAM,CAAC,IAAIA;AAE/C,WADeJ,EAASC,CAAI;AAAA,EAE9B;AAAA,EACA,QAAQ,CAACI,MAAa;AACpB,QAAI,CAACA;AACH,aAAOA;AAET,UAAMJ,IAAO,MAAM,QAAQI,CAAQ,IAAIA,EAAS,CAAC,IAAIA;AACrD,WAAOH,EAAaD,CAAI;AAAA,EAC1B;AACF,GAMaK,IAAyB;AAAA,EACpC,OAAO,CAACF,MACDA,MAGQ,MAAM,QAAQA,CAAK,IAAIA,IAAQ,CAACA,CAAK,GACtC,IAAIJ,CAAQ,EAAE,OAAO,OAAO;AAAA,EAE1C,QAAQ,CAACK,MACFA,MAGQ,MAAM,QAAQA,CAAQ,IAAIA,IAAW,CAACA,CAAQ,GAC/C,IAAIH,CAAY,EAAE,OAAO,OAAO;AAEhD,GAEAK,IAAe,EAAE,QAAQJ,GAAyB,OAAOG,EAAsB;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @kne/super-select SelectTree 双轨不一致:
|
|
3
|
+
* - 展示用 parseTreeData:只认扁平 parentId(嵌套 children 会被丢掉 → switcher-noop)
|
|
4
|
+
* - 勾选联动用 mapping.processData:原版扁平时会把 parentId 写成 null(父子勾选失效)
|
|
5
|
+
* 故嵌套树须先展平;processData 保留 parentId 见 scripts/patch-kne-super-select.mjs(postinstall)。
|
|
6
|
+
*/
|
|
7
|
+
export default function flattenSelectTreeOptions(options: any, { valueKey, parentKey, childrenKey }?: {
|
|
8
|
+
valueKey?: string | undefined;
|
|
9
|
+
parentKey?: string | undefined;
|
|
10
|
+
childrenKey?: string | undefined;
|
|
11
|
+
}): any[];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
function h(r, { valueKey: l = "id", parentKey: s = "parentId", childrenKey: t = "children" } = {}) {
|
|
2
|
+
if (!Array.isArray(r) || r.length === 0)
|
|
3
|
+
return Array.isArray(r) ? r : [];
|
|
4
|
+
if (!r.some(
|
|
5
|
+
(n) => n && Array.isArray(n[t]) && n[t].length > 0
|
|
6
|
+
))
|
|
7
|
+
return r;
|
|
8
|
+
const f = [], u = (n, c) => {
|
|
9
|
+
for (const e of n || []) {
|
|
10
|
+
if (!e || typeof e != "object") continue;
|
|
11
|
+
const d = Array.isArray(e[t]) ? e[t] : [], a = { ...e };
|
|
12
|
+
delete a[t];
|
|
13
|
+
const A = c !== void 0 ? c : a[s] ?? null;
|
|
14
|
+
f.push({ ...a, [s]: A }), d.length > 0 && u(d, e[l]);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
return u(r, void 0), f;
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
h as default
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=flattenSelectTreeOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flattenSelectTreeOptions.js","sources":["../../../src/components/ReactFilter/flattenSelectTreeOptions.js"],"sourcesContent":["/**\n * @kne/super-select SelectTree 双轨不一致:\n * - 展示用 parseTreeData:只认扁平 parentId(嵌套 children 会被丢掉 → switcher-noop)\n * - 勾选联动用 mapping.processData:原版扁平时会把 parentId 写成 null(父子勾选失效)\n * 故嵌套树须先展平;processData 保留 parentId 见 scripts/patch-kne-super-select.mjs(postinstall)。\n */\nexport default function flattenSelectTreeOptions(\n options,\n { valueKey = 'id', parentKey = 'parentId', childrenKey = 'children' } = {},\n) {\n if (!Array.isArray(options) || options.length === 0) {\n return Array.isArray(options) ? options : [];\n }\n\n const hasNested = options.some(\n (item) => item && Array.isArray(item[childrenKey]) && item[childrenKey].length > 0,\n );\n if (!hasNested) {\n return options;\n }\n\n const out = [];\n const walk = (nodes, forcedParentId) => {\n for (const node of nodes || []) {\n if (!node || typeof node !== 'object') continue;\n const children = Array.isArray(node[childrenKey]) ? node[childrenKey] : [];\n const rest = { ...node };\n delete rest[childrenKey];\n const parentId = forcedParentId !== undefined ? forcedParentId : (rest[parentKey] ?? null);\n out.push({ ...rest, [parentKey]: parentId });\n if (children.length > 0) {\n walk(children, node[valueKey]);\n }\n }\n };\n walk(options, undefined);\n return out;\n}\n"],"names":["flattenSelectTreeOptions","options","valueKey","parentKey","childrenKey","item","out","walk","nodes","forcedParentId","node","children","rest","parentId"],"mappings":"AAMe,SAASA,EACtBC,GACA,EAAE,UAAAC,IAAW,MAAM,WAAAC,IAAY,YAAY,aAAAC,IAAc,WAAU,IAAK,CAAA,GACxE;AACA,MAAI,CAAC,MAAM,QAAQH,CAAO,KAAKA,EAAQ,WAAW;AAChD,WAAO,MAAM,QAAQA,CAAO,IAAIA,IAAU,CAAA;AAM5C,MAAI,CAHcA,EAAQ;AAAA,IACxB,CAACI,MAASA,KAAQ,MAAM,QAAQA,EAAKD,CAAW,CAAC,KAAKC,EAAKD,CAAW,EAAE,SAAS;AAAA,EACrF;AAEI,WAAOH;AAGT,QAAMK,IAAM,CAAA,GACNC,IAAO,CAACC,GAAOC,MAAmB;AACtC,eAAWC,KAAQF,KAAS,IAAI;AAC9B,UAAI,CAACE,KAAQ,OAAOA,KAAS,SAAU;AACvC,YAAMC,IAAW,MAAM,QAAQD,EAAKN,CAAW,CAAC,IAAIM,EAAKN,CAAW,IAAI,CAAA,GAClEQ,IAAO,EAAE,GAAGF,EAAI;AACtB,aAAOE,EAAKR,CAAW;AACvB,YAAMS,IAAWJ,MAAmB,SAAYA,IAAkBG,EAAKT,CAAS,KAAK;AACrF,MAAAG,EAAI,KAAK,EAAE,GAAGM,GAAM,CAACT,CAAS,GAAGU,GAAU,GACvCF,EAAS,SAAS,KACpBJ,EAAKI,GAAUD,EAAKR,CAAQ,CAAC;AAAA,IAEjC;AAAA,EACF;AACA,SAAAK,EAAKN,GAAS,MAAS,GAChBK;AACT;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import f from "../../_virtual/transform.js";
|
|
2
|
+
const n = (t) => f(
|
|
3
|
+
t,
|
|
4
|
+
(o, { name: m, value: r }) => {
|
|
5
|
+
o[m] = Array.isArray(r) ? r.map(({ value: s }) => s) : r == null ? void 0 : r.value;
|
|
6
|
+
},
|
|
7
|
+
{}
|
|
8
|
+
);
|
|
9
|
+
export {
|
|
10
|
+
n as default
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=getFilterValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFilterValue.js","sources":["../../../src/components/ReactFilter/getFilterValue.js"],"sourcesContent":["// @ts-nocheck\nimport transform from 'lodash/transform';\n\nconst getFilterValue = (filterValue) => {\n return transform(\n filterValue,\n (result, { name, value }) => {\n result[name] = Array.isArray(value) ? value.map(({ value }) => value) : value?.value;\n },\n {},\n );\n};\n\nexport default getFilterValue;\n"],"names":["getFilterValue","filterValue","transform","result","name","value"],"mappings":";AAGK,MAACA,IAAiB,CAACC,MACfC;AAAA,EACLD;AAAA,EACA,CAACE,GAAQ,EAAE,MAAAC,GAAM,OAAAC,QAAY;AAC3B,IAAAF,EAAOC,CAAI,IAAI,MAAM,QAAQC,CAAK,IAAIA,EAAM,IAAI,CAAC,EAAE,OAAAA,EAAK,MAAOA,CAAK,IAAIA,KAAA,gBAAAA,EAAO;AAAA,EACjF;AAAA,EACA,CAAA;AACJ;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { useResponsiveContext as r, useMediaQuery as n, MOBILE_BREAKPOINT as i, IS_MOBILE_QUERY as s } from "../../../node_modules/@kne/responsive-utils/dist/index.modern.js";
|
|
2
|
+
const I = () => {
|
|
3
|
+
const { mode: t, containerWidth: e } = r(), o = n(s);
|
|
4
|
+
return t === "container" && typeof e == "number" ? e < i : o;
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
I as default
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=useFilterIsMobile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFilterIsMobile.js","sources":["../../../../src/components/ReactFilter/hooks/useFilterIsMobile.js"],"sourcesContent":["// @ts-nocheck\nimport {\n IS_MOBILE_QUERY,\n MOBILE_BREAKPOINT,\n useMediaQuery,\n useResponsiveContext,\n} from '@kne/responsive-utils';\n\n/**\n * Filter 移动端判定:默认按视口宽度,仅在 ResponsiveProvider container 模式下按预览容器宽度。\n * 避免 Filter 嵌入窄列时误用移动端布局。\n */\nconst useFilterIsMobile = () => {\n const { mode, containerWidth } = useResponsiveContext();\n const viewportIsMobile = useMediaQuery(IS_MOBILE_QUERY);\n\n if (mode === 'container' && typeof containerWidth === 'number') {\n return containerWidth < MOBILE_BREAKPOINT;\n }\n\n return viewportIsMobile;\n};\n\nexport default useFilterIsMobile;\n"],"names":["useFilterIsMobile","mode","containerWidth","useResponsiveContext","viewportIsMobile","useMediaQuery","IS_MOBILE_QUERY","MOBILE_BREAKPOINT"],"mappings":";AAYK,MAACA,IAAoB,MAAM;AAC9B,QAAM,EAAE,MAAAC,GAAM,gBAAAC,EAAc,IAAKC,EAAoB,GAC/CC,IAAmBC,EAAcC,CAAe;AAEtD,SAAIL,MAAS,eAAe,OAAOC,KAAmB,WAC7CA,IAAiBK,IAGnBH;AACT;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default useFilterPopupContainer;
|
|
2
|
+
/**
|
|
3
|
+
* Filter 弹层挂载:cover=viewport。
|
|
4
|
+
* isMobile 与 useFilterIsMobile 一致(视口 / Provider container),不用 example DOM 兜底,
|
|
5
|
+
* 避免 example 选 PC 时仍被判成移动端。
|
|
6
|
+
*/
|
|
7
|
+
declare function useFilterPopupContainer(options?: {}): {
|
|
8
|
+
isMobile: any;
|
|
9
|
+
useBoundaryMount: boolean;
|
|
10
|
+
fixedModeClass: any;
|
|
11
|
+
getMountNode: (triggerNode: any) => any;
|
|
12
|
+
getPopupContainer: any;
|
|
13
|
+
resolveMount: any;
|
|
14
|
+
anchorRef: any;
|
|
15
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { useCallback as c } from "react";
|
|
2
|
+
import { useMobilePopupMount as f, MOBILE_POPUP_MODE as P } from "../../../node_modules/@kne/responsive-utils/dist/index.modern.js";
|
|
3
|
+
import m from "./useFilterIsMobile.js";
|
|
4
|
+
const x = (n = {}) => {
|
|
5
|
+
const { getPopupContainer: u, ...r } = n, o = m(), {
|
|
6
|
+
fixedModeClass: s,
|
|
7
|
+
getMountNode: e,
|
|
8
|
+
getPopupContainer: i,
|
|
9
|
+
resolveMount: p,
|
|
10
|
+
anchorRef: d
|
|
11
|
+
} = f({
|
|
12
|
+
cover: "viewport",
|
|
13
|
+
getPopupContainer: u,
|
|
14
|
+
...r
|
|
15
|
+
}), t = o ? s : null, a = !!(o && t === P.boundary), l = c(
|
|
16
|
+
(M) => e(M) || (typeof document < "u" ? document.body : null),
|
|
17
|
+
[e]
|
|
18
|
+
);
|
|
19
|
+
return {
|
|
20
|
+
isMobile: o,
|
|
21
|
+
useBoundaryMount: a,
|
|
22
|
+
fixedModeClass: t,
|
|
23
|
+
getMountNode: l,
|
|
24
|
+
getPopupContainer: i,
|
|
25
|
+
resolveMount: p,
|
|
26
|
+
anchorRef: d
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
x as default
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=useFilterPopupContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFilterPopupContainer.js","sources":["../../../../src/components/ReactFilter/hooks/useFilterPopupContainer.js"],"sourcesContent":["// @ts-nocheck\nimport { useCallback } from 'react';\nimport { MOBILE_POPUP_MODE, useMobilePopupMount } from '@kne/responsive-utils';\nimport useFilterIsMobile from './useFilterIsMobile';\n\n/**\n * Filter 弹层挂载:cover=viewport。\n * isMobile 与 useFilterIsMobile 一致(视口 / Provider container),不用 example DOM 兜底,\n * 避免 example 选 PC 时仍被判成移动端。\n */\nconst useFilterPopupContainer = (options = {}) => {\n const { getPopupContainer: getPopupContainerProp, ...rest } = options;\n const isMobile = useFilterIsMobile();\n const {\n fixedModeClass: mountFixedModeClass,\n getMountNode,\n getPopupContainer,\n resolveMount,\n anchorRef,\n } = useMobilePopupMount({\n cover: 'viewport',\n getPopupContainer: getPopupContainerProp,\n ...rest,\n });\n\n const fixedModeClass = isMobile ? mountFixedModeClass : null;\n const useBoundaryMount = !!(isMobile && fixedModeClass === MOBILE_POPUP_MODE.boundary);\n\n const getMountNodeSafe = useCallback(\n (triggerNode) =>\n getMountNode(triggerNode) || (typeof document !== 'undefined' ? document.body : null),\n [getMountNode],\n );\n\n return {\n isMobile,\n useBoundaryMount,\n fixedModeClass,\n getMountNode: getMountNodeSafe,\n getPopupContainer,\n resolveMount,\n anchorRef,\n };\n};\n\nexport default useFilterPopupContainer;\n"],"names":["useFilterPopupContainer","options","getPopupContainerProp","rest","isMobile","useFilterIsMobile","mountFixedModeClass","getMountNode","getPopupContainer","resolveMount","anchorRef","useMobilePopupMount","fixedModeClass","useBoundaryMount","MOBILE_POPUP_MODE","getMountNodeSafe","useCallback","triggerNode"],"mappings":";;;AAUK,MAACA,IAA0B,CAACC,IAAU,OAAO;AAChD,QAAM,EAAE,mBAAmBC,GAAuB,GAAGC,EAAI,IAAKF,GACxDG,IAAWC,EAAiB,GAC5B;AAAA,IACJ,gBAAgBC;AAAA,IAChB,cAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,EACJ,IAAMC,EAAoB;AAAA,IACtB,OAAO;AAAA,IACP,mBAAmBT;AAAA,IACnB,GAAGC;AAAA,EACP,CAAG,GAEKS,IAAiBR,IAAWE,IAAsB,MAClDO,IAAmB,CAAC,EAAET,KAAYQ,MAAmBE,EAAkB,WAEvEC,IAAmBC;AAAA,IACvB,CAACC,MACCV,EAAaU,CAAW,MAAM,OAAO,WAAa,MAAc,SAAS,OAAO;AAAA,IAClF,CAACV,CAAY;AAAA,EACjB;AAEE,SAAO;AAAA,IACL,UAAAH;AAAA,IACA,kBAAAS;AAAA,IACA,gBAAAD;AAAA,IACA,cAAcG;AAAA,IACd,mBAAAP;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,EACJ;AACA;"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { useRef as i, useEffect as s } from "react";
|
|
2
|
+
import { useResponsiveContext as o, resetViewportCssVars as d, applyViewportCssVars as u } from "../../../node_modules/@kne/responsive-utils/dist/index.modern.js";
|
|
3
|
+
const a = () => {
|
|
4
|
+
const n = i(null), { mode: r } = o();
|
|
5
|
+
return s(() => {
|
|
6
|
+
const e = n.current;
|
|
7
|
+
if (!e || typeof window > "u" || r === "container")
|
|
8
|
+
return;
|
|
9
|
+
const t = () => {
|
|
10
|
+
u(e, {
|
|
11
|
+
width: window.innerWidth,
|
|
12
|
+
height: window.innerHeight
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
return t(), window.addEventListener("resize", t, { passive: !0 }), () => {
|
|
16
|
+
window.removeEventListener("resize", t), d(e);
|
|
17
|
+
};
|
|
18
|
+
}, [r]), n;
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
a as default
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=useFilterViewportVars.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFilterViewportVars.js","sources":["../../../../src/components/ReactFilter/hooks/useFilterViewportVars.js"],"sourcesContent":["// @ts-nocheck\nimport { useEffect, useRef } from 'react';\nimport {\n applyViewportCssVars,\n resetViewportCssVars,\n useResponsiveContext,\n} from '@kne/responsive-utils';\n\nconst useFilterViewportVars = () => {\n const boundaryRef = useRef(null);\n const { mode } = useResponsiveContext();\n\n useEffect(() => {\n const el = boundaryRef.current;\n if (!el || typeof window === 'undefined' || mode === 'container') {\n return undefined;\n }\n\n const update = () => {\n applyViewportCssVars(el, {\n width: window.innerWidth,\n height: window.innerHeight,\n });\n };\n\n update();\n window.addEventListener('resize', update, { passive: true });\n return () => {\n window.removeEventListener('resize', update);\n resetViewportCssVars(el);\n };\n }, [mode]);\n\n return boundaryRef;\n};\n\nexport default useFilterViewportVars;\n"],"names":["useFilterViewportVars","boundaryRef","useRef","mode","useResponsiveContext","useEffect","el","update","applyViewportCssVars","resetViewportCssVars"],"mappings":";;AAQK,MAACA,IAAwB,MAAM;AAClC,QAAMC,IAAcC,EAAO,IAAI,GACzB,EAAE,MAAAC,EAAI,IAAKC,EAAoB;AAErC,SAAAC,EAAU,MAAM;AACd,UAAMC,IAAKL,EAAY;AACvB,QAAI,CAACK,KAAM,OAAO,SAAW,OAAeH,MAAS;AACnD;AAGF,UAAMI,IAAS,MAAM;AACnB,MAAAC,EAAqBF,GAAI;AAAA,QACvB,OAAO,OAAO;AAAA,QACd,QAAQ,OAAO;AAAA,MACvB,CAAO;AAAA,IACH;AAEA,WAAAC,EAAM,GACN,OAAO,iBAAiB,UAAUA,GAAQ,EAAE,SAAS,IAAM,GACpD,MAAM;AACX,aAAO,oBAAoB,UAAUA,CAAM,GAC3CE,EAAqBH,CAAE;AAAA,IACzB;AAAA,EACF,GAAG,CAACH,CAAI,CAAC,GAEFF;AACT;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default useHorizontalScrollShadows;
|
|
2
|
+
declare function useHorizontalScrollShadows({ enabled, suspend, preserveOverflowOnSuspend, refreshKey, }?: {
|
|
3
|
+
suspend?: boolean | undefined;
|
|
4
|
+
preserveOverflowOnSuspend?: boolean | undefined;
|
|
5
|
+
}): {
|
|
6
|
+
scrollRef: import('react').RefObject<null>;
|
|
7
|
+
isOverflow: boolean;
|
|
8
|
+
showScrollPrev: boolean;
|
|
9
|
+
showScrollNext: boolean;
|
|
10
|
+
updateScrollShadowVisible: () => void;
|
|
11
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { useRef as v, useState as a, useCallback as W, useEffect as E } from "react";
|
|
2
|
+
import L from "./useResponsiveScrollListener.js";
|
|
3
|
+
const F = ({
|
|
4
|
+
enabled: r,
|
|
5
|
+
suspend: o = !1,
|
|
6
|
+
preserveOverflowOnSuspend: f = !1,
|
|
7
|
+
refreshKey: m
|
|
8
|
+
} = {}) => {
|
|
9
|
+
const s = v(null), [u, i] = a(!1), [h, n] = a(!1), [d, c] = a(!1), t = W(() => {
|
|
10
|
+
const e = s.current;
|
|
11
|
+
if (!e || !r) {
|
|
12
|
+
n(!1), c(!1), i(!1);
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
if (o) {
|
|
16
|
+
n(!1), c(!1), f || i(!1);
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
i(e.scrollWidth > e.clientWidth), n(e.scrollLeft > 1), c(
|
|
20
|
+
e.scrollWidth > e.clientWidth && e.scrollLeft + e.clientWidth < e.scrollWidth - 1
|
|
21
|
+
);
|
|
22
|
+
}, [r, f, o]);
|
|
23
|
+
return E(() => {
|
|
24
|
+
const e = s.current;
|
|
25
|
+
if (!e || !r || o) {
|
|
26
|
+
t();
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
t(), e.addEventListener("scroll", t);
|
|
30
|
+
let w = 0;
|
|
31
|
+
const S = window.requestAnimationFrame(() => {
|
|
32
|
+
t(), w = window.requestAnimationFrame(t);
|
|
33
|
+
});
|
|
34
|
+
let l;
|
|
35
|
+
return typeof ResizeObserver < "u" && (l = new ResizeObserver(t), l.observe(e), e.parentElement && l.observe(e.parentElement)), () => {
|
|
36
|
+
e.removeEventListener("scroll", t), window.cancelAnimationFrame(S), window.cancelAnimationFrame(w), l == null || l.disconnect();
|
|
37
|
+
};
|
|
38
|
+
}, [r, m, o, t]), L(t, r && !o), {
|
|
39
|
+
scrollRef: s,
|
|
40
|
+
isOverflow: u,
|
|
41
|
+
showScrollPrev: h,
|
|
42
|
+
showScrollNext: d,
|
|
43
|
+
updateScrollShadowVisible: t
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
F as default
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=useHorizontalScrollShadows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useHorizontalScrollShadows.js","sources":["../../../../src/components/ReactFilter/hooks/useHorizontalScrollShadows.js"],"sourcesContent":["// @ts-nocheck\nimport { useCallback, useEffect, useRef, useState } from 'react';\nimport useResponsiveScrollListener from './useResponsiveScrollListener';\n\nconst useHorizontalScrollShadows = ({\n enabled,\n suspend = false,\n preserveOverflowOnSuspend = false,\n refreshKey,\n} = {}) => {\n const scrollRef = useRef(null);\n const [isOverflow, setIsOverflow] = useState(false);\n const [showScrollPrev, setShowScrollPrev] = useState(false);\n const [showScrollNext, setShowScrollNext] = useState(false);\n\n const update = useCallback(() => {\n const el = scrollRef.current;\n if (!el || !enabled) {\n setShowScrollPrev(false);\n setShowScrollNext(false);\n setIsOverflow(false);\n return;\n }\n\n if (suspend) {\n setShowScrollPrev(false);\n setShowScrollNext(false);\n if (!preserveOverflowOnSuspend) {\n setIsOverflow(false);\n }\n return;\n }\n\n setIsOverflow(el.scrollWidth > el.clientWidth);\n setShowScrollPrev(el.scrollLeft > 1);\n setShowScrollNext(\n el.scrollWidth > el.clientWidth && el.scrollLeft + el.clientWidth < el.scrollWidth - 1,\n );\n }, [enabled, preserveOverflowOnSuspend, suspend]);\n\n useEffect(() => {\n const el = scrollRef.current;\n if (!el || !enabled || suspend) {\n update();\n return;\n }\n\n update();\n el.addEventListener('scroll', update);\n\n // 双 rAF:等父级 flex(如 toolbar 右侧 buttonGroup)完成布局后再测一次\n let raf2 = 0;\n const raf1 = window.requestAnimationFrame(() => {\n update();\n raf2 = window.requestAnimationFrame(update);\n });\n\n // 容器自身/父级宽度变化时重测(初始化时父级可能尚未收窄,仅靠 scroll 事件不够)\n let resizeObserver;\n if (typeof ResizeObserver !== 'undefined') {\n resizeObserver = new ResizeObserver(update);\n resizeObserver.observe(el);\n if (el.parentElement) {\n resizeObserver.observe(el.parentElement);\n }\n }\n\n return () => {\n el.removeEventListener('scroll', update);\n window.cancelAnimationFrame(raf1);\n window.cancelAnimationFrame(raf2);\n resizeObserver?.disconnect();\n };\n }, [enabled, refreshKey, suspend, update]);\n\n useResponsiveScrollListener(update, enabled && !suspend);\n\n return {\n scrollRef,\n isOverflow,\n showScrollPrev,\n showScrollNext,\n updateScrollShadowVisible: update,\n };\n};\n\nexport default useHorizontalScrollShadows;\n"],"names":["useHorizontalScrollShadows","enabled","suspend","preserveOverflowOnSuspend","refreshKey","scrollRef","useRef","isOverflow","setIsOverflow","useState","showScrollPrev","setShowScrollPrev","showScrollNext","setShowScrollNext","update","useCallback","el","useEffect","raf2","raf1","resizeObserver","useResponsiveScrollListener"],"mappings":";;AAIK,MAACA,IAA6B,CAAC;AAAA,EAClC,SAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,2BAAAC,IAA4B;AAAA,EAC5B,YAAAC;AACF,IAAI,OAAO;AACT,QAAMC,IAAYC,EAAO,IAAI,GACvB,CAACC,GAAYC,CAAa,IAAIC,EAAS,EAAK,GAC5C,CAACC,GAAgBC,CAAiB,IAAIF,EAAS,EAAK,GACpD,CAACG,GAAgBC,CAAiB,IAAIJ,EAAS,EAAK,GAEpDK,IAASC,EAAY,MAAM;AAC/B,UAAMC,IAAKX,EAAU;AACrB,QAAI,CAACW,KAAM,CAACf,GAAS;AACnB,MAAAU,EAAkB,EAAK,GACvBE,EAAkB,EAAK,GACvBL,EAAc,EAAK;AACnB;AAAA,IACF;AAEA,QAAIN,GAAS;AACX,MAAAS,EAAkB,EAAK,GACvBE,EAAkB,EAAK,GAClBV,KACHK,EAAc,EAAK;AAErB;AAAA,IACF;AAEA,IAAAA,EAAcQ,EAAG,cAAcA,EAAG,WAAW,GAC7CL,EAAkBK,EAAG,aAAa,CAAC,GACnCH;AAAA,MACEG,EAAG,cAAcA,EAAG,eAAeA,EAAG,aAAaA,EAAG,cAAcA,EAAG,cAAc;AAAA,IAC3F;AAAA,EACE,GAAG,CAACf,GAASE,GAA2BD,CAAO,CAAC;AAEhD,SAAAe,EAAU,MAAM;AACd,UAAMD,IAAKX,EAAU;AACrB,QAAI,CAACW,KAAM,CAACf,KAAWC,GAAS;AAC9B,MAAAY,EAAM;AACN;AAAA,IACF;AAEA,IAAAA,EAAM,GACNE,EAAG,iBAAiB,UAAUF,CAAM;AAGpC,QAAII,IAAO;AACX,UAAMC,IAAO,OAAO,sBAAsB,MAAM;AAC9C,MAAAL,EAAM,GACNI,IAAO,OAAO,sBAAsBJ,CAAM;AAAA,IAC5C,CAAC;AAGD,QAAIM;AACJ,WAAI,OAAO,iBAAmB,QAC5BA,IAAiB,IAAI,eAAeN,CAAM,GAC1CM,EAAe,QAAQJ,CAAE,GACrBA,EAAG,iBACLI,EAAe,QAAQJ,EAAG,aAAa,IAIpC,MAAM;AACX,MAAAA,EAAG,oBAAoB,UAAUF,CAAM,GACvC,OAAO,qBAAqBK,CAAI,GAChC,OAAO,qBAAqBD,CAAI,GAChCE,KAAA,QAAAA,EAAgB;AAAA,IAClB;AAAA,EACF,GAAG,CAACnB,GAASG,GAAYF,GAASY,CAAM,CAAC,GAEzCO,EAA4BP,GAAQb,KAAW,CAACC,CAAO,GAEhD;AAAA,IACL,WAAAG;AAAA,IACA,YAAAE;AAAA,IACA,gBAAAG;AAAA,IACA,gBAAAE;AAAA,IACA,2BAA2BE;AAAA,EAC/B;AACA;"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { useEffect as i } from "react";
|
|
2
|
+
import { useScrollElement as d } from "../../../node_modules/@kne/responsive-utils/dist/index.modern.js";
|
|
3
|
+
const l = (t, s = !0) => {
|
|
4
|
+
const o = d();
|
|
5
|
+
i(() => {
|
|
6
|
+
if (!s || typeof t != "function")
|
|
7
|
+
return;
|
|
8
|
+
const r = o();
|
|
9
|
+
if (!r)
|
|
10
|
+
return;
|
|
11
|
+
t();
|
|
12
|
+
const e = () => {
|
|
13
|
+
t();
|
|
14
|
+
};
|
|
15
|
+
r.addEventListener("scroll", e, { passive: !0 }), window.addEventListener("resize", e);
|
|
16
|
+
let n;
|
|
17
|
+
return typeof ResizeObserver < "u" && (n = new ResizeObserver(e), n.observe(r)), () => {
|
|
18
|
+
r.removeEventListener("scroll", e), window.removeEventListener("resize", e), n == null || n.disconnect();
|
|
19
|
+
};
|
|
20
|
+
}, [t, s, o]);
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
l as default
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=useResponsiveScrollListener.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useResponsiveScrollListener.js","sources":["../../../../src/components/ReactFilter/hooks/useResponsiveScrollListener.js"],"sourcesContent":["// @ts-nocheck\nimport { useEffect } from 'react';\nimport { useScrollElement } from '@kne/responsive-utils';\n\nconst useResponsiveScrollListener = (callback, enabled = true) => {\n const getScrollElement = useScrollElement();\n\n useEffect(() => {\n if (!enabled || typeof callback !== 'function') {\n return undefined;\n }\n\n const scrollEl = getScrollElement();\n if (!scrollEl) {\n return undefined;\n }\n\n callback();\n\n const handleChange = () => {\n callback();\n };\n\n scrollEl.addEventListener('scroll', handleChange, { passive: true });\n window.addEventListener('resize', handleChange);\n\n let resizeObserver;\n if (typeof ResizeObserver !== 'undefined') {\n resizeObserver = new ResizeObserver(handleChange);\n resizeObserver.observe(scrollEl);\n }\n\n return () => {\n scrollEl.removeEventListener('scroll', handleChange);\n window.removeEventListener('resize', handleChange);\n resizeObserver?.disconnect();\n };\n }, [callback, enabled, getScrollElement]);\n};\n\nexport default useResponsiveScrollListener;\n"],"names":["useResponsiveScrollListener","callback","enabled","getScrollElement","useScrollElement","useEffect","scrollEl","handleChange","resizeObserver"],"mappings":";;AAIK,MAACA,IAA8B,CAACC,GAAUC,IAAU,OAAS;AAChE,QAAMC,IAAmBC,EAAgB;AAEzC,EAAAC,EAAU,MAAM;AACd,QAAI,CAACH,KAAW,OAAOD,KAAa;AAClC;AAGF,UAAMK,IAAWH,EAAgB;AACjC,QAAI,CAACG;AACH;AAGF,IAAAL,EAAQ;AAER,UAAMM,IAAe,MAAM;AACzB,MAAAN,EAAQ;AAAA,IACV;AAEA,IAAAK,EAAS,iBAAiB,UAAUC,GAAc,EAAE,SAAS,IAAM,GACnE,OAAO,iBAAiB,UAAUA,CAAY;AAE9C,QAAIC;AACJ,WAAI,OAAO,iBAAmB,QAC5BA,IAAiB,IAAI,eAAeD,CAAY,GAChDC,EAAe,QAAQF,CAAQ,IAG1B,MAAM;AACX,MAAAA,EAAS,oBAAoB,UAAUC,CAAY,GACnD,OAAO,oBAAoB,UAAUA,CAAY,GACjDC,KAAA,QAAAA,EAAgB;AAAA,IAClB;AAAA,EACF,GAAG,CAACP,GAAUC,GAASC,CAAgB,CAAC;AAC1C;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default useVisibleItemCount;
|
|
2
|
+
/**
|
|
3
|
+
* Filter 扁平行可见数量:底层交给 @kne/overflow-items,保留原 selector / beforeReady=all 行为。
|
|
4
|
+
*/
|
|
5
|
+
declare function useVisibleItemCount({ items, enabled, strategy }: {
|
|
6
|
+
items: any;
|
|
7
|
+
enabled: any;
|
|
8
|
+
strategy?: string | undefined;
|
|
9
|
+
}): {
|
|
10
|
+
setContainerRef: any;
|
|
11
|
+
setMeasureRef: any;
|
|
12
|
+
setMoreMeasureRef: any;
|
|
13
|
+
visibleCount: any;
|
|
14
|
+
ready: any;
|
|
15
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { useOverflowItems as l } from "@kne/overflow-items";
|
|
2
|
+
const m = ({ items: e, enabled: s, strategy: r = "asc" }) => {
|
|
3
|
+
const t = Array.isArray(e) ? e : [], { setContainerRef: a, setMeasureRef: o, setMoreMeasureRef: n, visibleCount: i, ready: u } = l({
|
|
4
|
+
itemCount: t.length,
|
|
5
|
+
items: t,
|
|
6
|
+
enabled: s,
|
|
7
|
+
strategy: r,
|
|
8
|
+
gap: 8,
|
|
9
|
+
safetyGap: 2,
|
|
10
|
+
expandHysteresis: 16,
|
|
11
|
+
settle: 100,
|
|
12
|
+
maxSettle: 400,
|
|
13
|
+
beforeReady: "all",
|
|
14
|
+
itemSelector: "[data-filter-measure-item]",
|
|
15
|
+
observeParent: !0,
|
|
16
|
+
debounce: 0
|
|
17
|
+
});
|
|
18
|
+
return { setContainerRef: a, setMeasureRef: o, setMoreMeasureRef: n, visibleCount: i, ready: u };
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
m as default
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=useVisibleItemCount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useVisibleItemCount.js","sources":["../../../../src/components/ReactFilter/hooks/useVisibleItemCount.js"],"sourcesContent":["// @ts-nocheck\nimport { useOverflowItems } from '@kne/overflow-items';\n\n/**\n * Filter 扁平行可见数量:底层交给 @kne/overflow-items,保留原 selector / beforeReady=all 行为。\n */\nconst useVisibleItemCount = ({ items, enabled, strategy = 'asc' }) => {\n const safeItems = Array.isArray(items) ? items : [];\n\n const { setContainerRef, setMeasureRef, setMoreMeasureRef, visibleCount, ready } =\n useOverflowItems({\n itemCount: safeItems.length,\n items: safeItems,\n enabled,\n strategy,\n gap: 8,\n safetyGap: 2,\n expandHysteresis: 16,\n settle: 100,\n maxSettle: 400,\n beforeReady: 'all',\n itemSelector: '[data-filter-measure-item]',\n observeParent: true,\n debounce: 0,\n });\n\n return { setContainerRef, setMeasureRef, setMoreMeasureRef, visibleCount, ready };\n};\n\nexport default useVisibleItemCount;\n"],"names":["useVisibleItemCount","items","enabled","strategy","safeItems","setContainerRef","setMeasureRef","setMoreMeasureRef","visibleCount","ready","useOverflowItems"],"mappings":";AAMK,MAACA,IAAsB,CAAC,EAAE,OAAAC,GAAO,SAAAC,GAAS,UAAAC,IAAW,MAAK,MAAO;AACpE,QAAMC,IAAY,MAAM,QAAQH,CAAK,IAAIA,IAAQ,CAAA,GAE3C,EAAE,iBAAAI,GAAiB,eAAAC,GAAe,mBAAAC,GAAmB,cAAAC,GAAc,OAAAC,EAAK,IAC5EC,EAAiB;AAAA,IACf,WAAWN,EAAU;AAAA,IACrB,OAAOA;AAAA,IACP,SAAAF;AAAA,IACA,UAAAC;AAAA,IACA,KAAK;AAAA,IACL,WAAW;AAAA,IACX,kBAAkB;AAAA,IAClB,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,aAAa;AAAA,IACb,cAAc;AAAA,IACd,eAAe;AAAA,IACf,UAAU;AAAA,EAChB,CAAK;AAEH,SAAO,EAAE,iBAAAE,GAAiB,eAAAC,GAAe,mBAAAC,GAAmB,cAAAC,GAAc,OAAAC,EAAK;AACjF;"}
|