@schukai/monster 4.154.1 → 4.154.2

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 (93) hide show
  1. package/CHANGELOG.md +1392 -19
  2. package/package.json +1 -1
  3. package/source/components/accessibility/locale-picker.mjs +6 -6
  4. package/source/components/accessibility/locale-select.mjs +1 -1
  5. package/source/components/content/camera-capture.mjs +3 -3
  6. package/source/components/content/copy.mjs +1 -1
  7. package/source/components/content/fetch-box.mjs +1 -1
  8. package/source/components/content/image-editor.mjs +2 -4
  9. package/source/components/content/viewer/html.mjs +2 -2
  10. package/source/components/content/viewer/message.mjs +3 -3
  11. package/source/components/content/viewer/sanitize-html.mjs +1 -1
  12. package/source/components/data/kpi-tile.mjs +5 -5
  13. package/source/components/data/metric-graph.mjs +2 -2
  14. package/source/components/data/metric.mjs +1 -1
  15. package/source/components/datatable/change-button.mjs +1 -1
  16. package/source/components/datatable/columnbar.mjs +2 -2
  17. package/source/components/datatable/datasource/rest.mjs +2 -4
  18. package/source/components/datatable/datatable.mjs +3 -3
  19. package/source/components/datatable/filter/date-presets.mjs +1 -1
  20. package/source/components/datatable/filter/input.mjs +1 -1
  21. package/source/components/datatable/filter/range.mjs +1 -1
  22. package/source/components/datatable/filter/settings.mjs +1 -3
  23. package/source/components/datatable/filter/text-operator.mjs +1 -1
  24. package/source/components/datatable/filter.mjs +1 -1
  25. package/source/components/datatable/pagination.mjs +2 -4
  26. package/source/components/datatable/status.mjs +1 -1
  27. package/source/components/files/file-manager.mjs +1 -1
  28. package/source/components/form/action-button.mjs +1 -1
  29. package/source/components/form/api-bar.mjs +1 -1
  30. package/source/components/form/buy-box.mjs +1 -1
  31. package/source/components/form/cart-control.mjs +1 -1
  32. package/source/components/form/checklist.mjs +1 -1
  33. package/source/components/form/digits.mjs +4 -4
  34. package/source/components/form/dropzone.mjs +1 -1
  35. package/source/components/form/field-set.mjs +1 -1
  36. package/source/components/form/input-group.mjs +1 -1
  37. package/source/components/form/login.mjs +15 -15
  38. package/source/components/form/password.mjs +1 -1
  39. package/source/components/form/popper.mjs +1 -0
  40. package/source/components/form/repeat-field-set.mjs +1 -1
  41. package/source/components/form/select-link.mjs +3 -0
  42. package/source/components/form/select.mjs +33 -33
  43. package/source/components/form/sheet.mjs +3 -0
  44. package/source/components/form/tabs.mjs +1 -0
  45. package/source/components/form/toggle-switch.mjs +1 -1
  46. package/source/components/form/util/fetch.mjs +3 -3
  47. package/source/components/form/variant-select.mjs +1 -1
  48. package/source/components/form/wizard.mjs +1 -3
  49. package/source/components/host/collapse.mjs +1 -0
  50. package/source/components/host/config-manager.mjs +2 -2
  51. package/source/components/host/details.mjs +1 -0
  52. package/source/components/host/host.mjs +2 -2
  53. package/source/components/host/overlay.mjs +1 -0
  54. package/source/components/host/viewer.mjs +1 -0
  55. package/source/components/layout/board.mjs +1 -1
  56. package/source/components/layout/collapse.mjs +2 -2
  57. package/source/components/layout/details.mjs +1 -1
  58. package/source/components/layout/full-screen.mjs +2 -2
  59. package/source/components/layout/popper.mjs +1 -1
  60. package/source/components/layout/tabs.mjs +5 -8
  61. package/source/components/layout/utils/attach-tabs-hash-sync.mjs +1 -1
  62. package/source/components/layout/vertical-tabs.mjs +5 -8
  63. package/source/components/navigation/site-navigation.mjs +3 -3
  64. package/source/components/navigation/table-of-content.mjs +1 -1
  65. package/source/components/navigation/wizard-navigation.mjs +9 -11
  66. package/source/components/notify/monitor-attribute-errors.mjs +1 -1
  67. package/source/components/time/day.mjs +1 -1
  68. package/source/components/time/month-calendar.mjs +8 -8
  69. package/source/components/time/timeline/appointment.mjs +1 -1
  70. package/source/components/time/timeline/segment.mjs +1 -1
  71. package/source/components/tree-menu/tree-menu.mjs +0 -1
  72. package/source/data/datasource/dom.mjs +1 -0
  73. package/source/dom/customelement.mjs +13 -13
  74. package/source/dom/sanitize-html.mjs +1 -1
  75. package/source/i18n/internal.mjs +2 -2
  76. package/source/i18n/providers/embed.mjs +1 -1
  77. package/source/i18n/time-ago.mjs +1 -1
  78. package/source/text/formatter.mjs +1 -0
  79. package/source/types/dataurl.mjs +1 -0
  80. package/source/types/has.mjs +1 -1
  81. package/source/types/is.mjs +2 -2
  82. package/source/types/mediatype.mjs +1 -0
  83. package/source/types/observer.mjs +6 -6
  84. package/source/types/observerlist.mjs +1 -0
  85. package/source/types/proxyobserver.mjs +1 -0
  86. package/source/types/stack.mjs +1 -0
  87. package/source/types/tokenlist.mjs +1 -0
  88. package/source/types/uuid.mjs +1 -0
  89. package/source/util/accessiblecolor.mjs +2 -2
  90. package/source/util/comparator.mjs +3 -3
  91. package/source/util/deadmansswitch.mjs +3 -4
  92. package/source/util/processing.mjs +1 -1
  93. package/test/cases/components/datatable/drag-scroll.mjs +10 -0
