@corvina/vue-components-library 1.0.0-beta.2 → 1.0.0-beta.20

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.
Files changed (78) hide show
  1. package/CHANGELOG.md +274 -4
  2. package/README.md +8 -3
  3. package/components/CvAccordion.ce.vue.d.ts +29 -0
  4. package/components/CvAccordion.ce.vue.d.ts.map +1 -0
  5. package/components/CvAppCard.ce.vue.d.ts +32 -0
  6. package/components/CvAppCard.ce.vue.d.ts.map +1 -0
  7. package/components/CvAutocomplete.ce.vue.d.ts +62 -0
  8. package/components/CvAutocomplete.ce.vue.d.ts.map +1 -0
  9. package/components/{CorvinaBreadcrumb.ce.vue.d.ts → CvBreadcrumb.ce.vue.d.ts} +20 -3
  10. package/components/CvBreadcrumb.ce.vue.d.ts.map +1 -0
  11. package/components/{CorvinaBreadcrumbDivider.ce.vue.d.ts → CvBreadcrumbDivider.ce.vue.d.ts} +1 -1
  12. package/components/CvBreadcrumbDivider.ce.vue.d.ts.map +1 -0
  13. package/components/{CorvinaButton.ce.vue.d.ts → CvButton.ce.vue.d.ts} +10 -2
  14. package/components/CvButton.ce.vue.d.ts.map +1 -0
  15. package/components/CvButtonToggle.ce.vue.d.ts +28 -0
  16. package/components/CvButtonToggle.ce.vue.d.ts.map +1 -0
  17. package/components/CvCheckbox.ce.vue.d.ts +36 -0
  18. package/components/CvCheckbox.ce.vue.d.ts.map +1 -0
  19. package/components/CvChip.ce.vue.d.ts +17 -0
  20. package/components/CvChip.ce.vue.d.ts.map +1 -0
  21. package/components/CvCombobox.ce.vue.d.ts +91 -0
  22. package/components/CvCombobox.ce.vue.d.ts.map +1 -0
  23. package/components/CvDateRange.ce.vue.d.ts +36 -0
  24. package/components/CvDateRange.ce.vue.d.ts.map +1 -0
  25. package/components/CvDialog.ce.vue.d.ts +52 -0
  26. package/components/CvDialog.ce.vue.d.ts.map +1 -0
  27. package/components/{CorvinaIcon.ce.vue.d.ts → CvIcon.ce.vue.d.ts} +9 -2
  28. package/components/CvIcon.ce.vue.d.ts.map +1 -0
  29. package/components/CvInfiniteLoader.ce.vue.d.ts +30 -0
  30. package/components/CvInfiniteLoader.ce.vue.d.ts.map +1 -0
  31. package/components/CvKeyValueField.ce.vue.d.ts +31 -0
  32. package/components/CvKeyValueField.ce.vue.d.ts.map +1 -0
  33. package/components/CvPanel.ce.vue.d.ts +78 -0
  34. package/components/CvPanel.ce.vue.d.ts.map +1 -0
  35. package/components/CvQuota.ce.vue.d.ts +20 -0
  36. package/components/CvQuota.ce.vue.d.ts.map +1 -0
  37. package/components/CvRadioGroup.ce.vue.d.ts +56 -0
  38. package/components/CvRadioGroup.ce.vue.d.ts.map +1 -0
  39. package/components/CvSelect.ce.vue.d.ts +56 -0
  40. package/components/CvSelect.ce.vue.d.ts.map +1 -0
  41. package/components/CvSnackbar.ce.vue.d.ts +36 -0
  42. package/components/CvSnackbar.ce.vue.d.ts.map +1 -0
  43. package/components/CvStepper.ce.vue.d.ts +44 -0
  44. package/components/CvStepper.ce.vue.d.ts.map +1 -0
  45. package/components/CvSwitch.ce.vue.d.ts +38 -0
  46. package/components/CvSwitch.ce.vue.d.ts.map +1 -0
  47. package/components/{CorvinaTable.ce.vue.d.ts → CvTable.ce.vue.d.ts} +39 -15
  48. package/components/CvTable.ce.vue.d.ts.map +1 -0
  49. package/components/CvTabs.ce.vue.d.ts +32 -0
  50. package/components/CvTabs.ce.vue.d.ts.map +1 -0
  51. package/components/CvTextField.ce.vue.d.ts +56 -0
  52. package/components/CvTextField.ce.vue.d.ts.map +1 -0
  53. package/components/CvTextarea.ce.vue.d.ts +44 -0
  54. package/components/CvTextarea.ce.vue.d.ts.map +1 -0
  55. package/components/CvTree.ce.vue.d.ts +59 -0
  56. package/components/CvTree.ce.vue.d.ts.map +1 -0
  57. package/components/CvWeekdays.ce.vue.d.ts +27 -0
  58. package/components/CvWeekdays.ce.vue.d.ts.map +1 -0
  59. package/index.d.ts +266 -6
  60. package/index.d.ts.map +1 -1
  61. package/package.json +27 -33
  62. package/settings.scss +8 -11
  63. package/utils/{webfontloader.d.ts → fonts.d.ts} +1 -1
  64. package/utils/fonts.d.ts.map +1 -0
  65. package/utils/tree.d.ts +12 -0
  66. package/utils/tree.d.ts.map +1 -0
  67. package/vue-components-library.css +1 -1
  68. package/vue-components-library.es.js +4343 -1650
  69. package/vue-components.d.ts +120 -15
  70. package/vue-components.d.ts.map +1 -1
  71. package/components/CorvinaBreadcrumb.ce.vue.d.ts.map +0 -1
  72. package/components/CorvinaBreadcrumbDivider.ce.vue.d.ts.map +0 -1
  73. package/components/CorvinaButton.ce.vue.d.ts.map +0 -1
  74. package/components/CorvinaIcon.ce.vue.d.ts.map +0 -1
  75. package/components/CorvinaSelect.ce.vue.d.ts +0 -25
  76. package/components/CorvinaSelect.ce.vue.d.ts.map +0 -1
  77. package/components/CorvinaTable.ce.vue.d.ts.map +0 -1
  78. package/utils/webfontloader.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -14,8 +14,12 @@ 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
- bundles Vuetify 3 (JS 554 → 202 KB, gzip 160 → 76 KB; the ExorFontIcon font is in it as a data URL).
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
20
24
  bundler (Vite does it by itself in the build).
