@gandalan/weblibs 1.5.13 → 1.5.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/api/fluentRestClient.js +4 -1
- package/index.js +5 -5
- package/package.json +1 -1
- package/ui/Grid.svelte +8 -8
- package/ui/css/app.css +2 -2
- package/ui/index.js +2 -2
package/README.md
CHANGED
package/api/fluentRestClient.js
CHANGED
|
@@ -141,7 +141,10 @@ export function restClient() {
|
|
|
141
141
|
return new Headers({
|
|
142
142
|
...(contentType && { "Content-Type": contentType }),
|
|
143
143
|
...(this.token && { "Authorization": `Bearer ${this.token}` }),
|
|
144
|
-
...(this.userAgent && { "User-Agent": this.userAgent })
|
|
144
|
+
...(this.userAgent && { "User-Agent": this.userAgent }),
|
|
145
|
+
// X-User-Agent: workaround for Chromium bug https://issues.chromium.org/issues/40450316
|
|
146
|
+
...(this.userAgent && { "X-User-Agent": this.userAgent })
|
|
147
|
+
|
|
145
148
|
});
|
|
146
149
|
},
|
|
147
150
|
|
package/index.js
CHANGED
|
@@ -9,7 +9,7 @@ export { fetchEnvConfig } from "./api/fluentEnvUtils";
|
|
|
9
9
|
export { restClient } from "./api/fluentRestClient";
|
|
10
10
|
|
|
11
11
|
// re-export all modules from the ui folder as named exports
|
|
12
|
-
export * from "./ui/index.js";
|
|
12
|
+
// export * from "./ui/index.js";
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @typedef {import("./api/fluentApi").FluentApi} FluentApi
|
|
@@ -20,15 +20,15 @@ export * from "./ui/index.js";
|
|
|
20
20
|
/**
|
|
21
21
|
* @typedef {Object} NeherApp3Module
|
|
22
22
|
* @property {string} moduleName
|
|
23
|
-
* @property {(app: NeherApp3) => void} setup
|
|
23
|
+
* @property {(app: NeherApp3) => void} setup
|
|
24
24
|
* @property {(node : HTMLElement, props : NeherApp3Props) => function} mount Must return an unmount function
|
|
25
25
|
* @property {string?} embedUrl
|
|
26
26
|
* @property {string[]} extraCSS
|
|
27
|
-
* @property {boolean} useShadowDom - If true, the app will be embedded in a shadow DOM. This is required for CSS isolation.
|
|
27
|
+
* @property {boolean} useShadowDom - If true, the app will be embedded in a shadow DOM. This is required for CSS isolation.
|
|
28
28
|
*/
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* @typedef {Object} NeherApp3
|
|
31
|
+
* @typedef {Object} NeherApp3
|
|
32
32
|
* @property {(menuItem : NeherApp3MenuItem) => void} addMenuItem
|
|
33
33
|
* @property {(appModule: NeherApp3Module) => void} addApp
|
|
34
34
|
* @property {(message: string, type? : number, cb? : function) => void} notify - Shows a notification. Type defaults to 0 (info). Callback is optional.
|
|
@@ -40,7 +40,7 @@ export * from "./ui/index.js";
|
|
|
40
40
|
* @property {function} getVarianten
|
|
41
41
|
*/
|
|
42
42
|
|
|
43
|
-
/**
|
|
43
|
+
/**
|
|
44
44
|
* @typedef {Object} NeherApp3MenuItem
|
|
45
45
|
* @property {string} [id] - Unique identifier for the menu item (auto-generated if not provided)
|
|
46
46
|
* @property {boolean} [selected] - Indicates if the menu item is currently selected (managed by the menu system)
|
package/package.json
CHANGED
package/ui/Grid.svelte
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
let {
|
|
3
|
-
data,
|
|
4
|
-
hideCols = [],
|
|
5
|
-
onclick=(row, col) => {},
|
|
6
|
-
dataCell = defaultDataCell,
|
|
7
|
-
headerCell = defaultHeaderCell
|
|
1
|
+
<!-- <script>
|
|
2
|
+
let {
|
|
3
|
+
data,
|
|
4
|
+
hideCols = [],
|
|
5
|
+
onclick=(row, col) => {},
|
|
6
|
+
dataCell = defaultDataCell,
|
|
7
|
+
headerCell = defaultHeaderCell
|
|
8
8
|
} = $props();
|
|
9
9
|
</script>
|
|
10
10
|
|
|
@@ -41,4 +41,4 @@
|
|
|
41
41
|
|
|
42
42
|
{#snippet defaultDataCell(content)}
|
|
43
43
|
{content}
|
|
44
|
-
{/snippet}
|
|
44
|
+
{/snippet} -->
|
package/ui/css/app.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import "tailwindcss";
|
|
1
|
+
/* @import "tailwindcss";
|
|
2
2
|
|
|
3
3
|
h1 { @apply text-2xl font-bold flex items-center; }
|
|
4
4
|
h1 img { @apply pr-3 h-6; }
|
|
@@ -6,4 +6,4 @@ button { @apply bg-gray-200 border border-gray-300 text-black px-2 py-2 rounded-
|
|
|
6
6
|
input { @apply border border-gray-300 text-black px-2 py-2 rounded-md; }
|
|
7
7
|
table { @apply w-full; }
|
|
8
8
|
th { @apply border border-gray-300 p-1 text-left bg-[#868686] text-white font-normal sticky top-0; }
|
|
9
|
-
td { @apply border border-gray-300 text-black p-1; }
|
|
9
|
+
td { @apply border border-gray-300 text-black p-1; } */
|
package/ui/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import Grid from "./Grid.svelte";
|
|
1
|
+
// import Grid from "./Grid.svelte";
|
|
2
2
|
|
|
3
|
-
export { Grid };
|
|
3
|
+
// export { Grid };
|