@3t-transform/threeteeui 0.0.14 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/dist/cjs/{index-bf39be87.js → index-864b7110.js} +4 -3
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/tttx-button.cjs.entry.js +18 -18
  4. package/dist/cjs/tttx-checkbox.cjs.entry.js +18 -18
  5. package/dist/cjs/tttx-form.cjs.entry.js +364 -176
  6. package/dist/cjs/tttx-icon.cjs.entry.js +56 -54
  7. package/dist/cjs/tttx-list.cjs.entry.js +188 -188
  8. package/dist/cjs/tttx-loading-spinner.cjs.entry.js +16 -16
  9. package/dist/cjs/tttx-popover-content.cjs.entry.js +13 -13
  10. package/dist/cjs/tttx-standalone-input.cjs.entry.js +127 -127
  11. package/dist/cjs/tttx-table.cjs.entry.js +60 -0
  12. package/dist/cjs/tttx.cjs.js +2 -2
  13. package/dist/collection/collection-manifest.json +2 -1
  14. package/dist/collection/components/atoms/tttx-button/tttx-button.js +93 -93
  15. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +25 -25
  16. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +116 -114
  17. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +32 -32
  18. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +66 -66
  19. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +17 -17
  20. package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.js +96 -96
  21. package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.stories.js +23 -23
  22. package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.js +101 -101
  23. package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.stories.js +9 -9
  24. package/dist/collection/components/molecules/tttx-form/tttx-form.js +451 -249
  25. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +109 -102
  26. package/dist/collection/components/molecules/tttx-list/tttx-list.js +311 -311
  27. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +15 -15
  28. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +569 -569
  29. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +134 -134
  30. package/dist/collection/components/molecules/tttx-table/tttx-table.css +166 -0
  31. package/dist/collection/components/molecules/tttx-table/tttx-table.js +177 -0
  32. package/dist/collection/components/molecules/tttx-table/tttx-table.stories.js +81 -0
  33. package/dist/collection/components/palette.stories.js +7 -7
  34. package/dist/collection/docs/gettingstarted-developer.stories.js +5 -5
  35. package/dist/collection/icons.js +2838 -2838
  36. package/dist/collection/index.js +1 -1
  37. package/dist/components/index.d.ts +1 -0
  38. package/dist/components/index.js +1 -0
  39. package/dist/components/tttx-button.js +35 -35
  40. package/dist/components/tttx-checkbox.js +36 -36
  41. package/dist/components/tttx-form.js +381 -193
  42. package/dist/components/tttx-icon2.js +73 -71
  43. package/dist/components/tttx-list.js +214 -214
  44. package/dist/components/tttx-loading-spinner2.js +33 -33
  45. package/dist/components/tttx-popover-content.js +1 -37
  46. package/dist/components/tttx-popover-content2.js +39 -0
  47. package/dist/components/tttx-standalone-input.js +169 -168
  48. package/dist/components/tttx-table.d.ts +11 -0
  49. package/dist/components/tttx-table.js +91 -0
  50. package/dist/esm/{index-63c4d25e.js → index-232e347b.js} +4 -3
  51. package/dist/esm/loader.js +3 -3
  52. package/dist/esm/polyfills/core-js.js +0 -0
  53. package/dist/esm/polyfills/dom.js +0 -0
  54. package/dist/esm/polyfills/es5-html-element.js +0 -0
  55. package/dist/esm/polyfills/index.js +0 -0
  56. package/dist/esm/polyfills/system.js +0 -0
  57. package/dist/esm/tttx-button.entry.js +18 -18
  58. package/dist/esm/tttx-checkbox.entry.js +18 -18
  59. package/dist/esm/tttx-form.entry.js +364 -176
  60. package/dist/esm/tttx-icon.entry.js +56 -54
  61. package/dist/esm/tttx-list.entry.js +188 -188
  62. package/dist/esm/tttx-loading-spinner.entry.js +16 -16
  63. package/dist/esm/tttx-popover-content.entry.js +13 -13
  64. package/dist/esm/tttx-standalone-input.entry.js +127 -127
  65. package/dist/esm/tttx-table.entry.js +56 -0
  66. package/dist/esm/tttx.js +3 -3
  67. package/dist/tttx/{p-2d54f8aa.entry.js → p-01e1894e.entry.js} +1 -1
  68. package/dist/tttx/{p-709246f5.entry.js → p-10316ff1.entry.js} +1 -1
  69. package/dist/tttx/p-125f06b3.entry.js +1 -0
  70. package/dist/tttx/p-184c4fae.js +2 -0
  71. package/dist/tttx/{p-ad0c3fe4.entry.js → p-3973b7dd.entry.js} +1 -1
  72. package/dist/tttx/p-5ce1ba22.entry.js +1 -0
  73. package/dist/tttx/{p-4c57bcbd.entry.js → p-6828fe6f.entry.js} +1 -1
  74. package/dist/tttx/p-b1c22f5f.entry.js +1 -0
  75. package/dist/tttx/{p-1a4eb1f3.entry.js → p-c7f9be65.entry.js} +1 -1
  76. package/dist/tttx/{p-2b6720ac.entry.js → p-fe4c70b2.entry.js} +1 -1
  77. package/dist/tttx/tttx.esm.js +1 -1
  78. package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +9 -9
  79. package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +20 -20
  80. package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +14 -14
  81. package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +21 -21
  82. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +6 -6
  83. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +17 -17
  84. package/dist/types/components/atoms/tttx-popover-content/tttx-popover-content.d.ts +7 -7
  85. package/dist/types/components/atoms/tttx-popover-content/tttx-popover-content.stories.d.ts +18 -18
  86. package/dist/types/components/atoms/ttx-checkbox/tttx-checkbox.d.ts +9 -9
  87. package/dist/types/components/atoms/ttx-checkbox/tttx-checkbox.stories.d.ts +6 -6
  88. package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +134 -18
  89. package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +12 -6
  90. package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +51 -51
  91. package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +13 -13
  92. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +38 -38
  93. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +106 -106
  94. package/dist/types/components/molecules/tttx-table/tttx-table.d.ts +15 -0
  95. package/dist/types/components/molecules/tttx-table/tttx-table.stories.d.ts +21 -0
  96. package/dist/types/components/palette.stories.d.ts +6 -6
  97. package/dist/types/components.d.ts +29 -1
  98. package/dist/types/docs/gettingstarted-developer.stories.d.ts +5 -5
  99. package/dist/types/icons.d.ts +2 -2
  100. package/dist/types/index.d.ts +1 -1
  101. package/package.json +7 -4
  102. package/dist/tttx/p-28e4c359.entry.js +0 -1
  103. package/dist/tttx/p-95a29e09.entry.js +0 -1
  104. package/dist/tttx/p-bec472d8.js +0 -2
