@schukai/monster 3.111.0 → 3.112.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.
Files changed (30) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/package.json +1 -1
  3. package/source/components/content/camera.mjs +339 -329
  4. package/source/components/content/stylesheet/camera-capture.mjs +13 -6
  5. package/source/components/datatable/status.mjs +175 -177
  6. package/source/components/form/reload.mjs +1 -2
  7. package/source/components/form/util/fetch.mjs +5 -2
  8. package/source/components/layout/popper.mjs +1 -1
  9. package/source/components/layout/slider.mjs +1 -1
  10. package/source/components/time/month-calendar.mjs +824 -0
  11. package/source/components/time/style/month-calendar.pcss +100 -0
  12. package/source/components/time/stylesheet/month-calendar.mjs +38 -0
  13. package/source/components/time/timeline/collection.mjs +218 -0
  14. package/source/components/time/timeline/item.mjs +192 -0
  15. package/source/components/time/timeline/segment.mjs +169 -0
  16. package/source/components/time/timeline/style/segment.pcss +18 -0
  17. package/source/components/time/timeline/stylesheet/segment.mjs +38 -0
  18. package/source/components/tree-menu/tree-menu.mjs +36 -20
  19. package/source/data/datasource/server/restapi/data-fetch-error.mjs +3 -3
  20. package/source/data/datasource/server/restapi.mjs +1 -1
  21. package/source/data/transformer.mjs +60 -0
  22. package/source/monster.mjs +4 -0
  23. package/source/text/bracketed-key-value-hash.mjs +187 -187
  24. package/source/types/base.mjs +6 -5
  25. package/source/types/basewithoptions.mjs +4 -1
  26. package/source/types/internal.mjs +1 -1
  27. package/source/types/version.mjs +1 -1
  28. package/test/cases/monster.mjs +1 -1
  29. package/test/web/test.html +2 -2
  30. package/test/web/tests.js +1139 -977
@@ -17,6 +17,7 @@ import { extend } from "../data/extend.mjs";
17
17
  import { Pathfinder } from "../data/pathfinder.mjs";
18
18
  import { Base } from "./base.mjs";
19
19
  import { validateObject } from "./validate.mjs";
20
+ import { isObject } from "./is.mjs";
20
21
 
21
22
  export { BaseWithOptions };
22
23
 
@@ -28,6 +29,8 @@ export { BaseWithOptions };
28
29
  * Classes that require the possibility of options can be derived directly from this class.
29
30
  * Derived classes almost always override the `default` getter with their own values.
30
31
  *
32
+ * This class is deprecated since 3.15.0. Use `BaseWithDefaults` instead.
33
+ *
31
34
  * @license AGPLv3
32
35
  * @since 1.13.0
33
36
  * @copyright schukai GmbH
@@ -41,7 +44,7 @@ class BaseWithOptions extends Base {
41
44
  constructor(options) {
42
45
  super();
43
46
 
44
- if (options === undefined) {
47
+ if (!isObject(options)) {
45
48
  options = {};
46
49
  }
47
50
 
@@ -119,7 +119,7 @@ function equipWithInternal() {
119
119
  };
120
120
 
121
121
  /**
122
- * nested internals can be specified by path `a.b.c`
122
+ * path 'a.b.c can specify nested internals`
123
123
  *
124
124
  * @param {string} path
125
125
  * @param {*} defaultValue
@@ -156,7 +156,7 @@ function getMonsterVersion() {
156
156
  }
157
157
 
158
158
  /** don't touch, replaced by make with package.json version */
159
- monsterVersion = new Version("3.110.4");
159
+ monsterVersion = new Version("3.112.0");
160
160
 
161
161
  return monsterVersion;
162
162
  }
@@ -7,7 +7,7 @@ describe('Monster', function () {
7
7
  let monsterVersion
8
8
 
9
9
  /** don´t touch, replaced by make with package.json version */
10
- monsterVersion = new Version("3.110.4")
10
+ monsterVersion = new Version("3.112.0")
11
11
 
12
12
  let m = getMonsterVersion();
13
13
 
@@ -9,8 +9,8 @@
9
9
  </head>
10
10
  <body>
11
11
  <div id="headline" style="display: flex;align-items: center;justify-content: center;flex-direction: column;">
12
- <h1 style='margin-bottom: 0.1em;'>Monster 3.110.4</h1>
13
- <div id="lastupdate" style='font-size:0.7em'>last update Sa 22. Feb 23:01:02 CET 2025</div>
12
+ <h1 style='margin-bottom: 0.1em;'>Monster 3.112.0</h1>
13
+ <div id="lastupdate" style='font-size:0.7em'>last update Sa 8. Mär 00:49:17 CET 2025</div>
14
14
  </div>
15
15
  <div id="mocha-errors"
16
16
  style="color: red;font-weight: bold;display: flex;align-items: center;justify-content: center;flex-direction: column;margin:20px;"></div>