@bexis2/bexis2-core-ui 0.4.96 → 0.4.97

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 (86) hide show
  1. package/README.md +99 -25
  2. package/dist/components/CodeEditor/CodeEditor.svelte +2 -2
  3. package/dist/components/Facets/ShowMore.svelte +4 -6
  4. package/dist/components/File/FileUploader.svelte +6 -3
  5. package/dist/components/Table/Table.svelte +26 -5
  6. package/dist/components/Table/TableContent.svelte +226 -27
  7. package/dist/components/Table/TablePaginationServer.svelte +27 -8
  8. package/dist/components/Table/clientDB.d.ts +22 -0
  9. package/dist/components/Table/clientDB.js +236 -0
  10. package/dist/components/Table/filter.js +5 -1
  11. package/dist/components/Table/tableWorker.d.ts +1 -0
  12. package/dist/components/Table/tableWorker.js +179 -0
  13. package/dist/components/Table/utils.d.ts +1 -2
  14. package/dist/components/Table/utils.js +45 -26
  15. package/dist/components/form/CheckboxKvPList.svelte +15 -15
  16. package/dist/components/form/CheckboxList.svelte +1 -1
  17. package/dist/components/form/DateInput.svelte +12 -1
  18. package/dist/components/form/DatePickerInput.svelte +51 -29
  19. package/dist/components/form/Dropdown.svelte +14 -3
  20. package/dist/components/form/DropdownKvP.svelte +13 -2
  21. package/dist/components/form/InputContainer.svelte +17 -15
  22. package/dist/components/form/MultiSelect.svelte +30 -29
  23. package/dist/components/form/NumberInput.svelte +12 -1
  24. package/dist/components/form/TextArea.svelte +12 -1
  25. package/dist/components/form/TextInput.svelte +12 -1
  26. package/dist/components/page/Alert.svelte +5 -1
  27. package/dist/components/page/BackToTop.svelte +3 -1
  28. package/dist/components/page/Docs.svelte +9 -2
  29. package/dist/components/page/GoToTop.svelte +14 -15
  30. package/dist/components/page/Page.svelte +50 -56
  31. package/dist/components/page/breadcrumb/BreadcrumbDataCaller.js +11 -15
  32. package/dist/components/page/menu/MenuAccountBar.svelte +1 -5
  33. package/dist/components/page/menu/MenuDataCaller.js +1 -1
  34. package/dist/components/page/menu/MenuItem.svelte +9 -7
  35. package/dist/components/page/menu/MenuSublist.svelte +7 -5
  36. package/dist/components/page/menu/SettingsBar.svelte +4 -1
  37. package/dist/components/toggle/Toggle.svelte +9 -9
  38. package/dist/css/core.ui.postcss +1 -2
  39. package/dist/services/Api.js +4 -4
  40. package/dist/services/BaseCaller.js +1 -1
  41. package/package.json +114 -114
  42. package/src/lib/components/CodeEditor/CodeEditor.svelte +4 -4
  43. package/src/lib/components/Facets/Facets.svelte +2 -2
  44. package/src/lib/components/Facets/ShowMore.svelte +4 -6
  45. package/src/lib/components/File/FileUploader.svelte +17 -14
  46. package/src/lib/components/Table/Table.svelte +31 -10
  47. package/src/lib/components/Table/TableContent.svelte +261 -38
  48. package/src/lib/components/Table/TableFilter.svelte +7 -2
  49. package/src/lib/components/Table/TablePagination.svelte +6 -2
  50. package/src/lib/components/Table/TablePaginationServer.svelte +36 -10
  51. package/src/lib/components/Table/clientDB.js +236 -0
  52. package/src/lib/components/Table/filter.ts +27 -23
  53. package/src/lib/components/Table/tableWorker.js +179 -0
  54. package/src/lib/components/Table/utils.ts +75 -56
  55. package/src/lib/components/form/Checkbox.svelte +1 -1
  56. package/src/lib/components/form/CheckboxKvPList.svelte +15 -16
  57. package/src/lib/components/form/CheckboxList.svelte +1 -1
  58. package/src/lib/components/form/DateInput.svelte +13 -2
  59. package/src/lib/components/form/DatePickerInput.svelte +51 -29
  60. package/src/lib/components/form/Dropdown.svelte +14 -3
  61. package/src/lib/components/form/DropdownKvP.svelte +13 -2
  62. package/src/lib/components/form/InputContainer.svelte +18 -17
  63. package/src/lib/components/form/MultiSelect.svelte +30 -29
  64. package/src/lib/components/form/NumberInput.svelte +21 -12
  65. package/src/lib/components/form/TextArea.svelte +13 -2
  66. package/src/lib/components/form/TextInput.svelte +13 -2
  67. package/src/lib/components/page/Alert.svelte +5 -1
  68. package/src/lib/components/page/BackToTop.svelte +3 -1
  69. package/src/lib/components/page/Docs.svelte +9 -2
  70. package/src/lib/components/page/GoToTop.svelte +14 -15
  71. package/src/lib/components/page/Notification.svelte +1 -1
  72. package/src/lib/components/page/Page.svelte +67 -78
  73. package/src/lib/components/page/breadcrumb/Breadcrumb.svelte +2 -3
  74. package/src/lib/components/page/breadcrumb/BreadcrumbDataCaller.js +11 -15
  75. package/src/lib/components/page/menu/MenuAccountBar.svelte +1 -6
  76. package/src/lib/components/page/menu/MenuDataCaller.js +1 -1
  77. package/src/lib/components/page/menu/MenuItem.svelte +10 -8
  78. package/src/lib/components/page/menu/MenuSublist.svelte +35 -41
  79. package/src/lib/components/page/menu/SettingsBar.svelte +5 -2
  80. package/src/lib/components/toggle/Toggle.svelte +28 -30
  81. package/src/lib/css/core.ui.postcss +1 -2
  82. package/src/lib/index.ts +1 -2
  83. package/src/lib/services/Api.ts +21 -20
  84. package/src/lib/services/BaseCaller.js +1 -1
  85. package/src/lib/stores/apiStores.ts +1 -5
  86. package/src/lib/stores/pageStores.ts +0 -2
