@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,198 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-bf777121.js');
6
-
7
- 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}.tttx-list__row{min-height:52px;line-height:36px;padding:8px;display:flex;flex-direction:row;align-items:center;cursor:pointer;border-bottom:1px solid #d5d5d5}.tttx-list__row .generic-template__content{width:100%;display:flex;align-items:center;gap:8px}.tttx-list__row:first-of-type{border-top:1px solid #d5d5d5}.tttx-list__row:focus,.tttx-list__row:active{background-color:#e6e6e6}.tttx-list__row.selected{background-color:#e7f1f9}.load-indicator{display:flex;justify-content:center}";
8
-
9
- const TttxList = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.listPaginate = index.createEvent(this, "listPaginate", 7);
13
- this.listSelectedEvent = index.createEvent(this, "listSelectedEvent", 7);
14
- this.listItemClick = index.createEvent(this, "listItemClick", 7);
15
- this.rowCount = 0;
16
- this.name = undefined;
17
- this.selectable = undefined;
18
- this.items = [];
19
- this.selectedIds = [];
20
- this.loading = true;
21
- this.lastPage = false;
22
- }
23
- listLoadHandler(event) {
24
- if (event.detail.name !== this.name)
25
- return;
26
- this.items = [...this.items, ...event.detail.items];
27
- this.loading = false;
28
- this.lastPage = event.detail.lastPage;
29
- this.renderRows(event.detail.items);
30
- if (this.scrollableParent.clientHeight === this.scrollableParent.scrollHeight)
31
- this.listPaginateHandler();
32
- }
33
- listPaginateHandler() {
34
- // We don't want to emit an event to load the next page if this is the last page, or if we're already loading
35
- if (this.lastPage || this.loading)
36
- return;
37
- this.loading = true;
38
- this.listPaginate.emit({ name: this.name });
39
- }
40
- listClearDataCacheHandler(event) {
41
- if (event.detail.name !== this.name)
42
- return;
43
- this.items = [];
44
- this.selectedIds = [];
45
- this.listItemContainer()
46
- .querySelectorAll('.tttx-list__row')
47
- .forEach((node) => {
48
- node.remove();
49
- });
50
- this.rowCount = 0;
51
- this.lastPage = false;
52
- this.loading = false;
53
- }
54
- listActionSelectedEventHandler(event) {
55
- if (event.detail.name !== this.name || !this.selectable || this.selectedIds.length === 0)
56
- return;
57
- const selectedRows = this.selectedIds.map(id => {
58
- return this.items[id];
59
- });
60
- if (event.detail.removeRows)
61
- this.removeSelectedRows();
62
- this.listSelectedEvent.emit({
63
- name: this.name,
64
- eventName: event.detail.eventName,
65
- selectedRows,
66
- });
67
- }
68
- removeSelectedRows() {
69
- const orderedSelectedIds = [...this.selectedIds].sort((a, b) => {
70
- return b - a;
71
- });
72
- orderedSelectedIds.forEach(itemIndex => {
73
- this.items.splice(itemIndex, 1);
74
- this.listItemContainer().removeChild(this.listItemContainer().querySelector(`[data-row-id="${itemIndex}"]`));
75
- // If this removes the scrollbar and we're not on the last page, load in a new page
76
- if (this.scrollableParent.clientHeight === this.scrollableParent.scrollHeight)
77
- this.listPaginateHandler();
78
- });
79
- // Empty selected ids with mutation rather than assignment to avoid unecessary component rerender
80
- this.selectedIds.splice(0, this.selectedIds.length);
81
- }
82
- listItemClickHandler(itemData) {
83
- if (this.selectedIds.length !== 0)
84
- return;
85
- this.listItemClick.emit({ itemData, name: this.name });
86
- }
87
- componentWillLoad() {
88
- this.template = this.host.querySelector('template');
89
- this.scrollableParent = this.getScrollableParent(this.host);
90
- const scrollableContext = this.scrollableParent === document.scrollingElement ? document : this.scrollableParent;
91
- scrollableContext.addEventListener('scroll', this.scrollHandler.bind(this));
92
- window.addEventListener('resize', this.scrollHandler.bind(this));
93
- }
94
- componentDidLoad() {
95
- // Emit event to load first page
96
- this.listPaginate.emit({ name: this.name });
97
- }
98
- listItemContainer() {
99
- return this.host.shadowRoot.querySelector('.list-item-container');
100
- }
101
- async scrollHandler() {
102
- const { clientHeight, scrollTop, scrollHeight } = this.scrollableParent;
103
- if (Math.abs(scrollHeight - clientHeight - scrollTop) < 26)
104
- this.listPaginateHandler();
105
- }
106
- isScrollable(node) {
107
- const hasScrollbar = ['scroll', 'auto'].includes(node.style.overflowY);
108
- return hasScrollbar;
109
- }
110
- getScrollableParent(node) {
111
- if (!node || node === document.body) {
112
- return document.scrollingElement;
113
- }
114
- else {
115
- return this.isScrollable(node) ? node : this.getScrollableParent(node.parentElement);
116
- }
117
- }
118
- appendRowCheckbox(rowContainer) {
119
- if (!this.selectable)
120
- return;
121
- const rowId = this.rowCount;
122
- const checkbox = document.createElement('input');
123
- checkbox.setAttribute('type', 'checkbox');
124
- checkbox.addEventListener('click', e => {
125
- e.stopPropagation();
126
- if (e.target.checked) {
127
- this.selectedIds = [...this.selectedIds, rowId];
128
- rowContainer.classList.add('selected');
129
- }
130
- else {
131
- this.selectedIds = this.selectedIds.filter(id => {
132
- return id !== rowId;
133
- });
134
- rowContainer.classList.remove('selected');
135
- }
136
- });
137
- rowContainer.setAttribute('data-row-id', `${rowId}`);
138
- this.rowCount++;
139
- rowContainer.appendChild(checkbox);
140
- }
141
- appendSeededTemplate(rowData, rowContainer) {
142
- this.template.childNodes.forEach(child => {
143
- const clone = child.cloneNode(false);
144
- if (clone.getAttribute('data-fields')) {
145
- const fields = clone.getAttribute('data-fields').replace(/\s/g, '').split(',');
146
- const filteredRowData = Object.fromEntries(fields.map((field) => {
147
- return [field, rowData[field]];
148
- }));
149
- clone.setAttribute('row-data', JSON.stringify(filteredRowData));
150
- }
151
- else {
152
- clone.setAttribute('row-data', JSON.stringify(rowData));
153
- }
154
- rowContainer.appendChild(clone);
155
- });
156
- }
157
- appendGenericTemplate(rowData, rowContainer) {
158
- const row = document.createElement('div');
159
- row.classList.add('generic-template__content');
160
- row.textContent = rowData.text;
161
- rowContainer.appendChild(row);
162
- if (!rowData.icon)
163
- return;
164
- const icon = document.createElement('span');
165
- icon.classList.add('material-symbols-rounded');
166
- icon.textContent = rowData.icon;
167
- if (rowData.iconColor)
168
- icon.style['color'] = rowData.iconColor;
169
- row.prepend(icon);
170
- }
171
- row(rowData) {
172
- const rowContainer = document.createElement('div');
173
- rowContainer.classList.add('tttx-list__row');
174
- rowContainer.addEventListener('click', () => {
175
- this.listItemClickHandler(rowData);
176
- });
177
- this.appendRowCheckbox(rowContainer);
178
- this.template ? this.appendSeededTemplate(rowData, rowContainer) : this.appendGenericTemplate(rowData, rowContainer);
179
- return rowContainer;
180
- }
181
- renderRows(batchData) {
182
- batchData.forEach(rowData => {
183
- this.listItemContainer().appendChild(this.row(rowData));
184
- });
185
- }
186
- loadIndicator() {
187
- if (!this.loading)
188
- return;
189
- return index.h("div", { class: "load-indicator" }, index.h("tttx-loading-spinner", { size: 'large' }));
190
- }
191
- render() {
192
- return (index.h(index.Host, null, index.h("div", { class: "list-item-container", tabindex: "0" }, !this.loading && this.items.length === 0 ? 'No data to display' : undefined), this.loadIndicator()));
193
- }
194
- get host() { return index.getElement(this); }
195
- };
196
- TttxList.style = tttxListCss;
197
-
198
- exports.tttx_list = TttxList;
@@ -1,23 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-bf777121.js');
6
-
7
- const tttxPopoverContentCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}:host{display:block;max-width:400px}h4{margin:0;font-size:15px;font-weight:700;color:black;margin-bottom:4px}p{margin:0;font-size:14px;font-weight:normal;color:black;margin-bottom:4px}.linky{color:#1479c6;text-decoration:none;cursor:pointer}";
8
-
9
- const TttxPopoverContent = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.header = undefined;
13
- this.body = undefined;
14
- this.linkcontext = undefined;
15
- this.linktext = undefined;
16
- }
17
- render() {
18
- return (index.h(index.Host, null, this.header && index.h("h4", null, this.header), this.body && index.h("p", null, this.body), this.linkcontext && (index.h("span", { class: "linky", onClick: evt => console.log(this.linkcontext, evt) }, this.linktext || 'More Information'))));
19
- }
20
- };
21
- TttxPopoverContent.style = tttxPopoverContentCss;
22
-
23
- exports.tttx_popover_content = TttxPopoverContent;
@@ -1,60 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-bf777121.js');
6
-
7
- const tttxTableCss = "// SPACING $spacing-unit: 4px; // REGULAR $horizontal-spacing: $spacing-unit * 4; $vertical-spacing: $spacing-unit * 2; $base-padding: $vertical-spacing $horizontal-spacing; $base-height: $spacing-unit * 9; $component-spacing: $spacing-unit * 4; // SMALL $horizontal-spacing-sm: $spacing-unit * 2; $vertical-spacing-sm: $spacing-unit * 1; $base-padding-sm: $vertical-spacing-sm $horizontal-spacing-sm; $base-height-sm: $spacing-unit * 7; // COLOURS $grey-0: #212121; $grey-1: #363636; $grey-2: #4c4c4c; $grey-3: #636363; $grey-4: #757575; $grey-5: #9e9e9e; $grey-6: #aeaeae; $grey-7: #c8c8c8; $grey-8: #e3e3e3; $grey-9: #f0f0f0; $white: white; $black: $grey-0; $transparent: transparent; $blue-0: #00187c; $blue-1: #032e8c; $blue-2: #0849a3; $blue-3: #0951a8; $blue-4: #1169ba; $blue-5: #1479c6; $blue-6: #5194d2; $blue-7: #7aacdd; $blue-8: #b9d5ed; $blue-9: #e7f1f9; $red-0: #7c0000; $red-1: #8c0000; $red-2: #a30000; $red-3: #a80000; $red-4: #ba0000; $red-5: #dc0000; $red-6: #d25151; $red-7: #dd7a7a; $red-8: #edc1c1; $red-9: #f9e7e7; $black-1: #e6e6e6; $brand: $blue-0; $accent: $blue-5; $accent-selected: $blue-9; $error: $red-5; $severity-critical: #dc0000; $severity-warning: #f59500; $severity-success: #a2bb31; $severity-info: $accent; $ui-primary: $black; $ui-secondary: $grey-4; $ui-disabled: $grey-2; $ui-placeholder: $grey-5; $ui-background: $grey-9; $ui-sheet: $white; $ui-border: #d5d5d5; // BORDERS $ui-border-radius: 4px; $ui-border-width: 1px; // TYPOGRAPHY $font-size-default: 16px; $font-size-small: 14px; .material-symbols-rounded{font-variation-settings:'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24}.skeleton{animation:skeleton-loading 1s linear infinite alternate;border-radius:4px;width:100%}@keyframes skeleton-loading{0%{background-color:hsl(200, 20%, 80%)}100%{background-color:hsl(200, 20%, 95%)}}:host{display:block}table{box-sizing:border-box;width:100%;border-collapse:collapse;border-spacing:0;border:1px solid #ddd;border-bottom:none}thead tr{height:52px;color:#757575}tbody tr{height:48px;color:#212121}tr{font-family:'Roboto', sans-serif;font-weight:400;font-size:16px;display:flex;align-items:center;border-bottom:1px solid #ddd}.selected{background-color:#F0F0F0}.checked{background-color:#e7f1f9}td,th{min-width:300px;margin-left:16px;display:flex;align-items:left}.skeleton{height:24px;display:block}.align-right{margin-left:auto}";
8
-
9
- const TttxTable = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.rowSelected = index.createEvent(this, "rowSelected", 7);
13
- this.headerClicked = index.createEvent(this, "headerClicked", 7);
14
- this.headers = [];
15
- this.data = [];
16
- this.loading = false;
17
- this.selected = -1;
18
- }
19
- handleKeyDown(ev) {
20
- if (ev.key === 'ArrowDown' || ev.key === 'ArrowUp') {
21
- this.updateSelectedIndex(ev.key);
22
- this.emitRowSelected();
23
- }
24
- }
25
- updateSelectedIndex(key) {
26
- if (this.selected === -1) {
27
- this.selected = 0;
28
- }
29
- else {
30
- const isArrowDown = key === 'ArrowDown';
31
- const isArrowUp = key === 'ArrowUp';
32
- if (isArrowDown && this.selected < this.data.length - 1) {
33
- this.selected++;
34
- }
35
- else if (isArrowUp && this.selected > 0) {
36
- this.selected--;
37
- }
38
- }
39
- }
40
- emitRowSelected() {
41
- this.rowSelected.emit(this.data[this.selected]);
42
- }
43
- rowSelectedHandler(row) {
44
- this.rowSelected.emit(row);
45
- this.selected = this.data.findIndex((item) => item === row);
46
- }
47
- headerClickedHandler(key) {
48
- this.headerClicked.emit(key);
49
- }
50
- render() {
51
- return (index.h(index.Host, null, index.h("table", null, index.h("thead", null, index.h("tr", null, this.loading ?
52
- [1, 2, 3].map(() => (index.h("th", null, index.h("div", { class: "skeleton" })))) :
53
- this.headers && this.headers.map((header) => (index.h("th", { scope: "col", onClick: () => this.headerClickedHandler(header.key) }, header.label))))), index.h("tbody", null, this.loading ?
54
- [1, 2, 3].map(() => (index.h("tr", null, index.h("td", null, index.h("div", { class: "skeleton" })), index.h("td", null, index.h("div", { class: "skeleton" })), index.h("td", null, index.h("div", { class: "skeleton" }))))) :
55
- Object.keys(this.data).map((key, index$1) => (index.h("tr", { class: index$1 === this.selected ? 'selected' : '', onClick: () => this.rowSelectedHandler(this.data[key]) }, this.headers.map((header) => (index.h("td", null, this.data[key][header.key], " ", header.actions && index.h("tttx-icon", { class: "align-right", icon: "more_vert" }, index.h("div", { slot: "popover" }, index.h("tttx-popover-content", { header: "The humble egg", body: "Most arthropods such as insects, vertebrates (excluding live-bearing mammals), and mollusks lay eggs, although some, such as scorpions, do not.", linkcontext: "Wikipedia_egg", linktext: "Learn more about eggs" })))))))))))));
56
- }
57
- };
58
- TttxTable.style = tttxTableCss;
59
-
60
- exports.tttx_table = TttxTable;
@@ -1,30 +0,0 @@
1
- .material-symbols-rounded {
2
- font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
3
- }
4
-
5
- :host {
6
- display: block;
7
- max-width: 400px;
8
- }
9
-
10
- h4 {
11
- margin: 0;
12
- font-size: 15px;
13
- font-weight: 700;
14
- color: black;
15
- margin-bottom: 4px;
16
- }
17
-
18
- p {
19
- margin: 0;
20
- font-size: 14px;
21
- font-weight: normal;
22
- color: black;
23
- margin-bottom: 4px;
24
- }
25
-
26
- .linky {
27
- color: #1479c6;
28
- text-decoration: none;
29
- cursor: pointer;
30
- }
@@ -1,97 +0,0 @@
1
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
- import { Host, h } from '@stencil/core';
3
- export class TttxPopoverContent {
4
- constructor() {
5
- this.header = undefined;
6
- this.body = undefined;
7
- this.linkcontext = undefined;
8
- this.linktext = undefined;
9
- }
10
- render() {
11
- return (h(Host, null, this.header && h("h4", null, this.header), this.body && h("p", null, this.body), this.linkcontext && (h("span", { class: "linky", onClick: evt => console.log(this.linkcontext, evt) }, this.linktext || 'More Information'))));
12
- }
13
- static get is() { return "tttx-popover-content"; }
14
- static get encapsulation() { return "shadow"; }
15
- static get originalStyleUrls() {
16
- return {
17
- "$": ["tttx-popover-content.scss"]
18
- };
19
- }
20
- static get styleUrls() {
21
- return {
22
- "$": ["tttx-popover-content.css"]
23
- };
24
- }
25
- static get properties() {
26
- return {
27
- "header": {
28
- "type": "string",
29
- "mutable": false,
30
- "complexType": {
31
- "original": "string",
32
- "resolved": "string",
33
- "references": {}
34
- },
35
- "required": false,
36
- "optional": false,
37
- "docs": {
38
- "tags": [],
39
- "text": ""
40
- },
41
- "attribute": "header",
42
- "reflect": false
43
- },
44
- "body": {
45
- "type": "string",
46
- "mutable": false,
47
- "complexType": {
48
- "original": "string",
49
- "resolved": "string",
50
- "references": {}
51
- },
52
- "required": false,
53
- "optional": false,
54
- "docs": {
55
- "tags": [],
56
- "text": ""
57
- },
58
- "attribute": "body",
59
- "reflect": false
60
- },
61
- "linkcontext": {
62
- "type": "string",
63
- "mutable": false,
64
- "complexType": {
65
- "original": "string",
66
- "resolved": "string",
67
- "references": {}
68
- },
69
- "required": false,
70
- "optional": false,
71
- "docs": {
72
- "tags": [],
73
- "text": ""
74
- },
75
- "attribute": "linkcontext",
76
- "reflect": false
77
- },
78
- "linktext": {
79
- "type": "string",
80
- "mutable": false,
81
- "complexType": {
82
- "original": "string",
83
- "resolved": "string",
84
- "references": {}
85
- },
86
- "required": false,
87
- "optional": false,
88
- "docs": {
89
- "tags": [],
90
- "text": ""
91
- },
92
- "attribute": "linktext",
93
- "reflect": false
94
- }
95
- };
96
- }
97
- }
@@ -1,23 +0,0 @@
1
- export default {
2
- title: 'Atoms/PopoverContent',
3
- component: 'tttx-popover-content',
4
- argTypes: {
5
- header: {
6
- control: {
7
- type: 'text',
8
- },
9
- },
10
- body: {
11
- control: {
12
- type: 'text',
13
- },
14
- },
15
- },
16
- };
17
- const Template = ({ header, body, linkcontext }) => `<tttx-popover-content header="${header}" body="${body}" linkcontext="${linkcontext}" />`;
18
- export const Basic = Template.bind({});
19
- Basic.args = {
20
- header: 'HEADER',
21
- body: 'BODY',
22
- linkcontext: 'TESTING123',
23
- };
@@ -1,181 +0,0 @@
1
- .material-symbols-rounded {
2
- font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
3
- }
4
-
5
- .material-symbols-rounded {
6
- font-family: "Material Symbols Rounded", sans-serif;
7
- font-weight: 400;
8
- font-style: normal;
9
- font-size: 24px;
10
- line-height: 1;
11
- letter-spacing: normal;
12
- text-transform: none;
13
- display: inline-block;
14
- white-space: nowrap;
15
- word-wrap: normal;
16
- direction: ltr;
17
- text-rendering: optimizeLegibility;
18
- -webkit-font-smoothing: antialiased;
19
- color: #9e9e9e;
20
- }
21
-
22
- .icon-left,
23
- .icon-right {
24
- flex-basis: 24px;
25
- }
26
-
27
- .icon-left span,
28
- .icon-right span {
29
- font-size: 24px;
30
- line-height: 24px;
31
- text-align: center;
32
- display: block;
33
- width: 24px;
34
- height: 24px;
35
- margin-top: 4px;
36
- }
37
-
38
- .icon-left span {
39
- margin-left: 4px;
40
- }
41
-
42
- .icon-right span {
43
- margin-right: 4px;
44
- }
45
-
46
- .icon-right {
47
- margin-top: 5px;
48
- margin-right: 4px;
49
- }
50
-
51
- .icon-left {
52
- margin-top: 5px;
53
- margin-left: 4px;
54
- }
55
-
56
- .iconleft .input {
57
- padding-left: 4px;
58
- }
59
-
60
- .iconright .input {
61
- padding-right: 4px;
62
- }
63
-
64
- .focused {
65
- border-color: #1479c6;
66
- }
67
-
68
- .errormsg {
69
- display: flex;
70
- justify-content: center;
71
- align-items: center;
72
- float: left;
73
- margin-bottom: 16px;
74
- box-sizing: border-box;
75
- background-color: transparent;
76
- height: 26px;
77
- font-size: 14px;
78
- border-radius: none;
79
- z-index: 2;
80
- color: #dc0000;
81
- }
82
-
83
- .errormsg .validationicon {
84
- width: 16px;
85
- height: 16px;
86
- font-size: 16px;
87
- margin-right: 4px;
88
- vertical-align: middle;
89
- color: #dc0000;
90
- }
91
-
92
- .danger {
93
- color: #dc0000;
94
- }
95
-
96
- .optional {
97
- color: #757575;
98
- font-weight: normal;
99
- }
100
-
101
- label.inputBlock {
102
- display: block;
103
- position: relative;
104
- line-height: 21px;
105
- }
106
-
107
- label {
108
- font-weight: 500;
109
- font-size: 16px;
110
- }
111
-
112
- input:not([type=submit]) {
113
- font-family: "Roboto", serif;
114
- box-sizing: border-box;
115
- width: 100%;
116
- height: 36px;
117
- padding: 0 16px;
118
- font-size: 16px;
119
- border: 1px solid #d5d5d5;
120
- border-radius: 4px;
121
- margin-top: 4px;
122
- }
123
-
124
- /* iPhone OS fix */
125
- input[type=date] {
126
- background: white;
127
- display: block;
128
- min-width: calc(100% - 18px);
129
- line-height: 37px;
130
- }
131
-
132
- input.invalid:invalid, input.standalone.invalid {
133
- border: 1px solid #dc0000;
134
- }
135
-
136
- input ~ .errorBubble {
137
- min-height: 27px;
138
- position: relative;
139
- font-size: 14px;
140
- font-weight: normal;
141
- width: 100%;
142
- font-family: "Roboto", sans-serif;
143
- color: #dc0000;
144
- display: flex;
145
- align-content: center;
146
- align-items: center;
147
- justify-items: center;
148
- }
149
-
150
- input ~ .errorBubble:not(.visible) {
151
- visibility: hidden;
152
- }
153
-
154
- input ~ .errorBubble span {
155
- color: #dc0000;
156
- font-size: 16px;
157
- margin-right: 4px;
158
- height: 16px;
159
- }
160
-
161
- input.invalid:invalid ~ .errorBubble {
162
- position: relative;
163
- font-size: 14px;
164
- font-weight: normal;
165
- width: 100%;
166
- font-family: "Roboto", sans-serif;
167
- color: #dc0000;
168
- visibility: visible;
169
- }
170
-
171
- input:focus {
172
- border-color: #1479c6;
173
- }
174
-
175
- :host {
176
- display: block;
177
- }
178
-
179
- .spacing {
180
- margin-bottom: 16px;
181
- }