@3t-transform/threeteeui 0.1.7 → 0.1.8
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-451f61dd.js → index-8ba406f6.js} +91 -3
- package/dist/cjs/loader.cjs.js +3 -18
- package/dist/cjs/tttx-button.cjs.entry.js +2 -2
- package/dist/cjs/tttx-form.cjs.entry.js +1 -1
- package/dist/cjs/tttx-icon.cjs.entry.js +1 -1
- package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +1 -1
- package/dist/cjs/tttx-list.cjs.entry.js +4 -34
- package/dist/cjs/tttx-loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/tttx-standalone-input.cjs.entry.js +1 -1
- package/dist/cjs/tttx-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/tttx.cjs.js +8 -116
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/atoms/tttx-button/tttx-button.css +8 -0
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +13 -0
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +1 -1
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.js +1 -5
- package/dist/components/tttx-button.js +1 -1
- package/dist/components/tttx-list.js +3 -33
- package/dist/esm/{index-0350f122.js → index-5f9b72ff.js} +91 -4
- package/dist/esm/loader.js +3 -18
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/tttx-button.entry.js +2 -2
- package/dist/esm/tttx-form.entry.js +1 -1
- package/dist/esm/tttx-icon.entry.js +1 -1
- package/dist/esm/tttx-keyvalue-block.entry.js +1 -1
- package/dist/esm/tttx-list.entry.js +4 -34
- package/dist/esm/tttx-loading-spinner.entry.js +1 -1
- package/dist/esm/tttx-standalone-input.entry.js +1 -1
- package/dist/esm/tttx-toolbar.entry.js +1 -1
- package/dist/esm/tttx.js +5 -116
- package/dist/tttx/index.esm.js +0 -1
- package/dist/tttx/{p-0a85dda4.entry.js → p-0342cc46.entry.js} +1 -1
- package/dist/tttx/p-1290dcd7.entry.js +3 -0
- package/dist/tttx/{p-a0179cb1.entry.js → p-1b394414.entry.js} +1 -1
- package/dist/tttx/{p-5cae1beb.entry.js → p-405219b2.entry.js} +1 -1
- package/dist/tttx/{p-4f3958fa.entry.js → p-435c62b3.entry.js} +1 -1
- package/dist/tttx/{p-1b015a9d.entry.js → p-4ecc9e8b.entry.js} +1 -1
- package/dist/tttx/{p-cc6644c9.entry.js → p-9cff9c64.entry.js} +1 -1
- package/dist/tttx/{p-92465671.entry.js → p-adf35f58.entry.js} +1 -1
- package/dist/tttx/p-c4b803fc.js +2 -0
- package/dist/tttx/tttx.esm.js +1 -129
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +6 -6
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +59 -3
- package/loader/index.d.ts +9 -0
- package/package.json +1 -1
- package/dist/cjs/app-globals-3a1e7e63.js +0 -5
- package/dist/cjs/css-shim-211819bc.js +0 -6
- package/dist/cjs/dom-9deb26c8.js +0 -75
- package/dist/cjs/index-11cfdabe.js +0 -3297
- package/dist/cjs/shadow-css-bf3843d2.js +0 -389
- package/dist/collection/components/atoms/tttx-button/test/tttx-button.e2e.js +0 -9
- package/dist/collection/components/atoms/tttx-button/test/tttx-button.spec.js +0 -83
- package/dist/collection/components/atoms/tttx-icon/test/tttx-icon.e2e.js +0 -9
- package/dist/collection/components/atoms/tttx-icon/test/tttx-icon.spec.js +0 -16
- package/dist/collection/components/atoms/tttx-keyvalue-block/test/tttx-keyvalue-block.spec.js +0 -216
- package/dist/collection/components/atoms/tttx-loading-spinner/Test/tttx-loading-spinner.spec.js +0 -64
- package/dist/collection/components/molecules/tttx-form/lib/setErrorState.spec.js +0 -38
- package/dist/collection/components/molecules/tttx-form/lib/validityCheck.spec.js +0 -214
- package/dist/collection/components/molecules/tttx-form/test/tttx-form.e2e.js +0 -9
- package/dist/collection/components/molecules/tttx-form/test/tttx-form.spec.js +0 -232
- package/dist/collection/components/molecules/tttx-list/test/ttttx-list.spec.e2e.js +0 -26
- package/dist/collection/components/molecules/tttx-list/test/tttx-list.spec.js +0 -183
- package/dist/collection/components/molecules/tttx-standalone-input/test/tttx-standalone-input.e2e.js +0 -9
- package/dist/collection/components/molecules/tttx-standalone-input/test/tttx-standalone-input.spec.js +0 -219
- package/dist/collection/components/molecules/tttx-toolbar/test/tttx-toolbar.test.js +0 -0
- package/dist/collection/shared/test/domsanitiser.options.spec.js +0 -23
- package/dist/esm/app-globals-0f993ce5.js +0 -3
- package/dist/esm/css-shim-9d54a2f2.js +0 -4
- package/dist/esm/dom-6be6f662.js +0 -73
- package/dist/esm/index-dbe25028.js +0 -3262
- package/dist/esm/shadow-css-ed4599f8.js +0 -387
- package/dist/tttx/app-globals-0f993ce5.js +0 -3
- package/dist/tttx/css-shim-9d54a2f2.js +0 -4
- package/dist/tttx/dom-6be6f662.js +0 -73
- package/dist/tttx/index-dbe25028.js +0 -3262
- package/dist/tttx/p-62869344.js +0 -2
- package/dist/tttx/p-cd1565e0.entry.js +0 -3
- package/dist/tttx/shadow-css-ed4599f8.js +0 -387
- package/dist/tttx/tttx-button.entry.js +0 -30
- package/dist/tttx/tttx-form.entry.js +0 -373
- package/dist/tttx/tttx-icon.entry.js +0 -17
- package/dist/tttx/tttx-keyvalue-block.entry.js +0 -63
- package/dist/tttx/tttx-list.entry.js +0 -1730
- package/dist/tttx/tttx-loading-spinner.entry.js +0 -22
- package/dist/tttx/tttx-standalone-input.entry.js +0 -66
- package/dist/tttx/tttx-toolbar.entry.js +0 -16
- package/dist/types/components/atoms/tttx-button/test/tttx-button.e2e.d.ts +0 -1
- package/dist/types/components/atoms/tttx-button/test/tttx-button.spec.d.ts +0 -1
- package/dist/types/components/atoms/tttx-icon/test/tttx-icon.e2e.d.ts +0 -1
- package/dist/types/components/atoms/tttx-icon/test/tttx-icon.spec.d.ts +0 -1
- package/dist/types/components/atoms/tttx-keyvalue-block/test/tttx-keyvalue-block.spec.d.ts +0 -1
- package/dist/types/components/atoms/tttx-loading-spinner/Test/tttx-loading-spinner.spec.d.ts +0 -1
- package/dist/types/components/molecules/tttx-form/lib/setErrorState.spec.d.ts +0 -1
- package/dist/types/components/molecules/tttx-form/lib/validityCheck.spec.d.ts +0 -1
- package/dist/types/components/molecules/tttx-form/test/tttx-form.e2e.d.ts +0 -1
- package/dist/types/components/molecules/tttx-form/test/tttx-form.spec.d.ts +0 -1
- package/dist/types/components/molecules/tttx-list/test/ttttx-list.spec.e2e.d.ts +0 -1
- package/dist/types/components/molecules/tttx-list/test/tttx-list.spec.d.ts +0 -1
- package/dist/types/components/molecules/tttx-standalone-input/test/tttx-standalone-input.e2e.d.ts +0 -1
- package/dist/types/components/molecules/tttx-standalone-input/test/tttx-standalone-input.spec.d.ts +0 -1
- package/dist/types/components/molecules/tttx-toolbar/test/tttx-toolbar.test.d.ts +0 -0
- package/dist/types/shared/test/domsanitiser.options.spec.d.ts +0 -1
|
@@ -63,6 +63,18 @@ const isComplexType = (o) => {
|
|
|
63
63
|
o = typeof o;
|
|
64
64
|
return o === 'object' || o === 'function';
|
|
65
65
|
};
|
|
66
|
+
/**
|
|
67
|
+
* Helper method for querying a `meta` tag that contains a nonce value
|
|
68
|
+
* out of a DOM's head.
|
|
69
|
+
*
|
|
70
|
+
* @param doc The DOM containing the `head` to query against
|
|
71
|
+
* @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
|
|
72
|
+
* exists or the tag has no content.
|
|
73
|
+
*/
|
|
74
|
+
function queryNonceMetaTagContent(doc) {
|
|
75
|
+
var _a, _b, _c;
|
|
76
|
+
return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
|
|
77
|
+
}
|
|
66
78
|
/**
|
|
67
79
|
* Production h() function based on Preact by
|
|
68
80
|
* Jason Miller (@developit)
|
|
@@ -71,7 +83,6 @@ const isComplexType = (o) => {
|
|
|
71
83
|
*
|
|
72
84
|
* Modified for Stencil's compiler and vdom
|
|
73
85
|
*/
|
|
74
|
-
// const stack: any[] = [];
|
|
75
86
|
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
|
|
76
87
|
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
|
|
77
88
|
const h = (nodeName, vnodeData, ...children) => {
|
|
@@ -122,6 +133,14 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
122
133
|
}
|
|
123
134
|
return vnode;
|
|
124
135
|
};
|
|
136
|
+
/**
|
|
137
|
+
* A utility function for creating a virtual DOM node from a tag and some
|
|
138
|
+
* possible text content.
|
|
139
|
+
*
|
|
140
|
+
* @param tag the tag for this element
|
|
141
|
+
* @param text possible text content for the node
|
|
142
|
+
* @returns a newly-minted virtual DOM node
|
|
143
|
+
*/
|
|
125
144
|
const newVNode = (tag, text) => {
|
|
126
145
|
const vnode = {
|
|
127
146
|
$flags$: 0,
|
|
@@ -136,6 +155,12 @@ const newVNode = (tag, text) => {
|
|
|
136
155
|
return vnode;
|
|
137
156
|
};
|
|
138
157
|
const Host = {};
|
|
158
|
+
/**
|
|
159
|
+
* Check whether a given node is a Host node or not
|
|
160
|
+
*
|
|
161
|
+
* @param node the virtual DOM node to check
|
|
162
|
+
* @returns whether it's a Host node or not
|
|
163
|
+
*/
|
|
139
164
|
const isHost = (node) => node && node.$tag$ === Host;
|
|
140
165
|
/**
|
|
141
166
|
* Parse a new property value for a given property type.
|
|
@@ -224,6 +249,7 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
|
224
249
|
styles.set(scopeId, style);
|
|
225
250
|
};
|
|
226
251
|
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
252
|
+
var _a;
|
|
227
253
|
let scopeId = getScopeId(cmpMeta);
|
|
228
254
|
const style = styles.get(scopeId);
|
|
229
255
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
@@ -243,6 +269,11 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
|
243
269
|
styleElm = doc.createElement('style');
|
|
244
270
|
styleElm.innerHTML = style;
|
|
245
271
|
}
|
|
272
|
+
// Apply CSP nonce to the style tag if it exists
|
|
273
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
274
|
+
if (nonce != null) {
|
|
275
|
+
styleElm.setAttribute('nonce', nonce);
|
|
276
|
+
}
|
|
246
277
|
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
|
247
278
|
}
|
|
248
279
|
if (appliedStyles) {
|
|
@@ -450,6 +481,21 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
450
481
|
}
|
|
451
482
|
return elm;
|
|
452
483
|
};
|
|
484
|
+
/**
|
|
485
|
+
* Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
|
|
486
|
+
* add them to the DOM in the appropriate place.
|
|
487
|
+
*
|
|
488
|
+
* @param parentElm the DOM node which should be used as a parent for the new
|
|
489
|
+
* DOM nodes
|
|
490
|
+
* @param before a child of the `parentElm` which the new children should be
|
|
491
|
+
* inserted before (optional)
|
|
492
|
+
* @param parentVNode the parent virtual DOM node
|
|
493
|
+
* @param vnodes the new child virtual DOM nodes to produce DOM nodes for
|
|
494
|
+
* @param startIdx the index in the child virtual DOM nodes at which to start
|
|
495
|
+
* creating DOM nodes (inclusive)
|
|
496
|
+
* @param endIdx the index in the child virtual DOM nodes at which to stop
|
|
497
|
+
* creating DOM nodes (inclusive)
|
|
498
|
+
*/
|
|
453
499
|
const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
454
500
|
let containerElm = (parentElm);
|
|
455
501
|
let childNode;
|
|
@@ -466,6 +512,19 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
|
|
|
466
512
|
}
|
|
467
513
|
}
|
|
468
514
|
};
|
|
515
|
+
/**
|
|
516
|
+
* Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
|
|
517
|
+
* This can be used to, for instance, clean up after a list of children which
|
|
518
|
+
* should no longer be shown.
|
|
519
|
+
*
|
|
520
|
+
* This function also handles some of Stencil's slot relocation logic.
|
|
521
|
+
*
|
|
522
|
+
* @param vnodes a list of virtual DOM nodes to remove
|
|
523
|
+
* @param startIdx the index at which to start removing nodes (inclusive)
|
|
524
|
+
* @param endIdx the index at which to stop removing nodes (inclusive)
|
|
525
|
+
* @param vnode a VNode
|
|
526
|
+
* @param elm an element
|
|
527
|
+
*/
|
|
469
528
|
const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
470
529
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
471
530
|
if ((vnode = vnodes[startIdx])) {
|
|
@@ -658,7 +717,8 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
658
717
|
*
|
|
659
718
|
* So, in other words, if `key` attrs are not set on VNodes which may be
|
|
660
719
|
* changing order within a `children` array or something along those lines then
|
|
661
|
-
* we could obtain a false
|
|
720
|
+
* we could obtain a false negative and then have to do needless re-rendering
|
|
721
|
+
* (i.e. we'd say two VNodes aren't equal when in fact they should be).
|
|
662
722
|
*
|
|
663
723
|
* @param leftVNode the first VNode to check
|
|
664
724
|
* @param rightVNode the second VNode to check
|
|
@@ -728,6 +788,18 @@ const callNodeRefs = (vNode) => {
|
|
|
728
788
|
vNode.$children$ && vNode.$children$.map(callNodeRefs);
|
|
729
789
|
}
|
|
730
790
|
};
|
|
791
|
+
/**
|
|
792
|
+
* The main entry point for Stencil's virtual DOM-based rendering engine
|
|
793
|
+
*
|
|
794
|
+
* Given a {@link d.HostRef} container and some virtual DOM nodes, this
|
|
795
|
+
* function will handle creating a virtual DOM tree with a single root, patching
|
|
796
|
+
* the current virtual DOM tree onto an old one (if any), dealing with slot
|
|
797
|
+
* relocation, and reflecting attributes.
|
|
798
|
+
*
|
|
799
|
+
* @param hostRef data needed to root and render the virtual DOM tree, such as
|
|
800
|
+
* the DOM node into which it should be rendered.
|
|
801
|
+
* @param renderFnResults the virtual DOM nodes to be rendered
|
|
802
|
+
*/
|
|
731
803
|
const renderVdom = (hostRef, renderFnResults) => {
|
|
732
804
|
const hostElm = hostRef.$hostElement$;
|
|
733
805
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
@@ -1174,6 +1246,7 @@ const disconnectedCallback = (elm) => {
|
|
|
1174
1246
|
}
|
|
1175
1247
|
};
|
|
1176
1248
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1249
|
+
var _a;
|
|
1177
1250
|
const endBootstrap = createTime();
|
|
1178
1251
|
const cmpTags = [];
|
|
1179
1252
|
const exclude = options.exclude || [];
|
|
@@ -1200,7 +1273,9 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1200
1273
|
{
|
|
1201
1274
|
cmpMeta.$watchers$ = {};
|
|
1202
1275
|
}
|
|
1203
|
-
const tagName =
|
|
1276
|
+
const tagName = options.transformTagName
|
|
1277
|
+
? options.transformTagName(cmpMeta.$tagName$)
|
|
1278
|
+
: cmpMeta.$tagName$;
|
|
1204
1279
|
const HostElement = class extends HTMLElement {
|
|
1205
1280
|
// StencilLazyHost
|
|
1206
1281
|
constructor(self) {
|
|
@@ -1250,6 +1325,11 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1250
1325
|
{
|
|
1251
1326
|
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
1252
1327
|
visibilityStyle.setAttribute('data-styles', '');
|
|
1328
|
+
// Apply CSP nonce to the style tag if it exists
|
|
1329
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
1330
|
+
if (nonce != null) {
|
|
1331
|
+
visibilityStyle.setAttribute('nonce', nonce);
|
|
1332
|
+
}
|
|
1253
1333
|
head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1254
1334
|
}
|
|
1255
1335
|
// Process deferred connectedCallbacks now all components have been registered
|
|
@@ -1265,6 +1345,13 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1265
1345
|
// Fallback appLoad event
|
|
1266
1346
|
endBootstrap();
|
|
1267
1347
|
};
|
|
1348
|
+
/**
|
|
1349
|
+
* Assigns the given value to the nonce property on the runtime platform object.
|
|
1350
|
+
* During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
|
|
1351
|
+
* @param nonce The value to be assigned to the platform nonce property.
|
|
1352
|
+
* @returns void
|
|
1353
|
+
*/
|
|
1354
|
+
const setNonce = (nonce) => (plt.$nonce$ = nonce);
|
|
1268
1355
|
const hostRefs = /*@__PURE__*/ new WeakMap();
|
|
1269
1356
|
const getHostRef = (ref) => hostRefs.get(ref);
|
|
1270
1357
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
@@ -1377,3 +1464,4 @@ exports.createEvent = createEvent;
|
|
|
1377
1464
|
exports.h = h;
|
|
1378
1465
|
exports.promiseResolve = promiseResolve;
|
|
1379
1466
|
exports.registerInstance = registerInstance;
|
|
1467
|
+
exports.setNonce = setNonce;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,36 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
5
|
+
const index = require('./index-8ba406f6.js');
|
|
7
6
|
|
|
8
7
|
/*
|
|
9
|
-
Stencil Client Patch Esm v2.
|
|
8
|
+
Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
10
9
|
*/
|
|
11
10
|
const patchEsm = () => {
|
|
12
|
-
// NOTE!! This fn cannot use async/await!
|
|
13
|
-
// @ts-ignore
|
|
14
|
-
if (index.BUILD.cssVarShim && !(index.CSS && index.CSS.supports && index.CSS.supports('color', 'var(--c)'))) {
|
|
15
|
-
// @ts-ignore
|
|
16
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "polyfills-css-shim" */ './css-shim-211819bc.js'); }).then(() => {
|
|
17
|
-
if ((index.plt.$cssShim$ = index.win.__cssshim)) {
|
|
18
|
-
return index.plt.$cssShim$.i();
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
// for better minification
|
|
22
|
-
return 0;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
11
|
return index.promiseResolve();
|
|
27
12
|
};
|
|
28
13
|
|
|
29
14
|
const defineCustomElements = (win, options) => {
|
|
30
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
31
16
|
return patchEsm().then(() => {
|
|
32
|
-
appGlobals.globalScripts();
|
|
33
17
|
return index.bootstrapLazy([["tttx-button.cjs",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"design":[1]}]]],["tttx-list.cjs",[[1,"tttx-list",{"data":[1025],"name":[1]}]]],["tttx-standalone-input.cjs",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"showerrorbubble":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"inputicon":[1],"inline":[4],"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-form.cjs",[[1,"tttx-form",{"formschema":[1032],"submitValue":[1032,"submit-value"]}]]],["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-toolbar.cjs",[[1,"tttx-toolbar",{"border":[4]}]]],["tttx-icon.cjs",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]]], options);
|
|
34
18
|
});
|
|
35
19
|
};
|
|
36
20
|
|
|
21
|
+
exports.setNonce = index.setNonce;
|
|
37
22
|
exports.defineCustomElements = defineCustomElements;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-8ba406f6.js');
|
|
6
6
|
|
|
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}";
|
|
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}button{cursor:pointer}tttx-icon{cursor:inherit}.spacingleft{margin-left:8px}";
|
|
8
8
|
|
|
9
9
|
const TttxButton = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -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-8ba406f6.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}.darkred{color:#A20000}.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-8ba406f6.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
|
|
|
@@ -2,47 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-8ba406f6.js');
|
|
6
6
|
|
|
7
7
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
8
8
|
|
|
9
|
-
function getDefaultExportFromCjs (x) {
|
|
10
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
9
|
function createCommonjsModule(fn, basedir, module) {
|
|
14
10
|
return module = {
|
|
15
11
|
path: basedir,
|
|
16
12
|
exports: {},
|
|
17
13
|
require: function (path, base) {
|
|
18
|
-
return commonjsRequire(
|
|
14
|
+
return commonjsRequire();
|
|
19
15
|
}
|
|
20
16
|
}, fn(module, module.exports), module.exports;
|
|
21
17
|
}
|
|
22
18
|
|
|
23
|
-
function getDefaultExportFromNamespaceIfPresent (n) {
|
|
24
|
-
return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function getDefaultExportFromNamespaceIfNotNamed (n) {
|
|
28
|
-
return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function getAugmentedNamespace(n) {
|
|
32
|
-
if (n.__esModule) return n;
|
|
33
|
-
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
34
|
-
Object.keys(n).forEach(function (k) {
|
|
35
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
36
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () {
|
|
39
|
-
return n[k];
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
return a;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
19
|
function commonjsRequire () {
|
|
47
20
|
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
48
21
|
}
|
|
@@ -51,11 +24,8 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
51
24
|
/*! @license DOMPurify 3.0.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.3/LICENSE */
|
|
52
25
|
|
|
53
26
|
(function (global, factory) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.DOMPurify = factory());
|
|
57
|
-
})(commonjsGlobal, (function () { 'use strict';
|
|
58
|
-
|
|
27
|
+
module.exports = factory() ;
|
|
28
|
+
})(commonjsGlobal, (function () {
|
|
59
29
|
const {
|
|
60
30
|
entries,
|
|
61
31
|
setPrototypeOf,
|
|
@@ -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-8ba406f6.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-8ba406f6.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}.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}.input-icon.sc-tttx-standalone-input{position:absolute;margin-top:9px;margin-left:4px}.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.inputInline.sc-tttx-standalone-input{display:flex;white-space:nowrap;align-items:center}label.inputInline.sc-tttx-standalone-input .input-container.sc-tttx-standalone-input{margin:0 4px;width:100%;display:flex;align-items:center;gap:4px;position:relative}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}@media (max-width: 600px){input[type=date].sc-tttx-standalone-input{padding-top:6px}}input.invalid.sc-tttx-standalone-input:invalid,input.standalone.invalid.sc-tttx-standalone-input{border:1px solid #dc0000}.input-icon.sc-tttx-standalone-input~input.sc-tttx-standalone-input{padding:0 32px}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}input.sc-tttx-standalone-input:focus-visible{outline:none}.sc-tttx-standalone-input-h{display:block}";
|
|
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-8ba406f6.js');
|
|
6
6
|
|
|
7
7
|
const tttxToolbarCss = ":host{height:36px;display:flex;padding:8px 0;gap:8px}:host(.bordered){border-bottom:1px solid #d5d5d5}slot[name=before]{display:flex;flex:1 1 0px;gap:8px}slot[name=center]{display:flex;justify-content:center;flex:1 1 0px;gap:8px}slot[name=after]{display:flex;justify-content:end;flex:1 1 0px;gap:8px}";
|
|
8
8
|
|
package/dist/cjs/tttx.cjs.js
CHANGED
|
@@ -1,131 +1,23 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-8ba406f6.js');
|
|
5
6
|
|
|
6
7
|
/*
|
|
7
|
-
Stencil Client Patch Browser v2.
|
|
8
|
+
Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
8
9
|
*/
|
|
9
|
-
const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;
|
|
10
10
|
const patchBrowser = () => {
|
|
11
|
-
// NOTE!! This fn cannot use async/await!
|
|
12
|
-
if (index.BUILD.isDev && !index.BUILD.isTesting) {
|
|
13
|
-
index.consoleDevInfo('Running in development mode.');
|
|
14
|
-
}
|
|
15
|
-
if (index.BUILD.cssVarShim) {
|
|
16
|
-
// shim css vars
|
|
17
|
-
index.plt.$cssShim$ = index.win.__cssshim;
|
|
18
|
-
}
|
|
19
|
-
if (index.BUILD.cloneNodeFix) {
|
|
20
|
-
// opted-in to polyfill cloneNode() for slot polyfilled components
|
|
21
|
-
patchCloneNodeFix(index.H.prototype);
|
|
22
|
-
}
|
|
23
|
-
if (index.BUILD.profile && !performance.mark) {
|
|
24
|
-
// not all browsers support performance.mark/measure (Safari 10)
|
|
25
|
-
// because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,
|
|
26
|
-
// simply stub the implementations out.
|
|
27
|
-
// TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)
|
|
28
|
-
// @ts-ignore
|
|
29
|
-
performance.mark = performance.measure = () => {
|
|
30
|
-
/*noop*/
|
|
31
|
-
};
|
|
32
|
-
performance.getEntriesByName = () => [];
|
|
33
|
-
}
|
|
34
|
-
// @ts-ignore
|
|
35
|
-
const scriptElm = index.BUILD.scriptDataOpts || index.BUILD.safari10 || index.BUILD.dynamicImportShim
|
|
36
|
-
? Array.from(index.doc.querySelectorAll('script')).find((s) => new RegExp(`\/${index.NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) ||
|
|
37
|
-
s.getAttribute('data-stencil-namespace') === index.NAMESPACE)
|
|
38
|
-
: null;
|
|
39
11
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('tttx.cjs.js', document.baseURI).href));
|
|
40
|
-
const opts =
|
|
41
|
-
if (
|
|
42
|
-
// Safari < v11 support: This IF is true if it's Safari below v11.
|
|
43
|
-
// This fn cannot use async/await since Safari didn't support it until v11,
|
|
44
|
-
// however, Safari 10 did support modules. Safari 10 also didn't support "nomodule",
|
|
45
|
-
// so both the ESM file and nomodule file would get downloaded. Only Safari
|
|
46
|
-
// has 'onbeforeload' in the script, and "history.scrollRestoration" was added
|
|
47
|
-
// to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.
|
|
48
|
-
// IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.
|
|
49
|
-
return {
|
|
50
|
-
then() {
|
|
51
|
-
/* promise noop */
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
if (!index.BUILD.safari10 && importMeta !== '') {
|
|
12
|
+
const opts = {};
|
|
13
|
+
if (importMeta !== '') {
|
|
56
14
|
opts.resourcesUrl = new URL('.', importMeta).href;
|
|
57
15
|
}
|
|
58
|
-
else if (index.BUILD.dynamicImportShim || index.BUILD.safari10) {
|
|
59
|
-
opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, index.win.location.href)).href;
|
|
60
|
-
if (index.BUILD.dynamicImportShim) {
|
|
61
|
-
patchDynamicImport(opts.resourcesUrl, scriptElm);
|
|
62
|
-
}
|
|
63
|
-
if (index.BUILD.dynamicImportShim && !index.win.customElements) {
|
|
64
|
-
// module support, but no custom elements support (Old Edge)
|
|
65
|
-
// @ts-ignore
|
|
66
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "polyfills-dom" */ './dom-9deb26c8.js'); }).then(() => opts);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
16
|
return index.promiseResolve(opts);
|
|
70
17
|
};
|
|
71
|
-
const patchDynamicImport = (base, orgScriptElm) => {
|
|
72
|
-
const importFunctionName = getDynamicImportFunction(index.NAMESPACE);
|
|
73
|
-
try {
|
|
74
|
-
// test if this browser supports dynamic imports
|
|
75
|
-
// There is a caching issue in V8, that breaks using import() in Function
|
|
76
|
-
// By generating a random string, we can workaround it
|
|
77
|
-
// Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info
|
|
78
|
-
index.win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);
|
|
79
|
-
}
|
|
80
|
-
catch (e) {
|
|
81
|
-
// this shim is specifically for browsers that do support "esm" imports
|
|
82
|
-
// however, they do NOT support "dynamic" imports
|
|
83
|
-
// basically this code is for old Edge, v18 and below
|
|
84
|
-
const moduleMap = new Map();
|
|
85
|
-
index.win[importFunctionName] = (src) => {
|
|
86
|
-
const url = new URL(src, base).href;
|
|
87
|
-
let mod = moduleMap.get(url);
|
|
88
|
-
if (!mod) {
|
|
89
|
-
const script = index.doc.createElement('script');
|
|
90
|
-
script.type = 'module';
|
|
91
|
-
script.crossOrigin = orgScriptElm.crossOrigin;
|
|
92
|
-
script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {
|
|
93
|
-
type: 'application/javascript',
|
|
94
|
-
}));
|
|
95
|
-
mod = new Promise((resolve) => {
|
|
96
|
-
script.onload = () => {
|
|
97
|
-
resolve(index.win[importFunctionName].m);
|
|
98
|
-
script.remove();
|
|
99
|
-
};
|
|
100
|
-
});
|
|
101
|
-
moduleMap.set(url, mod);
|
|
102
|
-
index.doc.head.appendChild(script);
|
|
103
|
-
}
|
|
104
|
-
return mod;
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
const patchCloneNodeFix = (HTMLElementPrototype) => {
|
|
109
|
-
const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
|
|
110
|
-
HTMLElementPrototype.cloneNode = function (deep) {
|
|
111
|
-
if (this.nodeName === 'TEMPLATE') {
|
|
112
|
-
return nativeCloneNodeFn.call(this, deep);
|
|
113
|
-
}
|
|
114
|
-
const clonedNode = nativeCloneNodeFn.call(this, false);
|
|
115
|
-
const srcChildNodes = this.childNodes;
|
|
116
|
-
if (deep) {
|
|
117
|
-
for (let i = 0; i < srcChildNodes.length; i++) {
|
|
118
|
-
// Node.ATTRIBUTE_NODE === 2, and checking because IE11
|
|
119
|
-
if (srcChildNodes[i].nodeType !== 2) {
|
|
120
|
-
clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
return clonedNode;
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
18
|
|
|
128
19
|
patchBrowser().then(options => {
|
|
129
|
-
appGlobals.globalScripts();
|
|
130
20
|
return index.bootstrapLazy([["tttx-button.cjs",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"design":[1]}]]],["tttx-list.cjs",[[1,"tttx-list",{"data":[1025],"name":[1]}]]],["tttx-standalone-input.cjs",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"showerrorbubble":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"inputicon":[1],"inline":[4],"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-form.cjs",[[1,"tttx-form",{"formschema":[1032],"submitValue":[1032,"submit-value"]}]]],["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-toolbar.cjs",[[1,"tttx-toolbar",{"border":[4]}]]],["tttx-icon.cjs",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]]], options);
|
|
131
21
|
});
|
|
22
|
+
|
|
23
|
+
exports.setNonce = index.setNonce;
|
package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js
CHANGED
|
@@ -111,6 +111,19 @@ InputField.args = {
|
|
|
111
111
|
showerrormsg: false,
|
|
112
112
|
placeholder: 'Enter first name',
|
|
113
113
|
};
|
|
114
|
+
export const searchField = TemplateTextInput.bind({});
|
|
115
|
+
searchField.args = {
|
|
116
|
+
value: '',
|
|
117
|
+
label: '',
|
|
118
|
+
type: 'text',
|
|
119
|
+
errormsg: 'Please enter your first name',
|
|
120
|
+
required: true,
|
|
121
|
+
showerrormsg: false,
|
|
122
|
+
showerrorbubble: false,
|
|
123
|
+
placeholder: 'Search',
|
|
124
|
+
inline: true,
|
|
125
|
+
inputIcon: 'search'
|
|
126
|
+
};
|
|
114
127
|
// export const TextInputIconLeft = TemplateTextInput.bind({});
|
|
115
128
|
// TextInputIconLeft.args = {
|
|
116
129
|
// value: 'Uh egg',
|
|
@@ -12,7 +12,7 @@ const Default = ({ border }) => `
|
|
|
12
12
|
<span slot="before"><tttx-button design="primary">Before</tttx-button></span>
|
|
13
13
|
<span slot="center"><div style="position: relative; top: -4px;"><tttx-standalone-input placeholder="center" inline required showerrorbubble="false" inputicon="search" /></div></span>
|
|
14
14
|
<span slot="after"><tttx-keyvalue-block horizontal keyvalues='{"Position":"after"}' /></span>
|
|
15
|
-
|
|
15
|
+
</tttx-toolbar>
|
|
16
16
|
`;
|
|
17
17
|
export const BasicStringList = Default.bind({});
|
|
18
18
|
BasicStringList.args = {
|
|
@@ -20,6 +20,15 @@ export { TttxToolbar as TttxToolbar } from '../types/components/molecules/tttx-t
|
|
|
20
20
|
*/
|
|
21
21
|
export declare const setAssetPath: (path: string) => void;
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
25
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
26
|
+
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
27
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
28
|
+
* will result in the same behavior.
|
|
29
|
+
*/
|
|
30
|
+
export declare const setNonce: (nonce: string) => void
|
|
31
|
+
|
|
23
32
|
export interface SetPlatformOptions {
|
|
24
33
|
raf?: (c: FrameRequestCallback) => number;
|
|
25
34
|
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
package/dist/components/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
1
|
+
export { setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
|
|
2
2
|
export { TttxButton, defineCustomElement as defineCustomElementTttxButton } from './tttx-button.js';
|
|
3
3
|
export { TttxForm, defineCustomElement as defineCustomElementTttxForm } from './tttx-form.js';
|
|
4
4
|
export { TttxIcon, defineCustomElement as defineCustomElementTttxIcon } from './tttx-icon.js';
|
|
@@ -7,7 +7,3 @@ export { TttxList, defineCustomElement as defineCustomElementTttxList } from './
|
|
|
7
7
|
export { TttxLoadingSpinner, defineCustomElement as defineCustomElementTttxLoadingSpinner } from './tttx-loading-spinner.js';
|
|
8
8
|
export { TttxStandaloneInput, defineCustomElement as defineCustomElementTttxStandaloneInput } from './tttx-standalone-input.js';
|
|
9
9
|
export { TttxToolbar, defineCustomElement as defineCustomElementTttxToolbar } from './tttx-toolbar.js';
|
|
10
|
-
|
|
11
|
-
const globalScripts = () => {};
|
|
12
|
-
|
|
13
|
-
globalScripts();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { d as defineCustomElement$2 } from './tttx-icon2.js';
|
|
3
3
|
|
|
4
|
-
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}";
|
|
4
|
+
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}button{cursor:pointer}tttx-icon{cursor:inherit}.spacingleft{margin-left:8px}";
|
|
5
5
|
|
|
6
6
|
const TttxButton$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
7
|
constructor() {
|