wertyz-vue 3.13.0 → 3.13.3

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 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
@@ -93,9 +93,9 @@ Balík viacero vecí len **predpokladá** že už existujú globálne — nič z
93
93
  | **`vue-spinner`** | `PulseLoader` komponent | `WertyzSmallLoader` (a všetko čo ho vnútri používa: `WertyzModal`, `WertyzConfirmationWindow`, `WertyzChartContent`) |
94
94
  | **`pdfmake`** | Export do PDF | `wExport.exportPDF(pdfMake, ...)` — musíš doň poslať vlastnú `pdfMake` inštanciu |
95
95
  | **Bootstrap-like CSS triedy** (`form-control`, `input-group`, `table`, `btn-*`) | Štýlovanie | `WertyzInput`, `WertyzSelectList`, `WertyzTable` |
96
- | **`vue-multiselect` ≥ 3** (peer dependency, od 3.13) + jeho CSS (`import 'vue-multiselect/dist/vue-multiselect.css'` raz v `main.js`) | Výber zoradenia v režime kariet — balík ho nezabaľuje, aby sa nezdvojoval s kópiou appky; tému `.multiselect__*` dodáva `global.css` | `WertyzTable` (a teda aj `WertyzListContent`) — import je v bundli vždy, takže appka bez `vue-multiselect` sa nezostaví |
96
+ | **`vue-multiselect` ≥ 3** (peer dependency, od 3.13) (CSS od 3.13.1 načíta `WertyzTable` sama; v 3.13.0 treba `import 'vue-multiselect/dist/vue-multiselect.css'` v `main.js`) | Výber zoradenia v režime kariet — balík ho nezabaľuje, aby sa nezdvojoval s kópiou appky; tému `.multiselect__*` dodáva `global.css` | `WertyzTable` (a teda aj `WertyzListContent`) — import je v bundli vždy, takže appka bez `vue-multiselect` sa nezostaví |
97
97
  | **`ol` ≥ 8.0.0 + `ol-ext` ≥ 4.0.0`** (peer dependencies) | OpenLayers mapy | `wMap` / `wertyz-vue/wMapNext` |
98
- | **`ol-contextmenu`** (nikde nedeklarované, ani ako peer dep) | Kontextové menu na mape | len `wertyz-vue/wMapNext` |
98
+ | **`ol-contextmenu`** ≥ 6 (peer dependency) | Kontextové menu na mape | `wertyz-vue/wMapNext` — import `ol-contextmenu` aj `ol-ext/layer/AnimatedCluster` je v bundli vždy, oba balíky musia byť nainštalované |
99
99
 
100
100
  Naopak **`chart.js`, `vue-chartjs` a `chartjs-adapter-moment`** sú v `package.json` uvedené len ako
101
101
  `devDependencies`, ale v skutočnosti **sú zabalené priamo do `dist/wertyzVue.js`** — tie
@@ -581,6 +581,8 @@ Jednoriadkový text/number input s labelom, popisným textom a voliteľným prí
581
581
  | `disabled` | `Boolean`, `false` | Nastavuje atribút `disabled` — pole je needitovateľné a nepoužíva sa v odosielaných formulárových dátach. |
582
582
  | `appendText` | `any`, `null` | Keď je pravdivé: obalový `<div>` dostane triedu `input-group` a v predvolenom obsahu slotu `append` sa zobrazí `<span class="input-group-addon">{{appendText}}</span>`. Ak rodič poskytne vlastný obsah cez `<template #append>`, text sa nevykreslí, ale trieda `input-group` na wrapperi sa stále riadi jeho pravdivostnou hodnotou. |
583
583
  | `maxLength` / `max` | `Number`, `null` | Mapujú sa priamo na HTML atribúty `maxlength` a `max` (obmedzenie počtu znakov, resp. maximálnej číselnej hodnoty pri `type="number"`). |
584
+ | `optional` | `Boolean`, `false` | Za text labelu pridá sivé „(nepovinné)“ (`<span class="w__optional">`). Text je `optionalText`, ak je „falsy“, preklad `$t('Optional')`. Rovnakú triedu `w__optional` môže aplikácia použiť aj pri vlastných labeloch (multiselect, nadpis sekcie). |
585
+ | `optionalText` | `String`, `null` | Text v zátvorke pri `optional`. |
584
586
 