@@ -1,114 +1,116 @@
1
- import { Host, h } from '@stencil/core';
2
- import { createPopper } from '@popperjs/core';
3
- export class TttxIcon {
4
- constructor() {
5
- this.icon = undefined;
6
- this.colour = 'grey';
7
- }
8
- handleDocumentClick(event) {
9
- if (!event.composedPath().includes(this.referenceElement)) {
10
- if (this.popperElement) {
11
- this.popperElement.removeAttribute('data-show');
12
- }
13
- if (this.popperInstance) {
14
- this.popperInstance.update();
15
- }
16
- }
17
- }
18
- componentWillLoad() {
19
- this.hasPopoverSlot = !!this.el.querySelector('[slot="popover"]');
20
- }
21
- componentDidLoad() {
22
- this.popperInstance = createPopper(this.referenceElement, this.popperElement, {
23
- placement: 'top',
24
- modifiers: [
25
- {
26
- name: 'flip',
27
- options: {
28
- fallbackPlacements: ['bottom'],
29
- },
30
- },
31
- {
32
- name: 'offset',
33
- options: {
34
- offset: [0, 12],
35
- },
36
- },
37
- ],
38
- });
39
- }
40
- disconnectedCallback() {
41
- this.popperInstance.destroy();
42
- }
43
- render() {
44
- return (h(Host, null, h("span", { onClick: () => {
45
- if (this.popperElement) {
46
- this.popperElement.setAttribute('data-show', '');
47
- }
48
- if (this.popperInstance) {
49
- this.popperInstance.update();
50
- }
51
- }, ref: el => (this.referenceElement = el), class: `material-symbols-rounded ${this.colour ? this.colour : ''} ${this.hasPopoverSlot ? 'clickable' : ''}` }, this.icon), this.hasPopoverSlot && (h("div", { ref: el => (this.popperElement = el), class: "tooltip" }, h("slot", { name: "popover" }), h("div", { class: "arrow", "data-popper-arrow": true })))));
52
- }
53
- static get is() { return "tttx-icon"; }
54
- static get encapsulation() { return "shadow"; }
55
- static get originalStyleUrls() {
56
- return {
57
- "$": ["tttx-icon.scss"]
58
- };
59
- }
60
- static get styleUrls() {
61
- return {
62
- "$": ["tttx-icon.css"]
63
- };
64
- }
65
- static get properties() {
66
- return {
67
- "icon": {
68
- "type": "string",
69
- "mutable": false,
70
- "complexType": {
71
- "original": "string",
72
- "resolved": "string",
73
- "references": {}
74
- },
75
- "required": false,
76
- "optional": false,
77
- "docs": {
78
- "tags": [],
79
- "text": ""
80
- },
81
- "attribute": "icon",
82
- "reflect": false
83
- },
84
- "colour": {
85
- "type": "string",
86
- "mutable": false,
87
- "complexType": {
88
- "original": "string",
89
- "resolved": "string",
90
- "references": {}
91
- },
92
- "required": false,
93
- "optional": false,
94
- "docs": {
95
- "tags": [],
96
- "text": ""
97
- },
98
- "attribute": "colour",
99
- "reflect": false,
100
- "defaultValue": "'grey'"
101
- }
102
- };
103
- }
104
- static get elementRef() { return "el"; }
105
- static get listeners() {
106
- return [{
107
- "name": "click",
108
- "method": "handleDocumentClick",
109
- "target": "document",
110
- "capture": false,
111
- "passive": false
112
- }];
113
- }
114
- }
1
+ import { Host, h } from '@stencil/core';
2
+ import { createPopper } from '@popperjs/core';
3
+ export class TttxIcon {
4
+ constructor() {
5
+ this.icon = undefined;
6
+ this.colour = 'grey';
7
+ }
8
+ handleDocumentClick(event) {
9
+ if (!event.composedPath().includes(this.referenceElement)) {
10
+ if (this.popperElement) {
11
+ this.popperElement.removeAttribute('data-show');
12
+ }
13
+ if (this.popperInstance) {
14
+ this.popperInstance.update();
15
+ }
16
+ }
17
+ }
18
+ componentWillLoad() {
19
+ this.hasPopoverSlot = !!this.el.querySelector('[slot="popover"]');
20
+ }
21
+ componentDidLoad() {
22
+ if (this.popperElement) {
23
+ this.popperInstance = createPopper(this.referenceElement, this.popperElement, {
24
+ placement: 'top',
25
+ modifiers: [
26
+ {
27
+ name: 'flip',
28
+ options: {
29
+ fallbackPlacements: ['bottom'],
30
+ },
31
+ },
32
+ {
33
+ name: 'offset',
34
+ options: {
35
+ offset: [0, 12],
36
+ },
37
+ },
38
+ ],
39
+ });
40
+ }
41
+ }
42
+ disconnectedCallback() {
43
+ this.popperInstance.destroy();
44
+ }
45
+ render() {
46
+ return (h(Host, null, h("span", { onClick: () => {
47
+ if (this.popperElement) {
48
+ this.popperElement.setAttribute('data-show', '');
49
+ }
50
+ if (this.popperInstance) {
51
+ this.popperInstance.update();
52
+ }
53
+ }, ref: el => (this.referenceElement = el), class: `material-symbols-rounded ${this.colour ? this.colour : ''} ${this.hasPopoverSlot ? 'clickable' : ''}` }, this.icon), this.hasPopoverSlot && (h("div", { ref: el => (this.popperElement = el), class: "tooltip" }, h("slot", { name: "popover" }), h("div", { class: "arrow", "data-popper-arrow": true })))));
54
+ }
55
+ static get is() { return "tttx-icon"; }
56
+ static get encapsulation() { return "shadow"; }
57
+ static get originalStyleUrls() {
58
+ return {
59
+ "$": ["tttx-icon.scss"]
60
+ };
61
+ }
62
+ static get styleUrls() {
63
+ return {
64
+ "$": ["tttx-icon.css"]
65
+ };
66
+ }
67
+ static get properties() {
68
+ return {
69
+ "icon": {
70
+ "type": "string",
71
+ "mutable": false,
72
+ "complexType": {
73
+ "original": "string",
74
+ "resolved": "string",
75
+ "references": {}
76
+ },
77
+ "required": false,
78
+ "optional": false,
79
+ "docs": {
80
+ "tags": [],
81
+ "text": ""
82
+ },
83
+ "attribute": "icon",
84
+ "reflect": false
85
+ },
86
+ "colour": {
87
+ "type": "string",
88
+ "mutable": false,
89
+ "complexType": {
90
+ "original": "string",
91
+ "resolved": "string",
92
+ "references": {}
93
+ },
94
+ "required": false,
95
+ "optional": false,
96
+ "docs": {
97
+ "tags": [],
98
+ "text": ""
99
+ },
100
+ "attribute": "colour",
101
+ "reflect": false,
102
+ "defaultValue": "'grey'"
103
+ }
104
+ };
105
+ }
106
+ static get elementRef() { return "el"; }
107
+ static get listeners() {
108
+ return [{
109
+ "name": "click",
110
+ "method": "handleDocumentClick",
111
+ "target": "document",
112
+ "capture": false,
113
+ "passive": false
114
+ }];
115
+ }
116
+ }
@@ -1,29 +1,29 @@
1
- import icons from './../../../icons';
2
- const colours = ['red', 'blue', 'black', 'grey', 'green'];
3
- export default {
4
- title: 'Atoms/Icons',
5
- component: 'tttx-icon',
6
- argTypes: {
7
- icon: {
8
- control: {
9
- type: 'select',
10
- options: icons,
11
- },
12
- },
13
- colour: {
14
- control: {
15
- type: 'select',
16
- options: colours,
17
- },
18
- },
19
- },
20
- };
21
- const Template = ({ icon, colour }) => `<tttx-icon icon="${icon}" colour="${colour}" />`;
22
- export const Basic = Template.bind({});
23
- Basic.args = {
24
- icon: 'warning',
25
- colour: 'red',
26
- };
1
+ import icons from './../../../icons';
2
+ const colours = ['red', 'blue', 'black', 'grey', 'green'];
3
+ export default {
4
+ title: 'Atoms/Icons',
5
+ component: 'tttx-icon',
6
+ argTypes: {
7
+ icon: {
8
+ control: {
9
+ type: 'select',
10
+ options: icons,
11
+ },
12
+ },
13
+ colour: {
14
+ control: {
15
+ type: 'select',
16
+ options: colours,
17
+ },
18
+ },
19
+ },
20
+ };
21
+ const Template = ({ icon, colour }) => `<tttx-icon icon="${icon}" colour="${colour}" />`;
22
+ export const Basic = Template.bind({});
23
+ Basic.args = {
24
+ icon: 'warning',
25
+ colour: 'red',
26
+ };
27
27
  const WithPopoverTemplate = ({ icon, colour }) => `
28
28
  <div style="overflow: auto; height: 300px;">
29
29
  <div style="margin-top:150px; height:300px;">
@@ -39,9 +39,9 @@ const WithPopoverTemplate = ({ icon, colour }) => `
39
39
  </tttx-icon>
