@3t-transform/threeteeui 0.0.3 → 0.0.5

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 (53) hide show
  1. package/dist/cjs/{index-eb8fc323.js → index-8a7479e4.js} +22 -2
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/qualifications-list.cjs.entry.js +7149 -0
  4. package/dist/cjs/toolbar-02115550.js +864 -0
  5. package/dist/cjs/tttx-icon.cjs.entry.js +21 -0
  6. package/dist/cjs/tttx-page.cjs.entry.js +59 -58
  7. package/dist/cjs/tttx-worksheet.cjs.entry.js +4 -3
  8. package/dist/cjs/tttx.cjs.js +2 -2
  9. package/dist/cjs/{toolbar-656be6e6.js → ui.popover-27780a1d.js} +9546 -10229
  10. package/dist/collection/collection-manifest.json +2 -0
  11. package/dist/collection/components/components/tttx-icon/tttx-icon.css +89 -0
  12. package/dist/collection/components/components/tttx-icon/tttx-icon.js +59 -0
  13. package/dist/collection/components/components/tttx-icon/tttx-icon.stories.js +40 -0
  14. package/dist/collection/components/patterns/qualifications-list/qualifications-list.js +32 -0
  15. package/dist/collection/components/patterns/qualifications-list/qualifications-list.stories.js +7 -0
  16. package/dist/components/index.d.ts +2 -0
  17. package/dist/components/index.js +2 -0
  18. package/dist/components/qualifications-list.d.ts +11 -0
  19. package/dist/components/qualifications-list.js +7162 -0
  20. package/dist/components/tttx-icon.d.ts +11 -0
  21. package/dist/components/tttx-icon.js +37 -0
  22. package/dist/components/tttx-page.js +2 -1
  23. package/dist/components/tttx-worksheet.js +1 -1
  24. package/dist/components/tttx-worksheet2.js +61 -33431
  25. package/dist/{esm/toolbar-cede4385.js → components/ui.popover.js} +9447 -10229
  26. package/dist/esm/{index-4c11a593.js → index-854ff56f.js} +22 -2
  27. package/dist/esm/loader.js +2 -2
  28. package/dist/esm/qualifications-list.entry.js +7145 -0
  29. package/dist/esm/toolbar-b147a3aa.js +862 -0
  30. package/dist/esm/tttx-icon.entry.js +17 -0
  31. package/dist/esm/tttx-page.entry.js +3 -2
  32. package/dist/esm/tttx-worksheet.entry.js +3 -2
  33. package/dist/esm/tttx.js +2 -2
  34. package/dist/esm/ui.popover-0c8f8d79.js +33449 -0
  35. package/dist/tttx/p-4f4963aa.entry.js +1 -0
  36. package/dist/tttx/p-69ca02f6.entry.js +1 -0
  37. package/dist/tttx/p-7244abd4.entry.js +1 -0
  38. package/dist/tttx/p-7eb8146c.entry.js +1 -0
  39. package/dist/tttx/p-81cad444.js +1 -0
  40. package/dist/tttx/p-955d89ac.js +1 -0
  41. package/dist/tttx/p-ddfeb0ba.js +2 -0
  42. package/dist/tttx/tttx.css +1 -1
  43. package/dist/tttx/tttx.esm.js +1 -1
  44. package/dist/types/components/components/tttx-icon/tttx-icon.d.ts +5 -0
  45. package/dist/types/components/components/tttx-icon/tttx-icon.stories.d.ts +24 -0
  46. package/dist/types/components/patterns/qualifications-list/qualifications-list.d.ts +6 -0
  47. package/dist/types/components/patterns/qualifications-list/qualifications-list.stories.d.ts +5 -0
  48. package/dist/types/components.d.ts +30 -0
  49. package/package.json +2 -3
  50. package/dist/tttx/p-2681b874.js +0 -2
  51. package/dist/tttx/p-285977b3.entry.js +0 -1
  52. package/dist/tttx/p-997a8339.entry.js +0 -1
  53. package/dist/tttx/p-d038fe18.js +0 -1
