@rkosafo/cai.components 0.0.66 → 0.0.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/forms/FormTextarea/FormTextarea.svelte +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/keycloak/keycloakService.d.ts +5 -1
- package/dist/keycloak/keycloakService.js +14 -11
- package/dist/layout/mailing/MailPaginator.svelte +36 -0
- package/dist/layout/mailing/MailPaginator.svelte.d.ts +4 -0
- package/dist/layout/mailing/MailSidebar.svelte +39 -0
- package/dist/layout/mailing/MailSidebar.svelte.d.ts +4 -0
- package/dist/layout/mailing/MailToolBar.svelte +174 -0
- package/dist/layout/mailing/MailToolBar.svelte.d.ts +4 -0
- package/dist/layout/mailing/MailingHeader.svelte +5 -0
- package/dist/layout/mailing/MailingHeader.svelte.d.ts +4 -0
- package/dist/layout/mailing/MailingMessageCard.svelte +106 -0
- package/dist/layout/mailing/MailingMessageCard.svelte.d.ts +4 -0
- package/dist/layout/mailing/MailingMessageViewer.svelte +63 -0
- package/dist/layout/mailing/MailingMessageViewer.svelte.d.ts +4 -0
- package/dist/layout/mailing/MailingModule.svelte +415 -0
- package/dist/layout/mailing/MailingModule.svelte.d.ts +4 -0
- package/dist/layout/mailing/index.d.ts +7 -0
- package/dist/layout/mailing/index.js +7 -0
- package/dist/layout/mailing/types.d.ts +126 -0
- package/dist/layout/mailing/types.js +1 -0
- package/dist/themes/themes.d.ts +1 -0
- package/dist/themes/themes.js +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/ui/pageLoader/PageLoader.svelte +6 -2
- package/dist/ui/toast/Toast.svelte +1 -1
- package/dist/ui/toast/Toast.svelte.d.ts +1 -1
- package/dist/ui/tooltip/Tooltip.svelte +51 -0
- package/dist/ui/tooltip/Tooltip.svelte.d.ts +17 -0
- package/dist/ui/tooltip/index.d.ts +2 -0
- package/dist/ui/tooltip/index.js +2 -0
- package/dist/ui/tooltip/theme.d.ts +90 -0
- package/dist/ui/tooltip/theme.js +45 -0
- package/dist/utils/paginate.svelte.d.ts +1 -0
- package/dist/utils/paginate.svelte.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type TooltipProps } from '../../index.js';
|
|
2
|
+
/**
|
|
3
|
+
* ## Props
|
|
4
|
+
* @prop type = "dark"
|
|
5
|
+
* @prop color = undefined
|
|
6
|
+
* @prop trigger = "hover"
|
|
7
|
+
* @prop arrow = true
|
|
8
|
+
* @prop children
|
|
9
|
+
* @prop placement = "top"
|
|
10
|
+
* @prop onbeforetoggle: _onbeforetoggle
|
|
11
|
+
* @prop class: className
|
|
12
|
+
* @prop isOpen = $bindable(false)
|
|
13
|
+
* @prop ...restProps
|
|
14
|
+
*/
|
|
15
|
+
declare const Tooltip: import("svelte").Component<TooltipProps, {}, "isOpen">;
|
|
16
|
+
type Tooltip = ReturnType<typeof Tooltip>;
|
|
17
|
+
export default Tooltip;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { type VariantProps } from "tailwind-variants";
|
|
2
|
+
export type TooltipVariants = VariantProps<typeof tooltip>;
|
|
3
|
+
export declare const tooltip: import("tailwind-variants").TVReturnType<{
|
|
4
|
+
type: {
|
|
5
|
+
light: string;
|
|
6
|
+
auto: string;
|
|
7
|
+
dark: string;
|
|
8
|
+
custom: string;
|
|
9
|
+
};
|
|
10
|
+
color: {
|
|
11
|
+
primary: string;
|
|
12
|
+
secondary: string;
|
|
13
|
+
gray: string;
|
|
14
|
+
red: string;
|
|
15
|
+
orange: string;
|
|
16
|
+
amber: string;
|
|
17
|
+
yellow: string;
|
|
18
|
+
lime: string;
|
|
19
|
+
green: string;
|
|
20
|
+
emerald: string;
|
|
21
|
+
teal: string;
|
|
22
|
+
cyan: string;
|
|
23
|
+
sky: string;
|
|
24
|
+
blue: string;
|
|
25
|
+
indigo: string;
|
|
26
|
+
violet: string;
|
|
27
|
+
purple: string;
|
|
28
|
+
fuchsia: string;
|
|
29
|
+
pink: string;
|
|
30
|
+
rose: string;
|
|
31
|
+
};
|
|
32
|
+
}, undefined, "absolute px-3 py-2 rounded-lg text-sm z-50 pointer-events-none", {
|
|
33
|
+
type: {
|
|
34
|
+
light: string;
|
|
35
|
+
auto: string;
|
|
36
|
+
dark: string;
|
|
37
|
+
custom: string;
|
|
38
|
+
};
|
|
39
|
+
color: {
|
|
40
|
+
primary: string;
|
|
41
|
+
secondary: string;
|
|
42
|
+
gray: string;
|
|
43
|
+
red: string;
|
|
44
|
+
orange: string;
|
|
45
|
+
amber: string;
|
|
46
|
+
yellow: string;
|
|
47
|
+
lime: string;
|
|
48
|
+
green: string;
|
|
49
|
+
emerald: string;
|
|
50
|
+
teal: string;
|
|
51
|
+
cyan: string;
|
|
52
|
+
sky: string;
|
|
53
|
+
blue: string;
|
|
54
|
+
indigo: string;
|
|
55
|
+
violet: string;
|
|
56
|
+
purple: string;
|
|
57
|
+
fuchsia: string;
|
|
58
|
+
pink: string;
|
|
59
|
+
rose: string;
|
|
60
|
+
};
|
|
61
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
62
|
+
type: {
|
|
63
|
+
light: string;
|
|
64
|
+
auto: string;
|
|
65
|
+
dark: string;
|
|
66
|
+
custom: string;
|
|
67
|
+
};
|
|
68
|
+
color: {
|
|
69
|
+
primary: string;
|
|
70
|
+
secondary: string;
|
|
71
|
+
gray: string;
|
|
72
|
+
red: string;
|
|
73
|
+
orange: string;
|
|
74
|
+
amber: string;
|
|
75
|
+
yellow: string;
|
|
76
|
+
lime: string;
|
|
77
|
+
green: string;
|
|
78
|
+
emerald: string;
|
|
79
|
+
teal: string;
|
|
80
|
+
cyan: string;
|
|
81
|
+
sky: string;
|
|
82
|
+
blue: string;
|
|
83
|
+
indigo: string;
|
|
84
|
+
violet: string;
|
|
85
|
+
purple: string;
|
|
86
|
+
fuchsia: string;
|
|
87
|
+
pink: string;
|
|
88
|
+
rose: string;
|
|
89
|
+
};
|
|
90
|
+
}, undefined, "absolute px-3 py-2 rounded-lg text-sm z-50 pointer-events-none", unknown, unknown, undefined>>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const tooltip = tv({
|
|
3
|
+
base: "absolute px-3 py-2 rounded-lg text-sm z-50 pointer-events-none",
|
|
4
|
+
variants: {
|
|
5
|
+
type: {
|
|
6
|
+
light: "bg-white text-gray-800 dark:bg-white dark:text-gray-800 border border-gray-200 dark:border-gray-200",
|
|
7
|
+
auto: "bg-white text-gray-800 dark:bg-gray-800 dark:text-white border border-gray-200 dark:border-gray-700",
|
|
8
|
+
dark: "bg-gray-800 text-white dark:bg-gray-800 dark:text-white dark:border dark:border-gray-700",
|
|
9
|
+
custom: ""
|
|
10
|
+
},
|
|
11
|
+
color: {
|
|
12
|
+
// default: "bg-gray-800 dark:bg-gray-300 dark:text-gray-800",
|
|
13
|
+
primary: "bg-primary-600 dark:bg-primary-600",
|
|
14
|
+
secondary: "bg-secondary-600 dark:bg-secondary-600",
|
|
15
|
+
gray: "bg-gray-600 dark:bg-gray-600",
|
|
16
|
+
red: "bg-red-600 dark:bg-red-600",
|
|
17
|
+
orange: "bg-orange-600 dark:bg-orange-600",
|
|
18
|
+
amber: "bg-amber-600 dark:bg-amber-600",
|
|
19
|
+
yellow: "bg-yellow-400 dark:bg-yellow-400",
|
|
20
|
+
lime: "bg-lime-600 dark:bg-lime-600",
|
|
21
|
+
green: "bg-green-600 dark:bg-green-600",
|
|
22
|
+
emerald: "bg-emerald-600 dark:bg-emerald-600",
|
|
23
|
+
teal: "bg-teal-600 dark:bg-teal-600",
|
|
24
|
+
cyan: "bg-cyan-600 dark:bg-cyan-600",
|
|
25
|
+
sky: "bg-sky-600 dark:bg-sky-600",
|
|
26
|
+
blue: "bg-blue-600 dark:bg-blue-600",
|
|
27
|
+
indigo: "bg-indigo-600 dark:bg-indigo-600",
|
|
28
|
+
violet: "bg-violet-600 dark:bg-violet-600",
|
|
29
|
+
purple: "bg-purple-600 dark:bg-purple-600",
|
|
30
|
+
fuchsia: "bg-fuchsia-600 dark:bg-fuchsia-600",
|
|
31
|
+
pink: "bg-pink-600 dark:bg-pink-600",
|
|
32
|
+
rose: "bg-rose-800 dark:bg-rose-800"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
compoundVariants: [
|
|
36
|
+
{
|
|
37
|
+
color: ["primary", "secondary", "gray", "red", "orange", "amber", "yellow", "lime", "green", "emerald", "teal", "cyan", "sky", "blue", "indigo", "violet", "purple", "fuchsia", "pink", "rose"],
|
|
38
|
+
class: "border-0 dark:border-0"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
defaultVariants: {
|
|
42
|
+
type: "dark",
|
|
43
|
+
color: undefined
|
|
44
|
+
}
|
|
45
|
+
});
|
|
@@ -12,6 +12,7 @@ export declare class PageInfo {
|
|
|
12
12
|
setPageSize(newPageSize: number): void;
|
|
13
13
|
setHasNextPage(newValue: boolean): void;
|
|
14
14
|
setHasPrevPage(newValue: boolean): void;
|
|
15
|
+
setTotalPages(val: number): void;
|
|
15
16
|
setNextPageUrl(newValue: string): void;
|
|
16
17
|
setPrevPageUrl(newValue: string): void;
|
|
17
18
|
gotoStart(): void;
|
|
@@ -132,6 +132,10 @@ export class PageInfo {
|
|
|
132
132
|
setHasPrevPage(newValue) {
|
|
133
133
|
this.#hasPrevPage = newValue;
|
|
134
134
|
}
|
|
135
|
+
setTotalPages(val) {
|
|
136
|
+
this.#totalPages = val;
|
|
137
|
+
this.computePages();
|
|
138
|
+
}
|
|
135
139
|
setNextPageUrl(newValue) {
|
|
136
140
|
this.#nextPageUrl = newValue;
|
|
137
141
|
}
|