@schukai/monster 3.51.3 → 3.51.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. package/CHANGELOG.md +689 -0
  2. package/README.md +2 -2
  3. package/package.json +1 -1
  4. package/source/dom/util/init-options-from-attributes.mjs +4 -1
  5. package/source/monster.mjs +106 -217
  6. package/source/types/version.mjs +1 -1
  7. package/test/cases/constraint/abstractoperator.mjs +2 -2
  8. package/test/cases/constraint/andoperator.mjs +3 -3
  9. package/test/cases/constraint/invalid.mjs +1 -1
  10. package/test/cases/constraint/isarray.mjs +1 -1
  11. package/test/cases/constraint/isobject.mjs +1 -1
  12. package/test/cases/constraint/oroperator.mjs +3 -3
  13. package/test/cases/constraint/valid.mjs +1 -1
  14. package/test/cases/data/buildmap.mjs +1 -1
  15. package/test/cases/data/buildtree.mjs +2 -2
  16. package/test/cases/data/datasource/dom.mjs +1 -1
  17. package/test/cases/data/datasource/server/restapi.mjs +2 -2
  18. package/test/cases/data/datasource/server/websocket.mjs +1 -1
  19. package/test/cases/data/datasource/server.mjs +1 -1
  20. package/test/cases/data/datasource/storage/localstorage.mjs +1 -1
  21. package/test/cases/data/datasource/storage/sessionstorage.mjs +1 -1
  22. package/test/cases/data/datasource.mjs +1 -1
  23. package/test/cases/data/diff.mjs +2 -2
  24. package/test/cases/data/extend.mjs +1 -1
  25. package/test/cases/data/pathfinder.mjs +1 -1
  26. package/test/cases/data/pipe.mjs +2 -2
  27. package/test/cases/data/transformer.mjs +3 -4
  28. package/test/cases/dom/assembler.mjs +1 -1
  29. package/test/cases/dom/attributes.mjs +1 -1
  30. package/test/cases/dom/customcontrol.mjs +4 -4
  31. package/test/cases/dom/customelement-initfromscripthost.mjs +6 -6
  32. package/test/cases/dom/customelement.mjs +7 -7
  33. package/test/cases/dom/dimension.mjs +4 -4
  34. package/test/cases/dom/events.mjs +1 -1
  35. package/test/cases/dom/find.mjs +1 -1
  36. package/test/cases/dom/focusmanager.mjs +1 -1
  37. package/test/cases/dom/locale.mjs +2 -2
  38. package/test/cases/dom/ready.mjs +1 -1
  39. package/test/cases/dom/resource/data.mjs +3 -3
  40. package/test/cases/dom/resource/link/stylesheet.mjs +3 -3
  41. package/test/cases/dom/resource/link.mjs +3 -3
  42. package/test/cases/dom/resource/script.mjs +3 -3
  43. package/test/cases/dom/resource.mjs +1 -1
  44. package/test/cases/dom/resourcemanager.mjs +1 -1
  45. package/test/cases/dom/slotted-nodes.mjs +1 -1
  46. package/test/cases/dom/template.mjs +2 -2
  47. package/test/cases/dom/theme.mjs +2 -2
  48. package/test/cases/dom/updater.mjs +4 -4
  49. package/test/cases/dom/util/extract-keys.mjs +1 -1
  50. package/test/cases/dom/util/init-options-from-attributes.mjs +1 -1
  51. package/test/cases/dom/util.mjs +2 -2
  52. package/test/cases/dom/worker/factory.mjs +2 -2
  53. package/test/cases/i18n/formatter.mjs +2 -2
  54. package/test/cases/i18n/locale.mjs +1 -1
  55. package/test/cases/i18n/provider.mjs +4 -4
  56. package/test/cases/i18n/providers/embed.mjs +3 -3
  57. package/test/cases/i18n/providers/fetch.mjs +3 -3
  58. package/test/cases/i18n/translations.mjs +3 -3
  59. package/test/cases/logging/handler/console.mjs +3 -3
  60. package/test/cases/logging/handler.mjs +3 -3
  61. package/test/cases/logging/logentry.mjs +1 -1
  62. package/test/cases/logging/logger.mjs +1 -1
  63. package/test/cases/math/random.mjs +1 -1
  64. package/test/cases/monster.mjs +2 -2
  65. package/test/cases/net/webconnect/message.mjs +1 -1
  66. package/test/cases/net/webconnect.mjs +3 -3
  67. package/test/cases/text/bracketed-key-value-hash.mjs +1 -1
  68. package/test/cases/text/formatter.mjs +1 -1
  69. package/test/cases/text/util.mjs +1 -1
  70. package/test/cases/types/base.mjs +2 -2
  71. package/test/cases/types/basewithoptions.mjs +1 -1
  72. package/test/cases/types/binary.mjs +1 -1
  73. package/test/cases/types/dataurl.mjs +1 -1
  74. package/test/cases/types/global.mjs +1 -1
  75. package/test/cases/types/id.mjs +1 -1
  76. package/test/cases/types/internal.mjs +2 -2
  77. package/test/cases/types/is.mjs +2 -2
  78. package/test/cases/types/mediatype.mjs +1 -1
  79. package/test/cases/types/node.mjs +3 -3
  80. package/test/cases/types/nodelist.mjs +2 -2
  81. package/test/cases/types/noderecursiveiterator.mjs +3 -3
  82. package/test/cases/types/observablequeue.mjs +2 -2
  83. package/test/cases/types/observer.mjs +1 -1
  84. package/test/cases/types/observerlist.mjs +2 -2
  85. package/test/cases/types/proxyobserver.mjs +4 -4
  86. package/test/cases/types/queue.mjs +1 -1
  87. package/test/cases/types/randomid.mjs +1 -1
  88. package/test/cases/types/regex.mjs +1 -1
  89. package/test/cases/types/stack.mjs +1 -1
  90. package/test/cases/types/tokenlist.mjs +1 -1
  91. package/test/cases/types/typeof.mjs +2 -2
  92. package/test/cases/types/uniquequeue.mjs +1 -1
  93. package/test/cases/types/uuid.mjs +1 -1
  94. package/test/cases/types/validate.mjs +3 -3
  95. package/test/cases/types/version.mjs +1 -1
  96. package/test/cases/util/clone.mjs +1 -1
  97. package/test/cases/util/comparator.mjs +1 -1
  98. package/test/cases/util/deadmansswitch.mjs +1 -1
  99. package/test/cases/util/freeze.mjs +1 -1
  100. package/test/cases/util/processing.mjs +1 -1
  101. package/test/cases/util/trimspaces.mjs +1 -1
  102. package/test/util/jsdom.mjs +2 -2
  103. package/test/util/websocket.mjs +1 -1
  104. package/test/web/import.js +76 -72
  105. package/test/web/test.html +3 -3
  106. package/test/web/tests.js +23697 -21995
  107. package/CHANGELOG +0 -438
