typecomposer 0.0.9 → 0.0.12

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 (85) hide show
  1. package/dist/cjs/core/element/action/ChartPane.d.ts +4 -0
  2. package/dist/cjs/core/element/action/ChartPane.js +4 -0
  3. package/dist/cjs/core/element/action/ChartPane.js.map +1 -1
  4. package/dist/cjs/core/element/base/CSSStyle.d.ts +2342 -2342
  5. package/dist/cjs/core/element/base/CSSStyle.js +969 -970
  6. package/dist/cjs/core/element/base/CSSStyle.js.map +1 -1
  7. package/dist/cjs/core/element/base/Elements.d.ts +121 -121
  8. package/dist/cjs/core/element/base/Elements.js +118 -119
  9. package/dist/cjs/core/element/base/Elements.js.map +1 -1
  10. package/dist/cjs/core/element/image/IconElement.d.ts +4 -5
  11. package/dist/cjs/core/element/image/IconElement.js +4 -5
  12. package/dist/cjs/core/element/image/IconElement.js.map +1 -1
  13. package/dist/cjs/core/element/layers/CardElement.d.ts +2 -2
  14. package/dist/cjs/core/element/layers/PaneElement.d.ts +2 -2
  15. package/dist/cjs/core/element/text/TextFieldElement.js.map +1 -1
  16. package/dist/cjs/core/ref/Ref.d.ts +21 -17
  17. package/dist/cjs/core/ref/Ref.js +51 -44
  18. package/dist/cjs/core/ref/Ref.js.map +1 -1
  19. package/dist/cjs/core/ref/RefComponent.js +1 -1
  20. package/dist/cjs/core/ref/index.d.ts +1 -1
  21. package/dist/cjs/core/ref/index.js +2 -2
  22. package/dist/cjs/core/router/Router.d.ts +9 -3
  23. package/dist/cjs/core/router/Router.js +39 -17
  24. package/dist/cjs/core/router/Router.js.map +1 -1
  25. package/dist/cjs/core/router/RouterEvent.d.ts +36 -0
  26. package/dist/cjs/core/router/RouterEvent.js +47 -0
  27. package/dist/cjs/core/router/RouterEvent.js.map +1 -0
  28. package/dist/cjs/core/router/RouterGuard.d.ts +5 -0
  29. package/dist/cjs/core/router/RouterGuard.js +14 -0
  30. package/dist/cjs/core/router/RouterGuard.js.map +1 -0
  31. package/dist/cjs/global/global.d.ts +10 -0
  32. package/dist/cjs/global/global.js +14 -0
  33. package/dist/cjs/global/global.js.map +1 -0
  34. package/dist/cjs/global/index.d.ts +1 -0
  35. package/dist/cjs/global/index.js +4 -0
  36. package/dist/cjs/global/index.js.map +1 -0
  37. package/dist/cjs/index.d.ts +1 -0
  38. package/dist/cjs/index.js +1 -0
  39. package/dist/cjs/index.js.map +1 -1
  40. package/dist/esm/core/element/action/ChartPane.d.ts +4 -0
  41. package/dist/esm/core/element/action/ChartPane.js +4 -0
  42. package/dist/esm/core/element/action/ChartPane.js.map +1 -1
  43. package/dist/esm/core/element/base/CSSStyle.d.ts +2342 -2342
  44. package/dist/esm/core/element/base/CSSStyle.js +967 -968
  45. package/dist/esm/core/element/base/CSSStyle.js.map +1 -1
  46. package/dist/esm/core/element/base/Elements.d.ts +121 -121
  47. package/dist/esm/core/element/base/Elements.js +119 -120
  48. package/dist/esm/core/element/base/Elements.js.map +1 -1
  49. package/dist/esm/core/element/image/IconElement.d.ts +4 -5
  50. package/dist/esm/core/element/image/IconElement.js +4 -5
  51. package/dist/esm/core/element/image/IconElement.js.map +1 -1
  52. package/dist/esm/core/element/layers/CardElement.d.ts +2 -2
  53. package/dist/esm/core/element/layers/PaneElement.d.ts +2 -2
  54. package/dist/esm/core/element/text/TextFieldElement.js.map +1 -1
  55. package/dist/esm/core/ref/Ref.d.ts +21 -17
  56. package/dist/esm/core/ref/Ref.js +49 -42
  57. package/dist/esm/core/ref/Ref.js.map +1 -1
  58. package/dist/esm/core/ref/RefComponent.js +1 -1
  59. package/dist/esm/core/ref/index.d.ts +1 -1
  60. package/dist/esm/core/ref/index.js +1 -1
  61. package/dist/esm/core/router/Router.d.ts +9 -3
  62. package/dist/esm/core/router/Router.js +39 -17
  63. package/dist/esm/core/router/Router.js.map +1 -1
  64. package/dist/esm/core/router/RouterEvent.d.ts +36 -0
  65. package/dist/esm/core/router/RouterEvent.js +43 -0
  66. package/dist/esm/core/router/RouterEvent.js.map +1 -0
  67. package/dist/esm/core/router/RouterGuard.d.ts +5 -0
  68. package/dist/esm/core/router/RouterGuard.js +10 -0
  69. package/dist/esm/core/router/RouterGuard.js.map +1 -0
  70. package/dist/esm/global/global.d.ts +10 -0
  71. package/dist/esm/global/global.js +13 -0
  72. package/dist/esm/global/global.js.map +1 -0
  73. package/dist/esm/global/index.d.ts +1 -0
  74. package/dist/esm/global/index.js +2 -0
  75. package/dist/esm/global/index.js.map +1 -0
  76. package/dist/esm/index.d.ts +1 -0
  77. package/dist/esm/index.js +1 -0
  78. package/dist/esm/index.js.map +1 -1
  79. package/package.json +1 -1
  80. package/dist/cjs/core/router/Router2.d.ts +0 -8
  81. package/dist/cjs/core/router/Router2.js +0 -150
  82. package/dist/cjs/core/router/Router2.js.map +0 -1
  83. package/dist/esm/core/router/Router2.d.ts +0 -8
  84. package/dist/esm/core/router/Router2.js +0 -147
  85. package/dist/esm/core/router/Router2.js.map +0 -1
