typecomposer 0.0.19 → 0.0.20
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.
- package/dist/cjs/core/decorators/RegisterComponent.d.ts +1 -0
- package/dist/cjs/core/decorators/RegisterComponent.js.map +1 -1
- package/dist/cjs/core/decorators/index.d.ts +1 -0
- package/dist/cjs/core/decorators/index.js +3 -1
- package/dist/cjs/core/decorators/index.js.map +1 -1
- package/dist/cjs/core/element/action/TabItem.d.ts +3 -3
- package/dist/cjs/core/element/action/TabItem.js.map +1 -1
- package/dist/cjs/core/element/base/Elements.d.ts +3 -236
- package/dist/cjs/core/element/base/Elements.js +1 -684
- package/dist/cjs/core/element/base/Elements.js.map +1 -1
- package/dist/cjs/global/global.d.ts +13 -1
- package/dist/cjs/global/global.js +46 -5
- package/dist/cjs/global/global.js.map +1 -1
- package/dist/esm/core/decorators/RegisterComponent.d.ts +1 -0
- package/dist/esm/core/decorators/RegisterComponent.js.map +1 -1
- package/dist/esm/core/decorators/index.d.ts +1 -0
- package/dist/esm/core/decorators/index.js +1 -0
- package/dist/esm/core/decorators/index.js.map +1 -1
- package/dist/esm/core/element/action/TabItem.d.ts +3 -3
- package/dist/esm/core/element/action/TabItem.js.map +1 -1
- package/dist/esm/core/element/base/Elements.d.ts +3 -236
- package/dist/esm/core/element/base/Elements.js +1 -684
- package/dist/esm/core/element/base/Elements.js.map +1 -1
- package/dist/esm/global/global.d.ts +13 -1
- package/dist/esm/global/global.js +43 -2
- package/dist/esm/global/global.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Router } from "../..";
|
|
2
|
-
import { CSSStyleref } from "./CSSStyle";
|
|
3
2
|
import { EventComponent } from "./Event";
|
|
4
3
|
// 1. `<div>` - Para criar blocos de conteúdo genéricos.
|
|
5
4
|
// 2. `<p>` - Para parágrafos de texto.
|
|
@@ -32,32 +31,12 @@ import { EventComponent } from "./Event";
|
|
|
32
31
|
// 29. `<footer>`, `<header>`, `<nav>`, `<main>`, `<section>`, `<article>` - Elementos semânticos de HTML5 para estruturação de página.
|
|
33
32
|
// 30. `<details>` e `<summary>` - Elementos de HTML5 para criar conteúdo expansível.
|
|
34
33
|
export class Component extends HTMLElement {
|
|
35
|
-
|
|
34
|
+
//
|
|
36
35
|
constructor(optional) {
|
|
37
36
|
super();
|
|
38
37
|
if (optional != undefined)
|
|
39
38
|
this.setStyle(optional);
|
|
40
39
|
}
|
|
41
|
-
destructor() { }
|
|
42
|
-
onInit() { }
|
|
43
|
-
addClasName(...names) {
|
|
44
|
-
this.classList.add(...names);
|
|
45
|
-
}
|
|
46
|
-
setStyle(optional) {
|
|
47
|
-
Component.applyDate(optional, this);
|
|
48
|
-
}
|
|
49
|
-
// // @ts-ignore
|
|
50
|
-
// set innerHTML(value: string | ref<string>) {
|
|
51
|
-
// if (value instanceof RefString) {
|
|
52
|
-
// value.refTarget.subscriber(this, "innerHTML", value.refPropertyKey);
|
|
53
|
-
// } else if (typeof value !== "string") value.subscriber(this, "innerHTML");
|
|
54
|
-
// else super.innerHTML = value;
|
|
55
|
-
// }
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
get style() {
|
|
58
|
-
// @ts-ignore
|
|
59
|
-
return this._styleref;
|
|
60
|
-
}
|
|
61
40
|
static applyDate(data, element) {
|
|
62
41
|
if (data != undefined) {
|
|
63
42
|
if (data.id) {
|
|
@@ -117,56 +96,22 @@ export class Component extends HTMLElement {
|
|
|
117
96
|
EventComponent.deleteEvent(type);
|
|
118
97
|
}
|
|
119
98
|
}
|
|
120
|
-
// @ts-ignore
|
|
121
99
|
customElements.define("component-element", Component);
|
|
122
100
|
export class DivElement extends HTMLDivElement {
|
|
123
|
-
_styleref = new CSSStyleref(super.style);
|
|
124
|
-
Test = "teste";
|
|
125
101
|
constructor(optional) {
|
|
126
102
|
super();
|
|
127
103
|
Component.applyDate(optional, this);
|
|
128
104
|
}
|
|
129
|
-
onInit() { }
|
|
130
|
-
addClasName(...names) {
|
|
131
|
-
this.classList.add(...names);
|
|
132
|
-
}
|
|
133
|
-
// set innerHTML(value: string) {
|
|
134
|
-
// if (value.includes("v-for")) {
|
|
135
|
-
// const regex = /<\w+\s[^>]*?\bv-for\b[^>]*?>[\s\S]*?<\/\w+>/g;
|
|
136
|
-
// // Encontrar correspondências na string HTML
|
|
137
|
-
// const matches = value.match(regex);
|
|
138
|
-
// console.log("innerHTML: ", matches)
|
|
139
|
-
// }
|
|
140
|
-
// super.innerHTML = value;
|
|
141
|
-
// }
|
|
142
|
-
// @ts-ignore
|
|
143
|
-
get style() {
|
|
144
|
-
// @ts-ignore
|
|
145
|
-
return this._styleref;
|
|
146
|
-
}
|
|
147
105
|
}
|
|
148
|
-
// @ts-ignore
|
|
149
106
|
customElements.define("base-div-element", DivElement, { extends: "div" });
|
|
150
107
|
export class ParagraphElement extends HTMLParagraphElement {
|
|
151
|
-
_styleref = new CSSStyleref(super.style);
|
|
152
108
|
constructor(optional) {
|
|
153
109
|
super();
|
|
154
110
|
Component.applyDate(optional, this);
|
|
155
111
|
}
|
|
156
|
-
onInit() { }
|
|
157
|
-
addClasName(...names) {
|
|
158
|
-
this.classList.add(...names);
|
|
159
|
-
}
|
|
160
|
-
// @ts-ignore
|
|
161
|
-
get style() {
|
|
162
|
-
// @ts-ignore
|
|
163
|
-
return this._styleref;
|
|
164
|
-
}
|
|
165
112
|
}
|
|
166
|
-
// @ts-ignore
|
|
167
113
|
customElements.define("base-p-element", ParagraphElement, { extends: "p" });
|
|
168
114
|
export class AnchorElement extends HTMLAnchorElement {
|
|
169
|
-
_styleref = new CSSStyleref(super.style);
|
|
170
115
|
_rlink = "";
|
|
171
116
|
constructor(optional) {
|
|
172
117
|
super();
|
|
@@ -184,15 +129,6 @@ export class AnchorElement extends HTMLAnchorElement {
|
|
|
184
129
|
}
|
|
185
130
|
});
|
|
186
131
|
}
|
|
187
|
-
onInit() { }
|
|
188
|
-
addClasName(...names) {
|
|
189
|
-
this.classList.add(...names);
|
|
190
|
-
}
|
|
191
|
-
// @ts-ignore
|
|
192
|
-
get style() {
|
|
193
|
-
// @ts-ignore
|
|
194
|
-
return this._styleref;
|
|
195
|
-
}
|
|
196
132
|
set rlink(link) {
|
|
197
133
|
this.href = link;
|
|
198
134
|
this._rlink = link;
|
|
@@ -201,49 +137,25 @@ export class AnchorElement extends HTMLAnchorElement {
|
|
|
201
137
|
return this._rlink;
|
|
202
138
|
}
|
|
203
139
|
}
|
|
204
|
-
// @ts-ignore
|
|
205
140
|
customElements.define("base-a-element", AnchorElement, { extends: "a" });
|
|
206
141
|
export class AbbreviationElement extends HTMLElement {
|
|
207
|
-
_styleref = new CSSStyleref(super.style);
|
|
208
142
|
constructor(optional) {
|
|
209
143
|
super();
|
|
210
144
|
Component.applyDate(optional, this);
|
|
211
145
|
}
|
|
212
|
-
onInit() { }
|
|
213
|
-
addClasName(...names) {
|
|
214
|
-
this.classList.add(...names);
|
|
215
|
-
}
|
|
216
|
-
// @ts-ignore
|
|
217
|
-
get style() {
|
|
218
|
-
// @ts-ignore
|
|
219
|
-
return this._styleref;
|
|
220
|
-
}
|
|
221
146
|
}
|
|
222
|
-
// @ts-ignore
|
|
223
147
|
customElements.define("base-abbr-element", AbbreviationElement, {
|
|
224
148
|
extends: "abbr",
|
|
225
149
|
});
|
|
226
150
|
// area
|
|
227
151
|
export class AreaElement extends HTMLAreaElement {
|
|
228
|
-
_styleref = new CSSStyleref(super.style);
|
|
229
152
|
constructor(optional) {
|
|
230
153
|
super();
|
|
231
154
|
Component.applyDate(optional, this);
|
|
232
155
|
}
|
|
233
|
-
onInit() { }
|
|
234
|
-
addClasName(...names) {
|
|
235
|
-
this.classList.add(...names);
|
|
236
|
-
}
|
|
237
|
-
// @ts-ignore
|
|
238
|
-
get style() {
|
|
239
|
-
// @ts-ignore
|
|
240
|
-
return this._styleref;
|
|
241
|
-
}
|
|
242
156
|
}
|
|
243
|
-
// @ts-ignore
|
|
244
157
|
customElements.define("base-area-element", AreaElement, { extends: "area" });
|
|
245
158
|
export class ImageElement extends HTMLImageElement {
|
|
246
|
-
_styleref = new CSSStyleref(super.style);
|
|
247
159
|
constructor(optional) {
|
|
248
160
|
super();
|
|
249
161
|
this.className = "image-element";
|
|
@@ -251,238 +163,103 @@ export class ImageElement extends HTMLImageElement {
|
|
|
251
163
|
if (optional?.src != undefined)
|
|
252
164
|
this.src = optional.src;
|
|
253
165
|
}
|
|
254
|
-
onInit() { }
|
|
255
|
-
addClasName(...names) {
|
|
256
|
-
this.classList.add(...names);
|
|
257
|
-
}
|
|
258
|
-
// @ts-ignore
|
|
259
|
-
get style() {
|
|
260
|
-
// @ts-ignore
|
|
261
|
-
return this._styleref;
|
|
262
|
-
}
|
|
263
166
|
}
|
|
264
|
-
// @ts-ignore
|
|
265
167
|
customElements.define("base-img-element", ImageElement, { extends: "img" });
|
|
266
168
|
export class UListElement extends HTMLUListElement {
|
|
267
|
-
_styleref = new CSSStyleref(super.style);
|
|
268
169
|
constructor(optional) {
|
|
269
170
|
super();
|
|
270
171
|
Component.applyDate(optional, this);
|
|
271
172
|
}
|
|
272
|
-
onInit() { }
|
|
273
|
-
addClasName(...names) {
|
|
274
|
-
this.classList.add(...names);
|
|
275
|
-
}
|
|
276
|
-
// @ts-ignore
|
|
277
|
-
get style() {
|
|
278
|
-
// @ts-ignore
|
|
279
|
-
return this._styleref;
|
|
280
|
-
}
|
|
281
173
|
}
|
|
282
|
-
// @ts-ignore
|
|
283
174
|
customElements.define("base-ul-element", UListElement, { extends: "ul" });
|
|
284
175
|
export class OrderedListElement extends HTMLOListElement {
|
|
285
|
-
_styleref = new CSSStyleref(super.style);
|
|
286
176
|
constructor(optional) {
|
|
287
177
|
super();
|
|
288
178
|
Component.applyDate(optional, this);
|
|
289
179
|
}
|
|
290
|
-
onInit() { }
|
|
291
|
-
addClasName(...names) {
|
|
292
|
-
this.classList.add(...names);
|
|
293
|
-
}
|
|
294
|
-
// @ts-ignore
|
|
295
|
-
get style() {
|
|
296
|
-
// @ts-ignore
|
|
297
|
-
return this._styleref;
|
|
298
|
-
}
|
|
299
180
|
}
|
|
300
|
-
// @ts-ignore
|
|
301
181
|
customElements.define("base-ol-element", OrderedListElement, { extends: "ol" });
|
|
302
182
|
export class ListItemElement extends HTMLLIElement {
|
|
303
|
-
_styleref = new CSSStyleref(super.style);
|
|
304
183
|
constructor(optional) {
|
|
305
184
|
super();
|
|
306
185
|
Component.applyDate(optional, this);
|
|
307
186
|
}
|
|
308
|
-
onInit() { }
|
|
309
|
-
addClasName(...names) {
|
|
310
|
-
this.classList.add(...names);
|
|
311
|
-
}
|
|
312
|
-
// @ts-ignore
|
|
313
|
-
get style() {
|
|
314
|
-
// @ts-ignore
|
|
315
|
-
return this._styleref;
|
|
316
|
-
}
|
|
317
187
|
onSelect() { }
|
|
318
188
|
}
|
|
319
|
-
// @ts-ignore
|
|
320
189
|
customElements.define("base-li-element", ListItemElement, { extends: "li" });
|
|
321
190
|
export class MainElement extends HTMLElement {
|
|
322
|
-
_styleref = new CSSStyleref(super.style);
|
|
323
191
|
constructor(optional) {
|
|
324
192
|
super();
|
|
325
193
|
Component.applyDate(optional, this);
|
|
326
194
|
}
|
|
327
|
-
onInit() { }
|
|
328
|
-
addClasName(...names) {
|
|
329
|
-
this.classList.add(...names);
|
|
330
|
-
}
|
|
331
|
-
// @ts-ignore
|
|
332
|
-
get style() {
|
|
333
|
-
// @ts-ignore
|
|
334
|
-
return this._styleref;
|
|
335
|
-
}
|
|
336
195
|
}
|
|
337
|
-
// @ts-ignore
|
|
338
196
|
customElements.define("base-main-element", MainElement, { extends: "main" });
|
|
339
197
|
// export interface DataHeadingElement extends StyleOptional {
|
|
340
198
|
// text?: string | ref<string>;
|
|
341
199
|
// for?: string;
|
|
342
200
|
// }
|
|
343
201
|
export class SpanElement extends HTMLSpanElement {
|
|
344
|
-
_styleref = new CSSStyleref(super.style);
|
|
345
202
|
constructor(optional) {
|
|
346
203
|
super();
|
|
347
204
|
Component.applyDate(optional, this);
|
|
348
205
|
}
|
|
349
|
-
onInit() { }
|
|
350
|
-
addClasName(...names) {
|
|
351
|
-
this.classList.add(...names);
|
|
352
|
-
}
|
|
353
|
-
// @ts-ignore
|
|
354
|
-
get style() {
|
|
355
|
-
// @ts-ignore
|
|
356
|
-
return this._styleref;
|
|
357
|
-
}
|
|
358
206
|
}
|
|
359
|
-
// @ts-ignore
|
|
360
207
|
customElements.define("base-span-element", SpanElement, { extends: "span" });
|
|
361
208
|
export class StrongElement extends HTMLSpanElement {
|
|
362
|
-
_styleref = new CSSStyleref(super.style);
|
|
363
209
|
constructor(optional) {
|
|
364
210
|
super();
|
|
365
211
|
Component.applyDate(optional, this);
|
|
366
212
|
}
|
|
367
|
-
onInit() { }
|
|
368
|
-
addClasName(...names) {
|
|
369
|
-
this.classList.add(...names);
|
|
370
|
-
}
|
|
371
|
-
// @ts-ignore
|
|
372
|
-
get style() {
|
|
373
|
-
// @ts-ignore
|
|
374
|
-
return this._styleref;
|
|
375
|
-
}
|
|
376
213
|
}
|
|
377
|
-
// @ts-ignore
|
|
378
214
|
customElements.define("base-strong-element", StrongElement, {
|
|
379
215
|
extends: "strong",
|
|
380
216
|
});
|
|
381
217
|
export class EmElement extends HTMLEmbedElement {
|
|
382
|
-
_styleref = new CSSStyleref(super.style);
|
|
383
218
|
constructor(optional) {
|
|
384
219
|
super();
|
|
385
220
|
Component.applyDate(optional, this);
|
|
386
221
|
}
|
|
387
|
-
onInit() { }
|
|
388
|
-
addClasName(...names) {
|
|
389
|
-
this.classList.add(...names);
|
|
390
|
-
}
|
|
391
|
-
// @ts-ignore
|
|
392
|
-
get style() {
|
|
393
|
-
// @ts-ignore
|
|
394
|
-
return this._styleref;
|
|
395
|
-
}
|
|
396
222
|
}
|
|
397
|
-
// @ts-ignore
|
|
398
223
|
customElements.define("base-em-element", EmElement, { extends: "em" });
|
|
399
224
|
export class BreakElement extends HTMLBRElement {
|
|
400
|
-
_styleref = new CSSStyleref(super.style);
|
|
401
225
|
constructor(optional) {
|
|
402
226
|
super();
|
|
403
227
|
Component.applyDate(optional, this);
|
|
404
228
|
}
|
|
405
|
-
onInit() { }
|
|
406
|
-
addClasName(...names) {
|
|
407
|
-
this.classList.add(...names);
|
|
408
|
-
}
|
|
409
|
-
// @ts-ignore
|
|
410
|
-
get style() {
|
|
411
|
-
// @ts-ignore
|
|
412
|
-
return this._styleref;
|
|
413
|
-
}
|
|
414
229
|
}
|
|
415
|
-
// @ts-ignore
|
|
416
230
|
customElements.define("base-br-element", BreakElement, { extends: "br" });
|
|
417
231
|
export class TableElement extends HTMLTableElement {
|
|
418
|
-
_styleref = new CSSStyleref(super.style);
|
|
419
232
|
constructor(optional) {
|
|
420
233
|
super();
|
|
421
234
|
Component.applyDate(optional, this);
|
|
422
235
|
}
|
|
423
|
-
onInit() { }
|
|
424
|
-
addClasName(...names) {
|
|
425
|
-
this.classList.add(...names);
|
|
426
|
-
}
|
|
427
236
|
addRow(...rows) {
|
|
428
237
|
rows.forEach((row) => {
|
|
429
238
|
this.appendChild(row);
|
|
430
239
|
});
|
|
431
240
|
}
|
|
432
|
-
// @ts-ignore
|
|
433
|
-
get style() {
|
|
434
|
-
// @ts-ignore
|
|
435
|
-
return this._styleref;
|
|
436
|
-
}
|
|
437
241
|
}
|
|
438
|
-
// @ts-ignore
|
|
439
242
|
customElements.define("base-table-element", TableElement, { extends: "table" });
|
|
440
243
|
export class TableRowElement extends HTMLTableRowElement {
|
|
441
|
-
_styleref = new CSSStyleref(super.style);
|
|
442
244
|
constructor(optional) {
|
|
443
245
|
super();
|
|
444
246
|
Component.applyDate(optional, this);
|
|
445
247
|
}
|
|
446
|
-
onInit() { }
|
|
447
|
-
addClasName(...names) {
|
|
448
|
-
this.classList.add(...names);
|
|
449
|
-
}
|
|
450
|
-
// @ts-ignore
|
|
451
|
-
get style() {
|
|
452
|
-
// @ts-ignore
|
|
453
|
-
return this._styleref;
|
|
454
|
-
}
|
|
455
248
|
addCell(...cells) {
|
|
456
249
|
cells.forEach((cell) => {
|
|
457
250
|
this.appendChild(cell);
|
|
458
251
|
});
|
|
459
252
|
}
|
|
460
253
|
}
|
|
461
|
-
// @ts-ignore
|
|
462
254
|
customElements.define("base-tr-element", TableRowElement, { extends: "tr" });
|
|
463
255
|
export class TableCellElement extends HTMLTableCellElement {
|
|
464
|
-
_styleref = new CSSStyleref(super.style);
|
|
465
256
|
constructor(optional) {
|
|
466
257
|
super();
|
|
467
258
|
Component.applyDate(optional, this);
|
|
468
259
|
}
|
|
469
|
-
onInit() { }
|
|
470
|
-
append(...childs) {
|
|
471
|
-
throw new Error("Method not implemented.");
|
|
472
|
-
}
|
|
473
|
-
addClasName(...names) {
|
|
474
|
-
this.classList.add(...names);
|
|
475
|
-
}
|
|
476
|
-
// @ts-ignore
|
|
477
|
-
get style() {
|
|
478
|
-
// @ts-ignore
|
|
479
|
-
return this._styleref;
|
|
480
|
-
}
|
|
481
260
|
}
|
|
482
|
-
// @ts-ignore
|
|
483
261
|
customElements.define("base-td-element", TableCellElement, { extends: "td" });
|
|
484
262
|
export class InputElement extends HTMLInputElement {
|
|
485
|
-
_styleref = new CSSStyleref(super.style);
|
|
486
263
|
constructor(optional) {
|
|
487
264
|
super();
|
|
488
265
|
const v = optional?.value;
|
|
@@ -500,20 +277,9 @@ export class InputElement extends HTMLInputElement {
|
|
|
500
277
|
}
|
|
501
278
|
}
|
|
502
279
|
}
|
|
503
|
-
onInit() { }
|
|
504
|
-
addClasName(...names) {
|
|
505
|
-
this.classList.add(...names);
|
|
506
|
-
}
|
|
507
|
-
// @ts-ignore
|
|
508
|
-
get style() {
|
|
509
|
-
// @ts-ignore
|
|
510
|
-
return this._styleref;
|
|
511
|
-
}
|
|
512
280
|
}
|
|
513
|
-
// @ts-ignore
|
|
514
281
|
customElements.define("base-input-element", InputElement, { extends: "input" });
|
|
515
282
|
export class ButtonElement extends HTMLButtonElement {
|
|
516
|
-
_styleref = new CSSStyleref(super.style);
|
|
517
283
|
constructor(optional) {
|
|
518
284
|
super();
|
|
519
285
|
const type = optional?.type;
|
|
@@ -526,184 +292,79 @@ export class ButtonElement extends HTMLButtonElement {
|
|
|
526
292
|
if (optional?.multiple)
|
|
527
293
|
this.multiple = optional.multiple;
|
|
528
294
|
}
|
|
529
|
-
onInit() { }
|
|
530
|
-
addClasName(...names) {
|
|
531
|
-
this.classList.add(...names);
|
|
532
|
-
}
|
|
533
|
-
// @ts-ignore
|
|
534
|
-
get style() {
|
|
535
|
-
// @ts-ignore
|
|
536
|
-
return this._styleref;
|
|
537
|
-
}
|
|
538
295
|
// @ts-ignore
|
|
539
296
|
set type(value) {
|
|
540
297
|
// @ts-ignore
|
|
541
298
|
super.type = value;
|
|
542
299
|
}
|
|
543
300
|
}
|
|
544
|
-
// @ts-ignore
|
|
545
301
|
customElements.define("base-button-element", ButtonElement, {
|
|
546
302
|
extends: "button",
|
|
547
303
|
});
|
|
548
304
|
export class TextAreaElement extends HTMLTextAreaElement {
|
|
549
|
-
_styleref = new CSSStyleref(super.style);
|
|
550
305
|
constructor(optional) {
|
|
551
306
|
super();
|
|
552
307
|
Component.applyDate(optional, this);
|
|
553
308
|
}
|
|
554
|
-
onInit() { }
|
|
555
|
-
addClasName(...names) {
|
|
556
|
-
this.classList.add(...names);
|
|
557
|
-
}
|
|
558
|
-
// @ts-ignore
|
|
559
|
-
get style() {
|
|
560
|
-
// @ts-ignore
|
|
561
|
-
return this._styleref;
|
|
562
|
-
}
|
|
563
309
|
}
|
|
564
|
-
// @ts-ignore
|
|
565
310
|
customElements.define("base-textarea-element", TextAreaElement, {
|
|
566
311
|
extends: "textarea",
|
|
567
312
|
});
|
|
568
313
|
export class LabelElement extends HTMLLabelElement {
|
|
569
|
-
_styleref = new CSSStyleref(super.style);
|
|
570
314
|
constructor(optional) {
|
|
571
315
|
super();
|
|
572
316
|
Component.applyDate(optional, this);
|
|
573
317
|
}
|
|
574
|
-
onInit() { }
|
|
575
|
-
addClasName(...names) {
|
|
576
|
-
this.classList.add(...names);
|
|
577
|
-
}
|
|
578
|
-
// set innerHTML(value: string | ref<string>) {
|
|
579
|
-
// if (value instanceof RefString) {
|
|
580
|
-
// value.refTarget.subscriber(this, "innerHTML", value.refPropertyKey);
|
|
581
|
-
// } else if (typeof value !== "string") value.subscriber(this, "innerHTML");
|
|
582
|
-
// else super.innerHTML = value;
|
|
583
|
-
// }
|
|
584
|
-
// @ts-ignore
|
|
585
|
-
get style() {
|
|
586
|
-
// @ts-ignore
|
|
587
|
-
return this._styleref;
|
|
588
|
-
}
|
|
589
318
|
}
|
|
590
|
-
// @ts-ignore
|
|
591
319
|
customElements.define("base-label-element", LabelElement, { extends: "label" });
|
|
592
320
|
export class SelectElement extends HTMLSelectElement {
|
|
593
|
-
_styleref = new CSSStyleref(super.style);
|
|
594
321
|
constructor(optional) {
|
|
595
322
|
super();
|
|
596
323
|
Component.applyDate(optional, this);
|
|
597
324
|
}
|
|
598
|
-
onInit() { }
|
|
599
|
-
addClasName(...names) {
|
|
600
|
-
this.classList.add(...names);
|
|
601
|
-
}
|
|
602
|
-
// @ts-ignore
|
|
603
|
-
get style() {
|
|
604
|
-
// @ts-ignore
|
|
605
|
-
return this._styleref;
|
|
606
|
-
}
|
|
607
325
|
}
|
|
608
|
-
// @ts-ignore
|
|
609
326
|
customElements.define("base-select-element", SelectElement, {
|
|
610
327
|
extends: "select",
|
|
611
328
|
});
|
|
612
329
|
export class AudioElement extends HTMLAudioElement {
|
|
613
|
-
_styleref = new CSSStyleref(super.style);
|
|
614
330
|
constructor(optional) {
|
|
615
331
|
super();
|
|
616
332
|
Component.applyDate(optional, this);
|
|
617
333
|
}
|
|
618
|
-
onInit() { }
|
|
619
|
-
addClasName(...names) {
|
|
620
|
-
this.classList.add(...names);
|
|
621
|
-
}
|
|
622
|
-
// @ts-ignore
|
|
623
|
-
get style() {
|
|
624
|
-
// @ts-ignore
|
|
625
|
-
return this._styleref;
|
|
626
|
-
}
|
|
627
334
|
}
|
|
628
|
-
// @ts-ignore
|
|
629
335
|
customElements.define("base-audio-element", AudioElement, { extends: "audio" });
|
|
630
336
|
export class BoldElement extends HTMLElement {
|
|
631
|
-
_styleref = new CSSStyleref(super.style);
|
|
632
337
|
constructor(optional) {
|
|
633
338
|
super();
|
|
634
339
|
Component.applyDate(optional, this);
|
|
635
340
|
}
|
|
636
|
-
onInit() { }
|
|
637
|
-
addClasName(...names) {
|
|
638
|
-
this.classList.add(...names);
|
|
639
|
-
}
|
|
640
|
-
// @ts-ignore
|
|
641
|
-
get style() {
|
|
642
|
-
// @ts-ignore
|
|
643
|
-
return this._styleref;
|
|
644
|
-
}
|
|
645
341
|
}
|
|
646
|
-
// @ts-ignore
|
|
647
342
|
customElements.define("base-b-element", BoldElement, { extends: "b" });
|
|
648
343
|
// <base>
|
|
649
344
|
export class BaseElement extends HTMLElement {
|
|
650
|
-
_styleref = new CSSStyleref(super.style);
|
|
651
345
|
constructor(optional) {
|
|
652
346
|
super();
|
|
653
347
|
Component.applyDate(optional, this);
|
|
654
348
|
}
|
|
655
|
-
onInit() { }
|
|
656
|
-
addClasName(...names) {
|
|
657
|
-
this.classList.add(...names);
|
|
658
|
-
}
|
|
659
|
-
// @ts-ignore
|
|
660
|
-
get style() {
|
|
661
|
-
// @ts-ignore
|
|
662
|
-
return this._styleref;
|
|
663
|
-
}
|
|
664
349
|
}
|
|
665
|
-
// @ts-ignore
|
|
666
350
|
customElements.define("base-base-element", BaseElement, { extends: "base" });
|
|
667
351
|
// <body>
|
|
668
352
|
export class BodyElement extends HTMLBodyElement {
|
|
669
|
-
_styleref = new CSSStyleref(super.style);
|
|
670
353
|
constructor(optional) {
|
|
671
354
|
super();
|
|
672
355
|
Component.applyDate(optional, this);
|
|
673
356
|
}
|
|
674
|
-
onInit() { }
|
|
675
|
-
addClasName(...names) {
|
|
676
|
-
this.classList.add(...names);
|
|
677
|
-
}
|
|
678
|
-
// @ts-ignore
|
|
679
|
-
get style() {
|
|
680
|
-
// @ts-ignore
|
|
681
|
-
return this._styleref;
|
|
682
|
-
}
|
|
683
357
|
}
|
|
684
|
-
// @ts-ignore
|
|
685
358
|
customElements.define("base-body-element", BodyElement, { extends: "body" });
|
|
686
359
|
// <video>
|
|
687
360
|
export class VideoElement extends HTMLVideoElement {
|
|
688
|
-
_styleref = new CSSStyleref(super.style);
|
|
689
361
|
constructor(optional) {
|
|
690
362
|
super();
|
|
691
363
|
Component.applyDate(optional, this);
|
|
692
364
|
}
|
|
693
|
-
onInit() { }
|
|
694
|
-
addClasName(...names) {
|
|
695
|
-
this.classList.add(...names);
|
|
696
|
-
}
|
|
697
|
-
// @ts-ignore
|
|
698
|
-
get style() {
|
|
699
|
-
// @ts-ignore
|
|
700
|
-
return this._styleref;
|
|
701
|
-
}
|
|
702
365
|
}
|
|
703
|
-
// @ts-ignore
|
|
704
366
|
customElements.define("base-video-element", VideoElement, { extends: "video" });
|
|
705
367
|
export class CanvasElement extends HTMLCanvasElement {
|
|
706
|
-
_styleref = new CSSStyleref(super.style);
|
|
707
368
|
constructor(optional) {
|
|
708
369
|
super();
|
|
709
370
|
if (optional?.width)
|
|
@@ -712,191 +373,92 @@ export class CanvasElement extends HTMLCanvasElement {
|
|
|
712
373
|
this.height = optional.height;
|
|
713
374
|
Component.applyDate(optional, this);
|
|
714
375
|
}
|
|
715
|
-
onInit() { }
|
|
716
|
-
addClasName(...names) {
|
|
717
|
-
this.classList.add(...names);
|
|
718
|
-
}
|
|
719
|
-
// @ts-ignore
|
|
720
|
-
get style() {
|
|
721
|
-
// @ts-ignore
|
|
722
|
-
return this._styleref;
|
|
723
|
-
}
|
|
724
376
|
}
|
|
725
|
-
// @ts-ignore
|
|
726
377
|
customElements.define("base-canvas-element", CanvasElement, {
|
|
727
378
|
extends: "canvas",
|
|
728
379
|
});
|
|
729
380
|
// <caption>
|
|
730
381
|
export class CaptionElement extends HTMLTableCaptionElement {
|
|
731
|
-
_styleref = new CSSStyleref(super.style);
|
|
732
382
|
constructor(optional) {
|
|
733
383
|
super();
|
|
734
384
|
Component.applyDate(optional, this);
|
|
735
385
|
}
|
|
736
|
-
onInit() { }
|
|
737
|
-
addClasName(...names) {
|
|
738
|
-
this.classList.add(...names);
|
|
739
|
-
}
|
|
740
|
-
// @ts-ignore
|
|
741
|
-
get style() {
|
|
742
|
-
// @ts-ignore
|
|
743
|
-
return this._styleref;
|
|
744
|
-
}
|
|
745
386
|
}
|
|
746
|
-
// @ts-ignore
|
|
747
387
|
customElements.define("base-caption-element", CaptionElement, {
|
|
748
388
|
extends: "caption",
|
|
749
389
|
});
|
|
750
390
|
// <cite>
|
|
751
391
|
export class CiteElement extends HTMLElement {
|
|
752
|
-
_styleref = new CSSStyleref(super.style);
|
|
753
392
|
constructor(optional) {
|
|
754
393
|
super();
|
|
755
394
|
Component.applyDate(optional, this);
|
|
756
395
|
}
|
|
757
|
-
onInit() { }
|
|
758
|
-
addClasName(...names) {
|
|
759
|
-
this.classList.add(...names);
|
|
760
|
-
}
|
|
761
|
-
// @ts-ignore
|
|
762
|
-
get style() {
|
|
763
|
-
// @ts-ignore
|
|
764
|
-
return this._styleref;
|
|
765
|
-
}
|
|
766
396
|
}
|
|
767
|
-
// @ts-ignore
|
|
768
397
|
customElements.define("base-cite-element", CiteElement, { extends: "cite" });
|
|
769
398
|
// <code>
|
|
770
399
|
export class CodeElement extends HTMLElement {
|
|
771
|
-
_styleref = new CSSStyleref(super.style);
|
|
772
400
|
constructor(optional) {
|
|
773
401
|
super();
|
|
774
402
|
Component.applyDate(optional, this);
|
|
775
403
|
}
|
|
776
|
-
onInit() { }
|
|
777
|
-
addClasName(...names) {
|
|
778
|
-
this.classList.add(...names);
|
|
779
|
-
}
|
|
780
|
-
// @ts-ignore
|
|
781
|
-
get style() {
|
|
782
|
-
// @ts-ignore
|
|
783
|
-
return this._styleref;
|
|
784
|
-
}
|
|
785
404
|
}
|
|
786
|
-
// @ts-ignore
|
|
787
405
|
customElements.define("base-code-element", CodeElement, { extends: "code" });
|
|
788
406
|
// <col>
|
|
789
407
|
export class TableColElement extends HTMLTableColElement {
|
|
790
|
-
_styleref = new CSSStyleref(super.style);
|
|
791
408
|
constructor(optional) {
|
|
792
409
|
super();
|
|
793
410
|
if (optional?.span)
|
|
794
411
|
this.span = optional.span;
|
|
795
412
|
Component.applyDate(optional, this);
|
|
796
413
|
}
|
|
797
|
-
onInit() { }
|
|
798
|
-
addClasName(...names) {
|
|
799
|
-
this.classList.add(...names);
|
|
800
|
-
}
|
|
801
|
-
// @ts-ignore
|
|
802
|
-
get style() {
|
|
803
|
-
// @ts-ignore
|
|
804
|
-
return this._styleref;
|
|
805
|
-
}
|
|
806
414
|
}
|
|
807
|
-
// @ts-ignore
|
|
808
415
|
customElements.define("base-col-element", TableColElement, { extends: "col" });
|
|
809
416
|
// <colgroup>
|
|
810
417
|
export class TableColGroupElement extends HTMLTableColElement {
|
|
811
|
-
_styleref = new CSSStyleref(super.style);
|
|
812
418
|
constructor(optional) {
|
|
813
419
|
super();
|
|
814
420
|
if (optional?.span)
|
|
815
421
|
this.span = optional.span;
|
|
816
422
|
Component.applyDate(optional, this);
|
|
817
423
|
}
|
|
818
|
-
onInit() { }
|
|
819
|
-
addClasName(...names) {
|
|
820
|
-
this.classList.add(...names);
|
|
821
|
-
}
|
|
822
|
-
// @ts-ignore
|
|
823
|
-
get style() {
|
|
824
|
-
// @ts-ignore
|
|
825
|
-
return this._styleref;
|
|
826
|
-
}
|
|
827
424
|
}
|
|
828
|
-
// @ts-ignore
|
|
829
425
|
customElements.define("base-colgroup-element", TableColGroupElement, {
|
|
830
426
|
extends: "colgroup",
|
|
831
427
|
});
|
|
832
428
|
// <datalist>
|
|
833
429
|
export class DataListElement extends HTMLDataListElement {
|
|
834
|
-
_styleref = new CSSStyleref(super.style);
|
|
835
430
|
constructor(optional) {
|
|
836
431
|
super();
|
|
837
432
|
Component.applyDate(optional, this);
|
|
838
433
|
}
|
|
839
|
-
onInit() { }
|
|
840
|
-
addClasName(...names) {
|
|
841
|
-
this.classList.add(...names);
|
|
842
|
-
}
|
|
843
|
-
// @ts-ignore
|
|
844
|
-
get style() {
|
|
845
|
-
// @ts-ignore
|
|
846
|
-
return this._styleref;
|
|
847
|
-
}
|
|
848
434
|
}
|
|
849
|
-
// @ts-ignore
|
|
850
435
|
customElements.define("base-datalist-element", DataListElement, {
|
|
851
436
|
extends: "datalist",
|
|
852
437
|
});
|
|
853
438
|
// <dd>
|
|
854
439
|
export class DefinitionDescriptionElement extends HTMLElement {
|
|
855
|
-
_styleref = new CSSStyleref(super.style);
|
|
856
440
|
constructor(optional) {
|
|
857
441
|
super();
|
|
858
442
|
Component.applyDate(optional, this);
|
|
859
443
|
}
|
|
860
|
-
onInit() { }
|
|
861
|
-
addClasName(...names) {
|
|
862
|
-
this.classList.add(...names);
|
|
863
|
-
}
|
|
864
|
-
// @ts-ignore
|
|
865
|
-
get style() {
|
|
866
|
-
// @ts-ignore
|
|
867
|
-
return this._styleref;
|
|
868
|
-
}
|
|
869
444
|
}
|
|
870
|
-
// @ts-ignore
|
|
871
445
|
customElements.define("base-dd-element", DefinitionDescriptionElement, {
|
|
872
446
|
extends: "dd",
|
|
873
447
|
});
|
|
874
448
|
// <del>
|
|
875
449
|
export class DeletedTextElement extends HTMLModElement {
|
|
876
|
-
_styleref = new CSSStyleref(super.style);
|
|
877
450
|
constructor(optional) {
|
|
878
451
|
super();
|
|
879
452
|
if (optional?.cite)
|
|
880
453
|
this.cite = optional.cite;
|
|
881
454
|
Component.applyDate(optional, this);
|
|
882
455
|
}
|
|
883
|
-
onInit() { }
|
|
884
|
-
addClasName(...names) {
|
|
885
|
-
this.classList.add(...names);
|
|
886
|
-
}
|
|
887
|
-
// @ts-ignore
|
|
888
|
-
get style() {
|
|
889
|
-
// @ts-ignore
|
|
890
|
-
return this._styleref;
|
|
891
|
-
}
|
|
892
456
|
}
|
|
893
|
-
// @ts-ignore
|
|
894
457
|
customElements.define("base-del-element", DeletedTextElement, {
|
|
895
458
|
extends: "del",
|
|
896
459
|
});
|
|
897
460
|
// <details>
|
|
898
461
|
export class DetailsElement extends HTMLDetailsElement {
|
|
899
|
-
_styleref = new CSSStyleref(super.style);
|
|
900
462
|
constructor(optional) {
|
|
901
463
|
super();
|
|
902
464
|
Component.applyDate(optional, this);
|
|
@@ -911,70 +473,37 @@ export class DetailsElement extends HTMLDetailsElement {
|
|
|
911
473
|
}
|
|
912
474
|
}
|
|
913
475
|
}
|
|
914
|
-
onInit() { }
|
|
915
|
-
addClasName(...names) {
|
|
916
|
-
this.classList.add(...names);
|
|
917
|
-
}
|
|
918
|
-
// @ts-ignore
|
|
919
|
-
get style() {
|
|
920
|
-
// @ts-ignore
|
|
921
|
-
return this._styleref;
|
|
922
|
-
}
|
|
923
476
|
setSummary(summary) {
|
|
924
477
|
this.querySelector("summary")?.remove();
|
|
925
478
|
this.appendChild(summary);
|
|
926
479
|
}
|
|
927
480
|
}
|
|
928
|
-
// @ts-ignore
|
|
929
481
|
customElements.define("base-details-element", DetailsElement, {
|
|
930
482
|
extends: "details",
|
|
931
483
|
});
|
|
932
484
|
// <dfn>
|
|
933
485
|
export class DefinitionElement extends HTMLElement {
|
|
934
|
-
_styleref = new CSSStyleref(super.style);
|
|
935
486
|
constructor(optional) {
|
|
936
487
|
super();
|
|
937
488
|
Component.applyDate(optional, this);
|
|
938
489
|
}
|
|
939
|
-
onInit() { }
|
|
940
|
-
addClasName(...names) {
|
|
941
|
-
this.classList.add(...names);
|
|
942
|
-
}
|
|
943
|
-
// @ts-ignore
|
|
944
|
-
get style() {
|
|
945
|
-
// @ts-ignore
|
|
946
|
-
return this._styleref;
|
|
947
|
-
}
|
|
948
490
|
}
|
|
949
|
-
// @ts-ignore
|
|
950
491
|
customElements.define("base-dfn-element", DefinitionElement, {
|
|
951
492
|
extends: "dfn",
|
|
952
493
|
});
|
|
953
494
|
// <dialog>
|
|
954
495
|
export class DialogElement extends HTMLDialogElement {
|
|
955
|
-
_styleref = new CSSStyleref(super.style);
|
|
956
496
|
constructor(optional) {
|
|
957
497
|
super();
|
|
958
498
|
Component.applyDate(optional, this);
|
|
959
499
|
this.open = optional.open == undefined ? true : optional.open;
|
|
960
500
|
}
|
|
961
|
-
onInit() { }
|
|
962
|
-
addClasName(...names) {
|
|
963
|
-
this.classList.add(...names);
|
|
964
|
-
}
|
|
965
|
-
// @ts-ignore
|
|
966
|
-
get style() {
|
|
967
|
-
// @ts-ignore
|
|
968
|
-
return this._styleref;
|
|
969
|
-
}
|
|
970
501
|
}
|
|
971
|
-
// @ts-ignore
|
|
972
502
|
customElements.define("base-dialog-element", DialogElement, {
|
|
973
503
|
extends: "dialog",
|
|
974
504
|
});
|
|
975
505
|
// <embed>
|
|
976
506
|
export class EmbedElement extends HTMLEmbedElement {
|
|
977
|
-
_styleref = new CSSStyleref(super.style);
|
|
978
507
|
constructor(optional) {
|
|
979
508
|
super();
|
|
980
509
|
if (optional?.height)
|
|
@@ -987,21 +516,10 @@ export class EmbedElement extends HTMLEmbedElement {
|
|
|
987
516
|
this.width = optional.width;
|
|
988
517
|
Component.applyDate(optional, this);
|
|
989
518
|
}
|
|
990
|
-
onInit() { }
|
|
991
|
-
addClasName(...names) {
|
|
992
|
-
this.classList.add(...names);
|
|
993
|
-
}
|
|
994
|
-
// @ts-ignore
|
|
995
|
-
get style() {
|
|
996
|
-
// @ts-ignore
|
|
997
|
-
return this._styleref;
|
|
998
|
-
}
|
|
999
519
|
}
|
|
1000
|
-
// @ts-ignore
|
|
1001
520
|
customElements.define("base-embed-element", EmbedElement, { extends: "embed" });
|
|
1002
521
|
// <fieldset>
|
|
1003
522
|
export class FieldSetElement extends HTMLFieldSetElement {
|
|
1004
|
-
_styleref = new CSSStyleref(super.style);
|
|
1005
523
|
constructor(optional) {
|
|
1006
524
|
super();
|
|
1007
525
|
Component.applyDate(optional, this);
|
|
@@ -1018,105 +536,50 @@ export class FieldSetElement extends HTMLFieldSetElement {
|
|
|
1018
536
|
}
|
|
1019
537
|
}
|
|
1020
538
|
}
|
|
1021
|
-
onInit() { }
|
|
1022
|
-
addClasName(...names) {
|
|
1023
|
-
this.classList.add(...names);
|
|
1024
|
-
}
|
|
1025
|
-
// @ts-ignore
|
|
1026
|
-
get style() {
|
|
1027
|
-
// @ts-ignore
|
|
1028
|
-
return this._styleref;
|
|
1029
|
-
}
|
|
1030
539
|
setLegend(legend) {
|
|
1031
540
|
this.querySelector("legend")?.remove();
|
|
1032
541
|
this.appendChild(legend);
|
|
1033
542
|
}
|
|
1034
543
|
}
|
|
1035
|
-
// @ts-ignore
|
|
1036
544
|
customElements.define("base-fieldset-element", FieldSetElement, {
|
|
1037
545
|
extends: "fieldset",
|
|
1038
546
|
});
|
|
1039
547
|
// <footer>
|
|
1040
548
|
export class FooterElement extends HTMLElement {
|
|
1041
|
-
_styleref = new CSSStyleref(super.style);
|
|
1042
549
|
constructor(optional) {
|
|
1043
550
|
super();
|
|
1044
551
|
Component.applyDate(optional, this);
|
|
1045
552
|
}
|
|
1046
|
-
onInit() { }
|
|
1047
|
-
addClasName(...names) {
|
|
1048
|
-
this.classList.add(...names);
|
|
1049
|
-
}
|
|
1050
|
-
// @ts-ignore
|
|
1051
|
-
get style() {
|
|
1052
|
-
// @ts-ignore
|
|
1053
|
-
return this._styleref;
|
|
1054
|
-
}
|
|
1055
553
|
}
|
|
1056
|
-
// @ts-ignore
|
|
1057
554
|
customElements.define("base-footer-element", FooterElement, {
|
|
1058
555
|
extends: "footer",
|
|
1059
556
|
});
|
|
1060
557
|
export class FormElement extends HTMLFormElement {
|
|
1061
|
-
_styleref = new CSSStyleref(super.style);
|
|
1062
558
|
constructor(optional) {
|
|
1063
559
|
super();
|
|
1064
560
|
Component.applyDate(optional, this);
|
|
1065
561
|
}
|
|
1066
|
-
onInit() { }
|
|
1067
|
-
addClasName(...names) {
|
|
1068
|
-
this.classList.add(...names);
|
|
1069
|
-
}
|
|
1070
|
-
// @ts-ignore
|
|
1071
|
-
get style() {
|
|
1072
|
-
// @ts-ignore
|
|
1073
|
-
return this._styleref;
|
|
1074
|
-
}
|
|
1075
562
|
}
|
|
1076
|
-
// @ts-ignore
|
|
1077
563
|
customElements.define("base-form-element", FormElement, { extends: "form" });
|
|
1078
564
|
export class H1Element extends HTMLHeadingElement {
|
|
1079
|
-
_styleref = new CSSStyleref(super.style);
|
|
1080
565
|
constructor(optional) {
|
|
1081
566
|
super();
|
|
1082
567
|
Component.applyDate(optional, this);
|
|
1083
568
|
if (optional?.text)
|
|
1084
569
|
this.innerText = optional.text.toString();
|
|
1085
570
|
}
|
|
1086
|
-
onInit() { }
|
|
1087
|
-
addClasName(...names) {
|
|
1088
|
-
this.classList.add(...names);
|
|
1089
|
-
}
|
|
1090
|
-
// @ts-ignore
|
|
1091
|
-
get style() {
|
|
1092
|
-
// @ts-ignore
|
|
1093
|
-
return this._styleref;
|
|
1094
|
-
}
|
|
1095
571
|
}
|
|
1096
|
-
// @ts-ignore
|
|
1097
572
|
customElements.define("base-h1-element", H1Element, { extends: "h1" });
|
|
1098
573
|
export class H2Element extends HTMLHeadingElement {
|
|
1099
|
-
_styleref = new CSSStyleref(super.style);
|
|
1100
574
|
constructor(optional) {
|
|
1101
575
|
super();
|
|
1102
576
|
Component.applyDate(optional, this);
|
|
1103
577
|
if (optional?.text)
|
|
1104
578
|
this.innerText = optional.text.toString();
|
|
1105
579
|
}
|
|
1106
|
-
onInit() { }
|
|
1107
|
-
addClasName(...names) {
|
|
1108
|
-
this.classList.add(...names);
|
|
1109
|
-
}
|
|
1110
|
-
// @ts-ignore
|
|
1111
|
-
get style() {
|
|
1112
|
-
// @ts-ignore
|
|
1113
|
-
return this._styleref;
|
|
1114
|
-
}
|
|
1115
580
|
}
|
|
1116
|
-
// @ts-ignore
|
|
1117
581
|
customElements.define("base-h2-element", H2Element, { extends: "h2" });
|
|
1118
582
|
export class H3Element extends HTMLHeadingElement {
|
|
1119
|
-
_styleref = new CSSStyleref(super.style);
|
|
1120
583
|
constructor(optional) {
|
|
1121
584
|
super();
|
|
1122
585
|
Component.applyDate(optional, this);
|
|
@@ -1132,17 +595,7 @@ export class H3Element extends HTMLHeadingElement {
|
|
|
1132
595
|
else
|
|
1133
596
|
this.innerText = value;
|
|
1134
597
|
}
|
|
1135
|
-
onInit() { }
|
|
1136
|
-
addClasName(...names) {
|
|
1137
|
-
this.classList.add(...names);
|
|
1138
|
-
}
|
|
1139
|
-
// @ts-ignore
|
|
1140
|
-
get style() {
|
|
1141
|
-
// @ts-ignore
|
|
1142
|
-
return this._styleref;
|
|
1143
|
-
}
|
|
1144
598
|
}
|
|
1145
|
-
// @ts-ignore
|
|
1146
599
|
customElements.define("base-h3-element", H3Element, { extends: "h3" });
|
|
1147
600
|
export class H4Element extends H3Element {
|
|
1148
601
|
constructor(optional) {
|
|
@@ -1156,7 +609,6 @@ export class H4Element extends H3Element {
|
|
|
1156
609
|
this.classList.add(...names);
|
|
1157
610
|
}
|
|
1158
611
|
}
|
|
1159
|
-
// @ts-ignore
|
|
1160
612
|
customElements.define("base-h4-element", H4Element, { extends: "h4" });
|
|
1161
613
|
export class H5Element extends H3Element {
|
|
1162
614
|
constructor(optional) {
|
|
@@ -1170,7 +622,6 @@ export class H5Element extends H3Element {
|
|
|
1170
622
|
this.classList.add(...names);
|
|
1171
623
|
}
|
|
1172
624
|
}
|
|
1173
|
-
// @ts-ignore
|
|
1174
625
|
customElements.define("base-h5-element", H5Element, { extends: "h5" });
|
|
1175
626
|
export class H6Element extends H3Element {
|
|
1176
627
|
constructor(optional) {
|
|
@@ -1184,99 +635,53 @@ export class H6Element extends H3Element {
|
|
|
1184
635
|
this.classList.add(...names);
|
|
1185
636
|
}
|
|
1186
637
|
}
|
|
1187
|
-
// @ts-ignore
|
|
1188
638
|
customElements.define("base-h6-element", H6Element, { extends: "h6" });
|
|
1189
639
|
// <head>
|
|
1190
640
|
export class HeadElement extends HTMLHeadElement {
|
|
1191
|
-
_styleref = new CSSStyleref(super.style);
|
|
1192
641
|
constructor(optional) {
|
|
1193
642
|
super();
|
|
1194
643
|
Component.applyDate(optional, this);
|
|
1195
644
|
}
|
|
1196
|
-
onInit() { }
|
|
1197
|
-
addClasName(...names) {
|
|
1198
|
-
this.classList.add(...names);
|
|
1199
|
-
}
|
|
1200
|
-
// @ts-ignore
|
|
1201
|
-
get style() {
|
|
1202
|
-
// @ts-ignore
|
|
1203
|
-
return this._styleref;
|
|
1204
|
-
}
|
|
1205
645
|
}
|
|
1206
|
-
// @ts-ignore
|
|
1207
646
|
customElements.define("base-head-element", HeadElement, { extends: "head" });
|
|
1208
647
|
// <header>
|
|
1209
648
|
export class HeaderElement extends HTMLElement {
|
|
1210
|
-
_styleref = new CSSStyleref(super.style);
|
|
1211
649
|
constructor(optional) {
|
|
1212
650
|
super();
|
|
1213
651
|
Component.applyDate(optional, this);
|
|
1214
652
|
}
|
|
1215
|
-
onInit() { }
|
|
1216
|
-
addClasName(...names) {
|
|
1217
|
-
this.classList.add(...names);
|
|
1218
|
-
}
|
|
1219
|
-
// @ts-ignore
|
|
1220
|
-
get style() {
|
|
1221
|
-
// @ts-ignore
|
|
1222
|
-
return this._styleref;
|
|
1223
|
-
}
|
|
1224
653
|
}
|
|
1225
|
-
// @ts-ignore
|
|
1226
654
|
customElements.define("base-header-element", HeaderElement, {
|
|
1227
655
|
extends: "header",
|
|
1228
656
|
});
|
|
1229
657
|
// <hr>
|
|
1230
658
|
export class HorizontalRuleElement extends HTMLHRElement {
|
|
1231
|
-
_styleref = new CSSStyleref(super.style);
|
|
1232
659
|
constructor(optional) {
|
|
1233
660
|
super();
|
|
1234
661
|
Component.applyDate(optional, this);
|
|
1235
662
|
}
|
|
1236
|
-
onInit() { }
|
|
1237
|
-
addClasName(...names) {
|
|
1238
|
-
this.classList.add(...names);
|
|
1239
|
-
}
|
|
1240
|
-
// @ts-ignore
|
|
1241
|
-
get style() {
|
|
1242
|
-
// @ts-ignore
|
|
1243
|
-
return this._styleref;
|
|
1244
|
-
}
|
|
1245
663
|
}
|
|
1246
|
-
// @ts-ignore
|
|
1247
664
|
customElements.define("base-hr-element", HorizontalRuleElement, {
|
|
1248
665
|
extends: "hr",
|
|
1249
666
|
});
|
|
1250
667
|
// <html>
|
|
1251
668
|
export class HtmlElement extends HTMLHtmlElement {
|
|
1252
|
-
_styleref = new CSSStyleref(super.style);
|
|
1253
669
|
constructor(optional) {
|
|
1254
670
|
super();
|
|
1255
671
|
if (optional?.manifest)
|
|
1256
672
|
this.manifest = optional.manifest;
|
|
1257
673
|
Component.applyDate(optional, this);
|
|
1258
674
|
}
|
|
1259
|
-
onInit() { }
|
|
1260
|
-
addClasName(...names) {
|
|
1261
|
-
this.classList.add(...names);
|
|
1262
|
-
}
|
|
1263
675
|
set manifest(value) {
|
|
1264
676
|
this.setAttribute("manifest", value);
|
|
1265
677
|
}
|
|
1266
678
|
get manifest() {
|
|
1267
679
|
return this.getAttribute("manifest");
|
|
1268
680
|
}
|
|
1269
|
-
// @ts-ignore
|
|
1270
|
-
get style() {
|
|
1271
|
-
// @ts-ignore
|
|
1272
|
-
return this._styleref;
|
|
1273
|
-
}
|
|
1274
681
|
}
|
|
1275
|
-
// @ts-ignore
|
|
1276
682
|
customElements.define("base-html-element", HtmlElement, { extends: "html" });
|
|
1277
683
|
// <iframe>
|
|
1278
684
|
export class IFrameElement extends HTMLIFrameElement {
|
|
1279
|
-
_styleref = new CSSStyleref(super.style);
|
|
1280
685
|
constructor(optional) {
|
|
1281
686
|
super();
|
|
1282
687
|
if (optional?.allow)
|
|
@@ -1335,61 +740,19 @@ export class IFrameElement extends HTMLIFrameElement {
|
|
|
1335
740
|
get referrerpolicy() {
|
|
1336
741
|
return this.getAttribute("referrerpolicy");
|
|
1337
742
|
}
|
|
1338
|
-
// public set sandbox(
|
|
1339
|
-
// value:
|
|
1340
|
-
// | "allow-downloads-without-user-activation"
|
|
1341
|
-
// | "allow-forms"
|
|
1342
|
-
// | "allow-modals"
|
|
1343
|
-
// | "allow-orientation-lock"
|
|
1344
|
-
// | "allow-pointer-lock"
|
|
1345
|
-
// | "allow-popups"
|
|
1346
|
-
// | "allow-popups-to-escape-sandbox"
|
|
1347
|
-
// | "allow-presentation"
|
|
1348
|
-
// | "allow-same-origin"
|
|
1349
|
-
// | "allow-scripts"
|
|
1350
|
-
// | "allow-storage-access-by-user-activation"
|
|
1351
|
-
// | "allow-top-navigation"
|
|
1352
|
-
// | "allow-top-navigation-by-user-activation",
|
|
1353
|
-
// ) {
|
|
1354
|
-
// this.setAttribute("sandbox", value);
|
|
1355
|
-
// }
|
|
1356
|
-
// public get sandbox(): string {
|
|
1357
|
-
// return this.getAttribute("sandbox");
|
|
1358
|
-
// }
|
|
1359
|
-
onInit() { }
|
|
1360
|
-
addClasName(...names) {
|
|
1361
|
-
this.classList.add(...names);
|
|
1362
|
-
}
|
|
1363
|
-
// @ts-ignore
|
|
1364
|
-
get style() {
|
|
1365
|
-
// @ts-ignore
|
|
1366
|
-
return this._styleref;
|
|
1367
|
-
}
|
|
1368
743
|
}
|
|
1369
|
-
// @ts-ignore
|
|
1370
744
|
customElements.define("base-iframe-element", IFrameElement, {
|
|
1371
745
|
extends: "iframe",
|
|
1372
746
|
});
|
|
1373
747
|
// <legend>
|
|
1374
748
|
export class LegendElement extends HTMLLegendElement {
|
|
1375
|
-
_styleref = new CSSStyleref(super.style);
|
|
1376
749
|
constructor(optional) {
|
|
1377
750
|
super();
|
|
1378
751
|
Component.applyDate(optional, this);
|
|
1379
752
|
if (optional?.value)
|
|
1380
753
|
this.innerHTML = optional.value;
|
|
1381
754
|
}
|
|
1382
|
-
onInit() { }
|
|
1383
|
-
addClasName(...names) {
|
|
1384
|
-
this.classList.add(...names);
|
|
1385
|
-
}
|
|
1386
|
-
// @ts-ignore
|
|
1387
|
-
get style() {
|
|
1388
|
-
// @ts-ignore
|
|
1389
|
-
return this._styleref;
|
|
1390
|
-
}
|
|
1391
755
|
}
|
|
1392
|
-
// @ts-ignore
|
|
1393
756
|
customElements.define("base-legend-element", LegendElement, {
|
|
1394
757
|
extends: "legend",
|
|
1395
758
|
});
|
|
@@ -1403,11 +766,6 @@ export class SvgElement extends HTMLObjectElement {
|
|
|
1403
766
|
this.height = optional.height;
|
|
1404
767
|
this.setAttribute("type", "image/svg+xml");
|
|
1405
768
|
}
|
|
1406
|
-
onInit() { }
|
|
1407
|
-
unmount() { }
|
|
1408
|
-
addClasName(...names) {
|
|
1409
|
-
this.classList.add(...names);
|
|
1410
|
-
}
|
|
1411
769
|
set color(value) {
|
|
1412
770
|
const pathElement = this.contentDocument?.querySelector("path");
|
|
1413
771
|
if (pathElement)
|
|
@@ -1432,78 +790,38 @@ export class SvgElement extends HTMLObjectElement {
|
|
|
1432
790
|
return "";
|
|
1433
791
|
}
|
|
1434
792
|
}
|
|
1435
|
-
// @ts-ignore
|
|
1436
793
|
customElements.define("base-svg-element", SvgElement, { extends: "object" });
|
|
1437
794
|
export class NavElement extends HTMLElement {
|
|
1438
|
-
_styleref = new CSSStyleref(super.style);
|
|
1439
795
|
constructor(optional) {
|
|
1440
796
|
super();
|
|
1441
797
|
Component.applyDate(optional, this);
|
|
1442
798
|
}
|
|
1443
|
-
onInit() { }
|
|
1444
|
-
addClasName(...names) {
|
|
1445
|
-
this.classList.add(...names);
|
|
1446
|
-
}
|
|
1447
|
-
// @ts-ignore
|
|
1448
|
-
get style() {
|
|
1449
|
-
// @ts-ignore
|
|
1450
|
-
return this._styleref;
|
|
1451
|
-
}
|
|
1452
799
|
}
|
|
1453
|
-
// @ts-ignore
|
|
1454
800
|
customElements.define("base-nav-element", NavElement, { extends: "nav" });
|
|
1455
801
|
export class SectionElement extends HTMLElement {
|
|
1456
|
-
_styleref = new CSSStyleref(super.style);
|
|
1457
802
|
constructor(optional) {
|
|
1458
803
|
super();
|
|
1459
804
|
Component.applyDate(optional, this);
|
|
1460
805
|
}
|
|
1461
|
-
onInit() { }
|
|
1462
|
-
addClasName(...names) {
|
|
1463
|
-
this.classList.add(...names);
|
|
1464
|
-
}
|
|
1465
|
-
// @ts-ignore
|
|
1466
|
-
get style() {
|
|
1467
|
-
// @ts-ignore
|
|
1468
|
-
return this._styleref;
|
|
1469
|
-
}
|
|
1470
806
|
}
|
|
1471
|
-
// @ts-ignore
|
|
1472
807
|
customElements.define("base-section-element", SectionElement, {
|
|
1473
808
|
extends: "section",
|
|
1474
809
|
});
|
|
1475
810
|
export class ArticleElement extends HTMLElement {
|
|
1476
|
-
_styleref = new CSSStyleref(super.style);
|
|
1477
811
|
constructor(optional) {
|
|
1478
812
|
super();
|
|
1479
813
|
Component.applyDate(optional, this);
|
|
1480
814
|
}
|
|
1481
|
-
onInit() { }
|
|
1482
|
-
addClasName(...names) {
|
|
1483
|
-
this.classList.add(...names);
|
|
1484
|
-
}
|
|
1485
|
-
// @ts-ignore
|
|
1486
|
-
get style() {
|
|
1487
|
-
// @ts-ignore
|
|
1488
|
-
return this._styleref;
|
|
1489
|
-
}
|
|
1490
815
|
}
|
|
1491
|
-
// @ts-ignore
|
|
1492
816
|
customElements.define("base-article-element", ArticleElement, {
|
|
1493
817
|
extends: "article",
|
|
1494
818
|
});
|
|
1495
819
|
export class SummaryElement extends HTMLElement {
|
|
1496
|
-
// private _styleref: CSSStyleref = new CSSStyleref(super.style);
|
|
1497
820
|
constructor(optional) {
|
|
1498
821
|
super();
|
|
1499
822
|
Component.applyDate(optional, this);
|
|
1500
823
|
}
|
|
1501
|
-
onInit() { }
|
|
1502
|
-
addClasName(...names) {
|
|
1503
|
-
this.classList.add(...names);
|
|
1504
|
-
}
|
|
1505
824
|
}
|
|
1506
|
-
// @ts-ignore
|
|
1507
825
|
customElements.define("base-summary-element", SummaryElement, {
|
|
1508
826
|
extends: "summary",
|
|
1509
827
|
});
|
|
@@ -1512,6 +830,5 @@ export class ILayout extends Component {
|
|
|
1512
830
|
super(optional);
|
|
1513
831
|
}
|
|
1514
832
|
}
|
|
1515
|
-
// @ts-ignore
|
|
1516
833
|
customElements.define("base-layout-element", ILayout);
|
|
1517
834
|
//# sourceMappingURL=Elements.js.map
|