@3t-transform/threeteeui 0.0.21 → 0.0.23
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-bf777121.js → index-2943e8f8.js} +1 -122
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/tttx-button.cjs.entry.js +1 -1
- package/dist/cjs/tttx-icon.cjs.entry.js +1 -1
- package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +8 -5
- package/dist/cjs/tttx-loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/tttx-standalone-input.cjs.entry.js +6 -4
- package/dist/cjs/tttx.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -7
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +7 -4
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +28 -9
- package/dist/components/index.d.ts +0 -6
- package/dist/components/index.js +0 -6
- package/dist/components/tttx-button.js +54 -1
- package/dist/components/tttx-keyvalue-block.js +7 -4
- package/dist/components/tttx-loading-spinner.js +38 -1
- package/dist/components/tttx-standalone-input.js +8 -5
- package/dist/esm/{index-a05bd606.js → index-058a3cd0.js} +2 -122
- package/dist/esm/loader.js +3 -3
- package/dist/esm/tttx-button.entry.js +1 -1
- package/dist/esm/tttx-icon.entry.js +1 -1
- package/dist/esm/tttx-keyvalue-block.entry.js +8 -5
- package/dist/esm/tttx-loading-spinner.entry.js +1 -1
- package/dist/esm/tttx-standalone-input.entry.js +6 -4
- package/dist/esm/tttx.js +3 -3
- package/dist/tttx/{p-68ff0f39.entry.js → p-046868d9.entry.js} +1 -1
- package/dist/tttx/{p-93763d3c.entry.js → p-1adb2b75.entry.js} +1 -1
- package/dist/tttx/{p-a5808741.entry.js → p-495cf4b3.entry.js} +1 -1
- package/dist/tttx/p-a4d9929a.entry.js +1 -0
- package/dist/tttx/p-ad637dde.entry.js +1 -0
- package/dist/tttx/p-bbb7dbf7.js +2 -0
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +3 -2
- package/dist/types/components.d.ts +6 -140
- package/package.json +2 -2
- package/dist/cjs/tttx-checkbox.cjs.entry.js +0 -28
- package/dist/cjs/tttx-form.cjs.entry.js +0 -374
- package/dist/cjs/tttx-input-calendar.cjs.entry.js +0 -125
- package/dist/cjs/tttx-list.cjs.entry.js +0 -198
- package/dist/cjs/tttx-popover-content.cjs.entry.js +0 -23
- package/dist/cjs/tttx-table.cjs.entry.js +0 -60
- package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.css +0 -30
- package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.js +0 -97
- package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.stories.js +0 -23
- package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.css +0 -181
- package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.js +0 -102
- package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.stories.js +0 -13
- package/dist/collection/components/molecules/tttx-form/tttx-form.css +0 -314
- package/dist/collection/components/molecules/tttx-form/tttx-form.js +0 -452
- package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +0 -109
- package/dist/collection/components/molecules/tttx-input-calendar/tttx-input-calendar.css +0 -93
- package/dist/collection/components/molecules/tttx-input-calendar/tttx-input-calendar.js +0 -174
- package/dist/collection/components/molecules/tttx-input-calendar/tttx-input-calendar.stories.js +0 -27
- package/dist/collection/components/molecules/tttx-list/tttx-list.css +0 -56
- package/dist/collection/components/molecules/tttx-list/tttx-list.js +0 -312
- package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +0 -37
- package/dist/collection/components/molecules/tttx-table/tttx-table.css +0 -166
- package/dist/collection/components/molecules/tttx-table/tttx-table.js +0 -174
- package/dist/collection/components/molecules/tttx-table/tttx-table.stories.js +0 -81
- package/dist/components/tttx-button2.js +0 -56
- package/dist/components/tttx-checkbox.d.ts +0 -11
- package/dist/components/tttx-checkbox.js +0 -46
- package/dist/components/tttx-form.d.ts +0 -11
- package/dist/components/tttx-form.js +0 -391
- package/dist/components/tttx-input-calendar.d.ts +0 -11
- package/dist/components/tttx-input-calendar.js +0 -157
- package/dist/components/tttx-list.d.ts +0 -11
- package/dist/components/tttx-list.js +0 -225
- package/dist/components/tttx-loading-spinner2.js +0 -40
- package/dist/components/tttx-popover-content.d.ts +0 -11
- package/dist/components/tttx-popover-content.js +0 -6
- package/dist/components/tttx-popover-content2.js +0 -39
- package/dist/components/tttx-table.d.ts +0 -11
- package/dist/components/tttx-table.js +0 -91
- package/dist/esm/tttx-checkbox.entry.js +0 -24
- package/dist/esm/tttx-form.entry.js +0 -370
- package/dist/esm/tttx-input-calendar.entry.js +0 -121
- package/dist/esm/tttx-list.entry.js +0 -194
- package/dist/esm/tttx-popover-content.entry.js +0 -19
- package/dist/esm/tttx-table.entry.js +0 -56
- package/dist/tttx/p-037d286f.entry.js +0 -1
- package/dist/tttx/p-07b134af.js +0 -2
- package/dist/tttx/p-1b63f16a.entry.js +0 -1
- package/dist/tttx/p-45afb84c.entry.js +0 -1
- package/dist/tttx/p-74061060.entry.js +0 -1
- package/dist/tttx/p-9536b8c4.entry.js +0 -1
- package/dist/tttx/p-a92ca87e.entry.js +0 -1
- package/dist/tttx/p-a96ca037.entry.js +0 -1
- package/dist/tttx/p-f579ed1e.entry.js +0 -1
- package/dist/types/components/atoms/tttx-popover-content/tttx-popover-content.d.ts +0 -7
- package/dist/types/components/atoms/tttx-popover-content/tttx-popover-content.stories.d.ts +0 -18
- package/dist/types/components/atoms/ttx-checkbox/tttx-checkbox.d.ts +0 -9
- package/dist/types/components/atoms/ttx-checkbox/tttx-checkbox.stories.d.ts +0 -6
- package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +0 -134
- package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +0 -12
- package/dist/types/components/molecules/tttx-input-calendar/tttx-input-calendar.d.ts +0 -19
- package/dist/types/components/molecules/tttx-input-calendar/tttx-input-calendar.stories.d.ts +0 -26
- package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +0 -51
- package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +0 -13
- package/dist/types/components/molecules/tttx-table/tttx-table.d.ts +0 -15
- package/dist/types/components/molecules/tttx-table/tttx-table.stories.d.ts +0 -21
|
@@ -193,10 +193,6 @@ const parsePropertyValue = (propValue, propType) => {
|
|
|
193
193
|
// but we'll cheat here and say that the string "false" is the boolean false
|
|
194
194
|
return propValue === 'false' ? false : propValue === '' || !!propValue;
|
|
195
195
|
}
|
|
196
|
-
if (propType & 2 /* MEMBER_FLAGS.Number */) {
|
|
197
|
-
// force it to be a number
|
|
198
|
-
return parseFloat(propValue);
|
|
199
|
-
}
|
|
200
196
|
if (propType & 1 /* MEMBER_FLAGS.String */) {
|
|
201
197
|
// could have been passed as a number or boolean
|
|
202
198
|
// but we still want it as a string
|
|
@@ -333,12 +329,6 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
333
329
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
334
330
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
335
331
|
}
|
|
336
|
-
else if (memberName === 'ref') {
|
|
337
|
-
// minifier will clean this up
|
|
338
|
-
if (newValue) {
|
|
339
|
-
newValue(elm);
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
332
|
else if ((!isProp ) &&
|
|
343
333
|
memberName[0] === 'o' &&
|
|
344
334
|
memberName[1] === 'n') {
|
|
@@ -533,7 +523,6 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
|
533
523
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
534
524
|
if ((vnode = vnodes[startIdx])) {
|
|
535
525
|
elm = vnode.$elm$;
|
|
536
|
-
callNodeRefs(vnode);
|
|
537
526
|
// remove the vnode's element from the dom
|
|
538
527
|
elm.remove();
|
|
539
528
|
}
|
|
@@ -786,12 +775,6 @@ const patch = (oldVNode, newVNode) => {
|
|
|
786
775
|
elm.data = text;
|
|
787
776
|
}
|
|
788
777
|
};
|
|
789
|
-
const callNodeRefs = (vNode) => {
|
|
790
|
-
{
|
|
791
|
-
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
792
|
-
vNode.$children$ && vNode.$children$.map(callNodeRefs);
|
|
793
|
-
}
|
|
794
|
-
};
|
|
795
778
|
/**
|
|
796
779
|
* The main entry point for Stencil's virtual DOM-based rendering engine
|
|
797
780
|
*
|
|
@@ -844,20 +827,10 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
844
827
|
const instance = hostRef.$lazyInstance$ ;
|
|
845
828
|
let promise;
|
|
846
829
|
if (isInitialLoad) {
|
|
847
|
-
{
|
|
848
|
-
hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
|
|
849
|
-
if (hostRef.$queuedListeners$) {
|
|
850
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
851
|
-
hostRef.$queuedListeners$ = null;
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
830
|
{
|
|
855
831
|
promise = safeCall(instance, 'componentWillLoad');
|
|
856
832
|
}
|
|
857
833
|
}
|
|
858
|
-
{
|
|
859
|
-
promise = then(promise, () => safeCall(instance, 'componentWillRender'));
|
|
860
|
-
}
|
|
861
834
|
endSchedule();
|
|
862
835
|
return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
863
836
|
};
|
|
@@ -925,20 +898,13 @@ const postUpdateComponent = (hostRef) => {
|
|
|
925
898
|
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
926
899
|
const elm = hostRef.$hostElement$;
|
|
927
900
|
const endPostUpdate = createTime('postUpdate', tagName);
|
|
928
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
929
901
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
930
|
-
{
|
|
931
|
-
safeCall(instance, 'componentDidRender');
|
|
932
|
-
}
|
|
933
902
|
if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
|
|
934
903
|
hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
|
|
935
904
|
{
|
|
936
905
|
// DOM WRITE!
|
|
937
906
|
addHydratedFlag(elm);
|
|
938
907
|
}
|
|
939
|
-
{
|
|
940
|
-
safeCall(instance, 'componentDidLoad');
|
|
941
|
-
}
|
|
942
908
|
endPostUpdate();
|
|
943
909
|
{
|
|
944
910
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -994,7 +960,6 @@ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propNam
|
|
|
994
960
|
const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
995
961
|
// check our new property value against our internal value
|
|
996
962
|
const hostRef = getHostRef(ref);
|
|
997
|
-
const elm = hostRef.$hostElement$ ;
|
|
998
963
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
999
964
|
const flags = hostRef.$flags$;
|
|
1000
965
|
const instance = hostRef.$lazyInstance$ ;
|
|
@@ -1007,22 +972,6 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1007
972
|
// set our new value!
|
|
1008
973
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
1009
974
|
if (instance) {
|
|
1010
|
-
// get an array of method names of watch functions to call
|
|
1011
|
-
if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
|
|
1012
|
-
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1013
|
-
if (watchMethods) {
|
|
1014
|
-
// this instance is watching for when this property changed
|
|
1015
|
-
watchMethods.map((watchMethodName) => {
|
|
1016
|
-
try {
|
|
1017
|
-
// fire off each of the watch methods that are watching this property
|
|
1018
|
-
instance[watchMethodName](newVal, oldVal, propName);
|
|
1019
|
-
}
|
|
1020
|
-
catch (e) {
|
|
1021
|
-
consoleError(e, elm);
|
|
1022
|
-
}
|
|
1023
|
-
});
|
|
1024
|
-
}
|
|
1025
|
-
}
|
|
1026
975
|
if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
|
|
1027
976
|
// looks like this value actually changed, so we've got work to do!
|
|
1028
977
|
// but only if we've already rendered, otherwise just chill out
|
|
@@ -1045,9 +994,6 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1045
994
|
*/
|
|
1046
995
|
const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1047
996
|
if (cmpMeta.$members$) {
|
|
1048
|
-
if (Cstr.watchers) {
|
|
1049
|
-
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1050
|
-
}
|
|
1051
997
|
// It's better to have a const than two Object.entries()
|
|
1052
998
|
const members = Object.entries(cmpMeta.$members$);
|
|
1053
999
|
const prototype = Cstr.prototype;
|
|
@@ -1152,12 +1098,6 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1152
1098
|
endLoad();
|
|
1153
1099
|
}
|
|
1154
1100
|
if (!Cstr.isProxied) {
|
|
1155
|
-
// we've never proxied this Constructor before
|
|
1156
|
-
// let's add the getters/setters to its prototype before
|
|
1157
|
-
// the first time we create an instance of the implementation
|
|
1158
|
-
{
|
|
1159
|
-
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1160
|
-
}
|
|
1161
1101
|
proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
|
|
1162
1102
|
Cstr.isProxied = true;
|
|
1163
1103
|
}
|
|
@@ -1181,9 +1121,6 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1181
1121
|
{
|
|
1182
1122
|
hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
|
|
1183
1123
|
}
|
|
1184
|
-
{
|
|
1185
|
-
hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
|
|
1186
|
-
}
|
|
1187
1124
|
endNewInstance();
|
|
1188
1125
|
}
|
|
1189
1126
|
if (Cstr.style) {
|
|
@@ -1251,28 +1188,12 @@ const connectedCallback = (elm) => {
|
|
|
1251
1188
|
initializeComponent(elm, hostRef, cmpMeta);
|
|
1252
1189
|
}
|
|
1253
1190
|
}
|
|
1254
|
-
else {
|
|
1255
|
-
// not the first time this has connected
|
|
1256
|
-
// reattach any event listeners to the host
|
|
1257
|
-
// since they would have been removed when disconnected
|
|
1258
|
-
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1259
|
-
}
|
|
1260
1191
|
endConnected();
|
|
1261
1192
|
}
|
|
1262
1193
|
};
|
|
1263
1194
|
const disconnectedCallback = (elm) => {
|
|
1264
1195
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1265
|
-
|
|
1266
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
1267
|
-
{
|
|
1268
|
-
if (hostRef.$rmListeners$) {
|
|
1269
|
-
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
1270
|
-
hostRef.$rmListeners$ = undefined;
|
|
1271
|
-
}
|
|
1272
|
-
}
|
|
1273
|
-
{
|
|
1274
|
-
safeCall(instance, 'disconnectedCallback');
|
|
1275
|
-
}
|
|
1196
|
+
getHostRef(elm);
|
|
1276
1197
|
}
|
|
1277
1198
|
};
|
|
1278
1199
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
@@ -1300,12 +1221,6 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1300
1221
|
{
|
|
1301
1222
|
cmpMeta.$members$ = compactMeta[2];
|
|
1302
1223
|
}
|
|
1303
|
-
{
|
|
1304
|
-
cmpMeta.$listeners$ = compactMeta[3];
|
|
1305
|
-
}
|
|
1306
|
-
{
|
|
1307
|
-
cmpMeta.$watchers$ = {};
|
|
1308
|
-
}
|
|
1309
1224
|
const tagName = cmpMeta.$tagName$;
|
|
1310
1225
|
const HostElement = class extends HTMLElement {
|
|
1311
1226
|
// StencilLazyHost
|
|
@@ -1376,40 +1291,6 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1376
1291
|
// Fallback appLoad event
|
|
1377
1292
|
endBootstrap();
|
|
1378
1293
|
};
|
|
1379
|
-
const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
1380
|
-
if (listeners) {
|
|
1381
|
-
listeners.map(([flags, name, method]) => {
|
|
1382
|
-
const target = getHostListenerTarget(elm, flags) ;
|
|
1383
|
-
const handler = hostListenerProxy(hostRef, method);
|
|
1384
|
-
const opts = hostListenerOpts(flags);
|
|
1385
|
-
plt.ael(target, name, handler, opts);
|
|
1386
|
-
(hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
|
|
1387
|
-
});
|
|
1388
|
-
}
|
|
1389
|
-
};
|
|
1390
|
-
const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
1391
|
-
try {
|
|
1392
|
-
{
|
|
1393
|
-
if (hostRef.$flags$ & 256 /* HOST_FLAGS.isListenReady */) {
|
|
1394
|
-
// instance is ready, let's call it's member method for this event
|
|
1395
|
-
hostRef.$lazyInstance$[methodName](ev);
|
|
1396
|
-
}
|
|
1397
|
-
else {
|
|
1398
|
-
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
|
1399
|
-
}
|
|
1400
|
-
}
|
|
1401
|
-
}
|
|
1402
|
-
catch (e) {
|
|
1403
|
-
consoleError(e);
|
|
1404
|
-
}
|
|
1405
|
-
};
|
|
1406
|
-
const getHostListenerTarget = (elm, flags) => {
|
|
1407
|
-
if (flags & 4 /* LISTENER_FLAGS.TargetDocument */)
|
|
1408
|
-
return doc;
|
|
1409
|
-
return elm;
|
|
1410
|
-
};
|
|
1411
|
-
// prettier-ignore
|
|
1412
|
-
const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
|
|
1413
1294
|
/**
|
|
1414
1295
|
* Assigns the given value to the nonce property on the runtime platform object.
|
|
1415
1296
|
* During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
|
|
@@ -1432,7 +1313,6 @@ const registerHost = (elm, cmpMeta) => {
|
|
|
1432
1313
|
elm['s-p'] = [];
|
|
1433
1314
|
elm['s-rc'] = [];
|
|
1434
1315
|
}
|
|
1435
|
-
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1436
1316
|
return hostRefs.set(elm, hostRef);
|
|
1437
1317
|
};
|
|
1438
1318
|
const isMemberInElement = (elm, memberName) => memberName in elm;
|
|
@@ -1527,7 +1407,6 @@ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
|
1527
1407
|
exports.Host = Host;
|
|
1528
1408
|
exports.bootstrapLazy = bootstrapLazy;
|
|
1529
1409
|
exports.createEvent = createEvent;
|
|
1530
|
-
exports.getElement = getElement;
|
|
1531
1410
|
exports.h = h;
|
|
1532
1411
|
exports.promiseResolve = promiseResolve;
|
|
1533
1412
|
exports.registerInstance = registerInstance;
|
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-2943e8f8.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
8
|
Stencil Client Patch Esm v2.22.3 | 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-
|
|
17
|
+
return index.bootstrapLazy([["tttx-button.cjs",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"design":[1]}]]],["tttx-standalone-input.cjs",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"inputAutocapitalize":[1,"input-autocapitalize"],"inputAutofocus":[4,"input-autofocus"],"inputKeyhint":[1,"input-keyhint"],"inputIndex":[8,"input-index"],"inputTitle":[1,"input-title"],"autocomplete":[1],"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-keyvalue-block.cjs",[[1,"tttx-keyvalue-block",{"keyvalues":[8],"horizontal":[4]}]]],["tttx-loading-spinner.cjs",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-icon.cjs",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -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-2943e8f8.js');
|
|
6
6
|
|
|
7
7
|
const tttxButtonCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.button{font-family:Roboto, serif;box-sizing:border-box;height:36px;min-width:36px;padding:0;margin:0;background:transparent;color:#212121;border:1px solid #c8c8c8;border-radius:4px;text-transform:uppercase;display:flex;justify-content:left;align-items:center;font-size:14px;font-weight:400}.button-content{display:block;padding:0 16px}.icon-left,.icon-right{margin-top:4px}.iconleft{padding-left:8px}.iconleft .button-content{padding-left:4px}.iconright{padding-right:8px}.iconright .button-content{padding-right:4px}.notext{padding:0 6px}.button:hover{background:rgba(17, 17, 17, 0.1);border:1px solid #D5D5D5}.button:active{background:rgba(17, 17, 17, 0.2);border:1px solid #D5D5D5}.primary{background:#1479c6;border:1px solid #1479c6;color:white}.primary:hover{background:#146EB3;border:1px solid #146EB3}.primary:active{background:#1464A2;border:1px solid #1464A2}.borderless{background:transparent;border:none;color:#212121}.borderless:hover{background:rgba(17, 17, 17, 0.1);border:none}.borderless:active{background:rgba(17, 17, 17, 0.2);border:none}.danger{background:#DC0000;border:1px solid #DC0000;color:white}.danger:hover{background:#C60000;border:1px solid #C60000}.danger:active{background:#B00000;border:1px solid #B00000}.disabled{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:hover{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:active{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}:host{display:inline-block}.spacingleft{margin-left:8px}";
|
|
8
8
|
|
|
@@ -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-2943e8f8.js');
|
|
6
6
|
|
|
7
7
|
const tttxIconCss = ".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}:host{display:inline-block;cursor:default;user-select:none}.icon-size{width:24px;height:24px}.tooltip{background:#ffffff;color:#343434;font-weight:bold;padding:8px 16px;font-size:13px;border-radius:4px;box-shadow:0 0 5px 1px rgba(0, 0, 0, 0.3);display:none}.tooltip[data-show]{display:block}.arrow,.arrow::before{position:absolute;width:8px;height:8px;background:inherit}.arrow{visibility:hidden}.arrow::before{visibility:visible;content:\"\";transform:rotate(45deg)}.tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}.tooltip[data-popper-placement^=left]>.arrow{right:-4px}.tooltip[data-popper-placement^=right]>.arrow{left:-4px}.red{color:#dc0000}.orange{color:#f59500}.blue{color:#1479c6}.green{color:#a2bb31}.gray{color:#757575}.black{color:#212121}.white{color:white}";
|
|
8
8
|
|
|
@@ -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-2943e8f8.js');
|
|
6
6
|
|
|
7
7
|
const tttxKeyvalueBlockCss = ":host{display:block}dl{margin:0;padding:0;font-family:\"Roboto\", sans-serif;cursor:default}dt{font-weight:400;line-height:21px;font-size:16px}dt,dt.subTitle{color:#757575}dt.mainTitle{color:#212121}dd{margin:0;font-weight:400;font-size:16px;color:#212121;line-height:21px;margin-bottom:18px}dl.horizontal{display:flex;flex-direction:row;width:100%}dl.horizontal div{flex-grow:1}@media (max-width: 769px){dl.horizontal{flex-wrap:wrap}dl.horizontal div{width:50%}}@media (max-width: 600px){dl.horizontal div{width:100%}}";
|
|
8
8
|
|
|
@@ -31,17 +31,20 @@ const TttxKeyvalueBlock = class {
|
|
|
31
31
|
for (let i = 0; i < values.length; i++) {
|
|
32
32
|
const value = values[i];
|
|
33
33
|
if (this.horizontal) {
|
|
34
|
-
elements.push(index.h("div", null, index.h("dt", { class:
|
|
34
|
+
elements.push(index.h("div", null, index.h("dt", { class: 'mainTitle' }, value.title), index.h("dt", { class: 'subTitle' }, value.subTitle), index.h("dd", null, value.data)));
|
|
35
35
|
}
|
|
36
36
|
else {
|
|
37
|
-
elements.push(index.h("dt", { class:
|
|
38
|
-
elements.push(index.h("dt", { class:
|
|
37
|
+
elements.push(index.h("dt", { class: 'mainTitle' }, value.title));
|
|
38
|
+
elements.push(index.h("dt", { class: 'subTitle' }, value.subTitle));
|
|
39
39
|
elements.push(index.h("dd", null, value.data));
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
return elements;
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
|
+
if (!this.keyvalues) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
45
48
|
let values;
|
|
46
49
|
if (typeof this.keyvalues === 'string') {
|
|
47
50
|
values = JSON.parse(this.keyvalues);
|
|
@@ -56,7 +59,7 @@ const TttxKeyvalueBlock = class {
|
|
|
56
59
|
else {
|
|
57
60
|
elements = this.renderSingleElements(values);
|
|
58
61
|
}
|
|
59
|
-
return (index.h(index.Host, null, index.h("dl", { class: this.horizontal ?
|
|
62
|
+
return (index.h(index.Host, null, index.h("dl", { class: this.horizontal ? 'horizontal' : null }, elements)));
|
|
60
63
|
}
|
|
61
64
|
};
|
|
62
65
|
TttxKeyvalueBlock.style = tttxKeyvalueBlockCss;
|
|
@@ -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-2943e8f8.js');
|
|
6
6
|
|
|
7
7
|
const tttxLoadingSpinnerCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.spinner-container{position:absolute}.loading-box{display:flex;align-items:center;justify-content:center}.loading-text{font-size:16px;font-weight:400;padding-top:10px;text-align:center}.spinner{border:solid #1479c6;border-bottom-color:#d5d5d5;border-radius:50%;position:relative;box-sizing:border-box;animation:rotation 1s linear infinite}.spinner.small{height:20px;width:20px;border-width:4px}.spinner.large{height:60px;width:60px;border-width:8px}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
|
|
8
8
|
|
|
@@ -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-2943e8f8.js');
|
|
6
6
|
|
|
7
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
|
|
|
@@ -18,10 +18,11 @@ const TttxInput = class {
|
|
|
18
18
|
this.errormsg = undefined;
|
|
19
19
|
this.iconleft = undefined;
|
|
20
20
|
this.iconright = undefined;
|
|
21
|
-
this.
|
|
22
|
-
this.
|
|
21
|
+
this.inputAutocapitalize = undefined;
|
|
22
|
+
this.inputAutofocus = undefined;
|
|
23
23
|
this.inputKeyhint = undefined;
|
|
24
24
|
this.inputIndex = undefined;
|
|
25
|
+
this.inputTitle = undefined;
|
|
25
26
|
this.autocomplete = undefined;
|
|
26
27
|
this.checked = undefined;
|
|
27
28
|
this.disabled = undefined;
|
|
@@ -52,12 +53,13 @@ const TttxInput = class {
|
|
|
52
53
|
this.blurChanged.emit(target.value);
|
|
53
54
|
}
|
|
54
55
|
handleInvalid(event) {
|
|
56
|
+
event.preventDefault();
|
|
55
57
|
const target = event.target;
|
|
56
58
|
this.invalidChanged.emit(target.value);
|
|
57
59
|
}
|
|
58
60
|
render() {
|
|
59
61
|
const classNames = ['standalone', this.showerrormsg ? 'invalid' : ''].join(' ');
|
|
60
|
-
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.
|
|
62
|
+
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.inputAutocapitalize, autofocus: this.inputAutofocus, enterkeyhint: this.inputKeyhint, tabindex: this.inputIndex, title: this.inputTitle, autocomplete: this.autocomplete, checked: this.checked, disabled: this.disabled, max: this.max, maxlength: this.maxlength, min: this.min, minlength: this.minlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readonly: this.readonly, required: this.required, step: this.step, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.bind(this), onInvalid: this.handleInvalid.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))));
|
|
61
63
|
}
|
|
62
64
|
};
|
|
63
65
|
TttxInput.style = tttxStandaloneInputCss;
|
package/dist/cjs/tttx.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-2943e8f8.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-
|
|
20
|
+
return index.bootstrapLazy([["tttx-button.cjs",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"design":[1]}]]],["tttx-standalone-input.cjs",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"inputAutocapitalize":[1,"input-autocapitalize"],"inputAutofocus":[4,"input-autofocus"],"inputKeyhint":[1,"input-keyhint"],"inputIndex":[8,"input-index"],"inputTitle":[1,"input-title"],"autocomplete":[1],"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-keyvalue-block.cjs",[[1,"tttx-keyvalue-block",{"keyvalues":[8],"horizontal":[4]}]]],["tttx-loading-spinner.cjs",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-icon.cjs",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]]], options);
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
exports.setNonce = index.setNonce;
|
|
@@ -4,13 +4,7 @@
|
|
|
4
4
|
"./components/atoms/tttx-button/tttx-button.js",
|
|
5
5
|
"./components/atoms/tttx-icon/tttx-icon.js",
|
|
6
6
|
"./components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js",
|
|
7
|
-
"./components/atoms/tttx-loading-spinner/tttx-loading-spinner.js"
|
|
8
|
-
"./components/atoms/tttx-popover-content/tttx-popover-content.js",
|
|
9
|
-
"./components/atoms/ttx-checkbox/tttx-checkbox.js",
|
|
10
|
-
"./components/molecules/tttx-form/tttx-form.js",
|
|
11
|
-
"./components/molecules/tttx-input-calendar/tttx-input-calendar.js",
|
|
12
|
-
"./components/molecules/tttx-list/tttx-list.js",
|
|
13
|
-
"./components/molecules/tttx-table/tttx-table.js"
|
|
7
|
+
"./components/atoms/tttx-loading-spinner/tttx-loading-spinner.js"
|
|
14
8
|
],
|
|
15
9
|
"compiler": {
|
|
16
10
|
"name": "@stencil/core",
|
|
@@ -24,17 +24,20 @@ export class TttxKeyvalueBlock {
|
|
|
24
24
|
for (let i = 0; i < values.length; i++) {
|
|
25
25
|
const value = values[i];
|
|
26
26
|
if (this.horizontal) {
|
|
27
|
-
elements.push(h("div", null, h("dt", { class:
|
|
27
|
+
elements.push(h("div", null, h("dt", { class: 'mainTitle' }, value.title), h("dt", { class: 'subTitle' }, value.subTitle), h("dd", null, value.data)));
|
|
28
28
|
}
|
|
29
29
|
else {
|
|
30
|
-
elements.push(h("dt", { class:
|
|
31
|
-
elements.push(h("dt", { class:
|
|
30
|
+
elements.push(h("dt", { class: 'mainTitle' }, value.title));
|
|
31
|
+
elements.push(h("dt", { class: 'subTitle' }, value.subTitle));
|
|
32
32
|
elements.push(h("dd", null, value.data));
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
return elements;
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
+
if (!this.keyvalues) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
38
41
|
let values;
|
|
39
42
|
if (typeof this.keyvalues === 'string') {
|
|
40
43
|
values = JSON.parse(this.keyvalues);
|
|
@@ -49,7 +52,7 @@ export class TttxKeyvalueBlock {
|
|
|
49
52
|
else {
|
|
50
53
|
elements = this.renderSingleElements(values);
|
|
51
54
|
}
|
|
52
|
-
return (h(Host, null, h("dl", { class: this.horizontal ?
|
|
55
|
+
return (h(Host, null, h("dl", { class: this.horizontal ? 'horizontal' : null }, elements)));
|
|
53
56
|
}
|
|
54
57
|
static get is() { return "tttx-keyvalue-block"; }
|
|
55
58
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,10 +7,11 @@ export class TttxInput {
|
|
|
7
7
|
this.errormsg = undefined;
|
|
8
8
|
this.iconleft = undefined;
|
|
9
9
|
this.iconright = undefined;
|
|
10
|
-
this.
|
|
11
|
-
this.
|
|
10
|
+
this.inputAutocapitalize = undefined;
|
|
11
|
+
this.inputAutofocus = undefined;
|
|
12
12
|
this.inputKeyhint = undefined;
|
|
13
13
|
this.inputIndex = undefined;
|
|
14
|
+
this.inputTitle = undefined;
|
|
14
15
|
this.autocomplete = undefined;
|
|
15
16
|
this.checked = undefined;
|
|
16
17
|
this.disabled = undefined;
|
|
@@ -41,12 +42,13 @@ export class TttxInput {
|
|
|
41
42
|
this.blurChanged.emit(target.value);
|
|
42
43
|
}
|
|
43
44
|
handleInvalid(event) {
|
|
45
|
+
event.preventDefault();
|
|
44
46
|
const target = event.target;
|
|
45
47
|
this.invalidChanged.emit(target.value);
|
|
46
48
|
}
|
|
47
49
|
render() {
|
|
48
50
|
const classNames = ['standalone', this.showerrormsg ? 'invalid' : ''].join(' ');
|
|
49
|
-
return (h(Host, null, h("label", { class: 'inputBlock' }, this.label, !this.required ? h("span", { class: "optional" }, "\u00A0(optional)") : '', this.iconleft && (h("div", { class: "icon-left" }, h("tttx-icon", { icon: this.iconleft, color: "grey" }))), h("input", { class: classNames, autocapitalize: this.
|
|
51
|
+
return (h(Host, null, h("label", { class: 'inputBlock' }, this.label, !this.required ? h("span", { class: "optional" }, "\u00A0(optional)") : '', this.iconleft && (h("div", { class: "icon-left" }, h("tttx-icon", { icon: this.iconleft, color: "grey" }))), h("input", { class: classNames, autocapitalize: this.inputAutocapitalize, autofocus: this.inputAutofocus, enterkeyhint: this.inputKeyhint, tabindex: this.inputIndex, title: this.inputTitle, autocomplete: this.autocomplete, checked: this.checked, disabled: this.disabled, max: this.max, maxlength: this.maxlength, min: this.min, minlength: this.minlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readonly: this.readonly, required: this.required, step: this.step, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.bind(this), onInvalid: this.handleInvalid.bind(this) }), this.iconright && (h("div", { class: "icon-right" }, h("tttx-icon", { icon: this.iconright, color: "grey" }))), h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, h("span", { class: "material-symbols-rounded validationicon" }, "warning"), " ", this.errormsg))));
|
|
50
52
|
}
|
|
51
53
|
static get is() { return "tttx-standalone-input"; }
|
|
52
54
|
static get encapsulation() { return "scoped"; }
|
|
@@ -147,12 +149,12 @@ export class TttxInput {
|
|
|
147
149
|
"attribute": "iconright",
|
|
148
150
|
"reflect": false
|
|
149
151
|
},
|
|
150
|
-
"
|
|
152
|
+
"inputAutocapitalize": {
|
|
151
153
|
"type": "string",
|
|
152
154
|
"mutable": false,
|
|
153
155
|
"complexType": {
|
|
154
|
-
"original": "
|
|
155
|
-
"resolved": "
|
|
156
|
+
"original": "'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters'",
|
|
157
|
+
"resolved": "\"characters\" | \"none\" | \"off\" | \"on\" | \"sentences\" | \"words\"",
|
|
156
158
|
"references": {}
|
|
157
159
|
},
|
|
158
160
|
"required": false,
|
|
@@ -161,10 +163,10 @@ export class TttxInput {
|
|
|
161
163
|
"tags": [],
|
|
162
164
|
"text": ""
|
|
163
165
|
},
|
|
164
|
-
"attribute": "autocapitalize",
|
|
166
|
+
"attribute": "input-autocapitalize",
|
|
165
167
|
"reflect": false
|
|
166
168
|
},
|
|
167
|
-
"
|
|
169
|
+
"inputAutofocus": {
|
|
168
170
|
"type": "boolean",
|
|
169
171
|
"mutable": false,
|
|
170
172
|
"complexType": {
|
|
@@ -178,7 +180,7 @@ export class TttxInput {
|
|
|
178
180
|
"tags": [],
|
|
179
181
|
"text": ""
|
|
180
182
|
},
|
|
181
|
-
"attribute": "autofocus",
|
|
183
|
+
"attribute": "input-autofocus",
|
|
182
184
|
"reflect": false
|
|
183
185
|
},
|
|
184
186
|
"inputKeyhint": {
|
|
@@ -221,6 +223,23 @@ export class TttxInput {
|
|
|
221
223
|
"attribute": "input-index",
|
|
222
224
|
"reflect": false
|
|
223
225
|
},
|
|
226
|
+
"inputTitle": {
|
|
227
|
+
"type": "string",
|
|
228
|
+
"mutable": false,
|
|
229
|
+
"complexType": {
|
|
230
|
+
"original": "string",
|
|
231
|
+
"resolved": "string",
|
|
232
|
+
"references": {}
|
|
233
|
+
},
|
|
234
|
+
"required": false,
|
|
235
|
+
"optional": false,
|
|
236
|
+
"docs": {
|
|
237
|
+
"tags": [],
|
|
238
|
+
"text": ""
|
|
239
|
+
},
|
|
240
|
+
"attribute": "input-title",
|
|
241
|
+
"reflect": false
|
|
242
|
+
},
|
|
224
243
|
"autocomplete": {
|
|
225
244
|
"type": "string",
|
|
226
245
|
"mutable": false,
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
/* tttx custom elements */
|
|
2
2
|
export { TttxButton as TttxButton } from '../types/components/atoms/tttx-button/tttx-button';
|
|
3
|
-
export { TttxCheckbox as TttxCheckbox } from '../types/components/atoms/ttx-checkbox/tttx-checkbox';
|
|
4
|
-
export { TttxForm as TttxForm } from '../types/components/molecules/tttx-form/tttx-form';
|
|
5
3
|
export { TttxIcon as TttxIcon } from '../types/components/atoms/tttx-icon/tttx-icon';
|
|
6
|
-
export { TttxInputCalendar as TttxInputCalendar } from '../types/components/molecules/tttx-input-calendar/tttx-input-calendar';
|
|
7
4
|
export { TttxKeyvalueBlock as TttxKeyvalueBlock } from '../types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block';
|
|
8
|
-
export { TttxList as TttxList } from '../types/components/molecules/tttx-list/tttx-list';
|
|
9
5
|
export { TttxLoadingSpinner as TttxLoadingSpinner } from '../types/components/atoms/tttx-loading-spinner/tttx-loading-spinner';
|
|
10
|
-
export { TttxPopoverContent as TttxPopoverContent } from '../types/components/atoms/tttx-popover-content/tttx-popover-content';
|
|
11
6
|
export { TttxInput as TttxStandaloneInput } from '../types/components/molecules/tttx-standalone-input/tttx-standalone-input';
|
|
12
|
-
export { TttxTable as TttxTable } from '../types/components/molecules/tttx-table/tttx-table';
|
|
13
7
|
|
|
14
8
|
/**
|
|
15
9
|
* Used to manually set the base path where assets can be found.
|
package/dist/components/index.js
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
export { setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
|
|
2
2
|
export { TttxButton, defineCustomElement as defineCustomElementTttxButton } from './tttx-button.js';
|
|
3
|
-
export { TttxCheckbox, defineCustomElement as defineCustomElementTttxCheckbox } from './tttx-checkbox.js';
|
|
4
|
-
export { TttxForm, defineCustomElement as defineCustomElementTttxForm } from './tttx-form.js';
|
|
5
3
|
export { TttxIcon, defineCustomElement as defineCustomElementTttxIcon } from './tttx-icon.js';
|
|
6
|
-
export { TttxInputCalendar, defineCustomElement as defineCustomElementTttxInputCalendar } from './tttx-input-calendar.js';
|
|
7
4
|
export { TttxKeyvalueBlock, defineCustomElement as defineCustomElementTttxKeyvalueBlock } from './tttx-keyvalue-block.js';
|
|
8
|
-
export { TttxList, defineCustomElement as defineCustomElementTttxList } from './tttx-list.js';
|
|
9
5
|
export { TttxLoadingSpinner, defineCustomElement as defineCustomElementTttxLoadingSpinner } from './tttx-loading-spinner.js';
|
|
10
|
-
export { TttxPopoverContent, defineCustomElement as defineCustomElementTttxPopoverContent } from './tttx-popover-content.js';
|
|
11
6
|
export { TttxStandaloneInput, defineCustomElement as defineCustomElementTttxStandaloneInput } from './tttx-standalone-input.js';
|
|
12
|
-
export { TttxTable, defineCustomElement as defineCustomElementTttxTable } from './tttx-table.js';
|