@chayns-components/person-finder 5.0.61 → 5.0.62
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/lib/cjs/components/person-finder/person-finder-wrapper/person-finder-body/person-finder-group/PersonFinderGroup.js +8 -1
- package/lib/cjs/components/person-finder/person-finder-wrapper/person-finder-body/person-finder-group/PersonFinderGroup.js.map +1 -1
- package/lib/cjs/constants/textStrings.js +23 -0
- package/lib/cjs/constants/textStrings.js.map +1 -0
- package/lib/esm/components/person-finder/person-finder-wrapper/person-finder-body/person-finder-group/PersonFinderGroup.js +8 -1
- package/lib/esm/components/person-finder/person-finder-wrapper/person-finder-body/person-finder-group/PersonFinderGroup.js.map +1 -1
- package/lib/esm/constants/textStrings.js +17 -0
- package/lib/esm/constants/textStrings.js.map +1 -0
- package/lib/types/constants/textStrings.d.ts +17 -0
- package/package.json +4 -3
|
@@ -13,6 +13,8 @@ var _PersonFinderProvider = require("../../../../PersonFinderProvider");
|
|
|
13
13
|
var _PersonFinderItem = _interopRequireDefault(require("./person-finder-item/PersonFinderItem"));
|
|
14
14
|
var _personFinder3 = require("../../../../../hooks/personFinder");
|
|
15
15
|
var _PersonFinderSmallItem = _interopRequireDefault(require("./person-finder-small-item/PersonFinderSmallItem"));
|
|
16
|
+
var _textstring = require("@chayns-components/textstring");
|
|
17
|
+
var _textStrings = _interopRequireDefault(require("../../../../../constants/textStrings"));
|
|
16
18
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
18
20
|
const PersonFinderGroup = ({
|
|
@@ -51,6 +53,7 @@ const PersonFinderGroup = ({
|
|
|
51
53
|
event.preventDefault();
|
|
52
54
|
event.stopPropagation();
|
|
53
55
|
};
|
|
56
|
+
const ts = _textStrings.default.components.personFinder.wrapper.body.group;
|
|
54
57
|
return /*#__PURE__*/_react.default.createElement(_PersonFinderGroup.StyledPersonFinderGroup, {
|
|
55
58
|
onClick: handlePreventDefault
|
|
56
59
|
}, shouldShowGroupName && /*#__PURE__*/_react.default.createElement(_PersonFinderGroup.StyledPersonFinderGroupName, {
|
|
@@ -71,7 +74,11 @@ const PersonFinderGroup = ({
|
|
|
71
74
|
key: `more-button--${filterKey}`,
|
|
72
75
|
shouldShowWaitCursor: loadingState === _personFinder.LoadingState.Pending,
|
|
73
76
|
onClick: handleLoadMore
|
|
74
|
-
},
|
|
77
|
+
}, /*#__PURE__*/_react.default.createElement(_textstring.TextstringProvider, {
|
|
78
|
+
libraryName: "@chayns-components-person-finder"
|
|
79
|
+
}, /*#__PURE__*/_react.default.createElement(_textstring.Textstring, {
|
|
80
|
+
textstring: (0, _textstring.ttsToITextString)(ts.loadMore)
|
|
81
|
+
}), ' ', (0, _personFinder2.getGroupName)(filterKey)))));
|
|
75
82
|
};
|
|
76
83
|
PersonFinderGroup.displayName = 'PersonFinderGroup';
|
|
77
84
|
var _default = exports.default = PersonFinderGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PersonFinderGroup.js","names":["_react","_interopRequireWildcard","require","_core","_personFinder","_personFinder2","_PersonFinderGroup","_PersonFinderProvider","_PersonFinderItem","_interopRequireDefault","_personFinder3","_PersonFinderSmallItem","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","PersonFinderGroup","entries","filterKey","count","shouldShowGroupName","onAdd","onRemove","loadMore","loadingState","loadingStateFromState","search","usePersonFinder","areOnlyFriendsGiven","useOnlyFriends","PersonFinderFilterTypes","UAC","groupName","getGroupName","LoadingState","None","shouldShowLoadMoreButton","length","waitCursor","Pending","createElement","StyledPersonFinderGroupWaitCursor","SmallWaitCursor","shouldHideBackground","errorMessage","useErrorMessage","handleLoadMore","useCallback","handlePreventDefault","event","preventDefault","stopPropagation","StyledPersonFinderGroup","onClick","StyledPersonFinderGroupName","className","List","map","entry","id","key","StyledPersonFinderGroupButtonWrapper","Button","shouldShowWaitCursor","displayName","_default","exports"],"sources":["../../../../../../../src/components/person-finder/person-finder-wrapper/person-finder-body/person-finder-group/PersonFinderGroup.tsx"],"sourcesContent":["import React, { FC, MouseEvent, useCallback } from 'react';\nimport { Button, List, SmallWaitCursor } from '@chayns-components/core';\nimport {\n LoadingState,\n PersonFinderEntry,\n PersonFinderFilterTypes,\n} from '../../../../../types/personFinder';\nimport { getGroupName } from '../../../../../utils/personFinder';\nimport {\n StyledPersonFinderGroup,\n StyledPersonFinderGroupButtonWrapper,\n StyledPersonFinderGroupName,\n StyledPersonFinderGroupWaitCursor,\n} from './PersonFinderGroup.styles';\nimport { usePersonFinder } from '../../../../PersonFinderProvider';\nimport PersonFinderItem from './person-finder-item/PersonFinderItem';\nimport { useErrorMessage, useOnlyFriends } from '../../../../../hooks/personFinder';\nimport PersonFinderSmallItem from './person-finder-small-item/PersonFinderSmallItem';\n\nexport type PersonFinderGroupProps = {\n filterKey: PersonFinderFilterTypes;\n entries: PersonFinderEntry[];\n count: number;\n search: string;\n shouldShowGroupName: boolean;\n onAdd: (id: string) => void;\n onRemove: (id: string) => void;\n};\n\nconst PersonFinderGroup: FC<PersonFinderGroupProps> = ({\n entries,\n filterKey,\n count,\n shouldShowGroupName,\n onAdd,\n onRemove,\n}) => {\n const { loadMore, loadingState: loadingStateFromState, search } = usePersonFinder();\n const areOnlyFriendsGiven =\n useOnlyFriends(entries) || filterKey === PersonFinderFilterTypes.UAC;\n\n const groupName = getGroupName(filterKey);\n\n const loadingState = loadingStateFromState\n ? (loadingStateFromState[filterKey] ?? LoadingState.None)\n : LoadingState.None;\n\n const shouldShowLoadMoreButton = entries.length < count;\n\n const waitCursor =\n (entries.length === 0 || areOnlyFriendsGiven) && loadingState === LoadingState.Pending ? (\n <StyledPersonFinderGroupWaitCursor>\n <SmallWaitCursor shouldHideBackground />\n </StyledPersonFinderGroupWaitCursor>\n ) : null;\n\n const errorMessage = useErrorMessage({\n areOnlyFriendsGiven,\n entries,\n loadingState,\n search: search ?? '',\n groupName,\n });\n\n const handleLoadMore = useCallback(() => {\n if (typeof loadMore === 'function') {\n loadMore(filterKey);\n }\n }, [filterKey, loadMore]);\n\n const handlePreventDefault = (event: MouseEvent) => {\n event.preventDefault();\n event.stopPropagation();\n };\n\n return (\n <StyledPersonFinderGroup onClick={handlePreventDefault}>\n {shouldShowGroupName && (\n <StyledPersonFinderGroupName className=\"person-finder-group-name\">\n {groupName}\n </StyledPersonFinderGroupName>\n )}\n {entries.length > 0 && (\n <List>\n {entries.map((entry) =>\n typeof entry.id === 'number' ? (\n <PersonFinderSmallItem\n key={`person-finder-entry--${entry.id}`}\n entry={entry}\n onAdd={onAdd}\n onRemove={onRemove}\n />\n ) : (\n <PersonFinderItem\n key={`person-finder-entry--${entry.id}`}\n entry={entry}\n onAdd={onAdd}\n onRemove={onRemove}\n />\n ),\n )}\n </List>\n )}\n {waitCursor}\n {errorMessage}\n {shouldShowLoadMoreButton && (\n <StyledPersonFinderGroupButtonWrapper key={`more-button-wrapper--${filterKey}`}>\n <Button\n key={`more-button--${filterKey}`}\n shouldShowWaitCursor={loadingState === LoadingState.Pending}\n onClick={handleLoadMore}\n >\n Mehr {getGroupName(filterKey)}\n </Button>\n </StyledPersonFinderGroupButtonWrapper>\n )}\n </StyledPersonFinderGroup>\n );\n};\n\nPersonFinderGroup.displayName = 'PersonFinderGroup';\n\nexport default PersonFinderGroup;\n"],"mappings":";;;;;;AAAA,I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CAAAc,OAAA,CAAAyC,aAAA,CAACjD,kBAAA,CAAAsE,oCAAoC;IAACD,GAAG,EAAE,wBAAwB1C,SAAS;EAAG,gBAC3EjC,MAAA,CAAAc,OAAA,CAAAyC,aAAA,CAACpD,KAAA,CAAA0E,MAAM;IACHF,GAAG,EAAE,gBAAgB1C,SAAS,EAAG;IACjC6C,oBAAoB,EAAEvC,YAAY,KAAKU,0BAAY,CAACK,OAAQ;IAC5Dc,OAAO,EAAEP;EAAe,GAC3B,OACQ,EAAC,IAAAb,2BAAY,EAACf,SAAS,CACxB,CAC0B,CAErB,CAAC;AAElC,CAAC;AAEDF,iBAAiB,CAACgD,WAAW,GAAG,mBAAmB;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAnE,OAAA,GAErCiB,iBAAiB","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"PersonFinderGroup.js","names":["_react","_interopRequireWildcard","require","_core","_personFinder","_personFinder2","_PersonFinderGroup","_PersonFinderProvider","_PersonFinderItem","_interopRequireDefault","_personFinder3","_PersonFinderSmallItem","_textstring","_textStrings","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","PersonFinderGroup","entries","filterKey","count","shouldShowGroupName","onAdd","onRemove","loadMore","loadingState","loadingStateFromState","search","usePersonFinder","areOnlyFriendsGiven","useOnlyFriends","PersonFinderFilterTypes","UAC","groupName","getGroupName","LoadingState","None","shouldShowLoadMoreButton","length","waitCursor","Pending","createElement","StyledPersonFinderGroupWaitCursor","SmallWaitCursor","shouldHideBackground","errorMessage","useErrorMessage","handleLoadMore","useCallback","handlePreventDefault","event","preventDefault","stopPropagation","ts","textStrings","components","personFinder","wrapper","body","group","StyledPersonFinderGroup","onClick","StyledPersonFinderGroupName","className","List","map","entry","id","key","StyledPersonFinderGroupButtonWrapper","Button","shouldShowWaitCursor","TextstringProvider","libraryName","Textstring","textstring","ttsToITextString","displayName","_default","exports"],"sources":["../../../../../../../src/components/person-finder/person-finder-wrapper/person-finder-body/person-finder-group/PersonFinderGroup.tsx"],"sourcesContent":["import React, { FC, MouseEvent, useCallback } from 'react';\nimport { Button, List, SmallWaitCursor } from '@chayns-components/core';\nimport {\n LoadingState,\n PersonFinderEntry,\n PersonFinderFilterTypes,\n} from '../../../../../types/personFinder';\nimport { getGroupName } from '../../../../../utils/personFinder';\nimport {\n StyledPersonFinderGroup,\n StyledPersonFinderGroupButtonWrapper,\n StyledPersonFinderGroupName,\n StyledPersonFinderGroupWaitCursor,\n} from './PersonFinderGroup.styles';\nimport { usePersonFinder } from '../../../../PersonFinderProvider';\nimport PersonFinderItem from './person-finder-item/PersonFinderItem';\nimport { useErrorMessage, useOnlyFriends } from '../../../../../hooks/personFinder';\nimport PersonFinderSmallItem from './person-finder-small-item/PersonFinderSmallItem';\nimport { Textstring, TextstringProvider, ttsToITextString } from '@chayns-components/textstring';\nimport textStrings from '../../../../../constants/textStrings';\n\nexport type PersonFinderGroupProps = {\n filterKey: PersonFinderFilterTypes;\n entries: PersonFinderEntry[];\n count: number;\n search: string;\n shouldShowGroupName: boolean;\n onAdd: (id: string) => void;\n onRemove: (id: string) => void;\n};\n\nconst PersonFinderGroup: FC<PersonFinderGroupProps> = ({\n entries,\n filterKey,\n count,\n shouldShowGroupName,\n onAdd,\n onRemove,\n}) => {\n const { loadMore, loadingState: loadingStateFromState, search } = usePersonFinder();\n const areOnlyFriendsGiven =\n useOnlyFriends(entries) || filterKey === PersonFinderFilterTypes.UAC;\n\n const groupName = getGroupName(filterKey);\n\n const loadingState = loadingStateFromState\n ? (loadingStateFromState[filterKey] ?? LoadingState.None)\n : LoadingState.None;\n\n const shouldShowLoadMoreButton = entries.length < count;\n\n const waitCursor =\n (entries.length === 0 || areOnlyFriendsGiven) && loadingState === LoadingState.Pending ? (\n <StyledPersonFinderGroupWaitCursor>\n <SmallWaitCursor shouldHideBackground />\n </StyledPersonFinderGroupWaitCursor>\n ) : null;\n\n const errorMessage = useErrorMessage({\n areOnlyFriendsGiven,\n entries,\n loadingState,\n search: search ?? '',\n groupName,\n });\n\n const handleLoadMore = useCallback(() => {\n if (typeof loadMore === 'function') {\n loadMore(filterKey);\n }\n }, [filterKey, loadMore]);\n\n const handlePreventDefault = (event: MouseEvent) => {\n event.preventDefault();\n event.stopPropagation();\n };\n\n const ts = textStrings.components.personFinder.wrapper.body.group;\n\n return (\n <StyledPersonFinderGroup onClick={handlePreventDefault}>\n {shouldShowGroupName && (\n <StyledPersonFinderGroupName className=\"person-finder-group-name\">\n {groupName}\n </StyledPersonFinderGroupName>\n )}\n {entries.length > 0 && (\n <List>\n {entries.map((entry) =>\n typeof entry.id === 'number' ? (\n <PersonFinderSmallItem\n key={`person-finder-entry--${entry.id}`}\n entry={entry}\n onAdd={onAdd}\n onRemove={onRemove}\n />\n ) : (\n <PersonFinderItem\n key={`person-finder-entry--${entry.id}`}\n entry={entry}\n onAdd={onAdd}\n onRemove={onRemove}\n />\n ),\n )}\n </List>\n )}\n {waitCursor}\n {errorMessage}\n {shouldShowLoadMoreButton && (\n <StyledPersonFinderGroupButtonWrapper key={`more-button-wrapper--${filterKey}`}>\n <Button\n key={`more-button--${filterKey}`}\n shouldShowWaitCursor={loadingState === LoadingState.Pending}\n onClick={handleLoadMore}\n >\n <TextstringProvider libraryName=\"@chayns-components-person-finder\">\n <Textstring textstring={ttsToITextString(ts.loadMore)} />{' '}\n {getGroupName(filterKey)}\n </TextstringProvider>\n </Button>\n </StyledPersonFinderGroupButtonWrapper>\n )}\n </StyledPersonFinderGroup>\n );\n};\n\nPersonFinderGroup.displayName = 'PersonFinderGroup';\n\nexport default PersonFinderGroup;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AAKA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,kBAAA,GAAAJ,OAAA;AAMA,IAA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AAA,CAAAgB,OAAA,CAAAyC,aAAA,CAACnD,kBAAA,CAAA+E,oCAAoC;IAACD,GAAG,EAAE,wBAAwBjD,SAAS;EAAG,gBAC3EnC,MAAA,CAAAgB,OAAA,CAAAyC,aAAA,CAACtD,KAAA,CAAAmF,MAAM;IACHF,GAAG,EAAE,gBAAgBjD,SAAS,EAAG;IACjCoD,oBAAoB,EAAE9C,YAAY,KAAKU,0BAAY,CAACK,OAAQ;IAC5DqB,OAAO,EAAEd;EAAe,gBAExB/D,MAAA,CAAAgB,OAAA,CAAAyC,aAAA,CAAC7C,WAAA,CAAA4E,kBAAkB;IAACC,WAAW,EAAC;EAAkC,gBAC9DzF,MAAA,CAAAgB,OAAA,CAAAyC,aAAA,CAAC7C,WAAA,CAAA8E,UAAU;IAACC,UAAU,EAAE,IAAAC,4BAAgB,EAACvB,EAAE,CAAC7B,QAAQ;EAAE,CAAE,CAAC,EAAC,GAAG,EAC5D,IAAAU,2BAAY,EAACf,SAAS,CACP,CAChB,CAC0B,CAErB,CAAC;AAElC,CAAC;AAEDF,iBAAiB,CAAC4D,WAAW,GAAG,mBAAmB;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAA/E,OAAA,GAErCiB,iBAAiB","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _default = exports.default = {
|
|
8
|
+
components: {
|
|
9
|
+
personFinder: {
|
|
10
|
+
wrapper: {
|
|
11
|
+
body: {
|
|
12
|
+
group: {
|
|
13
|
+
loadMore: {
|
|
14
|
+
stringName: 'txt_chayns_components_person_finder_components_personFinder_wrapper_body_group_loadMore',
|
|
15
|
+
fallback: 'Mehr'
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=textStrings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textStrings.js","names":["components","personFinder","wrapper","body","group","loadMore","stringName","fallback"],"sources":["../../../src/constants/textStrings.ts"],"sourcesContent":["export default {\n components: {\n personFinder: {\n wrapper: {\n body: {\n group: {\n loadMore: {\n stringName:\n 'txt_chayns_components_person_finder_components_personFinder_wrapper_body_group_loadMore',\n fallback: 'Mehr',\n },\n },\n },\n },\n },\n },\n} as const;\n"],"mappings":";;;;;;iCAAe;EACXA,UAAU,EAAE;IACRC,YAAY,EAAE;MACVC,OAAO,EAAE;QACLC,IAAI,EAAE;UACFC,KAAK,EAAE;YACHC,QAAQ,EAAE;cACNC,UAAU,EACN,yFAAyF;cAC7FC,QAAQ,EAAE;YACd;UACJ;QACJ;MACJ;IACJ;EACJ;AACJ,CAAC","ignoreList":[]}
|
|
@@ -7,6 +7,8 @@ import { usePersonFinder } from '../../../../PersonFinderProvider';
|
|
|
7
7
|
import PersonFinderItem from './person-finder-item/PersonFinderItem';
|
|
8
8
|
import { useErrorMessage, useOnlyFriends } from '../../../../../hooks/personFinder';
|
|
9
9
|
import PersonFinderSmallItem from './person-finder-small-item/PersonFinderSmallItem';
|
|
10
|
+
import { Textstring, TextstringProvider, ttsToITextString } from '@chayns-components/textstring';
|
|
11
|
+
import textStrings from '../../../../../constants/textStrings';
|
|
10
12
|
const PersonFinderGroup = ({
|
|
11
13
|
entries,
|
|
12
14
|
filterKey,
|
|
@@ -43,6 +45,7 @@ const PersonFinderGroup = ({
|
|
|
43
45
|
event.preventDefault();
|
|
44
46
|
event.stopPropagation();
|
|
45
47
|
};
|
|
48
|
+
const ts = textStrings.components.personFinder.wrapper.body.group;
|
|
46
49
|
return /*#__PURE__*/React.createElement(StyledPersonFinderGroup, {
|
|
47
50
|
onClick: handlePreventDefault
|
|
48
51
|
}, shouldShowGroupName && /*#__PURE__*/React.createElement(StyledPersonFinderGroupName, {
|
|
@@ -63,7 +66,11 @@ const PersonFinderGroup = ({
|
|
|
63
66
|
key: `more-button--${filterKey}`,
|
|
64
67
|
shouldShowWaitCursor: loadingState === LoadingState.Pending,
|
|
65
68
|
onClick: handleLoadMore
|
|
66
|
-
},
|
|
69
|
+
}, /*#__PURE__*/React.createElement(TextstringProvider, {
|
|
70
|
+
libraryName: "@chayns-components-person-finder"
|
|
71
|
+
}, /*#__PURE__*/React.createElement(Textstring, {
|
|
72
|
+
textstring: ttsToITextString(ts.loadMore)
|
|
73
|
+
}), ' ', getGroupName(filterKey)))));
|
|
67
74
|
};
|
|
68
75
|
PersonFinderGroup.displayName = 'PersonFinderGroup';
|
|
69
76
|
export default PersonFinderGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PersonFinderGroup.js","names":["React","useCallback","Button","List","SmallWaitCursor","LoadingState","PersonFinderFilterTypes","getGroupName","StyledPersonFinderGroup","StyledPersonFinderGroupButtonWrapper","StyledPersonFinderGroupName","StyledPersonFinderGroupWaitCursor","usePersonFinder","PersonFinderItem","useErrorMessage","useOnlyFriends","PersonFinderSmallItem","PersonFinderGroup","entries","filterKey","count","shouldShowGroupName","onAdd","onRemove","loadMore","loadingState","loadingStateFromState","search","areOnlyFriendsGiven","UAC","groupName","None","shouldShowLoadMoreButton","length","waitCursor","Pending","createElement","shouldHideBackground","errorMessage","handleLoadMore","handlePreventDefault","event","preventDefault","stopPropagation","onClick","className","map","entry","id","key","shouldShowWaitCursor","displayName"],"sources":["../../../../../../../src/components/person-finder/person-finder-wrapper/person-finder-body/person-finder-group/PersonFinderGroup.tsx"],"sourcesContent":["import React, { FC, MouseEvent, useCallback } from 'react';\nimport { Button, List, SmallWaitCursor } from '@chayns-components/core';\nimport {\n LoadingState,\n PersonFinderEntry,\n PersonFinderFilterTypes,\n} from '../../../../../types/personFinder';\nimport { getGroupName } from '../../../../../utils/personFinder';\nimport {\n StyledPersonFinderGroup,\n StyledPersonFinderGroupButtonWrapper,\n StyledPersonFinderGroupName,\n StyledPersonFinderGroupWaitCursor,\n} from './PersonFinderGroup.styles';\nimport { usePersonFinder } from '../../../../PersonFinderProvider';\nimport PersonFinderItem from './person-finder-item/PersonFinderItem';\nimport { useErrorMessage, useOnlyFriends } from '../../../../../hooks/personFinder';\nimport PersonFinderSmallItem from './person-finder-small-item/PersonFinderSmallItem';\n\nexport type PersonFinderGroupProps = {\n filterKey: PersonFinderFilterTypes;\n entries: PersonFinderEntry[];\n count: number;\n search: string;\n shouldShowGroupName: boolean;\n onAdd: (id: string) => void;\n onRemove: (id: string) => void;\n};\n\nconst PersonFinderGroup: FC<PersonFinderGroupProps> = ({\n entries,\n filterKey,\n count,\n shouldShowGroupName,\n onAdd,\n onRemove,\n}) => {\n const { loadMore, loadingState: loadingStateFromState, search } = usePersonFinder();\n const areOnlyFriendsGiven =\n useOnlyFriends(entries) || filterKey === PersonFinderFilterTypes.UAC;\n\n const groupName = getGroupName(filterKey);\n\n const loadingState = loadingStateFromState\n ? (loadingStateFromState[filterKey] ?? LoadingState.None)\n : LoadingState.None;\n\n const shouldShowLoadMoreButton = entries.length < count;\n\n const waitCursor =\n (entries.length === 0 || areOnlyFriendsGiven) && loadingState === LoadingState.Pending ? (\n <StyledPersonFinderGroupWaitCursor>\n <SmallWaitCursor shouldHideBackground />\n </StyledPersonFinderGroupWaitCursor>\n ) : null;\n\n const errorMessage = useErrorMessage({\n areOnlyFriendsGiven,\n entries,\n loadingState,\n search: search ?? '',\n groupName,\n });\n\n const handleLoadMore = useCallback(() => {\n if (typeof loadMore === 'function') {\n loadMore(filterKey);\n }\n }, [filterKey, loadMore]);\n\n const handlePreventDefault = (event: MouseEvent) => {\n event.preventDefault();\n event.stopPropagation();\n };\n\n return (\n <StyledPersonFinderGroup onClick={handlePreventDefault}>\n {shouldShowGroupName && (\n <StyledPersonFinderGroupName className=\"person-finder-group-name\">\n {groupName}\n </StyledPersonFinderGroupName>\n )}\n {entries.length > 0 && (\n <List>\n {entries.map((entry) =>\n typeof entry.id === 'number' ? (\n <PersonFinderSmallItem\n key={`person-finder-entry--${entry.id}`}\n entry={entry}\n onAdd={onAdd}\n onRemove={onRemove}\n />\n ) : (\n <PersonFinderItem\n key={`person-finder-entry--${entry.id}`}\n entry={entry}\n onAdd={onAdd}\n onRemove={onRemove}\n />\n ),\n )}\n </List>\n )}\n {waitCursor}\n {errorMessage}\n {shouldShowLoadMoreButton && (\n <StyledPersonFinderGroupButtonWrapper key={`more-button-wrapper--${filterKey}`}>\n <Button\n key={`more-button--${filterKey}`}\n shouldShowWaitCursor={loadingState === LoadingState.Pending}\n onClick={handleLoadMore}\n >\n
|
|
1
|
+
{"version":3,"file":"PersonFinderGroup.js","names":["React","useCallback","Button","List","SmallWaitCursor","LoadingState","PersonFinderFilterTypes","getGroupName","StyledPersonFinderGroup","StyledPersonFinderGroupButtonWrapper","StyledPersonFinderGroupName","StyledPersonFinderGroupWaitCursor","usePersonFinder","PersonFinderItem","useErrorMessage","useOnlyFriends","PersonFinderSmallItem","Textstring","TextstringProvider","ttsToITextString","textStrings","PersonFinderGroup","entries","filterKey","count","shouldShowGroupName","onAdd","onRemove","loadMore","loadingState","loadingStateFromState","search","areOnlyFriendsGiven","UAC","groupName","None","shouldShowLoadMoreButton","length","waitCursor","Pending","createElement","shouldHideBackground","errorMessage","handleLoadMore","handlePreventDefault","event","preventDefault","stopPropagation","ts","components","personFinder","wrapper","body","group","onClick","className","map","entry","id","key","shouldShowWaitCursor","libraryName","textstring","displayName"],"sources":["../../../../../../../src/components/person-finder/person-finder-wrapper/person-finder-body/person-finder-group/PersonFinderGroup.tsx"],"sourcesContent":["import React, { FC, MouseEvent, useCallback } from 'react';\nimport { Button, List, SmallWaitCursor } from '@chayns-components/core';\nimport {\n LoadingState,\n PersonFinderEntry,\n PersonFinderFilterTypes,\n} from '../../../../../types/personFinder';\nimport { getGroupName } from '../../../../../utils/personFinder';\nimport {\n StyledPersonFinderGroup,\n StyledPersonFinderGroupButtonWrapper,\n StyledPersonFinderGroupName,\n StyledPersonFinderGroupWaitCursor,\n} from './PersonFinderGroup.styles';\nimport { usePersonFinder } from '../../../../PersonFinderProvider';\nimport PersonFinderItem from './person-finder-item/PersonFinderItem';\nimport { useErrorMessage, useOnlyFriends } from '../../../../../hooks/personFinder';\nimport PersonFinderSmallItem from './person-finder-small-item/PersonFinderSmallItem';\nimport { Textstring, TextstringProvider, ttsToITextString } from '@chayns-components/textstring';\nimport textStrings from '../../../../../constants/textStrings';\n\nexport type PersonFinderGroupProps = {\n filterKey: PersonFinderFilterTypes;\n entries: PersonFinderEntry[];\n count: number;\n search: string;\n shouldShowGroupName: boolean;\n onAdd: (id: string) => void;\n onRemove: (id: string) => void;\n};\n\nconst PersonFinderGroup: FC<PersonFinderGroupProps> = ({\n entries,\n filterKey,\n count,\n shouldShowGroupName,\n onAdd,\n onRemove,\n}) => {\n const { loadMore, loadingState: loadingStateFromState, search } = usePersonFinder();\n const areOnlyFriendsGiven =\n useOnlyFriends(entries) || filterKey === PersonFinderFilterTypes.UAC;\n\n const groupName = getGroupName(filterKey);\n\n const loadingState = loadingStateFromState\n ? (loadingStateFromState[filterKey] ?? LoadingState.None)\n : LoadingState.None;\n\n const shouldShowLoadMoreButton = entries.length < count;\n\n const waitCursor =\n (entries.length === 0 || areOnlyFriendsGiven) && loadingState === LoadingState.Pending ? (\n <StyledPersonFinderGroupWaitCursor>\n <SmallWaitCursor shouldHideBackground />\n </StyledPersonFinderGroupWaitCursor>\n ) : null;\n\n const errorMessage = useErrorMessage({\n areOnlyFriendsGiven,\n entries,\n loadingState,\n search: search ?? '',\n groupName,\n });\n\n const handleLoadMore = useCallback(() => {\n if (typeof loadMore === 'function') {\n loadMore(filterKey);\n }\n }, [filterKey, loadMore]);\n\n const handlePreventDefault = (event: MouseEvent) => {\n event.preventDefault();\n event.stopPropagation();\n };\n\n const ts = textStrings.components.personFinder.wrapper.body.group;\n\n return (\n <StyledPersonFinderGroup onClick={handlePreventDefault}>\n {shouldShowGroupName && (\n <StyledPersonFinderGroupName className=\"person-finder-group-name\">\n {groupName}\n </StyledPersonFinderGroupName>\n )}\n {entries.length > 0 && (\n <List>\n {entries.map((entry) =>\n typeof entry.id === 'number' ? (\n <PersonFinderSmallItem\n key={`person-finder-entry--${entry.id}`}\n entry={entry}\n onAdd={onAdd}\n onRemove={onRemove}\n />\n ) : (\n <PersonFinderItem\n key={`person-finder-entry--${entry.id}`}\n entry={entry}\n onAdd={onAdd}\n onRemove={onRemove}\n />\n ),\n )}\n </List>\n )}\n {waitCursor}\n {errorMessage}\n {shouldShowLoadMoreButton && (\n <StyledPersonFinderGroupButtonWrapper key={`more-button-wrapper--${filterKey}`}>\n <Button\n key={`more-button--${filterKey}`}\n shouldShowWaitCursor={loadingState === LoadingState.Pending}\n onClick={handleLoadMore}\n >\n <TextstringProvider libraryName=\"@chayns-components-person-finder\">\n <Textstring textstring={ttsToITextString(ts.loadMore)} />{' '}\n {getGroupName(filterKey)}\n </TextstringProvider>\n </Button>\n </StyledPersonFinderGroupButtonWrapper>\n )}\n </StyledPersonFinderGroup>\n );\n};\n\nPersonFinderGroup.displayName = 'PersonFinderGroup';\n\nexport default PersonFinderGroup;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAoBC,WAAW,QAAQ,OAAO;AAC1D,SAASC,MAAM,EAAEC,IAAI,EAAEC,eAAe,QAAQ,yBAAyB;AACvE,SACIC,YAAY,EAEZC,uBAAuB,QACpB,mCAAmC;AAC1C,SAASC,YAAY,QAAQ,mCAAmC;AAChE,SACIC,uBAAuB,EACvBC,oCAAoC,EACpCC,2BAA2B,EAC3BC,iCAAiC,QAC9B,4BAA4B;AACnC,SAASC,eAAe,QAAQ,kCAAkC;AAClE,OAAOC,gBAAgB,MAAM,uCAAuC;AACpE,SAASC,eAAe,EAAEC,cAAc,QAAQ,mCAAmC;AACnF,OAAOC,qBAAqB,MAAM,kDAAkD;AACpF,SAASC,UAAU,EAAEC,kBAAkB,EAAEC,gBAAgB,Q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OAAO,EAAEX;EAAe,gBAExB3C,KAAA,CAAAwC,aAAA,CAACtB,kBAAkB;IAAC2C,WAAW,EAAC;EAAkC,gBAC9D7D,KAAA,CAAAwC,aAAA,CAACvB,UAAU;IAAC6C,UAAU,EAAE3C,gBAAgB,CAAC6B,EAAE,CAACpB,QAAQ;EAAE,CAAE,CAAC,EAAC,GAAG,EAC5DrB,YAAY,CAACgB,SAAS,CACP,CAChB,CAC0B,CAErB,CAAC;AAElC,CAAC;AAEDF,iBAAiB,CAAC0C,WAAW,GAAG,mBAAmB;AAEnD,eAAe1C,iBAAiB","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
components: {
|
|
3
|
+
personFinder: {
|
|
4
|
+
wrapper: {
|
|
5
|
+
body: {
|
|
6
|
+
group: {
|
|
7
|
+
loadMore: {
|
|
8
|
+
stringName: 'txt_chayns_components_person_finder_components_personFinder_wrapper_body_group_loadMore',
|
|
9
|
+
fallback: 'Mehr'
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=textStrings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textStrings.js","names":["components","personFinder","wrapper","body","group","loadMore","stringName","fallback"],"sources":["../../../src/constants/textStrings.ts"],"sourcesContent":["export default {\n components: {\n personFinder: {\n wrapper: {\n body: {\n group: {\n loadMore: {\n stringName:\n 'txt_chayns_components_person_finder_components_personFinder_wrapper_body_group_loadMore',\n fallback: 'Mehr',\n },\n },\n },\n },\n },\n },\n} as const;\n"],"mappings":"AAAA,eAAe;EACXA,UAAU,EAAE;IACRC,YAAY,EAAE;MACVC,OAAO,EAAE;QACLC,IAAI,EAAE;UACFC,KAAK,EAAE;YACHC,QAAQ,EAAE;cACNC,UAAU,EACN,yFAAyF;cAC7FC,QAAQ,EAAE;YACd;UACJ;QACJ;MACJ;IACJ;EACJ;AACJ,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
readonly components: {
|
|
3
|
+
readonly personFinder: {
|
|
4
|
+
readonly wrapper: {
|
|
5
|
+
readonly body: {
|
|
6
|
+
readonly group: {
|
|
7
|
+
readonly loadMore: {
|
|
8
|
+
readonly stringName: "txt_chayns_components_person_finder_components_personFinder_wrapper_body_group_loadMore";
|
|
9
|
+
readonly fallback: "Mehr";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chayns-components/person-finder",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.62",
|
|
4
4
|
"description": "A set of beautiful React components for developing your own applications with chayns.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"browserslist": [
|
|
@@ -71,7 +71,8 @@
|
|
|
71
71
|
"typescript": "^5.9.3"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@chayns-components/core": "^5.0.
|
|
74
|
+
"@chayns-components/core": "^5.0.62",
|
|
75
|
+
"@chayns-components/textstring": "^5.0.61",
|
|
75
76
|
"@chayns/uac-service": "~0.0.62",
|
|
76
77
|
"lodash.throttle": "^4.1.1",
|
|
77
78
|
"react-compiler-runtime": "^1.0.0",
|
|
@@ -87,5 +88,5 @@
|
|
|
87
88
|
"publishConfig": {
|
|
88
89
|
"access": "public"
|
|
89
90
|
},
|
|
90
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "eda6d85f85f8b0248c2edd71e95d5d45d115e52a"
|
|
91
92
|
}
|