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