pacem 0.50.0-corinth → 0.50.0-delphi

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.
Files changed (56) hide show
  1. package/dist/css/pacem-dark-content.min.css +1 -1
  2. package/dist/css/pacem-dark-shell.min.css +1 -1
  3. package/dist/css/pacem-dark.min.css +1 -1
  4. package/dist/css/pacem-light-content.min.css +1 -1
  5. package/dist/css/pacem-light-shell.min.css +1 -1
  6. package/dist/css/pacem-light.min.css +1 -1
  7. package/dist/css/pacem-phousys-content.min.css +1 -1
  8. package/dist/css/pacem-phousys-shell.min.css +1 -1
  9. package/dist/css/pacem-phousys.min.css +1 -1
  10. package/dist/js/azure-maps.d.ts +1 -1
  11. package/dist/js/pacem-2d.d.ts +1 -1
  12. package/dist/js/pacem-2d.js +1 -1
  13. package/dist/js/pacem-2d.min.js +1 -1
  14. package/dist/js/pacem-3d.d.ts +1 -1
  15. package/dist/js/pacem-3d.js +1 -1
  16. package/dist/js/pacem-3d.min.js +1 -1
  17. package/dist/js/pacem-charts.d.ts +1 -1
  18. package/dist/js/pacem-charts.js +1 -1
  19. package/dist/js/pacem-charts.min.js +1 -1
  20. package/dist/js/pacem-cms.d.ts +1 -1
  21. package/dist/js/pacem-cms.js +1 -1
  22. package/dist/js/pacem-cms.min.js +1 -1
  23. package/dist/js/pacem-core.d.ts +4 -2
  24. package/dist/js/pacem-core.js +42 -38
  25. package/dist/js/pacem-core.min.js +2 -2
  26. package/dist/js/pacem-foundation.d.ts +11 -1
  27. package/dist/js/pacem-foundation.js +26 -1
  28. package/dist/js/pacem-foundation.min.js +2 -2
  29. package/dist/js/pacem-fx.d.ts +1 -1
  30. package/dist/js/pacem-fx.js +1 -1
  31. package/dist/js/pacem-fx.min.js +1 -1
  32. package/dist/js/pacem-logging.d.ts +1 -1
  33. package/dist/js/pacem-logging.js +1 -1
  34. package/dist/js/pacem-logging.min.js +1 -1
  35. package/dist/js/pacem-maps.d.ts +1 -1
  36. package/dist/js/pacem-maps.js +1 -1
  37. package/dist/js/pacem-maps.min.js +1 -1
  38. package/dist/js/pacem-media.d.ts +1 -1
  39. package/dist/js/pacem-media.js +1 -1
  40. package/dist/js/pacem-media.min.js +1 -1
  41. package/dist/js/pacem-networking.js +1 -1
  42. package/dist/js/pacem-networking.min.js +1 -1
  43. package/dist/js/pacem-numerical.d.ts +1 -1
  44. package/dist/js/pacem-numerical.js +1 -1
  45. package/dist/js/pacem-numerical.min.js +1 -1
  46. package/dist/js/pacem-plus.d.ts +1 -1
  47. package/dist/js/pacem-plus.js +1 -1
  48. package/dist/js/pacem-plus.min.js +1 -1
  49. package/dist/js/pacem-scaffolding.d.ts +1 -1
  50. package/dist/js/pacem-scaffolding.js +1 -1
  51. package/dist/js/pacem-scaffolding.min.js +1 -1
  52. package/dist/js/pacem-ui.d.ts +15 -6
  53. package/dist/js/pacem-ui.js +88 -53
  54. package/dist/js/pacem-ui.min.js +2 -2
  55. package/dist/js/swagger-types.d.ts +1 -1
  56. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * pacem v0.50.0-corinth (https://js.pacem.it)
2
+ * pacem v0.50.0-delphi (https://js.pacem.it)
3
3
  * Copyright 2024 Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * pacem v0.50.0-corinth (https://js.pacem.it)
2
+ * pacem v0.50.0-delphi (https://js.pacem.it)
3
3
  * Copyright 2024 Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * pacem v0.50.0-corinth (https://js.pacem.it)
2
+ * pacem v0.50.0-delphi (https://js.pacem.it)
3
3
  * Copyright 2024 Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * pacem v0.50.0-corinth (https://js.pacem.it)
2
+ * pacem v0.50.0-delphi (https://js.pacem.it)
3
3
  * Copyright 2024 Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * pacem v0.50.0-corinth (https://js.pacem.it)
2
+ * pacem v0.50.0-delphi (https://js.pacem.it)
3
3
  * Copyright 2024 Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * pacem v0.50.0-corinth (https://js.pacem.it)
2
+ * pacem v0.50.0-delphi (https://js.pacem.it)
3
3
  * Copyright 2024 Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * pacem v0.50.0-corinth (https://js.pacem.it)
2
+ * pacem v0.50.0-delphi (https://js.pacem.it)
3
3
  * Copyright 2024 Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * pacem v0.50.0-corinth (https://js.pacem.it)
2
+ * pacem v0.50.0-delphi (https://js.pacem.it)
3
3
  * Copyright 2024 Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * pacem v0.50.0-corinth (https://js.pacem.it)
2
+ * pacem v0.50.0-delphi (https://js.pacem.it)
3
3
  * Copyright 2024 Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * pacem v0.50.0-corinth (https://js.pacem.it)
2
+ * pacem v0.50.0-delphi (https://js.pacem.it)
3
3
  * Copyright 2024 Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * pacem v0.50.0-corinth (https://js.pacem.it)
2
+ * pacem v0.50.0-delphi (https://js.pacem.it)
3
3
  * Copyright 2024 Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * pacem v0.50.0-corinth (https://js.pacem.it)
2
+ * pacem v0.50.0-delphi (https://js.pacem.it)
3
3
  * Copyright 2024 Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * pacem v0.50.0-corinth (https://js.pacem.it)
2
+ * pacem v0.50.0-delphi (https://js.pacem.it)
3
3
  * Copyright 2024 Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * pacem v0.50.0-corinth (https://js.pacem.it)
2
+ * pacem v0.50.0-delphi (https://js.pacem.it)
3
3
  * Copyright 2024 Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * pacem v0.50.0-corinth (https://js.pacem.it)
2
+ * pacem v0.50.0-delphi (https://js.pacem.it)
3
3
  * Copyright 2024 Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * pacem v0.50.0-corinth (https://js.pacem.it)
2
+ * pacem v0.50.0-delphi (https://js.pacem.it)
3
3
  * Copyright 2024 Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * pacem v0.50.0-corinth (https://js.pacem.it)
2
+ * pacem v0.50.0-delphi (https://js.pacem.it)
3
3
  * Copyright 2024 Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * pacem v0.50.0-corinth (https://js.pacem.it)
2
+ * pacem v0.50.0-delphi (https://js.pacem.it)
3
3
  * Copyright 2024 Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * pacem v0.50.0-corinth (https://js.pacem.it)
2
+ * pacem v0.50.0-delphi (https://js.pacem.it)
3
3
  * Copyright 2024 Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * pacem v0.50.0-corinth (https://js.pacem.it)
2
+ * pacem v0.50.0-delphi (https://js.pacem.it)
3
3
  * Copyright 2024 Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * pacem v0.50.0-corinth (https://js.pacem.it)
2
+ * pacem v0.50.0-delphi (https://js.pacem.it)
3
3
  * Copyright 2024 Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * pacem v0.50.0-corinth (https://js.pacem.it)
2
+ * pacem v0.50.0-delphi (https://js.pacem.it)
3
3
  * Copyright 2024 Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * pacem v0.50.0-corinth (https://js.pacem.it)
2
+ * pacem v0.50.0-delphi (https://js.pacem.it)
3
3
  * Copyright 2024 Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -150,7 +150,7 @@ declare namespace Pacem {
150
150
  static uniqueCode(): string;
151
151
  static randomString(length: number): string;
152
152
  static parseDate(input: string | Date | number): Date;
153
- static copyToClipboard(input: string): DeferPromise<unknown>;
153
+ static copyToClipboard(input: string): Promise<void>;
154
154
  static Json: {
155
155
  stringify: typeof Json.serialize;
156
156
  parse: typeof Json.deserialize;
@@ -182,6 +182,7 @@ declare namespace Pacem {
182
182
  * @param name CSS class name
183
183
  */
184
184
  isClassDefined(name: string): boolean;
185
+ deserializeTransform(element: Element | CSSStyleDeclaration): Matrix2D;
185
186
  };
186
187
  static leftPad: typeof Strings.leftPad;
187
188
  static formatString: typeof Strings.format;
@@ -285,6 +286,7 @@ declare namespace Pacem {
285
286
  * @param el {HTMLElement} The element.
286
287
  */
287
288
  static naturalOffsetRect(el: HTMLElement): Rect;
289
+ static deserializeTransform(element: Element): Matrix2D;
288
290
  static deserializeTransform(style: CSSStyleDeclaration): Matrix2D;
289
291
  static set scrollTop(y: number);
290
292
  static set scrollLeft(x: number);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * pacem v0.50.0-corinth (https://js.pacem.it)
2
+ * pacem v0.50.0-delphi (https://js.pacem.it)
3
3
  * Copyright 2024 Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -344,21 +344,25 @@ var Pacem;
344
344
  return Pacem.Dates.parse(input);
345
345
  }
346
346
  static copyToClipboard(input) {
347
- const deferred = Pacem.DeferPromise.defer();
348
- const el = document.createElement('textarea');
349
- el.value = input;
350
- el.style.opacity = "0";
351
- document.body.appendChild(el);
352
- try {
353
- el.select();
354
- document.execCommand('copy');
355
- el.remove();
356
- deferred.resolve();
357
- }
358
- catch (e) {
359
- deferred.reject(e);
347
+ if (navigator.clipboard) {
348
+ return navigator.clipboard.writeText(input);
360
349
  }
361
- return deferred.promise;
350
+ // deprecated code branch
351
+ return new Promise((resolve, reject) => {
352
+ const el = document.createElement('textarea');
353
+ el.value = input;
354
+ el.style.opacity = "0";
355
+ document.body.appendChild(el);
356
+ try {
357
+ el.select();
358
+ document.execCommand('copy');
359
+ el.remove();
360
+ resolve();
361
+ }
362
+ catch (e) {
363
+ reject(e);
364
+ }
365
+ });
362
366
  }
363
367
  static colorize(elementOrRgb, rgb) {
364
368
  const hsl0 = /*Colors.hsl(Colors.parse('#000'))*/ { h: 38, s: .245, l: .6 };
@@ -914,20 +918,9 @@ var Pacem;
914
918
  height: rect.height
915
919
  };
916
920
  }
917
- static deserializeTransform(style) {
918
- var a = 1, b = 0, c = 0, d = 1, x = 0, y = 0, matches = /^matrix\((.*)\)$/.exec(style.transform), mij;
919
- //matrix(1, 0, 0, 1, 2, 4)
920
- if (matches && matches.length > 1 && (mij = matches[1].split(',')).length == 6) {
921
- // scale + rot
922
- a = parseFloat(mij[0]);
923
- b = parseFloat(mij[1]);
924
- c = parseFloat(mij[2]);
925
- d = parseFloat(mij[3]);
926
- // transl
927
- x += parseFloat(mij[4]);
928
- y += parseFloat(mij[5]);
929
- }
930
- return { a: a, b: b, c: c, d: d, e: x, f: y };
921
+ /** @deprecated */
922
+ static deserializeTransform(obj) {
923
+ return Utils.Css.deserializeTransform(obj);
931
924
  }
932
925
  static set scrollTop(y) {
933
926
  window.scrollTo(Utils.scrollLeft, y);
@@ -936,10 +929,10 @@ var Pacem;
936
929
  window.scrollTo(x, Utils.scrollTop);
937
930
  }
938
931
  static get scrollTop() {
939
- return window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
932
+ return window.scrollY /*window.pageYOffset*/ || document.documentElement.scrollTop || document.body.scrollTop || 0;
940
933
  }
941
934
  static get scrollLeft() {
942
- return window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0;
935
+ return window.scrollX /*window.pageXOffset*/ || document.documentElement.scrollLeft || document.body.scrollLeft || 0;
943
936
  }
944
937
  static get windowSize() {
945
938
  let win = window;
@@ -1149,6 +1142,22 @@ var Pacem;
1149
1142
  }
1150
1143
  }
1151
1144
  return false;
1145
+ },
1146
+ deserializeTransform(element) {
1147
+ const style = element instanceof Element ? getComputedStyle(element) : element;
1148
+ let a = 1, b = 0, c = 0, d = 1, x = 0, y = 0, matches = /^matrix\((.*)\)$/.exec(style.transform), mij;
1149
+ //matrix(1, 0, 0, 1, 2, 4)
1150
+ if (matches && matches.length > 1 && (mij = matches[1].split(',')).length == 6) {
1151
+ // scale + rot
1152
+ a = parseFloat(mij[0]);
1153
+ b = parseFloat(mij[1]);
1154
+ c = parseFloat(mij[2]);
1155
+ d = parseFloat(mij[3]);
1156
+ // transl
1157
+ x += parseFloat(mij[4]);
1158
+ y += parseFloat(mij[5]);
1159
+ }
1160
+ return { a: a, b: b, c: c, d: d, e: x, f: y };
1152
1161
  }
1153
1162
  };
1154
1163
  // #region strings
@@ -5131,15 +5140,10 @@ var Pacem;
5131
5140
  this._originalAngle = this._previousAngle = this._previousRenderedAngle = GET_VAL(_element, OFFSET, 0);
5132
5141
  this._pivot = GET_VAL(_element, PIVOT);
5133
5142
  //
5134
- this._originalTransform = Pacem.Utils.deserializeTransform(getComputedStyle(_element));
5143
+ this._originalTransform = Pacem.Utils.Css.deserializeTransform(_element);
5135
5144
  }
5136
5145
  _computeAngle(pivot, start, current) {
5137
- const theta1 = Math.atan2(current.x - pivot.x, -(current.y - pivot.y)), theta0 = Math.atan2(start.x - pivot.x, -(start.y - pivot.y));
5138
- var delta = theta1 - theta0;
5139
- if (Math.abs(delta) > Math.PI) {
5140
- delta = -theta1 - theta0; //delta - TWO_PI * Math.sign(delta);
5141
- }
5142
- return -(delta).roundoff(); // clockwise is positive, counterclockwise is negative
5146
+ return Pacem.Angle.angleBetween(pivot, start, current);
5143
5147
  }
5144
5148
  _constraintAngle(x, step) {
5145
5149
  if (step > 0) {