maz-ui 4.1.7-beta.8 → 4.1.8-beta.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/assets/MazBackdrop.CO7YPR-g.css +1 -0
- package/dist/assets/{MazDropzone.B5e-z_Ba.css → MazDropzone.Ch5EPpDi.css} +1 -1
- package/dist/assets/MazInputPhoneNumber.BGz17BIE.css +1 -0
- package/dist/assets/MazSelect.Dx9yL9AD.css +1 -0
- package/dist/chunks/{MazInputPhoneNumber.CbNnLvU_.js → MazInputPhoneNumber.BxMymgj-.js} +7 -6
- package/dist/chunks/{PhoneInput.DQZjDqMK.js → PhoneInput.BUiv9fYr.js} +1 -1
- package/dist/components/MazBackdrop.js +2 -2
- package/dist/components/MazDropzone.js +23 -29
- package/dist/components/MazInputPhoneNumber.js +1 -1
- package/dist/components/MazSelect.js +13 -11
- package/dist/components/index.js +1 -1
- package/dist/types/components/MazDropzone.vue.d.ts +0 -5
- package/package.json +11 -11
- package/dist/assets/MazBackdrop.09bziTPM.css +0 -1
- package/dist/assets/MazInputPhoneNumber.Baeyskod.css +0 -1
- package/dist/assets/MazSelect.CvoR958a.css +0 -1
- package/dist/components/MazAccordion.vue.d.ts +0 -36
- package/dist/components/MazAnimatedCounter.vue.d.ts +0 -59
- package/dist/components/MazAnimatedElement.vue.d.ts +0 -44
- package/dist/components/MazAnimatedText.vue.d.ts +0 -57
- package/dist/components/MazAvatar.vue.d.ts +0 -99
- package/dist/components/MazBackdrop.vue.d.ts +0 -91
- package/dist/components/MazBadge.vue.d.ts +0 -61
- package/dist/components/MazBottomSheet.vue.d.ts +0 -35
- package/dist/components/MazBtn.vue.d.ts +0 -105
- package/dist/components/MazCard.vue.d.ts +0 -81
- package/dist/components/MazCardSpotlight.vue.d.ts +0 -57
- package/dist/components/MazCarousel.vue.d.ts +0 -48
- package/dist/components/MazChart.vue.d.ts +0 -53
- package/dist/components/MazCheckbox.vue.d.ts +0 -55
- package/dist/components/MazChecklist.vue.d.ts +0 -87
- package/dist/components/MazCircularProgressBar.vue.d.ts +0 -106
- package/dist/components/MazDatePicker/MazPickerCalendar.vue.d.ts +0 -28
- package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +0 -20
- package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +0 -133
- package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +0 -142
- package/dist/components/MazDatePicker/MazPickerCalendarSwitcher.vue.d.ts +0 -42
- package/dist/components/MazDatePicker/MazPickerContainer.vue.d.ts +0 -38
- package/dist/components/MazDatePicker/MazPickerHeader.vue.d.ts +0 -15
- package/dist/components/MazDatePicker/MazPickerMonthSwitcher.vue.d.ts +0 -44
- package/dist/components/MazDatePicker/MazPickerShortcuts.vue.d.ts +0 -16
- package/dist/components/MazDatePicker/MazPickerTime.vue.d.ts +0 -107
- package/dist/components/MazDatePicker/MazPickerYearSwitcher.vue.d.ts +0 -36
- package/dist/components/MazDatePicker/types.d.ts +0 -14
- package/dist/components/MazDatePicker/utils.d.ts +0 -61
- package/dist/components/MazDatePicker.vue.d.ts +0 -567
- package/dist/components/MazDialog.vue.d.ts +0 -247
- package/dist/components/MazDialogConfirm/useMazDialogConfirm.d.ts +0 -47
- package/dist/components/MazDialogConfirm.vue.d.ts +0 -270
- package/dist/components/MazDrawer.vue.d.ts +0 -52
- package/dist/components/MazDropdown.vue.d.ts +0 -246
- package/dist/components/MazDropzone.vue.d.ts +0 -299
- package/dist/components/MazExpandAnimation.vue.d.ts +0 -44
- package/dist/components/MazFullscreenLoader.vue.d.ts +0 -26
- package/dist/components/MazGallery.vue.d.ts +0 -85
- package/dist/components/MazIcon.vue.d.ts +0 -33
- package/dist/components/MazInput.vue.d.ts +0 -225
- package/dist/components/MazInputCode.vue.d.ts +0 -49
- package/dist/components/MazInputNumber.vue.d.ts +0 -125
- package/dist/components/MazInputPhoneNumber/PhoneInput.vue.d.ts +0 -29
- package/dist/components/MazInputPhoneNumber/useLibphonenumber.d.ts +0 -26
- package/dist/components/MazInputPhoneNumber/useMazInputPhoneNumber.d.ts +0 -26
- package/dist/components/MazInputPhoneNumber.vue.d.ts +0 -421
- package/dist/components/MazInputPrice.vue.d.ts +0 -48
- package/dist/components/MazInputTags.vue.d.ts +0 -51
- package/dist/components/MazLazyImg.vue.d.ts +0 -78
- package/dist/components/MazLink.vue.d.ts +0 -116
- package/dist/components/MazLoadingBar.vue.d.ts +0 -12
- package/dist/components/MazPagination.vue.d.ts +0 -83
- package/dist/components/MazPopover.vue.d.ts +0 -258
- package/dist/components/MazPullToRefresh.vue.d.ts +0 -52
- package/dist/components/MazRadio.vue.d.ts +0 -55
- package/dist/components/MazRadioButtons.vue.d.ts +0 -74
- package/dist/components/MazReadingProgressBar.vue.d.ts +0 -55
- package/dist/components/MazSelect.vue.d.ts +0 -209
- package/dist/components/MazSelectCountry.vue.d.ts +0 -171
- package/dist/components/MazSlider/utils.d.ts +0 -15
- package/dist/components/MazSlider.vue.d.ts +0 -31
- package/dist/components/MazSpinner.vue.d.ts +0 -15
- package/dist/components/MazStepper.vue.d.ts +0 -60
- package/dist/components/MazSwitch.vue.d.ts +0 -69
- package/dist/components/MazTable.vue.d.ts +0 -324
- package/dist/components/MazTableCell.vue.d.ts +0 -17
- package/dist/components/MazTableRow.vue.d.ts +0 -23
- package/dist/components/MazTableTitle.vue.d.ts +0 -17
- package/dist/components/MazTabs.vue.d.ts +0 -30
- package/dist/components/MazTabsBar.vue.d.ts +0 -96
- package/dist/components/MazTabsContent.vue.d.ts +0 -17
- package/dist/components/MazTabsContentItem.vue.d.ts +0 -31
- package/dist/components/MazTextarea.vue.d.ts +0 -88
- package/dist/components/constantes.d.ts +0 -2
- package/dist/components/index.d.ts +0 -109
- package/dist/components/types.d.ts +0 -4
- package/dist/composables/index.d.ts +0 -22
- package/dist/composables/useAos.d.ts +0 -2
- package/dist/composables/useBreakpoints.d.ts +0 -38
- package/dist/composables/useDialog.d.ts +0 -2
- package/dist/composables/useDisplayNames.d.ts +0 -101
- package/dist/composables/useDropzone.d.ts +0 -27
- package/dist/composables/useFormField.d.ts +0 -16
- package/dist/composables/useFormValidator/config.d.ts +0 -7
- package/dist/composables/useFormValidator/dom-events.d.ts +0 -19
- package/dist/composables/useFormValidator/state-management.d.ts +0 -72
- package/dist/composables/useFormValidator/types.d.ts +0 -98
- package/dist/composables/useFormValidator/validation.d.ts +0 -37
- package/dist/composables/useFormValidator.d.ts +0 -23
- package/dist/composables/useFreezeValue.d.ts +0 -5
- package/dist/composables/useIdleTimeout.d.ts +0 -5
- package/dist/composables/useInjectStrict.d.ts +0 -2
- package/dist/composables/useInstanceUniqId.d.ts +0 -4
- package/dist/composables/useMountComponent.d.ts +0 -14
- package/dist/composables/useMutationObserver.d.ts +0 -13
- package/dist/composables/useReadingTime.d.ts +0 -25
- package/dist/composables/useStringMatching.d.ts +0 -5
- package/dist/composables/useSwipe.d.ts +0 -14
- package/dist/composables/useTimer.d.ts +0 -30
- package/dist/composables/useToast.d.ts +0 -22
- package/dist/composables/useUserVisibility.d.ts +0 -5
- package/dist/composables/useWait.d.ts +0 -2
- package/dist/composables/useWindowSize.d.ts +0 -32
- package/dist/directives/index.d.ts +0 -5
- package/dist/directives/vClickOutside.d.ts +0 -36
- package/dist/directives/vFullscreenImg/MazFullscreenImg.vue.d.ts +0 -50
- package/dist/directives/vFullscreenImg/fullscreen-img.directive.d.ts +0 -5
- package/dist/directives/vFullscreenImg/fullscreen-img.handler.d.ts +0 -36
- package/dist/directives/vFullscreenImg.d.ts +0 -11
- package/dist/directives/vLazyImg/lazy-img.directive.d.ts +0 -5
- package/dist/directives/vLazyImg/lazy-img.handler.d.ts +0 -38
- package/dist/directives/vLazyImg/types.d.ts +0 -29
- package/dist/directives/vLazyImg.d.ts +0 -12
- package/dist/directives/vTooltip.d.ts +0 -54
- package/dist/directives/vZoomImg/style.d.ts +0 -1
- package/dist/directives/vZoomImg/svgs.d.ts +0 -3
- package/dist/directives/vZoomImg/zoom-img.directive.d.ts +0 -8
- package/dist/directives/vZoomImg/zoom-img.handler.d.ts +0 -46
- package/dist/directives/vZoomImg.d.ts +0 -10
- package/dist/index.d.ts +0 -1
- package/dist/plugins/aos.d.ts +0 -81
- package/dist/plugins/dialog/DialogHandler.d.ts +0 -16
- package/dist/plugins/dialog.d.ts +0 -26
- package/dist/plugins/index.d.ts +0 -5
- package/dist/plugins/maz-ui.d.ts +0 -43
- package/dist/plugins/toast/MazToast.vue.d.ts +0 -34
- package/dist/plugins/toast/ToastHandler.d.ts +0 -29
- package/dist/plugins/toast/types.d.ts +0 -104
- package/dist/plugins/toast.d.ts +0 -25
- package/dist/plugins/wait.d.ts +0 -33
- package/dist/resolvers/MazComponentsResolver.d.ts +0 -10
- package/dist/resolvers/MazDirectivesResolver.d.ts +0 -11
- package/dist/resolvers/MazModulesResolver.d.ts +0 -11
- package/dist/resolvers/index.d.ts +0 -3
- package/dist/tailwindcss/index.d.ts +0 -6
- package/dist/tailwindcss/tailwind.config.d.ts +0 -89
- package/dist/tailwindcss/utils/colors.d.ts +0 -7
- package/dist/tailwindcss/variables/breakpoints.d.ts +0 -15
- package/dist/tailwindcss/variables/colors.d.ts +0 -21
- package/dist/tailwindcss/variables/design-tokens.d.ts +0 -35
- package/dist/tailwindcss/variables/utilities.d.ts +0 -17
- package/dist/tailwindcss/variables/z-indexes.d.ts +0 -14
|
@@ -1,324 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes, InjectionKey, Ref, ThHTMLAttributes } from 'vue';
|
|
2
|
-
import { MazColor, MazSize } from './types';
|
|
3
|
-
import { MazUiTranslationsNestedSchema } from '@maz-ui/translations';
|
|
4
|
-
import { DeepPartial } from '@maz-ui/utils/ts-helpers/DeepPartial';
|
|
5
|
-
export interface MazTableHeadersEnriched {
|
|
6
|
-
label: string;
|
|
7
|
-
key?: string;
|
|
8
|
-
sortable?: boolean;
|
|
9
|
-
hidden?: boolean;
|
|
10
|
-
srOnly?: boolean;
|
|
11
|
-
width?: string;
|
|
12
|
-
maxWidth?: string;
|
|
13
|
-
classes?: ThHTMLAttributes['class'];
|
|
14
|
-
scope?: ThHTMLAttributes['scope'];
|
|
15
|
-
align?: ThHTMLAttributes['align'];
|
|
16
|
-
rowspan?: ThHTMLAttributes['rowspan'];
|
|
17
|
-
colspan?: ThHTMLAttributes['colspan'];
|
|
18
|
-
headers?: ThHTMLAttributes['headers'];
|
|
19
|
-
}
|
|
20
|
-
export type MazTableRow<T extends MazTableRow<T>> = Record<string, any> & {
|
|
21
|
-
selected?: boolean;
|
|
22
|
-
action?: (row: T) => unknown;
|
|
23
|
-
classes?: HTMLAttributes['class'];
|
|
24
|
-
};
|
|
25
|
-
export type MazTableHeader = string | MazTableHeadersEnriched;
|
|
26
|
-
export interface MazTableProps<T extends MazTableRow<T>> {
|
|
27
|
-
/**
|
|
28
|
-
* CSS class of the table element
|
|
29
|
-
* @type {HTMLAttributes['class']}
|
|
30
|
-
*/
|
|
31
|
-
tableClass?: HTMLAttributes['class'];
|
|
32
|
-
/**
|
|
33
|
-
* CSS style of the table element
|
|
34
|
-
* @type {HTMLAttributes['style']}
|
|
35
|
-
*/
|
|
36
|
-
tableStyle?: HTMLAttributes['style'];
|
|
37
|
-
/**
|
|
38
|
-
* List of selected rows
|
|
39
|
-
* @type {(string | boolean | number)[]}
|
|
40
|
-
* @model
|
|
41
|
-
*/
|
|
42
|
-
modelValue?: (string | boolean | number)[];
|
|
43
|
-
/**
|
|
44
|
-
* Size of the table
|
|
45
|
-
* @type {MazSize}
|
|
46
|
-
* @values xl, lg, md, sm, xs, mini
|
|
47
|
-
* @default md
|
|
48
|
-
*/
|
|
49
|
-
size?: MazSize;
|
|
50
|
-
/**
|
|
51
|
-
* Size of the search inputs
|
|
52
|
-
* @type {MazSize}
|
|
53
|
-
* @values xl, lg, md, sm, xs, mini
|
|
54
|
-
*/
|
|
55
|
-
inputSize?: MazSize;
|
|
56
|
-
/**
|
|
57
|
-
* Title of the table
|
|
58
|
-
* @type {string}
|
|
59
|
-
*/
|
|
60
|
-
title?: string;
|
|
61
|
-
/**
|
|
62
|
-
* Headers of the table
|
|
63
|
-
* @type {MazTableHeader[]}
|
|
64
|
-
*/
|
|
65
|
-
headers?: MazTableHeader[];
|
|
66
|
-
/**
|
|
67
|
-
* Enable sort feature on all columns
|
|
68
|
-
* @type {boolean}
|
|
69
|
-
* @default false
|
|
70
|
-
*/
|
|
71
|
-
sortable?: boolean;
|
|
72
|
-
/**
|
|
73
|
-
* Align all headers
|
|
74
|
-
* @type {string}
|
|
75
|
-
* @default left
|
|
76
|
-
*/
|
|
77
|
-
headersAlign?: ThHTMLAttributes['align'];
|
|
78
|
-
/**
|
|
79
|
-
* Rows of the table
|
|
80
|
-
* @type {T[]}
|
|
81
|
-
*/
|
|
82
|
-
rows?: T[];
|
|
83
|
-
/**
|
|
84
|
-
* Add hover effect on rows
|
|
85
|
-
* @type {boolean}
|
|
86
|
-
* @default false
|
|
87
|
-
*/
|
|
88
|
-
hoverable?: boolean;
|
|
89
|
-
/**
|
|
90
|
-
* Enable search feature in table header
|
|
91
|
-
* @type {boolean}
|
|
92
|
-
* @default false
|
|
93
|
-
*/
|
|
94
|
-
search?: boolean;
|
|
95
|
-
/**
|
|
96
|
-
* Disable search in rows - useful to filter data yourself or make search request to server
|
|
97
|
-
* @type {boolean}
|
|
98
|
-
* @default false
|
|
99
|
-
*/
|
|
100
|
-
hideSearchInRow?: boolean;
|
|
101
|
-
/**
|
|
102
|
-
* Disable search by column (remove select input "search by")
|
|
103
|
-
* @type {boolean}
|
|
104
|
-
* @default false
|
|
105
|
-
*/
|
|
106
|
-
hideSearchBy?: boolean;
|
|
107
|
-
/**
|
|
108
|
-
* Search query in input
|
|
109
|
-
* @type {string}
|
|
110
|
-
* @model
|
|
111
|
-
*/
|
|
112
|
-
searchQuery?: string;
|
|
113
|
-
/**
|
|
114
|
-
* Add background color to odd rows
|
|
115
|
-
* @type {boolean}
|
|
116
|
-
* @default false
|
|
117
|
-
*/
|
|
118
|
-
backgroundOdd?: boolean;
|
|
119
|
-
/**
|
|
120
|
-
* Add background color to even rows
|
|
121
|
-
* @type {boolean}
|
|
122
|
-
* @default false
|
|
123
|
-
*/
|
|
124
|
-
backgroundEven?: boolean;
|
|
125
|
-
/**
|
|
126
|
-
* Add shadow to the table
|
|
127
|
-
* @type {boolean}
|
|
128
|
-
* @default false
|
|
129
|
-
*/
|
|
130
|
-
elevation?: boolean;
|
|
131
|
-
/**
|
|
132
|
-
* add divider between rows
|
|
133
|
-
* @type {boolean}
|
|
134
|
-
* @default false
|
|
135
|
-
*/
|
|
136
|
-
divider?: boolean;
|
|
137
|
-
/**
|
|
138
|
-
* Caption of the table
|
|
139
|
-
* @type {string}
|
|
140
|
-
*/
|
|
141
|
-
caption?: string;
|
|
142
|
-
/**
|
|
143
|
-
* Caption side
|
|
144
|
-
* @type {string}
|
|
145
|
-
* @values top, bottom
|
|
146
|
-
* @default bottom
|
|
147
|
-
*/
|
|
148
|
-
captionSide?: 'top' | 'bottom';
|
|
149
|
-
/**
|
|
150
|
-
* Add pagination in table footer
|
|
151
|
-
* @type {boolean}
|
|
152
|
-
* @default false
|
|
153
|
-
*/
|
|
154
|
-
pagination?: boolean;
|
|
155
|
-
/**
|
|
156
|
-
* Current page of pagination
|
|
157
|
-
* @type {number}
|
|
158
|
-
* @model
|
|
159
|
-
* @default 1
|
|
160
|
-
*/
|
|
161
|
-
page?: number;
|
|
162
|
-
/**
|
|
163
|
-
* Number of items per page
|
|
164
|
-
* @type {number}
|
|
165
|
-
* @model
|
|
166
|
-
* @default 20
|
|
167
|
-
*/
|
|
168
|
-
pageSize?: number;
|
|
169
|
-
/**
|
|
170
|
-
* Total number of pages
|
|
171
|
-
* @type {number}
|
|
172
|
-
*/
|
|
173
|
-
totalPages?: number;
|
|
174
|
-
/**
|
|
175
|
-
* Don't paginate rows - useful to make pagination request with your server
|
|
176
|
-
* @type {boolean}
|
|
177
|
-
* @default true
|
|
178
|
-
*/
|
|
179
|
-
paginateRows?: boolean;
|
|
180
|
-
/**
|
|
181
|
-
* Total number of items
|
|
182
|
-
* @type {number}
|
|
183
|
-
*/
|
|
184
|
-
totalItems?: number;
|
|
185
|
-
/**
|
|
186
|
-
* Loading state
|
|
187
|
-
* @type {boolean}
|
|
188
|
-
* @default false
|
|
189
|
-
*/
|
|
190
|
-
loading?: boolean;
|
|
191
|
-
/**
|
|
192
|
-
* Enable selection of rows
|
|
193
|
-
* @type {boolean}
|
|
194
|
-
* @default false
|
|
195
|
-
*/
|
|
196
|
-
selectable?: boolean;
|
|
197
|
-
/**
|
|
198
|
-
* Enable selection of rows - key of the selected row
|
|
199
|
-
* @type {string}
|
|
200
|
-
*/
|
|
201
|
-
selectedKey?: string;
|
|
202
|
-
/**
|
|
203
|
-
* Table layout
|
|
204
|
-
* @type {string}
|
|
205
|
-
* @values auto, fixed
|
|
206
|
-
*/
|
|
207
|
-
tableLayout?: 'auto' | 'fixed';
|
|
208
|
-
/**
|
|
209
|
-
* Color of the component
|
|
210
|
-
* @type {MazColor}
|
|
211
|
-
* @default primary
|
|
212
|
-
*/
|
|
213
|
-
color?: MazColor;
|
|
214
|
-
/**
|
|
215
|
-
* Translations of the table
|
|
216
|
-
* @type {DeepPartial<MazUiTranslationsNestedSchema['table']>}
|
|
217
|
-
* @default Translations from @maz-ui/translations
|
|
218
|
-
*/
|
|
219
|
-
translations?: DeepPartial<MazUiTranslationsNestedSchema['table']>;
|
|
220
|
-
/**
|
|
221
|
-
* Size radius of the component's border
|
|
222
|
-
* @type {string}
|
|
223
|
-
* @values none, sm, md, lg, xl, full
|
|
224
|
-
* @default lg
|
|
225
|
-
*/
|
|
226
|
-
roundedSize?: 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
227
|
-
/**
|
|
228
|
-
* Enable scrollable on table
|
|
229
|
-
* @type {boolean}
|
|
230
|
-
* @default false
|
|
231
|
-
*/
|
|
232
|
-
scrollable?: boolean;
|
|
233
|
-
}
|
|
234
|
-
export interface MazTableProvide {
|
|
235
|
-
size: Ref<MazSize>;
|
|
236
|
-
hoverable: Ref<boolean>;
|
|
237
|
-
backgroundEven: Ref<boolean>;
|
|
238
|
-
backgroundOdd: Ref<boolean>;
|
|
239
|
-
}
|
|
240
|
-
export declare const mazTableKey: InjectionKey<MazTableProvide>;
|
|
241
|
-
declare const _default: <T extends MazTableRow<T>>(__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<{
|
|
242
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
243
|
-
readonly "onUpdate:model-value"?: ((value: (string | number | boolean | MazTableRow<T>)[] | undefined) => any) | undefined;
|
|
244
|
-
readonly "onUpdate:search-query"?: ((searchQuery: string | undefined) => any) | undefined;
|
|
245
|
-
readonly "onUpdate:page"?: ((page: number) => any) | undefined;
|
|
246
|
-
readonly "onUpdate:page-size"?: ((pageSize: number) => any) | undefined;
|
|
247
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:model-value" | "onUpdate:search-query" | "onUpdate:page" | "onUpdate:page-size"> & MazTableProps<T> & Partial<{}>> & import('vue').PublicProps;
|
|
248
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
249
|
-
attrs: any;
|
|
250
|
-
slots: Partial<Record<`header-label-${string}`, (_: {
|
|
251
|
-
header: {
|
|
252
|
-
label: string;
|
|
253
|
-
key?: string | undefined;
|
|
254
|
-
sortable?: boolean | undefined;
|
|
255
|
-
hidden?: boolean | undefined;
|
|
256
|
-
srOnly?: boolean | undefined;
|
|
257
|
-
width?: string | undefined;
|
|
258
|
-
maxWidth?: string | undefined;
|
|
259
|
-
classes?: ThHTMLAttributes["class"];
|
|
260
|
-
scope?: string | undefined;
|
|
261
|
-
align?: "justify" | "center" | "left" | "right" | "char" | undefined;
|
|
262
|
-
rowspan?: (string | number) | undefined;
|
|
263
|
-
colspan?: (string | number) | undefined;
|
|
264
|
-
headers?: string | undefined;
|
|
265
|
-
thHeaders?: string | undefined;
|
|
266
|
-
sorted?: "ASC" | "DESC" | undefined;
|
|
267
|
-
};
|
|
268
|
-
label: string;
|
|
269
|
-
}) => any>> & Partial<Record<`cell-${string}`, (_: {
|
|
270
|
-
row: T;
|
|
271
|
-
value: any;
|
|
272
|
-
}) => any>> & {
|
|
273
|
-
title?(_: {}): any;
|
|
274
|
-
caption?(_: {}): any;
|
|
275
|
-
thead?(_: {}): any;
|
|
276
|
-
header?(_: {
|
|
277
|
-
header: {
|
|
278
|
-
label: string;
|
|
279
|
-
key?: string | undefined;
|
|
280
|
-
sortable?: boolean | undefined;
|
|
281
|
-
hidden?: boolean | undefined;
|
|
282
|
-
srOnly?: boolean | undefined;
|
|
283
|
-
width?: string | undefined;
|
|
284
|
-
maxWidth?: string | undefined;
|
|
285
|
-
classes?: ThHTMLAttributes["class"];
|
|
286
|
-
scope?: string | undefined;
|
|
287
|
-
align?: "justify" | "center" | "left" | "right" | "char" | undefined;
|
|
288
|
-
rowspan?: (string | number) | undefined;
|
|
289
|
-
colspan?: (string | number) | undefined;
|
|
290
|
-
headers?: string | undefined;
|
|
291
|
-
thHeaders?: string | undefined;
|
|
292
|
-
sorted?: "ASC" | "DESC" | undefined;
|
|
293
|
-
};
|
|
294
|
-
label: string;
|
|
295
|
-
}): any;
|
|
296
|
-
'actions-header'?(_: {}): any;
|
|
297
|
-
default?(_: {}): any;
|
|
298
|
-
select?(_: {
|
|
299
|
-
row: T;
|
|
300
|
-
selected: boolean | undefined;
|
|
301
|
-
}): any;
|
|
302
|
-
cell?(_: {
|
|
303
|
-
row: T;
|
|
304
|
-
value: any;
|
|
305
|
-
}): any;
|
|
306
|
-
actions?(_: {
|
|
307
|
-
row: T;
|
|
308
|
-
}): any;
|
|
309
|
-
'no-results'?(_: {}): any;
|
|
310
|
-
'no-results-text'?(_: {}): any;
|
|
311
|
-
};
|
|
312
|
-
emit: {
|
|
313
|
-
(event: "update:model-value", value: (MazTableRow<T> | string | number | boolean)[] | undefined): void;
|
|
314
|
-
(event: "update:search-query", searchQuery: string | undefined): void;
|
|
315
|
-
(event: "update:page", page: number): void;
|
|
316
|
-
(event: "update:page-size", pageSize: number): void;
|
|
317
|
-
};
|
|
318
|
-
}>) => import('vue').VNode & {
|
|
319
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
320
|
-
};
|
|
321
|
-
export default _default;
|
|
322
|
-
type __VLS_PrettifyLocal<T> = {
|
|
323
|
-
[K in keyof T]: T[K];
|
|
324
|
-
} & {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
attrs: Partial<{}>;
|
|
3
|
-
slots: {
|
|
4
|
-
default?(_: {}): any;
|
|
5
|
-
};
|
|
6
|
-
refs: {};
|
|
7
|
-
rootEl: HTMLTableCellElement;
|
|
8
|
-
};
|
|
9
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
-
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLTableCellElement>;
|
|
11
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
-
export default _default;
|
|
13
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
-
new (): {
|
|
15
|
-
$slots: S;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export interface MazTableRowProps {
|
|
2
|
-
/** Override hoverable of table props */
|
|
3
|
-
hoverable?: boolean;
|
|
4
|
-
/** If true, the row is a head row */
|
|
5
|
-
isHead?: boolean;
|
|
6
|
-
}
|
|
7
|
-
declare function __VLS_template(): {
|
|
8
|
-
attrs: Partial<{}>;
|
|
9
|
-
slots: {
|
|
10
|
-
default?(_: {}): any;
|
|
11
|
-
};
|
|
12
|
-
refs: {};
|
|
13
|
-
rootEl: HTMLTableRowElement;
|
|
14
|
-
};
|
|
15
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
-
declare const __VLS_component: import('vue').DefineComponent<MazTableRowProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MazTableRowProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLTableRowElement>;
|
|
17
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
18
|
-
export default _default;
|
|
19
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
20
|
-
new (): {
|
|
21
|
-
$slots: S;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
attrs: Partial<{}>;
|
|
3
|
-
slots: {
|
|
4
|
-
default?(_: {}): any;
|
|
5
|
-
};
|
|
6
|
-
refs: {};
|
|
7
|
-
rootEl: HTMLTableCellElement;
|
|
8
|
-
};
|
|
9
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
-
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLTableCellElement>;
|
|
11
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
-
export default _default;
|
|
13
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
-
new (): {
|
|
15
|
-
$slots: S;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
export interface MazTabsProps {
|
|
3
|
-
/** The the selected tab number */
|
|
4
|
-
modelValue?: number;
|
|
5
|
-
}
|
|
6
|
-
export interface MazTabsProvide {
|
|
7
|
-
currentTab: Ref<number>;
|
|
8
|
-
updateCurrentTab: (index: number) => number;
|
|
9
|
-
}
|
|
10
|
-
declare function __VLS_template(): {
|
|
11
|
-
attrs: Partial<{}>;
|
|
12
|
-
slots: {
|
|
13
|
-
default?(_: {}): any;
|
|
14
|
-
};
|
|
15
|
-
refs: {};
|
|
16
|
-
rootEl: HTMLDivElement;
|
|
17
|
-
};
|
|
18
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
-
declare const __VLS_component: import('vue').DefineComponent<MazTabsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
-
"update:model-value": (value: number) => any;
|
|
21
|
-
}, string, import('vue').PublicProps, Readonly<MazTabsProps> & Readonly<{
|
|
22
|
-
"onUpdate:model-value"?: ((value: number) => any) | undefined;
|
|
23
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
24
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
25
|
-
export default _default;
|
|
26
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
|
-
new (): {
|
|
28
|
-
$slots: S;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { MazBadgeProps } from './MazBadge.vue';
|
|
2
|
-
export interface MazTabsBarProps {
|
|
3
|
-
/**
|
|
4
|
-
* The items to display in the tabs bar
|
|
5
|
-
* @type MazTabsBarItem[]
|
|
6
|
-
*/
|
|
7
|
-
items: MazTabsBarItem[];
|
|
8
|
-
/**
|
|
9
|
-
* Will add a query param to the url to keep the selected tab on page refresh
|
|
10
|
-
* @default false
|
|
11
|
-
*/
|
|
12
|
-
persistent?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* The name of the query param to add to the url
|
|
15
|
-
* @default tab
|
|
16
|
-
*/
|
|
17
|
-
queryParam?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Will make the tabs bar full width
|
|
20
|
-
* @default false
|
|
21
|
-
*/
|
|
22
|
-
block?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Will remove the elevation
|
|
25
|
-
* @default false
|
|
26
|
-
*/
|
|
27
|
-
elevation?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Will add a scroll on the tabs bar to show selected element
|
|
30
|
-
* @default true
|
|
31
|
-
*/
|
|
32
|
-
autoScroll?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Will add a border to the tabs bar
|
|
35
|
-
* @default true
|
|
36
|
-
*/
|
|
37
|
-
bordered?: boolean;
|
|
38
|
-
}
|
|
39
|
-
export type MazTabsBarItem = {
|
|
40
|
-
/**
|
|
41
|
-
* Label of the tab
|
|
42
|
-
*/
|
|
43
|
-
label: string;
|
|
44
|
-
/**
|
|
45
|
-
* Will disable the tab
|
|
46
|
-
* @default false
|
|
47
|
-
*/
|
|
48
|
-
disabled?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Badge to display in the tab
|
|
51
|
-
* Inherit all props of MazBadge component
|
|
52
|
-
*/
|
|
53
|
-
badge?: MazBadgeProps & {
|
|
54
|
-
/**
|
|
55
|
-
* Content of the badge
|
|
56
|
-
*/
|
|
57
|
-
content: string | number | boolean;
|
|
58
|
-
};
|
|
59
|
-
} | string;
|
|
60
|
-
declare function __VLS_template(): {
|
|
61
|
-
attrs: Partial<{}>;
|
|
62
|
-
slots: {
|
|
63
|
-
item?(_: {
|
|
64
|
-
item: {
|
|
65
|
-
label: string;
|
|
66
|
-
disabled: boolean;
|
|
67
|
-
badge: (MazBadgeProps & {
|
|
68
|
-
/**
|
|
69
|
-
* Content of the badge
|
|
70
|
-
*/
|
|
71
|
-
content: string | number | boolean;
|
|
72
|
-
}) | undefined;
|
|
73
|
-
};
|
|
74
|
-
active: boolean;
|
|
75
|
-
index: number;
|
|
76
|
-
}): any;
|
|
77
|
-
'badge-content'?(_: {
|
|
78
|
-
content: string | number | boolean;
|
|
79
|
-
}): any;
|
|
80
|
-
};
|
|
81
|
-
refs: {
|
|
82
|
-
tabsBarRef: HTMLDivElement;
|
|
83
|
-
};
|
|
84
|
-
rootEl: HTMLDivElement;
|
|
85
|
-
};
|
|
86
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
87
|
-
declare const __VLS_component: import('vue').DefineComponent<MazTabsBarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MazTabsBarProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
88
|
-
tabsBarRef: HTMLDivElement;
|
|
89
|
-
}, HTMLDivElement>;
|
|
90
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
91
|
-
export default _default;
|
|
92
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
93
|
-
new (): {
|
|
94
|
-
$slots: S;
|
|
95
|
-
};
|
|
96
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
attrs: Partial<{}>;
|
|
3
|
-
slots: {
|
|
4
|
-
default?(_: {}): any;
|
|
5
|
-
};
|
|
6
|
-
refs: {};
|
|
7
|
-
rootEl: HTMLDivElement;
|
|
8
|
-
};
|
|
9
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
-
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
11
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
-
export default _default;
|
|
13
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
-
new (): {
|
|
15
|
-
$slots: S;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
attrs: Partial<{}>;
|
|
3
|
-
slots: {
|
|
4
|
-
default?(_: {}): any;
|
|
5
|
-
};
|
|
6
|
-
refs: {
|
|
7
|
-
MazTabsContentItem: HTMLDivElement;
|
|
8
|
-
};
|
|
9
|
-
rootEl: any;
|
|
10
|
-
};
|
|
11
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
13
|
-
tab: {
|
|
14
|
-
type: NumberConstructor;
|
|
15
|
-
required: true;
|
|
16
|
-
};
|
|
17
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
18
|
-
tab: {
|
|
19
|
-
type: NumberConstructor;
|
|
20
|
-
required: true;
|
|
21
|
-
};
|
|
22
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
23
|
-
MazTabsContentItem: HTMLDivElement;
|
|
24
|
-
}, any>;
|
|
25
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
26
|
-
export default _default;
|
|
27
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
-
new (): {
|
|
29
|
-
$slots: S;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'vue';
|
|
2
|
-
import { MazColor } from './types';
|
|
3
|
-
export interface MazTextareaProps<T extends string | undefined | null> {
|
|
4
|
-
/** Style attribut of the component root element */
|
|
5
|
-
style?: HTMLAttributes['style'];
|
|
6
|
-
/** Class attribut of the component root element */
|
|
7
|
-
class?: HTMLAttributes['class'];
|
|
8
|
-
/** @model The value of the textarea */
|
|
9
|
-
modelValue?: T;
|
|
10
|
-
/** The id of the textarea */
|
|
11
|
-
id?: string;
|
|
12
|
-
/** The name of the textarea */
|
|
13
|
-
name?: string;
|
|
14
|
-
/** The label of the textarea */
|
|
15
|
-
label?: string;
|
|
16
|
-
/** The placeholder of the textarea */
|
|
17
|
-
placeholder?: string;
|
|
18
|
-
/** If the textarea is required */
|
|
19
|
-
required?: boolean;
|
|
20
|
-
/** If the textarea is disabled */
|
|
21
|
-
disabled?: boolean;
|
|
22
|
-
/** If the textarea is readonly */
|
|
23
|
-
readonly?: boolean;
|
|
24
|
-
/** If the textarea has an error */
|
|
25
|
-
error?: boolean;
|
|
26
|
-
/** If the textarea has a success */
|
|
27
|
-
success?: boolean;
|
|
28
|
-
/** If the textarea has a warning */
|
|
29
|
-
warning?: boolean;
|
|
30
|
-
/** The hint of the textarea */
|
|
31
|
-
hint?: string;
|
|
32
|
-
/** The color of the textarea */
|
|
33
|
-
color?: MazColor;
|
|
34
|
-
/**
|
|
35
|
-
* Size radius of the component's border
|
|
36
|
-
* @values `'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full'`
|
|
37
|
-
*/
|
|
38
|
-
roundedSize?: 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
39
|
-
/**
|
|
40
|
-
* If the textarea has a padding
|
|
41
|
-
* @default true
|
|
42
|
-
*/
|
|
43
|
-
padding?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* If the textarea has a transparent background
|
|
46
|
-
* @default false
|
|
47
|
-
*/
|
|
48
|
-
transparent?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* If the textarea has no border
|
|
51
|
-
* @default false
|
|
52
|
-
*/
|
|
53
|
-
border?: boolean;
|
|
54
|
-
/**
|
|
55
|
-
* The alignment of the append slot
|
|
56
|
-
* @values `'start' | 'end' | 'center' | 'space-between' | 'space-around' | 'space-evenly'`
|
|
57
|
-
* @default 'end'
|
|
58
|
-
*/
|
|
59
|
-
appendJustify?: 'start' | 'end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
60
|
-
}
|
|
61
|
-
declare const _default: <T extends string | undefined | null>(__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<{
|
|
62
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
63
|
-
readonly onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
64
|
-
readonly onChange?: ((value: Event) => any) | undefined;
|
|
65
|
-
readonly onFocus?: ((value: FocusEvent) => any) | undefined;
|
|
66
|
-
readonly onInput?: ((value?: T | undefined) => any) | undefined;
|
|
67
|
-
readonly "onUpdate:model-value"?: ((value?: T | undefined) => any) | undefined;
|
|
68
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onInput" | "onUpdate:model-value"> & MazTextareaProps<T> & Partial<{}>> & import('vue').PublicProps;
|
|
69
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
70
|
-
attrs: any;
|
|
71
|
-
slots: {
|
|
72
|
-
label?(_: {}): any;
|
|
73
|
-
append?(_: {}): any;
|
|
74
|
-
};
|
|
75
|
-
emit: {
|
|
76
|
-
(event: "update:model-value", value?: T): void;
|
|
77
|
-
(event: "input", value?: T): void;
|
|
78
|
-
(event: "focus", value: FocusEvent): void;
|
|
79
|
-
(event: "blur", value: FocusEvent): void;
|
|
80
|
-
(event: "change", value: Event): void;
|
|
81
|
-
};
|
|
82
|
-
}>) => import('vue').VNode & {
|
|
83
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
84
|
-
};
|
|
85
|
-
export default _default;
|
|
86
|
-
type __VLS_PrettifyLocal<T> = {
|
|
87
|
-
[K in keyof T]: T[K];
|
|
88
|
-
} & {};
|