jsl-ui 10.1.0 → 10.2.0
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/docs/DataBinding.md +19 -0
- package/docs/DateTimeComponent.md +1 -0
- package/docs/GridComponent.md +8 -5
- package/docs/InputComponent.md +1 -1
- package/docs/README.md +1 -0
- package/examples/showcase/checks-and-expanders.ts +2 -17
- package/examples/showcase/data-binding.ts +138 -0
- package/examples/showcase/dates.ts +6 -16
- package/examples/showcase/fields.ts +14 -26
- package/examples/showcase/generate-sources.cjs +104 -0
- package/examples/showcase/grids.ts +246 -17
- package/examples/showcase/index.html +12 -2
- package/examples/showcase/selects.ts +6 -8
- package/examples/showcase/showcase-sources.ts +95 -0
- package/examples/showcase/showcase.css +23 -2
- package/examples/showcase/showcase.ts +28 -5
- package/lib/components/auto-suggest/AutoSuggestComponent.d.ts +4 -4
- package/lib/components/auto-suggest/AutoSuggestComponent.js +1 -1
- package/lib/components/checkbox/CheckBoxComponent.d.ts +2 -3
- package/lib/components/checkbox/CheckBoxComponent.js +7 -20
- package/lib/components/date/DateComponent.d.ts +4 -4
- package/lib/components/date/DateComponent.js +11 -27
- package/lib/components/date-time/DateTimeComponent.d.ts +4 -4
- package/lib/components/date-time/DateTimeComponent.js +21 -32
- package/lib/components/input/InputComponent.d.ts +1 -4
- package/lib/components/input/InputComponent.js +14 -32
- package/lib/components/number/NumberComponent.d.ts +1 -4
- package/lib/components/number/NumberComponent.js +11 -29
- package/lib/components/select/SelectComponent.d.ts +1 -3
- package/lib/components/select/SelectComponent.js +8 -22
- package/lib/components/time/TimeComponent.d.ts +4 -3
- package/lib/components/time/TimeComponent.js +11 -24
- package/lib/grid/filterDialogs/excelFilter.js +12 -10
- package/lib/grid/plugins/slick.headermenu.css +98 -101
- package/lib/grid/slick-default-theme.css +10 -2
- package/lib/grid/slick.grid.css +112 -1
- package/lib/grid.css +852 -3392
- package/lib/index.css +260 -124
- package/lib/index.css.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/interaction/data-binding.d.ts +27 -0
- package/lib/interaction/data-binding.js +72 -0
- package/package.json +3 -1
package/lib/grid/slick.grid.css
CHANGED
|
@@ -282,7 +282,9 @@ input.editor-text, textarea.editor-text {
|
|
|
282
282
|
|
|
283
283
|
.slick-ghost-content {
|
|
284
284
|
border: solid 2px var(--jsl-color-border);
|
|
285
|
-
|
|
285
|
+
/* Keep header labels visible beneath the column drag indicator. */
|
|
286
|
+
background: transparent;
|
|
287
|
+
background: color-mix(in srgb, var(--jsl-color-surface-selected) 30%, transparent);
|
|
286
288
|
position: absolute;
|
|
287
289
|
left: 0;
|
|
288
290
|
right: 0;
|
|
@@ -335,3 +337,112 @@ input.editor-text, textarea.editor-text {
|
|
|
335
337
|
right: 1.2rem;
|
|
336
338
|
width: 1.2rem;
|
|
337
339
|
}
|
|
340
|
+
|
|
341
|
+
/* Excel filter dialog */
|
|
342
|
+
.jsl-dialog.jsl-grid-filter-dialog {
|
|
343
|
+
width: min(34rem, calc(100% - 2rem));
|
|
344
|
+
max-height: calc(100vh - 1rem);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.jsl-dialog.jsl-grid-filter-dialog > .dlg-body {
|
|
348
|
+
display: flex;
|
|
349
|
+
flex-direction: column;
|
|
350
|
+
gap: 0.625rem;
|
|
351
|
+
min-height: 0;
|
|
352
|
+
overflow: hidden;
|
|
353
|
+
overflow-wrap: normal;
|
|
354
|
+
padding: 1.25rem;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.jsl-grid-filter-search {
|
|
358
|
+
flex: 0 0 auto;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.jsl-grid-filter-search > input {
|
|
362
|
+
display: block;
|
|
363
|
+
box-sizing: border-box;
|
|
364
|
+
width: 100%;
|
|
365
|
+
min-height: 2.5rem;
|
|
366
|
+
padding: 0.5rem 0.75rem;
|
|
367
|
+
border: 1px solid var(--jsl-color-border);
|
|
368
|
+
border-radius: 0.375rem;
|
|
369
|
+
background: var(--jsl-color-surface);
|
|
370
|
+
color: var(--jsl-color-text);
|
|
371
|
+
font: inherit;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.jsl-grid-filter-search > input:focus-visible {
|
|
375
|
+
border-color: var(--jsl-color-focus);
|
|
376
|
+
outline: 2px solid var(--jsl-color-focus);
|
|
377
|
+
outline-offset: 1px;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.jsl-grid-filter-all {
|
|
381
|
+
display: flex;
|
|
382
|
+
flex: 0 0 auto;
|
|
383
|
+
align-items: center;
|
|
384
|
+
min-height: 1.75rem;
|
|
385
|
+
padding: 0 0.625rem 0.5rem;
|
|
386
|
+
border-bottom: 1px solid var(--jsl-color-border-subtle);
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.jsl-grid-filter-all > label,
|
|
390
|
+
.jsl-grid-filter-value-label {
|
|
391
|
+
margin: 0 0 0 0.375rem;
|
|
392
|
+
color: var(--jsl-color-text);
|
|
393
|
+
line-height: 1.4;
|
|
394
|
+
cursor: pointer;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.jsl-grid-filter-values {
|
|
398
|
+
flex: 1 1 auto;
|
|
399
|
+
min-height: 0;
|
|
400
|
+
overflow: hidden;
|
|
401
|
+
border: 1px solid var(--jsl-color-border-subtle);
|
|
402
|
+
border-radius: 0.375rem;
|
|
403
|
+
background: var(--jsl-color-surface);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.jsl-grid-filter-values > .v-r-comp {
|
|
407
|
+
box-sizing: border-box;
|
|
408
|
+
width: 100%;
|
|
409
|
+
overflow-x: hidden;
|
|
410
|
+
scrollbar-gutter: stable;
|
|
411
|
+
overscroll-behavior: contain;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.jsl-grid-filter-value-row {
|
|
415
|
+
display: flex;
|
|
416
|
+
align-items: center;
|
|
417
|
+
gap: 0.375rem;
|
|
418
|
+
box-sizing: border-box;
|
|
419
|
+
min-width: 0;
|
|
420
|
+
padding: 0 0.625rem;
|
|
421
|
+
overflow: hidden;
|
|
422
|
+
overflow-wrap: normal;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.jsl-grid-filter-value-row > input {
|
|
426
|
+
flex: 0 0 auto;
|
|
427
|
+
margin: 0;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.jsl-grid-filter-value-label {
|
|
431
|
+
display: block;
|
|
432
|
+
flex: 1 1 auto;
|
|
433
|
+
min-width: 0;
|
|
434
|
+
margin: 0;
|
|
435
|
+
overflow: hidden;
|
|
436
|
+
text-overflow: ellipsis;
|
|
437
|
+
white-space: nowrap;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.jsl-grid-filter-value-row:hover {
|
|
441
|
+
background: var(--jsl-color-surface-hover);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
@media (max-width: 480px) {
|
|
445
|
+
.jsl-dialog.jsl-grid-filter-dialog > .dlg-body {
|
|
446
|
+
padding: 1rem;
|
|
447
|
+
}
|
|
448
|
+
}
|