jsl-ui 9.29.0 → 9.29.1

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
@@ -142,7 +142,7 @@
142
142
 
143
143
  .slick-reorder-proxy {
144
144
  opacity: .15;
145
- filter: alpha(opacity= 15);
145
+ filter: alpha(opacity = 15);
146
146
  cursor: move;
147
147
  background: #00f;
148
148
  display: inline-block;
@@ -151,7 +151,7 @@
151
151
  .slick-reorder-guide {
152
152
  opacity: .7;
153
153
  height: 2px;
154
- filter: alpha(opacity= 70);
154
+ filter: alpha(opacity = 70);
155
155
  background: #00f;
156
156
  display: inline-block;
157
157
  }
@@ -369,7 +369,7 @@ input.editor-text, textarea.editor-text {
369
369
 
370
370
  .slick-row.loading {
371
371
  opacity: .5;
372
- filter: alpha(opacity= 50);
372
+ filter: alpha(opacity = 50);
373
373
  }
374
374
 
375
375
  .slick-cell.invalid {
package/lib/index.css CHANGED
@@ -708,7 +708,7 @@ div.jsl-fill {
708
708
 
709
709
  .slick-reorder-proxy {
710
710
  opacity: .15;
711
- filter: alpha(opacity= 15);
711
+ filter: alpha(opacity = 15);
712
712
  cursor: move;
713
713
  background: #00f;
714
714
  display: inline-block;
@@ -717,7 +717,7 @@ div.jsl-fill {
717
717
  .slick-reorder-guide {
718
718
  opacity: .7;
719
719
  height: 2px;
720
- filter: alpha(opacity= 70);
720
+ filter: alpha(opacity = 70);
721
721
  background: #00f;
722
722
  display: inline-block;
723
723
  }
@@ -935,7 +935,7 @@ input.editor-text, textarea.editor-text {
935
935
 
936
936
  .slick-row.loading {
937
937
  opacity: .5;
938
- filter: alpha(opacity= 50);
938
+ filter: alpha(opacity = 50);
939
939
  }
940
940
 
941
941
  .slick-cell.invalid {