package/CHANGELOG.md ADDED
@@ -0,0 +1,689 @@
1
+
2
+ ## [3.51.5] - 2023-11-01
3
+
4
+ ### Bug Fixes
5
+
6
+ - release process
7
+ ### Changes
8
+
9
+ - restore devDependencies
10
+ - update release process
11
+ - conversion of the repos to nix packagemanger [#125](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/125)
12
+
13
+ ## [v3.51.4] - 2023-06-19
14
+
15
+ ### Bug Fixes
16
+
17
+ - case if value === null
18
+ ### Changes
19
+
20
+ - update packages
21
+
22
+ ## [v3.51.3] - 2023-06-19
23
+
24
+ ### Code Refactoring
25
+
26
+ - introduce variable for better debugging
27
+
28
+ ## [v3.51.2] - 2023-06-19
29
+
30
+ ### Bug Fixes
31
+
32
+ - [#122](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/122)
33
+
34
+ ## [v3.51.1] - 2023-06-19
35
+
36
+ ### Bug Fixes
37
+
38
+ - issue [#121](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/121) bug in extractKeys
39
+
40
+ ## [v3.51.0] - 2023-06-15
41
+
42
+ ### Changes
43
+
44
+ - update doc
45
+
46
+ ## [v3.50.0] - 2023-05-24
47
+
48
+ ### Add Features
49
+
50
+ - new datetimeformat
51
+ ### Changes
52
+
53
+ - update and format
54
+
55
+ ## [v3.49.0] - 2023-05-07
56
+
57
+ ### Changes
58
+
59
+ - update docs and struct
60
+
61
+ ## [v3.48.0] - 2023-05-07
62
+
63
+ ### Bug Fixes
64
+
65
+ - tests
66
+ ### Code Refactoring
67
+
68
+ - initCustomControlOptionCallback -> initCustomControlCallback
69
+
70
+ ## [v3.47.0] - 2023-05-05
71
+
72
+ ### Add Features
73
+
74
+ - configuration via callback host
75
+
76
+ ## [v3.46.0] - 2023-05-02
77
+
78
+ ### Bug Fixes
79
+
80
+ - tests
81
+ ### Changes
82
+
83
+ - update packages
84
+ ### Code Refactoring
85
+
86
+ - attribute and form improvments
87
+
88
+ ## [v3.44.1] - 2023-05-01
89
+
90
+ ### Bug Fixes
91
+
92
+ - Fixed mutation observer for custom controls.
93
+
94
+ ## [v3.44.0] - 2023-05-01
95
+
96
+ ### Changes
97
+
98
+ - doc
99
+ ### Code Refactoring
100
+
101
+ - monitor all attribute changes
102
+
103
+ ## [v3.43.0] - 2023-04-07
104
+
105
+ ### Add Features
106
+
107
+ - new DataFetchError
108
+
109
+ ## [v3.42.1] - 2023-04-03
110
+
111
+ ### Bug Fixes
112
+
113
+ - watch only if Object.keys(self[attributeObserverSymbol].length > 0)
114
+
115
+ ## [v3.42.0] - 2023-04-03
116
+
117
+ ### Changes
118
+
119
+ - update
120
+
121
+ ## [v3.41.0] - 2023-04-03
122
+
123
+ ### Changes
124
+
125
+ - update
126
+
127
+ ## [v3.40.0] - 2023-04-03
128
+
129
+ ### Add Features
130
+
131
+ - attribure observer
132
+
133
+ ## [v3.39.1] - 2023-04-03
134
+
135
+ ### Bug Fixes
136
+
137
+ - this[attributeObserverSymbol] = {}; should defined before
138
+
139
+ ## [v3.39.0] - 2023-04-03
140
+
141
+ ### Add Features
142
+
143
+ - monitoring attribute change
144
+
145
+ ## [v3.38.1] - 2023-04-03
146
+
147
+ ### Bug Fixes
148
+
149
+ - case senstive options work now
150
+ ### Changes
151
+
152
+ - doc
153
+
154
+ ## [v3.38.0] - 2023-04-03
155
+
156
+ ### Add Features
157
+
158
+ - new function initOptionsFromAttributes
159
+
160
+ ## [v3.37.0] - 2023-04-02
161
+
162
+ ### Add Features
163
+
164
+ - new functions parseBracketedKeyValueHash and createBracketedKeyValueHash
165
+
166
+ ## [v3.36.0] - 2023-04-01
167
+
168
+ ### Add Features
169
+
170
+ - new function getContainingDocument
171
+
172
+ ## [v3.35.4] - 2023-03-28
173
+
174
+ ### Bug Fixes
175
+
176
+ - check is value is a string
177
+
178
+ ## [v3.35.3] - 2023-03-28
179
+
180
+
181
+ ## [v3.35.2] - 2023-03-28
182
+
183
+ ### Bug Fixes
184
+
185
+ - Updated regex to capture the negative sign
186
+
187
+ ## [v3.35.1] - 2023-03-28
188
+
189
+ ### Bug Fixes
190
+
191
+ - invalid input throws TypeError
192
+
193
+ ## [v3.35.0] - 2023-03-27
194
+
195
+ ### Changes
196
+
197
+ - tidy and doc
198
+ ### Documentation
199
+
200
+ - update
201
+
202
+ ## [v3.34.0] - 2023-03-27
203
+
204
+ ### Add Features
205
+
206
+ - new function detectRuntimeEnvironment and convertToPixels
207
+ ### Changes
208
+
209
+ - update packages
210
+
211
+ ## [v3.33.0] - 2023-03-26
212
+
213
+ ### Add Features
214
+
215
+ - new function getSlottedNodes()
216
+ ### Changes
217
+
218
+ - change since tag
219
+ - updated packages
220
+
221
+ ## [v3.32.0] - 2023-03-23
222
+
223
+ ### Add Features
224
+
225
+ - \undefined and \null are special values
226
+ - \undefined and \null are special values
227
+
228
+ ## [v3.31.1] - 2023-03-20
229
+
230
+ ### Bug Fixes
231
+
232
+ - check is attribute set
233
+ - ATTRIBUTE_UPDATER_SELECT_THIS and no ATTRIBUTE_UPDATER_ATTRIBUTES fail
234
+
235
+ ## [v3.31.0] - 2023-03-19
236
+
237
+ ### Add Features
238
+
239
+ - new function generaterangecomparisonexpression
240
+
241
+ ## [v3.30.0] - 2023-03-16
242
+
243
+ ### Add Features
244
+
245
+ - add util.findElementWithIdUpwards
246
+ ### Changes
247
+
248
+ - update packages
249
+
250
+ ## [v3.29.0] - 2023-03-16
251
+
252
+ ### Add Features
253
+
254
+ - customevents are composed and should bubble across shadowRoot
255
+ ### Changes
256
+
257
+ - update packages
258
+
259
+ ## [v3.28.0] - 2023-03-14
260
+
261
+ ### Add Features
262
+
263
+ - customcontrol.updatei18n can now plural rules
264
+ ### Changes
265
+
266
+ - update packages
267
+
268
+ ## [v3.27.0] - 2023-03-14
269
+
270
+ ### Add Features
271
+
272
+ - add instance getter
273
+ ### Changes
274
+
275
+ - update packages
276
+
277
+ ## [v3.26.0] - 2023-03-08
278
+
279
+ ### Add Features
280
+
281
+ - prevent has already defined error
282
+
283
+ ## [v3.25.0] - 2023-03-07
284
+
285
+
286
+ ## [v3.24.0] - 2023-03-07
287
+
288
+ ### Add Features
289
+
290
+ - template mapping
291
+
292
+ ## [v3.23.0] - 2023-03-07
293
+
294
+ ### Add Features
295
+
296
+ - template mapping
297
+ ### Bug Fixes
298
+
299
+ - rebuild template insert hack
300
+
301
+ ## [v3.22.1] - 2023-03-07
302
+
303
+ ### Bug Fixes
304
+
305
+ - host checking
306
+
307
+ ## [v3.22.0] - 2023-03-07
308
+
309
+ ### Add Features
310
+
311
+ - check if element is in a shadowroot.
312
+
313
+ ## [v3.21.1] - 2023-03-07
314
+
315
+ ### Changes
316
+
317
+ - update packages
318
+ ### Code Refactoring
319
+
320
+ - change fkt name internalTemplateLookUP git s
321
+
322
+ ## [v3.21.0] - 2023-03-07
323
+
324
+ ### Add Features
325
+
326
+ - new Template ID for insert
327
+
328
+ ## [v3.20.0] - 2023-03-01
329
+
330
+ ### Add Features
331
+
332
+ - new equal command
333
+
334
+ ## [v3.19.0] - 2023-03-01
335
+
336
+ ### Add Features
337
+
338
+ - new datetime and currency
339
+
340
+ ## [v3.18.0] - 2023-02-28
341
+
342
+ ### Add Features
343
+
344
+ - new contains and has-entries
345
+
346
+ ## [v3.17.0] - 2023-02-28
347
+
348
+ ### Add Features
349
+
350
+ - new is- commands for transformer, not command
351
+
352
+ ## [v3.16.1] - 2023-02-26
353
+
354
+ ### Changes
355
+
356
+ - update year
357
+ - add pipe and i18n test
358
+
359
+ ## [v3.16.0] - 2023-02-26
360
+
361
+ ### Add Features
362
+
363
+ - new transformer commands (date, map, time, dayofweek, timestamp...)
364
+
365
+ ## [v3.15.0] - 2023-02-23
366
+
367
+ ### Add Features
368
+
369
+ - deprecate BaseWithOption in favorit of equipWithInternal
370
+
371
+ ## [v3.14.1] - 2023-02-21
372
+
373
+ ### Bug Fixes
374
+
375
+ - add empty strings
376
+ ### Changes
377
+
378
+ - add tests
379
+
380
+ ## [v3.14.0] - 2023-02-21
381
+
382
+ ### Add Features
383
+
384
+ - new transformer function concat
385
+
386
+ ## [v3.13.1] - 2023-02-18
387
+
388
+ ### Bug Fixes
389
+
390
+ - i18 does not work as first token
391
+
392
+ ## [v3.13.0] - 2023-02-15
393
+
394
+ ### Add Features
395
+
396
+ - new dom datasource
397
+ ### Bug Fixes
398
+
399
+ - package updates
400
+
401
+ ## [v3.12.2] - 2023-02-14
402
+
403
+ ### Bug Fixes
404
+
405
+ - missing argument of the function read
406
+
407
+ ## [v3.12.1] - 2023-02-12
408
+
409
+ ### Bug Fixes
410
+
411
+ - missing import
412
+
413
+ ## [v3.12.0] - 2023-02-12
414
+
415
+ ### Add Features
416
+
417
+ - add raw data to restapi respond
418
+
419
+ ## [v3.11.0] - 2023-02-12
420
+
421
+ ### Add Features
422
+
423
+ - add callback configuration to restapi
424
+ ### Changes
425
+
426
+ - update npm
427
+ - update makefiles
428
+
429
+ ## [v3.10.1] - 2023-02-04
430
+
431
+ ### Bug Fixes
432
+
433
+ - make exeption messages more readable
434
+
435
+ ## [v3.10.0] - 2023-02-04
436
+
437
+ ### Add Features
438
+
439
+ - add CustomControl.updateI18n()
440
+
441
+ ## [v3.9.1] - 2023-02-02
442
+
443
+ ### Bug Fixes
444
+
445
+ - Object links can contain more objects
446
+
447
+ ## [v3.9.0] - 2023-02-02
448
+
449
+ ### Add Features
450
+
451
+ - document translations
452
+ ### Bug Fixes
453
+
454
+ - optimize i18n: transformer
455
+ ### Changes
456
+
457
+ - move doc to monsterjs-org
458
+ - write and update tests
459
+ - change imports
460
+
461
+ ## [v3.8.0] - 2023-02-01
462
+
463
+ ### Add Features
464
+
465
+ - pathfinder now works with array
466
+ ### Changes
467
+
468
+ - code format (rome)
469
+ - doc
470
+ - docs
471
+
472
+ ## [v3.7.0] - 2023-01-26
473
+
474
+ ### Bug Fixes
475
+
476
+ - version test
477
+
478
+ ## [v3.6.0] - 2023-01-26
479
+
480
+ ### Add Features
481
+
482
+ - add rome and do linting
483
+ ### Changes
484
+
485
+ - code format rome
486
+
487
+ ## [v3.5.0] - 2023-01-23
488
+
489
+ ### Add Features
490
+
491
+ - check the navigator languages too
492
+ - new embed i18n provider
493
+ ### Bug Fixes
494
+
495
+ - doc
496
+ ### Changes
497
+
498
+ - update packages
499
+ - update makefiles
500
+ - move tutorials to monsterjs-org
501
+
502
+ ## [v3.4.2] - 2023-01-15
503
+
504
+ ### Bug Fixes
505
+
506
+ - error in the status processing
507
+ ### Changes
508
+
509
+ - update makefiles
510
+ - update makefiles
511
+ - doc
512
+
513
+ ## [v3.4.1] - 2023-01-08
514
+
515
+ ### Bug Fixes
516
+
517
+ - writeerror has the wrong namespace
518
+
519
+ ## [v3.4.0] - 2023-01-08
520
+
521
+ ### Add Features
522
+
523
+ - add new layer class Server
524
+ ### Changes
525
+
526
+ - remove unused code
527
+
528
+ ## [v3.3.0] - 2023-01-07
529
+
530
+ ### Add Features
531
+
532
+ - change to webconnect implementation
533
+ - hide implementation in symbol
534
+ - new Class
535
+ - new Webconnect and Message
536
+ - new Webconnect and Message
537
+ ### Changes
538
+
539
+ - doc
540
+
541
+ ## [v3.2.0] - 2023-01-06
542
+
543
+ ### Add Features
544
+
545
+ - connect return now a promise
546
+
547
+ ## [v3.1.2] - 2023-01-06
548
+
549
+ ### Bug Fixes
550
+
551
+ - check read/write call
552
+ - check socket state
553
+
554
+ ## [v3.1.1] - 2023-01-06
555
+
556
+ ### Bug Fixes
557
+
558
+ - wrong class name
559
+
560
+ ## [v3.1.0] - 2023-01-06
561
+
562
+ ### Add Features
563
+
564
+ - new websocket datasource
565
+ ### Bug Fixes
566
+
567
+ - return error in test
568
+ - missing callbacks
569
+ ### Changes
570
+
571
+ - tests
572
+ - administration changes
573
+ - doc
574
+ - remove unused import
575
+ - doc + tidy
576
+
577
+ ## [v3.0.0] - 2023-01-04
578
+
579
+ ### Changes
580
+
581
+ - update web tests
582
+
583
+ ## [v2.2.1] - 2023-01-03
584
+
585
+ ### Bug Fixes
586
+
587
+ - unreferenced value
588
+ - add @@ to internal data symbol
589
+
590
+ ## [v2.2.0] - 2023-01-02
591
+
592
+ ### Add Features
593
+
594
+ - internalDataSymbol is now global symbol
595
+ ### Changes
596
+
597
+ - update npm packages
598
+ - add doc
599
+
600
+ ## [v2.1.1] - 2022-12-30
601
+
602
+ ### Bug Fixes
603
+
604
+ - symbols must be identical across realms.
605
+
606
+ ## [v2.1.0] - 2022-12-30
607
+
608
+ ### Add Features
609
+
610
+ - implement instanceof for multi realm
611
+
612
+ ## [v2.0.16] - 2022-10-31
613
+
614
+
615
+ ## [v2.0.15] - 2022-10-31
616
+
617
+ ### Changes
618
+
619
+ - commit save point
620
+ - commit save point
621
+ - commit save point
622
+ - commit save point
623
+ - commit save point
624
+ - commit save point
625
+ - commit save point
626
+ - commit save point
627
+ - commit save point
628
+ - commit save point
629
+ - commit save point
630
+ - commit save point
631
+ - commit save point
632
+ - commit save point
633
+ - commit save point
634
+ - commit save point
635
+ - commit save point
636
+ - commit save point
637
+ - commit save point
638
+ - commit save point
639
+ - commit save point
640
+ - commit save point
641
+ - commit save point
642
+ - commit save point
643
+ - commit save point
644
+ - commit save point
645
+ - commit save point
646
+ - commit save point
647
+ - commit save point
648
+ - commit save point
649
+ - commit save point
650
+ - commit save point
651
+ - commit save point
652
+ - commit save point
653
+ - commit save point
654
+ - commit save point
655
+ - commit save point
656
+ - commit save point
657
+ - commit save point
658
+ - commit save point
659
+ - commit save point
660
+ - commit save point
661
+ - commit save point
662
+ - commit save point
663
+ - commit save point
664
+ - commit save point
665
+ - commit save point
666
+ - commit save point
667
+ - commit save point
668
+ - commit save point
669
+ - commit save point
670
+ - commit save point
671
+ - commit save point
672
+ - commit save point
673
+ - commit save point
674
+ - commit save point
675
+
676
+ ## [1.30.1] - 2022-02-06
677
+
678
+
679
+ ## [1.31.0] - 2022-02-05
680
+
681
+
682
+ ## [1.10.0] - 2021-08-29
683
+
684
+
685
+ ## [1.9.0] - 2021-08-17
686
+
687
+
688
+ ## 1.8.0 - 2021-08-15
689
+
package/README.md CHANGED
@@ -73,7 +73,7 @@ We do try to work around some browser bugs, but on the whole we don't use polyfi
73
73
  However, many functions can be mapped via [polyfill.io](https://polyfill.io/) and thus the compatibility can be increased.
74
74
 
75
75
  ```html
76
- <script id="polyfill" src="https://polyfill.io/v3/polyfill.min.js?features=Array.from,Array.isArray,Array.prototype.entries,Array.prototype.fill,Array.prototype.filter,Array.prototype.forEach,Array.prototype.includes,Array.prototype.indexOf,Array.prototype.keys,Array.prototype.lastIndexOf,Array.prototype.map,Array.prototype.reduce,Array.prototype.sort,ArrayBuffer,atob,Blob,CustomEvent,DataView,document,Document,DocumentFragment,Element,Event,fetch,globalThis,HTMLDocument,HTMLTemplateElement,Intl,JSON,Map,Math.log2,Number.isInteger,Object.assign,Object.defineProperty,Object.entries,Object.freeze,Object.getOwnPropertyDescriptor,Object.getOwnPropertyNames,Object.getPrototypeOf,Object.keys,Promise,Reflect,Reflect.defineProperty,Reflect.get,Reflect.getOwnPropertyDescriptor,Reflect.setPrototypeOf,Set,String.prototype.endsWith,String.prototype.includes,String.prototype.matchAll,String.prototype.padStart,String.prototype.startsWith,String.prototype.trim,Symbol,Symbol.for,Symbol.hasInstance,Symbol.iterator,Uint16Array,Uint8Array,URL,WeakMap,WeakSet"
76
+ <script id="polyfill" src="https://polyfill.io/v3/polyfill.min.js?features=Array.from,Array.isArray,Array.prototype.entries,Array.prototype.fill,Array.prototype.filter,Array.prototype.forEach,Array.prototype.includes,Array.prototype.indexOf,Array.prototype.keys,Array.prototype.lastIndexOf,Array.prototype.map,Array.prototype.reduce,Array.prototype.sort,ArrayBuffer,atob,Blob,CustomEvent,DataView,document,Document,DocumentFragment,Element,Event,fetch,globalThis,HTMLDocument,HTMLTemplateElement,Intl,JSON,Map,Math.log2,MutationObserver,Number.isInteger,Object.assign,Object.defineProperty,Object.entries,Object.freeze,Object.getOwnPropertyDescriptor,Object.getOwnPropertyNames,Object.getPrototypeOf,Object.keys,Promise,Reflect,Reflect.defineProperty,Reflect.get,Reflect.getOwnPropertyDescriptor,Reflect.setPrototypeOf,Set,String.prototype.endsWith,String.prototype.includes,String.prototype.matchAll,String.prototype.padStart,String.prototype.startsWith,String.prototype.trim,Symbol,Symbol.for,Symbol.hasInstance,Symbol.iterator,Uint16Array,Uint8Array,URL,WeakMap,WeakSet"
77
77
  crossorigin="anonymous"
78
78
  referrerpolicy="no-referrer"></script>
79
79
  ```
@@ -90,7 +90,7 @@ issue. Issues not conforming to the guidelines may be closed immediately.
90
90
 
91
91
  ## License
92
92
 
93
- Copyright © 2022 schukai GmbH
93
+ Copyright © 2023 schukai GmbH
94
94
 
95
95
  [AGPL](https://www.gnu.org/licenses/agpl-3.0.de.html)
96
96
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schukai/monster",
3
- "version": "3.51.3",
3
+ "version": "3.51.5",
4
4
  "description": "Monster is a simple library for creating fast, robust and lightweight websites.",
5
5
  "keywords": [
6
6
  "framework",
@@ -64,7 +64,10 @@ function initOptionsFromAttributes(element, options, mapping = {}, prefix = "dat
64
64
  value = mapping[optionName](value);
65
65
  }
66
66
 
67
- const optionValue = finder.getVia(optionName);
67
+ let optionValue = finder.getVia(optionName);
68
+ if (optionValue === null || optionValue === undefined) {
69
+ optionValue = value;
70
+ }
68
71
 
69
72
  const typeOfOptionValue = typeof optionValue;
70
73
  if (optionValue === null || optionValue === undefined) {