@v1nt1248/3nclient-lib 0.3.51 → 0.4.1
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 +4 -0
- package/dist/chunks/{plugins-keys-DdadrIAg.js → plugins-keys-CjKqZeyH.js} +2 -2
- package/dist/chunks/ui3n-tooltip-BbbM2459.js +409 -0
- package/dist/src/components/ui3n-chip/ui3n-chip.d.ts +0 -5
- package/dist/src/components/ui3n-icon/ui3n-icon.d.ts +0 -1
- package/dist/src/components/ui3n-progress/ui3n-progress-circular.d.ts +0 -2
- package/dist/src/components/ui3n-progress/ui3n-progress-linear.d.ts +0 -2
- package/dist/src/components/ui3n-scrollbar-horizontal/ui3n-scrollbar-horizontal.d.ts +0 -7
- package/dist/src/components/ui3n-scrollbar-vertical/ui3n-scrollbar-vertical.d.ts +0 -7
- package/dist/src/components/ui3n-slider/ui3n-slider.d.ts +0 -5
- package/dist/src/components/ui3n-tabs/ui3n-tabs.d.ts +0 -4
- package/dist/src/components/ui3n-tooltip/types.d.ts +8 -2
- package/dist/src/components/ui3n-tooltip/ui3n-tooltip-container.d.ts +16 -0
- package/dist/src/components/ui3n-tooltip/ui3n-tooltip.d.ts +1 -5
- package/dist/src/constants/plugins-keys.d.ts +2 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/plugins/index.d.ts +4 -1
- package/dist/src/plugins/tooltips/store-tooltips.d.ts +4 -0
- package/dist/src/plugins/tooltips/tooltips.d.ts +8 -0
- package/dist/src/plugins/tooltips/types.d.ts +34 -0
- package/dist/src/ui3n-plugins.d.ts +5 -3
- package/dist/style.css +1 -1
- package/dist/ui3n-components.js +1011 -1183
- package/dist/ui3n-plugins.js +169 -50
- package/dist/ui3n-utils.js +4 -4
- package/package.json +11 -4
- package/src/components/ui3n-autocomplete/ui3n-autocomplete.vue +28 -25
- package/src/components/ui3n-badge/ui3n-badge-simple.vue +18 -17
- package/src/components/ui3n-badge/ui3n-badge.vue +3 -2
- package/src/components/ui3n-breadcrumbs/ui3n-breadcrumb.vue +11 -10
- package/src/components/ui3n-breadcrumbs/ui3n-breadcrumbs.vue +4 -1
- package/src/components/ui3n-button/ui3n-button.vue +244 -158
- package/src/components/ui3n-checkbox/ui3n-checkbox.vue +22 -21
- package/src/components/ui3n-chip/ui3n-chip.vue +56 -40
- package/src/components/ui3n-dialog/ui3n-dialog-provider.vue +1 -0
- package/src/components/ui3n-dialog/ui3n-dialog.vue +19 -18
- package/src/components/ui3n-drop-files/ui3n-drop-files.vue +8 -7
- package/src/components/ui3n-editable/ui3n-content-editable.vue +11 -10
- package/src/components/ui3n-editable/ui3n-editable.vue +26 -25
- package/src/components/ui3n-emoji/ui3n-emoji.vue +7 -6
- package/src/components/ui3n-icon/ui3n-icon.vue +26 -16
- package/src/components/ui3n-input/ui3n-input.vue +36 -32
- package/src/components/ui3n-input-file/ui3n-input-file.vue +8 -5
- package/src/components/ui3n-list/ui3n-list.vue +8 -7
- package/src/components/ui3n-menu/ui3n-menu.vue +6 -5
- package/src/components/ui3n-mobile-menu/ui3n-mobile-menu.vue +4 -3
- package/src/components/ui3n-mobile-menu-item/ui3n-mobile-menu-item.vue +7 -6
- package/src/components/ui3n-notification/ui3n-notification-container.vue +1 -0
- package/src/components/ui3n-notification/ui3n-notification.vue +28 -26
- package/src/components/ui3n-progress/ui3n-progress-circular.vue +32 -19
- package/src/components/ui3n-progress/ui3n-progress-linear.vue +31 -18
- package/src/components/ui3n-radio-group/ui3n-radio-group.vue +4 -1
- package/src/components/ui3n-radio-group/ui3n-radio.vue +6 -5
- package/src/components/ui3n-scrollbar/ui3n-scrollbar.vue +94 -83
- package/src/components/ui3n-scrollbar-horizontal/ui3n-scrollbar-horizontal.vue +51 -39
- package/src/components/ui3n-scrollbar-vertical/ui3n-scrollbar-vertical.vue +51 -39
- package/src/components/ui3n-selector/ui3n-selector.vue +33 -28
- package/src/components/ui3n-slider/ui3n-slider.vue +53 -34
- package/src/components/ui3n-step-line-bar/ui3n-step-line-bar.vue +10 -6
- package/src/components/ui3n-switch/ui3n-switch.vue +23 -22
- package/src/components/ui3n-table/ui3n-table.vue +50 -48
- package/src/components/ui3n-tabs/ui3n-tabs.vue +38 -20
- package/src/components/ui3n-text/ui3n-text.vue +15 -14
- package/src/components/ui3n-tooltip/types.ts +8 -2
- package/src/components/ui3n-tooltip/ui3n-tooltip-container.vue +79 -0
- package/src/components/ui3n-tooltip/ui3n-tooltip.vue +140 -79
- package/dist/chunks/ui3n-notification-o0tuhTpO.js +0 -272
- package/src/components/ui3n-tooltip/ui3n-tooltip-old.vue +0 -198
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Ui3nTooltipProps } from '../../components/ui3n-tooltip/types';
|
|
2
|
+
import { Ui3nVirtualElement } from '../../components/ui3n-menu/types';
|
|
3
|
+
export type TooltipTarget = HTMLElement | Ui3nVirtualElement;
|
|
4
|
+
export type Ui3nTooltipShowOptions = Omit<Ui3nTooltipProps, 'modelValue' | 'trigger' | 'id' | 'triggerElement'>;
|
|
5
|
+
export interface Ui3nTooltipAttachOptions extends Omit<Ui3nTooltipProps, 'modelValue' | 'id' | 'triggerElement'> {
|
|
6
|
+
trigger?: 'hover' | 'click';
|
|
7
|
+
}
|
|
8
|
+
export interface TooltipHandle {
|
|
9
|
+
id: string;
|
|
10
|
+
close: () => void;
|
|
11
|
+
update: (patch: Partial<Ui3nTooltipShowOptions>) => void;
|
|
12
|
+
}
|
|
13
|
+
export interface TooltipsPlugin {
|
|
14
|
+
show: (target: TooltipTarget, options: Ui3nTooltipShowOptions) => TooltipHandle;
|
|
15
|
+
attach: (target: TooltipTarget, options: Ui3nTooltipAttachOptions) => TooltipHandle;
|
|
16
|
+
hide: () => void;
|
|
17
|
+
detach: (targetOrId: HTMLElement | string) => void;
|
|
18
|
+
detachAll: () => void;
|
|
19
|
+
}
|
|
20
|
+
export interface TooltipInstance extends Ui3nTooltipShowOptions {
|
|
21
|
+
id: string;
|
|
22
|
+
kind: 'show' | 'attach';
|
|
23
|
+
target: TooltipTarget;
|
|
24
|
+
trigger: 'hover' | 'click' | 'manual';
|
|
25
|
+
modelValue?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface TooltipContainerExpose {
|
|
28
|
+
add: (item: TooltipInstance) => void;
|
|
29
|
+
remove: (id: string) => void;
|
|
30
|
+
removeByKind: (kind: 'show' | 'attach') => void;
|
|
31
|
+
removeByTarget: (target: HTMLElement) => void;
|
|
32
|
+
update: (id: string, patch: Partial<Ui3nTooltipShowOptions>) => void;
|
|
33
|
+
clearAll: () => void;
|
|
34
|
+
}
|
|
@@ -2,9 +2,9 @@ import { Component, Ref } from 'vue';
|
|
|
2
2
|
import { ExtractComponentProps } from './types';
|
|
3
3
|
import { Ui3nNotificationProps } from './components/ui3n-notification/types';
|
|
4
4
|
import { Ui3nDialogEvent } from './components/ui3n-dialog/types';
|
|
5
|
-
import { notifications, storeNotifications, NotificationsPlugin, dialogs, storeDialogs, DialogOptions, DialogsPlugin, vueBus, storeVueBus, VueBusPlugin, theme, storeTheme, ThemePlugin, ThemePluginOptions, ThemeId } from './plugins';
|
|
5
|
+
import { notifications, storeNotifications, NotificationsPlugin, dialogs, storeDialogs, DialogOptions, DialogsPlugin, vueBus, storeVueBus, VueBusPlugin, theme, storeTheme, ThemePlugin, ThemePluginOptions, ThemeId, tooltips, storeTooltips, TooltipsPlugin, TooltipHandle, TooltipTarget, Ui3nTooltipShowOptions, Ui3nTooltipAttachOptions } from './plugins';
|
|
6
6
|
import { CbFunction, VueEventBus } from './plugins/vue-bus/types';
|
|
7
|
-
import { NOTIFICATIONS_KEY, DIALOGS_KEY, VUEBUS_KEY, THEME_KEY } from './constants';
|
|
7
|
+
import { NOTIFICATIONS_KEY, DIALOGS_KEY, VUEBUS_KEY, THEME_KEY, TOOLTIPS_KEY } from './constants';
|
|
8
8
|
declare module 'vue' {
|
|
9
9
|
interface ComponentCustomProperties {
|
|
10
10
|
$openDialog: <V>(component: Component, props: ExtractComponentProps<Component>) => Promise<{
|
|
@@ -20,6 +20,7 @@ declare module 'vue' {
|
|
|
20
20
|
$createNotice: (params: Ui3nNotificationProps) => void;
|
|
21
21
|
$emitter: VueEventBus<any>;
|
|
22
22
|
$theme: ThemePlugin;
|
|
23
|
+
$tooltip: TooltipsPlugin;
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
declare module 'pinia' {
|
|
@@ -27,6 +28,7 @@ declare module 'pinia' {
|
|
|
27
28
|
$createNotice: (params: Ui3nNotificationProps) => void;
|
|
28
29
|
$emitter: VueEventBus<any>;
|
|
29
30
|
$theme: ThemePlugin;
|
|
31
|
+
$tooltip: TooltipsPlugin;
|
|
30
32
|
$dialogs: {
|
|
31
33
|
open: <V>(component: Component, props: ExtractComponentProps<Component>) => Promise<{
|
|
32
34
|
event: Ui3nDialogEvent;
|
|
@@ -41,4 +43,4 @@ declare module 'pinia' {
|
|
|
41
43
|
};
|
|
42
44
|
}
|
|
43
45
|
}
|
|
44
|
-
export { notifications, storeNotifications, NOTIFICATIONS_KEY, NotificationsPlugin, dialogs, storeDialogs, DIALOGS_KEY, DialogsPlugin, DialogOptions, vueBus, storeVueBus, VUEBUS_KEY, CbFunction, VueBusPlugin, VueEventBus, theme, storeTheme, ThemePlugin, ThemePluginOptions, ThemeId, THEME_KEY, };
|
|
46
|
+
export { notifications, storeNotifications, NOTIFICATIONS_KEY, NotificationsPlugin, dialogs, storeDialogs, DIALOGS_KEY, DialogsPlugin, DialogOptions, vueBus, storeVueBus, VUEBUS_KEY, CbFunction, VueBusPlugin, VueEventBus, theme, storeTheme, ThemePlugin, ThemePluginOptions, ThemeId, THEME_KEY, tooltips, storeTooltips, TOOLTIPS_KEY, TooltipsPlugin, TooltipHandle, TooltipTarget, Ui3nTooltipShowOptions, Ui3nTooltipAttachOptions, };
|