@3t-transform/threeteeui 0.0.21 → 0.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/dist/cjs/{index-bf777121.js → index-2943e8f8.js} +1 -122
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/tttx-button.cjs.entry.js +1 -1
  4. package/dist/cjs/tttx-icon.cjs.entry.js +1 -1
  5. package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +8 -5
  6. package/dist/cjs/tttx-loading-spinner.cjs.entry.js +1 -1
  7. package/dist/cjs/tttx-standalone-input.cjs.entry.js +6 -4
  8. package/dist/cjs/tttx.cjs.js +2 -2
  9. package/dist/collection/collection-manifest.json +1 -7
  10. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +7 -4
  11. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +28 -9
  12. package/dist/components/index.d.ts +0 -6
  13. package/dist/components/index.js +0 -6
  14. package/dist/components/tttx-button.js +54 -1
  15. package/dist/components/tttx-keyvalue-block.js +7 -4
  16. package/dist/components/tttx-loading-spinner.js +38 -1
  17. package/dist/components/tttx-standalone-input.js +8 -5
  18. package/dist/esm/{index-a05bd606.js → index-058a3cd0.js} +2 -122
  19. package/dist/esm/loader.js +3 -3
  20. package/dist/esm/tttx-button.entry.js +1 -1
  21. package/dist/esm/tttx-icon.entry.js +1 -1
  22. package/dist/esm/tttx-keyvalue-block.entry.js +8 -5
  23. package/dist/esm/tttx-loading-spinner.entry.js +1 -1
  24. package/dist/esm/tttx-standalone-input.entry.js +6 -4
  25. package/dist/esm/tttx.js +3 -3
  26. package/dist/tttx/{p-68ff0f39.entry.js → p-046868d9.entry.js} +1 -1
  27. package/dist/tttx/{p-93763d3c.entry.js → p-1adb2b75.entry.js} +1 -1
  28. package/dist/tttx/{p-a5808741.entry.js → p-495cf4b3.entry.js} +1 -1
  29. package/dist/tttx/p-a4d9929a.entry.js +1 -0
  30. package/dist/tttx/p-ad637dde.entry.js +1 -0
  31. package/dist/tttx/p-bbb7dbf7.js +2 -0
  32. package/dist/tttx/tttx.esm.js +1 -1
  33. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +3 -2
  34. package/dist/types/components.d.ts +6 -140
  35. package/package.json +2 -2
  36. package/dist/cjs/tttx-checkbox.cjs.entry.js +0 -28
  37. package/dist/cjs/tttx-form.cjs.entry.js +0 -374
  38. package/dist/cjs/tttx-input-calendar.cjs.entry.js +0 -125
  39. package/dist/cjs/tttx-list.cjs.entry.js +0 -198
  40. package/dist/cjs/tttx-popover-content.cjs.entry.js +0 -23
  41. package/dist/cjs/tttx-table.cjs.entry.js +0 -60
  42. package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.css +0 -30
  43. package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.js +0 -97
  44. package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.stories.js +0 -23
  45. package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.css +0 -181
  46. package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.js +0 -102
  47. package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.stories.js +0 -13
  48. package/dist/collection/components/molecules/tttx-form/tttx-form.css +0 -314
  49. package/dist/collection/components/molecules/tttx-form/tttx-form.js +0 -452
  50. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +0 -109
  51. package/dist/collection/components/molecules/tttx-input-calendar/tttx-input-calendar.css +0 -93
  52. package/dist/collection/components/molecules/tttx-input-calendar/tttx-input-calendar.js +0 -174
  53. package/dist/collection/components/molecules/tttx-input-calendar/tttx-input-calendar.stories.js +0 -27
  54. package/dist/collection/components/molecules/tttx-list/tttx-list.css +0 -56
  55. package/dist/collection/components/molecules/tttx-list/tttx-list.js +0 -312
  56. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +0 -37
  57. package/dist/collection/components/molecules/tttx-table/tttx-table.css +0 -166
  58. package/dist/collection/components/molecules/tttx-table/tttx-table.js +0 -174
  59. package/dist/collection/components/molecules/tttx-table/tttx-table.stories.js +0 -81
  60. package/dist/components/tttx-button2.js +0 -56
  61. package/dist/components/tttx-checkbox.d.ts +0 -11
  62. package/dist/components/tttx-checkbox.js +0 -46
  63. package/dist/components/tttx-form.d.ts +0 -11
  64. package/dist/components/tttx-form.js +0 -391
  65. package/dist/components/tttx-input-calendar.d.ts +0 -11
  66. package/dist/components/tttx-input-calendar.js +0 -157
  67. package/dist/components/tttx-list.d.ts +0 -11
  68. package/dist/components/tttx-list.js +0 -225
  69. package/dist/components/tttx-loading-spinner2.js +0 -40
  70. package/dist/components/tttx-popover-content.d.ts +0 -11
  71. package/dist/components/tttx-popover-content.js +0 -6
  72. package/dist/components/tttx-popover-content2.js +0 -39
  73. package/dist/components/tttx-table.d.ts +0 -11
  74. package/dist/components/tttx-table.js +0 -91
  75. package/dist/esm/tttx-checkbox.entry.js +0 -24
  76. package/dist/esm/tttx-form.entry.js +0 -370
  77. package/dist/esm/tttx-input-calendar.entry.js +0 -121
  78. package/dist/esm/tttx-list.entry.js +0 -194
  79. package/dist/esm/tttx-popover-content.entry.js +0 -19
  80. package/dist/esm/tttx-table.entry.js +0 -56
  81. package/dist/tttx/p-037d286f.entry.js +0 -1
  82. package/dist/tttx/p-07b134af.js +0 -2
  83. package/dist/tttx/p-1b63f16a.entry.js +0 -1
  84. package/dist/tttx/p-45afb84c.entry.js +0 -1
  85. package/dist/tttx/p-74061060.entry.js +0 -1
  86. package/dist/tttx/p-9536b8c4.entry.js +0 -1
  87. package/dist/tttx/p-a92ca87e.entry.js +0 -1
  88. package/dist/tttx/p-a96ca037.entry.js +0 -1
  89. package/dist/tttx/p-f579ed1e.entry.js +0 -1
  90. package/dist/types/components/atoms/tttx-popover-content/tttx-popover-content.d.ts +0 -7
  91. package/dist/types/components/atoms/tttx-popover-content/tttx-popover-content.stories.d.ts +0 -18
  92. package/dist/types/components/atoms/ttx-checkbox/tttx-checkbox.d.ts +0 -9
  93. package/dist/types/components/atoms/ttx-checkbox/tttx-checkbox.stories.d.ts +0 -6
  94. package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +0 -134
  95. package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +0 -12
  96. package/dist/types/components/molecules/tttx-input-calendar/tttx-input-calendar.d.ts +0 -19
  97. package/dist/types/components/molecules/tttx-input-calendar/tttx-input-calendar.stories.d.ts +0 -26
  98. package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +0 -51
  99. package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +0 -13
  100. package/dist/types/components/molecules/tttx-table/tttx-table.d.ts +0 -15
  101. package/dist/types/components/molecules/tttx-table/tttx-table.stories.d.ts +0 -21
