@3t-transform/threeteeui 0.0.14 → 0.0.16
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/{index-bf39be87.js → index-864b7110.js} +4 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/tttx-button.cjs.entry.js +18 -18
- package/dist/cjs/tttx-checkbox.cjs.entry.js +18 -18
- package/dist/cjs/tttx-form.cjs.entry.js +364 -176
- package/dist/cjs/tttx-icon.cjs.entry.js +56 -54
- package/dist/cjs/tttx-list.cjs.entry.js +188 -188
- package/dist/cjs/tttx-loading-spinner.cjs.entry.js +16 -16
- package/dist/cjs/tttx-popover-content.cjs.entry.js +13 -13
- package/dist/cjs/tttx-standalone-input.cjs.entry.js +127 -127
- package/dist/cjs/tttx-table.cjs.entry.js +60 -0
- package/dist/cjs/tttx.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/atoms/tttx-button/tttx-button.js +93 -93
- package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +25 -25
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +116 -114
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +32 -32
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +66 -66
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +17 -17
- package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.js +96 -96
- package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.stories.js +23 -23
- package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.js +101 -101
- package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.stories.js +9 -9
- package/dist/collection/components/molecules/tttx-form/tttx-form.js +451 -249
- package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +109 -102
- package/dist/collection/components/molecules/tttx-list/tttx-list.js +311 -311
- package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +15 -15
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +569 -569
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +134 -134
- package/dist/collection/components/molecules/tttx-table/tttx-table.css +166 -0
- package/dist/collection/components/molecules/tttx-table/tttx-table.js +177 -0
- package/dist/collection/components/molecules/tttx-table/tttx-table.stories.js +81 -0
- package/dist/collection/components/palette.stories.js +7 -7
- package/dist/collection/docs/gettingstarted-developer.stories.js +5 -5
- package/dist/collection/icons.js +2838 -2838
- package/dist/collection/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/tttx-button.js +35 -35
- package/dist/components/tttx-checkbox.js +36 -36
- package/dist/components/tttx-form.js +381 -193
- package/dist/components/tttx-icon2.js +73 -71
- package/dist/components/tttx-list.js +214 -214
- package/dist/components/tttx-loading-spinner2.js +33 -33
- package/dist/components/tttx-popover-content.js +1 -37
- package/dist/components/tttx-popover-content2.js +39 -0
- package/dist/components/tttx-standalone-input.js +169 -168
- package/dist/components/tttx-table.d.ts +11 -0
- package/dist/components/tttx-table.js +91 -0
- package/dist/esm/{index-63c4d25e.js → index-232e347b.js} +4 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/tttx-button.entry.js +18 -18
- package/dist/esm/tttx-checkbox.entry.js +18 -18
- package/dist/esm/tttx-form.entry.js +364 -176
- package/dist/esm/tttx-icon.entry.js +56 -54
- package/dist/esm/tttx-list.entry.js +188 -188
- package/dist/esm/tttx-loading-spinner.entry.js +16 -16
- package/dist/esm/tttx-popover-content.entry.js +13 -13
- package/dist/esm/tttx-standalone-input.entry.js +127 -127
- package/dist/esm/tttx-table.entry.js +56 -0
- package/dist/esm/tttx.js +3 -3
- package/dist/tttx/{p-2d54f8aa.entry.js → p-01e1894e.entry.js} +1 -1
- package/dist/tttx/{p-709246f5.entry.js → p-10316ff1.entry.js} +1 -1
- package/dist/tttx/p-125f06b3.entry.js +1 -0
- package/dist/tttx/p-184c4fae.js +2 -0
- package/dist/tttx/{p-ad0c3fe4.entry.js → p-3973b7dd.entry.js} +1 -1
- package/dist/tttx/p-5ce1ba22.entry.js +1 -0
- package/dist/tttx/{p-4c57bcbd.entry.js → p-6828fe6f.entry.js} +1 -1
- package/dist/tttx/p-b1c22f5f.entry.js +1 -0
- package/dist/tttx/{p-1a4eb1f3.entry.js → p-c7f9be65.entry.js} +1 -1
- package/dist/tttx/{p-2b6720ac.entry.js → p-fe4c70b2.entry.js} +1 -1
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +9 -9
- package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +20 -20
- package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +14 -14
- package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +21 -21
- package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +6 -6
- package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +17 -17
- package/dist/types/components/atoms/tttx-popover-content/tttx-popover-content.d.ts +7 -7
- package/dist/types/components/atoms/tttx-popover-content/tttx-popover-content.stories.d.ts +18 -18
- package/dist/types/components/atoms/ttx-checkbox/tttx-checkbox.d.ts +9 -9
- package/dist/types/components/atoms/ttx-checkbox/tttx-checkbox.stories.d.ts +6 -6
- package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +134 -18
- package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +12 -6
- package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +51 -51
- package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +13 -13
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +38 -38
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +106 -106
- package/dist/types/components/molecules/tttx-table/tttx-table.d.ts +15 -0
- package/dist/types/components/molecules/tttx-table/tttx-table.stories.d.ts +21 -0
- package/dist/types/components/palette.stories.d.ts +6 -6
- package/dist/types/components.d.ts +29 -1
- package/dist/types/docs/gettingstarted-developer.stories.d.ts +5 -5
- package/dist/types/icons.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/package.json +7 -4
- package/dist/tttx/p-28e4c359.entry.js +0 -1
- package/dist/tttx/p-95a29e09.entry.js +0 -1
- package/dist/tttx/p-bec472d8.js +0 -2
|
@@ -1,40 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const tttxPopoverContentCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}:host{display:block;max-width:400px}h4{margin:0;font-size:15px;font-weight:700;color:black;margin-bottom:4px}p{margin:0;font-size:14px;font-weight:normal;color:black;margin-bottom:4px}.linky{color:#1479c6;text-decoration:none;cursor:pointer}";
|
|
4
|
-
|
|
5
|
-
const TttxPopoverContent$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
|
-
constructor() {
|
|
7
|
-
super();
|
|
8
|
-
this.__registerHost();
|
|
9
|
-
this.__attachShadow();
|
|
10
|
-
this.header = undefined;
|
|
11
|
-
this.body = undefined;
|
|
12
|
-
this.linkcontext = undefined;
|
|
13
|
-
this.linktext = undefined;
|
|
14
|
-
}
|
|
15
|
-
render() {
|
|
16
|
-
return (h(Host, null, this.header && h("h4", null, this.header), this.body && h("p", null, this.body), this.linkcontext && (h("span", { class: "linky", onClick: evt => console.log(this.linkcontext, evt) }, this.linktext || 'More Information'))));
|
|
17
|
-
}
|
|
18
|
-
static get style() { return tttxPopoverContentCss; }
|
|
19
|
-
}, [1, "tttx-popover-content", {
|
|
20
|
-
"header": [1],
|
|
21
|
-
"body": [1],
|
|
22
|
-
"linkcontext": [1],
|
|
23
|
-
"linktext": [1]
|
|
24
|
-
}]);
|
|
25
|
-
function defineCustomElement$1() {
|
|
26
|
-
if (typeof customElements === "undefined") {
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
const components = ["tttx-popover-content"];
|
|
30
|
-
components.forEach(tagName => { switch (tagName) {
|
|
31
|
-
case "tttx-popover-content":
|
|
32
|
-
if (!customElements.get(tagName)) {
|
|
33
|
-
customElements.define(tagName, TttxPopoverContent$1);
|
|
34
|
-
}
|
|
35
|
-
break;
|
|
36
|
-
} });
|
|
37
|
-
}
|
|
1
|
+
import { T as TttxPopoverContent$1, d as defineCustomElement$1 } from './tttx-popover-content2.js';
|
|
38
2
|
|
|
39
3
|
const TttxPopoverContent = TttxPopoverContent$1;
|
|
40
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const tttxPopoverContentCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}:host{display:block;max-width:400px}h4{margin:0;font-size:15px;font-weight:700;color:black;margin-bottom:4px}p{margin:0;font-size:14px;font-weight:normal;color:black;margin-bottom:4px}.linky{color:#1479c6;text-decoration:none;cursor:pointer}";
|
|
4
|
+
|
|
5
|
+
const TttxPopoverContent = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
this.__attachShadow();
|
|
10
|
+
this.header = undefined;
|
|
11
|
+
this.body = undefined;
|
|
12
|
+
this.linkcontext = undefined;
|
|
13
|
+
this.linktext = undefined;
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
return (h(Host, null, this.header && h("h4", null, this.header), this.body && h("p", null, this.body), this.linkcontext && (h("span", { class: "linky", onClick: evt => console.log(this.linkcontext, evt) }, this.linktext || 'More Information'))));
|
|
17
|
+
}
|
|
18
|
+
static get style() { return tttxPopoverContentCss; }
|
|
19
|
+
}, [1, "tttx-popover-content", {
|
|
20
|
+
"header": [1],
|
|
21
|
+
"body": [1],
|
|
22
|
+
"linkcontext": [1],
|
|
23
|
+
"linktext": [1]
|
|
24
|
+
}]);
|
|
25
|
+
function defineCustomElement() {
|
|
26
|
+
if (typeof customElements === "undefined") {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
const components = ["tttx-popover-content"];
|
|
30
|
+
components.forEach(tagName => { switch (tagName) {
|
|
31
|
+
case "tttx-popover-content":
|
|
32
|
+
if (!customElements.get(tagName)) {
|
|
33
|
+
customElements.define(tagName, TttxPopoverContent);
|
|
34
|
+
}
|
|
35
|
+
break;
|
|
36
|
+
} });
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { TttxPopoverContent as T, defineCustomElement as d };
|
|
@@ -1,175 +1,176 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { d as defineCustomElement$2 } from './tttx-icon2.js';
|
|
3
3
|
|
|
4
|
-
const tttxStandaloneInputCss = ".material-symbols-rounded
|
|
4
|
+
const tttxStandaloneInputCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}.icon-left,.icon-right{flex-basis:24px}.icon-left span,.icon-right span{font-size:24px;line-height:24px;text-align:center;display:block;width:24px;height:24px;margin-top:4px}.icon-left span{margin-left:4px}.icon-right span{margin-right:4px}.icon-right{margin-top:5px;margin-right:4px}.icon-left{margin-top:5px;margin-left:4px}.iconleft .input{padding-left:4px}.iconright .input{padding-right:4px}.focused{border-color:#1479c6}.errormsg{display:flex;justify-content:center;align-items:center;float:left;margin-bottom:16px;box-sizing:border-box;background-color:transparent;height:26px;font-size:14px;border-radius:none;z-index:2;color:#dc0000}.errormsg .validationicon{width:16px;height:16px;font-size:16px;margin-right:4px;vertical-align:middle;color:#dc0000}.danger{color:#dc0000}.optional{color:#757575;font-weight:normal}label.inputBlock{display:block;position:relative;line-height:21px}label{font-weight:500;font-size:16px}input:not([type=submit]){font-family:\"Roboto\", serif;box-sizing:border-box;width:100%;height:36px;padding:0 16px;font-size:16px;border:1px solid #d5d5d5;border-radius:4px;margin-top:4px}input[type=date]{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}input.invalid:invalid,input.standalone.invalid{border:1px solid #dc0000}input~.errorBubble{min-height:27px;position:relative;font-size:14px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center}input~.errorBubble:not(.visible){visibility:hidden}input~.errorBubble span{color:#dc0000;font-size:16px;margin-right:4px;height:16px}input.invalid:invalid~.errorBubble{position:relative;font-size:14px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;visibility:visible}input:focus{border-color:#1479c6}:host{display:block}";
|
|
5
5
|
|
|
6
|
-
const TttxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
this.__registerHost();
|
|
10
|
-
this.
|
|
11
|
-
this.
|
|
12
|
-
this.
|
|
13
|
-
this.
|
|
14
|
-
this.
|
|
15
|
-
this.
|
|
16
|
-
this.
|
|
17
|
-
this.
|
|
18
|
-
this.
|
|
19
|
-
this.
|
|
20
|
-
this.
|
|
21
|
-
this.
|
|
22
|
-
this.
|
|
23
|
-
this.
|
|
24
|
-
this.
|
|
25
|
-
this.
|
|
26
|
-
this.
|
|
27
|
-
this.
|
|
28
|
-
this.
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
31
|
-
this.
|
|
32
|
-
this.
|
|
33
|
-
this.
|
|
34
|
-
this.
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
this.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
this.type === '
|
|
54
|
-
this.type === '
|
|
55
|
-
this.type === '
|
|
56
|
-
this.type === '
|
|
57
|
-
this.type === '
|
|
58
|
-
this.type === '
|
|
59
|
-
this.type === '
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
this.type === '
|
|
63
|
-
this.type === '
|
|
64
|
-
this.type === '
|
|
65
|
-
this.type === '
|
|
66
|
-
this.type === '
|
|
67
|
-
this.type === '
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
this.type === '
|
|
71
|
-
this.type === '
|
|
72
|
-
this.type === '
|
|
73
|
-
this.type === '
|
|
74
|
-
this.type === '
|
|
75
|
-
this.type === '
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
this.type === '
|
|
79
|
-
this.type === '
|
|
80
|
-
this.type === '
|
|
81
|
-
this.type === '
|
|
82
|
-
this.type === '
|
|
83
|
-
this.type === '
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
this.type === '
|
|
87
|
-
this.type === '
|
|
88
|
-
this.type === '
|
|
89
|
-
this.type === '
|
|
90
|
-
this.type === '
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
this.type === '
|
|
94
|
-
this.type === '
|
|
95
|
-
this.type === '
|
|
96
|
-
this.type === '
|
|
97
|
-
this.type === '
|
|
98
|
-
this.type === '
|
|
99
|
-
this.type === '
|
|
100
|
-
this.type === '
|
|
101
|
-
this.type === '
|
|
102
|
-
this.type === '
|
|
103
|
-
this.type === '
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
this.type === '
|
|
107
|
-
this.type === '
|
|
108
|
-
this.type === '
|
|
109
|
-
this.type === '
|
|
110
|
-
this.type === '
|
|
111
|
-
this.type === '
|
|
112
|
-
this.type === '
|
|
113
|
-
this.type === '
|
|
114
|
-
this.type === '
|
|
115
|
-
this.type === '
|
|
116
|
-
this.type === '
|
|
117
|
-
this.type === '
|
|
118
|
-
this.type === '
|
|
119
|
-
this.type === '
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
this.type === '
|
|
123
|
-
this.type === '
|
|
124
|
-
this.type === '
|
|
125
|
-
this.type === '
|
|
126
|
-
this.type === '
|
|
127
|
-
this.type === '
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
components
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
6
|
+
const TttxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.__attachShadow();
|
|
11
|
+
this.valueChanged = createEvent(this, "valueChanged", 7);
|
|
12
|
+
this.focusChanged = createEvent(this, "focusChanged", 7);
|
|
13
|
+
this.blurChanged = createEvent(this, "blurChanged", 7);
|
|
14
|
+
this.label = undefined;
|
|
15
|
+
this.showerrormsg = undefined;
|
|
16
|
+
this.errormsg = undefined;
|
|
17
|
+
this.iconleft = undefined;
|
|
18
|
+
this.iconright = undefined;
|
|
19
|
+
this.autocapitalize = undefined;
|
|
20
|
+
this.autocomplete = undefined;
|
|
21
|
+
this.autofocus = undefined;
|
|
22
|
+
this.checked = undefined;
|
|
23
|
+
this.disabled = undefined;
|
|
24
|
+
this.max = undefined;
|
|
25
|
+
this.maxlength = undefined;
|
|
26
|
+
this.min = undefined;
|
|
27
|
+
this.minlength = undefined;
|
|
28
|
+
this.name = undefined;
|
|
29
|
+
this.pattern = undefined;
|
|
30
|
+
this.placeholder = undefined;
|
|
31
|
+
this.readonly = undefined;
|
|
32
|
+
this.required = undefined;
|
|
33
|
+
this.step = undefined;
|
|
34
|
+
this.type = 'text';
|
|
35
|
+
this.value = undefined;
|
|
36
|
+
}
|
|
37
|
+
handleChange(event) {
|
|
38
|
+
const target = event.target;
|
|
39
|
+
this.value = target.value;
|
|
40
|
+
this.valueChanged.emit(target.value);
|
|
41
|
+
}
|
|
42
|
+
handleFocus(event) {
|
|
43
|
+
const target = event.target;
|
|
44
|
+
this.focusChanged.emit(target.value);
|
|
45
|
+
}
|
|
46
|
+
handleBlur(event) {
|
|
47
|
+
const target = event.target;
|
|
48
|
+
this.blurChanged.emit(target.value);
|
|
49
|
+
}
|
|
50
|
+
render() {
|
|
51
|
+
const classNames = ['standalone', this.showerrormsg ? 'invalid' : ''].join(' ');
|
|
52
|
+
return (h(Host, null, h("label", { class: 'inputBlock' }, this.label, !this.required ? h("span", { class: "optional" }, "\u00A0(optional)") : '', this.iconleft && (h("div", { class: "icon-left" }, h("tttx-icon", { icon: this.iconleft, colour: "grey" }))), h("input", { class: classNames, autocapitalize: this.type === 'url' || this.type === 'email' || this.type === 'password' ? this.autocapitalize : null, autofocus: this.autofocus, autocomplete: this.type === 'text' ||
|
|
53
|
+
this.type === 'search' ||
|
|
54
|
+
this.type === 'url' ||
|
|
55
|
+
this.type === 'tel' ||
|
|
56
|
+
this.type === 'email' ||
|
|
57
|
+
this.type === 'password' ||
|
|
58
|
+
this.type === 'datepickers' ||
|
|
59
|
+
this.type === 'range' ||
|
|
60
|
+
this.type === 'color'
|
|
61
|
+
? this.autocomplete
|
|
62
|
+
: null, checked: this.type === 'checkbox' || this.type === 'radio' ? this.checked : null, disabled: !this.required ? this.disabled : null, max: this.type === 'date' ||
|
|
63
|
+
this.type === 'month' ||
|
|
64
|
+
this.type === 'week' ||
|
|
65
|
+
this.type === 'time' ||
|
|
66
|
+
this.type === 'datetime-local' ||
|
|
67
|
+
this.type === 'number' ||
|
|
68
|
+
this.type === 'range'
|
|
69
|
+
? this.max
|
|
70
|
+
: null, maxlength: this.maxlength, min: this.type === 'date' ||
|
|
71
|
+
this.type === 'month' ||
|
|
72
|
+
this.type === 'week' ||
|
|
73
|
+
this.type === 'time' ||
|
|
74
|
+
this.type === 'datetime-local' ||
|
|
75
|
+
this.type === 'number' ||
|
|
76
|
+
this.type === 'range'
|
|
77
|
+
? this.min
|
|
78
|
+
: null, minlength: this.minlength, name: this.name, pattern: this.type === 'text' ||
|
|
79
|
+
this.type === 'date' ||
|
|
80
|
+
this.type === 'search' ||
|
|
81
|
+
this.type === 'url' ||
|
|
82
|
+
this.type === 'tel' ||
|
|
83
|
+
this.type === 'email' ||
|
|
84
|
+
this.type === 'password'
|
|
85
|
+
? this.pattern
|
|
86
|
+
: null, placeholder: this.type === 'text' ||
|
|
87
|
+
this.type === 'tel' ||
|
|
88
|
+
this.type === 'email' ||
|
|
89
|
+
this.type === 'url' ||
|
|
90
|
+
this.type === 'password' ||
|
|
91
|
+
this.type === 'search'
|
|
92
|
+
? this.placeholder
|
|
93
|
+
: null, readonly: this.type === 'text' ||
|
|
94
|
+
this.type === 'search' ||
|
|
95
|
+
this.type === 'url' ||
|
|
96
|
+
this.type === 'tel' ||
|
|
97
|
+
this.type === 'email' ||
|
|
98
|
+
this.type === 'password' ||
|
|
99
|
+
this.type === 'date' ||
|
|
100
|
+
this.type === 'month' ||
|
|
101
|
+
this.type === 'week' ||
|
|
102
|
+
this.type === 'time' ||
|
|
103
|
+
this.type === 'datetime-local' ||
|
|
104
|
+
this.type === 'number'
|
|
105
|
+
? this.readonly
|
|
106
|
+
: null, required: this.type === 'text' ||
|
|
107
|
+
this.type === 'search' ||
|
|
108
|
+
this.type === 'url' ||
|
|
109
|
+
this.type === 'tel' ||
|
|
110
|
+
this.type === 'email' ||
|
|
111
|
+
this.type === 'password' ||
|
|
112
|
+
this.type === 'date' ||
|
|
113
|
+
this.type === 'month' ||
|
|
114
|
+
this.type === 'week' ||
|
|
115
|
+
this.type === 'time' ||
|
|
116
|
+
this.type === 'datetime-local' ||
|
|
117
|
+
this.type === 'number' ||
|
|
118
|
+
this.type === 'checkbox' ||
|
|
119
|
+
this.type === 'radio' ||
|
|
120
|
+
this.type === 'file'
|
|
121
|
+
? this.required
|
|
122
|
+
: null, step: this.type === 'date' ||
|
|
123
|
+
this.type === 'month' ||
|
|
124
|
+
this.type === 'week' ||
|
|
125
|
+
this.type === 'time' ||
|
|
126
|
+
this.type === 'datetime-local' ||
|
|
127
|
+
this.type === 'number' ||
|
|
128
|
+
this.type === 'range'
|
|
129
|
+
? this.step
|
|
130
|
+
: null, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.bind(this) }), this.iconright && (h("div", { class: "icon-right" }, h("tttx-icon", { icon: this.iconright, colour: "grey" }))), h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, h("span", { class: "material-symbols-rounded validationicon" }, "warning"), " ", this.errormsg))));
|
|
131
|
+
}
|
|
132
|
+
static get style() { return tttxStandaloneInputCss; }
|
|
133
|
+
}, [1, "tttx-standalone-input", {
|
|
134
|
+
"label": [1],
|
|
135
|
+
"showerrormsg": [4],
|
|
136
|
+
"errormsg": [1],
|
|
137
|
+
"iconleft": [1],
|
|
138
|
+
"iconright": [1],
|
|
139
|
+
"autocapitalize": [1],
|
|
140
|
+
"autocomplete": [1],
|
|
141
|
+
"autofocus": [4],
|
|
142
|
+
"checked": [4],
|
|
143
|
+
"disabled": [4],
|
|
144
|
+
"max": [8],
|
|
145
|
+
"maxlength": [8],
|
|
146
|
+
"min": [8],
|
|
147
|
+
"minlength": [8],
|
|
148
|
+
"name": [1],
|
|
149
|
+
"pattern": [1],
|
|
150
|
+
"placeholder": [1],
|
|
151
|
+
"readonly": [8],
|
|
152
|
+
"required": [4],
|
|
153
|
+
"step": [8],
|
|
154
|
+
"type": [1],
|
|
155
|
+
"value": [1032]
|
|
156
|
+
}]);
|
|
157
|
+
function defineCustomElement$1() {
|
|
158
|
+
if (typeof customElements === "undefined") {
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
const components = ["tttx-standalone-input", "tttx-icon"];
|
|
162
|
+
components.forEach(tagName => { switch (tagName) {
|
|
163
|
+
case "tttx-standalone-input":
|
|
164
|
+
if (!customElements.get(tagName)) {
|
|
165
|
+
customElements.define(tagName, TttxInput);
|
|
166
|
+
}
|
|
167
|
+
break;
|
|
168
|
+
case "tttx-icon":
|
|
169
|
+
if (!customElements.get(tagName)) {
|
|
170
|
+
defineCustomElement$2();
|
|
171
|
+
}
|
|
172
|
+
break;
|
|
173
|
+
} });
|
|
173
174
|
}
|
|
174
175
|
|
|
175
176
|
const TttxStandaloneInput = TttxInput;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TttxTable extends Components.TttxTable, HTMLElement {}
|
|
4
|
+
export const TttxTable: {
|
|
5
|
+
prototype: TttxTable;
|
|
6
|
+
new (): TttxTable;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$3 } from './tttx-icon2.js';
|
|
3
|
+
import { d as defineCustomElement$2 } from './tttx-popover-content2.js';
|
|
4
|
+
|
|
5
|
+
const tttxTableCss = "// SPACING $spacing-unit: 4px; // REGULAR $horizontal-spacing: $spacing-unit * 4; $vertical-spacing: $spacing-unit * 2; $base-padding: $vertical-spacing $horizontal-spacing; $base-height: $spacing-unit * 9; $component-spacing: $spacing-unit * 4; // SMALL $horizontal-spacing-sm: $spacing-unit * 2; $vertical-spacing-sm: $spacing-unit * 1; $base-padding-sm: $vertical-spacing-sm $horizontal-spacing-sm; $base-height-sm: $spacing-unit * 7; // COLOURS $grey-0: #212121; $grey-1: #363636; $grey-2: #4c4c4c; $grey-3: #636363; $grey-4: #757575; $grey-5: #9e9e9e; $grey-6: #aeaeae; $grey-7: #c8c8c8; $grey-8: #e3e3e3; $grey-9: #f0f0f0; $white: white; $black: $grey-0; $transparent: transparent; $blue-0: #00187c; $blue-1: #032e8c; $blue-2: #0849a3; $blue-3: #0951a8; $blue-4: #1169ba; $blue-5: #1479c6; $blue-6: #5194d2; $blue-7: #7aacdd; $blue-8: #b9d5ed; $blue-9: #e7f1f9; $red-0: #7c0000; $red-1: #8c0000; $red-2: #a30000; $red-3: #a80000; $red-4: #ba0000; $red-5: #dc0000; $red-6: #d25151; $red-7: #dd7a7a; $red-8: #edc1c1; $red-9: #f9e7e7; $black-1: #e6e6e6; $brand: $blue-0; $accent: $blue-5; $accent-selected: $blue-9; $error: $red-5; $severity-critical: #dc0000; $severity-warning: #f59500; $severity-success: #a2bb31; $severity-info: $accent; $ui-primary: $black; $ui-secondary: $grey-4; $ui-disabled: $grey-2; $ui-placeholder: $grey-5; $ui-background: $grey-9; $ui-sheet: $white; $ui-border: #d5d5d5; // BORDERS $ui-border-radius: 4px; $ui-border-width: 1px; // TYPOGRAPHY $font-size-default: 16px; $font-size-small: 14px; .material-symbols-rounded{font-variation-settings:'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24}.skeleton{animation:skeleton-loading 1s linear infinite alternate;border-radius:4px;width:100%}@keyframes skeleton-loading{0%{background-color:hsl(200, 20%, 80%)}100%{background-color:hsl(200, 20%, 95%)}}:host{display:block}table{box-sizing:border-box;width:100%;border-collapse:collapse;border-spacing:0;border:1px solid #ddd;border-bottom:none}thead tr{height:52px;color:#757575}tbody tr{height:48px;color:#212121}tr{font-family:'Roboto', sans-serif;font-weight:400;font-size:16px;display:flex;align-items:center;border-bottom:1px solid #ddd}.selected{background-color:#F0F0F0}.checked{background-color:#e7f1f9}td,th{min-width:300px;margin-left:16px;display:flex;align-items:left}.skeleton{height:24px;display:block}.align-right{margin-left:auto}";
|
|
6
|
+
|
|
7
|
+
const TttxTable$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
this.__attachShadow();
|
|
12
|
+
this.rowSelected = createEvent(this, "rowSelected", 7);
|
|
13
|
+
this.headerClicked = createEvent(this, "headerClicked", 7);
|
|
14
|
+
this.headers = [];
|
|
15
|
+
this.data = {};
|
|
16
|
+
this.loading = false;
|
|
17
|
+
this.selected = -1;
|
|
18
|
+
}
|
|
19
|
+
handleKeyDown(ev) {
|
|
20
|
+
if (ev.key === 'ArrowDown' || ev.key === 'ArrowUp') {
|
|
21
|
+
this.updateSelectedIndex(ev.key);
|
|
22
|
+
this.emitRowSelected();
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
updateSelectedIndex(key) {
|
|
26
|
+
if (this.selected === -1) {
|
|
27
|
+
this.selected = 0;
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
const isArrowDown = key === 'ArrowDown';
|
|
31
|
+
const isArrowUp = key === 'ArrowUp';
|
|
32
|
+
if (isArrowDown && this.selected < this.data.length - 1) {
|
|
33
|
+
this.selected++;
|
|
34
|
+
}
|
|
35
|
+
else if (isArrowUp && this.selected > 0) {
|
|
36
|
+
this.selected--;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
emitRowSelected() {
|
|
41
|
+
this.rowSelected.emit(this.data[this.selected]);
|
|
42
|
+
}
|
|
43
|
+
rowSelectedHandler(row) {
|
|
44
|
+
this.rowSelected.emit(row);
|
|
45
|
+
this.selected = this.data.findIndex((item) => item === row);
|
|
46
|
+
}
|
|
47
|
+
headerClickedHandler(key) {
|
|
48
|
+
this.headerClicked.emit(key);
|
|
49
|
+
}
|
|
50
|
+
render() {
|
|
51
|
+
return (h(Host, null, h("table", null, h("thead", null, h("tr", null, this.loading ?
|
|
52
|
+
[1, 2, 3].map(() => (h("th", null, h("div", { class: "skeleton" })))) :
|
|
53
|
+
this.headers && this.headers.map((header) => (h("th", { scope: "col", onClick: () => this.headerClickedHandler(header.key) }, header.label))))), h("tbody", null, this.loading ?
|
|
54
|
+
[1, 2, 3].map(() => (h("tr", null, h("td", null, h("div", { class: "skeleton" })), h("td", null, h("div", { class: "skeleton" })), h("td", null, h("div", { class: "skeleton" }))))) :
|
|
55
|
+
Object.keys(this.data).map((key, index) => (h("tr", { class: index === this.selected ? 'selected' : '', onClick: () => this.rowSelectedHandler(this.data[key]) }, this.headers.map((header) => (h("td", null, this.data[key][header.key], " ", header.actions && h("tttx-icon", { class: "align-right", icon: "more_vert" }, h("div", { slot: "popover" }, h("tttx-popover-content", { header: "The humble egg", body: "Most arthropods such as insects, vertebrates (excluding live-bearing mammals), and mollusks lay eggs, although some, such as scorpions, do not.", linkcontext: "Wikipedia_egg", linktext: "Learn more about eggs" })))))))))))));
|
|
56
|
+
}
|
|
57
|
+
static get style() { return tttxTableCss; }
|
|
58
|
+
}, [1, "tttx-table", {
|
|
59
|
+
"headers": [8],
|
|
60
|
+
"data": [8],
|
|
61
|
+
"loading": [4],
|
|
62
|
+
"selected": [2]
|
|
63
|
+
}, [[4, "keydown", "handleKeyDown"]]]);
|
|
64
|
+
function defineCustomElement$1() {
|
|
65
|
+
if (typeof customElements === "undefined") {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
const components = ["tttx-table", "tttx-icon", "tttx-popover-content"];
|
|
69
|
+
components.forEach(tagName => { switch (tagName) {
|
|
70
|
+
case "tttx-table":
|
|
71
|
+
if (!customElements.get(tagName)) {
|
|
72
|
+
customElements.define(tagName, TttxTable$1);
|
|
73
|
+
}
|
|
74
|
+
break;
|
|
75
|
+
case "tttx-icon":
|
|
76
|
+
if (!customElements.get(tagName)) {
|
|
77
|
+
defineCustomElement$3();
|
|
78
|
+
}
|
|
79
|
+
break;
|
|
80
|
+
case "tttx-popover-content":
|
|
81
|
+
if (!customElements.get(tagName)) {
|
|
82
|
+
defineCustomElement$2();
|
|
83
|
+
}
|
|
84
|
+
break;
|
|
85
|
+
} });
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const TttxTable = TttxTable$1;
|
|
89
|
+
const defineCustomElement = defineCustomElement$1;
|
|
90
|
+
|
|
91
|
+
export { TttxTable, defineCustomElement };
|
|
@@ -171,6 +171,10 @@ const parsePropertyValue = (propValue, propType) => {
|
|
|
171
171
|
// but we'll cheat here and say that the string "false" is the boolean false
|
|
172
172
|
return propValue === 'false' ? false : propValue === '' || !!propValue;
|
|
173
173
|
}
|
|
174
|
+
if (propType & 2 /* MEMBER_FLAGS.Number */) {
|
|
175
|
+
// force it to be a number
|
|
176
|
+
return parseFloat(propValue);
|
|
177
|
+
}
|
|
174
178
|
if (propType & 1 /* MEMBER_FLAGS.String */) {
|
|
175
179
|
// could have been passed as a number or boolean
|
|
176
180
|
// but we still want it as a string
|
|
@@ -281,9 +285,6 @@ const attachStyles = (hostRef) => {
|
|
|
281
285
|
// DOM WRITE!!
|
|
282
286
|
elm['s-sc'] = scopeId;
|
|
283
287
|
elm.classList.add(scopeId + '-h');
|
|
284
|
-
if (flags & 2 /* CMP_FLAGS.scopedCssEncapsulation */) {
|
|
285
|
-
elm.classList.add(scopeId + '-s');
|
|
286
|
-
}
|
|
287
288
|
}
|
|
288
289
|
endAttachStyles();
|
|
289
290
|
};
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-232e347b.js';
|
|
2
|
+
export { s as setNonce } from './index-232e347b.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
@@ -11,7 +11,7 @@ const patchEsm = () => {
|
|
|
11
11
|
const defineCustomElements = (win, options) => {
|
|
12
12
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
13
13
|
return patchEsm().then(() => {
|
|
14
|
-
return bootstrapLazy([["tttx-list",[[1,"tttx-list",{"name":[1],"selectable":[4],"items":[32],"selectedIds":[32],"loading":[32],"lastPage":[32]},[[4,"listPageLoad","listLoadHandler"],[4,"listClearDataCache","listClearDataCacheHandler"],[4,"listActionSelectedEvent","listActionSelectedEventHandler"]]]]],["tttx-standalone-input",[[
|
|
14
|
+
return bootstrapLazy([["tttx-table",[[1,"tttx-table",{"headers":[8],"data":[8],"loading":[4],"selected":[2]},[[4,"keydown","handleKeyDown"]]]]],["tttx-list",[[1,"tttx-list",{"name":[1],"selectable":[4],"items":[32],"selectedIds":[32],"loading":[32],"lastPage":[32]},[[4,"listPageLoad","listLoadHandler"],[4,"listClearDataCache","listClearDataCacheHandler"],[4,"listActionSelectedEvent","listActionSelectedEventHandler"]]]]],["tttx-standalone-input",[[1,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"autocapitalize":[1],"autocomplete":[1],"autofocus":[4],"checked":[4],"disabled":[4],"max":[8],"maxlength":[8],"min":[8],"minlength":[8],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[8],"required":[4],"step":[8],"type":[1],"value":[1032]}]]],["tttx-button",[[1,"tttx-button",{"fontColor":[1,"font-color"],"buttonStyle":[1,"button-style"]},[[0,"clickEvent","onClicked"]]]]],["tttx-checkbox",[[1,"tttx-checkbox",{"value":[4],"label":[1],"required":[4]}]]],["tttx-form",[[1,"tttx-form",{"formschema":[8],"submitValue":[8,"submit-value"]}]]],["tttx-loading-spinner",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-popover-content",[[1,"tttx-popover-content",{"header":[1],"body":[1],"linkcontext":[1],"linktext":[1]}]]],["tttx-icon",[[1,"tttx-icon",{"icon":[1],"colour":[1]},[[4,"click","handleDocumentClick"]]]]]], options);
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
17
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|