@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.
- package/dist/cjs/{index-bf39be87.js → index-864b7110.js} +4 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/tttx-button.cjs.entry.js +18 -18
- package/dist/cjs/tttx-checkbox.cjs.entry.js +18 -18
- package/dist/cjs/tttx-form.cjs.entry.js +364 -176
- package/dist/cjs/tttx-icon.cjs.entry.js +56 -54
- package/dist/cjs/tttx-list.cjs.entry.js +188 -188
- package/dist/cjs/tttx-loading-spinner.cjs.entry.js +16 -16
- package/dist/cjs/tttx-popover-content.cjs.entry.js +13 -13
- package/dist/cjs/tttx-standalone-input.cjs.entry.js +127 -127
- package/dist/cjs/tttx-table.cjs.entry.js +60 -0
- package/dist/cjs/tttx.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/atoms/tttx-button/tttx-button.js +93 -93
- package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +25 -25
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +116 -114
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +32 -32
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +66 -66
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +17 -17
- package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.js +96 -96
- package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.stories.js +23 -23
- package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.js +101 -101
- package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.stories.js +9 -9
- package/dist/collection/components/molecules/tttx-form/tttx-form.js +451 -249
- package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +109 -102
- package/dist/collection/components/molecules/tttx-list/tttx-list.js +311 -311
- package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +15 -15
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +569 -569
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +134 -134
- package/dist/collection/components/molecules/tttx-table/tttx-table.css +166 -0
- package/dist/collection/components/molecules/tttx-table/tttx-table.js +177 -0
- package/dist/collection/components/molecules/tttx-table/tttx-table.stories.js +81 -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/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/tttx-button.js +35 -35
- package/dist/components/tttx-checkbox.js +36 -36
- package/dist/components/tttx-form.js +381 -193
- package/dist/components/tttx-icon2.js +73 -71
- package/dist/components/tttx-list.js +214 -214
- package/dist/components/tttx-loading-spinner2.js +33 -33
- package/dist/components/tttx-popover-content.js +1 -37
- package/dist/components/tttx-popover-content2.js +39 -0
- package/dist/components/tttx-standalone-input.js +169 -168
- package/dist/components/tttx-table.d.ts +11 -0
- package/dist/components/tttx-table.js +91 -0
- package/dist/esm/{index-63c4d25e.js → index-232e347b.js} +4 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/tttx-button.entry.js +18 -18
- package/dist/esm/tttx-checkbox.entry.js +18 -18
- package/dist/esm/tttx-form.entry.js +364 -176
- package/dist/esm/tttx-icon.entry.js +56 -54
- package/dist/esm/tttx-list.entry.js +188 -188
- package/dist/esm/tttx-loading-spinner.entry.js +16 -16
- package/dist/esm/tttx-popover-content.entry.js +13 -13
- package/dist/esm/tttx-standalone-input.entry.js +127 -127
- package/dist/esm/tttx-table.entry.js +56 -0
- package/dist/esm/tttx.js +3 -3
- package/dist/tttx/{p-2d54f8aa.entry.js → p-01e1894e.entry.js} +1 -1
- package/dist/tttx/{p-709246f5.entry.js → p-10316ff1.entry.js} +1 -1
- package/dist/tttx/p-125f06b3.entry.js +1 -0
- package/dist/tttx/p-184c4fae.js +2 -0
- package/dist/tttx/{p-ad0c3fe4.entry.js → p-3973b7dd.entry.js} +1 -1
- package/dist/tttx/p-5ce1ba22.entry.js +1 -0
- package/dist/tttx/{p-4c57bcbd.entry.js → p-6828fe6f.entry.js} +1 -1
- package/dist/tttx/p-b1c22f5f.entry.js +1 -0
- package/dist/tttx/{p-1a4eb1f3.entry.js → p-c7f9be65.entry.js} +1 -1
- package/dist/tttx/{p-2b6720ac.entry.js → p-fe4c70b2.entry.js} +1 -1
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +9 -9
- package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +20 -20
- package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +14 -14
- package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +21 -21
- 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/atoms/tttx-popover-content/tttx-popover-content.d.ts +7 -7
- package/dist/types/components/atoms/tttx-popover-content/tttx-popover-content.stories.d.ts +18 -18
- package/dist/types/components/atoms/ttx-checkbox/tttx-checkbox.d.ts +9 -9
- package/dist/types/components/atoms/ttx-checkbox/tttx-checkbox.stories.d.ts +6 -6
- package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +134 -18
- package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +12 -6
- package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +51 -51
- package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +13 -13
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +38 -38
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +106 -106
- package/dist/types/components/molecules/tttx-table/tttx-table.d.ts +15 -0
- package/dist/types/components/molecules/tttx-table/tttx-table.stories.d.ts +21 -0
- package/dist/types/components/palette.stories.d.ts +6 -6
- package/dist/types/components.d.ts +29 -1
- 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/package.json +7 -4
- package/dist/tttx/p-28e4c359.entry.js +0 -1
- package/dist/tttx/p-95a29e09.entry.js +0 -1
- 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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
static get
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
"
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
"
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
"
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
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
|
+
}
|
package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
title: 'atoms/
|
|
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
|
+
}
|