@cometchat/chat-uikit-react-native 4.1.3 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -9
- package/android/.gradle/7.4/checksums/checksums.lock +0 -0
- package/android/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.4.2/checksums/checksums.lock +0 -0
- package/android/.gradle/7.4.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.4.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.idea/misc.xml +0 -1
- package/android/.idea/modules/android.iml +18 -0
- package/android/.idea/modules.xml +8 -0
- package/android/build.gradle +1 -1
- package/android/local.properties +8 -0
- package/android/src/main/java/com/reactnativecometchatuikit/CometchatUiKitPackage.java +1 -0
- package/android/src/main/java/com/reactnativecometchatuikit/TimeZoneCodeManager.java +41 -0
- package/ios/FileManager.m +1 -0
- package/ios/TimeZoneCodeManager.h +6 -0
- package/ios/TimeZoneCodeManager.m +22 -0
- package/package.json +3 -2
- package/src/AI/AIConversationStarter/AIConversationStarterDecorator.tsx +3 -0
- package/src/AI/AIConversationSummary/AIConversationSummaryDecorator.tsx +3 -0
- package/src/AI/AISmartReplies/AISmartRepliesDecorator.tsx +3 -0
- package/src/CometChatConversations/CometChatConversations.tsx +5 -1
- package/src/CometChatMessageList/CometChatMessageList.tsx +4 -1
- package/src/index.ts +6 -0
- package/src/shared/CometChatUiKit/CometChatUIKit.ts +32 -1
- package/src/shared/assets/images/BackArrow.png +0 -0
- package/src/shared/assets/images/calendar.png +0 -0
- package/src/shared/assets/images/clock-alert.png +0 -0
- package/src/shared/assets/images/clock.png +0 -0
- package/src/shared/assets/images/earth.png +0 -0
- package/src/shared/assets/images/empty-slot.png +0 -0
- package/src/shared/assets/images/forwardArrow.png +0 -0
- package/src/shared/assets/images/index.ts +12 -0
- package/src/shared/constants/UIKitConstants.ts +2 -0
- package/src/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.ts +3 -0
- package/src/shared/events/CometChatUIEventHandler/Listener.ts +4 -0
- package/src/shared/events/ListenerInitializer.ts +3 -0
- package/src/shared/events/messages.ts +1 -0
- package/src/shared/framework/DataSource.ts +6 -0
- package/src/shared/framework/DataSourceDecorator.tsx +17 -0
- package/src/shared/framework/MessageDataSource.tsx +42 -1
- package/src/shared/index.ts +7 -1
- package/src/shared/libs/CometChatCalendar/Calendars/BaseCalendar.tsx +226 -0
- package/src/shared/libs/CometChatCalendar/Calendars/DateSelectionCalendar.tsx +88 -0
- package/src/shared/libs/CometChatCalendar/Calendars/MultiDateSelectionCalendar.tsx +106 -0
- package/src/shared/libs/CometChatCalendar/Calendars/Providers.tsx +27 -0
- package/src/shared/libs/CometChatCalendar/Calendars/index.ts +3 -0
- package/src/shared/libs/CometChatCalendar/Components/Arrow.test.tsx +112 -0
- package/src/shared/libs/CometChatCalendar/Components/Arrow.tsx +46 -0
- package/src/shared/libs/CometChatCalendar/Components/Day.test.tsx +396 -0
- package/src/shared/libs/CometChatCalendar/Components/Day.tsx +93 -0
- package/src/shared/libs/CometChatCalendar/Components/Days.test.tsx +216 -0
- package/src/shared/libs/CometChatCalendar/Components/Days.tsx +109 -0
- package/src/shared/libs/CometChatCalendar/Components/Month.test.tsx +160 -0
- package/src/shared/libs/CometChatCalendar/Components/Month.tsx +46 -0
- package/src/shared/libs/CometChatCalendar/Components/Months.test.tsx +262 -0
- package/src/shared/libs/CometChatCalendar/Components/Months.tsx +78 -0
- package/src/shared/libs/CometChatCalendar/Components/Title.test.tsx +111 -0
- package/src/shared/libs/CometChatCalendar/Components/Title.tsx +45 -0
- package/src/shared/libs/CometChatCalendar/Components/Weekdays.test.tsx +69 -0
- package/src/shared/libs/CometChatCalendar/Components/Weekdays.tsx +29 -0
- package/src/shared/libs/CometChatCalendar/Components/index.ts +7 -0
- package/src/shared/libs/CometChatCalendar/Constants/View.ts +4 -0
- package/src/shared/libs/CometChatCalendar/Constants/index.ts +1 -0
- package/src/shared/libs/CometChatCalendar/Contexts/LocaleContext.tsx +7 -0
- package/src/shared/libs/CometChatCalendar/Contexts/ThemeContext.tsx +7 -0
- package/src/shared/libs/CometChatCalendar/Contexts/index.ts +2 -0
- package/src/shared/libs/CometChatCalendar/Entities/ArrowDirections.ts +1 -0
- package/src/shared/libs/CometChatCalendar/Entities/Calendar.ts +26 -0
- package/src/shared/libs/CometChatCalendar/Entities/Components.ts +13 -0
- package/src/shared/libs/CometChatCalendar/Entities/DateProperties.ts +6 -0
- package/src/shared/libs/CometChatCalendar/Entities/Locale.ts +12 -0
- package/src/shared/libs/CometChatCalendar/Entities/Theme.ts +70 -0
- package/src/shared/libs/CometChatCalendar/Entities/index.ts +6 -0
- package/src/shared/libs/CometChatCalendar/Hooks/index.ts +1 -0
- package/src/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.test.ts +44 -0
- package/src/shared/libs/CometChatCalendar/Hooks/useSurroundingTimeUnits.ts +60 -0
- package/src/shared/libs/CometChatCalendar/Icons/BackArrow.png +0 -0
- package/src/shared/libs/CometChatCalendar/Icons/chevron-left-16.png +0 -0
- package/src/shared/libs/CometChatCalendar/Icons/index.ts +7 -0
- package/src/shared/libs/CometChatCalendar/Locales/index.ts +3 -0
- package/src/shared/libs/CometChatCalendar/Themes/Colors.ts +31 -0
- package/src/shared/libs/CometChatCalendar/Themes/DarkTheme.ts +79 -0
- package/src/shared/libs/CometChatCalendar/Themes/DefaultTheme.ts +164 -0
- package/src/shared/libs/CometChatCalendar/Themes/index.ts +3 -0
- package/src/shared/libs/CometChatCalendar/Utils/addOpacity.test.ts +49 -0
- package/src/shared/libs/CometChatCalendar/Utils/addOpacity.ts +15 -0
- package/src/shared/libs/CometChatCalendar/Utils/checkChangedProps.ts +10 -0
- package/src/shared/libs/CometChatCalendar/Utils/clamp.test.ts +39 -0
- package/src/shared/libs/CometChatCalendar/Utils/clamp.ts +5 -0
- package/src/shared/libs/CometChatCalendar/Utils/dateRange.test.ts +20 -0
- package/src/shared/libs/CometChatCalendar/Utils/dateRange.ts +22 -0
- package/src/shared/libs/CometChatCalendar/Utils/getExtraDays.test.ts +48 -0
- package/src/shared/libs/CometChatCalendar/Utils/getExtraDays.ts +24 -0
- package/src/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.test.ts +60 -0
- package/src/shared/libs/CometChatCalendar/Utils/getSurroundingTimeUnits.ts +19 -0
- package/src/shared/libs/CometChatCalendar/Utils/index.ts +6 -0
- package/src/shared/libs/CometChatCalendar/index.ts +5 -0
- package/src/shared/libs/datePickerModal/DateTimePickerModal.android.js +81 -0
- package/src/shared/libs/datePickerModal/DateTimePickerModal.ios.js +363 -0
- package/src/shared/libs/datePickerModal/DateTimePickerModal.js +9 -0
- package/src/shared/libs/datePickerModal/Modal.js +180 -0
- package/src/shared/libs/datePickerModal/index.d.ts +310 -0
- package/src/shared/libs/datePickerModal/index.js +5 -0
- package/src/shared/libs/datePickerModal/utils.js +25 -0
- package/src/shared/libs/luxon/src/datetime.js +2422 -0
- package/src/shared/libs/luxon/src/duration.js +990 -0
- package/src/shared/libs/luxon/src/errors.js +61 -0
- package/src/shared/libs/luxon/src/impl/conversions.js +206 -0
- package/src/shared/libs/luxon/src/impl/diff.js +95 -0
- package/src/shared/libs/luxon/src/impl/digits.js +75 -0
- package/src/shared/libs/luxon/src/impl/english.js +233 -0
- package/src/shared/libs/luxon/src/impl/formats.js +176 -0
- package/src/shared/libs/luxon/src/impl/formatter.js +409 -0
- package/src/shared/libs/luxon/src/impl/invalid.js +14 -0
- package/src/shared/libs/luxon/src/impl/locale.js +542 -0
- package/src/shared/libs/luxon/src/impl/regexParser.js +335 -0
- package/src/shared/libs/luxon/src/impl/tokenParser.js +473 -0
- package/src/shared/libs/luxon/src/impl/util.js +309 -0
- package/src/shared/libs/luxon/src/impl/zoneUtil.js +34 -0
- package/src/shared/libs/luxon/src/info.js +205 -0
- package/src/shared/libs/luxon/src/interval.js +657 -0
- package/src/shared/libs/luxon/src/luxon.js +26 -0
- package/src/shared/libs/luxon/src/package.json +4 -0
- package/src/shared/libs/luxon/src/settings.js +175 -0
- package/src/shared/libs/luxon/src/zone.js +91 -0
- package/src/shared/libs/luxon/src/zones/IANAZone.js +189 -0
- package/src/shared/libs/luxon/src/zones/fixedOffsetZone.js +102 -0
- package/src/shared/libs/luxon/src/zones/invalidZone.js +53 -0
- package/src/shared/libs/luxon/src/zones/systemZone.js +61 -0
- package/src/shared/modals/InteractiveData/InteractiveElements/DateTimeElement.ts +103 -0
- package/src/shared/modals/InteractiveData/InteractiveEntities/ElementEntity.ts +4 -1
- package/src/shared/modals/InteractiveData/InteractiveMessage/SchedulerMessage.ts +149 -0
- package/src/shared/modals/InteractiveData/InteractiveMessage/index.ts +1 -0
- package/src/shared/modals/InteractiveData/index.ts +2 -1
- package/src/shared/modals/index.ts +3 -2
- package/src/shared/resources/CometChatLocalize/resources/ar/translation.json +301 -291
- package/src/shared/resources/CometChatLocalize/resources/de/translation.json +301 -291
- package/src/shared/resources/CometChatLocalize/resources/en/translation.json +29 -19
- package/src/shared/resources/CometChatLocalize/resources/es/translation.json +301 -291
- package/src/shared/resources/CometChatLocalize/resources/fr/translation.json +301 -291
- package/src/shared/resources/CometChatLocalize/resources/hi/translation.json +301 -291
- package/src/shared/resources/CometChatLocalize/resources/lt/translation.json +301 -291
- package/src/shared/resources/CometChatLocalize/resources/ms/translation.json +301 -291
- package/src/shared/resources/CometChatLocalize/resources/pt/translation.json +301 -291
- package/src/shared/resources/CometChatLocalize/resources/ru/translation.json +301 -291
- package/src/shared/resources/CometChatLocalize/resources/sv/translation.json +301 -291
- package/src/shared/resources/CometChatLocalize/resources/zh/translation.json +301 -292
- package/src/shared/resources/CometChatLocalize/resources/zh-tw/translation.json +301 -291
- package/src/shared/resources/CometChatTheme/Palette.ts +30 -0
- package/src/shared/resources/CometChatTheme/Typography.ts +109 -0
- package/src/shared/utils/InteractiveMessageUtils.ts +3 -2
- package/src/shared/utils/SchedulerUtils.ts +196 -0
- package/src/shared/utils/conversationUtils.ts +8 -1
- package/src/shared/utils/icsToJson.js +113 -0
- package/src/shared/views/CometChatCheckBox/CometChatCheckBox.tsx +3 -3
- package/src/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.tsx +189 -0
- package/src/shared/views/CometChatDateTimePicker/DateTimePickerStyle.ts +19 -0
- package/src/shared/views/CometChatDateTimePicker/index.ts +5 -0
- package/src/shared/views/CometChatDropDown/CometChatDropDown.tsx +3 -3
- package/src/shared/views/CometChatFormBubble/CometChatFormBubble.tsx +104 -23
- package/src/shared/views/CometChatFormBubble/FormBubbleStyle.tsx +5 -0
- package/src/shared/views/CometChatLabel/CometChatLabel.tsx +1 -1
- package/src/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.tsx +20 -5
- package/src/shared/views/CometChatRadioButton/CometChatRadioButton.tsx +3 -3
- package/src/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.tsx +1500 -0
- package/src/shared/views/CometChatSchedulerBubble/index.ts +5 -0
- package/src/shared/views/CometChatSchedulerBubble/styles.ts +92 -0
- package/src/shared/views/CometChatSingleSelect/CometChatSingleSelect.tsx +4 -4
- package/src/shared/views/CometChatTextInput/CometChatTextInput.tsx +4 -4
- package/src/shared/views/CometChatTimeSlotSelector/CometChatTimeSlotSelector.tsx +113 -0
- package/src/shared/views/CometChatTimeSlotSelector/index.ts +5 -0
- package/src/shared/views/CometChatTimeSlotSelector/styles.ts +30 -0
- package/src/shared/views/index.ts +4 -1
- package/android/.gradle/7.4/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/7.4/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/lib/CometChatAddMembers/AddMembersConfiguration.d.ts +0 -43
- package/lib/CometChatAddMembers/AddMembersConfiguration.js +0 -41
- package/lib/CometChatAddMembers/AddMembersConfiguration.js.map +0 -1
- package/lib/CometChatAddMembers/CometChatAddMembers.d.ts +0 -10
- package/lib/CometChatAddMembers/CometChatAddMembers.js +0 -60
- package/lib/CometChatAddMembers/CometChatAddMembers.js.map +0 -1
- package/lib/CometChatAddMembers/index.d.ts +0 -3
- package/lib/CometChatAddMembers/index.js +0 -4
- package/lib/CometChatAddMembers/index.js.map +0 -1
- package/lib/CometChatBannedMembers/BannedMembersConfiguration.d.ts +0 -46
- package/lib/CometChatBannedMembers/BannedMembersConfiguration.js +0 -43
- package/lib/CometChatBannedMembers/BannedMembersConfiguration.js.map +0 -1
- package/lib/CometChatBannedMembers/CometChatBannedMembers.d.ts +0 -18
- package/lib/CometChatBannedMembers/CometChatBannedMembers.js +0 -72
- package/lib/CometChatBannedMembers/CometChatBannedMembers.js.map +0 -1
- package/lib/CometChatBannedMembers/index.d.ts +0 -3
- package/lib/CometChatBannedMembers/index.js +0 -4
- package/lib/CometChatBannedMembers/index.js.map +0 -1
- package/lib/CometChatBannedMembers/resources/index.d.ts +0 -3
- package/lib/CometChatBannedMembers/resources/index.js +0 -3
- package/lib/CometChatBannedMembers/resources/index.js.map +0 -1
- package/lib/CometChatContacts/CometChatContacts.d.ts +0 -75
- package/lib/CometChatContacts/CometChatContacts.js +0 -84
- package/lib/CometChatContacts/CometChatContacts.js.map +0 -1
- package/lib/CometChatContacts/ContactsConfiguration.d.ts +0 -73
- package/lib/CometChatContacts/ContactsConfiguration.js +0 -2
- package/lib/CometChatContacts/ContactsConfiguration.js.map +0 -1
- package/lib/CometChatContacts/ContactsStyle.d.ts +0 -59
- package/lib/CometChatContacts/ContactsStyle.js +0 -2
- package/lib/CometChatContacts/ContactsStyle.js.map +0 -1
- package/lib/CometChatContacts/Header.d.ts +0 -31
- package/lib/CometChatContacts/Header.js +0 -72
- package/lib/CometChatContacts/Header.js.map +0 -1
- package/lib/CometChatContacts/index.d.ts +0 -4
- package/lib/CometChatContacts/index.js +0 -3
- package/lib/CometChatContacts/index.js.map +0 -1
- package/lib/CometChatContacts/styles.d.ts +0 -101
- package/lib/CometChatContacts/styles.js +0 -104
- package/lib/CometChatContacts/styles.js.map +0 -1
- package/lib/CometChatConversations/CometChatConversations.d.ts +0 -199
- package/lib/CometChatConversations/CometChatConversations.js +0 -643
- package/lib/CometChatConversations/CometChatConversations.js.map +0 -1
- package/lib/CometChatConversations/ConversationsConfiguration.d.ts +0 -96
- package/lib/CometChatConversations/ConversationsConfiguration.js +0 -87
- package/lib/CometChatConversations/ConversationsConfiguration.js.map +0 -1
- package/lib/CometChatConversations/ConversationsStyle.d.ts +0 -38
- package/lib/CometChatConversations/ConversationsStyle.js +0 -46
- package/lib/CometChatConversations/ConversationsStyle.js.map +0 -1
- package/lib/CometChatConversations/index.d.ts +0 -4
- package/lib/CometChatConversations/index.js +0 -5
- package/lib/CometChatConversations/index.js.map +0 -1
- package/lib/CometChatConversations/resources/index.d.ts +0 -14
- package/lib/CometChatConversations/resources/index.js +0 -15
- package/lib/CometChatConversations/resources/index.js.map +0 -1
- package/lib/CometChatConversations/style.d.ts +0 -61
- package/lib/CometChatConversations/style.js +0 -63
- package/lib/CometChatConversations/style.js.map +0 -1
- package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.d.ts +0 -14
- package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.js +0 -168
- package/lib/CometChatConversationsWithMessages/CometChatConversationsWithMessages.js.map +0 -1
- package/lib/CometChatConversationsWithMessages/index.d.ts +0 -2
- package/lib/CometChatConversationsWithMessages/index.js +0 -3
- package/lib/CometChatConversationsWithMessages/index.js.map +0 -1
- package/lib/CometChatConversationsWithMessages/resources/index.d.ts +0 -2
- package/lib/CometChatConversationsWithMessages/resources/index.js +0 -3
- package/lib/CometChatConversationsWithMessages/resources/index.js.map +0 -1
- package/lib/CometChatConversationsWithMessages/styles.d.ts +0 -12
- package/lib/CometChatConversationsWithMessages/styles.js +0 -14
- package/lib/CometChatConversationsWithMessages/styles.js.map +0 -1
- package/lib/CometChatCreateGroup/CometChatCreateGroup.d.ts +0 -98
- package/lib/CometChatCreateGroup/CometChatCreateGroup.js +0 -196
- package/lib/CometChatCreateGroup/CometChatCreateGroup.js.map +0 -1
- package/lib/CometChatCreateGroup/CreateGroupConfiguration.d.ts +0 -14
- package/lib/CometChatCreateGroup/CreateGroupConfiguration.js +0 -15
- package/lib/CometChatCreateGroup/CreateGroupConfiguration.js.map +0 -1
- package/lib/CometChatCreateGroup/Header.d.ts +0 -3
- package/lib/CometChatCreateGroup/Header.js +0 -41
- package/lib/CometChatCreateGroup/Header.js.map +0 -1
- package/lib/CometChatCreateGroup/index.d.ts +0 -3
- package/lib/CometChatCreateGroup/index.js +0 -4
- package/lib/CometChatCreateGroup/index.js.map +0 -1
- package/lib/CometChatCreateGroup/resources/index.d.ts +0 -5
- package/lib/CometChatCreateGroup/resources/index.js +0 -9
- package/lib/CometChatCreateGroup/resources/index.js.map +0 -1
- package/lib/CometChatCreateGroup/style.d.ts +0 -46
- package/lib/CometChatCreateGroup/style.js +0 -43
- package/lib/CometChatCreateGroup/style.js.map +0 -1
- package/lib/CometChatDetails/CometChatDetails.d.ts +0 -281
- package/lib/CometChatDetails/CometChatDetails.js +0 -405
- package/lib/CometChatDetails/CometChatDetails.js.map +0 -1
- package/lib/CometChatDetails/DetailsConfiguration.d.ts +0 -36
- package/lib/CometChatDetails/DetailsConfiguration.js +0 -26
- package/lib/CometChatDetails/DetailsConfiguration.js.map +0 -1
- package/lib/CometChatDetails/Header.d.ts +0 -3
- package/lib/CometChatDetails/Header.js +0 -26
- package/lib/CometChatDetails/Header.js.map +0 -1
- package/lib/CometChatDetails/index.d.ts +0 -3
- package/lib/CometChatDetails/index.js +0 -4
- package/lib/CometChatDetails/index.js.map +0 -1
- package/lib/CometChatDetails/listners.d.ts +0 -20
- package/lib/CometChatDetails/listners.js +0 -57
- package/lib/CometChatDetails/listners.js.map +0 -1
- package/lib/CometChatDetails/resources/index.d.ts +0 -7
- package/lib/CometChatDetails/resources/index.js +0 -13
- package/lib/CometChatDetails/resources/index.js.map +0 -1
- package/lib/CometChatDetails/styles.d.ts +0 -28
- package/lib/CometChatDetails/styles.js +0 -23
- package/lib/CometChatDetails/styles.js.map +0 -1
- package/lib/CometChatGroupMembers/CometChatGroupMembers.d.ts +0 -96
- package/lib/CometChatGroupMembers/CometChatGroupMembers.js +0 -360
- package/lib/CometChatGroupMembers/CometChatGroupMembers.js.map +0 -1
- package/lib/CometChatGroupMembers/GroupMemberConfiguration.d.ts +0 -63
- package/lib/CometChatGroupMembers/GroupMemberConfiguration.js +0 -59
- package/lib/CometChatGroupMembers/GroupMemberConfiguration.js.map +0 -1
- package/lib/CometChatGroupMembers/GroupMemberStyle.d.ts +0 -42
- package/lib/CometChatGroupMembers/GroupMemberStyle.js +0 -48
- package/lib/CometChatGroupMembers/GroupMemberStyle.js.map +0 -1
- package/lib/CometChatGroupMembers/GroupScopeStyle.d.ts +0 -28
- package/lib/CometChatGroupMembers/GroupScopeStyle.js +0 -35
- package/lib/CometChatGroupMembers/GroupScopeStyle.js.map +0 -1
- package/lib/CometChatGroupMembers/index.d.ts +0 -4
- package/lib/CometChatGroupMembers/index.js +0 -5
- package/lib/CometChatGroupMembers/index.js.map +0 -1
- package/lib/CometChatGroupMembers/resources/index.d.ts +0 -5
- package/lib/CometChatGroupMembers/resources/index.js +0 -6
- package/lib/CometChatGroupMembers/resources/index.js.map +0 -1
- package/lib/CometChatGroupMembers/style.d.ts +0 -31
- package/lib/CometChatGroupMembers/style.js +0 -30
- package/lib/CometChatGroupMembers/style.js.map +0 -1
- package/lib/CometChatGroups/CometChatGroups.d.ts +0 -141
- package/lib/CometChatGroups/CometChatGroups.js +0 -322
- package/lib/CometChatGroups/CometChatGroups.js.map +0 -1
- package/lib/CometChatGroups/GroupsConfiguration.d.ts +0 -74
- package/lib/CometChatGroups/GroupsConfiguration.js +0 -72
- package/lib/CometChatGroups/GroupsConfiguration.js.map +0 -1
- package/lib/CometChatGroups/GroupsStyle.d.ts +0 -51
- package/lib/CometChatGroups/GroupsStyle.js +0 -61
- package/lib/CometChatGroups/GroupsStyle.js.map +0 -1
- package/lib/CometChatGroups/index.d.ts +0 -4
- package/lib/CometChatGroups/index.js +0 -5
- package/lib/CometChatGroups/index.js.map +0 -1
- package/lib/CometChatGroups/resources/index.d.ts +0 -10
- package/lib/CometChatGroups/resources/index.js +0 -11
- package/lib/CometChatGroups/resources/index.js.map +0 -1
- package/lib/CometChatGroups/style.d.ts +0 -16
- package/lib/CometChatGroups/style.js +0 -19
- package/lib/CometChatGroups/style.js.map +0 -1
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.d.ts +0 -13
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js +0 -172
- package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js.map +0 -1
- package/lib/CometChatGroupsWithMessages/index.d.ts +0 -2
- package/lib/CometChatGroupsWithMessages/index.js +0 -3
- package/lib/CometChatGroupsWithMessages/index.js.map +0 -1
- package/lib/CometChatGroupsWithMessages/resources/index.d.ts +0 -2
- package/lib/CometChatGroupsWithMessages/resources/index.js +0 -3
- package/lib/CometChatGroupsWithMessages/resources/index.js.map +0 -1
- package/lib/CometChatGroupsWithMessages/styles.d.ts +0 -12
- package/lib/CometChatGroupsWithMessages/styles.js +0 -14
- package/lib/CometChatGroupsWithMessages/styles.js.map +0 -1
- package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.d.ts +0 -111
- package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.js +0 -96
- package/lib/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.js.map +0 -1
- package/lib/CometChatJoinProtectedGroup/Header.d.ts +0 -3
- package/lib/CometChatJoinProtectedGroup/Header.js +0 -33
- package/lib/CometChatJoinProtectedGroup/Header.js.map +0 -1
- package/lib/CometChatJoinProtectedGroup/JoinProtectedGroupConfiguration.d.ts +0 -15
- package/lib/CometChatJoinProtectedGroup/JoinProtectedGroupConfiguration.js +0 -16
- package/lib/CometChatJoinProtectedGroup/JoinProtectedGroupConfiguration.js.map +0 -1
- package/lib/CometChatJoinProtectedGroup/index.d.ts +0 -3
- package/lib/CometChatJoinProtectedGroup/index.js +0 -4
- package/lib/CometChatJoinProtectedGroup/index.js.map +0 -1
- package/lib/CometChatJoinProtectedGroup/resources/index.d.ts +0 -4
- package/lib/CometChatJoinProtectedGroup/resources/index.js +0 -7
- package/lib/CometChatJoinProtectedGroup/resources/index.js.map +0 -1
- package/lib/CometChatJoinProtectedGroup/style.d.ts +0 -11
- package/lib/CometChatJoinProtectedGroup/style.js +0 -10
- package/lib/CometChatJoinProtectedGroup/style.js.map +0 -1
- package/lib/CometChatMessageComposer/CometChatMessageComposer.d.ts +0 -269
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js +0 -571
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js.map +0 -1
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.d.ts +0 -47
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.js +0 -34
- package/lib/CometChatMessageComposer/MessageComposerConfiguration.js.map +0 -1
- package/lib/CometChatMessageComposer/index.d.ts +0 -3
- package/lib/CometChatMessageComposer/index.js +0 -4
- package/lib/CometChatMessageComposer/index.js.map +0 -1
- package/lib/CometChatMessageComposer/resources/index.d.ts +0 -10
- package/lib/CometChatMessageComposer/resources/index.js +0 -19
- package/lib/CometChatMessageComposer/resources/index.js.map +0 -1
- package/lib/CometChatMessageComposer/styles.d.ts +0 -28
- package/lib/CometChatMessageComposer/styles.js +0 -30
- package/lib/CometChatMessageComposer/styles.js.map +0 -1
- package/lib/CometChatMessageHeader/CometChatMessageHeader.d.ts +0 -150
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js +0 -220
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js.map +0 -1
- package/lib/CometChatMessageHeader/MessageHeaderConfiguration.d.ts +0 -37
- package/lib/CometChatMessageHeader/MessageHeaderConfiguration.js +0 -27
- package/lib/CometChatMessageHeader/MessageHeaderConfiguration.js.map +0 -1
- package/lib/CometChatMessageHeader/index.d.ts +0 -3
- package/lib/CometChatMessageHeader/index.js +0 -4
- package/lib/CometChatMessageHeader/index.js.map +0 -1
- package/lib/CometChatMessageHeader/listners.d.ts +0 -27
- package/lib/CometChatMessageHeader/listners.js +0 -50
- package/lib/CometChatMessageHeader/listners.js.map +0 -1
- package/lib/CometChatMessageHeader/resources/index.d.ts +0 -5
- package/lib/CometChatMessageHeader/resources/index.js +0 -9
- package/lib/CometChatMessageHeader/resources/index.js.map +0 -1
- package/lib/CometChatMessageHeader/styles.d.ts +0 -16
- package/lib/CometChatMessageHeader/styles.js +0 -16
- package/lib/CometChatMessageHeader/styles.js.map +0 -1
- package/lib/CometChatMessageInformation/CometChatMessageInformation.d.ts +0 -36
- package/lib/CometChatMessageInformation/CometChatMessageInformation.js +0 -173
- package/lib/CometChatMessageInformation/CometChatMessageInformation.js.map +0 -1
- package/lib/CometChatMessageInformation/MessageInformationConfiguration.d.ts +0 -3
- package/lib/CometChatMessageInformation/MessageInformationConfiguration.js +0 -2
- package/lib/CometChatMessageInformation/MessageInformationConfiguration.js.map +0 -1
- package/lib/CometChatMessageInformation/MessageInformationStyle.d.ts +0 -11
- package/lib/CometChatMessageInformation/MessageInformationStyle.js +0 -2
- package/lib/CometChatMessageInformation/MessageInformationStyle.js.map +0 -1
- package/lib/CometChatMessageInformation/index.d.ts +0 -4
- package/lib/CometChatMessageInformation/index.js +0 -3
- package/lib/CometChatMessageInformation/index.js.map +0 -1
- package/lib/CometChatMessageInformation/resources/index.d.ts +0 -2
- package/lib/CometChatMessageInformation/resources/index.js +0 -3
- package/lib/CometChatMessageInformation/resources/index.js.map +0 -1
- package/lib/CometChatMessageInformation/styles.d.ts +0 -23
- package/lib/CometChatMessageInformation/styles.js +0 -26
- package/lib/CometChatMessageInformation/styles.js.map +0 -1
- package/lib/CometChatMessageList/CometChatMessageList.d.ts +0 -75
- package/lib/CometChatMessageList/CometChatMessageList.js +0 -1047
- package/lib/CometChatMessageList/CometChatMessageList.js.map +0 -1
- package/lib/CometChatMessageList/MessageListConfiguration.d.ts +0 -101
- package/lib/CometChatMessageList/MessageListConfiguration.js +0 -37
- package/lib/CometChatMessageList/MessageListConfiguration.js.map +0 -1
- package/lib/CometChatMessageList/MessageListStyle.d.ts +0 -32
- package/lib/CometChatMessageList/MessageListStyle.js +0 -39
- package/lib/CometChatMessageList/MessageListStyle.js.map +0 -1
- package/lib/CometChatMessageList/index.d.ts +0 -4
- package/lib/CometChatMessageList/index.js +0 -5
- package/lib/CometChatMessageList/index.js.map +0 -1
- package/lib/CometChatMessageList/resources/index.d.ts +0 -6
- package/lib/CometChatMessageList/resources/index.js +0 -7
- package/lib/CometChatMessageList/resources/index.js.map +0 -1
- package/lib/CometChatMessageList/style.d.ts +0 -52
- package/lib/CometChatMessageList/style.js +0 -54
- package/lib/CometChatMessageList/style.js.map +0 -1
- package/lib/CometChatMessages/CometChatMessages.d.ts +0 -42
- package/lib/CometChatMessages/CometChatMessages.js +0 -200
- package/lib/CometChatMessages/CometChatMessages.js.map +0 -1
- package/lib/CometChatMessages/MessageStyle.d.ts +0 -15
- package/lib/CometChatMessages/MessageStyle.js +0 -19
- package/lib/CometChatMessages/MessageStyle.js.map +0 -1
- package/lib/CometChatMessages/MessagesConfiguration.d.ts +0 -69
- package/lib/CometChatMessages/MessagesConfiguration.js +0 -25
- package/lib/CometChatMessages/MessagesConfiguration.js.map +0 -1
- package/lib/CometChatMessages/index.d.ts +0 -4
- package/lib/CometChatMessages/index.js +0 -5
- package/lib/CometChatMessages/index.js.map +0 -1
- package/lib/CometChatMessages/resources/index.d.ts +0 -2
- package/lib/CometChatMessages/resources/index.js +0 -3
- package/lib/CometChatMessages/resources/index.js.map +0 -1
- package/lib/CometChatMessages/style.d.ts +0 -21
- package/lib/CometChatMessages/style.js +0 -23
- package/lib/CometChatMessages/style.js.map +0 -1
- package/lib/CometChatTabs/CometChatTabs.d.ts +0 -11
- package/lib/CometChatTabs/CometChatTabs.js +0 -113
- package/lib/CometChatTabs/CometChatTabs.js.map +0 -1
- package/lib/CometChatTabs/CometChatTabsStyle.d.ts +0 -16
- package/lib/CometChatTabs/CometChatTabsStyle.js +0 -23
- package/lib/CometChatTabs/CometChatTabsStyle.js.map +0 -1
- package/lib/CometChatTabs/TabItemStyle.d.ts +0 -22
- package/lib/CometChatTabs/TabItemStyle.js +0 -29
- package/lib/CometChatTabs/TabItemStyle.js.map +0 -1
- package/lib/CometChatTabs/TabItems.d.ts +0 -11
- package/lib/CometChatTabs/TabItems.js +0 -2
- package/lib/CometChatTabs/TabItems.js.map +0 -1
- package/lib/CometChatTabs/index.d.ts +0 -4
- package/lib/CometChatTabs/index.js +0 -4
- package/lib/CometChatTabs/index.js.map +0 -1
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.d.ts +0 -90
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.js +0 -139
- package/lib/CometChatThreadedMessages/CometChatThreadedMessages.js.map +0 -1
- package/lib/CometChatThreadedMessages/Header.d.ts +0 -12
- package/lib/CometChatThreadedMessages/Header.js +0 -23
- package/lib/CometChatThreadedMessages/Header.js.map +0 -1
- package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.d.ts +0 -18
- package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.js +0 -16
- package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.js.map +0 -1
- package/lib/CometChatThreadedMessages/index.d.ts +0 -3
- package/lib/CometChatThreadedMessages/index.js +0 -4
- package/lib/CometChatThreadedMessages/index.js.map +0 -1
- package/lib/CometChatThreadedMessages/resources/index.d.ts +0 -8
- package/lib/CometChatThreadedMessages/resources/index.js +0 -15
- package/lib/CometChatThreadedMessages/resources/index.js.map +0 -1
- package/lib/CometChatThreadedMessages/style.d.ts +0 -28
- package/lib/CometChatThreadedMessages/style.js +0 -26
- package/lib/CometChatThreadedMessages/style.js.map +0 -1
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.d.ts +0 -41
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.js +0 -58
- package/lib/CometChatTransferOwnership/CometChatTransferOwnership.js.map +0 -1
- package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.d.ts +0 -41
- package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.js +0 -37
- package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.js.map +0 -1
- package/lib/CometChatTransferOwnership/index.d.ts +0 -3
- package/lib/CometChatTransferOwnership/index.js +0 -4
- package/lib/CometChatTransferOwnership/index.js.map +0 -1
- package/lib/CometChatUsers/CometChatUsers.d.ts +0 -69
- package/lib/CometChatUsers/CometChatUsers.js +0 -64
- package/lib/CometChatUsers/CometChatUsers.js.map +0 -1
- package/lib/CometChatUsers/UsersConfiguration.d.ts +0 -43
- package/lib/CometChatUsers/UsersConfiguration.js +0 -41
- package/lib/CometChatUsers/UsersConfiguration.js.map +0 -1
- package/lib/CometChatUsers/index.d.ts +0 -3
- package/lib/CometChatUsers/index.js +0 -4
- package/lib/CometChatUsers/index.js.map +0 -1
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.d.ts +0 -11
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js +0 -89
- package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js.map +0 -1
- package/lib/CometChatUsersWithMessages/index.d.ts +0 -2
- package/lib/CometChatUsersWithMessages/index.js +0 -3
- package/lib/CometChatUsersWithMessages/index.js.map +0 -1
- package/lib/CometChatUsersWithMessages/styles.d.ts +0 -12
- package/lib/CometChatUsersWithMessages/styles.js +0 -14
- package/lib/CometChatUsersWithMessages/styles.js.map +0 -1
- package/lib/calls/CallEvents.d.ts +0 -9
- package/lib/calls/CallEvents.js +0 -10
- package/lib/calls/CallEvents.js.map +0 -1
- package/lib/calls/CallUtils.d.ts +0 -5
- package/lib/calls/CallUtils.js +0 -60
- package/lib/calls/CallUtils.js.map +0 -1
- package/lib/calls/CallingConfiguration.d.ts +0 -3
- package/lib/calls/CallingConfiguration.js +0 -5
- package/lib/calls/CallingConfiguration.js.map +0 -1
- package/lib/calls/CallingDetailsUtils.d.ts +0 -7
- package/lib/calls/CallingDetailsUtils.js +0 -31
- package/lib/calls/CallingDetailsUtils.js.map +0 -1
- package/lib/calls/CallingExtension.d.ts +0 -11
- package/lib/calls/CallingExtension.js +0 -36
- package/lib/calls/CallingExtension.js.map +0 -1
- package/lib/calls/CallingExtentionDecorator.d.ts +0 -33
- package/lib/calls/CallingExtentionDecorator.js +0 -157
- package/lib/calls/CallingExtentionDecorator.js.map +0 -1
- package/lib/calls/CallingPackage.d.ts +0 -4
- package/lib/calls/CallingPackage.js +0 -7
- package/lib/calls/CallingPackage.js.map +0 -1
- package/lib/calls/CometChatCallBubble/CallBubbleConfiguration.d.ts +0 -13
- package/lib/calls/CometChatCallBubble/CallBubbleConfiguration.js +0 -11
- package/lib/calls/CometChatCallBubble/CallBubbleConfiguration.js.map +0 -1
- package/lib/calls/CometChatCallBubble/CallBubbleStyle.d.ts +0 -18
- package/lib/calls/CometChatCallBubble/CallBubbleStyle.js +0 -25
- package/lib/calls/CometChatCallBubble/CallBubbleStyle.js.map +0 -1
- package/lib/calls/CometChatCallBubble/CometChatCallBubble.d.ts +0 -11
- package/lib/calls/CometChatCallBubble/CometChatCallBubble.js +0 -21
- package/lib/calls/CometChatCallBubble/CometChatCallBubble.js.map +0 -1
- package/lib/calls/CometChatCallBubble/index.d.ts +0 -4
- package/lib/calls/CometChatCallBubble/index.js +0 -5
- package/lib/calls/CometChatCallBubble/index.js.map +0 -1
- package/lib/calls/CometChatCallBubble/resources/index.d.ts +0 -4
- package/lib/calls/CometChatCallBubble/resources/index.js +0 -5
- package/lib/calls/CometChatCallBubble/resources/index.js.map +0 -1
- package/lib/calls/CometChatCallBubble/styles.d.ts +0 -20
- package/lib/calls/CometChatCallBubble/styles.js +0 -22
- package/lib/calls/CometChatCallBubble/styles.js.map +0 -1
- package/lib/calls/CometChatCallButtons/CallButtonStyle.d.ts +0 -12
- package/lib/calls/CometChatCallButtons/CallButtonStyle.js +0 -19
- package/lib/calls/CometChatCallButtons/CallButtonStyle.js.map +0 -1
- package/lib/calls/CometChatCallButtons/CometChatCallButtonConfiguration.d.ts +0 -34
- package/lib/calls/CometChatCallButtons/CometChatCallButtonConfiguration.js +0 -19
- package/lib/calls/CometChatCallButtons/CometChatCallButtonConfiguration.js.map +0 -1
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.d.ts +0 -61
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.js +0 -198
- package/lib/calls/CometChatCallButtons/CometChatCallButtons.js.map +0 -1
- package/lib/calls/CometChatCallButtons/index.d.ts +0 -4
- package/lib/calls/CometChatCallButtons/index.js +0 -4
- package/lib/calls/CometChatCallButtons/index.js.map +0 -1
- package/lib/calls/CometChatCallButtons/resources/index.d.ts +0 -3
- package/lib/calls/CometChatCallButtons/resources/index.js +0 -4
- package/lib/calls/CometChatCallButtons/resources/index.js.map +0 -1
- package/lib/calls/CometChatCallButtons/style.d.ts +0 -12
- package/lib/calls/CometChatCallButtons/style.js +0 -14
- package/lib/calls/CometChatCallButtons/style.js.map +0 -1
- package/lib/calls/CometChatCallDetails/CallDetailsConfiguration.d.ts +0 -54
- package/lib/calls/CometChatCallDetails/CallDetailsConfiguration.js +0 -31
- package/lib/calls/CometChatCallDetails/CallDetailsConfiguration.js.map +0 -1
- package/lib/calls/CometChatCallDetails/CallDetailsStyle.d.ts +0 -20
- package/lib/calls/CometChatCallDetails/CallDetailsStyle.js +0 -27
- package/lib/calls/CometChatCallDetails/CallDetailsStyle.js.map +0 -1
- package/lib/calls/CometChatCallDetails/CometChatCallDetails.d.ts +0 -1
- package/lib/calls/CometChatCallDetails/CometChatCallDetails.js +0 -137
- package/lib/calls/CometChatCallDetails/CometChatCallDetails.js.map +0 -1
- package/lib/calls/CometChatCallDetails/index.d.ts +0 -3
- package/lib/calls/CometChatCallDetails/index.js +0 -4
- package/lib/calls/CometChatCallDetails/index.js.map +0 -1
- package/lib/calls/CometChatCallDetails/resources/index.d.ts +0 -2
- package/lib/calls/CometChatCallDetails/resources/index.js +0 -3
- package/lib/calls/CometChatCallDetails/resources/index.js.map +0 -1
- package/lib/calls/CometChatCallDetails/style.d.ts +0 -12
- package/lib/calls/CometChatCallDetails/style.js +0 -14
- package/lib/calls/CometChatCallDetails/style.js.map +0 -1
- package/lib/calls/CometChatCallHistory/CallHistoryConfiguration.d.ts +0 -86
- package/lib/calls/CometChatCallHistory/CallHistoryConfiguration.js +0 -39
- package/lib/calls/CometChatCallHistory/CallHistoryConfiguration.js.map +0 -1
- package/lib/calls/CometChatCallHistory/CallHistoryStyle.d.ts +0 -13
- package/lib/calls/CometChatCallHistory/CallHistoryStyle.js +0 -20
- package/lib/calls/CometChatCallHistory/CallHistoryStyle.js.map +0 -1
- package/lib/calls/CometChatCallHistory/CometChatCallHistory.d.ts +0 -1
- package/lib/calls/CometChatCallHistory/CometChatCallHistory.js +0 -250
- package/lib/calls/CometChatCallHistory/CometChatCallHistory.js.map +0 -1
- package/lib/calls/CometChatCallHistory/index.d.ts +0 -3
- package/lib/calls/CometChatCallHistory/index.js +0 -4
- package/lib/calls/CometChatCallHistory/index.js.map +0 -1
- package/lib/calls/CometChatCallHistory/resources/index.d.ts +0 -8
- package/lib/calls/CometChatCallHistory/resources/index.js +0 -9
- package/lib/calls/CometChatCallHistory/resources/index.js.map +0 -1
- package/lib/calls/CometChatCallHistory/style.d.ts +0 -21
- package/lib/calls/CometChatCallHistory/style.js +0 -23
- package/lib/calls/CometChatCallHistory/style.js.map +0 -1
- package/lib/calls/CometChatCallHistoryWithDetails/CometChatCallHistoryWithDetails.d.ts +0 -1
- package/lib/calls/CometChatCallHistoryWithDetails/CometChatCallHistoryWithDetails.js +0 -30
- package/lib/calls/CometChatCallHistoryWithDetails/CometChatCallHistoryWithDetails.js.map +0 -1
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsConfiguration.d.ts +0 -6
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsConfiguration.js +0 -2
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsConfiguration.js.map +0 -1
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsStyle.d.ts +0 -2
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsStyle.js +0 -2
- package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsStyle.js.map +0 -1
- package/lib/calls/CometChatCallHistoryWithDetails/index.d.ts +0 -3
- package/lib/calls/CometChatCallHistoryWithDetails/index.js +0 -2
- package/lib/calls/CometChatCallHistoryWithDetails/index.js.map +0 -1
- package/lib/calls/CometChatCallHistoryWithDetails/style.d.ts +0 -8
- package/lib/calls/CometChatCallHistoryWithDetails/style.js +0 -10
- package/lib/calls/CometChatCallHistoryWithDetails/style.js.map +0 -1
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.d.ts +0 -21
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js +0 -160
- package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js.map +0 -1
- package/lib/calls/CometChatIncomingCall/IncomingCallStyle.d.ts +0 -32
- package/lib/calls/CometChatIncomingCall/IncomingCallStyle.js +0 -39
- package/lib/calls/CometChatIncomingCall/IncomingCallStyle.js.map +0 -1
- package/lib/calls/CometChatIncomingCall/index.d.ts +0 -3
- package/lib/calls/CometChatIncomingCall/index.js +0 -4
- package/lib/calls/CometChatIncomingCall/index.js.map +0 -1
- package/lib/calls/CometChatIncomingCall/resources/index.d.ts +0 -5
- package/lib/calls/CometChatIncomingCall/resources/index.js +0 -6
- package/lib/calls/CometChatIncomingCall/resources/index.js.map +0 -1
- package/lib/calls/CometChatIncomingCall/styles.d.ts +0 -9
- package/lib/calls/CometChatIncomingCall/styles.js +0 -11
- package/lib/calls/CometChatIncomingCall/styles.js.map +0 -1
- package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.d.ts +0 -12
- package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.js +0 -41
- package/lib/calls/CometChatOngoingCall/CometChatOngoingCall.js.map +0 -1
- package/lib/calls/CometChatOngoingCall/OngoingCallStyle.d.ts +0 -13
- package/lib/calls/CometChatOngoingCall/OngoingCallStyle.js +0 -13
- package/lib/calls/CometChatOngoingCall/OngoingCallStyle.js.map +0 -1
- package/lib/calls/CometChatOngoingCall/index.d.ts +0 -3
- package/lib/calls/CometChatOngoingCall/index.js +0 -3
- package/lib/calls/CometChatOngoingCall/index.js.map +0 -1
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +0 -46
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js +0 -149
- package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js.map +0 -1
- package/lib/calls/CometChatOutgoingCall/OutgoingCallConfiguration.d.ts +0 -18
- package/lib/calls/CometChatOutgoingCall/OutgoingCallConfiguration.js +0 -15
- package/lib/calls/CometChatOutgoingCall/OutgoingCallConfiguration.js.map +0 -1
- package/lib/calls/CometChatOutgoingCall/OutgoingCallStyle.d.ts +0 -14
- package/lib/calls/CometChatOutgoingCall/OutgoingCallStyle.js +0 -21
- package/lib/calls/CometChatOutgoingCall/OutgoingCallStyle.js.map +0 -1
- package/lib/calls/CometChatOutgoingCall/index.d.ts +0 -3
- package/lib/calls/CometChatOutgoingCall/index.js +0 -4
- package/lib/calls/CometChatOutgoingCall/index.js.map +0 -1
- package/lib/calls/CometChatOutgoingCall/resources/index.d.ts +0 -2
- package/lib/calls/CometChatOutgoingCall/resources/index.js +0 -3
- package/lib/calls/CometChatOutgoingCall/resources/index.js.map +0 -1
- package/lib/calls/index.d.ts +0 -12
- package/lib/calls/index.js +0 -13
- package/lib/calls/index.js.map +0 -1
- package/lib/calls/resources/index.d.ts +0 -3
- package/lib/calls/resources/index.js +0 -4
- package/lib/calls/resources/index.js.map +0 -1
- package/lib/extensions/CollaborativeBubble/CollaborativeBubbleStyle.d.ts +0 -55
- package/lib/extensions/CollaborativeBubble/CollaborativeBubbleStyle.js +0 -30
- package/lib/extensions/CollaborativeBubble/CollaborativeBubbleStyle.js.map +0 -1
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.d.ts +0 -44
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.js +0 -61
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.js.map +0 -1
- package/lib/extensions/CollaborativeBubble/resources/index.d.ts +0 -3
- package/lib/extensions/CollaborativeBubble/resources/index.js +0 -3
- package/lib/extensions/CollaborativeBubble/resources/index.js.map +0 -1
- package/lib/extensions/CollaborativeBubble/styles.d.ts +0 -33
- package/lib/extensions/CollaborativeBubble/styles.js +0 -72
- package/lib/extensions/CollaborativeBubble/styles.js.map +0 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.d.ts +0 -14
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.js +0 -7
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentConfiguration.js.map +0 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.d.ts +0 -12
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.js +0 -25
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtension.js.map +0 -1
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +0 -22
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js +0 -129
- package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js.map +0 -1
- package/lib/extensions/CollaborativeDocument/index.d.ts +0 -5
- package/lib/extensions/CollaborativeDocument/index.js +0 -6
- package/lib/extensions/CollaborativeDocument/index.js.map +0 -1
- package/lib/extensions/CollaborativeDocument/resources/index.d.ts +0 -2
- package/lib/extensions/CollaborativeDocument/resources/index.js +0 -5
- package/lib/extensions/CollaborativeDocument/resources/index.js.map +0 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.d.ts +0 -14
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.js +0 -7
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardConfiguration.js.map +0 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.d.ts +0 -12
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.js +0 -27
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.js.map +0 -1
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +0 -23
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js +0 -135
- package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js.map +0 -1
- package/lib/extensions/CollaborativeWhiteboard/index.d.ts +0 -5
- package/lib/extensions/CollaborativeWhiteboard/index.js +0 -6
- package/lib/extensions/CollaborativeWhiteboard/index.js.map +0 -1
- package/lib/extensions/CollaborativeWhiteboard/resources/index.d.ts +0 -2
- package/lib/extensions/CollaborativeWhiteboard/resources/index.js +0 -5
- package/lib/extensions/CollaborativeWhiteboard/resources/index.js.map +0 -1
- package/lib/extensions/ExtensionConstants.d.ts +0 -50
- package/lib/extensions/ExtensionConstants.js +0 -51
- package/lib/extensions/ExtensionConstants.js.map +0 -1
- package/lib/extensions/ExtensionModerator.d.ts +0 -16
- package/lib/extensions/ExtensionModerator.js +0 -51
- package/lib/extensions/ExtensionModerator.js.map +0 -1
- package/lib/extensions/ImageModeration/ImageModerationDecorator.d.ts +0 -13
- package/lib/extensions/ImageModeration/ImageModerationDecorator.js +0 -45
- package/lib/extensions/ImageModeration/ImageModerationDecorator.js.map +0 -1
- package/lib/extensions/ImageModeration/ImageModerationExtension.d.ts +0 -14
- package/lib/extensions/ImageModeration/ImageModerationExtension.js +0 -28
- package/lib/extensions/ImageModeration/ImageModerationExtension.js.map +0 -1
- package/lib/extensions/ImageModeration/ImageModerationFilter.d.ts +0 -17
- package/lib/extensions/ImageModeration/ImageModerationFilter.js +0 -93
- package/lib/extensions/ImageModeration/ImageModerationFilter.js.map +0 -1
- package/lib/extensions/ImageModeration/index.d.ts +0 -4
- package/lib/extensions/ImageModeration/index.js +0 -5
- package/lib/extensions/ImageModeration/index.js.map +0 -1
- package/lib/extensions/ImageModeration/resources/index.d.ts +0 -3
- package/lib/extensions/ImageModeration/resources/index.js +0 -3
- package/lib/extensions/ImageModeration/resources/index.js.map +0 -1
- package/lib/extensions/LinkPreview/LInkPreviewBubbleStyle.d.ts +0 -18
- package/lib/extensions/LinkPreview/LInkPreviewBubbleStyle.js +0 -17
- package/lib/extensions/LinkPreview/LInkPreviewBubbleStyle.js.map +0 -1
- package/lib/extensions/LinkPreview/LinkPreviewBubble.d.ts +0 -12
- package/lib/extensions/LinkPreview/LinkPreviewBubble.js +0 -34
- package/lib/extensions/LinkPreview/LinkPreviewBubble.js.map +0 -1
- package/lib/extensions/LinkPreview/LinkPreviewConfiguration.d.ts +0 -14
- package/lib/extensions/LinkPreview/LinkPreviewConfiguration.js +0 -13
- package/lib/extensions/LinkPreview/LinkPreviewConfiguration.js.map +0 -1
- package/lib/extensions/LinkPreview/LinkPreviewExtention.d.ts +0 -8
- package/lib/extensions/LinkPreview/LinkPreviewExtention.js +0 -21
- package/lib/extensions/LinkPreview/LinkPreviewExtention.js.map +0 -1
- package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.d.ts +0 -13
- package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.js +0 -37
- package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.js.map +0 -1
- package/lib/extensions/LinkPreview/index.d.ts +0 -6
- package/lib/extensions/LinkPreview/index.js +0 -6
- package/lib/extensions/LinkPreview/index.js.map +0 -1
- package/lib/extensions/LinkPreview/resources/index.d.ts +0 -2
- package/lib/extensions/LinkPreview/resources/index.js +0 -3
- package/lib/extensions/LinkPreview/resources/index.js.map +0 -1
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.d.ts +0 -22
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.js +0 -69
- package/lib/extensions/MessageTranslation/MessageTranslationBubble.js.map +0 -1
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.d.ts +0 -21
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js +0 -152
- package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js.map +0 -1
- package/lib/extensions/MessageTranslation/MessageTranslationExtension.d.ts +0 -14
- package/lib/extensions/MessageTranslation/MessageTranslationExtension.js +0 -28
- package/lib/extensions/MessageTranslation/MessageTranslationExtension.js.map +0 -1
- package/lib/extensions/MessageTranslation/index.d.ts +0 -4
- package/lib/extensions/MessageTranslation/index.js +0 -5
- package/lib/extensions/MessageTranslation/index.js.map +0 -1
- package/lib/extensions/MessageTranslation/resources/index.d.ts +0 -3
- package/lib/extensions/MessageTranslation/resources/index.js +0 -5
- package/lib/extensions/MessageTranslation/resources/index.js.map +0 -1
- package/lib/extensions/Polls/Header.d.ts +0 -14
- package/lib/extensions/Polls/Header.js +0 -41
- package/lib/extensions/Polls/Header.js.map +0 -1
- package/lib/extensions/Polls/Polls.d.ts +0 -132
- package/lib/extensions/Polls/Polls.js +0 -218
- package/lib/extensions/Polls/Polls.js.map +0 -1
- package/lib/extensions/Polls/PollsBubble.d.ts +0 -83
- package/lib/extensions/Polls/PollsBubble.js +0 -202
- package/lib/extensions/Polls/PollsBubble.js.map +0 -1
- package/lib/extensions/Polls/PollsConfigurations.d.ts +0 -15
- package/lib/extensions/Polls/PollsConfigurations.js +0 -2
- package/lib/extensions/Polls/PollsConfigurations.js.map +0 -1
- package/lib/extensions/Polls/PollsDecorator.d.ts +0 -21
- package/lib/extensions/Polls/PollsDecorator.js +0 -103
- package/lib/extensions/Polls/PollsDecorator.js.map +0 -1
- package/lib/extensions/Polls/PollsExtension.d.ts +0 -12
- package/lib/extensions/Polls/PollsExtension.js +0 -27
- package/lib/extensions/Polls/PollsExtension.js.map +0 -1
- package/lib/extensions/Polls/index.d.ts +0 -4
- package/lib/extensions/Polls/index.js +0 -4
- package/lib/extensions/Polls/index.js.map +0 -1
- package/lib/extensions/Polls/resources/index.d.ts +0 -7
- package/lib/extensions/Polls/resources/index.js +0 -13
- package/lib/extensions/Polls/resources/index.js.map +0 -1
- package/lib/extensions/Polls/style.d.ts +0 -45
- package/lib/extensions/Polls/style.js +0 -39
- package/lib/extensions/Polls/style.js.map +0 -1
- package/lib/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.d.ts +0 -22
- package/lib/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.js +0 -203
- package/lib/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.js.map +0 -1
- package/lib/extensions/Reactions/CometChatMessageReactions/index.d.ts +0 -2
- package/lib/extensions/Reactions/CometChatMessageReactions/index.js +0 -3
- package/lib/extensions/Reactions/CometChatMessageReactions/index.js.map +0 -1
- package/lib/extensions/Reactions/CometChatMessageReactions/style.d.ts +0 -40
- package/lib/extensions/Reactions/CometChatMessageReactions/style.js +0 -42
- package/lib/extensions/Reactions/CometChatMessageReactions/style.js.map +0 -1
- package/lib/extensions/Reactions/ReactionsDecorator.d.ts +0 -23
- package/lib/extensions/Reactions/ReactionsDecorator.js +0 -113
- package/lib/extensions/Reactions/ReactionsDecorator.js.map +0 -1
- package/lib/extensions/Reactions/ReactionsExtension.d.ts +0 -14
- package/lib/extensions/Reactions/ReactionsExtension.js +0 -28
- package/lib/extensions/Reactions/ReactionsExtension.js.map +0 -1
- package/lib/extensions/Reactions/index.d.ts +0 -3
- package/lib/extensions/Reactions/index.js +0 -4
- package/lib/extensions/Reactions/index.js.map +0 -1
- package/lib/extensions/Reactions/resources/index.d.ts +0 -3
- package/lib/extensions/Reactions/resources/index.js +0 -3
- package/lib/extensions/Reactions/resources/index.js.map +0 -1
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.d.ts +0 -14
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.js +0 -95
- package/lib/extensions/SmartReplies/SmartRepliesDecorator.js.map +0 -1
- package/lib/extensions/SmartReplies/SmartRepliesExtension.d.ts +0 -14
- package/lib/extensions/SmartReplies/SmartRepliesExtension.js +0 -28
- package/lib/extensions/SmartReplies/SmartRepliesExtension.js.map +0 -1
- package/lib/extensions/SmartReplies/SmartRepliesView.d.ts +0 -27
- package/lib/extensions/SmartReplies/SmartRepliesView.js +0 -152
- package/lib/extensions/SmartReplies/SmartRepliesView.js.map +0 -1
- package/lib/extensions/SmartReplies/index.d.ts +0 -3
- package/lib/extensions/SmartReplies/index.js +0 -4
- package/lib/extensions/SmartReplies/index.js.map +0 -1
- package/lib/extensions/SmartReplies/resources/index.d.ts +0 -3
- package/lib/extensions/SmartReplies/resources/index.js +0 -5
- package/lib/extensions/SmartReplies/resources/index.js.map +0 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.d.ts +0 -33
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.js +0 -90
- package/lib/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.js.map +0 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.d.ts +0 -17
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.js +0 -17
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.js.map +0 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardStyle.d.ts +0 -20
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardStyle.js +0 -27
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardStyle.js.map +0 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.d.ts +0 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.js +0 -61
- package/lib/extensions/Stickers/CometChatStickerKeyboard/hooks.js.map +0 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/index.d.ts +0 -4
- package/lib/extensions/Stickers/CometChatStickerKeyboard/index.js +0 -5
- package/lib/extensions/Stickers/CometChatStickerKeyboard/index.js.map +0 -1
- package/lib/extensions/Stickers/CometChatStickerKeyboard/style.d.ts +0 -55
- package/lib/extensions/Stickers/CometChatStickerKeyboard/style.js +0 -55
- package/lib/extensions/Stickers/CometChatStickerKeyboard/style.js.map +0 -1
- package/lib/extensions/Stickers/StickerConfiguration.d.ts +0 -8
- package/lib/extensions/Stickers/StickerConfiguration.js +0 -12
- package/lib/extensions/Stickers/StickerConfiguration.js.map +0 -1
- package/lib/extensions/Stickers/StickerStyle.d.ts +0 -6
- package/lib/extensions/Stickers/StickerStyle.js +0 -10
- package/lib/extensions/Stickers/StickerStyle.js.map +0 -1
- package/lib/extensions/Stickers/StickersBubble.d.ts +0 -17
- package/lib/extensions/Stickers/StickersBubble.js +0 -21
- package/lib/extensions/Stickers/StickersBubble.js.map +0 -1
- package/lib/extensions/Stickers/StickersExtension.d.ts +0 -8
- package/lib/extensions/Stickers/StickersExtension.js +0 -28
- package/lib/extensions/Stickers/StickersExtension.js.map +0 -1
- package/lib/extensions/Stickers/StickersExtensionDecorator.d.ts +0 -22
- package/lib/extensions/Stickers/StickersExtensionDecorator.js +0 -108
- package/lib/extensions/Stickers/StickersExtensionDecorator.js.map +0 -1
- package/lib/extensions/Stickers/index.d.ts +0 -5
- package/lib/extensions/Stickers/index.js +0 -5
- package/lib/extensions/Stickers/index.js.map +0 -1
- package/lib/extensions/Stickers/resources/index.d.ts +0 -2
- package/lib/extensions/Stickers/resources/index.js +0 -3
- package/lib/extensions/Stickers/resources/index.js.map +0 -1
- package/lib/extensions/TextModeration/TextModerationConfiguration.d.ts +0 -14
- package/lib/extensions/TextModeration/TextModerationConfiguration.js +0 -7
- package/lib/extensions/TextModeration/TextModerationConfiguration.js.map +0 -1
- package/lib/extensions/TextModeration/TextModerationExtension.d.ts +0 -13
- package/lib/extensions/TextModeration/TextModerationExtension.js +0 -37
- package/lib/extensions/TextModeration/TextModerationExtension.js.map +0 -1
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.d.ts +0 -14
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.js +0 -55
- package/lib/extensions/TextModeration/TextModerationExtensionDecorator.js.map +0 -1
- package/lib/extensions/TextModeration/index.d.ts +0 -4
- package/lib/extensions/TextModeration/index.js +0 -4
- package/lib/extensions/TextModeration/index.js.map +0 -1
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.d.ts +0 -16
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js +0 -64
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js.map +0 -1
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.d.ts +0 -15
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.js +0 -28
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationExtension.js.map +0 -1
- package/lib/extensions/ThumbnailGeneration/index.d.ts +0 -2
- package/lib/extensions/ThumbnailGeneration/index.js +0 -3
- package/lib/extensions/ThumbnailGeneration/index.js.map +0 -1
- package/lib/extensions/index.d.ts +0 -13
- package/lib/extensions/index.js +0 -14
- package/lib/extensions/index.js.map +0 -1
- package/lib/index.d.ts +0 -26
- package/lib/index.js +0 -53
- package/lib/index.js.map +0 -1
- package/lib/shared/CometChatContext.d.ts +0 -4
- package/lib/shared/CometChatContext.js +0 -30
- package/lib/shared/CometChatContext.js.map +0 -1
- package/lib/shared/CometChatUiKit/CometChatUIKit.d.ts +0 -26
- package/lib/shared/CometChatUiKit/CometChatUIKit.js +0 -195
- package/lib/shared/CometChatUiKit/CometChatUIKit.js.map +0 -1
- package/lib/shared/CometChatUiKit/CometChatUIKitHelper.d.ts +0 -20
- package/lib/shared/CometChatUiKit/CometChatUIKitHelper.js +0 -66
- package/lib/shared/CometChatUiKit/CometChatUIKitHelper.js.map +0 -1
- package/lib/shared/CometChatUiKit/UIKitSettings.d.ts +0 -13
- package/lib/shared/CometChatUiKit/UIKitSettings.js +0 -15
- package/lib/shared/CometChatUiKit/UIKitSettings.js.map +0 -1
- package/lib/shared/CometChatUiKit/index.d.ts +0 -4
- package/lib/shared/CometChatUiKit/index.js +0 -5
- package/lib/shared/CometChatUiKit/index.js.map +0 -1
- package/lib/shared/assets/images/index.d.ts +0 -9
- package/lib/shared/assets/images/index.js +0 -17
- package/lib/shared/assets/images/index.js.map +0 -1
- package/lib/shared/base/BaseStyle.d.ts +0 -26
- package/lib/shared/base/BaseStyle.js +0 -26
- package/lib/shared/base/BaseStyle.js.map +0 -1
- package/lib/shared/base/BorderStyle.d.ts +0 -19
- package/lib/shared/base/BorderStyle.js +0 -19
- package/lib/shared/base/BorderStyle.js.map +0 -1
- package/lib/shared/base/FontStyle.d.ts +0 -18
- package/lib/shared/base/FontStyle.js +0 -18
- package/lib/shared/base/FontStyle.js.map +0 -1
- package/lib/shared/base/ShadowStyle.d.ts +0 -33
- package/lib/shared/base/ShadowStyle.js +0 -27
- package/lib/shared/base/ShadowStyle.js.map +0 -1
- package/lib/shared/base/Types.d.ts +0 -14
- package/lib/shared/base/Types.js +0 -2
- package/lib/shared/base/Types.js.map +0 -1
- package/lib/shared/base/index.d.ts +0 -6
- package/lib/shared/base/index.js +0 -6
- package/lib/shared/base/index.js.map +0 -1
- package/lib/shared/constants/UIKitConstants.d.ts +0 -285
- package/lib/shared/constants/UIKitConstants.js +0 -304
- package/lib/shared/constants/UIKitConstants.js.map +0 -1
- package/lib/shared/events/CometChatMessageEvents/index.d.ts +0 -43
- package/lib/shared/events/CometChatMessageEvents/index.js +0 -93
- package/lib/shared/events/CometChatMessageEvents/index.js.map +0 -1
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.d.ts +0 -30
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js +0 -310
- package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js.map +0 -1
- package/lib/shared/events/CometChatUIEventHandler/Listener.d.ts +0 -184
- package/lib/shared/events/CometChatUIEventHandler/Listener.js +0 -270
- package/lib/shared/events/CometChatUIEventHandler/Listener.js.map +0 -1
- package/lib/shared/events/CometChatUIEvents.d.ts +0 -17
- package/lib/shared/events/CometChatUIEvents.js +0 -19
- package/lib/shared/events/CometChatUIEvents.js.map +0 -1
- package/lib/shared/events/conversations.d.ts +0 -3
- package/lib/shared/events/conversations.js +0 -5
- package/lib/shared/events/conversations.js.map +0 -1
- package/lib/shared/events/groups.d.ts +0 -10
- package/lib/shared/events/groups.js +0 -12
- package/lib/shared/events/groups.js.map +0 -1
- package/lib/shared/events/index.d.ts +0 -6
- package/lib/shared/events/index.js +0 -7
- package/lib/shared/events/index.js.map +0 -1
- package/lib/shared/events/messages.d.ts +0 -11
- package/lib/shared/events/messages.js +0 -13
- package/lib/shared/events/messages.js.map +0 -1
- package/lib/shared/framework/ChatConfigurator.d.ts +0 -8
- package/lib/shared/framework/ChatConfigurator.js +0 -23
- package/lib/shared/framework/ChatConfigurator.js.map +0 -1
- package/lib/shared/framework/DataSource.d.ts +0 -49
- package/lib/shared/framework/DataSource.js +0 -2
- package/lib/shared/framework/DataSource.js.map +0 -1
- package/lib/shared/framework/DataSourceDecorator.d.ts +0 -49
- package/lib/shared/framework/DataSourceDecorator.js +0 -121
- package/lib/shared/framework/DataSourceDecorator.js.map +0 -1
- package/lib/shared/framework/ExtensionsDataSource.d.ts +0 -6
- package/lib/shared/framework/ExtensionsDataSource.js +0 -14
- package/lib/shared/framework/ExtensionsDataSource.js.map +0 -1
- package/lib/shared/framework/MessageDataSource.d.ts +0 -72
- package/lib/shared/framework/MessageDataSource.js +0 -548
- package/lib/shared/framework/MessageDataSource.js.map +0 -1
- package/lib/shared/framework/index.d.ts +0 -6
- package/lib/shared/framework/index.js +0 -6
- package/lib/shared/framework/index.js.map +0 -1
- package/lib/shared/framework/resources/index.d.ts +0 -22
- package/lib/shared/framework/resources/index.js +0 -45
- package/lib/shared/framework/resources/index.js.map +0 -1
- package/lib/shared/helper/SwipeRow.d.ts +0 -162
- package/lib/shared/helper/SwipeRow.js +0 -808
- package/lib/shared/helper/SwipeRow.js.map +0 -1
- package/lib/shared/helper/Toast.d.ts +0 -4
- package/lib/shared/helper/Toast.js +0 -23
- package/lib/shared/helper/Toast.js.map +0 -1
- package/lib/shared/helper/functions.d.ts +0 -3
- package/lib/shared/helper/functions.js +0 -32
- package/lib/shared/helper/functions.js.map +0 -1
- package/lib/shared/helper/helperFunctions.d.ts +0 -2
- package/lib/shared/helper/helperFunctions.js +0 -17
- package/lib/shared/helper/helperFunctions.js.map +0 -1
- package/lib/shared/helper/types/index.d.ts +0 -19
- package/lib/shared/helper/types/index.js +0 -2
- package/lib/shared/helper/types/index.js.map +0 -1
- package/lib/shared/helper/useKeyboard.d.ts +0 -1
- package/lib/shared/helper/useKeyboard.js +0 -25
- package/lib/shared/helper/useKeyboard.js.map +0 -1
- package/lib/shared/index.d.ts +0 -14
- package/lib/shared/index.js +0 -28
- package/lib/shared/index.js.map +0 -1
- package/lib/shared/modals/CometChatDetailsOption.d.ts +0 -18
- package/lib/shared/modals/CometChatDetailsOption.js +0 -2
- package/lib/shared/modals/CometChatDetailsOption.js.map +0 -1
- package/lib/shared/modals/CometChatDetailsTemplate.d.ts +0 -15
- package/lib/shared/modals/CometChatDetailsTemplate.js +0 -2
- package/lib/shared/modals/CometChatDetailsTemplate.js.map +0 -1
- package/lib/shared/modals/CometChatMessageOption.d.ts +0 -13
- package/lib/shared/modals/CometChatMessageOption.js +0 -2
- package/lib/shared/modals/CometChatMessageOption.js.map +0 -1
- package/lib/shared/modals/CometChatMessageTemplate.d.ts +0 -24
- package/lib/shared/modals/CometChatMessageTemplate.js +0 -20
- package/lib/shared/modals/CometChatMessageTemplate.js.map +0 -1
- package/lib/shared/modals/CometChatOptions.d.ts +0 -14
- package/lib/shared/modals/CometChatOptions.js +0 -2
- package/lib/shared/modals/CometChatOptions.js.map +0 -1
- package/lib/shared/modals/index.d.ts +0 -6
- package/lib/shared/modals/index.js +0 -3
- package/lib/shared/modals/index.js.map +0 -1
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.d.ts +0 -3681
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.js +0 -164
- package/lib/shared/resources/CometChatLocalize/CometChatLocalize.js.map +0 -1
- package/lib/shared/resources/CometChatLocalize/index.d.ts +0 -2
- package/lib/shared/resources/CometChatLocalize/index.js +0 -3
- package/lib/shared/resources/CometChatLocalize/index.js.map +0 -1
- package/lib/shared/resources/CometChatLocalize/resources/ar/translation.json +0 -270
- package/lib/shared/resources/CometChatLocalize/resources/de/translation.json +0 -270
- package/lib/shared/resources/CometChatLocalize/resources/en/translation.json +0 -270
- package/lib/shared/resources/CometChatLocalize/resources/es/translation.json +0 -270
- package/lib/shared/resources/CometChatLocalize/resources/fr/translation.json +0 -270
- package/lib/shared/resources/CometChatLocalize/resources/hi/translation.json +0 -270
- package/lib/shared/resources/CometChatLocalize/resources/lt/translation.json +0 -270
- package/lib/shared/resources/CometChatLocalize/resources/ms/translation.json +0 -270
- package/lib/shared/resources/CometChatLocalize/resources/pt/translation.json +0 -270
- package/lib/shared/resources/CometChatLocalize/resources/ru/translation.json +0 -270
- package/lib/shared/resources/CometChatLocalize/resources/sv/translation.json +0 -270
- package/lib/shared/resources/CometChatLocalize/resources/zh/translation.json +0 -270
- package/lib/shared/resources/CometChatLocalize/resources/zh-tw/translation.json +0 -270
- package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.d.ts +0 -13
- package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.js +0 -82
- package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.js.map +0 -1
- package/lib/shared/resources/CometChatSoundManager/index.d.ts +0 -2
- package/lib/shared/resources/CometChatSoundManager/index.js +0 -3
- package/lib/shared/resources/CometChatSoundManager/index.js.map +0 -1
- package/lib/shared/resources/CometChatSoundManager/resources/index.d.ts +0 -1
- package/lib/shared/resources/CometChatSoundManager/resources/index.js +0 -6
- package/lib/shared/resources/CometChatSoundManager/resources/index.js.map +0 -1
- package/lib/shared/resources/CometChatSoundManager/sound.d.ts +0 -56
- package/lib/shared/resources/CometChatSoundManager/sound.js +0 -303
- package/lib/shared/resources/CometChatSoundManager/sound.js.map +0 -1
- package/lib/shared/resources/CometChatTheme/CometChatTheme.d.ts +0 -22
- package/lib/shared/resources/CometChatTheme/CometChatTheme.js +0 -23
- package/lib/shared/resources/CometChatTheme/CometChatTheme.js.map +0 -1
- package/lib/shared/resources/CometChatTheme/Palette.d.ts +0 -118
- package/lib/shared/resources/CometChatTheme/Palette.js +0 -389
- package/lib/shared/resources/CometChatTheme/Palette.js.map +0 -1
- package/lib/shared/resources/CometChatTheme/Typography.d.ts +0 -80
- package/lib/shared/resources/CometChatTheme/Typography.js +0 -212
- package/lib/shared/resources/CometChatTheme/Typography.js.map +0 -1
- package/lib/shared/resources/CometChatTheme/index.d.ts +0 -2
- package/lib/shared/resources/CometChatTheme/index.js +0 -3
- package/lib/shared/resources/CometChatTheme/index.js.map +0 -1
- package/lib/shared/resources/index.d.ts +0 -4
- package/lib/shared/resources/index.js +0 -5
- package/lib/shared/resources/index.js.map +0 -1
- package/lib/shared/utils/CometChatLiveReactions/CometChatLiveReaction.d.ts +0 -15
- package/lib/shared/utils/CometChatLiveReactions/CometChatLiveReaction.js +0 -87
- package/lib/shared/utils/CometChatLiveReactions/CometChatLiveReaction.js.map +0 -1
- package/lib/shared/utils/CometChatLiveReactions/LiveReactionstyles.d.ts +0 -20
- package/lib/shared/utils/CometChatLiveReactions/LiveReactionstyles.js +0 -27
- package/lib/shared/utils/CometChatLiveReactions/LiveReactionstyles.js.map +0 -1
- package/lib/shared/utils/CometChatLiveReactions/index.d.ts +0 -1
- package/lib/shared/utils/CometChatLiveReactions/index.js +0 -2
- package/lib/shared/utils/CometChatLiveReactions/index.js.map +0 -1
- package/lib/shared/utils/CometChatLiveReactions/resources/index.d.ts +0 -2
- package/lib/shared/utils/CometChatLiveReactions/resources/index.js +0 -3
- package/lib/shared/utils/CometChatLiveReactions/resources/index.js.map +0 -1
- package/lib/shared/utils/CometChatLiveReactions/style.d.ts +0 -5
- package/lib/shared/utils/CometChatLiveReactions/style.js +0 -7
- package/lib/shared/utils/CometChatLiveReactions/style.js.map +0 -1
- package/lib/shared/utils/CometChatMessageHelper/index.d.ts +0 -12
- package/lib/shared/utils/CometChatMessageHelper/index.js +0 -42
- package/lib/shared/utils/CometChatMessageHelper/index.js.map +0 -1
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.d.ts +0 -49
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js +0 -107
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js.map +0 -1
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewConfiguration.d.ts +0 -24
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewConfiguration.js +0 -23
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewConfiguration.js.map +0 -1
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewStyle.d.ts +0 -31
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewStyle.js +0 -29
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewStyle.js.map +0 -1
- package/lib/shared/utils/CometChatMessagePreview/index.d.ts +0 -4
- package/lib/shared/utils/CometChatMessagePreview/index.js +0 -5
- package/lib/shared/utils/CometChatMessagePreview/index.js.map +0 -1
- package/lib/shared/utils/CometChatMessagePreview/resources/index.d.ts +0 -2
- package/lib/shared/utils/CometChatMessagePreview/resources/index.js +0 -3
- package/lib/shared/utils/CometChatMessagePreview/resources/index.js.map +0 -1
- package/lib/shared/utils/CometChatMessagePreview/style.d.ts +0 -9
- package/lib/shared/utils/CometChatMessagePreview/style.js +0 -71
- package/lib/shared/utils/CometChatMessagePreview/style.js.map +0 -1
- package/lib/shared/utils/DetailsUtils/DetailsUtils.d.ts +0 -13
- package/lib/shared/utils/DetailsUtils/DetailsUtils.js +0 -295
- package/lib/shared/utils/DetailsUtils/DetailsUtils.js.map +0 -1
- package/lib/shared/utils/DetailsUtils/resources/index.d.ts +0 -9
- package/lib/shared/utils/DetailsUtils/resources/index.js +0 -17
- package/lib/shared/utils/DetailsUtils/resources/index.js.map +0 -1
- package/lib/shared/utils/MessageUtils.d.ts +0 -15
- package/lib/shared/utils/MessageUtils.js +0 -31
- package/lib/shared/utils/MessageUtils.js.map +0 -1
- package/lib/shared/utils/conversationUtils.d.ts +0 -7
- package/lib/shared/utils/conversationUtils.js +0 -73
- package/lib/shared/utils/conversationUtils.js.map +0 -1
- package/lib/shared/utils/index.d.ts +0 -6
- package/lib/shared/utils/index.js +0 -7
- package/lib/shared/utils/index.js.map +0 -1
- package/lib/shared/views/CometChatActionSheet/ActionItem.d.ts +0 -49
- package/lib/shared/views/CometChatActionSheet/ActionItem.js +0 -38
- package/lib/shared/views/CometChatActionSheet/ActionItem.js.map +0 -1
- package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.d.ts +0 -43
- package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.js +0 -49
- package/lib/shared/views/CometChatActionSheet/ActionSheetStyle.js.map +0 -1
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.d.ts +0 -23
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.js +0 -170
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.js.map +0 -1
- package/lib/shared/views/CometChatActionSheet/hooks.d.ts +0 -1
- package/lib/shared/views/CometChatActionSheet/hooks.js +0 -7
- package/lib/shared/views/CometChatActionSheet/hooks.js.map +0 -1
- package/lib/shared/views/CometChatActionSheet/index.d.ts +0 -3
- package/lib/shared/views/CometChatActionSheet/index.js +0 -4
- package/lib/shared/views/CometChatActionSheet/index.js.map +0 -1
- package/lib/shared/views/CometChatActionSheet/resources/index.d.ts +0 -4
- package/lib/shared/views/CometChatActionSheet/resources/index.js +0 -7
- package/lib/shared/views/CometChatActionSheet/resources/index.js.map +0 -1
- package/lib/shared/views/CometChatActionSheet/style.d.ts +0 -44
- package/lib/shared/views/CometChatActionSheet/style.js +0 -46
- package/lib/shared/views/CometChatActionSheet/style.js.map +0 -1
- package/lib/shared/views/CometChatAudioBubble/AudioBubbleStyle.d.ts +0 -16
- package/lib/shared/views/CometChatAudioBubble/AudioBubbleStyle.js +0 -23
- package/lib/shared/views/CometChatAudioBubble/AudioBubbleStyle.js.map +0 -1
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.d.ts +0 -35
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js +0 -92
- package/lib/shared/views/CometChatAudioBubble/CometChatAudioBubble.js.map +0 -1
- package/lib/shared/views/CometChatAudioBubble/index.d.ts +0 -3
- package/lib/shared/views/CometChatAudioBubble/index.js +0 -4
- package/lib/shared/views/CometChatAudioBubble/index.js.map +0 -1
- package/lib/shared/views/CometChatAudioBubble/resources/index.d.ts +0 -3
- package/lib/shared/views/CometChatAudioBubble/resources/index.js +0 -4
- package/lib/shared/views/CometChatAudioBubble/resources/index.js.map +0 -1
- package/lib/shared/views/CometChatAudioBubble/style.d.ts +0 -26
- package/lib/shared/views/CometChatAudioBubble/style.js +0 -28
- package/lib/shared/views/CometChatAudioBubble/style.js.map +0 -1
- package/lib/shared/views/CometChatAvatar/AvatarConfiguration.d.ts +0 -19
- package/lib/shared/views/CometChatAvatar/AvatarConfiguration.js +0 -19
- package/lib/shared/views/CometChatAvatar/AvatarConfiguration.js.map +0 -1
- package/lib/shared/views/CometChatAvatar/AvatarStyle.d.ts +0 -28
- package/lib/shared/views/CometChatAvatar/AvatarStyle.js +0 -38
- package/lib/shared/views/CometChatAvatar/AvatarStyle.js.map +0 -1
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.d.ts +0 -25
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.js +0 -88
- package/lib/shared/views/CometChatAvatar/CometChatAvatar.js.map +0 -1
- package/lib/shared/views/CometChatAvatar/index.d.ts +0 -4
- package/lib/shared/views/CometChatAvatar/index.js +0 -5
- package/lib/shared/views/CometChatAvatar/index.js.map +0 -1
- package/lib/shared/views/CometChatAvatar/resources/index.d.ts +0 -3
- package/lib/shared/views/CometChatAvatar/resources/index.js +0 -5
- package/lib/shared/views/CometChatAvatar/resources/index.js.map +0 -1
- package/lib/shared/views/CometChatAvatar/styles.d.ts +0 -21
- package/lib/shared/views/CometChatAvatar/styles.js +0 -24
- package/lib/shared/views/CometChatAvatar/styles.js.map +0 -1
- package/lib/shared/views/CometChatBadge/BadgeConfiguration.d.ts +0 -34
- package/lib/shared/views/CometChatBadge/BadgeConfiguration.js +0 -37
- package/lib/shared/views/CometChatBadge/BadgeConfiguration.js.map +0 -1
- package/lib/shared/views/CometChatBadge/BadgeStyle.d.ts +0 -11
- package/lib/shared/views/CometChatBadge/BadgeStyle.js +0 -25
- package/lib/shared/views/CometChatBadge/BadgeStyle.js.map +0 -1
- package/lib/shared/views/CometChatBadge/CometChatBadge.d.ts +0 -23
- package/lib/shared/views/CometChatBadge/CometChatBadge.js +0 -48
- package/lib/shared/views/CometChatBadge/CometChatBadge.js.map +0 -1
- package/lib/shared/views/CometChatBadge/index.d.ts +0 -4
- package/lib/shared/views/CometChatBadge/index.js +0 -5
- package/lib/shared/views/CometChatBadge/index.js.map +0 -1
- package/lib/shared/views/CometChatBadge/styles.d.ts +0 -14
- package/lib/shared/views/CometChatBadge/styles.js +0 -17
- package/lib/shared/views/CometChatBadge/styles.js.map +0 -1
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.d.ts +0 -18
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js +0 -99
- package/lib/shared/views/CometChatBottomSheet/CometChatBottomSheet.js.map +0 -1
- package/lib/shared/views/CometChatBottomSheet/index.d.ts +0 -2
- package/lib/shared/views/CometChatBottomSheet/index.js +0 -3
- package/lib/shared/views/CometChatBottomSheet/index.js.map +0 -1
- package/lib/shared/views/CometChatBottomSheet/style.d.ts +0 -50
- package/lib/shared/views/CometChatBottomSheet/style.js +0 -52
- package/lib/shared/views/CometChatBottomSheet/style.js.map +0 -1
- package/lib/shared/views/CometChatButton/CometChatButton.d.ts +0 -10
- package/lib/shared/views/CometChatButton/CometChatButton.js +0 -30
- package/lib/shared/views/CometChatButton/CometChatButton.js.map +0 -1
- package/lib/shared/views/CometChatButton/CometChatButtonStyle.d.ts +0 -18
- package/lib/shared/views/CometChatButton/CometChatButtonStyle.js +0 -25
- package/lib/shared/views/CometChatButton/CometChatButtonStyle.js.map +0 -1
- package/lib/shared/views/CometChatButton/index.d.ts +0 -3
- package/lib/shared/views/CometChatButton/index.js +0 -4
- package/lib/shared/views/CometChatButton/index.js.map +0 -1
- package/lib/shared/views/CometChatButton/style.d.ts +0 -6
- package/lib/shared/views/CometChatButton/style.js +0 -8
- package/lib/shared/views/CometChatButton/style.js.map +0 -1
- package/lib/shared/views/CometChatCard/CometChatCard.d.ts +0 -15
- package/lib/shared/views/CometChatCard/CometChatCard.js +0 -35
- package/lib/shared/views/CometChatCard/CometChatCard.js.map +0 -1
- package/lib/shared/views/CometChatCard/CometChatCardStyle.d.ts +0 -10
- package/lib/shared/views/CometChatCard/CometChatCardStyle.js +0 -17
- package/lib/shared/views/CometChatCard/CometChatCardStyle.js.map +0 -1
- package/lib/shared/views/CometChatCard/index.d.ts +0 -3
- package/lib/shared/views/CometChatCard/index.js +0 -4
- package/lib/shared/views/CometChatCard/index.js.map +0 -1
- package/lib/shared/views/CometChatCard/style.d.ts +0 -11
- package/lib/shared/views/CometChatCard/style.js +0 -13
- package/lib/shared/views/CometChatCard/style.js.map +0 -1
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.d.ts +0 -25
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.js +0 -90
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.js.map +0 -1
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialogStyle.d.ts +0 -24
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialogStyle.js +0 -19
- package/lib/shared/views/CometChatConfirmDialog/CometChatConfirmDialogStyle.js.map +0 -1
- package/lib/shared/views/CometChatConfirmDialog/index.d.ts +0 -3
- package/lib/shared/views/CometChatConfirmDialog/index.js +0 -3
- package/lib/shared/views/CometChatConfirmDialog/index.js.map +0 -1
- package/lib/shared/views/CometChatConfirmDialog/style.d.ts +0 -61
- package/lib/shared/views/CometChatConfirmDialog/style.js +0 -63
- package/lib/shared/views/CometChatConfirmDialog/style.js.map +0 -1
- package/lib/shared/views/CometChatDate/CometChatDate.d.ts +0 -41
- package/lib/shared/views/CometChatDate/CometChatDate.js +0 -140
- package/lib/shared/views/CometChatDate/CometChatDate.js.map +0 -1
- package/lib/shared/views/CometChatDate/DateConfiguration.d.ts +0 -21
- package/lib/shared/views/CometChatDate/DateConfiguration.js +0 -19
- package/lib/shared/views/CometChatDate/DateConfiguration.js.map +0 -1
- package/lib/shared/views/CometChatDate/DateStyle.d.ts +0 -11
- package/lib/shared/views/CometChatDate/DateStyle.js +0 -16
- package/lib/shared/views/CometChatDate/DateStyle.js.map +0 -1
- package/lib/shared/views/CometChatDate/index.d.ts +0 -4
- package/lib/shared/views/CometChatDate/index.js +0 -5
- package/lib/shared/views/CometChatDate/index.js.map +0 -1
- package/lib/shared/views/CometChatDate/style.d.ts +0 -5
- package/lib/shared/views/CometChatDate/style.js +0 -8
- package/lib/shared/views/CometChatDate/style.js.map +0 -1
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.d.ts +0 -38
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js +0 -153
- package/lib/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.js.map +0 -1
- package/lib/shared/views/CometChatEmojiKeyboard/Emoji.d.ts +0 -16
- package/lib/shared/views/CometChatEmojiKeyboard/Emoji.js +0 -17
- package/lib/shared/views/CometChatEmojiKeyboard/Emoji.js.map +0 -1
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiCategory.d.ts +0 -21
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiCategory.js +0 -22
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiCategory.js.map +0 -1
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.d.ts +0 -19
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.js +0 -20
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.js.map +0 -1
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.d.ts +0 -27
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.js +0 -33
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.js.map +0 -1
- package/lib/shared/views/CometChatEmojiKeyboard/emojis.d.ts +0 -6579
- package/lib/shared/views/CometChatEmojiKeyboard/emojis.js +0 -8218
- package/lib/shared/views/CometChatEmojiKeyboard/emojis.js.map +0 -1
- package/lib/shared/views/CometChatEmojiKeyboard/index.d.ts +0 -4
- package/lib/shared/views/CometChatEmojiKeyboard/index.js +0 -5
- package/lib/shared/views/CometChatEmojiKeyboard/index.js.map +0 -1
- package/lib/shared/views/CometChatEmojiKeyboard/resources/index.d.ts +0 -9
- package/lib/shared/views/CometChatEmojiKeyboard/resources/index.js +0 -10
- package/lib/shared/views/CometChatEmojiKeyboard/resources/index.js.map +0 -1
- package/lib/shared/views/CometChatEmojiKeyboard/style.d.ts +0 -44
- package/lib/shared/views/CometChatEmojiKeyboard/style.js +0 -57
- package/lib/shared/views/CometChatEmojiKeyboard/style.js.map +0 -1
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.d.ts +0 -35
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.js +0 -66
- package/lib/shared/views/CometChatFileBubble/CometChatFileBubble.js.map +0 -1
- package/lib/shared/views/CometChatFileBubble/FileBubbleStyle.d.ts +0 -31
- package/lib/shared/views/CometChatFileBubble/FileBubbleStyle.js +0 -23
- package/lib/shared/views/CometChatFileBubble/FileBubbleStyle.js.map +0 -1
- package/lib/shared/views/CometChatFileBubble/index.d.ts +0 -3
- package/lib/shared/views/CometChatFileBubble/index.js +0 -4
- package/lib/shared/views/CometChatFileBubble/index.js.map +0 -1
- package/lib/shared/views/CometChatFileBubble/resources/index.d.ts +0 -3
- package/lib/shared/views/CometChatFileBubble/resources/index.js +0 -4
- package/lib/shared/views/CometChatFileBubble/resources/index.js.map +0 -1
- package/lib/shared/views/CometChatFileBubble/style.d.ts +0 -42
- package/lib/shared/views/CometChatFileBubble/style.js +0 -45
- package/lib/shared/views/CometChatFileBubble/style.js.map +0 -1
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.d.ts +0 -29
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js +0 -52
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js.map +0 -1
- package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.d.ts +0 -10
- package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.js +0 -13
- package/lib/shared/views/CometChatImageBubble/ImageBubbleStyle.js.map +0 -1
- package/lib/shared/views/CometChatImageBubble/index.d.ts +0 -3
- package/lib/shared/views/CometChatImageBubble/index.js +0 -4
- package/lib/shared/views/CometChatImageBubble/index.js.map +0 -1
- package/lib/shared/views/CometChatList/CometChatList.d.ts +0 -86
- package/lib/shared/views/CometChatList/CometChatList.js +0 -443
- package/lib/shared/views/CometChatList/CometChatList.js.map +0 -1
- package/lib/shared/views/CometChatList/Header.d.ts +0 -2
- package/lib/shared/views/CometChatList/Header.js +0 -71
- package/lib/shared/views/CometChatList/Header.js.map +0 -1
- package/lib/shared/views/CometChatList/index.d.ts +0 -2
- package/lib/shared/views/CometChatList/index.js +0 -3
- package/lib/shared/views/CometChatList/index.js.map +0 -1
- package/lib/shared/views/CometChatList/resources/index.d.ts +0 -7
- package/lib/shared/views/CometChatList/resources/index.js +0 -13
- package/lib/shared/views/CometChatList/resources/index.js.map +0 -1
- package/lib/shared/views/CometChatList/styles.d.ts +0 -99
- package/lib/shared/views/CometChatList/styles.js +0 -102
- package/lib/shared/views/CometChatList/styles.js.map +0 -1
- package/lib/shared/views/CometChatListItem/CometChatListItem.d.ts +0 -37
- package/lib/shared/views/CometChatListItem/CometChatListItem.js +0 -173
- package/lib/shared/views/CometChatListItem/CometChatListItem.js.map +0 -1
- package/lib/shared/views/CometChatListItem/ListItemConfiguration.d.ts +0 -6
- package/lib/shared/views/CometChatListItem/ListItemConfiguration.js +0 -9
- package/lib/shared/views/CometChatListItem/ListItemConfiguration.js.map +0 -1
- package/lib/shared/views/CometChatListItem/ListItemStyle.d.ts +0 -27
- package/lib/shared/views/CometChatListItem/ListItemStyle.js +0 -34
- package/lib/shared/views/CometChatListItem/ListItemStyle.js.map +0 -1
- package/lib/shared/views/CometChatListItem/index.d.ts +0 -4
- package/lib/shared/views/CometChatListItem/index.js +0 -5
- package/lib/shared/views/CometChatListItem/index.js.map +0 -1
- package/lib/shared/views/CometChatListItem/style.d.ts +0 -61
- package/lib/shared/views/CometChatListItem/style.js +0 -61
- package/lib/shared/views/CometChatListItem/style.js.map +0 -1
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.d.ts +0 -25
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js +0 -151
- package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js.map +0 -1
- package/lib/shared/views/CometChatMediaRecorder/MediaRecorderStyle.d.ts +0 -26
- package/lib/shared/views/CometChatMediaRecorder/MediaRecorderStyle.js +0 -33
- package/lib/shared/views/CometChatMediaRecorder/MediaRecorderStyle.js.map +0 -1
- package/lib/shared/views/CometChatMediaRecorder/index.d.ts +0 -3
- package/lib/shared/views/CometChatMediaRecorder/index.js +0 -4
- package/lib/shared/views/CometChatMediaRecorder/index.js.map +0 -1
- package/lib/shared/views/CometChatMediaRecorder/style.d.ts +0 -27
- package/lib/shared/views/CometChatMediaRecorder/style.js +0 -28
- package/lib/shared/views/CometChatMediaRecorder/style.js.map +0 -1
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.d.ts +0 -21
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js +0 -41
- package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js.map +0 -1
- package/lib/shared/views/CometChatMessageBubble/MessageBubbleStyle.d.ts +0 -6
- package/lib/shared/views/CometChatMessageBubble/MessageBubbleStyle.js +0 -13
- package/lib/shared/views/CometChatMessageBubble/MessageBubbleStyle.js.map +0 -1
- package/lib/shared/views/CometChatMessageBubble/index.d.ts +0 -2
- package/lib/shared/views/CometChatMessageBubble/index.js +0 -3
- package/lib/shared/views/CometChatMessageBubble/index.js.map +0 -1
- package/lib/shared/views/CometChatMessageBubble/style.js +0 -1
- package/lib/shared/views/CometChatMessageBubble/style.js.map +0 -1
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.d.ts +0 -98
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js +0 -50
- package/lib/shared/views/CometChatMessageInput/CometChatMessageInput.js.map +0 -1
- package/lib/shared/views/CometChatMessageInput/index.d.ts +0 -2
- package/lib/shared/views/CometChatMessageInput/index.js +0 -3
- package/lib/shared/views/CometChatMessageInput/index.js.map +0 -1
- package/lib/shared/views/CometChatMessageInput/styles.d.ts +0 -7
- package/lib/shared/views/CometChatMessageInput/styles.js +0 -9
- package/lib/shared/views/CometChatMessageInput/styles.js.map +0 -1
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.d.ts +0 -30
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.js +0 -48
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.js.map +0 -1
- package/lib/shared/views/CometChatReceipt/MessageConfiguration.d.ts +0 -30
- package/lib/shared/views/CometChatReceipt/MessageConfiguration.js +0 -39
- package/lib/shared/views/CometChatReceipt/MessageConfiguration.js.map +0 -1
- package/lib/shared/views/CometChatReceipt/ReceiptStyle.d.ts +0 -3
- package/lib/shared/views/CometChatReceipt/ReceiptStyle.js +0 -4
- package/lib/shared/views/CometChatReceipt/ReceiptStyle.js.map +0 -1
- package/lib/shared/views/CometChatReceipt/index.d.ts +0 -3
- package/lib/shared/views/CometChatReceipt/index.js +0 -4
- package/lib/shared/views/CometChatReceipt/index.js.map +0 -1
- package/lib/shared/views/CometChatReceipt/resources/index.d.ts +0 -7
- package/lib/shared/views/CometChatReceipt/resources/index.js +0 -18
- package/lib/shared/views/CometChatReceipt/resources/index.js.map +0 -1
- package/lib/shared/views/CometChatReceipt/style.d.ts +0 -8
- package/lib/shared/views/CometChatReceipt/style.js +0 -10
- package/lib/shared/views/CometChatReceipt/style.js.map +0 -1
- package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.d.ts +0 -25
- package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.js +0 -40
- package/lib/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.js.map +0 -1
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorConfiguration.d.ts +0 -17
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorConfiguration.js +0 -16
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorConfiguration.js.map +0 -1
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorStyle.d.ts +0 -20
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorStyle.js +0 -22
- package/lib/shared/views/CometChatStatusIndicator/StatusIndicatorStyle.js.map +0 -1
- package/lib/shared/views/CometChatStatusIndicator/index.d.ts +0 -4
- package/lib/shared/views/CometChatStatusIndicator/index.js +0 -5
- package/lib/shared/views/CometChatStatusIndicator/index.js.map +0 -1
- package/lib/shared/views/CometChatStatusIndicator/styles.d.ts +0 -12
- package/lib/shared/views/CometChatStatusIndicator/styles.js +0 -15
- package/lib/shared/views/CometChatStatusIndicator/styles.js.map +0 -1
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.d.ts +0 -27
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.js +0 -84
- package/lib/shared/views/CometChatTextBubble/CometChatTextBubble.js.map +0 -1
- package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.d.ts +0 -26
- package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.js +0 -21
- package/lib/shared/views/CometChatTextBubble/TextBubbleStyle.js.map +0 -1
- package/lib/shared/views/CometChatTextBubble/index.d.ts +0 -3
- package/lib/shared/views/CometChatTextBubble/index.js +0 -4
- package/lib/shared/views/CometChatTextBubble/index.js.map +0 -1
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.d.ts +0 -31
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js +0 -54
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js.map +0 -1
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.d.ts +0 -16
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.js +0 -17
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.js.map +0 -1
- package/lib/shared/views/CometChatVideoBubble/index.d.ts +0 -3
- package/lib/shared/views/CometChatVideoBubble/index.js +0 -4
- package/lib/shared/views/CometChatVideoBubble/index.js.map +0 -1
- package/lib/shared/views/CometChatVideoBubble/resources/index.d.ts +0 -2
- package/lib/shared/views/CometChatVideoBubble/resources/index.js +0 -3
- package/lib/shared/views/CometChatVideoBubble/resources/index.js.map +0 -1
- package/lib/shared/views/CometChatVideoBubble/style.d.ts +0 -7
- package/lib/shared/views/CometChatVideoBubble/style.js +0 -9
- package/lib/shared/views/CometChatVideoBubble/style.js.map +0 -1
- package/lib/shared/views/SwipeRow/SwipeRow.d.ts +0 -8
- package/lib/shared/views/SwipeRow/SwipeRow.js +0 -79
- package/lib/shared/views/SwipeRow/SwipeRow.js.map +0 -1
- package/lib/shared/views/SwipeRow/index.d.ts +0 -2
- package/lib/shared/views/SwipeRow/index.js +0 -3
- package/lib/shared/views/SwipeRow/index.js.map +0 -1
- package/lib/shared/views/SwipeRow/style.d.ts +0 -28
- package/lib/shared/views/SwipeRow/style.js +0 -28
- package/lib/shared/views/SwipeRow/style.js.map +0 -1
- package/lib/shared/views/index.d.ts +0 -18
- package/lib/shared/views/index.js +0 -21
- package/lib/shared/views/index.js.map +0 -1
- /package/{lib/shared/views/CometChatMessageBubble/style.d.ts → android/.gradle/7.4.2/gc.properties} +0 -0
|
@@ -0,0 +1,990 @@
|
|
|
1
|
+
import { InvalidArgumentError, InvalidDurationError, InvalidUnitError } from "./errors.js";
|
|
2
|
+
import Formatter from "./impl/formatter.js";
|
|
3
|
+
import Invalid from "./impl/invalid.js";
|
|
4
|
+
import Locale from "./impl/locale.js";
|
|
5
|
+
import { parseISODuration, parseISOTimeOnly } from "./impl/regexParser.js";
|
|
6
|
+
import {
|
|
7
|
+
asNumber,
|
|
8
|
+
hasOwnProperty,
|
|
9
|
+
isNumber,
|
|
10
|
+
isUndefined,
|
|
11
|
+
normalizeObject,
|
|
12
|
+
roundTo,
|
|
13
|
+
} from "./impl/util.js";
|
|
14
|
+
import Settings from "./settings.js";
|
|
15
|
+
import DateTime from "./datetime.js";
|
|
16
|
+
|
|
17
|
+
const INVALID = "Invalid Duration";
|
|
18
|
+
|
|
19
|
+
// unit conversion constants
|
|
20
|
+
export const lowOrderMatrix = {
|
|
21
|
+
weeks: {
|
|
22
|
+
days: 7,
|
|
23
|
+
hours: 7 * 24,
|
|
24
|
+
minutes: 7 * 24 * 60,
|
|
25
|
+
seconds: 7 * 24 * 60 * 60,
|
|
26
|
+
milliseconds: 7 * 24 * 60 * 60 * 1000,
|
|
27
|
+
},
|
|
28
|
+
days: {
|
|
29
|
+
hours: 24,
|
|
30
|
+
minutes: 24 * 60,
|
|
31
|
+
seconds: 24 * 60 * 60,
|
|
32
|
+
milliseconds: 24 * 60 * 60 * 1000,
|
|
33
|
+
},
|
|
34
|
+
hours: { minutes: 60, seconds: 60 * 60, milliseconds: 60 * 60 * 1000 },
|
|
35
|
+
minutes: { seconds: 60, milliseconds: 60 * 1000 },
|
|
36
|
+
seconds: { milliseconds: 1000 },
|
|
37
|
+
},
|
|
38
|
+
casualMatrix = {
|
|
39
|
+
years: {
|
|
40
|
+
quarters: 4,
|
|
41
|
+
months: 12,
|
|
42
|
+
weeks: 52,
|
|
43
|
+
days: 365,
|
|
44
|
+
hours: 365 * 24,
|
|
45
|
+
minutes: 365 * 24 * 60,
|
|
46
|
+
seconds: 365 * 24 * 60 * 60,
|
|
47
|
+
milliseconds: 365 * 24 * 60 * 60 * 1000,
|
|
48
|
+
},
|
|
49
|
+
quarters: {
|
|
50
|
+
months: 3,
|
|
51
|
+
weeks: 13,
|
|
52
|
+
days: 91,
|
|
53
|
+
hours: 91 * 24,
|
|
54
|
+
minutes: 91 * 24 * 60,
|
|
55
|
+
seconds: 91 * 24 * 60 * 60,
|
|
56
|
+
milliseconds: 91 * 24 * 60 * 60 * 1000,
|
|
57
|
+
},
|
|
58
|
+
months: {
|
|
59
|
+
weeks: 4,
|
|
60
|
+
days: 30,
|
|
61
|
+
hours: 30 * 24,
|
|
62
|
+
minutes: 30 * 24 * 60,
|
|
63
|
+
seconds: 30 * 24 * 60 * 60,
|
|
64
|
+
milliseconds: 30 * 24 * 60 * 60 * 1000,
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
...lowOrderMatrix,
|
|
68
|
+
},
|
|
69
|
+
daysInYearAccurate = 146097.0 / 400,
|
|
70
|
+
daysInMonthAccurate = 146097.0 / 4800,
|
|
71
|
+
accurateMatrix = {
|
|
72
|
+
years: {
|
|
73
|
+
quarters: 4,
|
|
74
|
+
months: 12,
|
|
75
|
+
weeks: daysInYearAccurate / 7,
|
|
76
|
+
days: daysInYearAccurate,
|
|
77
|
+
hours: daysInYearAccurate * 24,
|
|
78
|
+
minutes: daysInYearAccurate * 24 * 60,
|
|
79
|
+
seconds: daysInYearAccurate * 24 * 60 * 60,
|
|
80
|
+
milliseconds: daysInYearAccurate * 24 * 60 * 60 * 1000,
|
|
81
|
+
},
|
|
82
|
+
quarters: {
|
|
83
|
+
months: 3,
|
|
84
|
+
weeks: daysInYearAccurate / 28,
|
|
85
|
+
days: daysInYearAccurate / 4,
|
|
86
|
+
hours: (daysInYearAccurate * 24) / 4,
|
|
87
|
+
minutes: (daysInYearAccurate * 24 * 60) / 4,
|
|
88
|
+
seconds: (daysInYearAccurate * 24 * 60 * 60) / 4,
|
|
89
|
+
milliseconds: (daysInYearAccurate * 24 * 60 * 60 * 1000) / 4,
|
|
90
|
+
},
|
|
91
|
+
months: {
|
|
92
|
+
weeks: daysInMonthAccurate / 7,
|
|
93
|
+
days: daysInMonthAccurate,
|
|
94
|
+
hours: daysInMonthAccurate * 24,
|
|
95
|
+
minutes: daysInMonthAccurate * 24 * 60,
|
|
96
|
+
seconds: daysInMonthAccurate * 24 * 60 * 60,
|
|
97
|
+
milliseconds: daysInMonthAccurate * 24 * 60 * 60 * 1000,
|
|
98
|
+
},
|
|
99
|
+
...lowOrderMatrix,
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
// units ordered by size
|
|
103
|
+
const orderedUnits = [
|
|
104
|
+
"years",
|
|
105
|
+
"quarters",
|
|
106
|
+
"months",
|
|
107
|
+
"weeks",
|
|
108
|
+
"days",
|
|
109
|
+
"hours",
|
|
110
|
+
"minutes",
|
|
111
|
+
"seconds",
|
|
112
|
+
"milliseconds",
|
|
113
|
+
];
|
|
114
|
+
|
|
115
|
+
const reverseUnits = orderedUnits.slice(0).reverse();
|
|
116
|
+
|
|
117
|
+
// clone really means "create another instance just like this one, but with these changes"
|
|
118
|
+
function clone(dur, alts, clear = false) {
|
|
119
|
+
// deep merge for vals
|
|
120
|
+
const conf = {
|
|
121
|
+
values: clear ? alts.values : { ...dur.values, ...(alts.values || {}) },
|
|
122
|
+
loc: dur.loc.clone(alts.loc),
|
|
123
|
+
conversionAccuracy: alts.conversionAccuracy || dur.conversionAccuracy,
|
|
124
|
+
matrix: alts.matrix || dur.matrix,
|
|
125
|
+
};
|
|
126
|
+
return new Duration(conf);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function durationToMillis(matrix, vals) {
|
|
130
|
+
let sum = vals.milliseconds ?? 0;
|
|
131
|
+
for (const unit of reverseUnits.slice(1)) {
|
|
132
|
+
if (vals[unit]) {
|
|
133
|
+
sum += vals[unit] * matrix[unit]["milliseconds"];
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
return sum;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// NB: mutates parameters
|
|
140
|
+
function normalizeValues(matrix, vals) {
|
|
141
|
+
// the logic below assumes the overall value of the duration is positive
|
|
142
|
+
// if this is not the case, factor is used to make it so
|
|
143
|
+
const factor = durationToMillis(matrix, vals) < 0 ? -1 : 1;
|
|
144
|
+
|
|
145
|
+
orderedUnits.reduceRight((previous, current) => {
|
|
146
|
+
if (!isUndefined(vals[current])) {
|
|
147
|
+
if (previous) {
|
|
148
|
+
const previousVal = vals[previous] * factor;
|
|
149
|
+
const conv = matrix[current][previous];
|
|
150
|
+
|
|
151
|
+
// if (previousVal < 0):
|
|
152
|
+
// lower order unit is negative (e.g. { years: 2, days: -2 })
|
|
153
|
+
// normalize this by reducing the higher order unit by the appropriate amount
|
|
154
|
+
// and increasing the lower order unit
|
|
155
|
+
// this can never make the higher order unit negative, because this function only operates
|
|
156
|
+
// on positive durations, so the amount of time represented by the lower order unit cannot
|
|
157
|
+
// be larger than the higher order unit
|
|
158
|
+
// else:
|
|
159
|
+
// lower order unit is positive (e.g. { years: 2, days: 450 } or { years: -2, days: 450 })
|
|
160
|
+
// in this case we attempt to convert as much as possible from the lower order unit into
|
|
161
|
+
// the higher order one
|
|
162
|
+
//
|
|
163
|
+
// Math.floor takes care of both of these cases, rounding away from 0
|
|
164
|
+
// if previousVal < 0 it makes the absolute value larger
|
|
165
|
+
// if previousVal >= it makes the absolute value smaller
|
|
166
|
+
const rollUp = Math.floor(previousVal / conv);
|
|
167
|
+
vals[current] += rollUp * factor;
|
|
168
|
+
vals[previous] -= rollUp * conv * factor;
|
|
169
|
+
}
|
|
170
|
+
return current;
|
|
171
|
+
} else {
|
|
172
|
+
return previous;
|
|
173
|
+
}
|
|
174
|
+
}, null);
|
|
175
|
+
|
|
176
|
+
// try to convert any decimals into smaller units if possible
|
|
177
|
+
// for example for { years: 2.5, days: 0, seconds: 0 } we want to get { years: 2, days: 182, hours: 12 }
|
|
178
|
+
orderedUnits.reduce((previous, current) => {
|
|
179
|
+
if (!isUndefined(vals[current])) {
|
|
180
|
+
if (previous) {
|
|
181
|
+
const fraction = vals[previous] % 1;
|
|
182
|
+
vals[previous] -= fraction;
|
|
183
|
+
vals[current] += fraction * matrix[previous][current];
|
|
184
|
+
}
|
|
185
|
+
return current;
|
|
186
|
+
} else {
|
|
187
|
+
return previous;
|
|
188
|
+
}
|
|
189
|
+
}, null);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// Remove all properties with a value of 0 from an object
|
|
193
|
+
function removeZeroes(vals) {
|
|
194
|
+
const newVals = {};
|
|
195
|
+
for (const [key, value] of Object.entries(vals)) {
|
|
196
|
+
if (value !== 0) {
|
|
197
|
+
newVals[key] = value;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
return newVals;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* A Duration object represents a period of time, like "2 months" or "1 day, 1 hour". Conceptually, it's just a map of units to their quantities, accompanied by some additional configuration and methods for creating, parsing, interrogating, transforming, and formatting them. They can be used on their own or in conjunction with other Luxon types; for example, you can use {@link DateTime#plus} to add a Duration object to a DateTime, producing another DateTime.
|
|
205
|
+
*
|
|
206
|
+
* Here is a brief overview of commonly used methods and getters in Duration:
|
|
207
|
+
*
|
|
208
|
+
* * **Creation** To create a Duration, use {@link Duration.fromMillis}, {@link Duration.fromObject}, or {@link Duration.fromISO}.
|
|
209
|
+
* * **Unit values** See the {@link Duration#years}, {@link Duration#months}, {@link Duration#weeks}, {@link Duration#days}, {@link Duration#hours}, {@link Duration#minutes}, {@link Duration#seconds}, {@link Duration#milliseconds} accessors.
|
|
210
|
+
* * **Configuration** See {@link Duration#locale} and {@link Duration#numberingSystem} accessors.
|
|
211
|
+
* * **Transformation** To create new Durations out of old ones use {@link Duration#plus}, {@link Duration#minus}, {@link Duration#normalize}, {@link Duration#set}, {@link Duration#reconfigure}, {@link Duration#shiftTo}, and {@link Duration#negate}.
|
|
212
|
+
* * **Output** To convert the Duration into other representations, see {@link Duration#as}, {@link Duration#toISO}, {@link Duration#toFormat}, and {@link Duration#toJSON}
|
|
213
|
+
*
|
|
214
|
+
* There's are more methods documented below. In addition, for more information on subtler topics like internationalization and validity, see the external documentation.
|
|
215
|
+
*/
|
|
216
|
+
export default class Duration {
|
|
217
|
+
/**
|
|
218
|
+
* @private
|
|
219
|
+
*/
|
|
220
|
+
constructor(config) {
|
|
221
|
+
const accurate = config.conversionAccuracy === "longterm" || false;
|
|
222
|
+
let matrix = accurate ? accurateMatrix : casualMatrix;
|
|
223
|
+
|
|
224
|
+
if (config.matrix) {
|
|
225
|
+
matrix = config.matrix;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* @access private
|
|
230
|
+
*/
|
|
231
|
+
this.values = config.values;
|
|
232
|
+
/**
|
|
233
|
+
* @access private
|
|
234
|
+
*/
|
|
235
|
+
this.loc = config.loc || Locale.create();
|
|
236
|
+
/**
|
|
237
|
+
* @access private
|
|
238
|
+
*/
|
|
239
|
+
this.conversionAccuracy = accurate ? "longterm" : "casual";
|
|
240
|
+
/**
|
|
241
|
+
* @access private
|
|
242
|
+
*/
|
|
243
|
+
this.invalid = config.invalid || null;
|
|
244
|
+
/**
|
|
245
|
+
* @access private
|
|
246
|
+
*/
|
|
247
|
+
this.matrix = matrix;
|
|
248
|
+
/**
|
|
249
|
+
* @access private
|
|
250
|
+
*/
|
|
251
|
+
this.isLuxonDuration = true;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Create Duration from a number of milliseconds.
|
|
256
|
+
* @param {number} count of milliseconds
|
|
257
|
+
* @param {Object} opts - options for parsing
|
|
258
|
+
* @param {string} [opts.locale='en-US'] - the locale to use
|
|
259
|
+
* @param {string} opts.numberingSystem - the numbering system to use
|
|
260
|
+
* @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
|
|
261
|
+
* @return {Duration}
|
|
262
|
+
*/
|
|
263
|
+
static fromMillis(count, opts) {
|
|
264
|
+
return Duration.fromObject({ milliseconds: count }, opts);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Create a Duration from a JavaScript object with keys like 'years' and 'hours'.
|
|
269
|
+
* If this object is empty then a zero milliseconds duration is returned.
|
|
270
|
+
* @param {Object} obj - the object to create the DateTime from
|
|
271
|
+
* @param {number} obj.years
|
|
272
|
+
* @param {number} obj.quarters
|
|
273
|
+
* @param {number} obj.months
|
|
274
|
+
* @param {number} obj.weeks
|
|
275
|
+
* @param {number} obj.days
|
|
276
|
+
* @param {number} obj.hours
|
|
277
|
+
* @param {number} obj.minutes
|
|
278
|
+
* @param {number} obj.seconds
|
|
279
|
+
* @param {number} obj.milliseconds
|
|
280
|
+
* @param {Object} [opts=[]] - options for creating this Duration
|
|
281
|
+
* @param {string} [opts.locale='en-US'] - the locale to use
|
|
282
|
+
* @param {string} opts.numberingSystem - the numbering system to use
|
|
283
|
+
* @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use
|
|
284
|
+
* @param {string} [opts.matrix=Object] - the custom conversion system to use
|
|
285
|
+
* @return {Duration}
|
|
286
|
+
*/
|
|
287
|
+
static fromObject(obj, opts = {}) {
|
|
288
|
+
if (obj == null || typeof obj !== "object") {
|
|
289
|
+
throw new InvalidArgumentError(
|
|
290
|
+
`Duration.fromObject: argument expected to be an object, got ${
|
|
291
|
+
obj === null ? "null" : typeof obj
|
|
292
|
+
}`
|
|
293
|
+
);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
return new Duration({
|
|
297
|
+
values: normalizeObject(obj, Duration.normalizeUnit),
|
|
298
|
+
loc: Locale.fromObject(opts),
|
|
299
|
+
conversionAccuracy: opts.conversionAccuracy,
|
|
300
|
+
matrix: opts.matrix,
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Create a Duration from DurationLike.
|
|
306
|
+
*
|
|
307
|
+
* @param {Object | number | Duration} durationLike
|
|
308
|
+
* One of:
|
|
309
|
+
* - object with keys like 'years' and 'hours'.
|
|
310
|
+
* - number representing milliseconds
|
|
311
|
+
* - Duration instance
|
|
312
|
+
* @return {Duration}
|
|
313
|
+
*/
|
|
314
|
+
static fromDurationLike(durationLike) {
|
|
315
|
+
if (isNumber(durationLike)) {
|
|
316
|
+
return Duration.fromMillis(durationLike);
|
|
317
|
+
} else if (Duration.isDuration(durationLike)) {
|
|
318
|
+
return durationLike;
|
|
319
|
+
} else if (typeof durationLike === "object") {
|
|
320
|
+
return Duration.fromObject(durationLike);
|
|
321
|
+
} else {
|
|
322
|
+
throw new InvalidArgumentError(
|
|
323
|
+
`Unknown duration argument ${durationLike} of type ${typeof durationLike}`
|
|
324
|
+
);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Create a Duration from an ISO 8601 duration string.
|
|
330
|
+
* @param {string} text - text to parse
|
|
331
|
+
* @param {Object} opts - options for parsing
|
|
332
|
+
* @param {string} [opts.locale='en-US'] - the locale to use
|
|
333
|
+
* @param {string} opts.numberingSystem - the numbering system to use
|
|
334
|
+
* @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use
|
|
335
|
+
* @param {string} [opts.matrix=Object] - the preset conversion system to use
|
|
336
|
+
* @see https://en.wikipedia.org/wiki/ISO_8601#Durations
|
|
337
|
+
* @example Duration.fromISO('P3Y6M1W4DT12H30M5S').toObject() //=> { years: 3, months: 6, weeks: 1, days: 4, hours: 12, minutes: 30, seconds: 5 }
|
|
338
|
+
* @example Duration.fromISO('PT23H').toObject() //=> { hours: 23 }
|
|
339
|
+
* @example Duration.fromISO('P5Y3M').toObject() //=> { years: 5, months: 3 }
|
|
340
|
+
* @return {Duration}
|
|
341
|
+
*/
|
|
342
|
+
static fromISO(text, opts) {
|
|
343
|
+
const [parsed] = parseISODuration(text);
|
|
344
|
+
if (parsed) {
|
|
345
|
+
return Duration.fromObject(parsed, opts);
|
|
346
|
+
} else {
|
|
347
|
+
return Duration.invalid("unparsable", `the input "${text}" can't be parsed as ISO 8601`);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Create a Duration from an ISO 8601 time string.
|
|
353
|
+
* @param {string} text - text to parse
|
|
354
|
+
* @param {Object} opts - options for parsing
|
|
355
|
+
* @param {string} [opts.locale='en-US'] - the locale to use
|
|
356
|
+
* @param {string} opts.numberingSystem - the numbering system to use
|
|
357
|
+
* @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use
|
|
358
|
+
* @param {string} [opts.matrix=Object] - the conversion system to use
|
|
359
|
+
* @see https://en.wikipedia.org/wiki/ISO_8601#Times
|
|
360
|
+
* @example Duration.fromISOTime('11:22:33.444').toObject() //=> { hours: 11, minutes: 22, seconds: 33, milliseconds: 444 }
|
|
361
|
+
* @example Duration.fromISOTime('11:00').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }
|
|
362
|
+
* @example Duration.fromISOTime('T11:00').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }
|
|
363
|
+
* @example Duration.fromISOTime('1100').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }
|
|
364
|
+
* @example Duration.fromISOTime('T1100').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }
|
|
365
|
+
* @return {Duration}
|
|
366
|
+
*/
|
|
367
|
+
static fromISOTime(text, opts) {
|
|
368
|
+
const [parsed] = parseISOTimeOnly(text);
|
|
369
|
+
if (parsed) {
|
|
370
|
+
return Duration.fromObject(parsed, opts);
|
|
371
|
+
} else {
|
|
372
|
+
return Duration.invalid("unparsable", `the input "${text}" can't be parsed as ISO 8601`);
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Create an invalid Duration.
|
|
378
|
+
* @param {string} reason - simple string of why this datetime is invalid. Should not contain parameters or anything else data-dependent
|
|
379
|
+
* @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information
|
|
380
|
+
* @return {Duration}
|
|
381
|
+
*/
|
|
382
|
+
static invalid(reason, explanation = null) {
|
|
383
|
+
if (!reason) {
|
|
384
|
+
throw new InvalidArgumentError("need to specify a reason the Duration is invalid");
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);
|
|
388
|
+
|
|
389
|
+
if (Settings.throwOnInvalid) {
|
|
390
|
+
throw new InvalidDurationError(invalid);
|
|
391
|
+
} else {
|
|
392
|
+
return new Duration({ invalid });
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* @private
|
|
398
|
+
*/
|
|
399
|
+
static normalizeUnit(unit) {
|
|
400
|
+
const normalized = {
|
|
401
|
+
year: "years",
|
|
402
|
+
years: "years",
|
|
403
|
+
quarter: "quarters",
|
|
404
|
+
quarters: "quarters",
|
|
405
|
+
month: "months",
|
|
406
|
+
months: "months",
|
|
407
|
+
week: "weeks",
|
|
408
|
+
weeks: "weeks",
|
|
409
|
+
day: "days",
|
|
410
|
+
days: "days",
|
|
411
|
+
hour: "hours",
|
|
412
|
+
hours: "hours",
|
|
413
|
+
minute: "minutes",
|
|
414
|
+
minutes: "minutes",
|
|
415
|
+
second: "seconds",
|
|
416
|
+
seconds: "seconds",
|
|
417
|
+
millisecond: "milliseconds",
|
|
418
|
+
milliseconds: "milliseconds",
|
|
419
|
+
}[unit ? unit.toLowerCase() : unit];
|
|
420
|
+
|
|
421
|
+
if (!normalized) throw new InvalidUnitError(unit);
|
|
422
|
+
|
|
423
|
+
return normalized;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Check if an object is a Duration. Works across context boundaries
|
|
428
|
+
* @param {object} o
|
|
429
|
+
* @return {boolean}
|
|
430
|
+
*/
|
|
431
|
+
static isDuration(o) {
|
|
432
|
+
return (o && o.isLuxonDuration) || false;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* Get the locale of a Duration, such 'en-GB'
|
|
437
|
+
* @type {string}
|
|
438
|
+
*/
|
|
439
|
+
get locale() {
|
|
440
|
+
return this.isValid ? this.loc.locale : null;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Get the numbering system of a Duration, such 'beng'. The numbering system is used when formatting the Duration
|
|
445
|
+
*
|
|
446
|
+
* @type {string}
|
|
447
|
+
*/
|
|
448
|
+
get numberingSystem() {
|
|
449
|
+
return this.isValid ? this.loc.numberingSystem : null;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Returns a string representation of this Duration formatted according to the specified format string. You may use these tokens:
|
|
454
|
+
* * `S` for milliseconds
|
|
455
|
+
* * `s` for seconds
|
|
456
|
+
* * `m` for minutes
|
|
457
|
+
* * `h` for hours
|
|
458
|
+
* * `d` for days
|
|
459
|
+
* * `w` for weeks
|
|
460
|
+
* * `M` for months
|
|
461
|
+
* * `y` for years
|
|
462
|
+
* Notes:
|
|
463
|
+
* * Add padding by repeating the token, e.g. "yy" pads the years to two digits, "hhhh" pads the hours out to four digits
|
|
464
|
+
* * Tokens can be escaped by wrapping with single quotes.
|
|
465
|
+
* * The duration will be converted to the set of units in the format string using {@link Duration#shiftTo} and the Durations's conversion accuracy setting.
|
|
466
|
+
* @param {string} fmt - the format string
|
|
467
|
+
* @param {Object} opts - options
|
|
468
|
+
* @param {boolean} [opts.floor=true] - floor numerical values
|
|
469
|
+
* @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat("y d s") //=> "1 6 2"
|
|
470
|
+
* @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat("yy dd sss") //=> "01 06 002"
|
|
471
|
+
* @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat("M S") //=> "12 518402000"
|
|
472
|
+
* @return {string}
|
|
473
|
+
*/
|
|
474
|
+
toFormat(fmt, opts = {}) {
|
|
475
|
+
// reverse-compat since 1.2; we always round down now, never up, and we do it by default
|
|
476
|
+
const fmtOpts = {
|
|
477
|
+
...opts,
|
|
478
|
+
floor: opts.round !== false && opts.floor !== false,
|
|
479
|
+
};
|
|
480
|
+
return this.isValid
|
|
481
|
+
? Formatter.create(this.loc, fmtOpts).formatDurationFromString(this, fmt)
|
|
482
|
+
: INVALID;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Returns a string representation of a Duration with all units included.
|
|
487
|
+
* To modify its behavior, use `listStyle` and any Intl.NumberFormat option, though `unitDisplay` is especially relevant.
|
|
488
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#options
|
|
489
|
+
* @param {Object} opts - Formatting options. Accepts the same keys as the options parameter of the native `Intl.NumberFormat` constructor, as well as `listStyle`.
|
|
490
|
+
* @param {string} [opts.listStyle='narrow'] - How to format the merged list. Corresponds to the `style` property of the options parameter of the native `Intl.ListFormat` constructor.
|
|
491
|
+
* @example
|
|
492
|
+
* ```js
|
|
493
|
+
* var dur = Duration.fromObject({ days: 1, hours: 5, minutes: 6 })
|
|
494
|
+
* dur.toHuman() //=> '1 day, 5 hours, 6 minutes'
|
|
495
|
+
* dur.toHuman({ listStyle: "long" }) //=> '1 day, 5 hours, and 6 minutes'
|
|
496
|
+
* dur.toHuman({ unitDisplay: "short" }) //=> '1 day, 5 hr, 6 min'
|
|
497
|
+
* ```
|
|
498
|
+
*/
|
|
499
|
+
toHuman(opts = {}) {
|
|
500
|
+
if (!this.isValid) return INVALID;
|
|
501
|
+
|
|
502
|
+
const l = orderedUnits
|
|
503
|
+
.map((unit) => {
|
|
504
|
+
const val = this.values[unit];
|
|
505
|
+
if (isUndefined(val)) {
|
|
506
|
+
return null;
|
|
507
|
+
}
|
|
508
|
+
return this.loc
|
|
509
|
+
.numberFormatter({ style: "unit", unitDisplay: "long", ...opts, unit: unit.slice(0, -1) })
|
|
510
|
+
.format(val);
|
|
511
|
+
})
|
|
512
|
+
.filter((n) => n);
|
|
513
|
+
|
|
514
|
+
return this.loc
|
|
515
|
+
.listFormatter({ type: "conjunction", style: opts.listStyle || "narrow", ...opts })
|
|
516
|
+
.format(l);
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* Returns a JavaScript object with this Duration's values.
|
|
521
|
+
* @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toObject() //=> { years: 1, days: 6, seconds: 2 }
|
|
522
|
+
* @return {Object}
|
|
523
|
+
*/
|
|
524
|
+
toObject() {
|
|
525
|
+
if (!this.isValid) return {};
|
|
526
|
+
return { ...this.values };
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Returns an ISO 8601-compliant string representation of this Duration.
|
|
531
|
+
* @see https://en.wikipedia.org/wiki/ISO_8601#Durations
|
|
532
|
+
* @example Duration.fromObject({ years: 3, seconds: 45 }).toISO() //=> 'P3YT45S'
|
|
533
|
+
* @example Duration.fromObject({ months: 4, seconds: 45 }).toISO() //=> 'P4MT45S'
|
|
534
|
+
* @example Duration.fromObject({ months: 5 }).toISO() //=> 'P5M'
|
|
535
|
+
* @example Duration.fromObject({ minutes: 5 }).toISO() //=> 'PT5M'
|
|
536
|
+
* @example Duration.fromObject({ milliseconds: 6 }).toISO() //=> 'PT0.006S'
|
|
537
|
+
* @return {string}
|
|
538
|
+
*/
|
|
539
|
+
toISO() {
|
|
540
|
+
// we could use the formatter, but this is an easier way to get the minimum string
|
|
541
|
+
if (!this.isValid) return null;
|
|
542
|
+
|
|
543
|
+
let s = "P";
|
|
544
|
+
if (this.years !== 0) s += this.years + "Y";
|
|
545
|
+
if (this.months !== 0 || this.quarters !== 0) s += this.months + this.quarters * 3 + "M";
|
|
546
|
+
if (this.weeks !== 0) s += this.weeks + "W";
|
|
547
|
+
if (this.days !== 0) s += this.days + "D";
|
|
548
|
+
if (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0)
|
|
549
|
+
s += "T";
|
|
550
|
+
if (this.hours !== 0) s += this.hours + "H";
|
|
551
|
+
if (this.minutes !== 0) s += this.minutes + "M";
|
|
552
|
+
if (this.seconds !== 0 || this.milliseconds !== 0)
|
|
553
|
+
// this will handle "floating point madness" by removing extra decimal places
|
|
554
|
+
// https://stackoverflow.com/questions/588004/is-floating-point-math-broken
|
|
555
|
+
s += roundTo(this.seconds + this.milliseconds / 1000, 3) + "S";
|
|
556
|
+
if (s === "P") s += "T0S";
|
|
557
|
+
return s;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Returns an ISO 8601-compliant string representation of this Duration, formatted as a time of day.
|
|
562
|
+
* Note that this will return null if the duration is invalid, negative, or equal to or greater than 24 hours.
|
|
563
|
+
* @see https://en.wikipedia.org/wiki/ISO_8601#Times
|
|
564
|
+
* @param {Object} opts - options
|
|
565
|
+
* @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0
|
|
566
|
+
* @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0
|
|
567
|
+
* @param {boolean} [opts.includePrefix=false] - include the `T` prefix
|
|
568
|
+
* @param {string} [opts.format='extended'] - choose between the basic and extended format
|
|
569
|
+
* @example Duration.fromObject({ hours: 11 }).toISOTime() //=> '11:00:00.000'
|
|
570
|
+
* @example Duration.fromObject({ hours: 11 }).toISOTime({ suppressMilliseconds: true }) //=> '11:00:00'
|
|
571
|
+
* @example Duration.fromObject({ hours: 11 }).toISOTime({ suppressSeconds: true }) //=> '11:00'
|
|
572
|
+
* @example Duration.fromObject({ hours: 11 }).toISOTime({ includePrefix: true }) //=> 'T11:00:00.000'
|
|
573
|
+
* @example Duration.fromObject({ hours: 11 }).toISOTime({ format: 'basic' }) //=> '110000.000'
|
|
574
|
+
* @return {string}
|
|
575
|
+
*/
|
|
576
|
+
toISOTime(opts = {}) {
|
|
577
|
+
if (!this.isValid) return null;
|
|
578
|
+
|
|
579
|
+
const millis = this.toMillis();
|
|
580
|
+
if (millis < 0 || millis >= 86400000) return null;
|
|
581
|
+
|
|
582
|
+
opts = {
|
|
583
|
+
suppressMilliseconds: false,
|
|
584
|
+
suppressSeconds: false,
|
|
585
|
+
includePrefix: false,
|
|
586
|
+
format: "extended",
|
|
587
|
+
...opts,
|
|
588
|
+
includeOffset: false,
|
|
589
|
+
};
|
|
590
|
+
|
|
591
|
+
const dateTime = DateTime.fromMillis(millis, { zone: "UTC" });
|
|
592
|
+
return dateTime.toISOTime(opts);
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* Returns an ISO 8601 representation of this Duration appropriate for use in JSON.
|
|
597
|
+
* @return {string}
|
|
598
|
+
*/
|
|
599
|
+
toJSON() {
|
|
600
|
+
return this.toISO();
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* Returns an ISO 8601 representation of this Duration appropriate for use in debugging.
|
|
605
|
+
* @return {string}
|
|
606
|
+
*/
|
|
607
|
+
toString() {
|
|
608
|
+
return this.toISO();
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* Returns a string representation of this Duration appropriate for the REPL.
|
|
613
|
+
* @return {string}
|
|
614
|
+
*/
|
|
615
|
+
[Symbol.for("nodejs.util.inspect.custom")]() {
|
|
616
|
+
if (this.isValid) {
|
|
617
|
+
return `Duration { values: ${JSON.stringify(this.values)} }`;
|
|
618
|
+
} else {
|
|
619
|
+
return `Duration { Invalid, reason: ${this.invalidReason} }`;
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* Returns an milliseconds value of this Duration.
|
|
625
|
+
* @return {number}
|
|
626
|
+
*/
|
|
627
|
+
toMillis() {
|
|
628
|
+
if (!this.isValid) return NaN;
|
|
629
|
+
|
|
630
|
+
return durationToMillis(this.matrix, this.values);
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* Returns an milliseconds value of this Duration. Alias of {@link toMillis}
|
|
635
|
+
* @return {number}
|
|
636
|
+
*/
|
|
637
|
+
valueOf() {
|
|
638
|
+
return this.toMillis();
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
/**
|
|
642
|
+
* Make this Duration longer by the specified amount. Return a newly-constructed Duration.
|
|
643
|
+
* @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()
|
|
644
|
+
* @return {Duration}
|
|
645
|
+
*/
|
|
646
|
+
plus(duration) {
|
|
647
|
+
if (!this.isValid) return this;
|
|
648
|
+
|
|
649
|
+
const dur = Duration.fromDurationLike(duration),
|
|
650
|
+
result = {};
|
|
651
|
+
|
|
652
|
+
for (const k of orderedUnits) {
|
|
653
|
+
if (hasOwnProperty(dur.values, k) || hasOwnProperty(this.values, k)) {
|
|
654
|
+
result[k] = dur.get(k) + this.get(k);
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
return clone(this, { values: result }, true);
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* Make this Duration shorter by the specified amount. Return a newly-constructed Duration.
|
|
663
|
+
* @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()
|
|
664
|
+
* @return {Duration}
|
|
665
|
+
*/
|
|
666
|
+
minus(duration) {
|
|
667
|
+
if (!this.isValid) return this;
|
|
668
|
+
|
|
669
|
+
const dur = Duration.fromDurationLike(duration);
|
|
670
|
+
return this.plus(dur.negate());
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* Scale this Duration by the specified amount. Return a newly-constructed Duration.
|
|
675
|
+
* @param {function} fn - The function to apply to each unit. Arity is 1 or 2: the value of the unit and, optionally, the unit name. Must return a number.
|
|
676
|
+
* @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits(x => x * 2) //=> { hours: 2, minutes: 60 }
|
|
677
|
+
* @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits((x, u) => u === "hours" ? x * 2 : x) //=> { hours: 2, minutes: 30 }
|
|
678
|
+
* @return {Duration}
|
|
679
|
+
*/
|
|
680
|
+
mapUnits(fn) {
|
|
681
|
+
if (!this.isValid) return this;
|
|
682
|
+
const result = {};
|
|
683
|
+
for (const k of Object.keys(this.values)) {
|
|
684
|
+
result[k] = asNumber(fn(this.values[k], k));
|
|
685
|
+
}
|
|
686
|
+
return clone(this, { values: result }, true);
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* Get the value of unit.
|
|
691
|
+
* @param {string} unit - a unit such as 'minute' or 'day'
|
|
692
|
+
* @example Duration.fromObject({years: 2, days: 3}).get('years') //=> 2
|
|
693
|
+
* @example Duration.fromObject({years: 2, days: 3}).get('months') //=> 0
|
|
694
|
+
* @example Duration.fromObject({years: 2, days: 3}).get('days') //=> 3
|
|
695
|
+
* @return {number}
|
|
696
|
+
*/
|
|
697
|
+
get(unit) {
|
|
698
|
+
return this[Duration.normalizeUnit(unit)];
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* "Set" the values of specified units. Return a newly-constructed Duration.
|
|
703
|
+
* @param {Object} values - a mapping of units to numbers
|
|
704
|
+
* @example dur.set({ years: 2017 })
|
|
705
|
+
* @example dur.set({ hours: 8, minutes: 30 })
|
|
706
|
+
* @return {Duration}
|
|
707
|
+
*/
|
|
708
|
+
set(values) {
|
|
709
|
+
if (!this.isValid) return this;
|
|
710
|
+
|
|
711
|
+
const mixed = { ...this.values, ...normalizeObject(values, Duration.normalizeUnit) };
|
|
712
|
+
return clone(this, { values: mixed });
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* "Set" the locale and/or numberingSystem. Returns a newly-constructed Duration.
|
|
717
|
+
* @example dur.reconfigure({ locale: 'en-GB' })
|
|
718
|
+
* @return {Duration}
|
|
719
|
+
*/
|
|
720
|
+
reconfigure({ locale, numberingSystem, conversionAccuracy, matrix } = {}) {
|
|
721
|
+
const loc = this.loc.clone({ locale, numberingSystem });
|
|
722
|
+
const opts = { loc, matrix, conversionAccuracy };
|
|
723
|
+
return clone(this, opts);
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* Return the length of the duration in the specified unit.
|
|
728
|
+
* @param {string} unit - a unit such as 'minutes' or 'days'
|
|
729
|
+
* @example Duration.fromObject({years: 1}).as('days') //=> 365
|
|
730
|
+
* @example Duration.fromObject({years: 1}).as('months') //=> 12
|
|
731
|
+
* @example Duration.fromObject({hours: 60}).as('days') //=> 2.5
|
|
732
|
+
* @return {number}
|
|
733
|
+
*/
|
|
734
|
+
as(unit) {
|
|
735
|
+
return this.isValid ? this.shiftTo(unit).get(unit) : NaN;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* Reduce this Duration to its canonical representation in its current units.
|
|
740
|
+
* Assuming the overall value of the Duration is positive, this means:
|
|
741
|
+
* - excessive values for lower-order units are converted to higher-order units (if possible, see first and second example)
|
|
742
|
+
* - negative lower-order units are converted to higher order units (there must be such a higher order unit, otherwise
|
|
743
|
+
* the overall value would be negative, see third example)
|
|
744
|
+
* - fractional values for higher-order units are converted to lower-order units (if possible, see fourth example)
|
|
745
|
+
*
|
|
746
|
+
* If the overall value is negative, the result of this method is equivalent to `this.negate().normalize().negate()`.
|
|
747
|
+
* @example Duration.fromObject({ years: 2, days: 5000 }).normalize().toObject() //=> { years: 15, days: 255 }
|
|
748
|
+
* @example Duration.fromObject({ days: 5000 }).normalize().toObject() //=> { days: 5000 }
|
|
749
|
+
* @example Duration.fromObject({ hours: 12, minutes: -45 }).normalize().toObject() //=> { hours: 11, minutes: 15 }
|
|
750
|
+
* @example Duration.fromObject({ years: 2.5, days: 0, hours: 0 }).normalize().toObject() //=> { years: 2, days: 182, hours: 12 }
|
|
751
|
+
* @return {Duration}
|
|
752
|
+
*/
|
|
753
|
+
normalize() {
|
|
754
|
+
if (!this.isValid) return this;
|
|
755
|
+
const vals = this.toObject();
|
|
756
|
+
normalizeValues(this.matrix, vals);
|
|
757
|
+
return clone(this, { values: vals }, true);
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* Rescale units to its largest representation
|
|
762
|
+
* @example Duration.fromObject({ milliseconds: 90000 }).rescale().toObject() //=> { minutes: 1, seconds: 30 }
|
|
763
|
+
* @return {Duration}
|
|
764
|
+
*/
|
|
765
|
+
rescale() {
|
|
766
|
+
if (!this.isValid) return this;
|
|
767
|
+
const vals = removeZeroes(this.normalize().shiftToAll().toObject());
|
|
768
|
+
return clone(this, { values: vals }, true);
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* Convert this Duration into its representation in a different set of units.
|
|
773
|
+
* @example Duration.fromObject({ hours: 1, seconds: 30 }).shiftTo('minutes', 'milliseconds').toObject() //=> { minutes: 60, milliseconds: 30000 }
|
|
774
|
+
* @return {Duration}
|
|
775
|
+
*/
|
|
776
|
+
shiftTo(...units) {
|
|
777
|
+
if (!this.isValid) return this;
|
|
778
|
+
|
|
779
|
+
if (units.length === 0) {
|
|
780
|
+
return this;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
units = units.map((u) => Duration.normalizeUnit(u));
|
|
784
|
+
|
|
785
|
+
const built = {},
|
|
786
|
+
accumulated = {},
|
|
787
|
+
vals = this.toObject();
|
|
788
|
+
let lastUnit;
|
|
789
|
+
|
|
790
|
+
for (const k of orderedUnits) {
|
|
791
|
+
if (units.indexOf(k) >= 0) {
|
|
792
|
+
lastUnit = k;
|
|
793
|
+
|
|
794
|
+
let own = 0;
|
|
795
|
+
|
|
796
|
+
// anything we haven't boiled down yet should get boiled to this unit
|
|
797
|
+
for (const ak in accumulated) {
|
|
798
|
+
own += this.matrix[ak][k] * accumulated[ak];
|
|
799
|
+
accumulated[ak] = 0;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
// plus anything that's already in this unit
|
|
803
|
+
if (isNumber(vals[k])) {
|
|
804
|
+
own += vals[k];
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
// only keep the integer part for now in the hopes of putting any decimal part
|
|
808
|
+
// into a smaller unit later
|
|
809
|
+
const i = Math.trunc(own);
|
|
810
|
+
built[k] = i;
|
|
811
|
+
accumulated[k] = (own * 1000 - i * 1000) / 1000;
|
|
812
|
+
|
|
813
|
+
// otherwise, keep it in the wings to boil it later
|
|
814
|
+
} else if (isNumber(vals[k])) {
|
|
815
|
+
accumulated[k] = vals[k];
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
// anything leftover becomes the decimal for the last unit
|
|
820
|
+
// lastUnit must be defined since units is not empty
|
|
821
|
+
for (const key in accumulated) {
|
|
822
|
+
if (accumulated[key] !== 0) {
|
|
823
|
+
built[lastUnit] +=
|
|
824
|
+
key === lastUnit ? accumulated[key] : accumulated[key] / this.matrix[lastUnit][key];
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
normalizeValues(this.matrix, built);
|
|
829
|
+
return clone(this, { values: built }, true);
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
/**
|
|
833
|
+
* Shift this Duration to all available units.
|
|
834
|
+
* Same as shiftTo("years", "months", "weeks", "days", "hours", "minutes", "seconds", "milliseconds")
|
|
835
|
+
* @return {Duration}
|
|
836
|
+
*/
|
|
837
|
+
shiftToAll() {
|
|
838
|
+
if (!this.isValid) return this;
|
|
839
|
+
return this.shiftTo(
|
|
840
|
+
"years",
|
|
841
|
+
"months",
|
|
842
|
+
"weeks",
|
|
843
|
+
"days",
|
|
844
|
+
"hours",
|
|
845
|
+
"minutes",
|
|
846
|
+
"seconds",
|
|
847
|
+
"milliseconds"
|
|
848
|
+
);
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
/**
|
|
852
|
+
* Return the negative of this Duration.
|
|
853
|
+
* @example Duration.fromObject({ hours: 1, seconds: 30 }).negate().toObject() //=> { hours: -1, seconds: -30 }
|
|
854
|
+
* @return {Duration}
|
|
855
|
+
*/
|
|
856
|
+
negate() {
|
|
857
|
+
if (!this.isValid) return this;
|
|
858
|
+
const negated = {};
|
|
859
|
+
for (const k of Object.keys(this.values)) {
|
|
860
|
+
negated[k] = this.values[k] === 0 ? 0 : -this.values[k];
|
|
861
|
+
}
|
|
862
|
+
return clone(this, { values: negated }, true);
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
/**
|
|
866
|
+
* Get the years.
|
|
867
|
+
* @type {number}
|
|
868
|
+
*/
|
|
869
|
+
get years() {
|
|
870
|
+
return this.isValid ? this.values.years || 0 : NaN;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
/**
|
|
874
|
+
* Get the quarters.
|
|
875
|
+
* @type {number}
|
|
876
|
+
*/
|
|
877
|
+
get quarters() {
|
|
878
|
+
return this.isValid ? this.values.quarters || 0 : NaN;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
/**
|
|
882
|
+
* Get the months.
|
|
883
|
+
* @type {number}
|
|
884
|
+
*/
|
|
885
|
+
get months() {
|
|
886
|
+
return this.isValid ? this.values.months || 0 : NaN;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
/**
|
|
890
|
+
* Get the weeks
|
|
891
|
+
* @type {number}
|
|
892
|
+
*/
|
|
893
|
+
get weeks() {
|
|
894
|
+
return this.isValid ? this.values.weeks || 0 : NaN;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
/**
|
|
898
|
+
* Get the days.
|
|
899
|
+
* @type {number}
|
|
900
|
+
*/
|
|
901
|
+
get days() {
|
|
902
|
+
return this.isValid ? this.values.days || 0 : NaN;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
/**
|
|
906
|
+
* Get the hours.
|
|
907
|
+
* @type {number}
|
|
908
|
+
*/
|
|
909
|
+
get hours() {
|
|
910
|
+
return this.isValid ? this.values.hours || 0 : NaN;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
/**
|
|
914
|
+
* Get the minutes.
|
|
915
|
+
* @type {number}
|
|
916
|
+
*/
|
|
917
|
+
get minutes() {
|
|
918
|
+
return this.isValid ? this.values.minutes || 0 : NaN;
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* Get the seconds.
|
|
923
|
+
* @return {number}
|
|
924
|
+
*/
|
|
925
|
+
get seconds() {
|
|
926
|
+
return this.isValid ? this.values.seconds || 0 : NaN;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
/**
|
|
930
|
+
* Get the milliseconds.
|
|
931
|
+
* @return {number}
|
|
932
|
+
*/
|
|
933
|
+
get milliseconds() {
|
|
934
|
+
return this.isValid ? this.values.milliseconds || 0 : NaN;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* Returns whether the Duration is invalid. Invalid durations are returned by diff operations
|
|
939
|
+
* on invalid DateTimes or Intervals.
|
|
940
|
+
* @return {boolean}
|
|
941
|
+
*/
|
|
942
|
+
get isValid() {
|
|
943
|
+
return this.invalid === null;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* Returns an error code if this Duration became invalid, or null if the Duration is valid
|
|
948
|
+
* @return {string}
|
|
949
|
+
*/
|
|
950
|
+
get invalidReason() {
|
|
951
|
+
return this.invalid ? this.invalid.reason : null;
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
/**
|
|
955
|
+
* Returns an explanation of why this Duration became invalid, or null if the Duration is valid
|
|
956
|
+
* @type {string}
|
|
957
|
+
*/
|
|
958
|
+
get invalidExplanation() {
|
|
959
|
+
return this.invalid ? this.invalid.explanation : null;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
/**
|
|
963
|
+
* Equality check
|
|
964
|
+
* Two Durations are equal iff they have the same units and the same values for each unit.
|
|
965
|
+
* @param {Duration} other
|
|
966
|
+
* @return {boolean}
|
|
967
|
+
*/
|
|
968
|
+
equals(other) {
|
|
969
|
+
if (!this.isValid || !other.isValid) {
|
|
970
|
+
return false;
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
if (!this.loc.equals(other.loc)) {
|
|
974
|
+
return false;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
function eq(v1, v2) {
|
|
978
|
+
// Consider 0 and undefined as equal
|
|
979
|
+
if (v1 === undefined || v1 === 0) return v2 === undefined || v2 === 0;
|
|
980
|
+
return v1 === v2;
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
for (const u of orderedUnits) {
|
|
984
|
+
if (!eq(this.values[u], other.values[u])) {
|
|
985
|
+
return false;
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
return true;
|
|
989
|
+
}
|
|
990
|
+
}
|