40
40
  </div>
41
41
  </div>
42
- `;
43
- export const WithPopover = WithPopoverTemplate.bind({});
44
- WithPopover.args = {
45
- icon: 'warning',
46
- colour: 'red',
47
- };
42
+ `;
43
+ export const WithPopover = WithPopoverTemplate.bind({});
44
+ WithPopover.args = {
45
+ icon: 'warning',
46
+ colour: 'red',
47
+ };
@@ -1,66 +1,66 @@
1
- import { h } from '@stencil/core';
2
- export class TttxLoadingSpinner {
3
- constructor() {
4
- this.loadingMessage = undefined;
5
- this.size = 'large';
6
- }
7
- renderLoadingMessage() {
8
- if (!this.loadingMessage)
9
- return '';
10
- return h("div", { class: "loading-text" }, "Loading, please wait...");
11
- }
12
- render() {
13
- return (h("div", { class: "spinner-container" }, h("div", { class: "loading-box" }, h("span", { class: `spinner ${this.size}` })), this.renderLoadingMessage()));
14
- }
15
- static get is() { return "tttx-loading-spinner"; }
16
- static get encapsulation() { return "shadow"; }
17
- static get originalStyleUrls() {
18
- return {
19
- "$": ["tttx-loading-spinner.scss"]
20
- };
21
- }
22
- static get styleUrls() {
23
- return {
24
- "$": ["tttx-loading-spinner.css"]
25
- };
26
- }
27
- static get properties() {
28
- return {
29
- "loadingMessage": {
30
- "type": "boolean",
31
- "mutable": true,
32
- "complexType": {
33
- "original": "boolean",
34
- "resolved": "boolean",
35
- "references": {}
36
- },
37
- "required": false,
38
- "optional": false,
39
- "docs": {
40
- "tags": [],
41
- "text": ""
42
- },
43
- "attribute": "loading-message",
44
- "reflect": false
45
- },
46
- "size": {
47
- "type": "string",
48
- "mutable": true,
49
- "complexType": {
50
- "original": "'small' | 'large'",
51
- "resolved": "\"large\" | \"small\"",
52
- "references": {}
53
- },
54
- "required": false,
55
- "optional": false,
56
- "docs": {
57
- "tags": [],
58
- "text": ""
59
- },
60
- "attribute": "size",
61
- "reflect": false,
62
- "defaultValue": "'large'"
63
- }
64
- };
65
- }
66
- }
1
+ import { h } from '@stencil/core';
2
+ export class TttxLoadingSpinner {
3
+ constructor() {
4
+ this.loadingMessage = undefined;
5
+ this.size = 'large';
6
+ }
7
+ renderLoadingMessage() {
8
+ if (!this.loadingMessage)
9
+ return '';
10
+ return h("div", { class: "loading-text" }, "Loading, please wait...");
11
+ }
12
+ render() {
13
+ return (h("div", { class: "spinner-container" }, h("div", { class: "loading-box" }, h("span", { class: `spinner ${this.size}` })), this.renderLoadingMessage()));
14
+ }
15
+ static get is() { return "tttx-loading-spinner"; }
16
+ static get encapsulation() { return "shadow"; }
17
+ static get originalStyleUrls() {
18
+ return {
19
+ "$": ["tttx-loading-spinner.scss"]
20
+ };
21
+ }
22
+ static get styleUrls() {
23
+ return {
24
+ "$": ["tttx-loading-spinner.css"]
25
+ };
26
+ }
27
+ static get properties() {
28
+ return {
29
+ "loadingMessage": {
30
+ "type": "boolean",
31
+ "mutable": true,
32
+ "complexType": {
33
+ "original": "boolean",
34
+ "resolved": "boolean",
35
+ "references": {}
36
+ },
37
+ "required": false,
38
+ "optional": false,
39
+ "docs": {
40
+ "tags": [],
41
+ "text": ""
42
+ },
43
+ "attribute": "loading-message",
44
+ "reflect": false
45
+ },
46
+ "size": {
47
+ "type": "string",
48
+ "mutable": true,
49
+ "complexType": {
50
+ "original": "'small' | 'large'",
51
+ "resolved": "\"large\" | \"small\"",
52
+ "references": {}
53
+ },
54
+ "required": false,
55
+ "optional": false,
56
+ "docs": {
57
+ "tags": [],
58
+ "text": ""
59
+ },
60
+ "attribute": "size",
61
+ "reflect": false,
62
+ "defaultValue": "'large'"
63
+ }
64
+ };
65
+ }
66
+ }
@@ -1,17 +1,17 @@
1
- export default {
2
- title: 'atoms/TTTX Loading Spinner',
3
- component: 'tttx-loading-spinner',
4
- argTypes: {
5
- loadingMessage: {
6
- control: 'boolean',
7
- },
8
- size: {
9
- control: { type: 'radio' },
10
- options: ['small', 'large'],
11
- },
12
- },
13
- };
14
- export const Example = args => {
15
- const size = args.size || 'large';
16
- return `<tttx-loading-spinner ${args.loadingMessage ? 'loading-message' : ''} size='${size}' />`;
17
- };
1
+ export default {
2
+ title: 'atoms/Loading Spinner',
3
+ component: 'tttx-loading-spinner',
4
+ argTypes: {
5
+ loadingMessage: {
6
+ control: 'boolean',
7
+ },
8
+ size: {
9
+ control: { type: 'radio' },
10
+ options: ['small', 'large'],
11
+ },
12
+ },
13
+ };
14
+ export const Example = args => {
15
+ const size = args.size || 'large';
16
+ return `<tttx-loading-spinner ${args.loadingMessage ? 'loading-message' : ''} size='${size}' />`;
17
+ };
@@ -1,96 +1,96 @@
1
- import { Host, h } from '@stencil/core';
2
- export class TttxPopoverContent {
3
- constructor() {
4
- this.header = undefined;
5
- this.body = undefined;
6
- this.linkcontext = undefined;
7
- this.linktext = undefined;
8
- }
9
- render() {
10
- 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'))));
11
- }
12
- static get is() { return "tttx-popover-content"; }
13
- static get encapsulation() { return "shadow"; }
14
- static get originalStyleUrls() {
15
- return {
16
- "$": ["tttx-popover-content.scss"]
17
- };
18
- }
19
- static get styleUrls() {
20
- return {
21
- "$": ["tttx-popover-content.css"]
22
- };
23
- }
24
- static get properties() {
25
- return {
26
- "header": {
27
- "type": "string",
28
- "mutable": false,
29
- "complexType": {
30
- "original": "string",
31
- "resolved": "string",
32
- "references": {}
33
- },
34
- "required": false,
35
- "optional": false,
36
- "docs": {
37
- "tags": [],
38
- "text": ""
39
- },
40
- "attribute": "header",
41
- "reflect": false
42
- },
43
- "body": {
44
- "type": "string",
45
- "mutable": false,
46
- "complexType": {
47
- "original": "string",
48
- "resolved": "string",
49
- "references": {}
50
- },
51
- "required": false,
52
- "optional": false,
53
- "docs": {
54
- "tags": [],
55
- "text": ""
56
- },
57
- "attribute": "body",
58
- "reflect": false
59
- },
60
- "linkcontext": {
61
- "type": "string",
62
- "mutable": false,
63
- "complexType": {
64
- "original": "string",
65
- "resolved": "string",
66
- "references": {}
67
- },
68
- "required": false,
69
- "optional": false,
70
- "docs": {
71
- "tags": [],
72
- "text": ""
73
- },
74
- "attribute": "linkcontext",
75
- "reflect": false
76
- },
77
- "linktext": {
78
- "type": "string",
79
- "mutable": false,
80
- "complexType": {
81
- "original": "string",
82
- "resolved": "string",
83
- "references": {}
84
- },
85
- "required": false,
86
- "optional": false,
87
- "docs": {
88
- "tags": [],
89
- "text": ""
90
- },
91
- "attribute": "linktext",
92
- "reflect": false
93
- }
94
- };
95
- }
96
- }
1
+ import { Host, h } from '@stencil/core';
2
+ export class TttxPopoverContent {
3
+ constructor() {
4
+ this.header = undefined;
5
+ this.body = undefined;
6
+ this.linkcontext = undefined;
7
+ this.linktext = undefined;
8
+ }
9
+ render() {
10
+ 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'))));
11
+ }
12
+ static get is() { return "tttx-popover-content"; }
13
+ static get encapsulation() { return "shadow"; }
14
+ static get originalStyleUrls() {
15
+ return {
16
+ "$": ["tttx-popover-content.scss"]
17
+ };
18
+ }
19
+ static get styleUrls() {
20
+ return {
21
+ "$": ["tttx-popover-content.css"]
22
+ };
23
+ }
24
+ static get properties() {
25
+ return {
26
+ "header": {
27
+ "type": "string",
28
+ "mutable": false,
29
+ "complexType": {
30
+ "original": "string",
31
+ "resolved": "string",
32
+ "references": {}
33
+ },
34
+ "required": false,
35
+ "optional": false,
36
+ "docs": {
37
+ "tags": [],
38
+ "text": ""
39
+ },
40
+ "attribute": "header",
41
+ "reflect": false
42
+ },
43
+ "body": {
44
+ "type": "string",
45
+ "mutable": false,
46
+ "complexType": {
47
+ "original": "string",
48
+ "resolved": "string",
49
+ "references": {}
50
+ },
51
+ "required": false,
52
+ "optional": false,
53
+ "docs": {
54
+ "tags": [],
55
+ "text": ""
56
+ },
57
+ "attribute": "body",
58
+ "reflect": false
59
+ },
60
+ "linkcontext": {
61
+ "type": "string",
62
+ "mutable": false,
63
+ "complexType": {
64
+ "original": "string",
65
+ "resolved": "string",
66
+ "references": {}
67
+ },
68
+ "required": false,
69
+ "optional": false,
70
+ "docs": {
71
+ "tags": [],
72
+ "text": ""
73
+ },
74
+ "attribute": "linkcontext",
75
+ "reflect": false
76
+ },
77
+ "linktext": {
78
+ "type": "string",
79
+ "mutable": false,
80
+ "complexType": {
81
+ "original": "string",
82
+ "resolved": "string",
83
+ "references": {}
84
+ },
85
+ "required": false,
86
+ "optional": false,
87
+ "docs": {
88
+ "tags": [],
89
+ "text": ""
90
+ },
91
+ "attribute": "linktext",
92
+ "reflect": false
93
+ }
94
+ };
95
+ }
96
+ }