tinkiet 0.6.2 → 0.7.2

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.
Files changed (133) hide show
  1. package/package.json +3 -1
  2. package/{accordion → tinkiet/accordion}/accordion.d.ts +0 -0
  3. package/{accordion → tinkiet/accordion}/accordion.js +5 -9
  4. package/{accordion → tinkiet/accordion}/accordion.scss.js +0 -0
  5. package/{accordion → tinkiet/accordion}/index.d.ts +0 -0
  6. package/{accordion → tinkiet/accordion}/index.js +0 -0
  7. package/{badge → tinkiet/badge}/badge.d.ts +0 -0
  8. package/{badge → tinkiet/badge}/badge.js +0 -0
  9. package/{badge → tinkiet/badge}/badge.scss.js +0 -0
  10. package/{badge → tinkiet/badge}/index.d.ts +0 -0
  11. package/{badge → tinkiet/badge}/index.js +0 -0
  12. package/{box → tinkiet/box}/box.d.ts +0 -0
  13. package/{box → tinkiet/box}/box.js +6 -8
  14. package/{box → tinkiet/box}/box.scss.js +0 -0
  15. package/{box → tinkiet/box}/focusable-box.d.ts +0 -0
  16. package/{box → tinkiet/box}/focusable-box.js +3 -5
  17. package/{box → tinkiet/box}/index.d.ts +0 -0
  18. package/{box → tinkiet/box}/index.js +0 -0
  19. package/{button → tinkiet/button}/button.d.ts +0 -0
  20. package/{button → tinkiet/button}/button.js +9 -14
  21. package/{button → tinkiet/button}/button.scss.js +0 -0
  22. package/{button → tinkiet/button}/index.d.ts +0 -0
  23. package/{button → tinkiet/button}/index.js +0 -0
  24. package/{checkbox → tinkiet/checkbox}/checkbox.d.ts +0 -0
  25. package/{checkbox → tinkiet/checkbox}/checkbox.js +9 -13
  26. package/{checkbox → tinkiet/checkbox}/checkbox.scss.js +0 -0
  27. package/{checkbox → tinkiet/checkbox}/index.d.ts +0 -0
  28. package/{checkbox → tinkiet/checkbox}/index.js +0 -0
  29. package/{dialog → tinkiet/dialog}/dialog.d.ts +1 -1
  30. package/{dialog → tinkiet/dialog}/dialog.js +8 -11
  31. package/{dialog → tinkiet/dialog}/dialog.scss.js +0 -0
  32. package/{dialog → tinkiet/dialog}/index.d.ts +0 -0
  33. package/{dialog → tinkiet/dialog}/index.js +0 -0
  34. package/{drawer → tinkiet/drawer}/drawer.d.ts +0 -0
  35. package/{drawer → tinkiet/drawer}/drawer.js +16 -22
  36. package/{drawer → tinkiet/drawer}/drawer.scss.js +0 -0
  37. package/{drawer → tinkiet/drawer}/index.d.ts +0 -0
  38. package/{drawer → tinkiet/drawer}/index.js +0 -0
  39. package/{form → tinkiet/form}/form.d.ts +0 -0
  40. package/{form → tinkiet/form}/form.js +4 -4
  41. package/{form → tinkiet/form}/index.d.ts +0 -0
  42. package/{form → tinkiet/form}/index.js +0 -0
  43. package/{icon → tinkiet/icon}/icon.d.ts +0 -0
  44. package/{icon → tinkiet/icon}/icon.js +5 -9
  45. package/{icon → tinkiet/icon}/icon.scss.js +0 -0
  46. package/{icon → tinkiet/icon}/icons.d.ts +0 -0
  47. package/{icon → tinkiet/icon}/icons.js +3 -5
  48. package/{icon → tinkiet/icon}/index.d.ts +0 -0
  49. package/{icon → tinkiet/icon}/index.js +0 -0
  50. package/{index.d.ts → tinkiet/index.d.ts} +1 -1
  51. package/tinkiet/index.d.ts.map +1 -0
  52. package/{index.js → tinkiet/index.js} +0 -2
  53. package/{list-item → tinkiet/list-item}/index.d.ts +0 -0
  54. package/{list-item → tinkiet/list-item}/index.js +0 -0
  55. package/{list-item → tinkiet/list-item}/list-item.d.ts +0 -0
  56. package/{list-item → tinkiet/list-item}/list-item.js +15 -20
  57. package/{list-item → tinkiet/list-item}/list-item.scss.js +0 -0
  58. package/{loading → tinkiet/loading}/index.d.ts +0 -0
  59. package/{loading → tinkiet/loading}/index.js +0 -0
  60. package/{loading → tinkiet/loading}/loading.d.ts +1 -1
  61. package/{loading → tinkiet/loading}/loading.js +10 -10
  62. package/tinkiet/loading/loading.scss.js +4 -0
  63. package/{navbar → tinkiet/navbar}/index.d.ts +0 -0
  64. package/{navbar → tinkiet/navbar}/index.js +0 -0
  65. package/{navbar → tinkiet/navbar}/navbar.d.ts +0 -0
  66. package/{navbar → tinkiet/navbar}/navbar.js +0 -0
  67. package/{navbar → tinkiet/navbar}/navbar.scss.js +0 -0
  68. package/{notie → tinkiet/notie}/index.d.ts +0 -0
  69. package/{notie → tinkiet/notie}/index.js +0 -0
  70. package/{notie → tinkiet/notie}/notie.d.ts +1 -1
  71. package/{notie → tinkiet/notie}/notie.js +32 -46
  72. package/{notie → tinkiet/notie}/notie.scss.js +0 -0
  73. package/{pages → tinkiet/pages}/index.d.ts +0 -0
  74. package/{pages → tinkiet/pages}/index.js +0 -0
  75. package/{pages → tinkiet/pages}/pages.d.ts +0 -0
  76. package/{pages → tinkiet/pages}/pages.js +10 -13
  77. package/{pages → tinkiet/pages}/pages.scss.js +0 -0
  78. package/{radio → tinkiet/radio}/index.d.ts +0 -0
  79. package/{radio → tinkiet/radio}/index.js +0 -0
  80. package/{radio → tinkiet/radio}/radio.d.ts +0 -0
  81. package/{radio → tinkiet/radio}/radio.js +12 -19
  82. package/{radio → tinkiet/radio}/radio.scss.js +0 -0
  83. package/{select → tinkiet/select}/index.d.ts +0 -0
  84. package/{select → tinkiet/select}/index.js +0 -0
  85. package/{select → tinkiet/select}/select.d.ts +0 -0
  86. package/{select → tinkiet/select}/select.js +23 -41
  87. package/{select → tinkiet/select}/select.scss.js +0 -0
  88. package/{slider → tinkiet/slider}/index.d.ts +0 -0
  89. package/{slider → tinkiet/slider}/index.js +0 -0
  90. package/{slider → tinkiet/slider}/slider.d.ts +0 -0
  91. package/{slider → tinkiet/slider}/slider.js +20 -35
  92. package/{slider → tinkiet/slider}/slider.scss.js +0 -0
  93. package/{switch → tinkiet/switch}/index.d.ts +0 -0
  94. package/{switch → tinkiet/switch}/index.js +0 -0
  95. package/{switch → tinkiet/switch}/switch.d.ts +0 -0
  96. package/{switch → tinkiet/switch}/switch.js +12 -19
  97. package/{switch → tinkiet/switch}/switch.scss.js +0 -0
  98. package/{tab-group → tinkiet/tab-group}/index.d.ts +0 -0
  99. package/{tab-group → tinkiet/tab-group}/index.js +0 -0
  100. package/{tab-group → tinkiet/tab-group}/tab-group.d.ts +0 -0
  101. package/{tab-group → tinkiet/tab-group}/tab-group.js +20 -25
  102. package/{tab-group → tinkiet/tab-group}/tab-group.scss.js +0 -0
  103. package/{tag → tinkiet/tag}/index.d.ts +0 -0
  104. package/{tag → tinkiet/tag}/index.js +0 -0
  105. package/{tag → tinkiet/tag}/tag.d.ts +0 -0
  106. package/{tag → tinkiet/tag}/tag.js +4 -4
  107. package/{tag → tinkiet/tag}/tag.scss.js +0 -0
  108. package/{textarea → tinkiet/textarea}/index.d.ts +0 -0
  109. package/{textarea → tinkiet/textarea}/index.js +0 -0
  110. package/{textarea → tinkiet/textarea}/textarea.d.ts +0 -0
  111. package/{textarea → tinkiet/textarea}/textarea.js +23 -41
  112. package/{textarea → tinkiet/textarea}/textarea.scss.js +0 -0
  113. package/{textfield → tinkiet/textfield}/index.d.ts +0 -0
  114. package/{textfield → tinkiet/textfield}/index.js +0 -0
  115. package/{textfield → tinkiet/textfield}/textfield.d.ts +0 -0
  116. package/{textfield → tinkiet/textfield}/textfield.js +24 -43
  117. package/{textfield → tinkiet/textfield}/textfield.scss.js +0 -0
  118. package/{theme → tinkiet/theme}/index.d.ts +0 -0
  119. package/{theme → tinkiet/theme}/index.js +0 -0
  120. package/{theme → tinkiet/theme}/theme.d.ts +0 -0
  121. package/{theme → tinkiet/theme}/theme.js +17 -29
  122. package/{theme → tinkiet/theme}/theme.scss.js +0 -0
  123. package/{utils → tinkiet/utils}/unique.d.ts +0 -0
  124. package/{utils → tinkiet/utils}/unique.js +0 -0
  125. package/umd/tinkiet.min.d.ts +5 -17
  126. package/umd/tinkiet.min.d.ts.map +1 -0
  127. package/umd/tinkiet.min.js +1 -1
  128. package/loading/loading.scss.js +0 -4
  129. package/progress/index.d.ts +0 -1
  130. package/progress/index.js +0 -1
  131. package/progress/progress.d.ts +0 -15
  132. package/progress/progress.js +0 -51
  133. package/progress/progress.scss.js +0 -4
