@v1nt1248/3nclient-lib 0.2.15 → 0.2.17

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.
@@ -19,7 +19,7 @@ import { Ui3nCheckboxProps, Ui3nCheckboxEmits, Ui3nCheckboxSlots, Ui3nCheckboxVa
19
19
  import { default as Ui3nNotification } from './ui3n-notification/ui3n-notification.vue';
20
20
  import { default as Ui3nTableSortIcon } from './ui3n-table/ui3n-table-sort-icon.vue';
21
21
  import { default as Ui3nTable } from './ui3n-table/ui3n-table.vue';
22
- import { Ui3nTableSortIconProps, Ui3nTableSort, Ui3nTableConfig, Ui3nTableHeadProps, Ui3nTableBodyProps, Ui3nTableGroupActionsSlot, Ui3nTableHeaderCellSlot, Ui3nTableBodyRowSlotScope, Ui3nTableBodyRowSlot, Ui3nTableBodyRowCellSlotScope, Ui3nTableBodyRowCellSlot, Ui3nTableSlots, Ui3nTableProps, Ui3nTableEmits } from './ui3n-table/types';
22
+ import { Ui3nTableSortIconProps, Ui3nTableSort, Ui3nTableConfig, Ui3nTableHeadProps, Ui3nTableBodyProps, Ui3nTableGroupActionsSlot, Ui3nTableHeaderCellSlot, Ui3nTableBodyRowSlotScope, Ui3nTableBodyRowSlot, Ui3nTableBodyRowCellSlotScope, Ui3nTableBodyRowCellSlot, Ui3nTableSlots, Ui3nTableProps, Ui3nTableEmits, Ui3nTableExpose } from './ui3n-table/types';
23
23
  import { default as Ui3nDialog } from './ui3n-dialog/ui3n-dialog.vue';
24
24
  import { Ui3nDialogComponentProps, Ui3nDialogComponentEmits, Ui3nDialogProps, Ui3nDialogEvent } from './ui3n-dialog/types';
25
25
  import { default as Ui3nMenu } from './ui3n-menu/ui3n-menu.vue';
@@ -51,4 +51,4 @@ import { default as Ui3nEditable } from './ui3n-editable/ui3n-editable.vue';
51
51
  import { Ui3nEditableProps, Ui3nEditableEmits } from './ui3n-editable/types';
52
52
  import { default as Ui3nAutocomplete } from './ui3n-autocomplete/ui3n-autocomplete.vue';
53
53
  import { Ui3nAutocompleteProps, Ui3nAutocompleteEmits, Ui3nAutocompleteSlots, Ui3nAutocompleteOptionBase } from './ui3n-autocomplete/types';
54
- 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, 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, Ui3nRadio, Ui3nRadioGroup, Ui3nRadioValue, Ui3nRadioEmits, Ui3nRadioProps, Ui3nRadioSlots, Ui3nRadioGroupEmits, Ui3nRadioGroupProps, Ui3nRadioGroupSlots, Ui3nEditable, Ui3nEditableProps, Ui3nEditableEmits, Ui3nAutocomplete, Ui3nAutocompleteProps, Ui3nAutocompleteEmits, Ui3nAutocompleteSlots, Ui3nAutocompleteOptionBase, };
54
+ 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, 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, Ui3nRadio, Ui3nRadioGroup, Ui3nRadioValue, Ui3nRadioEmits, Ui3nRadioProps, Ui3nRadioSlots, Ui3nRadioGroupEmits, Ui3nRadioGroupProps, Ui3nRadioGroupSlots, Ui3nEditable, Ui3nEditableProps, Ui3nEditableEmits, Ui3nAutocomplete, Ui3nAutocompleteProps, Ui3nAutocompleteEmits, Ui3nAutocompleteSlots, Ui3nAutocompleteOptionBase, };
@@ -1,4 +1,4 @@
1
- import { VNode } from 'vue';
1
+ import { VNode, Ref, ComputedRef } from 'vue';
2
2
  export interface Ui3nTableBodyBaseItem {
3
3
  id?: string | number | symbol;
4
4
  }
@@ -85,3 +85,10 @@ export interface Ui3nTableSortIconProps {
85
85
  color?: string;
86
86
  value: 'asc' | 'desc';
87
87
  }