@@ -38,17 +38,17 @@ export { Comparator };
38
38
  * }).equal({v: 2}, {v: 2}); // ↦ true
39
39
  * ```
40
40
  *
41
- * @example /example/comparator/simple/ Simple example
42
41
  * @license AGPLv3
43
42
  * @since 1.3.0
43
+ * @summary Wraps customizable comparison operations for arbitrary values.
44
44
  */
45
45
  class Comparator extends Base {
46
46
  /**
47
47
  * create new comparator
48
48
  *
49
49
  * @param {Monster.Util~exampleCallback} [callback] Comparator callback
50
- * @throw {TypeError} unsupported type
51
- * @throw {TypeError} impractical comparison
50
+ * @throws {TypeError} unsupported type
51
+ * @throws {TypeError} impractical comparison
52
52
  */
53
53
  constructor(callback) {
54
54
  super();
@@ -24,7 +24,6 @@ export { DeadMansSwitch };
24
24
  * The dead man's switch allows setting a timer which can be reset again
25
25
  * and again within a defined period of time.
26
26
  *
27
- * @example /example/util/deadmansswitch/simple/ Simple example
28
27
  * @copyright Volker Schukai
29
28
  * @license AGPLv3
30
29
  * @since 1.29.0
@@ -36,7 +35,7 @@ class DeadMansSwitch extends Base {
36
35
  *
37
36
  * @param {Integer} delay
38
37
  * @param {function} callback
39
- * @throw {TypeError} the arguments must be either integer or functions
38
+ * @throws {TypeError} the arguments must be either integer or functions
40
39
  * @throws {TypeError} value is not an integer
41
40
  */
42
41
  constructor(delay, callback) {
@@ -47,7 +46,7 @@ class DeadMansSwitch extends Base {
47
46
 
48
47
  /**
49
48
  * @param delay
50
- * @returns {DeadMansSwitch}
49
+ * @return {DeadMansSwitch}
51
50
  * @throws {Error} has already run
52
51
  * @throws {Error} unsupported argument
53
52
  */
@@ -70,7 +69,7 @@ class DeadMansSwitch extends Base {
70
69
 
71
70
  /**
72
71
  * @throws {Error} has already run
73
- * @returns {DeadMansSwitch}
72
+ * @return {DeadMansSwitch}
74
73
  */
75
74
  defuse() {
76
75
  if (this[internalSymbol]["isAlreadyRun"] === true) {
@@ -54,7 +54,7 @@ class Processing extends Base {
54
54
  *
55
55
  * So the execution time is timeout1+timeout1+timeout1+timeout2
56
56
  *
57
- * @throw {TypeError} the arguments must be either integer or functions
57
+ * @throws {TypeError} the arguments must be either integer or functions
58
58
  * @param {...(int|function)} args
59
59
  */
60
60
  constructor(...args) {
@@ -702,6 +702,16 @@ describe("Datatable drag scroll", function () {
702
702
  expect(firstResizeObserver).to.exist;
703
703
  expect(secondResizeObserver).to.exist;
704
704
 
705
+ // Drain initialization work from the module-level shared frame before
706
+ // replacing requestAnimationFrame. Otherwise a slow renderer can still
707
+ // have that frame pending and the observer updates correctly join it,
708
+ // leaving the spy below with no newly scheduled callback.
709
+ await new Promise((resolve) => {
710
+ window.requestAnimationFrame(() =>
711
+ window.requestAnimationFrame(resolve),
712
+ );
713
+ });
714
+
705
715
  const scheduledCallbacks = [];
706
716
  window.requestAnimationFrame = (callback) => {
707
717
  scheduledCallbacks.push(callback);