@3t-transform/threeteeui 0.1.6 → 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.
Files changed (54) hide show
  1. package/dist/cjs/{index-b3010e55.js → index-8ba406f6.js} +88 -2
  2. package/dist/cjs/loader.cjs.js +4 -3
  3. package/dist/cjs/tttx-button.cjs.entry.js +2 -2
  4. package/dist/cjs/tttx-form.cjs.entry.js +1 -1
  5. package/dist/cjs/tttx-icon.cjs.entry.js +1 -1
  6. package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +1 -1
  7. package/dist/cjs/tttx-list.cjs.entry.js +1 -1
  8. package/dist/cjs/tttx-loading-spinner.cjs.entry.js +1 -1
  9. package/dist/cjs/tttx-standalone-input.cjs.entry.js +1 -1
  10. package/dist/cjs/tttx-toolbar.cjs.entry.js +20 -0
  11. package/dist/cjs/tttx.cjs.js +7 -3
  12. package/dist/collection/collection-manifest.json +4 -3
  13. package/dist/collection/components/atoms/tttx-button/tttx-button.css +8 -0
  14. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +13 -0
  15. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.css +30 -0
  16. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +44 -0
  17. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +20 -0
  18. package/dist/components/index.d.ts +10 -0
  19. package/dist/components/index.js +2 -1
  20. package/dist/components/tttx-button.js +1 -1
  21. package/dist/components/tttx-toolbar.d.ts +11 -0
  22. package/dist/components/tttx-toolbar.js +36 -0
  23. package/dist/esm/{index-31631990.js → index-5f9b72ff.js} +88 -3
  24. package/dist/esm/loader.js +4 -3
  25. package/dist/esm/polyfills/css-shim.js +1 -1
  26. package/dist/esm/tttx-button.entry.js +2 -2
  27. package/dist/esm/tttx-form.entry.js +1 -1
  28. package/dist/esm/tttx-icon.entry.js +1 -1
  29. package/dist/esm/tttx-keyvalue-block.entry.js +1 -1
  30. package/dist/esm/tttx-list.entry.js +1 -1
  31. package/dist/esm/tttx-loading-spinner.entry.js +1 -1
  32. package/dist/esm/tttx-standalone-input.entry.js +1 -1
  33. package/dist/esm/tttx-toolbar.entry.js +16 -0
  34. package/dist/esm/tttx.js +4 -3
  35. package/dist/tttx/p-0342cc46.entry.js +1 -0
  36. package/dist/tttx/p-1290dcd7.entry.js +3 -0
  37. package/dist/tttx/{p-84d90779.entry.js → p-1b394414.entry.js} +1 -1
  38. package/dist/tttx/{p-14270585.entry.js → p-405219b2.entry.js} +1 -1
  39. package/dist/tttx/{p-2e7f486e.entry.js → p-435c62b3.entry.js} +1 -1
  40. package/dist/tttx/{p-1f3d39fc.entry.js → p-4ecc9e8b.entry.js} +1 -1
  41. package/dist/tttx/{p-263d093c.entry.js → p-9cff9c64.entry.js} +1 -1
  42. package/dist/tttx/{p-979ebe65.entry.js → p-adf35f58.entry.js} +1 -1
  43. package/dist/tttx/p-c4b803fc.js +2 -0
  44. package/dist/tttx/tttx.esm.js +1 -1
  45. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +6 -6
  46. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +1 -0
  47. package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.d.ts +4 -0
  48. package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.stories.d.ts +13 -0
  49. package/dist/types/components.d.ts +15 -0
  50. package/dist/types/stencil-public-runtime.d.ts +59 -3
  51. package/loader/index.d.ts +9 -0
  52. package/package.json +1 -1
  53. package/dist/tttx/p-0c6a665d.js +0 -2
  54. package/dist/tttx/p-39f991c3.entry.js +0 -3
@@ -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 positive and then have to do needless re-rendering.
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 || [];
@@ -1252,6 +1325,11 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1252
1325
  {
1253
1326
  visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1254
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
+ }
1255
1333
  head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1256
1334
  }
1257
1335
  // Process deferred connectedCallbacks now all components have been registered
@@ -1267,6 +1345,13 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1267
1345
  // Fallback appLoad event
1268
1346
  endBootstrap();
1269
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);
1270
1355
  const hostRefs = /*@__PURE__*/ new WeakMap();
1271
1356
  const getHostRef = (ref) => hostRefs.get(ref);
1272
1357
  const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
@@ -1379,3 +1464,4 @@ exports.createEvent = createEvent;
1379
1464
  exports.h = h;
1380
1465
  exports.promiseResolve = promiseResolve;