@@ -1,17 +1,19 @@
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';
5
+ import '../../node_modules/lit/directives/style-map.js';
5
6
  import '../box/index.js';
6
7
  import css_248z from './loading.scss.js';
7
8
  import { TkBox } from '../box/box.js';
9
+ import { styleMap as i } from '../../node_modules/lit-html/directives/style-map.js';
8
10
 
9
11
  let TkLoading = class TkLoading extends TkBox {
10
12
  constructor() {
11
13
  super(...arguments);
12
14
  this.circle = false;
13
15
  this.indeterminate = false;
14
- this.value = 0.5;
16
+ this.percent = 0;
15
17
  }
16
18
  static get styles() {
17
19
  return [
@@ -22,6 +24,7 @@ let TkLoading = class TkLoading extends TkBox {
22
24
  ];
23
25
  }
24
26
  render() {
27
+ const lineStyle = { width: this.percent + "%" };
25
28
  return html `
26
29
  ${this.circle
27
30
  ? html `
@@ -39,24 +42,21 @@ let TkLoading = class TkLoading extends TkBox {
39
42
  `
40
43
  : html `
41
44
  <div class="line">
42
- <div class=${classMap({ indeterminate: this.indeterminate })}></div>
45
+ <div class=${classMap({ progress: true, indeterminate: this.indeterminate })} style="${i(lineStyle)}"></div>
43
46
  </div>
44
47
  `}
45
48
  `;
46
49
  }
47
50
  };
48
51
  __decorate([
49
- property({ attribute: true, type: Boolean }),
50
- __metadata("design:type", Boolean)
52
+ property({ attribute: true, type: Boolean })
51
53
  ], TkLoading.prototype, "circle", void 0);
52
54
  __decorate([
53
- property({ attribute: true, type: Boolean }),
54
- __metadata("design:type", Boolean)
55
+ property({ attribute: true, type: Boolean })
55
56
  ], TkLoading.prototype, "indeterminate", void 0);
56
57
  __decorate([
57
- property({ attribute: true, type: Number }),
58
- __metadata("design:type", Number)
59
- ], TkLoading.prototype, "value", void 0);
58
+ property({ attribute: true, type: Number })
59
+ ], TkLoading.prototype, "percent", void 0);
60
60
  TkLoading = __decorate([
61
61
  customElement("tk-loading")
62
62
  ], TkLoading);
