typecomposer 0.0.31 → 0.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/core/components/navigation/MenuBarElement.js +1 -1
- package/dist/cjs/core/element/action/ColorPicker.js +1 -1
- package/dist/cjs/core/element/base/Elements.d.ts +8 -3
- package/dist/cjs/core/element/base/Elements.js +81 -71
- package/dist/cjs/core/element/base/Elements.js.map +1 -1
- package/dist/cjs/core/element/layers/CardElement.js +1 -1
- package/dist/cjs/core/element/text/TextFieldElement.js +1 -1
- package/dist/cjs/core/router/Router.js +4 -2
- package/dist/cjs/core/router/Router.js.map +1 -1
- package/dist/cjs/global/global.d.ts +3 -0
- package/dist/cjs/global/global.js +4 -1
- package/dist/cjs/global/global.js.map +1 -1
- package/dist/cjs/styles/index.d.ts +1 -1
- package/dist/cjs/styles/index.js +7 -0
- package/dist/cjs/styles/index.js.map +1 -1
- package/dist/esm/core/components/navigation/MenuBarElement.js +1 -1
- package/dist/esm/core/element/action/ColorPicker.js +1 -1
- package/dist/esm/core/element/base/Elements.d.ts +8 -3
- package/dist/esm/core/element/base/Elements.js +78 -69
- package/dist/esm/core/element/base/Elements.js.map +1 -1
- package/dist/esm/core/element/layers/CardElement.js +1 -1
- package/dist/esm/core/element/text/TextFieldElement.js +1 -1
- package/dist/esm/core/router/Router.js +4 -2
- package/dist/esm/core/router/Router.js.map +1 -1
- package/dist/esm/global/global.d.ts +3 -0
- package/dist/esm/global/global.js +4 -1
- package/dist/esm/global/global.js.map +1 -1
- package/dist/esm/styles/index.d.ts +1 -1
- package/dist/esm/styles/index.js +7 -0
- package/dist/esm/styles/index.js.map +1 -1
- package/package.json +8 -4
|
@@ -22,7 +22,7 @@ class MenuBarElement extends __1.Component {
|
|
|
22
22
|
this.append(this.logo);
|
|
23
23
|
delete optional.logo;
|
|
24
24
|
}
|
|
25
|
-
__1.Component.
|
|
25
|
+
__1.Component.applyData(optional, this);
|
|
26
26
|
this._nav = new __1.NavElement(optional);
|
|
27
27
|
this.nav.append(this.checkbox, this.checkboxLabel, this._ul);
|
|
28
28
|
this.append(this.nav);
|
|
@@ -22,7 +22,7 @@ class ColorPicker extends __1.Component {
|
|
|
22
22
|
this.addEventListener("click", () => {
|
|
23
23
|
this._input.click();
|
|
24
24
|
});
|
|
25
|
-
__1.Component.
|
|
25
|
+
__1.Component.applyData({ display: "flex", ...optional }, this);
|
|
26
26
|
}
|
|
27
27
|
get value() {
|
|
28
28
|
return this._input.value;
|
|
@@ -15,8 +15,8 @@ export interface IComponent extends HTMLElement {
|
|
|
15
15
|
}
|
|
16
16
|
export declare class Component extends HTMLElement implements IComponent {
|
|
17
17
|
constructor(optional?: StyleOptional);
|
|
18
|
-
static
|
|
19
|
-
static applyStyleOrAttribute
|
|
18
|
+
static applyData<T extends HTMLElement>(data: StyleOptional | undefined, element: T): void;
|
|
19
|
+
private static applyStyleOrAttribute;
|
|
20
20
|
static setVariant(element: HTMLElement, variant: Variant | undefined): void;
|
|
21
21
|
onEvent(type: string, listener: EventHandler, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
22
22
|
createEvent(type: string, ...data: any[]): boolean;
|
|
@@ -171,6 +171,9 @@ export declare class TableCellElement extends HTMLTableCellElement implements IC
|
|
|
171
171
|
child?: HTMLElement;
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
|
+
export declare class PreElement extends HTMLPreElement implements IComponent {
|
|
175
|
+
constructor(optional?: StyleOptional);
|
|
176
|
+
}
|
|
174
177
|
export type InputType = "text" | "password" | "checkbox" | "radio" | "submit" | "reset" | "file" | "hidden" | "image" | "button" | "color" | "date" | "datetime-local" | "email" | "month" | "number" | "range" | "search" | "tel" | "time" | "url" | "week";
|
|
175
178
|
export declare class InputElement extends HTMLInputElement implements IComponent {
|
|
176
179
|
constructor(optional?: StyleOptional & {
|
|
@@ -253,7 +256,9 @@ export declare class CiteElement extends HTMLElement implements IComponent {
|
|
|
253
256
|
constructor(optional?: StyleOptional);
|
|
254
257
|
}
|
|
255
258
|
export declare class CodeElement extends HTMLElement implements IComponent {
|
|
256
|
-
constructor(optional?: StyleOptional
|
|
259
|
+
constructor(optional?: StyleOptional & {
|
|
260
|
+
contentEditable?: boolean;
|
|
261
|
+
});
|
|
257
262
|
}
|
|
258
263
|
export declare class TableColElement extends HTMLTableColElement implements IComponent {
|
|
259
264
|
constructor(optional?: StyleOptional & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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 = exports.H6Element = exports.H5Element = exports.H4Element = exports.H3Element = exports.H2Element = exports.H1Element = void 0;
|
|
3
|
+
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.PreElement = exports.TableCellElement = exports.TableRowElement = exports.TableHeadRowElement = exports.TableFootRowElement = exports.TableElement = exports.TableFootElement = exports.TableHeadCellElement = exports.TableBodyElement = exports.TableHeadElement = 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
|
+
exports.ILayout = exports.SummaryElement = exports.ArticleElement = exports.SectionElement = exports.NavElement = exports.SvgElement = exports.LegendElement = exports.IFrameElement = exports.HtmlElement = exports.HorizontalRuleElement = exports.HeaderElement = exports.HeadElement = exports.H6Element = exports.H5Element = exports.H4Element = exports.H3Element = exports.H2Element = exports.H1Element = exports.FormElement = void 0;
|
|
5
5
|
const __1 = require("../..");
|
|
6
6
|
const Event_1 = require("./Event");
|
|
7
7
|
// 1. `<div>` - Para criar blocos de conteúdo genéricos.
|
|
@@ -41,7 +41,7 @@ class Component extends HTMLElement {
|
|
|
41
41
|
if (optional != undefined)
|
|
42
42
|
this.setStyle(optional);
|
|
43
43
|
}
|
|
44
|
-
static
|
|
44
|
+
static applyData(data, element) {
|
|
45
45
|
if (data != undefined) {
|
|
46
46
|
// if (data.id) {
|
|
47
47
|
// (element as any).id = data.id;
|
|
@@ -63,9 +63,9 @@ class Component extends HTMLElement {
|
|
|
63
63
|
element.addClasName(data[key]);
|
|
64
64
|
else if (key == "text" && data[key] != undefined)
|
|
65
65
|
element.innerHTML = data[key];
|
|
66
|
-
else if (element.style
|
|
66
|
+
else if (element.style.hasOwnProperty(key))
|
|
67
67
|
element.style[key] = data[key];
|
|
68
|
-
else if (data[key] != undefined) {
|
|
68
|
+
else if (data[key] != undefined && Object.keys(element).includes(key)) {
|
|
69
69
|
element[key] = data[key];
|
|
70
70
|
}
|
|
71
71
|
});
|
|
@@ -107,7 +107,7 @@ customElements.define("component-element", Component);
|
|
|
107
107
|
class DivElement extends HTMLDivElement {
|
|
108
108
|
constructor(optional) {
|
|
109
109
|
super();
|
|
110
|
-
Component.
|
|
110
|
+
Component.applyData(optional, this);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
exports.DivElement = DivElement;
|
|
@@ -115,7 +115,7 @@ customElements.define("base-div-element", DivElement, { extends: "div" });
|
|
|
115
115
|
class ParagraphElement extends HTMLParagraphElement {
|
|
116
116
|
constructor(optional) {
|
|
117
117
|
super();
|
|
118
|
-
Component.
|
|
118
|
+
Component.applyData(optional, this);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
exports.ParagraphElement = ParagraphElement;
|
|
@@ -124,7 +124,7 @@ class AnchorElement extends HTMLAnchorElement {
|
|
|
124
124
|
_rlink = "";
|
|
125
125
|
constructor(optional) {
|
|
126
126
|
super();
|
|
127
|
-
Component.
|
|
127
|
+
Component.applyData(optional, this);
|
|
128
128
|
this.addEventListener("click", (event) => {
|
|
129
129
|
event.preventDefault();
|
|
130
130
|
if (this._rlink != "") {
|
|
@@ -151,7 +151,7 @@ customElements.define("base-a-element", AnchorElement, { extends: "a" });
|
|
|
151
151
|
class AbbreviationElement extends HTMLElement {
|
|
152
152
|
constructor(optional) {
|
|
153
153
|
super();
|
|
154
|
-
Component.
|
|
154
|
+
Component.applyData(optional, this);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
exports.AbbreviationElement = AbbreviationElement;
|
|
@@ -162,7 +162,7 @@ customElements.define("base-abbr-element", AbbreviationElement, {
|
|
|
162
162
|
class AreaElement extends HTMLAreaElement {
|
|
163
163
|
constructor(optional) {
|
|
164
164
|
super();
|
|
165
|
-
Component.
|
|
165
|
+
Component.applyData(optional, this);
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
exports.AreaElement = AreaElement;
|
|
@@ -171,7 +171,7 @@ class ImageElement extends HTMLImageElement {
|
|
|
171
171
|
constructor(optional) {
|
|
172
172
|
super();
|
|
173
173
|
this.className = "image-element";
|
|
174
|
-
Component.
|
|
174
|
+
Component.applyData(optional, this);
|
|
175
175
|
if (optional?.src != undefined)
|
|
176
176
|
this.src = optional.src;
|
|
177
177
|
}
|
|
@@ -181,7 +181,7 @@ customElements.define("base-img-element", ImageElement, { extends: "img" });
|
|
|
181
181
|
class UListElement extends HTMLUListElement {
|
|
182
182
|
constructor(optional) {
|
|
183
183
|
super();
|
|
184
|
-
Component.
|
|
184
|
+
Component.applyData(optional, this);
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
exports.UListElement = UListElement;
|
|
@@ -189,7 +189,7 @@ customElements.define("base-ul-element", UListElement, { extends: "ul" });
|
|
|
189
189
|
class OrderedListElement extends HTMLOListElement {
|
|
190
190
|
constructor(optional) {
|
|
191
191
|
super();
|
|
192
|
-
Component.
|
|
192
|
+
Component.applyData(optional, this);
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
exports.OrderedListElement = OrderedListElement;
|
|
@@ -197,7 +197,7 @@ customElements.define("base-ol-element", OrderedListElement, { extends: "ol" });
|
|
|
197
197
|
class ListItemElement extends HTMLLIElement {
|
|
198
198
|
constructor(optional) {
|
|
199
199
|
super();
|
|
200
|
-
Component.
|
|
200
|
+
Component.applyData(optional, this);
|
|
201
201
|
}
|
|
202
202
|
onSelect() { }
|
|
203
203
|
}
|
|
@@ -206,7 +206,7 @@ customElements.define("base-li-element", ListItemElement, { extends: "li" });
|
|
|
206
206
|
class MainElement extends HTMLElement {
|
|
207
207
|
constructor(optional) {
|
|
208
208
|
super();
|
|
209
|
-
Component.
|
|
209
|
+
Component.applyData(optional, this);
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
exports.MainElement = MainElement;
|
|
@@ -218,7 +218,7 @@ customElements.define("base-main-element", MainElement, { extends: "main" });
|
|
|
218
218
|
class SpanElement extends HTMLSpanElement {
|
|
219
219
|
constructor(optional) {
|
|
220
220
|
super();
|
|
221
|
-
Component.
|
|
221
|
+
Component.applyData(optional, this);
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
exports.SpanElement = SpanElement;
|
|
@@ -226,7 +226,7 @@ customElements.define("base-span-element", SpanElement, { extends: "span" });
|
|
|
226
226
|
class StrongElement extends HTMLSpanElement {
|
|
227
227
|
constructor(optional) {
|
|
228
228
|
super();
|
|
229
|
-
Component.
|
|
229
|
+
Component.applyData(optional, this);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
exports.StrongElement = StrongElement;
|
|
@@ -236,7 +236,7 @@ customElements.define("base-strong-element", StrongElement, {
|
|
|
236
236
|
class EmElement extends HTMLEmbedElement {
|
|
237
237
|
constructor(optional) {
|
|
238
238
|
super();
|
|
239
|
-
Component.
|
|
239
|
+
Component.applyData(optional, this);
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
exports.EmElement = EmElement;
|
|
@@ -244,7 +244,7 @@ customElements.define("base-em-element", EmElement, { extends: "em" });
|
|
|
244
244
|
class BreakElement extends HTMLBRElement {
|
|
245
245
|
constructor(optional) {
|
|
246
246
|
super();
|
|
247
|
-
Component.
|
|
247
|
+
Component.applyData(optional, this);
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
exports.BreakElement = BreakElement;
|
|
@@ -252,7 +252,7 @@ customElements.define("base-br-element", BreakElement, { extends: "br" });
|
|
|
252
252
|
class TableHeadElement extends HTMLTableSectionElement {
|
|
253
253
|
constructor(optional) {
|
|
254
254
|
super();
|
|
255
|
-
Component.
|
|
255
|
+
Component.applyData(optional, this);
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
exports.TableHeadElement = TableHeadElement;
|
|
@@ -260,7 +260,7 @@ customElements.define("base-thead-element", TableHeadElement, { extends: "thead"
|
|
|
260
260
|
class TableBodyElement extends HTMLTableSectionElement {
|
|
261
261
|
constructor(optional) {
|
|
262
262
|
super();
|
|
263
|
-
Component.
|
|
263
|
+
Component.applyData(optional, this);
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
exports.TableBodyElement = TableBodyElement;
|
|
@@ -275,7 +275,7 @@ class TableHeadCellElement extends HTMLTableCellElement {
|
|
|
275
275
|
if (optional?.child)
|
|
276
276
|
this.appendChild(optional.child);
|
|
277
277
|
delete optional?.child;
|
|
278
|
-
Component.
|
|
278
|
+
Component.applyData(optional, this);
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
exports.TableHeadCellElement = TableHeadCellElement;
|
|
@@ -283,7 +283,7 @@ customElements.define("base-th-cell-element", TableHeadCellElement, { extends: "
|
|
|
283
283
|
class TableFootElement extends HTMLTableSectionElement {
|
|
284
284
|
constructor(optional) {
|
|
285
285
|
super();
|
|
286
|
-
Component.
|
|
286
|
+
Component.applyData(optional, this);
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
exports.TableFootElement = TableFootElement;
|
|
@@ -294,7 +294,7 @@ class TableElement extends HTMLTableElement {
|
|
|
294
294
|
_foot = undefined;
|
|
295
295
|
constructor(optional) {
|
|
296
296
|
super();
|
|
297
|
-
Component.
|
|
297
|
+
Component.applyData(optional, this);
|
|
298
298
|
}
|
|
299
299
|
addHeadRows(...rows) {
|
|
300
300
|
if (this._head == undefined)
|
|
@@ -378,7 +378,7 @@ class TableFootRowElement extends HTMLTableRowElement {
|
|
|
378
378
|
this.addCells(...optional.cells);
|
|
379
379
|
}
|
|
380
380
|
delete optional?.cells;
|
|
381
|
-
Component.
|
|
381
|
+
Component.applyData(optional, this);
|
|
382
382
|
}
|
|
383
383
|
addCells(...cells) {
|
|
384
384
|
cells.forEach((cell) => {
|
|
@@ -399,7 +399,7 @@ class TableHeadRowElement extends HTMLTableRowElement {
|
|
|
399
399
|
this.addCells(...optional.cells);
|
|
400
400
|
}
|
|
401
401
|
delete optional?.cells;
|
|
402
|
-
Component.
|
|
402
|
+
Component.applyData(optional, this);
|
|
403
403
|
}
|
|
404
404
|
addCells(...cells) {
|
|
405
405
|
cells.forEach((cell) => {
|
|
@@ -420,7 +420,7 @@ class TableRowElement extends HTMLTableRowElement {
|
|
|
420
420
|
this.addCells(...optional.cells);
|
|
421
421
|
}
|
|
422
422
|
delete optional?.cells;
|
|
423
|
-
Component.
|
|
423
|
+
Component.applyData(optional, this);
|
|
424
424
|
}
|
|
425
425
|
addCells(...cells) {
|
|
426
426
|
cells.forEach((cell) => {
|
|
@@ -444,17 +444,25 @@ class TableCellElement extends HTMLTableCellElement {
|
|
|
444
444
|
if (optional?.child)
|
|
445
445
|
this.appendChild(optional.child);
|
|
446
446
|
delete optional?.child;
|
|
447
|
-
Component.
|
|
447
|
+
Component.applyData(optional, this);
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
exports.TableCellElement = TableCellElement;
|
|
451
451
|
customElements.define("base-td-element", TableCellElement, { extends: "td" });
|
|
452
|
+
class PreElement extends HTMLPreElement {
|
|
453
|
+
constructor(optional) {
|
|
454
|
+
super();
|
|
455
|
+
Component.applyData(optional, this);
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
exports.PreElement = PreElement;
|
|
459
|
+
customElements.define("base-pre-element", PreElement, { extends: "pre" });
|
|
452
460
|
class InputElement extends HTMLInputElement {
|
|
453
461
|
constructor(optional) {
|
|
454
462
|
super();
|
|
455
463
|
const v = optional?.value;
|
|
456
464
|
delete optional?.value;
|
|
457
|
-
Component.
|
|
465
|
+
Component.applyData(optional, this);
|
|
458
466
|
if (v) {
|
|
459
467
|
if (typeof v == "string")
|
|
460
468
|
this.value = v;
|
|
@@ -475,7 +483,7 @@ class ButtonElement extends HTMLButtonElement {
|
|
|
475
483
|
super();
|
|
476
484
|
const type = optional?.type;
|
|
477
485
|
delete optional?.type;
|
|
478
|
-
Component.
|
|
486
|
+
Component.applyData(optional, this);
|
|
479
487
|
if (type)
|
|
480
488
|
this.type = type;
|
|
481
489
|
if (optional?.accept)
|
|
@@ -496,7 +504,7 @@ customElements.define("base-button-element", ButtonElement, {
|
|
|
496
504
|
class TextAreaElement extends HTMLTextAreaElement {
|
|
497
505
|
constructor(optional) {
|
|
498
506
|
super();
|
|
499
|
-
Component.
|
|
507
|
+
Component.applyData(optional, this);
|
|
500
508
|
}
|
|
501
509
|
}
|
|
502
510
|
exports.TextAreaElement = TextAreaElement;
|
|
@@ -506,7 +514,7 @@ customElements.define("base-textarea-element", TextAreaElement, {
|
|
|
506
514
|
class LabelElement extends HTMLLabelElement {
|
|
507
515
|
constructor(optional) {
|
|
508
516
|
super();
|
|
509
|
-
Component.
|
|
517
|
+
Component.applyData(optional, this);
|
|
510
518
|
}
|
|
511
519
|
}
|
|
512
520
|
exports.LabelElement = LabelElement;
|
|
@@ -514,7 +522,7 @@ customElements.define("base-label-element", LabelElement, { extends: "label" });
|
|
|
514
522
|
class SelectElement extends HTMLSelectElement {
|
|
515
523
|
constructor(optional) {
|
|
516
524
|
super();
|
|
517
|
-
Component.
|
|
525
|
+
Component.applyData(optional, this);
|
|
518
526
|
}
|
|
519
527
|
}
|
|
520
528
|
exports.SelectElement = SelectElement;
|
|
@@ -524,7 +532,7 @@ customElements.define("base-select-element", SelectElement, {
|
|
|
524
532
|
class AudioElement extends HTMLAudioElement {
|
|
525
533
|
constructor(optional) {
|
|
526
534
|
super();
|
|
527
|
-
Component.
|
|
535
|
+
Component.applyData(optional, this);
|
|
528
536
|
}
|
|
529
537
|
}
|
|
530
538
|
exports.AudioElement = AudioElement;
|
|
@@ -532,7 +540,7 @@ customElements.define("base-audio-element", AudioElement, { extends: "audio" });
|
|
|
532
540
|
class BoldElement extends HTMLElement {
|
|
533
541
|
constructor(optional) {
|
|
534
542
|
super();
|
|
535
|
-
Component.
|
|
543
|
+
Component.applyData(optional, this);
|
|
536
544
|
}
|
|
537
545
|
}
|
|
538
546
|
exports.BoldElement = BoldElement;
|
|
@@ -541,7 +549,7 @@ customElements.define("base-b-element", BoldElement, { extends: "b" });
|
|
|
541
549
|
class BaseElement extends HTMLElement {
|
|
542
550
|
constructor(optional) {
|
|
543
551
|
super();
|
|
544
|
-
Component.
|
|
552
|
+
Component.applyData(optional, this);
|
|
545
553
|
}
|
|
546
554
|
}
|
|
547
555
|
exports.BaseElement = BaseElement;
|
|
@@ -550,7 +558,7 @@ customElements.define("base-base-element", BaseElement, { extends: "base" });
|
|
|
550
558
|
class BodyElement extends HTMLBodyElement {
|
|
551
559
|
constructor(optional) {
|
|
552
560
|
super();
|
|
553
|
-
Component.
|
|
561
|
+
Component.applyData(optional, this);
|
|
554
562
|
}
|
|
555
563
|
}
|
|
556
564
|
exports.BodyElement = BodyElement;
|
|
@@ -559,7 +567,7 @@ customElements.define("base-body-element", BodyElement, { extends: "body" });
|
|
|
559
567
|
class VideoElement extends HTMLVideoElement {
|
|
560
568
|
constructor(optional) {
|
|
561
569
|
super();
|
|
562
|
-
Component.
|
|
570
|
+
Component.applyData(optional, this);
|
|
563
571
|
}
|
|
564
572
|
}
|
|
565
573
|
exports.VideoElement = VideoElement;
|
|
@@ -571,7 +579,7 @@ class CanvasElement extends HTMLCanvasElement {
|
|
|
571
579
|
this.width = optional.width;
|
|
572
580
|
if (optional?.height)
|
|
573
581
|
this.height = optional.height;
|
|
574
|
-
Component.
|
|
582
|
+
Component.applyData(optional, this);
|
|
575
583
|
}
|
|
576
584
|
}
|
|
577
585
|
exports.CanvasElement = CanvasElement;
|
|
@@ -582,7 +590,7 @@ customElements.define("base-canvas-element", CanvasElement, {
|
|
|
582
590
|
class CaptionElement extends HTMLTableCaptionElement {
|
|
583
591
|
constructor(optional) {
|
|
584
592
|
super();
|
|
585
|
-
Component.
|
|
593
|
+
Component.applyData(optional, this);
|
|
586
594
|
}
|
|
587
595
|
}
|
|
588
596
|
exports.CaptionElement = CaptionElement;
|
|
@@ -593,7 +601,7 @@ customElements.define("base-caption-element", CaptionElement, {
|
|
|
593
601
|
class CiteElement extends HTMLElement {
|
|
594
602
|
constructor(optional) {
|
|
595
603
|
super();
|
|
596
|
-
Component.
|
|
604
|
+
Component.applyData(optional, this);
|
|
597
605
|
}
|
|
598
606
|
}
|
|
599
607
|
exports.CiteElement = CiteElement;
|
|
@@ -602,7 +610,9 @@ customElements.define("base-cite-element", CiteElement, { extends: "cite" });
|
|
|
602
610
|
class CodeElement extends HTMLElement {
|
|
603
611
|
constructor(optional) {
|
|
604
612
|
super();
|
|
605
|
-
Component.
|
|
613
|
+
Component.applyData(optional, this);
|
|
614
|
+
if (optional.contentEditable != undefined)
|
|
615
|
+
this.contentEditable = optional.contentEditable.toString();
|
|
606
616
|
}
|
|
607
617
|
}
|
|
608
618
|
exports.CodeElement = CodeElement;
|
|
@@ -613,7 +623,7 @@ class TableColElement extends HTMLTableColElement {
|
|
|
613
623
|
super();
|
|
614
624
|
if (optional?.span)
|
|
615
625
|
this.span = optional.span;
|
|
616
|
-
Component.
|
|
626
|
+
Component.applyData(optional, this);
|
|
617
627
|
}
|
|
618
628
|
}
|
|
619
629
|
exports.TableColElement = TableColElement;
|
|
@@ -624,7 +634,7 @@ class TableColGroupElement extends HTMLTableColElement {
|
|
|
624
634
|
super();
|
|
625
635
|
if (optional?.span)
|
|
626
636
|
this.span = optional.span;
|
|
627
|
-
Component.
|
|
637
|
+
Component.applyData(optional, this);
|
|
628
638
|
}
|
|
629
639
|
}
|
|
630
640
|
exports.TableColGroupElement = TableColGroupElement;
|
|
@@ -635,7 +645,7 @@ customElements.define("base-colgroup-element", TableColGroupElement, {
|
|
|
635
645
|
class DataListElement extends HTMLDataListElement {
|
|
636
646
|
constructor(optional) {
|
|
637
647
|
super();
|
|
638
|
-
Component.
|
|
648
|
+
Component.applyData(optional, this);
|
|
639
649
|
}
|
|
640
650
|
}
|
|
641
651
|
exports.DataListElement = DataListElement;
|
|
@@ -646,7 +656,7 @@ customElements.define("base-datalist-element", DataListElement, {
|
|
|
646
656
|
class DefinitionDescriptionElement extends HTMLElement {
|
|
647
657
|
constructor(optional) {
|
|
648
658
|
super();
|
|
649
|
-
Component.
|
|
659
|
+
Component.applyData(optional, this);
|
|
650
660
|
}
|
|
651
661
|
}
|
|
652
662
|
exports.DefinitionDescriptionElement = DefinitionDescriptionElement;
|
|
@@ -659,7 +669,7 @@ class DeletedTextElement extends HTMLModElement {
|
|
|
659
669
|
super();
|
|
660
670
|
if (optional?.cite)
|
|
661
671
|
this.cite = optional.cite;
|
|
662
|
-
Component.
|
|
672
|
+
Component.applyData(optional, this);
|
|
663
673
|
}
|
|
664
674
|
}
|
|
665
675
|
exports.DeletedTextElement = DeletedTextElement;
|
|
@@ -670,7 +680,7 @@ customElements.define("base-del-element", DeletedTextElement, {
|
|
|
670
680
|
class DetailsElement extends HTMLDetailsElement {
|
|
671
681
|
constructor(optional) {
|
|
672
682
|
super();
|
|
673
|
-
Component.
|
|
683
|
+
Component.applyData(optional, this);
|
|
674
684
|
if (optional?.open)
|
|
675
685
|
this.open = optional.open;
|
|
676
686
|
if (optional?.summary) {
|
|
@@ -696,7 +706,7 @@ customElements.define("base-details-element", DetailsElement, {
|
|
|
696
706
|
class DefinitionElement extends HTMLElement {
|
|
697
707
|
constructor(optional) {
|
|
698
708
|
super();
|
|
699
|
-
Component.
|
|
709
|
+
Component.applyData(optional, this);
|
|
700
710
|
}
|
|
701
711
|
}
|
|
702
712
|
exports.DefinitionElement = DefinitionElement;
|
|
@@ -707,7 +717,7 @@ customElements.define("base-dfn-element", DefinitionElement, {
|
|
|
707
717
|
class DialogElement extends HTMLDialogElement {
|
|
708
718
|
constructor(optional) {
|
|
709
719
|
super();
|
|
710
|
-
Component.
|
|
720
|
+
Component.applyData(optional, this);
|
|
711
721
|
this.open = optional.open == undefined ? true : optional.open;
|
|
712
722
|
}
|
|
713
723
|
}
|
|
@@ -727,7 +737,7 @@ class EmbedElement extends HTMLEmbedElement {
|
|
|
727
737
|
this.type = optional.type;
|
|
728
738
|
if (optional?.width)
|
|
729
739
|
this.width = optional.width;
|
|
730
|
-
Component.
|
|
740
|
+
Component.applyData(optional, this);
|
|
731
741
|
}
|
|
732
742
|
}
|
|
733
743
|
exports.EmbedElement = EmbedElement;
|
|
@@ -736,7 +746,7 @@ customElements.define("base-embed-element", EmbedElement, { extends: "embed" });
|
|
|
736
746
|
class FieldSetElement extends HTMLFieldSetElement {
|
|
737
747
|
constructor(optional) {
|
|
738
748
|
super();
|
|
739
|
-
Component.
|
|
749
|
+
Component.applyData(optional, this);
|
|
740
750
|
if (optional?.disabled)
|
|
741
751
|
this.disabled = optional.disabled;
|
|
742
752
|
if (optional?.name)
|
|
@@ -764,7 +774,7 @@ customElements.define("base-fieldset-element", FieldSetElement, {
|
|
|
764
774
|
class FooterElement extends HTMLElement {
|
|
765
775
|
constructor(optional) {
|
|
766
776
|
super();
|
|
767
|
-
Component.
|
|
777
|
+
Component.applyData(optional, this);
|
|
768
778
|
}
|
|
769
779
|
}
|
|
770
780
|
exports.FooterElement = FooterElement;
|
|
@@ -774,7 +784,7 @@ customElements.define("base-footer-element", FooterElement, {
|
|
|
774
784
|
class FormElement extends HTMLFormElement {
|
|
775
785
|
constructor(optional) {
|
|
776
786
|
super();
|
|
777
|
-
Component.
|
|
787
|
+
Component.applyData(optional, this);
|
|
778
788
|
}
|
|
779
789
|
}
|
|
780
790
|
exports.FormElement = FormElement;
|
|
@@ -782,7 +792,7 @@ customElements.define("base-form-element", FormElement, { extends: "form" });
|
|
|
782
792
|
class H1Element extends HTMLHeadingElement {
|
|
783
793
|
constructor(optional) {
|
|
784
794
|
super();
|
|
785
|
-
Component.
|
|
795
|
+
Component.applyData(optional, this);
|
|
786
796
|
if (optional?.text)
|
|
787
797
|
this.innerText = optional.text.toString();
|
|
788
798
|
}
|
|
@@ -792,7 +802,7 @@ customElements.define("base-h1-element", H1Element, { extends: "h1" });
|
|
|
792
802
|
class H2Element extends HTMLHeadingElement {
|
|
793
803
|
constructor(optional) {
|
|
794
804
|
super();
|
|
795
|
-
Component.
|
|
805
|
+
Component.applyData(optional, this);
|
|
796
806
|
if (optional?.text)
|
|
797
807
|
this.innerText = optional.text.toString();
|
|
798
808
|
}
|
|
@@ -802,7 +812,7 @@ customElements.define("base-h2-element", H2Element, { extends: "h2" });
|
|
|
802
812
|
class H3Element extends HTMLHeadingElement {
|
|
803
813
|
constructor(optional) {
|
|
804
814
|
super();
|
|
805
|
-
Component.
|
|
815
|
+
Component.applyData(optional, this);
|
|
806
816
|
if (optional?.text)
|
|
807
817
|
this.text = optional.text;
|
|
808
818
|
}
|
|
@@ -821,7 +831,7 @@ customElements.define("base-h3-element", H3Element, { extends: "h3" });
|
|
|
821
831
|
class H4Element extends H3Element {
|
|
822
832
|
constructor(optional) {
|
|
823
833
|
super();
|
|
824
|
-
Component.
|
|
834
|
+
Component.applyData(optional, this);
|
|
825
835
|
if (optional?.text)
|
|
826
836
|
this.innerText = optional.text.toString();
|
|
827
837
|
}
|
|
@@ -835,7 +845,7 @@ customElements.define("base-h4-element", H4Element, { extends: "h4" });
|
|
|
835
845
|
class H5Element extends H3Element {
|
|
836
846
|
constructor(optional) {
|
|
837
847
|
super();
|
|
838
|
-
Component.
|
|
848
|
+
Component.applyData(optional, this);
|
|
839
849
|
if (optional?.text)
|
|
840
850
|
this.innerText = optional.text.toString();
|
|
841
851
|
}
|
|
@@ -849,7 +859,7 @@ customElements.define("base-h5-element", H5Element, { extends: "h5" });
|
|
|
849
859
|
class H6Element extends H3Element {
|
|
850
860
|
constructor(optional) {
|
|
851
861
|
super();
|
|
852
|
-
Component.
|
|
862
|
+
Component.applyData(optional, this);
|
|
853
863
|
if (optional?.text)
|
|
854
864
|
this.innerText = optional.text.toString();
|
|
855
865
|
}
|
|
@@ -864,7 +874,7 @@ customElements.define("base-h6-element", H6Element, { extends: "h6" });
|
|
|
864
874
|
class HeadElement extends HTMLHeadElement {
|
|
865
875
|
constructor(optional) {
|
|
866
876
|
super();
|
|
867
|
-
Component.
|
|
877
|
+
Component.applyData(optional, this);
|
|
868
878
|
}
|
|
869
879
|
}
|
|
870
880
|
exports.HeadElement = HeadElement;
|
|
@@ -873,7 +883,7 @@ customElements.define("base-head-element", HeadElement, { extends: "head" });
|
|
|
873
883
|
class HeaderElement extends HTMLElement {
|
|
874
884
|
constructor(optional) {
|
|
875
885
|
super();
|
|
876
|
-
Component.
|
|
886
|
+
Component.applyData(optional, this);
|
|
877
887
|
}
|
|
878
888
|
}
|
|
879
889
|
exports.HeaderElement = HeaderElement;
|
|
@@ -884,7 +894,7 @@ customElements.define("base-header-element", HeaderElement, {
|
|
|
884
894
|
class HorizontalRuleElement extends HTMLHRElement {
|
|
885
895
|
constructor(optional) {
|
|
886
896
|
super();
|
|
887
|
-
Component.
|
|
897
|
+
Component.applyData(optional, this);
|
|
888
898
|
}
|
|
889
899
|
}
|
|
890
900
|
exports.HorizontalRuleElement = HorizontalRuleElement;
|
|
@@ -897,7 +907,7 @@ class HtmlElement extends HTMLHtmlElement {
|
|
|
897
907
|
super();
|
|
898
908
|
if (optional?.manifest)
|
|
899
909
|
this.manifest = optional.manifest;
|
|
900
|
-
Component.
|
|
910
|
+
Component.applyData(optional, this);
|
|
901
911
|
}
|
|
902
912
|
set manifest(value) {
|
|
903
913
|
this.setAttribute("manifest", value);
|
|
@@ -936,7 +946,7 @@ class IFrameElement extends HTMLIFrameElement {
|
|
|
936
946
|
this.srcdoc = optional.srcdoc;
|
|
937
947
|
if (optional?.width)
|
|
938
948
|
this.width = optional.width;
|
|
939
|
-
Component.
|
|
949
|
+
Component.applyData(optional, this);
|
|
940
950
|
}
|
|
941
951
|
set allowfullscreen(value) {
|
|
942
952
|
this.setAttribute("allowfullscreen", value.toString());
|
|
@@ -977,7 +987,7 @@ customElements.define("base-iframe-element", IFrameElement, {
|
|
|
977
987
|
class LegendElement extends HTMLLegendElement {
|
|
978
988
|
constructor(optional) {
|
|
979
989
|
super();
|
|
980
|
-
Component.
|
|
990
|
+
Component.applyData(optional, this);
|
|
981
991
|
if (optional?.value)
|
|
982
992
|
this.innerHTML = optional.value;
|
|
983
993
|
}
|
|
@@ -989,7 +999,7 @@ customElements.define("base-legend-element", LegendElement, {
|
|
|
989
999
|
class SvgElement extends HTMLObjectElement {
|
|
990
1000
|
constructor(optional) {
|
|
991
1001
|
super();
|
|
992
|
-
Component.
|
|
1002
|
+
Component.applyData(optional, this);
|
|
993
1003
|
if (optional?.width)
|
|
994
1004
|
this.width = optional.width;
|
|
995
1005
|
if (optional?.height)
|
|
@@ -1025,7 +1035,7 @@ customElements.define("base-svg-element", SvgElement, { extends: "object" });
|
|
|
1025
1035
|
class NavElement extends HTMLElement {
|
|
1026
1036
|
constructor(optional) {
|
|
1027
1037
|
super();
|
|
1028
|
-
Component.
|
|
1038
|
+
Component.applyData(optional, this);
|
|
1029
1039
|
}
|
|
1030
1040
|
}
|
|
1031
1041
|
exports.NavElement = NavElement;
|
|
@@ -1033,7 +1043,7 @@ customElements.define("base-nav-element", NavElement, { extends: "nav" });
|
|
|
1033
1043
|
class SectionElement extends HTMLElement {
|
|
1034
1044
|
constructor(optional) {
|
|
1035
1045
|
super();
|
|
1036
|
-
Component.
|
|
1046
|
+
Component.applyData(optional, this);
|
|
1037
1047
|
}
|
|
1038
1048
|
}
|
|
1039
1049
|
exports.SectionElement = SectionElement;
|
|
@@ -1043,7 +1053,7 @@ customElements.define("base-section-element", SectionElement, {
|
|
|
1043
1053
|
class ArticleElement extends HTMLElement {
|
|
1044
1054
|
constructor(optional) {
|
|
1045
1055
|
super();
|
|
1046
|
-
Component.
|
|
1056
|
+
Component.applyData(optional, this);
|
|
1047
1057
|
}
|
|
1048
1058
|
}
|
|
1049
1059
|
exports.ArticleElement = ArticleElement;
|
|
@@ -1053,7 +1063,7 @@ customElements.define("base-article-element", ArticleElement, {
|
|
|
1053
1063
|
class SummaryElement extends HTMLElement {
|
|
1054
1064
|
constructor(optional) {
|
|
1055
1065
|
super();
|
|
1056
|
-
Component.
|
|
1066
|
+
Component.applyData(optional, this);
|
|
1057
1067
|
}
|
|
1058
1068
|
}
|
|
1059
1069
|
exports.SummaryElement = SummaryElement;
|