@3t-transform/threeteeui 0.1.3 → 0.1.5
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-451f61dd.js → index-906c2757.js} +102 -3
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/{tttx-button.cjs.entry.js → tttx-button_2.cjs.entry.js} +50 -24
- package/dist/cjs/tttx-form.cjs.entry.js +364 -364
- package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +57 -57
- package/dist/cjs/tttx-list.cjs.entry.js +43 -43
- package/dist/cjs/tttx-loading-spinner.cjs.entry.js +16 -16
- package/dist/cjs/tttx-standalone-input.cjs.entry.js +58 -61
- package/dist/cjs/tttx.cjs.js +7 -3
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/atoms/tttx-button/tttx-button.js +116 -110
- package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +14 -14
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.css +0 -4
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +62 -62
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +22 -22
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +107 -107
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +38 -38
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +67 -67
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +17 -17
- package/dist/collection/components/molecules/tttx-form/lib/setErrorState.js +35 -35
- package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +58 -58
- package/dist/collection/components/molecules/tttx-form/tttx-form.css +3 -26
- package/dist/collection/components/molecules/tttx-form/tttx-form.js +364 -364
- package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +127 -127
- package/dist/collection/components/molecules/tttx-list/tttx-list.js +105 -105
- package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +43 -43
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.css +3 -26
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +572 -627
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +135 -148
- 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/collection/shared/domsanitiser.options.js +14 -14
- package/dist/collection/transform-tag-name.js +5 -0
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.js +1 -1
- package/dist/components/tttx-button.js +59 -48
- package/dist/components/tttx-form.js +381 -381
- package/dist/components/tttx-icon2.js +29 -29
- package/dist/components/tttx-keyvalue-block.js +74 -74
- package/dist/components/tttx-list.js +65 -65
- package/dist/components/tttx-loading-spinner.js +33 -33
- package/dist/components/tttx-standalone-input.js +102 -108
- package/dist/esm/{index-0350f122.js → index-4010ad69.js} +101 -4
- package/dist/esm/loader.js +4 -3
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- 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 → tttx-button_2.entry.js} +50 -25
- package/dist/esm/tttx-form.entry.js +364 -364
- package/dist/esm/tttx-keyvalue-block.entry.js +57 -57
- package/dist/esm/tttx-list.entry.js +43 -43
- package/dist/esm/tttx-loading-spinner.entry.js +16 -16
- package/dist/esm/tttx-standalone-input.entry.js +58 -61
- package/dist/esm/tttx.js +4 -3
- package/dist/tttx/p-083eeedc.entry.js +1 -0
- package/dist/tttx/{p-1b015a9d.entry.js → p-3281444a.entry.js} +1 -1
- package/dist/tttx/p-5687f4ad.js +2 -0
- package/dist/tttx/p-5c9a1626.entry.js +3 -0
- package/dist/tttx/p-931e42c9.entry.js +1 -0
- package/dist/tttx/p-b5c1dd86.entry.js +1 -0
- package/dist/tttx/{p-a0179cb1.entry.js → p-dab7ee1b.entry.js} +1 -1
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +13 -10
- package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +10 -10
- package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +5 -5
- package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +20 -20
- package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.d.ts +7 -7
- package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.d.ts +9 -9
- 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/molecules/tttx-form/lib/setErrorState.d.ts +13 -13
- package/dist/types/components/molecules/tttx-form/lib/validityCheck.d.ts +17 -17
- package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +114 -114
- package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +13 -13
- package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +11 -11
- package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +14 -14
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +53 -56
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +106 -122
- package/dist/types/components/palette.stories.d.ts +6 -6
- package/dist/types/components.d.ts +0 -6
- 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/dist/types/shared/domsanitiser.options.d.ts +10 -10
- package/dist/types/stencil-public-runtime.d.ts +59 -3
- package/dist/types/transform-tag-name.d.ts +1 -0
- package/loader/index.d.ts +9 -0
- package/package.json +1 -1
- package/dist/cjs/tttx-icon.cjs.entry.js +0 -21
- package/dist/esm/tttx-icon.entry.js +0 -17
- package/dist/tttx/p-4f3958fa.entry.js +0 -1
- package/dist/tttx/p-62869344.js +0 -2
- package/dist/tttx/p-92465671.entry.js +0 -1
- package/dist/tttx/p-bfdf5c4e.entry.js +0 -1
- package/dist/tttx/p-c773116b.entry.js +0 -1
- package/dist/tttx/p-cd1565e0.entry.js +0 -3
|
@@ -2,66 +2,66 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-906c2757.js');
|
|
6
6
|
|
|
7
7
|
const tttxKeyvalueBlockCss = ":host{display:block}dl{margin:0;padding:0;font-family:\"Roboto\", sans-serif;cursor:default}dt{font-weight:400;line-height:21px;font-size:16px}dt,dt.subTitle{color:#757575}dt.mainTitle{color:#212121}dd{margin:0;font-weight:400;font-size:16px;color:#212121;line-height:21px;margin-bottom:18px}dl.horizontal{display:flex;flex-direction:row;width:100%}dl.horizontal div{flex-grow:1}@media (max-width: 769px){dl.horizontal{flex-wrap:wrap}dl.horizontal div{width:50%}}@media (max-width: 600px){dl.horizontal div{width:100%}}";
|
|
8
8
|
|
|
9
|
-
const TttxKeyvalueBlock = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.keyvalues = undefined;
|
|
13
|
-
this.horizontal = undefined;
|
|
14
|
-
}
|
|
15
|
-
renderSingleElements(values) {
|
|
16
|
-
const keys = Object.keys(values);
|
|
17
|
-
const elements = [];
|
|
18
|
-
for (let i = 0; i < keys.length; i++) {
|
|
19
|
-
if (this.horizontal) {
|
|
20
|
-
elements.push(index.h("div", null, index.h("dt", null, keys[i]), index.h("dd", null, values[keys[i]])));
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
elements.push(index.h("dt", null, keys[i]));
|
|
24
|
-
elements.push(index.h("dd", null, values[keys[i]]));
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return elements;
|
|
28
|
-
}
|
|
29
|
-
renderArrayElements(values) {
|
|
30
|
-
const elements = [];
|
|
31
|
-
for (let i = 0; i < values.length; i++) {
|
|
32
|
-
const value = values[i];
|
|
33
|
-
if (this.horizontal) {
|
|
34
|
-
elements.push(index.h("div", null, index.h("dt", { class: 'mainTitle' }, value.title), index.h("dt", { class: 'subTitle' }, value.subTitle), index.h("dd", null, value.data)));
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
elements.push(index.h("dt", { class: 'mainTitle' }, value.title));
|
|
38
|
-
elements.push(index.h("dt", { class: 'subTitle' }, value.subTitle));
|
|
39
|
-
elements.push(index.h("dd", null, value.data));
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return elements;
|
|
43
|
-
}
|
|
44
|
-
render() {
|
|
45
|
-
if (!this.keyvalues) {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
let values;
|
|
49
|
-
if (typeof this.keyvalues === 'string') {
|
|
50
|
-
values = JSON.parse(this.keyvalues);
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
values = this.keyvalues;
|
|
54
|
-
}
|
|
55
|
-
let elements;
|
|
56
|
-
if (Array.isArray(values)) {
|
|
57
|
-
elements = this.renderArrayElements(values);
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
elements = this.renderSingleElements(values);
|
|
61
|
-
}
|
|
62
|
-
return (index.h(index.Host, null, index.h("dl", { class: this.horizontal ? 'horizontal' : null }, elements)));
|
|
63
|
-
}
|
|
64
|
-
};
|
|
9
|
+
const TttxKeyvalueBlock = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.keyvalues = undefined;
|
|
13
|
+
this.horizontal = undefined;
|
|
14
|
+
}
|
|
15
|
+
renderSingleElements(values) {
|
|
16
|
+
const keys = Object.keys(values);
|
|
17
|
+
const elements = [];
|
|
18
|
+
for (let i = 0; i < keys.length; i++) {
|
|
19
|
+
if (this.horizontal) {
|
|
20
|
+
elements.push(index.h("div", null, index.h("dt", null, keys[i]), index.h("dd", null, values[keys[i]])));
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
elements.push(index.h("dt", null, keys[i]));
|
|
24
|
+
elements.push(index.h("dd", null, values[keys[i]]));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return elements;
|
|
28
|
+
}
|
|
29
|
+
renderArrayElements(values) {
|
|
30
|
+
const elements = [];
|
|
31
|
+
for (let i = 0; i < values.length; i++) {
|
|
32
|
+
const value = values[i];
|
|
33
|
+
if (this.horizontal) {
|
|
34
|
+
elements.push(index.h("div", null, index.h("dt", { class: 'mainTitle' }, value.title), index.h("dt", { class: 'subTitle' }, value.subTitle), index.h("dd", null, value.data)));
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
elements.push(index.h("dt", { class: 'mainTitle' }, value.title));
|
|
38
|
+
elements.push(index.h("dt", { class: 'subTitle' }, value.subTitle));
|
|
39
|
+
elements.push(index.h("dd", null, value.data));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return elements;
|
|
43
|
+
}
|
|
44
|
+
render() {
|
|
45
|
+
if (!this.keyvalues) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
let values;
|
|
49
|
+
if (typeof this.keyvalues === 'string') {
|
|
50
|
+
values = JSON.parse(this.keyvalues);
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
values = this.keyvalues;
|
|
54
|
+
}
|
|
55
|
+
let elements;
|
|
56
|
+
if (Array.isArray(values)) {
|
|
57
|
+
elements = this.renderArrayElements(values);
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
elements = this.renderSingleElements(values);
|
|
61
|
+
}
|
|
62
|
+
return (index.h(index.Host, null, index.h("dl", { class: this.horizontal ? 'horizontal' : null }, elements)));
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
65
|
TttxKeyvalueBlock.style = tttxKeyvalueBlockCss;
|
|
66
66
|
|
|
67
67
|
exports.tttx_keyvalue_block = TttxKeyvalueBlock;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-906c2757.js');
|
|
6
6
|
|
|
7
7
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
8
8
|
|
|
@@ -1653,52 +1653,52 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
1653
1653
|
//# sourceMappingURL=purify.js.map
|
|
1654
1654
|
});
|
|
1655
1655
|
|
|
1656
|
-
function tagRegXp(tagName) {
|
|
1657
|
-
return RegExp(/^tttx-/).exec(tagName);
|
|
1658
|
-
}
|
|
1659
|
-
function attributeNameCheck() {
|
|
1660
|
-
return true;
|
|
1661
|
-
}
|
|
1662
|
-
const domSanitiserOptions = {
|
|
1663
|
-
CUSTOM_ELEMENT_HANDLING: {
|
|
1664
|
-
tagNameCheck: tagRegXp,
|
|
1665
|
-
attributeNameCheck: attributeNameCheck,
|
|
1666
|
-
allowCustomizedBuiltInElements: false, // customized built-ins are not allowed
|
|
1667
|
-
}
|
|
1656
|
+
function tagRegXp(tagName) {
|
|
1657
|
+
return RegExp(/^tttx-/).exec(tagName);
|
|
1658
|
+
}
|
|
1659
|
+
function attributeNameCheck() {
|
|
1660
|
+
return true;
|
|
1661
|
+
}
|
|
1662
|
+
const domSanitiserOptions = {
|
|
1663
|
+
CUSTOM_ELEMENT_HANDLING: {
|
|
1664
|
+
tagNameCheck: tagRegXp,
|
|
1665
|
+
attributeNameCheck: attributeNameCheck,
|
|
1666
|
+
allowCustomizedBuiltInElements: false, // customized built-ins are not allowed
|
|
1667
|
+
}
|
|
1668
1668
|
};
|
|
1669
1669
|
|
|
1670
1670
|
const tttxListCss = ".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}:host{display:flex;flex-direction:column}.list{margin:0;padding:0}.item{list-style:none;margin:0;padding:8px;border-bottom:1px solid #d5d5d5;min-height:36px;display:flex;align-items:center}.item:first-of-type{border-top:1px solid #d5d5d5}.item.clickable:hover{cursor:pointer}.item.clickable:active{background-color:#e6e6e6}.align-right{margin-left:auto}.item-content{display:flex;align-items:center}";
|
|
1671
1671
|
|
|
1672
|
-
const TttxList = class {
|
|
1673
|
-
constructor(hostRef) {
|
|
1674
|
-
index.registerInstance(this, hostRef);
|
|
1675
|
-
this.rowClick = index.createEvent(this, "listRowClick", 7);
|
|
1676
|
-
this.data = undefined;
|
|
1677
|
-
this.name = undefined;
|
|
1678
|
-
}
|
|
1679
|
-
onRowClickHandler(item) {
|
|
1680
|
-
if (!item.clickable || !item.rowData)
|
|
1681
|
-
return;
|
|
1682
|
-
this.rowClick.emit({ name: this.name, data: item.rowData });
|
|
1683
|
-
}
|
|
1684
|
-
renderListItem(item) {
|
|
1685
|
-
const cleanHTML = purify.sanitize(item.element, domSanitiserOptions);
|
|
1686
|
-
return (index.h("li", { class: `item ${item.clickable ? 'clickable' : ''}`, onClick: () => {
|
|
1687
|
-
this.onRowClickHandler(item);
|
|
1688
|
-
} }, item.element && index.h("span", { class: "item-content", innerHTML: cleanHTML }), item.icon && index.h("tttx-icon", { class: "align-right ", icon: item.icon })));
|
|
1689
|
-
}
|
|
1690
|
-
render() {
|
|
1691
|
-
if (!this.data)
|
|
1692
|
-
return;
|
|
1693
|
-
if (typeof this.data === 'string') {
|
|
1694
|
-
this._data = JSON.parse(this.data);
|
|
1695
|
-
}
|
|
1696
|
-
else {
|
|
1697
|
-
this._data = this.data;
|
|
1698
|
-
}
|
|
1699
|
-
return index.h("ul", { class: "list" }, this._data.map((item) => this.renderListItem(item)));
|
|
1700
|
-
}
|
|
1701
|
-
};
|
|
1672
|
+
const TttxList = class {
|
|
1673
|
+
constructor(hostRef) {
|
|
1674
|
+
index.registerInstance(this, hostRef);
|
|
1675
|
+
this.rowClick = index.createEvent(this, "listRowClick", 7);
|
|
1676
|
+
this.data = undefined;
|
|
1677
|
+
this.name = undefined;
|
|
1678
|
+
}
|
|
1679
|
+
onRowClickHandler(item) {
|
|
1680
|
+
if (!item.clickable || !item.rowData)
|
|
1681
|
+
return;
|
|
1682
|
+
this.rowClick.emit({ name: this.name, data: item.rowData });
|
|
1683
|
+
}
|
|
1684
|
+
renderListItem(item) {
|
|
1685
|
+
const cleanHTML = purify.sanitize(item.element, domSanitiserOptions);
|
|
1686
|
+
return (index.h("li", { class: `item ${item.clickable ? 'clickable' : ''}`, onClick: () => {
|
|
1687
|
+
this.onRowClickHandler(item);
|
|
1688
|
+
} }, item.element && index.h("span", { class: "item-content", innerHTML: cleanHTML }), item.icon && index.h("tttx-icon", { class: "align-right ", icon: item.icon })));
|
|
1689
|
+
}
|
|
1690
|
+
render() {
|
|
1691
|
+
if (!this.data)
|
|
1692
|
+
return;
|
|
1693
|
+
if (typeof this.data === 'string') {
|
|
1694
|
+
this._data = JSON.parse(this.data);
|
|
1695
|
+
}
|
|
1696
|
+
else {
|
|
1697
|
+
this._data = this.data;
|
|
1698
|
+
}
|
|
1699
|
+
return index.h("ul", { class: "list" }, this._data.map((item) => this.renderListItem(item)));
|
|
1700
|
+
}
|
|
1701
|
+
};
|
|
1702
1702
|
TttxList.style = tttxListCss;
|
|
1703
1703
|
|
|
1704
1704
|
exports.tttx_list = TttxList;
|
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-906c2757.js');
|
|
6
6
|
|
|
7
7
|
const tttxLoadingSpinnerCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.spinner-container{position:absolute}.loading-box{display:flex;align-items:center;justify-content:center}.loading-text{font-size:16px;font-weight:400;padding-top:10px;text-align:center}.spinner{border:solid #1479c6;border-bottom-color:#d5d5d5;border-radius:50%;position:relative;box-sizing:border-box;animation:rotation 1s linear infinite}.spinner.small{height:20px;width:20px;border-width:4px}.spinner.large{height:60px;width:60px;border-width:8px}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
|
|
8
8
|
|
|
9
|
-
const TttxLoadingSpinner = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.loadingMessage = undefined;
|
|
13
|
-
this.size = 'large';
|
|
14
|
-
}
|
|
15
|
-
renderLoadingMessage() {
|
|
16
|
-
if (!this.loadingMessage)
|
|
17
|
-
return '';
|
|
18
|
-
return index.h("div", { class: "loading-text" }, "Loading, please wait...");
|
|
19
|
-
}
|
|
20
|
-
render() {
|
|
21
|
-
return (index.h("div", { class: "spinner-container" }, index.h("div", { class: "loading-box" }, index.h("span", { class: `spinner ${this.size}` })), this.renderLoadingMessage()));
|
|
22
|
-
}
|
|
23
|
-
};
|
|
9
|
+
const TttxLoadingSpinner = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.loadingMessage = undefined;
|
|
13
|
+
this.size = 'large';
|
|
14
|
+
}
|
|
15
|
+
renderLoadingMessage() {
|
|
16
|
+
if (!this.loadingMessage)
|
|
17
|
+
return '';
|
|
18
|
+
return index.h("div", { class: "loading-text" }, "Loading, please wait...");
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
return (index.h("div", { class: "spinner-container" }, index.h("div", { class: "loading-box" }, index.h("span", { class: `spinner ${this.size}` })), this.renderLoadingMessage()));
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
24
|
TttxLoadingSpinner.style = tttxLoadingSpinnerCss;
|
|
25
25
|
|
|
26
26
|
exports.tttx_loading_spinner = TttxLoadingSpinner;
|
|
@@ -2,69 +2,66 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-906c2757.js');
|
|
6
6
|
|
|
7
|
-
const tttxStandaloneInputCss = ".material-symbols-rounded.sc-tttx-standalone-input{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded.sc-tttx-standalone-input{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.sc-tttx-standalone-input,.icon-right.sc-tttx-standalone-input{flex-basis:24px}.icon-left.sc-tttx-standalone-input span.sc-tttx-standalone-input,.icon-right.sc-tttx-standalone-input span.sc-tttx-standalone-input{font-size:24px;line-height:24px;text-align:center;display:block;width:24px;height:24px;margin-top:4px}.icon-left.sc-tttx-standalone-input span.sc-tttx-standalone-input{margin-left:4px}.icon-right.sc-tttx-standalone-input span.sc-tttx-standalone-input{margin-right:4px}.icon-right.sc-tttx-standalone-input{margin-top:5px}.icon-left.sc-tttx-standalone-input{margin-top:5px;margin-left:4px}.iconleft.sc-tttx-standalone-input .input.sc-tttx-standalone-input{padding-left:4px}.iconright.sc-tttx-standalone-input .input.sc-tttx-standalone-input{padding-right:4px}.
|
|
7
|
+
const tttxStandaloneInputCss = ".material-symbols-rounded.sc-tttx-standalone-input{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded.sc-tttx-standalone-input{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.sc-tttx-standalone-input,.icon-right.sc-tttx-standalone-input{flex-basis:24px}.icon-left.sc-tttx-standalone-input span.sc-tttx-standalone-input,.icon-right.sc-tttx-standalone-input span.sc-tttx-standalone-input{font-size:24px;line-height:24px;text-align:center;display:block;width:24px;height:24px;margin-top:4px}.icon-left.sc-tttx-standalone-input span.sc-tttx-standalone-input{margin-left:4px}.icon-right.sc-tttx-standalone-input span.sc-tttx-standalone-input{margin-right:4px}.icon-right.sc-tttx-standalone-input{margin-top:5px;margin-right:4px}.icon-left.sc-tttx-standalone-input{margin-top:5px;margin-left:4px}.iconleft.sc-tttx-standalone-input .input.sc-tttx-standalone-input{padding-left:4px}.iconright.sc-tttx-standalone-input .input.sc-tttx-standalone-input{padding-right:4px}.focused.sc-tttx-standalone-input{border-color:#1479c6}.errormsg.sc-tttx-standalone-input{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.sc-tttx-standalone-input .validationicon.sc-tttx-standalone-input{width:16px;height:16px;font-size:16px;margin-right:4px;vertical-align:middle;color:#dc0000}.danger.sc-tttx-standalone-input{color:#dc0000}.optional.sc-tttx-standalone-input{color:#757575;font-weight:normal}label.inputBlock.sc-tttx-standalone-input{display:block;position:relative;line-height:21px}label.sc-tttx-standalone-input{font-weight:500;font-size:16px}input.sc-tttx-standalone-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].sc-tttx-standalone-input{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}input.invalid.sc-tttx-standalone-input:invalid,input.standalone.invalid.sc-tttx-standalone-input{border:1px solid #dc0000}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input{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.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input:not(.visible){visibility:hidden}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input span.sc-tttx-standalone-input{color:#dc0000;font-size:16px;margin-right:4px;height:16px}input.invalid.sc-tttx-standalone-input:invalid~.errorBubble.sc-tttx-standalone-input{position:relative;font-size:14px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;visibility:visible}input.sc-tttx-standalone-input:focus{border-color:#1479c6}.sc-tttx-standalone-input-h{display:block}";
|
|
8
8
|
|
|
9
|
-
const TttxInput = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.valueChanged = index.createEvent(this, "valueChanged", 7);
|
|
13
|
-
this.focusChanged = index.createEvent(this, "focusChanged", 7);
|
|
14
|
-
this.blurChanged = index.createEvent(this, "blurChanged", 7);
|
|
15
|
-
this.invalidChanged = index.createEvent(this, "invalidChanged", 7);
|
|
16
|
-
this.label = undefined;
|
|
17
|
-
this.showerrormsg = undefined;
|
|
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
|
-
this.
|
|
36
|
-
this.
|
|
37
|
-
this.
|
|
38
|
-
this.
|
|
39
|
-
this.
|
|
40
|
-
this.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
this.
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
return (index.h(index.Host, null, index.h("label", { class: this.inline ? 'inputInline' : 'inputBlock' }, this.label, !this.required ? index.h("span", { class: "optional" }, "\u00A0(optional)") : '', this.iconleft && (index.h("div", { class: "icon-left" }, index.h("tttx-icon", { icon: this.iconleft, color: "grey" }))), index.h("div", { class: "input-container" }, this.inputicon && (index.h("tttx-icon", { class: "input-icon", icon: this.inputicon, color: "grey" })), index.h("input", { class: classNames, autocapitalize: this.inputAutocapitalize, autofocus: this.inputAutofocus, enterkeyhint: this.inputKeyhint, tabindex: this.inputIndex, title: this.inputTitle, autocomplete: this.autocomplete, checked: this.checked, disabled: this.disabled, max: this.max, maxlength: this.maxlength, min: this.min, minlength: this.minlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readonly: this.readonly, required: this.required, step: this.step, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.bind(this), onInvalid: this.handleInvalid.bind(this) }), this.iconright && (index.h("div", { class: "icon-right" }, index.h("tttx-icon", { icon: this.iconright, color: "grey" }))), this.showerrorbubble && (index.h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, index.h("span", { class: "material-symbols-rounded validationicon" }, "warning"), " ", this.errormsg))))));
|
|
66
|
-
}
|
|
67
|
-
};
|
|
9
|
+
const TttxInput = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.valueChanged = index.createEvent(this, "valueChanged", 7);
|
|
13
|
+
this.focusChanged = index.createEvent(this, "focusChanged", 7);
|
|
14
|
+
this.blurChanged = index.createEvent(this, "blurChanged", 7);
|
|
15
|
+
this.invalidChanged = index.createEvent(this, "invalidChanged", 7);
|
|
16
|
+
this.label = undefined;
|
|
17
|
+
this.showerrormsg = undefined;
|
|
18
|
+
this.errormsg = undefined;
|
|
19
|
+
this.iconleft = undefined;
|
|
20
|
+
this.iconright = undefined;
|
|
21
|
+
this.inputAutocapitalize = undefined;
|
|
22
|
+
this.inputAutofocus = undefined;
|
|
23
|
+
this.inputKeyhint = undefined;
|
|
24
|
+
this.inputIndex = undefined;
|
|
25
|
+
this.inputTitle = undefined;
|
|
26
|
+
this.autocomplete = undefined;
|
|
27
|
+
this.checked = undefined;
|
|
28
|
+
this.disabled = undefined;
|
|
29
|
+
this.max = undefined;
|
|
30
|
+
this.maxlength = undefined;
|
|
31
|
+
this.min = undefined;
|
|
32
|
+
this.minlength = undefined;
|
|
33
|
+
this.name = undefined;
|
|
34
|
+
this.pattern = undefined;
|
|
35
|
+
this.placeholder = undefined;
|
|
36
|
+
this.readonly = undefined;
|
|
37
|
+
this.required = undefined;
|
|
38
|
+
this.step = undefined;
|
|
39
|
+
this.type = 'text';
|
|
40
|
+
this.value = undefined;
|
|
41
|
+
}
|
|
42
|
+
handleChange(event) {
|
|
43
|
+
const target = event.target;
|
|
44
|
+
this.value = target.value;
|
|
45
|
+
this.valueChanged.emit(target.value);
|
|
46
|
+
}
|
|
47
|
+
handleFocus(event) {
|
|
48
|
+
const target = event.target;
|
|
49
|
+
this.focusChanged.emit(target.value);
|
|
50
|
+
}
|
|
51
|
+
handleBlur(event) {
|
|
52
|
+
const target = event.target;
|
|
53
|
+
this.blurChanged.emit(target.value);
|
|
54
|
+
}
|
|
55
|
+
handleInvalid(event) {
|
|
56
|
+
event.preventDefault();
|
|
57
|
+
const target = event.target;
|
|
58
|
+
this.invalidChanged.emit(target.value);
|
|
59
|
+
}
|
|
60
|
+
render() {
|
|
61
|
+
const classNames = ['standalone', this.showerrormsg ? 'invalid' : ''].join(' ');
|
|
62
|
+
return (index.h(index.Host, null, index.h("label", { class: 'inputBlock' }, this.label, !this.required ? index.h("span", { class: "optional" }, "\u00A0(optional)") : '', this.iconleft && (index.h("div", { class: "icon-left" }, index.h("tttx-icon", { icon: this.iconleft, color: "grey" }))), index.h("input", { class: classNames, autocapitalize: this.inputAutocapitalize, autofocus: this.inputAutofocus, enterkeyhint: this.inputKeyhint, tabindex: this.inputIndex, title: this.inputTitle, autocomplete: this.autocomplete, checked: this.checked, disabled: this.disabled, max: this.max, maxlength: this.maxlength, min: this.min, minlength: this.minlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readonly: this.readonly, required: this.required, step: this.step, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.bind(this), onInvalid: this.handleInvalid.bind(this) }), this.iconright && (index.h("div", { class: "icon-right" }, index.h("tttx-icon", { icon: this.iconright, color: "grey" }))), index.h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, index.h("span", { class: "material-symbols-rounded validationicon" }, "warning"), " ", this.errormsg))));
|
|
63
|
+
}
|
|
64
|
+
};
|
|
68
65
|
TttxInput.style = tttxStandaloneInputCss;
|
|
69
66
|
|
|
70
67
|
exports.tttx_standalone_input = TttxInput;
|
package/dist/cjs/tttx.cjs.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-906c2757.js');
|
|
4
6
|
|
|
5
7
|
/*
|
|
6
|
-
Stencil Client Patch Browser v2.
|
|
8
|
+
Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
7
9
|
*/
|
|
8
10
|
const patchBrowser = () => {
|
|
9
11
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('tttx.cjs.js', document.baseURI).href));
|
|
@@ -15,5 +17,7 @@ const patchBrowser = () => {
|
|
|
15
17
|
};
|
|
16
18
|
|
|
17
19
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["tttx-
|
|
20
|
+
return index.bootstrapLazy([["tttx-list.cjs",[[1,"tttx-list",{"data":[1025],"name":[1]}]]],["tttx-standalone-input.cjs",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"inputAutocapitalize":[1,"input-autocapitalize"],"inputAutofocus":[4,"input-autofocus"],"inputKeyhint":[1,"input-keyhint"],"inputIndex":[8,"input-index"],"inputTitle":[1,"input-title"],"autocomplete":[1],"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-form.cjs",[[1,"tttx-form",{"formschema":[1032],"submitValue":[1032,"submit-value"]}]]],["tttx-keyvalue-block.cjs",[[1,"tttx-keyvalue-block",{"keyvalues":[8],"horizontal":[4]}]]],["tttx-loading-spinner.cjs",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-button_2.cjs",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"design":[1]}],[1,"tttx-icon",{"icon":[1],"color":[1]}]]]], options);
|
|
19
21
|
});
|
|
22
|
+
|
|
23
|
+
exports.setNonce = index.setNonce;
|