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.
- package/package.json +3 -1
- package/{accordion → tinkiet/accordion}/accordion.d.ts +0 -0
- package/{accordion → tinkiet/accordion}/accordion.js +5 -9
- package/{accordion → tinkiet/accordion}/accordion.scss.js +0 -0
- package/{accordion → tinkiet/accordion}/index.d.ts +0 -0
- package/{accordion → tinkiet/accordion}/index.js +0 -0
- package/{badge → tinkiet/badge}/badge.d.ts +0 -0
- package/{badge → tinkiet/badge}/badge.js +0 -0
- package/{badge → tinkiet/badge}/badge.scss.js +0 -0
- package/{badge → tinkiet/badge}/index.d.ts +0 -0
- package/{badge → tinkiet/badge}/index.js +0 -0
- package/{box → tinkiet/box}/box.d.ts +0 -0
- package/{box → tinkiet/box}/box.js +6 -8
- package/{box → tinkiet/box}/box.scss.js +0 -0
- package/{box → tinkiet/box}/focusable-box.d.ts +0 -0
- package/{box → tinkiet/box}/focusable-box.js +3 -5
- package/{box → tinkiet/box}/index.d.ts +0 -0
- package/{box → tinkiet/box}/index.js +0 -0
- package/{button → tinkiet/button}/button.d.ts +0 -0
- package/{button → tinkiet/button}/button.js +9 -14
- package/{button → tinkiet/button}/button.scss.js +0 -0
- package/{button → tinkiet/button}/index.d.ts +0 -0
- package/{button → tinkiet/button}/index.js +0 -0
- package/{checkbox → tinkiet/checkbox}/checkbox.d.ts +0 -0
- package/{checkbox → tinkiet/checkbox}/checkbox.js +9 -13
- package/{checkbox → tinkiet/checkbox}/checkbox.scss.js +0 -0
- package/{checkbox → tinkiet/checkbox}/index.d.ts +0 -0
- package/{checkbox → tinkiet/checkbox}/index.js +0 -0
- package/{dialog → tinkiet/dialog}/dialog.d.ts +1 -1
- package/{dialog → tinkiet/dialog}/dialog.js +8 -11
- package/{dialog → tinkiet/dialog}/dialog.scss.js +0 -0
- package/{dialog → tinkiet/dialog}/index.d.ts +0 -0
- package/{dialog → tinkiet/dialog}/index.js +0 -0
- package/{drawer → tinkiet/drawer}/drawer.d.ts +0 -0
- package/{drawer → tinkiet/drawer}/drawer.js +16 -22
- package/{drawer → tinkiet/drawer}/drawer.scss.js +0 -0
- package/{drawer → tinkiet/drawer}/index.d.ts +0 -0
- package/{drawer → tinkiet/drawer}/index.js +0 -0
- package/{form → tinkiet/form}/form.d.ts +0 -0
- package/{form → tinkiet/form}/form.js +4 -4
- package/{form → tinkiet/form}/index.d.ts +0 -0
- package/{form → tinkiet/form}/index.js +0 -0
- package/{icon → tinkiet/icon}/icon.d.ts +0 -0
- package/{icon → tinkiet/icon}/icon.js +5 -9
- package/{icon → tinkiet/icon}/icon.scss.js +0 -0
- package/{icon → tinkiet/icon}/icons.d.ts +0 -0
- package/{icon → tinkiet/icon}/icons.js +3 -5
- package/{icon → tinkiet/icon}/index.d.ts +0 -0
- package/{icon → tinkiet/icon}/index.js +0 -0
- package/{index.d.ts → tinkiet/index.d.ts} +1 -1
- package/tinkiet/index.d.ts.map +1 -0
- package/{index.js → tinkiet/index.js} +0 -2
- package/{list-item → tinkiet/list-item}/index.d.ts +0 -0
- package/{list-item → tinkiet/list-item}/index.js +0 -0
- package/{list-item → tinkiet/list-item}/list-item.d.ts +0 -0
- package/{list-item → tinkiet/list-item}/list-item.js +15 -20
- package/{list-item → tinkiet/list-item}/list-item.scss.js +0 -0
- package/{loading → tinkiet/loading}/index.d.ts +0 -0
- package/{loading → tinkiet/loading}/index.js +0 -0
- package/{loading → tinkiet/loading}/loading.d.ts +1 -1
- package/{loading → tinkiet/loading}/loading.js +10 -10
- package/tinkiet/loading/loading.scss.js +4 -0
- package/{navbar → tinkiet/navbar}/index.d.ts +0 -0
- package/{navbar → tinkiet/navbar}/index.js +0 -0
- package/{navbar → tinkiet/navbar}/navbar.d.ts +0 -0
- package/{navbar → tinkiet/navbar}/navbar.js +0 -0
- package/{navbar → tinkiet/navbar}/navbar.scss.js +0 -0
- package/{notie → tinkiet/notie}/index.d.ts +0 -0
- package/{notie → tinkiet/notie}/index.js +0 -0
- package/{notie → tinkiet/notie}/notie.d.ts +1 -1
- package/{notie → tinkiet/notie}/notie.js +32 -46
- package/{notie → tinkiet/notie}/notie.scss.js +0 -0
- package/{pages → tinkiet/pages}/index.d.ts +0 -0
- package/{pages → tinkiet/pages}/index.js +0 -0
- package/{pages → tinkiet/pages}/pages.d.ts +0 -0
- package/{pages → tinkiet/pages}/pages.js +10 -13
- package/{pages → tinkiet/pages}/pages.scss.js +0 -0
- package/{radio → tinkiet/radio}/index.d.ts +0 -0
- package/{radio → tinkiet/radio}/index.js +0 -0
- package/{radio → tinkiet/radio}/radio.d.ts +0 -0
- package/{radio → tinkiet/radio}/radio.js +12 -19
- package/{radio → tinkiet/radio}/radio.scss.js +0 -0
- package/{select → tinkiet/select}/index.d.ts +0 -0
- package/{select → tinkiet/select}/index.js +0 -0
- package/{select → tinkiet/select}/select.d.ts +0 -0
- package/{select → tinkiet/select}/select.js +23 -41
- package/{select → tinkiet/select}/select.scss.js +0 -0
- package/{slider → tinkiet/slider}/index.d.ts +0 -0
- package/{slider → tinkiet/slider}/index.js +0 -0
- package/{slider → tinkiet/slider}/slider.d.ts +0 -0
- package/{slider → tinkiet/slider}/slider.js +20 -35
- package/{slider → tinkiet/slider}/slider.scss.js +0 -0
- package/{switch → tinkiet/switch}/index.d.ts +0 -0
- package/{switch → tinkiet/switch}/index.js +0 -0
- package/{switch → tinkiet/switch}/switch.d.ts +0 -0
- package/{switch → tinkiet/switch}/switch.js +12 -19
- package/{switch → tinkiet/switch}/switch.scss.js +0 -0
- package/{tab-group → tinkiet/tab-group}/index.d.ts +0 -0
- package/{tab-group → tinkiet/tab-group}/index.js +0 -0
- package/{tab-group → tinkiet/tab-group}/tab-group.d.ts +0 -0
- package/{tab-group → tinkiet/tab-group}/tab-group.js +20 -25
- package/{tab-group → tinkiet/tab-group}/tab-group.scss.js +0 -0
- package/{tag → tinkiet/tag}/index.d.ts +0 -0
- package/{tag → tinkiet/tag}/index.js +0 -0
- package/{tag → tinkiet/tag}/tag.d.ts +0 -0
- package/{tag → tinkiet/tag}/tag.js +4 -4
- package/{tag → tinkiet/tag}/tag.scss.js +0 -0
- package/{textarea → tinkiet/textarea}/index.d.ts +0 -0
- package/{textarea → tinkiet/textarea}/index.js +0 -0
- package/{textarea → tinkiet/textarea}/textarea.d.ts +0 -0
- package/{textarea → tinkiet/textarea}/textarea.js +23 -41
- package/{textarea → tinkiet/textarea}/textarea.scss.js +0 -0
- package/{textfield → tinkiet/textfield}/index.d.ts +0 -0
- package/{textfield → tinkiet/textfield}/index.js +0 -0
- package/{textfield → tinkiet/textfield}/textfield.d.ts +0 -0
- package/{textfield → tinkiet/textfield}/textfield.js +24 -43
- package/{textfield → tinkiet/textfield}/textfield.scss.js +0 -0
- package/{theme → tinkiet/theme}/index.d.ts +0 -0
- package/{theme → tinkiet/theme}/index.js +0 -0
- package/{theme → tinkiet/theme}/theme.d.ts +0 -0
- package/{theme → tinkiet/theme}/theme.js +17 -29
- package/{theme → tinkiet/theme}/theme.scss.js +0 -0
- package/{utils → tinkiet/utils}/unique.d.ts +0 -0
- package/{utils → tinkiet/utils}/unique.js +0 -0
- package/umd/tinkiet.min.d.ts +5 -17
- package/umd/tinkiet.min.d.ts.map +1 -0
- package/umd/tinkiet.min.js +1 -1
- package/loading/loading.scss.js +0 -4
- package/progress/index.d.ts +0 -1
- package/progress/index.js +0 -1
- package/progress/progress.d.ts +0 -15
- package/progress/progress.js +0 -51
- package/progress/progress.scss.js +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __decorate
|
|
2
|
-
import { LitElement, css, unsafeCSS
|
|
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 TkSwitch = class TkSwitch 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">
|
|
@@ -71,33 +68,29 @@ let TkSwitch = class TkSwitch extends LitElement {
|
|
|
71
68
|
setTimeout(() => this.dispatchEvent(new Event("change", { bubbles: true, composed: true })));
|
|
72
69
|
}
|
|
73
70
|
};
|
|
71
|
+
TkSwitch.styles = css `
|
|
72
|
+
${unsafeCSS(css_248z)}
|
|
73
|
+
`;
|
|
74
74
|
__decorate([
|
|
75
|
-
property({ attribute: true, type: String })
|
|
76
|
-
__metadata("design:type", String)
|
|
75
|
+
property({ attribute: true, type: String })
|
|
77
76
|
], TkSwitch.prototype, "name", void 0);
|
|
78
77
|
__decorate([
|
|
79
|
-
property({ attribute: true, type: Boolean, reflect: true })
|
|
80
|
-
__metadata("design:type", Boolean)
|
|
78
|
+
property({ attribute: true, type: Boolean, reflect: true })
|
|
81
79
|
], TkSwitch.prototype, "checked", void 0);
|
|
82
80
|
__decorate([
|
|
83
|
-
property({ type: Boolean })
|
|
84
|
-
__metadata("design:type", Boolean)
|
|
81
|
+
property({ type: Boolean })
|
|
85
82
|
], TkSwitch.prototype, "required", void 0);
|
|
86
83
|
__decorate([
|
|
87
|
-
property({ type: Boolean })
|
|
88
|
-
__metadata("design:type", Boolean)
|
|
84
|
+
property({ type: Boolean })
|
|
89
85
|
], TkSwitch.prototype, "disabled", void 0);
|
|
90
86
|
__decorate([
|
|
91
|
-
property({ type: Boolean })
|
|
92
|
-
__metadata("design:type", Boolean)
|
|
87
|
+
property({ type: Boolean })
|
|
93
88
|
], TkSwitch.prototype, "readonly", void 0);
|
|
94
89
|
__decorate([
|
|
95
|
-
property({ type: String, reflect: true })
|
|
96
|
-
__metadata("design:type", String)
|
|
90
|
+
property({ type: String, reflect: true })
|
|
97
91
|
], TkSwitch.prototype, "value", void 0);
|
|
98
92
|
__decorate([
|
|
99
|
-
query("input")
|
|
100
|
-
__metadata("design:type", HTMLInputElement)
|
|
93
|
+
query("input")
|
|
101
94
|
], TkSwitch.prototype, "$input", void 0);
|
|
102
95
|
TkSwitch = __decorate([
|
|
103
96
|
customElement("tk-switch")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,18 +1,9 @@
|
|
|
1
|
-
import { __decorate
|
|
2
|
-
import { LitElement, css, unsafeCSS
|
|
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 './tab-group.scss.js';
|
|
5
5
|
|
|
6
6
|
let TkTabGroup = class TkTabGroup extends LitElement {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
this.circle = false;
|
|
10
|
-
this.observe = "";
|
|
11
|
-
this.selected = "";
|
|
12
|
-
}
|
|
13
|
-
static { this.styles = css `
|
|
14
|
-
${unsafeCSS(css_248z)}
|
|
15
|
-
`; }
|
|
16
7
|
render() {
|
|
17
8
|
return html `
|
|
18
9
|
<div class="tabs">
|
|
@@ -27,6 +18,12 @@ let TkTabGroup = class TkTabGroup extends LitElement {
|
|
|
27
18
|
`}
|
|
28
19
|
`;
|
|
29
20
|
}
|
|
21
|
+
constructor() {
|
|
22
|
+
super();
|
|
23
|
+
this.circle = false;
|
|
24
|
+
this.observe = "";
|
|
25
|
+
this.selected = "";
|
|
26
|
+
}
|
|
30
27
|
firstUpdated() {
|
|
31
28
|
if (IntersectionObserver) {
|
|
32
29
|
const observer = new IntersectionObserver(this.updateUnderline.bind(this));
|
|
@@ -37,12 +34,13 @@ let TkTabGroup = class TkTabGroup extends LitElement {
|
|
|
37
34
|
}
|
|
38
35
|
}
|
|
39
36
|
updated(props) {
|
|
37
|
+
var _a, _b;
|
|
40
38
|
if (props.has("selected")) {
|
|
41
39
|
this.querySelectorAll("*").forEach(node => node.removeAttribute("selected"));
|
|
42
|
-
this.querySelector(`[tab="${this.selected}"]`)
|
|
40
|
+
(_a = this.querySelector(`[tab="${this.selected}"]`)) === null || _a === void 0 ? void 0 : _a.setAttribute("selected", "");
|
|
43
41
|
}
|
|
44
42
|
if (props.has("observe")) {
|
|
45
|
-
this.querySelector(`[tab="${this.selected}"]`)
|
|
43
|
+
(_b = this.querySelector(`[tab="${this.selected}"]`)) === null || _b === void 0 ? void 0 : _b.focus();
|
|
46
44
|
this.updateUnderline();
|
|
47
45
|
}
|
|
48
46
|
}
|
|
@@ -74,29 +72,26 @@ let TkTabGroup = class TkTabGroup extends LitElement {
|
|
|
74
72
|
// }
|
|
75
73
|
}
|
|
76
74
|
};
|
|
75
|
+
TkTabGroup.styles = css `
|
|
76
|
+
${unsafeCSS(css_248z)}
|
|
77
|
+
`;
|
|
77
78
|
__decorate([
|
|
78
|
-
property({ attribute: true, type: Boolean })
|
|
79
|
-
__metadata("design:type", Boolean)
|
|
79
|
+
property({ attribute: true, type: Boolean })
|
|
80
80
|
], TkTabGroup.prototype, "circle", void 0);
|
|
81
81
|
__decorate([
|
|
82
|
-
property({ attribute: true, type: String })
|
|
83
|
-
__metadata("design:type", String)
|
|
82
|
+
property({ attribute: true, type: String })
|
|
84
83
|
], TkTabGroup.prototype, "observe", void 0);
|
|
85
84
|
__decorate([
|
|
86
|
-
property({ attribute: true, type: String })
|
|
87
|
-
__metadata("design:type", String)
|
|
85
|
+
property({ attribute: true, type: String })
|
|
88
86
|
], TkTabGroup.prototype, "selected", void 0);
|
|
89
87
|
__decorate([
|
|
90
|
-
query(".underline")
|
|
91
|
-
__metadata("design:type", HTMLElement)
|
|
88
|
+
query(".underline")
|
|
92
89
|
], TkTabGroup.prototype, "$underline", void 0);
|
|
93
90
|
__decorate([
|
|
94
|
-
query(".circle")
|
|
95
|
-
__metadata("design:type", HTMLElement)
|
|
91
|
+
query(".circle")
|
|
96
92
|
], TkTabGroup.prototype, "$circle", void 0);
|
|
97
93
|
TkTabGroup = __decorate([
|
|
98
|
-
customElement("tk-tab-group")
|
|
99
|
-
__metadata("design:paramtypes", [])
|
|
94
|
+
customElement("tk-tab-group")
|
|
100
95
|
], TkTabGroup);
|
|
101
96
|
|
|
102
97
|
export { TkTabGroup };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { __decorate } from 'tslib';
|
|
2
|
-
import { LitElement, css, unsafeCSS
|
|
2
|
+
import { LitElement, html, css, unsafeCSS } from 'lit';
|
|
3
3
|
import { customElement } from 'lit/decorators.js';
|
|
4
4
|
import css_248z from './tag.scss.js';
|
|
5
5
|
|
|
6
6
|
let TkTag = class TkTag extends LitElement {
|
|
7
|
-
static { this.styles = css `
|
|
8
|
-
${unsafeCSS(css_248z)}
|
|
9
|
-
`; }
|
|
10
7
|
render() {
|
|
11
8
|
return html `
|
|
12
9
|
<div class="tag"><slot></slot></div>
|
|
13
10
|
`;
|
|
14
11
|
}
|
|
15
12
|
};
|
|
13
|
+
TkTag.styles = css `
|
|
14
|
+
${unsafeCSS(css_248z)}
|
|
15
|
+
`;
|
|
16
16
|
TkTag = __decorate([
|
|
17
17
|
customElement("tk-tag")
|
|
18
18
|
], TkTag);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __decorate
|
|
2
|
-
import { LitElement, css, unsafeCSS
|
|
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 { uniqueID } from '../utils/unique.js';
|
|
@@ -15,9 +15,6 @@ let TkTextarea = class TkTextarea extends LitElement {
|
|
|
15
15
|
this.readonly = false;
|
|
16
16
|
this.rows = 1;
|
|
17
17
|
}
|
|
18
|
-
static { this.styles = css `
|
|
19
|
-
${unsafeCSS(css_248z)}
|
|
20
|
-
`; }
|
|
21
18
|
set value(value) {
|
|
22
19
|
if (!this.$input) {
|
|
23
20
|
this.initialValue = value;
|
|
@@ -64,7 +61,8 @@ let TkTextarea = class TkTextarea extends LitElement {
|
|
|
64
61
|
this.refreshAttributes();
|
|
65
62
|
}
|
|
66
63
|
firstUpdated() {
|
|
67
|
-
|
|
64
|
+
var _a;
|
|
65
|
+
this.$input = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("textarea");
|
|
68
66
|
this.appendChild(this.$input);
|
|
69
67
|
if (this.initialValue)
|
|
70
68
|
this.value = this.initialValue;
|
|
@@ -77,72 +75,56 @@ let TkTextarea = class TkTextarea extends LitElement {
|
|
|
77
75
|
this.$input.focus();
|
|
78
76
|
}
|
|
79
77
|
};
|
|
78
|
+
TkTextarea.styles = css `
|
|
79
|
+
${unsafeCSS(css_248z)}
|
|
80
|
+
`;
|
|
80
81
|
__decorate([
|
|
81
|
-
property({ type: String })
|
|
82
|
-
__metadata("design:type", String),
|
|
83
|
-
__metadata("design:paramtypes", [String])
|
|
82
|
+
property({ type: String })
|
|
84
83
|
], TkTextarea.prototype, "value", null);
|
|
85
84
|
__decorate([
|
|
86
|
-
property({ attribute: true, type: String })
|
|
87
|
-
__metadata("design:type", String)
|
|
85
|
+
property({ attribute: true, type: String })
|
|
88
86
|
], TkTextarea.prototype, "name", void 0);
|
|
89
87
|
__decorate([
|
|
90
|
-
property({ type: String })
|
|
91
|
-
__metadata("design:type", String)
|
|
88
|
+
property({ type: String })
|
|
92
89
|
], TkTextarea.prototype, "list", void 0);
|
|
93
90
|
__decorate([
|
|
94
|
-
property({ type: String })
|
|
95
|
-
__metadata("design:type", String)
|
|
91
|
+
property({ type: String })
|
|
96
92
|
], TkTextarea.prototype, "type", void 0);
|
|
97
93
|
__decorate([
|
|
98
|
-
property({ type: Boolean })
|
|
99
|
-
__metadata("design:type", Boolean)
|
|
94
|
+
property({ type: Boolean })
|
|
100
95
|
], TkTextarea.prototype, "required", void 0);
|
|
101
96
|
__decorate([
|
|
102
|
-
property({ type: Boolean })
|
|
103
|
-
__metadata("design:type", Boolean)
|
|
97
|
+
property({ type: Boolean })
|
|
104
98
|
], TkTextarea.prototype, "disabled", void 0);
|
|
105
99
|
__decorate([
|
|
106
|
-
property({ type: Boolean })
|
|
107
|
-
__metadata("design:type", Boolean)
|
|
100
|
+
property({ type: Boolean })
|
|
108
101
|
], TkTextarea.prototype, "readonly", void 0);
|
|
109
102
|
__decorate([
|
|
110
|
-
property({ type: String })
|
|
111
|
-
__metadata("design:type", String)
|
|
103
|
+
property({ type: String })
|
|
112
104
|
], TkTextarea.prototype, "autocomplete", void 0);
|
|
113
105
|
__decorate([
|
|
114
|
-
property({ type: String })
|
|
115
|
-
__metadata("design:type", String)
|
|
106
|
+
property({ type: String })
|
|
116
107
|
], TkTextarea.prototype, "autocapitalize", void 0);
|
|
117
108
|
__decorate([
|
|
118
|
-
property({ type: String })
|
|
119
|
-
__metadata("design:type", String)
|
|
109
|
+
property({ type: String })
|
|
120
110
|
], TkTextarea.prototype, "pattern", void 0);
|
|
121
111
|
__decorate([
|
|
122
|
-
state()
|
|
123
|
-
__metadata("design:type", String)
|
|
112
|
+
state()
|
|
124
113
|
], TkTextarea.prototype, "initialValue", void 0);
|
|
125
114
|
__decorate([
|
|
126
|
-
property({ type: String })
|
|
127
|
-
__metadata("design:type", String)
|
|
115
|
+
property({ type: String })
|
|
128
116
|
], TkTextarea.prototype, "label", void 0);
|
|
129
117
|
__decorate([
|
|
130
|
-
property({ type: Number })
|
|
131
|
-
__metadata("design:type", Number)
|
|
118
|
+
property({ type: Number })
|
|
132
119
|
], TkTextarea.prototype, "minLength", void 0);
|
|
133
120
|
__decorate([
|
|
134
|
-
property({ type: Number })
|
|
135
|
-
__metadata("design:type", Number)
|
|
121
|
+
property({ type: Number })
|
|
136
122
|
], TkTextarea.prototype, "maxLength", void 0);
|
|
137
123
|
__decorate([
|
|
138
|
-
property({ type: Number })
|
|
139
|
-
__metadata("design:type", Number)
|
|
124
|
+
property({ type: Number })
|
|
140
125
|
], TkTextarea.prototype, "rows", void 0);
|
|
141
126
|
__decorate([
|
|
142
|
-
eventOptions({ passive: true })
|
|
143
|
-
__metadata("design:type", Function),
|
|
144
|
-
__metadata("design:paramtypes", []),
|
|
145
|
-
__metadata("design:returntype", void 0)
|
|
127
|
+
eventOptions({ passive: true })
|
|
146
128
|
], TkTextarea.prototype, "handleChange", null);
|
|
147
129
|
TkTextarea = __decorate([
|
|
148
130
|
customElement("tk-textarea")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __decorate
|
|
1
|
+
import { __decorate } from 'tslib';
|
|
2
2
|
import { property, state, eventOptions, customElement } from 'lit/decorators.js';
|
|
3
|
-
import { LitElement, css, unsafeCSS
|
|
3
|
+
import { LitElement, html, css, unsafeCSS } from 'lit';
|
|
4
4
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
5
5
|
import { uniqueID } from '../utils/unique.js';
|
|
6
6
|
import css_248z from './textfield.scss.js';
|
|
@@ -14,9 +14,6 @@ let TkTextfield = class TkTextfield extends LitElement {
|
|
|
14
14
|
this.disabled = false;
|
|
15
15
|
this.readonly = false;
|
|
16
16
|
}
|
|
17
|
-
static { this.styles = css `
|
|
18
|
-
${unsafeCSS(css_248z)}
|
|
19
|
-
`; }
|
|
20
17
|
set value(value) {
|
|
21
18
|
if (!this.$input) {
|
|
22
19
|
this.initialValue = value;
|
|
@@ -64,7 +61,8 @@ let TkTextfield = class TkTextfield extends LitElement {
|
|
|
64
61
|
this.refreshAttributes();
|
|
65
62
|
}
|
|
66
63
|
firstUpdated() {
|
|
67
|
-
|
|
64
|
+
var _a;
|
|
65
|
+
this.$input = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("input");
|
|
68
66
|
this.appendChild(this.$input);
|
|
69
67
|
if (this.initialValue)
|
|
70
68
|
this.value = this.initialValue;
|
|
@@ -77,76 +75,59 @@ let TkTextfield = class TkTextfield extends LitElement {
|
|
|
77
75
|
this.$input.focus();
|
|
78
76
|
}
|
|
79
77
|
};
|
|
78
|
+
TkTextfield.styles = css `
|
|
79
|
+
${unsafeCSS(css_248z)}
|
|
80
|
+
`;
|
|
80
81
|
__decorate([
|
|
81
|
-
property({ type: String })
|
|
82
|
-
__metadata("design:type", String),
|
|
83
|
-
__metadata("design:paramtypes", [String])
|
|
82
|
+
property({ type: String })
|
|
84
83
|
], TkTextfield.prototype, "value", null);
|
|
85
84
|
__decorate([
|
|
86
|
-
property({ attribute: true, type: String })
|
|
87
|
-
__metadata("design:type", String)
|
|
85
|
+
property({ attribute: true, type: String })
|
|
88
86
|
], TkTextfield.prototype, "name", void 0);
|
|
89
87
|
__decorate([
|
|
90
|
-
property({ type: String })
|
|
91
|
-
__metadata("design:type", String)
|
|
88
|
+
property({ type: String })
|
|
92
89
|
], TkTextfield.prototype, "list", void 0);
|
|
93
90
|
__decorate([
|
|
94
|
-
property({ type: String })
|
|
95
|
-
__metadata("design:type", String)
|
|
91
|
+
property({ type: String })
|
|
96
92
|
], TkTextfield.prototype, "type", void 0);
|
|
97
93
|
__decorate([
|
|
98
|
-
property({ type: Boolean })
|
|
99
|
-
__metadata("design:type", Boolean)
|
|
94
|
+
property({ type: Boolean })
|
|
100
95
|
], TkTextfield.prototype, "required", void 0);
|
|
101
96
|
__decorate([
|
|
102
|
-
property({ type: Boolean })
|
|
103
|
-
__metadata("design:type", Boolean)
|
|
97
|
+
property({ type: Boolean })
|
|
104
98
|
], TkTextfield.prototype, "disabled", void 0);
|
|
105
99
|
__decorate([
|
|
106
|
-
property({ type: Boolean })
|
|
107
|
-
__metadata("design:type", Boolean)
|
|
100
|
+
property({ type: Boolean })
|
|
108
101
|
], TkTextfield.prototype, "readonly", void 0);
|
|
109
102
|
__decorate([
|
|
110
|
-
property({ type: String })
|
|
111
|
-
__metadata("design:type", String)
|
|
103
|
+
property({ type: String })
|
|
112
104
|
], TkTextfield.prototype, "autocomplete", void 0);
|
|
113
105
|
__decorate([
|
|
114
|
-
property({ type: String })
|
|
115
|
-
__metadata("design:type", String)
|
|
106
|
+
property({ type: String })
|
|
116
107
|
], TkTextfield.prototype, "autocapitalize", void 0);
|
|
117
108
|
__decorate([
|
|
118
|
-
property({ type: String })
|
|
119
|
-
__metadata("design:type", String)
|
|
109
|
+
property({ type: String })
|
|
120
110
|
], TkTextfield.prototype, "pattern", void 0);
|
|
121
111
|
__decorate([
|
|
122
|
-
state()
|
|
123
|
-
__metadata("design:type", String)
|
|
112
|
+
state()
|
|
124
113
|
], TkTextfield.prototype, "initialValue", void 0);
|
|
125
114
|
__decorate([
|
|
126
|
-
property({ type: String })
|
|
127
|
-
__metadata("design:type", String)
|
|
115
|
+
property({ type: String })
|
|
128
116
|
], TkTextfield.prototype, "label", void 0);
|
|
129
117
|
__decorate([
|
|
130
|
-
property({ type: Number })
|
|
131
|
-
__metadata("design:type", Number)
|
|
118
|
+
property({ type: Number })
|
|
132
119
|
], TkTextfield.prototype, "min", void 0);
|
|
133
120
|
__decorate([
|
|
134
|
-
property({ type: Number })
|
|
135
|
-
__metadata("design:type", Number)
|
|
121
|
+
property({ type: Number })
|
|
136
122
|
], TkTextfield.prototype, "max", void 0);
|
|
137
123
|
__decorate([
|
|
138
|
-
property({ type: Number })
|
|
139
|
-
__metadata("design:type", Number)
|
|
124
|
+
property({ type: Number })
|
|
140
125
|
], TkTextfield.prototype, "minLength", void 0);
|
|
141
126
|
__decorate([
|
|
142
|
-
property({ type: Number })
|
|
143
|
-
__metadata("design:type", Number)
|
|
127
|
+
property({ type: Number })
|
|
144
128
|
], TkTextfield.prototype, "maxLength", void 0);
|
|
145
129
|
__decorate([
|
|
146
|
-
eventOptions({ passive: true })
|
|
147
|
-
__metadata("design:type", Function),
|
|
148
|
-
__metadata("design:paramtypes", []),
|
|
149
|
-
__metadata("design:returntype", void 0)
|
|
130
|
+
eventOptions({ passive: true })
|
|
150
131
|
], TkTextfield.prototype, "handleChange", null);
|
|
151
132
|
TkTextfield = __decorate([
|
|
152
133
|
customElement("tk-textfield")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __decorate
|
|
2
|
-
import { LitElement, css, unsafeCSS
|
|
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 './theme.scss.js';
|
|
5
5
|
|
|
@@ -19,9 +19,6 @@ let TkTheme = class TkTheme extends LitElement {
|
|
|
19
19
|
this.forceBody = false;
|
|
20
20
|
this.inverted = false;
|
|
21
21
|
}
|
|
22
|
-
static { this.styles = css `
|
|
23
|
-
${unsafeCSS(css_248z)}
|
|
24
|
-
`; }
|
|
25
22
|
render() {
|
|
26
23
|
return html `
|
|
27
24
|
<slot></slot>
|
|
@@ -144,53 +141,44 @@ let TkTheme = class TkTheme extends LitElement {
|
|
|
144
141
|
document.body.style.setProperty("color", `hsl(${foreground[0]},${foreground[1]},${foreground[2]})`);
|
|
145
142
|
}
|
|
146
143
|
};
|
|
144
|
+
TkTheme.styles = css `
|
|
145
|
+
${unsafeCSS(css_248z)}
|
|
146
|
+
`;
|
|
147
147
|
__decorate([
|
|
148
|
-
property()
|
|
149
|
-
__metadata("design:type", String)
|
|
148
|
+
property()
|
|
150
149
|
], TkTheme.prototype, "primary", void 0);
|
|
151
150
|
__decorate([
|
|
152
|
-
property({ attribute: "on-primary" })
|
|
153
|
-
__metadata("design:type", String)
|
|
151
|
+
property({ attribute: "on-primary" })
|
|
154
152
|
], TkTheme.prototype, "onPrimary", void 0);
|
|
155
153
|
__decorate([
|
|
156
|
-
property()
|
|
157
|
-
__metadata("design:type", String)
|
|
154
|
+
property()
|
|
158
155
|
], TkTheme.prototype, "accent", void 0);
|
|
159
156
|
__decorate([
|
|
160
|
-
property({ attribute: "on-accent" })
|
|
161
|
-
__metadata("design:type", String)
|
|
157
|
+
property({ attribute: "on-accent" })
|
|
162
158
|
], TkTheme.prototype, "onAccent", void 0);
|
|
163
159
|
__decorate([
|
|
164
|
-
property()
|
|
165
|
-
__metadata("design:type", String)
|
|
160
|
+
property()
|
|
166
161
|
], TkTheme.prototype, "shade", void 0);
|
|
167
162
|
__decorate([
|
|
168
|
-
property()
|
|
169
|
-
__metadata("design:type", String)
|
|
163
|
+
property()
|
|
170
164
|
], TkTheme.prototype, "onShade", void 0);
|
|
171
165
|
__decorate([
|
|
172
|
-
property()
|
|
173
|
-
__metadata("design:type", String)
|
|
166
|
+
property()
|
|
174
167
|
], TkTheme.prototype, "error", void 0);
|
|
175
168
|
__decorate([
|
|
176
|
-
property()
|
|
177
|
-
__metadata("design:type", String)
|
|
169
|
+
property()
|
|
178
170
|
], TkTheme.prototype, "onError", void 0);
|
|
179
171
|
__decorate([
|
|
180
|
-
property()
|
|
181
|
-
__metadata("design:type", String)
|
|
172
|
+
property()
|
|
182
173
|
], TkTheme.prototype, "foreground", void 0);
|
|
183
174
|
__decorate([
|
|
184
|
-
property()
|
|
185
|
-
__metadata("design:type", String)
|
|
175
|
+
property()
|
|
186
176
|
], TkTheme.prototype, "background", void 0);
|
|
187
177
|
__decorate([
|
|
188
|
-
property({ type: Boolean, attribute: "force-body", reflect: true })
|
|
189
|
-
__metadata("design:type", Boolean)
|
|
178
|
+
property({ type: Boolean, attribute: "force-body", reflect: true })
|
|
190
179
|
], TkTheme.prototype, "forceBody", void 0);
|
|
191
180
|
__decorate([
|
|
192
|
-
property({ type: Boolean, attribute: true, reflect: true })
|
|
193
|
-
__metadata("design:type", Boolean)
|
|
181
|
+
property({ type: Boolean, attribute: true, reflect: true })
|
|
194
182
|
], TkTheme.prototype, "inverted", void 0);
|
|
195
183
|
TkTheme = __decorate([
|
|
196
184
|
customElement("tk-theme")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/umd/tinkiet.min.d.ts
CHANGED
|
@@ -198,7 +198,7 @@ declare class TkDialog extends LitElement {
|
|
|
198
198
|
private resolve;
|
|
199
199
|
render(): import("lit-html").TemplateResult<1>;
|
|
200
200
|
updated(props: any): void;
|
|
201
|
-
show(): Promise<string | boolean
|
|
201
|
+
show(): Promise<string | boolean>;
|
|
202
202
|
hide(value?: boolean | string | null): void;
|
|
203
203
|
}
|
|
204
204
|
declare global {
|
|
@@ -288,7 +288,7 @@ declare class TkLoading extends TkBox {
|
|
|
288
288
|
static get styles(): import("lit").CSSResult[];
|
|
289
289
|
circle: boolean;
|
|
290
290
|
indeterminate: boolean;
|
|
291
|
-
|
|
291
|
+
percent: number;
|
|
292
292
|
render(): import("lit-html").TemplateResult<1>;
|
|
293
293
|
}
|
|
294
294
|
declare global {
|
|
@@ -357,7 +357,7 @@ declare class TkNotie extends TkBox {
|
|
|
357
357
|
private $container;
|
|
358
358
|
private resolve;
|
|
359
359
|
render(): TemplateResult<1>;
|
|
360
|
-
show(): Promise<string | boolean
|
|
360
|
+
show(): Promise<string | boolean>;
|
|
361
361
|
hide(value: boolean | string | null): void;
|
|
362
362
|
constructor(text?: string);
|
|
363
363
|
static show(options: NotieOptions): Promise<boolean | string | null>;
|
|
@@ -387,19 +387,6 @@ declare global {
|
|
|
387
387
|
"tk-pages": TkPages;
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
|
-
declare class TkProgress extends LitElement {
|
|
391
|
-
static styles: import("lit").CSSResult;
|
|
392
|
-
circle: boolean;
|
|
393
|
-
indeterminate: boolean;
|
|
394
|
-
value: number;
|
|
395
|
-
buffer: number;
|
|
396
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
397
|
-
}
|
|
398
|
-
declare global {
|
|
399
|
-
interface HTMLElementTagNameMap {
|
|
400
|
-
"tk-progress": TkProgress;
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
390
|
declare class TkRadio extends LitElement {
|
|
404
391
|
static styles: import("lit").CSSResult;
|
|
405
392
|
private _id;
|
|
@@ -624,4 +611,5 @@ declare global {
|
|
|
624
611
|
"tk-theme": TkTheme;
|
|
625
612
|
}
|
|
626
613
|
}
|
|
627
|
-
export { TkAccordion, TkBadge, TkBox, TkButton, TkCheckbox, TkDialog, TkDrawer, TkForm, TkIcon, TkIcons, TkListItem, TkLoading, TkNavbar, TkNotie, TkPages,
|
|
614
|
+
export { TkAccordion, TkBadge, TkBox, TkButton, TkCheckbox, TkDialog, TkDrawer, TkForm, TkIcon, TkIcons, TkListItem, TkLoading, TkNavbar, TkNotie, TkPages, TkRadio, TkSelect, TkSlider, TkSwitch, TkTabGroup, TkTag, TkTextarea, TkTextfield, TkTheme };
|
|
615
|
+
//# sourceMappingURL=tinkiet.min.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tinkiet.min.d.ts","sourceRoot":"","sources":["../../index.ts","../../box/box.ts","../../box/index.ts","../../utils/unique.ts","../../box/focusable-box.ts","../../accordion/accordion.ts","../../accordion/index.ts","../../badge/badge.ts","../../badge/index.ts","../../button/button.ts","../../button/index.ts","../../checkbox/checkbox.ts","../../checkbox/index.ts","../../dialog/dialog.ts","../../dialog/index.ts","../../drawer/drawer.ts","../../drawer/index.ts","../../form/form.ts","../../form/index.ts","../../icon/icons.ts","../../icon/icon.ts","../../icon/index.ts","../../list-item/list-item.ts","../../list-item/index.ts","../../loading/loading.ts","../../loading/index.ts","../../navbar/navbar.ts","../../navbar/index.ts","../../textfield/textfield.ts","../../textfield/index.ts","../../notie/notie.ts","../../notie/index.ts","../../pages/pages.ts","../../pages/index.ts","../../radio/radio.ts","../../radio/index.ts","../../select/select.ts","../../select/index.ts","../../slider/slider.ts","../../slider/index.ts","../../switch/switch.ts","../../switch/index.ts","../../tab-group/tab-group.ts","../../tab-group/index.ts","../../tag/tag.ts","../../tag/index.ts","../../textarea/textarea.ts","../../textarea/index.ts","../../theme/theme.ts","../../theme/index.ts"],"names":[],"mappings":""}
|