@finsemble/finsemble-ui 7.0.0-beta.3 → 7.0.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.
Files changed (72) hide show
  1. package/package.json +15 -15
  2. package/react/assets/css/notificationsCenter.css +1 -1
  3. package/react/assets/css/windowTitleBar.css +4 -4
  4. package/react/components/common/helpers.js +4 -0
  5. package/react/components/common/helpers.js.map +1 -1
  6. package/react/components/legacyControls/FinsembleDialog.js +1 -1
  7. package/react/components/legacyControls/FinsembleDialog.js.map +1 -1
  8. package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js +14 -10
  9. package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js.map +1 -1
  10. package/react/components/search/Highlight.stories.js +1 -1
  11. package/react/components/search/Highlight.stories.js.map +1 -1
  12. package/react/components/search/SearchResult.d.ts +5 -0
  13. package/react/components/search/SearchResult.js.map +1 -1
  14. package/react/components/search/SearchResult.spec.d.ts +1 -0
  15. package/react/components/search/SearchResult.spec.js +39 -0
  16. package/react/components/search/SearchResult.spec.js.map +1 -0
  17. package/react/components/search/SearchResult.stories.d.ts +16 -0
  18. package/react/components/search/SearchResult.stories.js +109 -0
  19. package/react/components/search/SearchResult.stories.js.map +1 -0
  20. package/react/components/search/SearchResults.spec.d.ts +1 -0
  21. package/react/components/search/SearchResults.spec.js +28 -0
  22. package/react/components/search/SearchResults.spec.js.map +1 -0
  23. package/react/components/search/SearchResults.stories.d.ts +11 -0
  24. package/react/components/search/SearchResults.stories.js +458 -0
  25. package/react/components/search/SearchResults.stories.js.map +1 -0
  26. package/react/components/singleInputDialog/SingleInputDialog.stories.js +2 -2
  27. package/react/components/singleInputDialog/SingleInputDialog.stories.js.map +1 -1
  28. package/react/components/toolbar/AutoArrange.spec.js +9 -4
  29. package/react/components/toolbar/AutoArrange.spec.js.map +1 -1
  30. package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.js +7 -10
  31. package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.js.map +1 -1
  32. package/react/components/toolbar/advancedAppLauncher/utils/sort-functions.js +1 -3
  33. package/react/components/toolbar/advancedAppLauncher/utils/sort-functions.js.map +1 -1
  34. package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.d.ts +1 -1
  35. package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js.map +1 -1
  36. package/react/components/toolbar/workspaceManagementMenu/components/Workspace.d.ts +1 -1
  37. package/react/components/toolbar/workspaceManagementMenu/components/Workspace.js.map +1 -1
  38. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.d.ts +1 -1
  39. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.js.map +1 -1
  40. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.d.ts +1 -1
  41. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js +1 -1
  42. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js.map +1 -1
  43. package/react/components/userPreferences/components/content/Workspaces.js +1 -1
  44. package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
  45. package/react/components/userPreferences/stores/UserPreferencesStore.d.ts +1 -1
  46. package/react/components/userPreferences/stores/UserPreferencesStore.js +8 -6
  47. package/react/components/userPreferences/stores/UserPreferencesStore.js.map +1 -1
  48. package/react/components/userPreferences/tests/LeftNav.spec.js +15 -1
  49. package/react/components/userPreferences/tests/LeftNav.spec.js.map +1 -1
  50. package/react/components/userPreferences/tests/UserPreferencesBase.spec.d.ts +1 -0
  51. package/react/components/userPreferences/tests/UserPreferencesBase.spec.js +42 -0
  52. package/react/components/userPreferences/tests/UserPreferencesBase.spec.js.map +1 -0
  53. package/react/components/userPreferences/tests/Workspace.spec.d.ts +1 -0
  54. package/react/components/userPreferences/tests/Workspace.spec.js +119 -0
  55. package/react/components/userPreferences/tests/Workspace.spec.js.map +1 -0
  56. package/react/components/windowTitleBar/WindowTitleBarShell.d.ts +2 -0
  57. package/react/components/windowTitleBar/WindowTitleBarShell.js +57 -23
  58. package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
  59. package/react/components/windowTitleBar/components/windowTitle.js +78 -51
  60. package/react/components/windowTitleBar/components/windowTitle.js.map +1 -1
  61. package/react/components/windowTitleBar/stores/windowTitleBarStore.js +4 -10
  62. package/react/components/windowTitleBar/stores/windowTitleBarStore.js.map +1 -1
  63. package/react/components/yesNoDialog/YesNoDialog.stories.js +2 -2
  64. package/react/components/yesNoDialog/YesNoDialog.stories.js.map +1 -1
  65. package/react/enzymeSetup.js +5 -0
  66. package/react/enzymeSetup.js.map +1 -1
  67. package/react/hooks/useNotifications.js +4 -8
  68. package/react/hooks/useNotifications.js.map +1 -1
  69. package/react/hooks/useToolbar.d.ts +1 -1
  70. package/react/hooks/useToolbar.js +2 -2
  71. package/react/hooks/useToolbar.js.map +1 -1
  72. package/react/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchResults.spec.js","sourceRoot":"","sources":["../../../src/components/search/SearchResults.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IACjC,EAAE,CAAC,IAAI,CAAC,gDAAgD,EAAE,KAAK,IAAI,EAAE;QAEpE,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,WAAW,oBAAK,WAAW,CAAC,IAAI,EAAI,CAAC,CAAC;QAE7D,MAAM,CAAC,MA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C,CAAC;QAC7D,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAClE,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\nimport { mount } from \"enzyme\";\nimport { describe, it } from \"mocha\";\nimport { expect } from \"chai\";\nimport { SomeResults, NoResults } from \"./SearchResults.stories\";\nimport { accessibilityAssessor } from \"../sdd/tests/a11y_helper\";\n\ndescribe(\"<SearchResults/>\", () => {\n\tit.skip(\"should pass accessibility scans (with results)\", async () => {\n\t\t// <Icon> component needs to be updated to pass accessibility standards\n\t\tconst wrapper = mount(<SomeResults {...SomeResults.args} />);\n\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\n\t});\n\tit.skip(\"should pass accessibility scans (without results)\", async () => {\n\t\tconst wrapper = mount(<NoResults {...NoResults.args} />);\n\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\n\t});\n\n\tit(\"displays titles and items correctly\", () => {\n\t\tconst wrapper = mount(<SomeResults {...SomeResults.args} />);\n\n\t\tconst container = wrapper.find(\".search-provider-results\");\n\n\t\t// Confirm that \"Take a Tour\" is the \"Best match\"\n\t\texpect(container.find(\"div .search-title\").at(0).text(), \"First field is Best Match\").to.equal(\"Best Match\");\n\t\texpect(container.find(\"div[role='menuitem']\").at(0).find(\"span\").text()).to.equal(\"Take a Tour\");\n\n\t\t// TODO\n\t\t// Confirm the contents of \"Installed Workspaces\" section\n\t\t// Confirm the contents of \"Installed Components\" section\n\t\t// Confirm that \"Take a Tour\" does not contain highlights\n\t});\n\n\tit(\"Confirm nothing appears for No Results\", () => {\n\t\t// <Icon> component needs to be updated to pass accessibility standards\n\t\tconst wrapper = mount(<NoResults {...NoResults.args} />);\n\n\t\texpect(wrapper.find(\"[role='menu'] div\").length).to.equal(1);\n\t\texpect(wrapper.find(\".menu-item\").text()).to.equal(\"No results\");\n\t});\n});\n"]}
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { Story } from "@storybook/react/types-6-0";
3
+ import "../../assets/css/search.css";
4
+ declare const _default: {
5
+ title: string;
6
+ component: React.FunctionComponent<{}>;
7
+ };
8
+ export default _default;
9
+ export declare const SomeResults: Story<any>;
10
+ export declare const NoResults: Story<any>;
11
+ export declare const MultiProviderResults: Story<any>;
@@ -0,0 +1,458 @@
1
+ import React from "react";
2
+ import { SearchResults } from "./SearchResults";
3
+ import "../../assets/css/search.css";
4
+ import { initFSBL } from "../common/helpers";
5
+ import { FinsembleProvider } from "../FinsembleProvider";
6
+ import { createStore, useDispatch } from "../../store";
7
+ import { SearchActions } from "../../actions/searchActions";
8
+ export default {
9
+ title: "Search/SearchResults",
10
+ component: SearchResults,
11
+ };
12
+ const DispatcherBlock = ({ results, query, children }) => {
13
+ const dispatch = useDispatch();
14
+ dispatch(SearchActions.UPDATE_RESULTS(results));
15
+ dispatch(SearchActions.UPDATE_QUERY(query));
16
+ return children;
17
+ };
18
+ const Template = (args) => {
19
+ initFSBL(window);
20
+ return (React.createElement(FinsembleProvider, { store: createStore() },
21
+ React.createElement(DispatcherBlock, { results: args.results, query: args.query },
22
+ React.createElement("div", { role: "menu" },
23
+ React.createElement(SearchResults, null)))));
24
+ };
25
+ export const SomeResults = Template.bind({});
26
+ SomeResults.args = {
27
+ query: "te",
28
+ results: [
29
+ {
30
+ provider: {
31
+ displayName: "Installed Workspaces",
32
+ channel: "workspaceService.Installed Workspaces",
33
+ providerActionCallback: true,
34
+ },
35
+ returnCallback: "Toolbar-1.Installed Workspaces",
36
+ searchId: "3a5f1c77-d135-4488-8e8d-43b94d469048",
37
+ data: [
38
+ {
39
+ score: 0.02,
40
+ matches: [
41
+ {
42
+ indices: [
43
+ [2, 2],
44
+ [7, 7],
45
+ [13, 13],
46
+ ],
47
+ value: "auto_afterFeature",
48
+ },
49
+ ],
50
+ name: "auto_afterFeature",
51
+ type: "Workspace",
52
+ description: "",
53
+ actions: [{ name: "Switch" }],
54
+ tags: [],
55
+ provider: "workspaceService.Installed Workspaces",
56
+ },
57
+ {
58
+ score: 0.13682105473575515,
59
+ matches: [{ indices: [[6, 6]], value: "Default Workspace" }],
60
+ name: "Default Workspace",
61
+ type: "Workspace",
62
+ description: "",
63
+ actions: [{ name: "Switch" }],
64
+ tags: [],
65
+ provider: "workspaceService.Installed Workspaces",
66
+ },
67
+ ],
68
+ },
69
+ {
70
+ provider: {
71
+ displayName: "Installed Components",
72
+ channel: "System Manager.Installed Components",
73
+ providerActionTitle: null,
74
+ providerActionCallback: true,
75
+ },
76
+ returnCallback: "Toolbar-1.Installed Components",
77
+ searchId: "3a5f1c77-d135-4488-8e8d-43b94d469048",
78
+ data: [
79
+ {
80
+ name: "Tour",
81
+ displayName: "Take a Tour",
82
+ score: 0.000018578044550916993,
83
+ matches: [
84
+ {
85
+ indices: [
86
+ [0, 0],
87
+ [7, 7],
88
+ ],
89
+ value: "Take a Tour",
90
+ key: "component.displayName",
91
+ },
92
+ { indices: [[0, 0]], value: "Tour", key: "component.type" },
93
+ ],
94
+ icon: { imageType: "url", path: "http://localhost:3375/build/components/tour/take-a-tour.svg" },
95
+ type: "Application",
96
+ description: "",
97
+ actions: [{ name: "Spawn" }],
98
+ tags: [],
99
+ provider: "System Manager.Installed Components",
100
+ },
101
+ {
102
+ name: "ChartIQ Example App",
103
+ displayName: "ChartIQ Example App",
104
+ score: 0.024365606715272055,
105
+ matches: [
106
+ { indices: [[4, 4]], value: "ChartIQ Example App", key: "component.displayName" },
107
+ { indices: [[4, 4]], value: "ChartIQ Example App", key: "component.type" },
108
+ ],
109
+ icon: { imageType: "fonticon", path: "ff-chart-advanced" },
110
+ type: "Application",
111
+ description: "",
112
+ actions: [{ name: "Spawn" }],
113
+ tags: [],
114
+ provider: "System Manager.Installed Components",
115
+ },
116
+ {
117
+ name: "AG-Grid Example Blotter",
118
+ displayName: "AG-Grid Example Blotter",
119
+ score: 0.14712336702889178,
120
+ matches: [
121
+ { indices: [[19, 20]], value: "AG-Grid Example Blotter", key: "component.displayName" },
122
+ { indices: [[19, 20]], value: "AG-Grid Example Blotter", key: "component.type" },
123
+ ],
124
+ icon: { imageType: "url", path: "https://assets.finsemble.com/components/ag-grid/ag-grid-logo.png" },
125
+ type: "Application",
126
+ description: "",
127
+ actions: [{ name: "Spawn" }],
128
+ tags: [],
129
+ provider: "System Manager.Installed Components",
130
+ },
131
+ ],
132
+ },
133
+ ],
134
+ };
135
+ export const NoResults = Template.bind({});
136
+ NoResults.args = {
137
+ query: "test",
138
+ results: [],
139
+ };
140
+ export const MultiProviderResults = Template.bind({});
141
+ MultiProviderResults.args = {
142
+ query: "blue",
143
+ results: [
144
+ {
145
+ provider: {
146
+ displayName: "Colors",
147
+ channel: "colorSearchProviderService.Colors",
148
+ providerActionTitle: "Launch Current Color",
149
+ providerActionCallback: true,
150
+ },
151
+ returnCallback: "Toolbar-1.Colors",
152
+ searchId: "521d822b-14bc-4fba-94d8-cd6dd2bc559d",
153
+ data: [
154
+ {
155
+ name: "Red",
156
+ score: 100,
157
+ type: "color",
158
+ description: "The color Red",
159
+ actions: [
160
+ { name: "Launch", colorName: "Red", colorHex: "#FF0000" },
161
+ { name: "Set", colorName: "Red", colorHex: "#FF0000" },
162
+ ],
163
+ provider: "colorSearchProviderService.Colors",
164
+ },
165
+ {
166
+ name: "Green",
167
+ score: 100,
168
+ type: "color",
169
+ description: "The color Green",
170
+ actions: [
171
+ { name: "Launch", colorName: "Green", colorHex: "#00FF00" },
172
+ { name: "Set", colorName: "Green", colorHex: "#00FF00" },
173
+ ],
174
+ provider: "colorSearchProviderService.Colors",
175
+ },
176
+ {
177
+ name: "Blue",
178
+ score: 0,
179
+ type: "color",
180
+ description: "The color Blue",
181
+ actions: [
182
+ { name: "Launch", colorName: "Blue", colorHex: "#0000FF" },
183
+ { name: "Set", colorName: "Blue", colorHex: "#0000FF" },
184
+ ],
185
+ provider: "colorSearchProviderService.Colors",
186
+ },
187
+ {
188
+ name: "White",
189
+ score: 100,
190
+ type: "color",
191
+ description: "The color White",
192
+ actions: [
193
+ { name: "Launch", colorName: "White", colorHex: "#FFFFFF" },
194
+ { name: "Set", colorName: "White", colorHex: "#FFFFFF" },
195
+ ],
196
+ provider: "colorSearchProviderService.Colors",
197
+ },
198
+ {
199
+ name: "Black",
200
+ score: 100,
201
+ type: "color",
202
+ description: "The color Black",
203
+ actions: [
204
+ { name: "Launch", colorName: "Black", colorHex: "#000000" },
205
+ { name: "Set", colorName: "Black", colorHex: "#000000" },
206
+ ],
207
+ provider: "colorSearchProviderService.Colors",
208
+ },
209
+ ],
210
+ },
211
+ {
212
+ provider: {
213
+ displayName: "Installed Components",
214
+ channel: "System Manager.Installed Components",
215
+ providerActionTitle: null,
216
+ providerActionCallback: true,
217
+ },
218
+ returnCallback: "Toolbar-1.Installed Components",
219
+ searchId: "521d822b-14bc-4fba-94d8-cd6dd2bc559d",
220
+ data: [
221
+ {
222
+ name: "Finsemble WPF DemoTesting",
223
+ displayName: "Finsemble WPF DemoTesting",
224
+ score: 0.2588400021066141,
225
+ matches: [
226
+ {
227
+ indices: [
228
+ [4, 4],
229
+ [6, 8],
230
+ [15, 15],
231
+ [19, 19],
232
+ ],
233
+ value: "Finsemble WPF DemoTesting",
234
+ key: "component.displayName",
235
+ },
236
+ {
237
+ indices: [
238
+ [4, 4],
239
+ [6, 8],
240
+ [15, 15],
241
+ [19, 19],
242
+ ],
243
+ value: "Finsemble WPF DemoTesting",
244
+ key: "component.type",
245
+ },
246
+ ],
247
+ icon: { imageType: "url", path: "http://localhost:3375/build/assets/img/Finsemble_Taskbar_Icon.png" },
248
+ type: "Application",
249
+ description: "",
250
+ actions: [{ name: "Spawn" }],
251
+ tags: [],
252
+ provider: "System Manager.Installed Components",
253
+ },
254
+ {
255
+ name: "Finsemble WPF Demo",
256
+ displayName: "Finsemble WPF Demo",
257
+ score: 0.2588400021066141,
258
+ matches: [
259
+ {
260
+ indices: [
261
+ [4, 4],
262
+ [6, 8],
263
+ [15, 15],
264
+ ],
265
+ value: "Finsemble WPF Demo",
266
+ key: "component.displayName",
267
+ },
268
+ {
269
+ indices: [
270
+ [4, 4],
271
+ [6, 8],
272
+ [15, 15],
273
+ ],
274
+ value: "Finsemble WPF Demo",
275
+ key: "component.type",
276
+ },
277
+ ],
278
+ icon: { imageType: "url", path: "http://localhost:3375/build/assets/img/Finsemble_Taskbar_Icon.png" },
279
+ type: "Application",
280
+ description: "",
281
+ actions: [{ name: "Spawn" }],
282
+ tags: [],
283
+ provider: "System Manager.Installed Components",
284
+ },
285
+ {
286
+ name: "Finsemble WPF Demo Core",
287
+ displayName: "Finsemble WPF Demo Core",
288
+ score: 0.31000000000000005,
289
+ matches: [
290
+ {
291
+ indices: [
292
+ [4, 4],
293
+ [6, 8],
294
+ [15, 15],
295
+ [22, 22],
296
+ ],
297
+ value: "Finsemble WPF Demo Core",
298
+ key: "component.displayName",
299
+ },
300
+ {
301
+ indices: [
302
+ [4, 4],
303
+ [6, 8],
304
+ [15, 15],
305
+ [22, 22],
306
+ ],
307
+ value: "Finsemble WPF Demo Core",
308
+ key: "component.type",
309
+ },
310
+ ],
311
+ icon: { imageType: "url", path: "http://localhost:3375/build/assets/img/Finsemble_Taskbar_Icon.png" },
312
+ type: "Application",
313
+ description: "",
314
+ actions: [{ name: "Spawn" }],
315
+ tags: [],
316
+ provider: "System Manager.Installed Components",
317
+ },
318
+ {
319
+ name: "Resizable (HTML5) - Enabled",
320
+ displayName: "Resizable (HTML5) - Enabled",
321
+ score: 0.31000000000000005,
322
+ matches: [
323
+ {
324
+ indices: [
325
+ [1, 1],
326
+ [6, 8],
327
+ [14, 14],
328
+ [20, 20],
329
+ [23, 25],
330
+ ],
331
+ value: "Resizable (HTML5) - Enabled",
332
+ key: "component.displayName",
333
+ },
334
+ {
335
+ indices: [
336
+ [1, 1],
337
+ [6, 8],
338
+ [14, 14],
339
+ [20, 20],
340
+ [23, 25],
341
+ ],
342
+ value: "Resizable (HTML5) - Enabled",
343
+ key: "component.type",
344
+ },
345
+ ],
346
+ icon: { imageType: "fonticon", path: "ff-component" },
347
+ type: "Application",
348
+ description: "",
349
+ actions: [{ name: "Spawn" }],
350
+ tags: [],
351
+ provider: "System Manager.Installed Components",
352
+ },
353
+ {
354
+ name: "Resizable (HTML5) - Disabled",
355
+ displayName: "Resizable (HTML5) - Disabled",
356
+ score: 0.31000000000000005,
357
+ matches: [
358
+ {
359
+ indices: [
360
+ [1, 1],
361
+ [6, 8],
362
+ [14, 14],
363
+ [24, 26],
364
+ ],
365
+ value: "Resizable (HTML5) - Disabled",
366
+ key: "component.displayName",
367
+ },
368
+ {
369
+ indices: [
370
+ [1, 1],
371
+ [6, 8],
372
+ [14, 14],
373
+ [24, 26],
374
+ ],
375
+ value: "Resizable (HTML5) - Disabled",
376
+ key: "component.type",
377
+ },
378
+ ],
379
+ icon: { imageType: "fonticon", path: "ff-component" },
380
+ type: "Application",
381
+ description: "",
382
+ actions: [{ name: "Spawn" }],
383
+ tags: [],
384
+ provider: "System Manager.Installed Components",
385
+ },
386
+ {
387
+ name: "Resizable (Native) - Enabled",
388
+ displayName: "Resizable (Native) - Enabled",
389
+ score: 0.31000000000000005,
390
+ matches: [
391
+ {
392
+ indices: [
393
+ [1, 1],
394
+ [6, 8],
395
+ [16, 16],
396
+ [21, 21],
397
+ [24, 26],
398
+ ],
399
+ value: "Resizable (Native) - Enabled",
400
+ key: "component.displayName",
401
+ },
402
+ {
403
+ indices: [
404
+ [1, 1],
405
+ [6, 8],
406
+ [16, 16],
407
+ [21, 21],
408
+ [24, 26],
409
+ ],
410
+ value: "Resizable (Native) - Enabled",
411
+ key: "component.type",
412
+ },
413
+ ],
414
+ icon: { imageType: "url", path: "http://localhost:3375/build/assets/img/Finsemble_Taskbar_Icon.png" },
415
+ type: "Application",
416
+ description: "",
417
+ actions: [{ name: "Spawn" }],
418
+ tags: [],
419
+ provider: "System Manager.Installed Components",
420
+ },
421
+ {
422
+ name: "Resizable (Native) - Disabled",
423
+ displayName: "Resizable (Native) - Disabled",
424
+ score: 0.31000000000000005,
425
+ matches: [
426
+ {
427
+ indices: [
428
+ [1, 1],
429
+ [6, 8],
430
+ [16, 16],
431
+ [25, 27],
432
+ ],
433
+ value: "Resizable (Native) - Disabled",
434
+ key: "component.displayName",
435
+ },
436
+ {
437
+ indices: [
438
+ [1, 1],
439
+ [6, 8],
440
+ [16, 16],
441
+ [25, 27],
442
+ ],
443
+ value: "Resizable (Native) - Disabled",
444
+ key: "component.type",
445
+ },
446
+ ],
447
+ icon: { imageType: "url", path: "http://localhost:3375/build/assets/img/Finsemble_Taskbar_Icon.png" },
448
+ type: "Application",
449
+ description: "",
450
+ actions: [{ name: "Spawn" }],
451
+ tags: [],
452
+ provider: "System Manager.Installed Components",
453
+ },
454
+ ],
455
+ },
456
+ ],
457
+ };
458
+ //# sourceMappingURL=SearchResults.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchResults.stories.js","sourceRoot":"","sources":["../../../src/components/search/SearchResults.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,6BAA6B,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,eAAe;IACd,KAAK,EAAE,sBAAsB;IAC7B,SAAS,EAAE,aAAa;CACxB,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAO,EAAE,EAAE;IAC7D,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,QAAQ,CAAC,a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S,EAAE,KAAK,EAAE,IAAI,EAAE,mEAAmE,EAAE;oBACrG,IAAI,EAAE,aAAa;oBACnB,WAAW,EAAE,EAAE;oBACf,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;oBAC5B,IAAI,EAAE,EAAE;oBACR,QAAQ,EAAE,qCAAqC;iBAC/C;gBACD;oBACC,IAAI,EAAE,+BAA+B;oBACrC,WAAW,EAAE,+BAA+B;oBAC5C,KAAK,EAAE,mBAAmB;oBAC1B,OAAO,EAAE;wBACR;4BACC,OAAO,EAAE;gCACR,CAAC,CAAC,EAAE,CAAC,CAAC;gCACN,CAAC,CAAC,EAAE,CAAC,CAAC;gCACN,CAAC,EAAE,EAAE,EAAE,CAAC;gCACR,CAAC,EAAE,EAAE,EAAE,CAAC;6BACR;4BACD,KAAK,EAAE,+BAA+B;4BACtC,GAAG,EAAE,uBAAuB;yBAC5B;wBACD;4BACC,OAAO,EAAE;gCACR,CAAC,CAAC,EAAE,CAAC,CAAC;gCACN,CAAC,CAAC,EAAE,CAAC,CAAC;gCACN,CAAC,EAAE,EAAE,EAAE,CAAC;gCACR,CAAC,EAAE,EAAE,EAAE,CAAC;6BACR;4BACD,KAAK,EAAE,+BAA+B;4BACtC,GAAG,EAAE,gBAAgB;yBACrB;qBACD;oBACD,IAAI,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,mEAAmE,EAAE;oBACrG,IAAI,EAAE,aAAa;oBACnB,WAAW,EAAE,EAAE;oBACf,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;oBAC5B,IAAI,EAAE,EAAE;oBACR,QAAQ,EAAE,qCAAqC;iBAC/C;aACD;SACD;KACD;CACD,CAAC","sourcesContent":["import React from \"react\";\nimport { SearchResults } from \"./SearchResults\";\nimport { Story } from \"@storybook/react/types-6-0\";\nimport \"../../assets/css/search.css\";\nimport { initFSBL } from \"../common/helpers\";\nimport { FinsembleProvider } from \"../FinsembleProvider\";\nimport { createStore, useDispatch } from \"../../store\";\nimport { SearchActions } from \"../../actions/searchActions\";\n\nexport default {\n\ttitle: \"Search/SearchResults\",\n\tcomponent: SearchResults,\n};\n\nconst DispatcherBlock = ({ results, query, children }: any) => {\n\tconst dispatch = useDispatch();\n\tdispatch(SearchActions.UPDATE_RESULTS(results));\n\tdispatch(SearchActions.UPDATE_QUERY(query));\n\n\treturn children;\n};\n\nconst Template: Story<any> = (args: any) => {\n\tinitFSBL(window);\n\n\treturn (\n\t\t<FinsembleProvider store={createStore()}>\n\t\t\t<DispatcherBlock results={args.results} query={args.query}>\n\t\t\t\t<div role=\"menu\">\n\t\t\t\t\t<SearchResults />\n\t\t\t\t</div>\n\t\t\t</DispatcherBlock>\n\t\t</FinsembleProvider>\n\t);\n};\n\nexport const SomeResults = Template.bind({});\nSomeResults.args = {\n\tquery: \"te\",\n\tresults: [\n\t\t{\n\t\t\tprovider: {\n\t\t\t\tdisplayName: \"Installed Workspaces\",\n\t\t\t\tchannel: \"workspaceService.Installed Workspaces\",\n\t\t\t\tproviderActionCallback: true,\n\t\t\t},\n\t\t\treturnCallback: \"Toolbar-1.Installed Workspaces\",\n\t\t\tsearchId: \"3a5f1c77-d135-4488-8e8d-43b94d469048\",\n\t\t\tdata: [\n\t\t\t\t{\n\t\t\t\t\tscore: 0.02,\n\t\t\t\t\tmatches: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tindices: [\n\t\t\t\t\t\t\t\t[2, 2],\n\t\t\t\t\t\t\t\t[7, 7],\n\t\t\t\t\t\t\t\t[13, 13],\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tvalue: \"auto_afterFeature\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\tname: \"auto_afterFeature\",\n\t\t\t\t\ttype: \"Workspace\",\n\t\t\t\t\tdescription: \"\",\n\t\t\t\t\tactions: [{ name: \"Switch\" }],\n\t\t\t\t\ttags: [],\n\t\t\t\t\tprovider: \"workspaceService.Installed Workspaces\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tscore: 0.13682105473575515,\n\t\t\t\t\tmatches: [{ indices: [[6, 6]], value: \"Default Workspace\" }],\n\t\t\t\t\tname: \"Default Workspace\",\n\t\t\t\t\ttype: \"Workspace\",\n\t\t\t\t\tdescription: \"\",\n\t\t\t\t\tactions: [{ name: \"Switch\" }],\n\t\t\t\t\ttags: [],\n\t\t\t\t\tprovider: \"workspaceService.Installed Workspaces\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tprovider: {\n\t\t\t\tdisplayName: \"Installed Components\",\n\t\t\t\tchannel: \"System Manager.Installed Components\",\n\t\t\t\tproviderActionTitle: null,\n\t\t\t\tproviderActionCallback: true,\n\t\t\t},\n\t\t\treturnCallback: \"Toolbar-1.Installed Components\",\n\t\t\tsearchId: \"3a5f1c77-d135-4488-8e8d-43b94d469048\",\n\t\t\tdata: [\n\t\t\t\t{\n\t\t\t\t\tname: \"Tour\",\n\t\t\t\t\tdisplayName: \"Take a Tour\",\n\t\t\t\t\tscore: 0.000018578044550916993,\n\t\t\t\t\tmatches: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tindices: [\n\t\t\t\t\t\t\t\t[0, 0],\n\t\t\t\t\t\t\t\t[7, 7],\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tvalue: \"Take a Tour\",\n\t\t\t\t\t\t\tkey: \"component.displayName\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{ indices: [[0, 0]], value: \"Tour\", key: \"component.type\" },\n\t\t\t\t\t],\n\t\t\t\t\ticon: { imageType: \"url\", path: \"http://localhost:3375/build/components/tour/take-a-tour.svg\" },\n\t\t\t\t\ttype: \"Application\",\n\t\t\t\t\tdescription: \"\",\n\t\t\t\t\tactions: [{ name: \"Spawn\" }],\n\t\t\t\t\ttags: [],\n\t\t\t\t\tprovider: \"System Manager.Installed Components\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: \"ChartIQ Example App\",\n\t\t\t\t\tdisplayName: \"ChartIQ Example App\",\n\t\t\t\t\tscore: 0.024365606715272055,\n\t\t\t\t\tmatches: [\n\t\t\t\t\t\t{ indices: [[4, 4]], value: \"ChartIQ Example App\", key: \"component.displayName\" },\n\t\t\t\t\t\t{ indices: [[4, 4]], value: \"ChartIQ Example App\", key: \"component.type\" },\n\t\t\t\t\t],\n\t\t\t\t\ticon: { imageType: \"fonticon\", path: \"ff-chart-advanced\" },\n\t\t\t\t\ttype: \"Application\",\n\t\t\t\t\tdescription: \"\",\n\t\t\t\t\tactions: [{ name: \"Spawn\" }],\n\t\t\t\t\ttags: [],\n\t\t\t\t\tprovider: \"System Manager.Installed Components\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: \"AG-Grid Example Blotter\",\n\t\t\t\t\tdisplayName: \"AG-Grid Example Blotter\",\n\t\t\t\t\tscore: 0.14712336702889178,\n\t\t\t\t\tmatches: [\n\t\t\t\t\t\t{ indices: [[19, 20]], value: \"AG-Grid Example Blotter\", key: \"component.displayName\" },\n\t\t\t\t\t\t{ indices: [[19, 20]], value: \"AG-Grid Example Blotter\", key: \"component.type\" },\n\t\t\t\t\t],\n\t\t\t\t\ticon: { imageType: \"url\", path: \"https://assets.finsemble.com/components/ag-grid/ag-grid-logo.png\" },\n\t\t\t\t\ttype: \"Application\",\n\t\t\t\t\tdescription: \"\",\n\t\t\t\t\tactions: [{ name: \"Spawn\" }],\n\t\t\t\t\ttags: [],\n\t\t\t\t\tprovider: \"System Manager.Installed Components\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t],\n};\n\nexport const NoResults = Template.bind({});\nNoResults.args = {\n\tquery: \"test\",\n\tresults: [],\n};\n\nexport const MultiProviderResults = Template.bind({});\nMultiProviderResults.args = {\n\tquery: \"blue\",\n\tresults: [\n\t\t{\n\t\t\tprovider: {\n\t\t\t\tdisplayName: \"Colors\",\n\t\t\t\tchannel: \"colorSearchProviderService.Colors\",\n\t\t\t\tproviderActionTitle: \"Launch Current Color\",\n\t\t\t\tproviderActionCallback: true,\n\t\t\t},\n\t\t\treturnCallback: \"Toolbar-1.Colors\",\n\t\t\tsearchId: \"521d822b-14bc-4fba-94d8-cd6dd2bc559d\",\n\t\t\tdata: [\n\t\t\t\t{\n\t\t\t\t\tname: \"Red\",\n\t\t\t\t\tscore: 100,\n\t\t\t\t\ttype: \"color\",\n\t\t\t\t\tdescription: \"The color Red\",\n\t\t\t\t\tactions: [\n\t\t\t\t\t\t{ name: \"Launch\", colorName: \"Red\", colorHex: \"#FF0000\" },\n\t\t\t\t\t\t{ name: \"Set\", colorName: \"Red\", colorHex: \"#FF0000\" },\n\t\t\t\t\t],\n\t\t\t\t\tprovider: \"colorSearchProviderService.Colors\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: \"Green\",\n\t\t\t\t\tscore: 100,\n\t\t\t\t\ttype: \"color\",\n\t\t\t\t\tdescription: \"The color Green\",\n\t\t\t\t\tactions: [\n\t\t\t\t\t\t{ name: \"Launch\", colorName: \"Green\", colorHex: \"#00FF00\" },\n\t\t\t\t\t\t{ name: \"Set\", colorName: \"Green\", colorHex: \"#00FF00\" },\n\t\t\t\t\t],\n\t\t\t\t\tprovider: \"colorSearchProviderService.Colors\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: \"Blue\",\n\t\t\t\t\tscore: 0,\n\t\t\t\t\ttype: \"color\",\n\t\t\t\t\tdescription: \"The color Blue\",\n\t\t\t\t\tactions: [\n\t\t\t\t\t\t{ name: \"Launch\", colorName: \"Blue\", colorHex: \"#0000FF\" },\n\t\t\t\t\t\t{ name: \"Set\", colorName: \"Blue\", colorHex: \"#0000FF\" },\n\t\t\t\t\t],\n\t\t\t\t\tprovider: \"colorSearchProviderService.Colors\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: \"White\",\n\t\t\t\t\tscore: 100,\n\t\t\t\t\ttype: \"color\",\n\t\t\t\t\tdescription: \"The color White\",\n\t\t\t\t\tactions: [\n\t\t\t\t\t\t{ name: \"Launch\", colorName: \"White\", colorHex: \"#FFFFFF\" },\n\t\t\t\t\t\t{ name: \"Set\", colorName: \"White\", colorHex: \"#FFFFFF\" },\n\t\t\t\t\t],\n\t\t\t\t\tprovider: \"colorSearchProviderService.Colors\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: \"Black\",\n\t\t\t\t\tscore: 100,\n\t\t\t\t\ttype: \"color\",\n\t\t\t\t\tdescription: \"The color Black\",\n\t\t\t\t\tactions: [\n\t\t\t\t\t\t{ name: \"Launch\", colorName: \"Black\", colorHex: \"#000000\" },\n\t\t\t\t\t\t{ name: \"Set\", colorName: \"Black\", colorHex: \"#000000\" },\n\t\t\t\t\t],\n\t\t\t\t\tprovider: \"colorSearchProviderService.Colors\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tprovider: {\n\t\t\t\tdisplayName: \"Installed Components\",\n\t\t\t\tchannel: \"System Manager.Installed Components\",\n\t\t\t\tproviderActionTitle: null,\n\t\t\t\tproviderActionCallback: true,\n\t\t\t},\n\t\t\treturnCallback: \"Toolbar-1.Installed Components\",\n\t\t\tsearchId: \"521d822b-14bc-4fba-94d8-cd6dd2bc559d\",\n\t\t\tdata: [\n\t\t\t\t{\n\t\t\t\t\tname: \"Finsemble WPF DemoTesting\",\n\t\t\t\t\tdisplayName: \"Finsemble WPF DemoTesting\",\n\t\t\t\t\tscore: 0.2588400021066141,\n\t\t\t\t\tmatches: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tindices: [\n\t\t\t\t\t\t\t\t[4, 4],\n\t\t\t\t\t\t\t\t[6, 8],\n\t\t\t\t\t\t\t\t[15, 15],\n\t\t\t\t\t\t\t\t[19, 19],\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tvalue: \"Finsemble WPF DemoTesting\",\n\t\t\t\t\t\t\tkey: \"component.displayName\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tindices: [\n\t\t\t\t\t\t\t\t[4, 4],\n\t\t\t\t\t\t\t\t[6, 8],\n\t\t\t\t\t\t\t\t[15, 15],\n\t\t\t\t\t\t\t\t[19, 19],\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tvalue: \"Finsemble WPF DemoTesting\",\n\t\t\t\t\t\t\tkey: \"component.type\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\ticon: { imageType: \"url\", path: \"http://localhost:3375/build/assets/img/Finsemble_Taskbar_Icon.png\" },\n\t\t\t\t\ttype: \"Application\",\n\t\t\t\t\tdescription: \"\",\n\t\t\t\t\tactions: [{ name: \"Spawn\" }],\n\t\t\t\t\ttags: [],\n\t\t\t\t\tprovider: \"System Manager.Installed Components\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: \"Finsemble WPF Demo\",\n\t\t\t\t\tdisplayName: \"Finsemble WPF Demo\",\n\t\t\t\t\tscore: 0.2588400021066141,\n\t\t\t\t\tmatches: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tindices: [\n\t\t\t\t\t\t\t\t[4, 4],\n\t\t\t\t\t\t\t\t[6, 8],\n\t\t\t\t\t\t\t\t[15, 15],\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tvalue: \"Finsemble WPF Demo\",\n\t\t\t\t\t\t\tkey: \"component.displayName\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tindices: [\n\t\t\t\t\t\t\t\t[4, 4],\n\t\t\t\t\t\t\t\t[6, 8],\n\t\t\t\t\t\t\t\t[15, 15],\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tvalue: \"Finsemble WPF Demo\",\n\t\t\t\t\t\t\tkey: \"component.type\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\ticon: { imageType: \"url\", path: \"http://localhost:3375/build/assets/img/Finsemble_Taskbar_Icon.png\" },\n\t\t\t\t\ttype: \"Application\",\n\t\t\t\t\tdescription: \"\",\n\t\t\t\t\tactions: [{ name: \"Spawn\" }],\n\t\t\t\t\ttags: [],\n\t\t\t\t\tprovider: \"System Manager.Installed Components\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: \"Finsemble WPF Demo Core\",\n\t\t\t\t\tdisplayName: \"Finsemble WPF Demo Core\",\n\t\t\t\t\tscore: 0.31000000000000005,\n\t\t\t\t\tmatches: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tindices: [\n\t\t\t\t\t\t\t\t[4, 4],\n\t\t\t\t\t\t\t\t[6, 8],\n\t\t\t\t\t\t\t\t[15, 15],\n\t\t\t\t\t\t\t\t[22, 22],\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tvalue: \"Finsemble WPF Demo Core\",\n\t\t\t\t\t\t\tkey: \"component.displayName\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tindices: [\n\t\t\t\t\t\t\t\t[4, 4],\n\t\t\t\t\t\t\t\t[6, 8],\n\t\t\t\t\t\t\t\t[15, 15],\n\t\t\t\t\t\t\t\t[22, 22],\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tvalue: \"Finsemble WPF Demo Core\",\n\t\t\t\t\t\t\tkey: \"component.type\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\ticon: { imageType: \"url\", path: \"http://localhost:3375/build/assets/img/Finsemble_Taskbar_Icon.png\" },\n\t\t\t\t\ttype: \"Application\",\n\t\t\t\t\tdescription: \"\",\n\t\t\t\t\tactions: [{ name: \"Spawn\" }],\n\t\t\t\t\ttags: [],\n\t\t\t\t\tprovider: \"System Manager.Installed Components\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: \"Resizable (HTML5) - Enabled\",\n\t\t\t\t\tdisplayName: \"Resizable (HTML5) - Enabled\",\n\t\t\t\t\tscore: 0.31000000000000005,\n\t\t\t\t\tmatches: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tindices: [\n\t\t\t\t\t\t\t\t[1, 1],\n\t\t\t\t\t\t\t\t[6, 8],\n\t\t\t\t\t\t\t\t[14, 14],\n\t\t\t\t\t\t\t\t[20, 20],\n\t\t\t\t\t\t\t\t[23, 25],\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tvalue: \"Resizable (HTML5) - Enabled\",\n\t\t\t\t\t\t\tkey: \"component.displayName\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tindices: [\n\t\t\t\t\t\t\t\t[1, 1],\n\t\t\t\t\t\t\t\t[6, 8],\n\t\t\t\t\t\t\t\t[14, 14],\n\t\t\t\t\t\t\t\t[20, 20],\n\t\t\t\t\t\t\t\t[23, 25],\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tvalue: \"Resizable (HTML5) - Enabled\",\n\t\t\t\t\t\t\tkey: \"component.type\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\ticon: { imageType: \"fonticon\", path: \"ff-component\" },\n\t\t\t\t\ttype: \"Application\",\n\t\t\t\t\tdescription: \"\",\n\t\t\t\t\tactions: [{ name: \"Spawn\" }],\n\t\t\t\t\ttags: [],\n\t\t\t\t\tprovider: \"System Manager.Installed Components\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: \"Resizable (HTML5) - Disabled\",\n\t\t\t\t\tdisplayName: \"Resizable (HTML5) - Disabled\",\n\t\t\t\t\tscore: 0.31000000000000005,\n\t\t\t\t\tmatches: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tindices: [\n\t\t\t\t\t\t\t\t[1, 1],\n\t\t\t\t\t\t\t\t[6, 8],\n\t\t\t\t\t\t\t\t[14, 14],\n\t\t\t\t\t\t\t\t[24, 26],\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tvalue: \"Resizable (HTML5) - Disabled\",\n\t\t\t\t\t\t\tkey: \"component.displayName\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tindices: [\n\t\t\t\t\t\t\t\t[1, 1],\n\t\t\t\t\t\t\t\t[6, 8],\n\t\t\t\t\t\t\t\t[14, 14],\n\t\t\t\t\t\t\t\t[24, 26],\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tvalue: \"Resizable (HTML5) - Disabled\",\n\t\t\t\t\t\t\tkey: \"component.type\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\ticon: { imageType: \"fonticon\", path: \"ff-component\" },\n\t\t\t\t\ttype: \"Application\",\n\t\t\t\t\tdescription: \"\",\n\t\t\t\t\tactions: [{ name: \"Spawn\" }],\n\t\t\t\t\ttags: [],\n\t\t\t\t\tprovider: \"System Manager.Installed Components\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: \"Resizable (Native) - Enabled\",\n\t\t\t\t\tdisplayName: \"Resizable (Native) - Enabled\",\n\t\t\t\t\tscore: 0.31000000000000005,\n\t\t\t\t\tmatches: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tindices: [\n\t\t\t\t\t\t\t\t[1, 1],\n\t\t\t\t\t\t\t\t[6, 8],\n\t\t\t\t\t\t\t\t[16, 16],\n\t\t\t\t\t\t\t\t[21, 21],\n\t\t\t\t\t\t\t\t[24, 26],\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tvalue: \"Resizable (Native) - Enabled\",\n\t\t\t\t\t\t\tkey: \"component.displayName\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tindices: [\n\t\t\t\t\t\t\t\t[1, 1],\n\t\t\t\t\t\t\t\t[6, 8],\n\t\t\t\t\t\t\t\t[16, 16],\n\t\t\t\t\t\t\t\t[21, 21],\n\t\t\t\t\t\t\t\t[24, 26],\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tvalue: \"Resizable (Native) - Enabled\",\n\t\t\t\t\t\t\tkey: \"component.type\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\ticon: { imageType: \"url\", path: \"http://localhost:3375/build/assets/img/Finsemble_Taskbar_Icon.png\" },\n\t\t\t\t\ttype: \"Application\",\n\t\t\t\t\tdescription: \"\",\n\t\t\t\t\tactions: [{ name: \"Spawn\" }],\n\t\t\t\t\ttags: [],\n\t\t\t\t\tprovider: \"System Manager.Installed Components\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: \"Resizable (Native) - Disabled\",\n\t\t\t\t\tdisplayName: \"Resizable (Native) - Disabled\",\n\t\t\t\t\tscore: 0.31000000000000005,\n\t\t\t\t\tmatches: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tindices: [\n\t\t\t\t\t\t\t\t[1, 1],\n\t\t\t\t\t\t\t\t[6, 8],\n\t\t\t\t\t\t\t\t[16, 16],\n\t\t\t\t\t\t\t\t[25, 27],\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tvalue: \"Resizable (Native) - Disabled\",\n\t\t\t\t\t\t\tkey: \"component.displayName\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tindices: [\n\t\t\t\t\t\t\t\t[1, 1],\n\t\t\t\t\t\t\t\t[6, 8],\n\t\t\t\t\t\t\t\t[16, 16],\n\t\t\t\t\t\t\t\t[25, 27],\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tvalue: \"Resizable (Native) - Disabled\",\n\t\t\t\t\t\t\tkey: \"component.type\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\ticon: { imageType: \"url\", path: \"http://localhost:3375/build/assets/img/Finsemble_Taskbar_Icon.png\" },\n\t\t\t\t\ttype: \"Application\",\n\t\t\t\t\tdescription: \"\",\n\t\t\t\t\tactions: [{ name: \"Spawn\" }],\n\t\t\t\t\ttags: [],\n\t\t\t\t\tprovider: \"System Manager.Installed Components\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t],\n};\n"]}
@@ -9,8 +9,8 @@ export default {
9
9
  const Template = (args) => {
10
10
  initFSBL(window);
11
11
  if (args._data) {
12
- FSBL.Clients.DialogManager.registerDialogCallback = (cb) => {
13
- cb("", { data: args._data });
12
+ FSBL.Clients.DialogManager.registerDialogCallback = async (cb) => {
13
+ cb === null || cb === void 0 ? void 0 : cb("", { data: args._data });
14
14
  };
15
15
  }
16
16
  return React.createElement(SingleInputDialog, Object.assign({}, args));
@@ -1 +1 @@
1
- {"version":3,"file":"SingleInputDialog.stories.js","sourceRoot":"","sources":["../../../src/components/singleInputDialog/SingleInputDialog.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,8BAA8B,CAAC;AAEtC,eAAe;IACd,KAAK,EAAE,qCAAqC;IAC5C,SAAS,EAAE,iBAAiB;CAC5B,CAAC;AAEF,MAAM,QAAQ,GAAc,CAAC,IAAS,EAAE,EAAE;IACzC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAEjB,IAAI,IAAI,CAAC,KAAK,EAAE;QACf,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,sBAAsB,GAAG,CAAC,EAAY,EAAE,EAAE;YACpE,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;QAC9B,CAAC,CAAC;KACF;IAED,OAAO,oBAAC,iBAAiB,oBAAK,IAAI,EAAI,CAAC;AACxC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAEvC,MAAM,CAAC,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACvC,KAAK,CA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leInputDialog } from \"./SingleInputDialog\";\nimport { initFSBL } from \"../common/helpers\";\nimport { Story } from \"@storybook/react/types-6-0\";\nimport \"../../assets/css/dialogs.css\";\n\nexport default {\n\ttitle: \"SingleInputDialog/SingleInputDialog\",\n\tcomponent: SingleInputDialog,\n};\n\nconst Template: Story<{}> = (args: any) => {\n\tinitFSBL(window);\n\n\tif (args._data) {\n\t\tFSBL.Clients.DialogManager.registerDialogCallback = (cb: Function) => {\n\t\t\tcb(\"\", { data: args._data });\n\t\t};\n\t}\n\n\treturn <SingleInputDialog {...args} />;\n};\n\nexport const Empty = Template.bind({});\n\nexport const Basic = Template.bind({});\nBasic.args = {\n\t_data: {\n\t\ttitle: \"Example title\",\n\t\tshowCancelButton: true,\n\t},\n};\n\nexport const CustomButtonLabels = Template.bind({});\nCustomButtonLabels.args = {\n\t_data: {\n\t\tshowCancelButton: true,\n\t\taffirmativeResponseLabel: \"Да\",\n\t\tcancelResponseLabel: \"Отмена\",\n\t},\n};\n\nexport const NoCancelButton = Template.bind({});\nNoCancelButton.args = {\n\t_data: {\n\t\ttitle: \"Example title\",\n\t\tshowCancelButton: false,\n\t},\n};\n\nexport const WithMaxLength = Template.bind({});\nWithMaxLength.args = {\n\t_data: {\n\t\ttitle: \"Max length of 5 characters\",\n\t\tshowCancelButton: true,\n\t\tinputMaxLength: 5,\n\t},\n};\n\nexport const WithInputPattern = Template.bind({});\nWithInputPattern.args = {\n\t_data: {\n\t\ttitle: \"Only input numbers\",\n\t\tshowCancelButton: true,\n\t\tinputPattern: \"^[0-9]+$\",\n\t},\n};\n\nexport const WithInputPlaceholder = Template.bind({});\nWithInputPlaceholder.args = {\n\t_data: {\n\t\ttitle: \"Custom Placeholder\",\n\t\tshowCancelButton: true,\n\t\tinputPlaceholder: \"My placeholder\",\n\t},\n};\n"]}
1
+ {"version":3,"file":"SingleInputDialog.stories.js","sourceRoot":"","sources":["../../../src/components/singleInputDialog/SingleInputDialog.stories.tsx"],"names":[],"mappings":"AAAA,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,CAAC;AAChD,cAAc,CAAC,IAAI,GAAG;IACrB,KAAK,EAAE;QACN,KAAK,EAAE,eAAe;QACtB,gBAAgB,EAAE,KAAK;KACvB;CACD,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC/C,aAAa,CAAC,IAAI,GAAG;IACpB,KAAK,EAAE;QACN,KAAK,EAAE,4BAA4B;QACnC,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,CAAC;KACjB;CACD,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAClD,gBAAgB,CAAC,IAAI,GAAG;IACvB,KAAK,EAAE;QACN,KAAK,EAAE,oBAAoB;QAC3B,gBAAgB,EAAE,IAAI;QACtB,YAAY,EAAE,UAAU;KACxB;CACD,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtD,oBAAoB,CAAC,IAAI,GAAG;IAC3B,KAAK,EAAE;QACN,KAAK,EAAE,oBAAoB;QAC3B,gBAAgB,EAAE,IAAI;QACtB,gBAAgB,EAAE,gBAAgB;KAClC;CACD,CAAC","sourcesContent":["import React from \"react\";\nimport { SingleInputDialog } from \"./SingleInputDialog\";\nimport { initFSBL } from \"../common/helpers\";\nimport { Story } from \"@storybook/react/types-6-0\";\nimport \"../../assets/css/dialogs.css\";\n\nexport default {\n\ttitle: \"SingleInputDialog/SingleInputDialog\",\n\tcomponent: SingleInputDialog,\n};\n\nconst Template: Story<{}> = (args: any) => {\n\tinitFSBL(window);\n\n\tif (args._data) {\n\t\tFSBL.Clients.DialogManager.registerDialogCallback = async (cb: any) => {\n\t\t\tcb?.(\"\", { data: args._data });\n\t\t};\n\t}\n\n\treturn <SingleInputDialog {...args} />;\n};\n\nexport const Empty = Template.bind({});\n\nexport const Basic = Template.bind({});\nBasic.args = {\n\t_data: {\n\t\ttitle: \"Example title\",\n\t\tshowCancelButton: true,\n\t},\n};\n\nexport const CustomButtonLabels = Template.bind({});\nCustomButtonLabels.args = {\n\t_data: {\n\t\tshowCancelButton: true,\n\t\taffirmativeResponseLabel: \"Да\",\n\t\tcancelResponseLabel: \"Отмена\",\n\t},\n};\n\nexport const NoCancelButton = Template.bind({});\nNoCancelButton.args = {\n\t_data: {\n\t\ttitle: \"Example title\",\n\t\tshowCancelButton: false,\n\t},\n};\n\nexport const WithMaxLength = Template.bind({});\nWithMaxLength.args = {\n\t_data: {\n\t\ttitle: \"Max length of 5 characters\",\n\t\tshowCancelButton: true,\n\t\tinputMaxLength: 5,\n\t},\n};\n\nexport const WithInputPattern = Template.bind({});\nWithInputPattern.args = {\n\t_data: {\n\t\ttitle: \"Only input numbers\",\n\t\tshowCancelButton: true,\n\t\tinputPattern: \"^[0-9]+$\",\n\t},\n};\n\nexport const WithInputPlaceholder = Template.bind({});\nWithInputPlaceholder.args = {\n\t_data: {\n\t\ttitle: \"Custom Placeholder\",\n\t\tshowCancelButton: true,\n\t\tinputPlaceholder: \"My placeholder\",\n\t},\n};\n"]}
@@ -5,6 +5,7 @@ import { expect } from "chai";
5
5
  import sinon from "sinon";
6
6
  import { Basic } from "./AutoArrange.stories";
7
7
  import addons, { mockChannel } from "@storybook/addons";
8
+ import { waitTick } from "../sdd/sdd_helpers";
8
9
  addons.setChannel(mockChannel());
9
10
  describe("<AutoArrange/>", () => {
10
11
  afterEach(() => {
@@ -14,34 +15,38 @@ describe("<AutoArrange/>", () => {
14
15
  const wrapper = mount(React.createElement(Basic, Object.assign({}, Basic.args)));
15
16
  expect(wrapper.find("svg").exists()).to.be.true;
16
17
  });
17
- it("should call auto-arrange action when clicked", () => {
18
+ it("should call auto-arrange action when clicked", async () => {
18
19
  const buttonSpy = sinon.spy(Basic.args, "action");
19
20
  const wrapper = mount(React.createElement(Basic, Object.assign({}, Basic.args)));
20
21
  wrapper.find(".finsemble-toolbar-button").first().simulate("click");
22
+ await waitTick();
21
23
  expect(buttonSpy.calledOnce).to.be.true;
22
24
  });
23
- it("should call auto-arrange action when user presses Enter", () => {
25
+ it("should call auto-arrange action when user presses Enter", async () => {
24
26
  const buttonSpy = sinon.spy(Basic.args, "action");
25
27
  const wrapper = mount(React.createElement(Basic, Object.assign({}, Basic.args)));
26
28
  wrapper.find(".finsemble-toolbar-button").first().simulate("keydown", {
27
29
  key: "Enter",
28
30
  });
31
+ await waitTick();
29
32
  expect(buttonSpy.calledOnce).to.be.true;
30
33
  });
31
- it("should call auto-arrange action when user presses Space", () => {
34
+ it("should call auto-arrange action when user presses Space", async () => {
32
35
  const buttonSpy = sinon.spy(Basic.args, "action");
33
36
  const wrapper = mount(React.createElement(Basic, Object.assign({}, Basic.args)));
34
37
  wrapper.find(".finsemble-toolbar-button").first().simulate("keydown", {
35
38
  key: "Space",
36
39
  });
40
+ await waitTick();
37
41
  expect(buttonSpy.calledOnce).to.be.true;
38
42
  });
39
- it("should not call auto-arrange action when user presses a character other than Enter or Space", () => {
43
+ it("should not call auto-arrange action when user presses a character other than Enter or Space", async () => {
40
44
  const buttonSpy = sinon.spy(Basic.args, "action");
41
45
  const wrapper = mount(React.createElement(Basic, Object.assign({}, Basic.args)));
42
46
  wrapper.find(".finsemble-toolbar-button").first().simulate("keydown", {
43
47
  key: "a",
44
48
  });
49
+ await waitTick();
45
50
  expect(buttonSpy.calledOnce).to.be.false;
46
51
  });
47
52
  });