typecomposer 0.0.31 → 0.0.32

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