1381
1466
  exports.registerInstance = registerInstance;
1467
+ exports.setNonce = setNonce;
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b3010e55.js');
5
+ const index = require('./index-8ba406f6.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Esm v2.20.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchEsm = () => {
11
11
  return index.promiseResolve();
@@ -14,8 +14,9 @@ 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-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-icon.cjs",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]]], options);
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);
18
18
  });
19
19
  };
20
20
 
21
+ exports.setNonce = index.setNonce;
21
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-b3010e55.js');
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-b3010e55.js');
5
+ const index = require('./index-8ba406f6.js');
6
6
 
7
7
  /**
8
8
  * Validates the input field on focusout event by checking its validity state,
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b3010e55.js');
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-b3010e55.js');
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,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b3010e55.js');
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
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b3010e55.js');
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-b3010e55.js');
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
 
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-8ba406f6.js');
6
+
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
+
9
+ const TttxToolbar = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.border = true;
13
+ }
14
+ render() {
15
+ return (index.h(index.Host, { class: this.border ? 'bordered' : '' }, index.h("slot", { name: 'before' }), index.h("slot", { name: 'center' }), index.h("slot", { name: 'after' })));
16
+ }
17
+ };
18
+ TttxToolbar.style = tttxToolbarCss;
19
+
20
+ exports.tttx_toolbar = TttxToolbar;
@@ -1,9 +1,11 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-b3010e55.js');
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-8ba406f6.js');
4
6
 
5
7
  /*
6
- Stencil Client Patch Browser v2.20.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
7
9
  */
8
10
  const patchBrowser = () => {
9
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));
@@ -15,5 +17,7 @@ const patchBrowser = () => {
15
17
  };
16
18
 
17
19
  patchBrowser().then(options => {
18
- 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-icon.cjs",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]]], options);
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);
19
21
  });
22
+
23
+ exports.setNonce = index.setNonce;
@@ -6,12 +6,13 @@
6
6
  "./components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js",
7
7
  "./components/atoms/tttx-loading-spinner/tttx-loading-spinner.js",
8
8
  "./components/molecules/tttx-form/tttx-form.js",
9
- "./components/molecules/tttx-list/tttx-list.js"
9
+ "./components/molecules/tttx-list/tttx-list.js",
10
+ "./components/molecules/tttx-toolbar/tttx-toolbar.js"
10
11
  ],
11
12
  "compiler": {
12
13
  "name": "@stencil/core",
13
- "version": "2.20.0",
14
- "typescriptVersion": "4.8.4"
14
+ "version": "2.22.3",
15
+ "typescriptVersion": "4.9.4"
15
16
  },
16
17
  "collections": [],
17
18
  "bundles": []
@@ -133,6 +133,14 @@
133
133
  display: inline-block;
134
134
  }
135
135
 
136
+ button {
137
+ cursor: pointer;
138
+ }
139
+
140
+ tttx-icon {
141
+ cursor: inherit;
142
+ }
143
+
136
144
  .spacingleft {
137
145
  margin-left: 8px;
138
146
  }
