@aures5g/vue-component-library 3.21.0 → 3.23.0
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/{TableSelectionFilter-BtwWWugM.js → TableSelectionFilter-DMPQAER-.js} +5 -5
- package/dist/src/components/chip/UIInputChip.vue.d.ts +1 -1
- package/dist/src/components/form/FormFieldWrapper.vue.d.ts +1 -1
- package/dist/src/components/richTooltip/UIRichTooltip.vue.d.ts +1 -1
- package/dist/src/components/searchBar/UISearchBar.vue.d.ts +20 -0
- package/dist/src/components/segmentedButton/SegmentedButtonCore.vue.d.ts +1 -1
- package/dist/src/components/tag/UITag.vue.d.ts +1 -1
- package/dist/src/components/textField/UITextField.vue.d.ts +1 -1
- package/dist/src/components/textarea/UITextArea.vue.d.ts +1 -1
- package/dist/src/config/acbs.d.ts +1 -0
- package/dist/src/consts/tooltip.const.d.ts +16 -0
- package/dist/src/directives/tooltip.d.ts +14 -0
- package/dist/src/index.d.ts +5 -2
- package/dist/src/utils/dom.d.ts +1 -0
- package/dist/src/utils/tooltip.d.ts +1 -0
- package/dist/vue-component-library.css +1 -1
- package/dist/vue-component-library.js +2918 -3288
- package/dist/vue-component-library.umd.cjs +13 -74
- package/package.json +1 -1
- package/dist/src/directives/overflowTooltip.d.ts +0 -22
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as k, useModel as v, ref as u, watch as b, computed as C, openBlock as m, createElementBlock as _, createVNode as g, unref as i, createBlock as x, createCommentVNode as M, mergeModels as V } from "vue";
|
|
2
2
|
import { faChevronDown as y } from "@awesome.me/kit-bccbe657bb/icons/sharp/solid";
|
|
3
|
-
import { useACBSConfig as A, UIIconButton as B, UIMenu as
|
|
3
|
+
import { useACBSConfig as A, UIIconButton as B, UIMenu as z } from "./vue-component-library.js";
|
|
4
4
|
import "@fortawesome/vue-fontawesome";
|
|
5
5
|
import "@awesome.me/kit-bccbe657bb/icons/kit/custom";
|
|
6
6
|
import "vue-router";
|
|
7
7
|
import "@vueuse/core";
|
|
8
8
|
import "@awesome.me/kit-bccbe657bb/icons/sharp/regular";
|
|
9
9
|
import "vue-tippy";
|
|
10
|
-
const
|
|
10
|
+
const F = { class: "flex justify-center" }, D = /* @__PURE__ */ k({
|
|
11
11
|
__name: "TableSelectionFilter",
|
|
12
12
|
props: /* @__PURE__ */ V({
|
|
13
13
|
dataKey: {},
|
|
@@ -46,7 +46,7 @@ const I = { class: "flex justify-center" }, D = /* @__PURE__ */ k({
|
|
|
46
46
|
label: s.locale?.tableCheckReset || "tableCheckReset"
|
|
47
47
|
}
|
|
48
48
|
]);
|
|
49
|
-
return (e, l) => (m(), _("div",
|
|
49
|
+
return (e, l) => (m(), _("div", F, [
|
|
50
50
|
g(i(B), {
|
|
51
51
|
color: "tonal",
|
|
52
52
|
icon: i(y),
|
|
@@ -54,12 +54,12 @@ const I = { class: "flex justify-center" }, D = /* @__PURE__ */ k({
|
|
|
54
54
|
class: "[anchor-name:--checkbox-filter]",
|
|
55
55
|
onClick: p
|
|
56
56
|
}, null, 8, ["icon"]),
|
|
57
|
-
o.value ? (m(), x(i(
|
|
57
|
+
o.value ? (m(), x(i(z), {
|
|
58
58
|
key: 0,
|
|
59
59
|
modelValue: t.value,
|
|
60
60
|
"onUpdate:modelValue": l[0] || (l[0] = (c) => t.value = c),
|
|
61
61
|
items: h.value,
|
|
62
|
-
class: "[position-anchor:--checkbox-filter] absolute top-[anchor(top)] left-[calc(anchor(right)+0.31rem)]",
|
|
62
|
+
class: "[position-anchor:--checkbox-filter] absolute top-[anchor(top)] left-[calc(anchor(right)+0.31rem)] z-5",
|
|
63
63
|
size: "small"
|
|
64
64
|
}, null, 8, ["modelValue", "items"])) : M("", !0)
|
|
65
65
|
]));
|
|
@@ -24,8 +24,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
24
24
|
onClose?: (() => any) | undefined;
|
|
25
25
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
|
-
icon: FontAwesomeIconProps["icon"];
|
|
28
27
|
label: string;
|
|
28
|
+
icon: FontAwesomeIconProps["icon"];
|
|
29
29
|
showClosingIcon: boolean;
|
|
30
30
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
31
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -21,12 +21,12 @@ declare const __VLS_base: import("vue").DefineComponent<CommonFormFieldProp, {
|
|
|
21
21
|
}, string, import("vue").PublicProps, Readonly<CommonFormFieldProp> & Readonly<{
|
|
22
22
|
onFocusInput?: (() => any) | undefined;
|
|
23
23
|
}>, {
|
|
24
|
+
invalid: boolean;
|
|
24
25
|
leadingIcon: import("@fortawesome/vue-fontawesome").FontAwesomeIconProps["icon"];
|
|
25
26
|
trailingIcon: import("@fortawesome/vue-fontawesome").FontAwesomeIconProps["icon"];
|
|
26
27
|
tags: string[];
|
|
27
28
|
required: boolean;
|
|
28
29
|
prefix: string;
|
|
29
|
-
invalid: boolean;
|
|
30
30
|
supportText: string;
|
|
31
31
|
compact: boolean;
|
|
32
32
|
suffix: string;
|
|
@@ -12,8 +12,8 @@ type __VLS_Slots = {} & {
|
|
|
12
12
|
action?: (props: typeof __VLS_13) => any;
|
|
13
13
|
};
|
|
14
14
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
15
|
-
text: string;
|
|
16
15
|
title: string;
|
|
16
|
+
text: string;
|
|
17
17
|
hasAction: boolean;
|
|
18
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
19
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type FontAwesomeIconProps } from '@fortawesome/vue-fontawesome';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
placeholder: string;
|
|
4
|
+
trailingIcon?: FontAwesomeIconProps['icon'];
|
|
5
|
+
placement?: 'dark' | 'light';
|
|
6
|
+
};
|
|
7
|
+
type __VLS_ModelProps = {
|
|
8
|
+
modelValue?: string;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: string) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
trailingIcon: FontAwesomeIconProps["icon"];
|
|
17
|
+
placement: "dark" | "light";
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
@@ -22,8 +22,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
22
22
|
}> & Readonly<{
|
|
23
23
|
"onUpdate:modelValue"?: ((payload: ModelValue) => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
|
-
icon: FontAwesomeIconProps["icon"];
|
|
26
25
|
label: string;
|
|
26
|
+
icon: FontAwesomeIconProps["icon"];
|
|
27
27
|
value: ButtonValue;
|
|
28
28
|
part: "start" | "middle" | "end";
|
|
29
29
|
modelValue: ModelValue;
|
|
@@ -13,8 +13,8 @@ type __VLS_Slots = {} & {
|
|
|
13
13
|
label?: (props: typeof __VLS_8) => any;
|
|
14
14
|
};
|
|
15
15
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
|
-
icon: FontAwesomeIconProps["icon"];
|
|
17
16
|
label: string;
|
|
17
|
+
icon: FontAwesomeIconProps["icon"];
|
|
18
18
|
size: TagSizes;
|
|
19
19
|
actionIcon: boolean;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -15,12 +15,12 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
15
15
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
16
16
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
|
+
invalid: boolean;
|
|
18
19
|
leadingIcon: import("@fortawesome/vue-fontawesome").FontAwesomeIconProps["icon"];
|
|
19
20
|
trailingIcon: import("@fortawesome/vue-fontawesome").FontAwesomeIconProps["icon"];
|
|
20
21
|
tags: string[];
|
|
21
22
|
required: boolean;
|
|
22
23
|
prefix: string;
|
|
23
|
-
invalid: boolean;
|
|
24
24
|
supportText: string;
|
|
25
25
|
compact: boolean;
|
|
26
26
|
suffix: string;
|
|
@@ -15,12 +15,12 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
15
15
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
16
16
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
|
+
invalid: boolean;
|
|
18
19
|
leadingIcon: import("@fortawesome/vue-fontawesome").FontAwesomeIconProps["icon"];
|
|
19
20
|
trailingIcon: import("@fortawesome/vue-fontawesome").FontAwesomeIconProps["icon"];
|
|
20
21
|
tags: string[];
|
|
21
22
|
required: boolean;
|
|
22
23
|
prefix: string;
|
|
23
|
-
invalid: boolean;
|
|
24
24
|
supportText: string;
|
|
25
25
|
compact: boolean;
|
|
26
26
|
suffix: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const OVERFLOW_TOOLTIP_DATA_ATTR = "data-overflow-tooltip";
|
|
2
|
+
export declare const TOOLTIP_DATA_ATTR = "data-tooltip";
|
|
3
|
+
export declare const TOOLTIP_POSITION_DATA_ATTR = "data-tooltip-position";
|
|
4
|
+
export declare const TOOLTIP_POSITION: {
|
|
5
|
+
readonly TOP: "top";
|
|
6
|
+
readonly RIGHT: "right";
|
|
7
|
+
readonly LEFT: "left";
|
|
8
|
+
readonly BOTTOM: "bottom";
|
|
9
|
+
};
|
|
10
|
+
export type TooltipPositions = (typeof TOOLTIP_POSITION)[keyof typeof TOOLTIP_POSITION];
|
|
11
|
+
export declare const TOOLTIP_POSITION_CLASS_MAP: {
|
|
12
|
+
readonly top: "bottom-[anchor(top)] left-[anchor(50%)] -translate-x-1/2";
|
|
13
|
+
readonly right: "left-[calc(anchor(right)+0.25rem)] top-[anchor(50%)] -translate-y-1/2";
|
|
14
|
+
readonly left: "right-[calc(anchor(left)+0.25rem)] top-[anchor(50%)] -translate-y-1/2";
|
|
15
|
+
readonly bottom: "top-[anchor(bottom)] left-[anchor(50%)] -translate-x-1/2";
|
|
16
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DirectiveBinding } from 'vue';
|
|
2
|
+
type TooltipValue = string | {
|
|
3
|
+
value: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
overflow?: boolean;
|
|
6
|
+
};
|
|
7
|
+
type TooltipPositionModifiers = 'top' | 'right' | 'left' | 'bottom';
|
|
8
|
+
type TooltipModifiers = TooltipPositionModifiers | 'overflow';
|
|
9
|
+
declare function setupTooltip(el: HTMLElement, binding: DirectiveBinding<TooltipValue, TooltipModifiers>): void;
|
|
10
|
+
export declare const Tooltip: {
|
|
11
|
+
beforeMount: typeof setupTooltip;
|
|
12
|
+
updated: typeof setupTooltip;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -32,9 +32,12 @@ import UIFab from './components/fab/UIFab.vue';
|
|
|
32
32
|
import UISegmentedButton from './components/segmentedButton/UISegmentedButton.vue';
|
|
33
33
|
import UITable from './components/table/UITable.vue';
|
|
34
34
|
import type { Field, RowClickPayload, FilterComponentProps, CellComponentProps } from './components/table/uiTable.types';
|
|
35
|
-
import {
|
|
35
|
+
import { Tooltip } from './directives/tooltip';
|
|
36
36
|
import UILabelValueList from '@/components/labelValueList/UILabelValueList.vue';
|
|
37
37
|
import UILabelValue from '@/components/labelValueList/UILabelValue.vue';
|
|
38
38
|
import UIMenu from '@/components/menu/UIMenu.vue';
|
|
39
39
|
import UITabButtons from '@/components/tabButton/UITabButtons.vue';
|
|
40
|
-
|
|
40
|
+
import UISearchBar from './components/searchBar/UISearchBar.vue';
|
|
41
|
+
export { ACBSPlugin, useACBSConfig, UIButton, UINavbar, UITag, UIBadge, UICopy, UITabs, UIIconButton, UIToggleButton, UIRadioButton, UICheckbox, UIInputChip, UIFilterChip, UITextField, UITextArea, UIRichTooltip, UISnackbar, UIListItem, UIList, UIContextPanel, UIToolbar, UILanguagePicker, UIDivider, UISwitch, UIDropdown, UIInfoStrip, UIInfoStripSecondaryBox, UIPersonList, UIBrandLogo, UIFab, UISegmentedButton, UITable, type Field, type RowClickPayload, type FilterComponentProps, type CellComponentProps, Tooltip,
|
|
42
|
+
/** @deprecated overflow-tooltip and tooltip directives were merged into one */
|
|
43
|
+
Tooltip as OverflowTooltip, UILabelValueList, UILabelValue, UIMenu, UITabButtons, UISearchBar, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isTruncated(el: unknown): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function displayTooltip(triggerEl: HTMLElement, tooltip: string, position?: string | null): void;
|