@finsemble/finsemble-ui 6.6.0 → 7.0.0-beta.1

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 (107) hide show
  1. package/package.json +13 -17
  2. package/react/components/common/ColorPicker.js +16 -15
  3. package/react/components/common/ColorPicker.js.map +1 -1
  4. package/react/components/common/FinsembleIcon.d.ts +1 -0
  5. package/react/components/common/FinsembleIcon.js +2 -1
  6. package/react/components/common/FinsembleIcon.js.map +1 -1
  7. package/react/components/common/FinsembleLink.d.ts +6 -0
  8. package/react/components/common/FinsembleLink.js +12 -0
  9. package/react/components/common/FinsembleLink.js.map +1 -0
  10. package/react/components/common/InputTable.d.ts +3 -3
  11. package/react/components/common/InputTable.js +13 -13
  12. package/react/components/common/InputTable.js.map +1 -1
  13. package/react/components/common/css/application-edit-page.css +10 -2
  14. package/react/components/common/helpers.js +6 -1
  15. package/react/components/common/helpers.js.map +1 -1
  16. package/react/components/common/stories/ColorPicker.stories.js +6 -11
  17. package/react/components/common/stories/ColorPicker.stories.js.map +1 -1
  18. package/react/components/common/stories/InputTable.stories.d.ts +4 -3
  19. package/react/components/common/stories/InputTable.stories.js +18 -8
  20. package/react/components/common/stories/InputTable.stories.js.map +1 -1
  21. package/react/components/common/tests/InputTable.spec.js +3 -3
  22. package/react/components/common/tests/InputTable.spec.js.map +1 -1
  23. package/react/components/sdd/AddApp.js +7 -1
  24. package/react/components/sdd/AddApp.js.map +1 -1
  25. package/react/components/sdd/AppEditAccess.d.ts +3 -3
  26. package/react/components/sdd/AppEditAccess.js.map +1 -1
  27. package/react/components/sdd/AppEditPage.d.ts +3 -3
  28. package/react/components/sdd/AppEditPage.js +19 -45
  29. package/react/components/sdd/AppEditPage.js.map +1 -1
  30. package/react/components/sdd/Appearance.d.ts +2 -1
  31. package/react/components/sdd/Appearance.js +15 -7
  32. package/react/components/sdd/Appearance.js.map +1 -1
  33. package/react/components/sdd/Application.d.ts +4 -4
  34. package/react/components/sdd/Application.js +1 -1
  35. package/react/components/sdd/Application.js.map +1 -1
  36. package/react/components/sdd/Applications.d.ts +11 -11
  37. package/react/components/sdd/Applications.js +1 -1
  38. package/react/components/sdd/Applications.js.map +1 -1
  39. package/react/components/sdd/Authentication.js +1 -6
  40. package/react/components/sdd/Authentication.js.map +1 -1
  41. package/react/components/sdd/AuthenticationProviderConfig.js +4 -3
  42. package/react/components/sdd/AuthenticationProviderConfig.js.map +1 -1
  43. package/react/components/sdd/EditPreload.d.ts +3 -3
  44. package/react/components/sdd/EditPreload.js.map +1 -1
  45. package/react/components/sdd/Export.d.ts +6 -6
  46. package/react/components/sdd/Export.js +2 -2
  47. package/react/components/sdd/Export.js.map +1 -1
  48. package/react/components/sdd/GettingStarted.js +2 -2
  49. package/react/components/sdd/GettingStarted.js.map +1 -1
  50. package/react/components/sdd/Navigation.js +1 -1
  51. package/react/components/sdd/Navigation.js.map +1 -1
  52. package/react/components/sdd/OptionalSettingsView.d.ts +5 -5
  53. package/react/components/sdd/OptionalSettingsView.js +2 -10
  54. package/react/components/sdd/OptionalSettingsView.js.map +1 -1
  55. package/react/components/sdd/SmartDesktopDesigner.d.ts +10 -10
  56. package/react/components/sdd/SmartDesktopDesigner.js +26 -27
  57. package/react/components/sdd/SmartDesktopDesigner.js.map +1 -1
  58. package/react/components/sdd/ThemePage.js +8 -5
  59. package/react/components/sdd/ThemePage.js.map +1 -1
  60. package/react/components/sdd/Themes.d.ts +2 -1
  61. package/react/components/sdd/Themes.js +2 -2
  62. package/react/components/sdd/Themes.js.map +1 -1
  63. package/react/components/sdd/Toolbar.d.ts +4 -4
  64. package/react/components/sdd/Toolbar.js +11 -9
  65. package/react/components/sdd/Toolbar.js.map +1 -1
  66. package/react/components/sdd/common/setPreloadDefaults.d.ts +1 -1
  67. package/react/components/sdd/common/setPreloadDefaults.js +4 -4
  68. package/react/components/sdd/common/setPreloadDefaults.js.map +1 -1
  69. package/react/components/sdd/common/views.js +41 -39
  70. package/react/components/sdd/common/views.js.map +1 -1
  71. package/react/components/sdd/fixtures/authenticationProps.js +15 -1
  72. package/react/components/sdd/fixtures/authenticationProps.js.map +1 -1
  73. package/react/components/sdd/fixtures/preloads.js +14 -12
  74. package/react/components/sdd/fixtures/preloads.js.map +1 -1
  75. package/react/components/sdd/stories/AppEditPage.stories.d.ts +1 -0
  76. package/react/components/sdd/stories/AppEditPage.stories.js +1 -0
  77. package/react/components/sdd/stories/AppEditPage.stories.js.map +1 -1
  78. package/react/components/sdd/stories/Appearance.stories.d.ts +1 -1
  79. package/react/components/sdd/stories/Appearance.stories.js +1 -0
  80. package/react/components/sdd/stories/Appearance.stories.js.map +1 -1
  81. package/react/components/sdd/stories/Authentication.stories.js +2 -16
  82. package/react/components/sdd/stories/Authentication.stories.js.map +1 -1
  83. package/react/components/sdd/stories/OptionalSettingsView.stories.js +1 -1
  84. package/react/components/sdd/stories/OptionalSettingsView.stories.js.map +1 -1
  85. package/react/components/sdd/stories/SmartDesktopDesigner.stories.js +3 -0
  86. package/react/components/sdd/stories/SmartDesktopDesigner.stories.js.map +1 -1
  87. package/react/components/sdd/stories/Themes.stories.d.ts +1 -1
  88. package/react/components/sdd/stories/Themes.stories.js +1 -0
  89. package/react/components/sdd/stories/Themes.stories.js.map +1 -1
  90. package/react/components/sdd/tests/AppEditPage.spec.js +36 -5
  91. package/react/components/sdd/tests/AppEditPage.spec.js.map +1 -1
  92. package/react/components/sdd/tests/Authentication.spec.js +1 -1
  93. package/react/components/sdd/tests/Authentication.spec.js.map +1 -1
  94. package/react/components/sdd/tests/EditPreload.spec.js +14 -7
  95. package/react/components/sdd/tests/EditPreload.spec.js.map +1 -1
  96. package/react/components/sdd/tests/OptionalSettingsView.spec.js +235 -0
  97. package/react/components/sdd/tests/OptionalSettingsView.spec.js.map +1 -1
  98. package/react/components/sdd/tests/ProjectErrors.spec.js +1 -1
  99. package/react/components/sdd/tests/ProjectErrors.spec.js.map +1 -1
  100. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.d.ts +1 -16
  101. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js +0 -4
  102. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js.map +1 -1
  103. package/react/components/toolbar/dashbar/Dashbar.js +0 -1
  104. package/react/components/toolbar/dashbar/Dashbar.js.map +1 -1
  105. package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.js +2 -2
  106. package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.js.map +1 -1
  107. package/react/tsconfig.tsbuildinfo +1 -0