88
+ export type Ui3nTableExpose<T extends Ui3nTableBodyBaseItem> = {
89
+ selectedRows: Ref<Set<T> | Array<T[keyof T]>>;
90
+ selectedRowsArray: ComputedRef<T[]>;
91
+ hasGroupActionsRow: Ref<boolean>;
92
+ getRowStyle: (row: T) => Record<string, string>;
93
+ closeGroupActionsRow: () => void;
94
+ };
@@ -1,16 +1,10 @@
1
- import { Ui3nTableBodyBaseItem, Ui3nTableEmits, Ui3nTableProps } from './types';
1
+ import { Ui3nTableBodyBaseItem, Ui3nTableEmits, Ui3nTableProps, Ui3nTableExpose } from './types';
2
2
  declare const _default: <T extends Ui3nTableBodyBaseItem>(__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
3
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
4
  readonly "onChange:sort"?: ((val: import('./types').Ui3nTableSort<T>) => any) | undefined;
5
5
  readonly "onSelect:row"?: ((val: T[]) => any) | undefined;
6
6
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onChange:sort" | "onSelect:row"> & Ui3nTableProps<T> & Partial<{}>> & import('vue').PublicProps;
7
- expose(exposed: import('vue').ShallowUnwrapRef<{
8
- getRowStyle: (row: T) => Record<string, string>;
9
- selectedRows: import('vue').Ref<Set<T> | T[keyof T][], Set<T> | T[keyof T][]>;
10
- selectedRowsArray: import('vue').ComputedRef<T[]>;
11
- hasGroupActionsRow: import('vue').Ref<boolean, boolean>;
12
- closeGroupActionsRow: () => void;
13
- }>): void;
7
+ expose(exposed: import('vue').ShallowUnwrapRef<Ui3nTableExpose<T>>): void;
14
8
  attrs: any;
15
9
  slots: Readonly<import('./types').Ui3nTableOtherSlots & import('./types').Ui3nTableGroupActionsSlot<T> & import('./types').Ui3nTableHeaderCellSlot<T, string & keyof T> & import('./types').Ui3nTableBodyRowSlot<T> & import('./types').Ui3nTableBodyRowCellSlot<T, string & keyof T>> & import('./types').Ui3nTableOtherSlots & import('./types').Ui3nTableGroupActionsSlot<T> & import('./types').Ui3nTableHeaderCellSlot<T, string & keyof T> & import('./types').Ui3nTableBodyRowSlot<T> & import('./types').Ui3nTableBodyRowCellSlot<T, string & keyof T>;
16
10
  emit: Ui3nTableEmits<T>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@v1nt1248/3nclient-lib",
3
3
  "license": "AGPL-3.0-or-later",
4
4
  "author": "v1nt1248",
5
- "version": "0.2.15",
5
+ "version": "0.2.17",
6
6
  "description": "Library for 3NWeb clients",
7
7
  "type": "module",
8
8
  "files": [
@@ -35,6 +35,7 @@ import type {
35
35
  Ui3nTableSlots,
36
36
  Ui3nTableProps,
37
37
  Ui3nTableEmits,
38
+ Ui3nTableExpose,
38
39
  } from './ui3n-table/types';
39
40
  import Ui3nDialog from './ui3n-dialog/ui3n-dialog.vue';
40
41
  import type {
@@ -140,6 +141,7 @@ export {
140
141
  Ui3nTableSlots,
141
142
  Ui3nTableProps,
142
143
  Ui3nTableEmits,
144
+ Ui3nTableExpose,
143
145
  Ui3nDialog,
144
146
  Ui3nDialogComponentProps,
145
147
  Ui3nDialogComponentEmits,
@@ -1,4 +1,4 @@
1
- import { VNode } from 'vue';
1
+ import { VNode, type Ref, type ComputedRef } from 'vue';
2
2
 
3
3
  export interface Ui3nTableBodyBaseItem {
4
4
  id?: string | number | symbol;
@@ -97,3 +97,11 @@ export interface Ui3nTableSortIconProps {
97
97
  color?: string;
98
98
  value: 'asc' | 'desc';
99
99
  }
100
+
101
+ export type Ui3nTableExpose<T extends Ui3nTableBodyBaseItem> = {
102
+ selectedRows: Ref<Set<T> | Array<T[keyof T]>>;
103
+ selectedRowsArray: ComputedRef<T[]>;
104
+ hasGroupActionsRow: Ref<boolean>;
105
+ getRowStyle: (row: T) => Record<string, string>;
106
+ closeGroupActionsRow: () => void;
107
+ };
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts" generic="T extends Ui3nTableBodyBaseItem">
2
2
  import size from 'lodash/size';
3
3
  import { useTable } from './composables/useTable';
4
- import type { Ui3nTableBodyBaseItem, Ui3nTableEmits, Ui3nTableProps, Ui3nTableSlots } from './types';
4
+ import type { Ui3nTableBodyBaseItem, Ui3nTableEmits, Ui3nTableProps, Ui3nTableSlots, Ui3nTableExpose } from './types';
5
5
  import Ui3nButton from '../ui3n-button/ui3n-button.vue';
6
6
  import Ui3nCheckbox from '../ui3n-checkbox/ui3n-checkbox.vue';
7
7
  import Ui3nTableSortIcon from './ui3n-table-sort-icon.vue';
@@ -32,7 +32,7 @@
32
32
  select: processSelection,
33
33
  };
34
34
 
35
- defineExpose({
35
+ defineExpose<Ui3nTableExpose<T>>({
36
36
  getRowStyle,
37
37
  selectedRows,
38
38
  selectedRowsArray,