@lobb-js/studio 0.1.42 → 0.2.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.
- package/dist/components/LlmButton.svelte +1 -2
- package/dist/components/Studio.svelte +1 -2
- package/dist/components/codeEditor.svelte +1 -1
- package/dist/components/createManyButton.svelte +1 -1
- package/dist/components/dataTable/childRecords.svelte +1 -1
- package/dist/components/dataTable/childRecords.svelte.d.ts +1 -1
- package/dist/components/dataTable/dataTable.svelte +2 -3
- package/dist/components/dataTable/dataTable.svelte.d.ts +1 -1
- package/dist/components/dataTable/header.svelte +1 -2
- package/dist/components/dataTable/table.svelte +4 -4
- package/dist/components/dataTable/table.svelte.d.ts +1 -1
- package/dist/components/detailView/create/children.svelte +1 -1
- package/dist/components/detailView/create/createDetailView.svelte +1 -2
- package/dist/components/detailView/create/createManyView.svelte +4 -4
- package/dist/components/detailView/fieldInput.svelte +11 -42
- package/dist/components/detailView/fieldInputReplacement.svelte +7 -7
- package/dist/components/detailView/store.svelte.js +1 -1
- package/dist/components/detailView/update/children.svelte +3 -3
- package/dist/components/detailView/update/updateDetailView.svelte +1 -2
- package/dist/components/diffViewer.svelte +1 -1
- package/dist/components/foreingKeyInput.svelte +2 -2
- package/dist/components/rangeCalendarButton.svelte +10 -10
- package/dist/components/routes/data_model/syncManager.svelte +1 -2
- package/dist/components/routes/workflows/workflows.svelte +1 -2
- package/dist/components/sidebar/sidebar.svelte +1 -1
- package/dist/components/sidebar/sidebarElements.svelte +1 -1
- package/dist/components/singletone.svelte +1 -1
- package/dist/components/ui/input/input.svelte +2 -2
- package/dist/components/ui/range-calendar/range-calendar-day.svelte.d.ts +6 -0
- package/dist/components/ui/select/select-content.svelte +1 -1
- package/dist/components/ui/select/select-trigger.svelte +1 -1
- package/dist/components/ui/textarea/textarea.svelte +1 -1
- package/dist/components/workflowEditor.svelte +1 -2
- package/dist/extensions/extension.types.d.ts +2 -2
- package/dist/extensions/extensionUtils.js +1 -2
- package/dist/index.d.ts +22 -8
- package/dist/index.js +21 -26
- package/dist/store.svelte.d.ts +1 -2
- package/dist/store.svelte.js +2 -2
- package/dist/utils.d.ts +0 -1
- package/dist/utils.js +0 -11
- package/package.json +11 -15
- package/vite-plugins/contextual-lib-alias.js +39 -38
- package/vite-plugins/index.js +0 -2
- package/dist/Lobb.d.ts +0 -30
- package/dist/Lobb.js +0 -358
- package/dist/Studio.svelte +0 -150
- package/dist/Studio.svelte.d.ts +0 -6
- package/vite-plugins/monorepo-import-resolver.js +0 -92
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { lobb } from "
|
|
2
|
+
import { lobb, ctx } from "../store.svelte";
|
|
3
3
|
import { Brain, LoaderIcon, Send } from "lucide-svelte";
|
|
4
4
|
import Button, { type ButtonProps } from "./ui/button/button.svelte";
|
|
5
5
|
import * as Popover from "./ui/popover";
|
|
6
6
|
import Textarea from "./ui/textarea/textarea.svelte";
|
|
7
7
|
import { toast } from "svelte-sonner";
|
|
8
|
-
import { ctx } from "../store.svelte";
|
|
9
8
|
|
|
10
9
|
interface LocalProp {
|
|
11
10
|
value?: any;
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
import { Toaster } from "./ui/sonner";
|
|
3
3
|
import { onMount, onDestroy } from "svelte";
|
|
4
4
|
import { ModeWatcher } from "mode-watcher";
|
|
5
|
-
import { ctx } from "../store.svelte";
|
|
6
|
-
import { lobb } from "..";
|
|
5
|
+
import { lobb, ctx } from "../store.svelte";
|
|
7
6
|
import Header from "./header.svelte";
|
|
8
7
|
import { LoaderCircle, ServerOff } from "lucide-svelte";
|
|
9
8
|
import Dialog from "./confirmationDialog/confirmationDialog.svelte";
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
});
|
|
133
133
|
</script>
|
|
134
134
|
|
|
135
|
-
<div class={cn('resize-y rounded-md border bg-
|
|
135
|
+
<div class={cn('resize-y rounded-md border bg-muted/30 h-60', className)}>
|
|
136
136
|
<div bind:this={editorContainer} class="h-full w-full pl-2" />
|
|
137
137
|
</div>
|
|
138
138
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import Button, { type ButtonProps } from "./ui/button/button.svelte";
|
|
5
5
|
import { toast } from "svelte-sonner";
|
|
6
6
|
import CodeEditor from "./codeEditor.svelte";
|
|
7
|
-
import { lobb } from "
|
|
7
|
+
import { lobb } from "../store.svelte";
|
|
8
8
|
import { calculateDrawerWidth } from "../utils";
|
|
9
9
|
import Drawer from "./drawer.svelte";
|
|
10
10
|
|
|
@@ -2,7 +2,7 @@ interface Props {
|
|
|
2
2
|
collectionName: string;
|
|
3
3
|
recordId: string;
|
|
4
4
|
width: number;
|
|
5
|
-
unifiedBgColor?: "bg-
|
|
5
|
+
unifiedBgColor?: "bg-muted/30" | "bg-background";
|
|
6
6
|
}
|
|
7
7
|
declare const ChildRecords: import("svelte").Component<Props, {}, "">;
|
|
8
8
|
type ChildRecords = ReturnType<typeof ChildRecords>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import _ from "lodash";
|
|
3
|
-
import { lobb } from "
|
|
3
|
+
import { lobb, ctx } from "../../store.svelte";
|
|
4
4
|
import Footer from "./footer.svelte";
|
|
5
5
|
import Header from "./header.svelte";
|
|
6
6
|
import Table, { type TableProps } from "./table.svelte";
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
import ChildRecords from "./childRecords.svelte";
|
|
11
11
|
import FieldCell from "./fieldCell.svelte";
|
|
12
12
|
import Skeleton from "../ui/skeleton/skeleton.svelte";
|
|
13
|
-
import { ctx } from "../../store.svelte";
|
|
14
13
|
import Button from "../ui/button/button.svelte";
|
|
15
14
|
import { showDialog } from "../confirmationDialog/store.svelte";
|
|
16
15
|
import UpdateDetailViewButton from "../detailView/update/updateDetailViewButton.svelte";
|
|
@@ -22,7 +21,7 @@
|
|
|
22
21
|
filter?: any;
|
|
23
22
|
showHeader?: boolean;
|
|
24
23
|
showFooter?: boolean;
|
|
25
|
-
unifiedBgColor?: "bg-
|
|
24
|
+
unifiedBgColor?: "bg-muted/30" | "bg-background";
|
|
26
25
|
showDelete?: boolean;
|
|
27
26
|
tableProps?: Partial<TableProps>;
|
|
28
27
|
headerLeft?: Snippet<[]>;
|
|
@@ -5,7 +5,7 @@ interface Props {
|
|
|
5
5
|
filter?: any;
|
|
6
6
|
showHeader?: boolean;
|
|
7
7
|
showFooter?: boolean;
|
|
8
|
-
unifiedBgColor?: "bg-
|
|
8
|
+
unifiedBgColor?: "bg-muted/30" | "bg-background";
|
|
9
9
|
showDelete?: boolean;
|
|
10
10
|
tableProps?: Partial<TableProps>;
|
|
11
11
|
headerLeft?: Snippet<[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { ctx } from "../../store.svelte";
|
|
2
|
+
import { lobb, ctx } from "../../store.svelte";
|
|
3
3
|
import { ListRestart, Plus, SquareStack, Trash } from "lucide-svelte";
|
|
4
4
|
import LlmButton from "../LlmButton.svelte";
|
|
5
5
|
import FilterButton from "./filterButton.svelte";
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
import Button from "../ui/button/button.svelte";
|
|
8
8
|
import CreateManyButton from "../createManyButton.svelte";
|
|
9
9
|
import { showDialog } from "../confirmationDialog/store.svelte";
|
|
10
|
-
import { lobb } from "../..";
|
|
11
10
|
import CreateDetailViewButton from "../detailView/create/createDetailViewButton.svelte";
|
|
12
11
|
import type { Snippet } from "svelte";
|
|
13
12
|
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
// other
|
|
38
38
|
parentWidth?: number;
|
|
39
|
-
unifiedBgColor?: "bg-
|
|
39
|
+
unifiedBgColor?: "bg-muted/30" | "bg-background";
|
|
40
40
|
select?: Select;
|
|
41
41
|
tableWidth?: number;
|
|
42
42
|
}
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
sticky left-0 top-0 z-20
|
|
180
180
|
flex items-center p-2.5 text-xs h-10
|
|
181
181
|
border-r border-b gap-2
|
|
182
|
-
{unifiedBgColor ? unifiedBgColor : 'bg-
|
|
182
|
+
{unifiedBgColor ? unifiedBgColor : 'bg-muted/30'}
|
|
183
183
|
"
|
|
184
184
|
>
|
|
185
185
|
<!-- collapsable toggle -->
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
class="
|
|
205
205
|
sticky top-0 z-10
|
|
206
206
|
flex items-center p-2.5 text-xs h-10
|
|
207
|
-
{unifiedBgColor ? unifiedBgColor : 'bg-
|
|
207
|
+
{unifiedBgColor ? unifiedBgColor : 'bg-muted/30'}
|
|
208
208
|
{lastColumn && !showLastColumnBorder ? '' : 'border-r'}
|
|
209
209
|
border-b gap-2
|
|
210
210
|
"
|
|
@@ -307,7 +307,7 @@
|
|
|
307
307
|
{expandedRows[index] ? '' : 'height: 0px;'}
|
|
308
308
|
"
|
|
309
309
|
class="
|
|
310
|
-
sticky left-0 top-0 overflow-auto bg-
|
|
310
|
+
sticky left-0 top-0 overflow-auto bg-muted/30
|
|
311
311
|
{unifiedBgColor ? unifiedBgColor : ''}
|
|
312
312
|
{expandedRows[index] ? 'border-t' : ''}
|
|
313
313
|
"
|
|
@@ -22,7 +22,7 @@ export interface TableProps {
|
|
|
22
22
|
tools?: Snippet<[Entry, number]>;
|
|
23
23
|
collapsible?: Snippet<[Entry, number]>;
|
|
24
24
|
parentWidth?: number;
|
|
25
|
-
unifiedBgColor?: "bg-
|
|
25
|
+
unifiedBgColor?: "bg-muted/30" | "bg-background";
|
|
26
26
|
select?: Select;
|
|
27
27
|
tableWidth?: number;
|
|
28
28
|
}
|
|
@@ -19,9 +19,8 @@
|
|
|
19
19
|
<script lang="ts">
|
|
20
20
|
import { ArrowLeft, Plus, X } from "lucide-svelte";
|
|
21
21
|
import Button from "../../ui/button/button.svelte";
|
|
22
|
-
import { lobb } from "
|
|
22
|
+
import { lobb, ctx } from "../../../store.svelte";
|
|
23
23
|
import { toast } from "svelte-sonner";
|
|
24
|
-
import { ctx } from "../../../store.svelte";
|
|
25
24
|
import ExtensionsComponents from "../../extensionsComponents.svelte";
|
|
26
25
|
import { getExtensionUtils } from "../../../extensions/extensionUtils";
|
|
27
26
|
import { getField, getFieldIcon } from "../../dataTable/utils";
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
>
|
|
107
107
|
<div
|
|
108
108
|
class="
|
|
109
|
-
flex items-center justify-between px-2 h-10 bg-
|
|
109
|
+
flex items-center justify-between px-2 h-10 bg-muted/30
|
|
110
110
|
{expanded ? 'border-b' : ''}
|
|
111
111
|
"
|
|
112
112
|
>
|
|
@@ -159,13 +159,13 @@
|
|
|
159
159
|
</div>
|
|
160
160
|
</div>
|
|
161
161
|
{#if expanded}
|
|
162
|
-
<div bind:clientWidth={tableWidth} class="bg-
|
|
162
|
+
<div bind:clientWidth={tableWidth} class="bg-muted/30 overflow-auto">
|
|
163
163
|
<Table
|
|
164
164
|
data={entries}
|
|
165
165
|
{columns}
|
|
166
166
|
selectByColumn="id"
|
|
167
167
|
showCollapsible={doesCollectionHasChildren}
|
|
168
|
-
unifiedBgColor="bg-
|
|
168
|
+
unifiedBgColor="bg-muted/30"
|
|
169
169
|
>
|
|
170
170
|
{#snippet tools(entry, index)}
|
|
171
171
|
<Button
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
{collectionName}
|
|
235
235
|
recordId={entry.id}
|
|
236
236
|
width={tableWidth}
|
|
237
|
-
unifiedBgColor="bg-
|
|
237
|
+
unifiedBgColor="bg-muted/30"
|
|
238
238
|
/>
|
|
239
239
|
{:else}
|
|
240
240
|
<SubRecords
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { ctx } from "../../store.svelte";
|
|
3
|
-
import {
|
|
4
|
-
getDiscriminatorFieldRelation,
|
|
5
|
-
getFieldRelation,
|
|
6
|
-
} from "../../utils";
|
|
3
|
+
import { getFieldRelation } from "../../utils";
|
|
7
4
|
import { Ban, Check, CircleAlert, X } from "lucide-svelte";
|
|
8
5
|
import { getField } from "../dataTable/utils";
|
|
9
6
|
import Button from "../ui/button/button.svelte";
|
|
10
7
|
import FieldCustomInput from "./fieldCustomInput.svelte";
|
|
11
8
|
import Input from "../ui/input/input.svelte";
|
|
12
|
-
import Combobox from "../combobox.svelte";
|
|
13
9
|
import * as Select from "../ui/select/index";
|
|
14
10
|
import Textarea from "../ui/textarea/textarea.svelte";
|
|
15
11
|
import ForeingKeyInput from "../foreingKeyInput.svelte";
|
|
@@ -38,10 +34,6 @@
|
|
|
38
34
|
ctx.meta.collections[collectionName].fields[fieldName].ui;
|
|
39
35
|
const field = getField(fieldName, collectionName);
|
|
40
36
|
const fieldRelation = getFieldRelation(collectionName, fieldName);
|
|
41
|
-
const discriminatorFieldRelation = getDiscriminatorFieldRelation(
|
|
42
|
-
collectionName,
|
|
43
|
-
fieldName,
|
|
44
|
-
);
|
|
45
37
|
const isDisabled = field.key === 'id' || Boolean(ui?.disabled)
|
|
46
38
|
const disabledClasses = "pointer-events-none opacity-50";
|
|
47
39
|
const destructive: boolean = $derived(Boolean(errorMessages.length));
|
|
@@ -74,30 +66,7 @@
|
|
|
74
66
|
{:else if field.label === "id"}
|
|
75
67
|
<Input
|
|
76
68
|
placeholder="AUTO GENERATED"
|
|
77
|
-
class="bg-
|
|
78
|
-
bind:value
|
|
79
|
-
/>
|
|
80
|
-
{:else if discriminatorFieldRelation}
|
|
81
|
-
{@const availableCollections =
|
|
82
|
-
discriminatorFieldRelation.to === "*"
|
|
83
|
-
? Object.keys(ctx.meta.collections)
|
|
84
|
-
: discriminatorFieldRelation.to.map(
|
|
85
|
-
(item: any) => item.collection,
|
|
86
|
-
)}
|
|
87
|
-
{@const collections = availableCollections.map((key: any) => {
|
|
88
|
-
return {
|
|
89
|
-
label: key,
|
|
90
|
-
value: key,
|
|
91
|
-
};
|
|
92
|
-
})}
|
|
93
|
-
<Combobox
|
|
94
|
-
placeholder="NULL"
|
|
95
|
-
searchPlaceholder="Search Collections"
|
|
96
|
-
options={collections}
|
|
97
|
-
buttonClass="
|
|
98
|
-
bg-soft text-muted-foreground px-0 pl-4 pr-8 font-normal
|
|
99
|
-
{destructive ? 'border-destructive bg-destructive/10' : ''}
|
|
100
|
-
"
|
|
69
|
+
class="bg-muted/30 text-xs"
|
|
101
70
|
bind:value
|
|
102
71
|
/>
|
|
103
72
|
{:else if fieldRelation && entry}
|
|
@@ -132,7 +101,7 @@
|
|
|
132
101
|
<Select.Trigger
|
|
133
102
|
placeholder={ui?.placeholder ? ui.placeholder : "NULL"}
|
|
134
103
|
class="
|
|
135
|
-
h-9 w-full bg-
|
|
104
|
+
h-9 w-full bg-muted/30 pr-8
|
|
136
105
|
{destructive ? 'border-destructive bg-destructive/10' : ''}
|
|
137
106
|
"
|
|
138
107
|
>
|
|
@@ -151,7 +120,7 @@
|
|
|
151
120
|
placeholder={ui?.placeholder ? ui.placeholder : "NULL"}
|
|
152
121
|
type="text"
|
|
153
122
|
class="
|
|
154
|
-
bg-
|
|
123
|
+
bg-muted/30 text-xs
|
|
155
124
|
{destructive ? 'border-destructive bg-destructive/10' : ''}
|
|
156
125
|
"
|
|
157
126
|
bind:value
|
|
@@ -162,7 +131,7 @@
|
|
|
162
131
|
placeholder={ui?.placeholder ? ui.placeholder : value === "" ? "EMPTY STRING" : "NULL"}
|
|
163
132
|
rows={5}
|
|
164
133
|
class="
|
|
165
|
-
bg-
|
|
134
|
+
bg-muted/30 text-xs
|
|
166
135
|
{destructive ? 'border-destructive bg-destructive/10' : ''}
|
|
167
136
|
"
|
|
168
137
|
bind:value
|
|
@@ -172,7 +141,7 @@
|
|
|
172
141
|
type="date"
|
|
173
142
|
placeholder={ui?.placeholder ? ui.placeholder : "NULL"}
|
|
174
143
|
class="
|
|
175
|
-
dateInput block w-full bg-
|
|
144
|
+
dateInput block w-full bg-muted/30 pr-9 text-xs
|
|
176
145
|
{destructive ? 'border-destructive bg-destructive/10' : ''}
|
|
177
146
|
"
|
|
178
147
|
bind:value={
|
|
@@ -191,7 +160,7 @@
|
|
|
191
160
|
type="time"
|
|
192
161
|
placeholder={ui?.placeholder ? ui.placeholder : "NULL"}
|
|
193
162
|
class="
|
|
194
|
-
dateInput block w-full bg-
|
|
163
|
+
dateInput block w-full bg-muted/30 pr-9 text-xs
|
|
195
164
|
{destructive ? 'border-destructive bg-destructive/10' : ''}
|
|
196
165
|
"
|
|
197
166
|
bind:value={
|
|
@@ -209,7 +178,7 @@
|
|
|
209
178
|
type="datetime-local"
|
|
210
179
|
placeholder={ui?.placeholder ? ui.placeholder : "NULL"}
|
|
211
180
|
class="
|
|
212
|
-
dateInput block w-full bg-
|
|
181
|
+
dateInput block w-full bg-muted/30 pr-9 text-xs
|
|
213
182
|
{destructive ? 'border-destructive bg-destructive/10' : ''}
|
|
214
183
|
"
|
|
215
184
|
bind:value={
|
|
@@ -230,7 +199,7 @@
|
|
|
230
199
|
<Select.Trigger
|
|
231
200
|
placeholder={ui?.placeholder ? ui.placeholder : "NULL"}
|
|
232
201
|
class="
|
|
233
|
-
bg-
|
|
202
|
+
bg-muted/30 pr-9
|
|
234
203
|
{destructive ? 'border-destructive bg-destructive/10' : ''}
|
|
235
204
|
"
|
|
236
205
|
>
|
|
@@ -257,7 +226,7 @@
|
|
|
257
226
|
type="number"
|
|
258
227
|
step="any"
|
|
259
228
|
class="
|
|
260
|
-
bg-
|
|
229
|
+
bg-muted/30 text-xs
|
|
261
230
|
{destructive ? 'border-destructive bg-destructive/10' : ''}
|
|
262
231
|
"
|
|
263
232
|
bind:value
|
|
@@ -267,7 +236,7 @@
|
|
|
267
236
|
placeholder={ui?.placeholder ? ui.placeholder : "NULL"}
|
|
268
237
|
type="number"
|
|
269
238
|
class="
|
|
270
|
-
bg-
|
|
239
|
+
bg-muted/30 text-xs
|
|
271
240
|
{destructive ? 'border-destructive bg-destructive/10' : ''}
|
|
272
241
|
"
|
|
273
242
|
bind:value
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
placeholder={field.placeholder ? field.placeholder : "NULL"}
|
|
50
50
|
type="text"
|
|
51
51
|
class="
|
|
52
|
-
bg-
|
|
52
|
+
bg-muted/30 text-xs
|
|
53
53
|
{destructive ? 'border-destructive bg-destructive/10' : ''}
|
|
54
54
|
"
|
|
55
55
|
bind:value
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
<Select.Trigger
|
|
65
65
|
placeholder={field.placeholder ? field.placeholder : "NULL"}
|
|
66
66
|
class="
|
|
67
|
-
h-9 w-full bg-
|
|
67
|
+
h-9 w-full bg-muted/30 pr-8
|
|
68
68
|
{destructive ? 'border-destructive bg-destructive/10' : ''}
|
|
69
69
|
"
|
|
70
70
|
>
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
placeholder={field.placeholder ? field.placeholder : value === "" ? "EMPTY STRING" : "NULL"}
|
|
85
85
|
rows={5}
|
|
86
86
|
class="
|
|
87
|
-
bg-
|
|
87
|
+
bg-muted/30 text-xs
|
|
88
88
|
{destructive ? 'border-destructive bg-destructive/10' : ''}
|
|
89
89
|
"
|
|
90
90
|
bind:value
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
<Input
|
|
99
99
|
type="date"
|
|
100
100
|
class="
|
|
101
|
-
dateInput block w-full bg-
|
|
101
|
+
dateInput block w-full bg-muted/30 pr-9 text-xs
|
|
102
102
|
{destructive ? 'border-destructive bg-destructive/10' : ''}
|
|
103
103
|
"
|
|
104
104
|
bind:value={
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<Input
|
|
117
117
|
type="time"
|
|
118
118
|
class="
|
|
119
|
-
dateInput block w-full bg-
|
|
119
|
+
dateInput block w-full bg-muted/30 pr-9 text-xs
|
|
120
120
|
{destructive ? 'border-destructive bg-destructive/10' : ''}
|
|
121
121
|
"
|
|
122
122
|
bind:value={
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
<Input
|
|
134
134
|
type="datetime-local"
|
|
135
135
|
class="
|
|
136
|
-
dateInput block w-full bg-
|
|
136
|
+
dateInput block w-full bg-muted/30 pr-9 text-xs
|
|
137
137
|
{destructive ? 'border-destructive bg-destructive/10' : ''}
|
|
138
138
|
"
|
|
139
139
|
bind:value={
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
<Select.Root type="single" bind:value>
|
|
155
155
|
<Select.Trigger
|
|
156
156
|
class="
|
|
157
|
-
bg-
|
|
157
|
+
bg-muted/30 pr-9
|
|
158
158
|
{destructive ? 'border-destructive bg-destructive/10' : ''}
|
|
159
159
|
"
|
|
160
160
|
>
|
|
@@ -47,7 +47,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47
47
|
};
|
|
48
48
|
import CreateDetailView from "./create/createDetailView.svelte";
|
|
49
49
|
import UpdateDetailView from "./update/updateDetailView.svelte";
|
|
50
|
-
import { lobb } from "
|
|
50
|
+
import { lobb } from "../../store.svelte";
|
|
51
51
|
import { getCollectionParamsFields } from "../dataTable/utils";
|
|
52
52
|
import { mount, unmount } from "svelte";
|
|
53
53
|
export function openCreateDetailView(props) {
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
filter={{
|
|
39
39
|
[childField]: entry.id,
|
|
40
40
|
}}
|
|
41
|
-
class="bg-
|
|
41
|
+
class="bg-muted/30 border rounded-md overflow-hidden"
|
|
42
42
|
>
|
|
43
43
|
<div class="border rounded-md overflow-clip">
|
|
44
44
|
<div
|
|
45
|
-
class="flex items-center justify-between px-2 h-10 bg-
|
|
45
|
+
class="flex items-center justify-between px-2 h-10 bg-muted/30 border-b"
|
|
46
46
|
>
|
|
47
47
|
<div class="flex-1 flex h-full items-center gap-2">
|
|
48
48
|
<TableIcon
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
filter={{
|
|
75
75
|
[childField]: entry.id,
|
|
76
76
|
}}
|
|
77
|
-
unifiedBgColor="bg-
|
|
77
|
+
unifiedBgColor="bg-muted/30"
|
|
78
78
|
showHeader={false}
|
|
79
79
|
showFooter={false}
|
|
80
80
|
showDelete={true}
|
|
@@ -21,9 +21,8 @@
|
|
|
21
21
|
import { ArrowLeft, Pencil, X } from "lucide-svelte";
|
|
22
22
|
import Button from "../../ui/button/button.svelte";
|
|
23
23
|
import { fade, fly } from "svelte/transition";
|
|
24
|
-
import { lobb } from "
|
|
24
|
+
import { lobb, ctx } from "../../../store.svelte";
|
|
25
25
|
import { toast } from "svelte-sonner";
|
|
26
|
-
import { ctx } from "../../../store.svelte";
|
|
27
26
|
import ExtensionsComponents from "../../extensionsComponents.svelte";
|
|
28
27
|
import { getExtensionUtils } from "../../../extensions/extensionUtils";
|
|
29
28
|
import { calculateDrawerWidth, getChangedProperties } from "../../../utils";
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
});
|
|
97
97
|
</script>
|
|
98
98
|
|
|
99
|
-
<div class={cn("w-full resize-y rounded-md border bg-
|
|
99
|
+
<div class={cn("w-full resize-y rounded-md border bg-muted/30 shadow-sm", className)}>
|
|
100
100
|
<div
|
|
101
101
|
bind:this={editorContainer}
|
|
102
102
|
class="editor pl-2"
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
placeholder={"NULL"}
|
|
64
64
|
type="number"
|
|
65
65
|
class="
|
|
66
|
-
bg-
|
|
66
|
+
bg-muted/30 text-xs
|
|
67
67
|
{destructive ? 'border-destructive bg-destructive/10' : ''}
|
|
68
68
|
"
|
|
69
69
|
bind:value={() => refrenceId, (v) => (value.id = v)}
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
<div class="relative z-10">
|
|
74
74
|
<Input
|
|
75
75
|
placeholder={"PARENT ID"}
|
|
76
|
-
class="bg-
|
|
76
|
+
class="bg-muted/30 text-xs"
|
|
77
77
|
disabled={true}
|
|
78
78
|
/>
|
|
79
79
|
</div>
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
class="flex flex-col overflow-hidden text-muted-foreground"
|
|
60
60
|
>
|
|
61
61
|
<button
|
|
62
|
-
class="text-start text-sm py-2 px-2 hover:bg-
|
|
62
|
+
class="text-start text-sm py-2 px-2 hover:bg-muted/30 hover:text-primary"
|
|
63
63
|
onclick={() => {
|
|
64
64
|
const currentDate = today(getLocalTimeZone());
|
|
65
65
|
value = {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
Today
|
|
72
72
|
</button>
|
|
73
73
|
<button
|
|
74
|
-
class="text-start text-sm py-2 px-2 hover:bg-
|
|
74
|
+
class="text-start text-sm py-2 px-2 hover:bg-muted/30 hover:text-primary"
|
|
75
75
|
onclick={() => {
|
|
76
76
|
const currentDate = today(getLocalTimeZone());
|
|
77
77
|
value = {
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
Yesterday
|
|
84
84
|
</button>
|
|
85
85
|
<button
|
|
86
|
-
class="text-start text-sm py-2 px-2 hover:bg-
|
|
86
|
+
class="text-start text-sm py-2 px-2 hover:bg-muted/30 hover:text-primary"
|
|
87
87
|
onclick={() => {
|
|
88
88
|
const currentDate = today(getLocalTimeZone());
|
|
89
89
|
const weekStart = startOfWeek(currentDate, "en-US");
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
This week (Sun - Today)
|
|
97
97
|
</button>
|
|
98
98
|
<button
|
|
99
|
-
class="text-start text-sm py-2 px-2 hover:bg-
|
|
99
|
+
class="text-start text-sm py-2 px-2 hover:bg-muted/30 hover:text-primary"
|
|
100
100
|
onclick={() => {
|
|
101
101
|
const currentDate = today(getLocalTimeZone());
|
|
102
102
|
const thisWeekStart = startOfWeek(
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
Last week (Sun - Sat)
|
|
120
120
|
</button>
|
|
121
121
|
<button
|
|
122
|
-
class="text-start text-sm py-2 px-2 hover:bg-
|
|
122
|
+
class="text-start text-sm py-2 px-2 hover:bg-muted/30 hover:text-primary"
|
|
123
123
|
onclick={() => {
|
|
124
124
|
const currentDate = today(getLocalTimeZone());
|
|
125
125
|
value = {
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
Last 7 days
|
|
132
132
|
</button>
|
|
133
133
|
<button
|
|
134
|
-
class="text-start text-sm py-2 px-2 hover:bg-
|
|
134
|
+
class="text-start text-sm py-2 px-2 hover:bg-muted/30 hover:text-primary"
|
|
135
135
|
onclick={() => {
|
|
136
136
|
const currentDate = today(getLocalTimeZone());
|
|
137
137
|
value = {
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
Last 30 days
|
|
144
144
|
</button>
|
|
145
145
|
<button
|
|
146
|
-
class="text-start text-sm py-2 px-2 hover:bg-
|
|
146
|
+
class="text-start text-sm py-2 px-2 hover:bg-muted/30 hover:text-primary"
|
|
147
147
|
onclick={() => {
|
|
148
148
|
const currentDate = today(getLocalTimeZone());
|
|
149
149
|
value = {
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
Last 90 days
|
|
156
156
|
</button>
|
|
157
157
|
<button
|
|
158
|
-
class="text-start text-sm py-2 px-2 hover:bg-
|
|
158
|
+
class="text-start text-sm py-2 px-2 hover:bg-muted/30 hover:text-primary"
|
|
159
159
|
onclick={() => {
|
|
160
160
|
const currentDate = today(getLocalTimeZone());
|
|
161
161
|
value = {
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
Last 12 months
|
|
168
168
|
</button>
|
|
169
169
|
<button
|
|
170
|
-
class="text-start text-sm py-2 px-2 hover:bg-
|
|
170
|
+
class="text-start text-sm py-2 px-2 hover:bg-muted/30 hover:text-primary"
|
|
171
171
|
onclick={() => {
|
|
172
172
|
const currentDate = today(getLocalTimeZone());
|
|
173
173
|
const lastYearStart = currentDate
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
Last Calendar year
|
|
186
186
|
</button>
|
|
187
187
|
<button
|
|
188
|
-
class="text-start text-sm py-2 px-2 hover:bg-
|
|
188
|
+
class="text-start text-sm py-2 px-2 hover:bg-muted/30 hover:text-primary"
|
|
189
189
|
onclick={() => {
|
|
190
190
|
const currentDate = today(getLocalTimeZone());
|
|
191
191
|
const yearStart = currentDate.set({
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import DiffViewer from "../../diffViewer.svelte";
|
|
3
|
-
import { ctx } from "../../../store.svelte";
|
|
3
|
+
import { lobb, ctx } from "../../../store.svelte";
|
|
4
4
|
import { onMount } from "svelte";
|
|
5
5
|
import stringify from "json-stable-stringify";
|
|
6
6
|
import CodeEditor from "../../codeEditor.svelte";
|
|
7
7
|
import Table from "../../dataTable/table.svelte";
|
|
8
8
|
import Button from "../../ui/button/button.svelte";
|
|
9
9
|
import { LoaderCircle, SendHorizontal } from "lucide-svelte";
|
|
10
|
-
import { lobb } from "../../..";
|
|
11
10
|
|
|
12
11
|
let configSchema: string = $state("");
|
|
13
12
|
let dbSchema: string = $state("");
|
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
import WorkflowEditor, {
|
|
4
4
|
type WorkflowEntry,
|
|
5
5
|
} from "../../workflowEditor.svelte";
|
|
6
|
-
import { lobb } from "
|
|
6
|
+
import { lobb, ctx } from "../../../store.svelte";
|
|
7
7
|
import Sidebar from "../../sidebar/sidebar.svelte";
|
|
8
8
|
import Button from "../../ui/button/button.svelte";
|
|
9
|
-
import { ctx } from "../../../store.svelte";
|
|
10
9
|
import { location } from "@wjfe/n-savant";
|
|
11
10
|
import { CircleSlash2, Plus, Trash2 } from "lucide-svelte";
|
|
12
11
|
import { onMount } from "svelte";
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
{#if showSearch}
|
|
100
100
|
<div class="p-2">
|
|
101
101
|
<div
|
|
102
|
-
class="flex items-center px-4 py-1 text-muted-foreground bg-
|
|
102
|
+
class="flex items-center px-4 py-1 text-muted-foreground bg-muted/30 border rounded-md"
|
|
103
103
|
>
|
|
104
104
|
<input
|
|
105
105
|
type="text"
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
href={element.href}
|
|
108
108
|
variant="ghost"
|
|
109
109
|
class="
|
|
110
|
-
flex items-center justify-between p-2 gap-2 hover:bg-
|
|
110
|
+
flex items-center justify-between p-2 gap-2 hover:bg-muted/30 text-muted-foreground
|
|
111
111
|
rounded-md {isselected ? 'bg-muted' : ''}
|
|
112
112
|
"
|
|
113
113
|
title={element.name}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import SidebarTrigger from "./sidebar/sidebarTrigger.svelte";
|
|
6
6
|
import Button from "./ui/button/button.svelte";
|
|
7
7
|
import { onMount } from "svelte";
|
|
8
|
-
import { lobb } from "
|
|
8
|
+
import { lobb } from "../store.svelte";
|
|
9
9
|
import { toast } from "svelte-sonner";
|
|
10
10
|
import Skeleton from "./ui/skeleton/skeleton.svelte";
|
|
11
11
|
|