wertyz-vue 3.13.5 → 3.15.1
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 +113 -26
- package/dist/wertyzVue.js +1 -1
- package/package.json +28 -27
- package/.claude/scheduled_tasks.lock +0 -1
- package/package.json.bak-sort +0 -57
- package/webpack.config.js +0 -121
- package/webpack.config.js.bak-mapfix +0 -155
- package/webpack.config.js.bak-sort +0 -153
package/DESIGN.md
CHANGED
|
@@ -21,8 +21,11 @@ colors:
|
|
|
21
21
|
danger-dark: "#AB0101"
|
|
22
22
|
danger-light: "#FDE2E2"
|
|
23
23
|
warning: "#FF7400" # --orange
|
|
24
|
-
warning-dark: "#DA6C10"
|
|
24
|
+
warning-dark: "#DA6C10" # --darkorange: legacy, no longer used by the library
|
|
25
25
|
warning-light: "#FFC89A"
|
|
26
|
+
warning-strong: "#B35500" # --orange-strong: orange fills with white text, orange text on white (4.98:1)
|
|
27
|
+
warning-ink: "#8A3F00" # --orange-ink: text on warning-light (5.01:1)
|
|
28
|
+
coal-muted: "#9A9394" # --coal-muted: muted text on coal, e.g. menu group labels (5.41:1)
|
|
26
29
|
info: "#1240AB" # --darkblue
|
|
27
30
|
info-light: "#DCE6F7"
|
|
28
31
|
accent-yellow: "#FFF989"
|
|
@@ -31,8 +34,9 @@ colors:
|
|
|
31
34
|
typography:
|
|
32
35
|
font-family: "'Source Sans Pro', 'Segoe UI', Arial, sans-serif"
|
|
33
36
|
weights: { light: 300, regular: 400, medium: 500, semibold: 600 }
|
|
34
|
-
page-title: { size:
|
|
35
|
-
|
|
37
|
+
page-title: { size: 26px, weight: 600, color: coal }
|
|
38
|
+
card-title: { size: 15px, weight: 600, color: coal } # WertyzFormSection, chart cards, Onboard .section-title
|
|
39
|
+
modal-title: { size: 20px, weight: 600, color: "#FFFFFF" } # left-aligned on the teal header bar
|
|
36
40
|
input-value: { size: 18px, weight: 300 }
|
|
37
41
|
tab-label: { size: 15px, weight: 600 }
|
|
38
42
|
body: { size: 14px, weight: 400, line-height: 1.35 }
|
|
@@ -42,7 +46,7 @@ typography:
|
|
|
42
46
|
shape:
|
|
43
47
|
radius-sm: 3px # checkbox, radio, tags, chips, pagination, small icon buttons
|
|
44
48
|
radius-md: 4px # inputs, selects, buttons, search, dropdowns, cards, KPI
|
|
45
|
-
radius-lg: 5px # modal
|
|
49
|
+
radius-lg: 5px # legacy token; the modal uses radius-md (4px) since 2026-11-18
|
|
46
50
|
accent-width: 3px # left/top accent bars
|
|
47
51
|
control-height: 40px
|
|
48
52
|
elevation:
|
|
@@ -71,9 +75,22 @@ terminals, reports. Users are dispatchers, accountants and administrators who lo
|
|
|
71
75
|
numbers all day**. The visual language is called **"Ostrý minimál"** (sharp minimal):
|
|
72
76
|
|
|
73
77
|
- **Sharp, not soft.** Corners 3–4 px, never pills (except decorative circles). Thin 1 px borders.
|
|
74
|
-
- **
|
|
78
|
+
- **Flat cards, shadows only for overlays**: cards on the canvas are separated by a 1 px border, no shadow
|
|
79
|
+
(decision 2026-11-18: card shadows looked heavy and bled into the tab bar). Menus, dropdowns and modals that
|
|
80
|
+
float above the page keep a tight coal-tinted shadow; never large diffuse glows.
|
|
75
81
|
- **One brand colour – teal `#009999`** – carries every action and active state. Everything else is
|
|
76
82
|
greyscale + coal. Status colours (red / orange / blue) only for meaning, never decoration.
|
|
83
|
+
*Accepted contrast exception (decision 2026-11-18):* teal ↔ white is 3.49:1, below WCAG AA 4.5:1 for
|
|
84
|
+
normal text. The brand teal stays for buttons, links and active states; it passes for text ≥ 18.66 px bold
|
|
85
|
+
/ 24 px. Pairs far below that are not covered by the exception and get fixed: orange on white (2.71:1),
|
|
86
|
+
the light-tint badges (success 2.86, warning 1.80, error 3.27), `--grey` text on white (1.80).
|
|
87
|
+
Red (decision 2026-11-18): `--red #FF0000` is 4.0:1 on white — red text, red outline buttons, `red--full`
|
|
88
|
+
fills, required marks, error toasts and the active error badge use `--darkred #AB0101` (7.7:1); raw `--red` only
|
|
89
|
+
for error field borders (non-text, 3:1 suffices) and the KPI red edge.
|
|
90
|
+
How they are fixed:
|
|
91
|
+
- Text on a tint uses the dark variant: success `--darkgreen`, warning `--orange-ink`, error `--darkred`.
|
|
92
|
+
- Orange fills and orange text use `--orange-strong`; raw `--orange` is only for non-text marks (KPI bar, chart series).
|
|
93
|
+
- Chart data labels pick coal or white by contrast with the series colour.
|
|
77
94
|
- **Coal anchors**: the sidebar menu and table headers are near-black `#231F20` with a faint teal
|
|
78
95
|
radial glow and a 1 px diagonal hairline texture. This dark/light contrast is the signature.
|
|
79
96
|
- **3 px accent bars** mark "active / selected / important": top border of the active tab, left border of a
|
|
@@ -91,9 +108,10 @@ Apps render inside the WEB_Wertyz CMS (iframe), so there is no app top bar of ou
|
|
|
91
108
|
|
|
92
109
|
```
|
|
93
110
|
┌──────────────┬──────────────────────────────────────────────────────┐
|
|
94
|
-
│ SIDEBAR │
|
|
95
|
-
│ coal + │
|
|
96
|
-
│ texture │
|
|
111
|
+
│ SIDEBAR │ CANVAS #E9EDED (padding 15px, full viewport height) │
|
|
112
|
+
│ coal + │ ┃ Page title 26px coal semibold [search] [btn] │
|
|
113
|
+
│ texture │ description 13px muted │
|
|
114
|
+
│ │───────────────── 1px #D5DCDC hairline ────────────────│
|
|
97
115
|
│ width 16% │ ┌ Tab bar (light teal) ───────── count · [10 ▾] ──┐ │
|
|
98
116
|
│ │ ├ Table panel: search · Stĺpce · Počet výsledkov ─┤ │
|
|
99
117
|
│ logo 100px │ ├ TABLE: coal header, 2px teal underline ─────────┤ │
|
|
@@ -102,6 +120,47 @@ Apps render inside the WEB_Wertyz CMS (iframe), so there is no app top bar of ou
|
|
|
102
120
|
└──────────────┴──────────────────────────────────────────────────────┘
|
|
103
121
|
```
|
|
104
122
|
|
|
123
|
+
- **Canvas**: `--surface-canvas #E9EDED` fills the whole viewport (`WertyzContent` min-height 100vh) — a
|
|
124
|
+
page never ends in a white strip. Content blocks are **white cards** on it (1 px `#DDE3E3`, raised
|
|
125
|
+
radius 4 px, no shadow); the list table is a card attached under the tab bar.
|
|
126
|
+
- **Table panel = filter bar** (`WertyzTablePanel`, inside the table card): neutral `--surface-well` area with a
|
|
127
|
+
card border and radius 4 px that groups the search, the custom filters of the `first-item` / `second-item` slots (dates, selects) on white fields,
|
|
128
|
+
and the result count. Never a second teal band under the tab bar. All its controls are 40 px (search,
|
|
129
|
+
"Stĺpce" button, page-length select). Search = field + green magnifier block on the right (same as the
|
|
130
|
+
header search in the apps); the page-length select keeps the teal arrow block like every select.
|
|
131
|
+
- **Numbers are content**: tabular figures in tables, KPI values 600, numeric table columns semibold and right
|
|
132
|
+
aligned (DataTables `dt-type-numeric`); IDs in their own treatment (record chip). DataTables texts are
|
|
133
|
+
localised by WertyzTable (keys `TableInfo`, `TableEmpty`, `TableNoMatch`, … with Slovak fallbacks) and its own
|
|
134
|
+
page-length select is hidden (the panel / navbar has one).
|
|
135
|
+
- **Form fields are one family** (input, native `select.form-control`, select2, vue-multiselect, datepicker): 40 px,
|
|
136
|
+
1 px `--grey` edge, radius 4 px, value 18 px light coal, placeholder `#767676` 18 px; every single select has the
|
|
137
|
+
same teal 40 px arrow block with a white triangle (native selects get it via CSS). Field labels 16 px regular
|
|
138
|
+
(also the `WertyzRadioGroup` heading). Stacked checkboxes 10 px apart. Switch texts from `SwitchOn`/`SwitchOff`
|
|
139
|
+
(fallback Áno / Nie).
|
|
140
|
+
- **Header actions** are one group on the right, buttons as wide as their text (min 140 px), primary action last
|
|
141
|
+
(rightmost, same order on phones); when title (min 320 px) + search + actions do not fit, the row wraps.
|
|
142
|
+
Phones show the same header content (facts, record chip, state, meta).
|
|
143
|
+
- **Confirmations name the object and the consequence** ("Žiadosť #1002 (DPB a.s.) bude zamietnutá a
|
|
144
|
+
organizácia dostane e-mail."), buttons are verbs ("Ponechať" / "Zamietnuť"), cancel first as a white outline
|
|
145
|
+
button (initial focus), confirm red.
|
|
146
|
+
- **One card language** for everything on the canvas: white, 1 px `--card-border #DDE3E3`, **no shadow**,
|
|
147
|
+
radius 4 px, padding 20 px — list table card, detail content items, chart cards, KPI cards, option tiles.
|
|
148
|
+
Card titles: 15 px semibold coal, sentence case (`WertyzFormSection`, chart cards). 12 px uppercase is only
|
|
149
|
+
for micro-labels (table head, KPI label). **The teal mark means active / selected / important only**
|
|
150
|
+
(active tab, active menu item, selected row/tile, KPI edge, required input) — never decoration on titles. A tab bar and the card under it form **one box**: the bar
|
|
151
|
+
carries the card's 1 px side edges and the top radius, the card has no top edge — so the active white tab
|
|
152
|
+
never sticks out past the card border. Inside a card, tool rows (table search / count) are separated by
|
|
153
|
+
a hairline, never by another tinted band.
|
|
154
|
+
- **Page header (WertyzHeader on lists = WertyzDetailHeader on details)**: one look for both, sitting on the
|
|
155
|
+
canvas — no coloured band (the CMS above already has a black top bar; a dark band clashed with it, decision
|
|
156
|
+
2026-11-18). Full-bleed 1 px `#D5DCDC` hairline under it, title 26 px semibold coal, actions right.
|
|
157
|
+
The header carries **content, not decoration** (impeccable critique 2026-11-18: the teal-tick + title +
|
|
158
|
+
subtitle header read as a generic AI template):
|
|
159
|
+
- Lists: `description` (14 px muted) and **facts** — what waits for the operator ("5 čaká na schválenie",
|
|
160
|
+
"2 aktivácie zlyhali"), tinted by status tone, clickable to the matching tab.
|
|
161
|
+
- Details: the **record number chip** (coal, 16 px semibold tabular, "#1002") before the title, the entity
|
|
162
|
+
name as the title (not a generic noun like "Žiadosť"), ONE status badge and a meta line
|
|
163
|
+
(type · date · author). The decorative icon box is only a fallback when there is no record number.
|
|
105
164
|
- **Sidebar (WertyzMenu)**: coal background + texture, logo block 100 px, then a 2 px teal line. Items: teal
|
|
106
165
|
icon (25 px glyph in a 28 px box) + white label with ellipsis; hover = coal-hover. **Active item = dark teal
|
|
107
166
|
`#006666` background + 3 px teal left accent, white icon, semibold label**; its open submenu sits on
|
|
@@ -114,18 +173,20 @@ Apps render inside the WEB_Wertyz CMS (iframe), so there is no app top bar of ou
|
|
|
114
173
|
## 3. Page types
|
|
115
174
|
|
|
116
175
|
### List page (most common)
|
|
117
|
-
1. **Header** –
|
|
118
|
-
|
|
176
|
+
1. **Header** – see §2 *Page header*: 26 px semibold coal title, description, actionable **facts**; optional
|
|
177
|
+
search; actions as one right-aligned group sized by text. Full-bleed 1 px `#D5DCDC` hairline under it.
|
|
119
178
|
2. **Filter tab bar** (WertyzListNavbar) – light-teal strip (`#D5EEE8`), tabs 45 px high, 15 px semibold,
|
|
120
179
|
inactive grey `#686868`, active black with **3 px teal top border**. Right side tools: column picker,
|
|
121
180
|
"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) –
|
|
123
|
-
|
|
181
|
+
3. **Table panel** (optional, instead of the count in the tab bar) – the neutral **filter bar** from §2
|
|
182
|
+
(`--surface-well`, card border, radius 4 px): search field with the green magnifier block, date / select
|
|
183
|
+
filters from the slots, column picker, result count, page length — all 40 px.
|
|
124
184
|
4. **Table** – see components.
|
|
125
185
|
5. **Pagination** – arrow images `« ‹ › »` + square page chips (radius 3 px, active = teal fill).
|
|
126
186
|
|
|
127
187
|
### Detail page
|
|
128
|
-
- **Detail header**: back
|
|
188
|
+
- **Detail header**: back link, **record number chip** (#1002) + entity name as title + ONE status badge +
|
|
189
|
+
meta line (icon box only as a fallback without a record number); action group right, primary last.
|
|
129
190
|
- **Two blocks**: an *informations* card (key facts as label/value grid) and a *content* card with
|
|
130
191
|
**detail tabs** (same tab bar as lists) and the tab content directly inside the card (~10 px from edge).
|
|
131
192
|
- Forms inside tabs are grouped with **form sections**.
|
|
@@ -143,7 +204,7 @@ Apps render inside the WEB_Wertyz CMS (iframe), so there is no app top bar of ou
|
|
|
143
204
|
| `white` (secondary) | white bg, teal text, 1 px teal border | teal bg, white text |
|
|
144
205
|
| `red` (destructive outline) | white bg, red text + border | red bg, white text |
|
|
145
206
|
| `red--full` | red bg, white | `#AB0101` |
|
|
146
|
-
| `orange` | orange bg, white |
|
|
207
|
+
| `orange` | `--orange-strong` bg, white | `--orange-ink` |
|
|
147
208
|
| `lightgrey` | `#F3F3F3`, black | white |
|
|
148
209
|
| `darkgreen`, `black` | solid | coal |
|
|
149
210
|
| disabled | `#F3F3F3` bg, grey text, 60 % opacity, no shadow | – |
|
|
@@ -171,13 +232,14 @@ Usually full width of their grid column (`btn-block`). Labels sentence case, sho
|
|
|
171
232
|
- Numbers right-aligned or centred with tabular figures; missing data as red semibold "NO DATA".
|
|
172
233
|
- First column often a small logo/icon (40 px high).
|
|
173
234
|
- Footer (tfoot) summary rows per currency, semibold.
|
|
174
|
-
- **Column picker** (desktop): white "Stĺpce **5 / 8**" button (
|
|
235
|
+
- **Column picker** (desktop): white "Stĺpce **5 / 8**" button (40 px, count chip light teal/dark teal) next
|
|
175
236
|
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,
|
|
237
|
+
- **Mobile – cards mode**: each row becomes a white card (radius 4 px, 1 px card border, padding 10 × 12 px,
|
|
177
238
|
8 px gap). Optional **icon** (logo ≤ 64 × 40 px) left of the **title** (16 px semibold); badge top-right;
|
|
178
239
|
then rows "LABEL value" where the label is 11 px uppercase muted, 38 % width. Above the cards a sort
|
|
179
240
|
select (standard select look) + direction arrow.
|
|
180
|
-
- **Mobile – scroll mode**: plain horizontal scroll
|
|
241
|
+
- **Mobile – scroll mode**: plain horizontal scroll inside the table card (never the page), with the house
|
|
242
|
+
scrollbar (teal thumb on `--lightgrey`); no scrollbar when the table fits. First column may be pinned.
|
|
181
243
|
|
|
182
244
|
### Tabs
|
|
183
245
|
- Bar background light teal, bottom 1 px `#D8D4D4`. Tab: 45 px, padding 8 × 30 px, 15 px semibold,
|
|
@@ -185,27 +247,49 @@ Usually full width of their grid column (`btn-block`). Labels sentence case, sho
|
|
|
185
247
|
white bar (active tab `#F3F3F3`).
|
|
186
248
|
- **Mobile**: horizontally scrollable strip with fade + arrow hints (arrow images from pagination); with
|
|
187
249
|
many tabs a select with a 3 px teal left border; optional accordion of raised cards (44 px headers).
|
|
250
|
+
- **Overflow "More"** (`overflow="more"`, desktop + mobile strip): the strip never scrolls; tabs that don't
|
|
251
|
+
fit move into "Viac" pinned to the **right end** of the bar — a compact control, not a tab: hairline
|
|
252
|
+
divider on its left, 14 px semibold muted text, count in a white 20 px chip (dark teal digits), 12 px
|
|
253
|
+
chevron icon. Open: white with the 3 px teal top bar like an active tab, chevron flipped, and the menu
|
|
254
|
+
hangs flush underneath (square top corners, 1 px `#D8D4D4`, bottom radius 4 px, floating shadow,
|
|
255
|
+
40 px rows, hover = light-teal row + 3 px teal left accent). The active tab always stays in the strip.
|
|
188
256
|
|
|
189
257
|
### KPI card
|
|
190
|
-
White, radius 4 px,
|
|
258
|
+
White, radius 4 px, 1 px card border, **3 px coloured left accent** (teal default; dark teal / orange / red /
|
|
191
259
|
blue / grey by meaning), padding 14 × 16 px. Label 12 px uppercase semibold muted (+ 14 px icon), value
|
|
192
260
|
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 +
|
|
261
|
+
bar, optional description. Clickable variant: hover light-teal bg + teal-tinted border. Grid: auto-fill, min
|
|
194
262
|
160 px, gap 10 px.
|
|
195
263
|
|
|
264
|
+
### Selectable tiles (WertyzTileSelect)
|
|
265
|
+
Choice between options as horizontal **option cards** (package, tariff, payment type, card type) — built so
|
|
266
|
+
text never wraps: `[icon well] [title / description] [meta] [control]`. Grid auto-fill, min 260 px, cards
|
|
267
|
+
stretch to fill the row, gap 10 px, one column on a phone. Card: white, 1 px `#D8D4D4`, radius 4 px,
|
|
268
|
+
min height 72 px, padding 12 × 16 px. Icon well 44 px, light teal, icon 24 px dark teal
|
|
269
|
+
(monochrome `icon` as a mask, or a colour `image`). Title 15 px semibold and description 13 px muted, **one
|
|
270
|
+
line each with an ellipsis**, full text in the tooltip. Meta (price) 15 px semibold tabular. Control 20 px:
|
|
271
|
+
circle = pick one, square = pick several, empty ring coal 50 % (3.2:1).
|
|
272
|
+
Hover: teal-tinted border (no shadow, no scale). Selected: 2 px teal edge (inset), faint teal surface
|
|
273
|
+
`#F2F9F8`, icon well + control filled dark teal with white icon / check, meta dark teal — no full teal fill,
|
|
274
|
+
no white text on teal. Disabled: light-grey card, content at .6. One native radio/checkbox per card.
|
|
275
|
+
(The square centred tiles of WEB_Onboard `PackageTile` wrap their texts — don't copy them.)
|
|
276
|
+
|
|
196
277
|
### Form section
|
|
197
|
-
Title
|
|
278
|
+
Title = **card title**: 15 px semibold coal, sentence case, no teal mark; optional 13 px muted description;
|
|
198
279
|
16 px between grid rows; consecutive sections separated by 1 px `#F3F3F3` line + 18 px padding.
|
|
199
280
|
|
|
200
281
|
### Badges / chips
|
|
201
|
-
Tinted pairs, padding 4 × 10 px, radius 3 px, 12 px semibold: success light-teal/teal, warning light-orange
|
|
202
|
-
`#FDE2E2`/red, info `#DCE6F7`/dark blue, neutral `#F3F3F3`/dark grey. Active (selected) chip = solid colour
|
|
282
|
+
Tinted pairs, padding 4 × 10 px, radius 3 px, 12 px semibold: success light-teal/dark teal, warning light-orange/`--orange-ink`, error
|
|
283
|
+
`#FDE2E2`/dark red, info `#DCE6F7`/dark blue, neutral `#F3F3F3`/dark grey. Active (selected) chip = solid colour
|
|
203
284
|
with white text.
|
|
204
285
|
|
|
205
286
|
### Modal
|
|
206
|
-
Scrim `rgba(0,0,0,.5)`; dialog white,
|
|
207
|
-
Header **teal bar**
|
|
208
|
-
|
|
287
|
+
Scrim `rgba(0,0,0,.5)`; dialog white, radius 4 px, modal shadow, width 40 % desktop / full on mobile.
|
|
288
|
+
Header **teal bar** (kept on purpose, decision 2026-11-18) with a white 20 px semibold title **left-aligned**
|
|
289
|
+
like the page header and a white 20 px X close (36 px click target, no red icon); body padding 24 px; footer buttons right
|
|
290
|
+
(`white` cancel + `green` confirm). On open the first body field gets focus, unless it opens a popup on
|
|
291
|
+
focus (multiselect, datepicker, select2) — then the dialog itself, so nothing drops down by itself. Confirmation dialog: `--orange-strong` header bar, red confirm for
|
|
292
|
+
destructive actions.
|
|
209
293
|
|
|
210
294
|
### Empty state
|
|
211
295
|
1 px **dashed** grey box, radius 4 px, padding 18 px: 38 px grey circle with icon, coal semibold title, muted
|
|
@@ -216,7 +300,10 @@ Loader: teal spinner on white scrim. Small inline loader for buttons/sections. P
|
|
|
216
300
|
grey. Toast/alerts use the badge tint pairs.
|
|
217
301
|
|
|
218
302
|
### Charts
|
|
219
|
-
Chart.js (pie / bar / line) in white chart cards
|
|
303
|
+
Chart.js (pie / bar / line) in white chart cards (`WertyzChartContent`: card border, no shadow, radius 4 px)
|
|
304
|
+
whose title is the **card title** (15 px semibold coal, sentence case, no mark — same as `WertyzFormSection`,
|
|
305
|
+
also for an `h4` an app puts into the `#header` slot), arranged in a responsive `.charts` grid. Chart text uses the app font (Source Sans Pro,
|
|
306
|
+
12 px, `#4E4E4E`), grid lines coal 8 %, legend marks 10 px (`applyChartTheme`).
|
|
220
307
|
Series colours come from the app's `CHART_COLORS` and should be drawn from the palette above (teal first,
|
|
221
308
|
then dark teal, orange, dark blue, purple, light blue, yellow); light grey grid lines, legend below.
|
|
222
309
|
|