@3t-transform/threeteeui 0.0.16 → 0.0.18

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 (125) hide show
  1. package/dist/cjs/{index-864b7110.js → index-bf777121.js} +3 -0
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/tttx-button.cjs.entry.js +25 -19
  4. package/dist/cjs/tttx-checkbox.cjs.entry.js +18 -18
  5. package/dist/cjs/tttx-form.cjs.entry.js +365 -365
  6. package/dist/cjs/tttx-icon.cjs.entry.js +14 -1856
  7. package/dist/cjs/tttx-input-calendar.cjs.entry.js +125 -0
  8. package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +33 -0
  9. package/dist/cjs/tttx-list.cjs.entry.js +188 -188
  10. package/dist/cjs/tttx-loading-spinner.cjs.entry.js +16 -16
  11. package/dist/cjs/tttx-popover-content.cjs.entry.js +13 -13
  12. package/dist/cjs/tttx-standalone-input.cjs.entry.js +127 -127
  13. package/dist/cjs/tttx-table.cjs.entry.js +50 -50
  14. package/dist/cjs/tttx.cjs.js +2 -2
  15. package/dist/collection/collection-manifest.json +2 -0
  16. package/dist/collection/components/atoms/tttx-button/tttx-button.css +94 -18
  17. package/dist/collection/components/atoms/tttx-button/tttx-button.js +110 -93
  18. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +74 -27
  19. package/dist/collection/components/atoms/tttx-icon/tttx-icon.css +8 -5
  20. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +62 -116
  21. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +22 -47
  22. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.css +26 -0
  23. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +56 -0
  24. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +12 -0
  25. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +67 -66
  26. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +17 -17
  27. package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.js +97 -96
  28. package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.stories.js +23 -23
  29. package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.js +102 -101
  30. package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.stories.js +9 -9
  31. package/dist/collection/components/molecules/tttx-form/tttx-form.css +95 -11
  32. package/dist/collection/components/molecules/tttx-form/tttx-form.js +452 -451
  33. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +109 -109
  34. package/dist/collection/components/molecules/tttx-input-calendar/tttx-input-calendar.css +93 -0
  35. package/dist/collection/components/molecules/tttx-input-calendar/tttx-input-calendar.js +174 -0
  36. package/dist/collection/components/molecules/tttx-input-calendar/tttx-input-calendar.stories.js +27 -0
  37. package/dist/collection/components/molecules/tttx-list/tttx-list.js +312 -311
  38. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +14 -14
  39. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +570 -569
  40. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +134 -134
  41. package/dist/collection/components/molecules/tttx-table/tttx-table.js +174 -177
  42. package/dist/collection/components/molecules/tttx-table/tttx-table.stories.js +65 -65
  43. package/dist/collection/components/palette.stories.js +7 -7
  44. package/dist/collection/docs/gettingstarted-developer.stories.js +5 -5
  45. package/dist/collection/icons.js +2838 -2838
  46. package/dist/collection/index.js +1 -1
  47. package/dist/components/index.d.ts +2 -0
  48. package/dist/components/index.js +2 -0
  49. package/dist/components/tttx-button.js +1 -40
  50. package/dist/components/tttx-button2.js +56 -0
  51. package/dist/components/tttx-checkbox.js +36 -36
  52. package/dist/components/tttx-form.js +382 -382
  53. package/dist/components/tttx-icon2.js +32 -1874
  54. package/dist/components/tttx-input-calendar.d.ts +11 -0
  55. package/dist/components/tttx-input-calendar.js +157 -0
  56. package/dist/components/tttx-keyvalue-block.d.ts +11 -0
  57. package/dist/components/tttx-keyvalue-block.js +49 -0
  58. package/dist/components/tttx-list.js +214 -214
  59. package/dist/components/tttx-loading-spinner2.js +33 -33
  60. package/dist/components/tttx-popover-content2.js +32 -32
  61. package/dist/components/tttx-standalone-input.js +168 -169
  62. package/dist/components/tttx-table.js +79 -79
  63. package/dist/esm/{index-232e347b.js → index-a05bd606.js} +3 -0
  64. package/dist/esm/loader.js +3 -3
  65. package/dist/esm/polyfills/core-js.js +0 -0
  66. package/dist/esm/polyfills/dom.js +0 -0
  67. package/dist/esm/polyfills/es5-html-element.js +0 -0
  68. package/dist/esm/polyfills/index.js +0 -0
  69. package/dist/esm/polyfills/system.js +0 -0
  70. package/dist/esm/tttx-button.entry.js +25 -19
  71. package/dist/esm/tttx-checkbox.entry.js +18 -18
  72. package/dist/esm/tttx-form.entry.js +365 -365
  73. package/dist/esm/tttx-icon.entry.js +14 -1856
  74. package/dist/esm/tttx-input-calendar.entry.js +121 -0
  75. package/dist/esm/tttx-keyvalue-block.entry.js +29 -0
  76. package/dist/esm/tttx-list.entry.js +188 -188
  77. package/dist/esm/tttx-loading-spinner.entry.js +16 -16
  78. package/dist/esm/tttx-popover-content.entry.js +13 -13
  79. package/dist/esm/tttx-standalone-input.entry.js +127 -127
  80. package/dist/esm/tttx-table.entry.js +50 -50
  81. package/dist/esm/tttx.js +3 -3
  82. package/dist/tttx/{p-3973b7dd.entry.js → p-037d286f.entry.js} +1 -1
  83. package/dist/tttx/{p-184c4fae.js → p-07b134af.js} +1 -1
  84. package/dist/tttx/{p-125f06b3.entry.js → p-1b63f16a.entry.js} +1 -1
  85. package/dist/tttx/p-45afb84c.entry.js +1 -0
  86. package/dist/tttx/p-68ff0f39.entry.js +1 -0
  87. package/dist/tttx/{p-6828fe6f.entry.js → p-93763d3c.entry.js} +1 -1
  88. package/dist/tttx/p-a5808741.entry.js +1 -0
  89. package/dist/tttx/{p-fe4c70b2.entry.js → p-a92ca87e.entry.js} +1 -1
  90. package/dist/tttx/{p-5ce1ba22.entry.js → p-a96ca037.entry.js} +1 -1
  91. package/dist/tttx/p-dc087fd8.entry.js +1 -0
  92. package/dist/tttx/p-e3cc75bb.entry.js +1 -0
  93. package/dist/tttx/{p-01e1894e.entry.js → p-f579ed1e.entry.js} +1 -1
  94. package/dist/tttx/tttx.esm.js +1 -1
  95. package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +10 -9
  96. package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +10 -20
  97. package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +5 -14
  98. package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +20 -21
  99. package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.d.ts +4 -0
  100. package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.d.ts +6 -0
  101. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +6 -6
  102. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +17 -17
  103. package/dist/types/components/atoms/tttx-popover-content/tttx-popover-content.d.ts +7 -7
  104. package/dist/types/components/atoms/tttx-popover-content/tttx-popover-content.stories.d.ts +18 -18
  105. package/dist/types/components/atoms/ttx-checkbox/tttx-checkbox.d.ts +9 -9
  106. package/dist/types/components/atoms/ttx-checkbox/tttx-checkbox.stories.d.ts +6 -6
  107. package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +134 -134
  108. package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +12 -12
  109. package/dist/types/components/molecules/tttx-input-calendar/tttx-input-calendar.d.ts +19 -0
  110. package/dist/types/components/molecules/tttx-input-calendar/tttx-input-calendar.stories.d.ts +26 -0
  111. package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +51 -51
  112. package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +13 -13
  113. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +38 -38
  114. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +106 -106
  115. package/dist/types/components/molecules/tttx-table/tttx-table.d.ts +15 -15
  116. package/dist/types/components/molecules/tttx-table/tttx-table.stories.d.ts +21 -21
  117. package/dist/types/components/palette.stories.d.ts +6 -6
  118. package/dist/types/components.d.ts +46 -15
  119. package/dist/types/docs/gettingstarted-developer.stories.d.ts +5 -5
  120. package/dist/types/icons.d.ts +2 -2
  121. package/dist/types/index.d.ts +1 -1
  122. package/package.json +4 -4
  123. package/dist/tttx/p-10316ff1.entry.js +0 -1
  124. package/dist/tttx/p-b1c22f5f.entry.js +0 -1
  125. package/dist/tttx/p-c7f9be65.entry.js +0 -1