@@ -33,33 +33,55 @@ if (mode === "datetime") {
33
33
  }
34
34
  </script>
35
35
 
36
- <InputContainer {id} {label} {feedback} {required} {help} {description} {showDescription} {showIcon} on:showDescription on:hideDescription>
37
- <!-- 1. Wrap everything in a relative container so the icon positions against this boundary -->
38
- <div class="relative w-full">
39
-
40
- <SveltyPicker
41
- {mode}
42
- name={label}
43
- {format}
44
- {displayFormat}
45
- {initialDate}
46
- bind:value
47
- on:input
48
- on:change
49
- {disabled}
50
- {placeholder}
51
- manualInput={true}
52
-
53
- inputClasses="input variant-form-material bg-zinc-50 dark:bg-zinc-700 placeholder:text-gray-400 pr-10 {valid ? 'input-success' : ''} {invalid ? 'input-error' : ''}"
54
- />
55
- {#if mode === 'time'}
56
- <Fa icon={faClock} class="absolute inset-y-2 right-0 flex items-center pr-3 pointer-events-none text-gray-400 dark:text-gray-300" />
57
- {:else if mode === 'date' }
58
- <Fa icon={faCalendar} class="absolute inset-y-2 right-0 flex items-center pr-3 pointer-events-none text-gray-400 dark:text-gray-300" />
59
- {:else if mode === 'datetime'}
60
- <Fa icon={faCalendar} class="absolute inset-y-2 right-5 flex items-center pr-3 pointer-events-none text-gray-400 dark:text-gray-300" />
61
- <Fa icon={faClock} class="absolute inset-y-2 right-0 flex items-center pr-3 pointer-events-none text-gray-400 dark:text-gray-300" />
62
- {/if}
63
- </div>
64
-
36
+ <InputContainer
37
+ {id}
38
+ {label}
39
+ {feedback}
40
+ {required}
41
+ {help}
42
+ {description}
43
+ {showDescription}
44
+ {showIcon}
45
+ on:showDescription
46
+ on:hideDescription
47
+ >
48
+ <!-- 1. Wrap everything in a relative container so the icon positions against this boundary -->
49
+ <div class="relative w-full">
50
+ <SveltyPicker
51
+ {mode}
52
+ name={label}
53
+ {format}
54
+ {displayFormat}
55
+ {initialDate}
56
+ bind:value
57
+ on:input
58
+ on:change
59
+ {disabled}
60
+ {placeholder}
61
+ manualInput={true}
62
+ inputClasses="input variant-form-material bg-zinc-50 dark:bg-zinc-700 placeholder:text-gray-400 pr-10 {valid
63
+ ? 'input-success'
64
+ : ''} {invalid ? 'input-error' : ''}"
65
+ />
66
+ {#if mode === 'time'}
67
+ <Fa
68
+ icon={faClock}
69
+ class="absolute inset-y-2 right-0 flex items-center pr-3 pointer-events-none text-gray-400 dark:text-gray-300"
70
+ />
71
+ {:else if mode === 'date'}
72
+ <Fa
73
+ icon={faCalendar}
74
+ class="absolute inset-y-2 right-0 flex items-center pr-3 pointer-events-none text-gray-400 dark:text-gray-300"
75
+ />
76
+ {:else if mode === 'datetime'}
77
+ <Fa
78
+ icon={faCalendar}
79
+ class="absolute inset-y-2 right-5 flex items-center pr-3 pointer-events-none text-gray-400 dark:text-gray-300"
80
+ />
81
+ <Fa
82
+ icon={faClock}
83
+ class="absolute inset-y-2 right-0 flex items-center pr-3 pointer-events-none text-gray-400 dark:text-gray-300"
84
+ />
85
+ {/if}
86
+ </div>
65
87
  </InputContainer>
@@ -20,16 +20,27 @@
20
20
 
21
21
  function updatedSelectedValue(selection) {
22
22
  if (selection != null) {
23
- selected = selection;
23
+ selected = selection;
24
24
  }
25
25
  }
26
26
 
27
27
  function updatedTarget(value) {
28
- target = value;
28
+ target = value;
29
29
  }
30
30
  </script>
31
31
 
32
- <InputContainer {id} label={title} {feedback} {required} {help} {description} {showDescription} {showIcon} on:showDescription on:hideDescription>
32
+ <InputContainer
33
+ {id}
34
+ label={title}
35
+ {feedback}
36
+ {required}
37
+ {help}
38
+ {description}
39
+ {showDescription}
40
+ {showIcon}
41
+ on:showDescription
42
+ on:hideDescription
43
+ >
33
44
  <select
34
45
  {id}
35
46
  class="select variant-form-material dark:bg-zinc-700 bg-zinc-50 placeholder:text-gray-400"
@@ -11,7 +11,7 @@
11
11
  export let required = false;
12
12
  export let complexTarget = false;
13
13
  export let help = false;
14
- export let description = '';
14
+ export let description = '';
15
15
  export let showDescription = false;
16
16
  export let showIcon = false;
17
17
  $: selected = null;
@@ -38,7 +38,18 @@
38
38
  }
