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
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.H6Element = exports.H5Element = exports.H4Element = exports.H3Element = exports.H2Element = exports.H1Element = exports.FormElement = exports.FooterElement = exports.FieldSetElement = exports.EmbedElement = exports.DialogElement = exports.DefinitionElement = exports.DetailsElement = exports.DeletedTextElement = exports.DefinitionDescriptionElement = exports.DataListElement = exports.TableColGroupElement = exports.TableColElement = exports.CodeElement = exports.CiteElement = exports.CaptionElement = exports.CanvasElement = exports.VideoElement = exports.BodyElement = exports.BaseElement = exports.BoldElement = exports.AudioElement = exports.SelectElement = exports.LabelElement = exports.TextAreaElement = exports.ButtonElement = exports.InputElement = exports.TableCellElement = exports.TableRowElement = exports.TableElement = exports.BreakElement = exports.EmElement = exports.StrongElement = exports.SpanElement = exports.MainElement = exports.ListItemElement = exports.OrderedListElement = exports.UListElement = exports.ImageElement = exports.AreaElement = exports.AbbreviationElement = exports.AnchorElement = exports.ParagraphElement = exports.DivElement = exports.Component = void 0;
|
|
4
4
|
exports.ILayout = exports.SummaryElement = exports.ArticleElement = exports.SectionElement = exports.NavElement = exports.SvgElement = exports.LegendElement = exports.IFrameElement = exports.HtmlElement = exports.HorizontalRuleElement = exports.HeaderElement = exports.HeadElement = void 0;
|
|
5
5
|
const __1 = require("../..");
|
|
6
|
-
const CSSStyle_1 = require("./CSSStyle");
|
|
7
6
|
const Event_1 = require("./Event");
|
|
8
7
|
// 1. `<div>` - Para criar blocos de conteúdo genéricos.
|
|
9
8
|
// 2. `<p>` - Para parágrafos de texto.
|
|
@@ -36,32 +35,12 @@ const Event_1 = require("./Event");
|
|
|
36
35
|
// 29. `<footer>`, `<header>`, `<nav>`, `<main>`, `<section>`, `<article>` - Elementos semânticos de HTML5 para estruturação de página.
|
|
37
36
|
// 30. `<details>` e `<summary>` - Elementos de HTML5 para criar conteúdo expansível.
|
|
38
37
|
class Component extends HTMLElement {
|
|
39
|
-
|
|
38
|
+
//
|
|
40
39
|
constructor(optional) {
|
|
41
40
|
super();
|
|
42
41
|
if (optional != undefined)
|
|
43
42
|
this.setStyle(optional);
|
|
44
43
|
}
|
|
45
|
-
destructor() { }
|
|
46
|
-
onInit() { }
|
|
47
|
-
addClasName(...names) {
|
|
48
|
-
this.classList.add(...names);
|
|
49
|
-
}
|
|
50
|
-
setStyle(optional) {
|
|
51
|
-
Component.applyDate(optional, this);
|
|
52
|
-
}
|
|
53
|
-
// // @ts-ignore
|
|
54
|
-
// set innerHTML(value: string | ref<string>) {
|
|
55
|
-
// if (value instanceof RefString) {
|
|
56
|
-
// value.refTarget.subscriber(this, "innerHTML", value.refPropertyKey);
|
|
57
|
-
// } else if (typeof value !== "string") value.subscriber(this, "innerHTML");
|
|
58
|
-
// else super.innerHTML = value;
|
|
59
|
-
// }
|
|
60
|
-
// @ts-ignore
|
|
61
|
-
get style() {
|
|
62
|
-
// @ts-ignore
|
|
63
|
-
return this._styleref;
|
|
64
|
-
}
|
|
65
44
|
static applyDate(data, element) {
|
|
66
45
|
if (data != undefined) {
|
|
67
46
|
if (data.id) {
|
|
@@ -122,58 +101,24 @@ class Component extends HTMLElement {
|
|
|
122
101
|
}
|
|
123
102
|
}
|
|
124
103
|
exports.Component = Component;
|
|
125
|
-
// @ts-ignore
|
|
126
104
|
customElements.define("component-element", Component);
|
|
127
105
|
class DivElement extends HTMLDivElement {
|
|
128
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
129
|
-
Test = "teste";
|
|
130
106
|
constructor(optional) {
|
|
131
107
|
super();
|
|
132
108
|
Component.applyDate(optional, this);
|
|
133
109
|
}
|
|
134
|
-
onInit() { }
|
|
135
|
-
addClasName(...names) {
|
|
136
|
-
this.classList.add(...names);
|
|
137
|
-
}
|
|
138
|
-
// set innerHTML(value: string) {
|
|
139
|
-
// if (value.includes("v-for")) {
|
|
140
|
-
// const regex = /<\w+\s[^>]*?\bv-for\b[^>]*?>[\s\S]*?<\/\w+>/g;
|
|
141
|
-
// // Encontrar correspondências na string HTML
|
|
142
|
-
// const matches = value.match(regex);
|
|
143
|
-
// console.log("innerHTML: ", matches)
|
|
144
|
-
// }
|
|
145
|
-
// super.innerHTML = value;
|
|
146
|
-
// }
|
|
147
|
-
// @ts-ignore
|
|
148
|
-
get style() {
|
|
149
|
-
// @ts-ignore
|
|
150
|
-
return this._styleref;
|
|
151
|
-
}
|
|
152
110
|
}
|
|
153
111
|
exports.DivElement = DivElement;
|
|
154
|
-
// @ts-ignore
|
|
155
112
|
customElements.define("base-div-element", DivElement, { extends: "div" });
|
|
156
113
|
class ParagraphElement extends HTMLParagraphElement {
|
|
157
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
158
114
|
constructor(optional) {
|
|
159
115
|
super();
|
|
160
116
|
Component.applyDate(optional, this);
|
|
161
117
|
}
|
|
162
|
-
onInit() { }
|
|
163
|
-
addClasName(...names) {
|
|
164
|
-
this.classList.add(...names);
|
|
165
|
-
}
|
|
166
|
-
// @ts-ignore
|
|
167
|
-
get style() {
|
|
168
|
-
// @ts-ignore
|
|
169
|
-
return this._styleref;
|
|
170
|
-
}
|
|
171
118
|
}
|
|
172
119
|
exports.ParagraphElement = ParagraphElement;
|
|
173
|
-
// @ts-ignore
|
|
174
120
|
customElements.define("base-p-element", ParagraphElement, { extends: "p" });
|
|
175
121
|
class AnchorElement extends HTMLAnchorElement {
|
|
176
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
177
122
|
_rlink = "";
|
|
178
123
|
constructor(optional) {
|
|
179
124
|
super();
|
|
@@ -191,15 +136,6 @@ class AnchorElement extends HTMLAnchorElement {
|
|
|
191
136
|
}
|
|
192
137
|
});
|
|
193
138
|
}
|
|
194
|
-
onInit() { }
|
|
195
|
-
addClasName(...names) {
|
|
196
|
-
this.classList.add(...names);
|
|
197
|
-
}
|
|
198
|
-
// @ts-ignore
|
|
199
|
-
get style() {
|
|
200
|
-
// @ts-ignore
|
|
201
|
-
return this._styleref;
|
|
202
|
-
}
|
|
203
139
|
set rlink(link) {
|
|
204
140
|
this.href = link;
|
|
205
141
|
this._rlink = link;
|
|
@@ -209,51 +145,27 @@ class AnchorElement extends HTMLAnchorElement {
|
|
|
209
145
|
}
|
|
210
146
|
}
|
|
211
147
|
exports.AnchorElement = AnchorElement;
|
|
212
|
-
// @ts-ignore
|
|
213
148
|
customElements.define("base-a-element", AnchorElement, { extends: "a" });
|
|
214
149
|
class AbbreviationElement extends HTMLElement {
|
|
215
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
216
150
|
constructor(optional) {
|
|
217
151
|
super();
|
|
218
152
|
Component.applyDate(optional, this);
|
|
219
153
|
}
|
|
220
|
-
onInit() { }
|
|
221
|
-
addClasName(...names) {
|
|
222
|
-
this.classList.add(...names);
|
|
223
|
-
}
|
|
224
|
-
// @ts-ignore
|
|
225
|
-
get style() {
|
|
226
|
-
// @ts-ignore
|
|
227
|
-
return this._styleref;
|
|
228
|
-
}
|
|
229
154
|
}
|
|
230
155
|
exports.AbbreviationElement = AbbreviationElement;
|
|
231
|
-
// @ts-ignore
|
|
232
156
|
customElements.define("base-abbr-element", AbbreviationElement, {
|
|
233
157
|
extends: "abbr",
|
|
234
158
|
});
|
|
235
159
|
// area
|
|
236
160
|
class AreaElement extends HTMLAreaElement {
|
|
237
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
238
161
|
constructor(optional) {
|
|
239
162
|
super();
|
|
240
163
|
Component.applyDate(optional, this);
|
|
241
164
|
}
|
|
242
|
-
onInit() { }
|
|
243
|
-
addClasName(...names) {
|
|
244
|
-
this.classList.add(...names);
|
|
245
|
-
}
|
|
246
|
-
// @ts-ignore
|
|
247
|
-
get style() {
|
|
248
|
-
// @ts-ignore
|
|
249
|
-
return this._styleref;
|
|
250
|
-
}
|
|
251
165
|
}
|
|
252
166
|
exports.AreaElement = AreaElement;
|
|
253
|
-
// @ts-ignore
|
|
254
167
|
customElements.define("base-area-element", AreaElement, { extends: "area" });
|
|
255
168
|
class ImageElement extends HTMLImageElement {
|
|
256
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
257
169
|
constructor(optional) {
|
|
258
170
|
super();
|
|
259
171
|
this.className = "image-element";
|
|
@@ -261,216 +173,98 @@ class ImageElement extends HTMLImageElement {
|
|
|
261
173
|
if (optional?.src != undefined)
|
|
262
174
|
this.src = optional.src;
|
|
263
175
|
}
|
|
264
|
-
onInit() { }
|
|
265
|
-
addClasName(...names) {
|
|
266
|
-
this.classList.add(...names);
|
|
267
|
-
}
|
|
268
|
-
// @ts-ignore
|
|
269
|
-
get style() {
|
|
270
|
-
// @ts-ignore
|
|
271
|
-
return this._styleref;
|
|
272
|
-
}
|
|
273
176
|
}
|
|
274
177
|
exports.ImageElement = ImageElement;
|
|
275
|
-
// @ts-ignore
|
|
276
178
|
customElements.define("base-img-element", ImageElement, { extends: "img" });
|
|
277
179
|
class UListElement extends HTMLUListElement {
|
|
278
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
279
180
|
constructor(optional) {
|
|
280
181
|
super();
|
|
281
182
|
Component.applyDate(optional, this);
|
|
282
183
|
}
|
|
283
|
-
onInit() { }
|
|
284
|
-
addClasName(...names) {
|
|
285
|
-
this.classList.add(...names);
|
|
286
|
-
}
|
|
287
|
-
// @ts-ignore
|
|
288
|
-
get style() {
|
|
289
|
-
// @ts-ignore
|
|
290
|
-
return this._styleref;
|
|
291
|
-
}
|
|
292
184
|
}
|
|
293
185
|
exports.UListElement = UListElement;
|
|
294
|
-
// @ts-ignore
|
|
295
186
|
customElements.define("base-ul-element", UListElement, { extends: "ul" });
|
|
296
187
|
class OrderedListElement extends HTMLOListElement {
|
|
297
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
298
188
|
constructor(optional) {
|
|
299
189
|
super();
|
|
300
190
|
Component.applyDate(optional, this);
|
|
301
191
|
}
|
|
302
|
-
onInit() { }
|
|
303
|
-
addClasName(...names) {
|
|
304
|
-
this.classList.add(...names);
|
|
305
|
-
}
|
|
306
|
-
// @ts-ignore
|
|
307
|
-
get style() {
|
|
308
|
-
// @ts-ignore
|
|
309
|
-
return this._styleref;
|
|
310
|
-
}
|
|
311
192
|
}
|
|
312
193
|
exports.OrderedListElement = OrderedListElement;
|
|
313
|
-
// @ts-ignore
|
|
314
194
|
customElements.define("base-ol-element", OrderedListElement, { extends: "ol" });
|
|
315
195
|
class ListItemElement extends HTMLLIElement {
|
|
316
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
317
196
|
constructor(optional) {
|
|
318
197
|
super();
|
|
319
198
|
Component.applyDate(optional, this);
|
|
320
199
|
}
|
|
321
|
-
|
|
322
|
-
addClasName(...names) {
|
|
323
|
-
this.classList.add(...names);
|
|
324
|
-
}
|
|
325
|
-
// @ts-ignore
|
|
326
|
-
get style() {
|
|
327
|
-
// @ts-ignore
|
|
328
|
-
return this._styleref;
|
|
329
|
-
}
|
|
200
|
+
onSelect() { }
|
|
330
201
|
}
|
|
331
202
|
exports.ListItemElement = ListItemElement;
|
|
332
|
-
// @ts-ignore
|
|
333
203
|
customElements.define("base-li-element", ListItemElement, { extends: "li" });
|
|
334
204
|
class MainElement extends HTMLElement {
|
|
335
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
336
205
|
constructor(optional) {
|
|
337
206
|
super();
|
|
338
207
|
Component.applyDate(optional, this);
|
|
339
208
|
}
|
|
340
|
-
onInit() { }
|
|
341
|
-
addClasName(...names) {
|
|
342
|
-
this.classList.add(...names);
|
|
343
|
-
}
|
|
344
|
-
// @ts-ignore
|
|
345
|
-
get style() {
|
|
346
|
-
// @ts-ignore
|
|
347
|
-
return this._styleref;
|
|
348
|
-
}
|
|
349
209
|
}
|
|
350
210
|
exports.MainElement = MainElement;
|
|
351
|
-
// @ts-ignore
|
|
352
211
|
customElements.define("base-main-element", MainElement, { extends: "main" });
|
|
353
212
|
// export interface DataHeadingElement extends StyleOptional {
|
|
354
213
|
// text?: string | ref<string>;
|
|
355
214
|
// for?: string;
|
|
356
215
|
// }
|
|
357
216
|
class SpanElement extends HTMLSpanElement {
|
|
358
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
359
217
|
constructor(optional) {
|
|
360
218
|
super();
|
|
361
219
|
Component.applyDate(optional, this);
|
|
362
220
|
}
|
|
363
|
-
onInit() { }
|
|
364
|
-
addClasName(...names) {
|
|
365
|
-
this.classList.add(...names);
|
|
366
|
-
}
|
|
367
|
-
// @ts-ignore
|
|
368
|
-
get style() {
|
|
369
|
-
// @ts-ignore
|
|
370
|
-
return this._styleref;
|
|
371
|
-
}
|
|
372
221
|
}
|
|
373
222
|
exports.SpanElement = SpanElement;
|
|
374
|
-
// @ts-ignore
|
|
375
223
|
customElements.define("base-span-element", SpanElement, { extends: "span" });
|
|
376
224
|
class StrongElement extends HTMLSpanElement {
|
|
377
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
378
225
|
constructor(optional) {
|
|
379
226
|
super();
|
|
380
227
|
Component.applyDate(optional, this);
|
|
381
228
|
}
|
|
382
|
-
onInit() { }
|
|
383
|
-
addClasName(...names) {
|
|
384
|
-
this.classList.add(...names);
|
|
385
|
-
}
|
|
386
|
-
// @ts-ignore
|
|
387
|
-
get style() {
|
|
388
|
-
// @ts-ignore
|
|
389
|
-
return this._styleref;
|
|
390
|
-
}
|
|
391
229
|
}
|
|
392
230
|
exports.StrongElement = StrongElement;
|
|
393
|
-
// @ts-ignore
|
|
394
231
|
customElements.define("base-strong-element", StrongElement, {
|
|
395
232
|
extends: "strong",
|
|
396
233
|
});
|
|
397
234
|
class EmElement extends HTMLEmbedElement {
|
|
398
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
399
235
|
constructor(optional) {
|
|
400
236
|
super();
|
|
401
237
|
Component.applyDate(optional, this);
|
|
402
238
|
}
|
|
403
|
-
onInit() { }
|
|
404
|
-
addClasName(...names) {
|
|
405
|
-
this.classList.add(...names);
|
|
406
|
-
}
|
|
407
|
-
// @ts-ignore
|
|
408
|
-
get style() {
|
|
409
|
-
// @ts-ignore
|
|
410
|
-
return this._styleref;
|
|
411
|
-
}
|
|
412
239
|
}
|
|
413
240
|
exports.EmElement = EmElement;
|
|
414
|
-
// @ts-ignore
|
|
415
241
|
customElements.define("base-em-element", EmElement, { extends: "em" });
|
|
416
242
|
class BreakElement extends HTMLBRElement {
|
|
417
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
418
243
|
constructor(optional) {
|
|
419
244
|
super();
|
|
420
245
|
Component.applyDate(optional, this);
|
|
421
246
|
}
|
|
422
|
-
onInit() { }
|
|
423
|
-
addClasName(...names) {
|
|
424
|
-
this.classList.add(...names);
|
|
425
|
-
}
|
|
426
|
-
// @ts-ignore
|
|
427
|
-
get style() {
|
|
428
|
-
// @ts-ignore
|
|
429
|
-
return this._styleref;
|
|
430
|
-
}
|
|
431
247
|
}
|
|
432
248
|
exports.BreakElement = BreakElement;
|
|
433
|
-
// @ts-ignore
|
|
434
249
|
customElements.define("base-br-element", BreakElement, { extends: "br" });
|
|
435
250
|
class TableElement extends HTMLTableElement {
|
|
436
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
437
251
|
constructor(optional) {
|
|
438
252
|
super();
|
|
439
253
|
Component.applyDate(optional, this);
|
|
440
254
|
}
|
|
441
|
-
onInit() { }
|
|
442
|
-
addClasName(...names) {
|
|
443
|
-
this.classList.add(...names);
|
|
444
|
-
}
|
|
445
255
|
addRow(...rows) {
|
|
446
256
|
rows.forEach((row) => {
|
|
447
257
|
this.appendChild(row);
|
|
448
258
|
});
|
|
449
259
|
}
|
|
450
|
-
// @ts-ignore
|
|
451
|
-
get style() {
|
|
452
|
-
// @ts-ignore
|
|
453
|
-
return this._styleref;
|
|
454
|
-
}
|
|
455
260
|
}
|
|
456
261
|
exports.TableElement = TableElement;
|
|
457
|
-
// @ts-ignore
|
|
458
262
|
customElements.define("base-table-element", TableElement, { extends: "table" });
|
|
459
263
|
class TableRowElement extends HTMLTableRowElement {
|
|
460
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
461
264
|
constructor(optional) {
|
|
462
265
|
super();
|
|
463
266
|
Component.applyDate(optional, this);
|
|
464
267
|
}
|
|
465
|
-
onInit() { }
|
|
466
|
-
addClasName(...names) {
|
|
467
|
-
this.classList.add(...names);
|
|
468
|
-
}
|
|
469
|
-
// @ts-ignore
|
|
470
|
-
get style() {
|
|
471
|
-
// @ts-ignore
|
|
472
|
-
return this._styleref;
|
|
473
|
-
}
|
|
474
268
|
addCell(...cells) {
|
|
475
269
|
cells.forEach((cell) => {
|
|
476
270
|
this.appendChild(cell);
|
|
@@ -478,32 +272,16 @@ class TableRowElement extends HTMLTableRowElement {
|
|
|
478
272
|
}
|
|
479
273
|
}
|
|
480
274
|
exports.TableRowElement = TableRowElement;
|
|
481
|
-
// @ts-ignore
|
|
482
275
|
customElements.define("base-tr-element", TableRowElement, { extends: "tr" });
|
|
483
276
|
class TableCellElement extends HTMLTableCellElement {
|
|
484
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
485
277
|
constructor(optional) {
|
|
486
278
|
super();
|
|
487
279
|
Component.applyDate(optional, this);
|
|
488
280
|
}
|
|
489
|
-
onInit() { }
|
|
490
|
-
append(...childs) {
|
|
491
|
-
throw new Error("Method not implemented.");
|
|
492
|
-
}
|
|
493
|
-
addClasName(...names) {
|
|
494
|
-
this.classList.add(...names);
|
|
495
|
-
}
|
|
496
|
-
// @ts-ignore
|
|
497
|
-
get style() {
|
|
498
|
-
// @ts-ignore
|
|
499
|
-
return this._styleref;
|
|
500
|
-
}
|
|
501
281
|
}
|
|
502
282
|
exports.TableCellElement = TableCellElement;
|
|
503
|
-
// @ts-ignore
|
|
504
283
|
customElements.define("base-td-element", TableCellElement, { extends: "td" });
|
|
505
284
|
class InputElement extends HTMLInputElement {
|
|
506
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
507
285
|
constructor(optional) {
|
|
508
286
|
super();
|
|
509
287
|
const v = optional?.value;
|
|
@@ -521,21 +299,10 @@ class InputElement extends HTMLInputElement {
|
|
|
521
299
|
}
|
|
522
300
|
}
|
|
523
301
|
}
|
|
524
|
-
onInit() { }
|
|
525
|
-
addClasName(...names) {
|
|
526
|
-
this.classList.add(...names);
|
|
527
|
-
}
|
|
528
|
-
// @ts-ignore
|
|
529
|
-
get style() {
|
|
530
|
-
// @ts-ignore
|
|
531
|
-
return this._styleref;
|
|
532
|
-
}
|
|
533
302
|
}
|
|
534
303
|
exports.InputElement = InputElement;
|
|
535
|
-
// @ts-ignore
|
|
536
304
|
customElements.define("base-input-element", InputElement, { extends: "input" });
|
|
537
305
|
class ButtonElement extends HTMLButtonElement {
|
|
538
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
539
306
|
constructor(optional) {
|
|
540
307
|
super();
|
|
541
308
|
const type = optional?.type;
|
|
@@ -548,15 +315,6 @@ class ButtonElement extends HTMLButtonElement {
|
|
|
548
315
|
if (optional?.multiple)
|
|
549
316
|
this.multiple = optional.multiple;
|
|
550
317
|
}
|
|
551
|
-
onInit() { }
|
|
552
|
-
addClasName(...names) {
|
|
553
|
-
this.classList.add(...names);
|
|
554
|
-
}
|
|
555
|
-
// @ts-ignore
|
|
556
|
-
get style() {
|
|
557
|
-
// @ts-ignore
|
|
558
|
-
return this._styleref;
|
|
559
|
-
}
|
|
560
318
|
// @ts-ignore
|
|
561
319
|
set type(value) {
|
|
562
320
|
// @ts-ignore
|
|
@@ -564,177 +322,81 @@ class ButtonElement extends HTMLButtonElement {
|
|
|
564
322
|
}
|
|
565
323
|
}
|
|
566
324
|
exports.ButtonElement = ButtonElement;
|
|
567
|
-
// @ts-ignore
|
|
568
325
|
customElements.define("base-button-element", ButtonElement, {
|
|
569
326
|
extends: "button",
|
|
570
327
|
});
|
|
571
328
|
class TextAreaElement extends HTMLTextAreaElement {
|
|
572
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
573
329
|
constructor(optional) {
|
|
574
330
|
super();
|
|
575
331
|
Component.applyDate(optional, this);
|
|
576
332
|
}
|
|
577
|
-
onInit() { }
|
|
578
|
-
addClasName(...names) {
|
|
579
|
-
this.classList.add(...names);
|
|
580
|
-
}
|
|
581
|
-
// @ts-ignore
|
|
582
|
-
get style() {
|
|
583
|
-
// @ts-ignore
|
|
584
|
-
return this._styleref;
|
|
585
|
-
}
|
|
586
333
|
}
|
|
587
334
|
exports.TextAreaElement = TextAreaElement;
|
|
588
|
-
// @ts-ignore
|
|
589
335
|
customElements.define("base-textarea-element", TextAreaElement, {
|
|
590
336
|
extends: "textarea",
|
|
591
337
|
});
|
|
592
338
|
class LabelElement extends HTMLLabelElement {
|
|
593
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
594
339
|
constructor(optional) {
|
|
595
340
|
super();
|
|
596
341
|
Component.applyDate(optional, this);
|
|
597
342
|
}
|
|
598
|
-
onInit() { }
|
|
599
|
-
addClasName(...names) {
|
|
600
|
-
this.classList.add(...names);
|
|
601
|
-
}
|
|
602
|
-
// set innerHTML(value: string | ref<string>) {
|
|
603
|
-
// if (value instanceof RefString) {
|
|
604
|
-
// value.refTarget.subscriber(this, "innerHTML", value.refPropertyKey);
|
|
605
|
-
// } else if (typeof value !== "string") value.subscriber(this, "innerHTML");
|
|
606
|
-
// else super.innerHTML = value;
|
|
607
|
-
// }
|
|
608
|
-
// @ts-ignore
|
|
609
|
-
get style() {
|
|
610
|
-
// @ts-ignore
|
|
611
|
-
return this._styleref;
|
|
612
|
-
}
|
|
613
343
|
}
|
|
614
344
|
exports.LabelElement = LabelElement;
|
|
615
|
-
// @ts-ignore
|
|
616
345
|
customElements.define("base-label-element", LabelElement, { extends: "label" });
|
|
617
346
|
class SelectElement extends HTMLSelectElement {
|
|
618
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
619
347
|
constructor(optional) {
|
|
620
348
|
super();
|
|
621
349
|
Component.applyDate(optional, this);
|
|
622
350
|
}
|
|
623
|
-
onInit() { }
|
|
624
|
-
addClasName(...names) {
|
|
625
|
-
this.classList.add(...names);
|
|
626
|
-
}
|
|
627
|
-
// @ts-ignore
|
|
628
|
-
get style() {
|
|
629
|
-
// @ts-ignore
|
|
630
|
-
return this._styleref;
|
|
631
|
-
}
|
|
632
351
|
}
|
|
633
352
|
exports.SelectElement = SelectElement;
|
|
634
|
-
// @ts-ignore
|
|
635
353
|
customElements.define("base-select-element", SelectElement, {
|
|
636
354
|
extends: "select",
|
|
637
355
|
});
|
|
638
356
|
class AudioElement extends HTMLAudioElement {
|
|
639
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
640
357
|
constructor(optional) {
|
|
641
358
|
super();
|
|
642
359
|
Component.applyDate(optional, this);
|
|
643
360
|
}
|
|
644
|
-
onInit() { }
|
|
645
|
-
addClasName(...names) {
|
|
646
|
-
this.classList.add(...names);
|
|
647
|
-
}
|
|
648
|
-
// @ts-ignore
|
|
649
|
-
get style() {
|
|
650
|
-
// @ts-ignore
|
|
651
|
-
return this._styleref;
|
|
652
|
-
}
|
|
653
361
|
}
|
|
654
362
|
exports.AudioElement = AudioElement;
|
|
655
|
-
// @ts-ignore
|
|
656
363
|
customElements.define("base-audio-element", AudioElement, { extends: "audio" });
|
|
657
364
|
class BoldElement extends HTMLElement {
|
|
658
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
659
365
|
constructor(optional) {
|
|
660
366
|
super();
|
|
661
367
|
Component.applyDate(optional, this);
|
|
662
368
|
}
|
|
663
|
-
onInit() { }
|
|
664
|
-
addClasName(...names) {
|
|
665
|
-
this.classList.add(...names);
|
|
666
|
-
}
|
|
667
|
-
// @ts-ignore
|
|
668
|
-
get style() {
|
|
669
|
-
// @ts-ignore
|
|
670
|
-
return this._styleref;
|
|
671
|
-
}
|
|
672
369
|
}
|
|
673
370
|
exports.BoldElement = BoldElement;
|
|
674
|
-
// @ts-ignore
|
|
675
371
|
customElements.define("base-b-element", BoldElement, { extends: "b" });
|
|
676
372
|
// <base>
|
|
677
373
|
class BaseElement extends HTMLElement {
|
|
678
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
679
374
|
constructor(optional) {
|
|
680
375
|
super();
|
|
681
376
|
Component.applyDate(optional, this);
|
|
682
377
|
}
|
|
683
|
-
onInit() { }
|
|
684
|
-
addClasName(...names) {
|
|
685
|
-
this.classList.add(...names);
|
|
686
|
-
}
|
|
687
|
-
// @ts-ignore
|
|
688
|
-
get style() {
|
|
689
|
-
// @ts-ignore
|
|
690
|
-
return this._styleref;
|
|
691
|
-
}
|
|
692
378
|
}
|
|
693
379
|
exports.BaseElement = BaseElement;
|
|
694
|
-
// @ts-ignore
|
|
695
380
|
customElements.define("base-base-element", BaseElement, { extends: "base" });
|
|
696
381
|
// <body>
|
|
697
382
|
class BodyElement extends HTMLBodyElement {
|
|
698
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
699
383
|
constructor(optional) {
|
|
700
384
|
super();
|
|
701
385
|
Component.applyDate(optional, this);
|
|
702
386
|
}
|
|
703
|
-
onInit() { }
|
|
704
|
-
addClasName(...names) {
|
|
705
|
-
this.classList.add(...names);
|
|
706
|
-
}
|
|
707
|
-
// @ts-ignore
|
|
708
|
-
get style() {
|
|
709
|
-
// @ts-ignore
|
|
710
|
-
return this._styleref;
|
|
711
|
-
}
|
|
712
387
|
}
|
|
713
388
|
exports.BodyElement = BodyElement;
|
|
714
|
-
// @ts-ignore
|
|
715
389
|
customElements.define("base-body-element", BodyElement, { extends: "body" });
|
|
716
390
|
// <video>
|
|
717
391
|
class VideoElement extends HTMLVideoElement {
|
|
718
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
719
392
|
constructor(optional) {
|
|
720
393
|
super();
|
|
721
394
|
Component.applyDate(optional, this);
|
|
722
395
|
}
|
|
723
|
-
onInit() { }
|
|
724
|
-
addClasName(...names) {
|
|
725
|
-
this.classList.add(...names);
|
|
726
|
-
}
|
|
727
|
-
// @ts-ignore
|
|
728
|
-
get style() {
|
|
729
|
-
// @ts-ignore
|
|
730
|
-
return this._styleref;
|
|
731
|
-
}
|
|
732
396
|
}
|
|
733
397
|
exports.VideoElement = VideoElement;
|
|
734
|
-
// @ts-ignore
|
|
735
398
|
customElements.define("base-video-element", VideoElement, { extends: "video" });
|
|
736
399
|
class CanvasElement extends HTMLCanvasElement {
|
|
737
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
738
400
|
constructor(optional) {
|
|
739
401
|
super();
|
|
740
402
|
if (optional?.width)
|
|
@@ -743,200 +405,101 @@ class CanvasElement extends HTMLCanvasElement {
|
|
|
743
405
|
this.height = optional.height;
|
|
744
406
|
Component.applyDate(optional, this);
|
|
745
407
|
}
|
|
746
|
-
onInit() { }
|
|
747
|
-
addClasName(...names) {
|
|
748
|
-
this.classList.add(...names);
|
|
749
|
-
}
|
|
750
|
-
// @ts-ignore
|
|
751
|
-
get style() {
|
|
752
|
-
// @ts-ignore
|
|
753
|
-
return this._styleref;
|
|
754
|
-
}
|
|
755
408
|
}
|
|
756
409
|
exports.CanvasElement = CanvasElement;
|
|
757
|
-
// @ts-ignore
|
|
758
410
|
customElements.define("base-canvas-element", CanvasElement, {
|
|
759
411
|
extends: "canvas",
|
|
760
412
|
});
|
|
761
413
|
// <caption>
|
|
762
414
|
class CaptionElement extends HTMLTableCaptionElement {
|
|
763
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
764
415
|
constructor(optional) {
|
|
765
416
|
super();
|
|
766
417
|
Component.applyDate(optional, this);
|
|
767
418
|
}
|
|
768
|
-
onInit() { }
|
|
769
|
-
addClasName(...names) {
|
|
770
|
-
this.classList.add(...names);
|
|
771
|
-
}
|
|
772
|
-
// @ts-ignore
|
|
773
|
-
get style() {
|
|
774
|
-
// @ts-ignore
|
|
775
|
-
return this._styleref;
|
|
776
|
-
}
|
|
777
419
|
}
|
|
778
420
|
exports.CaptionElement = CaptionElement;
|
|
779
|
-
// @ts-ignore
|
|
780
421
|
customElements.define("base-caption-element", CaptionElement, {
|
|
781
422
|
extends: "caption",
|
|
782
423
|
});
|
|
783
424
|
// <cite>
|
|
784
425
|
class CiteElement extends HTMLElement {
|
|
785
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
786
426
|
constructor(optional) {
|
|
787
427
|
super();
|
|
788
428
|
Component.applyDate(optional, this);
|
|
789
429
|
}
|
|
790
|
-
onInit() { }
|
|
791
|
-
addClasName(...names) {
|
|
792
|
-
this.classList.add(...names);
|
|
793
|
-
}
|
|
794
|
-
// @ts-ignore
|
|
795
|
-
get style() {
|
|
796
|
-
// @ts-ignore
|
|
797
|
-
return this._styleref;
|
|
798
|
-
}
|
|
799
430
|
}
|
|
800
431
|
exports.CiteElement = CiteElement;
|
|
801
|
-
// @ts-ignore
|
|
802
432
|
customElements.define("base-cite-element", CiteElement, { extends: "cite" });
|
|
803
433
|
// <code>
|
|
804
434
|
class CodeElement extends HTMLElement {
|
|
805
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
806
435
|
constructor(optional) {
|
|
807
436
|
super();
|
|
808
437
|
Component.applyDate(optional, this);
|
|
809
438
|
}
|
|
810
|
-
onInit() { }
|
|
811
|
-
addClasName(...names) {
|
|
812
|
-
this.classList.add(...names);
|
|
813
|
-
}
|
|
814
|
-
// @ts-ignore
|
|
815
|
-
get style() {
|
|
816
|
-
// @ts-ignore
|
|
817
|
-
return this._styleref;
|
|
818
|
-
}
|
|
819
439
|
}
|
|
820
440
|
exports.CodeElement = CodeElement;
|
|
821
|
-
// @ts-ignore
|
|
822
441
|
customElements.define("base-code-element", CodeElement, { extends: "code" });
|
|
823
442
|
// <col>
|
|
824
443
|
class TableColElement extends HTMLTableColElement {
|
|
825
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
826
444
|
constructor(optional) {
|
|
827
445
|
super();
|
|
828
446
|
if (optional?.span)
|
|
829
447
|
this.span = optional.span;
|
|
830
448
|
Component.applyDate(optional, this);
|
|
831
449
|
}
|
|
832
|
-
onInit() { }
|
|
833
|
-
addClasName(...names) {
|
|
834
|
-
this.classList.add(...names);
|
|
835
|
-
}
|
|
836
|
-
// @ts-ignore
|
|
837
|
-
get style() {
|
|
838
|
-
// @ts-ignore
|
|
839
|
-
return this._styleref;
|
|
840
|
-
}
|
|
841
450
|
}
|
|
842
451
|
exports.TableColElement = TableColElement;
|
|
843
|
-
// @ts-ignore
|
|
844
452
|
customElements.define("base-col-element", TableColElement, { extends: "col" });
|
|
845
453
|
// <colgroup>
|
|
846
454
|
class TableColGroupElement extends HTMLTableColElement {
|
|
847
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
848
455
|
constructor(optional) {
|
|
849
456
|
super();
|
|
850
457
|
if (optional?.span)
|
|
851
458
|
this.span = optional.span;
|
|
852
459
|
Component.applyDate(optional, this);
|
|
853
460
|
}
|
|
854
|
-
onInit() { }
|
|
855
|
-
addClasName(...names) {
|
|
856
|
-
this.classList.add(...names);
|
|
857
|
-
}
|
|
858
|
-
// @ts-ignore
|
|
859
|
-
get style() {
|
|
860
|
-
// @ts-ignore
|
|
861
|
-
return this._styleref;
|
|
862
|
-
}
|
|
863
461
|
}
|
|
864
462
|
exports.TableColGroupElement = TableColGroupElement;
|
|
865
|
-
// @ts-ignore
|
|
866
463
|
customElements.define("base-colgroup-element", TableColGroupElement, {
|
|
867
464
|
extends: "colgroup",
|
|
868
465
|
});
|
|
869
466
|
// <datalist>
|
|
870
467
|
class DataListElement extends HTMLDataListElement {
|
|
871
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
872
468
|
constructor(optional) {
|
|
873
469
|
super();
|
|
874
470
|
Component.applyDate(optional, this);
|
|
875
471
|
}
|
|
876
|
-
onInit() { }
|
|
877
|
-
addClasName(...names) {
|
|
878
|
-
this.classList.add(...names);
|
|
879
|
-
}
|
|
880
|
-
// @ts-ignore
|
|
881
|
-
get style() {
|
|
882
|
-
// @ts-ignore
|
|
883
|
-
return this._styleref;
|
|
884
|
-
}
|
|
885
472
|
}
|
|
886
473
|
exports.DataListElement = DataListElement;
|
|
887
|
-
// @ts-ignore
|
|
888
474
|
customElements.define("base-datalist-element", DataListElement, {
|
|
889
475
|
extends: "datalist",
|
|
890
476
|
});
|
|
891
477
|
// <dd>
|
|
892
478
|
class DefinitionDescriptionElement extends HTMLElement {
|
|
893
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
894
479
|
constructor(optional) {
|
|
895
480
|
super();
|
|
896
481
|
Component.applyDate(optional, this);
|
|
897
482
|
}
|
|
898
|
-
onInit() { }
|
|
899
|
-
addClasName(...names) {
|
|
900
|
-
this.classList.add(...names);
|
|
901
|
-
}
|
|
902
|
-
// @ts-ignore
|
|
903
|
-
get style() {
|
|
904
|
-
// @ts-ignore
|
|
905
|
-
return this._styleref;
|
|
906
|
-
}
|
|
907
483
|
}
|
|
908
484
|
exports.DefinitionDescriptionElement = DefinitionDescriptionElement;
|
|
909
|
-
// @ts-ignore
|
|
910
485
|
customElements.define("base-dd-element", DefinitionDescriptionElement, {
|
|
911
486
|
extends: "dd",
|
|
912
487
|
});
|
|
913
488
|
// <del>
|
|
914
489
|
class DeletedTextElement extends HTMLModElement {
|
|
915
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
916
490
|
constructor(optional) {
|
|
917
491
|
super();
|
|
918
492
|
if (optional?.cite)
|
|
919
493
|
this.cite = optional.cite;
|
|
920
494
|
Component.applyDate(optional, this);
|
|
921
495
|
}
|
|
922
|
-
onInit() { }
|
|
923
|
-
addClasName(...names) {
|
|
924
|
-
this.classList.add(...names);
|
|
925
|
-
}
|
|
926
|
-
// @ts-ignore
|
|
927
|
-
get style() {
|
|
928
|
-
// @ts-ignore
|
|
929
|
-
return this._styleref;
|
|
930
|
-
}
|
|
931
496
|
}
|
|
932
497
|
exports.DeletedTextElement = DeletedTextElement;
|
|
933
|
-
// @ts-ignore
|
|
934
498
|
customElements.define("base-del-element", DeletedTextElement, {
|
|
935
499
|
extends: "del",
|
|
936
500
|
});
|
|
937
501
|
// <details>
|
|
938
502
|
class DetailsElement extends HTMLDetailsElement {
|
|
939
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
940
503
|
constructor(optional) {
|
|
941
504
|
super();
|
|
942
505
|
Component.applyDate(optional, this);
|
|
@@ -951,73 +514,40 @@ class DetailsElement extends HTMLDetailsElement {
|
|
|
951
514
|
}
|
|
952
515
|
}
|
|
953
516
|
}
|
|
954
|
-
onInit() { }
|
|
955
|
-
addClasName(...names) {
|
|
956
|
-
this.classList.add(...names);
|
|
957
|
-
}
|
|
958
|
-
// @ts-ignore
|
|
959
|
-
get style() {
|
|
960
|
-
// @ts-ignore
|
|
961
|
-
return this._styleref;
|
|
962
|
-
}
|
|
963
517
|
setSummary(summary) {
|
|
964
518
|
this.querySelector("summary")?.remove();
|
|
965
519
|
this.appendChild(summary);
|
|
966
520
|
}
|
|
967
521
|
}
|
|
968
522
|
exports.DetailsElement = DetailsElement;
|
|
969
|
-
// @ts-ignore
|
|
970
523
|
customElements.define("base-details-element", DetailsElement, {
|
|
971
524
|
extends: "details",
|
|
972
525
|
});
|
|
973
526
|
// <dfn>
|
|
974
527
|
class DefinitionElement extends HTMLElement {
|
|
975
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
976
528
|
constructor(optional) {
|
|
977
529
|
super();
|
|
978
530
|
Component.applyDate(optional, this);
|
|
979
531
|
}
|
|
980
|
-
onInit() { }
|
|
981
|
-
addClasName(...names) {
|
|
982
|
-
this.classList.add(...names);
|
|
983
|
-
}
|
|
984
|
-
// @ts-ignore
|
|
985
|
-
get style() {
|
|
986
|
-
// @ts-ignore
|
|
987
|
-
return this._styleref;
|
|
988
|
-
}
|
|
989
532
|
}
|
|
990
533
|
exports.DefinitionElement = DefinitionElement;
|
|
991
|
-
// @ts-ignore
|
|
992
534
|
customElements.define("base-dfn-element", DefinitionElement, {
|
|
993
535
|
extends: "dfn",
|
|
994
536
|
});
|
|
995
537
|
// <dialog>
|
|
996
538
|
class DialogElement extends HTMLDialogElement {
|
|
997
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
998
539
|
constructor(optional) {
|
|
999
540
|
super();
|
|
1000
541
|
Component.applyDate(optional, this);
|
|
1001
542
|
this.open = optional.open == undefined ? true : optional.open;
|
|
1002
543
|
}
|
|
1003
|
-
onInit() { }
|
|
1004
|
-
addClasName(...names) {
|
|
1005
|
-
this.classList.add(...names);
|
|
1006
|
-
}
|
|
1007
|
-
// @ts-ignore
|
|
1008
|
-
get style() {
|
|
1009
|
-
// @ts-ignore
|
|
1010
|
-
return this._styleref;
|
|
1011
|
-
}
|
|
1012
544
|
}
|
|
1013
545
|
exports.DialogElement = DialogElement;
|
|
1014
|
-
// @ts-ignore
|
|
1015
546
|
customElements.define("base-dialog-element", DialogElement, {
|
|
1016
547
|
extends: "dialog",
|
|
1017
548
|
});
|
|
1018
549
|
// <embed>
|
|
1019
550
|
class EmbedElement extends HTMLEmbedElement {
|
|
1020
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
1021
551
|
constructor(optional) {
|
|
1022
552
|
super();
|
|
1023
553
|
if (optional?.height)
|
|
@@ -1030,22 +560,11 @@ class EmbedElement extends HTMLEmbedElement {
|
|
|
1030
560
|
this.width = optional.width;
|
|
1031
561
|
Component.applyDate(optional, this);
|
|
1032
562
|
}
|
|
1033
|
-
onInit() { }
|
|
1034
|
-
addClasName(...names) {
|
|
1035
|
-
this.classList.add(...names);
|
|
1036
|
-
}
|
|
1037
|
-
// @ts-ignore
|
|
1038
|
-
get style() {
|
|
1039
|
-
// @ts-ignore
|
|
1040
|
-
return this._styleref;
|
|
1041
|
-
}
|
|
1042
563
|
}
|
|
1043
564
|
exports.EmbedElement = EmbedElement;
|
|
1044
|
-
// @ts-ignore
|
|
1045
565
|
customElements.define("base-embed-element", EmbedElement, { extends: "embed" });
|
|
1046
566
|
// <fieldset>
|
|
1047
567
|
class FieldSetElement extends HTMLFieldSetElement {
|
|
1048
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
1049
568
|
constructor(optional) {
|
|
1050
569
|
super();
|
|
1051
570
|
Component.applyDate(optional, this);
|
|
@@ -1062,110 +581,55 @@ class FieldSetElement extends HTMLFieldSetElement {
|
|
|
1062
581
|
}
|
|
1063
582
|
}
|
|
1064
583
|
}
|
|
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
584
|
setLegend(legend) {
|
|
1075
585
|
this.querySelector("legend")?.remove();
|
|
1076
586
|
this.appendChild(legend);
|
|
1077
587
|
}
|
|
1078
588
|
}
|
|
1079
589
|
exports.FieldSetElement = FieldSetElement;
|
|
1080
|
-
// @ts-ignore
|
|
1081
590
|
customElements.define("base-fieldset-element", FieldSetElement, {
|
|
1082
591
|
extends: "fieldset",
|
|
1083
592
|
});
|
|
1084
593
|
// <footer>
|
|
1085
594
|
class FooterElement extends HTMLElement {
|
|
1086
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
1087
595
|
constructor(optional) {
|
|
1088
596
|
super();
|
|
1089
597
|
Component.applyDate(optional, this);
|
|
1090
598
|
}
|
|
1091
|
-
onInit() { }
|
|
1092
|
-
addClasName(...names) {
|
|
1093
|
-
this.classList.add(...names);
|
|
1094
|
-
}
|
|
1095
|
-
// @ts-ignore
|
|
1096
|
-
get style() {
|
|
1097
|
-
// @ts-ignore
|
|
1098
|
-
return this._styleref;
|
|
1099
|
-
}
|
|
1100
599
|
}
|
|
1101
600
|
exports.FooterElement = FooterElement;
|
|
1102
|
-
// @ts-ignore
|
|
1103
601
|
customElements.define("base-footer-element", FooterElement, {
|
|
1104
602
|
extends: "footer",
|
|
1105
603
|
});
|
|
1106
604
|
class FormElement extends HTMLFormElement {
|
|
1107
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
1108
605
|
constructor(optional) {
|
|
1109
606
|
super();
|
|
1110
607
|
Component.applyDate(optional, this);
|
|
1111
608
|
}
|
|
1112
|
-
onInit() { }
|
|
1113
|
-
addClasName(...names) {
|
|
1114
|
-
this.classList.add(...names);
|
|
1115
|
-
}
|
|
1116
|
-
// @ts-ignore
|
|
1117
|
-
get style() {
|
|
1118
|
-
// @ts-ignore
|
|
1119
|
-
return this._styleref;
|
|
1120
|
-
}
|
|
1121
609
|
}
|
|
1122
610
|
exports.FormElement = FormElement;
|
|
1123
|
-
// @ts-ignore
|
|
1124
611
|
customElements.define("base-form-element", FormElement, { extends: "form" });
|
|
1125
612
|
class H1Element extends HTMLHeadingElement {
|
|
1126
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
1127
613
|
constructor(optional) {
|
|
1128
614
|
super();
|
|
1129
615
|
Component.applyDate(optional, this);
|
|
1130
616
|
if (optional?.text)
|
|
1131
617
|
this.innerText = optional.text.toString();
|
|
1132
618
|
}
|
|
1133
|
-
onInit() { }
|
|
1134
|
-
addClasName(...names) {
|
|
1135
|
-
this.classList.add(...names);
|
|
1136
|
-
}
|
|
1137
|
-
// @ts-ignore
|
|
1138
|
-
get style() {
|
|
1139
|
-
// @ts-ignore
|
|
1140
|
-
return this._styleref;
|
|
1141
|
-
}
|
|
1142
619
|
}
|
|
1143
620
|
exports.H1Element = H1Element;
|
|
1144
|
-
// @ts-ignore
|
|
1145
621
|
customElements.define("base-h1-element", H1Element, { extends: "h1" });
|
|
1146
622
|
class H2Element extends HTMLHeadingElement {
|
|
1147
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
1148
623
|
constructor(optional) {
|
|
1149
624
|
super();
|
|
1150
625
|
Component.applyDate(optional, this);
|
|
1151
626
|
if (optional?.text)
|
|
1152
627
|
this.innerText = optional.text.toString();
|
|
1153
628
|
}
|
|
1154
|
-
onInit() { }
|
|
1155
|
-
addClasName(...names) {
|
|
1156
|
-
this.classList.add(...names);
|
|
1157
|
-
}
|
|
1158
|
-
// @ts-ignore
|
|
1159
|
-
get style() {
|
|
1160
|
-
// @ts-ignore
|
|
1161
|
-
return this._styleref;
|
|
1162
|
-
}
|
|
1163
629
|
}
|
|
1164
630
|
exports.H2Element = H2Element;
|
|
1165
|
-
// @ts-ignore
|
|
1166
631
|
customElements.define("base-h2-element", H2Element, { extends: "h2" });
|
|
1167
632
|
class H3Element extends HTMLHeadingElement {
|
|
1168
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
1169
633
|
constructor(optional) {
|
|
1170
634
|
super();
|
|
1171
635
|
Component.applyDate(optional, this);
|
|
@@ -1181,18 +645,8 @@ class H3Element extends HTMLHeadingElement {
|
|
|
1181
645
|
else
|
|
1182
646
|
this.innerText = value;
|
|
1183
647
|
}
|
|
1184
|
-
onInit() { }
|
|
1185
|
-
addClasName(...names) {
|
|
1186
|
-
this.classList.add(...names);
|
|
1187
|
-
}
|
|
1188
|
-
// @ts-ignore
|
|
1189
|
-
get style() {
|
|
1190
|
-
// @ts-ignore
|
|
1191
|
-
return this._styleref;
|
|
1192
|
-
}
|
|
1193
648
|
}
|
|
1194
649
|
exports.H3Element = H3Element;
|
|
1195
|
-
// @ts-ignore
|
|
1196
650
|
customElements.define("base-h3-element", H3Element, { extends: "h3" });
|
|
1197
651
|
class H4Element extends H3Element {
|
|
1198
652
|
constructor(optional) {
|
|
@@ -1207,7 +661,6 @@ class H4Element extends H3Element {
|
|
|
1207
661
|
}
|
|
1208
662
|
}
|
|
1209
663
|
exports.H4Element = H4Element;
|
|
1210
|
-
// @ts-ignore
|
|
1211
664
|
customElements.define("base-h4-element", H4Element, { extends: "h4" });
|
|
1212
665
|
class H5Element extends H3Element {
|
|
1213
666
|
constructor(optional) {
|
|
@@ -1222,7 +675,6 @@ class H5Element extends H3Element {
|
|
|
1222
675
|
}
|
|
1223
676
|
}
|
|
1224
677
|
exports.H5Element = H5Element;
|
|
1225
|
-
// @ts-ignore
|
|
1226
678
|
customElements.define("base-h5-element", H5Element, { extends: "h5" });
|
|
1227
679
|
class H6Element extends H3Element {
|
|
1228
680
|
constructor(optional) {
|
|
@@ -1237,103 +689,57 @@ class H6Element extends H3Element {
|
|
|
1237
689
|
}
|
|
1238
690
|
}
|
|
1239
691
|
exports.H6Element = H6Element;
|
|
1240
|
-
// @ts-ignore
|
|
1241
692
|
customElements.define("base-h6-element", H6Element, { extends: "h6" });
|
|
1242
693
|
// <head>
|
|
1243
694
|
class HeadElement extends HTMLHeadElement {
|
|
1244
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
1245
695
|
constructor(optional) {
|
|
1246
696
|
super();
|
|
1247
697
|
Component.applyDate(optional, this);
|
|
1248
698
|
}
|
|
1249
|
-
onInit() { }
|
|
1250
|
-
addClasName(...names) {
|
|
1251
|
-
this.classList.add(...names);
|
|
1252
|
-
}
|
|
1253
|
-
// @ts-ignore
|
|
1254
|
-
get style() {
|
|
1255
|
-
// @ts-ignore
|
|
1256
|
-
return this._styleref;
|
|
1257
|
-
}
|
|
1258
699
|
}
|
|
1259
700
|
exports.HeadElement = HeadElement;
|
|
1260
|
-
// @ts-ignore
|
|
1261
701
|
customElements.define("base-head-element", HeadElement, { extends: "head" });
|
|
1262
702
|
// <header>
|
|
1263
703
|
class HeaderElement extends HTMLElement {
|
|
1264
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
1265
704
|
constructor(optional) {
|
|
1266
705
|
super();
|
|
1267
706
|
Component.applyDate(optional, this);
|
|
1268
707
|
}
|
|
1269
|
-
onInit() { }
|
|
1270
|
-
addClasName(...names) {
|
|
1271
|
-
this.classList.add(...names);
|
|
1272
|
-
}
|
|
1273
|
-
// @ts-ignore
|
|
1274
|
-
get style() {
|
|
1275
|
-
// @ts-ignore
|
|
1276
|
-
return this._styleref;
|
|
1277
|
-
}
|
|
1278
708
|
}
|
|
1279
709
|
exports.HeaderElement = HeaderElement;
|
|
1280
|
-
// @ts-ignore
|
|
1281
710
|
customElements.define("base-header-element", HeaderElement, {
|
|
1282
711
|
extends: "header",
|
|
1283
712
|
});
|
|
1284
713
|
// <hr>
|
|
1285
714
|
class HorizontalRuleElement extends HTMLHRElement {
|
|
1286
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
1287
715
|
constructor(optional) {
|
|
1288
716
|
super();
|
|
1289
717
|
Component.applyDate(optional, this);
|
|
1290
718
|
}
|
|
1291
|
-
onInit() { }
|
|
1292
|
-
addClasName(...names) {
|
|
1293
|
-
this.classList.add(...names);
|
|
1294
|
-
}
|
|
1295
|
-
// @ts-ignore
|
|
1296
|
-
get style() {
|
|
1297
|
-
// @ts-ignore
|
|
1298
|
-
return this._styleref;
|
|
1299
|
-
}
|
|
1300
719
|
}
|
|
1301
720
|
exports.HorizontalRuleElement = HorizontalRuleElement;
|
|
1302
|
-
// @ts-ignore
|
|
1303
721
|
customElements.define("base-hr-element", HorizontalRuleElement, {
|
|
1304
722
|
extends: "hr",
|
|
1305
723
|
});
|
|
1306
724
|
// <html>
|
|
1307
725
|
class HtmlElement extends HTMLHtmlElement {
|
|
1308
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
1309
726
|
constructor(optional) {
|
|
1310
727
|
super();
|
|
1311
728
|
if (optional?.manifest)
|
|
1312
729
|
this.manifest = optional.manifest;
|
|
1313
730
|
Component.applyDate(optional, this);
|
|
1314
731
|
}
|
|
1315
|
-
onInit() { }
|
|
1316
|
-
addClasName(...names) {
|
|
1317
|
-
this.classList.add(...names);
|
|
1318
|
-
}
|
|
1319
732
|
set manifest(value) {
|
|
1320
733
|
this.setAttribute("manifest", value);
|
|
1321
734
|
}
|
|
1322
735
|
get manifest() {
|
|
1323
736
|
return this.getAttribute("manifest");
|
|
1324
737
|
}
|
|
1325
|
-
// @ts-ignore
|
|
1326
|
-
get style() {
|
|
1327
|
-
// @ts-ignore
|
|
1328
|
-
return this._styleref;
|
|
1329
|
-
}
|
|
1330
738
|
}
|
|
1331
739
|
exports.HtmlElement = HtmlElement;
|
|
1332
|
-
// @ts-ignore
|
|
1333
740
|
customElements.define("base-html-element", HtmlElement, { extends: "html" });
|
|
1334
741
|
// <iframe>
|
|
1335
742
|
class IFrameElement extends HTMLIFrameElement {
|
|
1336
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
1337
743
|
constructor(optional) {
|
|
1338
744
|
super();
|
|
1339
745
|
if (optional?.allow)
|
|
@@ -1392,63 +798,21 @@ class IFrameElement extends HTMLIFrameElement {
|
|
|
1392
798
|
get referrerpolicy() {
|
|
1393
799
|
return this.getAttribute("referrerpolicy");
|
|
1394
800
|
}
|
|
1395
|
-
// public set sandbox(
|
|
1396
|
-
// value:
|
|
1397
|
-
// | "allow-downloads-without-user-activation"
|
|
1398
|
-
// | "allow-forms"
|
|
1399
|
-
// | "allow-modals"
|
|
1400
|
-
// | "allow-orientation-lock"
|
|
1401
|
-
// | "allow-pointer-lock"
|
|
1402
|
-
// | "allow-popups"
|
|
1403
|
-
// | "allow-popups-to-escape-sandbox"
|
|
1404
|
-
// | "allow-presentation"
|
|
1405
|
-
// | "allow-same-origin"
|
|
1406
|
-
// | "allow-scripts"
|
|
1407
|
-
// | "allow-storage-access-by-user-activation"
|
|
1408
|
-
// | "allow-top-navigation"
|
|
1409
|
-
// | "allow-top-navigation-by-user-activation",
|
|
1410
|
-
// ) {
|
|
1411
|
-
// this.setAttribute("sandbox", value);
|
|
1412
|
-
// }
|
|
1413
|
-
// public get sandbox(): string {
|
|
1414
|
-
// return this.getAttribute("sandbox");
|
|
1415
|
-
// }
|
|
1416
|
-
onInit() { }
|
|
1417
|
-
addClasName(...names) {
|
|
1418
|
-
this.classList.add(...names);
|
|
1419
|
-
}
|
|
1420
|
-
// @ts-ignore
|
|
1421
|
-
get style() {
|
|
1422
|
-
// @ts-ignore
|
|
1423
|
-
return this._styleref;
|
|
1424
|
-
}
|
|
1425
801
|
}
|
|
1426
802
|
exports.IFrameElement = IFrameElement;
|
|
1427
|
-
// @ts-ignore
|
|
1428
803
|
customElements.define("base-iframe-element", IFrameElement, {
|
|
1429
804
|
extends: "iframe",
|
|
1430
805
|
});
|
|
1431
806
|
// <legend>
|
|
1432
807
|
class LegendElement extends HTMLLegendElement {
|
|
1433
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
1434
808
|
constructor(optional) {
|
|
1435
809
|
super();
|
|
1436
810
|
Component.applyDate(optional, this);
|
|
1437
811
|
if (optional?.value)
|
|
1438
812
|
this.innerHTML = optional.value;
|
|
1439
813
|
}
|
|
1440
|
-
onInit() { }
|
|
1441
|
-
addClasName(...names) {
|
|
1442
|
-
this.classList.add(...names);
|
|
1443
|
-
}
|
|
1444
|
-
// @ts-ignore
|
|
1445
|
-
get style() {
|
|
1446
|
-
// @ts-ignore
|
|
1447
|
-
return this._styleref;
|
|
1448
|
-
}
|
|
1449
814
|
}
|
|
1450
815
|
exports.LegendElement = LegendElement;
|
|
1451
|
-
// @ts-ignore
|
|
1452
816
|
customElements.define("base-legend-element", LegendElement, {
|
|
1453
817
|
extends: "legend",
|
|
1454
818
|
});
|
|
@@ -1462,11 +826,6 @@ class SvgElement extends HTMLObjectElement {
|
|
|
1462
826
|
this.height = optional.height;
|
|
1463
827
|
this.setAttribute("type", "image/svg+xml");
|
|
1464
828
|
}
|
|
1465
|
-
onInit() { }
|
|
1466
|
-
unmount() { }
|
|
1467
|
-
addClasName(...names) {
|
|
1468
|
-
this.classList.add(...names);
|
|
1469
|
-
}
|
|
1470
829
|
set color(value) {
|
|
1471
830
|
const pathElement = this.contentDocument?.querySelector("path");
|
|
1472
831
|
if (pathElement)
|
|
@@ -1492,82 +851,42 @@ class SvgElement extends HTMLObjectElement {
|
|
|
1492
851
|
}
|
|
1493
852
|
}
|
|
1494
853
|
exports.SvgElement = SvgElement;
|
|
1495
|
-
// @ts-ignore
|
|
1496
854
|
customElements.define("base-svg-element", SvgElement, { extends: "object" });
|
|
1497
855
|
class NavElement extends HTMLElement {
|
|
1498
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
1499
856
|
constructor(optional) {
|
|
1500
857
|
super();
|
|
1501
858
|
Component.applyDate(optional, this);
|
|
1502
859
|
}
|
|
1503
|
-
onInit() { }
|
|
1504
|
-
addClasName(...names) {
|
|
1505
|
-
this.classList.add(...names);
|
|
1506
|
-
}
|
|
1507
|
-
// @ts-ignore
|
|
1508
|
-
get style() {
|
|
1509
|
-
// @ts-ignore
|
|
1510
|
-
return this._styleref;
|
|
1511
|
-
}
|
|
1512
860
|
}
|
|
1513
861
|
exports.NavElement = NavElement;
|
|
1514
|
-
// @ts-ignore
|
|
1515
862
|
customElements.define("base-nav-element", NavElement, { extends: "nav" });
|
|
1516
863
|
class SectionElement extends HTMLElement {
|
|
1517
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
1518
864
|
constructor(optional) {
|
|
1519
865
|
super();
|
|
1520
866
|
Component.applyDate(optional, this);
|
|
1521
867
|
}
|
|
1522
|
-
onInit() { }
|
|
1523
|
-
addClasName(...names) {
|
|
1524
|
-
this.classList.add(...names);
|
|
1525
|
-
}
|
|
1526
|
-
// @ts-ignore
|
|
1527
|
-
get style() {
|
|
1528
|
-
// @ts-ignore
|
|
1529
|
-
return this._styleref;
|
|
1530
|
-
}
|
|
1531
868
|
}
|
|
1532
869
|
exports.SectionElement = SectionElement;
|
|
1533
|
-
// @ts-ignore
|
|
1534
870
|
customElements.define("base-section-element", SectionElement, {
|
|
1535
871
|
extends: "section",
|
|
1536
872
|
});
|
|
1537
873
|
class ArticleElement extends HTMLElement {
|
|
1538
|
-
_styleref = new CSSStyle_1.CSSStyleref(super.style);
|
|
1539
874
|
constructor(optional) {
|
|
1540
875
|
super();
|
|
1541
876
|
Component.applyDate(optional, this);
|
|
1542
877
|
}
|
|
1543
|
-
onInit() { }
|
|
1544
|
-
addClasName(...names) {
|
|
1545
|
-
this.classList.add(...names);
|
|
1546
|
-
}
|
|
1547
|
-
// @ts-ignore
|
|
1548
|
-
get style() {
|
|
1549
|
-
// @ts-ignore
|
|
1550
|
-
return this._styleref;
|
|
1551
|
-
}
|
|
1552
878
|
}
|
|
1553
879
|
exports.ArticleElement = ArticleElement;
|
|
1554
|
-
// @ts-ignore
|
|
1555
880
|
customElements.define("base-article-element", ArticleElement, {
|
|
1556
881
|
extends: "article",
|
|
1557
882
|
});
|
|
1558
883
|
class SummaryElement extends HTMLElement {
|
|
1559
|
-
// private _styleref: CSSStyleref = new CSSStyleref(super.style);
|
|
1560
884
|
constructor(optional) {
|
|
1561
885
|
super();
|
|
1562
886
|
Component.applyDate(optional, this);
|
|
1563
887
|
}
|
|
1564
|
-
onInit() { }
|
|
1565
|
-
addClasName(...names) {
|
|
1566
|
-
this.classList.add(...names);
|
|
1567
|
-
}
|
|
1568
888
|
}
|
|
1569
889
|
exports.SummaryElement = SummaryElement;
|
|
1570
|
-
// @ts-ignore
|
|
1571
890
|
customElements.define("base-summary-element", SummaryElement, {
|
|
1572
891
|
extends: "summary",
|
|
1573
892
|
});
|
|
@@ -1577,6 +896,5 @@ class ILayout extends Component {
|
|
|
1577
896
|
}
|
|
1578
897
|
}
|
|
1579
898
|
exports.ILayout = ILayout;
|
|
1580
|
-
// @ts-ignore
|
|
1581
899
|
customElements.define("base-layout-element", ILayout);
|
|
1582
900
|
//# sourceMappingURL=Elements.js.map
|