@3t-transform/threeteeui 0.1.5 → 0.1.7
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/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/css-shim-211819bc.js +6 -0
- package/dist/cjs/dom-9deb26c8.js +75 -0
- package/dist/cjs/index-11cfdabe.js +3297 -0
- package/dist/cjs/{index-906c2757.js → index-451f61dd.js} +3 -102
- package/dist/cjs/loader.cjs.js +19 -4
- package/dist/cjs/shadow-css-bf3843d2.js +389 -0
- package/dist/cjs/{tttx-button_2.cjs.entry.js → tttx-button.cjs.entry.js} +24 -50
- package/dist/cjs/tttx-form.cjs.entry.js +364 -364
- package/dist/cjs/tttx-icon.cjs.entry.js +21 -0
- package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +57 -57
- package/dist/cjs/tttx-list.cjs.entry.js +76 -46
- package/dist/cjs/tttx-loading-spinner.cjs.entry.js +16 -16
- package/dist/cjs/tttx-standalone-input.cjs.entry.js +61 -58
- package/dist/cjs/tttx-toolbar.cjs.entry.js +20 -0
- package/dist/cjs/tttx.cjs.js +117 -9
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/atoms/tttx-button/test/tttx-button.e2e.js +9 -0
- package/dist/collection/components/atoms/tttx-button/test/tttx-button.spec.js +83 -0
- package/dist/collection/components/atoms/tttx-button/tttx-button.js +110 -116
- package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +14 -14
- package/dist/collection/components/atoms/tttx-icon/test/tttx-icon.e2e.js +9 -0
- package/dist/collection/components/atoms/tttx-icon/test/tttx-icon.spec.js +16 -0
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.css +4 -0
- 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/test/tttx-keyvalue-block.spec.js +216 -0
- 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/Test/tttx-loading-spinner.spec.js +64 -0
- 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/setErrorState.spec.js +38 -0
- package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +58 -58
- package/dist/collection/components/molecules/tttx-form/lib/validityCheck.spec.js +214 -0
- package/dist/collection/components/molecules/tttx-form/test/tttx-form.e2e.js +9 -0
- package/dist/collection/components/molecules/tttx-form/test/tttx-form.spec.js +232 -0
- package/dist/collection/components/molecules/tttx-form/tttx-form.css +32 -3
- 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/test/ttttx-list.spec.e2e.js +26 -0
- package/dist/collection/components/molecules/tttx-list/test/tttx-list.spec.js +183 -0
- 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/test/tttx-standalone-input.e2e.js +9 -0
- package/dist/collection/components/molecules/tttx-standalone-input/test/tttx-standalone-input.spec.js +219 -0
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.css +32 -3
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +627 -572
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +148 -135
- package/dist/collection/components/molecules/tttx-toolbar/test/tttx-toolbar.test.js +0 -0
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.css +30 -0
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +44 -0
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +20 -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/collection/shared/domsanitiser.options.js +14 -14
- package/dist/collection/shared/test/domsanitiser.options.spec.js +23 -0
- package/dist/components/index.d.ts +1 -9
- package/dist/components/index.js +6 -1
- package/dist/components/tttx-button.js +48 -59
- 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 +98 -68
- package/dist/components/tttx-loading-spinner.js +33 -33
- package/dist/components/tttx-standalone-input.js +108 -102
- package/dist/components/tttx-toolbar.d.ts +11 -0
- package/dist/components/tttx-toolbar.js +36 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/css-shim-9d54a2f2.js +4 -0
- package/dist/esm/dom-6be6f662.js +73 -0
- package/dist/esm/{index-4010ad69.js → index-0350f122.js} +4 -101
- package/dist/esm/index-dbe25028.js +3262 -0
- package/dist/esm/loader.js +19 -4
- 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/shadow-css-ed4599f8.js +387 -0
- package/dist/esm/{tttx-button_2.entry.js → tttx-button.entry.js} +25 -50
- package/dist/esm/tttx-form.entry.js +364 -364
- package/dist/esm/tttx-icon.entry.js +17 -0
- package/dist/esm/tttx-keyvalue-block.entry.js +57 -57
- package/dist/esm/tttx-list.entry.js +76 -46
- package/dist/esm/tttx-loading-spinner.entry.js +16 -16
- package/dist/esm/tttx-standalone-input.entry.js +61 -58
- package/dist/esm/tttx-toolbar.entry.js +16 -0
- package/dist/esm/tttx.js +117 -6
- package/dist/tttx/app-globals-0f993ce5.js +3 -0
- package/dist/tttx/css-shim-9d54a2f2.js +4 -0
- package/dist/tttx/dom-6be6f662.js +73 -0
- package/dist/tttx/index-dbe25028.js +3262 -0
- package/dist/tttx/index.esm.js +1 -0
- package/dist/tttx/p-0a85dda4.entry.js +1 -0
- package/dist/tttx/{p-3281444a.entry.js → p-1b015a9d.entry.js} +1 -1
- package/dist/tttx/p-4f3958fa.entry.js +1 -0
- package/dist/tttx/p-5cae1beb.entry.js +1 -0
- package/dist/tttx/p-62869344.js +2 -0
- package/dist/tttx/p-92465671.entry.js +1 -0
- package/dist/tttx/{p-dab7ee1b.entry.js → p-a0179cb1.entry.js} +1 -1
- package/dist/tttx/p-cc6644c9.entry.js +1 -0
- package/dist/tttx/p-cd1565e0.entry.js +3 -0
- package/dist/tttx/shadow-css-ed4599f8.js +387 -0
- package/dist/tttx/tttx-button.entry.js +30 -0
- package/dist/tttx/tttx-form.entry.js +373 -0
- package/dist/tttx/tttx-icon.entry.js +17 -0
- package/dist/tttx/tttx-keyvalue-block.entry.js +63 -0
- package/dist/tttx/tttx-list.entry.js +1730 -0
- package/dist/tttx/tttx-loading-spinner.entry.js +22 -0
- package/dist/tttx/tttx-standalone-input.entry.js +66 -0
- package/dist/tttx/tttx-toolbar.entry.js +16 -0
- package/dist/tttx/tttx.esm.js +129 -1
- package/dist/types/components/atoms/tttx-button/test/tttx-button.e2e.d.ts +1 -0
- package/dist/types/components/atoms/tttx-button/test/tttx-button.spec.d.ts +1 -0
- package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +10 -13
- package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +10 -10
- package/dist/types/components/atoms/tttx-icon/test/tttx-icon.e2e.d.ts +1 -0
- package/dist/types/components/atoms/tttx-icon/test/tttx-icon.spec.d.ts +1 -0
- 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/test/tttx-keyvalue-block.spec.d.ts +1 -0
- 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/Test/tttx-loading-spinner.spec.d.ts +1 -0
- 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/setErrorState.spec.d.ts +1 -0
- package/dist/types/components/molecules/tttx-form/lib/validityCheck.d.ts +17 -17
- package/dist/types/components/molecules/tttx-form/lib/validityCheck.spec.d.ts +1 -0
- package/dist/types/components/molecules/tttx-form/test/tttx-form.e2e.d.ts +1 -0
- package/dist/types/components/molecules/tttx-form/test/tttx-form.spec.d.ts +1 -0
- 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/test/ttttx-list.spec.e2e.d.ts +1 -0
- package/dist/types/components/molecules/tttx-list/test/tttx-list.spec.d.ts +1 -0
- 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/test/tttx-standalone-input.e2e.d.ts +1 -0
- package/dist/types/components/molecules/tttx-standalone-input/test/tttx-standalone-input.spec.d.ts +1 -0
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +56 -53
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +122 -106
- package/dist/types/components/molecules/tttx-toolbar/test/tttx-toolbar.test.d.ts +0 -0
- package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.d.ts +4 -0
- package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.stories.d.ts +13 -0
- package/dist/types/components/palette.stories.d.ts +6 -6
- package/dist/types/components.d.ts +21 -0
- 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/shared/test/domsanitiser.options.spec.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +3 -59
- package/loader/index.d.ts +0 -9
- package/package.json +1 -1
- package/dist/collection/transform-tag-name.js +0 -5
- package/dist/tttx/p-083eeedc.entry.js +0 -1
- package/dist/tttx/p-5687f4ad.js +0 -2
- package/dist/tttx/p-5c9a1626.entry.js +0 -3
- package/dist/tttx/p-931e42c9.entry.js +0 -1
- package/dist/tttx/p-b5c1dd86.entry.js +0 -1
- package/dist/types/transform-tag-name.d.ts +0 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-11cfdabe.js');
|
|
6
|
+
|
|
7
|
+
const tttxIconCss = ".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:inline-block;cursor:default;user-select:none}.icon-size{width:24px;height:24px}.tooltip{background:#ffffff;color:#343434;font-weight:bold;padding:8px 16px;font-size:13px;border-radius:4px;box-shadow:0 0 5px 1px rgba(0, 0, 0, 0.3);display:none}.tooltip[data-show]{display:block}.arrow,.arrow::before{position:absolute;width:8px;height:8px;background:inherit}.arrow{visibility:hidden}.arrow::before{visibility:visible;content:\"\";transform:rotate(45deg)}.tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}.tooltip[data-popper-placement^=left]>.arrow{right:-4px}.tooltip[data-popper-placement^=right]>.arrow{left:-4px}.red{color:#dc0000}.darkred{color:#A20000}.orange{color:#f59500}.blue{color:#1479c6}.green{color:#a2bb31}.gray{color:#757575}.black{color:#212121}.white{color:white}";
|
|
8
|
+
|
|
9
|
+
const TttxIcon = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.icon = undefined;
|
|
13
|
+
this.color = 'grey';
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
return (index.h(index.Host, null, index.h("span", { class: `material-symbols-rounded ${this.color ? this.color : ''}` }, this.icon)));
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
TttxIcon.style = tttxIconCss;
|
|
20
|
+
|
|
21
|
+
exports.tttx_icon = TttxIcon;
|
|
@@ -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-11cfdabe.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,20 +2,47 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-11cfdabe.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
|
|
|
9
|
+
function getDefaultExportFromCjs (x) {
|
|
10
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
11
|
+
}
|
|
12
|
+
|
|
9
13
|
function createCommonjsModule(fn, basedir, module) {
|
|
10
14
|
return module = {
|
|
11
15
|
path: basedir,
|
|
12
16
|
exports: {},
|
|
13
17
|
require: function (path, base) {
|
|
14
|
-
return commonjsRequire();
|
|
18
|
+
return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
|
|
15
19
|
}
|
|
16
20
|
}, fn(module, module.exports), module.exports;
|
|
17
21
|
}
|
|
18
22
|
|
|
23
|
+
function getDefaultExportFromNamespaceIfPresent (n) {
|
|
24
|
+
return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function getDefaultExportFromNamespaceIfNotNamed (n) {
|
|
28
|
+
return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function getAugmentedNamespace(n) {
|
|
32
|
+
if (n.__esModule) return n;
|
|
33
|
+
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
34
|
+
Object.keys(n).forEach(function (k) {
|
|
35
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
36
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return n[k];
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
return a;
|
|
44
|
+
}
|
|
45
|
+
|
|
19
46
|
function commonjsRequire () {
|
|
20
47
|
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
21
48
|
}
|
|
@@ -24,8 +51,11 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
24
51
|
/*! @license DOMPurify 3.0.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.3/LICENSE */
|
|
25
52
|
|
|
26
53
|
(function (global, factory) {
|
|
27
|
-
module.exports = factory()
|
|
28
|
-
|
|
54
|
+
'object' === 'object' && 'object' !== 'undefined' ? module.exports = factory() :
|
|
55
|
+
typeof undefined === 'function' && undefined.amd ? undefined(factory) :
|
|
56
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.DOMPurify = factory());
|
|
57
|
+
})(commonjsGlobal, (function () { 'use strict';
|
|
58
|
+
|
|
29
59
|
const {
|
|
30
60
|
entries,
|
|
31
61
|
setPrototypeOf,
|
|
@@ -1653,52 +1683,52 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
1653
1683
|
//# sourceMappingURL=purify.js.map
|
|
1654
1684
|
});
|
|
1655
1685
|
|
|
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
|
-
}
|
|
1686
|
+
function tagRegXp(tagName) {
|
|
1687
|
+
return RegExp(/^tttx-/).exec(tagName);
|
|
1688
|
+
}
|
|
1689
|
+
function attributeNameCheck() {
|
|
1690
|
+
return true;
|
|
1691
|
+
}
|
|
1692
|
+
const domSanitiserOptions = {
|
|
1693
|
+
CUSTOM_ELEMENT_HANDLING: {
|
|
1694
|
+
tagNameCheck: tagRegXp,
|
|
1695
|
+
attributeNameCheck: attributeNameCheck,
|
|
1696
|
+
allowCustomizedBuiltInElements: false, // customized built-ins are not allowed
|
|
1697
|
+
}
|
|
1668
1698
|
};
|
|
1669
1699
|
|
|
1670
1700
|
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
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
|
+
const TttxList = class {
|
|
1703
|
+
constructor(hostRef) {
|
|
1704
|
+
index.registerInstance(this, hostRef);
|
|
1705
|
+
this.rowClick = index.createEvent(this, "listRowClick", 7);
|
|
1706
|
+
this.data = undefined;
|
|
1707
|
+
this.name = undefined;
|
|
1708
|
+
}
|
|
1709
|
+
onRowClickHandler(item) {
|
|
1710
|
+
if (!item.clickable || !item.rowData)
|
|
1711
|
+
return;
|
|
1712
|
+
this.rowClick.emit({ name: this.name, data: item.rowData });
|
|
1713
|
+
}
|
|
1714
|
+
renderListItem(item) {
|
|
1715
|
+
const cleanHTML = purify.sanitize(item.element, domSanitiserOptions);
|
|
1716
|
+
return (index.h("li", { class: `item ${item.clickable ? 'clickable' : ''}`, onClick: () => {
|
|
1717
|
+
this.onRowClickHandler(item);
|
|
1718
|
+
} }, item.element && index.h("span", { class: "item-content", innerHTML: cleanHTML }), item.icon && index.h("tttx-icon", { class: "align-right ", icon: item.icon })));
|
|
1719
|
+
}
|
|
1720
|
+
render() {
|
|
1721
|
+
if (!this.data)
|
|
1722
|
+
return;
|
|
1723
|
+
if (typeof this.data === 'string') {
|
|
1724
|
+
this._data = JSON.parse(this.data);
|
|
1725
|
+
}
|
|
1726
|
+
else {
|
|
1727
|
+
this._data = this.data;
|
|
1728
|
+
}
|
|
1729
|
+
return index.h("ul", { class: "list" }, this._data.map((item) => this.renderListItem(item)));
|
|
1730
|
+
}
|
|
1731
|
+
};
|
|
1702
1732
|
TttxList.style = tttxListCss;
|
|
1703
1733
|
|
|
1704
1734
|
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-11cfdabe.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,66 +2,69 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-11cfdabe.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
|
|
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}.input-icon.sc-tttx-standalone-input{position:absolute;margin-top:9px;margin-left:4px}.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.inputInline.sc-tttx-standalone-input{display:flex;white-space:nowrap;align-items:center}label.inputInline.sc-tttx-standalone-input .input-container.sc-tttx-standalone-input{margin:0 4px;width:100%;display:flex;align-items:center;gap:4px;position:relative}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}@media (max-width: 600px){input[type=date].sc-tttx-standalone-input{padding-top:6px}}input.invalid.sc-tttx-standalone-input:invalid,input.standalone.invalid.sc-tttx-standalone-input{border:1px solid #dc0000}.input-icon.sc-tttx-standalone-input~input.sc-tttx-standalone-input{padding:0 32px}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}input.sc-tttx-standalone-input:focus-visible{outline:none}.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
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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.showerrorbubble = true;
|
|
19
|
+
this.errormsg = undefined;
|
|
20
|
+
this.iconleft = undefined;
|
|
21
|
+
this.iconright = undefined;
|
|
22
|
+
this.inputicon = undefined;
|
|
23
|
+
this.inline = undefined;
|
|
24
|
+
this.inputAutocapitalize = undefined;
|
|
25
|
+
this.inputAutofocus = undefined;
|
|
26
|
+
this.inputKeyhint = undefined;
|
|
27
|
+
this.inputIndex = undefined;
|
|
28
|
+
this.inputTitle = undefined;
|
|
29
|
+
this.autocomplete = undefined;
|
|
30
|
+
this.checked = undefined;
|
|
31
|
+
this.disabled = undefined;
|
|
32
|
+
this.max = undefined;
|
|
33
|
+
this.maxlength = undefined;
|
|
34
|
+
this.min = undefined;
|
|
35
|
+
this.minlength = undefined;
|
|
36
|
+
this.name = undefined;
|
|
37
|
+
this.pattern = undefined;
|
|
38
|
+
this.placeholder = undefined;
|
|
39
|
+
this.readonly = undefined;
|
|
40
|
+
this.required = undefined;
|
|
41
|
+
this.step = undefined;
|
|
42
|
+
this.type = 'text';
|
|
43
|
+
this.value = undefined;
|
|
44
|
+
}
|
|
45
|
+
handleChange(event) {
|
|
46
|
+
const target = event.target;
|
|
47
|
+
this.value = target.value;
|
|
48
|
+
this.valueChanged.emit(target.value);
|
|
49
|
+
}
|
|
50
|
+
handleFocus(event) {
|
|
51
|
+
const target = event.target;
|
|
52
|
+
this.focusChanged.emit(target.value);
|
|
53
|
+
}
|
|
54
|
+
handleBlur(event) {
|
|
55
|
+
const target = event.target;
|
|
56
|
+
this.blurChanged.emit(target.value);
|
|
57
|
+
}
|
|
58
|
+
handleInvalid(event) {
|
|
59
|
+
event.preventDefault();
|
|
60
|
+
const target = event.target;
|
|
61
|
+
this.invalidChanged.emit(target.value);
|
|
62
|
+
}
|
|
63
|
+
render() {
|
|
64
|
+
const classNames = ['standalone', this.showerrormsg ? 'invalid' : ''].join(' ');
|
|
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
|
+
};
|
|
65
68
|
TttxInput.style = tttxStandaloneInputCss;
|
|
66
69
|
|
|
67
70
|
exports.tttx_standalone_input = TttxInput;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-11cfdabe.js');
|
|
6
|
+
|
|
7
|
+
const tttxToolbarCss = ":host{height:36px;display:flex;padding:8px 0;gap:8px}:host(.bordered){border-bottom:1px solid #d5d5d5}slot[name=before]{display:flex;flex:1 1 0px;gap:8px}slot[name=center]{display:flex;justify-content:center;flex:1 1 0px;gap:8px}slot[name=after]{display:flex;justify-content:end;flex:1 1 0px;gap:8px}";
|
|
8
|
+
|
|
9
|
+
const TttxToolbar = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.border = true;
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
return (index.h(index.Host, { class: this.border ? 'bordered' : '' }, index.h("slot", { name: 'before' }), index.h("slot", { name: 'center' }), index.h("slot", { name: 'after' })));
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
TttxToolbar.style = tttxToolbarCss;
|
|
19
|
+
|
|
20
|
+
exports.tttx_toolbar = TttxToolbar;
|