@bexis2/bexis2-core-ui 0.4.2 → 0.4.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/README.md
CHANGED
|
@@ -297,77 +297,74 @@ $:
|
|
|
297
297
|
<div class="table-container">
|
|
298
298
|
<!-- Enable the search filter if table is not empty -->
|
|
299
299
|
{#if $data.length > 0}
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
300
|
+
<form
|
|
301
|
+
class="flex gap-2"
|
|
302
|
+
on:submit|preventDefault={() => {
|
|
303
|
+
sendModel.q = searchValue;
|
|
304
|
+
$filterValue = searchValue;
|
|
305
|
+
}}
|
|
306
|
+
>
|
|
307
|
+
<div class="relative w-full flex items-center">
|
|
308
|
+
<input
|
|
309
|
+
class="input p-2 border border-primary-500"
|
|
310
|
+
type="text"
|
|
311
|
+
bind:value={searchValue}
|
|
312
|
+
placeholder="Search rows..."
|
|
313
|
+
id="{tableId}-search"
|
|
314
|
+
/><button
|
|
315
|
+
type="reset"
|
|
316
|
+
class="absolute right-3 items-center"
|
|
317
|
+
on:click|preventDefault={() => {
|
|
318
|
+
searchValue = '';
|
|
319
|
+
sendModel.q = '';
|
|
320
|
+
$filterValue = '';
|
|
321
|
+
}}><Fa icon={faXmark} /></button
|
|
322
|
+
>
|
|
323
|
+
</div>
|
|
324
|
+
<button
|
|
325
|
+
type="submit"
|
|
326
|
+
class="btn variant-filled-primary"
|
|
327
|
+
on:click|preventDefault={() => {
|
|
305
328
|
$filterValue = searchValue;
|
|
306
|
-
|
|
329
|
+
sendModel.q = searchValue;
|
|
330
|
+
}}>Search</button
|
|
307
331
|
>
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
332
|
+
</form>
|
|
333
|
+
{/if}
|
|
334
|
+
<div class="flex justify-between items-center py-2 w-full">
|
|
335
|
+
<div>
|
|
336
|
+
<!-- Enable the fitToScreen toggle if toggle === true -->
|
|
337
|
+
{#if toggle}
|
|
338
|
+
<SlideToggle
|
|
339
|
+
name="slider-label"
|
|
340
|
+
active="bg-primary-500"
|
|
341
|
+
size="sm"
|
|
342
|
+
checked={fitToScreen}
|
|
343
|
+
id="{tableId}-toggle"
|
|
344
|
+
on:change={() => (fitToScreen = !fitToScreen)}>Fit to screen</SlideToggle
|
|
345
|
+
>
|
|
346
|
+
{/if}
|
|
347
|
+
</div>
|
|
348
|
+
<div class="flex gap-2">
|
|
349
|
+
<!-- Enable the resetResize button if resizable !== 'none' -->
|
|
350
|
+
{#if resizable !== 'none'}
|
|
325
351
|
<button
|
|
326
|
-
type="
|
|
327
|
-
class="btn variant-filled-primary"
|
|
328
|
-
on:click|preventDefault={() =>
|
|
329
|
-
$
|
|
330
|
-
sendModel.q = searchValue;
|
|
331
|
-
}}>Search</button
|
|
352
|
+
type="button"
|
|
353
|
+
class="btn btn-sm variant-filled-primary rounded-full order-last"
|
|
354
|
+
on:click|preventDefault={() =>
|
|
355
|
+
resetResize($headerRows, $pageRows, tableId, columns, resizable)}>Reset sizing</button
|
|
332
356
|
>
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
size="sm"
|
|
343
|
-
checked={fitToScreen}
|
|
344
|
-
id="{tableId}-toggle"
|
|
345
|
-
on:change={() => (fitToScreen = !fitToScreen)}>Fit to screen</SlideToggle
|
|
346
|
-
>
|
|
347
|
-
{/if}
|
|
348
|
-
</div>
|
|
349
|
-
<div class="flex gap-2">
|
|
350
|
-
<!-- Enable the resetResize button if resizable !== 'none' -->
|
|
351
|
-
{#if resizable !== 'none'}
|
|
352
|
-
<button
|
|
353
|
-
type="button"
|
|
354
|
-
class="btn btn-sm variant-filled-primary rounded-full order-last"
|
|
355
|
-
on:click|preventDefault={() =>
|
|
356
|
-
resetResize($headerRows, $pageRows, tableId, columns, resizable)}
|
|
357
|
-
>Reset sizing</button
|
|
358
|
-
>
|
|
359
|
-
{/if}
|
|
360
|
-
{#if exportable}
|
|
361
|
-
<button
|
|
362
|
-
type="button"
|
|
363
|
-
class="btn btn-sm variant-filled-primary rounded-full order-last"
|
|
364
|
-
on:click|preventDefault={() => exportAsCsv(tableId, $exportedData)}
|
|
365
|
-
>Export as CSV</button
|
|
366
|
-
>
|
|
367
|
-
{/if}
|
|
368
|
-
</div>
|
|
357
|
+
{/if}
|
|
358
|
+
{#if exportable}
|
|
359
|
+
<button
|
|
360
|
+
type="button"
|
|
361
|
+
class="btn btn-sm variant-filled-primary rounded-full order-last"
|
|
362
|
+
on:click|preventDefault={() => exportAsCsv(tableId, $exportedData)}
|
|
363
|
+
>Export as CSV</button
|
|
364
|
+
>
|
|
365
|
+
{/if}
|
|
369
366
|
</div>
|
|
370
|
-
|
|
367
|
+
</div>
|
|
371
368
|
|
|
372
369
|
<div class="overflow-auto" style="height: {height}px">
|
|
373
370
|
<table
|
package/package.json
CHANGED
|
@@ -351,77 +351,74 @@
|
|
|
351
351
|
<div class="table-container">
|
|
352
352
|
<!-- Enable the search filter if table is not empty -->
|
|
353
353
|
{#if $data.length > 0}
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
354
|
+
<form
|
|
355
|
+
class="flex gap-2"
|
|
356
|
+
on:submit|preventDefault={() => {
|
|
357
|
+
sendModel.q = searchValue;
|
|
358
|
+
$filterValue = searchValue;
|
|
359
|
+
}}
|
|
360
|
+
>
|
|
361
|
+
<div class="relative w-full flex items-center">
|
|
362
|
+
<input
|
|
363
|
+
class="input p-2 border border-primary-500"
|
|
364
|
+
type="text"
|
|
365
|
+
bind:value={searchValue}
|
|
366
|
+
placeholder="Search rows..."
|
|
367
|
+
id="{tableId}-search"
|
|
368
|
+
/><button
|
|
369
|
+
type="reset"
|
|
370
|
+
class="absolute right-3 items-center"
|
|
371
|
+
on:click|preventDefault={() => {
|
|
372
|
+
searchValue = '';
|
|
373
|
+
sendModel.q = '';
|
|
374
|
+
$filterValue = '';
|
|
375
|
+
}}><Fa icon={faXmark} /></button
|
|
376
|
+
>
|
|
377
|
+
</div>
|
|
378
|
+
<button
|
|
379
|
+
type="submit"
|
|
380
|
+
class="btn variant-filled-primary"
|
|
381
|
+
on:click|preventDefault={() => {
|
|
359
382
|
$filterValue = searchValue;
|
|
360
|
-
|
|
383
|
+
sendModel.q = searchValue;
|
|
384
|
+
}}>Search</button
|
|
361
385
|
>
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
386
|
+
</form>
|
|
387
|
+
{/if}
|
|
388
|
+
<div class="flex justify-between items-center py-2 w-full">
|
|
389
|
+
<div>
|
|
390
|
+
<!-- Enable the fitToScreen toggle if toggle === true -->
|
|
391
|
+
{#if toggle}
|
|
392
|
+
<SlideToggle
|
|
393
|
+
name="slider-label"
|
|
394
|
+
active="bg-primary-500"
|
|
395
|
+
size="sm"
|
|
396
|
+
checked={fitToScreen}
|
|
397
|
+
id="{tableId}-toggle"
|
|
398
|
+
on:change={() => (fitToScreen = !fitToScreen)}>Fit to screen</SlideToggle
|
|
399
|
+
>
|
|
400
|
+
{/if}
|
|
401
|
+
</div>
|
|
402
|
+
<div class="flex gap-2">
|
|
403
|
+
<!-- Enable the resetResize button if resizable !== 'none' -->
|
|
404
|
+
{#if resizable !== 'none'}
|
|
379
405
|
<button
|
|
380
|
-
type="
|
|
381
|
-
class="btn variant-filled-primary"
|
|
382
|
-
on:click|preventDefault={() =>
|
|
383
|
-
$
|
|
384
|
-
sendModel.q = searchValue;
|
|
385
|
-
}}>Search</button
|
|
406
|
+
type="button"
|
|
407
|
+
class="btn btn-sm variant-filled-primary rounded-full order-last"
|
|
408
|
+
on:click|preventDefault={() =>
|
|
409
|
+
resetResize($headerRows, $pageRows, tableId, columns, resizable)}>Reset sizing</button
|
|
386
410
|
>
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
size="sm"
|
|
397
|
-
checked={fitToScreen}
|
|
398
|
-
id="{tableId}-toggle"
|
|
399
|
-
on:change={() => (fitToScreen = !fitToScreen)}>Fit to screen</SlideToggle
|
|
400
|
-
>
|
|
401
|
-
{/if}
|
|
402
|
-
</div>
|
|
403
|
-
<div class="flex gap-2">
|
|
404
|
-
<!-- Enable the resetResize button if resizable !== 'none' -->
|
|
405
|
-
{#if resizable !== 'none'}
|
|
406
|
-
<button
|
|
407
|
-
type="button"
|
|
408
|
-
class="btn btn-sm variant-filled-primary rounded-full order-last"
|
|
409
|
-
on:click|preventDefault={() =>
|
|
410
|
-
resetResize($headerRows, $pageRows, tableId, columns, resizable)}
|
|
411
|
-
>Reset sizing</button
|
|
412
|
-
>
|
|
413
|
-
{/if}
|
|
414
|
-
{#if exportable}
|
|
415
|
-
<button
|
|
416
|
-
type="button"
|
|
417
|
-
class="btn btn-sm variant-filled-primary rounded-full order-last"
|
|
418
|
-
on:click|preventDefault={() => exportAsCsv(tableId, $exportedData)}
|
|
419
|
-
>Export as CSV</button
|
|
420
|
-
>
|
|
421
|
-
{/if}
|
|
422
|
-
</div>
|
|
411
|
+
{/if}
|
|
412
|
+
{#if exportable}
|
|
413
|
+
<button
|
|
414
|
+
type="button"
|
|
415
|
+
class="btn btn-sm variant-filled-primary rounded-full order-last"
|
|
416
|
+
on:click|preventDefault={() => exportAsCsv(tableId, $exportedData)}
|
|
417
|
+
>Export as CSV</button
|
|
418
|
+
>
|
|
419
|
+
{/if}
|
|
423
420
|
</div>
|
|
424
|
-
|
|
421
|
+
</div>
|
|
425
422
|
|
|
426
423
|
<div class="overflow-auto" style="height: {height}px">
|
|
427
424
|
<table
|