Skip to content

Commit 08daaec

Browse files
authored
Merge branch 'master' into table
2 parents 1e1f44d + b97c5f1 commit 08daaec

21 files changed

+73
-27
lines changed

README.md

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# bexis-core-ui
22

3+
## 0.4.21
4+
- change footer position in page component
5+
6+
## 0.4.20
7+
- Add aria-label to Table and other components
8+
- Facets
9+
- Add aria-label to Facets component
10+
- sort by count if exists, reorder more view, truncate long names,
11+
- Search
12+
- Add aria-label to Search component
13+
- Table: add column
14+
## 0.4.19
15+
16+
## 0.4.18
17+
- Updates indicator text for current page and possible number of pages in a Table
18+
- Fixes client-side search on Table
19+
- Adds "No rows available" text in Table if search or filter returns no rows.
20+
321
## 0.4.16
422
- Facets
523
- Replaces groups array with a writable store to re-render component on data manipulation.
@@ -11,9 +29,9 @@
1129
- Adds on:change action
1230

1331
## 0.4.14
14-
- Table
32+
- Table
1533
- fixes rendering issues with Table filters and different components
16-
34+
1735
- Facets
1836
- Exports Facets component
1937

@@ -37,7 +55,7 @@
3755
- Updates the structure of server-side configuration for Tables.
3856
- Adds new page size dropdown in Table for to fix contrast issues in the component.
3957
- Adds showing/hiding Table columns.
40-
58+
4159
- Facets:
4260
- Adds Facets component.
4361

@@ -65,7 +83,7 @@
6583
- update libs
6684
- remove eslint-plugin-svelte3
6785
- update svelte, sveltekit, typescript, tailwind ...
68-
86+
6987
## 0.4.3
7088
- table
7189
- Enable searching on server-side
@@ -96,7 +114,7 @@
96114

