honeycombatomiclib 0.0.8 → 0.0.9

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.
Files changed (33) hide show
  1. package/dist/components/atoms/misc/BeeAvatar.d.ts +18 -11
  2. package/dist/components/atoms/misc/BeeAvatar.d.ts.map +1 -1
  3. package/dist/components/atoms/misc/BeeLoadingSpinner.d.ts +2 -1
  4. package/dist/components/atoms/misc/BeeLoadingSpinner.d.ts.map +1 -1
  5. package/dist/components/atoms/navigation/BeeScrollToTop.d.ts +7 -0
  6. package/dist/components/atoms/navigation/BeeScrollToTop.d.ts.map +1 -0
  7. package/dist/components/atoms/navigation/index.d.ts +1 -0
  8. package/dist/components/atoms/navigation/index.d.ts.map +1 -1
  9. package/dist/components/molecules/misc/BeeChatMessage.d.ts +65 -0
  10. package/dist/components/molecules/misc/BeeChatMessage.d.ts.map +1 -0
  11. package/dist/components/molecules/misc/BeeServerStatusInput.d.ts +28 -0
  12. package/dist/components/molecules/misc/BeeServerStatusInput.d.ts.map +1 -0
  13. package/dist/components/molecules/misc/index.d.ts +2 -0
  14. package/dist/components/molecules/misc/index.d.ts.map +1 -1
  15. package/dist/components/organisms/forms/BeeAddressForm.d.ts +40 -0
  16. package/dist/components/organisms/forms/BeeAddressForm.d.ts.map +1 -0
  17. package/dist/components/organisms/forms/index.d.ts +1 -1
  18. package/dist/components/organisms/forms/index.d.ts.map +1 -1
  19. package/dist/components/organisms/misc/BeeChatRoom.d.ts +24 -0
  20. package/dist/components/organisms/misc/BeeChatRoom.d.ts.map +1 -0
  21. package/dist/components/organisms/misc/BeeChatWindow.d.ts +25 -0
  22. package/dist/components/organisms/misc/BeeChatWindow.d.ts.map +1 -0
  23. package/dist/components/organisms/misc/BeeErrorComponent.d.ts +13 -0
  24. package/dist/components/organisms/misc/BeeErrorComponent.d.ts.map +1 -0
  25. package/dist/components/organisms/misc/index.d.ts +3 -0
  26. package/dist/components/organisms/misc/index.d.ts.map +1 -1
  27. package/dist/index.css +2 -2
  28. package/dist/index.d.ts +200 -37
  29. package/dist/index.js +10 -9
  30. package/dist/index.js.map +1 -1
  31. package/dist/index.mjs +10 -8
  32. package/dist/index.mjs.map +1 -1
  33. package/package.json +4 -1
