@equinor/fusion-react-context-selector 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/stories/context-selector.helpers.d.ts +8 -0
- package/dist/stories/context-selector.helpers.d.ts.map +1 -0
- package/dist/stories/context-selector.helpers.js +126 -0
- package/dist/stories/context-selector.helpers.js.map +1 -0
- package/dist/stories/context-selector.stories.d.ts +7 -0
- package/dist/stories/context-selector.stories.d.ts.map +1 -0
- package/dist/stories/context-selector.stories.js +25 -0
- package/dist/stories/context-selector.stories.js.map +1 -0
- package/package.json +6 -6
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ContextResolver, ContextSelectEvent } from '..';
|
|
2
|
+
/**
|
|
3
|
+
* Example resolver passed to provider.
|
|
4
|
+
* @type ContextResolver
|
|
5
|
+
* */
|
|
6
|
+
export declare const _exampleResolver: ContextResolver;
|
|
7
|
+
export declare const _handleSelect: (e: ContextSelectEvent) => void;
|
|
8
|
+
//# sourceMappingURL=context-selector.helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-selector.helpers.d.ts","sourceRoot":"","sources":["../../src/stories/context-selector.helpers.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoC,eAAe,EAAE,kBAAkB,EAAE,MAAM,IAAI,CAAC;AAoF3F;;;KAGK;AACL,eAAO,MAAM,gBAAgB,EAAE,eAmC9B,CAAC;AAGF,eAAO,MAAM,aAAa,MAAO,kBAAkB,SAIlD,CAAC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helper for generating a single ContextResultItem
|
|
3
|
+
*/
|
|
4
|
+
const singleItem = (props) => {
|
|
5
|
+
return Object.assign({ id: '0', title: 'Dummy title' }, props);
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Example contextResult with sections
|
|
9
|
+
*/
|
|
10
|
+
/* */
|
|
11
|
+
const contextResultSectioned = [
|
|
12
|
+
// eslint-disable-next-line prettier/prettier
|
|
13
|
+
{ "id": "section-001", "title": "Apps prod", "type": "section", "children": [
|
|
14
|
+
// eslint-disable-next-line prettier/prettier
|
|
15
|
+
{ "id": "8aa0d62f-21d4-4933-a1e1-823a8de7c13c", "title": "Johan prod", "subTitle": "An App from Fusion", "graphic": "settings" },
|
|
16
|
+
// eslint-disable-next-line prettier/prettier
|
|
17
|
+
{ "id": "8aa0d62f-21d4-4933-a1e1-823a8de7c13d", "title": "Johan2 prod", "subTitle": "An App from Fusion", "graphic": "settings" },
|
|
18
|
+
// eslint-disable-next-line prettier/prettier
|
|
19
|
+
{ "id": "8aa0d62f-21d4-4933-a1e1-823a8de7c13e", "title": "Johan3 prod", "subTitle": "An App from Fusion", "graphic": "settings" },
|
|
20
|
+
// eslint-disable-next-line prettier/prettier
|
|
21
|
+
{ "id": "8aa0d62f-21d4-4933-a1e1-823a8de7c13f", "title": "Johan4 prod", "subTitle": "An App from Fusion", "graphic": "settings" }
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
// eslint-disable-next-line prettier/prettier
|
|
25
|
+
{ "id": "section-002", "title": "Projects prod", "type": "section", "children": [
|
|
26
|
+
// eslint-disable-next-line prettier/prettier
|
|
27
|
+
{ "id": "8aa0d62f-21d4-4933-a1e1-823a8de7c14a", "title": "Project1 prod", "subTitle": "A Fusion context", "graphic": "settings" },
|
|
28
|
+
// eslint-disable-next-line prettier/prettier
|
|
29
|
+
{ "id": "8aa0d62f-21d4-4933-a1e1-823a8de7c14b", "title": "Project2 prod", "subTitle": "A Fusion context", "graphic": "settings" },
|
|
30
|
+
// eslint-disable-next-line prettier/prettier
|
|
31
|
+
{ "id": "8aa0d62f-21d4-4933-a1e1-823a8de7c14c", "title": "Project3 prod", "subTitle": "A Fusion context", "graphic": "settings" },
|
|
32
|
+
// eslint-disable-next-line prettier/prettier
|
|
33
|
+
{ "id": "8aa0d62f-21d4-4933-a1e1-823a8de7c14d", "title": "Project4 prod", "subTitle": "A Fusion context", "graphic": "settings" }
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
// eslint-disable-next-line prettier/prettier
|
|
37
|
+
{ "id": "8aa0d62f-21d4-4933-a1e1-823a8de7c15a", "title": "Unsectioned prod", "subTitle": "Some random item" },
|
|
38
|
+
// eslint-disable-next-line prettier/prettier
|
|
39
|
+
{ "id": "8aa0d62f-21d4-4933-a1e1-823a8de7c15b", "title": "Unsectioned2 prod", "subTitle": "Some random item" },
|
|
40
|
+
// eslint-disable-next-line prettier/prettier
|
|
41
|
+
{ "id": "8aa0d62f-21d4-4933-a1e1-823a8de7c15c", "title": "Unsectioned3 prod", "subTitle": "Some random item" },
|
|
42
|
+
// eslint-disable-next-line prettier/prettier
|
|
43
|
+
{ "id": "8aa0d62f-21d4-4933-a1e1-823a8de7c15d", "title": "Unsectioned4 prod", "subTitle": "Some random item" }
|
|
44
|
+
];
|
|
45
|
+
/**
|
|
46
|
+
* Callback for resolvers searchQuery method.
|
|
47
|
+
* Takes the query string to search for and return matching ContextResult.
|
|
48
|
+
* @param query string to search for in api
|
|
49
|
+
* @returns ContextResult
|
|
50
|
+
*/
|
|
51
|
+
const apiItems = (query) => {
|
|
52
|
+
/* min length */
|
|
53
|
+
const min = 2;
|
|
54
|
+
const matched = [];
|
|
55
|
+
/* Query string is to short */
|
|
56
|
+
if (!query || query.length < min) {
|
|
57
|
+
matched.push(singleItem({ title: `Need ${min - query.length} more chars`, isDisabled: true }));
|
|
58
|
+
return matched;
|
|
59
|
+
}
|
|
60
|
+
/* find matching items */
|
|
61
|
+
for (const item of contextResultSectioned) {
|
|
62
|
+
const entry = { ...item };
|
|
63
|
+
/* Match against children in sections */
|
|
64
|
+
if (entry.type === 'section' && entry.children?.length) {
|
|
65
|
+
entry.children = entry.children.filter((i) => i.title && i.title.toLowerCase().indexOf(query) > -1);
|
|
66
|
+
if (entry.children.length) {
|
|
67
|
+
matched.push(entry);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
else if (entry.title && entry.title.toLowerCase().indexOf(query) > -1) {
|
|
71
|
+
matched.push(entry);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
if (!matched.length) {
|
|
75
|
+
matched.push(singleItem({ title: 'No matches...', isDisabled: true }));
|
|
76
|
+
}
|
|
77
|
+
return matched;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Example resolver passed to provider.
|
|
81
|
+
* @type ContextResolver
|
|
82
|
+
* */
|
|
83
|
+
export const _exampleResolver = {
|
|
84
|
+
searchQuery: async (query) => {
|
|
85
|
+
try {
|
|
86
|
+
return apiItems(query);
|
|
87
|
+
}
|
|
88
|
+
catch (e) {
|
|
89
|
+
return [singleItem({ title: 'API Error', isDisabled: true, isError: true })];
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
initialResult: [
|
|
93
|
+
singleItem({
|
|
94
|
+
id: 'ctx-123',
|
|
95
|
+
title: 'Context',
|
|
96
|
+
type: 'section',
|
|
97
|
+
children: [
|
|
98
|
+
singleItem({ id: '456', title: 'Context 1', subTitle: 'ContextType', graphic: 'list' }),
|
|
99
|
+
singleItem({ id: '654', title: 'Context 2', subTitle: 'ContextType', graphic: 'list' }),
|
|
100
|
+
singleItem({ id: '789', title: 'Context 3', subTitle: 'ContextType', graphic: 'list' }),
|
|
101
|
+
singleItem({ id: '321', title: 'Context 4', subTitle: 'ContextType', graphic: 'list' }),
|
|
102
|
+
],
|
|
103
|
+
}),
|
|
104
|
+
singleItem({
|
|
105
|
+
id: 'fav-123',
|
|
106
|
+
title: 'Favourites',
|
|
107
|
+
type: 'section',
|
|
108
|
+
children: [
|
|
109
|
+
singleItem({ id: '456456', title: 'Favourite 1', subTitle: 'Favourite', meta: 'check' }),
|
|
110
|
+
singleItem({ id: '654654', title: 'Favourite 2', subTitle: 'Favourite', meta: 'check' }),
|
|
111
|
+
singleItem({ id: '789789', title: 'Favourite 3', subTitle: 'Favourite', meta: 'check' }),
|
|
112
|
+
singleItem({ id: '321321', title: 'Favourite 4', subTitle: 'Favourite', meta: 'check' }),
|
|
113
|
+
],
|
|
114
|
+
}),
|
|
115
|
+
],
|
|
116
|
+
closeHandler: (e) => {
|
|
117
|
+
console.log('Resolver closeHandler event.', e);
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
/* Listen to Select events on list items */
|
|
121
|
+
export const _handleSelect = (e) => {
|
|
122
|
+
/* no need to bubble further up the dom */
|
|
123
|
+
e.stopPropagation();
|
|
124
|
+
console.log('Event', e.type, 'fired. Object:', e);
|
|
125
|
+
};
|
|
126
|
+
//# sourceMappingURL=context-selector.helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-selector.helpers.js","sourceRoot":"","sources":["../../src/stories/context-selector.helpers.tsx"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,UAAU,GAAG,CAAC,KAAiC,EAAqB,EAAE;IAC1E,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,aAAa,EAAE,EAAE,KAAK,CAAC,CAAC;AACjE,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM;AACN,MAAM,sBAAsB,GAAG;IAC7B,6CAA6C;IAC9C,EAAC,IAAI,EAAC,aAAa,EAAC,OAAO,EAAC,WAAW,EAAC,MAAM,EAAC,SAAS,EAAC,UAAU,EAAC;YAC/D,6CAA6C;YACjD,EAAC,IAAI,EAAC,sCAAsC,EAAC,OAAO,EAAC,YAAY,EAAC,UAAU,EAAC,oBAAoB,EAAC,SAAS,EAAC,UAAU,EAAC;YACnH,6CAA6C;YACjD,EAAC,IAAI,EAAC,sCAAsC,EAAC,OAAO,EAAC,aAAa,EAAC,UAAU,EAAC,oBAAoB,EAAC,SAAS,EAAC,UAAU,EAAC;YACpH,6CAA6C;YACjD,EAAC,IAAI,EAAC,sCAAsC,EAAC,OAAO,EAAC,aAAa,EAAC,UAAU,EAAC,oB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EAAE,EAAE,SAAS;YACb,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE;gBACR,UAAU,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;gBACxF,UAAU,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;gBACxF,UAAU,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;gBACxF,UAAU,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;aACzF;SACF,CAAC;KACH;IACD,YAAY,EAAE,CAAC,CAAQ,EAAE,EAAE;QACzB,OAAO,CAAC,GAAG,CAAC,8BAA8B,EAAE,CAAC,CAAC,CAAC;IACjD,CAAC;CACF,CAAC;AAEF,2CAA2C;AAC3C,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAqB,EAAE,EAAE;IACrD,0CAA0C;IAC1C,CAAC,CAAC,eAAe,EAAE,CAAC;IACpB,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AACpD,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { ContextSearchProps } from '..';
|
|
3
|
+
declare const meta: Meta<ContextSearchProps>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const ContextHeader: Story;
|
|
7
|
+
//# sourceMappingURL=context-selector.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-selector.stories.d.ts","sourceRoot":"","sources":["../../src/stories/context-selector.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAmD,kBAAkB,EAAsB,MAAM,IAAI,CAAC;AAG7G,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,kBAAkB,CAGlC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,aAAa,EAAE,KAmB3B,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ContextProvider, ContextSelector, ContextSearch } from '..';
|
|
3
|
+
// import { _exampleResolver } from './context-selector.helpers';
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'data/ContextSelector',
|
|
6
|
+
component: ContextSelector,
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
export const ContextHeader = {
|
|
10
|
+
args: {
|
|
11
|
+
placeholder: 'Start to type to search...',
|
|
12
|
+
initialText: 'The initial text result',
|
|
13
|
+
variant: 'header',
|
|
14
|
+
dropdownHeight: '300px',
|
|
15
|
+
onSelect: (e) => {
|
|
16
|
+
e.stopPropagation();
|
|
17
|
+
console.log('Event', e.type, 'fired. Object:', e);
|
|
18
|
+
},
|
|
19
|
+
onClearContext: () => {
|
|
20
|
+
console.log('Context Clearing');
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
render: (args) => (_jsx(ContextProvider, { children: _jsx(ContextSearch, { ...args }) })),
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=context-selector.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-selector.stories.js","sourceRoot":"","sources":["../../src/stories/context-selector.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,aAAa,EAA0C,MAAM,IAAI,CAAC;AAC7G,iEAAiE;AAEjE,MAAM,IAAI,GAA6B;IACrC,KAAK,EAAE,sBAAsB;IAC7B,SAAS,EAAE,eAAe;CAC3B,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,MAAM,CAAC,MAAM,aAAa,GAAU;IAClC,IAAI,EAAE;QACJ,WAAW,EAAE,4BAA4B;QACzC,WAAW,EAAE,yBAAyB;QACtC,OAAO,EAAE,QAAQ;QACjB,cAAc,EAAE,OAAO;QACvB,QAAQ,EAAE,CAAC,CAAqB,EAAE,EAAE;YAClC,CAAC,CAAC,eAAe,EAAE,CAAC;YACpB,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;QACpD,CAAC;QACD,cAAc,EAAE,GAAG,EAAE;YACnB,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;QAClC,CAAC;KACF;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAChB,KAAC,eAAe,cACd,KAAC,aAAa,OAAK,IAAI,GAAI,GACX,CACnB;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-react-context-selector",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "React component for context selector",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contextselector",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"url": "https://github.com/equinor/fusion-react-components/issues"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@equinor/fusion-wc-icon": "^2.3.
|
|
35
|
-
"@equinor/fusion-wc-searchable-dropdown": "^4.0.
|
|
36
|
-
"@equinor/fusion-react-searchable-dropdown": "^1.0.
|
|
37
|
-
"@equinor/fusion-react-
|
|
38
|
-
"@equinor/fusion-react-
|
|
34
|
+
"@equinor/fusion-wc-icon": "^2.3.1",
|
|
35
|
+
"@equinor/fusion-wc-searchable-dropdown": "^4.0.2",
|
|
36
|
+
"@equinor/fusion-react-searchable-dropdown": "^1.0.2",
|
|
37
|
+
"@equinor/fusion-react-styles": "^0.6.3",
|
|
38
|
+
"@equinor/fusion-react-utils": "^2.2.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/react": "^18.2.24",
|