wertyz-vue 3.13.2 → 3.13.4
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/DESIGN.md +237 -0
- package/README.md +1 -1
- package/dist/wertyzVue.js +1 -1
- package/package.json +1 -1
package/DESIGN.md
ADDED
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Wertyz – Ostrý minimál
|
|
3
|
+
description: Design system of Wertyz web apps (public transport ticketing, fleet and payment back-office). Vue 3 component library wertyz-vue; dense data screens shown inside the WEB_Wertyz CMS.
|
|
4
|
+
version: 3.13.1
|
|
5
|
+
colors:
|
|
6
|
+
primary: "#009999" # --green: actions, active states, accents, links
|
|
7
|
+
primary-dark: "#006666" # --darkgreen: hover of primary, section titles
|
|
8
|
+
primary-light: "#D5EEE8" # --lightgreen: tab bars, table panel, selected rows, success badge bg
|
|
9
|
+
surface-hover: "#E7F3F2" # hover on rows, cards, menu items
|
|
10
|
+
surface: "#FFFFFF" # cards, inputs, modals
|
|
11
|
+
surface-well: "#F3F3F3" # --lightgrey: page wells, neutral badges, disabled bg
|
|
12
|
+
border: "#C1C1C1" # --grey: input and card borders
|
|
13
|
+
text: "#000000" # table cells, active tab
|
|
14
|
+
text-muted: "#4E4E4E" # --darkgrey: labels, secondary text
|
|
15
|
+
text-inactive: "#686868" # inactive tab label
|
|
16
|
+
coal: "#231F20" # sidebar menu, table header, KPI values
|
|
17
|
+
coal-raised: "#1B2828"
|
|
18
|
+
coal-hover: "#172B2B"
|
|
19
|
+
coal-line: "#322D2E"
|
|
20
|
+
danger: "#FF0000" # --red
|
|
21
|
+
danger-dark: "#AB0101"
|
|
22
|
+
danger-light: "#FDE2E2"
|
|
23
|
+
warning: "#FF7400" # --orange
|
|
24
|
+
warning-dark: "#DA6C10"
|
|
25
|
+
warning-light: "#FFC89A"
|
|
26
|
+
info: "#1240AB" # --darkblue
|
|
27
|
+
info-light: "#DCE6F7"
|
|
28
|
+
accent-yellow: "#FFF989"
|
|
29
|
+
accent-purple: "#9B59B6"
|
|
30
|
+
accent-blue: "#5777C0"
|
|
31
|
+
typography:
|
|
32
|
+
font-family: "'Source Sans Pro', 'Segoe UI', Arial, sans-serif"
|
|
33
|
+
weights: { light: 300, regular: 400, medium: 500, semibold: 600 }
|
|
34
|
+
page-title: { size: 32px, weight: 500, color: primary }
|
|
35
|
+
modal-title: { size: 24px, weight: 600, color: "#FFFFFF" }
|
|
36
|
+
input-value: { size: 18px, weight: 300 }
|
|
37
|
+
tab-label: { size: 15px, weight: 600 }
|
|
38
|
+
body: { size: 14px, weight: 400, line-height: 1.35 }
|
|
39
|
+
label-caps: { size: 12px, weight: 600, letter-spacing: 0.05em, transform: uppercase }
|
|
40
|
+
kpi-value: { size: 30px, weight: 500, line-height: 1, color: coal }
|
|
41
|
+
result-count: { size: 20px, weight: 600 }
|
|
42
|
+
shape:
|
|
43
|
+
radius-sm: 3px # checkbox, radio, tags, chips, pagination, small icon buttons
|
|
44
|
+
radius-md: 4px # inputs, selects, buttons, search, dropdowns, cards, KPI
|
|
45
|
+
radius-lg: 5px # modal only
|
|
46
|
+
accent-width: 3px # left/top accent bars
|
|
47
|
+
control-height: 40px
|
|
48
|
+
elevation:
|
|
49
|
+
raised: "0 1px 3px rgba(35,31,32,.16), 0 1px 2px rgba(35,31,32,.10)"
|
|
50
|
+
floating: "0 4px 10px -2px rgba(35,31,32,.22), 0 2px 4px -2px rgba(35,31,32,.14)"
|
|
51
|
+
modal: "0 8px 20px -4px rgba(35,31,32,.32), 0 2px 6px rgba(35,31,32,.18)"
|
|
52
|
+
motion:
|
|
53
|
+
micro: ".12s linear" # hover / focus colour changes
|
|
54
|
+
macro: ".2s ease-out" # panels, tab content
|
|
55
|
+
spacing:
|
|
56
|
+
base: 5px # dense UI: 5 / 10 / 15 / 20 / 30
|
|
57
|
+
content-padding: 15px
|
|
58
|
+
card-padding: "10px 12px"
|
|
59
|
+
modal-body-padding: 30px
|
|
60
|
+
breakpoints:
|
|
61
|
+
mobile: "max-width: 767px"
|
|
62
|
+
desktop-grid: "Bootstrap 3, col-lg-* ≥ 1200px, stacks below 992px"
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
# Wertyz – Ostrý minimál
|
|
66
|
+
|
|
67
|
+
## 1. Character
|
|
68
|
+
|
|
69
|
+
Wertyz apps are **back-office tools for transport operators**: ticket sales, clearing, fleet, payment
|
|
70
|
+
terminals, reports. Users are dispatchers, accountants and administrators who look at **dense tables and
|
|
71
|
+
numbers all day**. The visual language is called **"Ostrý minimál"** (sharp minimal):
|
|
72
|
+
|
|
73
|
+
- **Sharp, not soft.** Corners 3–4 px, never pills (except decorative circles). Thin 1 px borders.
|
|
74
|
+
- **Tight, hard shadows** tinted with coal, never large diffuse glows.
|
|
75
|
+
- **One brand colour – teal `#009999`** – carries every action and active state. Everything else is
|
|
76
|
+
greyscale + coal. Status colours (red / orange / blue) only for meaning, never decoration.
|
|
77
|
+
- **Coal anchors**: the sidebar menu and table headers are near-black `#231F20` with a faint teal
|
|
78
|
+
radial glow and a 1 px diagonal hairline texture. This dark/light contrast is the signature.
|
|
79
|
+
- **3 px accent bars** mark "active / selected / important": top border of the active tab, left border of a
|
|
80
|
+
hovered table row, left edge of a KPI card, left border of a required input.
|
|
81
|
+
- **Snappy motion**: colour changes `.12s linear`. No bounce, no scale, no long fades.
|
|
82
|
+
- **Density over air.** Base unit 5 px. Data first, chrome second. Light weight (300) for big input values,
|
|
83
|
+
semibold (600) for labels and headings.
|
|
84
|
+
|
|
85
|
+
Interface language is **Slovak** (sometimes English, Czech). Numbers use space thousands separators and
|
|
86
|
+
`,` decimals in UI copy; currency `EUR` after the number.
|
|
87
|
+
|
|
88
|
+
## 2. App shell
|
|
89
|
+
|
|
90
|
+
Apps render inside the WEB_Wertyz CMS (iframe), so there is no app top bar of our own.
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
┌──────────────┬──────────────────────────────────────────────────────┐
|
|
94
|
+
│ SIDEBAR │ CONTENT (padding 15px, white) │
|
|
95
|
+
│ coal + │ ┌ Header: page title 32px teal ─── [search] [btn] ┐ │
|
|
96
|
+
│ texture │ └─────────────────── 2px #F3F3F3 bottom line ─────┘ │
|
|
97
|
+
│ width 16% │ ┌ Tab bar (light teal) ───────── count · [10 ▾] ──┐ │
|
|
98
|
+
│ │ ├ Table panel: search · Stĺpce · Počet výsledkov ─┤ │
|
|
99
|
+
│ logo 100px │ ├ TABLE: coal header, 2px teal underline ─────────┤ │
|
|
100
|
+
│ ─2px teal─ │ │ rows 14px, hover = 3px teal left bar + #F3F3F3 │ │
|
|
101
|
+
│ menu items │ └ pagination « ‹ [1] 2 3 › » ────────────────────┘ │
|
|
102
|
+
└──────────────┴──────────────────────────────────────────────────────┘
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
- **Sidebar (WertyzMenu)**: coal background + texture, logo block 100 px, then a 2 px teal line. Items: teal
|
|
106
|
+
icon (25 px glyph in a 28 px box) + white label with ellipsis; hover = coal-hover. **Active item = dark teal
|
|
107
|
+
`#006666` background + 3 px teal left accent, white icon, semibold label**; its open submenu sits on
|
|
108
|
+
coal-raised, active sub-item again dark teal + teal left accent. Collapsible to an icon rail (labels fade
|
|
109
|
+
out, active marked by a 3 px teal right border); 34 px square `#3D3D3D` toggle buttons, teal on hover.
|
|
110
|
+
Search field at top on coal with `#3D3D3D` border.
|
|
111
|
+
- **Mobile (< 768 px)**: sidebar becomes an off-canvas menu behind a burger in a coal top bar; content full
|
|
112
|
+
width, 16 px side gutter.
|
|
113
|
+
|
|
114
|
+
## 3. Page types
|
|
115
|
+
|
|
116
|
+
### List page (most common)
|
|
117
|
+
1. **Header** – title (32 px, medium, teal, single line with ellipsis) left; optional search and up to 3
|
|
118
|
+
buttons right (`col-lg-2` each). Bottom: 2 px `#F3F3F3` line, 10 px gap.
|
|
119
|
+
2. **Filter tab bar** (WertyzListNavbar) – light-teal strip (`#D5EEE8`), tabs 45 px high, 15 px semibold,
|
|
120
|
+
inactive grey `#686868`, active black with **3 px teal top border**. Right side tools: column picker,
|
|
121
|
+
"Počet výsledkov: **128**" (20 px semibold number), rows-per-page select (100 px).
|
|
122
|
+
3. **Table panel** (optional, instead of the count in the tab bar) – light teal, 2 px teal bottom border:
|
|
123
|
+
search input with teal square search button, date filters, column picker, result count, page length.
|
|
124
|
+
4. **Table** – see components.
|
|
125
|
+
5. **Pagination** – arrow images `« ‹ › »` + square page chips (radius 3 px, active = teal fill).
|
|
126
|
+
|
|
127
|
+
### Detail page
|
|
128
|
+
- **Detail header**: back arrow, icon chip, title, up to 2 buttons.
|
|
129
|
+
- **Two blocks**: an *informations* card (key facts as label/value grid) and a *content* card with
|
|
130
|
+
**detail tabs** (same tab bar as lists) and the tab content directly inside the card (~10 px from edge).
|
|
131
|
+
- Forms inside tabs are grouped with **form sections**.
|
|
132
|
+
|
|
133
|
+
### Dashboard / report page
|
|
134
|
+
- Filters (interval panel with date range presets as light-teal buttons, active = teal filled), then a row of
|
|
135
|
+
**KPI cards**, then a `.charts` grid of chart cards, then a table.
|
|
136
|
+
|
|
137
|
+
## 4. Components
|
|
138
|
+
|
|
139
|
+
### Buttons (40 px high, radius 4 px)
|
|
140
|
+
| Variant | Default | Hover |
|
|
141
|
+
|---|---|---|
|
|
142
|
+
| `green` (primary) | teal bg, white text | dark teal `#006666` |
|
|
143
|
+
| `white` (secondary) | white bg, teal text, 1 px teal border | teal bg, white text |
|
|
144
|
+
| `red` (destructive outline) | white bg, red text + border | red bg, white text |
|
|
145
|
+
| `red--full` | red bg, white | `#AB0101` |
|
|
146
|
+
| `orange` | orange bg, white | `#DA6C10` |
|
|
147
|
+
| `lightgrey` | `#F3F3F3`, black | white |
|
|
148
|
+
| `darkgreen`, `black` | solid | coal |
|
|
149
|
+
| disabled | `#F3F3F3` bg, grey text, 60 % opacity, no shadow | – |
|
|
150
|
+
|
|
151
|
+
Usually full width of their grid column (`btn-block`). Labels sentence case, short verbs: "Uložiť", "Pridať",
|
|
152
|
+
"Zrušiť", "Exportovať".
|
|
153
|
+
|
|
154
|
+
### Inputs & selects (40 px, radius 4 px)
|
|
155
|
+
- White, 1 px `#C1C1C1` border, value **18 px light (300)**. Hover/focus: border teal, no glow.
|
|
156
|
+
- **Required** field: 3 px teal left border (always visible). Error: red border + red helper text below.
|
|
157
|
+
- Optional label suffix "(nepovinné)" in muted grey.
|
|
158
|
+
- Select (multiselect / select2): same box, **teal square block on the right** with a white caret.
|
|
159
|
+
Dropdown panel: floating shadow, options 40 px, highlight teal with white text.
|
|
160
|
+
- Checkbox / radio: 20 px boxes, radius 3 px, checked = teal fill with white tick.
|
|
161
|
+
- Switch: teal track when on.
|
|
162
|
+
- Date picker input with calendar icon (20 px) on the right.
|
|
163
|
+
- Focus ring for keyboard: 2 px teal outline, 2 px offset.
|
|
164
|
+
|
|
165
|
+
### Table (WertyzTable / DataTables)
|
|
166
|
+
- **Header**: coal + texture, white 12 px uppercase semibold, letter-spacing .05 em, **2 px teal bottom
|
|
167
|
+
border**, cells padded 5 × 10 px. Sort arrows white.
|
|
168
|
+
- Optional **group header row** above (colspan): same style, centred ("Hotovosť", "Karta", "Spolu").
|
|
169
|
+
- **Rows**: white, 14 px black text, vertical middle, compact (5 px padding). Hover: `#F3F3F3` + **3 px teal
|
|
170
|
+
left bar** on the first cell, pointer cursor. Selected/expanded row: light teal.
|
|
171
|
+
- Numbers right-aligned or centred with tabular figures; missing data as red semibold "NO DATA".
|
|
172
|
+
- First column often a small logo/icon (40 px high).
|
|
173
|
+
- Footer (tfoot) summary rows per currency, semibold.
|
|
174
|
+
- **Column picker** (desktop): white "Stĺpce **5 / 8**" button (32 px, count chip light teal/dark teal) next
|
|
175
|
+
to the result count; menu = floating card with checkboxes, locked columns dimmed, "Obnoviť predvolené" link.
|
|
176
|
+
- **Mobile – cards mode**: each row becomes a white card (radius 4 px, raised shadow, padding 10 × 12 px,
|
|
177
|
+
8 px gap). Optional **icon** (logo ≤ 64 × 40 px) left of the **title** (16 px semibold); badge top-right;
|
|
178
|
+
then rows "LABEL value" where the label is 11 px uppercase muted, 38 % width. Above the cards a sort
|
|
179
|
+
select (standard select look) + direction arrow.
|
|
180
|
+
- **Mobile – scroll mode**: plain horizontal scroll; first column may be pinned.
|
|
181
|
+
|
|
182
|
+
### Tabs
|
|
183
|
+
- Bar background light teal, bottom 1 px `#D8D4D4`. Tab: 45 px, padding 8 × 30 px, 15 px semibold,
|
|
184
|
+
min width ~10 vw, ellipsis. Active: black text, **3 px teal top border**. Variants: grey bar `#E0E0E0`,
|
|
185
|
+
white bar (active tab `#F3F3F3`).
|
|
186
|
+
- **Mobile**: horizontally scrollable strip with fade + arrow hints (arrow images from pagination); with
|
|
187
|
+
many tabs a select with a 3 px teal left border; optional accordion of raised cards (44 px headers).
|
|
188
|
+
|
|
189
|
+
### KPI card
|
|
190
|
+
White, radius 4 px, raised shadow, **3 px coloured left accent** (teal default; dark teal / orange / red /
|
|
191
|
+
blue / grey by meaning), padding 14 × 16 px. Label 12 px uppercase semibold muted (+ 14 px icon), value
|
|
192
|
+
30 px medium coal + 14 px unit, optional trend badge (radius 3 px, success/error tint), optional thin progress
|
|
193
|
+
bar, optional description. Clickable variant: hover light-teal bg + floating shadow. Grid: auto-fill, min
|
|
194
|
+
160 px, gap 10 px.
|
|
195
|
+
|
|
196
|
+
### Form section
|
|
197
|
+
Title 12 px uppercase semibold **dark teal**, letter-spacing .06 em, optional 13 px muted description;
|
|
198
|
+
16 px between grid rows; consecutive sections separated by 1 px `#F3F3F3` line + 18 px padding.
|
|
199
|
+
|
|
200
|
+
### Badges / chips
|
|
201
|
+
Tinted pairs, padding 4 × 10 px, radius 3 px, 12 px semibold: success light-teal/teal, warning light-orange/orange, error
|
|
202
|
+
`#FDE2E2`/red, info `#DCE6F7`/dark blue, neutral `#F3F3F3`/dark grey. Active (selected) chip = solid colour
|
|
203
|
+
with white text.
|
|
204
|
+
|
|
205
|
+
### Modal
|
|
206
|
+
Scrim `rgba(0,0,0,.5)`; dialog white, **radius 5 px**, modal shadow, width 40 % desktop / full on mobile.
|
|
207
|
+
Header **teal bar** with white 24 px semibold title and close icon; body padding 30 px; footer buttons right
|
|
208
|
+
(`white` cancel + `green` confirm). Confirmation dialog: short question, red confirm for destructive actions.
|
|
209
|
+
|
|
210
|
+
### Empty state
|
|
211
|
+
1 px **dashed** grey box, radius 4 px, padding 18 px: 38 px grey circle with icon, coal semibold title, muted
|
|
212
|
+
description, optional `white` button. Compact variant without border.
|
|
213
|
+
|
|
214
|
+
### Feedback
|
|
215
|
+
Loader: teal spinner on white scrim. Small inline loader for buttons/sections. Progress bar teal on light
|
|
216
|
+
grey. Toast/alerts use the badge tint pairs.
|
|
217
|
+
|
|
218
|
+
### Charts
|
|
219
|
+
Chart.js (pie / bar / line) in white chart cards with a title row, arranged in a responsive `.charts` grid.
|
|
220
|
+
Series colours come from the app's `CHART_COLORS` and should be drawn from the palette above (teal first,
|
|
221
|
+
then dark teal, orange, dark blue, purple, light blue, yellow); light grey grid lines, legend below.
|
|
222
|
+
|
|
223
|
+
## 5. Do / Don't
|
|
224
|
+
|
|
225
|
+
**Do**
|
|
226
|
+
- Use teal for exactly one primary action per area; secondary actions are `white` outline buttons.
|
|
227
|
+
- Mark state with the 3 px accent bar before reaching for new colours.
|
|
228
|
+
- Keep tables dense and scannable; uppercase micro-labels for headers and card field labels.
|
|
229
|
+
- Use coal surfaces only for the sidebar and table headers.
|
|
230
|
+
- Design every list screen also for 375 px: tab strip scrolls, table becomes cards.
|
|
231
|
+
|
|
232
|
+
**Don't**
|
|
233
|
+
- No rounded pills, no corners above 5 px, no gradients on controls, no glassmorphism.
|
|
234
|
+
- No soft large shadows or coloured glows; no shadow on inputs.
|
|
235
|
+
- Don't introduce new brand colours or recolour the palette; don't use red/orange decoratively.
|
|
236
|
+
- No bouncy or slow animation (> .2 s), no scale-on-hover.
|
|
237
|
+
- Don't bold body text for emphasis – use semibold labels and the teal colour.
|
package/README.md
CHANGED
|
@@ -268,7 +268,7 @@ Fixný vertikálny sidebar — zbaliteľný, vyhľadávanie, zvýraznenie aktív
|
|
|
268
268
|
|
|
269
269
|
| Prop | Typ / default | Čo ovplyvňuje |
|
|
270
270
|
|---|---|---|
|
|
271
|
-
| `items` | `Array` — `{name,to,routerName,routerNameChilds,hide,disabled,groupLabel,class,imgText,img,imgActive,fontSize,itemClass,subItems:[...]}`, default `() => []` | Zoznam položiek menu. Položka s `to` sa vykreslí ako `<router-link>` (reálna navigácia); bez `to` ako obyčajné `<li>`, ktoré po kliknutí len rozbalí/zbalí svoje `subItems` (plynulá CSS grid animácia). `hide:true` položku vynechá z výpisu, `disabled:true` pridá triedu `menu__content__li--disabled`. **`routerName`** (meno route) a **`routerNameChilds`** (pole ďalších mien route, napr. detailov) určujú, pri ktorých route sa položka zvýrazní ako aktívna — bez nich sa položka s `to` nezvýrazní (pozri Pasce, bod 11). `groupLabel` vykreslí nad prvou položkou každej súvislej skupiny s rovnakým labelom veľkým písmom nadpis skupiny (v zbalenom menu skrytý). `class`/`imgText` vykreslia farebný textový "odznak" **namiesto** obrázkovej ikony. `img`/`imgActive` sú dve verzie ikony — keď je položka aktívna, `src` sa prepne na `imgActive` (ak je zadaný). `fontSize` sa nastaví ako CSS premenná `--menu-item-font-size` (len top-level položky, podpoložky ho ignorujú). `itemClass` sa pridá ako extra CSS trieda k riadku. `subItems` (rovnaká štruktúra, navyše `params` pre `routeParam`) sa vykreslia ako vnorený zoznam, viditeľný len keď je rodičovská položka aktívna. Zmena `items` znovu prepočíta aktívnu položku podľa aktuálnej route. |
|
|
271
|
+
| `items` | `Array` — `{name,to,routerName,routerNameChilds,hide,disabled,groupLabel,class,imgText,img,imgActive,fontSize,itemClass,subItems:[...]}`, default `() => []` | Zoznam položiek menu. Položka s `to` sa vykreslí ako `<router-link>` (reálna navigácia); bez `to` ako obyčajné `<li>`, ktoré po kliknutí len rozbalí/zbalí svoje `subItems` (plynulá CSS grid animácia). `hide:true` položku vynechá z výpisu, `disabled:true` pridá triedu `menu__content__li--disabled`. **`routerName`** (meno route) a **`routerNameChilds`** (pole ďalších mien route, napr. detailov) určujú, pri ktorých route sa položka zvýrazní ako aktívna — bez nich sa položka s `to` nezvýrazní (pozri Pasce, bod 11). `groupLabel` vykreslí nad prvou položkou každej súvislej skupiny s rovnakým labelom veľkým písmom nadpis skupiny (v zbalenom menu skrytý); rovnako funguje aj v `subItems` — nadpis sa vykreslí vo vnorenom zozname, odsadený ako podpoložky. `class`/`imgText` vykreslia farebný textový "odznak" **namiesto** obrázkovej ikony. `img`/`imgActive` sú dve verzie ikony — keď je položka aktívna, `src` sa prepne na `imgActive` (ak je zadaný). `fontSize` sa nastaví ako CSS premenná `--menu-item-font-size` (len top-level položky, podpoložky ho ignorujú). `itemClass` sa pridá ako extra CSS trieda k riadku. `subItems` (rovnaká štruktúra, navyše `params` pre `routeParam`) sa vykreslia ako vnorený zoznam, viditeľný len keď je rodičovská položka aktívna. Zmena `items` znovu prepočíta aktívnu položku podľa aktuálnej route. |
|
|
272
272
|
| `appName` | `String`, `'APPNAME'` | Text vykreslený v hlavičke menu. |
|
|
273
273
|
| `logo` | `String`, `null` | URL obrázka vykresleného nad hlavičkou menu; ak `null`, vykreslí sa `<img>` bez platného zdroja (rozbitý obrázok, žiadny fallback v kóde). |
|
|
274
274
|
| `routeParam` | `String`, `null` | Meno route parametra, podľa ktorého sa porovnáva `subItem.params[routeParam]` s `$route.params[routeParam]` (porovnanie ako string, takže `1` a `'1'` sa zhodujú), aby označil správnu podpoložku ako aktívnu aj keď sa to nedá odvodiť len z mena aktuálnej route. Ak `null`, aktívnosť sa určuje výlučne podľa `$route.name` cez `routerName`/`routerNameChilds`. |
|