@corvina/vue-components-library 1.0.0-beta.2 → 1.0.0-beta.21
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/CHANGELOG.md +275 -4
- package/README.md +8 -3
- package/components/CvAccordion.ce.vue.d.ts +29 -0
- package/components/CvAccordion.ce.vue.d.ts.map +1 -0
- package/components/CvAppCard.ce.vue.d.ts +32 -0
- package/components/CvAppCard.ce.vue.d.ts.map +1 -0
- package/components/CvAutocomplete.ce.vue.d.ts +62 -0
- package/components/CvAutocomplete.ce.vue.d.ts.map +1 -0
- package/components/{CorvinaBreadcrumb.ce.vue.d.ts → CvBreadcrumb.ce.vue.d.ts} +20 -3
- package/components/CvBreadcrumb.ce.vue.d.ts.map +1 -0
- package/components/{CorvinaBreadcrumbDivider.ce.vue.d.ts → CvBreadcrumbDivider.ce.vue.d.ts} +1 -1
- package/components/CvBreadcrumbDivider.ce.vue.d.ts.map +1 -0
- package/components/{CorvinaButton.ce.vue.d.ts → CvButton.ce.vue.d.ts} +10 -2
- package/components/CvButton.ce.vue.d.ts.map +1 -0
- package/components/CvButtonToggle.ce.vue.d.ts +28 -0
- package/components/CvButtonToggle.ce.vue.d.ts.map +1 -0
- package/components/CvCheckbox.ce.vue.d.ts +36 -0
- package/components/CvCheckbox.ce.vue.d.ts.map +1 -0
- package/components/CvChip.ce.vue.d.ts +23 -0
- package/components/CvChip.ce.vue.d.ts.map +1 -0
- package/components/CvCombobox.ce.vue.d.ts +91 -0
- package/components/CvCombobox.ce.vue.d.ts.map +1 -0
- package/components/CvDateRange.ce.vue.d.ts +36 -0
- package/components/CvDateRange.ce.vue.d.ts.map +1 -0
- package/components/CvDialog.ce.vue.d.ts +52 -0
- package/components/CvDialog.ce.vue.d.ts.map +1 -0
- package/components/{CorvinaIcon.ce.vue.d.ts → CvIcon.ce.vue.d.ts} +9 -2
- package/components/CvIcon.ce.vue.d.ts.map +1 -0
- package/components/CvInfiniteLoader.ce.vue.d.ts +30 -0
- package/components/CvInfiniteLoader.ce.vue.d.ts.map +1 -0
- package/components/CvKeyValueField.ce.vue.d.ts +31 -0
- package/components/CvKeyValueField.ce.vue.d.ts.map +1 -0
- package/components/CvPanel.ce.vue.d.ts +78 -0
- package/components/CvPanel.ce.vue.d.ts.map +1 -0
- package/components/CvQuota.ce.vue.d.ts +20 -0
- package/components/CvQuota.ce.vue.d.ts.map +1 -0
- package/components/CvRadioGroup.ce.vue.d.ts +56 -0
- package/components/CvRadioGroup.ce.vue.d.ts.map +1 -0
- package/components/CvSelect.ce.vue.d.ts +56 -0
- package/components/CvSelect.ce.vue.d.ts.map +1 -0
- package/components/CvSnackbar.ce.vue.d.ts +36 -0
- package/components/CvSnackbar.ce.vue.d.ts.map +1 -0
- package/components/CvStepper.ce.vue.d.ts +44 -0
- package/components/CvStepper.ce.vue.d.ts.map +1 -0
- package/components/CvSwitch.ce.vue.d.ts +38 -0
- package/components/CvSwitch.ce.vue.d.ts.map +1 -0
- package/components/{CorvinaTable.ce.vue.d.ts → CvTable.ce.vue.d.ts} +39 -15
- package/components/CvTable.ce.vue.d.ts.map +1 -0
- package/components/CvTabs.ce.vue.d.ts +32 -0
- package/components/CvTabs.ce.vue.d.ts.map +1 -0
- package/components/CvTextField.ce.vue.d.ts +56 -0
- package/components/CvTextField.ce.vue.d.ts.map +1 -0
- package/components/CvTextarea.ce.vue.d.ts +44 -0
- package/components/CvTextarea.ce.vue.d.ts.map +1 -0
- package/components/CvTree.ce.vue.d.ts +59 -0
- package/components/CvTree.ce.vue.d.ts.map +1 -0
- package/components/CvWeekdays.ce.vue.d.ts +27 -0
- package/components/CvWeekdays.ce.vue.d.ts.map +1 -0
- package/index.d.ts +266 -6
- package/index.d.ts.map +1 -1
- package/package.json +27 -33
- package/settings.scss +8 -11
- package/utils/{webfontloader.d.ts → fonts.d.ts} +1 -1
- package/utils/fonts.d.ts.map +1 -0
- package/utils/tree.d.ts +12 -0
- package/utils/tree.d.ts.map +1 -0
- package/vue-components-library.css +1 -1
- package/vue-components-library.es.js +4361 -1650
- package/vue-components.d.ts +120 -15
- package/vue-components.d.ts.map +1 -1
- package/components/CorvinaBreadcrumb.ce.vue.d.ts.map +0 -1
- package/components/CorvinaBreadcrumbDivider.ce.vue.d.ts.map +0 -1
- package/components/CorvinaButton.ce.vue.d.ts.map +0 -1
- package/components/CorvinaIcon.ce.vue.d.ts.map +0 -1
- package/components/CorvinaSelect.ce.vue.d.ts +0 -25
- package/components/CorvinaSelect.ce.vue.d.ts.map +0 -1
- package/components/CorvinaTable.ce.vue.d.ts.map +0 -1
- package/utils/webfontloader.d.ts.map +0 -1
package/index.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ export declare namespace CORVINA {
|
|
|
56
56
|
* Return an empty array to tell there is no more data.
|
|
57
57
|
* Required if type is FILTER_BY_ENUM.AUTOCOMPLETE.
|
|
58
58
|
*/
|
|
59
|
-
searchFunction?: (search: string, page: number) =>
|
|
59
|
+
searchFunction?: (search: string, page: number) => unknown[] | Promise<unknown[]>;
|
|
60
60
|
/** Property on the items returned by the `searchFunction` that contains the title, shown in the options and in the chip (`FILTER.title`). Required if type is FILTER_BY_ENUM.AUTOCOMPLETE. */
|
|
61
61
|
itemsTitleKey?: string;
|
|
62
62
|
/** Property on the items returned by the `searchFunction` that contains the identifier, used as `FILTER.value` of the selected item. Required if type is FILTER_BY_ENUM.AUTOCOMPLETE. */
|
|
@@ -73,11 +73,25 @@ export declare namespace CORVINA {
|
|
|
73
73
|
/** Text shown in the chip instead of the value: the `itemsTitleKey` property of the selected item for FILTER_BY_ENUM.AUTOCOMPLETE */
|
|
74
74
|
title?: string;
|
|
75
75
|
}
|
|
76
|
+
/** An array of this structure defines what the user can sort by. */
|
|
77
|
+
interface SORT_BY {
|
|
78
|
+
/** Unique key of the sort, `SORT.key` when selected */
|
|
79
|
+
key: string;
|
|
80
|
+
/** Title shown in the sort dropdown */
|
|
81
|
+
title: string;
|
|
82
|
+
}
|
|
83
|
+
/** The sort selected by the user. */
|
|
84
|
+
interface SORT {
|
|
85
|
+
/** Key of the selected `SORT_BY` */
|
|
86
|
+
key: string;
|
|
87
|
+
/** Descending order */
|
|
88
|
+
desc: boolean;
|
|
89
|
+
}
|
|
76
90
|
interface CUSTOM_VUE_COMPONENT {
|
|
77
91
|
/** Name of the Vue component or Vue component definition */
|
|
78
92
|
component: string | Component;
|
|
79
93
|
/** Vue component's props */
|
|
80
|
-
props?: Record<string,
|
|
94
|
+
props?: Record<string, unknown>;
|
|
81
95
|
/** Name of the prop that will contain the row item */
|
|
82
96
|
itemPropName?: string;
|
|
83
97
|
/** Name of the prop that indicates where the component should be positioned */
|
|
@@ -91,6 +105,17 @@ export declare namespace CORVINA {
|
|
|
91
105
|
FILLED = "FILLED",
|
|
92
106
|
OUTLINED = "OUTLINED"
|
|
93
107
|
}
|
|
108
|
+
/** A choice of the menu of a CvButton (`menu`): a click emits `select` with its `value`. */
|
|
109
|
+
interface MENU_ENTRY {
|
|
110
|
+
title: string;
|
|
111
|
+
value: string | number;
|
|
112
|
+
disabled?: boolean;
|
|
113
|
+
/** While disabled, why: the tooltip of the entry (STATE-2) */
|
|
114
|
+
disabledReason?: string;
|
|
115
|
+
/** A line before the entry, between groups of choices */
|
|
116
|
+
divider?: boolean;
|
|
117
|
+
dataQa?: string;
|
|
118
|
+
}
|
|
94
119
|
}
|
|
95
120
|
namespace ICON {
|
|
96
121
|
enum SIZE {
|
|
@@ -101,6 +126,221 @@ export declare namespace CORVINA {
|
|
|
101
126
|
X_LARGE = "x-large"
|
|
102
127
|
}
|
|
103
128
|
}
|
|
129
|
+
namespace STEPPER {
|
|
130
|
+
/** A step of CvStepper. */
|
|
131
|
+
interface STEP {
|
|
132
|
+
/** Unique value of the step: `selected`, the `update:selected` event and the `step.<value>` slot use it */
|
|
133
|
+
value: string | number;
|
|
134
|
+
/** Its name on the bar */
|
|
135
|
+
title: string;
|
|
136
|
+
/** A line under the title (e.g. `Not required`) */
|
|
137
|
+
subtitle?: string;
|
|
138
|
+
/** Not needed by this task: Back and Next pass over it, it is not marked done */
|
|
139
|
+
skipped?: boolean;
|
|
140
|
+
/** The data-qa attribute of the step, for testing and automation */
|
|
141
|
+
dataQa?: string;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
namespace TABS {
|
|
145
|
+
/** A tab of CvTabs. */
|
|
146
|
+
interface TAB {
|
|
147
|
+
/** Unique value of the tab: `selected` and the `update:selected` event use it */
|
|
148
|
+
value: string | number;
|
|
149
|
+
/** Text shown in the tab */
|
|
150
|
+
title: string;
|
|
151
|
+
/** The data-qa attribute of the tab, for testing and automation */
|
|
152
|
+
dataQa?: string;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
namespace TREE {
|
|
156
|
+
/** An item of CvTree: its key, title and children are in the fields named by `itemKey`, `itemTitle` and `itemChildren` */
|
|
157
|
+
type ITEM = Record<string, any>;
|
|
158
|
+
/** The `key` of an item */
|
|
159
|
+
type KEY = string | number;
|
|
160
|
+
/** Where a dragged item goes, next to the item it is dropped on */
|
|
161
|
+
enum DROP {
|
|
162
|
+
/** Before the target, in the same list */
|
|
163
|
+
BEFORE = "before",
|
|
164
|
+
/** After the target, in the same list */
|
|
165
|
+
AFTER = "after",
|
|
166
|
+
/** The last child of the target (an item with a children array) */
|
|
167
|
+
INSIDE = "inside"
|
|
168
|
+
}
|
|
169
|
+
/** A drop of CvTree (`move` event, `canDrop` prop) */
|
|
170
|
+
interface MOVE {
|
|
171
|
+
/** The dragged item */
|
|
172
|
+
item: ITEM;
|
|
173
|
+
/** The item it is dropped on */
|
|
174
|
+
target: ITEM;
|
|
175
|
+
position: DROP;
|
|
176
|
+
/** The parent the item will have: the target for INSIDE, the target's parent otherwise (null at the top level) */
|
|
177
|
+
parent: ITEM | null;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
namespace DATE_RANGE {
|
|
181
|
+
/** A range of days of CvDateRange, both days included. */
|
|
182
|
+
interface RANGE {
|
|
183
|
+
/** First day, ISO `yyyy-MM-dd` */
|
|
184
|
+
start: string;
|
|
185
|
+
/** Last day, ISO `yyyy-MM-dd` */
|
|
186
|
+
end: string;
|
|
187
|
+
}
|
|
188
|
+
/** A preset of CvDateRange: a button above the calendars that selects its range. */
|
|
189
|
+
interface PRESET {
|
|
190
|
+
/** Text of the button */
|
|
191
|
+
title: string;
|
|
192
|
+
/** The range it selects, `null` to clear the selection */
|
|
193
|
+
range: RANGE | null;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
namespace DIALOG {
|
|
197
|
+
/** What a CvDialog is for (design system FEEDBACK-1, FEEDBACK-3). */
|
|
198
|
+
enum TYPE {
|
|
199
|
+
/** Asks: Cancel and a confirm button, before an important or destructive action */
|
|
200
|
+
CONFIRM = "confirm",
|
|
201
|
+
/** Informs: the failure of an operation, with one button to acknowledge it */
|
|
202
|
+
INFORM = "inform"
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
namespace FIELD {
|
|
206
|
+
/** A validation rule of a field (Vuetify's): `true`, or the message of the error. */
|
|
207
|
+
type RULE = ((value: any) => true | string) | ((value: any) => Promise<true | string>);
|
|
208
|
+
/** What a CvTextField holds. */
|
|
209
|
+
enum TYPE {
|
|
210
|
+
TEXT = "text",
|
|
211
|
+
/** Hidden, with a button that shows it */
|
|
212
|
+
PASSWORD = "password",
|
|
213
|
+
/** A number: `modelValue` is a number, `null` when empty */
|
|
214
|
+
NUMBER = "number"
|
|
215
|
+
}
|
|
216
|
+
/** A choice of a CvRadioGroup, CvSelect or CvAutocomplete (which also take other objects, see `itemTitle`). */
|
|
217
|
+
interface ITEM {
|
|
218
|
+
title: string;
|
|
219
|
+
value: string | number | boolean;
|
|
220
|
+
disabled?: boolean;
|
|
221
|
+
/** A line under the title: CvRadioGroup's (its `cards` especially). */
|
|
222
|
+
subtitle?: string;
|
|
223
|
+
/** CvRadioGroup: lines on the right of the title (e.g. a price), the last one in bold */
|
|
224
|
+
aside?: string[];
|
|
225
|
+
/** CvRadioGroup: why a disabled choice cannot be chosen, on hover (STATE-3) */
|
|
226
|
+
disabledReason?: string;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* The search of a CvAutocomplete on the server: the items matching `search`, page `page` (from 0). An empty page
|
|
230
|
+
* ends the list. As the `searchFunction` of a CORVINA.BREADCRUMB.FILTER_BY.
|
|
231
|
+
*/
|
|
232
|
+
type SEARCH = (search: string, page: number) => unknown[] | Promise<unknown[]>;
|
|
233
|
+
}
|
|
234
|
+
namespace SNACKBAR {
|
|
235
|
+
/** What a CvSnackbar reports, which sets its colour. */
|
|
236
|
+
enum TYPE {
|
|
237
|
+
/** An operation succeeded (design system FEEDBACK-2) */
|
|
238
|
+
SUCCESS = "success",
|
|
239
|
+
/** Something the user should know, that blocks nothing */
|
|
240
|
+
WARNING = "warning",
|
|
241
|
+
/** A minor failure; an operation that failed is reported with an informing CvDialog (FEEDBACK-3) */
|
|
242
|
+
ERROR = "error"
|
|
243
|
+
}
|
|
244
|
+
/** Where a CvSnackbar appears. */
|
|
245
|
+
enum POSITION {
|
|
246
|
+
/** Centred at the bottom of the window */
|
|
247
|
+
BOTTOM = "bottom",
|
|
248
|
+
/** Centred at the top, below the bars of the page */
|
|
249
|
+
TOP = "top"
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
namespace PANEL {
|
|
253
|
+
/** Where a CvPanel slides in from. */
|
|
254
|
+
enum POSITION {
|
|
255
|
+
/** The right edge, full height (design system PANEL-1) */
|
|
256
|
+
RIGHT = "right",
|
|
257
|
+
/** The lower half of the window, full width (the help of a page, HELP-3) */
|
|
258
|
+
BOTTOM = "bottom"
|
|
259
|
+
}
|
|
260
|
+
/** What a CvPanel is for, which sets its header. */
|
|
261
|
+
enum TYPE {
|
|
262
|
+
/** Creates or edits: the header holds cancel and confirm (PANEL-1, PANEL-3) */
|
|
263
|
+
EDIT = "edit",
|
|
264
|
+
/** Explains: the help icon, a title and Close (HELP-3, HELP-5) */
|
|
265
|
+
HELP = "help"
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
namespace QUOTA {
|
|
269
|
+
/** How full a CvQuota is, which sets its colours. */
|
|
270
|
+
enum LEVEL {
|
|
271
|
+
/** Nothing to use (the quantity is 0): all grey */
|
|
272
|
+
EMPTY = "empty",
|
|
273
|
+
/** Below the warning threshold, or without a limit */
|
|
274
|
+
NORMAL = "normal",
|
|
275
|
+
/** Close to the limit (frontend-new: 75%) */
|
|
276
|
+
WARNING = "warning",
|
|
277
|
+
/** At the limit or nearly (frontend-new: 90%) */
|
|
278
|
+
ALERT = "alert"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
namespace APP_CARD {
|
|
282
|
+
/** A chip of a CvAppCard (CvChip's props), by its name (`titleChips`) or in its foot (`chips`): e.g. the status, free or paid. */
|
|
283
|
+
interface CHIP {
|
|
284
|
+
text: string;
|
|
285
|
+
/** Its background, a palette variable (e.g. `var(--color-good)`): white without */
|
|
286
|
+
color?: string;
|
|
287
|
+
/** An icon before the text (e.g. `ecc:ecc-MP-allWidget`) */
|
|
288
|
+
icon?: string;
|
|
289
|
+
/** On hover */
|
|
290
|
+
tooltip?: string;
|
|
291
|
+
}
|
|
292
|
+
/** An icon button in the foot of a CvAppCard: a click emits `action` with its `key`. */
|
|
293
|
+
interface ACTION {
|
|
294
|
+
key: string;
|
|
295
|
+
icon: string;
|
|
296
|
+
/** Its name, on hover (HELP-1) */
|
|
297
|
+
tooltip: string;
|
|
298
|
+
/** In the highlight colour, as a toggle that is on (e.g. liked) */
|
|
299
|
+
active?: boolean;
|
|
300
|
+
disabled?: boolean;
|
|
301
|
+
/** While disabled, the tooltip says why (STATE-3) */
|
|
302
|
+
disabledReason?: string;
|
|
303
|
+
/** A spinner in place of the icon */
|
|
304
|
+
loading?: boolean;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
namespace COMBOBOX {
|
|
308
|
+
/** How a CvCombobox shows what was added. */
|
|
309
|
+
enum VARIANT {
|
|
310
|
+
/** Chips under the field, each with its ✕ (frontend-new's VChipComponent) */
|
|
311
|
+
CHIPS = "chips",
|
|
312
|
+
/** One per line under the field: the remove button, an icon and the title, the actions on the right */
|
|
313
|
+
LIST = "list"
|
|
314
|
+
}
|
|
315
|
+
/** An icon button on the right of each line of a CvCombobox `list`: a click emits `action`. */
|
|
316
|
+
interface ITEM_ACTION {
|
|
317
|
+
key: string;
|
|
318
|
+
icon: string;
|
|
319
|
+
/** Its name, on hover (HELP-1) */
|
|
320
|
+
tooltip: string;
|
|
321
|
+
disabled?: boolean;
|
|
322
|
+
/** While disabled, the tooltip says why (STATE-3) */
|
|
323
|
+
disabledReason?: string;
|
|
324
|
+
/** The alert colour on hover: it destroys something (THEME-4) */
|
|
325
|
+
danger?: boolean;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
namespace INFINITE_LOADER {
|
|
329
|
+
/**
|
|
330
|
+
* Argument of the `infinite` event of CvInfiniteLoader: when the page is fetched call `loaded()` (more pages may
|
|
331
|
+
* follow), `complete()` (no more pages) or `error()` (the loader shows a retry button).
|
|
332
|
+
*/
|
|
333
|
+
interface StateHandler {
|
|
334
|
+
/** The page is loading: the loader shows the spinner (it already does before emitting `infinite`) */
|
|
335
|
+
loading: () => void;
|
|
336
|
+
/** The page was added: the loader requests the next one if it is still visible */
|
|
337
|
+
loaded: () => void;
|
|
338
|
+
/** There are no more pages: the loader stops until `identifier` changes */
|
|
339
|
+
complete: () => void;
|
|
340
|
+
/** The page could not be loaded: the loader shows the retry button */
|
|
341
|
+
error: () => void;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
104
344
|
namespace TABLE {
|
|
105
345
|
/** Horizontal alignment of a column (applied as `text-*` and `justify-*` classes) */
|
|
106
346
|
enum ALIGN {
|
|
@@ -144,6 +384,8 @@ export declare namespace CORVINA {
|
|
|
144
384
|
VUE_COMPONENT = "VueComponent",
|
|
145
385
|
/** Reserved for internal usage. Do not used for user columns */
|
|
146
386
|
EXPAND = "Expand",
|
|
387
|
+
/** Reserved for internal usage (`showSelect`). Do not use for user columns */
|
|
388
|
+
SELECT = "Select",
|
|
147
389
|
/** Empty column */
|
|
148
390
|
EMPTY = "Empty"
|
|
149
391
|
}
|
|
@@ -155,10 +397,15 @@ export declare namespace CORVINA {
|
|
|
155
397
|
type PropIconEntries = PropIconEntry[];
|
|
156
398
|
interface PropButtonEntry {
|
|
157
399
|
label?: string;
|
|
400
|
+
dataQa?: string;
|
|
158
401
|
tooltip?: string;
|
|
159
402
|
icon?: string;
|
|
160
403
|
/** If true the button becomes a spinner */
|
|
161
404
|
loading?: boolean;
|
|
405
|
+
/** The user may do it, but not on this row now (STATE-1): shown in g4. Leave the entry out if they may never do it. */
|
|
406
|
+
disabled?: boolean;
|
|
407
|
+
/** While disabled, the tooltip says why (STATE-2) */
|
|
408
|
+
disabledReason?: string;
|
|
162
409
|
function: (item: any) => void;
|
|
163
410
|
}
|
|
164
411
|
type PropButtonEntries = PropButtonEntry[];
|
|
@@ -166,6 +413,8 @@ export declare namespace CORVINA {
|
|
|
166
413
|
title: string;
|
|
167
414
|
icon?: string;
|
|
168
415
|
disabled?: boolean;
|
|
416
|
+
/** While disabled, the tooltip says why (STATE-2) */
|
|
417
|
+
disabledReason?: string;
|
|
169
418
|
tooltip?: string;
|
|
170
419
|
alignTooltip?: TOOLTIP_LOCATION;
|
|
171
420
|
function: (item: any) => void;
|
|
@@ -176,16 +425,27 @@ export declare namespace CORVINA {
|
|
|
176
425
|
/** Name of the Vue component or Vue component definition */
|
|
177
426
|
component: string | Component;
|
|
178
427
|
/** Vue component's props */
|
|
179
|
-
props?: Record<string,
|
|
428
|
+
props?: Record<string, unknown>;
|
|
180
429
|
/** Name of the prop that will contain the row item */
|
|
181
430
|
itemPropName?: string;
|
|
182
431
|
}
|
|
432
|
+
/** Props of the `item.<key>` cell slot */
|
|
433
|
+
interface CellSlotProps {
|
|
434
|
+
/** The row item */
|
|
435
|
+
item: any;
|
|
436
|
+
/** `item[key]` */
|
|
437
|
+
value: any;
|
|
438
|
+
/** Index of the row in the page */
|
|
439
|
+
index: number;
|
|
440
|
+
/** The column's header entry */
|
|
441
|
+
column: TableHeaderEntry;
|
|
442
|
+
}
|
|
183
443
|
/** Use it with `HEADER_CELL_TYPE.VUE_COMPONENT` */
|
|
184
444
|
interface HeaderVueComponent {
|
|
185
445
|
/** Name of the Vue component or Vue component definition */
|
|
186
446
|
component: string | Component;
|
|
187
447
|
/** Vue component's props */
|
|
188
|
-
props?: Record<string,
|
|
448
|
+
props?: Record<string, unknown>;
|
|
189
449
|
}
|
|
190
450
|
/**
|
|
191
451
|
* Interface representing a table header entry.
|
|
@@ -221,8 +481,8 @@ export declare namespace CORVINA {
|
|
|
221
481
|
customHeaderCellGeneratorFunction?: () => HTMLElement;
|
|
222
482
|
/** The `HeaderVueComponent` describing the vuejs component to use */
|
|
223
483
|
headerVueComponent?: HeaderVueComponent;
|
|
224
|
-
/** Type of the row cells */
|
|
225
|
-
type
|
|
484
|
+
/** Type of the row cells. Not needed when the table has the column's `item.<key>` slot. */
|
|
485
|
+
type?: CELL_TYPE;
|
|
226
486
|
/** Function that generates the cell virtual dom */
|
|
227
487
|
customCellGeneratorFunction?: (item: any, header: TableHeaderEntry) => HTMLElement;
|
|
228
488
|
/** Name of the property of the item object containing the `VueComponent` data */
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,yBAAiB,OAAO,CAAC;IACvB,KAAY,WAAW,GAAG,KAAK,GAAG,QAAQ,CAAC;IAC3C,KAAY,YAAY,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;IAC9D,KAAY,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"A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C7B;QACD,KAAY,kBAAkB,GAAG,gBAAgB,EAAE,CAAC;KACrD;CACF"}
|
package/package.json
CHANGED
|
@@ -1,36 +1,30 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
"name": "@corvina/vue-components-library",
|
|
3
|
+
"version": "1.0.0-beta.21",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"description": "Corvina Vue 3 components built on Vuetify",
|
|
7
|
+
"homepage": "https://docs.components.corvina.cloud/vue/",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/Corvina-R-D/corvina-components-library.git"
|
|
11
|
+
},
|
|
12
|
+
"keywords": ["corvina", "vue", "vue3", "components", "vuetify"],
|
|
13
|
+
"main": "vue-components-library.es.js",
|
|
14
|
+
"module": "vue-components-library.es.js",
|
|
15
|
+
"types": "vue-components-library.es.d.ts",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./vue-components-library.es.d.ts",
|
|
19
|
+
"import": "./vue-components-library.es.js"
|
|
11
20
|
},
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
"./icons-corvina-classes-font-face.css": "./icons-corvina-classes-font-face.css",
|
|
22
|
-
"./vue-components-library.css": "./vue-components-library.css",
|
|
23
|
-
"./settings.scss": "./settings.scss"
|
|
24
|
-
},
|
|
25
|
-
"files": [
|
|
26
|
-
"*",
|
|
27
|
-
"**/*"
|
|
28
|
-
],
|
|
29
|
-
"dependencies": {
|
|
30
|
-
"v3-infinite-loading": "^1.3.2"
|
|
31
|
-
},
|
|
32
|
-
"peerDependencies": {
|
|
33
|
-
"vue": "^3.5.0",
|
|
34
|
-
"vuetify": "^4.3.0"
|
|
35
|
-
}
|
|
21
|
+
"./icons-corvina-classes-font-face.css": "./icons-corvina-classes-font-face.css",
|
|
22
|
+
"./vue-components-library.css": "./vue-components-library.css",
|
|
23
|
+
"./settings.scss": "./settings.scss"
|
|
24
|
+
},
|
|
25
|
+
"files": ["*", "**/*"],
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"vue": "^3.5.0",
|
|
28
|
+
"vuetify": "^4.3.0"
|
|
36
29
|
}
|
|
30
|
+
}
|
package/settings.scss
CHANGED
|
@@ -11,35 +11,32 @@
|
|
|
11
11
|
$table-row-height: 48px,
|
|
12
12
|
$table-font-size: 0.75rem,
|
|
13
13
|
$data-table-footer-select-width: 82px,
|
|
14
|
-
|
|
14
|
+
|
|
15
15
|
$tabs-height: 40px,
|
|
16
16
|
$tab-align-tabs-title-margin: 0,
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
$button-height: 25px,
|
|
19
19
|
$button-border-radius: 0,
|
|
20
20
|
// Vuetify 3 defaults (Vuetify 4: no uppercase, MD3 letter spacing)
|
|
21
21
|
$button-text-transform: uppercase,
|
|
22
|
-
$button-text-letter-spacing: .0892857143em,
|
|
22
|
+
$button-text-letter-spacing: 0.0892857143em,
|
|
23
23
|
|
|
24
24
|
// Vuetify 4 default: 4px
|
|
25
25
|
$select-content-border-radius: 0,
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
$toolbar-title-margin: 0,
|
|
28
|
-
|
|
28
|
+
|
|
29
29
|
// $field-input-padding-bottom: 0px,
|
|
30
30
|
// $field-input-padding-top: 0px,
|
|
31
|
-
|
|
32
31
|
$list-item-padding: 0px 20px,
|
|
33
32
|
$list-item-one-line-min-height: 40px,
|
|
34
33
|
|
|
35
34
|
$icon-size: 1rem,
|
|
36
|
-
$icon-sizes:
|
|
37
|
-
(
|
|
35
|
+
$icon-sizes: (
|
|
38
36
|
'x-small': 1rem,
|
|
39
37
|
'small': 1.25rem,
|
|
40
38
|
'default': 1.5rem,
|
|
41
39
|
'large': 1.75rem,
|
|
42
40
|
'x-large': 2rem,
|
|
43
|
-
)
|
|
44
|
-
|
|
45
|
-
);
|
|
41
|
+
)
|
|
42
|
+
);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare function loadFonts(): Promise<void>;
|
|
2
|
-
//# sourceMappingURL=
|
|
2
|
+
//# sourceMappingURL=fonts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../../src/utils/fonts.ts"],"names":[],"mappings":"AA2CA,wBAAsB,SAAS,kBAK9B"}
|
package/utils/tree.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CORVINA } from '../index.js';
|
|
2
|
+
type Item = CORVINA.TREE.ITEM;
|
|
3
|
+
/**
|
|
4
|
+
* Applies a `move` of CvTree to `items`, in place: the item leaves its list and goes before or after the target, or
|
|
5
|
+
* at the end of the target's children. The item objects are kept (a reference to one, e.g. the selected one, stays
|
|
6
|
+
* valid).
|
|
7
|
+
*/
|
|
8
|
+
export declare function moveTreeItem(items: Item[], { item, target, position }: CORVINA.TREE.MOVE, itemChildren?: string): void;
|
|
9
|
+
/** The keys of the items with children, at any depth: `opened` for a tree all open. */
|
|
10
|
+
export declare function treeKeys(items: Item[], itemKey?: string, itemChildren?: string): CORVINA.TREE.KEY[];
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=tree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["../../../src/utils/tree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAe9B;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,IAAI,EAAE,EACb,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,EAC7C,YAAY,SAAa,GACxB,IAAI,CAWN;AAED,uFAAuF;AACvF,wBAAgB,QAAQ,CACtB,KAAK,EAAE,IAAI,EAAE,EACb,OAAO,SAAO,EACd,YAAY,SAAa,GACxB,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,CAOpB"}
|