typecomposer 0.0.31 → 0.0.33

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 (49) hide show
  1. package/dist/cjs/core/components/navigation/MenuBarElement.js +1 -1
  2. package/dist/cjs/core/element/action/ColorPicker.js +1 -1
  3. package/dist/cjs/core/element/base/Elements.d.ts +8 -3
  4. package/dist/cjs/core/element/base/Elements.js +84 -71
  5. package/dist/cjs/core/element/base/Elements.js.map +1 -1
  6. package/dist/cjs/core/element/layers/CardElement.js +1 -1
  7. package/dist/cjs/core/element/text/TextFieldElement.js +1 -1
  8. package/dist/cjs/core/router/Router.js +4 -2
  9. package/dist/cjs/core/router/Router.js.map +1 -1
  10. package/dist/cjs/global/global.d.ts +3 -0
  11. package/dist/cjs/global/global.js +4 -1
  12. package/dist/cjs/global/global.js.map +1 -1
  13. package/dist/cjs/global/index.d.ts +1 -0
  14. package/dist/cjs/global/index.js +1 -0
  15. package/dist/cjs/global/index.js.map +1 -1
  16. package/dist/cjs/global/safari-polyfill.d.ts +0 -0
  17. package/dist/cjs/global/safari-polyfill.js +234 -0
  18. package/dist/cjs/global/safari-polyfill.js.map +1 -0
  19. package/dist/cjs/index.d.ts +1 -1
  20. package/dist/cjs/index.js +1 -1
  21. package/dist/cjs/index.js.map +1 -1
  22. package/dist/cjs/styles/index.d.ts +1 -1
  23. package/dist/cjs/styles/index.js +7 -0
  24. package/dist/cjs/styles/index.js.map +1 -1
  25. package/dist/esm/core/components/navigation/MenuBarElement.js +1 -1
  26. package/dist/esm/core/element/action/ColorPicker.js +1 -1
  27. package/dist/esm/core/element/base/Elements.d.ts +8 -3
  28. package/dist/esm/core/element/base/Elements.js +81 -69
  29. package/dist/esm/core/element/base/Elements.js.map +1 -1
  30. package/dist/esm/core/element/layers/CardElement.js +1 -1
  31. package/dist/esm/core/element/text/TextFieldElement.js +1 -1
  32. package/dist/esm/core/router/Router.js +4 -2
  33. package/dist/esm/core/router/Router.js.map +1 -1
  34. package/dist/esm/global/global.d.ts +3 -0
  35. package/dist/esm/global/global.js +4 -1
  36. package/dist/esm/global/global.js.map +1 -1
  37. package/dist/esm/global/index.d.ts +1 -0
  38. package/dist/esm/global/index.js +1 -0
  39. package/dist/esm/global/index.js.map +1 -1
  40. package/dist/esm/global/safari-polyfill.d.ts +0 -0
  41. package/dist/esm/global/safari-polyfill.js +234 -0
  42. package/dist/esm/global/safari-polyfill.js.map +1 -0
  43. package/dist/esm/index.d.ts +1 -1
  44. package/dist/esm/index.js +1 -1
  45. package/dist/esm/index.js.map +1 -1
  46. package/dist/esm/styles/index.d.ts +1 -1
  47. package/dist/esm/styles/index.js +7 -0
  48. package/dist/esm/styles/index.js.map +1 -1
  49. package/package.json +8 -4
@@ -37,7 +37,7 @@ export class Component extends HTMLElement {
37
37
  if (optional != undefined)
38
38
  this.setStyle(optional);
39
39
  }
