tinkiet 0.6.0 → 0.7.0

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.
@@ -1,4 +1,4 @@
1
- import { __decorate, __metadata } from 'tslib';
1
+ import { __decorate } from 'tslib';
2
2
  import { css, unsafeCSS, html } from 'lit';
3
3
  import { property, query, customElement } from 'lit/decorators.js';
4
4
  import { ifDefined } from 'lit/directives/if-defined.js';
@@ -76,20 +76,16 @@ let TkAccordion = class TkAccordion extends TkFocusableBox {
76
76
  }
77
77
  };
78
78
  __decorate([
79
- property({ attribute: true, type: String }),
80
- __metadata("design:type", String)
79
+ property({ attribute: true, type: String })
81
80
  ], TkAccordion.prototype, "name", void 0);
82
81
  __decorate([
83
- property({ attribute: true, type: Boolean, reflect: true }),
84
- __metadata("design:type", Boolean)
82
+ property({ attribute: true, type: Boolean, reflect: true })
85
83
  ], TkAccordion.prototype, "checked", void 0);
86
84
  __decorate([
87
- property({ attribute: "ripple-header", type: Boolean }),
88
- __metadata("design:type", Boolean)
85
+ property({ attribute: "ripple-header", type: Boolean })
89
86
  ], TkAccordion.prototype, "rippleHeader", void 0);
90
87
  __decorate([
91
- query("input"),
92
- __metadata("design:type", HTMLInputElement)
88
+ query("input")
93
89
  ], TkAccordion.prototype, "$input", void 0);
94
90
  TkAccordion = __decorate([
95
91
  customElement("tk-accordion")
package/box/box.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __decorate, __metadata } from 'tslib';
1
+ import { __decorate } from 'tslib';
2
2
  import { LitElement, css, unsafeCSS, html } from 'lit';
3
3
  import { property, customElement } from 'lit/decorators.js';
4
4
  import css_248z from './box.scss.js';
@@ -148,7 +148,8 @@ let TkBox = class TkBox extends LitElement {
148
148
  };
149
149
  }