@@ -2,135 +2,135 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-864b7110.js');
5
+ const index = require('./index-bf777121.js');
6
6
 
7
- const tttxStandaloneInputCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}.icon-left,.icon-right{flex-basis:24px}.icon-left span,.icon-right span{font-size:24px;line-height:24px;text-align:center;display:block;width:24px;height:24px;margin-top:4px}.icon-left span{margin-left:4px}.icon-right span{margin-right:4px}.icon-right{margin-top:5px;margin-right:4px}.icon-left{margin-top:5px;margin-left:4px}.iconleft .input{padding-left:4px}.iconright .input{padding-right:4px}.focused{border-color:#1479c6}.errormsg{display:flex;justify-content:center;align-items:center;float:left;margin-bottom:16px;box-sizing:border-box;background-color:transparent;height:26px;font-size:14px;border-radius:none;z-index:2;color:#dc0000}.errormsg .validationicon{width:16px;height:16px;font-size:16px;margin-right:4px;vertical-align:middle;color:#dc0000}.danger{color:#dc0000}.optional{color:#757575;font-weight:normal}label.inputBlock{display:block;position:relative;line-height:21px}label{font-weight:500;font-size:16px}input:not([type=submit]){font-family:\"Roboto\", serif;box-sizing:border-box;width:100%;height:36px;padding:0 16px;font-size:16px;border:1px solid #d5d5d5;border-radius:4px;margin-top:4px}input[type=date]{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}input.invalid:invalid,input.standalone.invalid{border:1px solid #dc0000}input~.errorBubble{min-height:27px;position:relative;font-size:14px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center}input~.errorBubble:not(.visible){visibility:hidden}input~.errorBubble span{color:#dc0000;font-size:16px;margin-right:4px;height:16px}input.invalid:invalid~.errorBubble{position:relative;font-size:14px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;visibility:visible}input:focus{border-color:#1479c6}:host{display:block}";
7
+ const tttxStandaloneInputCss = ".material-symbols-rounded.sc-tttx-standalone-input{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded.sc-tttx-standalone-input{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}.icon-left.sc-tttx-standalone-input,.icon-right.sc-tttx-standalone-input{flex-basis:24px}.icon-left.sc-tttx-standalone-input span.sc-tttx-standalone-input,.icon-right.sc-tttx-standalone-input span.sc-tttx-standalone-input{font-size:24px;line-height:24px;text-align:center;display:block;width:24px;height:24px;margin-top:4px}.icon-left.sc-tttx-standalone-input span.sc-tttx-standalone-input{margin-left:4px}.icon-right.sc-tttx-standalone-input span.sc-tttx-standalone-input{margin-right:4px}.icon-right.sc-tttx-standalone-input{margin-top:5px;margin-right:4px}.icon-left.sc-tttx-standalone-input{margin-top:5px;margin-left:4px}.iconleft.sc-tttx-standalone-input .input.sc-tttx-standalone-input{padding-left:4px}.iconright.sc-tttx-standalone-input .input.sc-tttx-standalone-input{padding-right:4px}.focused.sc-tttx-standalone-input{border-color:#1479c6}.errormsg.sc-tttx-standalone-input{display:flex;justify-content:center;align-items:center;float:left;margin-bottom:16px;box-sizing:border-box;background-color:transparent;height:26px;font-size:14px;border-radius:none;z-index:2;color:#dc0000}.errormsg.sc-tttx-standalone-input .validationicon.sc-tttx-standalone-input{width:16px;height:16px;font-size:16px;margin-right:4px;vertical-align:middle;color:#dc0000}.danger.sc-tttx-standalone-input{color:#dc0000}.optional.sc-tttx-standalone-input{color:#757575;font-weight:normal}label.inputBlock.sc-tttx-standalone-input{display:block;position:relative;line-height:21px}label.sc-tttx-standalone-input{font-weight:500;font-size:16px}input.sc-tttx-standalone-input:not([type=submit]){font-family:\"Roboto\", serif;box-sizing:border-box;width:100%;height:36px;padding:0 16px;font-size:16px;border:1px solid #d5d5d5;border-radius:4px;margin-top:4px}input[type=date].sc-tttx-standalone-input{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}input.invalid.sc-tttx-standalone-input:invalid,input.standalone.invalid.sc-tttx-standalone-input{border:1px solid #dc0000}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input{min-height:27px;position:relative;font-size:14px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input:not(.visible){visibility:hidden}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input span.sc-tttx-standalone-input{color:#dc0000;font-size:16px;margin-right:4px;height:16px}input.invalid.sc-tttx-standalone-input:invalid~.errorBubble.sc-tttx-standalone-input{position:relative;font-size:14px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;visibility:visible}input.sc-tttx-standalone-input:focus{border-color:#1479c6}.sc-tttx-standalone-input-h{display:block}";
8
8
 
9
- const TttxInput = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.valueChanged = index.createEvent(this, "valueChanged", 7);
13
- this.focusChanged = index.createEvent(this, "focusChanged", 7);
14
- this.blurChanged = index.createEvent(this, "blurChanged", 7);
15
- this.label = undefined;
16
- this.showerrormsg = undefined;
17
- this.errormsg = undefined;
18
- this.iconleft = undefined;
19
- this.iconright = undefined;
20
- this.autocapitalize = undefined;
21
- this.autocomplete = undefined;
22
- this.autofocus = undefined;
23
- this.checked = undefined;
24
- this.disabled = undefined;
25
- this.max = undefined;
26
- this.maxlength = undefined;
27
- this.min = undefined;
28
- this.minlength = undefined;
29
- this.name = undefined;
30
- this.pattern = undefined;
31
- this.placeholder = undefined;
32
- this.readonly = undefined;
33
- this.required = undefined;
34
- this.step = undefined;
35
- this.type = 'text';
36
- this.value = undefined;
37
- }
38
- handleChange(event) {
39
- const target = event.target;
40
- this.value = target.value;
41
- this.valueChanged.emit(target.value);
42
- }
43
- handleFocus(event) {
44
- const target = event.target;
45
- this.focusChanged.emit(target.value);
46
- }
47
- handleBlur(event) {
48
- const target = event.target;
49
- this.blurChanged.emit(target.value);
50
- }
51
- render() {
52
- const classNames = ['standalone', this.showerrormsg ? 'invalid' : ''].join(' ');
53
- return (index.h(index.Host, null, index.h("label", { class: 'inputBlock' }, this.label, !this.required ? index.h("span", { class: "optional" }, "\u00A0(optional)") : '', this.iconleft && (index.h("div", { class: "icon-left" }, index.h("tttx-icon", { icon: this.iconleft, colour: "grey" }))), index.h("input", { class: classNames, autocapitalize: this.type === 'url' || this.type === 'email' || this.type === 'password' ? this.autocapitalize : null, autofocus: this.autofocus, autocomplete: this.type === 'text' ||
54
- this.type === 'search' ||
55
- this.type === 'url' ||
56
- this.type === 'tel' ||
57
- this.type === 'email' ||
58
- this.type === 'password' ||
59
- this.type === 'datepickers' ||
60
- this.type === 'range' ||
61
- this.type === 'color'
62
- ? this.autocomplete
63
- : null, checked: this.type === 'checkbox' || this.type === 'radio' ? this.checked : null, disabled: !this.required ? this.disabled : null, max: this.type === 'date' ||
64
- this.type === 'month' ||
65
- this.type === 'week' ||
66
- this.type === 'time' ||
67
- this.type === 'datetime-local' ||
68
- this.type === 'number' ||
69
- this.type === 'range'
70
- ? this.max
71
- : null, maxlength: this.maxlength, min: this.type === 'date' ||
72
- this.type === 'month' ||
73
- this.type === 'week' ||
74
- this.type === 'time' ||
75
- this.type === 'datetime-local' ||
76
- this.type === 'number' ||
77
- this.type === 'range'
78
- ? this.min
79
- : null, minlength: this.minlength, name: this.name, pattern: this.type === 'text' ||
80
- this.type === 'date' ||
81
- this.type === 'search' ||
82
- this.type === 'url' ||
83
- this.type === 'tel' ||
84
- this.type === 'email' ||
85
- this.type === 'password'
86
- ? this.pattern
87
- : null, placeholder: this.type === 'text' ||
88
- this.type === 'tel' ||
89
- this.type === 'email' ||
90
- this.type === 'url' ||
91
- this.type === 'password' ||
92
- this.type === 'search'
93
- ? this.placeholder
94
- : null, readonly: this.type === 'text' ||
95
- this.type === 'search' ||
96
- this.type === 'url' ||
97
- this.type === 'tel' ||
98
- this.type === 'email' ||
99
- this.type === 'password' ||
100
- this.type === 'date' ||
101
- this.type === 'month' ||
102
- this.type === 'week' ||
103
- this.type === 'time' ||
104
- this.type === 'datetime-local' ||
105
- this.type === 'number'
106
- ? this.readonly
107
- : null, required: this.type === 'text' ||
108
- this.type === 'search' ||
109
- this.type === 'url' ||
110
- this.type === 'tel' ||
111
- this.type === 'email' ||
112
- this.type === 'password' ||
113
- this.type === 'date' ||
114
- this.type === 'month' ||
115
- this.type === 'week' ||
116
- this.type === 'time' ||
117
- this.type === 'datetime-local' ||
118
- this.type === 'number' ||
119
- this.type === 'checkbox' ||
120
- this.type === 'radio' ||
121
- this.type === 'file'
122
- ? this.required
123
- : null, step: this.type === 'date' ||
124
- this.type === 'month' ||
125
- this.type === 'week' ||
126
- this.type === 'time' ||
127
- this.type === 'datetime-local' ||
128
- this.type === 'number' ||
129
- this.type === 'range'
130
- ? this.step
131
- : null, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.bind(this) }), this.iconright && (index.h("div", { class: "icon-right" }, index.h("tttx-icon", { icon: this.iconright, colour: "grey" }))), index.h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, index.h("span", { class: "material-symbols-rounded validationicon" }, "warning"), " ", this.errormsg))));
132
- }
133
- };
9
+ const TttxInput = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.valueChanged = index.createEvent(this, "valueChanged", 7);
13
+ this.focusChanged = index.createEvent(this, "focusChanged", 7);
14
+ this.blurChanged = index.createEvent(this, "blurChanged", 7);
15
+ this.label = undefined;
16
+ this.showerrormsg = undefined;
17
+ this.errormsg = undefined;
18
+ this.iconleft = undefined;
19
+ this.iconright = undefined;
20
+ this.autocapitalize = undefined;
21
+ this.autocomplete = undefined;
22
+ this.autofocus = undefined;
23
+ this.checked = undefined;
24
+ this.disabled = undefined;
25
+ this.max = undefined;
26
+ this.maxlength = undefined;
27
+ this.min = undefined;
28
+ this.minlength = undefined;
29
+ this.name = undefined;
30
+ this.pattern = undefined;
31
+ this.placeholder = undefined;
32
+ this.readonly = undefined;
33
+ this.required = undefined;
34
+ this.step = undefined;
35
+ this.type = 'text';
36
+ this.value = undefined;
37
+ }
38
+ handleChange(event) {
39
+ const target = event.target;
40
+ this.value = target.value;
41
+ this.valueChanged.emit(target.value);
42
+ }
43
+ handleFocus(event) {
44
+ const target = event.target;
45
+ this.focusChanged.emit(target.value);
46
+ }
47
+ handleBlur(event) {
48
+ const target = event.target;
49
+ this.blurChanged.emit(target.value);
50
+ }
51
+ render() {
52
+ const classNames = ['standalone', this.showerrormsg ? 'invalid' : ''].join(' ');
53
+ return (index.h(index.Host, null, index.h("label", { class: 'inputBlock' }, this.label, !this.required ? index.h("span", { class: "optional" }, "\u00A0(optional)") : '', this.iconleft && (index.h("div", { class: "icon-left" }, index.h("tttx-icon", { icon: this.iconleft, color: "grey" }))), index.h("input", { class: classNames, autocapitalize: this.type === 'url' || this.type === 'email' || this.type === 'password' ? this.autocapitalize : null, autofocus: this.autofocus, autocomplete: this.type === 'text' ||
54
+ this.type === 'search' ||
55
+ this.type === 'url' ||
56
+ this.type === 'tel' ||
57
+ this.type === 'email' ||
58
+ this.type === 'password' ||
59
+ this.type === 'datepickers' ||
60
+ this.type === 'range' ||
61
+ this.type === 'color'
62
+ ? this.autocomplete
63
+ : null, checked: this.type === 'checkbox' || this.type === 'radio' ? this.checked : null, disabled: !this.required ? this.disabled : null, max: this.type === 'date' ||
64
+ this.type === 'month' ||
65
+ this.type === 'week' ||
66
+ this.type === 'time' ||
67
+ this.type === 'datetime-local' ||
68
+ this.type === 'number' ||
69
+ this.type === 'range'
70
+ ? this.max
71
+ : null, maxlength: this.maxlength, min: this.type === 'date' ||
72
+ this.type === 'month' ||
73
+ this.type === 'week' ||
74
+ this.type === 'time' ||
75
+ this.type === 'datetime-local' ||
76
+ this.type === 'number' ||
77
+ this.type === 'range'
78
+ ? this.min
79
+ : null, minlength: this.minlength, name: this.name, pattern: this.type === 'text' ||
80
+ this.type === 'date' ||
81
+ this.type === 'search' ||
82
+ this.type === 'url' ||
83
+ this.type === 'tel' ||
84
+ this.type === 'email' ||
85
+ this.type === 'password'
86
+ ? this.pattern
87
+ : null, placeholder: this.type === 'text' ||
88
+ this.type === 'tel' ||
89
+ this.type === 'email' ||
90
+ this.type === 'url' ||
91
+ this.type === 'password' ||
92
+ this.type === 'search'
93
+ ? this.placeholder
94
+ : null, readonly: this.type === 'text' ||
95
+ this.type === 'search' ||
96
+ this.type === 'url' ||
97
+ this.type === 'tel' ||
98
+ this.type === 'email' ||
99
+ this.type === 'password' ||
100
+ this.type === 'date' ||
101
+ this.type === 'month' ||
102
+ this.type === 'week' ||
103
+ this.type === 'time' ||
104
+ this.type === 'datetime-local' ||
105
+ this.type === 'number'
106
+ ? this.readonly
107
+ : null, required: this.type === 'text' ||
108
+ this.type === 'search' ||
109
+ this.type === 'url' ||
110
+ this.type === 'tel' ||
111
+ this.type === 'email' ||
112
+ this.type === 'password' ||
113
+ this.type === 'date' ||
114
+ this.type === 'month' ||
115
+ this.type === 'week' ||
116
+ this.type === 'time' ||
117
+ this.type === 'datetime-local' ||
118
+ this.type === 'number' ||
119
+ this.type === 'checkbox' ||
120
+ this.type === 'radio' ||
121
+ this.type === 'file'
122
+ ? this.required
123
+ : null, step: this.type === 'date' ||
124
+ this.type === 'month' ||
125
+ this.type === 'week' ||
126
+ this.type === 'time' ||
127
+ this.type === 'datetime-local' ||
128
+ this.type === 'number' ||
129
+ this.type === 'range'
130
+ ? this.step
131
+ : null, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.bind(this) }), this.iconright && (index.h("div", { class: "icon-right" }, index.h("tttx-icon", { icon: this.iconright, color: "grey" }))), index.h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, index.h("span", { class: "material-symbols-rounded validationicon" }, "warning"), " ", this.errormsg))));
132
+ }
133
+ };
134
134
  TttxInput.style = tttxStandaloneInputCss;
