@3t-transform/threeteeui 0.0.6 → 0.0.7

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 (101) hide show
  1. package/dist/cjs/{index-8a7479e4.js → index-253ca97c.js} +239 -415
  2. package/dist/cjs/loader.cjs.js +4 -3
  3. package/dist/cjs/tttx-button.cjs.entry.js +28 -0
  4. package/dist/cjs/tttx-checkbox.cjs.entry.js +28 -0
  5. package/dist/cjs/tttx-form.cjs.entry.js +58 -0
  6. package/dist/cjs/tttx-single-input.cjs.entry.js +44 -0
  7. package/dist/cjs/tttx-text-box.cjs.entry.js +38 -0
  8. package/dist/cjs/tttx.cjs.js +7 -3
  9. package/dist/collection/collection-manifest.json +7 -5
  10. package/dist/collection/components/atoms/tttx-button/tttx-button.css +61 -0
  11. package/dist/collection/components/atoms/tttx-button/tttx-button.js +93 -0
  12. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +30 -0
  13. package/dist/collection/components/atoms/tttx-single-input/tttx-single-input.css +142 -0
  14. package/dist/collection/components/atoms/tttx-single-input/tttx-single-input.js +259 -0
  15. package/dist/collection/components/atoms/tttx-single-input/tttx-single-input.stories.js +92 -0
  16. package/dist/collection/components/atoms/tttx-text-box/tttx-text-box.css +142 -0
  17. package/dist/collection/components/atoms/tttx-text-box/tttx-text-box.js +150 -0
  18. package/dist/collection/components/atoms/tttx-text-box/tttx-text-box.stories.js +17 -0
  19. package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.css +138 -0
  20. package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.js +101 -0
  21. package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.stories.js +13 -0
  22. package/dist/collection/components/molecules/tttx-form/tttx-form.js +109 -0
  23. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +37 -0
  24. package/dist/collection/icons.js +2838 -0
  25. package/dist/components/index.d.ts +14 -3
  26. package/dist/components/index.js +6 -4
  27. package/dist/components/{tttx-page.d.ts → tttx-button.d.ts} +4 -4
  28. package/dist/components/tttx-button.js +45 -0
  29. package/dist/components/{tttx-worksheet.d.ts → tttx-checkbox.d.ts} +4 -4
  30. package/dist/components/tttx-checkbox.js +46 -0
  31. package/dist/components/{tttx-icon.d.ts → tttx-form.d.ts} +4 -4
  32. package/dist/components/tttx-form.js +75 -0
  33. package/dist/components/tttx-single-input.d.ts +11 -0
  34. package/dist/components/tttx-single-input.js +71 -0
  35. package/dist/components/tttx-text-box.d.ts +11 -0
  36. package/dist/components/tttx-text-box.js +59 -0
  37. package/dist/esm/{index-854ff56f.js → index-fcca6c58.js} +237 -416
  38. package/dist/esm/loader.js +4 -3
  39. package/dist/esm/polyfills/css-shim.js +1 -1
  40. package/dist/esm/tttx-button.entry.js +24 -0
  41. package/dist/esm/tttx-checkbox.entry.js +24 -0
  42. package/dist/esm/tttx-form.entry.js +54 -0
  43. package/dist/esm/tttx-single-input.entry.js +40 -0
  44. package/dist/esm/tttx-text-box.entry.js +34 -0
  45. package/dist/esm/tttx.js +4 -3
  46. package/dist/tttx/p-05d7d002.entry.js +1 -0
  47. package/dist/tttx/p-40709c59.entry.js +1 -0
  48. package/dist/tttx/p-64703252.entry.js +1 -0
  49. package/dist/tttx/p-8d1f2e5c.entry.js +1 -0
  50. package/dist/tttx/p-9bf836ed.entry.js +1 -0
  51. package/dist/tttx/p-a7b95fd2.js +2 -0
  52. package/dist/tttx/tttx.esm.js +1 -1
  53. package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +9 -0
  54. package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +20 -0
  55. package/dist/types/components/atoms/tttx-single-input/tttx-single-input.d.ts +20 -0
  56. package/dist/types/components/atoms/tttx-single-input/tttx-single-input.stories.d.ts +27 -0
  57. package/dist/types/components/atoms/tttx-text-box/tttx-text-box.d.ts +14 -0
  58. package/dist/types/components/atoms/tttx-text-box/tttx-text-box.stories.d.ts +6 -0
  59. package/dist/types/components/atoms/ttx-checkbox/tttx-checkbox.d.ts +9 -0
  60. package/dist/types/components/atoms/ttx-checkbox/tttx-checkbox.stories.d.ts +6 -0
  61. package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +11 -0
  62. package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +6 -0
  63. package/dist/types/components.d.ts +128 -51
  64. package/dist/types/icons.d.ts +2 -0
  65. package/dist/types/stencil-public-runtime.d.ts +59 -3
  66. package/loader/index.d.ts +9 -0
  67. package/package.json +58 -59
  68. package/readme.md +1 -6
  69. package/dist/cjs/toolbar-656be6e6.js +0 -34259
  70. package/dist/cjs/tttx-icon.cjs.entry.js +0 -21
  71. package/dist/cjs/tttx-page.cjs.entry.js +0 -927
  72. package/dist/cjs/tttx-worksheet.cjs.entry.js +0 -47
  73. package/dist/collection/components/components/tttx-icon/tttx-icon.css +0 -89
  74. package/dist/collection/components/components/tttx-icon/tttx-icon.js +0 -59
  75. package/dist/collection/components/components/tttx-icon/tttx-icon.stories.js +0 -40
  76. package/dist/collection/components/patterns/tttx-page/tttx-page.css +0 -162
  77. package/dist/collection/components/patterns/tttx-page/tttx-page.js +0 -213
  78. package/dist/collection/components/patterns/tttx-page/tttx-page.stories.js +0 -80
  79. package/dist/collection/components/patterns/tttx-worksheet/tttx-worksheet.css +0 -134
  80. package/dist/collection/components/patterns/tttx-worksheet/tttx-worksheet.js +0 -70
  81. package/dist/collection/components/patterns/tttx-worksheet/tttx-worksheet.stories.js +0 -44
  82. package/dist/components/tttx-icon.js +0 -37
  83. package/dist/components/tttx-page.js +0 -953
  84. package/dist/components/tttx-worksheet.js +0 -6
  85. package/dist/components/tttx-worksheet2.js +0 -34288
  86. package/dist/esm/toolbar-cede4385.js +0 -34231
  87. package/dist/esm/tttx-icon.entry.js +0 -17
  88. package/dist/esm/tttx-page.entry.js +0 -923
  89. package/dist/esm/tttx-worksheet.entry.js +0 -43
  90. package/dist/tttx/p-4b57de2e.entry.js +0 -1
  91. package/dist/tttx/p-61f78304.entry.js +0 -1
  92. package/dist/tttx/p-7244abd4.entry.js +0 -1
  93. package/dist/tttx/p-d038fe18.js +0 -1
  94. package/dist/tttx/p-ddfeb0ba.js +0 -2
  95. package/dist/tttx/tttx.css +0 -1
  96. package/dist/types/components/components/tttx-icon/tttx-icon.d.ts +0 -5
  97. package/dist/types/components/components/tttx-icon/tttx-icon.stories.d.ts +0 -24
  98. package/dist/types/components/patterns/tttx-page/tttx-page.d.ts +0 -21
  99. package/dist/types/components/patterns/tttx-page/tttx-page.stories.d.ts +0 -48
  100. package/dist/types/components/patterns/tttx-worksheet/tttx-worksheet.d.ts +0 -9
  101. package/dist/types/components/patterns/tttx-worksheet/tttx-worksheet.stories.d.ts +0 -23