@@ -1,6 +1,5 @@
1
1
  import { Router } from "../..";
2
- import { Ref } from "../../ref";
3
- import { CSSStyleRef, } from "./CSSStyle";
2
+ import { CSSStyleref, } from "./CSSStyle";
4
3
  import { EventComponent } from "./Event";
5
4
  // 1. `<div>` - Para criar blocos de conteúdo genéricos.
6
5
  // 2. `<p>` - Para parágrafos de texto.
@@ -33,7 +32,7 @@ import { EventComponent } from "./Event";
33
32
  // 29. `<footer>`, `<header>`, `<nav>`, `<main>`, `<section>`, `<article>` - Elementos semânticos de HTML5 para estruturação de página.
34
33
  // 30. `<details>` e `<summary>` - Elementos de HTML5 para criar conteúdo expansível.
35
34
  export class Component extends HTMLElement {
36
- _styleRef = new CSSStyleRef(super.style);
35
+ _styleref = new CSSStyleref(super.style);
37
36
  constructor(optional) {
38
37
  super();
39
38
  if (optional != undefined)
@@ -55,7 +54,7 @@ export class Component extends HTMLElement {
55
54
  // @ts-ignore
56
55
  get style() {
57
56
  // @ts-ignore
58
- return this._styleRef;
57
+ return this._styleref;
59
58
  }
60
59
  static applyDate(data, element) {
61
60
  if (data != undefined) {
@@ -125,7 +124,7 @@ export class Component extends HTMLElement {
125
124
  // @ts-ignore
126
125
  customElements.define("component-element", Component);
127
126
  export class DivElement extends HTMLDivElement {
128
- _styleRef = new CSSStyleRef(super.style);
127
+ _styleref = new CSSStyleref(super.style);
129
128
  Test = "teste";
130
129
  constructor(optional) {
131
130
  super();
@@ -147,13 +146,13 @@ export class DivElement extends HTMLDivElement {
147
146
  // @ts-ignore
148
147
  get style() {
149
148
  // @ts-ignore
150
- return this._styleRef;
149
+ return this._styleref;
151
150
  }
152
151
  }
153
152
  // @ts-ignore
154
153
  customElements.define("base-div-element", DivElement, { extends: "div" });
155
154
  export class ParagraphElement extends HTMLParagraphElement {
156
- _styleRef = new CSSStyleRef(super.style);
155
+ _styleref = new CSSStyleref(super.style);
157
156
  constructor(optional) {
158
157
  super();
159
158
  Component.applyDate(optional, this);
@@ -165,13 +164,13 @@ export class ParagraphElement extends HTMLParagraphElement {
165
164
  // @ts-ignore
166
165
  get style() {
167
166
  // @ts-ignore
168
- return this._styleRef;
167
+ return this._styleref;
169
168
  }
170
169
  }
171
170
  // @ts-ignore
172
171
  customElements.define("base-p-element", ParagraphElement, { extends: "p" });
173
172
  export class AnchorElement extends HTMLAnchorElement {
174
- _styleRef = new CSSStyleRef(super.style);
173
+ _styleref = new CSSStyleref(super.style);
175
174
  _rlink = "";
176
175
  constructor(optional) {
177
176
  super();
@@ -196,7 +195,7 @@ export class AnchorElement extends HTMLAnchorElement {
196
195
  // @ts-ignore
197
196
  get style() {
198
197
  // @ts-ignore
199
- return this._styleRef;
198
+ return this._styleref;
200
199
  }
201
200
  set rlink(link) {
202
201
  this.href = link;
@@ -209,7 +208,7 @@ export class AnchorElement extends HTMLAnchorElement {
209
208
  // @ts-ignore
210
209
  customElements.define("base-a-element", AnchorElement, { extends: "a" });
211
210
  export class AbbreviationElement extends HTMLElement {
212
- _styleRef = new CSSStyleRef(super.style);
211
+ _styleref = new CSSStyleref(super.style);
213
212
  constructor(optional) {
214
213
  super();
215
214
  Component.applyDate(optional, this);
@@ -221,7 +220,7 @@ export class AbbreviationElement extends HTMLElement {
221
220
  // @ts-ignore
222
221
  get style() {
223
222
  // @ts-ignore
224
- return this._styleRef;
223
+ return this._styleref;
225
224
  }
226
225
  }
227
226
  // @ts-ignore
@@ -230,7 +229,7 @@ customElements.define("base-abbr-element", AbbreviationElement, {
230
229
  });
231
230
  // area
232
231
  export class AreaElement extends HTMLAreaElement {
233
- _styleRef = new CSSStyleRef(super.style);
232
+ _styleref = new CSSStyleref(super.style);
234
233
  constructor(optional) {
235
234
  super();
236
235
  Component.applyDate(optional, this);
@@ -242,13 +241,13 @@ export class AreaElement extends HTMLAreaElement {
242
241
  // @ts-ignore
243
242
  get style() {
244
243
  // @ts-ignore
245
- return this._styleRef;
244
+ return this._styleref;
246
245
  }
247
246
  }
248
247
  // @ts-ignore
249
248
  customElements.define("base-area-element", AreaElement, { extends: "area" });
250
249
  export class ImageElement extends HTMLImageElement {
251
- _styleRef = new CSSStyleRef(super.style);
250
+ _styleref = new CSSStyleref(super.style);
252
251
  constructor(optional) {
253
252
  super();
254
253
  this.className = "image-element";
@@ -263,13 +262,13 @@ export class ImageElement extends HTMLImageElement {
263
262
  // @ts-ignore
264
263
  get style() {
265
264
  // @ts-ignore
266
- return this._styleRef;
265
+ return this._styleref;
267
266
  }
268
267
  }
269
268
  // @ts-ignore
270
269
  customElements.define("base-img-element", ImageElement, { extends: "img" });
271
270
  export class UListElement extends HTMLUListElement {
272
- _styleRef = new CSSStyleRef(super.style);
271
+ _styleref = new CSSStyleref(super.style);
273
272
  constructor(optional) {
274
273
  super();
275
274
  Component.applyDate(optional, this);
@@ -281,13 +280,13 @@ export class UListElement extends HTMLUListElement {
281
280
  // @ts-ignore
282
281
  get style() {
283
282
  // @ts-ignore
284
- return this._styleRef;
283
+ return this._styleref;
285
284
  }
286
285
  }
287
286
  // @ts-ignore
288
287
  customElements.define("base-ul-element", UListElement, { extends: "ul" });
289
288
  export class OrderedListElement extends HTMLOListElement {
290
- _styleRef = new CSSStyleRef(super.style);
289
+ _styleref = new CSSStyleref(super.style);
291
290
  constructor(optional) {
292
291
  super();
293
292
  Component.applyDate(optional, this);
@@ -299,13 +298,13 @@ export class OrderedListElement extends HTMLOListElement {
299
298
  // @ts-ignore
300
299
  get style() {
301
300
  // @ts-ignore
302
- return this._styleRef;
301
+ return this._styleref;
303
302
  }
304
303
  }
305
304
  // @ts-ignore
306
305
  customElements.define("base-ol-element", OrderedListElement, { extends: "ol" });
307
306
  export class ListItemElement extends HTMLLIElement {
308
- _styleRef = new CSSStyleRef(super.style);
307
+ _styleref = new CSSStyleref(super.style);
309
308
  constructor(optional) {
310
309
  super();
311
310
  Component.applyDate(optional, this);
@@ -317,13 +316,13 @@ export class ListItemElement extends HTMLLIElement {
317
316
  // @ts-ignore
318
317
  get style() {
319
318
  // @ts-ignore
320
- return this._styleRef;
319
+ return this._styleref;
321
320
  }
322
321
  }
323
322
  // @ts-ignore
324
323
  customElements.define("base-li-element", ListItemElement, { extends: "li" });
325
324
  export class MainElement extends HTMLElement {
326
- _styleRef = new CSSStyleRef(super.style);
325
+ _styleref = new CSSStyleref(super.style);
327
326
  constructor(optional) {
328
327
  super();
329
328
  Component.applyDate(optional, this);
@@ -335,17 +334,17 @@ export class MainElement extends HTMLElement {
335
334
  // @ts-ignore
336
335
  get style() {
337
336
  // @ts-ignore
338
- return this._styleRef;
337
+ return this._styleref;
339
338
  }
340
339
  }
341
340
  // @ts-ignore
342
341
  customElements.define("base-main-element", MainElement, { extends: "main" });
343
342
  // export interface DataHeadingElement extends StyleOptional {
344
- // text?: string | Ref<string>;
343
+ // text?: string | ref<string>;
345
344
  // for?: string;
346
345
  // }
347
346
  export class SpanElement extends HTMLSpanElement {
348
- _styleRef = new CSSStyleRef(super.style);
347
+ _styleref = new CSSStyleref(super.style);
349
348
  constructor(optional) {
350
349
  super();
351
350
  Component.applyDate(optional, this);
@@ -357,13 +356,13 @@ export class SpanElement extends HTMLSpanElement {
357
356
  // @ts-ignore
358
357
  get style() {
359
358
  // @ts-ignore
360
- return this._styleRef;
359
+ return this._styleref;
361
360
  }
362
361
  }
363
362
  // @ts-ignore
364
363
  customElements.define("base-span-element", SpanElement, { extends: "span" });
365
364
  export class StrongElement extends HTMLSpanElement {
366
- _styleRef = new CSSStyleRef(super.style);
365
+ _styleref = new CSSStyleref(super.style);
367
366
  constructor(optional) {
368
367
  super();
369
368
  Component.applyDate(optional, this);
@@ -375,7 +374,7 @@ export class StrongElement extends HTMLSpanElement {
375
374
  // @ts-ignore
376
375
  get style() {
377
376
  // @ts-ignore
378
- return this._styleRef;
377
+ return this._styleref;
379
378
  }
380
379
  }
381
380
  // @ts-ignore
@@ -383,7 +382,7 @@ customElements.define("base-strong-element", StrongElement, {
383
382
  extends: "strong",
384
383
  });
385
384
  export class EmElement extends HTMLEmbedElement {
386
- _styleRef = new CSSStyleRef(super.style);
385
+ _styleref = new CSSStyleref(super.style);
387
386
  constructor(optional) {
388
387
  super();
389
388
  Component.applyDate(optional, this);
@@ -395,13 +394,13 @@ export class EmElement extends HTMLEmbedElement {
395
394
  // @ts-ignore
396
395
  get style() {
397
396
  // @ts-ignore
398
- return this._styleRef;
397
+ return this._styleref;
399
398
  }
400
399
  }
401
400
  // @ts-ignore
402
401
  customElements.define("base-em-element", EmElement, { extends: "em" });
403
402
  export class BreakElement extends HTMLBRElement {
404
- _styleRef = new CSSStyleRef(super.style);
403
+ _styleref = new CSSStyleref(super.style);
405
404
  constructor(optional) {
406
405
  super();
407
406
  Component.applyDate(optional, this);
@@ -413,13 +412,13 @@ export class BreakElement extends HTMLBRElement {
413
412
  // @ts-ignore
414
413
  get style() {
415
414
  // @ts-ignore
416
- return this._styleRef;
415
+ return this._styleref;
417
416
  }
418
417
  }
419
418
  // @ts-ignore
420
419
  customElements.define("base-br-element", BreakElement, { extends: "br" });
421
420
  export class TableElement extends HTMLTableElement {
422
- _styleRef = new CSSStyleRef(super.style);
421
+ _styleref = new CSSStyleref(super.style);
423
422
  constructor(optional) {
424
423
  super();
425
424
  Component.applyDate(optional, this);
@@ -436,13 +435,13 @@ export class TableElement extends HTMLTableElement {
436
435
  // @ts-ignore
437
436
  get style() {
438
437
  // @ts-ignore
439
- return this._styleRef;
438
+ return this._styleref;
440
439
  }
441
440
  }
442
441
  // @ts-ignore
443
442
  customElements.define("base-table-element", TableElement, { extends: "table" });
444
443
  export class TableRowElement extends HTMLTableRowElement {
445
- _styleRef = new CSSStyleRef(super.style);
444
+ _styleref = new CSSStyleref(super.style);
446
445
  constructor(optional) {
447
446
  super();
448
447
  Component.applyDate(optional, this);
@@ -454,7 +453,7 @@ export class TableRowElement extends HTMLTableRowElement {
454
453
  // @ts-ignore
455
454
  get style() {
456
455
  // @ts-ignore
457
- return this._styleRef;
456
+ return this._styleref;
458
457
  }
459
458
  addCell(...cells) {
460
459
  cells.forEach((cell) => {
@@ -465,7 +464,7 @@ export class TableRowElement extends HTMLTableRowElement {
465
464
  // @ts-ignore
466
465
  customElements.define("base-tr-element", TableRowElement, { extends: "tr" });
467
466
  export class TableCellElement extends HTMLTableCellElement {
468
- _styleRef = new CSSStyleRef(super.style);
467
+ _styleref = new CSSStyleref(super.style);
469
468
  constructor(optional) {
470
469
  super();
471
470
  Component.applyDate(optional, this);
@@ -480,13 +479,13 @@ export class TableCellElement extends HTMLTableCellElement {
480
479
  // @ts-ignore
481
480
  get style() {
482
481
  // @ts-ignore
483
- return this._styleRef;
482
+ return this._styleref;
484
483
  }
485
484
  }
486
485
  // @ts-ignore
487
486
  customElements.define("base-td-element", TableCellElement, { extends: "td" });
488
487
  export class InputElement extends HTMLInputElement {
489
- _styleRef = new CSSStyleRef(super.style);
488
+ _styleref = new CSSStyleref(super.style);
490
489
  constructor(optional) {
491
490
  super();
492
491
  Component.applyDate(optional, this);
@@ -498,13 +497,13 @@ export class InputElement extends HTMLInputElement {
498
497
  // @ts-ignore
499
498
  get style() {
500
499
  // @ts-ignore
501
- return this._styleRef;
500
+ return this._styleref;
502
501
  }
503
502
  }
504
503
  // @ts-ignore
505
504
  customElements.define("base-input-element", InputElement, { extends: "input" });
506
505
  export class ButtonElement extends HTMLButtonElement {
507
- _styleRef = new CSSStyleRef(super.style);
506
+ _styleref = new CSSStyleref(super.style);
508
507
  constructor(optional) {
509
508
  super();
510
509
  Component.applyDate(optional, this);
@@ -516,11 +515,11 @@ export class ButtonElement extends HTMLButtonElement {
516
515
  // @ts-ignore
517
516
  get style() {
518
517
  // @ts-ignore
519
- return this._styleRef;
518
+ return this._styleref;
520
519
  }
521
520
  // @ts-ignore
522
521
  set innerHTML(value) {
523
- if (value instanceof Ref) {
522
+ if (typeof value !== "string") {
524
523
  value.subscriber(this, "innerHTML");
525
524
  super.innerHTML = value.toString();
526
525
  }
@@ -533,7 +532,7 @@ customElements.define("base-button-element", ButtonElement, {
533
532
  extends: "button",
534
533
  });
535
534
  export class TextAreaElement extends HTMLTextAreaElement {
536
- _styleRef = new CSSStyleRef(super.style);
535
+ _styleref = new CSSStyleref(super.style);
537
536
  constructor(optional) {
538
537
  super();
539
538
  Component.applyDate(optional, this);
@@ -545,7 +544,7 @@ export class TextAreaElement extends HTMLTextAreaElement {
545
544
  // @ts-ignore
546
545
  get style() {
547
546
  // @ts-ignore
548
- return this._styleRef;
547
+ return this._styleref;
549
548
  }
550
549
  }
551
550
  // @ts-ignore
@@ -553,7 +552,7 @@ customElements.define("base-textarea-element", TextAreaElement, {
553
552
  extends: "textarea",
554
553
  });
555
554
  export class LabelElement extends HTMLLabelElement {
556
- _styleRef = new CSSStyleRef(super.style);
555
+ _styleref = new CSSStyleref(super.style);
557
556
  constructor(optional) {
558
557
  super();
559
558
  Component.applyDate(optional, this);
@@ -565,13 +564,13 @@ export class LabelElement extends HTMLLabelElement {
565
564
  // @ts-ignore
566
565
  get style() {
567
566
  // @ts-ignore
568
- return this._styleRef;
567
+ return this._styleref;
569
568
  }
570
569
  }
571
570
  // @ts-ignore
572
571
  customElements.define("base-label-element", LabelElement, { extends: "label" });
573
572
  export class SelectElement extends HTMLSelectElement {
574
- _styleRef = new CSSStyleRef(super.style);
573
+ _styleref = new CSSStyleref(super.style);
575
574
  constructor(optional) {
576
575
  super();
577
576
  Component.applyDate(optional, this);
@@ -583,7 +582,7 @@ export class SelectElement extends HTMLSelectElement {
583
582
  // @ts-ignore
584
583
  get style() {
585
584
  // @ts-ignore
586
- return this._styleRef;
585
+ return this._styleref;
587
586
  }
588
587
  }
589
588
  // @ts-ignore
@@ -591,7 +590,7 @@ customElements.define("base-select-element", SelectElement, {
591
590
  extends: "select",
592
591
  });
593
592
  export class AudioElement extends HTMLAudioElement {
594
- _styleRef = new CSSStyleRef(super.style);
593
+ _styleref = new CSSStyleref(super.style);
595
594
  constructor(optional) {
596
595
  super();
597
596
  Component.applyDate(optional, this);
@@ -603,13 +602,13 @@ export class AudioElement extends HTMLAudioElement {
603
602
  // @ts-ignore
604
603
  get style() {
605
604
  // @ts-ignore
606
- return this._styleRef;
605
+ return this._styleref;
607
606
  }
608
607
  }
609
608
  // @ts-ignore
610
609
  customElements.define("base-audio-element", AudioElement, { extends: "audio" });
611
610
  export class BoldElement extends HTMLElement {
612
- _styleRef = new CSSStyleRef(super.style);
611
+ _styleref = new CSSStyleref(super.style);
613
612
  constructor(optional) {
614
613
  super();
615
614
  Component.applyDate(optional, this);
@@ -621,14 +620,14 @@ export class BoldElement extends HTMLElement {
621
620
  // @ts-ignore
622
621
  get style() {
623
622
  // @ts-ignore
624
- return this._styleRef;
623
+ return this._styleref;
625
624
  }
626
625
  }
627
626
  // @ts-ignore
628
627
  customElements.define("base-b-element", BoldElement, { extends: "b" });
629
628
  // <base>
630
629
  export class BaseElement extends HTMLElement {
631
- _styleRef = new CSSStyleRef(super.style);
630
+ _styleref = new CSSStyleref(super.style);
632
631
  constructor(optional) {
633
632
  super();
634
633
  Component.applyDate(optional, this);
@@ -640,14 +639,14 @@ export class BaseElement extends HTMLElement {
640
639
  // @ts-ignore
641
640
  get style() {
642
641
  // @ts-ignore
643
- return this._styleRef;
642
+ return this._styleref;
644
643
  }
645
644
  }
646
645
  // @ts-ignore
647
646
  customElements.define("base-base-element", BaseElement, { extends: "base" });
648
647
  // <body>
649
648
  export class BodyElement extends HTMLBodyElement {
650
- _styleRef = new CSSStyleRef(super.style);
649
+ _styleref = new CSSStyleref(super.style);
651
650
  constructor(optional) {
652
651
  super();
653
652
  Component.applyDate(optional, this);
@@ -659,14 +658,14 @@ export class BodyElement extends HTMLBodyElement {
659
658
  // @ts-ignore
660
659
  get style() {
661
660
  // @ts-ignore
662
- return this._styleRef;
661
+ return this._styleref;
663
662
  }
664
663
  }
665
664
  // @ts-ignore
666
665
  customElements.define("base-body-element", BodyElement, { extends: "body" });
667
666
  // <video>
668
667
  export class VideoElement extends HTMLVideoElement {
669
- _styleRef = new CSSStyleRef(super.style);
668
+ _styleref = new CSSStyleref(super.style);
670
669
  constructor(optional) {
671
670
  super();
672
671
  Component.applyDate(optional, this);
@@ -678,13 +677,13 @@ export class VideoElement extends HTMLVideoElement {
678
677
  // @ts-ignore
679
678
  get style() {
680
679
  // @ts-ignore
681
- return this._styleRef;
680
+ return this._styleref;
682
681
  }
683
682
  }
684
683
  // @ts-ignore
685
684
  customElements.define("base-video-element", VideoElement, { extends: "video" });
686
685
  export class CanvasElement extends HTMLCanvasElement {
687
- _styleRef = new CSSStyleRef(super.style);
686
+ _styleref = new CSSStyleref(super.style);
688
687
  constructor(optional) {
689
688
  super();
690
689
  if (optional?.width)
@@ -700,7 +699,7 @@ export class CanvasElement extends HTMLCanvasElement {
700
699
  // @ts-ignore
701
700
  get style() {
702
701
  // @ts-ignore
703
- return this._styleRef;
702
+ return this._styleref;
704
703
  }
705
704
  }
706
705
  // @ts-ignore
@@ -709,7 +708,7 @@ customElements.define("base-canvas-element", CanvasElement, {
709
708
  });
710
709
  // <caption>
711
710
  export class CaptionElement extends HTMLTableCaptionElement {
712
- _styleRef = new CSSStyleRef(super.style);
711
+ _styleref = new CSSStyleref(super.style);
713
712
  constructor(optional) {
714
713
  super();
715
714
  Component.applyDate(optional, this);
@@ -721,7 +720,7 @@ export class CaptionElement extends HTMLTableCaptionElement {
721
720
  // @ts-ignore
722
721
  get style() {
723
722
  // @ts-ignore
724
- return this._styleRef;
723
+ return this._styleref;
725
724
  }
726
725
  }
727
726
  // @ts-ignore
@@ -730,7 +729,7 @@ customElements.define("base-caption-element", CaptionElement, {
730
729
  });
731
730
  // <cite>
732
731
  export class CiteElement extends HTMLElement {
733
- _styleRef = new CSSStyleRef(super.style);
732
+ _styleref = new CSSStyleref(super.style);
734
733
  constructor(optional) {
735
734
  super();
736
735
  Component.applyDate(optional, this);
@@ -742,14 +741,14 @@ export class CiteElement extends HTMLElement {
742
741
  // @ts-ignore
743
742
  get style() {
744
743
  // @ts-ignore
745
- return this._styleRef;
744
+ return this._styleref;
746
745
  }
747
746
  }
748
747
  // @ts-ignore
749
748
  customElements.define("base-cite-element", CiteElement, { extends: "cite" });
750
749
  // <code>
751
750
  export class CodeElement extends HTMLElement {
752
- _styleRef = new CSSStyleRef(super.style);
751
+ _styleref = new CSSStyleref(super.style);
753
752
  constructor(optional) {
754
753
  super();
755
754
  Component.applyDate(optional, this);
@@ -761,14 +760,14 @@ export class CodeElement extends HTMLElement {
761
760
  // @ts-ignore
762
761
  get style() {
763
762
  // @ts-ignore
764
- return this._styleRef;
763
+ return this._styleref;
765
764
  }
766
765
  }
767
766
  // @ts-ignore
768
767
  customElements.define("base-code-element", CodeElement, { extends: "code" });
769
768
  // <col>
770
769
  export class TableColElement extends HTMLTableColElement {
771
- _styleRef = new CSSStyleRef(super.style);
770
+ _styleref = new CSSStyleref(super.style);
772
771
  constructor(optional) {
773
772
  super();
774
773
  if (optional?.span)
@@ -782,14 +781,14 @@ export class TableColElement extends HTMLTableColElement {
782
781
  // @ts-ignore
783
782
  get style() {
784
783
  // @ts-ignore
785
- return this._styleRef;
784
+ return this._styleref;
786
785
  }
787
786
  }
788
787
  // @ts-ignore
789
788
  customElements.define("base-col-element", TableColElement, { extends: "col" });
790
789
  // <colgroup>
791
790
  export class TableColGroupElement extends HTMLTableColElement {
792
- _styleRef = new CSSStyleRef(super.style);
791
+ _styleref = new CSSStyleref(super.style);
793
792
  constructor(optional) {
794
793
  super();
795
794
  if (optional?.span)
@@ -803,7 +802,7 @@ export class TableColGroupElement extends HTMLTableColElement {
803
802
  // @ts-ignore
804
803
  get style() {
805
804
  // @ts-ignore
806
- return this._styleRef;
805
+ return this._styleref;
807
806
  }
808
807
  }
809
808
  // @ts-ignore
@@ -812,7 +811,7 @@ customElements.define("base-colgroup-element", TableColGroupElement, {
812
811
  });
813
812
  // <datalist>
814
813
  export class DataListElement extends HTMLDataListElement {
815
- _styleRef = new CSSStyleRef(super.style);
814
+ _styleref = new CSSStyleref(super.style);
816
815
  constructor(optional) {
817
816
  super();
818
817
  Component.applyDate(optional, this);
@@ -824,7 +823,7 @@ export class DataListElement extends HTMLDataListElement {
824
823
  // @ts-ignore
825
824
  get style() {
826
825
  // @ts-ignore
827
- return this._styleRef;
826
+ return this._styleref;
828
827
  }
829
828
  }
830
829
  // @ts-ignore
@@ -833,7 +832,7 @@ customElements.define("base-datalist-element", DataListElement, {
833
832
  });
834
833
  // <dd>
835
834
  export class DefinitionDescriptionElement extends HTMLElement {
836
- _styleRef = new CSSStyleRef(super.style);
835
+ _styleref = new CSSStyleref(super.style);
837
836
  constructor(optional) {
838
837
  super();
839
838
  Component.applyDate(optional, this);
@@ -845,7 +844,7 @@ export class DefinitionDescriptionElement extends HTMLElement {
845
844
  // @ts-ignore
846
845
  get style() {
847
846
  // @ts-ignore
848
- return this._styleRef;
847
+ return this._styleref;
849
848
  }
850
849
  }
851
850
  // @ts-ignore
@@ -854,7 +853,7 @@ customElements.define("base-dd-element", DefinitionDescriptionElement, {
854
853
  });
855
854
  // <del>
856
855
  export class DeletedTextElement extends HTMLModElement {
857
- _styleRef = new CSSStyleRef(super.style);
856
+ _styleref = new CSSStyleref(super.style);
858
857
  constructor(optional) {
859
858
  super();
860
859
  if (optional?.cite)
@@ -868,7 +867,7 @@ export class DeletedTextElement extends HTMLModElement {
868
867
  // @ts-ignore
869
868
  get style() {
870
869
  // @ts-ignore
871
- return this._styleRef;
870
+ return this._styleref;
872
871
  }
873
872
  }
874
873
  // @ts-ignore
@@ -877,7 +876,7 @@ customElements.define("base-del-element", DeletedTextElement, {
877
876
  });
878
877
  // <details>
879
878
  export class DetailsElement extends HTMLDetailsElement {
880
- _styleRef = new CSSStyleRef(super.style);
879
+ _styleref = new CSSStyleref(super.style);
881
880
  constructor(optional) {
882
881
  super();
883
882
  Component.applyDate(optional, this);
@@ -899,7 +898,7 @@ export class DetailsElement extends HTMLDetailsElement {
899
898
  // @ts-ignore
900
899
  get style() {
901
900
  // @ts-ignore
902
- return this._styleRef;
901
+ return this._styleref;
903
902
  }
904
903
  setSummary(summary) {
905
904
  this.querySelector("summary")?.remove();
@@ -912,7 +911,7 @@ customElements.define("base-details-element", DetailsElement, {
912
911
  });
913
912
  // <dfn>
914
913
  export class DefinitionElement extends HTMLElement {
915
- _styleRef = new CSSStyleRef(super.style);
914
+ _styleref = new CSSStyleref(super.style);
916
915
  constructor(optional) {
917
916
  super();
918
917
  Component.applyDate(optional, this);
@@ -924,7 +923,7 @@ export class DefinitionElement extends HTMLElement {
924
923
  // @ts-ignore
925
924
  get style() {
926
925
  // @ts-ignore
927
- return this._styleRef;
926
+ return this._styleref;
928
927
  }
929
928
  }
930
929
  // @ts-ignore
@@ -933,7 +932,7 @@ customElements.define("base-dfn-element", DefinitionElement, {
933
932
  });
934
933
  // <dialog>
935
934
  export class DialogElement extends HTMLDialogElement {
936
- _styleRef = new CSSStyleRef(super.style);
935
+ _styleref = new CSSStyleref(super.style);
937
936
  constructor(optional) {
938
937
  super();
939
938
  Component.applyDate(optional, this);
@@ -946,7 +945,7 @@ export class DialogElement extends HTMLDialogElement {
946
945
  // @ts-ignore
947
946
  get style() {
948
947
  // @ts-ignore
949
- return this._styleRef;
948
+ return this._styleref;
950
949
  }
951
950
  }
952
951
  // @ts-ignore
@@ -955,7 +954,7 @@ customElements.define("base-dialog-element", DialogElement, {
955
954
  });
956
955
  // <embed>
957
956
  export class EmbedElement extends HTMLEmbedElement {
958
- _styleRef = new CSSStyleRef(super.style);
957
+ _styleref = new CSSStyleref(super.style);
959
958
  constructor(optional) {
960
959
  super();
961
960
  if (optional?.height)
@@ -975,14 +974,14 @@ export class EmbedElement extends HTMLEmbedElement {
975
974
  // @ts-ignore
976
975
  get style() {
977
976
  // @ts-ignore
978
- return this._styleRef;
977
+ return this._styleref;
979
978
  }
980
979
  }
981
980
  // @ts-ignore
982
981
  customElements.define("base-embed-element", EmbedElement, { extends: "embed" });
983
982
  // <fieldset>
984
983
  export class FieldSetElement extends HTMLFieldSetElement {
985
- _styleRef = new CSSStyleRef(super.style);
984
+ _styleref = new CSSStyleref(super.style);
986
985
  constructor(optional) {
987
986
  super();
988
987
  Component.applyDate(optional, this);
@@ -1006,7 +1005,7 @@ export class FieldSetElement extends HTMLFieldSetElement {
1006
1005
  // @ts-ignore
1007
1006
  get style() {
1008
1007
  // @ts-ignore
1009
- return this._styleRef;
1008
+ return this._styleref;
1010
1009
  }
1011
1010
  setLegend(legend) {
1012
1011
  this.querySelector("legend")?.remove();
@@ -1019,7 +1018,7 @@ customElements.define("base-fieldset-element", FieldSetElement, {
1019
1018
  });
1020
1019
  // <footer>
1021
1020
  export class FooterElement extends HTMLElement {
1022
- _styleRef = new CSSStyleRef(super.style);
1021
+ _styleref = new CSSStyleref(super.style);
1023
1022
  constructor(optional) {
1024
1023
  super();
1025
1024
  Component.applyDate(optional, this);
@@ -1031,7 +1030,7 @@ export class FooterElement extends HTMLElement {
1031
1030
  // @ts-ignore
1032
1031
  get style() {
1033
1032
  // @ts-ignore
1034
- return this._styleRef;
1033
+ return this._styleref;
1035
1034
  }
1036
1035
  }
1037
1036
  // @ts-ignore
@@ -1039,7 +1038,7 @@ customElements.define("base-footer-element", FooterElement, {
1039
1038
  extends: "footer",
1040
1039
  });
1041
1040
  export class FormElement extends HTMLFormElement {
1042
- _styleRef = new CSSStyleRef(super.style);
1041
+ _styleref = new CSSStyleref(super.style);
1043
1042
  constructor(optional) {
1044
1043
  super();
1045
1044
  Component.applyDate(optional, this);
@@ -1051,13 +1050,13 @@ export class FormElement extends HTMLFormElement {
1051
1050
  // @ts-ignore
1052
1051
  get style() {
1053
1052
  // @ts-ignore
1054
- return this._styleRef;
1053
+ return this._styleref;
1055
1054
  }
1056
1055
  }
1057
1056
  // @ts-ignore
1058
1057
  customElements.define("base-form-element", FormElement, { extends: "form" });
1059
1058
  export class H1Element extends HTMLHeadingElement {
1060
- _styleRef = new CSSStyleRef(super.style);
1059
+ _styleref = new CSSStyleref(super.style);
1061
1060
  constructor(optional) {
1062
1061
  super();
1063
1062
  Component.applyDate(optional, this);
@@ -1071,13 +1070,13 @@ export class H1Element extends HTMLHeadingElement {
1071
1070
  // @ts-ignore
1072
1071
  get style() {
1073
1072
  // @ts-ignore
1074
- return this._styleRef;
1073
+ return this._styleref;
1075
1074
  }
1076
1075
  }
1077
1076
  // @ts-ignore
1078
1077
  customElements.define("base-h1-element", H1Element, { extends: "h1" });
1079
1078
  export class H2Element extends HTMLHeadingElement {
1080
- _styleRef = new CSSStyleRef(super.style);
1079
+ _styleref = new CSSStyleref(super.style);
1081
1080
  constructor(optional) {
1082
1081
  super();
1083
1082
  Component.applyDate(optional, this);
@@ -1091,13 +1090,13 @@ export class H2Element extends HTMLHeadingElement {
1091
1090
  // @ts-ignore
1092
1091
  get style() {
1093
1092
  // @ts-ignore
1094
- return this._styleRef;
1093
+ return this._styleref;
1095
1094
  }
1096
1095
  }
1097
1096
  // @ts-ignore
1098
1097
  customElements.define("base-h2-element", H2Element, { extends: "h2" });
1099
1098
  export class H3Element extends HTMLHeadingElement {
1100
- _styleRef = new CSSStyleRef(super.style);
1099
+ _styleref = new CSSStyleref(super.style);
1101
1100
  constructor(optional) {
1102
1101
  super();
1103
1102
  Component.applyDate(optional, this);
@@ -1108,8 +1107,8 @@ export class H3Element extends HTMLHeadingElement {
1108
1107
  return this.innerText;
1109
1108
  }
1110
1109
  set text(value) {
1111
- if (value instanceof Ref)
1112
- this["_styleRef"].appendStyleRef("text", this, value);
1110
+ if (typeof value !== "string")
1111
+ this["_styleref"].appendStyleref("text", this, value);
1113
1112
  else
1114
1113
  this.innerText = value;
1115
1114
  }
@@ -1120,7 +1119,7 @@ export class H3Element extends HTMLHeadingElement {
1120
1119
  // @ts-ignore
1121
1120
  get style() {
1122
1121
  // @ts-ignore
1123
- return this._styleRef;
1122
+ return this._styleref;
1124
1123
  }
1125
1124
  }
1126
1125
  // @ts-ignore
@@ -1169,7 +1168,7 @@ export class H6Element extends H3Element {
1169
1168
  customElements.define("base-h6-element", H6Element, { extends: "h6" });
1170
1169
  // <head>
1171
1170
  export class HeadElement extends HTMLHeadElement {
1172
- _styleRef = new CSSStyleRef(super.style);
1171
+ _styleref = new CSSStyleref(super.style);
1173
1172
  constructor(optional) {
1174
1173
  super();
1175
1174
  Component.applyDate(optional, this);
@@ -1181,14 +1180,14 @@ export class HeadElement extends HTMLHeadElement {
1181
1180
  // @ts-ignore
1182
1181
  get style() {
1183
1182
  // @ts-ignore
1184
- return this._styleRef;
1183
+ return this._styleref;
1185
1184
  }
1186
1185
  }
1187
1186
  // @ts-ignore
1188
1187
  customElements.define("base-head-element", HeadElement, { extends: "head" });
1189
1188
  // <header>
1190
1189
  export class HeaderElement extends HTMLElement {
1191
- _styleRef = new CSSStyleRef(super.style);
1190
+ _styleref = new CSSStyleref(super.style);
1192
1191
  constructor(optional) {
1193
1192
  super();
1194
1193
  Component.applyDate(optional, this);
@@ -1200,7 +1199,7 @@ export class HeaderElement extends HTMLElement {
1200
1199
  // @ts-ignore
1201
1200
  get style() {
1202
1201
  // @ts-ignore
1203
- return this._styleRef;
1202
+ return this._styleref;
1204
1203
  }
1205
1204
  }
1206
1205
  // @ts-ignore
@@ -1209,7 +1208,7 @@ customElements.define("base-header-element", HeaderElement, {
1209
1208
  });
1210
1209
  // <hr>
1211
1210
  export class HorizontalRuleElement extends HTMLHRElement {
1212
- _styleRef = new CSSStyleRef(super.style);
1211
+ _styleref = new CSSStyleref(super.style);
1213
1212
  constructor(optional) {
1214
1213
  super();
1215
1214
  Component.applyDate(optional, this);
@@ -1221,7 +1220,7 @@ export class HorizontalRuleElement extends HTMLHRElement {
1221
1220
  // @ts-ignore
1222
1221
  get style() {
1223
1222
  // @ts-ignore
1224
- return this._styleRef;
1223
+ return this._styleref;
1225
1224
  }
1226
1225
  }
1227
1226
  // @ts-ignore
@@ -1230,7 +1229,7 @@ customElements.define("base-hr-element", HorizontalRuleElement, {
1230
1229
  });
1231
1230
  // <html>
1232
1231
  export class HtmlElement extends HTMLHtmlElement {
1233
- _styleRef = new CSSStyleRef(super.style);
1232
+ _styleref = new CSSStyleref(super.style);
1234
1233
  constructor(optional) {
1235
1234
  super();
1236
1235
  if (optional?.manifest)
@@ -1250,14 +1249,14 @@ export class HtmlElement extends HTMLHtmlElement {
1250
1249
  // @ts-ignore
1251
1250
  get style() {
1252
1251
  // @ts-ignore
1253
- return this._styleRef;
1252
+ return this._styleref;
1254
1253
  }
1255
1254
  }
1256
1255
  // @ts-ignore
1257
1256
  customElements.define("base-html-element", HtmlElement, { extends: "html" });
1258
1257
  // <iframe>
1259
1258
  export class IFrameElement extends HTMLIFrameElement {
1260
- _styleRef = new CSSStyleRef(super.style);
1259
+ _styleref = new CSSStyleref(super.style);
1261
1260
  constructor(optional) {
1262
1261
  super();
1263
1262
  if (optional?.allow)
@@ -1344,7 +1343,7 @@ export class IFrameElement extends HTMLIFrameElement {
1344
1343
  // @ts-ignore
1345
1344
  get style() {
1346
1345
  // @ts-ignore
1347
- return this._styleRef;
1346
+ return this._styleref;
1348
1347
  }
1349
1348
  }
1350
1349
  // @ts-ignore
@@ -1353,7 +1352,7 @@ customElements.define("base-iframe-element", IFrameElement, {
1353
1352
  });
1354
1353
  // <legend>
1355
1354
  export class LegendElement extends HTMLLegendElement {
1356
- _styleRef = new CSSStyleRef(super.style);
1355
+ _styleref = new CSSStyleref(super.style);
1357
1356
  constructor(optional) {
1358
1357
  super();
1359
1358
  Component.applyDate(optional, this);
@@ -1367,7 +1366,7 @@ export class LegendElement extends HTMLLegendElement {
1367
1366
  // @ts-ignore
1368
1367
  get style() {
1369
1368
  // @ts-ignore
1370
- return this._styleRef;
1369
+ return this._styleref;
1371
1370
  }
1372
1371
  }
1373
1372
  // @ts-ignore
@@ -1380,7 +1379,7 @@ export class SvgElement extends SVGElement {
1380
1379
  }
1381
1380
  }
1382
1381
  export class NavElement extends HTMLElement {
1383
- _styleRef = new CSSStyleRef(super.style);
1382
+ _styleref = new CSSStyleref(super.style);
1384
1383
  constructor(optional) {
1385
1384
  super();
1386
1385
  Component.applyDate(optional, this);
@@ -1392,13 +1391,13 @@ export class NavElement extends HTMLElement {
1392
1391
  // @ts-ignore
1393
1392
  get style() {
1394
1393
  // @ts-ignore
1395
- return this._styleRef;
1394
+ return this._styleref;
1396
1395
  }
1397
1396
  }
1398
1397
  // @ts-ignore
1399
1398
  customElements.define("base-nav-element", NavElement, { extends: "nav" });
1400
1399
  export class SectionElement extends HTMLElement {
1401
- _styleRef = new CSSStyleRef(super.style);
1400
+ _styleref = new CSSStyleref(super.style);
1402
1401
  constructor(optional) {
1403
1402
  super();
1404
1403
  Component.applyDate(optional, this);
@@ -1410,7 +1409,7 @@ export class SectionElement extends HTMLElement {
1410
1409
  // @ts-ignore
1411
1410
  get style() {
1412
1411
  // @ts-ignore
1413
- return this._styleRef;
1412
+ return this._styleref;
1414
1413
  }
1415
1414
  }
1416
1415
  // @ts-ignore
@@ -1418,7 +1417,7 @@ customElements.define("base-section-element", SectionElement, {
1418
1417
  extends: "section",
1419
1418
  });
1420
1419
  export class ArticleElement extends HTMLElement {
1421
- _styleRef = new CSSStyleRef(super.style);
1420
+ _styleref = new CSSStyleref(super.style);
1422
1421
  constructor(optional) {
1423
1422
  super();
1424
1423
  Component.applyDate(optional, this);
@@ -1430,7 +1429,7 @@ export class ArticleElement extends HTMLElement {
1430
1429
  // @ts-ignore
1431
1430
  get style() {
1432
1431
  // @ts-ignore
1433
- return this._styleRef;
1432
+ return this._styleref;
1434
1433
  }
1435
1434
  }
1436
1435
  // @ts-ignore
@@ -1438,7 +1437,7 @@ customElements.define("base-article-element", ArticleElement, {
1438
1437
  extends: "article",
1439
1438
  });
1440
1439
  export class SummaryElement extends HTMLElement {
1441
- _styleRef = new CSSStyleRef(super.style);
1440
+ _styleref = new CSSStyleref(super.style);
1442
1441
  constructor(optional) {
1443
1442
  super();
1444
1443
  Component.applyDate(optional, this);
@@ -1450,7 +1449,7 @@ export class SummaryElement extends HTMLElement {
1450
1449
  // @ts-ignore
1451
1450
  get style() {
1452
1451
  // @ts-ignore
1453
- return this._styleRef;
1452
+ return this._styleref;
1454
1453
  }
1455
1454
  }
1456
1455
  // @ts-ignore