@v1nt1248/3nclient-lib 0.3.23 → 0.3.24

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.
@@ -9,7 +9,7 @@ import { Ui3nDropFilesProps, Ui3nDropFilesEmits, Ui3nDropFilesSlots } from './ui
9
9
  import { default as Ui3nEmoji } from './ui3n-emoji/ui3n-emoji.vue';
10
10
  import { Ui3nEmojiProps, Ui3nEmojiEmits } from './ui3n-emoji/types';
11
11
  import { default as Ui3nInput } from './ui3n-input/ui3n-input.vue';
12
- import { Ui3nInputProps, Ui3nInputEmits } from './ui3n-input/types';
12
+ import { Ui3nInputProps, Ui3nInputEmits, Ui3nInputSlots, Ui3nInputExpose } from './ui3n-input/types';
13
13
  import { default as Ui3nInputFile } from './ui3n-input-file/ui3n-input-file.vue';
14
14
  import { Ui3nInputFileProps, Ui3nInputFileEmits } from './ui3n-input-file/types';
15
15
  import { default as Ui3nText } from './ui3n-text/ui3n-text.vue';
@@ -60,4 +60,4 @@ import { default as Ui3nMobileMenu } from './ui3n-mobile-menu/ui3n-mobile-menu.v
60
60
  import { Ui3nMobileMenuProps, Ui3nMobileMenuEmits, Ui3nMobileMenuSlots } from './ui3n-mobile-menu/types';
61
61
  import { default as Ui3nMobileMenuItem } from './ui3n-mobile-menu-item/ui3n-mobile-menu-item.vue';
62
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, };
63
+ export { Ui3nIcon, Ui3nIconProps, Ui3nIconEmits, Ui3nButton, Ui3nButtonProps, Ui3nButtonEmits, Ui3nChip, Ui3nChipProps, Ui3nChipEmits, Ui3nChipSlots, Ui3nDropFiles, Ui3nDropFilesProps, Ui3nDropFilesEmits, Ui3nDropFilesSlots, Ui3nEmoji, Ui3nEmojiProps, Ui3nEmojiEmits, Ui3nInput, Ui3nInputProps, Ui3nInputEmits, Ui3nInputSlots, Ui3nInputExpose, 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, };
@@ -1,3 +1,4 @@
1
+ import { Ref, VNode } from 'vue';
1
2
  export interface Ui3nInputProps {
2
3
  /**
3
4
  * Input value
@@ -32,13 +33,27 @@ export interface Ui3nInputProps {
32
33
  */
33
34
  autofocus?: boolean;
34
35
  /**
35
- * Input icon
36
+ * Whether input is readonly
37
+ * @default false
38
+ */
39
+ readonly?: boolean;
40
+ /**
41
+ * Input name attribute (for use in native forms)
36
42
  */
37
- icon?: string;
43
+ name?: string;
38
44
  /**
39
- * Input icon color
45
+ * Maximum length of input value
40
46
  */
41
- iconColor?: string;
47
+ maxlength?: number;
48
+ /**
49
+ * Minimum length of input value
50
+ */
51
+ minlength?: number;
52
+ /**
53
+ * Autocomplete attribute
54
+ * @default 'off'
55
+ */
56
+ autocomplete?: string;
42
57
  /**
43
58
  * Validation rules
44
59
  */
@@ -124,3 +139,31 @@ export interface Ui3nInputEmits {
124
139
  */
125
140
  (event: 'update:valid', value: boolean): void;
126
141
  }
142
+ export interface Ui3nInputSlots {
143
+ /**
144
+ * Slot for prepend icon (displayed at the start of the input)
145
+ */
146
+ 'prepend-icon'?: () => VNode[];
147
+ /**
148
+ * Slot for append icon (displayed at the end of the input)
149
+ */
150
+ 'append-icon'?: () => VNode[];
151
+ }
152
+ export interface Ui3nInputExpose {
153
+ /**
154
+ * Reference to the input DOM element
155
+ */
156
+ inputElement: Ref<HTMLInputElement | null>;
157
+ /**
158
+ * Whether the input has been modified
159
+ */
160
+ isDirty: Ref<boolean>;
161
+ /**
162
+ * Whether the input is currently focused
163
+ */
164
+ isFocused: Ref<boolean>;
165
+ /**
166
+ * Clear the input value
167
+ */
168
+ clearValue: () => void;
169
+ }
@@ -1,9 +1,18 @@
1
- import { Ui3nInputProps } from './types';
2
- declare function clearValue(): void;
3
- declare const _default: import('vue').DefineComponent<Ui3nInputProps, {
4
- isDirty: import('vue').Ref<boolean, boolean>;
5
- isFocused: import('vue').Ref<boolean, boolean>;
6
- clearValue: typeof clearValue;
1
+ import { Ui3nInputProps, Ui3nInputSlots } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: Readonly<Ui3nInputSlots> & Ui3nInputSlots;
5
+ refs: {
6
+ inputElement: HTMLInputElement;
7
+ };
8
+ rootEl: HTMLDivElement;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<Ui3nInputProps, {
12
+ inputElement: import('vue').Ref<HTMLInputElement | null>;
13
+ isDirty: import('vue').Ref<boolean>;
14
+ isFocused: import('vue').Ref<boolean>;
15
+ clearValue: () => void;
7
16
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
17
  input: (value: string) => any;
9
18
  enter: (value: {
@@ -41,16 +50,16 @@ declare const _default: import('vue').DefineComponent<Ui3nInputProps, {
41
50
  onEscape?: ((value: Event) => any) | undefined;
42
51
  "onUpdate:valid"?: ((value: boolean) => any) | undefined;
43
52
  }>, {
44
- icon: string;
45
53
  size: "regular" | "large";
46
54
  type: "text" | "password";
47
55
  label: string;
48
56
  disabled: boolean;
49
- iconColor: string;
50
57
  placeholder: string;
51
58
  modelValue: string;
59
+ readonly: boolean;
52
60
  clearable: boolean;
53
61
  autofocus: boolean;
62
+ autocomplete: string;
54
63
  rules: Array<(v: unknown) => boolean | string>;
55
64
  validateAtStartup: boolean;
56
65
  hideBottomSpace: boolean;
@@ -60,4 +69,10 @@ declare const _default: import('vue').DefineComponent<Ui3nInputProps, {
60
69
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
61
70
  inputElement: HTMLInputElement;
62
71
  }, HTMLDivElement>;
72
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
63
73
  export default _default;
74
+ type __VLS_WithTemplateSlots<T, S> = T & {
75
+ new (): {
76
+ $slots: S;
77
+ };
78
+ };