@@ -5,6 +5,9 @@ import { createStory } from "../../common/helpers";
5
5
  import views from "../fixtures/views";
6
6
  const DEFAULT_PROPS = {
7
7
  views,
8
+ getTheme: () => new Promise((resolve) => {
9
+ resolve({ err: null, theme: {} });
10
+ }),
8
11
  getConfig: (params, callback) => new Promise(() => {
9
12
  callback(null, {
10
13
  finsemble: {
@@ -1 +1 @@
1
- {"version":3,"file":"SmartDesktopDesigner.stories.js","sourceRoot":"","sources":["../../../../src/components/sdd/stories/SmartDesktopDesigner.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAA6B,MAAM,yBAAyB,CAAC;AAC1F,OAAO,mCAAmC,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,MAAM,mBAAmB,CAAC;AAKtC,MAAM,aAAa,GAAG;IACrB,KAAK;IACL,SAAS,EAAE,CAAC,MAAW,EAAE,QAAa,EAAE,EAAE,CACzC,IAAI,OAAO,CAAoC,GAAG,EAAE;QACnD,QAAQ,CAAC,IAAI,EAAE;YACd,SAAS,EAAE;gBACV,MAAM,EAAE;oBACP,WAAW,EAAE,MAAM;iBACnB;aACD;SACD,CAAC,CAAC;IACJ,CAAC,CAAC;IACH,YAAY,EAAE,GAAG,EAAE,CAAC,IAAI,OAAO,CAAsB,GAAG,EAAE,GAAE,CAAC,CAAC;IAC9D,eAAe,EAAE,GAAG,EAAE,CACrB,IAAI,OAAO,CAAe,CAAC,OAAO,EAAE,EAAE;QACrC,OAAO,CAAC;YACP,OAAO,EAAE,IAAI;YACb,eAAe,EAAE,mBAAmB;YACpC,aAAa,EAAE,EAAE;SACD,CAAC,CAAC;IACpB,CAAC,CAAC;IACH,kBAAkB,EAAE,GAAG,EAAE,CACxB,IAAI,OAAO,CASR,CAAC,OAAO,EAAE,EAAE;QACd,OAAO,CAAC;YACP,QAAQ,EAAE;gBACT,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,0FAA0F;aAChG;YACD,GAAG,EAAE,IAAI;SACT,CAAC,CAAC;IACJ,CAAC,CAAC;IACH,qBAAqB,EAAE,GAAG,EAAE,CAAC,IAAI,OAAO,CAAe,GAAG,EAAE,GAAE,CAAC,CAAC;IAChE,cAAc,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,GAAE,CAAC;IAC9B,iBAAiB,EAAE,GAAG,EAAE,CACvB,IAAI,OAAO,CAAS,CAAC,OAAO,EAAE,EAAE;QAC/B,OAAO,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CAAC;IACH,gBAAgB,EAAE,GAAG,EAAE,GAAE,CAAC;IAC1B,WAAW,EAAE,GAAG,EAAE,CAAC,IAAI,OAAO,CAAM,GAAG,EAAE,GAAE,CAAC,CAAC;CAC7C,CAAC;AAEF,eAAe;IACd,KAAK,EAAE,mCAAmC;IAC1C,SAAS,EAAE,oBAAoB;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,WAAW,CAA4B,oBAAoB,oBAAO,aAAa,EAAG,CAAC","sourcesContent":["import { SmartDesktopDesigner, SmartDesktopDesignerProps } from \"../SmartDesktopDesigner\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../../common/css/styles.css\";\nimport { createStory } from \"../../common/helpers\";\nimport views from \"../fixtures/views\";\nimport { FEA } from \"@finsemble/finsemble-api\";\n\ntype SDServerInfo = FEA.SDServerInfo;\n\nconst DEFAULT_PROPS = {\n\tviews,\n\tgetConfig: (params: any, callback: any) =>\n\t\tnew Promise<{ data: any; err: string | null }>(() => {\n\t\t\tcallback(null, {\n\t\t\t\tfinsemble: {\n\t\t\t\t\tsystem: {\n\t\t\t\t\t\tFSBLVersion: \"test\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t});\n\t\t}),\n\tresetProject: () => new Promise<[Error | null, any]>(() => {}),\n\tgetSDServerInfo: () =>\n\t\tnew Promise<SDServerInfo>((resolve) => {\n\t\t\tresolve({\n\t\t\t\tenabled: true,\n\t\t\t\tapplicationRoot: \"http://localhost/\",\n\t\t\t\tprojectConfig: {},\n\t\t\t} as SDServerInfo);\n\t\t}),\n\tgetProjectSettings: () =>\n\t\tnew Promise<{\n\t\t\tsettings: {\n\t\t\t\tname: string;\n\t\t\t\tpath?: string;\n\t\t\t\tversion?: string;\n\t\t\t\tauthors?: string;\n\t\t\t\tdescription?: string;\n\t\t\t};\n\t\t\terr: any;\n\t\t}>((resolve) => {\n\t\t\tresolve({\n\t\t\t\tsettings: {\n\t\t\t\t\tname: \"default\",\n\t\t\t\t\tpath: \"/Users/administrator/Library/Application Support/Electron/smartDesktops/projects/default\",\n\t\t\t\t},\n\t\t\t\terr: null,\n\t\t\t});\n\t\t}),\n\tupdateProjectSettings: () => new Promise<{ err: any }>(() => {}),\n\tonThemeUpdated: () => () => {},\n\tselectProjectPath: () =>\n\t\tnew Promise<string>((resolve) => {\n\t\t\tresolve(\"/tmp\");\n\t\t}),\n\trestartFinsemble: () => {},\n\tsetDefaults: () => new Promise<any>(() => {}),\n};\n\nexport default {\n\ttitle: \"Components/Smart Desktop Designer\",\n\tcomponent: SmartDesktopDesigner,\n};\n\nexport const DefaultSDD = createStory<SmartDesktopDesignerProps>(SmartDesktopDesigner, { ...DEFAULT_PROPS });\n"]}
1
+ {"version":3,"file":"SmartDesktopDesigner.stories.js","sourceRoot":"","sources":["../../../../src/components/sdd/stories/SmartDesktopDesigner.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAA6B,MAAM,yBAAyB,CAAC;AAC1F,OAAO,mCAAmC,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,MAAM,mBAAmB,CAAC;AAKtC,MAAM,aAAa,GAAG;IACrB,KAAK;IACL,QAAQ,EAAE,GAAG,EAAE,CACd,IAAI,OAAO,CAA+C,CAAC,OAAO,EAAE,EAAE;QACrE,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACnC,CAAC,CAAC;IACH,SAAS,EAAE,CAAC,MAAW,EAAE,QAAa,EAAE,EAAE,CACzC,IAAI,OAAO,CAAoC,GAAG,EAAE;QACnD,QAAQ,CAAC,IAAI,EAAE;YACd,SAAS,EAAE;gBACV,MAAM,EAAE;oBACP,WAAW,EAAE,MAAM;iBACnB;aACD;SACD,CAAC,CAAC;IACJ,CAAC,CAAC;IACH,YAAY,EAAE,GAAG,EAAE,CAAC,IAAI,OAAO,CAAsB,GAAG,EAAE,GAAE,CAAC,CAAC;IAC9D,eAAe,EAAE,GAAG,EAAE,CACrB,IAAI,OAAO,CAAe,CAAC,OAAO,EAAE,EAAE;QACrC,OAAO,CAAC;YACP,OAAO,EAAE,IAAI;YACb,eAAe,EAAE,mBAAmB;YACpC,aAAa,EAAE,EAAE;SACD,CAAC,CAAC;IACpB,CAAC,CAAC;IACH,kBAAkB,EAAE,GAAG,EAAE,CACxB,IAAI,OAAO,CASR,CAAC,OAAO,EAAE,EAAE;QACd,OAAO,CAAC;YACP,QAAQ,EAAE;gBACT,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,0FAA0F;aAChG;YACD,GAAG,EAAE,IAAI;SACT,CAAC,CAAC;IACJ,CAAC,CAAC;IACH,qBAAqB,EAAE,GAAG,EAAE,CAAC,IAAI,OAAO,CAAe,GAAG,EAAE,GAAE,CAAC,CAAC;IAChE,cAAc,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,GAAE,CAAC;IAC9B,iBAAiB,EAAE,GAAG,EAAE,CACvB,IAAI,OAAO,CAAS,CAAC,OAAO,EAAE,EAAE;QAC/B,OAAO,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CAAC;IACH,gBAAgB,EAAE,GAAG,EAAE,GAAE,CAAC;IAC1B,WAAW,EAAE,GAAG,EAAE,CAAC,IAAI,OAAO,CAAM,GAAG,EAAE,GAAE,CAAC,CAAC;CAC7C,CAAC;AAEF,eAAe;IACd,KAAK,EAAE,mCAAmC;IAC1C,SAAS,EAAE,oBAAoB;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,WAAW,CAA4B,oBAAoB,oBAAO,aAAa,EAAG,CAAC","sourcesContent":["import { SmartDesktopDesigner, SmartDesktopDesignerProps } from \"../SmartDesktopDesigner\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../../common/css/styles.css\";\nimport { createStory } from \"../../common/helpers\";\nimport views from \"../fixtures/views\";\nimport { FEA } from \"@finsemble/finsemble-api\";\n\ntype SDServerInfo = FEA.SDServerInfo;\n\nconst DEFAULT_PROPS = {\n\tviews,\n\tgetTheme: () =>\n\t\tnew Promise<{ err: any; theme?: Record<string, string> }>((resolve) => {\n\t\t\tresolve({ err: null, theme: {} });\n\t\t}),\n\tgetConfig: (params: any, callback: any) =>\n\t\tnew Promise<{ data: any; err: string | null }>(() => {\n\t\t\tcallback(null, {\n\t\t\t\tfinsemble: {\n\t\t\t\t\tsystem: {\n\t\t\t\t\t\tFSBLVersion: \"test\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t});\n\t\t}),\n\tresetProject: () => new Promise<[Error | null, any]>(() => {}),\n\tgetSDServerInfo: () =>\n\t\tnew Promise<SDServerInfo>((resolve) => {\n\t\t\tresolve({\n\t\t\t\tenabled: true,\n\t\t\t\tapplicationRoot: \"http://localhost/\",\n\t\t\t\tprojectConfig: {},\n\t\t\t} as SDServerInfo);\n\t\t}),\n\tgetProjectSettings: () =>\n\t\tnew Promise<{\n\t\t\tsettings: {\n\t\t\t\tname: string;\n\t\t\t\tpath?: string;\n\t\t\t\tversion?: string;\n\t\t\t\tauthors?: string;\n\t\t\t\tdescription?: string;\n\t\t\t};\n\t\t\terr: any;\n\t\t}>((resolve) => {\n\t\t\tresolve({\n\t\t\t\tsettings: {\n\t\t\t\t\tname: \"default\",\n\t\t\t\t\tpath: \"/Users/administrator/Library/Application Support/Electron/smartDesktops/projects/default\",\n\t\t\t\t},\n\t\t\t\terr: null,\n\t\t\t});\n\t\t}),\n\tupdateProjectSettings: () => new Promise<{ err: any }>(() => {}),\n\tonThemeUpdated: () => () => {},\n\tselectProjectPath: () =>\n\t\tnew Promise<string>((resolve) => {\n\t\t\tresolve(\"/tmp\");\n\t\t}),\n\trestartFinsemble: () => {},\n\tsetDefaults: () => new Promise<any>(() => {}),\n};\n\nexport default {\n\ttitle: \"Components/Smart Desktop Designer\",\n\tcomponent: SmartDesktopDesigner,\n};\n\nexport const DefaultSDD = createStory<SmartDesktopDesignerProps>(SmartDesktopDesigner, { ...DEFAULT_PROPS });\n"]}
@@ -4,7 +4,7 @@ import "../../../assets/css/finsemble.css";
4
4
  import "../../common/css/styles.css";
5
5
  declare const _default: {
6
6
  title: string;
7
- component: ({ getSDServerInfo, updateProjectSettings, areYouSure, updateThemes, updateSplashScreen, updateToolbarIcon, updateTaskbarIcon, updateSystemTrayIcon, updateInstallerIcon, theme, }: ThemeProps) => JSX.Element;
7
+ component: ({ getSDServerInfo, updateProjectSettings, areYouSure, updateTheme, updateThemes, updateSplashScreen, updateToolbarIcon, updateTaskbarIcon, updateSystemTrayIcon, updateInstallerIcon, theme, }: ThemeProps) => JSX.Element;
8
8
  };
9
9
  export default _default;
10
10
  export declare const Page: import("@storybook/react").Story<ThemeProps>;
@@ -42,6 +42,7 @@ export const Page = createStory(Themes, {
42
42
  areYouSure: (cb) => {
43
43
  cb();
44
44
  },
45
+ updateTheme: () => { },
45
46
  updateThemes: action("updateTheme"),
46
47
  theme: {
47
48
  themes: {
@@ -1 +1 @@
1
- {"version":3,"file":"Themes.stories.js","sourceRoot":"","sources":["../../../../src/components/sdd/stories/Themes.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,WAAW,CAAC;AAC/C,OAAO,mCAAmC,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,eAAe;IACd,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE,MAAM;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,WAAW,CAAa,MAAM,EAAE;IACnD,eAAe,EAAE,CAAC,EAAY,EAAE,EAAE;QACjC,EAAE,CAAC;YACF,eAAe,EAAE,EAAE;YACnB,IAAI,EAAE,EAAE;YACR,IAAI,EAAE;gBACL,SAAS,EAAE,EAAE;gBACb,QAAQ,EAAE,EAAE;gBACZ,OAAO,EAAE,EAAE;gBACX,KAAK,EAAE,EAAE;aACT;YACD,MAAM,EAAE;gBACP,MAAM,EAAE,EAAE;gBACV,WAAW,EAAE,EAAE;gBACf,WAAW,EAAE,EAAE;gBACf,WAAW,EAAE,EAAE;gBACf,aAAa,EAAE,EAAE;gBACjB,WAAW,EAAE,EAAE;gBACf,cAAc,EAAE,EAAE;gBAClB,iBAAiB,EAAE,EAAE;aACrB;SACD,CAAC,CAAC;IACJ,CAAC;IACD,qBAAqB,EAAE,GAAG,EAAE,CAC3B,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC;IAC7B,CAAC,CAAC;IACH,kBAAkB,EAAE,MAAM,CAAC,oBAAoB,CAAC;IAChD,iBAAiB,EAAE,MAAM,CAAC,mBAAmB,CAAC;IAC9C,iBAAiB,EAAE,MAAM,CAAC,mBAAmB,CAAC;IAC9C,oBAAoB,EAAE,MAAM,CAAC,sBAAsB,CAAC;IACpD,mBAAmB,EAAE,MAAM,CAAC,qBAAqB,CAAC;IAClD,UAAU,EAAE,CAAC,EAAY,EAAE,EAAE;QAC5B,EAAE,EAAE,CAAC;IACN,CAAC;IACD,YAAY,EAAE,MAAM,CAAC,aAAa,CAAC;IACnC,KAAK,EAAE;QACN,MAAM,EAAE;YACP,OAAO,EAAE,SAAS;SAClB;KACD;CACD,CAAC,CAAC","sourcesContent":["import { Themes, ThemeProps } from \"../Themes\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../../common/css/styles.css\";\nimport { action } from \"@storybook/addon-actions\";\nimport { darkTheme } from \"../themeDefinitions\";\nimport { createStory } from \"../../common/helpers\";\n\nexport default {\n\ttitle: \"Views/Themes\",\n\tcomponent: Themes,\n};\n\nexport const Page = createStory<ThemeProps>(Themes, {\n\tgetSDServerInfo: (cb: Function) => {\n\t\tcb({\n\t\t\tapplicationRoot: \"\",\n\t\t\tname: \"\",\n\t\t\tuser: {\n\t\t\t\tfirstName: \"\",\n\t\t\t\tlastName: \"\",\n\t\t\t\tcompany: \"\",\n\t\t\t\temail: \"\",\n\t\t\t},\n\t\t\texport: {\n\t\t\t\tauthor: \"\",\n\t\t\t\tcompanyName: \"\",\n\t\t\t\tdescription: \"\",\n\t\t\t\ttoolbarIcon: \"\",\n\t\t\t\tinstallerIcon: \"\",\n\t\t\t\ttaskbarIcon: \"\",\n\t\t\t\tsystemTrayIcon: \"\",\n\t\t\t\tsplashScreenImage: \"\",\n\t\t\t},\n\t\t});\n\t},\n\tupdateProjectSettings: () =>\n\t\tnew Promise((resolve) => {\n\t\t\tresolve({ err: undefined });\n\t\t}),\n\tupdateSplashScreen: action(\"updateSplashScreen\"),\n\tupdateToolbarIcon: action(\"updateToolbarIcon\"),\n\tupdateTaskbarIcon: action(\"updateTaskbarIcon\"),\n\tupdateSystemTrayIcon: action(\"updateSystemTrayIcon\"),\n\tupdateInstallerIcon: action(\"updateInstallerIcon\"),\n\tareYouSure: (cb: Function) => {\n\t\tcb();\n\t},\n\tupdateThemes: action(\"updateTheme\"),\n\ttheme: {\n\t\tthemes: {\n\t\t\tDefault: darkTheme,\n\t\t},\n\t},\n});\n"]}
1
+ {"version":3,"file":"Themes.stories.js","sourceRoot":"","sources":["../../../../src/components/sdd/stories/Themes.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,WAAW,CAAC;AAC/C,OAAO,mCAAmC,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,eAAe;IACd,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE,MAAM;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,WAAW,CAAa,MAAM,EAAE;IACnD,eAAe,EAAE,CAAC,EAAY,EAAE,EAAE;QACjC,EAAE,CAAC;YACF,eAAe,EAAE,EAAE;YACnB,IAAI,EAAE,EAAE;YACR,IAAI,EAAE;gBACL,SAAS,EAAE,EAAE;gBACb,QAAQ,EAAE,EAAE;gBACZ,OAAO,EAAE,EAAE;gBACX,KAAK,EAAE,EAAE;aACT;YACD,MAAM,EAAE;gBACP,MAAM,EAAE,EAAE;gBACV,WAAW,EAAE,EAAE;gBACf,WAAW,EAAE,EAAE;gBACf,WAAW,EAAE,EAAE;gBACf,aAAa,EAAE,EAAE;gBACjB,WAAW,EAAE,EAAE;gBACf,cAAc,EAAE,EAAE;gBAClB,iBAAiB,EAAE,EAAE;aACrB;SACD,CAAC,CAAC;IACJ,CAAC;IACD,qBAAqB,EAAE,GAAG,EAAE,CAC3B,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC;IAC7B,CAAC,CAAC;IACH,kBAAkB,EAAE,MAAM,CAAC,oBAAoB,CAAC;IAChD,iBAAiB,EAAE,MAAM,CAAC,mBAAmB,CAAC;IAC9C,iBAAiB,EAAE,MAAM,CAAC,mBAAmB,CAAC;IAC9C,oBAAoB,EAAE,MAAM,CAAC,sBAAsB,CAAC;IACpD,mBAAmB,EAAE,MAAM,CAAC,qBAAqB,CAAC;IAClD,UAAU,EAAE,CAAC,EAAY,EAAE,EAAE;QAC5B,EAAE,EAAE,CAAC;IACN,CAAC;IACD,WAAW,EAAE,GAAG,EAAE,GAAE,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC,aAAa,CAAC;IACnC,KAAK,EAAE;QACN,MAAM,EAAE;YACP,OAAO,EAAE,SAAS;SAClB;KACD;CACD,CAAC,CAAC","sourcesContent":["import { Themes, ThemeProps } from \"../Themes\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../../common/css/styles.css\";\nimport { action } from \"@storybook/addon-actions\";\nimport { darkTheme } from \"../themeDefinitions\";\nimport { createStory } from \"../../common/helpers\";\n\nexport default {\n\ttitle: \"Views/Themes\",\n\tcomponent: Themes,\n};\n\nexport const Page = createStory<ThemeProps>(Themes, {\n\tgetSDServerInfo: (cb: Function) => {\n\t\tcb({\n\t\t\tapplicationRoot: \"\",\n\t\t\tname: \"\",\n\t\t\tuser: {\n\t\t\t\tfirstName: \"\",\n\t\t\t\tlastName: \"\",\n\t\t\t\tcompany: \"\",\n\t\t\t\temail: \"\",\n\t\t\t},\n\t\t\texport: {\n\t\t\t\tauthor: \"\",\n\t\t\t\tcompanyName: \"\",\n\t\t\t\tdescription: \"\",\n\t\t\t\ttoolbarIcon: \"\",\n\t\t\t\tinstallerIcon: \"\",\n\t\t\t\ttaskbarIcon: \"\",\n\t\t\t\tsystemTrayIcon: \"\",\n\t\t\t\tsplashScreenImage: \"\",\n\t\t\t},\n\t\t});\n\t},\n\tupdateProjectSettings: () =>\n\t\tnew Promise((resolve) => {\n\t\t\tresolve({ err: undefined });\n\t\t}),\n\tupdateSplashScreen: action(\"updateSplashScreen\"),\n\tupdateToolbarIcon: action(\"updateToolbarIcon\"),\n\tupdateTaskbarIcon: action(\"updateTaskbarIcon\"),\n\tupdateSystemTrayIcon: action(\"updateSystemTrayIcon\"),\n\tupdateInstallerIcon: action(\"updateInstallerIcon\"),\n\tareYouSure: (cb: Function) => {\n\t\tcb();\n\t},\n\tupdateTheme: () => {},\n\tupdateThemes: action(\"updateTheme\"),\n\ttheme: {\n\t\tthemes: {\n\t\t\tDefault: darkTheme,\n\t\t},\n\t},\n});\n"]}
@@ -3,7 +3,7 @@ import { mount } from "enzyme";
3
3
  import { afterEach, describe, it } from "mocha";
4
4
  import { expect } from "chai";
5
5
  import sinon from "sinon";
6
- import { Page, EmptyPage, NativePage, PageWithIconURL } from "../stories/AppEditPage.stories";
6
+ import { Page, EmptyPage, NativePage, PageWithIconURL, AssimilationPage } from "../stories/AppEditPage.stories";
7
7
  const defaults = {
8
8
  name: "Test",
9
9
  abstractPosition: 0,
@@ -156,24 +156,55 @@ describe("<AppEditPage/>", () => {
156
156
  expect(buttonSpy.calledOnce).to.be.true;
157
157
  expect(buttonSpy.firstCall.args[0]).to.deep.equal(defaults);
158
158
  });
159
- describe("Web versus native apps", () => {
160
- it("If App type = web, show web-only apps and don't show native-only apps", () => {
159
+ describe("Show/hide sections for types of apps", () => {
160
+ it("Web app type", () => {
161
161
  const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
162
162
  expect(wrapper.contains("App URL")).to.be.true;
163
163
  expect(wrapper.contains("File path")).to.be.false;
164
164
  expect(wrapper.contains("Arguments")).to.be.false;
165
165
  expect(wrapper.contains("API access")).to.be.false;
166
166
  expect(wrapper.contains("Launch timeout")).to.be.false;
167
+ expect(wrapper.find("#accordion-control-select-connect").exists()).to.be.true;
168
+ expect(wrapper.find("#accordion-control-preloads").exists()).to.be.true;
169
+ expect(wrapper.find("#accordion-control-window").exists()).to.be.true;
170
+ expect(wrapper.find("#accordion-control-window-behavior").exists()).to.be.true;
171
+ expect(wrapper.find("#accordion-control-interop").exists()).to.be.true;
172
+ expect(wrapper.find("#accordion-control-component").exists()).to.be.true;
173
+ expect(wrapper.find("#accordion-control-workspace").exists()).to.be.true;
167
174
  expect(wrapper.find("#persist-url").exists()).to.be.true;
168
175
  expect(wrapper.find("#persist-path").exists()).to.be.false;
169
176
  });
170
- it("If App type = native, show native-only apps and don't show web-only apps", () => {
177
+ it("Native app type", () => {
171
178
  const wrapper = mount(React.createElement(NativePage, Object.assign({}, NativePage.args)));
172
179
  expect(wrapper.contains("App URL")).to.be.false;
173
180
  expect(wrapper.contains("File path")).to.be.true;
174
181
  expect(wrapper.contains("Arguments")).to.be.true;
175
182
  expect(wrapper.contains("API access")).to.be.true;
176
183
  expect(wrapper.contains("Launch timeout")).to.be.true;
184
+ expect(wrapper.find("#accordion-control-select-connect").exists()).to.be.true;
185
+ expect(wrapper.find("#accordion-control-preloads").exists()).to.be.false;
186
+ expect(wrapper.find("#accordion-control-window").exists()).to.be.true;
187
+ expect(wrapper.find("#accordion-control-window-behavior").exists()).to.be.false;
188
+ expect(wrapper.find("#accordion-control-interop").exists()).to.be.true;
189
+ expect(wrapper.find("#accordion-control-component").exists()).to.be.true;
190
+ expect(wrapper.find("#accordion-control-workspace").exists()).to.be.true;
191
+ expect(wrapper.find("#persist-url").exists()).to.be.false;
192
+ expect(wrapper.find("#persist-path").exists()).to.be.true;
193
+ });
194
+ it("Assimilation app type", () => {
195
+ const wrapper = mount(React.createElement(AssimilationPage, Object.assign({}, AssimilationPage.args)));
196
+ expect(wrapper.contains("App URL")).to.be.false;
197
+ expect(wrapper.contains("File path")).to.be.true;
198
+ expect(wrapper.contains("Arguments")).to.be.true;
199
+ expect(wrapper.contains("API access")).to.be.true;
200
+ expect(wrapper.contains("Launch timeout")).to.be.false;
201
+ expect(wrapper.find("#accordion-control-select-connect").exists()).to.be.false;
202
+ expect(wrapper.find("#accordion-control-preloads").exists()).to.be.false;
203
+ expect(wrapper.find("#accordion-control-window").exists()).to.be.true;
204
+ expect(wrapper.find("#accordion-control-window-behavior").exists()).to.be.false;
205
+ expect(wrapper.find("#accordion-control-interop").exists()).to.be.false;
206
+ expect(wrapper.find("#accordion-control-component").exists()).to.be.true;
207
+ expect(wrapper.find("#accordion-control-workspace").exists()).to.be.true;
177
208
  expect(wrapper.find("#persist-url").exists()).to.be.false;
178
209
  expect(wrapper.find("#persist-path").exists()).to.be.true;
179
210
  });
@@ -1132,7 +1163,7 @@ describe("<AppEditPage/>", () => {
1132
1163
  });
1133
1164
  });
1134
1165
  describe("Persist the location", () => {
1135
- const label = "Persist the location";
1166
+ const label = "Persist the URL";
1136
1167
  const appDataKey = "persistURL";
1137
1168
  it("should display pre-set value: checked", () => {
1138
1169
  presetCheckbox(appDataKey, label, true, true);