@@ -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',
@@ -0,0 +1,30 @@
1
+ :host {
2
+ height: 36px;
3
+ display: flex;
4
+ padding: 8px 0;
5
+ gap: 8px;
6
+ }
7
+
8
+ :host(.bordered) {
9
+ border-bottom: 1px solid #d5d5d5;
10
+ }
11
+
12
+ slot[name=before] {
13
+ display: flex;
14
+ flex: 1 1 0px;
15
+ gap: 8px;
16
+ }
17
+
18
+ slot[name=center] {
19
+ display: flex;
20
+ justify-content: center;
21
+ flex: 1 1 0px;
22
+ gap: 8px;
23
+ }
24
+
25
+ slot[name=after] {
26
+ display: flex;
27
+ justify-content: end;
28
+ flex: 1 1 0px;
29
+ gap: 8px;
30
+ }
@@ -0,0 +1,44 @@
1
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
+ import { h, Host } from '@stencil/core';
3
+ export class TttxToolbar {
4
+ constructor() {
5
+ this.border = true;
6
+ }
7
+ render() {
8
+ return (h(Host, { class: this.border ? 'bordered' : '' }, h("slot", { name: 'before' }), h("slot", { name: 'center' }), h("slot", { name: 'after' })));
9
+ }
10
+ static get is() { return "tttx-toolbar"; }
11
+ static get encapsulation() { return "shadow"; }
12
+ static get originalStyleUrls() {
13
+ return {
14
+ "$": ["tttx-toolbar.scss"]
15
+ };
16
+ }
17
+ static get styleUrls() {
18
+ return {
19
+ "$": ["tttx-toolbar.css"]
20
+ };
21
+ }
22
+ static get properties() {
23
+ return {
24
+ "border": {
25
+ "type": "boolean",
26
+ "mutable": false,
27
+ "complexType": {
28
+ "original": "boolean",
29
+ "resolved": "boolean",
30
+ "references": {}
31
+ },
32
+ "required": false,
33
+ "optional": false,
34
+ "docs": {
35
+ "tags": [],
36
+ "text": ""
37
+ },
38
+ "attribute": "border",
39
+ "reflect": false,
40
+ "defaultValue": "true"
41
+ }
42
+ };
43
+ }
44
+ }
@@ -0,0 +1,20 @@
1
+ export default {
2
+ title: 'molecules/Toolbar',
3
+ component: 'tttx-toolbar',
4
+ argTypes: {
5
+ border: {
6
+ control: { type: 'boolean' }
7
+ },
8
+ },
9
+ };
10
+ const Default = ({ border }) => `
11
+ <tttx-toolbar border="${border ? 'true' : 'false'}">
12
+ <span slot="before"><tttx-button design="primary">Before</tttx-button></span>
13
+ <span slot="center"><div style="position: relative; top: -4px;"><tttx-standalone-input placeholder="center" inline required showerrorbubble="false" inputicon="search" /></div></span>
14
+ <span slot="after"><tttx-keyvalue-block horizontal keyvalues='{"Position":"after"}' /></span>
15
+ </tttx-toolbar>
16
+ `;
17
+ export const BasicStringList = Default.bind({});
18
+ BasicStringList.args = {
19
+ border: true
20
+ };
@@ -6,6 +6,7 @@ export { TttxKeyvalueBlock as TttxKeyvalueBlock } from '../types/components/atom
6
6
  export { TttxList as TttxList } from '../types/components/molecules/tttx-list/tttx-list';
7
7
  export { TttxLoadingSpinner as TttxLoadingSpinner } from '../types/components/atoms/tttx-loading-spinner/tttx-loading-spinner';
8
8
  export { TttxInput as TttxStandaloneInput } from '../types/components/molecules/tttx-standalone-input/tttx-standalone-input';
9
+ export { TttxToolbar as TttxToolbar } from '../types/components/molecules/tttx-toolbar/tttx-toolbar';
9
10
 
10
11
  /**
11
12
  * Used to manually set the base path where assets can be found.
@@ -19,6 +20,15 @@ export { TttxInput as TttxStandaloneInput } from '../types/components/molecules/
19
20
  */
20
21
  export declare const setAssetPath: (path: string) => void;
21
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
+
22
32
  export interface SetPlatformOptions {
23
33
  raf?: (c: FrameRequestCallback) => number;
24
34
  ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
@@ -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';
@@ -6,3 +6,4 @@ export { TttxKeyvalueBlock, defineCustomElement as defineCustomElementTttxKeyval
6
6
  export { TttxList, defineCustomElement as defineCustomElementTttxList } from './tttx-list.js';
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
+ export { TttxToolbar, defineCustomElement as defineCustomElementTttxToolbar } from './tttx-toolbar.js';
@@ -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() {
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface TttxToolbar extends Components.TttxToolbar, HTMLElement {}
4
+ export const TttxToolbar: {
5
+ prototype: TttxToolbar;
6
+ new (): TttxToolbar;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,36 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+
3
+ 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}";
4
+
5
+ const TttxToolbar$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
+ constructor() {
7
+ super();
8
+ this.__registerHost();
9
+ this.__attachShadow();
10
+ this.border = true;
11
+ }
12
+ render() {
13
+ return (h(Host, { class: this.border ? 'bordered' : '' }, h("slot", { name: 'before' }), h("slot", { name: 'center' }), h("slot", { name: 'after' })));
14
+ }
15
+ static get style() { return tttxToolbarCss; }
16
+ }, [1, "tttx-toolbar", {
17
+ "border": [4]
18
+ }]);
19
+ function defineCustomElement$1() {
20
+ if (typeof customElements === "undefined") {
21
+ return;
22
+ }
23
+ const components = ["tttx-toolbar"];
24
+ components.forEach(tagName => { switch (tagName) {
25
+ case "tttx-toolbar":
26
+ if (!customElements.get(tagName)) {
27
+ customElements.define(tagName, TttxToolbar$1);
28
+ }
29
+ break;
30
+ } });
31
+ }
32
+
33
+ const TttxToolbar = TttxToolbar$1;
34
+ const defineCustomElement = defineCustomElement$1;
35
+
36
+ export { TttxToolbar, defineCustomElement };