135
135
 
136
136
  exports.tttx_standalone_input = TttxInput;
@@ -2,59 +2,59 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-864b7110.js');
5
+ const index = require('./index-bf777121.js');
6
6
 
7
7
  const tttxTableCss = "// SPACING $spacing-unit: 4px; // REGULAR $horizontal-spacing: $spacing-unit * 4; $vertical-spacing: $spacing-unit * 2; $base-padding: $vertical-spacing $horizontal-spacing; $base-height: $spacing-unit * 9; $component-spacing: $spacing-unit * 4; // SMALL $horizontal-spacing-sm: $spacing-unit * 2; $vertical-spacing-sm: $spacing-unit * 1; $base-padding-sm: $vertical-spacing-sm $horizontal-spacing-sm; $base-height-sm: $spacing-unit * 7; // COLOURS $grey-0: #212121; $grey-1: #363636; $grey-2: #4c4c4c; $grey-3: #636363; $grey-4: #757575; $grey-5: #9e9e9e; $grey-6: #aeaeae; $grey-7: #c8c8c8; $grey-8: #e3e3e3; $grey-9: #f0f0f0; $white: white; $black: $grey-0; $transparent: transparent; $blue-0: #00187c; $blue-1: #032e8c; $blue-2: #0849a3; $blue-3: #0951a8; $blue-4: #1169ba; $blue-5: #1479c6; $blue-6: #5194d2; $blue-7: #7aacdd; $blue-8: #b9d5ed; $blue-9: #e7f1f9; $red-0: #7c0000; $red-1: #8c0000; $red-2: #a30000; $red-3: #a80000; $red-4: #ba0000; $red-5: #dc0000; $red-6: #d25151; $red-7: #dd7a7a; $red-8: #edc1c1; $red-9: #f9e7e7; $black-1: #e6e6e6; $brand: $blue-0; $accent: $blue-5; $accent-selected: $blue-9; $error: $red-5; $severity-critical: #dc0000; $severity-warning: #f59500; $severity-success: #a2bb31; $severity-info: $accent; $ui-primary: $black; $ui-secondary: $grey-4; $ui-disabled: $grey-2; $ui-placeholder: $grey-5; $ui-background: $grey-9; $ui-sheet: $white; $ui-border: #d5d5d5; // BORDERS $ui-border-radius: 4px; $ui-border-width: 1px; // TYPOGRAPHY $font-size-default: 16px; $font-size-small: 14px; .material-symbols-rounded{font-variation-settings:'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24}.skeleton{animation:skeleton-loading 1s linear infinite alternate;border-radius:4px;width:100%}@keyframes skeleton-loading{0%{background-color:hsl(200, 20%, 80%)}100%{background-color:hsl(200, 20%, 95%)}}:host{display:block}table{box-sizing:border-box;width:100%;border-collapse:collapse;border-spacing:0;border:1px solid #ddd;border-bottom:none}thead tr{height:52px;color:#757575}tbody tr{height:48px;color:#212121}tr{font-family:'Roboto', sans-serif;font-weight:400;font-size:16px;display:flex;align-items:center;border-bottom:1px solid #ddd}.selected{background-color:#F0F0F0}.checked{background-color:#e7f1f9}td,th{min-width:300px;margin-left:16px;display:flex;align-items:left}.skeleton{height:24px;display:block}.align-right{margin-left:auto}";