21
25
  - ESM only: the CommonJS and UMD builds are gone (`exports` has no `require` condition).
@@ -27,35 +31,301 @@ 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, ...).
34
+ - `CvTable` (paginated) is as tall as its rows, at most as its container, as in frontend-new: with few rows the
35
+ footer follows the last one, with more than fit it stays at the bottom while the rows scroll. It no longer fills
36
+ its container with a white area (`style="height: 100%"` on the root and on the `v-data-table-server` are gone).
37
+ A container that sizes the table with `height` keeps working; a flex container needs `min-height: 0` on its
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).
43
+ - A disabled `CvButton` is `--color-g4` (text, icon, border; the background of `filled`), without Vuetify's opacity
44
+ (STATE-3): it was g2 at 26% opacity. Disabled menu entries of `CvTable` are g4 too (were Vuetify's 60% opacity).
45
+ - `CvBreadcrumb` on a mobile screen (Vuetify's `mobile`, below 1145px) shows the chips row only when it has chips, as
46
+ frontend-new: an empty 40px row was always there.
47
+ - `CvBreadcrumb` on a phone (640px and below) as frontend-new's Device > VPN: the path with the page's controls when
48
+ they fit, the sort as wide as its row, the search (or the chips' field) on a row of its own, the whole width (it
49
+ stopped at 336px).
50
+ - `CvBreadcrumb` on a desktop screen shows the chips row also without `showFilterChips`, as frontend-new (its
51
+ `showTagBar`): a tab without filters no longer moves its content 40px up. `showChipsRow` `false` hides it.
52
+ - The chips of the applied filters (`CvBreadcrumb`, `CvTable` filter bar) look like frontend-new's: 12px text (was
53
+ 13px), 3px 5px padding (was 12px 16px), 2px apart (was 4px) and 8px more between two filters, the ✕ right after the
54
+ text and raised (was in the corner). The remove-all chip has a g2 border (was g4) and a 14px ✕ (was 20px).
55
+ - The value field of an autocomplete filter (`CvBreadcrumb`, `CvTable` filter bar) looks like frontend-new's: where the
56
+ text field was, with no gap after the filter key (it had 8px more on each side, `mx-2`, and its own 16px padding),
57
+ underlined with no background (was Vuetify's filled field) and no arrow (`append-icon=""`), 12px text.
58
+ - `CvTable` filter bar as `CvBreadcrumb`'s (frontend-new's), no longer its own look (ECC-6885): the chips on the right
59
+ next to remove-all (were on the left, `justify-slide-group-left`); the filter key is the 13em g1 select with no line
60
+ (was Vuetify's filled select, half the bar, its line 4px under the value field's), the value field 16px after it
61
+ and taking the rest. The key's background starts at the edge of the table and its text lines up with the search and
62
+ the first column (were 16px further in).
63
+ - `CvTable` text (cells, footer) is `--color-dk`, as frontend-new's tables: it was Vuetify's 87% black.
64
+ - `CvButton` text is in sentence case ("Add action"), as frontend-new's buttons (TYPE-3): it was uppercase (the
65
+ `$button-text-transform` of the Vuetify settings, which stays for the app's own `v-btn`).
30
66
 
31
67
  Added:
32
68
 
33
69
  - `./settings.scss` export (Vuetify Sass settings of the library).
70
+ - `CvDateRange` `open` (`v-model:open`): the page opens the calendars, e.g. as soon as it shows the field, as
71
+ frontend-new's "Expiring in…" filter of the renewals. `update:open` tells when the user opens or closes them.
72
+ - `CvTable`: a table in an expanded row (a sub-table, the next level of a tree) is as tall as its rows and does not
73
+ scroll on its own; only the outer table scrolls, with its footer in sight. Its `max-height: 100%` could resolve
74
+ against the cell and clip it to one row.
75
+ - `CvTable`: on a row that does not expand, the cell of the expand column is as wide as on the others. Without headers
76
+ the first row gives the widths of a fixed table, and a first row that did not expand shifted every column.
77
+ - `CvIcon` `tooltip` (`tooltipLocation`, `attach`): what the icon stands for, on hover and as its accessible name
78
+ (ICON-3, HELP-1), e.g. the kind of a row; without it, the icon only as before.
79
+ - `CvTable` `MENU` cells: a row whose entries are empty has no three dots (TABLE-4), e.g. the folders of a tree whose
80
+ instances have a menu.
81
+ - `CvTable` `infiniteScroll`: the end of the rows writes nothing (was "No more data to load", in English in every
82
+ locale and in Vuetify's grey), as frontend-new's infinite tables; the spinner while more rows load stays (WAIT-4).
83
+ - `CvTable` `infiniteScroll`: the rows scroll. The virtual table did not measure them (its `itemRef` was not on the
84
+ row), drew the first ten without room below, and kept its end in sight: every page was asked at once.
85
+ - `CvTable` `infiniteScroll` with `fixedHeader`: the header stays while the rows scroll (the virtual table did not get
86
+ the prop).
87
+ - `CvTable` `infiniteScroll`: no empty row after the last one once every row is loaded, nor under the no-data text.
88
+ The loader's row kept the height and the line of a row with nothing in it; it now holds only the spinner, while more
89
+ rows are to come.
90
+ - `CvTable` `fixedLayout`: the widths of the columns are also in a `colgroup`, so that they hold without the header
91
+ row: a nested table (`hideHeaders`) with icon or action columns lines up with its parent.
92
+ - `CvTable` `hideHeaders`: no header row, for a table nested in the expanded row of another with the same columns, as
93
+ frontend-new's sub-organizations (a tree drawn as tables, TABLE-6). With `fixedLayout` its columns line up with the
94
+ parent's.
95
+ - `CvTable` `fixedLayout`: the columns keep their widths whatever the rows (`table-layout: fixed`, as frontend-new's
96
+ main tables), the `width` of the headers and the room left shared by the others; a word longer than its column goes
97
+ to the next line. Without it the widths follow the rows shown, and change from one page to the next. The tooltips and
98
+ menus of the headers go in the table, as its other menus: in the header row their container made one more column. It
99
+ applies to the table's own rows only: a table in an expanded row lays out its own columns.
100
+ - `CvTable` `noDataText`: the text in place of the rows when there are none (FEEDBACK-7: "You have no devices yet"
101
+ for an empty collection, "No device matches search" for a search that matched nothing). Without it, Vuetify's
102
+ "No data available" as before.
103
+ - `CvTable` cell slots `item.<key>` (as in Vuetify's tables): a column's cells written in the template,
104
+ with `item`, `value`, `index` and `column` (`CORVINA.TABLE.CellSlotProps`). The slot replaces the content of the
105
+ column's `type`, now optional in `TableHeaderEntry`. Columns without a slot render as before.
106
+ - `CvTabs` (`<cv-tabs>`): the tabs of a page with the Corvina look, `tabs` (`CORVINA.TABS.TAB[]`) and
107
+ `selected` owned by the parent (`update:selected` on a click), a content for each tab in the `tab.<value>` slots
108
+ (only the selected one is shown; web components: `slot="tab.<value>"` children), or one in the default slot, and
109
+ actions on the right of the bar in the `append` slot.
110
+ - `CvDateRange` (`<cv-date-range>`): a range of days for the breadcrumb, `model` (`CORVINA.DATE_RANGE.RANGE`,
111
+ ISO days) owned by the parent (`update:model` from the accept button), `presets` (`CORVINA.DATE_RANGE.PRESET[]`) and
112
+ the start and end calendars; highlighted while a range is set, underlined as frontend-new's field (highlight color
113
+ on hover; the text from the start of the underline, both 16px in while a range is set). `emptyLabel` ("Select date"
114
+ by default) is a calendar's header while it has no day, in place of Vuetify's "Enter date", which suggested typing.
115
+ - `CvPanel` (`<cv-panel>`): the panels of frontend-new, `open` owned by the parent. `position`
116
+ (`CORVINA.PANEL.POSITION`) `right` (full height, `width` 340 by default, at most 75% of the window) or `bottom` (the
117
+ lower half of the window). `type` (`CORVINA.PANEL.TYPE`) `edit` creates or edits: a fixed header with the icon,
118
+ `operation` over `title`, the help button, cancel and confirm (OperationalComponent), the body scrolling under it;
119
+ `confirm` leaves it open, cancel emits `cancel` and `update:open`; `confirmDisabled` (with `confirmDisabledReason`,
120
+ its tooltip, STATE-2), `readonly` (no confirm: a read-only user views the object, STATE-4, or the panel only shows
121
+ data), `attach` (rendered in another element, e.g. an app's overlay layer above its host page's bars), `loading`
122
+ (cancel and the body locked), `collapsed` (only the header, in the bottom corner); the `help` slot opens on the left
123
+ of the panel (`helpWidth`, 480 by default), the `actions` slot adds buttons to the header; `helpOpen`
124
+ (`update:helpOpen`) lets the page open the help too. `type` `help` explains: the help icon, `title` and Close
125
+ (`update:open`), the help in the default slot with the docs look (in the web components the slotted content keeps the
126
+ page's styles). Replaces `CvHelpPanel` (`<cv-help-panel>`) of the betas: `<CvPanel position="bottom" type="help">`,
127
+ same `title`, `closeLabel` and `data-qa`.
128
+ - `CvInfiniteLoader` (`<cv-infinite-loader>`): the infinite scroll of the autocomplete filters, for the app's
129
+ own lists. It emits `infinite` (`$state`: `CORVINA.INFINITE_LOADER.StateHandler`) when it is visible in its scrolling
130
+ container, not again while a page loads; `loaded()`, `complete()` (stops it) and `error()` (retry button, `retryLabel`);
131
+ `identifier` starts it again from the first page. Slots `spinner`, `complete` and `error` (Vue: with `retry`).
132
+ - `CvDialog` (`<cv-dialog>`): the dialogs of frontend-new's ConfirmedModal and ErrorModal, `open` owned by the
133
+ parent. `type` `confirm` (`CORVINA.DIALOG.TYPE`) asks before an action: Cancel then the confirm button, highlight or
134
+ alert with `destructive` (the title too), `loading` while the operation runs (both buttons disabled), `confirmationValue`
135
+ for a text to type before confirming; `confirm` leaves it open, Cancel emits `cancel` and `update:open`. `type` `inform`
136
+ reports a failure: the title in alert, the error illustration, one button that emits `update:open`, and the `details`
137
+ and `actions` slots. `title`, `message` (or the default slot), `confirmLabel`, `cancelLabel`, `maxWidth` (290 and 550
138
+ by default). In the web components the dialog stays in the shadow root.
139
+ - `CvSnackbar` (`<cv-snackbar>`): frontend-new's snackbar, `open` owned by the parent. `type` (`CORVINA.SNACKBAR.TYPE`)
140
+ `success`, `warning` or `error` sets the colour, `position` (`CORVINA.SNACKBAR.POSITION`) `bottom` or `top`; `title`,
141
+ `message`, a default slot below them. The close button (`closeLabel`) and the end of `timeout` (5000 ms, `-1` to stay)
142
+ emit `update:open` with `false`. In the web components it stays in the shadow root.
143
+ - Form fields, the look of frontend-new's side panel fields: `CvTextField` (`<cv-text-field>`; `type`
144
+ `CORVINA.FIELD.TYPE` `text`, `password` with the button that shows it, or `number`, which holds a number; `loading`,
145
+ `clearable`, `min`, `max`, `hint`, `required`), `CvTextarea` (`<cv-textarea>`; `rows`, `autoGrow`, `noResize`),
146
+ `CvCheckbox` (`<cv-checkbox>`), `CvSwitch` (`<cv-switch>`) and `CvRadioGroup` (`<cv-radio-group>`; `items`
147
+ `CORVINA.FIELD.ITEM[]`, `inline`). Each has `modelValue` (`v-model`), `label`, `placeholder` (text fields), `help`
148
+ (the (?) with its tooltip), `disabled` (g4) with `disabledReason` (the tooltip that says why), `readonly`, `rules`
149
+ (`CORVINA.FIELD.RULE[]`), `errorMessages` and `hideDetails`. A `v-form` of the page sees them (Vue); in the web
150
+ components each field emits `update:valid` and has the methods `validate()`, `reset()` and `resetValidation()`.
151
+ `CvSelect` has them too (see the breaking changes), with `multiple` and `clearable`.
152
+ - `CvAutocomplete` (`<cv-autocomplete>`): a `CvSelect` that filters its `items` on what is typed (INPUT-2), or with a
153
+ `searchFunction` (`CORVINA.FIELD.SEARCH`, `(search, page) => items`, as the breadcrumb's autocomplete filters) searches
154
+ on the server, the next pages at the end of the menu. `noDataText`, `loadingText`.
155
+ - `CvTree` (`<cv-tree>`): a tree with the look of frontend-new's (34px rows, 24px levels with a guide line), or a list
156
+ when no item has children. `items` with `itemKey`, `itemTitle` and `itemChildren`; `opened` and `selected` owned by
157
+ the parent (`update:opened`, `update:selected`); arrow keys, Enter. `draggable`: drag and drop with the Pointer
158
+ Events (mouse, pen, touch; no library), Alt + arrows among the siblings, before, after or inside an item that holds
159
+ children, `canDrop` (`CORVINA.TREE.MOVE`) to refuse a drop, `handle` to drag from a handle only; it emits `move`, the
160
+ parent moves the item (`moveTreeItem(items, move, itemChildren)` in place; `treeKeys` lists the keys to open all).
161
+ Vue: `label` and `append` (row actions, on hover) slots; the web components show the titles.
162
+ - `CvCombobox` (`<cv-combobox>`): a list of values, frontend-new's `VChipComponent`: the field only adds, each value
163
+ is a chip under it (its title, a remove button; `removeLabel`). From `items` or a `searchFunction`, as
164
+ `CvAutocomplete` (the added ones are not listed again), or `freeText`: Enter or the add button (`addLabel`) adds what
165
+ is typed once `entryRules` accept it. `hint` while the list is empty; `rules` check the array; the other props of
166
+ the form fields. `variant: list` (`CORVINA.COMBOBOX.VARIANT`) shows a line per value instead of the chips, as
167
+ frontend-new's sharing lists: the remove button, the icon of its item (`itemIcon`), the title, and on the right the
168
+ `itemActions` (`CORVINA.COMBOBOX.ITEM_ACTION`, `action` event) or the `item-actions` slot;
169
+ `emptyText` while it is empty; read-only, only the lines.
170
+ - `CvButtonToggle` (`<cv-button-toggle>`): frontend-new's pair of buttons beside a field (`>` or `≥` of a bound, `%` or
171
+ `Abs` of a deadband): `items` (`CORVINA.FIELD.ITEM` with a `label` for a symbol), the chosen one in g2, the arrow
172
+ keys choose the next; `label` names the group; `disabled` with `disabledReason`, `readonly`.
173
+ - `CvWeekdays` (`<cv-weekdays>`): frontend-new's active time period, a checkbox a day under its short name; the value
174
+ is the chosen days as `Date.getDay()` numbers them (Sunday 0), in order. `dayNames` (Sunday first, English by
175
+ default), `firstDay` (Monday by default).
176
+ - `CvPanel` `resizable`: an edit panel on the right that the user widens from its left edge, as frontend-new's
177
+ SidePanel: between its `width` and the window but a 40px strip, double click for the widest and back, arrow keys
178
+ by 40px; the help beside it follows. `storageKey` keeps the width in the browser for the next time (without it the
179
+ panel opens again at its `width`); `resizeLabel` names the edge.
180
+ - `CvAccordion` (`<cv-accordion>`): a section of a side panel (design system PANEL-6), frontend-new's expansion panels
181
+ (UsersEnabledSidePanel): on g3, a 40px header with its `title` that opens and closes the content (the default slot)
182
+ under it, inset 64px (16px on a phone); a line between two accordions one under the other. Open by default; `v-model:expanded` to
183
+ follow it, `collapsible: false` for a title over content always shown. `dense`: a disclosure inside a box (an order
184
+ history under its plan), at the box's text size, without background, a line above it and the content not inset.
185
+ - `CvQuota` (`<cv-quota>`): a quota indicator (design system COMP-19), frontend-new's `OrganizationPieRange`: how
186
+ much of a resource is used, `ratio` drawn as a 20px filled disc, or `text` with `showText`; `level`
187
+ (`CORVINA.QUOTA.LEVEL`) colours it (empty grey, warning, alert), and the tooltip has `text` and `details`.
188
+ - `CvAppCard` (`<cv-app-card>`): the Store's application card (design system COMP-18), frontend-new's
189
+ `AppStoreGridItem`: a 200px `image`, the `title` on one line, the `description` cut to three lines, `titleChips` by
190
+ the name and `chips` in the foot (`CORVINA.APP_CARD.CHIP`, a palette colour and an icon), and `actions` visible at
191
+ rest (`CORVINA.APP_CARD.ACTION`: `active`, `disabled` with its `disabledReason`), which emit `action` with their
192
+ key. A `clickable` card emits `open` on a click or Enter outside its foot, with its `tooltip`.
193
+ - `CvChip` (`<cv-chip>`): a standing chip (design system COMP-14), frontend-new's square chips of the App Store: 26px,
194
+ a g2 border on white or on its `color` (a palette variable), an `icon` before the `text`, a `tooltip`. `CvAppCard`'s
195
+ chips are CvChips.
196
+ - `CvStepper` (`<cv-stepper>`): a task in steps (design system COMP-20), frontend-new's stepper of the App Store's
197
+ installation: the `steps` (`CORVINA.STEPPER.STEP`) named on a 40px bar, the current one (`selected`) marked, the
198
+ ones before it checked; Back and Next on the bar emit `update:selected`, passing over the `skipped` steps (shown
199
+ with their `subtitle`); on the last step Next reads `finishLabel` and emits `finish`. `nextDisabled` with
200
+ `nextDisabledReason`, `loading` while the task runs. The `step.<value>` slots hold the content of each step.
201
+ - `CvKeyValueField` (`<cv-key-value-field>`): frontend-new's webhook headers, a key and its value typed side by side,
202
+ the pairs as chips `key : value` under them (`Record<string, string>`); a key already there takes the new value.
203
+ `keyLabel`, `valueLabel`, `addLabel`, `removeLabel`.
204
+ - `CvButton` `menu` (`CORVINA.BUTTON.MENU_ENTRY[]`): choices the button opens in a menu (e.g. the type of what to
205
+ add), `select` with the `value` of the clicked one; entries `disabled` with `disabledReason`, `divider` between
206
+ groups. `danger`: a destructive action, the alert colour on hover (THEME-4).
207
+ - `CvButton` `disabledReason`: while the button is disabled, its tooltip says why (STATE-2), in place of `tooltip`.
208
+ - `CvTable` row buttons (`CORVINA.TABLE.PropButtonEntry`): `disabled`, with `disabledReason` for the tooltip, and
209
+ `dataQa`. Menu entries (`MenuPropEntry`) have `disabledReason` too. Each row has its own buttons: the `ROW_ACTIONS`
210
+ stories leave out what the user may never do (STATE-1), disable with the reason what the row does not allow
211
+ (STATE-2), and put View in the slot of Edit for a read-only user (STATE-4).
212
+ - `CvTable` row selection (paginated table), as frontend-new's VPN renewals: `showSelect` adds a checkbox to each row
213
+ and one to the header, which selects or clears the selectable rows of the page. `selected` holds the `itemValue`
214
+ (`id` by default) of the selected rows, those on other pages too, owned by the parent (`update:selected`,
215
+ `v-model:selected`). A row with a reason in its `propSelectDisabledReason` property cannot be selected: its
216
+ checkbox is g4 and its tooltip says why (STATE-1, STATE-2). `ROW_SELECTION` story.
217
+ - `CvBreadcrumb` sort, as in frontend-new: `allowedSorts` (`CORVINA.BREADCRUMB.SORT_BY[]`) shows a sort dropdown
218
+ and the direction button after the slot, `sort` (`CORVINA.BREADCRUMB.SORT`, `key` and `desc`) owned by the parent
219
+ (`update:sort`), `sortPlaceholder`. Without `allowedSorts` there is no sort.
220
+ - `CvBreadcrumb` `filterBy`: the `key` of the filter selected in the filter key dropdown, selected again when
221
+ `allowedFilters` change (e.g. on another tab).
222
+ - `CvSelect` and `CvAutocomplete` `filter`: a filter of a bar (the secondary top bar's slot, a table's own bar), as
223
+ `CvBreadcrumb`'s sort dropdown looks: 40px, no label, line nor messages, 16em wide. Highlighted while it has a value
224
+ (TOPBAR-8), never selecting its only option by itself, cleared with the panels' thin X; disabled in g4 with
225
+ `disabledReason` in its tooltip (STATE-2, STATE-4). frontend-new wrote these dropdowns in each page (renewals expiry and sub-organization, consumptions
226
+ aggregation). The `CvBreadcrumb` stories' slot uses it.
227
+ - `CvRadioGroup` `cards`: each choice a bordered card, clickable all over, the chosen one's border and title in the
228
+ highlight colour (as GRID-4's selected card), as frontend-new's VPN renewal plans. `CORVINA.FIELD.ITEM` `subtitle`:
229
+ a line under the choice's title in `--color-g4` (TYPE-5), in either look. `RADIO_GROUP_CARDS` story.
230
+ - `CvRadioGroup`, for the App Store's plans: `CORVINA.FIELD.ITEM` `aside`, lines on the right of the title (a price,
231
+ the last line in bold), and `disabledReason`, why a disabled choice cannot be chosen, on hover (STATE-3); the `item`
232
+ slot, a choice's content under its title (`slot="item.<value>"` children of `<cv-radio-group>`); `readonly` keeps
233
+ the mark of the chosen choice only; `attach` for the tooltips. `RADIO_GROUP_CARDS_ASIDE` story.
34
234
 
35
235
  Fixed:
36
236
 
237
+ - The icon buttons of `CvTable` and `CvBreadcrumb` no longer submit a form they are in (`type="button"`).
238
+ - `CvWeekdays`: 8px between the label and the days' names, were 2px (the names looked stuck to the label).
239
+ - `CvBreadcrumb` `icon`: a Material Symbol (e.g. `balance`) is drawn in its font; the Corvina font hid it.
240
+ - `CvBreadcrumb` sort and filter key dropdowns, as frontend-new's: the placeholder ("Sort by:") in `--color-g4`, the
241
+ value and the arrow in `--color-dk`; the direction button, disabled until a sort is chosen, keeps its border and
242
+ draws the arrow in `--color-g4`. Vuetify's emphasis opacities made them almost white.
243
+ - `CvButton`: each button has its own element reference (one was shared by all the buttons of the page).
244
+ - `CvBreadcrumb`: a filter key selected in the dropdown is dropped when `allowedFilters` no longer contain it.
245
+ - `CvBreadcrumb` looks like frontend-new's breadcrumb: full-height light dividers (`CvBreadcrumbDivider` too,
246
+ was a 25px dark line), the filter area 860px wide and starting with a divider, the filter key dropdown 13em on the
247
+ g1 background without the underline, the filter value field 16px from it.
248
+ - `CvBreadcrumb` on a narrow screen: the bar wraps when its parts do not fit, as frontend-new's (title and date range,
249
+ then the sort, then the filters), instead of running off the screen; the library has no Vuetify `flex-wrap` class.
250
+ The filters take the free room up to 860px and go to a row of their own only below 200px.
251
+ - `CvBreadcrumb` with the search alone (`showSearchBar` without `showFilterChips`): 336px as frontend-new's search
252
+ bar, narrower down to 200px when the bar is short of room. It took the free room up to 860px as the filters do,
253
+ leaving little to the slot's controls (the Licensing consumptions' date range was cut).
254
+ - `CvTable` headers: only a column with a `tooltip` opens one, as frontend-new's. Hovering the title or the icon of a
255
+ column without it opened an empty tooltip.
256
+ - `CvDateRange` on a screen narrower than its two calendars (640px): one under the other, within the screen, the
257
+ menu scrolling under its bar of presets and buttons; the presets scroll sideways when the bar is short of room. The
258
+ menu ran off the screen. The calendars widen to the bar when it has more presets than fit above them (it left a
259
+ white area on the right).
260
+ - `CvPanel` bottom help on a phone (below 600px): 16px gutters, were 60px.
261
+ - `CvPanel` help beside an edit panel: it slides out from under the panel, as the panel opens (it appeared at once).
262
+ On a phone (below 600px) it opens over the panel, the whole width, with 16px gutters: it was hidden, and its button
263
+ did nothing.
264
+ - The breadcrumb's chips are pushed to the right by a rule of their own: it applied to every Vuetify slide group in a
265
+ `.corvina` element, and the tabs in a `CvPanel` ended on the right.
266
+ - `CvTable` rows are highlighted on hover (Vuetify's standard `hover`), the expanded content is not, as in
267
+ frontend-new; the items-per-page select of the footer is underlined, with "Rows per page:" (Vuetify's
268
+ `dataTable.itemsPerPageText`, translated) and the selected value of its menu in the highlight color, as in
269
+ frontend-new.
270
+ - Scrollbars as in frontend-new: thin, a highlight thumb on g1, in every component (the `custom-scrollbars` class
271
+ on their root, also in the package CSS for the app's own containers).
37
272
  - Type declarations: relative imports have the `.js` extension, so they resolve with TypeScript
38
273
  `moduleResolution` `node16`/`nodenext` too (the package is now `"type": "module"`).
39
274
  - `AutocompleteFilter` (breadcrumb and table filters) threw on focus (Vuetify 2 API): the menu now opens on focus.
275
+ - Infinite scroll of the autocomplete filters (breadcrumb and table): no page is requested while one is loading. Two
276
+ pages requested together became one fetch (it is debounced) and a page of results was skipped. The next page is
277
+ requested when the end of the menu is visible, while scrolling: all the pages were requested one after the other
278
+ when the menu opened (the end of the list was checked against the window). The spinner has the primary color in the
279
+ web components too (was black).
280
+ - `AutocompleteFilter` imports `VCombobox` from `vuetify/components/VCombobox`, not from the `vuetify/components`
281
+ barrel: an app whose Vite dev server does not pre-bundle Vuetify loaded every Vuetify component (a Log page with
282
+ the breadcrumb: 777 → 484 module requests).
40
283
  - Breadcrumb filter chip arrows are 25px as in the web components (the Vuetify 52px rule won before).
41
284
  - The package only contains the files it needs (61 → 27): no type declarations of internal modules or of the web
42
285
  components entry, no favicon and logo.
286
+ - No dependencies besides the peer ones: the infinite scroll of the autocomplete filters no longer uses
287
+ `v3-infinite-loading` (declared, and bundled too), `lodash-es` (for `debounce`) and `webfontloader` are no longer
288
+ bundled (JS -23 KB, gzip -7 KB).
289
+ - `loadFonts()` adds a `<link>` to the Google Fonts css2 API (Roboto, Material Symbols) instead of using
290
+ webfontloader: the `wf-loading`/`wf-active` classes are no longer set on `<html>`.
291
+ - Types: the props with a default are optional (`CvTable` `headers`, `items`, `itemsPerPage`, `currentPage`,
292
+ `itemsLength`; `CvTabs` `tabs`; `CvBreadcrumb` `icon`, `path`; `CvIcon` `icon`). The `searchFunction` of the
293
+ breadcrumb filters and `CORVINA.FIELD.SEARCH` return `unknown[]`, the `props` of the custom cell, header and filter
294
+ components are `Record<string, unknown>` (were `any`): the app's own types fit them as before.
43
295
 
44
296
  ### `@corvina/web-components-library` (from 0.2.4)
45
297
 
46
- - Vuetify 4 and Vue 3.5 bundled (were Vuetify 3.7 and Vue 3.5). JS 1.06 → 1.23 MB (gzip 265 → 312 KB),
47
- mostly Vuetify 4 itself.
298
+ - `<cv-select>`: `modelValue` and `update:modelValue` (were `model` and `update:model`), and the other changes of
299
+ `CvSelect` in the Vue package.
300
+ - The elements are `<cv-table>`, `<cv-button>`, ... (were `<corvina-table>`, ...): the fourth parameter of
301
+ `initCorvinaComponents(locale, shouldLoadTheme, shouldLoadFonts, prefix)` is the start of the tags, `'corvina'` for
302
+ the 0.x ones. The VS Code custom data lists the `cv-` tags.
303
+ - 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),
304
+ mostly Vuetify 4 itself (its date picker for `CvDateRange` included).
48
305
  - Runs on the browsers listed above (Browsers): 0.2.4 was transpiled to ES2016.
49
306
  - No dependencies declared: Vue, Vuetify and the other libraries are bundled (0.2.4 declared `vue` and
50
307
  `vuetify` 3, installed without being used).
51
308
  - The bundle runs without a bundler (`<script type="module">`): `process` is no longer referenced.
309
+ - `v3-infinite-loading`, `lodash-es` and `webfontloader` are no longer bundled (ES build -31 KB, gzip -8 KB): the infinite
310
+ scroll and `loadFonts()` changed as in the Vue package.
52
311
  - `web-components-library.css` (the page CSS) only has the `--color-*` variables (108 KB → 0.6 KB): no Vuetify
53
312
  reset, base or component CSS on the host page anymore (they changed e.g. the `html` font and line height,
54
313
  `box-sizing`, buttons and inputs of the page). The palette changed as in the Vue package (#004688 → #496177, ...).
55
314
  - The components set their base typography on their host instead of inheriting it from that page CSS:
56
315
  `box-sizing: border-box`, `font-family: var(--v-font-body, "Roboto", sans-serif)`, `line-height: 1.5`.
57
316
  On a page with its own `body` font the components now use Roboto; to change it, style the element
58
- (e.g. `corvina-table { font-family: ... }`).
317
+ (e.g. `cv-table { font-family: ... }`).
318
+ - A prop set to `false`, `0` or `''` keeps that value: the element replaced it with the prop's default (e.g.
319
+ `.autoSelect=${false}` on `<cv-select>` gave `true`).
320
+ - `<cv-table>`: its Vuetify CSS is regenerated from the installed Vuetify; `.v-table` had an invalid
321
+ `font-size: .75rrem` (now `.75rem`, 12px, as the cells).
59
322
  - Table footer items-per-page menu attached inside the shadow root without patching Vuetify.
323
+ - `<cv-table>` filter bar (`showSearchBar`, `showFilterChips`) as in the Vue package: the search, the filter key and
324
+ value side by side with the search and filter buttons on the right, and the chips as `CvBreadcrumb`'s. The shadow
325
+ root lacked the Vuetify CSS of `v-layout` and `v-row` and the breadcrumb's styles: the fields stacked and the
326
+ buttons fell under the bar. The table's Vuetify CSS is 25 KB larger.
327
+ - `<cv-table>` in the expanded row of another (a sub-table): as tall as its rows, with no scroll of its own, as in the
328
+ Vue package. The rules of the outer table did not reach into its shadow root: the slot marks the tables it shows
329
+ with `data-cv-expanded`.
60
330
  - The package only contains the files it needs (37 → 13): no type declarations of internal modules, no
61
331
  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 vue components aimed to be used in the Corvina App.
3
4
 
4
5
  # Documentation
@@ -35,6 +36,10 @@ createApp(App)
35
36
  .mount('#app')
36
37
  ```
37
38
 
39
+ The components are registered as `CvTable`, `CvButton`, ... (`<cv-table>` in templates). An app moving from the 0.x
40
+ names registers them with its own prefix, e.g. `.use(CorvinaComponents, { prefix: 'corvina' })` for `CorvinaTable`
41
+ (`<corvina-table>`), and renames its templates later.
42
+
38
43
  The components use the Vuetify instance and the Vuetify CSS of the application:
39
44
 
40
45
  - import `vuetify/styles` where you create the Vuetify instance;
@@ -57,6 +62,7 @@ The components use the Vuetify instance and the Vuetify CSS of the application:
57
62
  icons: { defaultSet: 'md', aliases, sets: { md, ecc } },
58
63
  })
59
64
  ```
65
+
60
66
  - the components use the Vuetify defaults of your app (e.g. the `variant` of fields), not the ones of
61
67
  the web components;
62
68
  - to get the Corvina look, build the Vuetify styles with the library settings
@@ -102,7 +108,7 @@ import "@corvina/vue-components-library/icons-corvina-classes-font-face.css"
102
108
  The package ships type declarations that register the components installed by `app.use(CorvinaComponents)`
103
109
  as global components (`GlobalComponents` augmentation of `vue`), so with the
104
110
  [Vue - Official](https://marketplace.visualstudio.com/items?itemName=Vue.volar) extension you get prop
105
- autocomplete, type checking and ctrl+click on `<CorvinaBreadcrumb>`, `<CorvinaTable>`, ... in templates.
111
+ autocomplete, type checking and ctrl+click on `<CvBreadcrumb>`, `<CvTable>`, ... in templates.
106
112
 
107
113
  The consumer project just needs a `tsconfig.json` (or `jsconfig.json` for JavaScript projects) that includes
108
114
  the file importing the library, e.g.:
@@ -162,6 +168,7 @@ const vuetify = createVuetify({
162
168
  ...
163
169
  })
164
170
  ```
171
+
165
172
  To dynamically change the language, use `this.$vuetify.locale.current`.
166
173
 
167
174
  For example, in the Corvina application:
@@ -170,5 +177,3 @@ For example, in the Corvina application:
170
177
  this.$i18n.locale = locale?.replace('_', '-') || "en-US";
171
178
  this.$vuetify.locale.current = this.$i18n.locale?.split('-')[0] || "en";
172
179
  ```
173
-
174
-
@@ -0,0 +1,29 @@
1
+ interface Props {
2
+ title?: string;
3
+ expanded?: boolean;
4
+ collapsible?: boolean;
5
+ dense?: boolean;
6
+ }
7
+ declare var __VLS_12: {};
8
+ type __VLS_Slots = {} & {
9
+ default?: (props: typeof __VLS_12) => any;
10
+ };
11
+ declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
12
+ "update:expanded": (value: boolean) => any;
13
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
14
+ "onUpdate:expanded"?: ((value: boolean) => any) | undefined;
15
+ }>, {
16
+ title: string;
17
+ dense: boolean;
18
+ expanded: boolean;
19
+ collapsible: boolean;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
24
+ type __VLS_WithSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
29
+ //# sourceMappingURL=CvAccordion.ce.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CvAccordion.ce.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CvAccordion.ce.vue"],"names":[],"mappings":"AAuCA;AAkGA,UAAU,KAAK;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AA6ID,QAAA,IAAI,QAAQ,IAAY,CAAC;AACzB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAGhD,QAAA,MAAM,UAAU;;;;;;;;;6EAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { CORVINA } from '../index.js';
2
+ interface Props {
3
+ title?: string;
4
+ description?: string;
5
+ image?: string;
6
+ titleChips?: CORVINA.APP_CARD.CHIP[];
7
+ chips?: CORVINA.APP_CARD.CHIP[];
8
+ actions?: CORVINA.APP_CARD.ACTION[];
9
+ clickable?: boolean;
10
+ tooltip?: string;
11
+ attach?: string | boolean | Element;
12
+ }
13
+ declare const __VLS_export: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
14
+ open: () => any;
15
+ action: (key: string) => any;
16
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
17
+ onOpen?: (() => any) | undefined;
18
+ onAction?: ((key: string) => any) | undefined;
19
+ }>, {
20
+ chips: CORVINA.APP_CARD.CHIP[];
21
+ title: string;
22
+ image: string;
23
+ attach: string | boolean | Element;
24
+ description: string;
25
+ tooltip: string;
26
+ actions: CORVINA.APP_CARD.ACTION[];
27
+ titleChips: CORVINA.APP_CARD.CHIP[];
28
+ clickable: boolean;
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
30
+ declare const _default: typeof __VLS_export;
31
+ export default _default;
32
+ //# sourceMappingURL=CvAppCard.ce.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CvAppCard.ce.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CvAppCard.ce.vue"],"names":[],"mappings":"AA4EA;AA4IA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAOnC,UAAU,KAAK;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IACrC,KAAK,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;CACrC;AAqOD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;6EAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,62 @@
1
+ import { CORVINA } from '../index.js';
2
+ interface Props {
3
+ modelValue?: unknown;
4
+ items?: unknown[];
5
+ searchFunction?: CORVINA.FIELD.SEARCH;
6
+ itemTitle?: string;
7
+ itemValue?: string;
8
+ returnObject?: boolean;
9
+ multiple?: boolean;
10
+ autoSelect?: boolean;
11
+ label?: string;
12
+ placeholder?: string;
13
+ help?: string;
14
+ disabled?: boolean;
15
+ disabledReason?: string;
16
+ readonly?: boolean;
17
+ rules?: CORVINA.FIELD.RULE[];
18
+ errorMessages?: string | string[];
19
+ loading?: boolean;
20
+ clearable?: boolean;
21
+ hideDetails?: boolean;
22
+ noDataText?: string;
23
+ loadingText?: string;
24
+ filter?: boolean;
25
+ }
26
+ declare const __VLS_export: import('vue').DefineComponent<Props, {
27
+ validate: () => Promise<boolean>;
28
+ reset: () => Promise<void> | undefined;
29
+ resetValidation: () => Promise<void> | undefined;
30
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
31
+ "update:modelValue": (value: unknown) => any;
32
+ "update:valid": (valid: boolean | null) => any;
33
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
34
+ "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
35
+ "onUpdate:valid"?: ((valid: boolean | null) => any) | undefined;
36
+ }>, {
37
+ help: string;
38
+ loading: boolean;
39
+ disabled: boolean;
40
+ filter: boolean;
41
+ modelValue: undefined;
42
+ label: string;
43
+ readonly: boolean;
44
+ placeholder: string;
45
+ items: unknown[];
46
+ rules: CORVINA.FIELD.RULE[];
47
+ hideDetails: boolean;
48
+ returnObject: boolean;
49
+ noDataText: string;
50
+ clearable: boolean;
51
+ errorMessages: string | string[];
52
+ multiple: boolean;
53
+ itemTitle: string;
54
+ itemValue: string;
55
+ loadingText: string;
56
+ disabledReason: string;
57
+ searchFunction: CORVINA.FIELD.SEARCH;
58
+ autoSelect: boolean;
59
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
60
+ declare const _default: typeof __VLS_export;
61
+ export default _default;
62
+ //# sourceMappingURL=CvAutocomplete.ce.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CvAutocomplete.ce.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CvAutocomplete.ce.vue"],"names":[],"mappings":"AAoDA;AAyMA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAUvC,UAAU,KAAK;IACb,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAkQD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAKhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,7 +1,7 @@
1
1
  import { CORVINA } from '../index.js';
2
2
  export interface Props {
3
- icon: string;
4
- path: Array<string | {
3
+ icon?: string;
4
+ path?: Array<string | {
5
5
  text: string;
6
6
  onClick: Function;
7
7
  }>;
@@ -10,13 +10,23 @@ export interface Props {
10
10
  searchPlaceholder?: string;
11
11
  searchModel?: string;
12
12
  showFilterChips?: boolean;
13
+ /**
14
+ * The 40px row of the filter chips under the bar, as frontend-new's `showTagBar`: there also when the page (or its
15
+ * selected tab) has no filters, so the content below the bar does not move from one tab to another. `false` for a
16
+ * page with no chips at all (frontend-new's wizards).
17
+ */
18
+ showChipsRow?: boolean;
13
19
  filterChipsKeyPlaceholder?: string;
14
20
  filterChipsValuePlaceholder?: string;
15
21
  filterChipsLoadingText?: string;
16
22
  filterChipsNoDataText?: string;
17
23
  allowedFilters?: Array<CORVINA.BREADCRUMB.FILTER_BY>;
24
+ filterBy?: string;
18
25
  filters?: Array<CORVINA.BREADCRUMB.FILTER>;
19
26
  filtersCustomComponent?: CORVINA.BREADCRUMB.CUSTOM_VUE_COMPONENT;
27
+ allowedSorts?: Array<CORVINA.BREADCRUMB.SORT_BY>;
28
+ sort?: CORVINA.BREADCRUMB.SORT | null;
29
+ sortPlaceholder?: string;
20
30
  }
21
31
  declare const _default: typeof __VLS_export;
22
32
  export default _default;
@@ -25,13 +35,16 @@ declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<Props,
25
35
  "update:filters": (value: CORVINA.BREADCRUMB.FILTER[]) => any;
26
36
  "update:filterBy": (value: CORVINA.BREADCRUMB.FILTER_BY) => any;
27
37
  "update:activeControl": (value: CORVINA.BREADCRUMB.ACTIVE_CONTROL) => any;
38
+ "update:sort": (value: CORVINA.BREADCRUMB.SORT) => any;
28
39
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
29
40
  "onUpdate:searchModel"?: ((value: string) => any) | undefined;
30
41
  "onUpdate:filters"?: ((value: CORVINA.BREADCRUMB.FILTER[]) => any) | undefined;
31
42
  "onUpdate:filterBy"?: ((value: CORVINA.BREADCRUMB.FILTER_BY) => any) | undefined;
32
43
  "onUpdate:activeControl"?: ((value: CORVINA.BREADCRUMB.ACTIVE_CONTROL) => any) | undefined;
44
+ "onUpdate:sort"?: ((value: CORVINA.BREADCRUMB.SORT) => any) | undefined;
33
45
  }>, {
34
46
  icon: string;
47
+ sort: CORVINA.BREADCRUMB.SORT | null;
35
48
  filters: CORVINA.BREADCRUMB.FILTER[];
36
49
  path: (string | {
37
50
  text: string;
@@ -48,6 +61,10 @@ declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<Props,
48
61
  allowedFilters: CORVINA.BREADCRUMB.FILTER_BY[];
49
62
  filtersCustomComponent: CORVINA.BREADCRUMB.CUSTOM_VUE_COMPONENT;
50
63
  activeControl: CORVINA.BREADCRUMB.ACTIVE_CONTROL;
64
+ showChipsRow: boolean;
65
+ filterBy: string;
66
+ allowedSorts: CORVINA.BREADCRUMB.SORT_BY[];
67
+ sortPlaceholder: string;
51
68
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
52
69
  default?: (props: {}) => any;
53
70
  }>;
@@ -56,4 +73,4 @@ type __VLS_WithSlots<T, S> = T & {
56
73
  $slots: S;
57
74
  };
58
75
  };
59
- //# sourceMappingURL=CorvinaBreadcrumb.ce.vue.d.ts.map
76
+ //# sourceMappingURL=CvBreadcrumb.ce.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CvBreadcrumb.ce.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CvBreadcrumb.ce.vue"],"names":[],"mappings":"AA4PA;AAioBA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAGlC,MAAM,WAAW,KAAK;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,QAAQ,CAAA;KAAE,CAAC,CAAC;IAC3D,aAAa,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC;IAElD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B,cAAc,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACrD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IAE3C,sBAAsB,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAEjE,YAAY,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IACjD,IAAI,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,IAAI,GAAG,IAAI,CAAC;IACtC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;wBACoB,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;cA9Bc,MAAM;iBAAW,QAAQ;;;;;;;;;;;;;;;;;;cAm+B3C,CAAC,KAAK,IAAiB,KAAK,GAAG;EASzC,CAAC;AAWL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -1,4 +1,4 @@
1
1
  declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
2
  declare const _default: typeof __VLS_export;
3
3
  export default _default;
4
- //# sourceMappingURL=CorvinaBreadcrumbDivider.ce.vue.d.ts.map
4
+ //# sourceMappingURL=CvBreadcrumbDivider.ce.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CvBreadcrumbDivider.ce.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CvBreadcrumbDivider.ce.vue"],"names":[],"mappings":"AA2BA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}