@v1nt1248/3nclient-lib 0.3.21 → 0.3.23
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 +2 -0
- package/dist/components/index.d.ts +5 -1
- package/dist/components/ui3n-mobile-menu/types.d.ts +35 -0
- package/dist/components/ui3n-mobile-menu/ui3n-mobile-menu.vue.d.ts +20 -0
- package/dist/components/ui3n-mobile-menu-item/types.d.ts +21 -0
- package/dist/components/ui3n-mobile-menu-item/ui3n-mobile-menu-item.vue.d.ts +16 -0
- package/dist/index.d.ts +4 -0
- package/dist/style.css +1 -1
- package/dist/ui3n-components.d.ts +4 -0
- package/dist/ui3n-components.js +88 -2
- package/dist/variables.css +2 -0
- package/package.json +1 -1
- package/src/components/index.ts +16 -0
- package/src/components/ui3n-dialog/ui3n-dialog.vue +6 -6
- package/src/components/ui3n-mobile-menu/types.ts +38 -0
- package/src/components/ui3n-mobile-menu/ui3n-mobile-menu.vue +151 -0
- package/src/components/ui3n-mobile-menu-item/types.ts +23 -0
- package/src/components/ui3n-mobile-menu-item/ui3n-mobile-menu-item.vue +73 -0
package/README.md
CHANGED
|
@@ -56,4 +56,8 @@ import { default as Ui3nSlider } from './ui3n-slider/ui3n-slider.vue';
|
|
|
56
56
|
import { UI3nSliderProps, UI3nSliderEmits } from './ui3n-slider/types';
|
|
57
57
|
import { default as Ui3nSelector } from './ui3n-selector/ui3n-selector.vue';
|
|
58
58
|
import { Ui3nSelectorOptionBase, Ui3nSelectorProps, Ui3nSelectorEmits, Ui3nSelectorSlots, Ui3nSelectorItemDisplayingFunction } from './ui3n-selector/types';
|
|
59
|
-
|
|
59
|
+
import { default as Ui3nMobileMenu } from './ui3n-mobile-menu/ui3n-mobile-menu.vue';
|
|
60
|
+
import { Ui3nMobileMenuProps, Ui3nMobileMenuEmits, Ui3nMobileMenuSlots } from './ui3n-mobile-menu/types';
|
|
61
|
+
import { default as Ui3nMobileMenuItem } from './ui3n-mobile-menu-item/ui3n-mobile-menu-item.vue';
|
|
62
|
+
import { Ui3nMobileMenuItemBase, Ui3nMobileMenuItemProps, Ui3nMobileMenuItemEmits } from './ui3n-mobile-menu-item/types';
|
|
63
|
+
export { Ui3nIcon, Ui3nIconProps, Ui3nIconEmits, Ui3nButton, Ui3nButtonProps, Ui3nButtonEmits, Ui3nChip, Ui3nChipProps, Ui3nChipEmits, Ui3nChipSlots, Ui3nDropFiles, Ui3nDropFilesProps, Ui3nDropFilesEmits, Ui3nDropFilesSlots, Ui3nEmoji, Ui3nEmojiProps, Ui3nEmojiEmits, Ui3nInput, Ui3nInputProps, Ui3nInputEmits, Ui3nInputFile, Ui3nInputFileProps, Ui3nInputFileEmits, Ui3nText, Ui3nTextProps, Ui3nTextEmits, Ui3nCheckbox, Ui3nCheckboxProps, Ui3nCheckboxEmits, Ui3nCheckboxSlots, Ui3nCheckboxValue, Ui3nNotification, Ui3nTableSortIcon, Ui3nTableSortIconProps, Ui3nTable, Ui3nTableSort, Ui3nTableConfig, Ui3nTableHeadProps, Ui3nTableBodyProps, Ui3nTableGroupActionsSlot, Ui3nTableHeaderCellSlot, Ui3nTableBodyRowSlotScope, Ui3nTableBodyRowSlot, Ui3nTableBodyRowCellSlotScope, Ui3nTableBodyRowCellSlot, Ui3nTableSlots, Ui3nTableProps, Ui3nTableEmits, Ui3nTableExpose, Ui3nDialogProvider, Ui3nDialog, Ui3nDialogComponentProps, Ui3nDialogComponentEmits, Ui3nDialogComponentSlots, Ui3nDialogEvent, Ui3nMenu, Ui3nMenuProps, Ui3nMenuEmits, Ui3nMenuSlots, Ui3nList, Ui3nListProps, Ui3nListEmits, Ui3nListSlots, Ui3nVirtualScroll, Ui3nVirtualScrollProps, Ui3nVirtualScrollSlots, Ui3nTabs, Ui3nTabsProps, Ui3nTabsEmits, Ui3nTabsSlots, Ui3nBadge, Ui3nBadgeProps, Ui3nBreadcrumb, Ui3nBreadcrumbProps, Ui3nBreadcrumbEmits, Ui3nBreadcrumbSlots, Ui3nBreadcrumbs, Ui3nBreadcrumbsProps, Ui3nSwitch, Ui3nSwitchProps, Ui3nSwitchEmits, Ui3nSwitchSlots, Ui3nStepLineBar, Ui3nStepLineBarProps, Ui3nProgressLinear, Ui3nProgressLinearProps, Ui3nProgressCircular, Ui3nProgressCircularProps, Ui3nTooltip, Ui3nTooltipEmits, Ui3nTooltipProps, Ui3nTooltipSlots, Ui3nTooltipPlacement, Ui3nRadio, Ui3nRadioGroup, Ui3nRadioValue, Ui3nRadioEmits, Ui3nRadioProps, Ui3nRadioSlots, Ui3nRadioGroupEmits, Ui3nRadioGroupProps, Ui3nRadioGroupSlots, Ui3nEditable, Ui3nEditableProps, Ui3nEditableEmits, Ui3nAutocomplete, Ui3nAutocompleteProps, Ui3nAutocompleteEmits, Ui3nAutocompleteSlots, Ui3nAutocompleteOptionBase, Ui3nSlider, UI3nSliderProps, UI3nSliderEmits, Ui3nSelector, Ui3nSelectorProps, Ui3nSelectorEmits, Ui3nSelectorSlots, Ui3nSelectorOptionBase, Ui3nSelectorItemDisplayingFunction, Ui3nMobileMenu, Ui3nMobileMenuProps, Ui3nMobileMenuEmits, Ui3nMobileMenuSlots, Ui3nMobileMenuItem, Ui3nMobileMenuItemBase, Ui3nMobileMenuItemProps, Ui3nMobileMenuItemEmits, };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Menu component properties
|
|
4
|
+
*/
|
|
5
|
+
export interface Ui3nMobileMenuProps {
|
|
6
|
+
modelValue: boolean;
|
|
7
|
+
width?: string;
|
|
8
|
+
withBlur?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Menu component emits
|
|
12
|
+
*/
|
|
13
|
+
export interface Ui3nMobileMenuEmits {
|
|
14
|
+
/**
|
|
15
|
+
* Emitted when model value updates
|
|
16
|
+
*/
|
|
17
|
+
(event: 'update:modelValue', value: boolean): void;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Menu component slots
|
|
21
|
+
*/
|
|
22
|
+
export interface Ui3nMobileMenuSlots {
|
|
23
|
+
/**
|
|
24
|
+
* Menu Header slot - section to add custom data on top of the menu
|
|
25
|
+
*/
|
|
26
|
+
header: () => VNode;
|
|
27
|
+
/**
|
|
28
|
+
* Menu body slot - The section is where your menu items are placed
|
|
29
|
+
*/
|
|
30
|
+
menuBody: () => VNode;
|
|
31
|
+
/**
|
|
32
|
+
* Menu footer slot - section to add custm data on the bottom of menu
|
|
33
|
+
*/
|
|
34
|
+
footer: () => VNode;
|
|
35
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Ui3nMobileMenuProps, Ui3nMobileMenuSlots } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: Readonly<Ui3nMobileMenuSlots> & Ui3nMobileMenuSlots;
|
|
5
|
+
refs: {};
|
|
6
|
+
rootEl: any;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
|
+
declare const __VLS_component: import('vue').DefineComponent<Ui3nMobileMenuProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
10
|
+
"update:modelValue": (value: boolean) => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<Ui3nMobileMenuProps> & Readonly<{
|
|
12
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface Ui3nMobileMenuItemBase {
|
|
2
|
+
id: string | number;
|
|
3
|
+
name: string;
|
|
4
|
+
icon?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Menu Item component properties
|
|
8
|
+
*/
|
|
9
|
+
export interface Ui3nMobileMenuItemProps<T extends Ui3nMobileMenuItemBase> {
|
|
10
|
+
item: T;
|
|
11
|
+
isActive?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Menu Item component emits
|
|
15
|
+
*/
|
|
16
|
+
export interface Ui3nMobileMenuItemEmits<T extends Ui3nMobileMenuItemBase> {
|
|
17
|
+
/**
|
|
18
|
+
* Emitted when an item is selected on the menu
|
|
19
|
+
*/
|
|
20
|
+
(event: 'selectItem', item: T): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Ui3nMobileMenuItemBase, Ui3nMobileMenuItemProps, Ui3nMobileMenuItemEmits } from './types';
|
|
2
|
+
declare const _default: <T extends Ui3nMobileMenuItemBase>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
|
+
readonly onSelectItem?: ((item: T) => any) | undefined;
|
|
5
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelectItem"> & Ui3nMobileMenuItemProps<T> & Partial<{}>> & import('vue').PublicProps;
|
|
6
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
7
|
+
attrs: any;
|
|
8
|
+
slots: {};
|
|
9
|
+
emit: Ui3nMobileMenuItemEmits<T>;
|
|
10
|
+
}>) => import('vue').VNode & {
|
|
11
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_PrettifyLocal<T> = {
|
|
15
|
+
[K in keyof T]: T[K];
|
|
16
|
+
} & {};
|
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,8 @@ import { default as Ui3nEditable } from './components/ui3n-editable/ui3n-editabl
|
|
|
31
31
|
import { default as Ui3nAutocomplete } from './components/ui3n-autocomplete/ui3n-autocomplete.vue';
|
|
32
32
|
import { default as Ui3nSlider } from './components/ui3n-slider/ui3n-slider.vue';
|
|
33
33
|
import { default as Ui3nSelector } from './components/ui3n-selector/ui3n-selector.vue';
|
|
34
|
+
import { default as Ui3nMobileMenu } from './components/ui3n-mobile-menu/ui3n-mobile-menu.vue';
|
|
35
|
+
import { default as Ui3nMobileMenuItem } from './components/ui3n-mobile-menu-item/ui3n-mobile-menu-item.vue';
|
|
34
36
|
import { default as Ui3nHtml } from './directives/ui3n-html';
|
|
35
37
|
import { default as Ui3nClickOutside } from './directives/ui3n-click-outside';
|
|
36
38
|
import { default as Ui3nResize } from './directives/ui3n-resize';
|
|
@@ -92,6 +94,8 @@ declare module 'vue' {
|
|
|
92
94
|
Ui3nTabs: typeof Ui3nTabs;
|
|
93
95
|
Ui3nText: typeof Ui3nText;
|
|
94
96
|
Ui3nVirtualScroll: typeof Ui3nVirtualScroll;
|
|
97
|
+
Ui3nMobileMenu: typeof Ui3nMobileMenu;
|
|
98
|
+
Ui3nMobileMenuMenuItem: typeof Ui3nMobileMenuItem;
|
|
95
99
|
}
|
|
96
100
|
interface GlobalDirectives {
|
|
97
101
|
Ui3nHtml: typeof Ui3nHtml;
|