97115
## 0.3.11
98116
- add on:change passthrough to TextInput, TextArea, DateInput, NumberInput, CheckBox
99-
117+
100118
## 0.3.10
101119
- multi select
102120
- update svelte-select libary

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bexis2/bexis2-core-ui",
3-
"version": "0.4.16",
3+
"version": "0.4.21",
44
"private": false,
55
"scripts": {
66
"dev": "vite dev",

src/docs/Navigation.svelte

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@
6060
><div class="flex justify-center py-2">
6161
<LightSwitch />
6262
</div>
63-
<AppRailTile label="General" title="Tile" value={'general'} on:click={onListItemClick}
63+
<AppRailTile label="General" title="General" value={'general'} on:click={onListItemClick}
6464
><i class="fa-solid fa-screwdriver-wrench text-2xl" /></AppRailTile
6565
>
66-
<AppRailTile label="Theme" title="Tile" value={'theme'} on:click={onListItemClick}
66+
<AppRailTile label="Theme" title="Theme" value={'theme'} on:click={onListItemClick}
6767
><i class="fa-solid fa-code-compare text-2xl" /></AppRailTile
6868
>
69-
<AppRailTile label="Components" title="Tile" value={'components'} on:click={onListItemClick}
69+
<AppRailTile label="Components" title="Components" value={'components'} on:click={onListItemClick}
7070
><i class="fa-solid fa-list-check text-2xl" /></AppRailTile
7171
>
7272
</svelte:fragment>
@@ -85,8 +85,8 @@
8585
<nav class="list-nav">
8686
<ul>
8787
{#each list as { href, label, badge }}
88-
<li on:click={onListItemClick} on:keypress>
89-
<a {href} class={classesActive(href)} data-sveltekit-preload-data="hover">
88+
<li>
89+
<a {href} class={classesActive(href)} data-sveltekit-preload-data="hover" on:click={onListItemClick} on:keypress>
9090
<span class="flex-auto">{@html label}</span>
9191
{#if badge}<span class="badge variant-filled-secondary">{badge}</span>{/if}
9292
</a>

src/lib/components/CodeEditor/CodeEditor.svelte

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
<div class="flex gap-2">
101101
<button
102102
class="btn variant-filled-warning"
103+
title="Reset"
103104
id="{id}-reset"
104105
on:click|preventDefault={() => modalStore.trigger(modal)}
105106
><Fa icon={faArrowRotateLeft} /></button
@@ -108,6 +109,7 @@
108109
class="btn border"
109110
class:bg-slate-700={dark}
110111
class:bg-white={!dark}
112+
title="Toggle dark mode"
111113
id="{id}-toggle"
112114
on:click|preventDefault={() => (dark = !dark)}
113115
>
@@ -124,11 +126,13 @@
124126
<div class="flex gap-2">
125127
<button
126128
class="btn variant-filled-warning"
129+
title="Cancel"
127130
id="{id}-cancel"
128131
on:click|preventDefault={() => dispatch('cancel')}><Fa icon={faXmark} /></button
129132
>
130133
<button
131134
class="btn variant-filled-primary"
135+
title="Save"
132136
id="{id}-save"
133137
disabled={!isValid}
134138
on:click|preventDefault={() => dispatch('save')}><Fa icon={faSave} /></button

src/lib/components/File/FileUploader.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
{/if}
194194
</div>
195195

196-
<button id={submitBt} color="primary" style="display:none"><Fa icon={faSave} /></button>
196+
<button title="Submit" id={submitBt} color="primary" style="display:none"><Fa icon={faSave} /></button>
197197
{:else}
198198
<!-- while data is not loaded show a loading information -->
199199

src/lib/components/Table/ColumnsMenu.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,12 @@
5353
</div>
5454
{#each columns as column}
5555
<div class="flex gap-3 items-center">
56+
<label for={column.id} class="cursor-pointer" title={column.label}></label>
5657
<input
5758
aria-label={`${column.visible ? 'Hide' : 'Show'} ${column.label} column`}
5859
type="checkbox"
5960
class="checkbox"
61+
id={column.id}
6062
bind:checked={column.visible}
6163
title={`${column.visible ? 'Hide' : 'Show'} ${column.label} column`}
6264
disabled={columns.filter((c) => c.visible).length === 1 && column.visible}

src/lib/components/Table/TableContent.svelte

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,12 +503,14 @@
503503
<input
504504
class="input p-2 border border-primary-500"
505505
type="text"
506+
title="Search within all table rows"
506507
bind:value={searchValue}
507508
placeholder="Search rows..."
508509
aria-label="Searchbox for searching rows"
509510
id="{tableId}-search"
510511
/><button
511512
type="reset"
513+
title="Clear search"
512514
id="{tableId}-searchReset"
513515
class="absolute right-3 items-center"
514516
aria-label="Clear search"
@@ -526,6 +528,7 @@
526528
</div>
527529
<button
528530
type="submit"
531+
title="Search"
529532
id="{tableId}-searchSubmit"
530533
class="btn variant-filled-primary"
531534
aria-label="Search"
@@ -553,6 +556,7 @@
553556
{#if toggle}
554557
<SlideToggle
555558
name="slider-label"
559+
label="Fit to screen"
556560
active="bg-primary-500"
557561
size="sm"
558562
checked={fitToScreen}
@@ -598,6 +602,7 @@
598602
{...$tableAttrs}
599603
class="table table-auto table-compact bg-tertiary-500/30 dark:bg-tertiary-900/10 overflow-clip"
600604
id="{tableId}-table"
605+
title="Table"
601606
>
602607
<!-- If table height is provided, making the top row sticky -->
603608
<thead class={height != null && $pageRows.length > 0 ? `sticky top-0` : ''}>
@@ -634,6 +639,8 @@
634639
<div class="flex gap-1 whitespace-pre-wrap">
635640
<!-- Adding sorting config and styling -->
636641
<span
642+
role="button"
643+
tabindex="0"
637644
class:underline={props.sort.order}
638645
class:normal-case={cell.id !== cell.label}
639646
class:cursor-pointer={!props.sort.disabled}

src/lib/components/Table/TableFilter.svelte

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,8 @@
284284
</select>
285285
{#if dropdowns.length > 1}
286286
<div
287+
role="button"
288+
tabindex="0"
287289
class="btn variant-filled-warning btn-sm h-full"
288290
aria-label="Remove filter"
289291
on:click|preventDefault={() => removeFilter(dropdown.option)}
@@ -321,6 +323,8 @@
321323
{#if remainingFilters.length}
322324
<div
323325
class="btn variant-filled-secondary btn-sm cursor-pointer"
326+
role="button"
327+
tabindex="0"
324328
on:click|stopPropagation={() => {
325329
addFilter(remainingFilters[0].value, undefined);
326330
}}

src/lib/components/Table/TableFilterServer.svelte

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@
275275
</select>
276276
{#if dropdowns.length > 1}
277277
<div
278+
role="button"
279+
tabindex="0"
278280
class="btn variant-filled-warning btn-sm h-full"
279281
on:click|preventDefault={() => removeFilter(dropdown.option)}
280282
on:keydown|preventDefault={() => removeFilter(dropdown.option)}
@@ -320,6 +322,8 @@
320322
<div
321323
class="btn variant-filled-secondary btn-sm cursor-pointer"
322324
aria-label="Add filter"
325+
role="button"
326+
tabindex="0"
323327
on:click|stopPropagation={() => {
324328
addFilter(remainingFilters[0].value, undefined);
325329
}}

0 commit comments

Comments
 (0)