@@ -1,166 +0,0 @@
1
- // SPACING
2
- $spacing-unit: 4px;
3
-
4
- // REGULAR
5
- $horizontal-spacing: $spacing-unit * 4;
6
- $vertical-spacing: $spacing-unit * 2;
7
- $base-padding: $vertical-spacing $horizontal-spacing;
8
- $base-height: $spacing-unit * 9;
9
- $component-spacing: $spacing-unit * 4;
10
-
11
- // SMALL
12
- $horizontal-spacing-sm: $spacing-unit * 2;
13
- $vertical-spacing-sm: $spacing-unit * 1;
14
- $base-padding-sm: $vertical-spacing-sm $horizontal-spacing-sm;
15
- $base-height-sm: $spacing-unit * 7;
16
-
17
- // COLOURS
18
- $grey-0: #212121;
19
- $grey-1: #363636;
20
- $grey-2: #4c4c4c;
21
- $grey-3: #636363;
22
- $grey-4: #757575;
23
- $grey-5: #9e9e9e;
24
- $grey-6: #aeaeae;
25
- $grey-7: #c8c8c8;
26
- $grey-8: #e3e3e3;
27
- $grey-9: #f0f0f0;
28
-
29
- $white: white;
30
- $black: $grey-0;
31
- $transparent: transparent;
32
-
33
- $blue-0: #00187c;
34
- $blue-1: #032e8c;
35
- $blue-2: #0849a3;
36
- $blue-3: #0951a8;
37
- $blue-4: #1169ba;
38
- $blue-5: #1479c6;
39
- $blue-6: #5194d2;
40
- $blue-7: #7aacdd;
41
- $blue-8: #b9d5ed;
42
- $blue-9: #e7f1f9;
43
-
44
- $red-0: #7c0000;
45
- $red-1: #8c0000;
46
- $red-2: #a30000;
47
- $red-3: #a80000;
48
- $red-4: #ba0000;
49
- $red-5: #dc0000;
50
- $red-6: #d25151;
51
- $red-7: #dd7a7a;
52
- $red-8: #edc1c1;
53
- $red-9: #f9e7e7;
54
-
55
- $black-1: #e6e6e6;
56
-
57
- $brand: $blue-0;
58
- $accent: $blue-5;
59
- $accent-selected: $blue-9;
60
- $error: $red-5;
61
-
62
- $severity-critical: #dc0000;
63
- $severity-warning: #f59500;
64
- $severity-success: #a2bb31;
65
- $severity-info: $accent;
66
-
67
- $ui-primary: $black;
68
- $ui-secondary: $grey-4;
69
- $ui-disabled: $grey-2;
70
- $ui-placeholder: $grey-5;
71
-
72
- $ui-background: $grey-9;
73
- $ui-sheet: $white;
74
- $ui-border: #d5d5d5;
75
-
76
- // BORDERS
77
- $ui-border-radius: 4px;
78
- $ui-border-width: 1px;
79
-
80
- // TYPOGRAPHY
81
- $font-size-default: 16px;
82
- $font-size-small: 14px;
83
-
84
- .material-symbols-rounded {
85
- font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
86
- }
87
-
88
- .skeleton {
89
- animation: skeleton-loading 1s linear infinite alternate;
90
- border-radius: 4px;
91
- width: 100%;
92
- }
93
-
94
- @keyframes skeleton-loading {
95
- 0% {
96
- background-color: hsl(200, 20%, 80%);
97
- }
98
-
99
- 100% {
100
- background-color: hsl(200, 20%, 95%);
101
- }
102
- }
103
-
104
- :host {
105
- display: block;
106
- }
107
-
108
- table {
109
- box-sizing: border-box;
110
- width: 100%;
111
- border-collapse: collapse;
112
- border-spacing: 0;
113
- border: 1px solid #ddd;
114
- border-bottom: none;
115
- }
116
-
117
- thead tr {
118
- height: 52px;
119
- color: #757575;
120
- }
121
-
122
- tbody tr {
123
- height: 48px;
124
- color: #212121;
125
- }
126
-
127
- tr {
128
-
129
- /* Cell typography */
130
- font-family: 'Roboto', sans-serif;
131
- font-weight: 400;
132
- font-size: 16px;
133
-
134
- /* center the contents vertically */
135
- display: flex;
136
- align-items: center;
137
-
138
- /* Border */
139
- border-bottom: 1px solid #ddd;
140
-
141
- }
142
-
143
- .selected {
144
- background-color: #F0F0F0;
145
- }
146
-
147
- .checked {
148
- background-color: #e7f1f9;
149
- }
150
-
151
- td,
152
- th {
153
- min-width: 300px;
154
- margin-left: 16px;
155
- display: flex;
156
- align-items: left;
157
- }
158
-
159
- .skeleton {
160
- height: 24px;
161
- display: block;
162
- }
163
-
164
- .align-right {
165
- margin-left: auto;
166
- }
@@ -1,174 +0,0 @@
1
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
- import { Host, h } from '@stencil/core';
3
- export class TttxTable {
4
- constructor() {
5
- this.headers = [];
6
- this.data = [];
7
- this.loading = false;
8
- this.selected = -1;
9
- }
10
- handleKeyDown(ev) {
11
- if (ev.key === 'ArrowDown' || ev.key === 'ArrowUp') {
12
- this.updateSelectedIndex(ev.key);
13
- this.emitRowSelected();
14
- }
15
- }
16
- updateSelectedIndex(key) {
17
- if (this.selected === -1) {
18
- this.selected = 0;
19
- }
20
- else {
21
- const isArrowDown = key === 'ArrowDown';
22
- const isArrowUp = key === 'ArrowUp';
23
- if (isArrowDown && this.selected < this.data.length - 1) {
24
- this.selected++;
25
- }
26
- else if (isArrowUp && this.selected > 0) {
27
- this.selected--;
28
- }
29
- }
30
- }
31
- emitRowSelected() {
32
- this.rowSelected.emit(this.data[this.selected]);
33
- }
34
- rowSelectedHandler(row) {
35
- this.rowSelected.emit(row);
36
- this.selected = this.data.findIndex((item) => item === row);
37
- }
38
- headerClickedHandler(key) {
39
- this.headerClicked.emit(key);
40
- }
41
- render() {
42
- return (h(Host, null, h("table", null, h("thead", null, h("tr", null, this.loading ?
43
- [1, 2, 3].map(() => (h("th", null, h("div", { class: "skeleton" })))) :
44
- this.headers && this.headers.map((header) => (h("th", { scope: "col", onClick: () => this.headerClickedHandler(header.key) }, header.label))))), h("tbody", null, this.loading ?
45
- [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" }))))) :
46
- 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" })))))))))))));
47
- }
48
- static get is() { return "tttx-table"; }
49
- static get encapsulation() { return "shadow"; }
50
- static get originalStyleUrls() {
51
- return {
52
- "$": ["tttx-table.css"]
53
- };
54
- }
55
- static get styleUrls() {
56
- return {
57
- "$": ["tttx-table.css"]
58
- };
59
- }
60
- static get properties() {
61
- return {
62
- "headers": {
63
- "type": "unknown",
64
- "mutable": false,
65
- "complexType": {
66
- "original": "any[]",
67
- "resolved": "any[]",
68
- "references": {}
69
- },
70
- "required": false,
71
- "optional": false,
72
- "docs": {
73
- "tags": [],
74
- "text": ""
75
- },
76
- "defaultValue": "[]"
77
- },
78
- "data": {
79
- "type": "unknown",
80
- "mutable": false,
81
- "complexType": {
82
- "original": "any[]",
83
- "resolved": "any[]",
84
- "references": {}
85
- },
86
- "required": false,
87
- "optional": false,
88
- "docs": {
89
- "tags": [],
90
- "text": ""
91
- },
92
- "defaultValue": "[]"
93
- },
94
- "loading": {
95
- "type": "boolean",
96
- "mutable": false,
97
- "complexType": {
98
- "original": "boolean",
99
- "resolved": "boolean",
100
- "references": {}
101
- },
102
- "required": false,
103
- "optional": false,
104
- "docs": {
105
- "tags": [],
106
- "text": ""
107
- },
108
- "attribute": "loading",
109
- "reflect": false,
110
- "defaultValue": "false"
111
- },
112
- "selected": {
113
- "type": "number",
114
- "mutable": false,
115
- "complexType": {
116
- "original": "number",
117
- "resolved": "number",
118
- "references": {}
119
- },
120
- "required": false,
121
- "optional": false,
122
- "docs": {
123
- "tags": [],
124
- "text": ""
125
- },
126
- "attribute": "selected",
127
- "reflect": false,
128
- "defaultValue": "-1"
129
- }
130
- };
131
- }
132
- static get events() {
133
- return [{
134
- "method": "rowSelected",
135
- "name": "rowSelected",
136
- "bubbles": true,
137
- "cancelable": true,
138
- "composed": true,
139
- "docs": {
140
- "tags": [],
141
- "text": ""
142
- },
143
- "complexType": {
144
- "original": "any",
145
- "resolved": "any",
146
- "references": {}
147
- }
148
- }, {
149
- "method": "headerClicked",
150
- "name": "headerClicked",
151
- "bubbles": true,
152
- "cancelable": true,
153
- "composed": true,
154
- "docs": {
155
- "tags": [],
156
- "text": ""
157
- },
158
- "complexType": {
159
- "original": "any",
160
- "resolved": "any",
161
- "references": {}
162
- }
163
- }];
164
- }
165
- static get listeners() {
166
- return [{
167
- "name": "keydown",
168
- "method": "handleKeyDown",
169
- "target": "document",
170
- "capture": false,
171
- "passive": false
172
- }];
173
- }
174
- }
@@ -1,81 +0,0 @@
1
- import { withActions } from '@storybook/addon-actions/decorator';
2
- const templateData = [
3
- { name: 'John', age: 25, faveColor: 'blue' },
4
- { name: 'Jane', age: 30, faveColor: 'green' },
5
- { name: 'Bob', age: 40, faveColor: 'red' },
6
- ];
7
- const templateHeaders = [
8
- {
9
- key: 'name',
10
- label: 'Name'
11
- },
12
- {
13
- key: 'age',
14
- label: 'Age'
15
- },
16
- {
17
- key: 'faveColor',
18
- label: '',
19
- actions: [
20
- {
21
- label: 'Edit',
22
- icon: 'edit',
23
- action: 'edit'
24
- },
25
- {
26
- label: 'Delete',
27
- icon: 'delete',
28
- action: 'delete'
29
- }
30
- ]
31
- }
32
- ];
33
- export default {
34
- title: 'Molecules/Table',
35
- component: 'tttx-table',
36
- argTypes: {
37
- loading: {
38
- control: { type: 'boolean' },
39
- }
40
- },
41
- parameters: {
42
- actions: {
43
- handles: ['rowSelected', 'headerClicked'],
44
- },
45
- },
46
- decorators: [withActions],
47
- };
48
- const TemplateTable = ({ headers, data, loading, selected }) => `
49
-
50
- <tttx-table
51
- id="table"
52
- ></tttx-table>
53
-
54
- <script>
55
- if (!table) {
56
- const table = document.getElementById('table');
57
- }
58
- table.headers = ${JSON.stringify(headers)};
59
- table.data = ${JSON.stringify(data)};
60
- table.loading = ${loading};
61
- table.selected = ${selected};
62
- </script>
63
-
64
- `;
65
- export const BasicTable = TemplateTable.bind({});
66
- BasicTable.args = {
67
- headers: templateHeaders,
68
- data: templateData
69
- };
70
- export const TablePreSelected = TemplateTable.bind({});
71
- TablePreSelected.args = {
72
- headers: templateHeaders,
73
- data: templateData,
74
- selected: 1
75
- };
76
- export const TableLoading = TemplateTable.bind({});
77
- TableLoading.args = {
78
- headers: templateHeaders,
79
- data: templateData,
80
- loading: true
81
- };
@@ -1,56 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { d as defineCustomElement$1 } from './tttx-icon2.js';
3
-
4
- const tttxButtonCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.button{font-family:Roboto, serif;box-sizing:border-box;height:36px;min-width:36px;padding:0;margin:0;background:transparent;color:#212121;border:1px solid #c8c8c8;border-radius:4px;text-transform:uppercase;display:flex;justify-content:left;align-items:center;font-size:14px;font-weight:400}.button-content{display:block;padding:0 16px}.icon-left,.icon-right{margin-top:4px}.iconleft{padding-left:8px}.iconleft .button-content{padding-left:4px}.iconright{padding-right:8px}.iconright .button-content{padding-right:4px}.notext{padding:0 6px}.button:hover{background:rgba(17, 17, 17, 0.1);border:1px solid #D5D5D5}.button:active{background:rgba(17, 17, 17, 0.2);border:1px solid #D5D5D5}.primary{background:#1479c6;border:1px solid #1479c6;color:white}.primary:hover{background:#146EB3;border:1px solid #146EB3}.primary:active{background:#1464A2;border:1px solid #1464A2}.borderless{background:transparent;border:none;color:#212121}.borderless:hover{background:rgba(17, 17, 17, 0.1);border:none}.borderless:active{background:rgba(17, 17, 17, 0.2);border:none}.danger{background:#DC0000;border:1px solid #DC0000;color:white}.danger:hover{background:#C60000;border:1px solid #C60000}.danger:active{background:#B00000;border:1px solid #B00000}.disabled{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:hover{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:active{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}:host{display:inline-block}.spacingleft{margin-left:8px}";
5
-
6
- const TttxButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
7
- constructor() {
8
- super();
9
- this.__registerHost();
10
- this.__attachShadow();
11
- this._iconcolor = 'black';
12
- this.notext = undefined;
13
- this.icon = undefined;
14
- this.iconposition = 'left';
15
- this.design = 'default';
16
- }
17
- componentWillLoad() {
18
- this._design = this.design;
19
- const designs = ['primary', 'default', 'disabled', 'danger', 'borderless'];
20
- if (!designs.includes(this.design)) {
21
- this._design = 'default';
22
- }
23
- if (this._design === 'primary' || this._design === 'danger') {
24
- this._iconcolor = 'white';
25
- }
26
- }
27
- render() {
28
- return (h(Host, null, h("button", { class: `button ${this._design} ${this.icon ? 'withicon' : ''} ${this.icon && this.iconposition ? 'icon' + this.iconposition : ''} ${this.notext ? 'notext' : ''}` }, this.icon && this.iconposition === 'left' && (h("div", { class: "icon-left" }, h("tttx-icon", { icon: this.icon, color: this._iconcolor }))), !this.notext && h("div", { class: "button-content" }, h("slot", null)), this.icon && this.iconposition === 'right' && (h("div", { class: "icon-right" }, h("tttx-icon", { icon: this.icon, color: this._iconcolor }))))));
29
- }
30
- static get style() { return tttxButtonCss; }
31
- }, [1, "tttx-button", {
32
- "notext": [4],
33
- "icon": [1],
34
- "iconposition": [1],
35
- "design": [1]
36
- }]);
37
- function defineCustomElement() {
38
- if (typeof customElements === "undefined") {
39
- return;
40
- }
41
- const components = ["tttx-button", "tttx-icon"];
42
- components.forEach(tagName => { switch (tagName) {
43
- case "tttx-button":
44
- if (!customElements.get(tagName)) {
45
- customElements.define(tagName, TttxButton);
46
- }
47
- break;
48
- case "tttx-icon":
49
- if (!customElements.get(tagName)) {
50
- defineCustomElement$1();
51
- }
52
- break;
53
- } });
54
- }
55
-
56
- export { TttxButton as T, defineCustomElement as d };
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxCheckbox extends Components.TttxCheckbox, HTMLElement {}
4
- export const TttxCheckbox: {
5
- prototype: TttxCheckbox;
6
- new (): TttxCheckbox;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,46 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
-
3
- const tttxCheckboxCss = ".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}.spacing{margin-bottom:16px}";
4
-
5
- const TttxCheckbox$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
- constructor() {
7
- super();
8
- this.__registerHost();
9
- this.__attachShadow();
10
- this.valueChanged = createEvent(this, "valueChanged", 7);
11
- this.value = undefined;
12
- this.label = undefined;
13
- this.required = undefined;
14
- }
15
- handleClick(event) {
16
- const target = event.target;
17
- this.value = target.checked;
18
- this.valueChanged.emit(target.checked);
19
- }
20
- render() {
21
- return (h(Host, null, h("div", { class: "field spacing" }, this.label && (h("label", { class: "label" }, this.label, !this.required ? h("span", { class: "optional" }, " (optional)") : '')), h("input", { type: "checkbox", class: "input", onChange: event => this.handleClick(event), checked: this.value }))));
22
- }
23
- static get style() { return tttxCheckboxCss; }
24
- }, [1, "tttx-checkbox", {
25
- "value": [4],
26
- "label": [1],
27
- "required": [4]
28
- }]);
29
- function defineCustomElement$1() {
30
- if (typeof customElements === "undefined") {
31
- return;
32
- }
33
- const components = ["tttx-checkbox"];
34
- components.forEach(tagName => { switch (tagName) {
35
- case "tttx-checkbox":
36
- if (!customElements.get(tagName)) {
37
- customElements.define(tagName, TttxCheckbox$1);
38
- }
39
- break;
40
- } });
41
- }
42
-
43
- const TttxCheckbox = TttxCheckbox$1;
44
- const defineCustomElement = defineCustomElement$1;
45
-
46
- export { TttxCheckbox, defineCustomElement };
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface TttxForm extends Components.TttxForm, HTMLElement {}
4
- export const TttxForm: {
5
- prototype: TttxForm;
6
- new (): TttxForm;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;