@3t-transform/threeteeui 0.0.3 → 0.0.5
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-eb8fc323.js → index-8a7479e4.js} +22 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/qualifications-list.cjs.entry.js +7149 -0
- package/dist/cjs/toolbar-02115550.js +864 -0
- package/dist/cjs/tttx-icon.cjs.entry.js +21 -0
- package/dist/cjs/tttx-page.cjs.entry.js +59 -58
- package/dist/cjs/tttx-worksheet.cjs.entry.js +4 -3
- package/dist/cjs/tttx.cjs.js +2 -2
- package/dist/cjs/{toolbar-656be6e6.js → ui.popover-27780a1d.js} +9546 -10229
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/components/tttx-icon/tttx-icon.css +89 -0
- package/dist/collection/components/components/tttx-icon/tttx-icon.js +59 -0
- package/dist/collection/components/components/tttx-icon/tttx-icon.stories.js +40 -0
- package/dist/collection/components/patterns/qualifications-list/qualifications-list.js +32 -0
- package/dist/collection/components/patterns/qualifications-list/qualifications-list.stories.js +7 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/qualifications-list.d.ts +11 -0
- package/dist/components/qualifications-list.js +7162 -0
- package/dist/components/tttx-icon.d.ts +11 -0
- package/dist/components/tttx-icon.js +37 -0
- package/dist/components/tttx-page.js +2 -1
- package/dist/components/tttx-worksheet.js +1 -1
- package/dist/components/tttx-worksheet2.js +61 -33431
- package/dist/{esm/toolbar-cede4385.js → components/ui.popover.js} +9447 -10229
- package/dist/esm/{index-4c11a593.js → index-854ff56f.js} +22 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/qualifications-list.entry.js +7145 -0
- package/dist/esm/toolbar-b147a3aa.js +862 -0
- package/dist/esm/tttx-icon.entry.js +17 -0
- package/dist/esm/tttx-page.entry.js +3 -2
- package/dist/esm/tttx-worksheet.entry.js +3 -2
- package/dist/esm/tttx.js +2 -2
- package/dist/esm/ui.popover-0c8f8d79.js +33449 -0
- package/dist/tttx/p-4f4963aa.entry.js +1 -0
- package/dist/tttx/p-69ca02f6.entry.js +1 -0
- package/dist/tttx/p-7244abd4.entry.js +1 -0
- package/dist/tttx/p-7eb8146c.entry.js +1 -0
- package/dist/tttx/p-81cad444.js +1 -0
- package/dist/tttx/p-955d89ac.js +1 -0
- package/dist/tttx/p-ddfeb0ba.js +2 -0
- package/dist/tttx/tttx.css +1 -1
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/components/tttx-icon/tttx-icon.d.ts +5 -0
- package/dist/types/components/components/tttx-icon/tttx-icon.stories.d.ts +24 -0
- package/dist/types/components/patterns/qualifications-list/qualifications-list.d.ts +6 -0
- package/dist/types/components/patterns/qualifications-list/qualifications-list.stories.d.ts +5 -0
- package/dist/types/components.d.ts +30 -0
- package/package.json +2 -3
- package/dist/tttx/p-2681b874.js +0 -2
- package/dist/tttx/p-285977b3.entry.js +0 -1
- package/dist/tttx/p-997a8339.entry.js +0 -1
- package/dist/tttx/p-d038fe18.js +0 -1
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
@import url("https://fonts.googleapis.com/css?family=Roboto&display=swap");
|
|
2
|
+
@import url("https://fonts.googleapis.com/css2?family=Material+Icons+Round");
|
|
3
|
+
* {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.flex-start {
|
|
8
|
+
justify-content: start;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.flex-end {
|
|
12
|
+
justify-content: end;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.flex-centre {
|
|
16
|
+
justify-content: center;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[class^=col-] {
|
|
20
|
+
display: flex;
|
|
21
|
+
/* we need to overright bootstrap to get the buttering we want */
|
|
22
|
+
padding-left: 8px !important;
|
|
23
|
+
padding-right: 8px !important;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
h1, h2, h3, h4, h5, h6, p, label, small {
|
|
27
|
+
margin: 0;
|
|
28
|
+
padding: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
h1, h2, h3, h4, h5, h6, p, label {
|
|
32
|
+
display: block;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
* {
|
|
36
|
+
font-family: "Roboto", sans-serif;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
html,
|
|
40
|
+
body {
|
|
41
|
+
font-weight: normal;
|
|
42
|
+
font-size: 16px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
h1 {
|
|
46
|
+
font-weight: 700;
|
|
47
|
+
font-size: 24px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
h2 {
|
|
51
|
+
font-weight: 700;
|
|
52
|
+
font-size: 20px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
h3 {
|
|
56
|
+
font-weight: 700;
|
|
57
|
+
font-size: 18px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
h4 {
|
|
61
|
+
font-weight: normal;
|
|
62
|
+
font-size: 14px;
|
|
63
|
+
text-transform: uppercase;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
button {
|
|
67
|
+
font-weight: 500;
|
|
68
|
+
font-size: 14px;
|
|
69
|
+
text-transform: uppercase;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
small {
|
|
73
|
+
font-weight: normal;
|
|
74
|
+
font-size: 14px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
label {
|
|
78
|
+
font-weight: 700;
|
|
79
|
+
font-size: 16px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:host {
|
|
83
|
+
display: block;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.material-icons-round {
|
|
87
|
+
vertical-align: -6px;
|
|
88
|
+
color: var(--ui-color-lt);
|
|
89
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
|
+
export class TttxIcon {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.name = undefined;
|
|
5
|
+
this.color = undefined;
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return (h("span", { class: "material-icons-round", style: { color: this.color } }, this.name));
|
|
9
|
+
}
|
|
10
|
+
static get is() { return "tttx-icon"; }
|
|
11
|
+
static get originalStyleUrls() {
|
|
12
|
+
return {
|
|
13
|
+
"$": ["tttx-icon.scss"]
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
static get styleUrls() {
|
|
17
|
+
return {
|
|
18
|
+
"$": ["tttx-icon.css"]
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
static get properties() {
|
|
22
|
+
return {
|
|
23
|
+
"name": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"mutable": false,
|
|
26
|
+
"complexType": {
|
|
27
|
+
"original": "string",
|
|
28
|
+
"resolved": "string",
|
|
29
|
+
"references": {}
|
|
30
|
+
},
|
|
31
|
+
"required": false,
|
|
32
|
+
"optional": false,
|
|
33
|
+
"docs": {
|
|
34
|
+
"tags": [],
|
|
35
|
+
"text": ""
|
|
36
|
+
},
|
|
37
|
+
"attribute": "name",
|
|
38
|
+
"reflect": false
|
|
39
|
+
},
|
|
40
|
+
"color": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"mutable": false,
|
|
43
|
+
"complexType": {
|
|
44
|
+
"original": "string",
|
|
45
|
+
"resolved": "string",
|
|
46
|
+
"references": {}
|
|
47
|
+
},
|
|
48
|
+
"required": false,
|
|
49
|
+
"optional": true,
|
|
50
|
+
"docs": {
|
|
51
|
+
"tags": [],
|
|
52
|
+
"text": ""
|
|
53
|
+
},
|
|
54
|
+
"attribute": "color",
|
|
55
|
+
"reflect": false
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import './icon-button.css';
|
|
2
|
+
export default {
|
|
3
|
+
title: 'Components/Icon',
|
|
4
|
+
argTypes: {
|
|
5
|
+
name: {
|
|
6
|
+
options: [
|
|
7
|
+
'check_circle',
|
|
8
|
+
'report_problem',
|
|
9
|
+
'report',
|
|
10
|
+
'menu',
|
|
11
|
+
'thumb_up'
|
|
12
|
+
],
|
|
13
|
+
control: {
|
|
14
|
+
type: 'select'
|
|
15
|
+
},
|
|
16
|
+
defaultValue: 'check_circle',
|
|
17
|
+
description: 'The name of the icon. Exhaustive list can be found in the [Google Material Icons guide](https://fonts.google.com/icons?icon.style=Rounded&icon.set=Material+Icons)'
|
|
18
|
+
},
|
|
19
|
+
color: {
|
|
20
|
+
control: {
|
|
21
|
+
type: 'color'
|
|
22
|
+
},
|
|
23
|
+
description: 'The colour to apply to the icon. Accepts any CSS color attribute.'
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
const Template = (args) => `
|
|
28
|
+
<tttx-icon name='${args.name}' ${args.color ? `color='${args.color}' ` : ''}/>
|
|
29
|
+
`;
|
|
30
|
+
export const Default = Template.bind({});
|
|
31
|
+
export const WithElements = (args) => `
|
|
32
|
+
<tttx-icon name='${args.name}'${args.color ? ` color='${args.color}'` : ''}></tttx-icon>
|
|
33
|
+
<div style='display: inline'>Inline element beside icon</div>
|
|
34
|
+
<div>Block element below Icon</div>
|
|
35
|
+
`;
|
|
36
|
+
export const Button = (args) => `
|
|
37
|
+
<button class='icon-example__button'>
|
|
38
|
+
<tttx-icon name='${args.name}' ${args.color ? `color='${args.color}' ` : ''}/>
|
|
39
|
+
</button>
|
|
40
|
+
`;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { h, Host } from '@stencil/core';
|
|
2
|
+
import List from 'devextreme/esm/ui/list';
|
|
3
|
+
import CustomStore from 'devextreme/esm/data/custom_store';
|
|
4
|
+
import DataSource from 'devextreme/esm/data/data_source';
|
|
5
|
+
export class QualificationsList {
|
|
6
|
+
componentDidLoad() {
|
|
7
|
+
const store = new CustomStore({
|
|
8
|
+
key: 'id',
|
|
9
|
+
load: async () => {
|
|
10
|
+
const userId = '83526262-996f-48bc-9927-60233074d144';
|
|
11
|
+
const continuationToken = this.continuationToken ? `&${this.continuationToken}` : '';
|
|
12
|
+
return fetch(`https://pr-626.dev.3tplatform.com/v2/attestations?UserId=${userId}&Limit=1${continuationToken}`).then(response => {
|
|
13
|
+
console.log(response.body);
|
|
14
|
+
//this.continuationToken = response.body.continuationToken;
|
|
15
|
+
return response.body;
|
|
16
|
+
});
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
const dataSource = new DataSource({ store });
|
|
20
|
+
new List(this.listWrapper, {
|
|
21
|
+
dataSource: dataSource,
|
|
22
|
+
itemTemplate: (data) => {
|
|
23
|
+
console.log(data);
|
|
24
|
+
return h("p", null, data.name);
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
render() {
|
|
29
|
+
return (h(Host, null, h("div", { ref: el => (this.listWrapper = el) })));
|
|
30
|
+
}
|
|
31
|
+
static get is() { return "qualifications-list"; }
|
|
32
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/* tttx custom elements */
|
|
2
|
+
export { QualificationsList as QualificationsList } from '../types/components/patterns/qualifications-list/qualifications-list';
|
|
3
|
+
export { TttxIcon as TttxIcon } from '../types/components/components/tttx-icon/tttx-icon';
|
|
2
4
|
export { TttxPage as TttxPage } from '../types/components/patterns/tttx-page/tttx-page';
|
|
3
5
|
export { TttxWorksheet as TttxWorksheet } from '../types/components/patterns/tttx-worksheet/tttx-worksheet';
|
|
4
6
|
|
package/dist/components/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
2
|
+
export { QualificationsList, defineCustomElement as defineCustomElementQualificationsList } from './qualifications-list.js';
|
|
3
|
+
export { TttxIcon, defineCustomElement as defineCustomElementTttxIcon } from './tttx-icon.js';
|
|
2
4
|
export { TttxPage, defineCustomElement as defineCustomElementTttxPage } from './tttx-page.js';
|
|
3
5
|
export { TttxWorksheet, defineCustomElement as defineCustomElementTttxWorksheet } from './tttx-worksheet.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface QualificationsList extends Components.QualificationsList, HTMLElement {}
|
|
4
|
+
export const QualificationsList: {
|
|
5
|
+
prototype: QualificationsList;
|
|
6
|
+
new (): QualificationsList;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|