585
587
  **Emits**: `update:modelValue` — **len na natívny `change`, nie na `input`** (hodnota sa aktualizuje
586
588
  až po strate fokusu alebo Enter, nie pri každom stlačení klávesy).
@@ -633,8 +635,9 @@ Radio button (samostatný, alebo cez `WertyzRadioGroup` z poľa `items`).
633
635
  | Prop | Typ / default | Čo ovplyvňuje |
634
636
  |---|---|---|
635
637
  | `modelValue` | `any`, v-model | Hoci typ nie je obmedzený, v šablóne sa vždy vynucuje na boolean (`:checked="modelValue ? true : false"`). Pri `@input` sa emituje `update:modelValue` so skutočným `$event.target.checked`, takže akákoľvek "truthy" vstupná hodnota sa po prvej interakcii nahradí čistým `true`/`false`. |
636
- | `labelText` | `String`, `null` | Text vnútorného `<label>` vedľa checkboxu. |
638
+ | `labelText` | `String`, `null` | Text vedľa checkboxu (`<span class="w__checkbox__text">` vnútri `<label>`, klik na text prepne checkbox). |
637
639
  | `disabled` | `Boolean`, `false` | Nastavuje atribút `disabled` na `<input type="checkbox">`. |
640
+ | `required` | `Boolean`, `false` | Za text pridá červenú hviezdičku (`.w__required-mark`). Len vizuálne, validáciu (napr. súhlas s podmienkami) rieši volajúci. |
638
641
  | `icon` | `String`, `null` | Ak je nastavený, zobrazí sa ikona napravo od checkboxu. |
639
642
 
640
643
  **Emits**: `update:modelValue` (boolean).
