@contentstudio/ui 0.1.26 → 0.1.28
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/index.d.ts +229 -1
- package/dist/index.js +4489 -2591
- package/dist/index.umd.cjs +2 -2
- package/dist/style.css +1 -1
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -9,16 +9,19 @@ import { default as Chip } from './Chip.vue';
|
|
|
9
9
|
import { default as Collapse } from './Collapse.vue';
|
|
10
10
|
import { default as Collapsible } from './components/Collapsible/Collapsible.vue';
|
|
11
11
|
import { Component } from 'vue';
|
|
12
|
+
import { default as CustomToast } from './CustomToast.vue';
|
|
12
13
|
import { default as Dialog } from './Dialog.vue';
|
|
13
14
|
import { default as Dropdown } from './components/Dropdown/Dropdown.vue';
|
|
14
15
|
import { default as DropdownItem } from './components/Dropdown/DropdownItem.vue';
|
|
15
16
|
import { default as HoverCard } from './HoverCard.vue';
|
|
16
17
|
import { default as HoverCardTarget } from './HoverCardTarget.vue';
|
|
18
|
+
import { Id } from 'vue3-toastify';
|
|
17
19
|
import { default as Indicator } from './Indicator.vue';
|
|
18
20
|
import { InjectionKey } from 'vue';
|
|
19
21
|
import { default as ListItem } from './components/ListItem/ListItem.vue';
|
|
20
22
|
import { default as Loader } from './Loader.vue';
|
|
21
23
|
import { default as Modal } from './Modal.vue';
|
|
24
|
+
import { default as Pagination } from './Pagination.vue';
|
|
22
25
|
import { Placement } from '@floating-ui/vue';
|
|
23
26
|
import { default as Progress } from './Progress.vue';
|
|
24
27
|
import { default as Radio } from './components/Radio/Radio.vue';
|
|
@@ -30,6 +33,18 @@ import { default as TabsList } from './TabsList.vue';
|
|
|
30
33
|
import { default as TabsPanel } from './TabsPanel.vue';
|
|
31
34
|
import { default as TabsTab } from './TabsTab.vue';
|
|
32
35
|
import { default as TextInput } from './TextInput.vue';
|
|
36
|
+
import { default as Toast } from './components/Toast/Toast.vue';
|
|
37
|
+
import { toast } from 'vue3-toastify';
|
|
38
|
+
import { ToastContainerOptions } from 'vue3-toastify';
|
|
39
|
+
import { ToastContent } from 'vue3-toastify';
|
|
40
|
+
import { ToastOptions } from 'vue3-toastify';
|
|
41
|
+
import { ToastPosition } from 'vue3-toastify';
|
|
42
|
+
import { ToastPosition as ToastPosition_2 } from 'vue3-toastify/index';
|
|
43
|
+
import { ToastTheme } from 'vue3-toastify';
|
|
44
|
+
import { ToastTransition } from 'vue3-toastify';
|
|
45
|
+
import { ToastTransition as ToastTransition_2 } from 'vue3-toastify/index';
|
|
46
|
+
import { ToastType } from 'vue3-toastify/index';
|
|
47
|
+
import { UpdateOptions } from 'vue3-toastify';
|
|
33
48
|
|
|
34
49
|
export { Alert }
|
|
35
50
|
|
|
@@ -383,6 +398,53 @@ export declare type ComponentSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
|
383
398
|
|
|
384
399
|
export declare const composables: {};
|
|
385
400
|
|
|
401
|
+
export declare const cstuToast: {
|
|
402
|
+
show(content: string, options?: Partial<ToastOptions>): Id;
|
|
403
|
+
success(content: string, options?: Partial<ToastOptions>): Id;
|
|
404
|
+
info(content: string, options?: Partial<ToastOptions>): Id;
|
|
405
|
+
warning(content: string, options?: Partial<ToastOptions>): Id;
|
|
406
|
+
error(content: string, options?: Partial<ToastOptions>): Id;
|
|
407
|
+
loading(content: string, options?: Partial<ToastOptions>): Id;
|
|
408
|
+
dark(content: string, options?: Partial<ToastOptions>): Id;
|
|
409
|
+
showByType(content: string, type: string, options?: Partial<ToastOptions>): Id;
|
|
410
|
+
promise<T>(promise: Promise<T>, messages: {
|
|
411
|
+
pending?: string;
|
|
412
|
+
success?: string;
|
|
413
|
+
error?: string;
|
|
414
|
+
}, options?: Partial<ToastOptions>): Promise<T>;
|
|
415
|
+
update(toastId: Id, options: UpdateOptions): void;
|
|
416
|
+
remove(id?: Id): void;
|
|
417
|
+
clear(): void;
|
|
418
|
+
isActive(toastId: Id): boolean;
|
|
419
|
+
done(toastId: Id): void;
|
|
420
|
+
POSITION: {
|
|
421
|
+
TOP_LEFT: ToastPosition_2;
|
|
422
|
+
TOP_RIGHT: ToastPosition_2;
|
|
423
|
+
TOP_CENTER: ToastPosition_2;
|
|
424
|
+
BOTTOM_LEFT: ToastPosition_2;
|
|
425
|
+
BOTTOM_RIGHT: ToastPosition_2;
|
|
426
|
+
BOTTOM_CENTER: ToastPosition_2;
|
|
427
|
+
};
|
|
428
|
+
TYPE: {
|
|
429
|
+
INFO: ToastType;
|
|
430
|
+
SUCCESS: ToastType;
|
|
431
|
+
WARNING: ToastType;
|
|
432
|
+
ERROR: ToastType;
|
|
433
|
+
DEFAULT: ToastType;
|
|
434
|
+
};
|
|
435
|
+
TRANSITIONS: {
|
|
436
|
+
FLIP: ToastTransition_2;
|
|
437
|
+
SLIDE: ToastTransition_2;
|
|
438
|
+
ZOOM: ToastTransition_2;
|
|
439
|
+
BOUNCE: ToastTransition_2;
|
|
440
|
+
NONE: ToastTransition_2;
|
|
441
|
+
};
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
export { CustomToast }
|
|
445
|
+
|
|
446
|
+
export declare type CustomToastType = 'info' | 'warning' | 'success' | 'error' | 'loading' | 'dark' | 'default';
|
|
447
|
+
|
|
386
448
|
export { Dialog }
|
|
387
449
|
|
|
388
450
|
export declare interface DialogProps {
|
|
@@ -522,6 +584,8 @@ export declare interface HoverCardTargetProps {
|
|
|
522
584
|
wrapperClass?: string;
|
|
523
585
|
}
|
|
524
586
|
|
|
587
|
+
export { Id }
|
|
588
|
+
|
|
525
589
|
export { Indicator }
|
|
526
590
|
|
|
527
591
|
export declare interface IndicatorProps {
|
|
@@ -716,6 +780,50 @@ export declare interface ModalProps {
|
|
|
716
780
|
ariaLabel?: string;
|
|
717
781
|
}
|
|
718
782
|
|
|
783
|
+
export { Pagination }
|
|
784
|
+
|
|
785
|
+
export declare interface PaginationProps {
|
|
786
|
+
/** Total number of pages */
|
|
787
|
+
total: number;
|
|
788
|
+
/** Current active page */
|
|
789
|
+
modelValue?: number;
|
|
790
|
+
/** Number of siblings displayed on the left and right of the current page */
|
|
791
|
+
siblings?: number;
|
|
792
|
+
/** Number of elements visible at the beginning and end */
|
|
793
|
+
boundaries?: number;
|
|
794
|
+
/** Pagination variant */
|
|
795
|
+
variant?: PaginationVariant;
|
|
796
|
+
/** Pagination color */
|
|
797
|
+
color?: ThemeColor | string;
|
|
798
|
+
/** Pagination size */
|
|
799
|
+
size?: ComponentSize;
|
|
800
|
+
/** Whether to show the first/last controls */
|
|
801
|
+
withEdges?: boolean;
|
|
802
|
+
/** Whether to show the previous/next controls */
|
|
803
|
+
withControls?: boolean;
|
|
804
|
+
/** Whether to show the pages */
|
|
805
|
+
withPages?: boolean;
|
|
806
|
+
/** Whether the pagination is disabled */
|
|
807
|
+
disabled?: boolean;
|
|
808
|
+
/** Whether to automatically adjust text color based on background */
|
|
809
|
+
autoContrast?: boolean;
|
|
810
|
+
/** Custom class names */
|
|
811
|
+
class?: string;
|
|
812
|
+
/** Border radius */
|
|
813
|
+
radius?: string;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
export declare type PaginationVariant = 'filled' | 'outline';
|
|
817
|
+
|
|
818
|
+
export declare const POSITION: {
|
|
819
|
+
TOP_LEFT: ToastPosition_2;
|
|
820
|
+
TOP_RIGHT: ToastPosition_2;
|
|
821
|
+
TOP_CENTER: ToastPosition_2;
|
|
822
|
+
BOTTOM_LEFT: ToastPosition_2;
|
|
823
|
+
BOTTOM_RIGHT: ToastPosition_2;
|
|
824
|
+
BOTTOM_CENTER: ToastPosition_2;
|
|
825
|
+
};
|
|
826
|
+
|
|
719
827
|
declare type Position = 'top-start' | 'top-end' | 'top-center' | 'bottom-start' | 'bottom-end' | 'bottom-center' | 'middle-start' | 'middle-end' | 'middle-center';
|
|
720
828
|
|
|
721
829
|
export { Progress }
|
|
@@ -990,8 +1098,128 @@ export declare interface TextInputProps {
|
|
|
990
1098
|
|
|
991
1099
|
export declare type ThemeColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'light';
|
|
992
1100
|
|
|
1101
|
+
export { Toast }
|
|
1102
|
+
|
|
1103
|
+
export { toast }
|
|
1104
|
+
|
|
1105
|
+
export declare interface ToastContainerProps extends Partial<ToastContainerOptions> {
|
|
1106
|
+
/** Display multiple toasts at the same time */
|
|
1107
|
+
multiple?: boolean;
|
|
1108
|
+
/** Limit the number of toast displayed at the same time */
|
|
1109
|
+
limit?: number;
|
|
1110
|
+
/** Display newest toast on top */
|
|
1111
|
+
newestOnTop?: boolean;
|
|
1112
|
+
/** Add optional classes to the container */
|
|
1113
|
+
containerClassName?: string;
|
|
1114
|
+
/** Render unsafe string, like html tag */
|
|
1115
|
+
dangerouslyHTMLString?: boolean;
|
|
1116
|
+
/** Clear all toasts on url change */
|
|
1117
|
+
clearOnUrlChange?: boolean;
|
|
1118
|
+
/** Support right to left content */
|
|
1119
|
+
rtl?: boolean;
|
|
1120
|
+
/** Used to identify the Container when working with multiple container */
|
|
1121
|
+
containerId?: string | number;
|
|
1122
|
+
/** Position of the toast: top-right, top-center, top-left, bottom-right, bottom-center, bottom-left */
|
|
1123
|
+
position?: ToastPosition;
|
|
1124
|
+
/** Delay in ms to close the toast. If set to false, the notification needs to be closed manually */
|
|
1125
|
+
autoClose?: number | boolean;
|
|
1126
|
+
/** Replace the default close button or false to hide the button */
|
|
1127
|
+
closeButton?: boolean;
|
|
1128
|
+
/** Transition animation */
|
|
1129
|
+
transition?: ToastTransition;
|
|
1130
|
+
/** Display or not the progress bar below the toast (remaining time) */
|
|
1131
|
+
hideProgressBar?: boolean;
|
|
1132
|
+
/** Keep the timer running or not on hover */
|
|
1133
|
+
pauseOnHover?: boolean;
|
|
1134
|
+
/** Pause the timer when the window loses focus */
|
|
1135
|
+
pauseOnFocusLoss?: boolean;
|
|
1136
|
+
/** Dismiss toast on click */
|
|
1137
|
+
closeOnClick?: boolean;
|
|
1138
|
+
/** Add optional classes to the toast */
|
|
1139
|
+
toastClassName?: string;
|
|
1140
|
+
/** Add optional classes to the toast body */
|
|
1141
|
+
bodyClassName?: string;
|
|
1142
|
+
/** Add optional inline style to the container */
|
|
1143
|
+
style?: Record<string, string>;
|
|
1144
|
+
/** Add optional classes to the progress bar */
|
|
1145
|
+
progressClassName?: string;
|
|
1146
|
+
/** Add optional inline style to the progress bar */
|
|
1147
|
+
progressStyle?: Record<string, string>;
|
|
1148
|
+
/** Define the ARIA role for the toasts */
|
|
1149
|
+
role?: string;
|
|
1150
|
+
/** Theme: auto, light, dark, colored */
|
|
1151
|
+
theme?: ToastTheme;
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
export { ToastContent }
|
|
1155
|
+
|
|
1156
|
+
export declare const ToastPlugin: {
|
|
1157
|
+
install: (app: App, options?: ToastContainerOptions) => void;
|
|
1158
|
+
};
|
|
1159
|
+
|
|
1160
|
+
export declare interface ToastProps extends Partial<ToastOptions> {
|
|
1161
|
+
/** Toast message content */
|
|
1162
|
+
message?: string;
|
|
1163
|
+
/** Toast type: default, info, success, warning, error */
|
|
1164
|
+
type?: ToastOptions['type'];
|
|
1165
|
+
/** Delay in ms to close the toast. If set to false, the notification needs to be closed manually */
|
|
1166
|
+
autoClose?: number | boolean;
|
|
1167
|
+
/** Position of the toast: top-right, top-center, top-left, bottom-right, bottom-center, bottom-left */
|
|
1168
|
+
position?: ToastPosition;
|
|
1169
|
+
/** Display or not the progress bar below the toast (remaining time) */
|
|
1170
|
+
hideProgressBar?: boolean;
|
|
1171
|
+
/** Keep the timer running or not on hover */
|
|
1172
|
+
pauseOnHover?: boolean;
|
|
1173
|
+
/** Pause the timer when the window loses focus */
|
|
1174
|
+
pauseOnFocusLoss?: boolean;
|
|
1175
|
+
/** Dismiss toast on click */
|
|
1176
|
+
closeOnClick?: boolean;
|
|
1177
|
+
/** Add optional classes to the toast */
|
|
1178
|
+
toastClassName?: string;
|
|
1179
|
+
/** Add optional classes to the toast body */
|
|
1180
|
+
bodyClassName?: string;
|
|
1181
|
+
/** Add optional inline style to the container */
|
|
1182
|
+
style?: Record<string, string>;
|
|
1183
|
+
/** Add optional classes to the progress bar */
|
|
1184
|
+
progressClassName?: string;
|
|
1185
|
+
/** Add optional inline style to the progress bar */
|
|
1186
|
+
progressStyle?: Record<string, string>;
|
|
1187
|
+
/** Define the ARIA role for the toasts */
|
|
1188
|
+
role?: string;
|
|
1189
|
+
/** Theme: auto, light, dark, colored */
|
|
1190
|
+
theme?: ToastTheme;
|
|
1191
|
+
/** Transition animation */
|
|
1192
|
+
transition?: ToastTransition;
|
|
1193
|
+
/** Replace the default close button or false to hide the button */
|
|
1194
|
+
closeButton?: boolean;
|
|
1195
|
+
/** Render unsafe string, like html tag */
|
|
1196
|
+
dangerouslyHTMLString?: boolean;
|
|
1197
|
+
/** Support right to left content */
|
|
1198
|
+
rtl?: boolean;
|
|
1199
|
+
/** Used to identify the Container when working with multiple container */
|
|
1200
|
+
containerId?: string | number;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
export declare type ToastVariant = 'solid' | 'outlined' | 'gradient';
|
|
1204
|
+
|
|
1205
|
+
export declare const TRANSITIONS: {
|
|
1206
|
+
FLIP: ToastTransition_2;
|
|
1207
|
+
SLIDE: ToastTransition_2;
|
|
1208
|
+
ZOOM: ToastTransition_2;
|
|
1209
|
+
BOUNCE: ToastTransition_2;
|
|
1210
|
+
NONE: ToastTransition_2;
|
|
1211
|
+
};
|
|
1212
|
+
|
|
1213
|
+
export declare const TYPE: {
|
|
1214
|
+
INFO: ToastType;
|
|
1215
|
+
SUCCESS: ToastType;
|
|
1216
|
+
WARNING: ToastType;
|
|
1217
|
+
ERROR: ToastType;
|
|
1218
|
+
DEFAULT: ToastType;
|
|
1219
|
+
};
|
|
1220
|
+
|
|
993
1221
|
export declare function useHoverCard(options?: UseHoverCardOptions): {
|
|
994
|
-
isOpen: Ref<boolean
|
|
1222
|
+
isOpen: Ref<boolean>;
|
|
995
1223
|
open: () => void;
|
|
996
1224
|
close: () => void;
|
|
997
1225
|
};
|