@v1nt1248/3nclient-lib 0.1.5 → 0.1.6

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.
@@ -23,4 +23,6 @@ import { default as Ui3nSwitch, Ui3nSwitchProps, Ui3nSwitchEmits, Ui3nSwitchSlot
23
23
  import { default as Ui3nStepLineBar, Ui3nStepLineBarProps } from './ui3n-step-line-bar.vue';
24
24
  import { default as Ui3nProgressLinear, Ui3nProgressLinearProps } from './ui3n-progress-linear.vue';
25
25
  import { default as Ui3nProgressCircular, Ui3nProgressCircularProps } from './ui3n-progress-circular.vue';
26
- export { Ui3nIcon, Ui3nIconProps, Ui3nIconEmits, Ui3nButton, Ui3nButtonProps, Ui3nButtonEmits, Ui3nChip, Ui3nChipProps, Ui3nChipEmits, Ui3nChipSlots, Ui3nDropFiles, Ui3nDropFilesProps, Ui3nDropFilesEmits, Ui3nEmoji, Ui3nEmojiProps, Ui3nEmojiEmits, Ui3nInput, Ui3nInputProps, Ui3nInputEmits, Ui3nText, Ui3nTextProps, Ui3nTextEmits, Ui3nCheckbox, Ui3nCheckboxProps, Ui3nCheckboxEmits, Ui3nCheckboxSlots, Ui3nNotification, Ui3nTableSortIcon, Ui3nTableSortIconProps, Ui3nTable, Ui3nTableSort, Ui3nTableConfig, Ui3nTableHeadProps, Ui3nTableBodyProps, Ui3nTableGroupActionsSlot, Ui3nTableHeaderCellSlot, Ui3nTableBodyRowSlotScope, Ui3nTableBodyRowSlot, Ui3nTableBodyRowCellSlotScope, Ui3nTableBodyRowCellSlot, Ui3nTableSlots, Ui3nTableProps, Ui3nTableEmits, Ui3nDialog, Ui3nDialogComponentProps, Ui3nDialogComponentEmits, Ui3nDialogProps, 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, };
26
+ import { default as Ui3nTooltip } from './ui3n-tooltip/ui3n-tooltip.vue';
27
+ import { Ui3nTooltipEmits, Ui3nTooltipProps, Ui3nTooltipSlots, Ui3nTooltipPlacement } from './ui3n-tooltip/types';
28
+ export { Ui3nIcon, Ui3nIconProps, Ui3nIconEmits, Ui3nButton, Ui3nButtonProps, Ui3nButtonEmits, Ui3nChip, Ui3nChipProps, Ui3nChipEmits, Ui3nChipSlots, Ui3nDropFiles, Ui3nDropFilesProps, Ui3nDropFilesEmits, Ui3nEmoji, Ui3nEmojiProps, Ui3nEmojiEmits, Ui3nInput, Ui3nInputProps, Ui3nInputEmits, Ui3nText, Ui3nTextProps, Ui3nTextEmits, Ui3nCheckbox, Ui3nCheckboxProps, Ui3nCheckboxEmits, Ui3nCheckboxSlots, Ui3nNotification, Ui3nTableSortIcon, Ui3nTableSortIconProps, Ui3nTable, Ui3nTableSort, Ui3nTableConfig, Ui3nTableHeadProps, Ui3nTableBodyProps, Ui3nTableGroupActionsSlot, Ui3nTableHeaderCellSlot, Ui3nTableBodyRowSlotScope, Ui3nTableBodyRowSlot, Ui3nTableBodyRowCellSlotScope, Ui3nTableBodyRowCellSlot, Ui3nTableSlots, Ui3nTableProps, Ui3nTableEmits, Ui3nDialog, Ui3nDialogComponentProps, Ui3nDialogComponentEmits, Ui3nDialogProps, 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, };
@@ -25,9 +25,9 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
25
25
  height: number;
26
26
  }) => any) | undefined;
27
27
  }, {
28
+ value: string | number;
28
29
  color: string;
29
30
  textColor: string;
30
- value: string | number;
31
31
  dot: boolean;
32
32
  }, {}>;
33
33
  export default _default;
@@ -21,9 +21,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
21
21
  textColor: string;
22
22
  position: string;
