From 8cc2e1728ce1e940700b45ef2542f0ed394884a7 Mon Sep 17 00:00:00 2001 From: Blake Niemyjski Date: Sat, 16 Dec 2023 15:45:18 -0600 Subject: [PATCH 01/35] Updated shadcn components, added new shad components --- .../ClientApp/package-lock.json | 91 +++++++++++++++++-- src/Exceptionless.Web/ClientApp/package.json | 3 +- .../ui/command/command-dialog.svelte | 23 +++++ .../ui/command/command-empty.svelte | 11 +++ .../ui/command/command-group.svelte | 17 ++++ .../ui/command/command-input.svelte | 21 +++++ .../components/ui/command/command-item.svelte | 17 ++++ .../components/ui/command/command-list.svelte | 14 +++ .../ui/command/command-separator.svelte | 9 ++ .../ui/command/command-shortcut.svelte | 13 +++ .../lib/components/ui/command/command.svelte | 22 +++++ .../src/lib/components/ui/command/index.ts | 37 ++++++++ .../context-menu-checkbox-item.svelte | 2 +- .../context-menu-radio-item.svelte | 2 +- .../context-menu-sub-trigger.svelte | 2 +- .../ui/dialog/dialog-content.svelte | 36 ++++++++ .../ui/dialog/dialog-description.svelte | 16 ++++ .../components/ui/dialog/dialog-footer.svelte | 16 ++++ .../components/ui/dialog/dialog-header.svelte | 13 +++ .../ui/dialog/dialog-overlay.svelte | 21 +++++ .../components/ui/dialog/dialog-portal.svelte | 7 ++ .../components/ui/dialog/dialog-title.svelte | 16 ++++ .../src/lib/components/ui/dialog/index.ts | 34 +++++++ .../dropdown-menu-content.svelte | 2 + .../dropdown-menu-sub-trigger.svelte | 2 +- .../src/lib/components/ui/popover/index.ts | 14 +++ .../ui/popover/popover-content.svelte | 27 ++++++ .../src/lib/components/ui/select/index.ts | 2 +- .../ui/select/select-content.svelte | 2 + .../lib/components/ui/select/select.svelte | 12 --- .../src/lib/components/ui/separator/index.ts | 7 ++ .../components/ui/separator/separator.svelte | 22 +++++ 32 files changed, 507 insertions(+), 26 deletions(-) create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-dialog.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-empty.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-group.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-input.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-item.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-list.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-separator.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-shortcut.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/index.ts create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-content.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-description.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-footer.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-header.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-overlay.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-portal.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-title.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/index.ts create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/ui/popover/index.ts create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/ui/popover/popover-content.svelte delete mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/ui/select/select.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/ui/separator/index.ts create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/ui/separator/separator.svelte diff --git a/src/Exceptionless.Web/ClientApp/package-lock.json b/src/Exceptionless.Web/ClientApp/package-lock.json index 3aedca9e20..db03ee079a 100644 --- a/src/Exceptionless.Web/ClientApp/package-lock.json +++ b/src/Exceptionless.Web/ClientApp/package-lock.json @@ -14,9 +14,10 @@ "@tanstack/svelte-query-devtools": "^5.13.5", "@tanstack/svelte-table": "^8.10.7", "@web3-storage/parse-link-header": "^3.1.0", - "bits-ui": "^0.11.7", + "bits-ui": "^0.11.8", "class-validator": "^0.14.0", "clsx": "^2.0.0", + "cmdk-sv": "^0.0.12", "mode-watcher": "^0.1.2", "oidc-client-ts": "^2.4.0", "pretty-ms": "^8.0.0", @@ -1057,9 +1058,9 @@ } }, "node_modules/@melt-ui/svelte": { - "version": "0.65.1", - "resolved": "https://registry.npmjs.org/@melt-ui/svelte/-/svelte-0.65.1.tgz", - "integrity": "sha512-EFLLcfT7i3ICsGmdK4i83V5+08jl6ZKFKxguvOr2zNV08cIXWwp4lIwoYLOpP6ydORrbJjiRBd9sfNJcrm5YWg==", + "version": "0.65.2", + "resolved": "https://registry.npmjs.org/@melt-ui/svelte/-/svelte-0.65.2.tgz", + "integrity": "sha512-BpsSl9Bjp1++8U3+LaDOFUoX/PFQ9N7QWFhlFdUEZduhrbVyU70v9A459SKrQ+esFSjvh1AvqJYkMAUJXJlAmQ==", "dependencies": { "@floating-ui/core": "^1.3.1", "@floating-ui/dom": "^1.4.5", @@ -2067,12 +2068,12 @@ } }, "node_modules/bits-ui": { - "version": "0.11.7", - "resolved": "https://registry.npmjs.org/bits-ui/-/bits-ui-0.11.7.tgz", - "integrity": "sha512-2x1WwFPf4fQGPm0JeEgEylxIzQtnavlbl1l/PawWFbxE41/vbpmYHBokrvnr4di8DBUZ6DJUMDtM3ngdL2DL/g==", + "version": "0.11.8", + "resolved": "https://registry.npmjs.org/bits-ui/-/bits-ui-0.11.8.tgz", + "integrity": "sha512-T3YaT88OJguBoUU/MSncf41fiIc+5/ka8Au2LUDo0nSECex+LFY40+hKWLJc5tRT56avkyHsI7x9daA2r9eS/g==", "dependencies": { "@internationalized/date": "^3.5.0", - "@melt-ui/svelte": "0.65.1", + "@melt-ui/svelte": "0.65.2", "nanoid": "^5.0.4" }, "peerDependencies": { @@ -2355,6 +2356,80 @@ "node": ">=6" } }, + "node_modules/cmdk-sv": { + "version": "0.0.12", + "resolved": "https://registry.npmjs.org/cmdk-sv/-/cmdk-sv-0.0.12.tgz", + "integrity": "sha512-d+eILSOb2W+/3U/j7xGTgGRrZkFB/z4Xlvj0ADrWhf34y9YLzJon3JCGP2hMil5IrVm0P/+IFIeCF5l3//kcjA==", + "dependencies": { + "bits-ui": "^0.9.0", + "nanoid": "^5.0.2" + }, + "peerDependencies": { + "svelte": "^4.0.0" + } + }, + "node_modules/cmdk-sv/node_modules/@melt-ui/svelte": { + "version": "0.61.2", + "resolved": "https://registry.npmjs.org/@melt-ui/svelte/-/svelte-0.61.2.tgz", + "integrity": "sha512-BHkD9G31zQBToA4euDRBgTQRvWxT9scufOVCXgDO6HKTvyxFspbWT2bgiSFqAK4BbAGDn9Ao36Q8F9O71KN4OQ==", + "dependencies": { + "@floating-ui/core": "^1.3.1", + "@floating-ui/dom": "^1.4.5", + "@internationalized/date": "^3.5.0", + "dequal": "^2.0.3", + "focus-trap": "^7.5.2", + "nanoid": "^4.0.2" + }, + "peerDependencies": { + "svelte": ">=3 <5" + } + }, + "node_modules/cmdk-sv/node_modules/@melt-ui/svelte/node_modules/nanoid": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-4.0.2.tgz", + "integrity": "sha512-7ZtY5KTCNheRGfEFxnedV5zFiORN1+Y1N6zvPTnHQd8ENUvfaDBeuJDZb2bN/oXwXxu3qkTXDzy57W5vAmDTBw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.js" + }, + "engines": { + "node": "^14 || ^16 || >=18" + } + }, + "node_modules/cmdk-sv/node_modules/bits-ui": { + "version": "0.9.9", + "resolved": "https://registry.npmjs.org/bits-ui/-/bits-ui-0.9.9.tgz", + "integrity": "sha512-LkdkyTtpXdkjBzPZJVJgpcre4fut6DONoprMfadHFo82HNUhph+02CxDjYEcZcThb5z4YjSxMlCYvQPZm+YtfQ==", + "dependencies": { + "@melt-ui/svelte": "0.61.2", + "nanoid": "^5.0.3" + }, + "peerDependencies": { + "svelte": "^4.0.0" + } + }, + "node_modules/cmdk-sv/node_modules/nanoid": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-5.0.4.tgz", + "integrity": "sha512-vAjmBf13gsmhXSgBrtIclinISzFFy22WwCYoyilZlsrRXNIHSwgFQ1bEdjRwMT3aoadeIF6HMuDRlOxzfXV8ig==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.js" + }, + "engines": { + "node": "^18 || >=20" + } + }, "node_modules/code-red": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/code-red/-/code-red-1.0.4.tgz", diff --git a/src/Exceptionless.Web/ClientApp/package.json b/src/Exceptionless.Web/ClientApp/package.json index 127041992c..9bbf2a1825 100644 --- a/src/Exceptionless.Web/ClientApp/package.json +++ b/src/Exceptionless.Web/ClientApp/package.json @@ -52,9 +52,10 @@ "@tanstack/svelte-query-devtools": "^5.13.5", "@tanstack/svelte-table": "^8.10.7", "@web3-storage/parse-link-header": "^3.1.0", - "bits-ui": "^0.11.7", + "bits-ui": "^0.11.8", "class-validator": "^0.14.0", "clsx": "^2.0.0", + "cmdk-sv": "^0.0.12", "mode-watcher": "^0.1.2", "oidc-client-ts": "^2.4.0", "pretty-ms": "^8.0.0", diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-dialog.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-dialog.svelte new file mode 100644 index 0000000000..a1f0289906 --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-dialog.svelte @@ -0,0 +1,23 @@ + + + + + + + + + diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-empty.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-empty.svelte new file mode 100644 index 0000000000..35d5f03243 --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-empty.svelte @@ -0,0 +1,11 @@ + + + + + diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-group.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-group.svelte new file mode 100644 index 0000000000..eea2da83bc --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-group.svelte @@ -0,0 +1,17 @@ + + + + + diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-input.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-input.svelte new file mode 100644 index 0000000000..1ae11fa5ce --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-input.svelte @@ -0,0 +1,21 @@ + + +
+ + +
diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-item.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-item.svelte new file mode 100644 index 0000000000..54005ef433 --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-item.svelte @@ -0,0 +1,17 @@ + + + + + diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-list.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-list.svelte new file mode 100644 index 0000000000..e6420b339b --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-list.svelte @@ -0,0 +1,14 @@ + + + + + diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-separator.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-separator.svelte new file mode 100644 index 0000000000..68b96be037 --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-separator.svelte @@ -0,0 +1,9 @@ + + + diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-shortcut.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-shortcut.svelte new file mode 100644 index 0000000000..bf329ebdd9 --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command-shortcut.svelte @@ -0,0 +1,13 @@ + + + + + diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command.svelte new file mode 100644 index 0000000000..5961d8c7b1 --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/command.svelte @@ -0,0 +1,22 @@ + + + + + diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/index.ts b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/index.ts new file mode 100644 index 0000000000..03922d5dce --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/command/index.ts @@ -0,0 +1,37 @@ +import { Command as CommandPrimitive } from 'cmdk-sv'; + +import Root from './command.svelte'; +import Dialog from './command-dialog.svelte'; +import Empty from './command-empty.svelte'; +import Group from './command-group.svelte'; +import Item from './command-item.svelte'; +import Input from './command-input.svelte'; +import List from './command-list.svelte'; +import Separator from './command-separator.svelte'; +import Shortcut from './command-shortcut.svelte'; + +const Loading = CommandPrimitive.Loading; + +export { + Root, + Dialog, + Empty, + Group, + Item, + Input, + List, + Separator, + Shortcut, + Loading, + // + Root as Command, + Dialog as CommandDialog, + Empty as CommandEmpty, + Group as CommandGroup, + Item as CommandItem, + Input as CommandInput, + List as CommandList, + Separator as CommandSeparator, + Shortcut as CommandShortcut, + Loading as CommandLoading +}; diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/context-menu/context-menu-checkbox-item.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/context-menu/context-menu-checkbox-item.svelte index 5192d496f4..ce8203cc15 100644 --- a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/context-menu/context-menu-checkbox-item.svelte +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/context-menu/context-menu-checkbox-item.svelte @@ -27,7 +27,7 @@ > - + diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/context-menu/context-menu-radio-item.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/context-menu/context-menu-radio-item.svelte index 0fb0c5e7fa..e0d0d8b407 100644 --- a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/context-menu/context-menu-radio-item.svelte +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/context-menu/context-menu-radio-item.svelte @@ -27,7 +27,7 @@ > - + diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/context-menu/context-menu-sub-trigger.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/context-menu/context-menu-sub-trigger.svelte index 3ae69355c9..0829015bf2 100644 --- a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/context-menu/context-menu-sub-trigger.svelte +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/context-menu/context-menu-sub-trigger.svelte @@ -27,5 +27,5 @@ on:pointermove > - + diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-content.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-content.svelte new file mode 100644 index 0000000000..7eff526610 --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-content.svelte @@ -0,0 +1,36 @@ + + + + + + + + + Close + + + diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-description.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-description.svelte new file mode 100644 index 0000000000..84d4e5f167 --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-description.svelte @@ -0,0 +1,16 @@ + + + + + diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-footer.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-footer.svelte new file mode 100644 index 0000000000..da4f517ec3 --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-footer.svelte @@ -0,0 +1,16 @@ + + +
+ +
diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-header.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-header.svelte new file mode 100644 index 0000000000..e4b36085d5 --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-header.svelte @@ -0,0 +1,13 @@ + + +
+ +
diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-overlay.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-overlay.svelte new file mode 100644 index 0000000000..22c648858e --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-overlay.svelte @@ -0,0 +1,21 @@ + + + diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-portal.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-portal.svelte new file mode 100644 index 0000000000..2935181d89 --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-portal.svelte @@ -0,0 +1,7 @@ + + + + + diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-title.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-title.svelte new file mode 100644 index 0000000000..c133166b34 --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/dialog-title.svelte @@ -0,0 +1,16 @@ + + + + + diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/index.ts b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/index.ts new file mode 100644 index 0000000000..2a1a048e2b --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dialog/index.ts @@ -0,0 +1,34 @@ +import { Dialog as DialogPrimitive } from 'bits-ui'; + +const Root = DialogPrimitive.Root; +const Trigger = DialogPrimitive.Trigger; + +import Title from './dialog-title.svelte'; +import Portal from './dialog-portal.svelte'; +import Footer from './dialog-footer.svelte'; +import Header from './dialog-header.svelte'; +import Overlay from './dialog-overlay.svelte'; +import Content from './dialog-content.svelte'; +import Description from './dialog-description.svelte'; + +export { + Root, + Title, + Portal, + Footer, + Header, + Trigger, + Overlay, + Content, + Description, + // + Root as Dialog, + Title as DialogTitle, + Portal as DialogPortal, + Footer as DialogFooter, + Header as DialogHeader, + Trigger as DialogTrigger, + Overlay as DialogOverlay, + Content as DialogContent, + Description as DialogDescription +}; diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte index 6c31cd9027..c15360670a 100644 --- a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte @@ -5,6 +5,7 @@ type $$Props = DropdownMenuPrimitive.ContentProps; let className: $$Props['class'] = undefined; + export let sideOffset: $$Props['sideOffset'] = 4; export let transition: $$Props['transition'] = flyAndScale; export let transitionConfig: $$Props['transitionConfig'] = undefined; export { className as class }; @@ -13,6 +14,7 @@ + import { Popover as PopoverPrimitive } from 'bits-ui'; + import { cn, flyAndScale } from '$lib/utils'; + + type $$Props = PopoverPrimitive.ContentProps; + + let className: $$Props['class'] = undefined; + export let transition: $$Props['transition'] = flyAndScale; + export let transitionConfig: $$Props['transitionConfig'] = undefined; + export let align: $$Props['align'] = 'center'; + export let sideOffset: $$Props['sideOffset'] = 4; + export { className as class }; + + + + + diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/select/index.ts b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/select/index.ts index 50200fb7fc..5a9dd8784b 100644 --- a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/select/index.ts +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/select/index.ts @@ -1,12 +1,12 @@ import { Select as SelectPrimitive } from 'bits-ui'; -import Root from './select.svelte'; import Label from './select-label.svelte'; import Item from './select-item.svelte'; import Content from './select-content.svelte'; import Trigger from './select-trigger.svelte'; import Separator from './select-separator.svelte'; +const Root = SelectPrimitive.Root; const Group = SelectPrimitive.Group; const Input = SelectPrimitive.Input; const Value = SelectPrimitive.Value; diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/select/select-content.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/select/select-content.svelte index df655688cb..8162b00c3b 100644 --- a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/select/select-content.svelte +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/select/select-content.svelte @@ -6,6 +6,7 @@ type $$Props = SelectPrimitive.ContentProps; let className: $$Props['class'] = undefined; + export let sideOffset: $$Props['sideOffset'] = 4; export let inTransition: $$Props['inTransition'] = flyAndScale; export let inTransitionConfig: $$Props['inTransitionConfig'] = undefined; export let outTransition: $$Props['outTransition'] = scale; @@ -22,6 +23,7 @@ {inTransitionConfig} {outTransition} {outTransitionConfig} + {sideOffset} class={cn( 'relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md focus:outline-none', className diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/select/select.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/select/select.svelte deleted file mode 100644 index dd5252d1da..0000000000 --- a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/select/select.svelte +++ /dev/null @@ -1,12 +0,0 @@ - - - - - diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/separator/index.ts b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/separator/index.ts new file mode 100644 index 0000000000..768efac960 --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/separator/index.ts @@ -0,0 +1,7 @@ +import Root from './separator.svelte'; + +export { + Root, + // + Root as Separator +}; diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/ui/separator/separator.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/separator/separator.svelte new file mode 100644 index 0000000000..499bf675a6 --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/ui/separator/separator.svelte @@ -0,0 +1,22 @@ + + + From 9c2302599b5c8f7a7c8d57d134afa6991988bfb6 Mon Sep 17 00:00:00 2001 From: Blake Niemyjski Date: Wed, 20 Dec 2023 06:15:32 -0600 Subject: [PATCH 02/35] Updated deps which resolved vite warnings --- .../ClientApp/package-lock.json | 272 +++++++++--------- src/Exceptionless.Web/ClientApp/package.json | 28 +- 2 files changed, 150 insertions(+), 150 deletions(-) diff --git a/src/Exceptionless.Web/ClientApp/package-lock.json b/src/Exceptionless.Web/ClientApp/package-lock.json index db03ee079a..b2dc47ea85 100644 --- a/src/Exceptionless.Web/ClientApp/package-lock.json +++ b/src/Exceptionless.Web/ClientApp/package-lock.json @@ -9,10 +9,10 @@ "version": "8.0.0", "dependencies": { "@exceptionless/browser": "^3.0.5", - "@iconify-json/mdi": "^1.1.62", - "@tanstack/svelte-query": "^5.13.4", - "@tanstack/svelte-query-devtools": "^5.13.5", - "@tanstack/svelte-table": "^8.10.7", + "@iconify-json/mdi": "^1.1.63", + "@tanstack/svelte-query": "^5.14.2", + "@tanstack/svelte-query-devtools": "^5.14.2", + "@tanstack/svelte-table": "^8.11.0", "@web3-storage/parse-link-header": "^3.1.0", "bits-ui": "^0.11.8", "class-validator": "^0.14.0", @@ -24,23 +24,23 @@ "radix-icons-svelte": "^1.2.1", "svelte-legos": "^0.2.2", "svelte-local-storage-store": "^0.6.4", - "svelte-time": "^0.8.0", + "svelte-time": "^0.8.2", "svoast": "^2.3.0", "tailwind-merge": "^2.1.0", - "tailwind-variants": "^0.1.18", - "tailwindcss": "^3.3.6", + "tailwind-variants": "^0.1.19", + "tailwindcss": "^3.4.0", "unplugin-icons": "^0.18.1" }, "devDependencies": { "@playwright/test": "^1.40.1", - "@sveltejs/adapter-static": "^3.0.0", - "@sveltejs/kit": "^2.0.0", + "@sveltejs/adapter-static": "^3.0.1", + "@sveltejs/kit": "^2.0.4", "@sveltejs/vite-plugin-svelte": "^3.0.1", - "@typescript-eslint/eslint-plugin": "^6.14.0", - "@typescript-eslint/parser": "^6.14.0", + "@typescript-eslint/eslint-plugin": "^6.15.0", + "@typescript-eslint/parser": "^6.15.0", "autoprefixer": "^10.4.16", "cross-env": "^7.0.3", - "eslint": "^8.55.0", + "eslint": "^8.56.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-svelte": "^2.35.1", "npm-run-all": "^4.1.5", @@ -53,8 +53,8 @@ "swagger-typescript-api": "^13.0.3", "tslib": "^2.6.2", "typescript": "^5.3.3", - "vite": "^5.0.9", - "vitest": "^1.0.4" + "vite": "^5.0.10", + "vitest": "^1.1.0" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -775,9 +775,9 @@ } }, "node_modules/@eslint/js": { - "version": "8.55.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.55.0.tgz", - "integrity": "sha512-qQfo2mxH5yVom1kacMtZZJFVdW+E70mqHMJvVg6WTLo+VBuQJ4TojZlfWBjK0ve5BdEeNAVxOsl/nvNMpJOaJA==", + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.56.0.tgz", + "integrity": "sha512-gMsVel9D7f2HLkBma9VbtzZRehRogVRfbr++f06nL2vnCGCNlzOD+/MUov/F4p8myyAHspEhVobgjpX64q5m6A==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -859,9 +859,9 @@ "dev": true }, "node_modules/@iconify-json/mdi": { - "version": "1.1.62", - "resolved": "https://registry.npmjs.org/@iconify-json/mdi/-/mdi-1.1.62.tgz", - "integrity": "sha512-VEfnaIwO++vZ5xUYdbPuB303E1Db29kRfkd+n9dxC0zQQ6fTy4TEI2Q79TYZtEPwiIOWOy8pudTbOv4GLUaziA==", + "version": "1.1.63", + "resolved": "https://registry.npmjs.org/@iconify-json/mdi/-/mdi-1.1.63.tgz", + "integrity": "sha512-b07dRM5LYdwJqd/lm+1+JDNDNSWHvpZ7ujb73oJxx3lmK1J0giDS0BSc4yia0hixNV0Z2q/4GyxAu/A8XqDnbg==", "dependencies": { "@iconify/types": "*" } @@ -1331,18 +1331,18 @@ } }, "node_modules/@sveltejs/adapter-static": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@sveltejs/adapter-static/-/adapter-static-3.0.0.tgz", - "integrity": "sha512-nNsm8XChhJgQdeVegdXU+EnpznSUlsIjlLJa9SNmvSVN3rcPtB2BAnGuS/EWCtgPLkVcy9V2kW5knronqmF+KQ==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sveltejs/adapter-static/-/adapter-static-3.0.1.tgz", + "integrity": "sha512-6lMvf7xYEJ+oGeR5L8DFJJrowkefTK6ZgA4JiMqoClMkKq0s6yvsd3FZfCFvX1fQ0tpCD7fkuRVHsnUVgsHyNg==", "dev": true, "peerDependencies": { "@sveltejs/kit": "^2.0.0" } }, "node_modules/@sveltejs/kit": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@sveltejs/kit/-/kit-2.0.0.tgz", - "integrity": "sha512-/GFxvit+q7PztRbgGTFXhVB6jvb0fZSeWuz5f4siQ2r/5BVhxYh7++Bw3/ZUjiOuyoZFiNBmOPcRNQbkzEce0g==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@sveltejs/kit/-/kit-2.0.4.tgz", + "integrity": "sha512-pqUOo1Slp2fybNjTouF7qgeN815hO2boRCNO1Z7/XtXu5IPNg9OSwI485qmQ0GUU2v2NmA0XZciFHGrgzOixyw==", "dev": true, "hasInstallScript": true, "dependencies": { @@ -1418,9 +1418,9 @@ } }, "node_modules/@tanstack/query-core": { - "version": "5.13.4", - "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.13.4.tgz", - "integrity": "sha512-8+rJucXvC/xlr4OrxHhEIob/cTlbT4fgmz1VsvB0D12FRStKaXeLORNGcOhSAynRd2NL74SV/Qq0IIb4DedLcA==", + "version": "5.14.2", + "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.14.2.tgz", + "integrity": "sha512-QmoJvC72sSWs3hgGis8JdmlDvqLfYGWUK4UG6OR9Q6t28JMN9m2FDwKPqoSJ9YVocELCSjMt/FGjEiLfk8000Q==", "funding": { "type": "github", "url": "https://github.com/sponsors/tannerlinsley" @@ -1436,11 +1436,11 @@ } }, "node_modules/@tanstack/svelte-query": { - "version": "5.13.4", - "resolved": "https://registry.npmjs.org/@tanstack/svelte-query/-/svelte-query-5.13.4.tgz", - "integrity": "sha512-wR/jyZQ6/YOa+Tcz3Beb+DSgB518BUnDVP8E9NmGrSKbRmrV9QXrjr/BjW62LrIKWk0PPMTZ6fCvs+LJUm48bw==", + "version": "5.14.2", + "resolved": "https://registry.npmjs.org/@tanstack/svelte-query/-/svelte-query-5.14.2.tgz", + "integrity": "sha512-77G5iFJg7540Rp3gW9EgqYXQh+MNWhLILxLl5SFiPZ+UJ2aDhWiUzMl0qTJx/TueD++M572p4G4bFLHZ60bawg==", "dependencies": { - "@tanstack/query-core": "5.13.4" + "@tanstack/query-core": "5.14.2" }, "funding": { "type": "github", @@ -1451,9 +1451,9 @@ } }, "node_modules/@tanstack/svelte-query-devtools": { - "version": "5.13.5", - "resolved": "https://registry.npmjs.org/@tanstack/svelte-query-devtools/-/svelte-query-devtools-5.13.5.tgz", - "integrity": "sha512-5hw5h45BY8OG8S/sNDkOBtKKokjWQSdH43Qco5nm427pxMvB8HROSopvdBGggedb36vQi4GDRoTCJzjQ9DaUIw==", + "version": "5.14.2", + "resolved": "https://registry.npmjs.org/@tanstack/svelte-query-devtools/-/svelte-query-devtools-5.14.2.tgz", + "integrity": "sha512-ItrsjlHBOoeGq/Zwq8aT8uAjaZzfMNjFY3Tx/1TdgT5wv54d+lJpqz0PmRZXKOEBgiqG5mTweAyzWs03/HgHmQ==", "dependencies": { "@tanstack/query-devtools": "5.13.5", "esm-env": "^1.0.0" @@ -1463,16 +1463,16 @@ "url": "https://github.com/sponsors/tannerlinsley" }, "peerDependencies": { - "@tanstack/svelte-query": "^5.13.4", + "@tanstack/svelte-query": "^5.14.2", "svelte": "^3.54.0 || ^4.0.0 || ^5.0.0-next.0" } }, "node_modules/@tanstack/svelte-table": { - "version": "8.10.7", - "resolved": "https://registry.npmjs.org/@tanstack/svelte-table/-/svelte-table-8.10.7.tgz", - "integrity": "sha512-nHHBYAzXZKs5GseAEJJFyK8EP5arHplHJc3a1X50oUv/xnE10EY/DhLV0YSNigIbNEbDcj+AsTg/6OtamIARQg==", + "version": "8.11.0", + "resolved": "https://registry.npmjs.org/@tanstack/svelte-table/-/svelte-table-8.11.0.tgz", + "integrity": "sha512-pNsqQjmL+zpJUz3Qpw4imeRy0SMw5DJLqE1FBLR4z9ZhoKdzLWSN8qgYPRR96+WvSf5sIKvBj5EUAsTPlgGnhg==", "dependencies": { - "@tanstack/table-core": "8.10.7" + "@tanstack/table-core": "8.11.0" }, "engines": { "node": ">=12" @@ -1486,9 +1486,9 @@ } }, "node_modules/@tanstack/table-core": { - "version": "8.10.7", - "resolved": "https://registry.npmjs.org/@tanstack/table-core/-/table-core-8.10.7.tgz", - "integrity": "sha512-KQk5OMg5OH6rmbHZxuNROvdI+hKDIUxANaHlV+dPlNN7ED3qYQ/WkpY2qlXww1SIdeMlkIhpN/2L00rof0fXFw==", + "version": "8.11.0", + "resolved": "https://registry.npmjs.org/@tanstack/table-core/-/table-core-8.11.0.tgz", + "integrity": "sha512-7SC8/v6cXbUriOs2UISN8Jho3ttnA8cRZgusLn15b8meb28prHnWg4t4oNSHIR3rYn0g7iiIg+pax2CtBnyffg==", "engines": { "node": ">=12" }, @@ -1546,16 +1546,16 @@ "integrity": "sha512-d/MUkJYdOeKycmm75Arql4M5+UuXmf4cHdHKsyw1GcvnNgL6s77UkgSgJ8TE/rI5PYsnwYq5jkcWBLuN/MpQ1A==" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.14.0.tgz", - "integrity": "sha512-1ZJBykBCXaSHG94vMMKmiHoL0MhNHKSVlcHVYZNw+BKxufhqQVTOawNpwwI1P5nIFZ/4jLVop0mcY6mJJDFNaw==", + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.15.0.tgz", + "integrity": "sha512-j5qoikQqPccq9QoBAupOP+CBu8BaJ8BLjaXSioDISeTZkVO3ig7oSIKh3H+rEpee7xCXtWwSB4KIL5l6hWZzpg==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "6.14.0", - "@typescript-eslint/type-utils": "6.14.0", - "@typescript-eslint/utils": "6.14.0", - "@typescript-eslint/visitor-keys": "6.14.0", + "@typescript-eslint/scope-manager": "6.15.0", + "@typescript-eslint/type-utils": "6.15.0", + "@typescript-eslint/utils": "6.15.0", + "@typescript-eslint/visitor-keys": "6.15.0", "debug": "^4.3.4", "graphemer": "^1.4.0", "ignore": "^5.2.4", @@ -1581,15 +1581,15 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.14.0.tgz", - "integrity": "sha512-QjToC14CKacd4Pa7JK4GeB/vHmWFJckec49FR4hmIRf97+KXole0T97xxu9IFiPxVQ1DBWrQ5wreLwAGwWAVQA==", + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.15.0.tgz", + "integrity": "sha512-MkgKNnsjC6QwcMdlNAel24jjkEO/0hQaMDLqP4S9zq5HBAUJNQB6y+3DwLjX7b3l2b37eNAxMPLwb3/kh8VKdA==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "6.14.0", - "@typescript-eslint/types": "6.14.0", - "@typescript-eslint/typescript-estree": "6.14.0", - "@typescript-eslint/visitor-keys": "6.14.0", + "@typescript-eslint/scope-manager": "6.15.0", + "@typescript-eslint/types": "6.15.0", + "@typescript-eslint/typescript-estree": "6.15.0", + "@typescript-eslint/visitor-keys": "6.15.0", "debug": "^4.3.4" }, "engines": { @@ -1609,13 +1609,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.14.0.tgz", - "integrity": "sha512-VT7CFWHbZipPncAZtuALr9y3EuzY1b1t1AEkIq2bTXUPKw+pHoXflGNG5L+Gv6nKul1cz1VH8fz16IThIU0tdg==", + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.15.0.tgz", + "integrity": "sha512-+BdvxYBltqrmgCNu4Li+fGDIkW9n//NrruzG9X1vBzaNK+ExVXPoGB71kneaVw/Jp+4rH/vaMAGC6JfMbHstVg==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.14.0", - "@typescript-eslint/visitor-keys": "6.14.0" + "@typescript-eslint/types": "6.15.0", + "@typescript-eslint/visitor-keys": "6.15.0" }, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -1626,13 +1626,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.14.0.tgz", - "integrity": "sha512-x6OC9Q7HfYKqjnuNu5a7kffIYs3No30isapRBJl1iCHLitD8O0lFbRcVGiOcuyN837fqXzPZ1NS10maQzZMKqw==", + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.15.0.tgz", + "integrity": "sha512-CnmHKTfX6450Bo49hPg2OkIm/D/TVYV7jO1MCfPYGwf6x3GO0VU8YMO5AYMn+u3X05lRRxA4fWCz87GFQV6yVQ==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "6.14.0", - "@typescript-eslint/utils": "6.14.0", + "@typescript-eslint/typescript-estree": "6.15.0", + "@typescript-eslint/utils": "6.15.0", "debug": "^4.3.4", "ts-api-utils": "^1.0.1" }, @@ -1653,9 +1653,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.14.0.tgz", - "integrity": "sha512-uty9H2K4Xs8E47z3SnXEPRNDfsis8JO27amp2GNCnzGETEW3yTqEIVg5+AI7U276oGF/tw6ZA+UesxeQ104ceA==", + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.15.0.tgz", + "integrity": "sha512-yXjbt//E4T/ee8Ia1b5mGlbNj9fB9lJP4jqLbZualwpP2BCQ5is6BcWwxpIsY4XKAhmdv3hrW92GdtJbatC6dQ==", "dev": true, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -1666,13 +1666,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.14.0.tgz", - "integrity": "sha512-yPkaLwK0yH2mZKFE/bXkPAkkFgOv15GJAUzgUVonAbv0Hr4PK/N2yaA/4XQbTZQdygiDkpt5DkxPELqHguNvyw==", + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.15.0.tgz", + "integrity": "sha512-7mVZJN7Hd15OmGuWrp2T9UvqR2Ecg+1j/Bp1jXUEY2GZKV6FXlOIoqVDmLpBiEiq3katvj/2n2mR0SDwtloCew==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.14.0", - "@typescript-eslint/visitor-keys": "6.14.0", + "@typescript-eslint/types": "6.15.0", + "@typescript-eslint/visitor-keys": "6.15.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -1693,17 +1693,17 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.14.0.tgz", - "integrity": "sha512-XwRTnbvRr7Ey9a1NT6jqdKX8y/atWG+8fAIu3z73HSP8h06i3r/ClMhmaF/RGWGW1tHJEwij1uEg2GbEmPYvYg==", + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.15.0.tgz", + "integrity": "sha512-eF82p0Wrrlt8fQSRL0bGXzK5nWPRV2dYQZdajcfzOD9+cQz9O7ugifrJxclB+xVOvWvagXfqS4Es7vpLP4augw==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", "@types/json-schema": "^7.0.12", "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "6.14.0", - "@typescript-eslint/types": "6.14.0", - "@typescript-eslint/typescript-estree": "6.14.0", + "@typescript-eslint/scope-manager": "6.15.0", + "@typescript-eslint/types": "6.15.0", + "@typescript-eslint/typescript-estree": "6.15.0", "semver": "^7.5.4" }, "engines": { @@ -1718,12 +1718,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.14.0.tgz", - "integrity": "sha512-fB5cw6GRhJUz03MrROVuj5Zm/Q+XWlVdIsFj+Zb1Hvqouc8t+XP2H5y53QYU/MGtd2dPg6/vJJlhoX3xc2ehfw==", + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.15.0.tgz", + "integrity": "sha512-1zvtdC1a9h5Tb5jU9x3ADNXO9yjP8rXlaoChu0DQX40vf5ACVpYIVIZhIMZ6d5sDXH7vq4dsZBT1fEGj8D2n2w==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.14.0", + "@typescript-eslint/types": "6.15.0", "eslint-visitor-keys": "^3.4.1" }, "engines": { @@ -1741,13 +1741,13 @@ "dev": true }, "node_modules/@vitest/expect": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-1.0.4.tgz", - "integrity": "sha512-/NRN9N88qjg3dkhmFcCBwhn/Ie4h064pY3iv7WLRsDJW7dXnEgeoa8W9zy7gIPluhz6CkgqiB3HmpIXgmEY5dQ==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-1.1.0.tgz", + "integrity": "sha512-9IE2WWkcJo2BR9eqtY5MIo3TPmS50Pnwpm66A6neb2hvk/QSLfPXBz2qdiwUOQkwyFuuXEUj5380CbwfzW4+/w==", "dev": true, "dependencies": { - "@vitest/spy": "1.0.4", - "@vitest/utils": "1.0.4", + "@vitest/spy": "1.1.0", + "@vitest/utils": "1.1.0", "chai": "^4.3.10" }, "funding": { @@ -1755,12 +1755,12 @@ } }, "node_modules/@vitest/runner": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-1.0.4.tgz", - "integrity": "sha512-rhOQ9FZTEkV41JWXozFM8YgOqaG9zA7QXbhg5gy6mFOVqh4PcupirIJ+wN7QjeJt8S8nJRYuZH1OjJjsbxAXTQ==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-1.1.0.tgz", + "integrity": "sha512-zdNLJ00pm5z/uhbWF6aeIJCGMSyTyWImy3Fcp9piRGvueERFlQFbUwCpzVce79OLm2UHk9iwaMSOaU9jVHgNVw==", "dev": true, "dependencies": { - "@vitest/utils": "1.0.4", + "@vitest/utils": "1.1.0", "p-limit": "^5.0.0", "pathe": "^1.1.1" }, @@ -1796,9 +1796,9 @@ } }, "node_modules/@vitest/snapshot": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-1.0.4.tgz", - "integrity": "sha512-vkfXUrNyNRA/Gzsp2lpyJxh94vU2OHT1amoD6WuvUAA12n32xeVZQ0KjjQIf8F6u7bcq2A2k969fMVxEsxeKYA==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-1.1.0.tgz", + "integrity": "sha512-5O/wyZg09V5qmNmAlUgCBqflvn2ylgsWJRRuPrnHEfDNT6tQpQ8O1isNGgo+VxofISHqz961SG3iVvt3SPK/QQ==", "dev": true, "dependencies": { "magic-string": "^0.30.5", @@ -1810,9 +1810,9 @@ } }, "node_modules/@vitest/spy": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-1.0.4.tgz", - "integrity": "sha512-9ojTFRL1AJVh0hvfzAQpm0QS6xIS+1HFIw94kl/1ucTfGCaj1LV/iuJU4Y6cdR03EzPDygxTHwE1JOm+5RCcvA==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-1.1.0.tgz", + "integrity": "sha512-sNOVSU/GE+7+P76qYo+VXdXhXffzWZcYIPQfmkiRxaNCSPiLANvQx5Mx6ZURJ/ndtEkUJEpvKLXqAYTKEY+lTg==", "dev": true, "dependencies": { "tinyspy": "^2.2.0" @@ -1822,9 +1822,9 @@ } }, "node_modules/@vitest/utils": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-1.0.4.tgz", - "integrity": "sha512-gsswWDXxtt0QvtK/y/LWukN7sGMYmnCcv1qv05CsY6cU/Y1zpGX1QuvLs+GO1inczpE6Owixeel3ShkjhYtGfA==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-1.1.0.tgz", + "integrity": "sha512-z+s510fKmYz4Y41XhNs3vcuFTFhcij2YF7F8VQfMEYAAUfqQh0Zfg7+w9xdgFGhPf3tX3TicAe+8BDITk6ampQ==", "dev": true, "dependencies": { "diff-sequences": "^29.6.3", @@ -2569,9 +2569,9 @@ } }, "node_modules/dayjs": { - "version": "1.11.9", - "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.9.tgz", - "integrity": "sha512-QvzAURSbQ0pKdIye2txOzNaHmxtUBXerpY0FJsFXUMKbIZeFm5ht1LS/jFsrncjnmtv8HsG0W2g6c0zUjZWmpA==" + "version": "1.11.10", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.10.tgz", + "integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==" }, "node_modules/debug": { "version": "4.3.4", @@ -2897,15 +2897,15 @@ } }, "node_modules/eslint": { - "version": "8.55.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.55.0.tgz", - "integrity": "sha512-iyUUAM0PCKj5QpwGfmCAG9XXbZCWsqP/eWAWrG/W0umvjuLRBECwSFdt+rCntju0xEH7teIABPwXpahftIaTdA==", + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.56.0.tgz", + "integrity": "sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.55.0", + "@eslint/js": "8.56.0", "@humanwhocodes/config-array": "^0.11.13", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", @@ -6432,11 +6432,11 @@ } }, "node_modules/svelte-time": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/svelte-time/-/svelte-time-0.8.0.tgz", - "integrity": "sha512-V0LBpJhYV2Q+jqiJ94ITAo51P6RIhrHQpDt3LCSk8PXfL2UMvSMlDzkqHq8mdKqmBCRZURnXhpynN03GQa/G/A==", + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/svelte-time/-/svelte-time-0.8.2.tgz", + "integrity": "sha512-sBLLrWMMInx5iidGlbtlCBAu8CzSixdqOkbhizdalULXBvYMPACp0GtzmyBLEa77hbaMVySZzApIaNG4B4OVmg==", "dependencies": { - "dayjs": "^1.11.9" + "dayjs": "^1.11.10" } }, "node_modules/svoast": { @@ -6572,9 +6572,9 @@ } }, "node_modules/tailwind-variants": { - "version": "0.1.18", - "resolved": "https://registry.npmjs.org/tailwind-variants/-/tailwind-variants-0.1.18.tgz", - "integrity": "sha512-yoydMYm3FbZRw7wak+E2sqwYv2Uo3YWRqVZR03DGqDGm0ytzDrEnWO/Q/GMHdhaz8adOvycKw/bwCgQFCfmfhg==", + "version": "0.1.19", + "resolved": "https://registry.npmjs.org/tailwind-variants/-/tailwind-variants-0.1.19.tgz", + "integrity": "sha512-D9Yf5WqsxodnCtjZt6KifEoKwW8rTURXQV03KRKlojITQM5gV1vPVWufWNiIvd/ptC3QybYFpwmHK9cs4Ei08Q==", "dependencies": { "tailwind-merge": "^1.14.0" }, @@ -6596,9 +6596,9 @@ } }, "node_modules/tailwindcss": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.6.tgz", - "integrity": "sha512-AKjF7qbbLvLaPieoKeTjG1+FyNZT6KaJMJPFeQyLfIp7l82ggH1fbHJSsYIvnbTFQOlkh+gBYpyby5GT1LIdLw==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.0.tgz", + "integrity": "sha512-VigzymniH77knD1dryXbyxR+ePHihHociZbXnLZHUyzf2MMs2ZVqlUrZ3FvpXP8pno9JzmILt1sZPD19M3IxtA==", "dependencies": { "@alloc/quick-lru": "^5.2.0", "arg": "^5.0.2", @@ -7055,9 +7055,9 @@ } }, "node_modules/vite": { - "version": "5.0.9", - "resolved": "https://registry.npmjs.org/vite/-/vite-5.0.9.tgz", - "integrity": "sha512-wVqMd5kp28QWGgfYPDfrj771VyHTJ4UDlCteLH7bJDGDEamaz5hV8IX6h1brSGgnnyf9lI2RnzXq/JmD0c2wwg==", + "version": "5.0.10", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.0.10.tgz", + "integrity": "sha512-2P8J7WWgmc355HUMlFrwofacvr98DAjoE52BfdbwQtyLH06XKwaL/FMnmKM2crF0iX4MpmMKoDlNCB1ok7zHCw==", "dev": true, "dependencies": { "esbuild": "^0.19.3", @@ -7110,9 +7110,9 @@ } }, "node_modules/vite-node": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-1.0.4.tgz", - "integrity": "sha512-9xQQtHdsz5Qn8hqbV7UKqkm8YkJhzT/zr41Dmt5N7AlD8hJXw/Z7y0QiD5I8lnTthV9Rvcvi0QW7PI0Fq83ZPg==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-1.1.0.tgz", + "integrity": "sha512-jV48DDUxGLEBdHCQvxL1mEh7+naVy+nhUUUaPAZLd3FJgXuxQiewHcfeZebbJ6onDqNGkP4r3MhQ342PRlG81Q==", "dev": true, "dependencies": { "cac": "^6.7.14", @@ -7146,16 +7146,16 @@ } }, "node_modules/vitest": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-1.0.4.tgz", - "integrity": "sha512-s1GQHp/UOeWEo4+aXDOeFBJwFzL6mjycbQwwKWX2QcYfh/7tIerS59hWQ20mxzupTJluA2SdwiBuWwQHH67ckg==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-1.1.0.tgz", + "integrity": "sha512-oDFiCrw7dd3Jf06HoMtSRARivvyjHJaTxikFxuqJjO76U436PqlVw1uLn7a8OSPrhSfMGVaRakKpA2lePdw79A==", "dev": true, "dependencies": { - "@vitest/expect": "1.0.4", - "@vitest/runner": "1.0.4", - "@vitest/snapshot": "1.0.4", - "@vitest/spy": "1.0.4", - "@vitest/utils": "1.0.4", + "@vitest/expect": "1.1.0", + "@vitest/runner": "1.1.0", + "@vitest/snapshot": "1.1.0", + "@vitest/spy": "1.1.0", + "@vitest/utils": "1.1.0", "acorn-walk": "^8.3.0", "cac": "^6.7.14", "chai": "^4.3.10", @@ -7170,7 +7170,7 @@ "tinybench": "^2.5.1", "tinypool": "^0.8.1", "vite": "^5.0.0", - "vite-node": "1.0.4", + "vite-node": "1.1.0", "why-is-node-running": "^2.2.2" }, "bin": { diff --git a/src/Exceptionless.Web/ClientApp/package.json b/src/Exceptionless.Web/ClientApp/package.json index 9bbf2a1825..3b6e6ea6fe 100644 --- a/src/Exceptionless.Web/ClientApp/package.json +++ b/src/Exceptionless.Web/ClientApp/package.json @@ -22,14 +22,14 @@ }, "devDependencies": { "@playwright/test": "^1.40.1", - "@sveltejs/adapter-static": "^3.0.0", - "@sveltejs/kit": "^2.0.0", + "@sveltejs/adapter-static": "^3.0.1", + "@sveltejs/kit": "^2.0.4", "@sveltejs/vite-plugin-svelte": "^3.0.1", - "@typescript-eslint/eslint-plugin": "^6.14.0", - "@typescript-eslint/parser": "^6.14.0", + "@typescript-eslint/eslint-plugin": "^6.15.0", + "@typescript-eslint/parser": "^6.15.0", "autoprefixer": "^10.4.16", "cross-env": "^7.0.3", - "eslint": "^8.55.0", + "eslint": "^8.56.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-svelte": "^2.35.1", "npm-run-all": "^4.1.5", @@ -42,15 +42,15 @@ "swagger-typescript-api": "^13.0.3", "tslib": "^2.6.2", "typescript": "^5.3.3", - "vite": "^5.0.9", - "vitest": "^1.0.4" + "vite": "^5.0.10", + "vitest": "^1.1.0" }, "dependencies": { "@exceptionless/browser": "^3.0.5", - "@iconify-json/mdi": "^1.1.62", - "@tanstack/svelte-query": "^5.13.4", - "@tanstack/svelte-query-devtools": "^5.13.5", - "@tanstack/svelte-table": "^8.10.7", + "@iconify-json/mdi": "^1.1.63", + "@tanstack/svelte-query": "^5.14.2", + "@tanstack/svelte-query-devtools": "^5.14.2", + "@tanstack/svelte-table": "^8.11.0", "@web3-storage/parse-link-header": "^3.1.0", "bits-ui": "^0.11.8", "class-validator": "^0.14.0", @@ -62,11 +62,11 @@ "radix-icons-svelte": "^1.2.1", "svelte-legos": "^0.2.2", "svelte-local-storage-store": "^0.6.4", - "svelte-time": "^0.8.0", + "svelte-time": "^0.8.2", "svoast": "^2.3.0", "tailwind-merge": "^2.1.0", - "tailwind-variants": "^0.1.18", - "tailwindcss": "^3.3.6", + "tailwind-variants": "^0.1.19", + "tailwindcss": "^3.4.0", "unplugin-icons": "^0.18.1" }, "type": "module" From 1159eb8ddfc0b5ed2870baf5bb573c6611116ba7 Mon Sep 17 00:00:00 2001 From: Blake Niemyjski Date: Thu, 21 Dec 2023 21:53:38 -0600 Subject: [PATCH 03/35] Early WIP, just getting data table compiling lots more todo. --- .../data-table/data-table-checkbox.svelte | 8 + .../data-table-column-header.svelte | 67 ++++++ .../data-table-faceted-filter.svelte | 126 +++++++++++ .../data-table/data-table-pagination.svelte | 93 ++++++++ .../data-table-priority-cell.svelte | 34 +++ .../data-table/data-table-row-actions.svelte | 67 ++++++ .../data-table/data-table-status-cell.svelte | 50 ++++ .../data-table/data-table-title-cell.svelte | 31 +++ .../data-table/data-table-toolbar.svelte | 117 ++++++++++ .../data-table/data-table-view-options.svelte | 34 +++ .../components/data-table/data-table.svelte | 73 ++++++ .../src/lib/components/data-table/index.ts | 10 + .../events/table/EventsDataTable.svelte | 213 ++++++++++++++++++ .../src/lib/components/table/Table.svelte | 4 +- .../ClientApp/src/routes/(app)/+page.svelte | 7 +- 15 files changed, 931 insertions(+), 3 deletions(-) create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-checkbox.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-column-header.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-faceted-filter.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-pagination.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-priority-cell.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-row-actions.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-status-cell.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-title-cell.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-toolbar.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-view-options.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table.svelte create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/data-table/index.ts create mode 100644 src/Exceptionless.Web/ClientApp/src/lib/components/events/table/EventsDataTable.svelte diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-checkbox.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-checkbox.svelte new file mode 100644 index 0000000000..e9e1d4f103 --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-checkbox.svelte @@ -0,0 +1,8 @@ + + + diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-column-header.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-column-header.svelte new file mode 100644 index 0000000000..b648bdb523 --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-column-header.svelte @@ -0,0 +1,67 @@ + + +{#if !props.sort.disabled} +
+ + + + + + Asc + Desc + + +
+{:else} + +{/if} diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-faceted-filter.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-faceted-filter.svelte new file mode 100644 index 0000000000..24a40171aa --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-faceted-filter.svelte @@ -0,0 +1,126 @@ + + + + + + + + + + + No results found. + + {#each options as option} + +
+ +
+ + {option.label} + +
+ {/each} +
+ {#if filterValues.length > 0} + + { + filterValues = []; + }} + > + Clear filters + + {/if} +
+
+
+
diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-pagination.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-pagination.svelte new file mode 100644 index 0000000000..f7cde5d383 --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-pagination.svelte @@ -0,0 +1,93 @@ + + +
+
+ {Object.keys($selectedDataIds).length} of{' '} + {$rows.length} row(s) selected. +
+
+
+

Rows per page

+ pageSize.set(Number(selected?.value))} + selected={{ value: 10, label: '10' }} + > + + + + + 10 + 20 + 30 + 40 + 50 + + +
+
+ Page {$pageIndex + 1} of {$pageCount} +
+
+ + + + +
+
+
diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-priority-cell.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-priority-cell.svelte new file mode 100644 index 0000000000..6610f43c37 --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-priority-cell.svelte @@ -0,0 +1,34 @@ + + +{#if priority} +
+ {#if Icon} + + {/if} + {priority.label} +
+{/if} diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-row-actions.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-row-actions.svelte new file mode 100644 index 0000000000..0f48578d03 --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-row-actions.svelte @@ -0,0 +1,67 @@ + + + + + + + + Edit + Make a copy + Favorite + + + Labels + + + {#each labels as label} + + {label.label} + + {/each} + + + + + + Delete + ⌘⌫ + + + diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-status-cell.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-status-cell.svelte new file mode 100644 index 0000000000..6611366fe7 --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-status-cell.svelte @@ -0,0 +1,50 @@ + + +{#if status} +
+ {#if Icon} + + {/if} + {status.label} +
+{/if} diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-title-cell.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-title-cell.svelte new file mode 100644 index 0000000000..f0a70a1f40 --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-title-cell.svelte @@ -0,0 +1,31 @@ + + +
+ {#if label} + {label.label} + {/if} + + {value} + +
diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-toolbar.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-toolbar.svelte new file mode 100644 index 0000000000..2671394c25 --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-toolbar.svelte @@ -0,0 +1,117 @@ + + +
+
+ + + + + {#if showReset} + + {/if} +
+ + +
diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-view-options.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-view-options.svelte new file mode 100644 index 0000000000..b3e5725317 --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table-view-options.svelte @@ -0,0 +1,34 @@ + + + + + + + + Toggle columns + + {#each $table.getAllLeafColumns() as column} + {#if column.getCanHide()} + column.toggleVisibility()} + > + {column.columnDef.header} + + {/if} + {/each} + + diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table.svelte new file mode 100644 index 0000000000..e9d5cd63ac --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/data-table.svelte @@ -0,0 +1,73 @@ + + +
+ +
+ + + {#each $table.getHeaderGroups() as headerGroup} + + {#each headerGroup.headers as header} + + {#if header.column.columnDef.id !== 'select' && header.column.columnDef.id !== 'actions'} + + {:else} + + {/if} + + {/each} + + {/each} + + + {#each $table.getRowModel().rows as row} + + {#each row.getVisibleCells() as cell} + + {#if cell.id === 'task'} +
+ +
+ {:else} + + {/if} +
+ {/each} +
+ {/each} +
+
+
+ +
diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/index.ts b/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/index.ts new file mode 100644 index 0000000000..d2a7b5d6a7 --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/data-table/index.ts @@ -0,0 +1,10 @@ +export { default as DataTableCheckbox } from './data-table-checkbox.svelte'; +export { default as DataTableTitleCell } from './data-table-title-cell.svelte'; +export { default as DataTableStatusCell } from './data-table-status-cell.svelte'; +export { default as DataTableRowActions } from './data-table-row-actions.svelte'; +export { default as DataTablePriorityCell } from './data-table-priority-cell.svelte'; +export { default as DataTableColumnHeader } from './data-table-column-header.svelte'; +export { default as DataTableToolbar } from './data-table-toolbar.svelte'; +export { default as DataTablePagination } from './data-table-pagination.svelte'; +export { default as DataTableViewOptions } from './data-table-view-options.svelte'; +export { default as DataTableFacetedFilter } from './data-table-faceted-filter.svelte'; diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/events/table/EventsDataTable.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/events/table/EventsDataTable.svelte new file mode 100644 index 0000000000..71e87e11e8 --- /dev/null +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/events/table/EventsDataTable.svelte @@ -0,0 +1,213 @@ + + + + + diff --git a/src/Exceptionless.Web/ClientApp/src/lib/components/table/Table.svelte b/src/Exceptionless.Web/ClientApp/src/lib/components/table/Table.svelte index c8e4eb3ece..d677f625c9 100644 --- a/src/Exceptionless.Web/ClientApp/src/lib/components/table/Table.svelte +++ b/src/Exceptionless.Web/ClientApp/src/lib/components/table/Table.svelte @@ -66,14 +66,14 @@ {/each} -