@3t-transform/threeteeui 0.1.37 → 0.1.41
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/domsanitiser.options-277161b9.js +1667 -0
- package/dist/cjs/{index-457ca775.js → index-76f14107.js} +2 -88
- package/dist/cjs/loader.cjs.js +2 -3
- package/dist/cjs/tttx-button.cjs.entry.js +25 -25
- package/dist/cjs/tttx-filter.cjs.entry.js +159 -159
- package/dist/cjs/tttx-form.cjs.entry.js +457 -373
- package/dist/cjs/tttx-icon.cjs.entry.js +11 -11
- package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +59 -59
- package/dist/cjs/tttx-list.cjs.entry.js +32 -1694
- package/dist/cjs/tttx-loading-spinner.cjs.entry.js +16 -16
- package/dist/cjs/tttx-sorter.cjs.entry.js +102 -102
- package/dist/cjs/tttx-standalone-input.cjs.entry.js +79 -79
- package/dist/cjs/tttx-toolbar.cjs.entry.js +10 -10
- package/dist/cjs/tttx.cjs.js +2 -6
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/atoms/tttx-button/tttx-button.css +4 -4
- package/dist/collection/components/atoms/tttx-button/tttx-button.js +110 -110
- package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +14 -14
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +62 -62
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +22 -22
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +109 -109
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +38 -38
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +67 -67
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +17 -17
- package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +334 -334
- package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +62 -62
- package/dist/collection/components/molecules/tttx-form/lib/setErrorState.js +37 -37
- package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +61 -58
- package/dist/collection/components/molecules/tttx-form/tttx-form.css +98 -2
- package/dist/collection/components/molecules/tttx-form/tttx-form.js +477 -393
- package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +274 -218
- package/dist/collection/components/molecules/tttx-list/tttx-list.js +105 -105
- package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +43 -43
- package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +224 -224
- package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +42 -42
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +759 -759
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +172 -172
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +44 -44
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +14 -14
- package/dist/collection/components/palette.stories.js +7 -7
- package/dist/collection/docs/gettingstarted-developer.stories.js +5 -5
- package/dist/collection/icons.js +2838 -2838
- package/dist/collection/index.js +1 -1
- package/dist/collection/shared/domsanitiser.options.js +14 -14
- package/dist/components/domsanitiser.options.js +1664 -0
- package/dist/components/index.d.ts +0 -9
- package/dist/components/index.js +1 -1
- package/dist/components/tttx-button.js +49 -49
- package/dist/components/tttx-filter.js +191 -191
- package/dist/components/tttx-form.js +475 -391
- package/dist/components/tttx-icon2.js +28 -28
- package/dist/components/tttx-keyvalue-block.js +76 -76
- package/dist/components/tttx-list.js +54 -1716
- package/dist/components/tttx-loading-spinner.js +33 -33
- package/dist/components/tttx-sorter.js +130 -130
- package/dist/components/tttx-standalone-input.js +130 -130
- package/dist/components/tttx-toolbar.js +26 -26
- package/dist/esm/domsanitiser.options-cc420431.js +1664 -0
- package/dist/esm/{index-d784fb3e.js → index-9cde46a5.js} +3 -88
- package/dist/esm/loader.js +2 -3
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/tttx-button.entry.js +25 -25
- package/dist/esm/tttx-filter.entry.js +159 -159
- package/dist/esm/tttx-form.entry.js +457 -373
- package/dist/esm/tttx-icon.entry.js +11 -11
- package/dist/esm/tttx-keyvalue-block.entry.js +59 -59
- package/dist/esm/tttx-list.entry.js +32 -1694
- package/dist/esm/tttx-loading-spinner.entry.js +16 -16
- package/dist/esm/tttx-sorter.entry.js +102 -102
- package/dist/esm/tttx-standalone-input.entry.js +79 -79
- package/dist/esm/tttx-toolbar.entry.js +10 -10
- package/dist/esm/tttx.js +2 -3
- package/dist/tttx/{p-400868f1.entry.js → p-3b1be372.entry.js} +1 -1
- package/dist/tttx/{p-563605b2.entry.js → p-561224f5.entry.js} +1 -1
- package/dist/tttx/{p-b720c4ad.entry.js → p-9f1e9cc1.entry.js} +1 -1
- package/dist/tttx/{p-798a098a.entry.js → p-aef96333.entry.js} +1 -1
- package/dist/tttx/p-b4290a5b.js +3 -0
- package/dist/tttx/p-bd1edaed.entry.js +1 -0
- package/dist/tttx/p-d0ff9ad0.entry.js +1 -0
- package/dist/tttx/{p-cac26a1b.entry.js → p-d2f1aa8e.entry.js} +1 -1
- package/dist/tttx/p-db059a69.js +2 -0
- package/dist/tttx/p-dc2a37b0.entry.js +1 -0
- package/dist/tttx/{p-ab6ce9f6.entry.js → p-e53c7f9d.entry.js} +1 -1
- package/dist/tttx/{p-92cade7f.entry.js → p-f885f17a.entry.js} +1 -1
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +10 -10
- package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +10 -10
- package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +5 -5
- package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +20 -20
- package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.d.ts +7 -7
- package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.d.ts +9 -9
- package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +6 -6
- package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +17 -17
- package/dist/types/components/molecules/tttx-filter/tttx-filter.d.ts +39 -39
- package/dist/types/components/molecules/tttx-filter/tttx-filter.stories.d.ts +68 -68
- package/dist/types/components/molecules/tttx-form/lib/setErrorState.d.ts +13 -13
- package/dist/types/components/molecules/tttx-form/lib/validityCheck.d.ts +17 -17
- package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +133 -111
- package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +278 -13
- package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +11 -11
- package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +14 -14
- package/dist/types/components/molecules/tttx-sorter/tttx-sorter.d.ts +19 -19
- package/dist/types/components/molecules/tttx-sorter/tttx-sorter.stories.d.ts +30 -30
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +69 -69
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +143 -143
- package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.d.ts +4 -4
- package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.stories.d.ts +13 -13
- package/dist/types/components/palette.stories.d.ts +6 -6
- package/dist/types/components.d.ts +1 -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/dist/types/shared/domsanitiser.options.d.ts +10 -10
- package/dist/types/stencil-public-runtime.d.ts +3 -59
- package/loader/index.d.ts +0 -9
- package/package.json +1 -1
- package/dist/tttx/p-0ebffdfc.js +0 -2
- package/dist/tttx/p-72e7f7dd.entry.js +0 -3
- package/dist/tttx/p-c4162029.entry.js +0 -1
- package/dist/tttx/p-eb126fd0.entry.js +0 -1
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
title: 'atoms/Key Value Block',
|
|
3
|
-
component: 'tttx-keyvalue-block'
|
|
4
|
-
};
|
|
5
|
-
const keyValues = {
|
|
6
|
-
'Name': 'John Doe',
|
|
7
|
-
'Date of birth': '14 Jan 1981',
|
|
8
|
-
'Start of postcode': 'AB10'
|
|
9
|
-
};
|
|
10
|
-
export const KeyValueBlock = () => {
|
|
11
|
-
return `<tttx-keyvalue-block keyvalues='${JSON.stringify(keyValues)}' />`;
|
|
12
|
-
};
|
|
13
|
-
const keyValueArray = [
|
|
14
|
-
{
|
|
15
|
-
title: "Electrical Designer",
|
|
16
|
-
subTitle: "Satchwell",
|
|
17
|
-
data: "18 Oct 2021 - Present"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
title: "Electrical Inspector",
|
|
21
|
-
subTitle: "Fastned",
|
|
22
|
-
data: "20 Dec 2016 - 10 Oct 2021"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
title: "Electrical Tech Prof I - Eng",
|
|
26
|
-
subTitle: "Voltech",
|
|
27
|
-
data: "20 Dec 2009 - 20 Nov 2016"
|
|
28
|
-
},
|
|
29
|
-
];
|
|
30
|
-
export const KeyValueSubtitleBlock = () => {
|
|
31
|
-
return `<tttx-keyvalue-block keyvalues='${JSON.stringify(keyValueArray)}' />`;
|
|
32
|
-
};
|
|
33
|
-
export const HorizontalKeyValueBlock = () => {
|
|
34
|
-
return `<tttx-keyvalue-block horizontal='true' keyvalues='${JSON.stringify(keyValues)}' />`;
|
|
35
|
-
};
|
|
36
|
-
export const HorizontalKeyValueSubtitleBlock = () => {
|
|
37
|
-
return `<tttx-keyvalue-block horizontal='true' keyvalues='${JSON.stringify(keyValueArray)}' />`;
|
|
38
|
-
};
|
|
1
|
+
export default {
|
|
2
|
+
title: 'atoms/Key Value Block',
|
|
3
|
+
component: 'tttx-keyvalue-block'
|
|
4
|
+
};
|
|
5
|
+
const keyValues = {
|
|
6
|
+
'Name': 'John Doe',
|
|
7
|
+
'Date of birth': '14 Jan 1981',
|
|
8
|
+
'Start of postcode': 'AB10'
|
|
9
|
+
};
|
|
10
|
+
export const KeyValueBlock = () => {
|
|
11
|
+
return `<tttx-keyvalue-block keyvalues='${JSON.stringify(keyValues)}' />`;
|
|
12
|
+
};
|
|
13
|
+
const keyValueArray = [
|
|
14
|
+
{
|
|
15
|
+
title: "Electrical Designer",
|
|
16
|
+
subTitle: "Satchwell",
|
|
17
|
+
data: "18 Oct 2021 - Present"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
title: "Electrical Inspector",
|
|
21
|
+
subTitle: "Fastned",
|
|
22
|
+
data: "20 Dec 2016 - 10 Oct 2021"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
title: "Electrical Tech Prof I - Eng",
|
|
26
|
+
subTitle: "Voltech",
|
|
27
|
+
data: "20 Dec 2009 - 20 Nov 2016"
|
|
28
|
+
},
|
|
29
|
+
];
|
|
30
|
+
export const KeyValueSubtitleBlock = () => {
|
|
31
|
+
return `<tttx-keyvalue-block keyvalues='${JSON.stringify(keyValueArray)}' />`;
|
|
32
|
+
};
|
|
33
|
+
export const HorizontalKeyValueBlock = () => {
|
|
34
|
+
return `<tttx-keyvalue-block horizontal='true' keyvalues='${JSON.stringify(keyValues)}' />`;
|
|
35
|
+
};
|
|
36
|
+
export const HorizontalKeyValueSubtitleBlock = () => {
|
|
37
|
+
return `<tttx-keyvalue-block horizontal='true' keyvalues='${JSON.stringify(keyValueArray)}' />`;
|
|
38
|
+
};
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2
|
-
import { h } from '@stencil/core';
|
|
3
|
-
export class TttxLoadingSpinner {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.loadingMessage = undefined;
|
|
6
|
-
this.size = 'large';
|
|
7
|
-
}
|
|
8
|
-
renderLoadingMessage() {
|
|
9
|
-
if (!this.loadingMessage)
|
|
10
|
-
return '';
|
|
11
|
-
return h("div", { class: "loading-text" }, "Loading, please wait...");
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
return (h("div", null, h("div", { class: "loading-box" }, h("span", { class: `spinner ${this.size}` })), this.renderLoadingMessage()));
|
|
15
|
-
}
|
|
16
|
-
static get is() { return "tttx-loading-spinner"; }
|
|
17
|
-
static get encapsulation() { return "shadow"; }
|
|
18
|
-
static get originalStyleUrls() {
|
|
19
|
-
return {
|
|
20
|
-
"$": ["tttx-loading-spinner.scss"]
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
static get styleUrls() {
|
|
24
|
-
return {
|
|
25
|
-
"$": ["tttx-loading-spinner.css"]
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
static get properties() {
|
|
29
|
-
return {
|
|
30
|
-
"loadingMessage": {
|
|
31
|
-
"type": "boolean",
|
|
32
|
-
"mutable": true,
|
|
33
|
-
"complexType": {
|
|
34
|
-
"original": "boolean",
|
|
35
|
-
"resolved": "boolean",
|
|
36
|
-
"references": {}
|
|
37
|
-
},
|
|
38
|
-
"required": false,
|
|
39
|
-
"optional": false,
|
|
40
|
-
"docs": {
|
|
41
|
-
"tags": [],
|
|
42
|
-
"text": ""
|
|
43
|
-
},
|
|
44
|
-
"attribute": "loading-message",
|
|
45
|
-
"reflect": false
|
|
46
|
-
},
|
|
47
|
-
"size": {
|
|
48
|
-
"type": "string",
|
|
49
|
-
"mutable": true,
|
|
50
|
-
"complexType": {
|
|
51
|
-
"original": "'small' | 'large'",
|
|
52
|
-
"resolved": "\"large\" | \"small\"",
|
|
53
|
-
"references": {}
|
|
54
|
-
},
|
|
55
|
-
"required": false,
|
|
56
|
-
"optional": false,
|
|
57
|
-
"docs": {
|
|
58
|
-
"tags": [],
|
|
59
|
-
"text": ""
|
|
60
|
-
},
|
|
61
|
-
"attribute": "size",
|
|
62
|
-
"reflect": false,
|
|
63
|
-
"defaultValue": "'large'"
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
}
|
|
1
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2
|
+
import { h } from '@stencil/core';
|
|
3
|
+
export class TttxLoadingSpinner {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.loadingMessage = undefined;
|
|
6
|
+
this.size = 'large';
|
|
7
|
+
}
|
|
8
|
+
renderLoadingMessage() {
|
|
9
|
+
if (!this.loadingMessage)
|
|
10
|
+
return '';
|
|
11
|
+
return h("div", { class: "loading-text" }, "Loading, please wait...");
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return (h("div", null, h("div", { class: "loading-box" }, h("span", { class: `spinner ${this.size}` })), this.renderLoadingMessage()));
|
|
15
|
+
}
|
|
16
|
+
static get is() { return "tttx-loading-spinner"; }
|
|
17
|
+
static get encapsulation() { return "shadow"; }
|
|
18
|
+
static get originalStyleUrls() {
|
|
19
|
+
return {
|
|
20
|
+
"$": ["tttx-loading-spinner.scss"]
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
static get styleUrls() {
|
|
24
|
+
return {
|
|
25
|
+
"$": ["tttx-loading-spinner.css"]
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
static get properties() {
|
|
29
|
+
return {
|
|
30
|
+
"loadingMessage": {
|
|
31
|
+
"type": "boolean",
|
|
32
|
+
"mutable": true,
|
|
33
|
+
"complexType": {
|
|
34
|
+
"original": "boolean",
|
|
35
|
+
"resolved": "boolean",
|
|
36
|
+
"references": {}
|
|
37
|
+
},
|
|
38
|
+
"required": false,
|
|
39
|
+
"optional": false,
|
|
40
|
+
"docs": {
|
|
41
|
+
"tags": [],
|
|
42
|
+
"text": ""
|
|
43
|
+
},
|
|
44
|
+
"attribute": "loading-message",
|
|
45
|
+
"reflect": false
|
|
46
|
+
},
|
|
47
|
+
"size": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"mutable": true,
|
|
50
|
+
"complexType": {
|
|
51
|
+
"original": "'small' | 'large'",
|
|
52
|
+
"resolved": "\"large\" | \"small\"",
|
|
53
|
+
"references": {}
|
|
54
|
+
},
|
|
55
|
+
"required": false,
|
|
56
|
+
"optional": false,
|
|
57
|
+
"docs": {
|
|
58
|
+
"tags": [],
|
|
59
|
+
"text": ""
|
|
60
|
+
},
|
|
61
|
+
"attribute": "size",
|
|
62
|
+
"reflect": false,
|
|
63
|
+
"defaultValue": "'large'"
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
}
|
package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js
CHANGED
|
@@ -1,17 +1,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
|
+
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
|
+
};
|