Commit Graph

154 Commits

Author SHA1 Message Date
Tobias Åström
c64558bc76 chore: migrate to gh actions (#1775)
* chore: migrate to gh actions

* chore: update baselines

* chore: remove circle
2025-06-24 12:52:16 +02:00
Tobias Åström
343dedfba4 chore: remove aw (#1771)
* chore: remove aw

* chore: add back jimp

* chore: add back jimp
2025-06-21 14:24:52 +02:00
Tobias Åström
8a6c2817a0 chore: convert mashup tests (#1770)
* chore: start migrate mashup tetss

* chore: rename file

* chore: add log

* chore: mashup test config

* chore: higher timeout

* chore: more config

* chore: reporter

* chore: change config

* chore: change config

* chore: change config

* chore: change config

* chore: store artifacts

* chore: longer timeout

* chore: migrate listbox test

* chore: update waitForFunc
2025-06-19 16:21:09 +02:00
Tobias Åström
6ad4ef1e94 chore: migrate integration test suite to pw (#1769)
* chore: migrate integration test suite to pw

* chore: update circle config

* chore: try break

* chore: revert break
2025-06-18 16:46:04 +02:00
Tobias Åström
283a583206 chore: move bc comp test to pw (#1768)
* chore: move comp test to pw

* chore: remove host
2025-06-18 15:10:52 +02:00
renovate[bot]
b1146c6639 fix(deps): update minor and patch (#1722)
* fix(deps): update minor and patch

* chore: lower threshold

* chore: try new locator

* chore: try new locator

* chore: try new locator

* chore: try new locator

* chore: try new locator

* chore: try new locator

* chore: try new locator

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: caele <tsm@qlik.com>
2025-04-25 11:12:54 +02:00
Christian Veinfors
56214c5b54 fix: pick up and apply font-size in dense listboxes (#1709) 2025-04-01 09:32:36 +02:00
Tobias Åström
47fd983195 Revert "fix: pick up and apply font size in compact listbox (#1685)" (#1698)
This reverts commit 3663a46115.
2025-03-25 13:16:08 +01:00
Tobias Åström
15c83cdb55 fix: align theme none color to client (#1696)
* fix: align theme none color to client

* chore: update spec
2025-03-24 15:12:15 +01:00
Christian Veinfors
3663a46115 fix: pick up and apply font size in compact listbox (#1685) 2025-03-11 08:40:39 +01:00
Tobias Åström
8467978604 feat: add basic bundle analysis for dev builds (#1673) 2025-01-30 13:59:23 +01:00
Tobias Åström
0f488c6452 fix: make sure more tests run (#1666)
* fix: make sure more tests run

* fix: make sure more tests run

* fix: make sure more tests run

* fix: make sure more tests run

* fix: make sure more tests run

* fix: make sure more tests run

* fix: make sure more tests run

* fix: make sure more tests run
2025-01-16 09:02:03 +01:00
Tobias Åström
c5a3bceec6 chore: get rid of jimp (#1659)
* chore: change snapper to es6

* chore: jimp 1.6.0

* chore: change snapper back

* chore: ems import of jimp

* chore: ems import of jimp

* chore: get rid of jimp

* chore: add baseline
2024-12-30 16:43:54 +01:00
Tobias Åström
32d600e88b chore: convert rendering tests to es6 (#1658)
* chore: convert rendering tests to es6

* chore: fix cjs config usage

* chore: fix cjs config usage

* chore: fix verify translations

* chore: babel and jest es6

* chore: aw cjs

* chore: aw cjs

* chore: aw cjs

* chore: fix path
2024-12-30 14:40:28 +01:00
Tobias Åström
639204d6c1 feat: add onError and onRender callbacks (#1636)
* feat: add onError and onRender callbacks

* chore: add viz error file

* chore: move things around

* chore: check against missing onError

* chore: expose renderError

* chore: tidy up

Co-authored-by: Johan Lahti <johanlahti@users.noreply.github.com>

---------

Co-authored-by: Johan Lahti <johanlahti@users.noreply.github.com>
2024-11-12 15:08:51 +01:00
renovate[bot]
8aa3235f59 chore(deps): update minor and patch (#1587)
* chore(deps): update minor and patch

* chore: adjust baselines

* chore: baseline

* chore: baseline

* chore: baseline

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: caele <tsm@qlik.com>
2024-11-04 14:46:40 +01:00
Max Gefvert
e26f580a1d fix: use correct green color for selected (#1597) 2024-08-30 13:58:14 +02:00
linhnguyen-qlik
4136e6458d fix: always show action toolbar in popover but not necessary being in selection mode (#1576)
* fix: always show action buttons

* fix: only focus when not disabled

* fix: remove check that no longer needed

* fix: revert change

* fix: start selection when showing search and listbox is not a popover

* fix: add mock function

* fix: revert back to old code

* fix: can't tab pass row if confirm button is disabled

* fix: unit test

* fix: update snapshots

* fix: selections is undefined
2024-07-18 10:06:09 +02:00
linhnguyen-qlik
22c64bc0a5 feat: add keyboard support for cyclic button and allow keyboard navigation to more button (#1569)
* feat: introduce keyboard support for cyclic button

* fix: wip

* feat: add keyboard support for cyclic button and allow keyboard navigation to more button

* fix: add break

* fix: add undefined

* fix: bring blur

* fix: change onClick

* fix: focus back to list box container

* fix: focus cyclic button at first space

* fix: focus on last-focused row

* fix: close toolbar on escape

* fix: failed test case

* fix: return focus to listbox container when there is nothing to focus

* fix: add unit test

* fix: remove unnecessary code

* fix: try to restore the old behavior

* fix: keyboard nav in global selection

* fix: blur back to listbox

* fix: restore the old logic inSelection

* fix: add check for detached toolbar case

* fix: pr comment

* fix: unit test

* fix: remove unused input

* fix: support in mashup

* fix: faild test case

* fix: failed test case

* fix: add integration test

* fix: failed test case

* fix: update snapshot
2024-07-04 14:02:43 +02:00
Jingjing Xie
1a92d5f44b fix: add clear search button to listbox search (#1566) 2024-06-25 10:17:33 +02:00
linhnguyen-qlik
f7d73d64b9 fix: show more button even when list box is not in selection (#1554)
* fix: show more button even when list box is not in selection

* fix: failded test case

* fix: activate selection if not yet

* fix: search

* revert: changes for search

* fix: remove isInSelection

* fix: change enabled check

* fix: unit test

* fix: unit test

* test: add unit test to check existence of more button

* fix: change description
2024-06-24 12:19:01 +02:00
linhnguyen-qlik
9a1ffd2c03 fix: cycle cyclic dimension doesn't work when filter pane is in selec… (#1531)
* fix: cycle cyclic dimension doesn't work when filter pane is in selection mode

* revert: change

* fix: revert unwanted change

* test: remove and add unit test

* fix: disable cyclic button in edit mode

* refactor: pass all paramters as object

* fix: unit test

* fix: update snapshots
2024-04-22 09:54:24 +02:00
renovate[bot]
0dac1c239b chore(deps): update minor and patch (#1502)
* chore(deps): update minor and patch

* chore: update baseline

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: caele <tsm@qlik.com>
2024-03-08 13:13:39 +01:00
Johan Lahti
7c9748305c refactor(listbox): Use bar and frequency color from styles and generic use of state classes (#1495)
* test: add rendering test for radio buttons

* refactor: add selection state class for cb and rb

* fix: adjust filled bar color

* fix: correct filled style

* test: upload new snapshots
2024-03-07 08:36:46 +01:00
linhnguyen-qlik
f35a5c44c7 feat(ListBoxHeader): add icon for cyclic dimension and new drilldown icon (#1504)
* feat: add cyclic icon and new drilldown icon

* fix: failed unit test

* fix: update snapshot

* test: add rendering test for cyclic

* refactor: data-title-utils.js

* test: add unit test

* fix: update snapshot

* fix: pr comments

* fix: failed test

* fix: typo

* fix: remove unnecessary things
2024-03-06 11:18:27 +01:00
Tobias Åström
98184d0915 fix: align font sizes (#1499)
* fix: add font-size to headers theme load

* chore: add default sizes to base theme

* chore: test updates
2024-02-29 21:37:58 +01:00
Johan Lahti
c2ffdc8479 fix(listbox): add removed autoConfirm option (#1496)
* test: add rendering test for auto confirm

* fix: add back auto confirm

* test: move autoconfirm

* test: upload new snapshot
2024-02-26 09:52:17 +01:00
Johan Lahti
5e35fb61fd feat(ListBox): break out header and add unlock button (#1466)
* fix: error on esc in search

* fix: reset zoom on iphone on nebula level

* fix: show toolbar when icons demand

* feat: unlock cover btn and break out header

* fix: move option

* feat: move showLock option to public options

* fix: centered svg unlock icon

* fix: listen to lock changes

* fix: search icon show fixes

* fix: hide header correctly

* fix: make text overflow great again

* test: updated expected snapshots

* fix: tweak icon sizes more

* fix: apply header style color

* test: update snapshots

* fix: override text explicitly to make it work

* fix: rtl actions keyboard nav inverted

* fix: keyboard nav for unlock button

* fix: align numerical search results correctly

* fix: recreate header on layout or isLocked change

* fix: give layout to can-funcs to stay up to date

* Update apis/nucleus/src/components/listbox/ListBoxInline.jsx

Co-authored-by: Daniel Sjöstrand <99665802+DanielS-Qlik@users.noreply.github.com>

* refactor: add loading icon and block interaction

* fix: justify center when loading

* fix: adjust spinner timeout

* chore: update specs

* feat: moved translation strings

---------

Co-authored-by: Daniel Sjöstrand <99665802+DanielS-Qlik@users.noreply.github.com>
2024-02-01 16:51:05 +01:00
Tobias Åström
e7700876f2 fix: dark theme for listbox (#1449)
* chore: fix dark theme for listbox

* chore: add test

* chore: listbox search bg

* chore: add baseline

* chore: fix tests

* chore: use alpha shift for search bg

* chore: baseline
2024-01-08 14:31:43 +01:00
Johan Lahti
1a0a83ff6e fix(listbox): make search focus border color blue (#1432)
* fix: search focus border color

* test: update tests and snapshots
2023-12-21 13:49:21 +01:00
Johan Lahti
2d3b31858c fix(listbox): let color resolver pick up the index instead of hex (#1428)
* fix: enable picking up the index instead of hex

* fix: resolve color picker color in other cases too

* fix: apply backdrop filter

* fix: limit backdrop to when we have a bg image

* test: update bg image

* test: update unit test
2023-12-11 16:09:16 +01:00
Johan Lahti
999237c12b refactor(listbox): fill height for 1 row (#1414)
* refactor: fill height for 1 row

* refactor: rename constant to GRID_ITEM_PADDING

* test: add rendering test for narrow fill height

* test: snapshot one row no header

* test: update snapshot for linux
2023-11-27 14:23:56 +01:00
Tobias Åström
12de8693ae chore: fix sheet rendering without bounds (#1411)
* chore: support old sheets without bounds

* chore: add rendering test

* chore: sheet fixture fix

* chore: adjust columns

* chore: add baseline
2023-11-23 09:01:38 +01:00
Johan Lahti
b02efa9dbe fix(listbox): conform to previous background image properties naming (#1412)
* fix: conform to previous naming

* test: update property in rendering too
2023-11-23 08:29:57 +01:00
Johan Lahti
a60388e09c feat(listbox): expose and inject background image (#1407)
* feat: expose background image and inject it

* fix: new import path

* refactor: set color on other components and search
  test: rendering test for background image

* test: uploading snapshot for bg image

* refactor: use content color for search text

* fix: skip custom divider color for now

* test: unit tests for background style

* fix: prevent skewed palette color

* fix: border colors

* test: update snapshots

* refactor: handle bg and search color better

* test: update snapshot

* refactor: apply font styles too

* fix: cut off title

* fix: make place for italic font style in header

* test: update snapshots for padding right

* test: snapshot update

* refactor: improve font style fallbacks and fix
  centered headers

* test: snapshots centered headers and ignore files
  with certain paths

* test: update snapshot

* test: snapshot

* test: fix rendering test
2023-11-22 10:54:59 +01:00
Johan Lahti
1da6981e36 refactor: do not contrast colors for checkboxes (#1399)
* refactor: do not contrast colors for checkboxes
  - add rendering test for component styled checkboxes
  - color search with separate content color

* test: upload snapshot

* test: rename snapshot

* test: add search to styles
2023-11-10 09:47:23 +01:00
Johan Lahti
a83377ada4 feat(listbox): listbox styling (#1377)
* feat: enable listbox styling panel filterpane

* fix: first refactor

* fix: getvalue utils

* fix: default header content style

* feat: enable selection state styling

* feat: support components option and hook in
  to styling

* fix: move property to common data

* test: update unit tests

* test: renamed style service and added unit tests

* revert: package.json

* refactor: adjustments and fixes

* fix: make histogram visible again

* fix: ensure frequency number is on top of bar

* test: upload new snapshots

* refactor: merge old styling with new

* refactor: reintroduce background color again

* fix: prevent overrided color

* fix: use excluded bg color for excluded checkboxes

* test: update baseline

* refactor: handle color for checkboxes

* refactor: color the checkbox itself too

* test: snapshots

* refactor: checkboxes and background fix

---------

Co-authored-by: costa <costantino.marullo@qlik.com>
2023-10-20 11:27:59 +02:00
Johan Lahti
9d564d1516 feat: auto confirm selections only on click outside listbox (#1355)
* feat: implement auto confirm

* refactor: auto confirm only on click outside

* refactor: do not render at all if autoConfirm

* refactor: smaller min height and use constants

* test: fix selector

* fix: use correct attribute key

* test: use another testid

* fix: increase minHeight for small grid listboxes

* fix: prevent cut listboxes
2023-10-03 09:34:08 +02:00
Johan Lahti
6e4e91be99 refactor: use percent instead of fixed width for frequency count (#1284)
* refactor: compensate for checkboxes in item width

* test: search highlight rendering test

* refactor: use percent for freq width

* refactor: increase min width and enforce it

* fix: recduce freq min width a bit

* refactor: use measured text instead of constant

* refactor: keep fixed width for percent mode

* test: rm test file

* fix: don't include option to prevent error

* fix: catch N instead of none

* refactor: testing flex basis max-content

* refactor: optimise space usage further

* refactor: set min width for value

* test: update baseline

* fix: use percent instead of auto

* test: upload new baseline imgs after auto -> perc

* refactor: handle right-aligned text with frequency
  differently

* fix: invert it

* fix: account for padding

* fix: use 8px padding as for value element

* refactor: playing around

* refactor: rely on deduced frequency mode

* refactor: reduce width slightly

* test: update

* fix: simplify and improve further

* fix: for grid mode skip explicit min width

* fix: expand more in grid mode and padding for %

* test: update baseline

* test: upload failing img
2023-06-09 09:02:39 +02:00
Christian Veinfors
d053ee3811 refactor: minor adjustments to actionstoolbar (#1281) 2023-05-29 10:04:56 +02:00
Tobias Åström
dc197aca79 chore: switch to codeclimate (#1274)
* chore: switch to codeclimate

* chore: config

* chore: add binary

* chore: file permissions
2023-05-22 16:07:54 +02:00
renovate[bot]
5097bf83d0 chore(deps): update minor and patch (#1275)
* chore(deps): update minor and patch

* chore: set update snapshots to all

* chore: update baseline

* chore: remove all

* chore: update baseline more

* chore: update baseline max

* chore: update baseline maxi

* chore: update baseline maxis

* chore: update baseline maxisu

* chore: update baseline maxisum

* chore: update baseline maxisumo

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: caele <tsm@qlik.com>
2023-05-22 15:43:21 +02:00
Johan Lahti
91aa9fd4b1 test: search highlight rendering test (#1243)
* refactor: compensate for checkboxes in item width

* test: search highlight rendering test

* test: adapt and add scenario

* test: upload snapshots

* refactor: move snapshots to right place
2023-04-25 14:25:03 +02:00
Johan Lahti
bde7d118d1 test: rendering test for keyboard nav in grid mode with all arrow keys (#1240)
* refactor: compensate for checkboxes in item width

* test: keyboard nav in grid mode rendering test

* test: upload snapshot

* test: rename with appending linux

* test: confirm selections to rm selections toolbar

* test: replace snapshot
2023-04-25 08:39:53 +02:00
Daniel Sjöstrand
779261053e test(listbox): add more rendering tests (#1223)
* test: add more rendering tests

* test: update baseline
2023-04-20 10:44:20 +02:00
Johan Lahti
476b75327c test(listbox): keyboard navigation rendering tests (#1220)
* refactor: compensate for checkboxes in item width

* test: render keyboard navigation

* fix: revert mashup change

* test: upload img

* fix: rm unncessary headless

* test: update snapshot
2023-04-14 16:15:47 +02:00
Tobias Åström
034be90b51 feat: add useEmitter and corresponding viz api (#1168)
* feat: add useEmitter and corresponding viz api

* chore: update spec

* chore: remove change to model

* chore: align names
2023-03-28 18:16:40 +02:00
Tobias Åström
65af64044c feat: chart bg colors and title styles from properties and theme (#1183)
* fix: show correct bg color from theme

* feat: show title styles in Nebula mashup

* chore: require theme

* chore: show titles in rendering test

* chore: set props in test correctly

* chore: set some font families

* chore: add font style support

* chore: fix tests

* chore: update image

* chore: use themed in sheet test

* chore: set separate bg color for sheet

* chore: proper prop

* chore: set sheet baseline
2023-03-28 18:16:25 +02:00
Per Nylander
f4b83b6f81 test: adding some more rendering tests for listbox (#1192)
* test: adding some more rendering tests for list

* test: changed fixture and include histogram

* test: add grid rendering tests

* test: addition to gitignore

* test: add baselines
2023-03-28 11:15:42 +02:00
Quan Ho
5cf3dea9bc fix: update spacing for grid mode (#1176) 2023-03-22 16:39:16 +01:00