40
- static applyDate(data, element) {
40
+ static applyData(data, element) {
41
41
  if (data != undefined) {
42
42
  // if (data.id) {
43
43
  // (element as any).id = data.id;
@@ -59,10 +59,13 @@ export class Component extends HTMLElement {
59
59
  element.addClasName(data[key]);
60
60
  else if (key == "text" && data[key] != undefined)
61
61
  element.innerHTML = data[key];
62
- else if (element.style?.hasOwnProperty && element.style.hasOwnProperty?.(key))
62
+ else if (element.style.hasOwnProperty(key))
63
63
  element.style[key] = data[key];
64
64
  else if (data[key] != undefined) {
65
- element[key] = data[key];
65
+ try {
66
+ element[key] = data[key];
67
+ }
68
+ catch (__) { }
66
69
  }
67
70
  });
68
71
  }
@@ -102,14 +105,14 @@ customElements.define("component-element", Component);
102
105
  export class DivElement extends HTMLDivElement {
103
106
  constructor(optional) {
104
107
  super();
105
- Component.applyDate(optional, this);
108
+ Component.applyData(optional, this);
106
109
  }
107
110
  }
108
111
  customElements.define("base-div-element", DivElement, { extends: "div" });
109
112
  export class ParagraphElement extends HTMLParagraphElement {
110
113
  constructor(optional) {
111
114
  super();
112
- Component.applyDate(optional, this);
115
+ Component.applyData(optional, this);
113
116
  }
114
117
  }
115
118
  customElements.define("base-p-element", ParagraphElement, { extends: "p" });
@@ -117,7 +120,7 @@ export class AnchorElement extends HTMLAnchorElement {
117
120
  _rlink = "";
118
121
  constructor(optional) {
119
122
  super();
120
- Component.applyDate(optional, this);
123
+ Component.applyData(optional, this);
121
124
  this.addEventListener("click", (event) => {
122
125
  event.preventDefault();
123
126
  if (this._rlink != "") {
@@ -143,7 +146,7 @@ customElements.define("base-a-element", AnchorElement, { extends: "a" });
143
146
  export class AbbreviationElement extends HTMLElement {
144
147
  constructor(optional) {
145
148
  super();
146
- Component.applyDate(optional, this);
149
+ Component.applyData(optional, this);
147
150
  }
148
151
  }
149
152
  customElements.define("base-abbr-element", AbbreviationElement, {
@@ -153,7 +156,7 @@ customElements.define("base-abbr-element", AbbreviationElement, {
153
156
  export class AreaElement extends HTMLAreaElement {
154
157
  constructor(optional) {
155
158
  super();
156
- Component.applyDate(optional, this);
159
+ Component.applyData(optional, this);
157
160
  }
158
161
  }
159
162
  customElements.define("base-area-element", AreaElement, { extends: "area" });
@@ -161,7 +164,7 @@ export class ImageElement extends HTMLImageElement {
161
164
  constructor(optional) {
162
165
  super();
163
166
  this.className = "image-element";
164
- Component.applyDate(optional, this);
167
+ Component.applyData(optional, this);
165
168
  if (optional?.src != undefined)
166
169
  this.src = optional.src;
167
170
  }
@@ -170,21 +173,21 @@ customElements.define("base-img-element", ImageElement, { extends: "img" });
170
173
  export class UListElement extends HTMLUListElement {
171
174
  constructor(optional) {
172
175
  super();
173
- Component.applyDate(optional, this);
176
+ Component.applyData(optional, this);
174
177
  }
175
178
  }
176
179
  customElements.define("base-ul-element", UListElement, { extends: "ul" });
177
180
  export class OrderedListElement extends HTMLOListElement {
178
181
  constructor(optional) {
179
182
  super();
180
- Component.applyDate(optional, this);
183
+ Component.applyData(optional, this);
181
184
  }
182
185
  }
183
186
  customElements.define("base-ol-element", OrderedListElement, { extends: "ol" });
184
187
  export class ListItemElement extends HTMLLIElement {
185
188
  constructor(optional) {
186
189
  super();
187
- Component.applyDate(optional, this);
190
+ Component.applyData(optional, this);
188
191
  }
189
192
  onSelect() { }
190
193
  }
@@ -192,7 +195,7 @@ customElements.define("base-li-element", ListItemElement, { extends: "li" });
192
195
  export class MainElement extends HTMLElement {
193
196
  constructor(optional) {
194
197
  super();
195
- Component.applyDate(optional, this);
198
+ Component.applyData(optional, this);
196
199
  }
197
200
  }
198
201
  customElements.define("base-main-element", MainElement, { extends: "main" });
@@ -203,14 +206,14 @@ customElements.define("base-main-element", MainElement, { extends: "main" });
203
206
  export class SpanElement extends HTMLSpanElement {
204
207
  constructor(optional) {
205
208
  super();
206
- Component.applyDate(optional, this);
209
+ Component.applyData(optional, this);
207
210
  }
208
211
  }
209
212
  customElements.define("base-span-element", SpanElement, { extends: "span" });
210
213
  export class StrongElement extends HTMLSpanElement {
211
214
  constructor(optional) {
212
215
  super();
213
- Component.applyDate(optional, this);
216
+ Component.applyData(optional, this);
214
217
  }
215
218
  }
216
219
  customElements.define("base-strong-element", StrongElement, {
@@ -219,28 +222,28 @@ customElements.define("base-strong-element", StrongElement, {
219
222
  export class EmElement extends HTMLEmbedElement {
220
223
  constructor(optional) {
221
224
  super();
222
- Component.applyDate(optional, this);
225
+ Component.applyData(optional, this);
223
226
  }
224
227
  }
225
228
  customElements.define("base-em-element", EmElement, { extends: "em" });
226
229
  export class BreakElement extends HTMLBRElement {
227
230
  constructor(optional) {
228
231
  super();
229
- Component.applyDate(optional, this);
232
+ Component.applyData(optional, this);
230
233
  }
231
234
  }
232
235
  customElements.define("base-br-element", BreakElement, { extends: "br" });
233
236
  export class TableHeadElement extends HTMLTableSectionElement {
234
237
  constructor(optional) {
235
238
  super();
236
- Component.applyDate(optional, this);
239
+ Component.applyData(optional, this);
237
240
  }
238
241
  }
239
242
  customElements.define("base-thead-element", TableHeadElement, { extends: "thead" });
240
243
  export class TableBodyElement extends HTMLTableSectionElement {
241
244
  constructor(optional) {
242
245
  super();
243
- Component.applyDate(optional, this);
246
+ Component.applyData(optional, this);
244
247
  }
245
248
  }
246
249
  customElements.define("base-tbody-element", TableBodyElement, { extends: "tbody" });
@@ -254,14 +257,14 @@ export class TableHeadCellElement extends HTMLTableCellElement {
254
257
  if (optional?.child)
255
258
  this.appendChild(optional.child);
256
259
  delete optional?.child;
257
- Component.applyDate(optional, this);
260
+ Component.applyData(optional, this);
258
261
  }
259
262
  }
260
263
  customElements.define("base-th-cell-element", TableHeadCellElement, { extends: "th" });
261
264
  export class TableFootElement extends HTMLTableSectionElement {
262
265
  constructor(optional) {
263
266
  super();
264
- Component.applyDate(optional, this);
267
+ Component.applyData(optional, this);
265
268
  }
266
269
  }
267
270
  customElements.define("base-tfoot-element", TableFootElement, { extends: "tfoot" });
@@ -271,7 +274,7 @@ export class TableElement extends HTMLTableElement {
271
274
  _foot = undefined;
272
275
  constructor(optional) {
273
276
  super();
274
- Component.applyDate(optional, this);
277
+ Component.applyData(optional, this);
275
278
  }
276
279
  addHeadRows(...rows) {
277
280
  if (this._head == undefined)
@@ -354,7 +357,7 @@ export class TableFootRowElement extends HTMLTableRowElement {
354
357
  this.addCells(...optional.cells);
355
358
  }
356
359
  delete optional?.cells;
357
- Component.applyDate(optional, this);
360
+ Component.applyData(optional, this);
358
361
  }
359
362
  addCells(...cells) {
360
363
  cells.forEach((cell) => {
@@ -374,7 +377,7 @@ export class TableHeadRowElement extends HTMLTableRowElement {
374
377
  this.addCells(...optional.cells);
375
378
  }
376
379
  delete optional?.cells;
377
- Component.applyDate(optional, this);
380
+ Component.applyData(optional, this);
378
381
  }
379
382
  addCells(...cells) {
380
383
  cells.forEach((cell) => {
@@ -394,7 +397,7 @@ export class TableRowElement extends HTMLTableRowElement {
394
397
  this.addCells(...optional.cells);
395
398
  }
396
399
  delete optional?.cells;
397
- Component.applyDate(optional, this);
400
+ Component.applyData(optional, this);
398
401
  }
399
402
  addCells(...cells) {
400
403
  cells.forEach((cell) => {
@@ -417,16 +420,23 @@ export class TableCellElement extends HTMLTableCellElement {
417
420
  if (optional?.child)
418
421
  this.appendChild(optional.child);
419
422
  delete optional?.child;
420
- Component.applyDate(optional, this);
423
+ Component.applyData(optional, this);
421
424
  }
422
425
  }
423
426
  customElements.define("base-td-element", TableCellElement, { extends: "td" });
427
+ export class PreElement extends HTMLPreElement {
428
+ constructor(optional) {
429
+ super();
430
+ Component.applyData(optional, this);
431
+ }
432
+ }
433
+ customElements.define("base-pre-element", PreElement, { extends: "pre" });
424
434
  export class InputElement extends HTMLInputElement {
425
435
  constructor(optional) {
426
436
  super();
427
437
  const v = optional?.value;
428
438
  delete optional?.value;
429
- Component.applyDate(optional, this);
439
+ Component.applyData(optional, this);
430
440
  if (v) {
431
441
  if (typeof v == "string")
432
442
  this.value = v;
@@ -446,7 +456,7 @@ export class ButtonElement extends HTMLButtonElement {
446
456
  super();
447
457
  const type = optional?.type;
448
458
  delete optional?.type;
449
- Component.applyDate(optional, this);
459
+ Component.applyData(optional, this);
450
460
  if (type)
451
461
  this.type = type;
452
462
  if (optional?.accept)
@@ -466,7 +476,7 @@ customElements.define("base-button-element", ButtonElement, {
466
476
  export class TextAreaElement extends HTMLTextAreaElement {
467
477
  constructor(optional) {
468
478
  super();
469
- Component.applyDate(optional, this);
479
+ Component.applyData(optional, this);
470
480
  }
471
481
  }
472
482
  customElements.define("base-textarea-element", TextAreaElement, {
@@ -475,14 +485,14 @@ customElements.define("base-textarea-element", TextAreaElement, {
475
485
  export class LabelElement extends HTMLLabelElement {
476
486
  constructor(optional) {
477
487
  super();
478
- Component.applyDate(optional, this);
488
+ Component.applyData(optional, this);
479
489
  }
480
490
  }
481
491
  customElements.define("base-label-element", LabelElement, { extends: "label" });
482
492
  export class SelectElement extends HTMLSelectElement {
483
493
  constructor(optional) {
484
494
  super();
485
- Component.applyDate(optional, this);
495
+ Component.applyData(optional, this);
486
496
  }
487
497
  }
488
498
  customElements.define("base-select-element", SelectElement, {
@@ -491,14 +501,14 @@ customElements.define("base-select-element", SelectElement, {
491
501
  export class AudioElement extends HTMLAudioElement {
492
502
  constructor(optional) {
493
503
  super();
494
- Component.applyDate(optional, this);
504
+ Component.applyData(optional, this);
495
505
  }
496
506
  }
497
507
  customElements.define("base-audio-element", AudioElement, { extends: "audio" });
498
508
  export class BoldElement extends HTMLElement {
499
509
  constructor(optional) {
500
510
  super();
501
- Component.applyDate(optional, this);
511
+ Component.applyData(optional, this);
502
512
  }
503
513
  }
504
514
  customElements.define("base-b-element", BoldElement, { extends: "b" });
@@ -506,7 +516,7 @@ customElements.define("base-b-element", BoldElement, { extends: "b" });
506
516
  export class BaseElement extends HTMLElement {
507
517
  constructor(optional) {
508
518
  super();
509
- Component.applyDate(optional, this);
519
+ Component.applyData(optional, this);
510
520
  }
511
521
  }
512
522
  customElements.define("base-base-element", BaseElement, { extends: "base" });
@@ -514,7 +524,7 @@ customElements.define("base-base-element", BaseElement, { extends: "base" });
514
524
  export class BodyElement extends HTMLBodyElement {
515
525
  constructor(optional) {
516
526
  super();
517
- Component.applyDate(optional, this);
527
+ Component.applyData(optional, this);
518
528
  }
519
529
  }
520
530
  customElements.define("base-body-element", BodyElement, { extends: "body" });
@@ -522,7 +532,7 @@ customElements.define("base-body-element", BodyElement, { extends: "body" });
522
532
  export class VideoElement extends HTMLVideoElement {
523
533
  constructor(optional) {
524
534
  super();
525
- Component.applyDate(optional, this);
535
+ Component.applyData(optional, this);
526
536
  }
527
537
  }
528
538
  customElements.define("base-video-element", VideoElement, { extends: "video" });
@@ -533,7 +543,7 @@ export class CanvasElement extends HTMLCanvasElement {
533
543
  this.width = optional.width;
534
544
  if (optional?.height)
535
545
  this.height = optional.height;
536
- Component.applyDate(optional, this);
546
+ Component.applyData(optional, this);
537
547
  }
538
548
  }
539
549
  customElements.define("base-canvas-element", CanvasElement, {
@@ -543,7 +553,7 @@ customElements.define("base-canvas-element", CanvasElement, {
543
553
  export class CaptionElement extends HTMLTableCaptionElement {
544
554
  constructor(optional) {
545
555
  super();
546
- Component.applyDate(optional, this);
556
+ Component.applyData(optional, this);
547
557
  }
548
558
  }
549
559
  customElements.define("base-caption-element", CaptionElement, {
@@ -553,7 +563,7 @@ customElements.define("base-caption-element", CaptionElement, {
553
563
  export class CiteElement extends HTMLElement {
554
564
  constructor(optional) {
555
565
  super();
556
- Component.applyDate(optional, this);
566
+ Component.applyData(optional, this);
557
567
  }
558
568
  }
559
569
  customElements.define("base-cite-element", CiteElement, { extends: "cite" });
@@ -561,7 +571,9 @@ customElements.define("base-cite-element", CiteElement, { extends: "cite" });
561
571
  export class CodeElement extends HTMLElement {
562
572
  constructor(optional) {
563
573
  super();
564
- Component.applyDate(optional, this);
574
+ Component.applyData(optional, this);
575
+ if (optional.contentEditable != undefined)
576
+ this.contentEditable = optional.contentEditable.toString();
565
577
  }
566
578
  }
567
579
  customElements.define("base-code-element", CodeElement, { extends: "code" });
@@ -571,7 +583,7 @@ export class TableColElement extends HTMLTableColElement {
571
583
  super();
572
584
  if (optional?.span)
573
585
  this.span = optional.span;
574
- Component.applyDate(optional, this);
586
+ Component.applyData(optional, this);
575
587
  }
576
588
  }
577
589
  customElements.define("base-col-element", TableColElement, { extends: "col" });
@@ -581,7 +593,7 @@ export class TableColGroupElement extends HTMLTableColElement {
581
593
  super();
582
594
  if (optional?.span)
583
595
  this.span = optional.span;
584
- Component.applyDate(optional, this);
596
+ Component.applyData(optional, this);
585
597
  }
586
598
  }
587
599
  customElements.define("base-colgroup-element", TableColGroupElement, {
@@ -591,7 +603,7 @@ customElements.define("base-colgroup-element", TableColGroupElement, {
591
603
  export class DataListElement extends HTMLDataListElement {
592
604
  constructor(optional) {
593
605
  super();
594
- Component.applyDate(optional, this);
606
+ Component.applyData(optional, this);
595
607
  }
596
608
  }
597
609
  customElements.define("base-datalist-element", DataListElement, {
@@ -601,7 +613,7 @@ customElements.define("base-datalist-element", DataListElement, {
601
613
  export class DefinitionDescriptionElement extends HTMLElement {
602
614
  constructor(optional) {
603
615
  super();
604
- Component.applyDate(optional, this);
616
+ Component.applyData(optional, this);
605
617
  }
606
618
  }
607
619
  customElements.define("base-dd-element", DefinitionDescriptionElement, {
@@ -613,7 +625,7 @@ export class DeletedTextElement extends HTMLModElement {
613
625
  super();
614
626
  if (optional?.cite)
615
627
  this.cite = optional.cite;
616
- Component.applyDate(optional, this);
628
+ Component.applyData(optional, this);
617
629
  }
618
630
  }
619
631
  customElements.define("base-del-element", DeletedTextElement, {
@@ -623,7 +635,7 @@ customElements.define("base-del-element", DeletedTextElement, {
623
635
  export class DetailsElement extends HTMLDetailsElement {
624
636
  constructor(optional) {
625
637
  super();
626
- Component.applyDate(optional, this);
638
+ Component.applyData(optional, this);
627
639
  if (optional?.open)
628
640
  this.open = optional.open;
629
641
  if (optional?.summary) {
@@ -648,7 +660,7 @@ customElements.define("base-details-element", DetailsElement, {
648
660
  export class DefinitionElement extends HTMLElement {
649
661
  constructor(optional) {
650
662
  super();
651
- Component.applyDate(optional, this);
663
+ Component.applyData(optional, this);
652
664
  }
653
665
  }
654
666
  customElements.define("base-dfn-element", DefinitionElement, {
@@ -658,7 +670,7 @@ customElements.define("base-dfn-element", DefinitionElement, {
658
670
  export class DialogElement extends HTMLDialogElement {
659
671
  constructor(optional) {
660
672
  super();
661
- Component.applyDate(optional, this);
673
+ Component.applyData(optional, this);
662
674
  this.open = optional.open == undefined ? true : optional.open;
663
675
  }
664
676
  }
@@ -677,7 +689,7 @@ export class EmbedElement extends HTMLEmbedElement {
677
689
  this.type = optional.type;
678
690
  if (optional?.width)
679
691
  this.width = optional.width;
680
- Component.applyDate(optional, this);
692
+ Component.applyData(optional, this);
681
693
  }
682
694
  }
683
695
  customElements.define("base-embed-element", EmbedElement, { extends: "embed" });
@@ -685,7 +697,7 @@ customElements.define("base-embed-element", EmbedElement, { extends: "embed" });
685
697
  export class FieldSetElement extends HTMLFieldSetElement {
686
698
  constructor(optional) {
687
699
  super();
688
- Component.applyDate(optional, this);
700
+ Component.applyData(optional, this);
689
701
  if (optional?.disabled)
690
702
  this.disabled = optional.disabled;
691
703
  if (optional?.name)
@@ -712,7 +724,7 @@ customElements.define("base-fieldset-element", FieldSetElement, {
712
724
  export class FooterElement extends HTMLElement {
713
725
  constructor(optional) {
714
726
  super();
715
- Component.applyDate(optional, this);
727
+ Component.applyData(optional, this);
716
728
  }
717
729
  }
718
730
  customElements.define("base-footer-element", FooterElement, {
@@ -721,14 +733,14 @@ customElements.define("base-footer-element", FooterElement, {
721
733
  export class FormElement extends HTMLFormElement {
722
734
  constructor(optional) {
723
735
  super();
724
- Component.applyDate(optional, this);
736
+ Component.applyData(optional, this);
725
737
  }
726
738
  }
727
739
  customElements.define("base-form-element", FormElement, { extends: "form" });
728
740
  export class H1Element extends HTMLHeadingElement {
729
741
  constructor(optional) {
730
742
  super();
731
- Component.applyDate(optional, this);
743
+ Component.applyData(optional, this);
732
744
  if (optional?.text)
733
745
  this.innerText = optional.text.toString();
734
746
  }
@@ -737,7 +749,7 @@ customElements.define("base-h1-element", H1Element, { extends: "h1" });
737
749
  export class H2Element extends HTMLHeadingElement {
738
750
  constructor(optional) {
739
751
  super();
740
- Component.applyDate(optional, this);
752
+ Component.applyData(optional, this);
741
753
  if (optional?.text)
742
754
  this.innerText = optional.text.toString();
743
755
  }
@@ -746,7 +758,7 @@ customElements.define("base-h2-element", H2Element, { extends: "h2" });
746
758
  export class H3Element extends HTMLHeadingElement {
747
759
  constructor(optional) {
748
760
  super();
749
- Component.applyDate(optional, this);
761
+ Component.applyData(optional, this);
750
762
  if (optional?.text)
751
763
  this.text = optional.text;
752
764
  }
@@ -764,7 +776,7 @@ customElements.define("base-h3-element", H3Element, { extends: "h3" });
764
776
  export class H4Element extends H3Element {
765
777
  constructor(optional) {
766
778
  super();
767
- Component.applyDate(optional, this);
779
+ Component.applyData(optional, this);
768
780
  if (optional?.text)
769
781
  this.innerText = optional.text.toString();
770
782
  }
@@ -777,7 +789,7 @@ customElements.define("base-h4-element", H4Element, { extends: "h4" });
777
789
  export class H5Element extends H3Element {
778
790
  constructor(optional) {
779
791
  super();
780
- Component.applyDate(optional, this);
792
+ Component.applyData(optional, this);
781
793
  if (optional?.text)
782
794
  this.innerText = optional.text.toString();
783
795
  }
@@ -790,7 +802,7 @@ customElements.define("base-h5-element", H5Element, { extends: "h5" });
790
802
  export class H6Element extends H3Element {
791
803
  constructor(optional) {
792
804
  super();
793
- Component.applyDate(optional, this);
805
+ Component.applyData(optional, this);
794
806
  if (optional?.text)
795
807
  this.innerText = optional.text.toString();
796
808
  }
@@ -804,7 +816,7 @@ customElements.define("base-h6-element", H6Element, { extends: "h6" });
804
816
  export class HeadElement extends HTMLHeadElement {
805
817
  constructor(optional) {
806
818
  super();
807
- Component.applyDate(optional, this);
819
+ Component.applyData(optional, this);
808
820
  }
809
821
  }
810
822
  customElements.define("base-head-element", HeadElement, { extends: "head" });
@@ -812,7 +824,7 @@ customElements.define("base-head-element", HeadElement, { extends: "head" });
812
824
  export class HeaderElement extends HTMLElement {
813
825
  constructor(optional) {
814
826
  super();
815
- Component.applyDate(optional, this);
827
+ Component.applyData(optional, this);
816
828
  }
817
829
  }
818
830
  customElements.define("base-header-element", HeaderElement, {
@@ -822,7 +834,7 @@ customElements.define("base-header-element", HeaderElement, {
822
834
  export class HorizontalRuleElement extends HTMLHRElement {
823
835
  constructor(optional) {
824
836
  super();
825
- Component.applyDate(optional, this);
837
+ Component.applyData(optional, this);
826
838
  }
827
839
  }
828
840
  customElements.define("base-hr-element", HorizontalRuleElement, {
@@ -834,7 +846,7 @@ export class HtmlElement extends HTMLHtmlElement {
834
846
  super();
835
847
  if (optional?.manifest)
836
848
  this.manifest = optional.manifest;
837
- Component.applyDate(optional, this);
849
+ Component.applyData(optional, this);
838
850
  }
839
851
  set manifest(value) {
840
852
  this.setAttribute("manifest", value);
@@ -872,7 +884,7 @@ export class IFrameElement extends HTMLIFrameElement {
872
884
  this.srcdoc = optional.srcdoc;
873
885
  if (optional?.width)
874
886
  this.width = optional.width;
875
- Component.applyDate(optional, this);
887
+ Component.applyData(optional, this);
876
888
  }
877
889
  set allowfullscreen(value) {
878
890
  this.setAttribute("allowfullscreen", value.toString());
@@ -912,7 +924,7 @@ customElements.define("base-iframe-element", IFrameElement, {
912
924
  export class LegendElement extends HTMLLegendElement {
913
925
  constructor(optional) {
914
926
  super();
915
- Component.applyDate(optional, this);
927
+ Component.applyData(optional, this);
916
928
  if (optional?.value)
917
929
  this.innerHTML = optional.value;
918
930
  }
@@ -923,7 +935,7 @@ customElements.define("base-legend-element", LegendElement, {
923
935
  export class SvgElement extends HTMLObjectElement {
924
936
  constructor(optional) {
925
937
  super();
926
- Component.applyDate(optional, this);
938
+ Component.applyData(optional, this);
927
939
  if (optional?.width)
928
940
  this.width = optional.width;
929
941
  if (optional?.height)
@@ -958,14 +970,14 @@ customElements.define("base-svg-element", SvgElement, { extends: "object" });
958
970
  export class NavElement extends HTMLElement {
959
971
  constructor(optional) {
960
972
  super();
961
- Component.applyDate(optional, this);
973
+ Component.applyData(optional, this);
962
974
  }
963
975
  }
964
976
  customElements.define("base-nav-element", NavElement, { extends: "nav" });
965
977
  export class SectionElement extends HTMLElement {
966
978
  constructor(optional) {
967
979
  super();
968
- Component.applyDate(optional, this);
980
+ Component.applyData(optional, this);
969
981
  }
970
982
  }
971
983
  customElements.define("base-section-element", SectionElement, {
@@ -974,7 +986,7 @@ customElements.define("base-section-element", SectionElement, {
974
986
  export class ArticleElement extends HTMLElement {
975
987
  constructor(optional) {
976
988
  super();
977
- Component.applyDate(optional, this);
989
+ Component.applyData(optional, this);
978
990
  }
979
991
  }
980
992
  customElements.define("base-article-element", ArticleElement, {
@@ -983,7 +995,7 @@ customElements.define("base-article-element", ArticleElement, {
983
995
  export class SummaryElement extends HTMLElement {
984
996
  constructor(optional) {
985
997
  super();
986
- Component.applyDate(optional, this);
998
+ Component.applyData(optional, this);
987
999
  }
988
1000
  }
989
1001
  customElements.define("base-summary-element", SummaryElement, {