bitz-react-admin-ui 2.10.6 → 2.10.7-beta.2
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/dayjs.min.mjs +2 -5
- package/dist/components/BitzAddTag/index.mjs +7 -7
- package/dist/components/BitzAddressBook/index.mjs +18 -19
- package/dist/components/BitzCalendar/index.mjs +1 -1
- package/dist/components/BitzCascader/BitzCascaderMobile.mjs +1 -1
- package/dist/components/BitzCollapse/index.mjs +4 -5
- package/dist/components/BitzConfigProvider/index.mjs +5 -5
- package/dist/components/BitzConfirmModal/index.mjs +10 -10
- package/dist/components/BitzDayJs/index.mjs +1 -1
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarBody.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +28 -31
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +1 -1
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +17 -21
- package/dist/components/BitzFullScreen/index.mjs +11 -12
- package/dist/components/BitzImage/previewImage.mjs +4 -4
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
- package/dist/components/BitzMeetingTime/index.mjs +1 -1
- package/dist/components/BitzModal/index.mjs +1 -1
- package/dist/components/BitzOrganizationSelection/index.mjs +13 -14
- package/dist/components/BitzPageHeader/index.mjs +10 -11
- package/dist/components/BitzQueryFilter/index.mjs +6 -6
- package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +6 -6
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +21 -22
- package/dist/components/BitzTable/ActionBar/Button.mjs +6 -6
- package/dist/components/BitzTable/SelectionBar/Button.mjs +8 -8
- package/dist/components/BitzTable/Store/index.mjs +30 -28
- package/dist/components/BitzTable/SubTable/index.mjs +4 -4
- package/dist/components/BitzTable/Table/SortableRow.mjs +8 -8
- package/dist/components/BitzTable/Table/index.mjs +43 -43
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +54 -53
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +5 -5
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +80 -83
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +17 -17
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +17 -17
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +11 -11
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +11 -11
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +10 -10
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +14 -15
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +6 -6
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +27 -28
- package/dist/components/BitzTableSelect/TableCell/index.mjs +7 -7
- package/dist/components/BitzText/index.mjs +24 -25
- package/dist/components/BitzTimer/Timer.mjs +27 -31
- package/dist/components/BitzTimer/index.mjs +27 -30
- package/dist/components/BitzUpload/index.mjs +19 -20
- package/dist/node_modules/@ant-design/icons/es/components/AntdIcon.mjs +4 -4
- package/dist/node_modules/dayjs/dayjs.min.mjs +292 -292
- package/dist/node_modules/dayjs/locale/zh-cn.mjs +13 -13
- package/dist/node_modules/react-resizable/index.mjs +1 -1
- package/dist/node_modules/use-sync-external-store/shim/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +4 -5
- package/dist/utils/time.mjs +1 -1
- package/package.json +5 -1
- package/dist/_virtual/dayjs.min2.mjs +0 -4
- package/dist/node_modules/@ant-design/icons/es/icons/AlignCenterOutlined.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/AppstoreOutlined.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/ArrowLeftOutlined.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/ArrowRightOutlined.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/CaretDownFilled.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/CaretDownOutlined.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/CheckCircleOutlined.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/ClockCircleOutlined.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/CopyOutlined.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/DownOutlined.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/EditOutlined.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/ExclamationCircleOutlined.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/FullscreenExitOutlined.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/FullscreenOutlined.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/LeftOutlined.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/MenuFoldOutlined.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/MenuOutlined.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/MenuUnfoldOutlined.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/MinusCircleOutlined.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/PauseCircleFilled.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/PlayCircleFilled.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/PlusCircleFilled.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/PlusOutlined.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/RedoOutlined.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/ReloadOutlined.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/RightOutlined.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/SearchOutlined.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/SettingFilled.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/SettingOutlined.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/SwapRightOutlined.mjs +0 -15
- package/dist/node_modules/@ant-design/icons/es/icons/UploadOutlined.mjs +0 -15
- package/dist/node_modules/@ant-design/icons-svg/es/asn/AlignCenterOutlined.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/AppstoreOutlined.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ArrowLeftOutlined.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ArrowRightOutlined.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CaretDownFilled.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CaretDownOutlined.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckCircleOutlined.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ClockCircleOutlined.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CopyOutlined.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/DownOutlined.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/EditOutlined.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ExclamationCircleOutlined.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/FullscreenExitOutlined.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/FullscreenOutlined.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/InfoCircleOutlined.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/LeftOutlined.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/MenuFoldOutlined.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/MenuOutlined.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/MenuUnfoldOutlined.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/MinusCircleOutlined.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PauseCircleFilled.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PlayCircleFilled.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PlusCircleFilled.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PlusOutlined.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/RedoOutlined.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ReloadOutlined.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/RightOutlined.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/SettingFilled.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/SettingOutlined.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/SwapRightOutlined.mjs +0 -5
- package/dist/node_modules/@ant-design/icons-svg/es/asn/UploadOutlined.mjs +0 -5
- package/dist/node_modules/lodash-es/_DataView.mjs +0 -7
- package/dist/node_modules/lodash-es/_Hash.mjs +0 -20
- package/dist/node_modules/lodash-es/_ListCache.mjs +0 -20
- package/dist/node_modules/lodash-es/_Map.mjs +0 -7
- package/dist/node_modules/lodash-es/_MapCache.mjs +0 -20
- package/dist/node_modules/lodash-es/_Promise.mjs +0 -7
- package/dist/node_modules/lodash-es/_Set.mjs +0 -7
- package/dist/node_modules/lodash-es/_SetCache.mjs +0 -13
- package/dist/node_modules/lodash-es/_Stack.mjs +0 -18
- package/dist/node_modules/lodash-es/_Symbol.mjs +0 -6
- package/dist/node_modules/lodash-es/_Uint8Array.mjs +0 -6
- package/dist/node_modules/lodash-es/_WeakMap.mjs +0 -7
- package/dist/node_modules/lodash-es/_apply.mjs +0 -16
- package/dist/node_modules/lodash-es/_arrayEach.mjs +0 -8
- package/dist/node_modules/lodash-es/_arrayFilter.mjs +0 -10
- package/dist/node_modules/lodash-es/_arrayIncludes.mjs +0 -8
- package/dist/node_modules/lodash-es/_arrayIncludesWith.mjs +0 -9
- package/dist/node_modules/lodash-es/_arrayLikeKeys.mjs +0 -20
- package/dist/node_modules/lodash-es/_arrayMap.mjs +0 -8
- package/dist/node_modules/lodash-es/_arrayPush.mjs +0 -8
- package/dist/node_modules/lodash-es/_arraySome.mjs +0 -9
- package/dist/node_modules/lodash-es/_assignMergeValue.mjs +0 -8
- package/dist/node_modules/lodash-es/_assignValue.mjs +0 -10
- package/dist/node_modules/lodash-es/_assocIndexOf.mjs +0 -10
- package/dist/node_modules/lodash-es/_baseAssign.mjs +0 -8
- package/dist/node_modules/lodash-es/_baseAssignIn.mjs +0 -8
- package/dist/node_modules/lodash-es/_baseAssignValue.mjs +0 -12
- package/dist/node_modules/lodash-es/_baseAt.mjs +0 -9
- package/dist/node_modules/lodash-es/_baseClone.mjs +0 -65
- package/dist/node_modules/lodash-es/_baseCreate.mjs +0 -18
- package/dist/node_modules/lodash-es/_baseFindIndex.mjs +0 -9
- package/dist/node_modules/lodash-es/_baseFlatten.mjs +0 -13
- package/dist/node_modules/lodash-es/_baseFor.mjs +0 -6
- package/dist/node_modules/lodash-es/_baseForOwn.mjs +0 -8
- package/dist/node_modules/lodash-es/_baseGet.mjs +0 -11
- package/dist/node_modules/lodash-es/_baseGetAllKeys.mjs +0 -9
- package/dist/node_modules/lodash-es/_baseGetTag.mjs +0 -10
- package/dist/node_modules/lodash-es/_baseHasIn.mjs +0 -6
- package/dist/node_modules/lodash-es/_baseIndexOf.mjs +0 -9
- package/dist/node_modules/lodash-es/_baseIsArguments.mjs +0 -9
- package/dist/node_modules/lodash-es/_baseIsEqual.mjs +0 -8
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.mjs +0 -32
- package/dist/node_modules/lodash-es/_baseIsMap.mjs +0 -9
- package/dist/node_modules/lodash-es/_baseIsMatch.mjs +0 -31
- package/dist/node_modules/lodash-es/_baseIsNaN.mjs +0 -6
- package/dist/node_modules/lodash-es/_baseIsNative.mjs +0 -16
- package/dist/node_modules/lodash-es/_baseIsSet.mjs +0 -9
- package/dist/node_modules/lodash-es/_baseIsTypedArray.mjs +0 -12
- package/dist/node_modules/lodash-es/_baseIteratee.mjs +0 -11
- package/dist/node_modules/lodash-es/_baseKeys.mjs +0 -14
- package/dist/node_modules/lodash-es/_baseKeysIn.mjs +0 -15
- package/dist/node_modules/lodash-es/_baseMatches.mjs +0 -12
- package/dist/node_modules/lodash-es/_baseMatchesProperty.mjs +0 -17
- package/dist/node_modules/lodash-es/_baseMerge.mjs +0 -20
- package/dist/node_modules/lodash-es/_baseMergeDeep.mjs +0 -31
- package/dist/node_modules/lodash-es/_baseProperty.mjs +0 -8
- package/dist/node_modules/lodash-es/_basePropertyDeep.mjs +0 -9
- package/dist/node_modules/lodash-es/_baseRest.mjs +0 -9
- package/dist/node_modules/lodash-es/_baseSetToString.mjs +0 -15
- package/dist/node_modules/lodash-es/_baseSlice.mjs +0 -10
- package/dist/node_modules/lodash-es/_baseTimes.mjs +0 -8
- package/dist/node_modules/lodash-es/_baseToString.mjs +0 -18
- package/dist/node_modules/lodash-es/_baseUnary.mjs +0 -8
- package/dist/node_modules/lodash-es/_baseUniq.mjs +0 -34
- package/dist/node_modules/lodash-es/_baseUnset.mjs +0 -10
- package/dist/node_modules/lodash-es/_cacheHas.mjs +0 -6
- package/dist/node_modules/lodash-es/_castPath.mjs +0 -10
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.mjs +0 -8
- package/dist/node_modules/lodash-es/_cloneBuffer.mjs +0 -11
- package/dist/node_modules/lodash-es/_cloneDataView.mjs +0 -8
- package/dist/node_modules/lodash-es/_cloneRegExp.mjs +0 -8
- package/dist/node_modules/lodash-es/_cloneSymbol.mjs +0 -8
- package/dist/node_modules/lodash-es/_cloneTypedArray.mjs +0 -8
- package/dist/node_modules/lodash-es/_copyArray.mjs +0 -9
- package/dist/node_modules/lodash-es/_copyObject.mjs +0 -14
- package/dist/node_modules/lodash-es/_copySymbols.mjs +0 -8
- package/dist/node_modules/lodash-es/_copySymbolsIn.mjs +0 -8
- package/dist/node_modules/lodash-es/_coreJsData.mjs +0 -6
- package/dist/node_modules/lodash-es/_createAssigner.mjs +0 -15
- package/dist/node_modules/lodash-es/_createBaseFor.mjs +0 -13
- package/dist/node_modules/lodash-es/_createSet.mjs +0 -10
- package/dist/node_modules/lodash-es/_customOmitClone.mjs +0 -7
- package/dist/node_modules/lodash-es/_defineProperty.mjs +0 -12
- package/dist/node_modules/lodash-es/_equalArrays.mjs +0 -40
- package/dist/node_modules/lodash-es/_equalByTag.mjs +0 -45
- package/dist/node_modules/lodash-es/_equalObjects.mjs +0 -36
- package/dist/node_modules/lodash-es/_flatRest.mjs +0 -9
- package/dist/node_modules/lodash-es/_freeGlobal.mjs +0 -5
- package/dist/node_modules/lodash-es/_getAllKeys.mjs +0 -9
- package/dist/node_modules/lodash-es/_getAllKeysIn.mjs +0 -9
- package/dist/node_modules/lodash-es/_getMapData.mjs +0 -8
- package/dist/node_modules/lodash-es/_getMatchData.mjs +0 -12
- package/dist/node_modules/lodash-es/_getNative.mjs +0 -9
- package/dist/node_modules/lodash-es/_getPrototype.mjs +0 -6
- package/dist/node_modules/lodash-es/_getRawTag.mjs +0 -15
- package/dist/node_modules/lodash-es/_getSymbols.mjs +0 -11
- package/dist/node_modules/lodash-es/_getSymbolsIn.mjs +0 -13
- package/dist/node_modules/lodash-es/_getTag.mjs +0 -29
- package/dist/node_modules/lodash-es/_getValue.mjs +0 -6
- package/dist/node_modules/lodash-es/_hasPath.mjs +0 -19
- package/dist/node_modules/lodash-es/_hashClear.mjs +0 -7
- package/dist/node_modules/lodash-es/_hashDelete.mjs +0 -7
- package/dist/node_modules/lodash-es/_hashGet.mjs +0 -13
- package/dist/node_modules/lodash-es/_hashHas.mjs +0 -9
- package/dist/node_modules/lodash-es/_hashSet.mjs +0 -9
- package/dist/node_modules/lodash-es/_initCloneArray.mjs +0 -8
- package/dist/node_modules/lodash-es/_initCloneByTag.mjs +0 -42
- package/dist/node_modules/lodash-es/_initCloneObject.mjs +0 -9
- package/dist/node_modules/lodash-es/_isFlattenable.mjs +0 -10
- package/dist/node_modules/lodash-es/_isIndex.mjs +0 -8
- package/dist/node_modules/lodash-es/_isIterateeCall.mjs +0 -13
- package/dist/node_modules/lodash-es/_isKey.mjs +0 -12
- package/dist/node_modules/lodash-es/_isKeyable.mjs +0 -7
- package/dist/node_modules/lodash-es/_isMasked.mjs +0 -11
- package/dist/node_modules/lodash-es/_isPrototype.mjs +0 -8
- package/dist/node_modules/lodash-es/_isStrictComparable.mjs +0 -7
- package/dist/node_modules/lodash-es/_listCacheClear.mjs +0 -6
- package/dist/node_modules/lodash-es/_listCacheDelete.mjs +0 -12
- package/dist/node_modules/lodash-es/_listCacheGet.mjs +0 -8
- package/dist/node_modules/lodash-es/_listCacheHas.mjs +0 -7
- package/dist/node_modules/lodash-es/_listCacheSet.mjs +0 -8
- package/dist/node_modules/lodash-es/_mapCacheClear.mjs +0 -13
- package/dist/node_modules/lodash-es/_mapCacheDelete.mjs +0 -8
- package/dist/node_modules/lodash-es/_mapCacheGet.mjs +0 -7
- package/dist/node_modules/lodash-es/_mapCacheHas.mjs +0 -7
- package/dist/node_modules/lodash-es/_mapCacheSet.mjs +0 -8
- package/dist/node_modules/lodash-es/_mapToArray.mjs +0 -9
- package/dist/node_modules/lodash-es/_matchesStrictComparable.mjs +0 -8
- package/dist/node_modules/lodash-es/_memoizeCapped.mjs +0 -11
- package/dist/node_modules/lodash-es/_nativeCreate.mjs +0 -6
- package/dist/node_modules/lodash-es/_nativeKeys.mjs +0 -6
- package/dist/node_modules/lodash-es/_nativeKeysIn.mjs +0 -10
- package/dist/node_modules/lodash-es/_nodeUtil.mjs +0 -12
- package/dist/node_modules/lodash-es/_objectToString.mjs +0 -7
- package/dist/node_modules/lodash-es/_overArg.mjs +0 -8
- package/dist/node_modules/lodash-es/_overRest.mjs +0 -15
- package/dist/node_modules/lodash-es/_parent.mjs +0 -8
- package/dist/node_modules/lodash-es/_root.mjs +0 -6
- package/dist/node_modules/lodash-es/_safeGet.mjs +0 -7
- package/dist/node_modules/lodash-es/_setCacheAdd.mjs +0 -7
- package/dist/node_modules/lodash-es/_setCacheHas.mjs +0 -6
- package/dist/node_modules/lodash-es/_setToArray.mjs +0 -9
- package/dist/node_modules/lodash-es/_setToString.mjs +0 -7
- package/dist/node_modules/lodash-es/_shortOut.mjs +0 -16
- package/dist/node_modules/lodash-es/_stackClear.mjs +0 -7
- package/dist/node_modules/lodash-es/_stackDelete.mjs +0 -7
- package/dist/node_modules/lodash-es/_stackGet.mjs +0 -6
- package/dist/node_modules/lodash-es/_stackHas.mjs +0 -6
- package/dist/node_modules/lodash-es/_stackSet.mjs +0 -17
- package/dist/node_modules/lodash-es/_strictIndexOf.mjs +0 -9
- package/dist/node_modules/lodash-es/_stringToPath.mjs +0 -11
- package/dist/node_modules/lodash-es/_toKey.mjs +0 -11
- package/dist/node_modules/lodash-es/_toSource.mjs +0 -17
- package/dist/node_modules/lodash-es/at.mjs +0 -7
- package/dist/node_modules/lodash-es/constant.mjs +0 -8
- package/dist/node_modules/lodash-es/eq.mjs +0 -6
- package/dist/node_modules/lodash-es/flatten.mjs +0 -8
- package/dist/node_modules/lodash-es/get.mjs +0 -8
- package/dist/node_modules/lodash-es/hasIn.mjs +0 -8
- package/dist/node_modules/lodash-es/identity.mjs +0 -6
- package/dist/node_modules/lodash-es/isArguments.mjs +0 -11
- package/dist/node_modules/lodash-es/isArray.mjs +0 -5
- package/dist/node_modules/lodash-es/isArrayLike.mjs +0 -8
- package/dist/node_modules/lodash-es/isArrayLikeObject.mjs +0 -8
- package/dist/node_modules/lodash-es/isBoolean.mjs +0 -9
- package/dist/node_modules/lodash-es/isBuffer.mjs +0 -7
- package/dist/node_modules/lodash-es/isFunction.mjs +0 -12
- package/dist/node_modules/lodash-es/isLength.mjs +0 -7
- package/dist/node_modules/lodash-es/isMap.mjs +0 -8
- package/dist/node_modules/lodash-es/isObject.mjs +0 -7
- package/dist/node_modules/lodash-es/isObjectLike.mjs +0 -6
- package/dist/node_modules/lodash-es/isPlainObject.mjs +0 -16
- package/dist/node_modules/lodash-es/isSet.mjs +0 -8
- package/dist/node_modules/lodash-es/isSymbol.mjs +0 -9
- package/dist/node_modules/lodash-es/isTypedArray.mjs +0 -8
- package/dist/node_modules/lodash-es/keys.mjs +0 -9
- package/dist/node_modules/lodash-es/keysIn.mjs +0 -9
- package/dist/node_modules/lodash-es/last.mjs +0 -7
- package/dist/node_modules/lodash-es/mapValues.mjs +0 -12
- package/dist/node_modules/lodash-es/memoize.mjs +0 -18
- package/dist/node_modules/lodash-es/merge.mjs +0 -9
- package/dist/node_modules/lodash-es/noop.mjs +0 -5
- package/dist/node_modules/lodash-es/omit.mjs +0 -24
- package/dist/node_modules/lodash-es/property.mjs +0 -10
- package/dist/node_modules/lodash-es/stubArray.mjs +0 -6
- package/dist/node_modules/lodash-es/stubFalse.mjs +0 -6
- package/dist/node_modules/lodash-es/toPlainObject.mjs +0 -8
- package/dist/node_modules/lodash-es/toString.mjs +0 -7
- package/dist/node_modules/lodash-es/uniq.mjs +0 -7
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { j as t } from "../../../../node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { memo as j, useState as y, useContext as l, useMemo as E } from "react";
|
|
3
|
-
import b from "
|
|
4
|
-
import h from "
|
|
3
|
+
import { DownloadOutlined as b } from "@ant-design/icons";
|
|
4
|
+
import h from "../style.mjs";
|
|
5
|
+
import B from "../../../BitzButton/index.mjs";
|
|
5
6
|
import { BitzTableContext as i } from "../../Store/index.mjs";
|
|
6
|
-
import { exportConfigTitle as
|
|
7
|
-
import
|
|
8
|
-
import I from "../../../../node_modules/@ant-design/icons/es/icons/DownloadOutlined.mjs";
|
|
7
|
+
import { exportConfigTitle as C } from "../ColConfigIcon/ColumnConfigModal.mjs";
|
|
8
|
+
import I from "./ExportModal.mjs";
|
|
9
9
|
const z = ({
|
|
10
10
|
show: p = !0,
|
|
11
11
|
order: a,
|
|
12
12
|
onClick: o,
|
|
13
|
-
icon: f = /* @__PURE__ */ t.jsx(
|
|
13
|
+
icon: f = /* @__PURE__ */ t.jsx(b, {})
|
|
14
14
|
}) => {
|
|
15
|
-
const { toolbarItemClassName: x } =
|
|
15
|
+
const { toolbarItemClassName: x } = h(), [u, s] = y(!1);
|
|
16
16
|
l(i).exportConfig;
|
|
17
17
|
const { loading: c, fullscreen: n, dataSource: e } = l(i), d = E(() => n ? !1 : void 0, [n]), g = async (r) => {
|
|
18
18
|
var m;
|
|
@@ -20,17 +20,17 @@ const z = ({
|
|
|
20
20
|
};
|
|
21
21
|
return p ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
22
22
|
/* @__PURE__ */ t.jsx(
|
|
23
|
-
|
|
23
|
+
I,
|
|
24
24
|
{
|
|
25
25
|
open: u,
|
|
26
|
-
title:
|
|
26
|
+
title: C,
|
|
27
27
|
getContainer: d,
|
|
28
28
|
onExport: g,
|
|
29
29
|
close: () => s(!1)
|
|
30
30
|
}
|
|
31
31
|
),
|
|
32
32
|
/* @__PURE__ */ t.jsx(
|
|
33
|
-
|
|
33
|
+
B,
|
|
34
34
|
{
|
|
35
35
|
type: "text",
|
|
36
36
|
className: x,
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
import { j as s } from "../../../../node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { memo as E, useContext as B, useMemo as z, useEffect as F } from "react";
|
|
3
|
-
import L from "
|
|
4
|
-
import
|
|
3
|
+
import { FullscreenExitOutlined as L, FullscreenOutlined as T } from "@ant-design/icons";
|
|
4
|
+
import g from "../style.mjs";
|
|
5
|
+
import j from "../../../BitzButton/index.mjs";
|
|
5
6
|
import l from "../../../../node_modules/screenfull/index.mjs";
|
|
6
|
-
import
|
|
7
|
-
import { findParentFirstNodeByClass as
|
|
8
|
-
import { BitzTableContext as
|
|
9
|
-
import h from "../../../../node_modules/@ant-design/icons/es/icons/FullscreenExitOutlined.mjs";
|
|
10
|
-
import k from "../../../../node_modules/@ant-design/icons/es/icons/FullscreenOutlined.mjs";
|
|
7
|
+
import C from "../../../BitzToast/index.mjs";
|
|
8
|
+
import { findParentFirstNodeByClass as h } from "../../../../utils/findNode.mjs";
|
|
9
|
+
import { BitzTableContext as k } from "../../Store/index.mjs";
|
|
11
10
|
const y = ({
|
|
12
11
|
order: d,
|
|
13
12
|
show: p = !0
|
|
14
13
|
}) => {
|
|
15
|
-
const { toolbarItemClassName: b } =
|
|
14
|
+
const { toolbarItemClassName: b } = g(), { fullscreen: n, setFullscreen: o } = B(k), r = z(() => n ? {
|
|
16
15
|
title: "退出全屏",
|
|
17
|
-
icon: /* @__PURE__ */ s.jsx(
|
|
16
|
+
icon: /* @__PURE__ */ s.jsx(L, {})
|
|
18
17
|
} : {
|
|
19
18
|
title: "全屏",
|
|
20
|
-
icon: /* @__PURE__ */ s.jsx(
|
|
19
|
+
icon: /* @__PURE__ */ s.jsx(T, {})
|
|
21
20
|
}, [n]), x = (e) => {
|
|
22
|
-
l.isEnabled ||
|
|
23
|
-
const t =
|
|
21
|
+
l.isEnabled || C.error("您的浏览器不支持全屏");
|
|
22
|
+
const t = h(e.target, "bitzTableBlock");
|
|
24
23
|
n ? l.exit() : l.request(t);
|
|
25
24
|
};
|
|
26
25
|
return F(() => {
|
|
@@ -35,7 +34,7 @@ const y = ({
|
|
|
35
34
|
};
|
|
36
35
|
return document == null || document.addEventListener("fullscreenchange", t), () => document == null ? void 0 : document.removeEventListener("fullscreenchange", t);
|
|
37
36
|
}, []), p ? /* @__PURE__ */ s.jsx(
|
|
38
|
-
|
|
37
|
+
j,
|
|
39
38
|
{
|
|
40
39
|
type: "text",
|
|
41
40
|
className: b,
|
|
@@ -45,7 +44,7 @@ const y = ({
|
|
|
45
44
|
children: r.title
|
|
46
45
|
}
|
|
47
46
|
) : null;
|
|
48
|
-
},
|
|
47
|
+
}, R = E(y);
|
|
49
48
|
export {
|
|
50
|
-
|
|
49
|
+
R as default
|
|
51
50
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { j as o } from "../../../../node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { memo as a, useContext as c } from "react";
|
|
3
3
|
import { Tooltip as p } from "antd";
|
|
4
|
-
import f from "
|
|
5
|
-
import d from "
|
|
6
|
-
import
|
|
7
|
-
import x from "
|
|
4
|
+
import { ReloadOutlined as f } from "@ant-design/icons";
|
|
5
|
+
import d from "../style.mjs";
|
|
6
|
+
import u from "../../../BitzButton/index.mjs";
|
|
7
|
+
import { BitzTableContext as x } from "../../Store/index.mjs";
|
|
8
8
|
const h = (t) => {
|
|
9
|
-
const { onClick: e, order: r, show: s = !0, icon: n = /* @__PURE__ */ o.jsx(
|
|
9
|
+
const { onClick: e, order: r, show: s = !0, icon: n = /* @__PURE__ */ o.jsx(f, {}) } = t, { loading: l, selected: m } = c(x), { toolbarItemClassName: i } = d();
|
|
10
10
|
return s ? /* @__PURE__ */ o.jsx(p, { title: "刷新", open: !1, children: /* @__PURE__ */ o.jsx(
|
|
11
|
-
|
|
11
|
+
u,
|
|
12
12
|
{
|
|
13
13
|
type: "text",
|
|
14
14
|
className: i,
|
|
@@ -4,22 +4,21 @@ import { Row as y, Col as p, Space as H, Form as S, Select as O, Spin as ae, Typ
|
|
|
4
4
|
import de from "../../BitzPagination/index.mjs";
|
|
5
5
|
import he from "../../BitzTable/index.mjs";
|
|
6
6
|
import q from "../../BitzButton/index.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import Se from "
|
|
9
|
-
import fe from "
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
7
|
+
import { InfoCircleOutlined as xe, CloseOutlined as me } from "@ant-design/icons";
|
|
8
|
+
import { getColumns as je, getExpandable as Se, getLayoutConfig as be } from "./getData.mjs";
|
|
9
|
+
import fe from "../TextBlock/index.mjs";
|
|
10
|
+
import ge from "../../../node_modules/ahooks/es/useSize/index.mjs";
|
|
11
|
+
import ye from "../../BitzTheme/index.mjs";
|
|
12
|
+
import we from "../../../node_modules/classnames/index.mjs";
|
|
13
|
+
import { BitzConfigContext as Te } from "../../BitzConfigProvider/context.mjs";
|
|
14
|
+
import ve from "../../BitzHighlight/index.mjs";
|
|
14
15
|
import "./index.less.mjs";
|
|
15
|
-
|
|
16
|
-
import ve from "../../../node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
|
|
17
|
-
function Ge({
|
|
16
|
+
function Oe({
|
|
18
17
|
columns: J,
|
|
19
18
|
tableData: w,
|
|
20
19
|
total: L,
|
|
21
20
|
loading: u,
|
|
22
|
-
loadingFailed:
|
|
21
|
+
loadingFailed: f,
|
|
23
22
|
loadAgain: Q,
|
|
24
23
|
page: z,
|
|
25
24
|
onPageChange: U,
|
|
@@ -37,11 +36,11 @@ function Ge({
|
|
|
37
36
|
onDropdownVisibleChange: g
|
|
38
37
|
}) {
|
|
39
38
|
var _, $, A;
|
|
40
|
-
const M = re(null), B =
|
|
39
|
+
const M = re(null), B = ge(M), { token: i } = ye.useToken(), K = ((_ = i == null ? void 0 : i.BitzTableSelect) == null ? void 0 : _.tableSpaceBetweenPage) ?? 10, Z = (($ = ne(Te).TableSelect) == null ? void 0 : $.defaultSize) ?? "md", [c, d] = C([]), [l, h] = C([]), [D, V] = C(void 0), N = (o, s) => {
|
|
41
40
|
V(o), T == null || T(o, s), o || (g(!0), setTimeout(() => {
|
|
42
41
|
g(!1);
|
|
43
42
|
}, 0));
|
|
44
|
-
}, ee =
|
|
43
|
+
}, ee = je(J, w, z), te = {
|
|
45
44
|
type: k === "single" ? "radio" : "checkbox",
|
|
46
45
|
selectedRowKeys: c,
|
|
47
46
|
...k === "single" ? {
|
|
@@ -70,17 +69,17 @@ function Ge({
|
|
|
70
69
|
r.forEach((j) => {
|
|
71
70
|
m.set(j[t.value], j);
|
|
72
71
|
});
|
|
73
|
-
const
|
|
72
|
+
const b = l == null ? void 0 : l.filter(
|
|
74
73
|
(j) => !m.has(j[t.value])
|
|
75
74
|
);
|
|
76
|
-
d(x), h(
|
|
75
|
+
d(x), h(b);
|
|
77
76
|
}
|
|
78
77
|
}
|
|
79
78
|
}
|
|
80
|
-
}, oe = ce(() =>
|
|
79
|
+
}, oe = ce(() => Se(t.items, u), [t.items, u]), se = () => {
|
|
81
80
|
const o = (s) => {
|
|
82
|
-
const r = [...c], n = [...l], x = r.findIndex((
|
|
83
|
-
(
|
|
81
|
+
const r = [...c], n = [...l], x = r.findIndex((b) => b === s[t.value]), m = n.findIndex(
|
|
82
|
+
(b) => b[t.value] === s[t.value]
|
|
84
83
|
);
|
|
85
84
|
n.splice(m, 1), r.splice(x, 1), d(r), h(n);
|
|
86
85
|
};
|
|
@@ -107,9 +106,9 @@ function Ge({
|
|
|
107
106
|
overflow: "hidden"
|
|
108
107
|
},
|
|
109
108
|
children: [
|
|
110
|
-
/* @__PURE__ */ e.jsx("div", { style: { width: "calc(100% - 15px)" }, children: /* @__PURE__ */ e.jsx(
|
|
109
|
+
/* @__PURE__ */ e.jsx("div", { style: { width: "calc(100% - 15px)" }, children: /* @__PURE__ */ e.jsx(fe, { value: s[t.label] }) }),
|
|
111
110
|
/* @__PURE__ */ e.jsx(
|
|
112
|
-
|
|
111
|
+
me,
|
|
113
112
|
{
|
|
114
113
|
style: {
|
|
115
114
|
color: i.colorError,
|
|
@@ -127,11 +126,11 @@ function Ge({
|
|
|
127
126
|
]
|
|
128
127
|
}
|
|
129
128
|
);
|
|
130
|
-
}, a = F(() =>
|
|
129
|
+
}, a = F(() => be(v, P), [v, P]), le = F(() => we(
|
|
131
130
|
{ loadingTable: u },
|
|
132
|
-
{ loadingFailedTable:
|
|
131
|
+
{ loadingFailedTable: f },
|
|
133
132
|
"bitzSelectTable"
|
|
134
|
-
), [
|
|
133
|
+
), [f, u]);
|
|
135
134
|
return ie(() => {
|
|
136
135
|
d(R ?? []), h(I ?? []);
|
|
137
136
|
}, [R, I]), /* @__PURE__ */ e.jsxs(y, { gutter: a.gutter, children: [
|
|
@@ -176,7 +175,7 @@ function Ge({
|
|
|
176
175
|
}
|
|
177
176
|
),
|
|
178
177
|
/* @__PURE__ */ e.jsx("div", { className: "tableSelectPopupTotalSelectTip", children: /* @__PURE__ */ e.jsx(
|
|
179
|
-
|
|
178
|
+
ve,
|
|
180
179
|
{
|
|
181
180
|
highlightTag: "strong",
|
|
182
181
|
sourceString: `已选择 ${c.length || 0} 条数据`,
|
|
@@ -209,15 +208,15 @@ function Ge({
|
|
|
209
208
|
"div",
|
|
210
209
|
{
|
|
211
210
|
ref: M,
|
|
212
|
-
...
|
|
211
|
+
...f && {
|
|
213
212
|
className: "pointerMouse",
|
|
214
213
|
onClick: () => Q()
|
|
215
214
|
},
|
|
216
215
|
children: /* @__PURE__ */ e.jsx(
|
|
217
216
|
ae,
|
|
218
217
|
{
|
|
219
|
-
spinning:
|
|
220
|
-
indicator: /* @__PURE__ */ e.jsx(
|
|
218
|
+
spinning: f,
|
|
219
|
+
indicator: /* @__PURE__ */ e.jsx(xe, {}),
|
|
221
220
|
tip: /* @__PURE__ */ e.jsx(pe.Text, { type: "danger", children: "加载失败,点击重试" }),
|
|
222
221
|
children: /* @__PURE__ */ e.jsx(
|
|
223
222
|
he,
|
|
@@ -260,5 +259,5 @@ function Ge({
|
|
|
260
259
|
] });
|
|
261
260
|
}
|
|
262
261
|
export {
|
|
263
|
-
|
|
262
|
+
Oe as default
|
|
264
263
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { j as o } from "../../../node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { useMemo as p, useState as u } from "react";
|
|
3
3
|
import { Input as x } from "antd";
|
|
4
|
-
import f from "
|
|
4
|
+
import { CloseOutlined as f } from "@ant-design/icons";
|
|
5
|
+
import g from "../TextBlock/index.mjs";
|
|
5
6
|
import s from "../../../node_modules/classnames/index.mjs";
|
|
6
|
-
import
|
|
7
|
+
import B from "../../BitzTheme/index.mjs";
|
|
7
8
|
import "./index.less.mjs";
|
|
8
|
-
import { tablePaddingInline as
|
|
9
|
-
import T from "../../../node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
|
|
9
|
+
import { tablePaddingInline as T } from "../../BitzConfigProvider/context.mjs";
|
|
10
10
|
const { TextArea: I } = x, z = ({ value: n, isLatterHalf: a = !1 }) => {
|
|
11
11
|
var r, c;
|
|
12
|
-
const { token: e } =
|
|
12
|
+
const { token: e } = B.useToken(), l = ((r = e.Table) == null ? void 0 : r.cellPaddingInline) ?? T, i = ((c = e == null ? void 0 : e.BitzTableSelect) == null ? void 0 : c.paddingBlock) ?? 10, m = p(() => ({
|
|
13
13
|
paddingBlock: i,
|
|
14
14
|
paddingInline: l
|
|
15
15
|
}), [e]), [d, t] = u(!1);
|
|
@@ -21,7 +21,7 @@ const { TextArea: I } = x, z = ({ value: n, isLatterHalf: a = !1 }) => {
|
|
|
21
21
|
onFocus: () => t(!0),
|
|
22
22
|
onBlur: () => t(!1),
|
|
23
23
|
children: [
|
|
24
|
-
/* @__PURE__ */ o.jsx(
|
|
24
|
+
/* @__PURE__ */ o.jsx(g, { className: s("cellText"), value: n }),
|
|
25
25
|
/* @__PURE__ */ o.jsxs(
|
|
26
26
|
"div",
|
|
27
27
|
{
|
|
@@ -38,7 +38,7 @@ const { TextArea: I } = x, z = ({ value: n, isLatterHalf: a = !1 }) => {
|
|
|
38
38
|
},
|
|
39
39
|
children: [
|
|
40
40
|
/* @__PURE__ */ o.jsx(
|
|
41
|
-
|
|
41
|
+
f,
|
|
42
42
|
{
|
|
43
43
|
className: s("closeIcon", a ? "top" : "bottom"),
|
|
44
44
|
onClick: () => t(!1)
|
|
@@ -1,35 +1,34 @@
|
|
|
1
1
|
import { j as t } from "../../node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import z from "
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
2
|
+
import { CheckOutlined as z, CopyOutlined as k } from "@ant-design/icons";
|
|
3
|
+
import N from "../../node_modules/classnames/index.mjs";
|
|
4
|
+
import T from "../../node_modules/antd/es/typography/hooks/useCopyClick.mjs";
|
|
5
|
+
import { useRef as s, useState as v, useMemo as O } from "react";
|
|
6
|
+
import { theme as R } from "antd";
|
|
7
|
+
import { isNotFalsly as m, defaultValue as W } from "./utils.mjs";
|
|
8
|
+
import b from "../BitzTooltip/index.mjs";
|
|
8
9
|
import "./index.less.mjs";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const { token: s } = v.useToken(), i = r(null), n = r(null), l = r(null), [h, c] = N(!1), f = (j) => {
|
|
13
|
-
var a, u;
|
|
10
|
+
const V = ({ text: e, className: p, style: d }) => {
|
|
11
|
+
const { token: r } = R.useToken(), n = s(null), i = s(null), l = s(null), [h, c] = v(!1), a = (j) => {
|
|
12
|
+
var f, u;
|
|
14
13
|
if (m(e))
|
|
15
14
|
if (j) {
|
|
16
|
-
const C = (
|
|
15
|
+
const C = (f = i.current) == null ? void 0 : f.offsetWidth;
|
|
17
16
|
((u = l.current) == null ? void 0 : u.offsetWidth) > C && c(!0);
|
|
18
17
|
} else
|
|
19
18
|
c(!1);
|
|
20
|
-
}, { copied: x, onClick: y } =
|
|
19
|
+
}, { copied: x, onClick: y } = T({
|
|
21
20
|
copyConfig: { text: e }
|
|
22
|
-
}), o =
|
|
23
|
-
return /* @__PURE__ */ t.jsx(
|
|
21
|
+
}), o = O(() => m(e), [e]);
|
|
22
|
+
return /* @__PURE__ */ t.jsx(b, { open: h, wrapper: n.current, tip: e, children: /* @__PURE__ */ t.jsxs(
|
|
24
23
|
"div",
|
|
25
24
|
{
|
|
26
|
-
ref:
|
|
27
|
-
onMouseOver: () =>
|
|
28
|
-
onMouseOut: () =>
|
|
25
|
+
ref: n,
|
|
26
|
+
onMouseOver: () => a(!0),
|
|
27
|
+
onMouseOut: () => a(!1),
|
|
29
28
|
style: { width: "100%", position: "relative", ...d },
|
|
30
|
-
className:
|
|
29
|
+
className: N("bitzTextBlock", p),
|
|
31
30
|
children: [
|
|
32
|
-
/* @__PURE__ */ t.jsx("span", { ref:
|
|
31
|
+
/* @__PURE__ */ t.jsx("span", { ref: i, className: "bitzTextContent", children: o ? e : W }),
|
|
33
32
|
o && /* @__PURE__ */ t.jsx(
|
|
34
33
|
"span",
|
|
35
34
|
{
|
|
@@ -40,16 +39,16 @@ const q = ({ text: e, className: p, style: d }) => {
|
|
|
40
39
|
children: e
|
|
41
40
|
}
|
|
42
41
|
),
|
|
43
|
-
o && /* @__PURE__ */ t.jsx("div", { className: "copyIcon", style: { color:
|
|
44
|
-
|
|
42
|
+
o && /* @__PURE__ */ t.jsx("div", { className: "copyIcon", style: { color: r.colorPrimary }, children: x ? /* @__PURE__ */ t.jsx(
|
|
43
|
+
z,
|
|
45
44
|
{
|
|
46
45
|
style: {
|
|
47
46
|
fontSize: "inherit",
|
|
48
|
-
color:
|
|
47
|
+
color: r.colorSuccess
|
|
49
48
|
}
|
|
50
49
|
}
|
|
51
50
|
) : /* @__PURE__ */ t.jsx(
|
|
52
|
-
|
|
51
|
+
k,
|
|
53
52
|
{
|
|
54
53
|
onClick: y,
|
|
55
54
|
style: { fontSize: "inherit" }
|
|
@@ -60,5 +59,5 @@ const q = ({ text: e, className: p, style: d }) => {
|
|
|
60
59
|
) });
|
|
61
60
|
};
|
|
62
61
|
export {
|
|
63
|
-
|
|
62
|
+
V as default
|
|
64
63
|
};
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import { j as s } from "../../node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import
|
|
2
|
+
import c from "./index.module.less.mjs";
|
|
3
3
|
import { useState as j, useEffect as t } from "react";
|
|
4
4
|
import S from "../../node_modules/ahooks/es/useInterval/index.mjs";
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import E from "../../node_modules/@ant-design/icons/es/icons/PlayCircleFilled.mjs";
|
|
11
|
-
import g from "../../node_modules/@ant-design/icons/es/icons/EditOutlined.mjs";
|
|
12
|
-
import w from "../../node_modules/@ant-design/icons/es/icons/CheckOutlined.mjs";
|
|
13
|
-
import D from "../../node_modules/@ant-design/icons/es/icons/DeleteOutlined.mjs";
|
|
5
|
+
import u from "../BitzButton/index.mjs";
|
|
6
|
+
import { PauseCircleFilled as k, PlayCircleFilled as v, EditOutlined as F, CheckOutlined as M, DeleteOutlined as E } from "@ant-design/icons";
|
|
7
|
+
import { Space as g } from "antd";
|
|
8
|
+
import { getLastTimeStr as w } from "../../utils/time.mjs";
|
|
9
|
+
import D from "./Form.mjs";
|
|
14
10
|
function O(e) {
|
|
15
11
|
if (isNaN(e))
|
|
16
12
|
return "00:00:00";
|
|
@@ -20,20 +16,20 @@ function O(e) {
|
|
|
20
16
|
e %= 1e3 * 3600;
|
|
21
17
|
const m = Math.floor(e / (1e3 * 60));
|
|
22
18
|
e %= 1e3 * 60;
|
|
23
|
-
const d = Math.floor(e / 1e3),
|
|
24
|
-
return l <= 0 ? `${
|
|
19
|
+
const d = Math.floor(e / 1e3), r = (f) => f < 10 ? "0" + f : f;
|
|
20
|
+
return l <= 0 ? `${r(a)}:${r(m)}:${r(d)}` : `${l}.${r(a)}:${r(m)}:${r(d)}`;
|
|
25
21
|
}
|
|
26
|
-
const
|
|
22
|
+
const A = ({
|
|
27
23
|
option: e,
|
|
28
24
|
pause: l,
|
|
29
25
|
start: a,
|
|
30
26
|
edit: m,
|
|
31
27
|
remove: d
|
|
32
28
|
}) => {
|
|
33
|
-
const [
|
|
29
|
+
const [r, f] = j((e == null ? void 0 : e.duration) || 0), [N, h] = j(e != null && e.start ? 1e3 : void 0), [i, x] = j(!1);
|
|
34
30
|
S(() => {
|
|
35
|
-
f(
|
|
36
|
-
},
|
|
31
|
+
f(r + 1e3);
|
|
32
|
+
}, N);
|
|
37
33
|
const y = () => {
|
|
38
34
|
h(void 0), l == null || l(e == null ? void 0 : e.id);
|
|
39
35
|
}, $ = () => {
|
|
@@ -47,21 +43,21 @@ const K = ({
|
|
|
47
43
|
f((e == null ? void 0 : e.duration) || 0);
|
|
48
44
|
}, [e == null ? void 0 : e.duration]), t(() => {
|
|
49
45
|
x((e == null ? void 0 : e.edit) || !1);
|
|
50
|
-
}, [e == null ? void 0 : e.edit]), /* @__PURE__ */ s.jsxs("div", { className:
|
|
51
|
-
/* @__PURE__ */ s.jsx("div", { children:
|
|
46
|
+
}, [e == null ? void 0 : e.edit]), /* @__PURE__ */ s.jsxs("div", { className: c.timer, children: [
|
|
47
|
+
/* @__PURE__ */ s.jsx("div", { children: N === 1e3 ? /* @__PURE__ */ s.jsx(k, { className: `${c.btn} ${c.pause}`, onClick: y }) : /* @__PURE__ */ s.jsx(v, { className: c.btn, onClick: $ }) }),
|
|
52
48
|
/* @__PURE__ */ s.jsxs("div", { children: [
|
|
53
|
-
/* @__PURE__ */ s.jsxs("div", { className:
|
|
54
|
-
/* @__PURE__ */ s.jsx("span", { className:
|
|
55
|
-
/* @__PURE__ */ s.jsxs(
|
|
56
|
-
/* @__PURE__ */ s.jsx(
|
|
57
|
-
/* @__PURE__ */ s.jsx(
|
|
49
|
+
/* @__PURE__ */ s.jsxs("div", { className: c.flex, children: [
|
|
50
|
+
/* @__PURE__ */ s.jsx("span", { className: c.time, children: O(r) }),
|
|
51
|
+
/* @__PURE__ */ s.jsxs(g, { className: c.tools, children: [
|
|
52
|
+
/* @__PURE__ */ s.jsx(u, { shape: "circle", icon: /* @__PURE__ */ s.jsx(F, {}), onClick: C }),
|
|
53
|
+
/* @__PURE__ */ s.jsx(u, { type: "primary", shape: "circle", icon: /* @__PURE__ */ s.jsx(M, {}) }),
|
|
58
54
|
/* @__PURE__ */ s.jsx(
|
|
59
|
-
|
|
55
|
+
u,
|
|
60
56
|
{
|
|
61
57
|
type: "primary",
|
|
62
58
|
shape: "circle",
|
|
63
59
|
danger: !0,
|
|
64
|
-
icon: /* @__PURE__ */ s.jsx(
|
|
60
|
+
icon: /* @__PURE__ */ s.jsx(E, {}),
|
|
65
61
|
onClick: () => {
|
|
66
62
|
d == null || d();
|
|
67
63
|
}
|
|
@@ -69,12 +65,12 @@ const K = ({
|
|
|
69
65
|
)
|
|
70
66
|
] })
|
|
71
67
|
] }),
|
|
72
|
-
/* @__PURE__ */ s.jsxs("div", { className:
|
|
73
|
-
/* @__PURE__ */ s.jsx("span", { className:
|
|
74
|
-
/* @__PURE__ */ s.jsx("span", { className:
|
|
68
|
+
/* @__PURE__ */ s.jsxs("div", { className: c.desc, children: [
|
|
69
|
+
/* @__PURE__ */ s.jsx("span", { className: c["desc-title"], children: "测试案件00001" }),
|
|
70
|
+
/* @__PURE__ */ s.jsx("span", { className: c["desc-time"], children: w("normal", (/* @__PURE__ */ new Date()).toLocaleString(), !0) })
|
|
75
71
|
] }),
|
|
76
|
-
|
|
77
|
-
|
|
72
|
+
i && /* @__PURE__ */ s.jsx(
|
|
73
|
+
D,
|
|
78
74
|
{
|
|
79
75
|
finish: () => {
|
|
80
76
|
x(!1);
|
|
@@ -88,5 +84,5 @@ const K = ({
|
|
|
88
84
|
] });
|
|
89
85
|
};
|
|
90
86
|
export {
|
|
91
|
-
|
|
87
|
+
A as Timer
|
|
92
88
|
};
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { j as e } from "../../node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import t from "./index.module.less.mjs";
|
|
3
3
|
import { useRef as N, useEffect as g } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
import k from "../../node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
|
|
11
|
-
import A from "../../node_modules/@ant-design/icons/es/icons/PlusCircleFilled.mjs";
|
|
12
|
-
const { Option: d } = p, G = ({ show: n = !0, hide: c = () => {
|
|
4
|
+
import { CloseOutlined as C, ExclamationCircleOutlined as w, PlusCircleFilled as L, ExclamationCircleFilled as T } from "@ant-design/icons";
|
|
5
|
+
import { App as y, Alert as O, Select as p, Tag as R } from "antd";
|
|
6
|
+
import { useImmer as S } from "../../node_modules/use-immer/dist/use-immer.module.mjs";
|
|
7
|
+
import { Timer as k } from "./Timer.mjs";
|
|
8
|
+
import A from "../BitzEmpty/index.mjs";
|
|
9
|
+
const { Option: d } = p, P = ({ show: n = !0, hide: c = () => {
|
|
13
10
|
} }) => {
|
|
14
|
-
const { modal: h } =
|
|
11
|
+
const { modal: h } = y.useApp(), { confirm: u } = h, m = N(null), [o, i] = S([
|
|
15
12
|
{
|
|
16
13
|
id: 1,
|
|
17
14
|
start: !0,
|
|
@@ -38,28 +35,28 @@ const { Option: d } = p, G = ({ show: n = !0, hide: c = () => {
|
|
|
38
35
|
var s;
|
|
39
36
|
(s = m.current) == null || s.classList.remove(t.show), c == null || c();
|
|
40
37
|
}, j = (s) => {
|
|
41
|
-
|
|
42
|
-
s === r.id ?
|
|
43
|
-
|
|
44
|
-
}) :
|
|
45
|
-
|
|
38
|
+
o.forEach((r, l) => {
|
|
39
|
+
s === r.id ? i((a) => {
|
|
40
|
+
a[l].start = !0;
|
|
41
|
+
}) : i((a) => {
|
|
42
|
+
a[l].start = !1;
|
|
46
43
|
});
|
|
47
44
|
});
|
|
48
45
|
}, v = (s) => {
|
|
49
|
-
|
|
50
|
-
s === r.id ?
|
|
51
|
-
|
|
52
|
-
}) :
|
|
53
|
-
|
|
46
|
+
o.forEach((r, l) => {
|
|
47
|
+
s === r.id ? i((a) => {
|
|
48
|
+
a[l].edit = !0;
|
|
49
|
+
}) : i((a) => {
|
|
50
|
+
a[l].edit = !1;
|
|
54
51
|
});
|
|
55
52
|
});
|
|
56
53
|
}, E = (s) => {
|
|
57
54
|
u({
|
|
58
55
|
title: "温馨提醒",
|
|
59
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
56
|
+
icon: /* @__PURE__ */ e.jsx(T, {}),
|
|
60
57
|
content: "确定要删除吗?",
|
|
61
58
|
onOk() {
|
|
62
|
-
|
|
59
|
+
i((r) => {
|
|
63
60
|
r.splice(s, 1);
|
|
64
61
|
});
|
|
65
62
|
}
|
|
@@ -68,9 +65,9 @@ const { Option: d } = p, G = ({ show: n = !0, hide: c = () => {
|
|
|
68
65
|
return /* @__PURE__ */ e.jsxs("div", { className: `${t.container} ${n ? t.show : ""}`, ref: m, children: [
|
|
69
66
|
/* @__PURE__ */ e.jsxs("div", { className: t.header, children: [
|
|
70
67
|
/* @__PURE__ */ e.jsx("h3", { children: "工作日志计时器" }),
|
|
71
|
-
/* @__PURE__ */ e.jsx(
|
|
68
|
+
/* @__PURE__ */ e.jsx(C, { className: t.close, onClick: f })
|
|
72
69
|
] }),
|
|
73
|
-
/* @__PURE__ */ e.jsx(
|
|
70
|
+
/* @__PURE__ */ e.jsx(O, { className: t.alert, message: "单计时器时长超出24小时部分无法计入日志!", type: "warning" }),
|
|
74
71
|
/* @__PURE__ */ e.jsxs(p, { showSearch: !0, placeholder: "任务检索关键字:通过任务穿件计时器", className: t.select, children: [
|
|
75
72
|
/* @__PURE__ */ e.jsx(d, { value: "male", children: "male" }),
|
|
76
73
|
/* @__PURE__ */ e.jsx(d, { value: "female", children: "female" }),
|
|
@@ -78,15 +75,15 @@ const { Option: d } = p, G = ({ show: n = !0, hide: c = () => {
|
|
|
78
75
|
] }),
|
|
79
76
|
/* @__PURE__ */ e.jsxs("h4", { children: [
|
|
80
77
|
/* @__PURE__ */ e.jsx("span", { children: "运行中的计时器" }),
|
|
81
|
-
/* @__PURE__ */ e.jsx(
|
|
78
|
+
/* @__PURE__ */ e.jsx(R, { icon: /* @__PURE__ */ e.jsx(w, {}), color: "warning", className: t.tag, children: "只允许单个计时器开启计时" })
|
|
82
79
|
] }),
|
|
83
|
-
/* @__PURE__ */ e.jsx("div", { className: t.timerList, children:
|
|
80
|
+
/* @__PURE__ */ e.jsx("div", { className: t.timerList, children: o.length ? o.map((s, r) => /* @__PURE__ */ e.jsx(k, { option: s, start: j, edit: v, remove: () => E(r) }, s.id)) : /* @__PURE__ */ e.jsx(A, { style: { marginTop: 50 } }) }),
|
|
84
81
|
/* @__PURE__ */ e.jsx(
|
|
85
|
-
|
|
82
|
+
L,
|
|
86
83
|
{
|
|
87
84
|
className: t.addbtn,
|
|
88
85
|
onClick: () => {
|
|
89
|
-
|
|
86
|
+
i((s) => {
|
|
90
87
|
s.unshift({
|
|
91
88
|
id: Math.random(),
|
|
92
89
|
start: !1,
|
|
@@ -99,6 +96,6 @@ const { Option: d } = p, G = ({ show: n = !0, hide: c = () => {
|
|
|
99
96
|
] });
|
|
100
97
|
};
|
|
101
98
|
export {
|
|
102
|
-
|
|
103
|
-
|
|
99
|
+
P as BitzTimer,
|
|
100
|
+
P as default
|
|
104
101
|
};
|