@@ -396,7 +396,11 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
396
396
  1 /* VNODE_FLAGS.isSlotReference */;
397
397
  }
398
398
  }
399
- if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
399
+ if (newVNode.$text$ !== null) {
400
+ // create text node
401
+ elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
402
+ }
403
+ else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
400
404
  // create a slot reference node
401
405
  elm = newVNode.$elm$ =
402
406
  doc.createTextNode('');
@@ -758,7 +762,9 @@ const patch = (oldVNode, newVNode) => {
758
762
  const oldChildren = oldVNode.$children$;
759
763
  const newChildren = newVNode.$children$;
760
764
  const tag = newVNode.$tag$;
761
- {
765
+ const text = newVNode.$text$;
766
+ let defaultHolder;
767
+ if (text === null) {
762
768
  {
763
769
  if (tag === 'slot')
764
770
  ;
@@ -775,6 +781,11 @@ const patch = (oldVNode, newVNode) => {
775
781
  updateChildren(elm, oldChildren, newVNode, newChildren);
776
782
  }
777
783
  else if (newChildren !== null) {
784
+ // no old child vnodes, but there are new child vnodes to add
785
+ if (oldVNode.$text$ !== null) {
786
+ // the old vnode was text, so be sure to clear it out
787
+ elm.textContent = '';
788
+ }
778
789
  // add the new vnode children
779
790
  addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
780
791
  }
@@ -783,6 +794,15 @@ const patch = (oldVNode, newVNode) => {
783
794
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
784
795
  }
785
796
  }
797
+ else if ((defaultHolder = elm['s-cr'])) {
798
+ // this element has slotted content
799
+ defaultHolder.parentNode.textContent = text;
800
+ }
801
+ else if (oldVNode.$text$ !== text) {
802
+ // update the text content for the text only vnode
803
+ // and also only if the text is different than before
804
+ elm.data = text;
805
+ }
786
806
  };
787
807
  const updateFallbackSlotVisibility = (elm) => {
788
808
  // tslint:disable-next-line: prefer-const
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-eb8fc323.js');
5
+ const index = require('./index-8a7479e4.js');
6
6
 
7
7
  /*
8
8
  Stencil Client Patch Esm v2.20.0 | MIT Licensed | https://stenciljs.com
@@ -14,7 +14,7 @@ const patchEsm = () => {
14
14
  const defineCustomElements = (win, options) => {
15
15
  if (typeof window === 'undefined') return Promise.resolve();
16
16
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["tttx-worksheet.cjs",[[4,"tttx-worksheet",{"pageSize":[1,"page-size"]}]]],["tttx-page.cjs",[[4,"tttx-page",{"appName":[1,"app-name"],"pageTitle":[1,"page-title"],"lastUpdated":[1,"last-updated"],"manageAccountsUrl":[1,"manage-accounts-url"],"logoutUrl":[1,"logout-url"],"pageSize":[1,"page-size"],"helpUrl":[1,"help-url"]}]]]], options);
17
+ return index.bootstrapLazy([["tttx-page.cjs",[[4,"tttx-page",{"appName":[1,"app-name"],"pageTitle":[1,"page-title"],"lastUpdated":[1,"last-updated"],"manageAccountsUrl":[1,"manage-accounts-url"],"logoutUrl":[1,"logout-url"],"pageSize":[1,"page-size"],"helpUrl":[1,"help-url"]}]]],["qualifications-list.cjs",[[0,"qualifications-list"]]],["tttx-icon.cjs",[[0,"tttx-icon",{"name":[1],"color":[1]}]]],["tttx-worksheet.cjs",[[4,"tttx-worksheet",{"pageSize":[1,"page-size"]}]]]], options);
18
18
  });
19
19
  };
20
20