tsv2-library 0.0.8 → 0.0.9
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/build-entry.d.ts +8 -0
- package/dist/components/{Button → v2/Button}/Button.vue.d.ts +4 -1
- package/dist/components/v2/Button/Button.vue.d.ts.map +1 -0
- package/dist/components/v2/{buttonbulkaction → ButtonBulkAction}/ButtonBulkAction.vue.d.ts +1 -1
- package/dist/components/v2/Checkbox/Checkbox.vue.d.ts.map +1 -0
- package/dist/components/v2/FilterContainer/FilterContainer.vue.d.ts +36 -0
- package/dist/components/v2/Form/Form.vue.d.ts +80 -0
- package/dist/components/v2/Icon/Icon.vue.d.ts +10 -0
- package/dist/components/v2/Icon/Icon.vue.d.ts.map +1 -0
- package/dist/components/v2/InputEmail/InputEmail.vue.d.ts +73 -0
- package/dist/components/v2/InputNumber/InputNumber.vue.d.ts +95 -0
- package/dist/components/v2/{inputtext → InputText}/InputText.vue.d.ts +4 -0
- package/dist/components/v2/index.d.ts +3 -0
- package/dist/main.d.ts +2 -2
- package/dist/style.css +1 -1
- package/dist/tsv2-library.cjs.js +15 -14
- package/dist/tsv2-library.cjs.js.map +1 -0
- package/dist/tsv2-library.es.js +554 -517
- package/dist/tsv2-library.es.js.map +1 -0
- package/dist/tsv2-library.umd.js +19 -18
- package/dist/tsv2-library.umd.js.map +1 -0
- package/package.json +34 -11
- package/src/presets/{wind/button → button}/index.js +2 -1
- package/src/presets/inputnumber/index.js +264 -0
- package/src/presets/{wind/tooltip → tooltip}/index.js +7 -8
- package/dist/components/Button/Button.vue.d.ts.map +0 -1
- package/dist/components/ButtonPure/ButtonPure.vue.d.ts +0 -2
- package/dist/components/ButtonPure/ButtonPure.vue.d.ts.map +0 -1
- package/dist/components/Checkbox/Checkbox.vue.d.ts.map +0 -1
- package/dist/components/icon/Icon.vue.d.ts +0 -4
- package/dist/components/icon/Icon.vue.d.ts.map +0 -1
- package/dist/components/index.d.ts +0 -4
- package/dist/components/main.d.ts +0 -7
- package/dist/components/v2/icon/Icon.vue.d.ts +0 -4
- package/src/presets/lara/accordion/index.js +0 -86
- package/src/presets/lara/autocomplete/index.js +0 -272
- package/src/presets/lara/avatar/index.js +0 -40
- package/src/presets/lara/badge/index.js +0 -44
- package/src/presets/lara/badgedirective/index.js +0 -49
- package/src/presets/lara/breadcrumb/index.js +0 -64
- package/src/presets/lara/button/index.js +0 -470
- package/src/presets/lara/calendar/index.js +0 -676
- package/src/presets/lara/card/index.js +0 -37
- package/src/presets/lara/cascadeselect/index.js +0 -222
- package/src/presets/lara/checkbox/index.js +0 -103
- package/src/presets/lara/chip/index.js +0 -45
- package/src/presets/lara/chips/index.js +0 -111
- package/src/presets/lara/colorpicker/index.js +0 -126
- package/src/presets/lara/confirmpopup/index.js +0 -107
- package/src/presets/lara/contextmenu/index.js +0 -127
- package/src/presets/lara/datatable/index.js +0 -1289
- package/src/presets/lara/dataview/index.js +0 -40
- package/src/presets/lara/dataviewlayoutoptions/index.js +0 -66
- package/src/presets/lara/dialog/index.js +0 -249
- package/src/presets/lara/divider/index.js +0 -72
- package/src/presets/lara/dropdown/index.js +0 -294
- package/src/presets/lara/fieldset/index.js +0 -98
- package/src/presets/lara/global.js +0 -90
- package/src/presets/lara/inlinemessage/index.js +0 -36
- package/src/presets/lara/inputgroupaddon/index.js +0 -28
- package/src/presets/lara/inputmask/index.js +0 -32
- package/src/presets/lara/inputnumber/index.js +0 -243
- package/src/presets/lara/inputswitch/index.js +0 -88
- package/src/presets/lara/inputtext/index.js +0 -51
- package/src/presets/lara/listbox/index.js +0 -166
- package/src/presets/lara/megamenu/index.js +0 -207
- package/src/presets/lara/menu/index.js +0 -98
- package/src/presets/lara/menubar/index.js +0 -181
- package/src/presets/lara/message/index.js +0 -87
- package/src/presets/lara/multiselect/index.js +0 -583
- package/src/presets/lara/orderlist/index.js +0 -266
- package/src/presets/lara/organizationchart/index.js +0 -142
- package/src/presets/lara/overlaypanel/index.js +0 -35
- package/src/presets/lara/paginator/index.js +0 -584
- package/src/presets/lara/panel/index.js +0 -93
- package/src/presets/lara/panelmenu/index.js +0 -139
- package/src/presets/lara/password/index.js +0 -80
- package/src/presets/lara/picklist/index.js +0 -659
- package/src/presets/lara/progressbar/index.js +0 -61
- package/src/presets/lara/radiobutton/index.js +0 -112
- package/src/presets/lara/rating/index.js +0 -95
- package/src/presets/lara/scrollpanel/index.js +0 -77
- package/src/presets/lara/selectbutton/index.js +0 -56
- package/src/presets/lara/sidebar/index.js +0 -163
- package/src/presets/lara/slider/index.js +0 -149
- package/src/presets/lara/splitbutton/index.js +0 -954
- package/src/presets/lara/steps/index.js +0 -115
- package/src/presets/lara/tabmenu/index.js +0 -82
- package/src/presets/lara/tabview/index.js +0 -166
- package/src/presets/lara/textarea/index.js +0 -35
- package/src/presets/lara/tieredmenu/index.js +0 -125
- package/src/presets/lara/toast/index.js +0 -107
- package/src/presets/lara/togglebutton/index.js +0 -96
- package/src/presets/lara/toolbar/index.js +0 -28
- package/src/presets/lara/tooltip/index.js +0 -73
- package/src/presets/lara/tree/index.js +0 -278
- package/src/presets/lara/treeselect/index.js +0 -377
- package/src/presets/lara/treetable/index.js +0 -506
- package/src/presets/lara/tristatecheckbox/index.js +0 -109
- package/src/presets/wind/avatargroup/index.js +0 -5
- package/src/presets/wind/carousel/index.js +0 -135
- package/src/presets/wind/dock/index.js +0 -97
- package/src/presets/wind/index.js +0 -173
- package/src/presets/wind/inputgroup/index.js +0 -5
- package/src/presets/wind/inputnumber/index.js +0 -236
- package/src/presets/wind/knob/index.js +0 -47
- package/src/presets/wind/ripple/index.js +0 -6
- package/src/presets/wind/scrolltop/index.js +0 -45
- package/src/presets/wind/skeleton/index.js +0 -19
- package/src/presets/wind/tag/index.js +0 -37
- package/src/presets/wind/terminal/index.js +0 -60
- /package/dist/components/{Checkbox → v2/Checkbox}/Checkbox.vue.d.ts +0 -0
- /package/src/presets/{wind/accordion → accordion}/index.js +0 -0
- /package/src/presets/{wind/autocomplete → autocomplete}/index.js +0 -0
- /package/src/presets/{wind/avatar → avatar}/index.js +0 -0
- /package/src/presets/{lara/avatargroup → avatargroup}/index.js +0 -0
- /package/src/presets/{wind/badge → badge}/index.js +0 -0
- /package/src/presets/{wind/badgedirective → badgedirective}/index.js +0 -0
- /package/src/presets/{wind/breadcrumb → breadcrumb}/index.js +0 -0
- /package/src/presets/{wind/calendar → calendar}/index.js +0 -0
- /package/src/presets/{wind/card → card}/index.js +0 -0
- /package/src/presets/{lara/carousel → carousel}/index.js +0 -0
- /package/src/presets/{wind/cascadeselect → cascadeselect}/index.js +0 -0
- /package/src/presets/{wind/checkbox → checkbox}/index.js +0 -0
- /package/src/presets/{wind/chip → chip}/index.js +0 -0
- /package/src/presets/{wind/chips → chips}/index.js +0 -0
- /package/src/presets/{wind/colorpicker → colorpicker}/index.js +0 -0
- /package/src/presets/{wind/confirmpopup → confirmpopup}/index.js +0 -0
- /package/src/presets/{wind/contextmenu → contextmenu}/index.js +0 -0
- /package/src/presets/{wind/datatable → datatable}/index.js +0 -0
- /package/src/presets/{wind/dataview → dataview}/index.js +0 -0
- /package/src/presets/{wind/dataviewlayoutoptions → dataviewlayoutoptions}/index.js +0 -0
- /package/src/presets/{wind/dialog → dialog}/index.js +0 -0
- /package/src/presets/{wind/divider → divider}/index.js +0 -0
- /package/src/presets/{lara/dock → dock}/index.js +0 -0
- /package/src/presets/{wind/dropdown → dropdown}/index.js +0 -0
- /package/src/presets/{wind/fieldset → fieldset}/index.js +0 -0
- /package/src/presets/{wind/global.js → global.js} +0 -0
- /package/src/presets/{lara/index.js → index.js} +0 -0
- /package/src/presets/{wind/inlinemessage → inlinemessage}/index.js +0 -0
- /package/src/presets/{lara/inputgroup → inputgroup}/index.js +0 -0
- /package/src/presets/{wind/inputgroupaddon → inputgroupaddon}/index.js +0 -0
- /package/src/presets/{wind/inputmask → inputmask}/index.js +0 -0
- /package/src/presets/{wind/inputswitch → inputswitch}/index.js +0 -0
- /package/src/presets/{wind/inputtext → inputtext}/index.js +0 -0
- /package/src/presets/{lara/knob → knob}/index.js +0 -0
- /package/src/presets/{wind/listbox → listbox}/index.js +0 -0
- /package/src/presets/{wind/megamenu → megamenu}/index.js +0 -0
- /package/src/presets/{wind/menu → menu}/index.js +0 -0
- /package/src/presets/{wind/menubar → menubar}/index.js +0 -0
- /package/src/presets/{wind/message → message}/index.js +0 -0
- /package/src/presets/{wind/multiselect → multiselect}/index.js +0 -0
- /package/src/presets/{wind/orderlist → orderlist}/index.js +0 -0
- /package/src/presets/{wind/organizationchart → organizationchart}/index.js +0 -0
- /package/src/presets/{wind/overlaypanel → overlaypanel}/index.js +0 -0
- /package/src/presets/{wind/paginator → paginator}/index.js +0 -0
- /package/src/presets/{wind/panel → panel}/index.js +0 -0
- /package/src/presets/{wind/panelmenu → panelmenu}/index.js +0 -0
- /package/src/presets/{wind/password → password}/index.js +0 -0
- /package/src/presets/{wind/picklist → picklist}/index.js +0 -0
- /package/src/presets/{wind/progressbar → progressbar}/index.js +0 -0
- /package/src/presets/{wind/radiobutton → radiobutton}/index.js +0 -0
- /package/src/presets/{wind/rating → rating}/index.js +0 -0
- /package/src/presets/{lara/ripple → ripple}/index.js +0 -0
- /package/src/presets/{wind/scrollpanel → scrollpanel}/index.js +0 -0
- /package/src/presets/{lara/scrolltop → scrolltop}/index.js +0 -0
- /package/src/presets/{wind/selectbutton → selectbutton}/index.js +0 -0
- /package/src/presets/{wind/sidebar → sidebar}/index.js +0 -0
- /package/src/presets/{lara/skeleton → skeleton}/index.js +0 -0
- /package/src/presets/{wind/slider → slider}/index.js +0 -0
- /package/src/presets/{wind/splitbutton → splitbutton}/index.js +0 -0
- /package/src/presets/{wind/steps → steps}/index.js +0 -0
- /package/src/presets/{wind/tabmenu → tabmenu}/index.js +0 -0
- /package/src/presets/{wind/tabview → tabview}/index.js +0 -0
- /package/src/presets/{lara/tag → tag}/index.js +0 -0
- /package/src/presets/{lara/terminal → terminal}/index.js +0 -0
- /package/src/presets/{wind/textarea → textarea}/index.js +0 -0
- /package/src/presets/{wind/tieredmenu → tieredmenu}/index.js +0 -0
- /package/src/presets/{wind/toast → toast}/index.js +0 -0
- /package/src/presets/{wind/togglebutton → togglebutton}/index.js +0 -0
- /package/src/presets/{wind/toolbar → toolbar}/index.js +0 -0
- /package/src/presets/{wind/tree → tree}/index.js +0 -0
- /package/src/presets/{wind/treeselect → treeselect}/index.js +0 -0
- /package/src/presets/{wind/treetable → treetable}/index.js +0 -0
- /package/src/presets/{wind/tristatecheckbox → tristatecheckbox}/index.js +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { App } from 'vue';
|
|
2
|
+
import LibConfig from '../node_modules/primevue/config';
|
|
3
|
+
import { TSButton, TSCheckbox } from './components/v2';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
install: (app: App) => void;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
export { LibConfig, TSButton, TSCheckbox };
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { PropType as __PropType } from 'vue';
|
|
2
|
-
import { TSVueIcons } from '
|
|
2
|
+
import { TSVueIcons } from '../Icon/Icon.vue.d';
|
|
3
|
+
/**
|
|
4
|
+
* FIXME: Button does not fire click event using @click;
|
|
5
|
+
*/
|
|
3
6
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
7
|
icon: {
|
|
5
8
|
type: __PropType<TSVueIcons | undefined>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/v2/Button/Button.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,+IAA+I,CAAC;AACtK,cAAc,+IAA+I,CAAC;AAC9J,eAAe,SAAS,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DefineComponent } from 'vue';
|
|
2
2
|
import { MenuItem } from '../../../../node_modules/primevue/menuitem';
|
|
3
|
-
import { TSVueIcons } from '
|
|
3
|
+
import { TSVueIcons } from '../Icon/Icon.vue.d';
|
|
4
4
|
|
|
5
5
|
export type MenuOption = Omit<MenuItem, 'label', 'command', 'icon'> & {
|
|
6
6
|
label?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/v2/Checkbox/Checkbox.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,mJAAmJ,CAAC;AAC1K,cAAc,mJAAmJ,CAAC;AAClK,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DefineComponent, Slot } from 'vue';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Emits for TSFilterContainer component
|
|
5
|
+
*/
|
|
6
|
+
export type TSFilterContainerEmits = {
|
|
7
|
+
apply: [];
|
|
8
|
+
clear: [];
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Slots for TSFilterContainer component
|
|
13
|
+
*/
|
|
14
|
+
export type TSFilterContainerSlots = {
|
|
15
|
+
default: Slot;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* **TSVue - FilterContainer**
|
|
20
|
+
*
|
|
21
|
+
* _TSFilterContainer is a component for generating a dynamic grid-based layout for any count of filter fields.
|
|
22
|
+
* It calculates the number of children in the container and sets their grid area style dynamically.
|
|
23
|
+
*
|
|
24
|
+
* The grid layout is determined by the row and column position, which are incremented based on the child count.
|
|
25
|
+
* If the child count is odd and the child is the last one (which is Buttons Action),
|
|
26
|
+
* it is placed in the 4th column._
|
|
27
|
+
*
|
|
28
|
+
* @group components
|
|
29
|
+
*/
|
|
30
|
+
declare const TSFilterContainer: DefineComponent<
|
|
31
|
+
object,
|
|
32
|
+
TSFilterContainerEmits,
|
|
33
|
+
TSFilterContainerSlots
|
|
34
|
+
>;
|
|
35
|
+
|
|
36
|
+
export default TSFilterContainer;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { DefineComponent, Slot } from 'vue';
|
|
2
|
+
|
|
3
|
+
export type FormValue =
|
|
4
|
+
| string
|
|
5
|
+
| string[]
|
|
6
|
+
| number
|
|
7
|
+
| number[]
|
|
8
|
+
| boolean
|
|
9
|
+
| boolean[]
|
|
10
|
+
| Record<string, unknown>
|
|
11
|
+
| Record<string, unknown>[];
|
|
12
|
+
|
|
13
|
+
export type FormPayload = {
|
|
14
|
+
stayAfterSubmit: boolean;
|
|
15
|
+
formValues: Record<string, FormValue>;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Props for Form component
|
|
20
|
+
*/
|
|
21
|
+
export interface FormProps {
|
|
22
|
+
/**
|
|
23
|
+
* The number of columns per row.
|
|
24
|
+
* @default 1;
|
|
25
|
+
*/
|
|
26
|
+
columnPerRow?: number;
|
|
27
|
+
/**
|
|
28
|
+
* The template for form buttons.
|
|
29
|
+
*/
|
|
30
|
+
buttonsTemplate?: (
|
|
31
|
+
| 'clear'
|
|
32
|
+
| 'submit'
|
|
33
|
+
| 'save'
|
|
34
|
+
| 'save-outlined'
|
|
35
|
+
| 'cancel'
|
|
36
|
+
)[];
|
|
37
|
+
/**
|
|
38
|
+
* Determines if the stay checkbox should be hidden.
|
|
39
|
+
*/
|
|
40
|
+
hideStayCheckbox?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Determines if the buttons should be sticky.
|
|
43
|
+
*/
|
|
44
|
+
stickyButtons?: boolean;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Slots for Form component
|
|
49
|
+
*/
|
|
50
|
+
export interface FormSlots {
|
|
51
|
+
/**
|
|
52
|
+
* The fields slot for the form. Here is where you can put your form fields.
|
|
53
|
+
*/
|
|
54
|
+
fields: Slot;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Emits for Form component
|
|
59
|
+
*/
|
|
60
|
+
export type FormEmits = {
|
|
61
|
+
submit: [values: FormPayload];
|
|
62
|
+
save: [values: FormPayload];
|
|
63
|
+
clear: [];
|
|
64
|
+
cancel: [];
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* **TSVue - Form**
|
|
69
|
+
*
|
|
70
|
+
* _Form is a component for creating forms with validation on submit using vee-validate.
|
|
71
|
+
* You need to install vee-validate while using this component._
|
|
72
|
+
*
|
|
73
|
+
* --- ---
|
|
74
|
+
* 
|
|
75
|
+
*
|
|
76
|
+
* @group components
|
|
77
|
+
*/
|
|
78
|
+
declare const Form: DefineComponent<FormProps, FormSlots, FormEmits>;
|
|
79
|
+
|
|
80
|
+
export default Form;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/v2/Icon/Icon.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,2IAA2I,CAAC;AAClK,cAAc,2IAA2I,CAAC;AAC1J,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* InputEmail component props
|
|
5
|
+
*/
|
|
6
|
+
export interface InputEmailProps {
|
|
7
|
+
/**
|
|
8
|
+
* Model value for the input field
|
|
9
|
+
*/
|
|
10
|
+
modelValue?: string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Label for the input field
|
|
14
|
+
*/
|
|
15
|
+
label?: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Field name for the input field
|
|
19
|
+
*/
|
|
20
|
+
fieldName?: string;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Determines if the field is mandatory
|
|
24
|
+
*/
|
|
25
|
+
mandatory?: boolean;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Determines if the field uses a validator
|
|
29
|
+
*/
|
|
30
|
+
useValidator?: boolean;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Validator message for the input field
|
|
34
|
+
*/
|
|
35
|
+
validatorMessage?: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Placeholder for the input field
|
|
39
|
+
*/
|
|
40
|
+
placeholder?: string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Determines if the input field is disabled
|
|
44
|
+
*/
|
|
45
|
+
disabled?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Show information to user about the field.
|
|
48
|
+
*/
|
|
49
|
+
fieldInfo?: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* InputEmail component emits
|
|
54
|
+
*/
|
|
55
|
+
export type InputEmailEmits = {
|
|
56
|
+
/**
|
|
57
|
+
* Event emitted when the model value is updated
|
|
58
|
+
*/
|
|
59
|
+
'update:modelValue': [payload?: string];
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* **TSVue - InputEmail**
|
|
63
|
+
*
|
|
64
|
+
* _Handle input email with form validation._
|
|
65
|
+
*
|
|
66
|
+
* --- ---
|
|
67
|
+
* 
|
|
68
|
+
*
|
|
69
|
+
* @group form
|
|
70
|
+
*/
|
|
71
|
+
declare const InputEmail: DefineComponent<InputEmailProps, InputEmailEmits>;
|
|
72
|
+
|
|
73
|
+
export default InputEmail;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* InputNumber component props
|
|
5
|
+
*/
|
|
6
|
+
export interface InputNumberProps {
|
|
7
|
+
/**
|
|
8
|
+
* Number modelValue of the input.
|
|
9
|
+
*/
|
|
10
|
+
modelValue?: number;
|
|
11
|
+
initialValue?: number;
|
|
12
|
+
/**
|
|
13
|
+
* The input label. Tell the user what input is this.
|
|
14
|
+
*/
|
|
15
|
+
label?: string;
|
|
16
|
+
addonLabel?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Max input number value.
|
|
19
|
+
*/
|
|
20
|
+
max?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Wether the input should be validated with vee-validator or not.
|
|
23
|
+
* If you use this component within form input, you need to set this props as true.
|
|
24
|
+
*/
|
|
25
|
+
useValidator?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* This prop is required if you use this component in a form input.
|
|
28
|
+
* Specify the unique field name, match with your needs for API request.
|
|
29
|
+
*
|
|
30
|
+
* @default 'numberInput'
|
|
31
|
+
*/
|
|
32
|
+
fieldName?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Wether this input field is required or not.
|
|
35
|
+
*/
|
|
36
|
+
mandatory?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Set custom validator message.
|
|
39
|
+
* It is rarely use, this component has handled the validator message.
|
|
40
|
+
*/
|
|
41
|
+
validatorMessage?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Specify the input placeholder.
|
|
44
|
+
*
|
|
45
|
+
* @default 'Enter {label}' or 'Enter number'
|
|
46
|
+
*/
|
|
47
|
+
placeholder?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Disabled the input.
|
|
50
|
+
*/
|
|
51
|
+
disabled?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Displays increment/decrement buttons.
|
|
54
|
+
*/
|
|
55
|
+
showButtons?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* The width of input.
|
|
58
|
+
*/
|
|
59
|
+
size?: 'small' | 'normal' | 'full';
|
|
60
|
+
/**
|
|
61
|
+
* Defines the behavior of the component.
|
|
62
|
+
* @defaultValue decimal
|
|
63
|
+
*/
|
|
64
|
+
mode?: 'decimal' | 'currency';
|
|
65
|
+
/**
|
|
66
|
+
* Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators.
|
|
67
|
+
* @defaultValue true
|
|
68
|
+
*/
|
|
69
|
+
useGrouping?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Show information about the field.
|
|
72
|
+
*/
|
|
73
|
+
fieldInfo?: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* InputNumber component emits
|
|
78
|
+
*/
|
|
79
|
+
export type InputNumberEmits = {
|
|
80
|
+
'update:modelValue': [payload?: string];
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* **TSVue - InputNumber**
|
|
85
|
+
*
|
|
86
|
+
* _Handle input number with form validation._
|
|
87
|
+
*
|
|
88
|
+
* --- ---
|
|
89
|
+
* 
|
|
90
|
+
*
|
|
91
|
+
* @group form
|
|
92
|
+
*/
|
|
93
|
+
declare const InputNumber: DefineComponent<InputNumberProps, InputNumberEmits>;
|
|
94
|
+
|
|
95
|
+
export default InputNumber;
|
package/dist/main.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
import tsv2Library from './
|
|
1
|
+
export * from './build-entry'
|
|
2
|
+
import tsv2Library from './build-entry'
|
|
3
3
|
export default tsv2Library
|