23
23
  }>>>, {
24
+ value: string | number;
24
25
  color: string;
25
26
  textColor: string;
26
- value: string | number;
27
27
  position: "right-top" | "right-bottom" | "left-top" | "left-bottom";
28
28
  dot: boolean;
29
29
  }, {}>;
@@ -37,9 +37,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
37
37
  disabled: boolean;
38
38
  }>>> & {
39
39
  onClick?: ((value: Event) => any) | undefined;
40
- onInit?: ((value: HTMLButtonElement) => any) | undefined;
41
- onFocus?: ((value: Event) => any) | undefined;
42
40
  onBlur?: ((value: Event) => any) | undefined;
41
+ onFocus?: ((value: Event) => any) | undefined;
42
+ onInit?: ((value: HTMLButtonElement) => any) | undefined;
43
43
  }, {
44
44
  type: "primary" | "secondary" | "tertiary" | "icon" | "custom";
45
45
  size: "regular" | "small";
@@ -39,13 +39,13 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
39
39
  onChange?: ((value: Ui3nCheckboxValue) => any) | undefined;
40
40
  "onUpdate:modelValue"?: ((value: Ui3nCheckboxValue) => any) | undefined;
41
41
  }, {
42
- color: string;
43
42
  size: number | string;
43
+ color: string;
44
44
  disabled: boolean;
45
- indeterminate: boolean;
46
45
  modelValue: Ui3nCheckboxValue;
47
46
  checkedValue: Ui3nCheckboxValue;
48
47
  uncheckedValue: Ui3nCheckboxValue;
48
+ indeterminate: boolean;
49
49
  }, {}>;
50
50
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
51
51
  export default _default;
@@ -33,9 +33,9 @@ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<Ui
33
33
  "update:modelValue": (value: string) => void;
34
34
  "update:valid": (value: boolean) => void;
35
35
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<Ui3nInputProps>>> & {
36
- onInit?: ((value: HTMLInputElement) => any) | undefined;
37
- onFocus?: ((value: Event) => any) | undefined;
38
36
  onBlur?: ((value: Event) => any) | undefined;
37
+ onFocus?: ((value: Event) => any) | undefined;
38
+ onInit?: ((value: HTMLInputElement) => any) | undefined;
39
39
  onChange?: ((value: string) => any) | undefined;
40
40
  onInput?: ((value: string) => any) | undefined;
41
41
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
@@ -16,8 +16,8 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
16
16
  }>>>, {
17
17
  type: "success" | "warning" | "info" | "error";
18
18
  onClose: () => void;
19
- onOpen: () => void;
20
19
  withIcon: boolean;
20
+ onOpen: () => void;
21
21
  position: "left" | "center" | "right";
22
22
  duration: number;
23
23
  }, {}>;
@@ -18,9 +18,9 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
18
18
  bgColor: string;
19
19
  color: string;
20
20
  }>>>, {
21
- color: string;
22
- size: number | string;
23
21
  value: number | string;
22
+ size: number | string;
23
+ color: string;
24
24
  bgColor: string;
25
25
  }, {}>;
26
26
  export default _default;
@@ -17,9 +17,9 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
17
17
  bgColor: string;
18
18
  color: string;
19
19
  }>>>, {
20
+ value: number | string;
20
21
  height: number | string;
21
22
  color: string;
22
- value: number | string;
23
23
  bgColor: string;
24
24
  }, {}>;
25
25
  export default _default;
@@ -27,8 +27,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
27
27
  onChange?: ((value: boolean) => any) | undefined;
28
28
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
29
29
  }, {
30
- color: string;
31
30
  size: number | string;
31
+ color: string;
32
32
  disabled: boolean;
33
33
  }, {}>;
34
34
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
@@ -35,17 +35,17 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
35
35
  placeholder: string;
36
36
  disabled: boolean;
37
37
  }>>> & {
38
- onInit?: ((value: HTMLTextAreaElement) => any) | undefined;
39
- onFocus?: ((value: Event) => any) | undefined;
40
38
  onBlur?: ((value: Event) => any) | undefined;
39
+ onFocus?: ((value: Event) => any) | undefined;
40
+ onInit?: ((value: HTMLTextAreaElement) => any) | undefined;
41
41
  onInput?: ((value: string) => any) | undefined;
42
42
  "onUpdate:valid"?: ((value: boolean) => any) | undefined;
43
43
  "onUpdate:text"?: ((value: string) => any) | undefined;
44
44
  }, {
45
- disabled: boolean;
46
45
  label: string;
47
- placeholder: string;
48
46
  rows: number;
47
+ disabled: boolean;
48
+ placeholder: string;
49
49
  maxRows: number;
50
50
  }, {}>;