@@ -0,0 +1,4 @@
1
+ var css_248z = "*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent;box-sizing:border-box}:host{--color:currentColor;--background-color:var(--tk-loading-background-color,var(--shade-lighter,hsl(var(--shade-h,0),var(--shade-s,0%),calc(var(--shade-l, 66.6667%)*1.3))))}:host([accent]){--color:var(--accent)}:host([error]){--color:var(--error)}.circle{animation:rotator 3s linear infinite;display:inline-flex;height:2em;width:2em}.circle,.circle .path{transform-origin:center}.circle .path{stroke-dasharray:265;stroke-dashoffset:0;stroke:var(--color);animation:dash 3s ease-in-out infinite}@keyframes rotator{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes dash{0%{stroke-dashoffset:265}50%{stroke-dashoffset:65;transform:rotate(90deg)}to{stroke-dashoffset:265;transform:rotate(1turn)}}.line{background-color:var(--background-color);height:.4em;overflow:hidden;position:relative}.line .progress{height:100%}.line .indeterminate,.line .progress{background-color:var(--color)}.line .indeterminate:before{animation:indeterminate 2.1s cubic-bezier(.65,.815,.735,.395) infinite}.line .indeterminate:after,.line .indeterminate:before{background-color:inherit;bottom:0;content:\"\";left:0;position:absolute;top:0;will-change:left,right}.line .indeterminate:after{animation:indeterminate-short 2.1s cubic-bezier(.165,.84,.44,1) infinite;animation-delay:1.15s}@keyframes indeterminate{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes indeterminate-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}";
2
+ var stylesheet="*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent;box-sizing:border-box}:host{--color:currentColor;--background-color:var(--tk-loading-background-color,var(--shade-lighter,hsl(var(--shade-h,0),var(--shade-s,0%),calc(var(--shade-l, 66.6667%)*1.3))))}:host([accent]){--color:var(--accent)}:host([error]){--color:var(--error)}.circle{animation:rotator 3s linear infinite;display:inline-flex;height:2em;width:2em}.circle,.circle .path{transform-origin:center}.circle .path{stroke-dasharray:265;stroke-dashoffset:0;stroke:var(--color);animation:dash 3s ease-in-out infinite}@keyframes rotator{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes dash{0%{stroke-dashoffset:265}50%{stroke-dashoffset:65;transform:rotate(90deg)}to{stroke-dashoffset:265;transform:rotate(1turn)}}.line{background-color:var(--background-color);height:.4em;overflow:hidden;position:relative}.line .progress{height:100%}.line .indeterminate,.line .progress{background-color:var(--color)}.line .indeterminate:before{animation:indeterminate 2.1s cubic-bezier(.65,.815,.735,.395) infinite}.line .indeterminate:after,.line .indeterminate:before{background-color:inherit;bottom:0;content:\"\";left:0;position:absolute;top:0;will-change:left,right}.line .indeterminate:after{animation:indeterminate-short 2.1s cubic-bezier(.165,.84,.44,1) infinite;animation-delay:1.15s}@keyframes indeterminate{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes indeterminate-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}";
3
+
4
+ export { css_248z as default, stylesheet };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -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>;
@@ -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;
@@ -24,20 +23,6 @@ var NotieLevel;
24
23
  NotieLevel["neutral"] = "neutral";
