@corvina/web-components-library 1.0.0-beta.7 → 1.0.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +63 -16
- package/README.md +12 -8
- package/index.d.ts +74 -8
- package/package.json +15 -19
- package/vscode.html-custom-data.json +1053 -36
- package/web-components-library.cjs.js +12 -12
- package/web-components-library.es.js +9505 -6847
- package/web-components-library.umd.js +12 -12
- package/web-components.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,10 @@ are kept).
|
|
|
14
14
|
|
|
15
15
|
Breaking changes:
|
|
16
16
|
|
|
17
|
+
- The components are registered as `CvTable`, `CvButton`, ... (were `CorvinaTable`, `CorvinaButton`, ...), and the named
|
|
18
|
+
exports and the files are renamed the same way. `app.use(components, { prefix: 'corvina' })` keeps registering the
|
|
19
|
+
0.x names (`<CorvinaTable>`, `<corvina-table>` in templates) while the app renames its templates; `GlobalComponents`
|
|
20
|
+
types both.
|
|
17
21
|
- `vue` (^3.5) and `vuetify` (^4.3) are peer dependencies, provided by the app: the package no longer
|
|
18
22
|
bundles Vuetify 3 (JS 554 → 188 KB, gzip 160 → 71 KB; the ExorFontIcon font is in it as a data URL).
|
|
19
23
|
- Modern syntax (see Browsers above): an app that targets older browsers transpiles the package with its
|
|
@@ -27,47 +31,81 @@ Breaking changes:
|
|
|
27
31
|
- The components use the Vuetify defaults of the app (e.g. the `variant` of fields), not the library ones.
|
|
28
32
|
- `--color-*` variables: the package CSS now has the components' palette (`--color-primary` #496177,
|
|
29
33
|
`--color-highlight` #01a3dd, ...). 0.2.4 ended with an older palette (#004688, #00b0c7, ...).
|
|
30
|
-
- `
|
|
34
|
+
- `CvTable` (paginated) is as tall as its rows, at most as its container, as in frontend-new: with few rows the
|
|
31
35
|
footer follows the last one, with more than fit it stays at the bottom while the rows scroll. It no longer fills
|
|
32
36
|
its container with a white area (`style="height: 100%"` on the root and on the `v-data-table-server` are gone).
|
|
33
37
|
A container that sizes the table with `height` keeps working; a flex container needs `min-height: 0` on its
|
|
34
38
|
items. With `infiniteScroll` the table still fills its container.
|
|
39
|
+
- `CvSelect` is a form field like `CvTextField`: `v-model` on `modelValue` (`update:modelValue`; were `model` and
|
|
40
|
+
`update:model`), `label`, room for the error messages below it unless `hideDetails` (it always hid them), the
|
|
41
|
+
frontend-new look instead of the app's Vuetify defaults. `items` that are `CORVINA.FIELD.ITEM` can be `disabled`; the
|
|
42
|
+
only option of an empty select is selected (INPUT-4, `autoSelect` `false` to keep it empty).
|
|
35
43
|
|
|
36
44
|
Added:
|
|
37
45
|
|
|
38
46
|
- `./settings.scss` export (Vuetify Sass settings of the library).
|
|
39
|
-
- `
|
|
47
|
+
- `CvTable` cell slots `item.<key>` (as in Vuetify's tables): a column's cells written in the template,
|
|
40
48
|
with `item`, `value`, `index` and `column` (`CORVINA.TABLE.CellSlotProps`). The slot replaces the content of the
|
|
41
49
|
column's `type`, now optional in `TableHeaderEntry`. Columns without a slot render as before.
|
|
42
|
-
- `
|
|
50
|
+
- `CvTabs` (`<cv-tabs>`): the tabs of a page with the Corvina look, `tabs` (`CORVINA.TABS.TAB[]`) and
|
|
43
51
|
`selected` owned by the parent (`update:selected` on a click), a content for each tab in the `tab.<value>` slots
|
|
44
52
|
(only the selected one is shown; web components: `slot="tab.<value>"` children), or one in the default slot, and
|
|
45
53
|
actions on the right of the bar in the `append` slot.
|
|
46
|
-
- `
|
|
54
|
+
- `CvDateRange` (`<cv-date-range>`): a range of days for the breadcrumb, `model` (`CORVINA.DATE_RANGE.RANGE`,
|
|
47
55
|
ISO days) owned by the parent (`update:model` from the accept button), `presets` (`CORVINA.DATE_RANGE.PRESET[]`) and
|
|
48
56
|
the start and end calendars; highlighted while a range is set, underlined as frontend-new's field (highlight color
|
|
49
57
|
on hover; the text from the start of the underline, both 16px in while a range is set).
|
|
50
|
-
- `
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
the
|
|
54
|
-
|
|
58
|
+
- `CvPanel` (`<cv-panel>`): the panels of frontend-new, `open` owned by the parent. `position` (`CORVINA.PANEL.POSITION`)
|
|
59
|
+
`right` (full height, `width` 340 by default, at most 75% of the window) or `bottom` (the lower half of the window).
|
|
60
|
+
`type` (`CORVINA.PANEL.TYPE`) `edit` creates or edits: a fixed header with the icon, `operation` over `title`, the
|
|
61
|
+
help button, cancel and confirm (OperationalComponent), the body scrolling under it; `confirm` leaves it open,
|
|
62
|
+
cancel emits `cancel` and `update:open`; `confirmDisabled`, `loading` (cancel and the body locked), `collapsed` (only
|
|
63
|
+
the header, in the bottom corner); the `help` slot opens on the left of the panel, the `actions` slot adds buttons to
|
|
64
|
+
the header. `type` `help` explains: the help icon, `title` and Close (`update:open`), the help in the default slot
|
|
65
|
+
with the docs look (in the web components the slotted content keeps the page's styles). Replaces `CvHelpPanel`
|
|
66
|
+
(`<cv-help-panel>`) of the betas: `<CvPanel position="bottom" type="help">`, same `title`, `closeLabel` and
|
|
67
|
+
`data-qa`.
|
|
68
|
+
- `CvInfiniteLoader` (`<cv-infinite-loader>`): the infinite scroll of the autocomplete filters, for the app's
|
|
55
69
|
own lists. It emits `infinite` (`$state`: `CORVINA.INFINITE_LOADER.StateHandler`) when it is visible in its scrolling
|
|
56
70
|
container, not again while a page loads; `loaded()`, `complete()` (stops it) and `error()` (retry button, `retryLabel`);
|
|
57
71
|
`identifier` starts it again from the first page. Slots `spinner`, `complete` and `error` (Vue: with `retry`).
|
|
58
|
-
- `
|
|
72
|
+
- `CvDialog` (`<cv-dialog>`): the dialogs of frontend-new's ConfirmedModal and ErrorModal, `open` owned by the
|
|
73
|
+
parent. `type` `confirm` (`CORVINA.DIALOG.TYPE`) asks before an action: Cancel then the confirm button, highlight or
|
|
74
|
+
alert with `destructive` (the title too), `loading` while the operation runs (both buttons disabled), `confirmationValue`
|
|
75
|
+
for a text to type before confirming; `confirm` leaves it open, Cancel emits `cancel` and `update:open`. `type` `inform`
|
|
76
|
+
reports a failure: the title in alert, the error illustration, one button that emits `update:open`, and the `details`
|
|
77
|
+
and `actions` slots. `title`, `message` (or the default slot), `confirmLabel`, `cancelLabel`, `maxWidth` (290 and 550
|
|
78
|
+
by default). In the web components the dialog stays in the shadow root.
|
|
79
|
+
- `CvSnackbar` (`<cv-snackbar>`): frontend-new's snackbar, `open` owned by the parent. `type` (`CORVINA.SNACKBAR.TYPE`)
|
|
80
|
+
`success`, `warning` or `error` sets the colour, `position` (`CORVINA.SNACKBAR.POSITION`) `bottom` or `top`; `title`,
|
|
81
|
+
`message`, a default slot below them. The close button (`closeLabel`) and the end of `timeout` (5000 ms, `-1` to stay)
|
|
82
|
+
emit `update:open` with `false`. In the web components it stays in the shadow root.
|
|
83
|
+
- Form fields, the look of frontend-new's side panel fields: `CvTextField` (`<cv-text-field>`; `type`
|
|
84
|
+
`CORVINA.FIELD.TYPE` `text`, `password` with the button that shows it, or `number`, which holds a number; `loading`,
|
|
85
|
+
`clearable`, `min`, `max`), `CvTextarea` (`<cv-textarea>`; `rows`, `autoGrow`, `noResize`), `CvCheckbox`
|
|
86
|
+
(`<cv-checkbox>`), `CvSwitch` (`<cv-switch>`) and `CvRadioGroup` (`<cv-radio-group>`; `items`
|
|
87
|
+
`CORVINA.FIELD.ITEM[]`, `inline`). Each has `modelValue` (`v-model`), `label`, `placeholder` (text fields), `help`
|
|
88
|
+
(the (?) with its tooltip), `disabled` (g4) with `disabledReason` (the tooltip that says why), `readonly`, `rules`
|
|
89
|
+
(`CORVINA.FIELD.RULE[]`), `errorMessages` and `hideDetails`. A `v-form` of the page sees them (Vue); in the web
|
|
90
|
+
components each field emits `update:valid` and has the methods `validate()`, `reset()` and `resetValidation()`.
|
|
91
|
+
`CvSelect` has them too (see the breaking changes), with `multiple` and `clearable`.
|
|
92
|
+
- `CvAutocomplete` (`<cv-autocomplete>`): a `CvSelect` that filters its `items` on what is typed (INPUT-2), or with a
|
|
93
|
+
`searchFunction` (`CORVINA.FIELD.SEARCH`, `(search, page) => items`, as the breadcrumb's autocomplete filters) searches
|
|
94
|
+
on the server, the next pages at the end of the menu. `noDataText`, `loadingText`.
|
|
95
|
+
- `CvBreadcrumb` sort, as in frontend-new: `allowedSorts` (`CORVINA.BREADCRUMB.SORT_BY[]`) shows a sort dropdown
|
|
59
96
|
and the direction button after the slot, `sort` (`CORVINA.BREADCRUMB.SORT`, `key` and `desc`) owned by the parent
|
|
60
97
|
(`update:sort`), `sortPlaceholder`. Without `allowedSorts` there is no sort.
|
|
61
|
-
- `
|
|
98
|
+
- `CvBreadcrumb` `filterBy`: the `key` of the filter selected in the filter key dropdown, selected again when
|
|
62
99
|
`allowedFilters` change (e.g. on another tab).
|
|
63
100
|
|
|
64
101
|
Fixed:
|
|
65
102
|
|
|
66
|
-
-
|
|
67
|
-
- `
|
|
103
|
+
- The icon buttons of `CvTable` and `CvBreadcrumb` no longer submit a form they are in (`type="button"`).
|
|
104
|
+
- `CvBreadcrumb`: a filter key selected in the dropdown is dropped when `allowedFilters` no longer contain it.
|
|
105
|
+
- `CvBreadcrumb` looks like frontend-new's breadcrumb: full-height light dividers (`CvBreadcrumbDivider` too,
|
|
68
106
|
was a 25px dark line), the filter area 860px wide and starting with a divider, the filter key dropdown 13em on the
|
|
69
107
|
g1 background without the underline, the filter value field 16px from it.
|
|
70
|
-
- `
|
|
108
|
+
- `CvTable` rows are highlighted on hover (Vuetify's standard `hover`), the expanded content is not, as in
|
|
71
109
|
frontend-new; the items-per-page select of the footer is underlined, with "Rows per page:" (Vuetify's
|
|
72
110
|
`dataTable.itemsPerPageText`, translated) and the selected value of its menu in the highlight color, as in
|
|
73
111
|
frontend-new.
|
|
@@ -92,11 +130,20 @@ Fixed:
|
|
|
92
130
|
bundled (JS -23 KB, gzip -7 KB).
|
|
93
131
|
- `loadFonts()` adds a `<link>` to the Google Fonts css2 API (Roboto, Material Symbols) instead of using
|
|
94
132
|
webfontloader: the `wf-loading`/`wf-active` classes are no longer set on `<html>`.
|
|
133
|
+
- Types: the props with a default are optional (`CvTable` `headers`, `items`, `itemsPerPage`, `currentPage`,
|
|
134
|
+
`itemsLength`; `CvTabs` `tabs`; `CvBreadcrumb` `icon`, `path`; `CvIcon` `icon`). The `searchFunction` of the
|
|
135
|
+
breadcrumb filters and `CORVINA.FIELD.SEARCH` return `unknown[]`, the `props` of the custom cell, header and filter
|
|
136
|
+
components are `Record<string, unknown>` (were `any`): the app's own types fit them as before.
|
|
95
137
|
|
|
96
138
|
### `@corvina/web-components-library` (from 0.2.4)
|
|
97
139
|
|
|
140
|
+
- `<cv-select>`: `modelValue` and `update:modelValue` (were `model` and `update:model`), and the other changes of
|
|
141
|
+
`CvSelect` in the Vue package.
|
|
142
|
+
- The elements are `<cv-table>`, `<cv-button>`, ... (were `<corvina-table>`, ...): the fourth parameter of
|
|
143
|
+
`initCorvinaComponents(locale, shouldLoadTheme, shouldLoadFonts, prefix)` is the start of the tags, `'corvina'` for
|
|
144
|
+
the 0.x ones. The VS Code custom data lists the `cv-` tags.
|
|
98
145
|
- Vuetify 4 and Vue 3.5 bundled (were Vuetify 3.7 and Vue 3.5). JS 1.06 → 1.38 MB (gzip 265 → 344 KB),
|
|
99
|
-
mostly Vuetify 4 itself (its date picker for `
|
|
146
|
+
mostly Vuetify 4 itself (its date picker for `CvDateRange` included).
|
|
100
147
|
- Runs on the browsers listed above (Browsers): 0.2.4 was transpiled to ES2016.
|
|
101
148
|
- No dependencies declared: Vue, Vuetify and the other libraries are bundled (0.2.4 declared `vue` and
|
|
102
149
|
`vuetify` 3, installed without being used).
|
|
@@ -109,7 +156,7 @@ Fixed:
|
|
|
109
156
|
- The components set their base typography on their host instead of inheriting it from that page CSS:
|
|
110
157
|
`box-sizing: border-box`, `font-family: var(--v-font-body, "Roboto", sans-serif)`, `line-height: 1.5`.
|
|
111
158
|
On a page with its own `body` font the components now use Roboto; to change it, style the element
|
|
112
|
-
(e.g. `
|
|
159
|
+
(e.g. `cv-table { font-family: ... }`).
|
|
113
160
|
- Table footer items-per-page menu attached inside the shadow root without patching Vuetify.
|
|
114
161
|
- The package only contains the files it needs (37 → 13): no type declarations of internal modules, no
|
|
115
162
|
favicon and logo.
|
package/README.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
# Corvina Components Library
|
|
2
|
+
|
|
2
3
|
This library is a collection of web components aimed to be used in the Corvina App.
|
|
3
4
|
|
|
4
5
|
# Documentation
|
|
@@ -6,7 +7,7 @@ This library is a collection of web components aimed to be used in the Corvina A
|
|
|
6
7
|
The components documentation and live examples are available in the [Storybook for web components](https://docs.components.corvina.cloud/).
|
|
7
8
|
The Vue components version is available [here](https://docs.components.corvina.cloud/vue/).
|
|
8
9
|
|
|
9
|
-
# Installation
|
|
10
|
+
# Installation
|
|
10
11
|
|
|
11
12
|
To install the package run the following command:
|
|
12
13
|
|
|
@@ -19,13 +20,16 @@ npm install @corvina/web-components-library
|
|
|
19
20
|
Add the following code to your main.js file:
|
|
20
21
|
|
|
21
22
|
```js
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
import CorvinaComponents from '@corvina/web-components-library';
|
|
24
|
+
import '@corvina/web-components-library/web-components-library.css';
|
|
25
|
+
// locale: string = 'en', shouldLoadTheme: boolean = false, shouldLoadFonts: boolean = false, prefix: string = 'cv'
|
|
26
|
+
CorvinaComponents.initCorvinaComponents('en');
|
|
26
27
|
```
|
|
28
|
+
|
|
29
|
+
The elements are `<cv-table>`, `<cv-button>`, ...: `prefix` changes the start of the tags, e.g. `'corvina'` for the
|
|
30
|
+
0.x tags (`<corvina-table>`). The components are defined once per page, with the prefix of the first call.
|
|
27
31
|
If you use Vuetify in the hosting app set shouldLoadTheme to false otherwise to true.
|
|
28
|
-
If you already load the fonts in the hosting app (Roboto, MaterialSymbols, ExorFontIcon) set shouldLoadFonts to false otherwise to true.
|
|
32
|
+
If you already load the fonts in the hosting app (Roboto, MaterialSymbols, ExorFontIcon) set shouldLoadFonts to false otherwise to true.
|
|
29
33
|
|
|
30
34
|
The components draw the Corvina icons with ligatures, so they do not need `icons-corvina-classes-font-face.css`:
|
|
31
35
|
that file is only for Corvina icons used as CSS classes (`<i class="ecc-T-Add"></i>`) in the hosting app markup.
|
|
@@ -39,7 +43,7 @@ import "@corvina/web-components-library/icons-corvina-classes-font-face.css"
|
|
|
39
43
|
|
|
40
44
|
Vue and Vuetify 4 are bundled: the package has no dependencies. `web-components-library.css` only defines the
|
|
41
45
|
`--color-*` variables: the page keeps its own styles. The components use Roboto (`--v-font-body`) and line
|
|
42
|
-
height 1.5 whatever the page font; style the element to change them (e.g. `
|
|
46
|
+
height 1.5 whatever the page font; style the element to change them (e.g. `cv-table { font-family: ... }`). The bundle also runs without a bundler
|
|
43
47
|
(`<script type="module">` importing `web-components-library.es.js`).
|
|
44
48
|
|
|
45
49
|
# VS Code IntelliSense
|
|
@@ -55,4 +59,4 @@ Add it to the `.vscode/settings.json` of your project:
|
|
|
55
59
|
```
|
|
56
60
|
|
|
57
61
|
Reload the VS Code window after changing the setting.
|
|
58
|
-
Attributes marked as
|
|
62
|
+
Attributes marked as _complex value_ (arrays and objects, e.g. the table `headers` and `items`) must be set as JavaScript properties, not as HTML attributes.
|
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. */
|
|
@@ -91,7 +91,7 @@ export declare namespace CORVINA {
|
|
|
91
91
|
/** Name of the Vue component or Vue component definition */
|
|
92
92
|
component: string | Component;
|
|
93
93
|
/** Vue component's props */
|
|
94
|
-
props?: Record<string,
|
|
94
|
+
props?: Record<string, unknown>;
|
|
95
95
|
/** Name of the prop that will contain the row item */
|
|
96
96
|
itemPropName?: string;
|
|
97
97
|
/** Name of the prop that indicates where the component should be positioned */
|
|
@@ -116,7 +116,7 @@ export declare namespace CORVINA {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
namespace TABS {
|
|
119
|
-
/** A tab of
|
|
119
|
+
/** A tab of CvTabs. */
|
|
120
120
|
interface TAB {
|
|
121
121
|
/** Unique value of the tab: `selected` and the `update:selected` event use it */
|
|
122
122
|
value: string | number;
|
|
@@ -127,14 +127,14 @@ export declare namespace CORVINA {
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
namespace DATE_RANGE {
|
|
130
|
-
/** A range of days of
|
|
130
|
+
/** A range of days of CvDateRange, both days included. */
|
|
131
131
|
interface RANGE {
|
|
132
132
|
/** First day, ISO `yyyy-MM-dd` */
|
|
133
133
|
start: string;
|
|
134
134
|
/** Last day, ISO `yyyy-MM-dd` */
|
|
135
135
|
end: string;
|
|
136
136
|
}
|
|
137
|
-
/** A preset of
|
|
137
|
+
/** A preset of CvDateRange: a button above the calendars that selects its range. */
|
|
138
138
|
interface PRESET {
|
|
139
139
|
/** Text of the button */
|
|
140
140
|
title: string;
|
|
@@ -142,9 +142,75 @@ export declare namespace CORVINA {
|
|
|
142
142
|
range: RANGE | null;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
+
namespace DIALOG {
|
|
146
|
+
/** What a CvDialog is for (design system FEEDBACK-1, FEEDBACK-3). */
|
|
147
|
+
enum TYPE {
|
|
148
|
+
/** Asks: Cancel and a confirm button, before an important or destructive action */
|
|
149
|
+
CONFIRM = "confirm",
|
|
150
|
+
/** Informs: the failure of an operation, with one button to acknowledge it */
|
|
151
|
+
INFORM = "inform"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
namespace FIELD {
|
|
155
|
+
/** A validation rule of a field (Vuetify's): `true`, or the message of the error. */
|
|
156
|
+
type RULE = ((value: any) => true | string) | ((value: any) => Promise<true | string>);
|
|
157
|
+
/** What a CvTextField holds. */
|
|
158
|
+
enum TYPE {
|
|
159
|
+
TEXT = "text",
|
|
160
|
+
/** Hidden, with a button that shows it */
|
|
161
|
+
PASSWORD = "password",
|
|
162
|
+
/** A number: `modelValue` is a number, `null` when empty */
|
|
163
|
+
NUMBER = "number"
|
|
164
|
+
}
|
|
165
|
+
/** A choice of a CvRadioGroup, CvSelect or CvAutocomplete (which also take other objects, see `itemTitle`). */
|
|
166
|
+
interface ITEM {
|
|
167
|
+
title: string;
|
|
168
|
+
value: string | number | boolean;
|
|
169
|
+
disabled?: boolean;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* The search of a CvAutocomplete on the server: the items matching `search`, page `page` (from 0). An empty page
|
|
173
|
+
* ends the list. As the `searchFunction` of a CORVINA.BREADCRUMB.FILTER_BY.
|
|
174
|
+
*/
|
|
175
|
+
type SEARCH = (search: string, page: number) => unknown[] | Promise<unknown[]>;
|
|
176
|
+
}
|
|
177
|
+
namespace SNACKBAR {
|
|
178
|
+
/** What a CvSnackbar reports, which sets its colour. */
|
|
179
|
+
enum TYPE {
|
|
180
|
+
/** An operation succeeded (design system FEEDBACK-2) */
|
|
181
|
+
SUCCESS = "success",
|
|
182
|
+
/** Something the user should know, that blocks nothing */
|
|
183
|
+
WARNING = "warning",
|
|
184
|
+
/** A minor failure; an operation that failed is reported with an informing CvDialog (FEEDBACK-3) */
|
|
185
|
+
ERROR = "error"
|
|
186
|
+
}
|
|
187
|
+
/** Where a CvSnackbar appears. */
|
|
188
|
+
enum POSITION {
|
|
189
|
+
/** Centred at the bottom of the window */
|
|
190
|
+
BOTTOM = "bottom",
|
|
191
|
+
/** Centred at the top, below the bars of the page */
|
|
192
|
+
TOP = "top"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
namespace PANEL {
|
|
196
|
+
/** Where a CvPanel slides in from. */
|
|
197
|
+
enum POSITION {
|
|
198
|
+
/** The right edge, full height (design system PANEL-1) */
|
|
199
|
+
RIGHT = "right",
|
|
200
|
+
/** The lower half of the window, full width (the help of a page, HELP-3) */
|
|
201
|
+
BOTTOM = "bottom"
|
|
202
|
+
}
|
|
203
|
+
/** What a CvPanel is for, which sets its header. */
|
|
204
|
+
enum TYPE {
|
|
205
|
+
/** Creates or edits: the header holds cancel and confirm (PANEL-1, PANEL-3) */
|
|
206
|
+
EDIT = "edit",
|
|
207
|
+
/** Explains: the help icon, a title and Close (HELP-3, HELP-5) */
|
|
208
|
+
HELP = "help"
|
|
209
|
+
}
|
|
210
|
+
}
|
|
145
211
|
namespace INFINITE_LOADER {
|
|
146
212
|
/**
|
|
147
|
-
* Argument of the `infinite` event of
|
|
213
|
+
* Argument of the `infinite` event of CvInfiniteLoader: when the page is fetched call `loaded()` (more pages may
|
|
148
214
|
* follow), `complete()` (no more pages) or `error()` (the loader shows a retry button).
|
|
149
215
|
*/
|
|
150
216
|
interface StateHandler {
|
|
@@ -233,7 +299,7 @@ export declare namespace CORVINA {
|
|
|
233
299
|
/** Name of the Vue component or Vue component definition */
|
|
234
300
|
component: string | Component;
|
|
235
301
|
/** Vue component's props */
|
|
236
|
-
props?: Record<string,
|
|
302
|
+
props?: Record<string, unknown>;
|
|
237
303
|
/** Name of the prop that will contain the row item */
|
|
238
304
|
itemPropName?: string;
|
|
239
305
|
}
|
|
@@ -253,7 +319,7 @@ export declare namespace CORVINA {
|
|
|
253
319
|
/** Name of the Vue component or Vue component definition */
|
|
254
320
|
component: string | Component;
|
|
255
321
|
/** Vue component's props */
|
|
256
|
-
props?: Record<string,
|
|
322
|
+
props?: Record<string, unknown>;
|
|
257
323
|
}
|
|
258
324
|
/**
|
|
259
325
|
* Interface representing a table header entry.
|
package/package.json
CHANGED
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"**/*"
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
|
|
2
|
+
"name": "@corvina/web-components-library",
|
|
3
|
+
"version": "1.0.0-beta.9",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Corvina web components (custom elements)",
|
|
6
|
+
"homepage": "https://docs.components.corvina.cloud/",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/Corvina-R-D/corvina-components-library.git"
|
|
10
|
+
},
|
|
11
|
+
"keywords": ["corvina", "web-components", "custom-elements", "vuetify"],
|
|
12
|
+
"main": "web-components-library.umd.js",
|
|
13
|
+
"module": "web-components-library.es.js",
|
|
14
|
+
"types": "web-components-library.es.d.ts",
|
|
15
|
+
"files": ["*", "**/*"]
|
|
16
|
+
}
|