8
8
 
9
- const TttxTable = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.rowSelected = index.createEvent(this, "rowSelected", 7);
13
- this.headerClicked = index.createEvent(this, "headerClicked", 7);
14
- this.headers = [];
15
- this.data = {};
16
- this.loading = false;
17
- this.selected = -1;
18
- }
19
- handleKeyDown(ev) {
20
- if (ev.key === 'ArrowDown' || ev.key === 'ArrowUp') {
21
- this.updateSelectedIndex(ev.key);
22
- this.emitRowSelected();
23
- }
24
- }
25
- updateSelectedIndex(key) {
26
- if (this.selected === -1) {
27
- this.selected = 0;
28
- }
29
- else {
30
- const isArrowDown = key === 'ArrowDown';
31
- const isArrowUp = key === 'ArrowUp';
32
- if (isArrowDown && this.selected < this.data.length - 1) {
33
- this.selected++;
34
- }
35
- else if (isArrowUp && this.selected > 0) {
36
- this.selected--;
37
- }
38
- }
39
- }
40
- emitRowSelected() {
41
- this.rowSelected.emit(this.data[this.selected]);
42
- }
43
- rowSelectedHandler(row) {
44
- this.rowSelected.emit(row);
45
- this.selected = this.data.findIndex((item) => item === row);
46
- }
47
- headerClickedHandler(key) {
48
- this.headerClicked.emit(key);
49
- }
50
- render() {
51
- return (index.h(index.Host, null, index.h("table", null, index.h("thead", null, index.h("tr", null, this.loading ?
52
- [1, 2, 3].map(() => (index.h("th", null, index.h("div", { class: "skeleton" })))) :
53
- this.headers && this.headers.map((header) => (index.h("th", { scope: "col", onClick: () => this.headerClickedHandler(header.key) }, header.label))))), index.h("tbody", null, this.loading ?
54
- [1, 2, 3].map(() => (index.h("tr", null, index.h("td", null, index.h("div", { class: "skeleton" })), index.h("td", null, index.h("div", { class: "skeleton" })), index.h("td", null, index.h("div", { class: "skeleton" }))))) :
55
- Object.keys(this.data).map((key, index$1) => (index.h("tr", { class: index$1 === this.selected ? 'selected' : '', onClick: () => this.rowSelectedHandler(this.data[key]) }, this.headers.map((header) => (index.h("td", null, this.data[key][header.key], " ", header.actions && index.h("tttx-icon", { class: "align-right", icon: "more_vert" }, index.h("div", { slot: "popover" }, index.h("tttx-popover-content", { header: "The humble egg", body: "Most arthropods such as insects, vertebrates (excluding live-bearing mammals), and mollusks lay eggs, although some, such as scorpions, do not.", linkcontext: "Wikipedia_egg", linktext: "Learn more about eggs" })))))))))))));
56
- }
57
- };
9
+ const TttxTable = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.rowSelected = index.createEvent(this, "rowSelected", 7);
13
+ this.headerClicked = index.createEvent(this, "headerClicked", 7);
14
+ this.headers = [];
15
+ this.data = [];
16
+ this.loading = false;
17
+ this.selected = -1;
18
+ }
19
+ handleKeyDown(ev) {
20
+ if (ev.key === 'ArrowDown' || ev.key === 'ArrowUp') {
21
+ this.updateSelectedIndex(ev.key);
22
+ this.emitRowSelected();
23
+ }
24
+ }
25
+ updateSelectedIndex(key) {
26
+ if (this.selected === -1) {
27
+ this.selected = 0;
28
+ }
29
+ else {
30
+ const isArrowDown = key === 'ArrowDown';
31
+ const isArrowUp = key === 'ArrowUp';
32
+ if (isArrowDown && this.selected < this.data.length - 1) {
33
+ this.selected++;
34
+ }
35
+ else if (isArrowUp && this.selected > 0) {
36
+ this.selected--;
37
+ }
38
+ }
39
+ }
40
+ emitRowSelected() {
41
+ this.rowSelected.emit(this.data[this.selected]);
42
+ }
43
+ rowSelectedHandler(row) {
44
+ this.rowSelected.emit(row);
45
+ this.selected = this.data.findIndex((item) => item === row);
46
+ }
47
+ headerClickedHandler(key) {
48
+ this.headerClicked.emit(key);
49
+ }
50
+ render() {
51
+ return (index.h(index.Host, null, index.h("table", null, index.h("thead", null, index.h("tr", null, this.loading ?
52
+ [1, 2, 3].map(() => (index.h("th", null, index.h("div", { class: "skeleton" })))) :
53
+ this.headers && this.headers.map((header) => (index.h("th", { scope: "col", onClick: () => this.headerClickedHandler(header.key) }, header.label))))), index.h("tbody", null, this.loading ?
54
+ [1, 2, 3].map(() => (index.h("tr", null, index.h("td", null, index.h("div", { class: "skeleton" })), index.h("td", null, index.h("div", { class: "skeleton" })), index.h("td", null, index.h("div", { class: "skeleton" }))))) :
55
+ Object.keys(this.data).map((key, index$1) => (index.h("tr", { class: index$1 === this.selected ? 'selected' : '', onClick: () => this.rowSelectedHandler(this.data[key]) }, this.headers.map((header) => (index.h("td", null, this.data[key][header.key], " ", header.actions && index.h("tttx-icon", { class: "align-right", icon: "more_vert" }, index.h("div", { slot: "popover" }, index.h("tttx-popover-content", { header: "The humble egg", body: "Most arthropods such as insects, vertebrates (excluding live-bearing mammals), and mollusks lay eggs, although some, such as scorpions, do not.", linkcontext: "Wikipedia_egg", linktext: "Learn more about eggs" })))))))))))));
56
+ }
57
+ };
58
58
  TttxTable.style = tttxTableCss;