150
150
  hideRipple(event) {
151
- this.shadowRoot?.querySelectorAll(".ripple:not([open])").forEach(container => {
151
+ var _a;
152
+ (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".ripple:not([open])").forEach(container => {
152
153
  const element = container.querySelector("span");
153
154
  const outAnimation = element.animate({
154
155
  opacity: ["0.5", "0"]
@@ -166,16 +167,13 @@ let TkBox = class TkBox extends LitElement {
166
167
  }
167
168
  };
168
169
  __decorate([
169
- property({ type: Boolean }),
170
- __metadata("design:type", Boolean)
170
+ property({ type: Boolean })
171
171
  ], TkBox.prototype, "ripple", void 0);
172
172
  __decorate([
173
- property(),
174
- __metadata("design:type", Object)
173
+ property()
175
174
  ], TkBox.prototype, "background", void 0);
176
175
  __decorate([
177
- property(),
178
- __metadata("design:type", Object)
176
+ property()
179
177
  ], TkBox.prototype, "color", void 0);
180
178
  TkBox = __decorate([
181
179
  customElement("tk-box")
@@ -1,4 +1,4 @@
1
- import { __decorate, __metadata } from 'tslib';
1
+ import { __decorate } from 'tslib';
2
2
  import { property } from 'lit/decorators.js';
3
3
  import { uniqueID } from '../utils/unique.js';
4
4
  import { TkBox } from './box.js';
@@ -21,12 +21,10 @@ class TkFocusableBox extends TkBox {
21
21
  }
22
22
  }
23
23
  __decorate([
24
- property({ type: Boolean }),
25
- __metadata("design:type", String)
24
+ property({ type: Boolean })
26
25
  ], TkFocusableBox.prototype, "_id", void 0);
27
26
  __decorate([
28
- property({ type: Boolean }),
29
- __metadata("design:type", Boolean)
27
+ property({ type: Boolean })
30
28
  ], TkFocusableBox.prototype, "disabled", void 0);
31
29
 
32
30
  export { TkFocusableBox };
package/button/button.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __decorate, __metadata } from 'tslib';
1
+ import { __decorate } from 'tslib';
2
2
  import { css, unsafeCSS, html } from 'lit';
3
3
  import { property, query, customElement } from 'lit/decorators.js';
4
4
  import { ifDefined } from 'lit/directives/if-defined.js';
@@ -89,39 +89,34 @@ let TkButton = class TkButton extends TkBox {
89
89
  this.appendChild(this.$button);
90
90
  }
91
91
  handleClick(e) {
92
+ var _a;
92
93
  if (this.href && e.isTrusted) {
93
94
  e.stopPropagation();
94
95
  e.preventDefault();
95
96
  this.$ahref.click();
96
97
  }
97
98
  else if (e.isTrusted && this.type == "submit" || this.type == "reset") {
98
- this.querySelector("button")?.click();
99
+ (_a = this.querySelector("button")) === null || _a === void 0 ? void 0 : _a.click();
99
100
  }
100
101
  }
101
102
  };
102
103
  __decorate([
103
- property(),
104
- __metadata("design:type", Object)
104
+ property()
105
105
  ], TkButton.prototype, "href", void 0);
106
106
  __decorate([
107
- property(),
108
- __metadata("design:type", String)
107
+ property()
109
108
  ], TkButton.prototype, "target", void 0);
110
109
  __decorate([
111
- property(),
112
- __metadata("design:type", String)
110
+ property()
113
111
  ], TkButton.prototype, "type", void 0);
114
112
  __decorate([
115
- property({ type: Boolean }),
116
- __metadata("design:type", Boolean)
113
+ property({ type: Boolean })
117
114
  ], TkButton.prototype, "disabled", void 0);
118
115
  __decorate([
119
- query("#ahref"),
120
- __metadata("design:type", HTMLAnchorElement)
116
+ query("#ahref")
121
117
  ], TkButton.prototype, "$ahref", void 0);
122
118
  __decorate([
123
- query("button"),
124
- __metadata("design:type", HTMLButtonElement)
119
+ query("button")
125
120
  ], TkButton.prototype, "$button", void 0);
126
121
  TkButton = __decorate([
127
122
  customElement("tk-button")
@@ -1,5 +1,5 @@
1
- import { __decorate, __metadata } from 'tslib';
2
- import { LitElement, css, unsafeCSS, html } from 'lit';
1
+ import { __decorate } from 'tslib';
2
+ import { LitElement, html, css, unsafeCSS } from 'lit';
3
3
  import { property, query, customElement } from 'lit/decorators.js';
4
4
  import { ifDefined } from 'lit/directives/if-defined.js';
5
5
  import '../box/index.js';
@@ -12,9 +12,6 @@ let TkCheckbox = class TkCheckbox extends LitElement {
12
12
  this._id = uniqueID();
13
13
  this.checked = false;
14
14
  }
15
- static { this.styles = css `
16
- ${unsafeCSS(css_248z)}
17
- `; }
18
15
  render() {
19
16
  return html `
20
17
  <tk-box direction="row" align-items="center">
@@ -64,21 +61,20 @@ let TkCheckbox = class TkCheckbox extends LitElement {
64
61
  setTimeout(() => this.dispatchEvent(new Event("change", { bubbles: true, composed: true })));
65
62
  }
66
63
  };
64
+ TkCheckbox.styles = css `
65
+ ${unsafeCSS(css_248z)}
66
+ `;
67
67
  __decorate([
68
- property({ attribute: true, type: String }),
69
- __metadata("design:type", String)
68
+ property({ attribute: true, type: String })
70
69
  ], TkCheckbox.prototype, "name", void 0);
71
70
  __decorate([
72
- property({ attribute: true, type: String }),
73
- __metadata("design:type", String)
71
+ property({ attribute: true, type: String })
74
72
  ], TkCheckbox.prototype, "value", void 0);
75
73
  __decorate([
76
- property({ attribute: true, type: Boolean, reflect: true }),
77
- __metadata("design:type", Boolean)
74
+ property({ attribute: true, type: Boolean, reflect: true })
78
75
  ], TkCheckbox.prototype, "checked", void 0);
79
76
  __decorate([
80
- query("input"),
81
- __metadata("design:type", HTMLInputElement)
77
+ query("input")
82
78
  ], TkCheckbox.prototype, "$input", void 0);
83
79
  TkCheckbox = __decorate([
84
80
  customElement("tk-checkbox")
@@ -7,7 +7,7 @@ declare class TkDialog extends LitElement {
7
7
  private resolve;
8
8
  render(): import("lit-html").TemplateResult<1>;
9
9
  updated(props: any): void;
10
- show(): Promise<string | boolean | null>;
10
+ show(): Promise<string | boolean>;
11
11
  hide(value?: boolean | string | null): void;
12
12
  }
13
13
  declare global {
package/dialog/dialog.js CHANGED
@@ -1,5 +1,5 @@
1
- import { __decorate, __metadata } from 'tslib';
2
- import { LitElement, css, unsafeCSS, html } from 'lit';
1
+ import { __decorate } from 'tslib';
2
+ import { LitElement, html, css, unsafeCSS } from 'lit';
3
3
  import { property, customElement } from 'lit/decorators.js';
4
4
  import css_248z from './dialog.scss.js';
5
5
 
@@ -10,9 +10,6 @@ let TkDialog = class TkDialog extends LitElement {
10
10
  this.open = false;
11
11
  this.blurOverlay = false;
12
12
  }
13
- static { this.styles = css `
14
- ${unsafeCSS(css_248z)}
15
- `; }
16
13
  render() {
17
14
  return html `
18
15
  ${this.open
@@ -42,17 +39,17 @@ let TkDialog = class TkDialog extends LitElement {
42
39
  this.resolve(value);
43
40
  }
44
41
  };
42
+ TkDialog.styles = css `
43
+ ${unsafeCSS(css_248z)}
44
+ `;
45
45
  __decorate([
46
- property({ type: Boolean, attribute: true }),
47
- __metadata("design:type", Boolean)
46
+ property({ type: Boolean, attribute: true })
48
47
  ], TkDialog.prototype, "modal", void 0);
49
48
  __decorate([
50
- property({ type: Boolean, attribute: true, reflect: true }),
51
- __metadata("design:type", Boolean)
49
+ property({ type: Boolean, attribute: true, reflect: true })
52
50
  ], TkDialog.prototype, "open", void 0);
53
51
  __decorate([
54
- property({ type: Boolean, attribute: "blur-overlay" }),
55
- __metadata("design:type", Boolean)
52
+ property({ type: Boolean, attribute: "blur-overlay" })
56
53
  ], TkDialog.prototype, "blurOverlay", void 0);
57
54
  TkDialog = __decorate([
58
55
  customElement("tk-dialog")
package/drawer/drawer.js CHANGED
@@ -1,5 +1,5 @@
1
- import { __decorate, __metadata } from 'tslib';
2
- import { LitElement, css, unsafeCSS, html } from 'lit';
1
+ import { __decorate } from 'tslib';
2
+ import { LitElement, html, css, unsafeCSS } from 'lit';
3
3
  import { property, query, customElement } from 'lit/decorators.js';
4
4
  import css_248z from './drawer.scss.js';
5
5
  import { Direction, Pan, PointerListener, Tap } from 'contactjs';
@@ -12,9 +12,6 @@ let TkDrawer = class TkDrawer extends LitElement {
12
12
  this.right = false;
13
13
  this.swipeable = false;
14
14
  }
15
- static { this.styles = css `
16
- ${unsafeCSS(css_248z)}
17
- `; }
18
15
  set open(value) {
19
16
  if (value === this._open)
20
17
  return;
@@ -69,8 +66,9 @@ let TkDrawer = class TkDrawer extends LitElement {
69
66
  bubbles: false
70
67
  });
71
68
  this.$drawer.addEventListener("tap", (event) => {
69
+ var _a;
72
70
  const { x, y } = event.detail.live.srcEvent;
73
- const el = this.shadowRoot?.elementFromPoint(x, y);
71
+ const el = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.elementFromPoint(x, y);
74
72
  if (el)
75
73
  el.click();
76
74
  });
@@ -109,7 +107,8 @@ let TkDrawer = class TkDrawer extends LitElement {
109
107
  e.matches ? this.setAttribute("over", "") : this.removeAttribute("over");
110
108
  }
111
109
  hideIfOver() {
112
- if ((this.overQuery && this.mql?.matches) || this.over)
110
+ var _a;
111
+ if ((this.overQuery && ((_a = this.mql) === null || _a === void 0 ? void 0 : _a.matches)) || this.over)
113
112
  this.open = false;
114
113
  }
115
114
  show() {
@@ -122,34 +121,29 @@ let TkDrawer = class TkDrawer extends LitElement {
122
121
  this.open = !this.open;
123
122
  }
124
123
  };
124
+ TkDrawer.styles = css `
125
+ ${unsafeCSS(css_248z)}
126
+ `;
125
127
  __decorate([
126
- property({ type: Boolean, reflect: true }),
127
- __metadata("design:type", Object),
128
- __metadata("design:paramtypes", [Object])
128
+ property({ type: Boolean, reflect: true })
129
129
  ], TkDrawer.prototype, "open", null);
130
130
  __decorate([
131
- property({ type: Boolean, reflect: true }),
132
- __metadata("design:type", Boolean)
131
+ property({ type: Boolean, reflect: true })
133
132
  ], TkDrawer.prototype, "over", void 0);
134
133
  __decorate([
135
- property({ type: String, attribute: "open-query" }),
136
- __metadata("design:type", String)
134
+ property({ type: String, attribute: "open-query" })
137
135
  ], TkDrawer.prototype, "openQuery", void 0);
138
136
  __decorate([
139
- property({ type: String, attribute: "over-query" }),
140
- __metadata("design:type", String)
137
+ property({ type: String, attribute: "over-query" })
141
138
  ], TkDrawer.prototype, "overQuery", void 0);
142
139
  __decorate([
143
- property({ type: Boolean, reflect: true }),
144
- __metadata("design:type", Boolean)
140
+ property({ type: Boolean, reflect: true })
145
141
  ], TkDrawer.prototype, "right", void 0);
146
142
  __decorate([
147
- property({ type: Boolean, reflect: true }),
148
- __metadata("design:type", Boolean)
143
+ property({ type: Boolean, reflect: true })
149
144
  ], TkDrawer.prototype, "swipeable", void 0);
150
145
  __decorate([
151
- query("div.drawer"),
152
- __metadata("design:type", HTMLElement)
146
+ query("div.drawer")
153
147
  ], TkDrawer.prototype, "$drawer", void 0);
154
148
  TkDrawer = __decorate([
155
149
  customElement("tk-drawer")
package/form/form.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __decorate, __metadata } from 'tslib';
1
+ import { __decorate } from 'tslib';
2
2
  import { LitElement } from 'lit';
3
3
  import { property, customElement } from 'lit/decorators.js';
4
4
 
@@ -24,6 +24,7 @@ let TkForm = class TkForm extends LitElement {
24
24
  const result = {};
25
25
  const data = new FormData($form);
26
26
  data.forEach((value, key) => {
27
+ var _a;
27
28
  const $inputElement = this.querySelector(`[name=${key}]`);
28
29
  if ($inputElement.tagName == "TK-SLIDER") {
29
30
  value = Number(value);
@@ -36,7 +37,7 @@ let TkForm = class TkForm extends LitElement {
36
37
  }
37
38
  if (key.indexOf("-") > 0) {
38
39
  const _ks = key.split("-");
39
- result[_ks[0]] = result[_ks[0]] ?? {};
40
+ result[_ks[0]] = (_a = result[_ks[0]]) !== null && _a !== void 0 ? _a : {};
40
41
  result[_ks[0]][_ks[1]] = value;
41
42
  }
42
43
  else {
@@ -47,8 +48,7 @@ let TkForm = class TkForm extends LitElement {
47
48
  }
48
49
  };
49
50
  __decorate([
50
- property(),
51
- __metadata("design:type", Object)
51
+ property()
52
52
  ], TkForm.prototype, "value", void 0);
53
53
  TkForm = __decorate([
54
54
  customElement("tk-form")
package/icon/icon.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __decorate, __metadata } from 'tslib';
1
+ import { __decorate } from 'tslib';
2
2
  import { css, unsafeCSS, html } from 'lit';
3
3
  import { property, customElement } from 'lit/decorators.js';
4
4
  import { unsafeHTML } from 'lit/directives/unsafe-html.js';
@@ -57,20 +57,16 @@ let TkIcon = class TkIcon extends TkBox {
57
57
  }
58
58
  };
59
59
  __decorate([
60
- property(),
61
- __metadata("design:type", String)
60
+ property()
62
61
  ], TkIcon.prototype, "name", void 0);
63
62
  __decorate([
64
- property(),
65
- __metadata("design:type", String)
63
+ property()
66
64
  ], TkIcon.prototype, "library", void 0);
67
65
  __decorate([
68
- property(),
69
- __metadata("design:type", String)
66
+ property()
70
67
  ], TkIcon.prototype, "path", void 0);
71
68
  __decorate([
72
- property(),
73
- __metadata("design:type", String)
69
+ property()
74
70
  ], TkIcon.prototype, "svg", void 0);
75
71
  TkIcon = __decorate([
76
72
  customElement("tk-icon")
package/icon/icons.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __decorate, __metadata } from 'tslib';
1
+ import { __decorate } from 'tslib';
2
2
  import { LitElement } from 'lit';
3
3
  import { property, customElement } from 'lit/decorators.js';
4
4
 
@@ -12,12 +12,10 @@ let TkIcons = class TkIcons extends LitElement {
12
12
  }
13
13
  };
14
14
  __decorate([
15
- property({ attribute: false }),
16
- __metadata("design:type", Function)
15
+ property({ attribute: false })
17
16
  ], TkIcons.prototype, "resolve", void 0);
18
17
  __decorate([
19
- property({ reflect: true }),
20
- __metadata("design:type", String)
18
+ property({ reflect: true })
21
19
  ], TkIcons.prototype, "library", void 0);
22
20
  TkIcons = __decorate([
23
21
  customElement("tk-icons")
package/index.d.ts CHANGED
@@ -22,3 +22,4 @@ export * from "./tag/index";
22
22
  export * from "./textarea/index";
23
23
  export * from "./textfield/index";
24
24
  export * from "./theme/index";
25
+ //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,kCAA4B;AAC5B,8BAAwB;AACxB,4BAAsB;AACtB,+BAAyB;AACzB,iCAA2B;AAC3B,+BAAyB;AACzB,+BAAyB;AACzB,6BAAuB;AACvB,6BAAuB;AACvB,kCAA4B;AAC5B,gCAA0B;AAC1B,+BAAyB;AACzB,8BAAwB;AACxB,8BAAwB;AACxB,iCAA2B;AAC3B,8BAAwB;AACxB,+BAAyB;AACzB,+BAAyB;AACzB,+BAAyB;AACzB,kCAA4B;AAC5B,4BAAsB;AACtB,iCAA2B;AAC3B,kCAA4B;AAC5B,8BAAwB"}
@@ -1,5 +1,5 @@
1
- import { __decorate, __metadata } from 'tslib';
2
- import { LitElement, css, unsafeCSS, html } from 'lit';
1
+ import { __decorate } from 'tslib';
2
+ import { LitElement, html, css, unsafeCSS } from 'lit';
3
3
  import { property, query, customElement } from 'lit/decorators.js';
4
4
  import css_248z from './list-item.scss.js';
5
5
 
@@ -9,9 +9,6 @@ let TkListItem = class TkListItem extends LitElement {
9
9
  this.href = "";
10
10
  this.target = "";
11
11
  }
12
- static { this.styles = css `
13
- ${unsafeCSS(css_248z)}
14
- `; }
15
12
  render() {
16
13
  return html `
17
14
  <slot name="before" @click=${this.handleClick}></slot>
@@ -53,25 +50,23 @@ let TkListItem = class TkListItem extends LitElement {
53
50
  }
54
51
  }
55
52
  };
53
+ TkListItem.styles = css `
54
+ ${unsafeCSS(css_248z)}
55
+ `;
56
56
  __decorate([
57
- property({ attribute: true }),
58
- __metadata("design:type", String)
57
+ property({ attribute: true })
59
58
  ], TkListItem.prototype, "href", void 0);
60
59
  __decorate([
61
- property({ attribute: true }),
62
- __metadata("design:type", String)
60
+ property({ attribute: true })
63
61
  ], TkListItem.prototype, "target", void 0);
64
62
  __decorate([
65
- property({ attribute: "aria-label" }),
66
- __metadata("design:type", String)
63
+ property({ attribute: "aria-label" })
67
64
  ], TkListItem.prototype, "ariaLabel", void 0);
68
65
  __decorate([
69
- query("#ahref"),
70
- __metadata("design:type", HTMLAnchorElement)
66
+ query("#ahref")
71
67
  ], TkListItem.prototype, "$ahref", void 0);
72
68
  TkListItem = __decorate([
73
- customElement("tk-list-item"),
74
- __metadata("design:paramtypes", [])
69
+ customElement("tk-list-item")
75
70
  ], TkListItem);
76
71
 
77
72
  export { TkListItem };
@@ -1,4 +1,4 @@
1
- import { __decorate, __metadata } from 'tslib';
1
+ import { __decorate } from 'tslib';
2
2
  import { css, unsafeCSS, html } from 'lit';
3
3
  import { property, customElement } from 'lit/decorators.js';
4
4
  import { classMap } from 'lit/directives/class-map.js';
@@ -46,16 +46,13 @@ let TkLoading = class TkLoading extends TkBox {
46
46
  }
47
47
  };
48
48
  __decorate([
49
- property({ attribute: true, type: Boolean }),
50
- __metadata("design:type", Boolean)
49
+ property({ attribute: true, type: Boolean })
51
50
  ], TkLoading.prototype, "circle", void 0);
52
51
  __decorate([
53
- property({ attribute: true, type: Boolean }),
54
- __metadata("design:type", Boolean)
52
+ property({ attribute: true, type: Boolean })
55
53
  ], TkLoading.prototype, "indeterminate", void 0);
56
54
  __decorate([
57
- property({ attribute: true, type: Number }),
58
- __metadata("design:type", Number)
55
+ property({ attribute: true, type: Number })
59
56
  ], TkLoading.prototype, "value", void 0);
60
57
  TkLoading = __decorate([
61
58
  customElement("tk-loading")
package/notie/notie.d.ts CHANGED
@@ -52,7 +52,7 @@ declare class TkNotie extends TkBox {
52
52
  private $container;
53
53
  private resolve;
54
54
  render(): TemplateResult<1>;
55
- show(): Promise<string | boolean | null>;
55
+ show(): Promise<string | boolean>;
56
56
  hide(value: boolean | string | null): void;
57
57
  constructor(text?: string);
58
58
  static show(options: NotieOptions): Promise<boolean | string | null>;
package/notie/notie.js CHANGED
@@ -1,11 +1,10 @@
1
- import { __decorate, __metadata } from 'tslib';
1
+ import { __decorate } from 'tslib';
2
2
  import { css, unsafeCSS, html } from 'lit';
3
3
  import { state, property, query, customElement } from 'lit/decorators.js';
4
4
  import '../box/index.js';
5
5
  import '../textfield/index.js';
6
6
  import css_248z from './notie.scss.js';
7
7
  import { TkBox } from '../box/box.js';
8
- import { TkTextfield } from '../textfield/textfield.js';
9
8
 
10
9
  var TkNotie_1;
11
10
  var NotieType;
@@ -134,74 +133,61 @@ let TkNotie = TkNotie_1 = class TkNotie extends TkBox {
134
133
  return notie.show();
135
134
  }
136
135
  static getNotie(options, type) {
136
+ var _a, _b;
137
137
  const notie = new TkNotie_1(options.text);
138
138
  notie.persistent = false;
139
139
  notie.type = type;
140
- notie.delay = options.delay ?? 999999999;
140
+ notie.delay = (_a = options.delay) !== null && _a !== void 0 ? _a : 999999999;
141
141
  options.template ? (notie.template = options.template) : null;
142
142
  options.position ? (notie.position = options.position) : null;
143
143
  options.background && notie.$container ? notie.$container.setAttribute("background-color", options.background) : null;
144
144
  options.color && notie.$container ? notie.$container.setAttribute("color", options.color) : null;
145
- options.container ? options.container.shadowRoot?.appendChild(notie) : window.document.body.appendChild(notie);
145
+ options.container ? (_b = options.container.shadowRoot) === null || _b === void 0 ? void 0 : _b.appendChild(notie) : window.document.body.appendChild(notie);
146
146
  options.zIndex ? notie.style.setProperty("z-index", options.zIndex.toString()) : null;
147
147
  return notie;
148
148
  }
149
149
  };
150
150
  __decorate([
151
- state(),
152
- __metadata("design:type", Boolean)
151
+ state()
153
152
  ], TkNotie.prototype, "persistent", void 0);
154
153
  __decorate([
155
- property({ type: Boolean, reflect: true }),
156
- __metadata("design:type", Boolean)
154
+ property({ type: Boolean, reflect: true })
157
155
  ], TkNotie.prototype, "open", void 0);
158
156
  __decorate([
159
- property({ reflect: true }),
160
- __metadata("design:type", Object)
157
+ property({ reflect: true })
161
158
  ], TkNotie.prototype, "position", void 0);
162
159
  __decorate([
163
- property({ type: String }),
164
- __metadata("design:type", String)
160
+ property({ type: String })
165
161
  ], TkNotie.prototype, "type", void 0);
166
162
  __decorate([
167
- property({ type: String }),
168
- __metadata("design:type", String)
163
+ property({ type: String })
169
164
  ], TkNotie.prototype, "level", void 0);
170
165
  __decorate([
171
- property({ type: Number }),
172
- __metadata("design:type", Number)
166
+ property({ type: Number })
173
167
  ], TkNotie.prototype, "delay", void 0);
174
168
  __decorate([
175
- property(),
176
- __metadata("design:type", String)
169
+ property()
177
170
  ], TkNotie.prototype, "text", void 0);
178
171
  __decorate([
179
- property(),
180
- __metadata("design:type", String)
172
+ property()
181
173
  ], TkNotie.prototype, "buttonText", void 0);
182
174
  __decorate([
183
- property(),
184
- __metadata("design:type", String)
175
+ property()
185
176
  ], TkNotie.prototype, "confirmText", void 0);
186
177
  __decorate([
187
- property(),
188
- __metadata("design:type", String)
178
+ property()
189
179
  ], TkNotie.prototype, "cancelText", void 0);
190
180
  __decorate([
191
- property({ type: Object }),
192
- __metadata("design:type", Object)
181
+ property({ type: Object })
193
182
  ], TkNotie.prototype, "template", void 0);
194
183
  __decorate([
195
- query("tk-textfield"),
196
- __metadata("design:type", TkTextfield)
184
+ query("tk-textfield")
197
185
  ], TkNotie.prototype, "$input", void 0);
198
186
  __decorate([
199
- query(".container"),
200
- __metadata("design:type", HTMLElement)
187
+ query(".container")
201
188
  ], TkNotie.prototype, "$container", void 0);
202
189
  TkNotie = TkNotie_1 = __decorate([
203
- customElement("tk-notie"),
204
- __metadata("design:paramtypes", [String])
190
+ customElement("tk-notie")
205
191
  ], TkNotie);
206
192
 
207
193
  export { TkNotie };
package/package.json CHANGED
@@ -1,9 +1,11 @@
1
1
  {
2
2
  "name": "tinkiet",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Pragmatic UI Web Components",
5
+ "type": "module",
5
6
  "main": "index.js",
6
7
  "module": "index.js",
8
+ "types": "index.d.ts",
7
9
  "keywords": [
8
10
  "web",
9
11
  "components",