@@ -798,9 +801,9 @@ takže opakované mount/unmount tabuliek už neakumuluje timery v `window.eventR
798
801
  |---|---|
799
802
  | `mobileMode` (`WertyzListContent`: `tableMobileMode`), `'scroll'` | Na mobile vodorovný posun ako doteraz. |
800
803
  | `mobileMode: 'cards'` | Na mobile je každý riadok karta. Hlavička sa skryje, zoradenie je vo `vue-multiselect` (ikona ⇅) so šípkou smeru ako v stránkovaní, vyhľadávanie, filtre a stránkovanie ostávajú. `scrollX` sa v tomto režime vypne. |
801
- | `tableColumns[i].mobile` | Rola na karte: `'title'`, `'subtitle'`, `'badge'`, `true` (riadok „popis: hodnota“), `false` (skrytý). Bez nastavenia: 1. stĺpec nadpis, ďalšie 3 riadky. |
804
+ | `tableColumns[i].mobile` | Rola na karte: `'icon'` (od 3.13.1, obrázok vľavo pri nadpise), `'title'`, `'subtitle'`, `'badge'`, `true` (riadok „popis: hodnota“), `false` (skrytý). Bez nastavenia: 1. stĺpec nadpis, ďalšie 3 riadky. |
802
805
  | `tableColumns[i].mobileLabel` | Kratší popis na karte. |
803
- | `columnPicker` (`tableColumnPicker`), `false` | Tlačidlo **Stĺpce** na desktope (menu s `WertyzCheckbox`). Výber ukladá `stateSave` DataTables. Vo `WertyzListContent` s navbarom je tlačidlo v navbare vedľa počtu výsledkov a počtu riadkov, inak v lište nad tabuľkou (`showColumnPicker: false` ho v tabuľke skryje, stav sa emituje eventom `column-visibility`). Samostatne: `WertyzTableColumnPicker` (`columns`, `visibility`, `locked`, emits `toggle`, `reset`). |
806
+ | `columnPicker` (`tableColumnPicker`), `false` | Tlačidlo **Stĺpce** na desktope (menu s `WertyzCheckbox`). Výber ukladá `stateSave` DataTables. Názvy stĺpcov berie z `tableColumns`; ak hlavička ide cez slot `header`, číta ich z `<thead>` (od 3.13.1; viacriadková hlavička → „Skupina – Stĺpec“, stĺpce bez nadpisu sa v menu neukážu; nastavenia cez `data-mobile`, `data-mobile-label`, `data-hidden`, `data-hideable="false"`, `data-pinned` na `<th>`, platí aj pre karty). Tlačidlo je vždy pri „Počet výsledkov“: so `showPanel` v paneli tabuľky (od 3.13.1), vo `WertyzListContent` s navbarom bez panela v navbare, inak v lište nad tabuľkou (`showColumnPicker: false` ho v tabuľke skryje, stav sa emituje eventom `column-visibility`). Samostatne: `WertyzTableColumnPicker` (`columns`, `visibility`, `locked`, emits `toggle`, `reset`). |
804
807
  | `tableColumns[i].hidden` | Na desktope predvolene skrytý stĺpec (dá sa zapnúť; „Obnoviť predvolené“ sa k nemu vráti). |
805
808
  | `tableColumns[i].pinned` / `hideable: false` | Stĺpec sa nedá skryť; `pinned: true` na 1. stĺpci ho navyše **pripne** pri vodorovnom posune (hlavička aj riadky, `position: sticky`, mobil aj desktop). Prvý stĺpec sa skryť nedá nikdy. |
806
809
 
@@ -1126,8 +1129,14 @@ Dva samostatné, **nemiešateľné** moduly pre interaktívne OpenLayers mapy:
1126
1129
  - **`wMap` next** (`wertyz-vue/wMapNext`) — moderný, samostatný rewrite. Exportuje `Processor`
1127
1130
  triedu + `GEOMETRY` enum pre clustering, draw/modify/select interakcie, kontextové menu.
1128
1131
 
1129
- Vyžaduje `ol` ≥ 8.0.0 + `ol-ext` ≥ 4.0.0 (peer dependencies), `wMapNext` navyše `ol-contextmenu`
1130
- (nikde nedeklarované). Žiadny modul nedodáva OpenLayers CSS — `import 'ol/ol.css'` sám.
1132
+ Vyžaduje `ol` ≥ 8.0.0, `ol-ext` ≥ 4.0.0 a `ol-contextmenu` ≥ 6.0.0 (peer dependencies). Žiadny modul nedodáva
1133
+ OpenLayers CSS — `import 'ol/ol.css'` sám. Od 3.13.1 je OpenLayers aj ol-ext externý (`dist/wMapNext.js` ~20 kB,
1134
+ používa `ol` appky); do 3.13.0 bol zabalený priamo v ňom (~385 kB, dve kópie `ol`).
1135
+
1136
+ Webpack appky s mapou potrebuje pravidlo `{ test: /\.m?js$/, include: [/node_modules[\\/]ol[\\/]/,
1137
+ /node_modules[\\/]ol-contextmenu[\\/]/], resolve: { fullySpecified: false } }` a pri `ol-contextmenu` 6.x alias
1138
+ `'ol-contextmenu$': path.resolve('./node_modules/ol-contextmenu/dist/ol-contextmenu.js')` — jeho UMD build inak
1139
+ padá na „Class extends value #<Object> is not a constructor or null" (vzor: WEB_Onboard).
1131
1140
 
1132
1141
  ---
1133
1142
 
@@ -1170,7 +1179,41 @@ nezmenila.**
1170
1179
 
1171
1180
  ## 12. Zoznam zmien
1172
1181
 
1173
- ### Pripravené pre ďalšiu verziu (3.13.0, október 2026)
1182
+ ### Pripravené pre ďalšiu verziu (3.13.1, október 2026) — opravy `wMapNext` a výberu stĺpcov
1183
+
1184
+ - **OpenLayers už nie je zabalený v `dist/wMapNext.js`** (externals teraz pokrývajú `ol/*` aj `ol-ext/*` s príponou
1185
+ `.js`) — 385 kB → ~20 kB, appka má jednu kópiu `ol`. `ol` / `ol-ext` sú peer dependencies, npm ich doinštaluje.
1186
+ - `MapWrapper.off` / `LayerWrapper.off` reálne odregistrujú handler (predtým nerobili nič); rovnaký handler sa cez
1187
+ `on` nezaregistruje dvakrát.
1188
+ - Nové `MapWrapper.removeOverlay` / `removeControl` / `removeInteraction`.
1189
+ - `LayerWrapper.getFeaturesByProperty` / `removeFeaturesByProperty` už nepadajú.
1190
+ - `OverlayWrapper.setContent` / `show(feature, html)` už nepadajú; `element` môže byť aj `HTMLElement`.
1191
+ - `ModifyWrapper`: kruh vracia `{ longitude, latitude, radius }` (predtým pád), pri `alwaysOneFeature: true` sa
1192
+ vracia aj polygón (predtým `undefined`), typ geometrie sa určuje podľa `getType()`.
1193
+ - `ClusterLayerWrapper` rešpektuje `opacity`; `MapWrapper` rešpektuje `zoom: 0`.
1194
+ - `includeDraw` a `DrawPolygonWrapper` / `DrawCircleWrapper` už nemenia objekt `options` volajúceho.
1195
+ - Odstránené ladiace `console.log` výpisy.
1196
+ - **`WertyzTable` výber stĺpcov so slotom `header`**: predtým ukazoval „0 / 0“ a nedal sa použiť (stĺpce bral len
1197
+ z `tableColumns`). Teraz ich načíta z hlavičky tabuľky, pri viacriadkovej hlavičke s názvom skupiny
1198
+ („Hotovosť – Suma“). Počítadlo „n / m“ ráta len stĺpce s názvom.
1199
+ - **Výber stĺpcov je vždy pri „Počet výsledkov“**: pri `showPanel: true` je tlačidlo v paneli tabuľky (nový slot
1200
+ `control` vo `WertyzTablePanel`), vo `WertyzListContent` s navbarom bez panela ostáva v navbare.
1201
+ - **Režim kariet so slotom `header`**: karty mali prázdne popisy (brali sa len z `tableColumns`). Teraz sa stĺpce
1202
+ čítajú z `<thead>` pred inicializáciou tabuľky, takže fungujú popisy na karte, výber stĺpcov aj zoradenie na mobile.
1203
+ Nastavenia ako v `tableColumns` sa dajú zadať atribútmi na `<th>`: `data-mobile="icon|title|subtitle|badge|true|false"`,
1204
+ `data-mobile-label`, `data-hidden`, `data-hideable="false"`, `data-pinned`. Bez nich je na karte prvý pomenovaný
1205
+ stĺpec nadpis, ďalšie 3 pomenované riadky. Výber zoradenia ukazuje „⇅ Zoradiť podľa“, keď je tabuľka zoradená podľa
1206
+ stĺpca mimo ponuky.
1207
+ - Otvorenie stránky najprv na mobile (karty) už neprepíše predvolene skryté stĺpce (`hidden`) na desktope.
1208
+ - **Ikona na karte**: nová rola `mobile: 'icon'` (resp. `data-mobile="icon"` na `<th>`) zobrazí obsah bunky (logo,
1209
+ ikonu stavu) vľavo pri nadpise karty, max. 64 × 40 px. Pri hlavičke cez slot `header` je ikonou automaticky stĺpec
1210
+ bez nadpisu pred prvým pomenovaným stĺpcom (napr. logo organizácie v Clearing2).
1211
+ - **`WertyzDetailNavbar`: odstránený padding `12px 14px` okolo obsahu tabu** pridaný v 3.13.0 — obsah je opäť ~10px
1212
+ od okraja karty ako pred 3.13.
1213
+ - **`WertyzTable` si načíta CSS `vue-multiselect` sama** (zostáva externé, spracuje ho CSS loader appky). Predtým bol
1214
+ výber zoradenia na kartách bez štýlov, ak appka CSS neimportovala v `main.js` (napr. Clearing2 ho má len v modáloch).
1215
+
1216
+ ### 3.13.0 (október 2026)
1174
1217
 
1175
1218
  - **Nové komponenty**: `WertyzKpiCard` (+ trieda `w__kpi-row` v `global.css`), `WertyzFormSection`,
1176
1219
  `WertyzEmptyState` — pozri sekcie vyššie.