@3t-transform/threeteeui 0.0.4 → 0.0.6
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/tttx-icon.cjs.entry.js +21 -0
- package/dist/cjs/tttx-page.cjs.entry.js +1 -1
- package/dist/cjs/tttx-worksheet.cjs.entry.js +1 -1
- package/dist/cjs/tttx.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -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/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/tttx-icon.d.ts +11 -0
- package/dist/components/tttx-icon.js +37 -0
- package/dist/esm/{index-4c11a593.js → index-854ff56f.js} +22 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/tttx-icon.entry.js +17 -0
- package/dist/esm/tttx-page.entry.js +1 -1
- package/dist/esm/tttx-worksheet.entry.js +1 -1
- package/dist/esm/tttx.js +2 -2
- package/dist/tttx/{p-997a8339.entry.js → p-4b57de2e.entry.js} +1 -1
- package/dist/tttx/{p-285977b3.entry.js → p-61f78304.entry.js} +1 -1
- package/dist/tttx/p-7244abd4.entry.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.d.ts +17 -0
- package/package.json +1 -1
- package/dist/tttx/p-2681b874.js +0 -2
|
@@ -396,7 +396,11 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
396
396
|
1 /* VNODE_FLAGS.isSlotReference */;
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
|
-
if (newVNode.$
|
|
399
|
+
if (newVNode.$text$ !== null) {
|
|
400
|
+
// create text node
|
|
401
|
+
elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
|
|
402
|
+
}
|
|
403
|
+
else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
|
|
400
404
|
// create a slot reference node
|
|
401
405
|
elm = newVNode.$elm$ =
|
|
402
406
|
doc.createTextNode('');
|
|
@@ -758,7 +762,9 @@ const patch = (oldVNode, newVNode) => {
|
|
|
758
762
|
const oldChildren = oldVNode.$children$;
|
|
759
763
|
const newChildren = newVNode.$children$;
|
|
760
764
|
const tag = newVNode.$tag$;
|
|
761
|
-
|
|
765
|
+
const text = newVNode.$text$;
|
|
766
|
+
let defaultHolder;
|
|
767
|
+
if (text === null) {
|
|
762
768
|
{
|
|
763
769
|
if (tag === 'slot')
|
|
764
770
|
;
|
|
@@ -775,6 +781,11 @@ const patch = (oldVNode, newVNode) => {
|
|
|
775
781
|
updateChildren(elm, oldChildren, newVNode, newChildren);
|
|
776
782
|
}
|
|
777
783
|
else if (newChildren !== null) {
|
|
784
|
+
// no old child vnodes, but there are new child vnodes to add
|
|
785
|
+
if (oldVNode.$text$ !== null) {
|
|
786
|
+
// the old vnode was text, so be sure to clear it out
|
|
787
|
+
elm.textContent = '';
|
|
788
|
+
}
|
|
778
789
|
// add the new vnode children
|
|
779
790
|
addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
|
|
780
791
|
}
|
|
@@ -783,6 +794,15 @@ const patch = (oldVNode, newVNode) => {
|
|
|
783
794
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
784
795
|
}
|
|
785
796
|
}
|
|
797
|
+
else if ((defaultHolder = elm['s-cr'])) {
|
|
798
|
+
// this element has slotted content
|
|
799
|
+
defaultHolder.parentNode.textContent = text;
|
|
800
|
+
}
|
|
801
|
+
else if (oldVNode.$text$ !== text) {
|
|
802
|
+
// update the text content for the text only vnode
|
|
803
|
+
// and also only if the text is different than before
|
|
804
|
+
elm.data = text;
|
|
805
|
+
}
|
|
786
806
|
};
|
|
787
807
|
const updateFallbackSlotVisibility = (elm) => {
|
|
788
808
|
// tslint:disable-next-line: prefer-const
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-8a7479e4.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
8
|
Stencil Client Patch Esm v2.20.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["tttx-worksheet.cjs",[[4,"tttx-worksheet",{"pageSize":[1,"page-size"]}]]],["tttx-page.cjs",[[4,"tttx-page",{"appName":[1,"app-name"],"pageTitle":[1,"page-title"],"lastUpdated":[1,"last-updated"],"manageAccountsUrl":[1,"manage-accounts-url"],"logoutUrl":[1,"logout-url"],"pageSize":[1,"page-size"],"helpUrl":[1,"help-url"]}]]]], options);
|
|
17
|
+
return index.bootstrapLazy([["tttx-worksheet.cjs",[[4,"tttx-worksheet",{"pageSize":[1,"page-size"]}]]],["tttx-page.cjs",[[4,"tttx-page",{"appName":[1,"app-name"],"pageTitle":[1,"page-title"],"lastUpdated":[1,"last-updated"],"manageAccountsUrl":[1,"manage-accounts-url"],"logoutUrl":[1,"logout-url"],"pageSize":[1,"page-size"],"helpUrl":[1,"help-url"]}]]],["tttx-icon.cjs",[[0,"tttx-icon",{"name":[1],"color":[1]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-8a7479e4.js');
|
|
6
|
+
|
|
7
|
+
const tttxIconCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto&display=swap\");@import url(\"https://fonts.googleapis.com/css2?family=Material+Icons+Round\");*{box-sizing:border-box}.flex-start{justify-content:start}.flex-end{justify-content:end}.flex-centre{justify-content:center}[class^=col-]{display:flex;padding-left:8px !important;padding-right:8px !important}h1,h2,h3,h4,h5,h6,p,label,small{margin:0;padding:0}h1,h2,h3,h4,h5,h6,p,label{display:block}*{font-family:\"Roboto\", sans-serif}html,body{font-weight:normal;font-size:16px}h1{font-weight:700;font-size:24px}h2{font-weight:700;font-size:20px}h3{font-weight:700;font-size:18px}h4{font-weight:normal;font-size:14px;text-transform:uppercase}button{font-weight:500;font-size:14px;text-transform:uppercase}small{font-weight:normal;font-size:14px}label{font-weight:700;font-size:16px}:host{display:block}.material-icons-round{vertical-align:-6px;color:var(--ui-color-lt)}";
|
|
8
|
+
|
|
9
|
+
const TttxIcon = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.name = undefined;
|
|
13
|
+
this.color = undefined;
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
return (index.h("span", { class: "material-icons-round", style: { color: this.color } }, this.name));
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
TttxIcon.style = tttxIconCss;
|
|
20
|
+
|
|
21
|
+
exports.tttx_icon = TttxIcon;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-8a7479e4.js');
|
|
6
6
|
const toolbar = require('./toolbar-656be6e6.js');
|
|
7
7
|
|
|
8
8
|
const tttxWorksheetCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto&display=swap\");*{box-sizing:border-box}.flex-start{justify-content:start}.flex-end{justify-content:end}.flex-centre{justify-content:center}[class^=col-]{display:flex;padding-left:8px !important;padding-right:8px !important}h1,h2,h3,h4,h5,h6,p,label,small{margin:0;padding:0}h1,h2,h3,h4,h5,h6,p,label{display:block}*{font-family:\"Roboto\", sans-serif}html,body{font-weight:normal;font-size:16px}h1{font-weight:700;font-size:24px}h2{font-weight:700;font-size:20px}h3{font-weight:700;font-size:18px}h4{font-weight:normal;font-size:14px;text-transform:uppercase}button{font-weight:500;font-size:14px;text-transform:uppercase}small{font-weight:normal;font-size:14px}label{font-weight:700;font-size:16px}:host{display:block}.worksheet__container,.worksheet__container--large,.worksheet__container--medium,.worksheet__container--small{position:absolute;top:104px;bottom:8px;left:0px;right:0px;overflow:auto;background-color:#ffffff;clear:both}.worksheet__container,.worksheet__container--medium,.worksheet__container--small,.worksheet__footer--medium,.worksheet__footer--small{margin:0px auto}.worksheet__container--large{margin:0px 16px}.worksheet__container--medium{width:900px}.worksheet__container--small{width:600px}.worksheet__footer--medium.dx-toolbar,.worksheet__footer--small.dx-toolbar{position:fixed;bottom:0px;left:0px;right:0px;padding:0 8px}.worksheet__footer--medium.dx-toolbar{width:900px}.worksheet__footer--small.dx-toolbar{width:600px}";
|
package/dist/cjs/tttx.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-8a7479e4.js');
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
6
|
Stencil Client Patch Browser v2.20.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["tttx-worksheet.cjs",[[4,"tttx-worksheet",{"pageSize":[1,"page-size"]}]]],["tttx-page.cjs",[[4,"tttx-page",{"appName":[1,"app-name"],"pageTitle":[1,"page-title"],"lastUpdated":[1,"last-updated"],"manageAccountsUrl":[1,"manage-accounts-url"],"logoutUrl":[1,"logout-url"],"pageSize":[1,"page-size"],"helpUrl":[1,"help-url"]}]]]], options);
|
|
18
|
+
return index.bootstrapLazy([["tttx-worksheet.cjs",[[4,"tttx-worksheet",{"pageSize":[1,"page-size"]}]]],["tttx-page.cjs",[[4,"tttx-page",{"appName":[1,"app-name"],"pageTitle":[1,"page-title"],"lastUpdated":[1,"last-updated"],"manageAccountsUrl":[1,"manage-accounts-url"],"logoutUrl":[1,"logout-url"],"pageSize":[1,"page-size"],"helpUrl":[1,"help-url"]}]]],["tttx-icon.cjs",[[0,"tttx-icon",{"name":[1],"color":[1]}]]]], options);
|
|
19
19
|
});
|
|
@@ -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
|
+
`;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* tttx custom elements */
|
|
2
|
+
export { TttxIcon as TttxIcon } from '../types/components/components/tttx-icon/tttx-icon';
|
|
2
3
|
export { TttxPage as TttxPage } from '../types/components/patterns/tttx-page/tttx-page';
|
|
3
4
|
export { TttxWorksheet as TttxWorksheet } from '../types/components/patterns/tttx-worksheet/tttx-worksheet';
|
|
4
5
|
|
package/dist/components/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
2
|
+
export { TttxIcon, defineCustomElement as defineCustomElementTttxIcon } from './tttx-icon.js';
|
|
2
3
|
export { TttxPage, defineCustomElement as defineCustomElementTttxPage } from './tttx-page.js';
|
|
3
4
|
export { TttxWorksheet, defineCustomElement as defineCustomElementTttxWorksheet } from './tttx-worksheet.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TttxIcon extends Components.TttxIcon, HTMLElement {}
|
|
4
|
+
export const TttxIcon: {
|
|
5
|
+
prototype: TttxIcon;
|
|
6
|
+
new (): TttxIcon;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const tttxIconCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto&display=swap\");@import url(\"https://fonts.googleapis.com/css2?family=Material+Icons+Round\");*{box-sizing:border-box}.flex-start{justify-content:start}.flex-end{justify-content:end}.flex-centre{justify-content:center}[class^=col-]{display:flex;padding-left:8px !important;padding-right:8px !important}h1,h2,h3,h4,h5,h6,p,label,small{margin:0;padding:0}h1,h2,h3,h4,h5,h6,p,label{display:block}*{font-family:\"Roboto\", sans-serif}html,body{font-weight:normal;font-size:16px}h1{font-weight:700;font-size:24px}h2{font-weight:700;font-size:20px}h3{font-weight:700;font-size:18px}h4{font-weight:normal;font-size:14px;text-transform:uppercase}button{font-weight:500;font-size:14px;text-transform:uppercase}small{font-weight:normal;font-size:14px}label{font-weight:700;font-size:16px}:host{display:block}.material-icons-round{vertical-align:-6px;color:var(--ui-color-lt)}";
|
|
4
|
+
|
|
5
|
+
const TttxIcon$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
this.name = undefined;
|
|
10
|
+
this.color = undefined;
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return (h("span", { class: "material-icons-round", style: { color: this.color } }, this.name));
|
|
14
|
+
}
|
|
15
|
+
static get style() { return tttxIconCss; }
|
|
16
|
+
}, [0, "tttx-icon", {
|
|
17
|
+
"name": [1],
|
|
18
|
+
"color": [1]
|
|
19
|
+
}]);
|
|
20
|
+
function defineCustomElement$1() {
|
|
21
|
+
if (typeof customElements === "undefined") {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const components = ["tttx-icon"];
|
|
25
|
+
components.forEach(tagName => { switch (tagName) {
|
|
26
|
+
case "tttx-icon":
|
|
27
|
+
if (!customElements.get(tagName)) {
|
|
28
|
+
customElements.define(tagName, TttxIcon$1);
|
|
29
|
+
}
|
|
30
|
+
break;
|
|
31
|
+
} });
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const TttxIcon = TttxIcon$1;
|
|
35
|
+
const defineCustomElement = defineCustomElement$1;
|
|
36
|
+
|
|
37
|
+
export { TttxIcon, defineCustomElement };
|
|
@@ -374,7 +374,11 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
374
374
|
1 /* VNODE_FLAGS.isSlotReference */;
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
|
-
if (newVNode.$
|
|
377
|
+
if (newVNode.$text$ !== null) {
|
|
378
|
+
// create text node
|
|
379
|
+
elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
|
|
380
|
+
}
|
|
381
|
+
else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
|
|
378
382
|
// create a slot reference node
|
|
379
383
|
elm = newVNode.$elm$ =
|
|
380
384
|
doc.createTextNode('');
|
|
@@ -736,7 +740,9 @@ const patch = (oldVNode, newVNode) => {
|
|
|
736
740
|
const oldChildren = oldVNode.$children$;
|
|
737
741
|
const newChildren = newVNode.$children$;
|
|
738
742
|
const tag = newVNode.$tag$;
|
|
739
|
-
|
|
743
|
+
const text = newVNode.$text$;
|
|
744
|
+
let defaultHolder;
|
|
745
|
+
if (text === null) {
|
|
740
746
|
{
|
|
741
747
|
if (tag === 'slot')
|
|
742
748
|
;
|
|
@@ -753,6 +759,11 @@ const patch = (oldVNode, newVNode) => {
|
|
|
753
759
|
updateChildren(elm, oldChildren, newVNode, newChildren);
|
|
754
760
|
}
|
|
755
761
|
else if (newChildren !== null) {
|
|
762
|
+
// no old child vnodes, but there are new child vnodes to add
|
|
763
|
+
if (oldVNode.$text$ !== null) {
|
|
764
|
+
// the old vnode was text, so be sure to clear it out
|
|
765
|
+
elm.textContent = '';
|
|
766
|
+
}
|
|
756
767
|
// add the new vnode children
|
|
757
768
|
addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
|
|
758
769
|
}
|
|
@@ -761,6 +772,15 @@ const patch = (oldVNode, newVNode) => {
|
|
|
761
772
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
762
773
|
}
|
|
763
774
|
}
|
|
775
|
+
else if ((defaultHolder = elm['s-cr'])) {
|
|
776
|
+
// this element has slotted content
|
|
777
|
+
defaultHolder.parentNode.textContent = text;
|
|
778
|
+
}
|
|
779
|
+
else if (oldVNode.$text$ !== text) {
|
|
780
|
+
// update the text content for the text only vnode
|
|
781
|
+
// and also only if the text is different than before
|
|
782
|
+
elm.data = text;
|
|
783
|
+
}
|
|
764
784
|
};
|
|
765
785
|
const updateFallbackSlotVisibility = (elm) => {
|
|
766
786
|
// tslint:disable-next-line: prefer-const
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-854ff56f.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
Stencil Client Patch Esm v2.20.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -10,7 +10,7 @@ const patchEsm = () => {
|
|
|
10
10
|
const defineCustomElements = (win, options) => {
|
|
11
11
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
12
|
return patchEsm().then(() => {
|
|
13
|
-
return bootstrapLazy([["tttx-worksheet",[[4,"tttx-worksheet",{"pageSize":[1,"page-size"]}]]],["tttx-page",[[4,"tttx-page",{"appName":[1,"app-name"],"pageTitle":[1,"page-title"],"lastUpdated":[1,"last-updated"],"manageAccountsUrl":[1,"manage-accounts-url"],"logoutUrl":[1,"logout-url"],"pageSize":[1,"page-size"],"helpUrl":[1,"help-url"]}]]]], options);
|
|
13
|
+
return bootstrapLazy([["tttx-worksheet",[[4,"tttx-worksheet",{"pageSize":[1,"page-size"]}]]],["tttx-page",[[4,"tttx-page",{"appName":[1,"app-name"],"pageTitle":[1,"page-title"],"lastUpdated":[1,"last-updated"],"manageAccountsUrl":[1,"manage-accounts-url"],"logoutUrl":[1,"logout-url"],"pageSize":[1,"page-size"],"helpUrl":[1,"help-url"]}]]],["tttx-icon",[[0,"tttx-icon",{"name":[1],"color":[1]}]]]], options);
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-854ff56f.js';
|
|
2
|
+
|
|
3
|
+
const tttxIconCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto&display=swap\");@import url(\"https://fonts.googleapis.com/css2?family=Material+Icons+Round\");*{box-sizing:border-box}.flex-start{justify-content:start}.flex-end{justify-content:end}.flex-centre{justify-content:center}[class^=col-]{display:flex;padding-left:8px !important;padding-right:8px !important}h1,h2,h3,h4,h5,h6,p,label,small{margin:0;padding:0}h1,h2,h3,h4,h5,h6,p,label{display:block}*{font-family:\"Roboto\", sans-serif}html,body{font-weight:normal;font-size:16px}h1{font-weight:700;font-size:24px}h2{font-weight:700;font-size:20px}h3{font-weight:700;font-size:18px}h4{font-weight:normal;font-size:14px;text-transform:uppercase}button{font-weight:500;font-size:14px;text-transform:uppercase}small{font-weight:normal;font-size:14px}label{font-weight:700;font-size:16px}:host{display:block}.material-icons-round{vertical-align:-6px;color:var(--ui-color-lt)}";
|
|
4
|
+
|
|
5
|
+
const TttxIcon = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.name = undefined;
|
|
9
|
+
this.color = undefined;
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
return (h("span", { class: "material-icons-round", style: { color: this.color } }, this.name));
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
TttxIcon.style = tttxIconCss;
|
|
16
|
+
|
|
17
|
+
export { TttxIcon as tttx_icon };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-854ff56f.js';
|
|
2
2
|
import { C as CollectionWidget, B as BindableTemplate, a as Button, e as extend, i as isFunction, $, W as Widget, b as isDefined, r as registerComponent, h as hasWindow, g as getOuterWidth, m as messageLocalization, F as FunctionTemplate, L as ListSearch, D as DataSource, A as ArrayStore, c as compileGetter, n as noop, d as Deferred, G as Guid, f as getPublicElement, P as Popup, j as isPlainObject, k as ensureDefined, l as DataHelperMixin, o as getImageContainer, T as Toolbar } from './toolbar-cede4385.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-854ff56f.js';
|
|
2
2
|
import { T as Toolbar, a as Button } from './toolbar-cede4385.js';
|
|
3
3
|
|
|
4
4
|
const tttxWorksheetCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto&display=swap\");*{box-sizing:border-box}.flex-start{justify-content:start}.flex-end{justify-content:end}.flex-centre{justify-content:center}[class^=col-]{display:flex;padding-left:8px !important;padding-right:8px !important}h1,h2,h3,h4,h5,h6,p,label,small{margin:0;padding:0}h1,h2,h3,h4,h5,h6,p,label{display:block}*{font-family:\"Roboto\", sans-serif}html,body{font-weight:normal;font-size:16px}h1{font-weight:700;font-size:24px}h2{font-weight:700;font-size:20px}h3{font-weight:700;font-size:18px}h4{font-weight:normal;font-size:14px;text-transform:uppercase}button{font-weight:500;font-size:14px;text-transform:uppercase}small{font-weight:normal;font-size:14px}label{font-weight:700;font-size:16px}:host{display:block}.worksheet__container,.worksheet__container--large,.worksheet__container--medium,.worksheet__container--small{position:absolute;top:104px;bottom:8px;left:0px;right:0px;overflow:auto;background-color:#ffffff;clear:both}.worksheet__container,.worksheet__container--medium,.worksheet__container--small,.worksheet__footer--medium,.worksheet__footer--small{margin:0px auto}.worksheet__container--large{margin:0px 16px}.worksheet__container--medium{width:900px}.worksheet__container--small{width:600px}.worksheet__footer--medium.dx-toolbar,.worksheet__footer--small.dx-toolbar{position:fixed;bottom:0px;left:0px;right:0px;padding:0 8px}.worksheet__footer--medium.dx-toolbar{width:900px}.worksheet__footer--small.dx-toolbar{width:600px}";
|
package/dist/esm/tttx.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-854ff56f.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
Stencil Client Patch Browser v2.20.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -13,5 +13,5 @@ const patchBrowser = () => {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
patchBrowser().then(options => {
|
|
16
|
-
return bootstrapLazy([["tttx-worksheet",[[4,"tttx-worksheet",{"pageSize":[1,"page-size"]}]]],["tttx-page",[[4,"tttx-page",{"appName":[1,"app-name"],"pageTitle":[1,"page-title"],"lastUpdated":[1,"last-updated"],"manageAccountsUrl":[1,"manage-accounts-url"],"logoutUrl":[1,"logout-url"],"pageSize":[1,"page-size"],"helpUrl":[1,"help-url"]}]]]], options);
|
|
16
|
+
return bootstrapLazy([["tttx-worksheet",[[4,"tttx-worksheet",{"pageSize":[1,"page-size"]}]]],["tttx-page",[[4,"tttx-page",{"appName":[1,"app-name"],"pageTitle":[1,"page-title"],"lastUpdated":[1,"last-updated"],"manageAccountsUrl":[1,"manage-accounts-url"],"logoutUrl":[1,"logout-url"],"pageSize":[1,"page-size"],"helpUrl":[1,"help-url"]}]]],["tttx-icon",[[0,"tttx-icon",{"name":[1],"color":[1]}]]]], options);
|
|
17
17
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e,H as o}from"./p-
|
|
1
|
+
import{r as t,h as e,H as o}from"./p-ddfeb0ba.js";import{T as s,a as i}from"./p-d038fe18.js";const r=class{constructor(e){t(this,e),this.pageSize="large"}componentDidLoad(){this.footer()}pageSizeIsNumeric(){return/^\d+$/.test(this.pageSize)}pageSizeClasses(t){return this.pageSizeIsNumeric()?t:`${t}--${this.pageSize}`}footer(){["medium","small"].includes(this.pageSize)&&new s(this.footerBar,{items:[{location:"after",widget:i,options:{text:"save"}}]})}render(){const t=this.pageSizeIsNumeric()?{width:`${this.pageSize}px`}:{};return e(o,null,e("div",{class:this.pageSizeClasses("worksheet__container"),style:Object.assign({},t)},e("slot",null),e("div",{class:`worksheet__footer--${this.pageSize}`,ref:t=>this.footerBar=t})))}};r.style='@import url("https://fonts.googleapis.com/css?family=Roboto&display=swap");*{box-sizing:border-box}.flex-start{justify-content:start}.flex-end{justify-content:end}.flex-centre{justify-content:center}[class^=col-]{display:flex;padding-left:8px !important;padding-right:8px !important}h1,h2,h3,h4,h5,h6,p,label,small{margin:0;padding:0}h1,h2,h3,h4,h5,h6,p,label{display:block}*{font-family:"Roboto", sans-serif}html,body{font-weight:normal;font-size:16px}h1{font-weight:700;font-size:24px}h2{font-weight:700;font-size:20px}h3{font-weight:700;font-size:18px}h4{font-weight:normal;font-size:14px;text-transform:uppercase}button{font-weight:500;font-size:14px;text-transform:uppercase}small{font-weight:normal;font-size:14px}label{font-weight:700;font-size:16px}:host{display:block}.worksheet__container,.worksheet__container--large,.worksheet__container--medium,.worksheet__container--small{position:absolute;top:104px;bottom:8px;left:0px;right:0px;overflow:auto;background-color:#ffffff;clear:both}.worksheet__container,.worksheet__container--medium,.worksheet__container--small,.worksheet__footer--medium,.worksheet__footer--small{margin:0px auto}.worksheet__container--large{margin:0px 16px}.worksheet__container--medium{width:900px}.worksheet__container--small{width:600px}.worksheet__footer--medium.dx-toolbar,.worksheet__footer--small.dx-toolbar{position:fixed;bottom:0px;left:0px;right:0px;padding:0 8px}.worksheet__footer--medium.dx-toolbar{width:900px}.worksheet__footer--small.dx-toolbar{width:600px}';export{r as tttx_worksheet}
|