@widgetic/design-system 0.3.79 → 0.3.81
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 +828 -123
- package/dist/components/CopyableHeader.svelte +13 -11
- package/dist/components/CopyableHeader.svelte.d.ts +34 -38
- package/dist/components/EmptyState.svelte +2 -9
- package/dist/components/EmptyState.svelte.d.ts +30 -35
- package/dist/components/PasswordInput.svelte +1 -5
- package/dist/components/PasswordInput.svelte.d.ts +19 -23
- package/dist/components/ThumbHashImage.svelte.d.ts +20 -24
- package/dist/components/WScrollArea.svelte +3 -3
- package/dist/components/WScrollArea.svelte.d.ts +25 -36
- package/dist/components/debug-grid/DebugGrid.svelte +1 -1
- package/dist/components/debug-grid/DebugGrid.svelte.d.ts +26 -30
- package/dist/components/ic/browser/BrowserInputController.svelte +1 -1
- package/dist/components/ic/browser/BrowserInputController.svelte.d.ts +26 -31
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/modals/ActionModal.svelte.d.ts +36 -47
- package/dist/components/modals/BaseModal.svelte +1 -1
- package/dist/components/modals/BaseModal.svelte.d.ts +32 -36
- package/dist/components/modals/NewItemDialog.svelte +1 -1
- package/dist/components/modals/NewItemDialog.svelte.d.ts +33 -37
- package/dist/components/modals/Portal.svelte.d.ts +21 -32
- package/dist/components/modals/RenameDialog.svelte +6 -7
- package/dist/components/modals/RenameDialog.svelte.d.ts +33 -37
- package/dist/components/modals/modalStore.js +21 -26
- package/dist/components/navigation/Breadcrumbs.svelte +9 -9
- package/dist/components/navigation/Breadcrumbs.svelte.d.ts +28 -32
- package/dist/components/pdf/PDFViewer.svelte +19 -10
- package/dist/components/pdf/PDFViewer.svelte.d.ts +26 -30
- package/dist/components/search-input/SearchInput.svelte +8 -3
- package/dist/components/search-input/SearchInput.svelte.d.ts +40 -44
- package/dist/components/search-input/index.d.ts +14 -3
- package/dist/components/search-input/index.js +2 -1
- package/dist/components/shad-editor/colorpicker.svelte.d.ts +13 -5
- package/dist/components/shad-editor/custom/code-extended.svelte.d.ts +14 -4
- package/dist/components/shad-editor/custom/image-extended-component.svelte +1 -1
- package/dist/components/shad-editor/custom/image-extended-component.svelte.d.ts +14 -4
- package/dist/components/shad-editor/editor-toolbar.svelte.d.ts +13 -7
- package/dist/components/shad-editor/editor.css +4 -8
- package/dist/components/shad-editor/icons/block-quote.svelte.d.ts +13 -6
- package/dist/components/shad-editor/icons/bold.svelte.d.ts +13 -7
- package/dist/components/shad-editor/icons/buttle-list.svelte.d.ts +13 -6
- package/dist/components/shad-editor/icons/code.svelte.d.ts +13 -7
- package/dist/components/shad-editor/icons/highlighter.svelte.d.ts +13 -8
- package/dist/components/shad-editor/icons/image.svelte.d.ts +13 -7
- package/dist/components/shad-editor/icons/italic.svelte.d.ts +13 -7
- package/dist/components/shad-editor/icons/link.svelte.d.ts +13 -7
- package/dist/components/shad-editor/icons/ordered-list.svelte.d.ts +13 -6
- package/dist/components/shad-editor/icons/quickcolor.svelte.d.ts +13 -6
- package/dist/components/shad-editor/icons/redo.svelte.d.ts +13 -7
- package/dist/components/shad-editor/icons/search-replace.svelte.d.ts +13 -6
- package/dist/components/shad-editor/icons/strikethrough.svelte.d.ts +13 -7
- package/dist/components/shad-editor/icons/subscript.svelte.d.ts +13 -7
- package/dist/components/shad-editor/icons/superscript.svelte.d.ts +13 -7
- package/dist/components/shad-editor/icons/table.svelte +3 -3
- package/dist/components/shad-editor/icons/table.svelte.d.ts +13 -7
- package/dist/components/shad-editor/icons/task-list.svelte.d.ts +13 -6
- package/dist/components/shad-editor/icons/text.svelte +1 -1
- package/dist/components/shad-editor/icons/text.svelte.d.ts +13 -6
- package/dist/components/shad-editor/icons/textalign.svelte.d.ts +13 -6
- package/dist/components/shad-editor/icons/textcolor.svelte.d.ts +13 -7
- package/dist/components/shad-editor/icons/underline.svelte.d.ts +13 -7
- package/dist/components/shad-editor/icons/undo.svelte.d.ts +13 -7
- package/dist/components/shad-editor/onedark.css +0 -3
- package/dist/components/shad-editor/shad-editor.svelte +1 -1
- package/dist/components/shad-editor/shad-editor.svelte.d.ts +20 -30
- package/dist/components/toast/ToasterModal.svelte +11 -15
- package/dist/components/toast/ToasterModal.svelte.d.ts +11 -16
- package/dist/components/ui/accordion/accordion-content.svelte.d.ts +14 -4
- package/dist/components/ui/accordion/accordion-item.svelte.d.ts +14 -4
- package/dist/components/ui/accordion/accordion-trigger.svelte.d.ts +13 -6
- package/dist/components/ui/accordion/index.d.ts +1 -1
- package/dist/components/ui/alert/alert-description.svelte.d.ts +14 -25
- package/dist/components/ui/alert/alert-title.svelte.d.ts +16 -27
- package/dist/components/ui/alert/alert.svelte.d.ts +16 -27
- package/dist/components/ui/badge/badge.svelte +1 -1
- package/dist/components/ui/badge/badge.svelte.d.ts +15 -9
- package/dist/components/ui/breadcrumb/breadcrumb-ellipsis.svelte.d.ts +14 -5
- package/dist/components/ui/breadcrumb/breadcrumb-item.svelte.d.ts +14 -5
- package/dist/components/ui/breadcrumb/breadcrumb-link.svelte.d.ts +13 -10
- package/dist/components/ui/breadcrumb/breadcrumb-list.svelte.d.ts +14 -5
- package/dist/components/ui/breadcrumb/breadcrumb-page.svelte.d.ts +14 -5
- package/dist/components/ui/breadcrumb/breadcrumb-separator.svelte.d.ts +14 -5
- package/dist/components/ui/breadcrumb/breadcrumb.svelte.d.ts +14 -5
- package/dist/components/ui/button/button.svelte +1 -1
- package/dist/components/ui/button/button.svelte.d.ts +16 -5
- package/dist/components/ui/calendar/calendar-cell.svelte.d.ts +14 -4
- package/dist/components/ui/calendar/calendar-day.svelte +4 -4
- package/dist/components/ui/calendar/calendar-day.svelte.d.ts +14 -4
- package/dist/components/ui/calendar/calendar-grid-body.svelte.d.ts +14 -4
- package/dist/components/ui/calendar/calendar-grid-head.svelte.d.ts +14 -4
- package/dist/components/ui/calendar/calendar-grid-row.svelte.d.ts +14 -4
- package/dist/components/ui/calendar/calendar-grid.svelte.d.ts +14 -4
- package/dist/components/ui/calendar/calendar-head-cell.svelte.d.ts +14 -4
- package/dist/components/ui/calendar/calendar-header.svelte.d.ts +14 -4
- package/dist/components/ui/calendar/calendar-heading.svelte.d.ts +14 -4
- package/dist/components/ui/calendar/calendar-months.svelte.d.ts +14 -5
- package/dist/components/ui/calendar/calendar-next-button.svelte.d.ts +14 -4
- package/dist/components/ui/calendar/calendar-prev-button.svelte.d.ts +14 -4
- package/dist/components/ui/calendar/calendar.svelte.d.ts +14 -5
- package/dist/components/ui/card/card-content.svelte.d.ts +14 -5
- package/dist/components/ui/card/card-description.svelte.d.ts +14 -5
- package/dist/components/ui/card/card-footer.svelte.d.ts +14 -5
- package/dist/components/ui/card/card-header.svelte.d.ts +14 -5
- package/dist/components/ui/card/card-title.svelte.d.ts +13 -7
- package/dist/components/ui/card/card.svelte +1 -1
- package/dist/components/ui/card/card.svelte.d.ts +14 -5
- package/dist/components/ui/checkbox/checkbox.svelte +1 -1
- package/dist/components/ui/checkbox/checkbox.svelte.d.ts +14 -4
- package/dist/components/ui/collapsible/index.d.ts +1 -1
- package/dist/components/ui/command/command-dialog.svelte +1 -1
- package/dist/components/ui/command/command-dialog.svelte.d.ts +13 -8
- package/dist/components/ui/command/command-empty.svelte.d.ts +14 -4
- package/dist/components/ui/command/command-group.svelte.d.ts +13 -6
- package/dist/components/ui/command/command-input.svelte +1 -1
- package/dist/components/ui/command/command-input.svelte.d.ts +14 -4
- package/dist/components/ui/command/command-item.svelte +1 -1
- package/dist/components/ui/command/command-item.svelte.d.ts +14 -4
- package/dist/components/ui/command/command-link-item.svelte +1 -1
- package/dist/components/ui/command/command-link-item.svelte.d.ts +14 -4
- package/dist/components/ui/command/command-list.svelte.d.ts +14 -4
- package/dist/components/ui/command/command-separator.svelte.d.ts +14 -4
- package/dist/components/ui/command/command-shortcut.svelte.d.ts +14 -5
- package/dist/components/ui/command/command.svelte.d.ts +14 -4
- package/dist/components/ui/dialog/dialog-content.svelte +1 -1
- package/dist/components/ui/dialog/dialog-content.svelte.d.ts +13 -8
- package/dist/components/ui/dialog/dialog-description.svelte.d.ts +14 -4
- package/dist/components/ui/dialog/dialog-footer.svelte.d.ts +14 -5
- package/dist/components/ui/dialog/dialog-header.svelte.d.ts +14 -5
- package/dist/components/ui/dialog/dialog-overlay.svelte.d.ts +14 -4
- package/dist/components/ui/dialog/dialog-title.svelte.d.ts +14 -4
- package/dist/components/ui/drawer/drawer-content.svelte.d.ts +13 -6
- package/dist/components/ui/drawer/drawer-description.svelte.d.ts +14 -4
- package/dist/components/ui/drawer/drawer-footer.svelte.d.ts +14 -5
- package/dist/components/ui/drawer/drawer-header.svelte.d.ts +14 -5
- package/dist/components/ui/drawer/drawer-nested.svelte.d.ts +14 -3
- package/dist/components/ui/drawer/drawer-overlay.svelte.d.ts +14 -4
- package/dist/components/ui/drawer/drawer-title.svelte.d.ts +14 -4
- package/dist/components/ui/drawer/drawer.svelte.d.ts +14 -3
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte.d.ts +13 -7
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte.d.ts +13 -6
- package/dist/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte.d.ts +13 -6
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte.d.ts +13 -6
- package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte.d.ts +13 -7
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte.d.ts +14 -4
- package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte.d.ts +14 -4
- package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte.d.ts +14 -5
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte.d.ts +14 -4
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte.d.ts +13 -6
- package/dist/components/ui/dropdown-menu/index.d.ts +1 -1
- package/dist/components/ui/hover-card/hover-card-content.svelte +1 -1
- package/dist/components/ui/hover-card/hover-card-content.svelte.d.ts +13 -6
- package/dist/components/ui/input/input.svelte +1 -1
- package/dist/components/ui/input/input.svelte.d.ts +14 -5
- package/dist/components/ui/input-otp/input-otp-group.svelte.d.ts +14 -5
- package/dist/components/ui/input-otp/input-otp-separator.svelte.d.ts +14 -5
- package/dist/components/ui/input-otp/input-otp-slot.svelte.d.ts +14 -12
- package/dist/components/ui/input-otp/input-otp.svelte +1 -1
- package/dist/components/ui/input-otp/input-otp.svelte.d.ts +14 -3
- package/dist/components/ui/label/label.svelte.d.ts +14 -4
- package/dist/components/ui/popover/popover-content.svelte +1 -1
- package/dist/components/ui/popover/popover-content.svelte.d.ts +13 -6
- package/dist/components/ui/progress/progress.svelte.d.ts +14 -4
- package/dist/components/ui/radio-group/radio-group-item.svelte +1 -1
- package/dist/components/ui/radio-group/radio-group-item.svelte.d.ts +14 -4
- package/dist/components/ui/radio-group/radio-group.svelte.d.ts +14 -4
- package/dist/components/ui/range-calendar/range-calendar-cell.svelte.d.ts +14 -4
- package/dist/components/ui/range-calendar/range-calendar-day.svelte +6 -6
- package/dist/components/ui/range-calendar/range-calendar-day.svelte.d.ts +14 -4
- package/dist/components/ui/range-calendar/range-calendar-grid-row.svelte.d.ts +14 -4
- package/dist/components/ui/range-calendar/range-calendar-grid.svelte.d.ts +14 -4
- package/dist/components/ui/range-calendar/range-calendar-head-cell.svelte.d.ts +14 -4
- package/dist/components/ui/range-calendar/range-calendar-header.svelte.d.ts +14 -4
- package/dist/components/ui/range-calendar/range-calendar-heading.svelte.d.ts +14 -4
- package/dist/components/ui/range-calendar/range-calendar-months.svelte.d.ts +14 -5
- package/dist/components/ui/range-calendar/range-calendar-next-button.svelte.d.ts +14 -4
- package/dist/components/ui/range-calendar/range-calendar-prev-button.svelte.d.ts +14 -4
- package/dist/components/ui/range-calendar/range-calendar.svelte.d.ts +14 -5
- package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte.d.ts +14 -4
- package/dist/components/ui/scroll-area/scroll-area.svelte.d.ts +13 -8
- package/dist/components/ui/select/index.d.ts +1 -1
- package/dist/components/ui/select/select-content.svelte.d.ts +13 -6
- package/dist/components/ui/select/select-group-heading.svelte.d.ts +14 -4
- package/dist/components/ui/select/select-item.svelte +1 -1
- package/dist/components/ui/select/select-item.svelte.d.ts +14 -4
- package/dist/components/ui/select/select-scroll-down-button.svelte.d.ts +14 -4
- package/dist/components/ui/select/select-scroll-up-button.svelte.d.ts +14 -4
- package/dist/components/ui/select/select-separator.svelte.d.ts +14 -4
- package/dist/components/ui/select/select-trigger.svelte +1 -1
- package/dist/components/ui/select/select-trigger.svelte.d.ts +14 -4
- package/dist/components/ui/separator/separator.svelte.d.ts +14 -4
- package/dist/components/ui/slider/slider.svelte +1 -1
- package/dist/components/ui/slider/slider.svelte.d.ts +14 -4
- package/dist/components/ui/sonner/sonner.svelte.d.ts +14 -4
- package/dist/components/ui/switch/switch.svelte +1 -1
- package/dist/components/ui/switch/switch.svelte.d.ts +14 -4
- package/dist/components/ui/table/table-body.svelte.d.ts +14 -5
- package/dist/components/ui/table/table-caption.svelte.d.ts +14 -5
- package/dist/components/ui/table/table-cell.svelte.d.ts +14 -5
- package/dist/components/ui/table/table-footer.svelte.d.ts +14 -5
- package/dist/components/ui/table/table-head.svelte.d.ts +14 -5
- package/dist/components/ui/table/table-header.svelte.d.ts +14 -5
- package/dist/components/ui/table/table-row.svelte.d.ts +14 -5
- package/dist/components/ui/table/table.svelte.d.ts +14 -5
- package/dist/components/ui/tabs/index.d.ts +1 -1
- package/dist/components/ui/tabs/tabs-content.svelte +1 -1
- package/dist/components/ui/tabs/tabs-content.svelte.d.ts +14 -4
- package/dist/components/ui/tabs/tabs-list.svelte.d.ts +14 -4
- package/dist/components/ui/tabs/tabs-trigger.svelte +1 -1
- package/dist/components/ui/tabs/tabs-trigger.svelte.d.ts +14 -4
- package/dist/components/ui/textarea/textarea.svelte +1 -1
- package/dist/components/ui/textarea/textarea.svelte.d.ts +14 -5
- package/dist/components/ui/toggle/toggle.svelte +1 -1
- package/dist/components/ui/toggle/toggle.svelte.d.ts +15 -9
- package/dist/components/ui/toggle-group/toggle-group-item.svelte.d.ts +14 -6
- package/dist/components/ui/toggle-group/toggle-group.svelte.d.ts +14 -5
- package/dist/components/ui/tooltip/tooltip-content.svelte.d.ts +14 -4
- package/dist/components/widget-system/EditableWidget.svelte.d.ts +30 -42
- package/dist/components/widget-system/Moveable.svelte +62 -19
- package/dist/components/widget-system/Moveable.svelte.d.ts +37 -49
- package/dist/icons/Checked.svelte.d.ts +14 -18
- package/dist/icons/CheckerBoardBackground.svelte.d.ts +14 -3
- package/dist/icons/Close.svelte.d.ts +14 -18
- package/dist/icons/Exclamation.svelte.d.ts +19 -22
- package/dist/icons/FileBrowser.svelte.d.ts +14 -18
- package/dist/icons/LogoWidgetic.svelte +6 -17
- package/dist/icons/LogoWidgetic.svelte.d.ts +14 -18
- package/dist/icons/LogoWidgeticGreen.svelte +13 -0
- package/dist/icons/LogoWidgeticGreen.svelte.d.ts +16 -0
- package/dist/icons/LogoWidgeticType-old.svelte +13 -0
- package/dist/icons/LogoWidgeticType-old.svelte.d.ts +16 -0
- package/dist/icons/LogoWidgeticType-old.svg +4 -0
- package/dist/icons/LogoWidgeticType.svelte +18 -10
- package/dist/icons/LogoWidgeticType.svelte.d.ts +14 -18
- package/dist/icons/LogoWidgeticType.svg +10 -3
- package/dist/icons/OpacitySliderArrows.svelte.d.ts +14 -3
- package/dist/icons/TestIcon.svelte.d.ts +19 -22
- package/dist/icons/index.d.ts +3 -1
- package/dist/icons/index.js +3 -1
- package/dist/styles/fonts.css +39 -50
- package/dist/styles/global.css +45 -68
- package/package.json +36 -47
- package/tailwind.config.ts +6 -1
- package/dist/components/search-input/index2.d.ts +0 -14
- package/dist/components/shad-editor/README.md +0 -18
- package/dist/icons/eye-off.svg +0 -1
- package/dist/icons/eye.svg +0 -1
- /package/dist/icons/{checked.svg → Checked.svg} +0 -0
|
@@ -1,49 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
class?: string;
|
|
5
|
+
style?: string;
|
|
6
|
+
isOpen?: boolean;
|
|
7
|
+
items?: any[];
|
|
8
|
+
title?: string;
|
|
9
|
+
message?: string;
|
|
10
|
+
confirmLabel?: string;
|
|
11
|
+
onConfirm?: () => Promise<any>;
|
|
12
|
+
cancelLabel?: string;
|
|
13
|
+
onCancel?: () => void;
|
|
14
|
+
width?: string;
|
|
15
|
+
height?: string;
|
|
16
|
+
target?: string;
|
|
17
|
+
isConfirmDisabled?: boolean;
|
|
18
|
+
confirmVariant?: "primary" | "attention";
|
|
19
|
+
actionType?: string;
|
|
20
|
+
modalType?: string;
|
|
21
|
+
modalData?: any;
|
|
11
22
|
};
|
|
12
|
-
|
|
23
|
+
events: {
|
|
24
|
+
cancel: CustomEvent<any>;
|
|
25
|
+
confirm: CustomEvent<any>;
|
|
26
|
+
} & {
|
|
27
|
+
[evt: string]: CustomEvent<any>;
|
|
28
|
+
};
|
|
29
|
+
slots: {
|
|
30
|
+
default: {};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export type ActionModalProps = typeof __propDef.props;
|
|
34
|
+
export type ActionModalEvents = typeof __propDef.events;
|
|
35
|
+
export type ActionModalSlots = typeof __propDef.slots;
|
|
36
|
+
export default class ActionModal extends SvelteComponentTyped<ActionModalProps, ActionModalEvents, ActionModalSlots> {
|
|
13
37
|
}
|
|
14
|
-
|
|
15
|
-
default: any;
|
|
16
|
-
} ? Props extends Record<string, never> ? any : {
|
|
17
|
-
children?: any;
|
|
18
|
-
} : {});
|
|
19
|
-
declare const ActionModal: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
20
|
-
class?: string;
|
|
21
|
-
style?: string;
|
|
22
|
-
isOpen?: boolean;
|
|
23
|
-
items?: any[];
|
|
24
|
-
title?: string;
|
|
25
|
-
message?: string;
|
|
26
|
-
confirmLabel?: string;
|
|
27
|
-
onConfirm?: () => Promise<any>;
|
|
28
|
-
cancelLabel?: string;
|
|
29
|
-
onCancel?: () => void;
|
|
30
|
-
width?: string;
|
|
31
|
-
height?: string;
|
|
32
|
-
target?: string;
|
|
33
|
-
isConfirmDisabled?: boolean;
|
|
34
|
-
confirmVariant?: "primary" | "attention";
|
|
35
|
-
actionType?: string;
|
|
36
|
-
modalType?: string;
|
|
37
|
-
modalData?: any;
|
|
38
|
-
}, {
|
|
39
|
-
default: {};
|
|
40
|
-
}>, {
|
|
41
|
-
cancel: CustomEvent<any>;
|
|
42
|
-
confirm: CustomEvent<any>;
|
|
43
|
-
} & {
|
|
44
|
-
[evt: string]: CustomEvent<any>;
|
|
45
|
-
}, {
|
|
46
|
-
default: {};
|
|
47
|
-
}, {}, string>;
|
|
48
|
-
type ActionModal = InstanceType<typeof ActionModal>;
|
|
49
|
-
export default ActionModal;
|
|
38
|
+
export {};
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
></div>
|
|
285
285
|
|
|
286
286
|
<!-- Close button -->
|
|
287
|
-
<div class="modal-close-bt-container absolute top-4 right-4 z-1004" transition:fade={{ duration: transitionDuration, easing }}>
|
|
287
|
+
<div class="modal-close-bt-container absolute top-4 right-4 z-[1004]" transition:fade={{ duration: transitionDuration, easing }}>
|
|
288
288
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
289
289
|
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
290
290
|
<div
|
|
@@ -1,38 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
class?: string;
|
|
5
|
+
style?: string;
|
|
6
|
+
width?: string;
|
|
7
|
+
height?: string;
|
|
8
|
+
modalType?: string | undefined;
|
|
9
|
+
modalData?: any;
|
|
10
|
+
target?: string;
|
|
11
|
+
title?: string | undefined;
|
|
12
|
+
titlePadding?: "small" | "large";
|
|
13
|
+
open?: boolean;
|
|
14
|
+
enableSpaceKey?: boolean;
|
|
15
|
+
isSelected?: boolean;
|
|
16
|
+
showScroll?: boolean;
|
|
17
|
+
children: any;
|
|
11
18
|
};
|
|
12
|
-
|
|
19
|
+
events: {
|
|
20
|
+
click: MouseEvent;
|
|
21
|
+
restore: CustomEvent<any>;
|
|
22
|
+
spaceKey: CustomEvent<any>;
|
|
23
|
+
close: CustomEvent<any>;
|
|
24
|
+
} & {
|
|
25
|
+
[evt: string]: CustomEvent<any>;
|
|
26
|
+
};
|
|
27
|
+
slots: {};
|
|
28
|
+
};
|
|
29
|
+
export type BaseModalProps = typeof __propDef.props;
|
|
30
|
+
export type BaseModalEvents = typeof __propDef.events;
|
|
31
|
+
export type BaseModalSlots = typeof __propDef.slots;
|
|
32
|
+
export default class BaseModal extends SvelteComponentTyped<BaseModalProps, BaseModalEvents, BaseModalSlots> {
|
|
13
33
|
}
|
|
14
|
-
|
|
15
|
-
class?: string;
|
|
16
|
-
style?: string;
|
|
17
|
-
width?: string;
|
|
18
|
-
height?: string;
|
|
19
|
-
modalType?: string | undefined;
|
|
20
|
-
modalData?: any;
|
|
21
|
-
target?: string;
|
|
22
|
-
title?: string | undefined;
|
|
23
|
-
titlePadding?: "small" | "large";
|
|
24
|
-
open?: boolean;
|
|
25
|
-
enableSpaceKey?: boolean;
|
|
26
|
-
isSelected?: boolean;
|
|
27
|
-
showScroll?: boolean;
|
|
28
|
-
children: any;
|
|
29
|
-
}, {
|
|
30
|
-
click: MouseEvent;
|
|
31
|
-
restore: CustomEvent<any>;
|
|
32
|
-
spaceKey: CustomEvent<any>;
|
|
33
|
-
close: CustomEvent<any>;
|
|
34
|
-
} & {
|
|
35
|
-
[evt: string]: CustomEvent<any>;
|
|
36
|
-
}, {}, {}, string>;
|
|
37
|
-
type BaseModal = InstanceType<typeof BaseModal>;
|
|
38
|
-
export default BaseModal;
|
|
34
|
+
export {};
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
}}
|
|
132
132
|
required
|
|
133
133
|
class="w-full h5 text-[24px] text-[hsl(var(--grey7))] text-center
|
|
134
|
-
bg-transparent border-none focus:outline-
|
|
134
|
+
bg-transparent border-none focus:outline-none focus:ring-0
|
|
135
135
|
placeholder:text-[24px] placeholder:text-[hsl(var(--grey3))]
|
|
136
136
|
{!isValid && hasAttemptedSubmit ? 'input-error' : ''}"
|
|
137
137
|
placeholder={placeholder}
|
|
@@ -1,39 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
class?: string;
|
|
5
|
+
style?: string;
|
|
6
|
+
isOpen?: boolean;
|
|
7
|
+
title?: string;
|
|
8
|
+
showTitle?: boolean;
|
|
9
|
+
itemType?: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
target?: string;
|
|
12
|
+
currentPath?: string[];
|
|
13
|
+
currentPathNames?: string[];
|
|
14
|
+
confirmLabel?: string;
|
|
15
|
+
cancelLabel?: string;
|
|
16
|
+
modalType?: string;
|
|
17
|
+
modalWidth?: string;
|
|
18
|
+
modalHeight?: string;
|
|
19
|
+
maxLength?: number;
|
|
20
|
+
modalData?: Record<string, any>;
|
|
11
21
|
};
|
|
12
|
-
|
|
22
|
+
events: {
|
|
23
|
+
create: CustomEvent<any>;
|
|
24
|
+
cancel: CustomEvent<any>;
|
|
25
|
+
} & {
|
|
26
|
+
[evt: string]: CustomEvent<any>;
|
|
27
|
+
};
|
|
28
|
+
slots: {};
|
|
29
|
+
};
|
|
30
|
+
export type NewItemDialogProps = typeof __propDef.props;
|
|
31
|
+
export type NewItemDialogEvents = typeof __propDef.events;
|
|
32
|
+
export type NewItemDialogSlots = typeof __propDef.slots;
|
|
33
|
+
export default class NewItemDialog extends SvelteComponentTyped<NewItemDialogProps, NewItemDialogEvents, NewItemDialogSlots> {
|
|
13
34
|
}
|
|
14
|
-
|
|
15
|
-
class?: string;
|
|
16
|
-
style?: string;
|
|
17
|
-
isOpen?: boolean;
|
|
18
|
-
title?: string;
|
|
19
|
-
showTitle?: boolean;
|
|
20
|
-
itemType?: string;
|
|
21
|
-
placeholder?: string;
|
|
22
|
-
target?: string;
|
|
23
|
-
currentPath?: string[];
|
|
24
|
-
currentPathNames?: string[];
|
|
25
|
-
confirmLabel?: string;
|
|
26
|
-
cancelLabel?: string;
|
|
27
|
-
modalType?: string;
|
|
28
|
-
modalWidth?: string;
|
|
29
|
-
modalHeight?: string;
|
|
30
|
-
maxLength?: number;
|
|
31
|
-
modalData?: Record<string, any>;
|
|
32
|
-
}, {
|
|
33
|
-
create: CustomEvent<any>;
|
|
34
|
-
cancel: CustomEvent<any>;
|
|
35
|
-
} & {
|
|
36
|
-
[evt: string]: CustomEvent<any>;
|
|
37
|
-
}, {}, {}, string>;
|
|
38
|
-
type NewItemDialog = InstanceType<typeof NewItemDialog>;
|
|
39
|
-
export default NewItemDialog;
|
|
35
|
+
export {};
|
|
@@ -1,34 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
$on?: any;
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
target?: string | HTMLElement | undefined;
|
|
5
|
+
clickThrough?: boolean;
|
|
6
|
+
class?: string;
|
|
7
|
+
style?: string;
|
|
8
|
+
clientWidth?: number;
|
|
9
|
+
clientHeight?: number;
|
|
11
10
|
};
|
|
12
|
-
|
|
11
|
+
events: {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
};
|
|
14
|
+
slots: {
|
|
15
|
+
default: {};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export type PortalProps = typeof __propDef.props;
|
|
19
|
+
export type PortalEvents = typeof __propDef.events;
|
|
20
|
+
export type PortalSlots = typeof __propDef.slots;
|
|
21
|
+
export default class Portal extends SvelteComponentTyped<PortalProps, PortalEvents, PortalSlots> {
|
|
13
22
|
}
|
|
14
|
-
|
|
15
|
-
default: any;
|
|
16
|
-
} ? Props extends Record<string, never> ? any : {
|
|
17
|
-
children?: any;
|
|
18
|
-
} : {});
|
|
19
|
-
declare const Portal: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
20
|
-
target?: string | HTMLElement | undefined;
|
|
21
|
-
clickThrough?: boolean;
|
|
22
|
-
class?: string;
|
|
23
|
-
style?: string;
|
|
24
|
-
clientWidth?: number;
|
|
25
|
-
clientHeight?: number;
|
|
26
|
-
}, {
|
|
27
|
-
default: {};
|
|
28
|
-
}>, {
|
|
29
|
-
[evt: string]: CustomEvent<any>;
|
|
30
|
-
}, {
|
|
31
|
-
default: {};
|
|
32
|
-
}, {}, string>;
|
|
33
|
-
type Portal = InstanceType<typeof Portal>;
|
|
34
|
-
export default Portal;
|
|
23
|
+
export {};
|
|
@@ -264,7 +264,7 @@
|
|
|
264
264
|
}}
|
|
265
265
|
required
|
|
266
266
|
class="w-full h5 text-[24px] text-[hsl(var(--grey7))] text-center
|
|
267
|
-
bg-transparent border-none focus:outline-
|
|
267
|
+
bg-transparent border-none focus:outline-none focus:ring-0
|
|
268
268
|
placeholder:text-[24px] placeholder:text-[hsl(var(--grey3))]
|
|
269
269
|
{!isValid && hasAttemptedSubmit ? 'input-error' : ''}"
|
|
270
270
|
maxlength={maxLength}
|
|
@@ -282,17 +282,16 @@
|
|
|
282
282
|
|
|
283
283
|
<!-- Buttons Container -->
|
|
284
284
|
<div class="buttons-container flex justify-center gap-4">
|
|
285
|
-
<!-- Cancel Button -->
|
|
286
|
-
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
287
285
|
<Button
|
|
288
|
-
|
|
286
|
+
type="button"
|
|
287
|
+
variant="secondary"
|
|
288
|
+
class="modal-btn-secondary !h-[34px]"
|
|
289
289
|
onclick={handleClose}
|
|
290
290
|
>
|
|
291
291
|
{cancelLabel}
|
|
292
292
|
</Button>
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
<Button
|
|
293
|
+
<Button
|
|
294
|
+
type="submit"
|
|
296
295
|
class="modal-btn-primary !h-[34px]"
|
|
297
296
|
onclick={handleRename}
|
|
298
297
|
disabled={!isValid}
|
|
@@ -1,39 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
class?: string;
|
|
5
|
+
style?: string;
|
|
6
|
+
isOpen?: boolean;
|
|
7
|
+
itemName?: string;
|
|
8
|
+
itemType?: string;
|
|
9
|
+
itemId?: string;
|
|
10
|
+
title?: string;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
confirmLabel?: string;
|
|
13
|
+
cancelLabel?: string;
|
|
14
|
+
width?: string;
|
|
15
|
+
height?: string;
|
|
16
|
+
target?: string;
|
|
17
|
+
maxLength?: number;
|
|
18
|
+
shouldUseCustomRenameFunction?: boolean;
|
|
19
|
+
modalType?: string;
|
|
20
|
+
modalData?: any;
|
|
11
21
|
};
|
|
12
|
-
|
|
22
|
+
events: {
|
|
23
|
+
rename: CustomEvent<any>;
|
|
24
|
+
cancel: CustomEvent<any>;
|
|
25
|
+
} & {
|
|
26
|
+
[evt: string]: CustomEvent<any>;
|
|
27
|
+
};
|
|
28
|
+
slots: {};
|
|
29
|
+
};
|
|
30
|
+
export type RenameDialogProps = typeof __propDef.props;
|
|
31
|
+
export type RenameDialogEvents = typeof __propDef.events;
|
|
32
|
+
export type RenameDialogSlots = typeof __propDef.slots;
|
|
33
|
+
export default class RenameDialog extends SvelteComponentTyped<RenameDialogProps, RenameDialogEvents, RenameDialogSlots> {
|
|
13
34
|
}
|
|
14
|
-
|
|
15
|
-
class?: string;
|
|
16
|
-
style?: string;
|
|
17
|
-
isOpen?: boolean;
|
|
18
|
-
itemName?: string;
|
|
19
|
-
itemType?: string;
|
|
20
|
-
itemId?: string;
|
|
21
|
-
title?: string;
|
|
22
|
-
placeholder?: string;
|
|
23
|
-
confirmLabel?: string;
|
|
24
|
-
cancelLabel?: string;
|
|
25
|
-
width?: string;
|
|
26
|
-
height?: string;
|
|
27
|
-
target?: string;
|
|
28
|
-
maxLength?: number;
|
|
29
|
-
shouldUseCustomRenameFunction?: boolean;
|
|
30
|
-
modalType?: string;
|
|
31
|
-
modalData?: any;
|
|
32
|
-
}, {
|
|
33
|
-
rename: CustomEvent<any>;
|
|
34
|
-
cancel: CustomEvent<any>;
|
|
35
|
-
} & {
|
|
36
|
-
[evt: string]: CustomEvent<any>;
|
|
37
|
-
}, {}, {}, string>;
|
|
38
|
-
type RenameDialog = InstanceType<typeof RenameDialog>;
|
|
39
|
-
export default RenameDialog;
|
|
35
|
+
export {};
|
|
@@ -1,33 +1,28 @@
|
|
|
1
1
|
import { writable } from 'svelte/store';
|
|
2
2
|
// import { browser } from '$app/environment';
|
|
3
|
+
// Determine if running in browser (avoids reference errors during SSR)
|
|
3
4
|
const browser = typeof window !== 'undefined';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return { isOpen: false };
|
|
17
|
-
};
|
|
18
|
-
// Create a store to track modal state
|
|
5
|
+
// Debug flag – set to true when you need to trace modal behaviour
|
|
6
|
+
const showLogs = false;
|
|
7
|
+
/*
|
|
8
|
+
* NOTE: We intentionally **do not** persist modal state to `localStorage` anymore.
|
|
9
|
+
* Persisting the open state caused an issue where refreshing the page while a
|
|
10
|
+
* modal was open would restore (and immediately reopen) that modal on the next
|
|
11
|
+
* page load. The new behaviour always starts with `isOpen: false`, ensuring a
|
|
12
|
+
* clean slate after any refresh.
|
|
13
|
+
*/
|
|
14
|
+
// Always start with a closed modal on fresh page loads
|
|
15
|
+
const getInitialState = () => ({ isOpen: false });
|
|
16
|
+
// Central writable store for runtime modal state
|
|
19
17
|
export const modalState = writable(getInitialState());
|
|
20
|
-
//
|
|
18
|
+
// Backwards-compatibility helper – exposes only the boolean flag
|
|
21
19
|
export const isModalOpen = writable(getInitialState().isOpen);
|
|
22
|
-
//
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
isModalOpen.set(state.isOpen);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
20
|
+
// Keep `isModalOpen` in sync (without persisting to localStorage)
|
|
21
|
+
modalState.subscribe(state => {
|
|
22
|
+
if (showLogs)
|
|
23
|
+
console.log('Modal state updated:', state);
|
|
24
|
+
isModalOpen.set(state.isOpen);
|
|
25
|
+
});
|
|
31
26
|
// Helper functions to manage modal state
|
|
32
27
|
export function openModal(modalType, data) {
|
|
33
28
|
if (showLogs)
|
|
@@ -35,7 +30,7 @@ export function openModal(modalType, data) {
|
|
|
35
30
|
modalState.set({
|
|
36
31
|
isOpen: true,
|
|
37
32
|
modalType,
|
|
38
|
-
data
|
|
33
|
+
data,
|
|
39
34
|
});
|
|
40
35
|
}
|
|
41
36
|
export function closeModal() {
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
>
|
|
183
183
|
<!-- NAVIGATION BUTTONS -->
|
|
184
184
|
{#if showNavigationButtons}
|
|
185
|
-
<div class="nav-buttons flex items-center shrink-0">
|
|
185
|
+
<div class="nav-buttons flex items-center flex-shrink-0">
|
|
186
186
|
<!-- Left arrow -->
|
|
187
187
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
188
188
|
<div
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
<Breadcrumb.List class="inline-flex items-center min-w-0 breadcrumbs-list">
|
|
223
223
|
<div class="inline-flex items-center min-w-0 min-h-[24px]">
|
|
224
224
|
<!-- Root Breadcrumb Item -->
|
|
225
|
-
<Breadcrumb.Item class="shrink-0">
|
|
225
|
+
<Breadcrumb.Item class="flex-shrink-0">
|
|
226
226
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
227
227
|
<span
|
|
228
228
|
role="link"
|
|
@@ -241,10 +241,10 @@
|
|
|
241
241
|
{#if !isLoading && currentPath.length > 0 && breadcrumbsPositioned}
|
|
242
242
|
{#if shouldShowEllipsis && currentPath.length > itemsToShow}
|
|
243
243
|
<!-- Breadcrumb Separator -->
|
|
244
|
-
<Breadcrumb.Separator class="h5 text-[hsl(var(--grey6))] shrink-0">/</Breadcrumb.Separator>
|
|
244
|
+
<Breadcrumb.Separator class="h5 text-[hsl(var(--grey6))] flex-shrink-0">/</Breadcrumb.Separator>
|
|
245
245
|
|
|
246
246
|
<!-- Dropdown Menu for Ellipsis -->
|
|
247
|
-
<Breadcrumb.Item class="shrink-0">
|
|
247
|
+
<Breadcrumb.Item class="flex-shrink-0">
|
|
248
248
|
<DropdownMenu.Root>
|
|
249
249
|
<DropdownMenu.Trigger class="flex items-center gap-1 cursor-pointer">
|
|
250
250
|
<span class="h5 text-[hsl(var(--grey6))]">...</span>
|
|
@@ -269,8 +269,8 @@
|
|
|
269
269
|
|
|
270
270
|
<!-- Always show last N segments based on available width -->
|
|
271
271
|
{#each currentPath.slice(-itemsToShow + 1) as _, index}
|
|
272
|
-
<Breadcrumb.Separator class="h5 text-[hsl(var(--grey6))] shrink-0">/</Breadcrumb.Separator>
|
|
273
|
-
<Breadcrumb.Item class="shrink-0">
|
|
272
|
+
<Breadcrumb.Separator class="h5 text-[hsl(var(--grey6))] flex-shrink-0">/</Breadcrumb.Separator>
|
|
273
|
+
<Breadcrumb.Item class="flex-shrink-0">
|
|
274
274
|
{#if index === itemsToShow - 2}
|
|
275
275
|
<span class="h5 text-[hsl(var(--grey3))]">
|
|
276
276
|
{currentPathNames[currentPath.length - 1]}
|
|
@@ -293,8 +293,8 @@
|
|
|
293
293
|
{/each}
|
|
294
294
|
{:else}
|
|
295
295
|
{#each currentPath as _, index}
|
|
296
|
-
<Breadcrumb.Separator class="h5 text-[hsl(var(--grey6))] shrink-0">/</Breadcrumb.Separator>
|
|
297
|
-
<Breadcrumb.Item class="shrink-0">
|
|
296
|
+
<Breadcrumb.Separator class="h5 text-[hsl(var(--grey6))] flex-shrink-0">/</Breadcrumb.Separator>
|
|
297
|
+
<Breadcrumb.Item class="flex-shrink-0">
|
|
298
298
|
{#if index === currentPath.length - 1}
|
|
299
299
|
<span class="h5 text-[hsl(var(--grey3))]">
|
|
300
300
|
{currentPathNames[index]}
|
|
@@ -323,7 +323,7 @@
|
|
|
323
323
|
</div>
|
|
324
324
|
|
|
325
325
|
{#if showDebugVisualizer}
|
|
326
|
-
<div class="absolute bottom-1 right-1 text-xs text-blue-600 bg-white px-1 rounded shadow
|
|
326
|
+
<div class="absolute bottom-1 right-1 text-xs text-blue-600 bg-white px-1 rounded shadow">
|
|
327
327
|
Available width: {Math.round(availableWidth)}px
|
|
328
328
|
<br>
|
|
329
329
|
Items to show: {itemsToShow}
|
|
@@ -1,35 +1,31 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
1
2
|
import type { BreadcrumbsProps } from './types.ts';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
/***
|
|
6
|
+
* COMPONENT PROPS
|
|
7
|
+
**/ class?: string;
|
|
8
|
+
style?: string;
|
|
9
|
+
clientHeight?: number;
|
|
10
|
+
currentPath?: BreadcrumbsProps["currentPath"];
|
|
11
|
+
currentPathNames?: BreadcrumbsProps["currentPathNames"];
|
|
12
|
+
isLoading?: BreadcrumbsProps["isLoading"];
|
|
13
|
+
showNavigationButtons?: BreadcrumbsProps["showNavigationButtons"];
|
|
14
|
+
canGoBack?: BreadcrumbsProps["canGoBack"];
|
|
15
|
+
canGoForward?: BreadcrumbsProps["canGoForward"];
|
|
16
|
+
onNavigate?: BreadcrumbsProps["onNavigate"];
|
|
17
|
+
onBack?: BreadcrumbsProps["onBack"];
|
|
18
|
+
onForward?: BreadcrumbsProps["onForward"];
|
|
19
|
+
showDebugVisualizer?: boolean;
|
|
12
20
|
};
|
|
13
|
-
|
|
21
|
+
events: {
|
|
22
|
+
[evt: string]: CustomEvent<any>;
|
|
23
|
+
};
|
|
24
|
+
slots: {};
|
|
25
|
+
};
|
|
26
|
+
type BreadcrumbsProps_ = typeof __propDef.props;
|
|
27
|
+
export { BreadcrumbsProps_ as BreadcrumbsProps };
|
|
28
|
+
export type BreadcrumbsEvents = typeof __propDef.events;
|
|
29
|
+
export type BreadcrumbsSlots = typeof __propDef.slots;
|
|
30
|
+
export default class Breadcrumbs extends SvelteComponentTyped<BreadcrumbsProps_, BreadcrumbsEvents, BreadcrumbsSlots> {
|
|
14
31
|
}
|
|
15
|
-
declare const Breadcrumbs: $$__sveltets_2_IsomorphicComponent<{
|
|
16
|
-
/***
|
|
17
|
-
* COMPONENT PROPS
|
|
18
|
-
**/ class?: string;
|
|
19
|
-
style?: string;
|
|
20
|
-
clientHeight?: number;
|
|
21
|
-
currentPath?: BreadcrumbsProps["currentPath"];
|
|
22
|
-
currentPathNames?: BreadcrumbsProps["currentPathNames"];
|
|
23
|
-
isLoading?: BreadcrumbsProps["isLoading"];
|
|
24
|
-
showNavigationButtons?: BreadcrumbsProps["showNavigationButtons"];
|
|
25
|
-
canGoBack?: BreadcrumbsProps["canGoBack"];
|
|
26
|
-
canGoForward?: BreadcrumbsProps["canGoForward"];
|
|
27
|
-
onNavigate?: BreadcrumbsProps["onNavigate"];
|
|
28
|
-
onBack?: BreadcrumbsProps["onBack"];
|
|
29
|
-
onForward?: BreadcrumbsProps["onForward"];
|
|
30
|
-
showDebugVisualizer?: boolean;
|
|
31
|
-
}, {
|
|
32
|
-
[evt: string]: CustomEvent<any>;
|
|
33
|
-
}, {}, {}, string>;
|
|
34
|
-
type Breadcrumbs = InstanceType<typeof Breadcrumbs>;
|
|
35
|
-
export default Breadcrumbs;
|
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
import { onMount, onDestroy, tick, afterUpdate, createEventDispatcher } from 'svelte';
|
|
4
4
|
|
|
5
5
|
// Sveltekit imports
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const base = '';
|
|
6
|
+
import { browser } from '$app/environment';
|
|
7
|
+
import { base } from '$app/paths';
|
|
8
|
+
|
|
10
9
|
// Local components imports
|
|
11
10
|
import { WScrollArea } from '../../components';
|
|
12
11
|
|
|
@@ -543,19 +542,29 @@
|
|
|
543
542
|
<!-- Page Navigation Bar -->
|
|
544
543
|
<div class="page-navigation-bar flex items-center justify-center h-[54px] widgetic-colors border-b border-[hsl(var(--grey2))] w-full">
|
|
545
544
|
<div class="flex items-center gap-3 w-full max-w-[200px] justify-between px-0">
|
|
546
|
-
<button
|
|
547
|
-
|
|
545
|
+
<button
|
|
546
|
+
class="pdf-nav-button h-9 w-9 flex items-center justify-center rounded-small bg-white border border-[hsl(var(--grey2))] transition-colors group active:scale-95 disabled:opacity-50"
|
|
547
|
+
onclick={onPrevPage}
|
|
548
|
+
disabled={pageNum <= 1}
|
|
549
|
+
aria-label="Previous page"
|
|
550
|
+
>
|
|
551
|
+
<IconChevronLeft
|
|
548
552
|
class="!text-[hsl(var(--grey5))] group-hover:!text-[hsl(var(--grey7))]"
|
|
549
|
-
style="height: 20px !important; min-width: 20px !important; max-width: 20px !important; max-height: 20px !important;"
|
|
553
|
+
style="width: 20px !important; height: 20px !important; min-width: 20px !important; min-height: 20px !important; max-width: 20px !important; max-height: 20px !important;"
|
|
550
554
|
/>
|
|
551
555
|
</button>
|
|
552
556
|
|
|
553
557
|
<span class="subtext text-[hsl(var(--grey7))]">Page {pageNum} of {pageCount || '?'}</span>
|
|
554
558
|
|
|
555
|
-
<button
|
|
556
|
-
|
|
559
|
+
<button
|
|
560
|
+
class="pdf-nav-button h-9 w-9 flex items-center justify-center rounded-small bg-white border border-[hsl(var(--grey2))] transition-colors group active:scale-95 disabled:opacity-50"
|
|
561
|
+
onclick={onNextPage}
|
|
562
|
+
disabled={pageNum >= pageCount}
|
|
563
|
+
aria-label="Next page"
|
|
564
|
+
>
|
|
565
|
+
<IconChevronRight
|
|
557
566
|
class="!text-[hsl(var(--grey5))] group-hover:!text-[hsl(var(--grey7))]"
|
|
558
|
-
style="height: 20px !important; min-width: 20px !important; max-width: 20px !important; max-height: 20px !important;"
|
|
567
|
+
style="width: 20px !important; height: 20px !important; min-width: 20px !important; min-height: 20px !important; max-width: 20px !important; max-height: 20px !important;"
|
|
559
568
|
/>
|
|
560
569
|
</button>
|
|
561
570
|
</div>
|