@@ -1,134 +0,0 @@
1
- @import url("https://fonts.googleapis.com/css?family=Roboto&display=swap");
2
- * {
3
- box-sizing: border-box;
4
- }
5
-
6
- .flex-start {
7
- justify-content: start;
8
- }
9
-
10
- .flex-end {
11
- justify-content: end;
12
- }
13
-
14
- .flex-centre {
15
- justify-content: center;
16
- }
17
-
18
- [class^=col-] {
19
- display: flex;
20
- /* we need to overright bootstrap to get the buttering we want */
21
- padding-left: 8px !important;
22
- padding-right: 8px !important;
23
- }
24
-
25
- h1, h2, h3, h4, h5, h6, p, label, small {
26
- margin: 0;
27
- padding: 0;
28
- }
29
-
30
- h1, h2, h3, h4, h5, h6, p, label {
31
- display: block;
32
- }
33
-
34
- * {
35
- font-family: "Roboto", sans-serif;
36
- }
37
-
38
- html,
39
- body {
40
- font-weight: normal;
41
- font-size: 16px;
42
- }
43
-
44
- h1 {
45
- font-weight: 700;
46
- font-size: 24px;
47
- }
48
-
49
- h2 {
50
- font-weight: 700;
51
- font-size: 20px;
52
- }
53
-
54
- h3 {
55
- font-weight: 700;
56
- font-size: 18px;
57
- }
58
-
59
- h4 {
60
- font-weight: normal;
61
- font-size: 14px;
62
- text-transform: uppercase;
63
- }
64
-
65
- button {
66
- font-weight: 500;
67
- font-size: 14px;
68
- text-transform: uppercase;
69
- }
70
-
71
- small {
72
- font-weight: normal;
73
- font-size: 14px;
74
- }
75
-
76
- label {
77
- font-weight: 700;
78
- font-size: 16px;
79
- }
80
-
81
- :host {
82
- display: block;
83
- }
84
-
85
- .worksheet__container,
86
- .worksheet__container--large,
87
- .worksheet__container--medium,
88
- .worksheet__container--small {
89
- position: absolute;
90
- top: 104px;
91
- bottom: 8px;
92
- left: 0px;
93
- right: 0px;
94
- overflow: auto;
95
- background-color: #ffffff;
96
- clear: both;
97
- }
98
-
99
- .worksheet__container,
100
- .worksheet__container--medium,
101
- .worksheet__container--small,
102
- .worksheet__footer--medium,
103
- .worksheet__footer--small {
104
- margin: 0px auto;
105
- }
106
-
107
- .worksheet__container--large {
108
- margin: 0px 16px;
109
- }
110
-
111
- .worksheet__container--medium {
112
- width: 900px;
113
- }
114
-
115
- .worksheet__container--small {
116
- width: 600px;
117
- }
118
-
119
- .worksheet__footer--medium.dx-toolbar,
120
- .worksheet__footer--small.dx-toolbar {
121
- position: fixed;
122
- bottom: 0px;
123
- left: 0px;
124
- right: 0px;
125
- padding: 0 8px;
126
- }
127
-
128
- .worksheet__footer--medium.dx-toolbar {
129
- width: 900px;
130
- }
131
-
132
- .worksheet__footer--small.dx-toolbar {
133
- width: 600px;
134
- }
@@ -1,70 +0,0 @@
1
- import { Host, h } from '@stencil/core';
2
- import dxToolbar from 'devextreme/esm/ui/toolbar';
3
- import dxButton from 'devextreme/esm/ui/button';
4
- export class TttxWorksheet {
5
- constructor() {
6
- this.pageSize = 'large';
7
- }
8
- componentDidLoad() {
9
- this.footer();
10
- }
11
- pageSizeIsNumeric() {
12
- return /^\d+$/.test(this.pageSize);
13
- }
14
- pageSizeClasses(baseClassName) {
15
- return this.pageSizeIsNumeric() ? baseClassName : `${baseClassName}--${this.pageSize}`;
16
- }
17
- footer() {
18
- if (!['medium', 'small'].includes(this.pageSize)) {
19
- return;
20
- }
21
- new dxToolbar(this.footerBar, {
22
- items: [
23
- {
24
- location: 'after',
25
- widget: dxButton,
26
- options: {
27
- text: 'save'
28
- }
29
- }
30
- ]
31
- });
32
- }
33
- render() {
34
- const customPageWidth = this.pageSizeIsNumeric() ? { width: `${this.pageSize}px` } : {};
35
- return (h(Host, null, h("div", { class: this.pageSizeClasses('worksheet__container'), style: Object.assign({}, customPageWidth) }, h("slot", null), h("div", { class: `worksheet__footer--${this.pageSize}`, ref: el => (this.footerBar = el) }))));
36
- }
37
- static get is() { return "tttx-worksheet"; }
38
- static get originalStyleUrls() {
39
- return {
40
- "$": ["tttx-worksheet.scss"]
41
- };
42
- }
43
- static get styleUrls() {
44
- return {
45
- "$": ["tttx-worksheet.css"]
46
- };
47
- }
48
- static get properties() {
49
- return {
50
- "pageSize": {
51
- "type": "string",
52
- "mutable": false,
53
- "complexType": {
54
- "original": "'large' | 'medium' | 'small' | string",
55
- "resolved": "string",
56
- "references": {}
57
- },
58
- "required": false,
59
- "optional": false,
60
- "docs": {
61
- "tags": [],
62
- "text": ""
63
- },
64
- "attribute": "page-size",
65
- "reflect": false,
66
- "defaultValue": "'large'"
67
- }
68
- };
69
- }
70
- }
@@ -1,44 +0,0 @@
1
- export default {
2
- title: 'Patterns/Worksheet',
3
- argTypes: {
4
- pageSize: {
5
- options: [
6
- 'large',
7
- 'medium',
8
- 'small',
9
- '800'
10
- ],
11
- control: {
12
- type: 'select'
13
- },
14
- description: 'A control on the width of the worksheet. Accepts three preset sizes (large, medium and small), as well as a number of pixels. Medium and small worksheets render a footer'
15
- }
16
- },
17
- parameters: {
18
- backgrounds: {
19
- default: 'dark'
20
- },
21
- docs: {
22
- transformSource: source => {
23
- var _a;
24
- const [, output] = (_a = source.match(/<span decorator-start \/>([\s\S]*?)<span decorator-end \/>/)) !== null && _a !== void 0 ? _a : [];
25
- return output;
26
- }
27
- }
28
- },
29
- decorators: [
30
- (Story) => `
31
- <div style="height: 500px; transform: translateZ(0)">
32
- <span decorator-start />
33
- ${Story()}
34
- <span decorator-end />
35
- </div>
36
- `
37
- ]
38
- };
39
- const Template = (args) => `
40
- <tttx-worksheet
41
- ${args.pageSize ? `page-size=${args.pageSize}` : ''}>
42
- </tttx-worksheet>
43
- `;
44
- export const Default = Template.bind({});
@@ -1,37 +0,0 @@
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 };