@caipira/tamandua 0.0.115 → 0.0.117
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/{Avatar-5xGpnOHD.js → Avatar-BJhDCXNm.js} +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/{Button-B61zGf7P.js → Button-OUFqh0AK.js} +2 -2
- package/dist/Button.js +1 -1
- package/dist/{Dropdown-CXZ1o3rp.js → Dropdown-DoBD6Xhw.js} +1 -1
- package/dist/Dropdown.js +1 -1
- package/dist/{Form-Dwflg0eH.js → Form-DskdWCug.js} +1 -1
- package/dist/Form2.js +1 -1
- package/dist/{FormItem-CMfLyUQ2.js → FormItem-BY63eDen.js} +1 -1
- package/dist/FormItem.js +1 -1
- package/dist/{GraphyPrice-BIRO3_Ah.js → GraphyPrice-ClQqinDD.js} +1 -1
- package/dist/GraphyPrice.js +1 -1
- package/dist/{Icon-BNLjWTiq.js → Icon-B9iNse38.js} +1 -1
- package/dist/{Icon-BHDold-v.js → Icon-C53WlgKH.js} +4 -1
- package/dist/Icon.js +2 -2
- package/dist/{InputMultiplier-BpCbAKJ6.js → InputMultiplier-CxuKrVSY.js} +1 -1
- package/dist/InputMultiplier.js +1 -1
- package/dist/{InputPassword-DiEBfkOp.js → InputPassword-BHobrZ7h.js} +1 -1
- package/dist/InputPassword.js +1 -1
- package/dist/{InputSelect-DJdOf2Hh.js → InputSelect-COxU8e3Y.js} +1 -1
- package/dist/InputSelect.js +1 -1
- package/dist/{InputSwitch-b3QEp5BQ.js → InputSwitch-VNRslua8.js} +1 -1
- package/dist/InputSwitch.js +1 -1
- package/dist/{InputText-DaB5TeOR.js → InputText-D7tqbZd9.js} +1 -1
- package/dist/{InputText-CNn6q4pO.js → InputText-_VHhKh7b.js} +1 -1
- package/dist/InputText.js +2 -2
- package/dist/{Link-9RhB9Snu.js → Link-C5IIsa7T.js} +1 -1
- package/dist/Link.js +1 -1
- package/dist/{Popconfirm-B4xptuBj.js → Popconfirm-Cr56O2Yf.js} +1 -1
- package/dist/Popconfirm.js +1 -1
- package/dist/{Popover-C43FYDmN.js → Popover-CvATd3Kp.js} +1 -1
- package/dist/Popover.js +1 -1
- package/dist/{Table-BEmIaP1b.js → Table-DEdd-UXx.js} +1 -1
- package/dist/Table.js +1 -1
- package/dist/{Tag-C-X54XKY.js → Tag-BrN1GN75.js} +1 -1
- package/dist/Tag.js +1 -1
- package/dist/{Toast-DQGqKVt7.js → Toast-BfhE3zQX.js} +1 -1
- package/dist/Toast.js +1 -1
- package/dist/code-braces-CbeVShNC.js +4 -0
- package/dist/components.js +20 -20
- package/dist/database-search-BDU0TNzv.js +4 -0
- package/dist/enums.js +1 -1
- package/dist/graphql-D5vGqPI4.js +4 -0
- package/dist/plugins.js +18 -18
- package/dist/types/components/Alert/Alert.story.d.ts +19 -0
- package/dist/types/components/Alert/Alert.vue.d.ts +62 -0
- package/dist/types/components/Alert/index.d.ts +4 -0
- package/dist/types/components/Alert/plugin.d.ts +3 -0
- package/dist/types/components/Alert/types.d.ts +42 -0
- package/dist/types/components/Avatar/Avatar.story.d.ts +27 -0
- package/dist/types/components/Avatar/Avatar.vue.d.ts +44 -0
- package/dist/types/components/Avatar/index.d.ts +4 -0
- package/dist/types/components/Avatar/plugin.d.ts +3 -0
- package/dist/types/components/Avatar/types.d.ts +10 -0
- package/dist/types/components/Backdrop/Backdrop.vue.d.ts +32 -0
- package/dist/types/components/Backdrop/index.d.ts +4 -0
- package/dist/types/components/Backdrop/plugin.d.ts +3 -0
- package/dist/types/components/Backdrop/types.d.ts +6 -0
- package/dist/types/components/Button/Button.story.d.ts +45 -0
- package/dist/types/components/Button/Button.vue.d.ts +141 -0
- package/dist/types/components/Button/index.d.ts +4 -0
- package/dist/types/components/Button/plugin.d.ts +3 -0
- package/dist/types/components/Button/types.d.ts +29 -0
- package/dist/types/components/ChartLine/ChartLine.story.d.ts +25 -0
- package/dist/types/components/ChartLine/ChartLine.vue.d.ts +35 -0
- package/dist/types/components/ChartLine/index.d.ts +4 -0
- package/dist/types/components/ChartLine/plugin.d.ts +3 -0
- package/dist/types/components/ChartLine/types.d.ts +17 -0
- package/dist/types/components/ChartTreemap/ChartTreemap.story.d.ts +45 -0
- package/dist/types/components/ChartTreemap/ChartTreemap.vue.d.ts +19 -0
- package/dist/types/components/ChartTreemap/index.d.ts +4 -0
- package/dist/types/components/ChartTreemap/plugin.d.ts +3 -0
- package/dist/types/components/ChartTreemap/types.d.ts +15 -0
- package/dist/types/components/DialogProvider/DialogProvider.vue.d.ts +3 -0
- package/dist/types/components/DialogProvider/index.d.ts +3 -0
- package/dist/types/components/DialogProvider/plugin.d.ts +3 -0
- package/dist/types/components/Drawer/Drawer.story.d.ts +21 -0
- package/dist/types/components/Drawer/Drawer.vue.d.ts +61 -0
- package/dist/types/components/Drawer/index.d.ts +4 -0
- package/dist/types/components/Drawer/plugin.d.ts +3 -0
- package/dist/types/components/Drawer/types.d.ts +11 -0
- package/dist/types/components/Dropdown/Dropdown.vue.d.ts +124 -0
- package/dist/types/components/Dropdown/index.d.ts +4 -0
- package/dist/types/components/Dropdown/plugin.d.ts +3 -0
- package/dist/types/components/Dropdown/types.d.ts +25 -0
- package/dist/types/components/FileDrop/FileDrop.vue.d.ts +37 -0
- package/dist/types/components/FileDrop/index.d.ts +4 -0
- package/dist/types/components/FileDrop/plugin.d.ts +3 -0
- package/dist/types/components/FileDrop/types.d.ts +5 -0
- package/dist/types/components/Form/Form.story.d.ts +32 -0
- package/dist/types/components/Form/Form.test.d.ts +1 -0
- package/dist/types/components/Form/Form.vue.d.ts +36 -0
- package/dist/types/components/Form/index.d.ts +4 -0
- package/dist/types/components/Form/plugin.d.ts +3 -0
- package/dist/types/components/Form/types.d.ts +26 -0
- package/dist/types/components/FormItem/FormItem.vue.d.ts +24 -0
- package/dist/types/components/FormItem/index.d.ts +4 -0
- package/dist/types/components/FormItem/plugin.d.ts +3 -0
- package/dist/types/components/FormItem/types.d.ts +4 -0
- package/dist/types/components/GraphyEmpty/GraphyEmpty.vue.d.ts +22 -0
- package/dist/types/components/GraphyEmpty/index.d.ts +4 -0
- package/dist/types/components/GraphyEmpty/plugin.d.ts +3 -0
- package/dist/types/components/GraphyEmpty/types.d.ts +3 -0
- package/dist/types/components/GraphyLabel/GraphyLabel.vue.d.ts +22 -0
- package/dist/types/components/GraphyLabel/index.d.ts +4 -0
- package/dist/types/components/GraphyLabel/plugin.d.ts +3 -0
- package/dist/types/components/GraphyLabel/types.d.ts +3 -0
- package/dist/types/components/GraphyPrice/GraphyPrice.story.d.ts +27 -0
- package/dist/types/components/GraphyPrice/GraphyPrice.vue.d.ts +35 -0
- package/dist/types/components/GraphyPrice/index.d.ts +4 -0
- package/dist/types/components/GraphyPrice/plugin.d.ts +3 -0
- package/dist/types/components/GraphyPrice/types.d.ts +8 -0
- package/dist/types/components/GraphySubtitle/GraphySubtitle.vue.d.ts +28 -0
- package/dist/types/components/GraphySubtitle/index.d.ts +4 -0
- package/dist/types/components/GraphySubtitle/plugin.d.ts +3 -0
- package/dist/types/components/GraphySubtitle/types.d.ts +4 -0
- package/dist/types/components/GraphyTitle/GraphyTitle.vue.d.ts +12 -0
- package/dist/types/components/GraphyTitle/index.d.ts +4 -0
- package/dist/types/components/GraphyTitle/plugin.d.ts +3 -0
- package/dist/types/components/GraphyTitle/types.d.ts +3 -0
- package/dist/types/components/Icon/Icon.story.d.ts +25 -0
- package/dist/types/components/Icon/Icon.vue.d.ts +34 -0
- package/dist/types/components/Icon/index.d.ts +4 -0
- package/dist/types/components/Icon/plugin.d.ts +3 -0
- package/dist/types/components/Icon/types.d.ts +6 -0
- package/dist/types/components/InputAvatar/InputAvatar.vue.d.ts +16 -0
- package/dist/types/components/InputAvatar/index.d.ts +4 -0
- package/dist/types/components/InputAvatar/plugin.d.ts +3 -0
- package/dist/types/components/InputAvatar/types.d.ts +6 -0
- package/dist/types/components/InputCheckbox/Input-checkbox.story.d.ts +14 -0
- package/dist/types/components/InputCheckbox/InputCheckbox.vue.d.ts +43 -0
- package/dist/types/components/InputCheckbox/index.d.ts +4 -0
- package/dist/types/components/InputCheckbox/plugin.d.ts +3 -0
- package/dist/types/components/InputCheckbox/types.d.ts +18 -0
- package/dist/types/components/InputColor/InputColor.vue.d.ts +35 -0
- package/dist/types/components/InputColor/index.d.ts +4 -0
- package/dist/types/components/InputColor/plugin.d.ts +3 -0
- package/dist/types/components/InputColor/types.d.ts +8 -0
- package/dist/types/components/InputCryptoCurrency/InputCryptoCurrency.story.d.ts +14 -0
- package/dist/types/components/InputCryptoCurrency/InputCryptoCurrency.vue.d.ts +21 -0
- package/dist/types/components/InputCryptoCurrency/currencies.d.ts +8 -0
- package/dist/types/components/InputCryptoCurrency/index.d.ts +4 -0
- package/dist/types/components/InputCryptoCurrency/plugin.d.ts +3 -0
- package/dist/types/components/InputCryptoCurrency/types.d.ts +8 -0
- package/dist/types/components/InputDate/InputDate.story.d.ts +13 -0
- package/dist/types/components/InputDate/InputDate.vue.d.ts +16 -0
- package/dist/types/components/InputDate/index.d.ts +4 -0
- package/dist/types/components/InputDate/plugin.d.ts +3 -0
- package/dist/types/components/InputDate/types.d.ts +15 -0
- package/dist/types/components/InputMultiplier/InputMultiplier.vue.d.ts +50 -0
- package/dist/types/components/InputMultiplier/index.d.ts +4 -0
- package/dist/types/components/InputMultiplier/input-multiplier.story.d.ts +43 -0
- package/dist/types/components/InputMultiplier/plugin.d.ts +3 -0
- package/dist/types/components/InputMultiplier/types.d.ts +19 -0
- package/dist/types/components/InputPassword/Input-password.story.d.ts +30 -0
- package/dist/types/components/InputPassword/InputPassword.vue.d.ts +55 -0
- package/dist/types/components/InputPassword/index.d.ts +4 -0
- package/dist/types/components/InputPassword/plugin.d.ts +3 -0
- package/dist/types/components/InputPassword/types.d.ts +21 -0
- package/dist/types/components/InputPhone/InputPhone.vue.d.ts +44 -0
- package/dist/types/components/InputPhone/index.d.ts +4 -0
- package/dist/types/components/InputPhone/plugin.d.ts +3 -0
- package/dist/types/components/InputPhone/types.d.ts +13 -0
- package/dist/types/components/InputPrice/InputPrice.story.d.ts +13 -0
- package/dist/types/components/InputPrice/InputPrice.vue.d.ts +25 -0
- package/dist/types/components/InputPrice/index.d.ts +4 -0
- package/dist/types/components/InputPrice/plugin.d.ts +3 -0
- package/dist/types/components/InputPrice/service.d.ts +7 -0
- package/dist/types/components/InputPrice/service.test.d.ts +1 -0
- package/dist/types/components/InputPrice/types.d.ts +12 -0
- package/dist/types/components/InputRadio/InputRadio.vue.d.ts +12 -0
- package/dist/types/components/InputRadio/InputRadioGroup.story.d.ts +11 -0
- package/dist/types/components/InputRadio/InputRadioGroup.vue.d.ts +42 -0
- package/dist/types/components/InputRadio/index.d.ts +4 -0
- package/dist/types/components/InputRadio/plugin.d.ts +3 -0
- package/dist/types/components/InputRadio/types.d.ts +12 -0
- package/dist/types/components/InputSelect/InputSelect.story.d.ts +46 -0
- package/dist/types/components/InputSelect/InputSelect.vue.d.ts +2032 -0
- package/dist/types/components/InputSelect/index.d.ts +4 -0
- package/dist/types/components/InputSelect/plugin.d.ts +3 -0
- package/dist/types/components/InputSelect/types.d.ts +85 -0
- package/dist/types/components/InputSwitch/InputSwitch.story.d.ts +27 -0
- package/dist/types/components/InputSwitch/InputSwitch.vue.d.ts +39 -0
- package/dist/types/components/InputSwitch/index.d.ts +4 -0
- package/dist/types/components/InputSwitch/plugin.d.ts +3 -0
- package/dist/types/components/InputSwitch/types.d.ts +10 -0
- package/dist/types/components/InputText/InputText.story.d.ts +21 -0
- package/dist/types/components/InputText/InputText.vue.d.ts +67 -0
- package/dist/types/components/InputText/index.d.ts +4 -0
- package/dist/types/components/InputText/plugin.d.ts +3 -0
- package/dist/types/components/InputText/types.d.ts +16 -0
- package/dist/types/components/InputTextarea/InputTextarea.vue.d.ts +41 -0
- package/dist/types/components/InputTextarea/index.d.ts +4 -0
- package/dist/types/components/InputTextarea/plugin.d.ts +3 -0
- package/dist/types/components/InputTextarea/types.d.ts +10 -0
- package/dist/types/components/Link/Link.story.d.ts +20 -0
- package/dist/types/components/Link/Link.vue.d.ts +50 -0
- package/dist/types/components/Link/index.d.ts +4 -0
- package/dist/types/components/Link/plugin.d.ts +3 -0
- package/dist/types/components/Link/types.d.ts +10 -0
- package/dist/types/components/Modal/Modal.story.d.ts +21 -0
- package/dist/types/components/Modal/Modal.vue.d.ts +78 -0
- package/dist/types/components/Modal/index.d.ts +4 -0
- package/dist/types/components/Modal/plugin.d.ts +3 -0
- package/dist/types/components/Modal/types.d.ts +37 -0
- package/dist/types/components/ModalForm/ModalForm.story.d.ts +34 -0
- package/dist/types/components/ModalForm/ModalForm.vue.d.ts +58 -0
- package/dist/types/components/ModalForm/index.d.ts +4 -0
- package/dist/types/components/ModalForm/plugin.d.ts +3 -0
- package/dist/types/components/ModalForm/types.d.ts +20 -0
- package/dist/types/components/Pagination/Pagination.story.d.ts +16 -0
- package/dist/types/components/Pagination/Pagination.vue.d.ts +50 -0
- package/dist/types/components/Pagination/index.d.ts +4 -0
- package/dist/types/components/Pagination/plugin.d.ts +3 -0
- package/dist/types/components/Pagination/types.d.ts +7 -0
- package/dist/types/components/Popconfirm/Popconfirm.vue.d.ts +48 -0
- package/dist/types/components/Popconfirm/index.d.ts +4 -0
- package/dist/types/components/Popconfirm/plugin.d.ts +3 -0
- package/dist/types/components/Popconfirm/types.d.ts +8 -0
- package/dist/types/components/Popover/Popover.story.d.ts +15 -0
- package/dist/types/components/Popover/Popover.vue.d.ts +70 -0
- package/dist/types/components/Popover/index.d.ts +4 -0
- package/dist/types/components/Popover/plugin.d.ts +3 -0
- package/dist/types/components/Popover/types.d.ts +17 -0
- package/dist/types/components/ProgressCircle/ProgressCircle.story.d.ts +15 -0
- package/dist/types/components/ProgressCircle/ProgressCircle.vue.d.ts +50 -0
- package/dist/types/components/ProgressCircle/index.d.ts +4 -0
- package/dist/types/components/ProgressCircle/plugin.d.ts +3 -0
- package/dist/types/components/ProgressCircle/types.d.ts +7 -0
- package/dist/types/components/ProgressLine/ProgressLine.story.d.ts +14 -0
- package/dist/types/components/ProgressLine/ProgressLine.vue.d.ts +77 -0
- package/dist/types/components/ProgressLine/index.d.ts +4 -0
- package/dist/types/components/ProgressLine/plugin.d.ts +3 -0
- package/dist/types/components/ProgressLine/types.d.ts +18 -0
- package/dist/types/components/Range/Range.story.d.ts +56 -0
- package/dist/types/components/Range/Range.vue.d.ts +50 -0
- package/dist/types/components/Range/index.d.ts +4 -0
- package/dist/types/components/Range/plugin.d.ts +3 -0
- package/dist/types/components/Range/types.d.ts +12 -0
- package/dist/types/components/SensitiveInfo/SensitiveInfo.vue.d.ts +22 -0
- package/dist/types/components/SensitiveInfo/index.d.ts +4 -0
- package/dist/types/components/SensitiveInfo/plugin.d.ts +3 -0
- package/dist/types/components/SensitiveInfo/types.d.ts +3 -0
- package/dist/types/components/Skeleton/Skeleton.vue.d.ts +31 -0
- package/dist/types/components/Skeleton/index.d.ts +4 -0
- package/dist/types/components/Skeleton/plugin.d.ts +3 -0
- package/dist/types/components/Skeleton/types.d.ts +4 -0
- package/dist/types/components/Tab/Tab.story.d.ts +15 -0
- package/dist/types/components/Tab/Tab.vue.d.ts +48 -0
- package/dist/types/components/Tab/index.d.ts +4 -0
- package/dist/types/components/Tab/plugin.d.ts +3 -0
- package/dist/types/components/Tab/types.d.ts +9 -0
- package/dist/types/components/Table/Table.story.d.ts +30 -0
- package/dist/types/components/Table/Table.vue.d.ts +34 -0
- package/dist/types/components/Table/index.d.ts +4 -0
- package/dist/types/components/Table/plugin.d.ts +3 -0
- package/dist/types/components/Table/types.d.ts +19 -0
- package/dist/types/components/Tag/Tag.story.d.ts +28 -0
- package/dist/types/components/Tag/Tag.vue.d.ts +58 -0
- package/dist/types/components/Tag/index.d.ts +4 -0
- package/dist/types/components/Tag/plugin.d.ts +3 -0
- package/dist/types/components/Tag/types.d.ts +13 -0
- package/dist/types/components/Toast/Toast.vue.d.ts +16 -0
- package/dist/types/components/Toast/index.d.ts +4 -0
- package/dist/types/components/Toast/plugin.d.ts +3 -0
- package/dist/types/components/Toast/types.d.ts +7 -0
- package/dist/types/components/index.d.ts +48 -0
- package/dist/types/components/plugins.d.ts +48 -0
- package/dist/types/components/types.d.ts +46 -0
- package/dist/types/composables/index.d.ts +6 -0
- package/dist/types/composables/useBreakpoints.d.ts +5 -0
- package/dist/types/composables/useClipboard.d.ts +3 -0
- package/dist/types/composables/useDialog.d.ts +466 -0
- package/dist/types/composables/useDomHelpers.d.ts +3 -0
- package/dist/types/composables/useRender.d.ts +2 -0
- package/dist/types/enums/form.d.ts +24 -0
- package/dist/types/enums/index.d.ts +3 -0
- package/dist/types/enums/ui.d.ts +241 -0
- package/dist/types/form/convertors.d.ts +3 -0
- package/dist/types/form/crud.d.ts +27 -0
- package/dist/types/form/form-data-transformers.d.ts +3 -0
- package/dist/types/form/form-transformer.d.ts +6 -0
- package/dist/types/form/form-transformer.test.d.ts +1 -0
- package/dist/types/form/index.d.ts +3 -0
- package/dist/types/form/json-transformers.d.ts +4 -0
- package/dist/types/form/transformers.d.ts +8 -0
- package/dist/types/form/useForm.d.ts +18 -0
- package/dist/types/form/useForm.test.d.ts +1 -0
- package/dist/types/i18n.d.ts +21 -0
- package/dist/types/index.d.ts +8 -6
- package/dist/types/mocks/countries.d.ts +14 -0
- package/dist/types/plugins/register-component.d.ts +3 -0
- package/dist/types/services/date.d.ts +2 -0
- package/dist/types/services/password.d.ts +5 -0
- package/dist/types/services/password.test.d.ts +1 -0
- package/dist/types/types/index.d.ts +6 -0
- package/dist/types/vitest.setup.d.ts +1 -0
- package/dist/ui-BhUbt2C5.js +28 -0
- package/package.json +6 -5
- package/dist/ui-DkIu_nwk.js +0 -28
- /package/dist/types/{address.d.ts → types/address.d.ts} +0 -0
- /package/dist/types/{api.d.ts → types/api.d.ts} +0 -0
- /package/dist/types/{common.d.ts → types/common.d.ts} +0 -0
- /package/dist/types/{form.d.ts → types/form.d.ts} +0 -0
- /package/dist/types/{ui.d.ts → types/ui.d.ts} +0 -0
- /package/dist/types/{website.d.ts → types/website.d.ts} +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as InputSelect } from './InputSelect.vue';
|
|
2
|
+
import { default as InputSelectPlugin } from './plugin.js';
|
|
3
|
+
export { InputSelect, InputSelectPlugin };
|
|
4
|
+
export type { InputSelectValue, InputSelectProps, InputSelectOption, InputSelectEvents, } from './types.js';
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
import { Pagination } from '../../types/ui.js';
|
|
3
|
+
import { APISearchFilters } from '../../types/api.js';
|
|
4
|
+
import { Icon, FormControlSize, ElementPosition } from '../../enums/ui.js';
|
|
5
|
+
export type SelectValuePrimitives = string | number;
|
|
6
|
+
export type InputSelectValue = SelectValuePrimitives | Array<SelectValuePrimitives>;
|
|
7
|
+
export type InputSelectOption = {
|
|
8
|
+
/** Optional icon, to be appended to the label */
|
|
9
|
+
icon?: `${Icon}`;
|
|
10
|
+
/** Option label, either a string or an object containing the props
|
|
11
|
+
* necessary to render the option
|
|
12
|
+
*/
|
|
13
|
+
label: string | object;
|
|
14
|
+
/** Optional type, used to diferentiate options from one another */
|
|
15
|
+
type?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Optional renderer component
|
|
18
|
+
*/
|
|
19
|
+
renderer?: Component;
|
|
20
|
+
/**
|
|
21
|
+
* Optional props to be passed to the renderer component.
|
|
22
|
+
*/
|
|
23
|
+
rendererProps?: {
|
|
24
|
+
[props: string]: any;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Optional events to be passed to the renderer component.
|
|
28
|
+
*/
|
|
29
|
+
rendererEvents?: {
|
|
30
|
+
[event: string]: (payload: any) => void;
|
|
31
|
+
};
|
|
32
|
+
} & ({
|
|
33
|
+
/** If true, the option is a group label and can't be selected */
|
|
34
|
+
isGroupLabel: boolean;
|
|
35
|
+
value?: never;
|
|
36
|
+
action?: never;
|
|
37
|
+
} | {
|
|
38
|
+
/** Option value */
|
|
39
|
+
value: InputSelectValue;
|
|
40
|
+
action?: never;
|
|
41
|
+
isGroupLabel?: never;
|
|
42
|
+
} | {
|
|
43
|
+
/** Action to be executed once the option is selected */
|
|
44
|
+
action: (filters?: APISearchFilters) => Promise<{
|
|
45
|
+
items: unknown[];
|
|
46
|
+
pagination: Pagination;
|
|
47
|
+
}> | Promise<void> | void;
|
|
48
|
+
/** If false, the action will not be executed immediately after
|
|
49
|
+
selection. Default false. */
|
|
50
|
+
manual?: boolean;
|
|
51
|
+
value?: never;
|
|
52
|
+
isGroupLabel?: never;
|
|
53
|
+
});
|
|
54
|
+
export type InputSelectProps = {
|
|
55
|
+
size?: FormControlSize;
|
|
56
|
+
options?: InputSelectOption[];
|
|
57
|
+
/** Mapper to convert search results to InputSelectOption */
|
|
58
|
+
mapper?: (i: any) => InputSelectOption;
|
|
59
|
+
/** Disable component */
|
|
60
|
+
disabled?: boolean;
|
|
61
|
+
/** Async function used to fetch options from */
|
|
62
|
+
resource?: (filters?: APISearchFilters | undefined) => Promise<{
|
|
63
|
+
items: unknown[];
|
|
64
|
+
pagination: Pagination;
|
|
65
|
+
}>;
|
|
66
|
+
/** Filter function, used to filter the options on search */
|
|
67
|
+
filter?: (input: string, option: InputSelectOption) => boolean;
|
|
68
|
+
/** Collection of default params to pass alongside @resource request */
|
|
69
|
+
defaultParams?: {
|
|
70
|
+
[props: string]: string;
|
|
71
|
+
};
|
|
72
|
+
multiple?: boolean;
|
|
73
|
+
placeholder?: string;
|
|
74
|
+
initialValue?: any;
|
|
75
|
+
/** Indicates whether the user can search the options */
|
|
76
|
+
isSearchable?: boolean;
|
|
77
|
+
dropdownPlacement?: `${ElementPosition}`;
|
|
78
|
+
widthClass?: string;
|
|
79
|
+
borderClass?: string;
|
|
80
|
+
roundnessClass?: string;
|
|
81
|
+
};
|
|
82
|
+
export type InputSelectEvents = {
|
|
83
|
+
(e: "update:model-value", val: any): void;
|
|
84
|
+
(e: "initial-hydration", val: any): void;
|
|
85
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { FormControlSize } from '../../enums/ui.js';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
args: {
|
|
5
|
+
label: string;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
size: FormControlSize;
|
|
8
|
+
};
|
|
9
|
+
argTypes: {
|
|
10
|
+
size: {
|
|
11
|
+
options: FormControlSize[];
|
|
12
|
+
control: string;
|
|
13
|
+
};
|
|
14
|
+
disabled: {
|
|
15
|
+
options: boolean[];
|
|
16
|
+
control: string;
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
22
|
+
export declare const Switch: (args: any) => {
|
|
23
|
+
setup(): {
|
|
24
|
+
args: any;
|
|
25
|
+
};
|
|
26
|
+
template: string;
|
|
27
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { InputSwitchProps } from './types.js';
|
|
2
|
+
import { FormControlSize } from '../../enums/ui.js';
|
|
3
|
+
declare const _default: typeof __VLS_export;
|
|
4
|
+
export default _default;
|
|
5
|
+
declare const __VLS_export: import('vue', { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<InputSwitchProps>, {
|
|
6
|
+
label: string;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
size: FormControlSize;
|
|
9
|
+
}>, unknown, unknown, {}, {}, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {
|
|
10
|
+
"update:model-value": (val: boolean) => void;
|
|
11
|
+
}, string, import('vue', { with: { "resolution-mode": "import" } }).PublicProps, Readonly<import('vue', { with: { "resolution-mode": "import" } }).ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<InputSwitchProps>, {
|
|
12
|
+
label: string;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
size: FormControlSize;
|
|
15
|
+
}>>> & {
|
|
16
|
+
"onUpdate:model-value"?: ((val: boolean) => any) | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
label: string;
|
|
19
|
+
size: `${FormControlSize}`;
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
}, {}>;
|
|
22
|
+
type __VLS_TypePropsToOption<T> = {
|
|
23
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
25
|
+
} : {
|
|
26
|
+
type: import('vue').PropType<T[K]>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
type __VLS_WithDefaults<P, D> = {
|
|
31
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
32
|
+
default: D[K];
|
|
33
|
+
}> : P[K];
|
|
34
|
+
};
|
|
35
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
36
|
+
[K in keyof T]: T[K];
|
|
37
|
+
} : {
|
|
38
|
+
[K in keyof T as K]: T[K];
|
|
39
|
+
}) & {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FormControlSize } from '../../enums/ui.js';
|
|
2
|
+
export type InputSwitchProps = {
|
|
3
|
+
label?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
modelValue?: boolean;
|
|
6
|
+
size?: `${FormControlSize}`;
|
|
7
|
+
};
|
|
8
|
+
export type InputSwitchEvents = {
|
|
9
|
+
(e: "update:model-value", val: boolean): void;
|
|
10
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FormControlSize } from '../../enums/ui.js';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
args: {
|
|
5
|
+
size: FormControlSize;
|
|
6
|
+
model: string;
|
|
7
|
+
};
|
|
8
|
+
argTypes: {
|
|
9
|
+
size: {
|
|
10
|
+
options: FormControlSize[];
|
|
11
|
+
control: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
16
|
+
export declare const Text: (args: any) => {
|
|
17
|
+
setup(): {
|
|
18
|
+
args: any;
|
|
19
|
+
};
|
|
20
|
+
template: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { InputTextProps } from './types.js';
|
|
2
|
+
import { FormControlSize } from '../../enums/ui.js';
|
|
3
|
+
type __VLS_Props = InputTextProps;
|
|
4
|
+
declare const __VLS_defaultModels: {
|
|
5
|
+
modelValue: string;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_ModelProps = {
|
|
8
|
+
modelValue?: typeof __VLS_defaultModels['modelValue'];
|
|
9
|
+
};
|
|
10
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
11
|
+
declare const __VLS_export: import('vue', { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
12
|
+
size: FormControlSize;
|
|
13
|
+
type: string;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
readonly: boolean;
|
|
16
|
+
placeholder: undefined;
|
|
17
|
+
autocomplete: undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Classes
|
|
20
|
+
* */
|
|
21
|
+
rootClass: string;
|
|
22
|
+
}>, unknown, unknown, {}, {}, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {
|
|
23
|
+
"keyup.enter": (val: any) => void;
|
|
24
|
+
"update:modelValue": (value: string) => void;
|
|
25
|
+
}, string, import('vue', { with: { "resolution-mode": "import" } }).PublicProps, Readonly<import('vue', { with: { "resolution-mode": "import" } }).ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
26
|
+
size: FormControlSize;
|
|
27
|
+
type: string;
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
readonly: boolean;
|
|
30
|
+
placeholder: undefined;
|
|
31
|
+
autocomplete: undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Classes
|
|
34
|
+
* */
|
|
35
|
+
rootClass: string;
|
|
36
|
+
}>>> & {
|
|
37
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
38
|
+
"onKeyup.enter"?: ((val: any) => any) | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
type: string;
|
|
41
|
+
readonly: boolean;
|
|
42
|
+
size: `${FormControlSize}`;
|
|
43
|
+
disabled: boolean;
|
|
44
|
+
placeholder: string;
|
|
45
|
+
autocomplete: string;
|
|
46
|
+
rootClass: string;
|
|
47
|
+
}, {}>;
|
|
48
|
+
declare const _default: typeof __VLS_export;
|
|
49
|
+
export default _default;
|
|
50
|
+
type __VLS_TypePropsToOption<T> = {
|
|
51
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
52
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
53
|
+
} : {
|
|
54
|
+
type: import('vue').PropType<T[K]>;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
type __VLS_WithDefaults<P, D> = {
|
|
59
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
60
|
+
default: D[K];
|
|
61
|
+
}> : P[K];
|
|
62
|
+
};
|
|
63
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
64
|
+
[K in keyof T]: T[K];
|
|
65
|
+
} : {
|
|
66
|
+
[K in keyof T as K]: T[K];
|
|
67
|
+
}) & {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FormControlSize } from '../../enums/ui.js';
|
|
2
|
+
export type InputTextProps = {
|
|
3
|
+
size?: `${FormControlSize}`;
|
|
4
|
+
type?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
autocomplete?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
readonly?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Classes
|
|
11
|
+
*/
|
|
12
|
+
rootClass?: string;
|
|
13
|
+
};
|
|
14
|
+
export type InputTextEvents = {
|
|
15
|
+
(e: "keyup.enter", val: any): void;
|
|
16
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { InputTextareaProps } from './types.js';
|
|
2
|
+
declare const __VLS_export: import('vue', { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<InputTextareaProps>, {
|
|
3
|
+
type: string;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
placeholder: undefined;
|
|
6
|
+
disableStyle: boolean;
|
|
7
|
+
}>, unknown, unknown, {}, {}, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {
|
|
8
|
+
"update:model-value": (val: string) => void;
|
|
9
|
+
}, string, import('vue', { with: { "resolution-mode": "import" } }).PublicProps, Readonly<import('vue', { with: { "resolution-mode": "import" } }).ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<InputTextareaProps>, {
|
|
10
|
+
type: string;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
placeholder: undefined;
|
|
13
|
+
disableStyle: boolean;
|
|
14
|
+
}>>> & {
|
|
15
|
+
"onUpdate:model-value"?: ((val: string) => any) | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
type: string;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
disableStyle: boolean;
|
|
20
|
+
placeholder: string;
|
|
21
|
+
}, {}>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_TypePropsToOption<T> = {
|
|
25
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
27
|
+
} : {
|
|
28
|
+
type: import('vue').PropType<T[K]>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
type __VLS_WithDefaults<P, D> = {
|
|
33
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
34
|
+
default: D[K];
|
|
35
|
+
}> : P[K];
|
|
36
|
+
};
|
|
37
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
38
|
+
[K in keyof T]: T[K];
|
|
39
|
+
} : {
|
|
40
|
+
[K in keyof T as K]: T[K];
|
|
41
|
+
}) & {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
args: {
|
|
4
|
+
label: string;
|
|
5
|
+
href: string;
|
|
6
|
+
};
|
|
7
|
+
argTypes: {
|
|
8
|
+
target: {
|
|
9
|
+
options: string[];
|
|
10
|
+
control: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
15
|
+
export declare const Link: (args: any) => {
|
|
16
|
+
setup(): {
|
|
17
|
+
args: any;
|
|
18
|
+
};
|
|
19
|
+
template: string;
|
|
20
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { LinkProps } from './types.js';
|
|
2
|
+
import { LinkType } from '../../enums/ui.js';
|
|
3
|
+
declare var __VLS_8: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_8) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import('vue', { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<LinkProps>, {
|
|
8
|
+
link: string;
|
|
9
|
+
type: LinkType;
|
|
10
|
+
label: string;
|
|
11
|
+
target: string;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
}>, unknown, unknown, {}, {}, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import('vue', { with: { "resolution-mode": "import" } }).PublicProps, Readonly<import('vue', { with: { "resolution-mode": "import" } }).ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<LinkProps>, {
|
|
14
|
+
link: string;
|
|
15
|
+
type: LinkType;
|
|
16
|
+
label: string;
|
|
17
|
+
target: string;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
}>>>, {
|
|
20
|
+
type: `${LinkType}`;
|
|
21
|
+
label: string;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
target: "_self" | "_blank" | "_parent" | "_top" | "_unfencedTop";
|
|
24
|
+
}, {}>;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_TypePropsToOption<T> = {
|
|
29
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
30
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
31
|
+
} : {
|
|
32
|
+
type: import('vue').PropType<T[K]>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
type __VLS_WithDefaults<P, D> = {
|
|
37
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
38
|
+
default: D[K];
|
|
39
|
+
}> : P[K];
|
|
40
|
+
};
|
|
41
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
47
|
+
[K in keyof T]: T[K];
|
|
48
|
+
} : {
|
|
49
|
+
[K in keyof T as K]: T[K];
|
|
50
|
+
}) & {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LinkType } from '../../enums/ui.js';
|
|
2
|
+
export type LinkProps = {
|
|
3
|
+
to?: object;
|
|
4
|
+
href?: string;
|
|
5
|
+
type?: `${LinkType}`;
|
|
6
|
+
label?: string;
|
|
7
|
+
target?: "_self" | "_blank" | "_parent" | "_top" | "_unfencedTop";
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type LinkEvents = {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
args: {};
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Modal: (args: any) => {
|
|
7
|
+
setup(): {
|
|
8
|
+
args: any;
|
|
9
|
+
open: import('vue').Ref<boolean>;
|
|
10
|
+
title: import('vue').Ref<string>;
|
|
11
|
+
canClose: import('vue').Ref<boolean>;
|
|
12
|
+
modal: (options: import('./types.js').ModalProps & {
|
|
13
|
+
onClose?: () => void;
|
|
14
|
+
}) => void;
|
|
15
|
+
CustomModalBody: import('vue').Raw<import('vue').DefineComponent<{}, {
|
|
16
|
+
props: import('@vue/shared').LooseRequired<{} & {}>;
|
|
17
|
+
emit: (event: string, ...args: any[]) => void;
|
|
18
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>>;
|
|
19
|
+
};
|
|
20
|
+
template: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { ModalProps } from './types.js';
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: __VLS_WithSlots<import('vue', { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ModalProps>, {
|
|
5
|
+
is: undefined;
|
|
6
|
+
on: () => {};
|
|
7
|
+
props: () => {};
|
|
8
|
+
title: string;
|
|
9
|
+
canClose: boolean;
|
|
10
|
+
showHeader: boolean;
|
|
11
|
+
showFooter: boolean;
|
|
12
|
+
injectStyle: () => {
|
|
13
|
+
wrapper: string;
|
|
14
|
+
body: string;
|
|
15
|
+
container: string;
|
|
16
|
+
};
|
|
17
|
+
hasBackdrop: boolean;
|
|
18
|
+
disableStyle: boolean;
|
|
19
|
+
}>, unknown, unknown, {}, {}, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {
|
|
20
|
+
closed: () => void;
|
|
21
|
+
}, string, import('vue', { with: { "resolution-mode": "import" } }).PublicProps, Readonly<import('vue', { with: { "resolution-mode": "import" } }).ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ModalProps>, {
|
|
22
|
+
is: undefined;
|
|
23
|
+
on: () => {};
|
|
24
|
+
props: () => {};
|
|
25
|
+
title: string;
|
|
26
|
+
canClose: boolean;
|
|
27
|
+
showHeader: boolean;
|
|
28
|
+
showFooter: boolean;
|
|
29
|
+
injectStyle: () => {
|
|
30
|
+
wrapper: string;
|
|
31
|
+
body: string;
|
|
32
|
+
container: string;
|
|
33
|
+
};
|
|
34
|
+
hasBackdrop: boolean;
|
|
35
|
+
disableStyle: boolean;
|
|
36
|
+
}>>> & {
|
|
37
|
+
onClosed?: (() => any) | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
title: string;
|
|
40
|
+
props: Record<string, any>;
|
|
41
|
+
is: import('vue', { with: { "resolution-mode": "import" } }).Component;
|
|
42
|
+
on: Record<string, (...args: any[]) => void>;
|
|
43
|
+
canClose: boolean;
|
|
44
|
+
showHeader: boolean;
|
|
45
|
+
showFooter: boolean;
|
|
46
|
+
injectStyle: any;
|
|
47
|
+
hasBackdrop: boolean;
|
|
48
|
+
disableStyle: boolean;
|
|
49
|
+
}, {}>, {
|
|
50
|
+
header?: (props: {}) => any;
|
|
51
|
+
} & {
|
|
52
|
+
default?: (props: {}) => any;
|
|
53
|
+
} & {
|
|
54
|
+
footer?: (props: {}) => any;
|
|
55
|
+
}>;
|
|
56
|
+
type __VLS_TypePropsToOption<T> = {
|
|
57
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
58
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
59
|
+
} : {
|
|
60
|
+
type: import('vue').PropType<T[K]>;
|
|
61
|
+
required: true;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
type __VLS_WithDefaults<P, D> = {
|
|
65
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
66
|
+
default: D[K];
|
|
67
|
+
}> : P[K];
|
|
68
|
+
};
|
|
69
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
70
|
+
new (): {
|
|
71
|
+
$slots: S;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
75
|
+
[K in keyof T]: T[K];
|
|
76
|
+
} : {
|
|
77
|
+
[K in keyof T as K]: T[K];
|
|
78
|
+
}) & {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
export type ModalProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Component to be rendered inside the modal body
|
|
5
|
+
*/
|
|
6
|
+
is?: Component;
|
|
7
|
+
/**
|
|
8
|
+
* Events to be bound to the body component
|
|
9
|
+
*/
|
|
10
|
+
on?: Record<string, (...args: any[]) => void>;
|
|
11
|
+
/**
|
|
12
|
+
* Body component props
|
|
13
|
+
*/
|
|
14
|
+
props?: Record<string, any>;
|
|
15
|
+
/**
|
|
16
|
+
* Modal title
|
|
17
|
+
*/
|
|
18
|
+
title?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the modal can be closed by the user
|
|
21
|
+
*/
|
|
22
|
+
canClose?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Whether to show the header section
|
|
25
|
+
*/
|
|
26
|
+
showHeader?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Whether to show the footer section
|
|
29
|
+
*/
|
|
30
|
+
showFooter?: boolean;
|
|
31
|
+
injectStyle?: any;
|
|
32
|
+
hasBackdrop?: boolean;
|
|
33
|
+
disableStyle?: boolean;
|
|
34
|
+
};
|
|
35
|
+
export type ModalEvents = {
|
|
36
|
+
(e: "closed"): void;
|
|
37
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { FormSchema } from '../../types/form.js';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
args: {};
|
|
5
|
+
argTypes: {};
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const ModalForm: (args: any) => {
|
|
9
|
+
components: {
|
|
10
|
+
Form: {
|
|
11
|
+
setup(): {
|
|
12
|
+
schema: FormSchema;
|
|
13
|
+
};
|
|
14
|
+
emits: string[];
|
|
15
|
+
name: string;
|
|
16
|
+
template: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
setup(): {
|
|
20
|
+
args: any;
|
|
21
|
+
modalForm: import('vue').Ref<any>;
|
|
22
|
+
onChange: () => void;
|
|
23
|
+
openForm: () => any;
|
|
24
|
+
Form: {
|
|
25
|
+
setup(): {
|
|
26
|
+
schema: FormSchema;
|
|
27
|
+
};
|
|
28
|
+
emits: string[];
|
|
29
|
+
name: string;
|
|
30
|
+
template: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
template: string;
|
|
34
|
+
};
|