package/dist/index.d.ts CHANGED
@@ -594,15 +594,23 @@ type BeeArrowDiffProps = {
594
594
  declare function BeeArrowDiff({ id, className, value, tooltip, disabled, decimals, isRoot, locale, }: BeeArrowDiffProps): react_jsx_runtime.JSX.Element;
595
595
 
596
596
  type BeeAvatarProps = {
597
- id?: string | undefined;
598
- className?: string | undefined;
599
- src: string;
600
- alt?: string | undefined;
601
- size?: "xSmall" | "small" | "medium" | "large" | "xLarge" | undefined;
602
- href?: string | undefined;
603
- title?: string | undefined;
597
+ imageUrl?: string | undefined;
598
+ imageKey?: string;
599
+ imageAlt?: string;
600
+ isImageSecured?: boolean;
601
+ showPlaceholder: boolean;
602
+ placeholderFirstname?: string | null;
603
+ placeholderLastname?: string | null;
604
+ size: "xSmall" | "small" | "medium" | "large" | "xLarge";
605
+ showDelete: boolean;
606
+ readOnly?: boolean;
607
+ disabled?: boolean;
608
+ type: "light" | "primary" | "secondary";
609
+ onDelete?: () => void;
610
+ onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent> | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
611
+ onAdd?: (e: React.MouseEvent<HTMLDivElement, MouseEvent> | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
604
612
  };
605
- declare function BeeAvatar({ id, className, src, alt, size, href, title }: BeeAvatarProps): react_jsx_runtime.JSX.Element;
613
+ declare function BeeAvatar({ imageUrl, imageKey, imageAlt, isImageSecured, showPlaceholder, placeholderFirstname, placeholderLastname, size, type, showDelete, readOnly, disabled, onDelete, onClick, onAdd, }: BeeAvatarProps): react_jsx_runtime.JSX.Element;
606
614
 
607
615
  type BeeChipProps = {
608
616
  id?: string | undefined;
@@ -682,8 +690,9 @@ type BeeLoadingSpinnerProps = {
682
690
  strokeWidth?: string | undefined;
683
691
  animationDuration?: string | undefined;
684
692
  type?: "primary" | "secondary" | "mixed" | undefined;
693
+ size?: string | undefined;
685
694
  };
686
- declare function BeeLoadingSpinner({ id, className, strokeWidth, animationDuration, type, }: BeeLoadingSpinnerProps): react_jsx_runtime.JSX.Element;
695
+ declare function BeeLoadingSpinner({ id, className, strokeWidth, animationDuration, type, size, }: BeeLoadingSpinnerProps): react_jsx_runtime.JSX.Element;
687
696
 
688
697
  type BeeSkeletonProps = {
689
698
  id?: string | undefined;
@@ -768,6 +777,11 @@ type BeeBreadcrumbProps = {
768
777
  };
769
778
  declare function BeeBreadcrumb({ id, className, border, items, type, isLoading }: BeeBreadcrumbProps): react_jsx_runtime.JSX.Element;
770
779
 
780
+ type BeeScrollToTopProps = {
781
+ children: React.ReactNode;
782
+ };
783
+ declare function BeeScrollToTop({ children }: BeeScrollToTopProps): react_jsx_runtime.JSX.Element;
784
+
771
785
  type BeeTabviewTab = {
772
786
  title: string;
773
787
  disabled: boolean;
@@ -997,6 +1011,94 @@ type BeeAddEntryCardProps = {
997
1011
  };
998
1012
  declare function BeeAddEntryCard({ id, className, disabled, footer, onClick }: BeeAddEntryCardProps): react_jsx_runtime.JSX.Element;
999
1013
 
1014
+ declare enum ChatMessageSourceEnum {
1015
+ LC = "LC",
1016
+ AUDIT = "AUDIT"
1017
+ }
1018
+ declare enum ChatParticipantTypeEnum {
1019
+ ADMIN = "ADMIN",
1020
+ USER = "USER",
1021
+ SYSTEM = "SYSTEM"
1022
+ }
1023
+ type ChatMessageMediaDocument = {
1024
+ filename?: string;
1025
+ fileSize?: number;
1026
+ };
1027
+ type ChatMessageMediaImage = {
1028
+ filename?: string;
1029
+ fileSize?: number;
1030
+ };
1031
+ type ChatMessageMediaEntry = {
1032
+ document?: ChatMessageMediaDocument;
1033
+ image?: ChatMessageMediaImage;
1034
+ };
1035
+ type ChatMessageDTO = {
1036
+ id?: string;
1037
+ mediaId?: string;
1038
+ message?: string;
1039
+ createdAt?: string;
1040
+ deletedAt?: string;
1041
+ deletedBy?: string;
1042
+ type?: ChatParticipantTypeEnum;
1043
+ chatRoomId?: string;
1044
+ participantId?: string;
1045
+ source?: ChatMessageSourceEnum;
1046
+ };
1047
+ type ChatParticipantDTO = {
1048
+ id?: string;
1049
+ userId?: string;
1050
+ organisationId?: string;
1051
+ type?: ChatParticipantTypeEnum;
1052
+ name?: string;
1053
+ lastSeenMessageId?: string;
1054
+ lastActivity?: string;
1055
+ muteChat?: boolean;
1056
+ deletedAt?: string;
1057
+ deletedBy?: string;
1058
+ chatRoomId?: string;
1059
+ };
1060
+ type BeeChatMessageProps = {
1061
+ maxWindow?: boolean | undefined;
1062
+ msg?: ChatMessageDTO | undefined;
1063
+ participant?: ChatParticipantDTO | undefined;
1064
+ project?: ChatMessageSourceEnum | undefined;
1065
+ chatMsgSource?: ChatMessageSourceEnum | undefined;
1066
+ isCurrentUser?: boolean | undefined;
1067
+ showDeleteButton?: boolean | undefined;
1068
+ documentIconClass?: string | undefined;
1069
+ trashIconClass?: string | undefined;
1070
+ sourceAuditIconClass?: string | undefined;
1071
+ sourceLcIconClass?: string | undefined;
1072
+ onMsgDelete?: () => void;
1073
+ onDownload: () => void;
1074
+ };
1075
+ declare function BeeChatMessage({ maxWindow, msg, participant, project, chatMsgSource, isCurrentUser, showDeleteButton, documentIconClass, trashIconClass, sourceAuditIconClass, sourceLcIconClass, onMsgDelete, onDownload, }: BeeChatMessageProps): react_jsx_runtime.JSX.Element;
1076
+
1077
+ /** Server status for form fields (e.g. after save). */
1078
+ declare enum ServerStatus {
1079
+ SERVER_STATUS_LOADING = "loading",
1080
+ SERVER_STATUS_ERROR = "error",
1081
+ SERVER_STATUS_SUCCESS = "success",
1082
+ SERVER_STATUS_EXTERNAL_UPDATE = "externalUpdate"
1083
+ }
1084
+ type BeeServerStatusInputProps = {
1085
+ status?: ServerStatus | undefined;
1086
+ successIcon?: string | undefined;
1087
+ loadingIcon?: string | undefined;
1088
+ errorIcon?: string | undefined;
1089
+ externalChangeIcon?: string | undefined;
1090
+ hideIcons?: boolean | undefined;
1091
+ children?: React.ReactNode | undefined;
1092
+ /** Tooltip text for success state (default: "Änderung gespeichert") */
1093
+ successTooltip?: string | undefined;
1094
+ /** Tooltip text for error state (default: "Die Änderung konnte nicht gespeichert werden") */
1095
+ errorTooltip?: string | undefined;
1096
+ /** Tooltip text for external-update state (default: "Eine andere Person hat dieses Feld soeben bearbeitet") */
1097
+ externalChangeTooltip?: string | undefined;
1098
+ onResetStatus?: () => void;
1099
+ };
1100
+ declare function BeeServerStatusInput({ status, successIcon, loadingIcon, errorIcon, externalChangeIcon, hideIcons, children, onResetStatus, successTooltip, errorTooltip, externalChangeTooltip, }: BeeServerStatusInputProps): react_jsx_runtime.JSX.Element;
1101
+
1000
1102
  type BeeChangesChipIconData = {
1001
1103
  icon: string;
1002
1104
  value: number;
@@ -1420,34 +1522,95 @@ type BeeImageUploadDialogProps = {
1420
1522
  };
1421
1523
  declare function BeeImageUploadDialog({ id, className, type, visible, disabled, dropzoneTitle, dropzoneDescription, dropzoneAddLabel, dropzoneFormats, progressVisible, progressMessage, errorVisible, errorHeadline, errorDescription, cropShape, aspectWidth, aspectHeight, cropSize, maxOutputSize, showZoom, showRotation, controlsPosition, minZoom, maxZoom, zoomStep, zoomLabel, rotateLabel, onHide, onUpload, }: BeeImageUploadDialogProps): react_jsx_runtime.JSX.Element;
1422
1524
 
1423
- type Country = {
1424
- id?: string | undefined;
1425
- country: string;
1426
- poBox: string;
1427
- };
1428
- type Address = {
1429
- street: string;
1430
- streetNo: string;
1431
- poBox?: string;
1432
- zipCode: string;
1433
- city: string;
1434
- country: string;
1435
- };
1436
- type AlphaAdressFormProps = {
1437
- className?: string | undefined;
1438
- data?: Address | undefined;
1439
- countries: Country[];
1440
- errorStreet?: boolean | undefined;
1441
- errorStreetNo?: boolean | undefined;
1442
- errorPoBox?: boolean | undefined;
1443
- errorZipCode?: boolean | undefined;
1444
- errorCity?: boolean | undefined;
1445
- errorCountry?: boolean | undefined;
1525
+ type BeeAddressFormProps = {
1526
+ className?: string | undefined;
1446
1527
  disabled?: boolean | undefined;
1447
1528
  readOnly?: boolean | undefined;
1448
- onChangeAdress?: (address: Address) => void;
1449
- };
1450
- declare function AlphaAdressForm({ className, data, countries, errorStreet, errorStreetNo, errorPoBox, errorZipCode, errorCity, errorCountry, disabled, readOnly, onChangeAdress, }: AlphaAdressFormProps): react_jsx_runtime.JSX.Element;
1529
+ required?: boolean | undefined;
1530
+ countryOptions?: SelectItemOptionsType | undefined;
1531
+ regionOptions?: SelectItemOptionsType | undefined;
1532
+ countryOptionLabel?: string | undefined;
1533
+ regionOptionLabel?: string | undefined;
1534
+ street?: string | undefined;
1535
+ housenumber?: string | undefined;
1536
+ zip?: string | undefined;
1537
+ city?: string | undefined;
1538
+ country?: string | null | undefined;
1539
+ region?: string | null | undefined;
1540
+ isErrorStreet?: boolean | undefined;
1541
+ isErrorHousenumber?: boolean | undefined;
1542
+ isErrorZip?: boolean | undefined;
1543
+ isErrorCity?: boolean | undefined;
1544
+ isErrorCountry?: boolean | undefined;
1545
+ isErrorRegion?: boolean | undefined;
1546
+ onStreetChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
1547
+ onHousenumberChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
1548
+ onZipChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
1549
+ onCityChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
1550
+ onCountryChange?: (e: SelectItem) => void;
1551
+ onRegionChange?: (e: SelectItem) => void;
1552
+ onStreetFocusOut?: (e: React.FocusEvent<HTMLInputElement>) => void;
1553
+ onHousenumberFocusOut?: (e: React.FocusEvent<HTMLInputElement>) => void;
1554
+ onZipFocusOut?: (e: React.FocusEvent<HTMLInputElement>) => void;
1555
+ onCityFocusOut?: (e: React.FocusEvent<HTMLInputElement>) => void;
1556
+ onCountryFocusOut?: (e: SelectItem) => void;
1557
+ onRegionFocusOut?: (e: SelectItem) => void;
1558
+ };
1559
+ declare function BeeAddressForm({ disabled, readOnly, required, countryOptions, regionOptions, countryOptionLabel, regionOptionLabel, street, housenumber, zip, city, country, region, isErrorStreet, isErrorHousenumber, isErrorZip, isErrorCity, isErrorCountry, isErrorRegion, onStreetChange, onHousenumberChange, onZipChange, onCityChange, onCountryChange, onRegionChange, onStreetFocusOut, onHousenumberFocusOut, onZipFocusOut, onCityFocusOut, onCountryFocusOut, onRegionFocusOut, className, }: BeeAddressFormProps): react_jsx_runtime.JSX.Element;
1560
+
1561
+ type BeeChatRoomProps = {
1562
+ title?: string | undefined;
1563
+ readOnly?: boolean | undefined;
1564
+ chatRoomId?: string | undefined;
1565
+ project?: ChatMessageSourceEnum | undefined;
1566
+ currentUserId?: string | undefined;
1567
+ messages?: ChatMessageDTO[] | undefined;
1568
+ participants?: ChatParticipantDTO[] | undefined;
1569
+ showLoaderOldMsgs?: boolean | undefined;
1570
+ showLoaderNewMsgs?: boolean | undefined;
1571
+ disabled?: boolean | undefined;
1572
+ inputValue?: string | undefined;
1573
+ hasError?: boolean | undefined;
1574
+ onInputChange?: (value: string) => void;
1575
+ onDownloadFile?: (msg: ChatMessageDTO) => void;
1576
+ onMessageSubmit?: (text: string) => void;
1577
+ canDeleteMessage?: (msg: ChatMessageDTO) => boolean;
1578
+ onMsgDelete?: (roomId: string, participantId: string, messageId: string) => void;
1579
+ onRetry?: () => void;
1580
+ };
1581
+ declare function BeeChatRoom({ title, readOnly, chatRoomId, project, currentUserId, messages, participants, showLoaderOldMsgs, showLoaderNewMsgs, disabled, inputValue, hasError, onInputChange, onDownloadFile, onMessageSubmit, canDeleteMessage, onMsgDelete, onRetry, }: BeeChatRoomProps): react_jsx_runtime.JSX.Element;
1582
+
1583
+ type BeeChatWindowProps = {
1584
+ name?: string | undefined;
1585
+ messages?: ChatMessageDTO[] | undefined;
1586
+ participants?: ChatParticipantDTO[] | undefined;
1587
+ chatRoomId?: string | undefined;
1588
+ currentUserId?: string | undefined;
1589
+ readOnly?: boolean | undefined;
1590
+ disabled?: boolean | undefined;
1591
+ showLoaderOldMsgs?: boolean | undefined;
1592
+ showLoaderNewMsgs?: boolean | undefined;
1593
+ project?: ChatMessageSourceEnum | undefined;
1594
+ maxWindow?: boolean | undefined;
1595
+ inputValue?: string | undefined;
1596
+ onInputChange?: (value: string) => void;
1597
+ onMessageSubmit?: (text: string) => void;
1598
+ canDeleteMessage?: (msg: ChatMessageDTO) => boolean;
1599
+ onMsgDelete?: (roomId: string, participantId: string, messageId: string) => void;
1600
+ onDownloadFile?: (msg: ChatMessageDTO) => void;
1601
+ onDocumentUpload?: (file: unknown) => void;
1602
+ };
1603
+ declare function BeeChatWindow({ name, messages, participants, chatRoomId, currentUserId, readOnly, disabled, showLoaderOldMsgs, showLoaderNewMsgs, project, maxWindow, inputValue, onInputChange, onMessageSubmit, canDeleteMessage, onMsgDelete, onDownloadFile, }: BeeChatWindowProps): react_jsx_runtime.JSX.Element;
1604
+
1605
+ type BeeErrorComponentProps = {
1606
+ headline?: React.ReactNode | undefined;
1607
+ content?: React.ReactNode | undefined;
1608
+ btnText?: string | undefined;
1609
+ /** Lottie animation JSON (e.g. from a .json file). When not provided, a placeholder is shown. */
1610
+ animationData?: object | undefined;
1611
+ onClick?: () => void;
1612
+ };
1613
+ declare function BeeErrorComponent({ headline, content, btnText, animationData, onClick, }: BeeErrorComponentProps): react_jsx_runtime.JSX.Element;
1451
1614
 
1452
1615
  type ImageType = {
1453
1616
  id?: string;
@@ -1507,5 +1670,5 @@ type DocTableEntry = {
1507
1670
  };
1508
1671
  declare function BeeDocumentTable({ id, className, data, type, uploadLabel, readOnly, disabled, showDescription, showDownload, showDelete, enableBulkDownload, isBulkDownloadLoading, onDownloadAll, onDownload, onDelete, onUpload, }: BeeDocumentTableProps): react_jsx_runtime.JSX.Element;
1509
1672
 
1510
- export { BasicPriceChart, BeeAddEntryCard, AlphaAdressForm as BeeAdressForm, BeeArrowDiff, BeeAutocompleteDropdown, BeeAutocompleteTag, BeeAvatar, BeeBadge, BeeBreadcrumb, BeeButton, BeeChangesChip, BeeCheckbox, BeeCheckboxTriState, BeeChip, BeeChipArea, BeeChipDropdown, BeeChipInput, BeeColorSelect, BeeConfirmDialog, BeeContentHeadline, BeeContentParagraph, BeeCopyInput, BeeCurrencyInput, BeeCurrencySelect, BeeDateInput, BeeDateTimeInput, BeeDeletionDialog, BeeDivider, BeeDocumentTable, BeeDropDown, BeeErrorDialog, BeeFilterDropDown, BeeFilterSortSearch, BeeFilterTreeSelect, BeeFlatImageGallery, BeeGalleryImage, BeeIconBadgeButton, BeeIconButton, BeeImage$1 as BeeImage, BeeImageCard, _default as BeeImageCropper, BeeFlatImageGallery as BeeImageGallery, BeeImageSlider, BeeImageUploadDialog, BeeInfoDialog, BeeKnob, BeeLabel, BeeLink, BeeLinkButton, BeeLoadingBar, BeeLoadingSpinner, BeeMixButton, BeeNumberInput, BeeNumberSelect, BeeNutzungsartMix, BeeOutlinedButton, BeeOutlinedIconButton, BeePanel, BeePasswordInput, BeePercentageInput, BeePlaceholder, BeeSearchBar, BeeSelectButton, BeeSequencePosition, BeeShareBar, BeeSkeleton, BeeSkeletonList, BeeSlider, BeeSplitButton, BeeStarBar, BeeSwitch, BeeTabview, BeeTextArea, BeeTextInput, BeeTimeInput, BeeToolBarButton, BeeTreeSelect, BeeUploadDialog, BeeVisibleItemCount, ContractPotentialsChart, LvEditingStatusChart, LvInsightsChart };
1511
- export type { BeeImageCropperProps, BeeImageCropperRef, UploadFileType };
1673
+ export { BasicPriceChart, BeeAddEntryCard, BeeAddressForm, BeeArrowDiff, BeeAutocompleteDropdown, BeeAutocompleteTag, BeeAvatar, BeeBadge, BeeBreadcrumb, BeeButton, BeeChangesChip, BeeChatMessage, BeeChatRoom, BeeChatWindow, BeeCheckbox, BeeCheckboxTriState, BeeChip, BeeChipArea, BeeChipDropdown, BeeChipInput, BeeColorSelect, BeeConfirmDialog, BeeContentHeadline, BeeContentParagraph, BeeCopyInput, BeeCurrencyInput, BeeCurrencySelect, BeeDateInput, BeeDateTimeInput, BeeDeletionDialog, BeeDivider, BeeDocumentTable, BeeDropDown, BeeErrorComponent, BeeErrorDialog, BeeFilterDropDown, BeeFilterSortSearch, BeeFilterTreeSelect, BeeFlatImageGallery, BeeGalleryImage, BeeIconBadgeButton, BeeIconButton, BeeImage$1 as BeeImage, BeeImageCard, _default as BeeImageCropper, BeeFlatImageGallery as BeeImageGallery, BeeImageSlider, BeeImageUploadDialog, BeeInfoDialog, BeeKnob, BeeLabel, BeeLink, BeeLinkButton, BeeLoadingBar, BeeLoadingSpinner, BeeMixButton, BeeNumberInput, BeeNumberSelect, BeeNutzungsartMix, BeeOutlinedButton, BeeOutlinedIconButton, BeePanel, BeePasswordInput, BeePercentageInput, BeePlaceholder, BeeScrollToTop, BeeSearchBar, BeeSelectButton, BeeSequencePosition, BeeServerStatusInput, BeeShareBar, BeeSkeleton, BeeSkeletonList, BeeSlider, BeeSplitButton, BeeStarBar, BeeSwitch, BeeTabview, BeeTextArea, BeeTextInput, BeeTimeInput, BeeToolBarButton, BeeTreeSelect, BeeUploadDialog, BeeVisibleItemCount, ChatMessageSourceEnum, ChatParticipantTypeEnum, ContractPotentialsChart, LvEditingStatusChart, LvInsightsChart, ServerStatus };
1674
+ export type { BeeImageCropperProps, BeeImageCropperRef, ChatMessageDTO, ChatMessageMediaEntry, ChatParticipantDTO, UploadFileType };