59
59
 
60
60
  exports.tttx_table = TttxTable;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-864b7110.js');
5
+ const index = require('./index-bf777121.js');
6
6
 
7
7
  /*
8
8
  Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
@@ -17,7 +17,7 @@ const patchBrowser = () => {
17
17
  };
18
18
 
19
19
  patchBrowser().then(options => {
20
- return index.bootstrapLazy([["tttx-table.cjs",[[1,"tttx-table",{"headers":[8],"data":[8],"loading":[4],"selected":[2]},[[4,"keydown","handleKeyDown"]]]]],["tttx-list.cjs",[[1,"tttx-list",{"name":[1],"selectable":[4],"items":[32],"selectedIds":[32],"loading":[32],"lastPage":[32]},[[4,"listPageLoad","listLoadHandler"],[4,"listClearDataCache","listClearDataCacheHandler"],[4,"listActionSelectedEvent","listActionSelectedEventHandler"]]]]],["tttx-standalone-input.cjs",[[1,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"autocapitalize":[1],"autocomplete":[1],"autofocus":[4],"checked":[4],"disabled":[4],"max":[8],"maxlength":[8],"min":[8],"minlength":[8],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[8],"required":[4],"step":[8],"type":[1],"value":[1032]}]]],["tttx-button.cjs",[[1,"tttx-button",{"fontColor":[1,"font-color"],"buttonStyle":[1,"button-style"]},[[0,"clickEvent","onClicked"]]]]],["tttx-checkbox.cjs",[[1,"tttx-checkbox",{"value":[4],"label":[1],"required":[4]}]]],["tttx-form.cjs",[[1,"tttx-form",{"formschema":[8],"submitValue":[8,"submit-value"]}]]],["tttx-loading-spinner.cjs",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-popover-content.cjs",[[1,"tttx-popover-content",{"header":[1],"body":[1],"linkcontext":[1],"linktext":[1]}]]],["tttx-icon.cjs",[[1,"tttx-icon",{"icon":[1],"colour":[1]},[[4,"click","handleDocumentClick"]]]]]], options);
20
+ return index.bootstrapLazy([["tttx-input-calendar.cjs",[[1,"tttx-input-calendar",{"months":[4],"years":[4],"showCalendar":[32],"selectedYear":[32],"selectedMonth":[32]}]]],["tttx-table.cjs",[[1,"tttx-table",{"headers":[16],"data":[16],"loading":[4],"selected":[2]},[[4,"keydown","handleKeyDown"]]]]],["tttx-list.cjs",[[1,"tttx-list",{"name":[1],"selectable":[4],"items":[32],"selectedIds":[32],"loading":[32],"lastPage":[32]},[[4,"listPageLoad","listLoadHandler"],[4,"listClearDataCache","listClearDataCacheHandler"],[4,"listActionSelectedEvent","listActionSelectedEventHandler"]]]]],["tttx-standalone-input.cjs",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"autocapitalize":[1],"autocomplete":[1],"autofocus":[4],"checked":[4],"disabled":[4],"max":[8],"maxlength":[8],"min":[8],"minlength":[8],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[8],"required":[4],"step":[8],"type":[1],"value":[1032]}]]],["tttx-checkbox.cjs",[[1,"tttx-checkbox",{"value":[4],"label":[1],"required":[4]}]]],["tttx-form.cjs",[[1,"tttx-form",{"formschema":[8],"submitValue":[8,"submit-value"]}]]],["tttx-keyvalue-block.cjs",[[1,"tttx-keyvalue-block",{"keyvalues":[8]}]]],["tttx-button.cjs",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"design":[1]}]]],["tttx-loading-spinner.cjs",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-popover-content.cjs",[[1,"tttx-popover-content",{"header":[1],"body":[1],"linkcontext":[1],"linktext":[1]}]]],["tttx-icon.cjs",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]]], options);
21
21
  });
22
22
 
23
23
  exports.setNonce = index.setNonce;
@@ -3,10 +3,12 @@
3
3
  "./components/molecules/tttx-standalone-input/tttx-standalone-input.js",
4
4
  "./components/atoms/tttx-button/tttx-button.js",
5
5
  "./components/atoms/tttx-icon/tttx-icon.js",
6
+ "./components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js",
6
7
  "./components/atoms/tttx-loading-spinner/tttx-loading-spinner.js",
7
8
  "./components/atoms/tttx-popover-content/tttx-popover-content.js",
8
9
  "./components/atoms/ttx-checkbox/tttx-checkbox.js",
9
10
  "./components/molecules/tttx-form/tttx-form.js",
11
+ "./components/molecules/tttx-input-calendar/tttx-input-calendar.js",
10
12
  "./components/molecules/tttx-list/tttx-list.js",
11
13
  "./components/molecules/tttx-table/tttx-table.js"
12
14
  ],
@@ -3,8 +3,11 @@
3
3
  }
4
4
 
5
5
  .button {
6
+ font-family: Roboto, serif;
7
+ box-sizing: border-box;
6
8
  height: 36px;
7
- padding: 8px 16px;
9
+ min-width: 36px;
10
+ padding: 0;
8
11
  margin: 0;
9
12
  background: transparent;
10
13
  color: #212121;
@@ -18,45 +21,118 @@
18
21
  font-weight: 400;
19
22
  }
20
23
 
24
+ .button-content {
25
+ display: block;
26
+ padding: 0 16px;
27
+ }
28
+
29
+ .icon-left, .icon-right {
30
+ margin-top: 4px;
31
+ }
32
+
33
+ .iconleft {
34
+ padding-left: 8px;
35
+ }
36
+
37
+ .iconleft .button-content {
38
+ padding-left: 4px;
39
+ }
40
+
41
+ .iconright {
42
+ padding-right: 8px;
43
+ }
44
+
45
+ .iconright .button-content {
46
+ padding-right: 4px;
47
+ }
48
+
49
+ .notext {
50
+ padding: 0 6px;
51
+ }
52
+
21
53
  .button:hover {
22
- background: #f0f0f0;
54
+ background: rgba(17, 17, 17, 0.1);
55
+ border: 1px solid #D5D5D5;
23
56
  }
24
57
 
25
58
  .button:active {
26
- background: #e3e3e3;
59
+ background: rgba(17, 17, 17, 0.2);
60
+ border: 1px solid #D5D5D5;
27
61
  }
28
62
 
29
- .primary-blue {
63
+ .primary {
30
64
  background: #1479c6;
31
65
  border: 1px solid #1479c6;
32
66
  color: white;
33
67
  }
34
68
 
35
- .primary-blue:hover {
36
- background: #1169ba;
69
+ .primary:hover {
70
+ background: #146EB3;
71
+ border: 1px solid #146EB3;
37
72
  }
38
73
 
39
- .primary-blue:active {
40
- background: #0951a8;
74
+ .primary:active {
75
+ background: #1464A2;
76
+ border: 1px solid #1464A2;
41
77
  }
42
78
 
43
- .secondary-white {
44
- background: white;
45
- border: 1px solid #212121;
79
+ .borderless {
80
+ background: transparent;
81
+ border: none;
82
+ color: #212121;
46
83
  }
47
84
 
48
- :host {
49
- display: inline-block;
85
+ .borderless:hover {
86
+ background: rgba(17, 17, 17, 0.1);
87
+ border: none;
50
88
  }
51
89
 
52
- .spacingleft {
53
- margin-left: 8px;
90
+ .borderless:active {
91
+ background: rgba(17, 17, 17, 0.2);
92
+ border: none;
54
93
  }
55
94
 
56
- .font-white {
95
+ .danger {
96
+ background: #DC0000;
97
+ border: 1px solid #DC0000;
57
98
  color: white;
58
99
  }
59
100
 
60
- .font-black {
61
- color: #212121;
101
+ .danger:hover {
102
+ background: #C60000;
103
+ border: 1px solid #C60000;
104
+ }
105
+
106
+ .danger:active {
107
+ background: #B00000;
108
+ border: 1px solid #B00000;
109
+ }
110
+
111
+ .disabled {
112
+ background: #aeaeae;
113
+ border: none;
114
+ color: #4c4c4c;
115
+ cursor: not-allowed;
116
+ }
117
+
118
+ .disabled:hover {
119
+ background: #aeaeae;
120
+ border: none;
121
+ color: #4c4c4c;
122
+ cursor: not-allowed;
123
+ }
124
+
125
+ .disabled:active {
126
+ background: #aeaeae;
127
+ border: none;
128
+ color: #4c4c4c;
129
+ cursor: not-allowed;
130
+ }
131
+
132
+ :host {
133
+ display: inline-block;
134
+ }
135
+
136
+ .spacingleft {
137
+ margin-left: 8px;
62
138
  }