25
24
  })(NotieLevel || (NotieLevel = {}));
26
25
  let TkNotie = TkNotie_1 = class TkNotie extends TkBox {
27
- constructor(text = "") {
28
- super();
29
- this.persistent = true;
30
- this.open = false;
31
- this.position = "bottom";
32
- this.type = NotieType.show;
33
- this.level = NotieLevel.info;
34
- this.delay = 3000;
35
- this.animationDelay = 300;
36
- this.buttonText = "OK";
37
- this.confirmText = "OK";
38
- this.cancelText = "CANCEL";
39
- this.text = text;
40
- }
41
26
  static get styles() {
42
27
  return [
43
28
  ...TkBox.styles,
@@ -111,6 +96,20 @@ let TkNotie = TkNotie_1 = class TkNotie extends TkBox {
111
96
  }, { once: true });
112
97
  this.open = false;
113
98
  }
99
+ constructor(text = "") {
100
+ super();
101
+ this.persistent = true;
102
+ this.open = false;
103
+ this.position = "bottom";
104
+ this.type = NotieType.show;
105
+ this.level = NotieLevel.info;
106
+ this.delay = 3000;
107
+ this.animationDelay = 300;
108
+ this.buttonText = "OK";
109
+ this.confirmText = "OK";
110
+ this.cancelText = "CANCEL";
111
+ this.text = text;
112
+ }
114
113
  static show(options) {
115
114
  const notie = this.getNotie(options, NotieType.show);
116
115
  return notie.show();
@@ -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 };
File without changes
File without changes
File without changes
File without changes
@@ -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 './pages.scss.js';
5
5
 
@@ -11,9 +11,6 @@ let TkPages = class TkPages extends LitElement {
11
11
  this.handleScroll = false;
12
12
  this.scrollHistory = {};
13
13
  }
14
- static { this.styles = css `
15
- ${unsafeCSS(css_248z)}
16
- `; }
17
14
  set page(val) {
18
15
  let oldVal = this._page;
19
16
  this._page = val;
@@ -37,7 +34,8 @@ let TkPages = class TkPages extends LitElement {
37
34
  updated(props) {
38
35
  if (props.has("page")) {
39
36
  this.querySelectorAll(":scope > *").forEach(el => {
40
- const elPageAttribute = el.getAttribute("page") ?? "default";
37
+ var _a;
38
+ const elPageAttribute = (_a = el.getAttribute("page")) !== null && _a !== void 0 ? _a : "default";
41
39
  const scrollElement = document.scrollingElement || document.documentElement;
42
40
  if (elPageAttribute == this.page) {
43
41
  el.removeAttribute("hidden");
@@ -58,18 +56,17 @@ let TkPages = class TkPages extends LitElement {
58
56
  }
59
57
  }
60
58
  };
59
+ TkPages.styles = css `
60
+ ${unsafeCSS(css_248z)}
61
+ `;
61
62
  __decorate([
62
- property({ attribute: "page", type: String }),
63
- __metadata("design:type", String),
64
- __metadata("design:paramtypes", [String])
63
+ property({ attribute: "page", type: String })
65
64
  ], TkPages.prototype, "page", null);
66
65
  __decorate([
67
- property({ attribute: true, type: String }),
68
- __metadata("design:type", String)
66
+ property({ attribute: true, type: String })
69
67
  ], TkPages.prototype, "selected", void 0);
70
68
  __decorate([
71
- property({ attribute: "handle-scroll", type: Boolean }),
72
- __metadata("design:type", Boolean)
69
+ property({ attribute: "handle-scroll", type: Boolean })
73
70
  ], TkPages.prototype, "handleScroll", void 0);
74
71
  TkPages = __decorate([
75
72
  customElement("tk-pages")
File without changes
File without changes
File without changes
File without changes
@@ -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';
@@ -15,9 +15,6 @@ let TkRadio = class TkRadio extends LitElement {
15
15
  this.disabled = false;
16
16
  this.readonly = false;
17
17
  }
18
- static { this.styles = css `
19
- ${unsafeCSS(css_248z)}
20
- `; }
21
18
  render() {
22
19
  return html `
23
20
  <tk-box direction="row" align-items="center">
@@ -70,33 +67,29 @@ let TkRadio = class TkRadio extends LitElement {
70
67
  setTimeout(() => this.dispatchEvent(new Event("change", { bubbles: true, composed: true })));
71
68
  }
72
69
  };
70
+ TkRadio.styles = css `
71
+ ${unsafeCSS(css_248z)}
72
+ `;
73
73
  __decorate([
74
- property({ attribute: true, type: String }),
75
- __metadata("design:type", String)
74
+ property({ attribute: true, type: String })
76
75
  ], TkRadio.prototype, "name", void 0);
77
76
  __decorate([
78
- property({ attribute: true, type: Boolean, reflect: true }),
79
- __metadata("design:type", Boolean)
77
+ property({ attribute: true, type: Boolean, reflect: true })
80
78
  ], TkRadio.prototype, "checked", void 0);
81
79
  __decorate([
82
- property({ type: Boolean }),
83
- __metadata("design:type", Boolean)
80
+ property({ type: Boolean })
84
81
  ], TkRadio.prototype, "required", void 0);
85
82
  __decorate([
86
- property({ type: Boolean }),
87
- __metadata("design:type", Boolean)
83
+ property({ type: Boolean })
88
84
  ], TkRadio.prototype, "disabled", void 0);
89
85
  __decorate([
90
- property({ type: Boolean }),
91
- __metadata("design:type", Boolean)
86
+ property({ type: Boolean })
92
87
  ], TkRadio.prototype, "readonly", void 0);
93
88
  __decorate([
94
- property({ type: String, reflect: true }),
95
- __metadata("design:type", String)
89
+ property({ type: String, reflect: true })
96
90
  ], TkRadio.prototype, "value", void 0);
97
91
  __decorate([
98
- query("input"),
99
- __metadata("design:type", HTMLInputElement)
92
+ query("input")
100
93
  ], TkRadio.prototype, "$input", void 0);
101
94
  TkRadio = __decorate([
102
95
  customElement("tk-radio")
File without changes
File without changes
File without changes
File without changes
@@ -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, state, eventOptions, customElement } from 'lit/decorators.js';
4
4
  import { ifDefined } from 'lit/directives/if-defined.js';
5
5
  import '../box/index.js';
@@ -15,9 +15,6 @@ let TkSelect = class TkSelect extends LitElement {
15
15
  this.disabled = false;
16
16
  this.readonly = false;
17
17
  }
18
- static { this.styles = css `
19
- ${unsafeCSS(css_248z)}
20
- `; }
21
18
  set value(value) {
22
19
  if (!this.$select) {
23
20
  this.initialValue = value;
@@ -63,7 +60,8 @@ let TkSelect = class TkSelect extends LitElement {
63
60
  this.refreshAttributes();
64
61
  }
65
62
  firstUpdated() {
66
- this.$select = this.shadowRoot?.querySelector("select");
63
+ var _a;
64
+ this.$select = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("select");
67
65
  this.appendChild(this.$select);
68
66
  const options = this.querySelectorAll("option");
69
67
  options.forEach(option => this.$select.appendChild(option));
@@ -76,72 +74,56 @@ let TkSelect = class TkSelect extends LitElement {
76
74
  setTimeout(() => this.dispatchEvent(new Event("change", { bubbles: true, composed: true })));
77
75
  }
78
76
  };
77
+ TkSelect.styles = css `
78
+ ${unsafeCSS(css_248z)}
79
+ `;
79
80
  __decorate([
80
- property({ type: String }),
81
- __metadata("design:type", String),
82
- __metadata("design:paramtypes", [String])
81
+ property({ type: String })
83
82
  ], TkSelect.prototype, "value", null);
84
83
  __decorate([
85
- property({ attribute: true, type: String }),
86
- __metadata("design:type", String)
84
+ property({ attribute: true, type: String })
87
85
  ], TkSelect.prototype, "name", void 0);
88
86
  __decorate([
89
- property({ type: String }),
90
- __metadata("design:type", String)
87
+ property({ type: String })
91
88
  ], TkSelect.prototype, "list", void 0);
92
89
  __decorate([
93
- property({ type: String }),
94
- __metadata("design:type", String)
90
+ property({ type: String })
95
91
  ], TkSelect.prototype, "type", void 0);
96
92
  __decorate([
97
- property({ type: Boolean }),
98
- __metadata("design:type", Boolean)
93
+ property({ type: Boolean })
99
94
  ], TkSelect.prototype, "required", void 0);
100
95
  __decorate([
101
- property({ type: Boolean }),
102
- __metadata("design:type", Boolean)
96
+ property({ type: Boolean })
103
97
  ], TkSelect.prototype, "disabled", void 0);
104
98
  __decorate([
105
- property({ type: Boolean }),
106
- __metadata("design:type", Boolean)
99
+ property({ type: Boolean })
107
100
  ], TkSelect.prototype, "readonly", void 0);
108
101
  __decorate([
109
- property({ type: String }),
110
- __metadata("design:type", String)
102
+ property({ type: String })
111
103
  ], TkSelect.prototype, "autocomplete", void 0);
112
104
  __decorate([
113
- property({ type: String }),
114
- __metadata("design:type", String)
105
+ property({ type: String })
115
106
  ], TkSelect.prototype, "pattern", void 0);
116
107
  __decorate([
117
- state(),
118
- __metadata("design:type", String)
108
+ state()
119
109
  ], TkSelect.prototype, "initialValue", void 0);
120
110
  __decorate([
121
- property({ type: String }),
122
- __metadata("design:type", String)
111
+ property({ type: String })
123
112
  ], TkSelect.prototype, "label", void 0);
124
113
  __decorate([
125
- property({ type: Number }),
126
- __metadata("design:type", Number)
114
+ property({ type: Number })
127
115
  ], TkSelect.prototype, "min", void 0);
128
116
  __decorate([
129
- property({ type: Number }),
130
- __metadata("design:type", Number)
117
+ property({ type: Number })
131
118
  ], TkSelect.prototype, "max", void 0);
132
119
  __decorate([
133
- property({ type: Number }),
134
- __metadata("design:type", Number)
120
+ property({ type: Number })
135
121
  ], TkSelect.prototype, "minLength", void 0);
136
122
  __decorate([
137
- property({ type: Number }),
138
- __metadata("design:type", Number)
123
+ property({ type: Number })
139
124
  ], TkSelect.prototype, "maxLength", void 0);
140
125
  __decorate([
141
- eventOptions({ passive: true }),
142
- __metadata("design:type", Function),
143
- __metadata("design:paramtypes", []),
144
- __metadata("design:returntype", void 0)
126
+ eventOptions({ passive: true })
145
127
  ], TkSelect.prototype, "handleChange", null);
146
128
  TkSelect = __decorate([
147
129
  customElement("tk-select")
File without changes
File without changes
File without changes
File without changes
@@ -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 { uniqueID } from '../utils/unique.js';
@@ -18,9 +18,6 @@ let TkSlider = class TkSlider extends LitElement {
18
18
  this.value = this.min;
19
19
  this.max = 100;
20
20
  }
21
- static { this.styles = css `
22
- ${unsafeCSS(css_248z)}
23
- `; }
24
21
  render() {
25
22
  return html `
26
23
  <div id="container">
@@ -83,65 +80,53 @@ let TkSlider = class TkSlider extends LitElement {
83
80
  });
84
81
  }
85
82
  };
83
+ TkSlider.styles = css `
84
+ ${unsafeCSS(css_248z)}
85
+ `;
86
86
  __decorate([
87
- property({ attribute: true, type: String }),
88
- __metadata("design:type", String)
87
+ property({ attribute: true, type: String })
89
88
  ], TkSlider.prototype, "name", void 0);
90
89
  __decorate([
91
- property({ type: String }),
92
- __metadata("design:type", String)
90
+ property({ type: String })
93
91
  ], TkSlider.prototype, "list", void 0);
94
92
  __decorate([
95
- property({ type: Boolean }),
96
- __metadata("design:type", Boolean)
93
+ property({ type: Boolean })
97
94
  ], TkSlider.prototype, "required", void 0);
98
95
  __decorate([
99
- property({ type: Boolean }),
100
- __metadata("design:type", Boolean)
96
+ property({ type: Boolean })
101
97
  ], TkSlider.prototype, "disabled", void 0);
102
98
  __decorate([
103
- property({ type: Boolean }),
104
- __metadata("design:type", Boolean)
99
+ property({ type: Boolean })
105
100
  ], TkSlider.prototype, "readonly", void 0);
106
101
  __decorate([
107
- property({ type: String }),
108
- __metadata("design:type", String)
102
+ property({ type: String })
109
103
  ], TkSlider.prototype, "autocomplete", void 0);
110
104
  __decorate([
111
- property({ type: Boolean, attribute: "thumblabel" }),
112
- __metadata("design:type", Boolean)
105
+ property({ type: Boolean, attribute: "thumblabel" })
113
106
  ], TkSlider.prototype, "thumbLabel", void 0);
114
107
  __decorate([
115
- property({ type: Boolean, attribute: "thumblabel-persist" }),
116
- __metadata("design:type", Boolean)
108
+ property({ type: Boolean, attribute: "thumblabel-persist" })
117
109
  ], TkSlider.prototype, "thumbLabelPersist", void 0);
118
110
  __decorate([
119
- property({ type: String }),
120
- __metadata("design:type", String)
111
+ property({ type: String })
121
112
  ], TkSlider.prototype, "label", void 0);
122
113
  __decorate([
123
- property({ type: Number }),
124
- __metadata("design:type", Number)
114
+ property({ type: Number })
125
115
  ], TkSlider.prototype, "min", void 0);
126
116
  __decorate([
127
- property({ type: Number, reflect: true }),
128
- __metadata("design:type", Number)
117
+ property({ type: Number, reflect: true })
129
118
  ], TkSlider.prototype, "value", void 0);
130
119
  __decorate([
131
- property({ type: Number }),
132
- __metadata("design:type", Number)
120
+ property({ type: Number })
133
121
  ], TkSlider.prototype, "max", void 0);
134
122
  __decorate([
135
- property({ type: Number }),
136
- __metadata("design:type", Number)
123
+ property({ type: Number })
137
124
  ], TkSlider.prototype, "step", void 0);
138
125
  __decorate([
139
- query("#slider"),
140
- __metadata("design:type", HTMLInputElement)
126
+ query("#slider")
141
127
  ], TkSlider.prototype, "$slider", void 0);
142
128
  __decorate([
143
- query(".hidden-input"),
144
- __metadata("design:type", HTMLInputElement)
129
+ query(".hidden-input")
145
130
  ], TkSlider.prototype, "$input", void 0);
146
131
  TkSlider = __decorate([
147
132
  customElement("tk-slider")
File without changes
File without changes
File without changes
File without changes