@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.
- package/CHANGELOG.md +1392 -19
- package/package.json +1 -1
- package/source/components/accessibility/locale-picker.mjs +6 -6
- package/source/components/accessibility/locale-select.mjs +1 -1
- package/source/components/content/camera-capture.mjs +3 -3
- package/source/components/content/copy.mjs +1 -1
- package/source/components/content/fetch-box.mjs +1 -1
- package/source/components/content/image-editor.mjs +2 -4
- package/source/components/content/viewer/html.mjs +2 -2
- package/source/components/content/viewer/message.mjs +3 -3
- package/source/components/content/viewer/sanitize-html.mjs +1 -1
- package/source/components/data/kpi-tile.mjs +5 -5
- package/source/components/data/metric-graph.mjs +2 -2
- package/source/components/data/metric.mjs +1 -1
- package/source/components/datatable/change-button.mjs +1 -1
- package/source/components/datatable/columnbar.mjs +2 -2
- package/source/components/datatable/datasource/rest.mjs +2 -4
- package/source/components/datatable/datatable.mjs +3 -3
- package/source/components/datatable/filter/date-presets.mjs +1 -1
- package/source/components/datatable/filter/input.mjs +1 -1
- package/source/components/datatable/filter/range.mjs +1 -1
- package/source/components/datatable/filter/settings.mjs +1 -3
- package/source/components/datatable/filter/text-operator.mjs +1 -1
- package/source/components/datatable/filter.mjs +1 -1
- package/source/components/datatable/pagination.mjs +2 -4
- package/source/components/datatable/status.mjs +1 -1
- package/source/components/files/file-manager.mjs +1 -1
- package/source/components/form/action-button.mjs +1 -1
- package/source/components/form/api-bar.mjs +1 -1
- package/source/components/form/buy-box.mjs +1 -1
- package/source/components/form/cart-control.mjs +1 -1
- package/source/components/form/checklist.mjs +1 -1
- package/source/components/form/digits.mjs +4 -4
- package/source/components/form/dropzone.mjs +1 -1
- package/source/components/form/field-set.mjs +1 -1
- package/source/components/form/input-group.mjs +1 -1
- package/source/components/form/login.mjs +15 -15
- package/source/components/form/password.mjs +1 -1
- package/source/components/form/popper.mjs +1 -0
- package/source/components/form/repeat-field-set.mjs +1 -1
- package/source/components/form/select-link.mjs +3 -0
- package/source/components/form/select.mjs +33 -33
- package/source/components/form/sheet.mjs +3 -0
- package/source/components/form/tabs.mjs +1 -0
- package/source/components/form/toggle-switch.mjs +1 -1
- package/source/components/form/util/fetch.mjs +3 -3
- package/source/components/form/variant-select.mjs +1 -1
- package/source/components/form/wizard.mjs +1 -3
- package/source/components/host/collapse.mjs +1 -0
- package/source/components/host/config-manager.mjs +2 -2
- package/source/components/host/details.mjs +1 -0
- package/source/components/host/host.mjs +2 -2
- package/source/components/host/overlay.mjs +1 -0
- package/source/components/host/viewer.mjs +1 -0
- package/source/components/layout/board.mjs +1 -1
- package/source/components/layout/collapse.mjs +2 -2
- package/source/components/layout/details.mjs +1 -1
- package/source/components/layout/full-screen.mjs +2 -2
- package/source/components/layout/popper.mjs +1 -1
- package/source/components/layout/tabs.mjs +5 -8
- package/source/components/layout/utils/attach-tabs-hash-sync.mjs +1 -1
- package/source/components/layout/vertical-tabs.mjs +5 -8
- package/source/components/navigation/site-navigation.mjs +3 -3
- package/source/components/navigation/table-of-content.mjs +1 -1
- package/source/components/navigation/wizard-navigation.mjs +9 -11
- package/source/components/notify/monitor-attribute-errors.mjs +1 -1
- package/source/components/time/day.mjs +1 -1
- package/source/components/time/month-calendar.mjs +8 -8
- package/source/components/time/timeline/appointment.mjs +1 -1
- package/source/components/time/timeline/segment.mjs +1 -1
- package/source/components/tree-menu/tree-menu.mjs +0 -1
- package/source/data/datasource/dom.mjs +1 -0
- package/source/dom/customelement.mjs +13 -13
- package/source/dom/sanitize-html.mjs +1 -1
- package/source/i18n/internal.mjs +2 -2
- package/source/i18n/providers/embed.mjs +1 -1
- package/source/i18n/time-ago.mjs +1 -1
- package/source/text/formatter.mjs +1 -0
- package/source/types/dataurl.mjs +1 -0
- package/source/types/has.mjs +1 -1
- package/source/types/is.mjs +2 -2
- package/source/types/mediatype.mjs +1 -0
- package/source/types/observer.mjs +6 -6
- package/source/types/observerlist.mjs +1 -0
- package/source/types/proxyobserver.mjs +1 -0
- package/source/types/stack.mjs +1 -0
- package/source/types/tokenlist.mjs +1 -0
- package/source/types/uuid.mjs +1 -0
- package/source/util/accessiblecolor.mjs +2 -2
- package/source/util/comparator.mjs +3 -3
- package/source/util/deadmansswitch.mjs +3 -4
- package/source/util/processing.mjs +1 -1
- 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
|
-
* @
|
|
51
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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);
|