typecomposer 0.0.31 → 0.0.33
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 +84 -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/global/index.d.ts +1 -0
- package/dist/cjs/global/index.js +1 -0
- package/dist/cjs/global/index.js.map +1 -1
- package/dist/cjs/global/safari-polyfill.d.ts +0 -0
- package/dist/cjs/global/safari-polyfill.js +234 -0
- package/dist/cjs/global/safari-polyfill.js.map +1 -0
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.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 +81 -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/global/index.d.ts +1 -0
- package/dist/esm/global/index.js +1 -0
- package/dist/esm/global/index.js.map +1 -1
- package/dist/esm/global/safari-polyfill.d.ts +0 -0
- package/dist/esm/global/safari-polyfill.js +234 -0
- package/dist/esm/global/safari-polyfill.js.map +1 -0
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.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,10 +63,13 @@ 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
68
|
else if (data[key] != undefined) {
|
|
69
|
-
|
|
69
|
+
try {
|
|
70
|
+
element[key] = data[key];
|
|
71
|
+
}
|
|
72
|
+
catch (__) { }
|
|
70
73
|
}
|
|
71
74
|
});
|
|
72
75
|
}
|
|
@@ -107,7 +110,7 @@ customElements.define("component-element", Component);
|
|
|
107
110
|
class DivElement extends HTMLDivElement {
|
|
108
111
|
constructor(optional) {
|
|
109
112
|
super();
|
|
110
|
-
Component.
|
|
113
|
+
Component.applyData(optional, this);
|
|
111
114
|
}
|
|
112
115
|
}
|
|
113
116
|
exports.DivElement = DivElement;
|
|
@@ -115,7 +118,7 @@ customElements.define("base-div-element", DivElement, { extends: "div" });
|
|
|
115
118
|
class ParagraphElement extends HTMLParagraphElement {
|
|
116
119
|
constructor(optional) {
|
|
117
120
|
super();
|
|
118
|
-
Component.
|
|
121
|
+
Component.applyData(optional, this);
|
|
119
122
|
}
|
|
120
123
|
}
|
|
121
124
|
exports.ParagraphElement = ParagraphElement;
|
|
@@ -124,7 +127,7 @@ class AnchorElement extends HTMLAnchorElement {
|
|
|
124
127
|
_rlink = "";
|
|
125
128
|
constructor(optional) {
|
|
126
129
|
super();
|
|
127
|
-
Component.
|
|
130
|
+
Component.applyData(optional, this);
|
|
128
131
|
this.addEventListener("click", (event) => {
|
|
129
132
|
event.preventDefault();
|
|
130
133
|
if (this._rlink != "") {
|
|
@@ -151,7 +154,7 @@ customElements.define("base-a-element", AnchorElement, { extends: "a" });
|
|
|
151
154
|
class AbbreviationElement extends HTMLElement {
|
|
152
155
|
constructor(optional) {
|
|
153
156
|
super();
|
|
154
|
-
Component.
|
|
157
|
+
Component.applyData(optional, this);
|
|
155
158
|
}
|
|
156
159
|
}
|
|
157
160
|
exports.AbbreviationElement = AbbreviationElement;
|
|
@@ -162,7 +165,7 @@ customElements.define("base-abbr-element", AbbreviationElement, {
|
|
|
162
165
|
class AreaElement extends HTMLAreaElement {
|
|
163
166
|
constructor(optional) {
|
|
164
167
|
super();
|
|
165
|
-
Component.
|
|
168
|
+
Component.applyData(optional, this);
|
|
166
169
|
}
|
|
167
170
|
}
|
|
168
171
|
exports.AreaElement = AreaElement;
|
|
@@ -171,7 +174,7 @@ class ImageElement extends HTMLImageElement {
|
|
|
171
174
|
constructor(optional) {
|
|
172
175
|
super();
|
|
173
176
|
this.className = "image-element";
|
|
174
|
-
Component.
|
|
177
|
+
Component.applyData(optional, this);
|
|
175
178
|
if (optional?.src != undefined)
|
|
176
179
|
this.src = optional.src;
|
|
177
180
|
}
|
|
@@ -181,7 +184,7 @@ customElements.define("base-img-element", ImageElement, { extends: "img" });
|
|
|
181
184
|
class UListElement extends HTMLUListElement {
|
|
182
185
|
constructor(optional) {
|
|
183
186
|
super();
|
|
184
|
-
Component.
|
|
187
|
+
Component.applyData(optional, this);
|
|
185
188
|
}
|
|
186
189
|
}
|
|
187
190
|
exports.UListElement = UListElement;
|
|
@@ -189,7 +192,7 @@ customElements.define("base-ul-element", UListElement, { extends: "ul" });
|
|
|
189
192
|
class OrderedListElement extends HTMLOListElement {
|
|
190
193
|
constructor(optional) {
|
|
191
194
|
super();
|
|
192
|
-
Component.
|
|
195
|
+
Component.applyData(optional, this);
|
|
193
196
|
}
|
|
194
197
|
}
|
|
195
198
|
exports.OrderedListElement = OrderedListElement;
|
|
@@ -197,7 +200,7 @@ customElements.define("base-ol-element", OrderedListElement, { extends: "ol" });
|
|
|
197
200
|
class ListItemElement extends HTMLLIElement {
|
|
198
201
|
constructor(optional) {
|
|
199
202
|
super();
|
|
200
|
-
Component.
|
|
203
|
+
Component.applyData(optional, this);
|
|
201
204
|
}
|
|
202
205
|
onSelect() { }
|
|
203
206
|
}
|
|
@@ -206,7 +209,7 @@ customElements.define("base-li-element", ListItemElement, { extends: "li" });
|
|
|
206
209
|
class MainElement extends HTMLElement {
|
|
207
210
|
constructor(optional) {
|
|
208
211
|
super();
|
|
209
|
-
Component.
|
|
212
|
+
Component.applyData(optional, this);
|
|
210
213
|
}
|
|
211
214
|
}
|
|
212
215
|
exports.MainElement = MainElement;
|
|
@@ -218,7 +221,7 @@ customElements.define("base-main-element", MainElement, { extends: "main" });
|
|
|
218
221
|
class SpanElement extends HTMLSpanElement {
|
|
219
222
|
constructor(optional) {
|
|
220
223
|
super();
|
|
221
|
-
Component.
|
|
224
|
+
Component.applyData(optional, this);
|
|
222
225
|
}
|
|
223
226
|
}
|
|
224
227
|
exports.SpanElement = SpanElement;
|
|
@@ -226,7 +229,7 @@ customElements.define("base-span-element", SpanElement, { extends: "span" });
|
|
|
226
229
|
class StrongElement extends HTMLSpanElement {
|
|
227
230
|
constructor(optional) {
|
|
228
231
|
super();
|
|
229
|
-
Component.
|
|
232
|
+
Component.applyData(optional, this);
|
|
230
233
|
}
|
|
231
234
|
}
|
|
232
235
|
exports.StrongElement = StrongElement;
|
|
@@ -236,7 +239,7 @@ customElements.define("base-strong-element", StrongElement, {
|
|
|
236
239
|
class EmElement extends HTMLEmbedElement {
|
|
237
240
|
constructor(optional) {
|
|
238
241
|
super();
|
|
239
|
-
Component.
|
|
242
|
+
Component.applyData(optional, this);
|
|
240
243
|
}
|
|
241
244
|
}
|
|
242
245
|
exports.EmElement = EmElement;
|
|
@@ -244,7 +247,7 @@ customElements.define("base-em-element", EmElement, { extends: "em" });
|
|
|
244
247
|
class BreakElement extends HTMLBRElement {
|
|
245
248
|
constructor(optional) {
|
|
246
249
|
super();
|
|
247
|
-
Component.
|
|
250
|
+
Component.applyData(optional, this);
|
|
248
251
|
}
|
|
249
252
|
}
|
|
250
253
|
exports.BreakElement = BreakElement;
|
|
@@ -252,7 +255,7 @@ customElements.define("base-br-element", BreakElement, { extends: "br" });
|
|
|
252
255
|
class TableHeadElement extends HTMLTableSectionElement {
|
|
253
256
|
constructor(optional) {
|
|
254
257
|
super();
|
|
255
|
-
Component.
|
|
258
|
+
Component.applyData(optional, this);
|
|
256
259
|
}
|
|
257
260
|
}
|
|
258
261
|
exports.TableHeadElement = TableHeadElement;
|
|
@@ -260,7 +263,7 @@ customElements.define("base-thead-element", TableHeadElement, { extends: "thead"
|
|
|
260
263
|
class TableBodyElement extends HTMLTableSectionElement {
|
|
261
264
|
constructor(optional) {
|
|
262
265
|
super();
|
|
263
|
-
Component.
|
|
266
|
+
Component.applyData(optional, this);
|
|
264
267
|
}
|
|
265
268
|
}
|
|
266
269
|
exports.TableBodyElement = TableBodyElement;
|
|
@@ -275,7 +278,7 @@ class TableHeadCellElement extends HTMLTableCellElement {
|
|
|
275
278
|
if (optional?.child)
|
|
276
279
|
this.appendChild(optional.child);
|
|
277
280
|
delete optional?.child;
|
|
278
|
-
Component.
|
|
281
|
+
Component.applyData(optional, this);
|
|
279
282
|
}
|
|
280
283
|
}
|
|
281
284
|
exports.TableHeadCellElement = TableHeadCellElement;
|
|
@@ -283,7 +286,7 @@ customElements.define("base-th-cell-element", TableHeadCellElement, { extends: "
|
|
|
283
286
|
class TableFootElement extends HTMLTableSectionElement {
|
|
284
287
|
constructor(optional) {
|
|
285
288
|
super();
|
|
286
|
-
Component.
|
|
289
|
+
Component.applyData(optional, this);
|
|
287
290
|
}
|
|
288
291
|
}
|
|
289
292
|
exports.TableFootElement = TableFootElement;
|
|
@@ -294,7 +297,7 @@ class TableElement extends HTMLTableElement {
|
|
|
294
297
|
_foot = undefined;
|
|
295
298
|
constructor(optional) {
|
|
296
299
|
super();
|
|
297
|
-
Component.
|
|
300
|
+
Component.applyData(optional, this);
|
|
298
301
|
}
|
|
299
302
|
addHeadRows(...rows) {
|
|
300
303
|
if (this._head == undefined)
|
|
@@ -378,7 +381,7 @@ class TableFootRowElement extends HTMLTableRowElement {
|
|
|
378
381
|
this.addCells(...optional.cells);
|
|
379
382
|
}
|
|
380
383
|
delete optional?.cells;
|
|
381
|
-
Component.
|
|
384
|
+
Component.applyData(optional, this);
|
|
382
385
|
}
|
|
383
386
|
addCells(...cells) {
|
|
384
387
|
cells.forEach((cell) => {
|
|
@@ -399,7 +402,7 @@ class TableHeadRowElement extends HTMLTableRowElement {
|
|
|
399
402
|
this.addCells(...optional.cells);
|
|
400
403
|
}
|
|
401
404
|
delete optional?.cells;
|
|
402
|
-
Component.
|
|
405
|
+
Component.applyData(optional, this);
|
|
403
406
|
}
|
|
404
407
|
addCells(...cells) {
|
|
405
408
|
cells.forEach((cell) => {
|
|
@@ -420,7 +423,7 @@ class TableRowElement extends HTMLTableRowElement {
|
|
|
420
423
|
this.addCells(...optional.cells);
|
|
421
424
|
}
|
|
422
425
|
delete optional?.cells;
|
|
423
|
-
Component.
|
|
426
|
+
Component.applyData(optional, this);
|
|
424
427
|
}
|
|
425
428
|
addCells(...cells) {
|
|
426
429
|
cells.forEach((cell) => {
|
|
@@ -444,17 +447,25 @@ class TableCellElement extends HTMLTableCellElement {
|
|
|
444
447
|
if (optional?.child)
|
|
445
448
|
this.appendChild(optional.child);
|
|
446
449
|
delete optional?.child;
|
|
447
|
-
Component.
|
|
450
|
+
Component.applyData(optional, this);
|
|
448
451
|
}
|
|
449
452
|
}
|
|
450
453
|
exports.TableCellElement = TableCellElement;
|
|
451
454
|
customElements.define("base-td-element", TableCellElement, { extends: "td" });
|
|
455
|
+
class PreElement extends HTMLPreElement {
|
|
456
|
+
constructor(optional) {
|
|
457
|
+
super();
|
|
458
|
+
Component.applyData(optional, this);
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
exports.PreElement = PreElement;
|
|
462
|
+
customElements.define("base-pre-element", PreElement, { extends: "pre" });
|
|
452
463
|
class InputElement extends HTMLInputElement {
|
|
453
464
|
constructor(optional) {
|
|
454
465
|
super();
|
|
455
466
|
const v = optional?.value;
|
|
456
467
|
delete optional?.value;
|
|
457
|
-
Component.
|
|
468
|
+
Component.applyData(optional, this);
|
|
458
469
|
if (v) {
|
|
459
470
|
if (typeof v == "string")
|
|
460
471
|
this.value = v;
|
|
@@ -475,7 +486,7 @@ class ButtonElement extends HTMLButtonElement {
|
|
|
475
486
|
super();
|
|
476
487
|
const type = optional?.type;
|
|
477
488
|
delete optional?.type;
|
|
478
|
-
Component.
|
|
489
|
+
Component.applyData(optional, this);
|
|
479
490
|
if (type)
|
|
480
491
|
this.type = type;
|
|
481
492
|
if (optional?.accept)
|
|
@@ -496,7 +507,7 @@ customElements.define("base-button-element", ButtonElement, {
|
|
|
496
507
|
class TextAreaElement extends HTMLTextAreaElement {
|
|
497
508
|
constructor(optional) {
|
|
498
509
|
super();
|
|
499
|
-
Component.
|
|
510
|
+
Component.applyData(optional, this);
|
|
500
511
|
}
|
|
501
512
|
}
|
|
502
513
|
exports.TextAreaElement = TextAreaElement;
|
|
@@ -506,7 +517,7 @@ customElements.define("base-textarea-element", TextAreaElement, {
|
|
|
506
517
|
class LabelElement extends HTMLLabelElement {
|
|
507
518
|
constructor(optional) {
|
|
508
519
|
super();
|
|
509
|
-
Component.
|
|
520
|
+
Component.applyData(optional, this);
|
|
510
521
|
}
|
|
511
522
|
}
|
|
512
523
|
exports.LabelElement = LabelElement;
|
|
@@ -514,7 +525,7 @@ customElements.define("base-label-element", LabelElement, { extends: "label" });
|
|
|
514
525
|
class SelectElement extends HTMLSelectElement {
|
|
515
526
|
constructor(optional) {
|
|
516
527
|
super();
|
|
517
|
-
Component.
|
|
528
|
+
Component.applyData(optional, this);
|
|
518
529
|
}
|
|
519
530
|
}
|
|
520
531
|
exports.SelectElement = SelectElement;
|
|
@@ -524,7 +535,7 @@ customElements.define("base-select-element", SelectElement, {
|
|
|
524
535
|
class AudioElement extends HTMLAudioElement {
|
|
525
536
|
constructor(optional) {
|
|
526
537
|
super();
|
|
527
|
-
Component.
|
|
538
|
+
Component.applyData(optional, this);
|
|
528
539
|
}
|
|
529
540
|
}
|
|
530
541
|
exports.AudioElement = AudioElement;
|
|
@@ -532,7 +543,7 @@ customElements.define("base-audio-element", AudioElement, { extends: "audio" });
|
|
|
532
543
|
class BoldElement extends HTMLElement {
|
|
533
544
|
constructor(optional) {
|
|
534
545
|
super();
|
|
535
|
-
Component.
|
|
546
|
+
Component.applyData(optional, this);
|
|
536
547
|
}
|
|
537
548
|
}
|
|
538
549
|
exports.BoldElement = BoldElement;
|
|
@@ -541,7 +552,7 @@ customElements.define("base-b-element", BoldElement, { extends: "b" });
|
|
|
541
552
|
class BaseElement extends HTMLElement {
|
|
542
553
|
constructor(optional) {
|
|
543
554
|
super();
|
|
544
|
-
Component.
|
|
555
|
+
Component.applyData(optional, this);
|
|
545
556
|
}
|
|
546
557
|
}
|
|
547
558
|
exports.BaseElement = BaseElement;
|
|
@@ -550,7 +561,7 @@ customElements.define("base-base-element", BaseElement, { extends: "base" });
|
|
|
550
561
|
class BodyElement extends HTMLBodyElement {
|
|
551
562
|
constructor(optional) {
|
|
552
563
|
super();
|
|
553
|
-
Component.
|
|
564
|
+
Component.applyData(optional, this);
|
|
554
565
|
}
|
|
555
566
|
}
|
|
556
567
|
exports.BodyElement = BodyElement;
|
|
@@ -559,7 +570,7 @@ customElements.define("base-body-element", BodyElement, { extends: "body" });
|
|
|
559
570
|
class VideoElement extends HTMLVideoElement {
|
|
560
571
|
constructor(optional) {
|
|
561
572
|
super();
|
|
562
|
-
Component.
|
|
573
|
+
Component.applyData(optional, this);
|
|
563
574
|
}
|
|
564
575
|
}
|
|
565
576
|
exports.VideoElement = VideoElement;
|
|
@@ -571,7 +582,7 @@ class CanvasElement extends HTMLCanvasElement {
|
|
|
571
582
|
this.width = optional.width;
|
|
572
583
|
if (optional?.height)
|
|
573
584
|
this.height = optional.height;
|
|
574
|
-
Component.
|
|
585
|
+
Component.applyData(optional, this);
|
|
575
586
|
}
|
|
576
587
|
}
|
|
577
588
|
exports.CanvasElement = CanvasElement;
|
|
@@ -582,7 +593,7 @@ customElements.define("base-canvas-element", CanvasElement, {
|
|
|
582
593
|
class CaptionElement extends HTMLTableCaptionElement {
|
|
583
594
|
constructor(optional) {
|
|
584
595
|
super();
|
|
585
|
-
Component.
|
|
596
|
+
Component.applyData(optional, this);
|
|
586
597
|
}
|
|
587
598
|
}
|
|
588
599
|
exports.CaptionElement = CaptionElement;
|
|
@@ -593,7 +604,7 @@ customElements.define("base-caption-element", CaptionElement, {
|
|
|
593
604
|
class CiteElement extends HTMLElement {
|
|
594
605
|
constructor(optional) {
|
|
595
606
|
super();
|
|
596
|
-
Component.
|
|
607
|
+
Component.applyData(optional, this);
|
|
597
608
|
}
|
|
598
609
|
}
|
|
599
610
|
exports.CiteElement = CiteElement;
|
|
@@ -602,7 +613,9 @@ customElements.define("base-cite-element", CiteElement, { extends: "cite" });
|
|
|
602
613
|
class CodeElement extends HTMLElement {
|
|
603
614
|
constructor(optional) {
|
|
604
615
|
super();
|
|
605
|
-
Component.
|
|
616
|
+
Component.applyData(optional, this);
|
|
617
|
+
if (optional.contentEditable != undefined)
|
|
618
|
+
this.contentEditable = optional.contentEditable.toString();
|
|
606
619
|
}
|
|
607
620
|
}
|
|
608
621
|
exports.CodeElement = CodeElement;
|
|
@@ -613,7 +626,7 @@ class TableColElement extends HTMLTableColElement {
|
|
|
613
626
|
super();
|
|
614
627
|
if (optional?.span)
|
|
615
628
|
this.span = optional.span;
|
|
616
|
-
Component.
|
|
629
|
+
Component.applyData(optional, this);
|
|
617
630
|
}
|
|
618
631
|
}
|
|
619
632
|
exports.TableColElement = TableColElement;
|
|
@@ -624,7 +637,7 @@ class TableColGroupElement extends HTMLTableColElement {
|
|
|
624
637
|
super();
|
|
625
638
|
if (optional?.span)
|
|
626
639
|
this.span = optional.span;
|
|
627
|
-
Component.
|
|
640
|
+
Component.applyData(optional, this);
|
|
628
641
|
}
|
|
629
642
|
}
|
|
630
643
|
exports.TableColGroupElement = TableColGroupElement;
|
|
@@ -635,7 +648,7 @@ customElements.define("base-colgroup-element", TableColGroupElement, {
|
|
|
635
648
|
class DataListElement extends HTMLDataListElement {
|
|
636
649
|
constructor(optional) {
|
|
637
650
|
super();
|
|
638
|
-
Component.
|
|
651
|
+
Component.applyData(optional, this);
|
|
639
652
|
}
|
|
640
653
|
}
|
|
641
654
|
exports.DataListElement = DataListElement;
|
|
@@ -646,7 +659,7 @@ customElements.define("base-datalist-element", DataListElement, {
|
|
|
646
659
|
class DefinitionDescriptionElement extends HTMLElement {
|
|
647
660
|
constructor(optional) {
|
|
648
661
|
super();
|
|
649
|
-
Component.
|
|
662
|
+
Component.applyData(optional, this);
|
|
650
663
|
}
|
|
651
664
|
}
|
|
652
665
|
exports.DefinitionDescriptionElement = DefinitionDescriptionElement;
|
|
@@ -659,7 +672,7 @@ class DeletedTextElement extends HTMLModElement {
|
|
|
659
672
|
super();
|
|
660
673
|
if (optional?.cite)
|
|
661
674
|
this.cite = optional.cite;
|
|
662
|
-
Component.
|
|
675
|
+
Component.applyData(optional, this);
|
|
663
676
|
}
|
|
664
677
|
}
|
|
665
678
|
exports.DeletedTextElement = DeletedTextElement;
|
|
@@ -670,7 +683,7 @@ customElements.define("base-del-element", DeletedTextElement, {
|
|
|
670
683
|
class DetailsElement extends HTMLDetailsElement {
|
|
671
684
|
constructor(optional) {
|
|
672
685
|
super();
|
|
673
|
-
Component.
|
|
686
|
+
Component.applyData(optional, this);
|
|
674
687
|
if (optional?.open)
|
|
675
688
|
this.open = optional.open;
|
|
676
689
|
if (optional?.summary) {
|
|
@@ -696,7 +709,7 @@ customElements.define("base-details-element", DetailsElement, {
|
|
|
696
709
|
class DefinitionElement extends HTMLElement {
|
|
697
710
|
constructor(optional) {
|
|
698
711
|
super();
|
|
699
|
-
Component.
|
|
712
|
+
Component.applyData(optional, this);
|
|
700
713
|
}
|
|
701
714
|
}
|
|
702
715
|
exports.DefinitionElement = DefinitionElement;
|
|
@@ -707,7 +720,7 @@ customElements.define("base-dfn-element", DefinitionElement, {
|
|
|
707
720
|
class DialogElement extends HTMLDialogElement {
|
|
708
721
|
constructor(optional) {
|
|
709
722
|
super();
|
|
710
|
-
Component.
|
|
723
|
+
Component.applyData(optional, this);
|
|
711
724
|
this.open = optional.open == undefined ? true : optional.open;
|
|
712
725
|
}
|
|
713
726
|
}
|
|
@@ -727,7 +740,7 @@ class EmbedElement extends HTMLEmbedElement {
|
|
|
727
740
|
this.type = optional.type;
|
|
728
741
|
if (optional?.width)
|
|
729
742
|
this.width = optional.width;
|
|
730
|
-
Component.
|
|
743
|
+
Component.applyData(optional, this);
|
|
731
744
|
}
|
|
732
745
|
}
|
|
733
746
|
exports.EmbedElement = EmbedElement;
|
|
@@ -736,7 +749,7 @@ customElements.define("base-embed-element", EmbedElement, { extends: "embed" });
|
|
|
736
749
|
class FieldSetElement extends HTMLFieldSetElement {
|
|
737
750
|
constructor(optional) {
|
|
738
751
|
super();
|
|
739
|
-
Component.
|
|
752
|
+
Component.applyData(optional, this);
|
|
740
753
|
if (optional?.disabled)
|
|
741
754
|
this.disabled = optional.disabled;
|
|
742
755
|
if (optional?.name)
|
|
@@ -764,7 +777,7 @@ customElements.define("base-fieldset-element", FieldSetElement, {
|
|
|
764
777
|
class FooterElement extends HTMLElement {
|
|
765
778
|
constructor(optional) {
|
|
766
779
|
super();
|
|
767
|
-
Component.
|
|
780
|
+
Component.applyData(optional, this);
|
|
768
781
|
}
|
|
769
782
|
}
|
|
770
783
|
exports.FooterElement = FooterElement;
|
|
@@ -774,7 +787,7 @@ customElements.define("base-footer-element", FooterElement, {
|
|
|
774
787
|
class FormElement extends HTMLFormElement {
|
|
775
788
|
constructor(optional) {
|
|
776
789
|
super();
|
|
777
|
-
Component.
|
|
790
|
+
Component.applyData(optional, this);
|
|
778
791
|
}
|
|
779
792
|
}
|
|
780
793
|
exports.FormElement = FormElement;
|
|
@@ -782,7 +795,7 @@ customElements.define("base-form-element", FormElement, { extends: "form" });
|
|
|
782
795
|
class H1Element extends HTMLHeadingElement {
|
|
783
796
|
constructor(optional) {
|
|
784
797
|
super();
|
|
785
|
-
Component.
|
|
798
|
+
Component.applyData(optional, this);
|
|
786
799
|
if (optional?.text)
|
|
787
800
|
this.innerText = optional.text.toString();
|
|
788
801
|
}
|
|
@@ -792,7 +805,7 @@ customElements.define("base-h1-element", H1Element, { extends: "h1" });
|
|
|
792
805
|
class H2Element extends HTMLHeadingElement {
|
|
793
806
|
constructor(optional) {
|
|
794
807
|
super();
|
|
795
|
-
Component.
|
|
808
|
+
Component.applyData(optional, this);
|
|
796
809
|
if (optional?.text)
|
|
797
810
|
this.innerText = optional.text.toString();
|
|
798
811
|
}
|
|
@@ -802,7 +815,7 @@ customElements.define("base-h2-element", H2Element, { extends: "h2" });
|
|
|
802
815
|
class H3Element extends HTMLHeadingElement {
|
|
803
816
|
constructor(optional) {
|
|
804
817
|
super();
|
|
805
|
-
Component.
|
|
818
|
+
Component.applyData(optional, this);
|
|
806
819
|
if (optional?.text)
|
|
807
820
|
this.text = optional.text;
|
|
808
821
|
}
|
|
@@ -821,7 +834,7 @@ customElements.define("base-h3-element", H3Element, { extends: "h3" });
|
|
|
821
834
|
class H4Element extends H3Element {
|
|
822
835
|
constructor(optional) {
|
|
823
836
|
super();
|
|
824
|
-
Component.
|
|
837
|
+
Component.applyData(optional, this);
|
|
825
838
|
if (optional?.text)
|
|
826
839
|
this.innerText = optional.text.toString();
|
|
827
840
|
}
|
|
@@ -835,7 +848,7 @@ customElements.define("base-h4-element", H4Element, { extends: "h4" });
|
|
|
835
848
|
class H5Element extends H3Element {
|
|
836
849
|
constructor(optional) {
|
|
837
850
|
super();
|
|
838
|
-
Component.
|
|
851
|
+
Component.applyData(optional, this);
|
|
839
852
|
if (optional?.text)
|
|
840
853
|
this.innerText = optional.text.toString();
|
|
841
854
|
}
|
|
@@ -849,7 +862,7 @@ customElements.define("base-h5-element", H5Element, { extends: "h5" });
|
|
|
849
862
|
class H6Element extends H3Element {
|
|
850
863
|
constructor(optional) {
|
|
851
864
|
super();
|
|
852
|
-
Component.
|
|
865
|
+
Component.applyData(optional, this);
|
|
853
866
|
if (optional?.text)
|
|
854
867
|
this.innerText = optional.text.toString();
|
|
855
868
|
}
|
|
@@ -864,7 +877,7 @@ customElements.define("base-h6-element", H6Element, { extends: "h6" });
|
|
|
864
877
|
class HeadElement extends HTMLHeadElement {
|
|
865
878
|
constructor(optional) {
|
|
866
879
|
super();
|
|
867
|
-
Component.
|
|
880
|
+
Component.applyData(optional, this);
|
|
868
881
|
}
|
|
869
882
|
}
|
|
870
883
|
exports.HeadElement = HeadElement;
|
|
@@ -873,7 +886,7 @@ customElements.define("base-head-element", HeadElement, { extends: "head" });
|
|
|
873
886
|
class HeaderElement extends HTMLElement {
|
|
874
887
|
constructor(optional) {
|
|
875
888
|
super();
|
|
876
|
-
Component.
|
|
889
|
+
Component.applyData(optional, this);
|
|
877
890
|
}
|
|
878
891
|
}
|
|
879
892
|
exports.HeaderElement = HeaderElement;
|
|
@@ -884,7 +897,7 @@ customElements.define("base-header-element", HeaderElement, {
|
|
|
884
897
|
class HorizontalRuleElement extends HTMLHRElement {
|
|
885
898
|
constructor(optional) {
|
|
886
899
|
super();
|
|
887
|
-
Component.
|
|
900
|
+
Component.applyData(optional, this);
|
|
888
901
|
}
|
|
889
902
|
}
|
|
890
903
|
exports.HorizontalRuleElement = HorizontalRuleElement;
|
|
@@ -897,7 +910,7 @@ class HtmlElement extends HTMLHtmlElement {
|
|
|
897
910
|
super();
|
|
898
911
|
if (optional?.manifest)
|
|
899
912
|
this.manifest = optional.manifest;
|
|
900
|
-
Component.
|
|
913
|
+
Component.applyData(optional, this);
|
|
901
914
|
}
|
|
902
915
|
set manifest(value) {
|
|
903
916
|
this.setAttribute("manifest", value);
|
|
@@ -936,7 +949,7 @@ class IFrameElement extends HTMLIFrameElement {
|
|
|
936
949
|
this.srcdoc = optional.srcdoc;
|
|
937
950
|
if (optional?.width)
|
|
938
951
|
this.width = optional.width;
|
|
939
|
-
Component.
|
|
952
|
+
Component.applyData(optional, this);
|
|
940
953
|
}
|
|
941
954
|
set allowfullscreen(value) {
|
|
942
955
|
this.setAttribute("allowfullscreen", value.toString());
|
|
@@ -977,7 +990,7 @@ customElements.define("base-iframe-element", IFrameElement, {
|
|
|
977
990
|
class LegendElement extends HTMLLegendElement {
|
|
978
991
|
constructor(optional) {
|
|
979
992
|
super();
|
|
980
|
-
Component.
|
|
993
|
+
Component.applyData(optional, this);
|
|
981
994
|
if (optional?.value)
|
|
982
995
|
this.innerHTML = optional.value;
|
|
983
996
|
}
|
|
@@ -989,7 +1002,7 @@ customElements.define("base-legend-element", LegendElement, {
|
|
|
989
1002
|
class SvgElement extends HTMLObjectElement {
|
|
990
1003
|
constructor(optional) {
|
|
991
1004
|
super();
|
|
992
|
-
Component.
|
|
1005
|
+
Component.applyData(optional, this);
|
|
993
1006
|
if (optional?.width)
|
|
994
1007
|
this.width = optional.width;
|
|
995
1008
|
if (optional?.height)
|
|
@@ -1025,7 +1038,7 @@ customElements.define("base-svg-element", SvgElement, { extends: "object" });
|
|
|
1025
1038
|
class NavElement extends HTMLElement {
|
|
1026
1039
|
constructor(optional) {
|
|
1027
1040
|
super();
|
|
1028
|
-
Component.
|
|
1041
|
+
Component.applyData(optional, this);
|
|
1029
1042
|
}
|
|
1030
1043
|
}
|
|
1031
1044
|
exports.NavElement = NavElement;
|
|
@@ -1033,7 +1046,7 @@ customElements.define("base-nav-element", NavElement, { extends: "nav" });
|
|
|
1033
1046
|
class SectionElement extends HTMLElement {
|
|
1034
1047
|
constructor(optional) {
|
|
1035
1048
|
super();
|
|
1036
|
-
Component.
|
|
1049
|
+
Component.applyData(optional, this);
|
|
1037
1050
|
}
|
|
1038
1051
|
}
|
|
1039
1052
|
exports.SectionElement = SectionElement;
|
|
@@ -1043,7 +1056,7 @@ customElements.define("base-section-element", SectionElement, {
|
|
|
1043
1056
|
class ArticleElement extends HTMLElement {
|
|
1044
1057
|
constructor(optional) {
|
|
1045
1058
|
super();
|
|
1046
|
-
Component.
|
|
1059
|
+
Component.applyData(optional, this);
|
|
1047
1060
|
}
|
|
1048
1061
|
}
|
|
1049
1062
|
exports.ArticleElement = ArticleElement;
|
|
@@ -1053,7 +1066,7 @@ customElements.define("base-article-element", ArticleElement, {
|
|
|
1053
1066
|
class SummaryElement extends HTMLElement {
|
|
1054
1067
|
constructor(optional) {
|
|
1055
1068
|
super();
|
|
1056
|
-
Component.
|
|
1069
|
+
Component.applyData(optional, this);
|
|
1057
1070
|
}
|
|
1058
1071
|
}
|
|
1059
1072
|
exports.SummaryElement = SummaryElement;
|