@espri/vue-components 1.0.0 → 1.1.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/types/input-text/index.d.ts +6 -4
- package/dist/types/input-text/interfaces/input-text-emits.interface.d.ts +2 -2
- package/dist/types/input-text/interfaces/input-text-props.interface.d.ts +1 -1
- package/dist/types/select/index.d.ts +7 -4
- package/dist/types/select/interfaces/select-emits.interface.d.ts +2 -2
- package/dist/types/select/interfaces/select-props.interface.d.ts +8 -7
- package/package.json +1 -1
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import type { DefineComponent } from 'vue';
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
2
|
+
import type EspriInputTextEmits from './interfaces/input-text-emits.interface';
|
|
3
|
+
import type { EspriInputTextEmitsForDoc } from './interfaces/input-text-emits.interface';
|
|
4
|
+
import type EspriInputTextProps from './interfaces/input-text-props.interface';
|
|
4
5
|
/**
|
|
5
6
|
* **ESPRI Digital - Input Text (Vue component)**
|
|
6
7
|
* --- ---
|
|
7
8
|
* 
|
|
8
9
|
*
|
|
9
10
|
*/
|
|
10
|
-
declare const EspriInputText: DefineComponent<
|
|
11
|
+
declare const EspriInputText: DefineComponent<EspriInputTextProps, {}, // For slots if any
|
|
11
12
|
{}, // For methods or data if any
|
|
12
13
|
{}, // Computed
|
|
13
14
|
{}, // Methods
|
|
14
15
|
{}, // Mixin
|
|
15
16
|
{}, // Extends
|
|
16
|
-
|
|
17
|
+
EspriInputTextEmitsForDoc>;
|
|
17
18
|
export default EspriInputText;
|
|
19
|
+
export type { EspriInputTextEmits, EspriInputTextProps };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ObjectEmitsOptions } from 'vue';
|
|
2
|
-
export default interface
|
|
2
|
+
export default interface EspriInputTextEmits {
|
|
3
3
|
(e: 'update:modelValue', value: any): void;
|
|
4
4
|
}
|
|
5
|
-
export interface
|
|
5
|
+
export interface EspriInputTextEmitsForDoc extends ObjectEmitsOptions {
|
|
6
6
|
/**
|
|
7
7
|
* Called when modelValue is updated.
|
|
8
8
|
*/
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import type { DefineComponent } from 'vue';
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
2
|
+
import type EspriSelectEmits from './interfaces/select-emits.interface';
|
|
3
|
+
import type { EspriSelectEmitsForDoc } from './interfaces/select-emits.interface';
|
|
4
|
+
import type EspriSelectProps from './interfaces/select-props.interface';
|
|
5
|
+
import type { EspriSelectOption } from './interfaces/select-props.interface';
|
|
4
6
|
/**
|
|
5
7
|
* **ESPRI Digital - Select (Vue component)**
|
|
6
8
|
* --- ---
|
|
7
9
|
* 
|
|
8
10
|
*
|
|
9
11
|
*/
|
|
10
|
-
declare const EspriSelect: DefineComponent<
|
|
12
|
+
declare const EspriSelect: DefineComponent<EspriSelectProps, {}, // For slots if any
|
|
11
13
|
{}, // For methods or data if any
|
|
12
14
|
{}, // Computed
|
|
13
15
|
{}, // Methods
|
|
14
16
|
{}, // Mixin
|
|
15
17
|
{}, // Extends
|
|
16
|
-
|
|
18
|
+
EspriSelectEmitsForDoc>;
|
|
17
19
|
export default EspriSelect;
|
|
20
|
+
export type { EspriSelectEmits, EspriSelectOption, EspriSelectProps };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ObjectEmitsOptions } from 'vue';
|
|
2
|
-
export default interface
|
|
2
|
+
export default interface EspriSelectEmits {
|
|
3
3
|
(e: 'update:modelValue', value: any): void;
|
|
4
4
|
}
|
|
5
|
-
export interface
|
|
5
|
+
export interface EspriSelectEmitsForDoc extends ObjectEmitsOptions {
|
|
6
6
|
/**
|
|
7
7
|
* Called when modelValue is updated.
|
|
8
8
|
*/
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface EspriSelectOption {
|
|
2
|
+
/** Display text for the option */
|
|
3
|
+
label: string;
|
|
4
|
+
/** Value associated with the option */
|
|
5
|
+
value: any;
|
|
6
|
+
}
|
|
7
|
+
export default interface EspriSelectProps {
|
|
2
8
|
/**
|
|
3
9
|
* Label displayed above the input.
|
|
4
10
|
*/
|
|
@@ -6,12 +12,7 @@ export default interface SelectProps {
|
|
|
6
12
|
/**
|
|
7
13
|
* Array of options available for selection.
|
|
8
14
|
*/
|
|
9
|
-
options: Array<
|
|
10
|
-
/** Display text for the option */
|
|
11
|
-
label: string;
|
|
12
|
-
/** Value associated with the option */
|
|
13
|
-
value: any;
|
|
14
|
-
}>;
|
|
15
|
+
options: Array<EspriSelectOption>;
|
|
15
16
|
/**
|
|
16
17
|
* Optional CSS class applied to the input element.
|
|
17
18
|
*/
|