39
39
  </script>
40
40
 
41
- <InputContainer {id} label={title} {feedback} {required} {help} {description} {showDescription} {showIcon} on:showDescription on:hideDescription>
41
+ <InputContainer
42
+ {id}
43
+ label={title}
44
+ {feedback}
45
+ {required}
46
+ {help}
47
+ {description}
48
+ {showDescription}
49
+ {showIcon}
50
+ on:showDescription
51
+ on:hideDescription
52
+ >
42
53
  <select
43
54
  {id}
44
55
  class="select variant-form-material dark:bg-zinc-700 bg-zinc-50 placeholder:text-gray-400"
@@ -36,33 +36,35 @@ export function onMouseOut() {
36
36
  on:focus={onMouseOver}
37
37
  on:mouseout={onMouseOut}
38
38
  on:blur={onMouseOut}
39
- on:focusin={onMouseOver}
40
- on:focusout={onMouseOut}
41
-
39
+ on:focusin={onMouseOver}
40
+ on:focusout={onMouseOut}
42
41
  >
43
- <label class="label w-full flex" for="{id}">
42
+ <label class="label w-full flex" for={id}>
44
43
  <span class="grow"
45
44
  >{label}
46
- {#if required} <span class="text-xs text-red-600">*</span> {/if}
45
+ {#if required}
46
+ <span class="text-xs text-red-600">*</span>
47
+ {/if}
47
48
  </span>
48
49
  {#if description && showIcon}
49
- <button class="badge " on:click={()=>showDescription = !showDescription}><Fa icon={faQuestion} /></button>
50
+ <button class="badge" on:click={() => (showDescription = !showDescription)}
51
+ ><Fa icon={faQuestion} /></button
52
+ >
50
53
  {/if}
51
54
  </label>
52
55
 
53
-
54
56
  {#if description && showDescription}
55
- <div class="card text-sm text-gray-500 p-2 mb-2">{@html description}</div>
57
+ <div class="card text-sm text-gray-500 p-2 mb-2">{@html description}</div>
56
58
  {/if}
57
59
  <slot />
58
60
  <div class="min-h-5">
59
- <span class="text-xs text-error-600 ">
60
- {#if feedback}
61
- <ul>
62
- {#each feedback as message}
63
- <li>{message}</li>
64
- {/each}
65
- </ul>
61
+ <span class="text-xs text-error-600">
62
+ {#if feedback}
63
+ <ul>
64
+ {#each feedback as message}
65
+ <li>{message}</li>
66
+ {/each}
67
+ </ul>
66
68
  {/if}
67
69
  </span>
68
70
  </div>
@@ -32,10 +32,10 @@
32
32
 
33
33
  $: value = '';
34
34
  $: updateTarget(value);
35
- $: target, setValue(target);
35
+ $: (target, setValue(target));
36
36
 
37
37
  let groupBy;
38
- $: groupBy = itemGroup ? (item) => item[itemGroup] : undefined;
38
+ $: groupBy = itemGroup ? (item) => item[itemGroup] : undefined;
39
39
 
40
40
  const dispatch = createEventDispatcher();
41
41
 
@@ -47,8 +47,6 @@
47
47
  return;
48
48
  }
49
49
 
50
-
51
-
52
50
  //console.log('update');
53
51
  //different cases
54
52
  //a) source is complex model is simple return array
@@ -151,28 +149,23 @@
151
149
  if (!isMulti) {
152
150
  //console.log("onmount",complexSource,complexTarget,value,target)
153
151
  if (!complexSource && !complexTarget) {
154
-
155
-
156
- if(groupBy) { // if groupby is set, the value needs to be set as object with label and value, otherwise the select component does not recognize the value
152
+ if (groupBy) {
153
+ // if groupby is set, the value needs to be set as object with label and value, otherwise the select component does not recognize the value
154
+ value = {
155
+ value: t,
156
+ label: t
157
+ };
158
+ } else // if there is no groupby, the value can be set as simple value, otherwise the select component does not recognize the value
159
+ {
160
+ if (t === null || t === undefined || t === '') {
161
+ value = '';
162
+ } else {
157
163
  value = {
158
- value: t,
159
- label: t
160
- };
164
+ value: t,
165
+ label: t
166
+ };
161
167
  }
162
- else // if there is no groupby, the value can be set as simple value, otherwise the select component does not recognize the value
163
- {
164
- if(t === null || t === undefined || t === '') {
165
- value = ''
166
- }
167
- else
168
- {
169
- value = {
170
- value: t,
171
- label: t
172
- };
173
- }
174
- }
175
-
168
+ }
176
169
  }
177
170
 
178
171
  if (complexSource && complexTarget) {
@@ -304,13 +297,22 @@
304
297
  target = '';
305
298
  }
306
299
 
307
- dispatch('clear', e)
308
-
300
+ dispatch('clear', e);
309
301
  }
310
-
311
302
  </script>
312
303
 
313
- <InputContainer {id} label={title} {feedback} {required} {help} {description} {showDescription} {showIcon} on:showDescription on:hideDescription>
304
+ <InputContainer
305
+ {id}
306
+ label={title}
307
+ {feedback}
308
+ {required}
309
+ {help}
310
+ {description}
311
+ {showDescription}
312
+ {showIcon}
313
+ on:showDescription
314
+ on:hideDescription
315
+ >
314
316
  <Select
315
317
  {id}
316
318
  items={source}
@@ -320,7 +322,6 @@
320
322
  multiple={isMulti}
321
323
  bind:value
322
324
  {placeholder}
323
-
324
325
  hasError={invalid}
325
326
  {loading}
326
327
  {clearable}
@@ -24,7 +24,18 @@ $: if (min != void 0 && parseInt(value) < min) {
24
24
  }
25
25
  </script>
26
26
 
27
- <InputContainer {id} {label} {feedback} {required} {help} {description} {showDescription} {showIcon} on:showDescription on:hideDescription>
27
+ <InputContainer
28
+ {id}
29
+ {label}
30
+ {feedback}
31
+ {required}
32
+ {help}
33
+ {description}
34
+ {showDescription}
35
+ {showIcon}
36
+ on:showDescription
37
+ on:hideDescription
38
+ >
28
39
  <input
29
40
  {id}
30
41
  class="input variant-form-material dark:bg-zinc-700 bg-zinc-50 placeholder:text-gray-400"
@@ -14,7 +14,18 @@ export let showDescription = false;
14
14
  export let showIcon = false;
15
15
  </script>
16
16
 
17
- <InputContainer {id} {label} {feedback} {required} {help} {description} {showDescription} {showIcon} on:showDescription on:hideDescription>
17
+ <InputContainer
18
+ {id}
19
+ {label}
20
+ {feedback}
21
+ {required}
22
+ {help}
23
+ {description}
24
+ {showDescription}
25
+ {showIcon}
26
+ on:showDescription
27
+ on:hideDescription
28
+ >
18
29
  <textarea
19
30
  {id}
20
31
  class="textarea variant-form-material dark:bg-zinc-700 bg-zinc-50 placeholder:text-gray-400"
@@ -14,7 +14,18 @@ export let showDescription = false;
14
14
  export let showIcon = false;
15
15
  </script>
16
16
 
17
- <InputContainer {id} {label} {feedback} {required} {help} {description} {showDescription} {showIcon} on:showDescription on:hideDescription>
17
+ <InputContainer
18
+ {id}
19
+ {label}
20
+ {feedback}
21
+ {required}
22
+ {help}
23
+ {description}
24
+ {showDescription}
25
+ {showIcon}
26
+ on:showDescription
27
+ on:hideDescription
28
+ >
18
29
  <input
19
30
  {id}
20
31
  class="input variant-form-material dark:bg-zinc-700 bg-zinc-50 placeholder:text-gray-400"
@@ -27,7 +27,11 @@ $: show = true;
27
27
  <slot name="actions" />
28
28
 
29
29
  {#if deleteBtn}
30
- <button class="btn hover:text-primary-100" title="Close alert" on:click={() => (show = false)}>
30
+ <button
31
+ class="btn hover:text-primary-100"
32
+ title="Close alert"
33
+ on:click={() => (show = false)}
34
+ >
31
35
  <Fa icon={faXmark} />
32
36
  </button>
33
37
  {/if}
@@ -26,5 +26,7 @@
26
26
  <svelte:window on:scroll={handleOnScroll} />
27
27
 
28
28
  <div class="w-full items-center">
29
- <button class="btn ring back-to-top" title="Back to top" on:click={goTop} class:hidden>Back to top</button>
29
+ <button class="btn ring back-to-top" title="Back to top" on:click={goTop} class:hidden
30
+ >Back to top</button
31
+ >
30
32
  </div>
@@ -29,9 +29,16 @@ const noteSettings = {
29
29
  {/if}
30
30
 
31
31
  {#each links as link}
32
- <span role="button" tabindex="0" title={link.label} class="chip variant-soft hover:variant-filled" on:click={() => goTo(link.url, false)} on:keypress={() => goTo(link.url, false)}>
32
+ <span
33
+ role="button"
34
+ tabindex="0"
35
+ title={link.label}
36
+ class="chip variant-soft hover:variant-filled"
37
+ on:click={() => goTo(link.url, false)}
38
+ on:keypress={() => goTo(link.url, false)}
39
+ >
33
40
  <span>
34
- {#if link.label.toLowerCase()=='manual'}
41
+ {#if link.label.toLowerCase() == 'manual'}
35
42
  <Fa icon={faBook} />
36
43
  {:else}
37
44
  {link.label}
@@ -1,26 +1,25 @@
1
1
  <script>
2
+ import Fa from 'svelte-fa';
3
+ import { faAngleUp } from '@fortawesome/free-solid-svg-icons';
2
4
 
3
- import Fa from 'svelte-fa';
4
- import { faAngleUp } from '@fortawesome/free-solid-svg-icons';
5
+ export let showAtPixel = 1000;
5
6
 
6
- export let showAtPixel = 1000;
7
+ let scrollHeight = 0;
7
8
 
8
- let scrollHeight = 0;
9
+ const gotoTop = () => {
10
+ window.scrollTo({ top: 0, behavior: 'smooth' });
11
+ };
9
12
 
10
- const gotoTop = () => {
11
- window.scrollTo({ top: 0, behavior: 'smooth' })
12
- };
13
-
14
- $: showGotoTop = scrollHeight > showAtPixel;
13
+ $: showGotoTop = scrollHeight > showAtPixel;
15
14
  </script>
16
15
 
17
16
  {#if showGotoTop}
18
- <button
19
- id="gotToTop"
20
- title="Go to top"
21
- class="btn variant-filled-warning fixed bottom-5 right-20 shadow-md"
22
- on:click={gotoTop}
23
- ><Fa icon={faAngleUp}/></button >
17
+ <button
18
+ id="gotToTop"
19
+ title="Go to top"
20
+ class="btn variant-filled-warning fixed bottom-5 right-20 shadow-md"
21
+ on:click={gotoTop}><Fa icon={faAngleUp} /></button
22
+ >
24
23
  {/if}
25
24
 
26
25
  <svelte:window bind:scrollY={scrollHeight} />
@@ -50,70 +50,64 @@ function scrollToTop() {
50
50
  </script>
51
51
 
52
52
  <div class="app" bind:this={app}>
53
- <AppShell>
54
- <!--header-->
55
- <svelte:fragment slot="header">
56
- <AppBar padding="0" spacing="space-y-0" background="white">
57
- <svelte:fragment slot="headline">
58
- <Header />
59
- {#if true}
60
- <Menu />
61
- {/if}
62
-
63
- <div class="grid grid-cols-2">
64
- <Breadcrumb bind:title />
65
- <Docs {links} {note} />
66
- </div>
67
- </svelte:fragment>
68
- </AppBar>
69
- </svelte:fragment>
53
+ <AppShell>
54
+ <!--header-->
55
+ <svelte:fragment slot="header">
56
+ <AppBar padding="0" spacing="space-y-0" background="white">
57
+ <svelte:fragment slot="headline">
58
+ <Header />
59
+ {#if true}
60
+ <Menu />
61
+ {/if}
70
62
 
71
- <slot name="description" />
63
+ <div class="grid grid-cols-2">
64
+ <Breadcrumb bind:title />
65
+ <Docs {links} {note} />
66
+ </div>
67
+ </svelte:fragment>
68
+ </AppBar>
69
+ </svelte:fragment>
72
70
 
73
- {#if aftIsReady}
71
+ <slot name="description" />
74
72
 
75
- <div class="flex flex-initial space-x-5">
76
- {#if $$slots.left}
77
- <div class="p-5 flex-shrink-0 w-96 w-min-96 border-y border-solid border-surface-500">
78
- <slot name="left" />
79
- </div>
80
- {/if}
73
+ {#if aftIsReady}
74
+ <div class="flex flex-initial space-x-5">
75
+ {#if $$slots.left}
76
+ <div class="p-5 flex-shrink-0 w-96 w-min-96 border-y border-solid border-surface-500">
77
+ <slot name="left" />
78
+ </div>
79
+ {/if}
81
80
 
82
- {#if contentLayoutType === pageContentLayoutType.center}
83
- <div class="flex justify-center w-screen">
84
- <div class="w-full max-w-7xl p-5 space-y-5 border-y border-solid border-surface-500">
85
- <slot />
86
- </div>
87
- </div>
88
- {/if}
81
+ {#if contentLayoutType === pageContentLayoutType.center}
82
+ <div class="flex justify-center w-screen">
83
+ <div class="w-full max-w-7xl p-5 space-y-5 border-y border-solid border-surface-500">
84
+ <slot />
85
+ </div>
86
+ </div>
87
+ {/if}
89
88
 
90
- {#if contentLayoutType === pageContentLayoutType.full}
91
- <div class="p-5 space-y-5 border-y border-solid border-surface-500 w-screen">
92
- <slot />
93
- </div>
94
- {/if}
89
+ {#if contentLayoutType === pageContentLayoutType.full}
90
+ <div class="p-5 space-y-5 border-y border-solid border-surface-500 w-screen">
91
+ <slot />
92
+ </div>
93
+ {/if}
95
94
 
96
- {#if $$slots.right}
97
- <div class=" p-5 fixed flex-shrink-0 w-96 border-y border-solid border-surface-500">
98
- <slot name="right" />
95
+ {#if $$slots.right}
96
+ <div class=" p-5 fixed flex-shrink-0 w-96 border-y border-solid border-surface-500">
97
+ <slot name="right" />
98
+ </div>
99
+ {/if}
99
100
  </div>
100
101
  {/if}
101
- </div>
102
-
103
- {/if}
104
-
105
- <GoToTop/>
106
- <HelpPopUp active={help} />
107
- <Notification />
108
-
109
-
110
- <svelte:fragment slot="footer">
111
- {#if footer}
112
- <Footer />
113
- {/if}
114
102
 
115
- </svelte:fragment>
103
+ <GoToTop />
104
+ <HelpPopUp active={help} />
105
+ <Notification />
116
106
 
117
- </AppShell>
107
+ <svelte:fragment slot="footer">
108
+ {#if footer}
109
+ <Footer />
110
+ {/if}
111
+ </svelte:fragment>
112
+ </AppShell>
118
113
  </div>
119
-
@@ -1,19 +1,15 @@
1
1
  import { Api } from '../../../services/Api';
2
2
 
3
3
  export const getApplicationName = async () => {
4
- try
5
- {
6
- const response = await Api.get(`/Home/GetApplicationName`);
4
+ try {
5
+ const response = await Api.get(`/Home/GetApplicationName`);
7
6
 
8
- if(response.status == 200)
9
- {
10
- return response.data;
11
- }
12
- else
13
- {
14
- return "BEXIS2";
15
- }
16
- } catch (error) {
17
- return "BEXIS2"
18
- }
19
- }
7
+ if (response.status == 200) {
8
+ return response.data;
9
+ } else {
10
+ return 'BEXIS2';
11
+ }
12
+ } catch (error) {
13
+ return 'BEXIS2';
14
+ }
15
+ };
@@ -8,12 +8,8 @@ let comboboxValue;
8
8
 
9
9
  {#if menuBar}
10
10
  <div class="h-full place-self-center sm:flex gap-2 w-full sm:w-auto">
11
-
12
11
  {#each menuBar as menubarItem}
13
-
14
- <Item {menubarItem} {comboboxValue} />
15
-
12
+ <Item {menubarItem} {comboboxValue} />
16
13
  {/each}
17
-
18
14
  </div>
19
15
  {/if}
@@ -3,7 +3,7 @@ import { Api } from '../../../services/Api';
3
3
  export const getMenuItems = async () => {
4
4
  try {
5
5
  const response = await Api.get('/menu');
6
-
6
+
7
7
  return response.data;
8
8
  } catch (error) {
9
9
  console.error(error);
@@ -16,10 +16,11 @@ let popupCombobox = {
16
16
 
17
17
  {#if menubarItem.Items.length < 1}
18
18
  <div class="p-2">
19
-
20
- <button id={id+"bt"} class="grid" use:popup={popupCombobox} >
21
- <a class="grid" href={menubarItem.Url} target="{menubarItem.Target}">
22
- <span class="capitalize whitespace-nowrap text-lg hover:text-secondary-500">{comboboxValue ?? menubarItem.Title}</span>
19
+ <button id={id + 'bt'} class="grid" use:popup={popupCombobox}>
20
+ <a class="grid" href={menubarItem.Url} target={menubarItem.Target}>
21
+ <span class="capitalize whitespace-nowrap text-lg hover:text-secondary-500"
22
+ >{comboboxValue ?? menubarItem.Title}</span
23
+ >
23
24
  </a>
24
25
  </button>
25
26
  </div>
@@ -34,12 +35,13 @@ let popupCombobox = {
34
35
  <svelte:fragment slot="content"
35
36
  ><MenuSublist {id} items={menubarItem.Items} /></svelte:fragment
36
37
  >
37
- </AccordionItem
38
- >
38
+ </AccordionItem>
39
39
  </div>
40
40
  <div class="hidden sm:block place-self-center" use:popup={popupCombobox}>
41
41
  <button id={idLabel} class="flex items-center gap-x-1 px-2">
42
- <span class="capitalize text-lg whitespace-nowrap hover:text-secondary-500">{menubarItem.Title}▾</span>
42
+ <span class="capitalize text-lg whitespace-nowrap hover:text-secondary-500"
43
+ >{menubarItem.Title}▾</span
44
+ >
43
45
  </button>
44
46
 
45
47
  <div class="z-50 w-max" data-popup={id}>