jsl-ui 10.4.3 → 10.4.4

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.
@@ -5,16 +5,21 @@ export class helper {
5
5
  static newGuid() {
6
6
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) { const r = helper.random() * 16 | 0, v = c == "x" ? r : r & 0x3 | 0x8; return v.toString(16); });
7
7
  }
8
+ // same layout as the C# Saftware.Core.Helper.NewSeqGuid(), so guids from both sides sort sequentially (SQL Server / SqlGuid order):
9
+ // last 12 hex digits = days since 2020-01-01 UTC (4 digits) + UTC milliseconds of the day * 22 (8 digits)
8
10
  static newSeqGuid() {
9
- let d = new Date().getTime().toString(16);
10
- while (d.length < 12) {
11
- d = "0" + d;
11
+ const msPerDay = 86400000;
12
+ const sinceBase = new Date().getTime() - Date.UTC(2020, 0, 1);
13
+ let days = (Math.floor(sinceBase / msPerDay) & 0xffff).toString(16);
14
+ while (days.length < 4) {
15
+ days = "0" + days;
12
16
  }
13
- if (d.length > 12) {
14
- d = d.substring(0, 12);
17
+ let timeOfDay = ((sinceBase % msPerDay) * 22).toString(16);
18
+ while (timeOfDay.length < 8) {
19
+ timeOfDay = "0" + timeOfDay;
15
20
  }
16
21
  return "xxxxxxxx-xxxx-4xxx-yxxx-".replace(/[xy]/g, function (c) { var r = helper.random() * 16 | 0, v = c == "x" ? r : r & 0x3 | 0x8; return v.toString(16); })
17
- + d;
22
+ + days + timeOfDay;
18
23
  }
19
24
  static newDomGuid() {
20
25
  return "axxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) { const r = helper.random() * 16 | 0, v = c == "x" ? r : r & 0x3 | 0x8; return v.toString(16); });
package/lib/grid.css CHANGED
@@ -3820,31 +3820,12 @@ textarea.jsl-input {
3820
3820
  }
3821
3821
 
3822
3822
  .jsl-overlay-overlay {
3823
+ z-index: var(--jsl-dialog-z-index, 2001);
3824
+ background: var(--jsl-dialog-backdrop, var(--jsl-color-overlay));
3823
3825
  color: var(--jsl-color-text);
3824
- width: fit-content;
3825
- max-width: 100vw;
3826
- height: fit-content;
3827
- max-height: 100dvh;
3828
3826
  font: inherit;
3829
- background: none;
3830
- border: 0;
3831
- margin: 0;
3832
- padding: 0;
3833
3827
  position: fixed;
3834
3828
  inset: 0;
3835
- overflow: visible;
3836
- }
3837
-
3838
- .jsl-overlay-overlay:has(.overl-body-top) {
3839
- width: 100%;
3840
- }
3841
-
3842
- .jsl-overlay-overlay::backdrop {
3843
- background: var(--jsl-color-overlay);
3844
- }
3845
-
3846
- .jsl-overlay-overlay[hidden] {
3847
- display: none;
3848
3829
  }
3849
3830
 
3850
3831
  .overl-body {