51
51
  export default _default;
@@ -0,0 +1,63 @@
1
+ import { Ui3nTooltipProps, Ui3nTooltipSlots } from './types';
2
+ declare function __VLS_template(): Readonly<Ui3nTooltipSlots> & Ui3nTooltipSlots;
3
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nTooltipProps>, {
4
+ color: string;
5
+ textColor: string;
6
+ placement: string;
7
+ positionStrategy: string;
8
+ offsetX: number;
9
+ offsetY: number;
10
+ trigger: string;
11
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ open: () => void;
13
+ opened: () => void;
14
+ close: () => void;
15
+ closed: () => void;
16
+ "update:modelValue": (value: boolean) => void;
17
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nTooltipProps>, {
18
+ color: string;
19
+ textColor: string;
20
+ placement: string;
21
+ positionStrategy: string;
22
+ offsetX: number;
23
+ offsetY: number;
24
+ trigger: string;
25
+ }>>> & {
26
+ onClose?: (() => any) | undefined;
27
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
28
+ onOpen?: (() => any) | undefined;
29
+ onOpened?: (() => any) | undefined;
30
+ onClosed?: (() => any) | undefined;
31
+ }, {
32
+ color: string;
33
+ textColor: string;
34
+ positionStrategy: "absolute" | "fixed";
35
+ offsetX: string | number;
36
+ offsetY: string | number;
37
+ placement: import('./types').Ui3nTooltipPlacement;
38
+ trigger: "click" | "hover" | "manual";
39
+ }, {}>;
40
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
41
+ export default _default;
42
+ type __VLS_WithDefaults<P, D> = {
43
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
44
+ default: D[K];
45
+ }> : P[K];
46
+ };
47
+ type __VLS_Prettify<T> = {
48
+ [K in keyof T]: T[K];
49
+ } & {};
50
+ type __VLS_WithTemplateSlots<T, S> = T & {
51
+ new (): {
52
+ $slots: S;
53
+ };
54
+ };
55
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
56
+ type __VLS_TypePropsToOption<T> = {
57
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
58
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
59
+ } : {
60
+ type: import('vue').PropType<T[K]>;
61
+ required: true;
62
+ };
63
+ };
@@ -0,0 +1,60 @@
1
+ import { default as Ui3nButton } from './components/ui3n-button.vue';
2
+ import { default as Ui3nChip } from './components/ui3n-chip.vue';
3
+ import { default as Ui3nCheckbox } from './components/ui3n-checkbox.vue';
4
+ import { default as Ui3nDialog } from './components/ui3n-dialog.vue';
5
+ import { default as Ui3nDropFiles } from './components/ui3n-drop-files.vue';
6
+ import { default as Ui3nEmoji } from './components/ui3n-emoji.vue';
7
+ import { default as Ui3nIcon } from './components/ui3n-icon.vue';
8
+ import { default as Ui3nInput } from './components/ui3n-input.vue';
9
+ import { default as Ui3nList } from './components/ui3n-list.vue';
10
+ import { default as Ui3nMenu } from './components/ui3n-menu/ui3n-menu.vue';
11
+ import { default as Ui3nNotification } from './components/ui3n-notification.vue';
12
+ import { default as Ui3nTableSortIcon } from './components/ui3n-table-sort-icon.vue';
13
+ import { default as Ui3nTable } from './components/ui3n-table/ui3n-table.vue';
14
+ import { default as Ui3nTabs } from './components/ui3n-tabs.vue';
15
+ import { default as Ui3nText } from './components/ui3n-text.vue';
16
+ import { default as Ui3nVirtualScroll } from './components/ui3n-virtual-scroll.vue';
17
+ import { default as Ui3nBadge } from './components/ui3n-badge.vue';
18
+ import { default as Ui3nBreadcrumb } from './components/ui3n-breadcrumb.vue';
19
+ import { default as Ui3nBreadcrumbs } from './components/ui3n-breadcrumbs.vue';
20
+ import { default as Ui3nSwitch } from './components/ui3n-switch.vue';
21
+ import { default as Ui3nStepLineBar } from './components/ui3n-step-line-bar.vue';
22
+ import { default as Ui3nProgressLinear } from './components/ui3n-progress-linear.vue';
23
+ import { default as Ui3nProgressCircular } from './components/ui3n-progress-circular.vue';
24
+ import { default as Ui3nTooltip } from './components/ui3n-tooltip/ui3n-tooltip.vue';
25
+ import { default as Ui3nHtml } from './directives/ui3n-html';
26
+ import { default as Ui3nClickOutside } from './directives/ui3n-click-outside';
27
+ export * from './directives';
28
+ export * from './components';
29
+ declare module 'vue' {
30
+ interface GlobalComponents {
31
+ Ui3nBadge: typeof Ui3nBadge;
32
+ Ui3nBreadcrumb: typeof Ui3nBreadcrumb;
33
+ Ui3nBreadcrumbs: typeof Ui3nBreadcrumbs;
34
+ Ui3nButton: typeof Ui3nButton;
35
+ Ui3nCheckbox: typeof Ui3nCheckbox;
36
+ Ui3nChip: typeof Ui3nChip;
37
+ Ui3nDialog: typeof Ui3nDialog;
38
+ Ui3nDropFiles: typeof Ui3nDropFiles;
39
+ Ui3nEmoji: typeof Ui3nEmoji;
40
+ Ui3nIcon: typeof Ui3nIcon;
41
+ Ui3nInput: typeof Ui3nInput;
42
+ Ui3nList: typeof Ui3nList;
43
+ Ui3nMenu: typeof Ui3nMenu;
44
+ Ui3nNotification: typeof Ui3nNotification;
45
+ Ui3nSwitch: typeof Ui3nSwitch;
46
+ Ui3nStepLineBar: typeof Ui3nStepLineBar;
47
+ Ui3nProgressLinear: typeof Ui3nProgressLinear;
48
+ Ui3nProgressCircular: typeof Ui3nProgressCircular;
49
+ Ui3nTableSortIcon: typeof Ui3nTableSortIcon;
50
+ Ui3nTable: typeof Ui3nTable;
51
+ Ui3nTabs: typeof Ui3nTabs;
52
+ Ui3nText: typeof Ui3nText;
53
+ Ui3nVirtualScroll: typeof Ui3nVirtualScroll;
54
+ Ui3nTooltip: typeof Ui3nTooltip;
55
+ }
56
+ interface GlobalDirectives {
57
+ Ui3nHtml: typeof Ui3nHtml;
58
+ Ui3nClickOutside: typeof Ui3nClickOutside;
59
+ }
60
+ }
@@ -0,0 +1,32 @@
1
+ import { CbFunction, Ui3nNotificationProps, VueEventBus } from './constants';
2
+ import { DialogInstance } from './plugins/dialogs';
3
+ import { Ui3nDialogComponentProps } from './components/ui3n-dialog.vue';
4
+ export * from './plugins';
5
+ declare module 'vue' {
6
+ interface ComponentCustomProperties {
7
+ $openDialog: (params: Ui3nDialogComponentProps) => DialogInstance | undefined;
8
+ $createNotice: (params: Ui3nNotificationProps) => void;
9
+ $locale: string;
10
+ $tr: (key: string, placeholders?: Record<string, string>) => string;
11
+ $changeLocale: (lang: string) => void;
12
+ $emitter: VueEventBus;
13
+ }
14
+ }
15
+ declare module 'pinia' {
16
+ interface PiniaCustomProperties {
17
+ $openDialog: (params: Ui3nDialogComponentProps) => DialogInstance | undefined;
18
+ $createNotice: (params: Ui3nNotificationProps) => void;
19
+ $emitter: {
20
+ on: (type: string | symbol, handler: CbFunction) => void;
21
+ off: (type: string | symbol, handler?: CbFunction) => void;
22
+ emit: (type: string | symbol, arguments?: any) => void;
23
+ once: (type: string | symbol, handler: CbFunction) => void;
24
+ clear: () => void;
25
+ };
26
+ $i18n: {
27
+ locale: string;
28
+ changeLocale: (lang: string) => void;
29
+ tr: (key: string, placeholders?: Record<string, string>) => string;
30
+ };
31
+ }
32
+ }
@@ -0,0 +1 @@
1
+ import "pinia";