q2-tecton-elements 1.4.2 → 1.4.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 (154) hide show
  1. package/dist/cjs/click-elsewhere.cjs.entry.js +1 -1
  2. package/dist/cjs/{index-4faae504.js → index-88eda03b.js} +0 -3
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/{patch-914a750e.js → patch-e20a85b4.js} +1 -1
  5. package/dist/cjs/q2-avatar.cjs.entry.js +1 -1
  6. package/dist/cjs/q2-btn.cjs.entry.js +1 -1
  7. package/dist/cjs/q2-calendar.cjs.entry.js +1 -1
  8. package/dist/cjs/q2-carousel-pane.cjs.entry.js +1 -1
  9. package/dist/cjs/q2-carousel.cjs.entry.js +1 -1
  10. package/dist/cjs/q2-checkbox-group.cjs.entry.js +1 -1
  11. package/dist/cjs/q2-checkbox.cjs.entry.js +1 -1
  12. package/dist/cjs/q2-dropdown-item.cjs.entry.js +1 -1
  13. package/dist/cjs/q2-dropdown.cjs.entry.js +1 -1
  14. package/dist/cjs/q2-editable-field.cjs.entry.js +1 -1
  15. package/dist/cjs/q2-icon.cjs.entry.js +1 -1
  16. package/dist/cjs/q2-input_2.cjs.entry.js +1 -1
  17. package/dist/cjs/q2-loading-element.cjs.entry.js +2 -2
  18. package/dist/cjs/q2-loading.cjs.entry.js +2 -2
  19. package/dist/cjs/q2-loc.cjs.entry.js +1 -1
  20. package/dist/cjs/q2-optgroup.cjs.entry.js +1 -1
  21. package/dist/cjs/q2-option.cjs.entry.js +1 -1
  22. package/dist/cjs/q2-radio-group.cjs.entry.js +1 -1
  23. package/dist/cjs/q2-radio.cjs.entry.js +1 -1
  24. package/dist/cjs/q2-section.cjs.entry.js +1 -1
  25. package/dist/cjs/q2-select.cjs.entry.js +1 -1
  26. package/dist/cjs/q2-tab-container.cjs.entry.js +1 -1
  27. package/dist/cjs/q2-tab-pane.cjs.entry.js +1 -1
  28. package/dist/cjs/q2-tecton-elements.cjs.js +2 -2
  29. package/dist/cjs/{shapes-6672cf49.js → shapes-00766dc3.js} +1 -1
  30. package/dist/cjs/tecton-tab-pane.cjs.entry.js +1 -5
  31. package/dist/collection/components/tecton-tab-pane/index.js +0 -4
  32. package/dist/esm/click-elsewhere.entry.js +1 -1
  33. package/dist/esm/{index-34b1f583.js → index-b70f7228.js} +0 -3
  34. package/dist/esm/loader.mjs +2 -2
  35. package/dist/esm/{patch-6cd50c08.js → patch-187aa2d6.js} +1 -1
  36. package/dist/esm/q2-avatar.entry.js +1 -1
  37. package/dist/esm/q2-btn.entry.js +1 -1
  38. package/dist/esm/q2-calendar.entry.js +1 -1
  39. package/dist/esm/q2-carousel-pane.entry.js +1 -1
  40. package/dist/esm/q2-carousel.entry.js +1 -1
  41. package/dist/esm/q2-checkbox-group.entry.js +1 -1
  42. package/dist/esm/q2-checkbox.entry.js +1 -1
  43. package/dist/esm/q2-dropdown-item.entry.js +1 -1
  44. package/dist/esm/q2-dropdown.entry.js +1 -1
  45. package/dist/esm/q2-editable-field.entry.js +1 -1
  46. package/dist/esm/q2-icon.entry.js +1 -1
  47. package/dist/esm/q2-input_2.entry.js +1 -1
  48. package/dist/esm/q2-loading-element.entry.js +2 -2
  49. package/dist/esm/q2-loading.entry.js +2 -2
  50. package/dist/esm/q2-loc.entry.js +1 -1
  51. package/dist/esm/q2-optgroup.entry.js +1 -1
  52. package/dist/esm/q2-option.entry.js +1 -1
  53. package/dist/esm/q2-radio-group.entry.js +1 -1
  54. package/dist/esm/q2-radio.entry.js +1 -1
  55. package/dist/esm/q2-section.entry.js +1 -1
  56. package/dist/esm/q2-select.entry.js +1 -1
  57. package/dist/esm/q2-tab-container.entry.js +1 -1
  58. package/dist/esm/q2-tab-pane.entry.js +1 -1
  59. package/dist/esm/q2-tecton-elements.mjs +2 -2
  60. package/dist/esm/{shapes-c290d265.js → shapes-1a12324b.js} +1 -1
  61. package/dist/esm/tecton-tab-pane.entry.js +1 -5
  62. package/dist/esm-es5/click-elsewhere.entry.js +1 -1
  63. package/dist/esm-es5/{index-34b1f583.js → index-b70f7228.js} +0 -3
  64. package/dist/esm-es5/loader.mjs +2 -2
  65. package/dist/esm-es5/{patch-6cd50c08.js → patch-187aa2d6.js} +1 -1
  66. package/dist/esm-es5/q2-avatar.entry.js +1 -1
  67. package/dist/esm-es5/q2-btn.entry.js +1 -1
  68. package/dist/esm-es5/q2-calendar.entry.js +1 -1
  69. package/dist/esm-es5/q2-carousel-pane.entry.js +1 -1
  70. package/dist/esm-es5/q2-carousel.entry.js +1 -1
  71. package/dist/esm-es5/q2-checkbox-group.entry.js +1 -1
  72. package/dist/esm-es5/q2-checkbox.entry.js +1 -1
  73. package/dist/esm-es5/q2-dropdown-item.entry.js +1 -1
  74. package/dist/esm-es5/q2-dropdown.entry.js +1 -1
  75. package/dist/esm-es5/q2-editable-field.entry.js +1 -1
  76. package/dist/esm-es5/q2-icon.entry.js +1 -1
  77. package/dist/esm-es5/q2-input_2.entry.js +1 -1
  78. package/dist/esm-es5/q2-loading-element.entry.js +2 -2
  79. package/dist/esm-es5/q2-loading.entry.js +2 -2
  80. package/dist/esm-es5/q2-loc.entry.js +1 -1
  81. package/dist/esm-es5/q2-optgroup.entry.js +1 -1
  82. package/dist/esm-es5/q2-option.entry.js +1 -1
  83. package/dist/esm-es5/q2-radio-group.entry.js +1 -1
  84. package/dist/esm-es5/q2-radio.entry.js +1 -1
  85. package/dist/esm-es5/q2-section.entry.js +1 -1
  86. package/dist/esm-es5/q2-select.entry.js +1 -1
  87. package/dist/esm-es5/q2-tab-container.entry.js +1 -1
  88. package/dist/esm-es5/q2-tab-pane.entry.js +1 -1
  89. package/dist/esm-es5/q2-tecton-elements.mjs +2 -2
  90. package/dist/esm-es5/{shapes-c290d265.js → shapes-1a12324b.js} +1 -1
  91. package/dist/esm-es5/tecton-tab-pane.entry.js +1 -5
  92. package/dist/q2-tecton-elements/{p-a568efed.system.js → p-00067d0a.system.js} +1 -1
  93. package/dist/q2-tecton-elements/{p-a713c5fc.system.js → p-06e01d71.system.js} +1 -1
  94. package/dist/q2-tecton-elements/{p-42d82321.entry.js → p-07203a0e.entry.js} +1 -1
  95. package/dist/q2-tecton-elements/{p-1ba8463c.system.entry.js → p-1113bf25.system.entry.js} +1 -1
  96. package/dist/q2-tecton-elements/{p-211d3858.entry.js → p-12cf6e8b.entry.js} +1 -1
  97. package/dist/q2-tecton-elements/p-154bd5bd.entry.js +1 -0
  98. package/dist/q2-tecton-elements/p-1a8e579d.js +1 -0
  99. package/dist/q2-tecton-elements/{p-a53cd78f.system.entry.js → p-208d0c6e.system.entry.js} +1 -1
  100. package/dist/q2-tecton-elements/{p-669430ad.entry.js → p-268818c7.entry.js} +1 -1
  101. package/dist/q2-tecton-elements/{p-3d9f3e86.entry.js → p-2fce6304.entry.js} +1 -1
  102. package/dist/q2-tecton-elements/{p-19398668.entry.js → p-30c73ea9.entry.js} +1 -1
  103. package/dist/q2-tecton-elements/{p-ae4591dd.entry.js → p-323cbdd3.entry.js} +1 -1
  104. package/dist/q2-tecton-elements/{p-c6aba736.system.entry.js → p-33a4a4e6.system.entry.js} +1 -1
  105. package/dist/q2-tecton-elements/{p-583bfa9b.entry.js → p-390b9415.entry.js} +1 -1
  106. package/dist/q2-tecton-elements/{p-de531333.system.entry.js → p-3a2e7aad.system.entry.js} +1 -1
  107. package/dist/q2-tecton-elements/{p-ee20ba95.system.entry.js → p-3d8e5455.system.entry.js} +1 -1
  108. package/dist/q2-tecton-elements/{p-79f337d9.entry.js → p-46204d10.entry.js} +1 -1
  109. package/dist/q2-tecton-elements/{p-1dc36e58.system.entry.js → p-49ec33ae.system.entry.js} +1 -1
  110. package/dist/q2-tecton-elements/{p-979c3b07.system.entry.js → p-4b737f84.system.entry.js} +1 -1
  111. package/dist/q2-tecton-elements/{p-72742d91.system.entry.js → p-4fd89735.system.entry.js} +1 -1
  112. package/dist/q2-tecton-elements/{p-8815f594.system.entry.js → p-535687b4.system.entry.js} +1 -1
  113. package/dist/q2-tecton-elements/{p-4ff290be.system.entry.js → p-5adaa91d.system.entry.js} +1 -1
  114. package/dist/q2-tecton-elements/{p-3082637e.system.entry.js → p-5f0adaa9.system.entry.js} +1 -1
  115. package/dist/q2-tecton-elements/{p-9b266886.system.js → p-5f52c28d.system.js} +1 -1
  116. package/dist/q2-tecton-elements/{p-b08c40a0.entry.js → p-5fc58e19.entry.js} +1 -1
  117. package/dist/q2-tecton-elements/{p-5299effa.entry.js → p-75be017a.entry.js} +1 -1
  118. package/dist/q2-tecton-elements/{p-3c0b64bb.entry.js → p-7b10d18b.entry.js} +1 -1
  119. package/dist/q2-tecton-elements/{p-b2e8e409.entry.js → p-7b3a7b01.entry.js} +1 -1
  120. package/dist/q2-tecton-elements/{p-7b7decfe.system.entry.js → p-7e020511.system.entry.js} +1 -1
  121. package/dist/q2-tecton-elements/{p-2c98567c.entry.js → p-832f3e02.entry.js} +1 -1
  122. package/dist/q2-tecton-elements/{p-3ef9bb34.entry.js → p-83ac78cd.entry.js} +1 -1
  123. package/dist/q2-tecton-elements/{p-ea6f547c.system.entry.js → p-843fdb33.system.entry.js} +1 -1
  124. package/dist/q2-tecton-elements/{p-10502b27.system.entry.js → p-8dfd0e89.system.entry.js} +1 -1
  125. package/dist/q2-tecton-elements/{p-9df42353.entry.js → p-9a298ef4.entry.js} +1 -1
  126. package/dist/q2-tecton-elements/{p-9c408e3b.system.entry.js → p-9f4d9ea2.system.entry.js} +1 -1
  127. package/dist/q2-tecton-elements/{p-e1bd7e6a.js → p-9fc24628.js} +1 -1
  128. package/dist/q2-tecton-elements/{p-c81dc9f0.system.entry.js → p-a53e34ff.system.entry.js} +1 -1
  129. package/dist/q2-tecton-elements/{p-6adbe95b.system.entry.js → p-a68a88bb.system.entry.js} +1 -1
  130. package/dist/q2-tecton-elements/{p-fc450348.system.entry.js → p-ad2fa69f.system.entry.js} +1 -1
  131. package/dist/q2-tecton-elements/{p-fb316fec.entry.js → p-b1fb02bf.entry.js} +1 -1
  132. package/dist/q2-tecton-elements/{p-1d610ca3.entry.js → p-b2a4162a.entry.js} +1 -1
  133. package/dist/q2-tecton-elements/{p-0301ee38.system.entry.js → p-b4637b36.system.entry.js} +1 -1
  134. package/dist/q2-tecton-elements/{p-c78e1b7c.system.entry.js → p-b88eabe8.system.entry.js} +1 -1
  135. package/dist/q2-tecton-elements/{p-64526ee4.entry.js → p-b96a2e11.entry.js} +1 -1
  136. package/dist/q2-tecton-elements/{p-b69ad58e.entry.js → p-bc15b363.entry.js} +1 -1
  137. package/dist/q2-tecton-elements/{p-9147bc6d.entry.js → p-c164ff6e.entry.js} +1 -1
  138. package/dist/q2-tecton-elements/{p-8ad7a53e.entry.js → p-c96424ae.entry.js} +1 -1
  139. package/dist/q2-tecton-elements/{p-78e5e68c.js → p-ce2eb03c.js} +1 -1
  140. package/dist/q2-tecton-elements/{p-e0339bce.system.entry.js → p-ce8573ad.system.entry.js} +1 -1
  141. package/dist/q2-tecton-elements/{p-484792a3.entry.js → p-d3d487ce.entry.js} +1 -1
  142. package/dist/q2-tecton-elements/{p-4126f9eb.system.entry.js → p-dbf210b9.system.entry.js} +1 -1
  143. package/dist/q2-tecton-elements/{p-a4fc5cb9.system.entry.js → p-e41762c1.system.entry.js} +1 -1
  144. package/dist/q2-tecton-elements/{p-6df877cb.system.entry.js → p-f01bebc8.system.entry.js} +1 -1
  145. package/dist/q2-tecton-elements/{p-2d49c74e.system.js → p-f08aea0c.system.js} +1 -1
  146. package/dist/q2-tecton-elements/{p-938d5bbf.entry.js → p-f15af226.entry.js} +1 -1
  147. package/dist/q2-tecton-elements/{p-43dc7121.entry.js → p-f6023957.entry.js} +1 -1
  148. package/dist/q2-tecton-elements/{p-c58b223f.system.entry.js → p-f6f4572b.system.entry.js} +1 -1
  149. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
  150. package/dist/q2-tecton-elements/q2-tecton-elements.js +1 -1
  151. package/dist/types/components/tecton-tab-pane/index.d.ts +0 -1
  152. package/package.json +2 -2
  153. package/dist/q2-tecton-elements/p-7ff881d1.js +0 -1
  154. package/dist/q2-tecton-elements/p-992f190b.entry.js +0 -1
@@ -1 +1 @@
1
- System.register(["./p-2d49c74e.system.js","./p-4576db15.system.js"],(function(e){"use strict";var t,o,n,r;return{setters:[function(e){t=e.r;o=e.h;n=e.g},function(e){r=e.c}],execute:function(){var i="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}:host{display:block}.q2-optgroup-header{background-color:var(\n --tct-optgroup-header-bg,\n var(--tct-gray-l2, var(--app-gray-l2, #e6e6ee))\n );padding:var(--tct-scale-1, var(--app-scale-1, 5px))\n var(--tct-scale-2, var(--app-scale-2, 10px));font-weight:var(--tct-optgroup-header-font-weight, 600);text-transform:var(--tct-optgroup-header-text-transform, uppercase);}";var s=e("q2_optgroup",function(){function e(e){var o=this;t(this,e);this.disabled=false;this.hidden=false;this.guid=r();this.setHidden=function(){o.hidden=o.options.every((function(e){return e.hidden||e._multiSelectHidden}))}}e.prototype.componentWillLoad=function(){var e=new MutationObserver(this.setHidden);e.observe(this.hostElement,{childList:true,attributes:true,subtree:true});this.mutationObserver=e;this.setHidden();this.disabledWatcher(this.disabled)};e.prototype.disconnectedCallback=function(){this.mutationObserver.disconnect();this.mutationObserver=null};Object.defineProperty(e.prototype,"headerId",{get:function(){return"q2-optgroup-header-"+this.guid},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"options",{get:function(){return Array.from(this.hostElement.querySelectorAll("q2-option"))},enumerable:false,configurable:true});e.prototype.loc=function(e,t){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(e,t):e};e.prototype.disabledWatcher=function(e){this.options.forEach((function(t){t.disabledGroup=!!e}))};e.prototype.render=function(){return o("div",{class:"q2-optgroup-container",hidden:this.hidden,"aria-labelledby":this.headerId,role:"group"},o("div",{class:"q2-optgroup-header",id:this.headerId},this.label&&this.loc(this.label)||""),o("div",{class:"q2-optgroup-options"},o("slot",null)))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{disabled:["disabledWatcher"]}},enumerable:false,configurable:true});return e}());s.style=i}}}));
1
+ System.register(["./p-f08aea0c.system.js","./p-4576db15.system.js"],(function(e){"use strict";var t,o,n,r;return{setters:[function(e){t=e.r;o=e.h;n=e.g},function(e){r=e.c}],execute:function(){var i="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}:host{display:block}.q2-optgroup-header{background-color:var(\n --tct-optgroup-header-bg,\n var(--tct-gray-l2, var(--app-gray-l2, #e6e6ee))\n );padding:var(--tct-scale-1, var(--app-scale-1, 5px))\n var(--tct-scale-2, var(--app-scale-2, 10px));font-weight:var(--tct-optgroup-header-font-weight, 600);text-transform:var(--tct-optgroup-header-text-transform, uppercase);}";var s=e("q2_optgroup",function(){function e(e){var o=this;t(this,e);this.disabled=false;this.hidden=false;this.guid=r();this.setHidden=function(){o.hidden=o.options.every((function(e){return e.hidden||e._multiSelectHidden}))}}e.prototype.componentWillLoad=function(){var e=new MutationObserver(this.setHidden);e.observe(this.hostElement,{childList:true,attributes:true,subtree:true});this.mutationObserver=e;this.setHidden();this.disabledWatcher(this.disabled)};e.prototype.disconnectedCallback=function(){this.mutationObserver.disconnect();this.mutationObserver=null};Object.defineProperty(e.prototype,"headerId",{get:function(){return"q2-optgroup-header-"+this.guid},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"options",{get:function(){return Array.from(this.hostElement.querySelectorAll("q2-option"))},enumerable:false,configurable:true});e.prototype.loc=function(e,t){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(e,t):e};e.prototype.disabledWatcher=function(e){this.options.forEach((function(t){t.disabledGroup=!!e}))};e.prototype.render=function(){return o("div",{class:"q2-optgroup-container",hidden:this.hidden,"aria-labelledby":this.headerId,role:"group"},o("div",{class:"q2-optgroup-header",id:this.headerId},this.label&&this.loc(this.label)||""),o("div",{class:"q2-optgroup-options"},o("slot",null)))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{disabled:["disabledWatcher"]}},enumerable:false,configurable:true});return e}());s.style=i}}}));
@@ -1 +1 @@
1
- System.register(["./p-2d49c74e.system.js","./p-4576db15.system.js"],(function(t){"use strict";var e,o,i,n,r;return{setters:[function(t){e=t.r;o=t.c;i=t.h;n=t.g},function(t){r=t.c}],execute:function(){var a="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}:host{margin-top:var(--tct-scale-2, var(--app-scale-2, 10px))}fieldset{padding:0;margin:0;border:0}fieldset.has-error{border-color:var(--tct-input-error-border-color, var(--const-stoplight-alert, #c30000));border-width:1px;border-style:solid;border-radius:var(--tct-border-radius-1, var(--app-border-radius-1, 2px));position:relative}fieldset.has-error .error-icon-container{top:8px;right:8px;position:absolute;width:40%;text-align:right;background:-webkit-gradient(linear, left top, right top, from(transparent), to(white));background:linear-gradient(to right, transparent, white)}fieldset.has-error legend+div.error-icon-container.no-label{top:28px}.group-legend{font-weight:600}legend.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0}.optional-tag{margin-left:var(\n --tct-input-label-optional-margin-left,\n var(--tct-scale-1, var(--app-scale-1, 5px))\n );color:var(\n --tct-input-label-optional-font-color,\n var(--tct-a11y-color, var(--t-a11y-gray-color, #767676))\n );font-size:var(--tct-input-label-optional-font-size, 12px);font-weight:var(--tct-input-label-optional-font-weight, 400)}.flexed{margin:0;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flexed.left{-ms-flex-pack:left;justify-content:left}";var l=t("q2_radio_group",function(){function t(t){var i=this;e(this,t);this.change=o(this,"change",7);this.disabled=false;this.tileAlignment="center";this.hasError=false;this.id="radio-group-"+r();this.onMutationObserved=function(){i.valueUpdated();i.nameUpdated();i.disabledUpdated();i.tileLayoutUpdated()};this.onInnerRadioChange=function(t){t.stopImmediatePropagation();i.change.emit({value:t.detail.value})}}t.prototype.loc=function(t,e){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(t,e):t};Object.defineProperty(t.prototype,"radioElements",{get:function(){return Array.from(this.hostElement.querySelectorAll("q2-radio"))},enumerable:false,configurable:true});t.prototype.componentDidLoad=function(){var t=new MutationObserver(this.onMutationObserved);t.observe(this.hostElement,{childList:true});this.mutationObserver=t;this.onMutationObserved()};t.prototype.valueUpdated=function(){var t=this;this.radioElements.forEach((function(e){e.checked=t.value===e.value}))};t.prototype.nameUpdated=function(){var t=this;this.radioElements.forEach((function(e){e.name=t.name||t.id}))};t.prototype.disabledUpdated=function(){var t=this;this.radioElements.forEach((function(e){e.groupDisabled=t.disabled}))};t.prototype.tileLayoutUpdated=function(){var t=this;this.radioElements.forEach((function(e){e.groupTileLayout=t.tilelayout}))};t.prototype.onHostElementChange=function(t){if(t.target===this.hostElement){if(!this.hostElement.onchange){this.value=t.detail.value}}};t.prototype.render=function(){return i("div",null,this.label||this.optional?i("div",{class:"group-legend"},this.label&&this.loc(this.label),this.optional?i("span",{class:"optional-tag"},this.loc("tecton.element.input.optional")):""):"",i("fieldset",{class:"q2-radio-fieldset "+(this.hasError?"has-error":""),onChange:this.onInnerRadioChange,"aria-required":""+!this.optional},this.label||this.optional?i("legend",{class:"sr-only"},this.label&&this.loc(this.label),this.optional?i("span",{class:"optional-tag"},this.loc("tecton.element.input.optional")):""):"",this.hasError?i("div",{class:"error-icon-container "+(this.label||this.optional?"":"no-label")},i("q2-icon",{class:"h(4) w(4) mrg-b(2)",type:"error"})):"",this.inputDom()))};t.prototype.inputDom=function(){if(this.tilelayout){return i("div",{class:this.tileAlignment==="left"?"flexed left":"flexed"},i("slot",null))}else{return i("slot",null)}};Object.defineProperty(t.prototype,"hostElement",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["valueUpdated"],name:["nameUpdated"],disabled:["disabledUpdated"],tilelayout:["tileLayoutUpdated"]}},enumerable:false,configurable:true});return t}());l.style=a}}}));
1
+ System.register(["./p-f08aea0c.system.js","./p-4576db15.system.js"],(function(t){"use strict";var e,o,i,n,r;return{setters:[function(t){e=t.r;o=t.c;i=t.h;n=t.g},function(t){r=t.c}],execute:function(){var a="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}:host{margin-top:var(--tct-scale-2, var(--app-scale-2, 10px))}fieldset{padding:0;margin:0;border:0}fieldset.has-error{border-color:var(--tct-input-error-border-color, var(--const-stoplight-alert, #c30000));border-width:1px;border-style:solid;border-radius:var(--tct-border-radius-1, var(--app-border-radius-1, 2px));position:relative}fieldset.has-error .error-icon-container{top:8px;right:8px;position:absolute;width:40%;text-align:right;background:-webkit-gradient(linear, left top, right top, from(transparent), to(white));background:linear-gradient(to right, transparent, white)}fieldset.has-error legend+div.error-icon-container.no-label{top:28px}.group-legend{font-weight:600}legend.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0}.optional-tag{margin-left:var(\n --tct-input-label-optional-margin-left,\n var(--tct-scale-1, var(--app-scale-1, 5px))\n );color:var(\n --tct-input-label-optional-font-color,\n var(--tct-a11y-color, var(--t-a11y-gray-color, #767676))\n );font-size:var(--tct-input-label-optional-font-size, 12px);font-weight:var(--tct-input-label-optional-font-weight, 400)}.flexed{margin:0;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flexed.left{-ms-flex-pack:left;justify-content:left}";var l=t("q2_radio_group",function(){function t(t){var i=this;e(this,t);this.change=o(this,"change",7);this.disabled=false;this.tileAlignment="center";this.hasError=false;this.id="radio-group-"+r();this.onMutationObserved=function(){i.valueUpdated();i.nameUpdated();i.disabledUpdated();i.tileLayoutUpdated()};this.onInnerRadioChange=function(t){t.stopImmediatePropagation();i.change.emit({value:t.detail.value})}}t.prototype.loc=function(t,e){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(t,e):t};Object.defineProperty(t.prototype,"radioElements",{get:function(){return Array.from(this.hostElement.querySelectorAll("q2-radio"))},enumerable:false,configurable:true});t.prototype.componentDidLoad=function(){var t=new MutationObserver(this.onMutationObserved);t.observe(this.hostElement,{childList:true});this.mutationObserver=t;this.onMutationObserved()};t.prototype.valueUpdated=function(){var t=this;this.radioElements.forEach((function(e){e.checked=t.value===e.value}))};t.prototype.nameUpdated=function(){var t=this;this.radioElements.forEach((function(e){e.name=t.name||t.id}))};t.prototype.disabledUpdated=function(){var t=this;this.radioElements.forEach((function(e){e.groupDisabled=t.disabled}))};t.prototype.tileLayoutUpdated=function(){var t=this;this.radioElements.forEach((function(e){e.groupTileLayout=t.tilelayout}))};t.prototype.onHostElementChange=function(t){if(t.target===this.hostElement){if(!this.hostElement.onchange){this.value=t.detail.value}}};t.prototype.render=function(){return i("div",null,this.label||this.optional?i("div",{class:"group-legend"},this.label&&this.loc(this.label),this.optional?i("span",{class:"optional-tag"},this.loc("tecton.element.input.optional")):""):"",i("fieldset",{class:"q2-radio-fieldset "+(this.hasError?"has-error":""),onChange:this.onInnerRadioChange,"aria-required":""+!this.optional},this.label||this.optional?i("legend",{class:"sr-only"},this.label&&this.loc(this.label),this.optional?i("span",{class:"optional-tag"},this.loc("tecton.element.input.optional")):""):"",this.hasError?i("div",{class:"error-icon-container "+(this.label||this.optional?"":"no-label")},i("q2-icon",{class:"h(4) w(4) mrg-b(2)",type:"error"})):"",this.inputDom()))};t.prototype.inputDom=function(){if(this.tilelayout){return i("div",{class:this.tileAlignment==="left"?"flexed left":"flexed"},i("slot",null))}else{return i("slot",null)}};Object.defineProperty(t.prototype,"hostElement",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["valueUpdated"],name:["nameUpdated"],disabled:["disabledUpdated"],tilelayout:["tileLayoutUpdated"]}},enumerable:false,configurable:true});return t}());l.style=a}}}));
@@ -1 +1 @@
1
- System.register(["./p-2d49c74e.system.js"],(function(e){"use strict";var o,t,n;return{setters:[function(e){o=e.r;t=e.h;n=e.g}],execute:function(){var r="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.q2-element-dropdown{display:none;position:absolute;background-color:var(--app-white);color:var(--t-font-color);left:0;width:100%;z-index:100;margin-top:1px;-webkit-box-shadow:var(--app-shadow-1);box-shadow:var(--app-shadow-1);height:0;overflow:hidden;opacity:0;visibility:hidden;-webkit-transition:opacity var(--app-tween-1);transition:opacity var(--app-tween-1);border-radius:var(--tct-dropdown-element-br, 0)}.q2-element-dropdown.sizable{display:block;height:auto}.dropdown-open .q2-element-dropdown{display:block;height:auto;overflow:auto;opacity:1;visibility:visible;margin-bottom:var(--app-scale-2)}:host([alignment='right']) .q2-element-dropdown{left:auto;right:0}:host{display:-ms-inline-flexbox;display:inline-flex}.dropdown-container{position:relative;display:block}.dropdown-button-content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.dropdown-button.unstyled .dropdown-button-content{padding:var(--tct-scale-2, var(--app-scale-2, 10px))\n var(--tct-scale-1, var(--app-scale-1, 5px))}.dropdown-button:not([icon]) q2-icon{margin-right:var(--tct-scale-1, var(--app-scale-1, 5px))}.q2-element-dropdown{width:var(--tct-user-dropdown-width, 175px)}.q2-element-dropdown.dropup{bottom:40px}";var i=e("q2_dropdown",function(){function e(e){var t=this;o(this,e);this.type="icon";this.dropdownOpen=false;this.scheduledAfterRender=[];this.dropdownItemSelector="q2-dropdown-item:not([disabled]):not([separator])";this.focusToggle=function(){var e=t.hostElement.shadowRoot.querySelector(".dropdown-button");e&&e.dispatchEvent(new FocusEvent("focus"))};this.calculatePopDirection=function(){var e=t.hostElement.shadowRoot.querySelector(".q2-element-dropdown");e.classList.add("sizable");var o=e.getBoundingClientRect().height;e.classList.remove("sizable");var n=t.hostElement.shadowRoot.querySelector(".dropdown-button");var r=n.getBoundingClientRect(),i=r.top,s=r.height;var a=window.innerHeight-i-s;return a<o?"up":"down"};this.openDropdown=function(){t.privatePopDirection=t.popDirection||t.calculatePopDirection();if(!t.dropdownOpen){t.dropdownOpen=true;t.scheduledAfterRender.push(t.resizeIframe)}};this.closeDropdown=function(){if(t.dropdownOpen){t.dropdownOpen=false;t.scheduledAfterRender.push((function(){t.resizeIframe()}))}};this.onClickElsewhere=function(e){var o=e.target;if(o.localName==="click-elsewhere"){e.stopPropagation();t.closeDropdown()}};this.onToggleClick=function(){if(t.dropdownOpen){t.focusToggle();t.closeDropdown();return}t.focusToggle();t.openDropdown()};this.onToggleKeydown=function(e){if(["ArrowUp","Up"].includes(e.key)){e.preventDefault();t.openDropdown();t.focusLastItem();return}if(["ArrowDown","Down"].includes(e.key)){e.preventDefault();t.openDropdown();t.focusFirstItem();return}if(["Escape","Esc"].includes(e.key)){e.preventDefault();t.focusToggle();t.closeDropdown();return}};this.onDropdownMenuClick=function(e){if(e.target.localName!=="q2-dropdown-item"){return}var o=e.target;if(!o.disabled&&!o.separator){t.focusToggle();t.closeDropdown()}};this.onDropdownMenuKeydown=function(e){if(["Escape","Esc"].includes(e.key)){t.closeDropdown();t.focusToggle();return}if(e.target.localName!=="q2-dropdown-item"){return}var o=e.target;if(["ArrowUp","Up"].includes(e.key)){e.preventDefault();t.focusAdjacentItem(o,"prev");return}if(["ArrowDown","Down"].includes(e.key)){e.preventDefault();t.focusAdjacentItem(o,"next");return}}}e.prototype.loc=function(e,o){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(e,o):e};e.prototype.resizeIframe=function(){return window.TectonElements&&window.TectonElements.resizeIframe&&window.TectonElements.resizeIframe()};e.prototype.resolveMenu=function(){return this.name&&window.TectonElements&&window.TectonElements.resolveMenu(this.name,this.contextValue)};e.prototype.orchestrateResolvedMenuItems=function(){var e=this;if(!this.name||!this.context){this.removeResolvedElements();return}this.resolveMenuItemElements().then((function(o){e.removeResolvedElements();o.forEach((function(o){e.hostElement.appendChild(o)}))})).catch((function(o){e.removeResolvedElements();throw o}))};e.prototype.removeResolvedElements=function(){var e=this;var o=this.hostElement.querySelectorAll("q2-dropdown-item.resolved-menu-item");o.forEach((function(o){return e.hostElement.removeChild(o)}))};e.prototype.resolveMenuItemElements=function(){var e=this;return this.resolveMenu().then((function(o){return o.map((function(o){var t;switch(o.action){case"navigateTo":t=function(){return e.navigateTo(o.featureName,o.moduleName)};break;case"showOverpanel":t=function(){return e.navigateToOverpanel(o.featureName,o.moduleName)};break}var n=document.createElement("q2-dropdown-item");n.setAttribute("value",o.itemLabel);n.classList.add("resolved-menu-item");n.innerHTML=o.itemLabel;n.onclick=t;return n}))}))};e.prototype.navigateTo=function(e,o){return window.TectonElements&&window.TectonElements.navigateTo(e,o)};e.prototype.navigateToOverpanel=function(e,o){return window.TectonElements&&window.TectonElements.navigateToOverpanel(e,o)};Object.defineProperty(e.prototype,"toggleButtonProps",{get:function(){var e=["icon","fab","primary","secondary"];var o=e.includes(this.type)?this.type:"";var t=o==="icon";var n=o==="fab";var r=["primary","secondary"].includes(o)?o:undefined;var i=this.dropdownOpen;var s=!!this.disabled;var a=this.dropdownOpen;var d=!this.label&&this.ariaLabel?this.loc(this.ariaLabel):undefined;var l="dropdown-button"+(!t&&!n&&!r?" unstyled":"");return{icon:t,fab:n,color:r,active:i,disabled:s,ariaExpanded:a,ariaLabel:d,className:l}},enumerable:false,configurable:true});e.prototype.nameHandler=function(){this.orchestrateResolvedMenuItems()};e.prototype.contextHandler=function(){this.orchestrateResolvedMenuItems()};e.prototype.contextValueHandler=function(){this.orchestrateResolvedMenuItems()};e.prototype.componentDidLoad=function(){this.orchestrateResolvedMenuItems()};e.prototype.componentDidRender=function(){var e=this;setTimeout((function(){e.scheduledAfterRender.forEach((function(e){return e()}));e.scheduledAfterRender=[]}),25)};e.prototype.focusFirstItem=function(){var e=this.hostElement.querySelector(this.dropdownItemSelector+":first-child");e&&e.dispatchEvent(new FocusEvent("focus"))};e.prototype.focusLastItem=function(){var e=this.hostElement.querySelector(this.dropdownItemSelector+":last-child");e&&e.dispatchEvent(new FocusEvent("focus"))};e.prototype.focusAdjacentItem=function(e,o){var t=Array.from(this.hostElement.querySelectorAll(this.dropdownItemSelector));var n=t.indexOf(e);if(n===-1){return}var r=0;if(o==="next"){if(n<t.length-1){r=n+1}else{r=0}}else if(o==="prev"){if(n>0){r=n-1}else{r=t.length-1}}var i=t[r];i&&i.dispatchEvent(new Event("focus"))};e.prototype.render=function(){var e=this.toggleButtonProps;return t("click-elsewhere",{class:"dropdown-container"+(this.dropdownOpen?" dropdown-open":""),onChange:this.onClickElsewhere},t("q2-btn",{class:e.className,onClick:this.onToggleClick,onKeyDown:this.onToggleKeydown,icon:e.icon,fab:e.fab,color:e.color,active:e.active,disabled:e.disabled,ariaExpanded:e.ariaExpanded,ariaLabel:e.ariaLabel,ariaHasPopup:"menu","test-id":"dropdownButton"},t("div",{class:"dropdown-button-content"},this.icon&&t("q2-icon",{type:this.icon}),this.label&&t("span",{class:"dropdown-button-text"},this.loc(this.label)))),t("div",{class:"q2-element-dropdown "+(this.privatePopDirection==="up"?"dropup":""),role:"menu",onClick:this.onDropdownMenuClick,onKeyDown:this.onDropdownMenuKeydown},t("div",null,t("slot",null),this.dropdownOpen&&t("q2-btn",{class:"sr close-dropdown",onFocus:this.closeDropdown}))))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{name:["nameHandler"],context:["contextHandler"],contextValue:["contextValueHandler"]}},enumerable:false,configurable:true});return e}());i.style=r}}}));
1
+ System.register(["./p-f08aea0c.system.js"],(function(e){"use strict";var o,t,n;return{setters:[function(e){o=e.r;t=e.h;n=e.g}],execute:function(){var r="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.q2-element-dropdown{display:none;position:absolute;background-color:var(--app-white);color:var(--t-font-color);left:0;width:100%;z-index:100;margin-top:1px;-webkit-box-shadow:var(--app-shadow-1);box-shadow:var(--app-shadow-1);height:0;overflow:hidden;opacity:0;visibility:hidden;-webkit-transition:opacity var(--app-tween-1);transition:opacity var(--app-tween-1);border-radius:var(--tct-dropdown-element-br, 0)}.q2-element-dropdown.sizable{display:block;height:auto}.dropdown-open .q2-element-dropdown{display:block;height:auto;overflow:auto;opacity:1;visibility:visible;margin-bottom:var(--app-scale-2)}:host([alignment='right']) .q2-element-dropdown{left:auto;right:0}:host{display:-ms-inline-flexbox;display:inline-flex}.dropdown-container{position:relative;display:block}.dropdown-button-content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.dropdown-button.unstyled .dropdown-button-content{padding:var(--tct-scale-2, var(--app-scale-2, 10px))\n var(--tct-scale-1, var(--app-scale-1, 5px))}.dropdown-button:not([icon]) q2-icon{margin-right:var(--tct-scale-1, var(--app-scale-1, 5px))}.q2-element-dropdown{width:var(--tct-user-dropdown-width, 175px)}.q2-element-dropdown.dropup{bottom:40px}";var i=e("q2_dropdown",function(){function e(e){var t=this;o(this,e);this.type="icon";this.dropdownOpen=false;this.scheduledAfterRender=[];this.dropdownItemSelector="q2-dropdown-item:not([disabled]):not([separator])";this.focusToggle=function(){var e=t.hostElement.shadowRoot.querySelector(".dropdown-button");e&&e.dispatchEvent(new FocusEvent("focus"))};this.calculatePopDirection=function(){var e=t.hostElement.shadowRoot.querySelector(".q2-element-dropdown");e.classList.add("sizable");var o=e.getBoundingClientRect().height;e.classList.remove("sizable");var n=t.hostElement.shadowRoot.querySelector(".dropdown-button");var r=n.getBoundingClientRect(),i=r.top,s=r.height;var a=window.innerHeight-i-s;return a<o?"up":"down"};this.openDropdown=function(){t.privatePopDirection=t.popDirection||t.calculatePopDirection();if(!t.dropdownOpen){t.dropdownOpen=true;t.scheduledAfterRender.push(t.resizeIframe)}};this.closeDropdown=function(){if(t.dropdownOpen){t.dropdownOpen=false;t.scheduledAfterRender.push((function(){t.resizeIframe()}))}};this.onClickElsewhere=function(e){var o=e.target;if(o.localName==="click-elsewhere"){e.stopPropagation();t.closeDropdown()}};this.onToggleClick=function(){if(t.dropdownOpen){t.focusToggle();t.closeDropdown();return}t.focusToggle();t.openDropdown()};this.onToggleKeydown=function(e){if(["ArrowUp","Up"].includes(e.key)){e.preventDefault();t.openDropdown();t.focusLastItem();return}if(["ArrowDown","Down"].includes(e.key)){e.preventDefault();t.openDropdown();t.focusFirstItem();return}if(["Escape","Esc"].includes(e.key)){e.preventDefault();t.focusToggle();t.closeDropdown();return}};this.onDropdownMenuClick=function(e){if(e.target.localName!=="q2-dropdown-item"){return}var o=e.target;if(!o.disabled&&!o.separator){t.focusToggle();t.closeDropdown()}};this.onDropdownMenuKeydown=function(e){if(["Escape","Esc"].includes(e.key)){t.closeDropdown();t.focusToggle();return}if(e.target.localName!=="q2-dropdown-item"){return}var o=e.target;if(["ArrowUp","Up"].includes(e.key)){e.preventDefault();t.focusAdjacentItem(o,"prev");return}if(["ArrowDown","Down"].includes(e.key)){e.preventDefault();t.focusAdjacentItem(o,"next");return}}}e.prototype.loc=function(e,o){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(e,o):e};e.prototype.resizeIframe=function(){return window.TectonElements&&window.TectonElements.resizeIframe&&window.TectonElements.resizeIframe()};e.prototype.resolveMenu=function(){return this.name&&window.TectonElements&&window.TectonElements.resolveMenu(this.name,this.contextValue)};e.prototype.orchestrateResolvedMenuItems=function(){var e=this;if(!this.name||!this.context){this.removeResolvedElements();return}this.resolveMenuItemElements().then((function(o){e.removeResolvedElements();o.forEach((function(o){e.hostElement.appendChild(o)}))})).catch((function(o){e.removeResolvedElements();throw o}))};e.prototype.removeResolvedElements=function(){var e=this;var o=this.hostElement.querySelectorAll("q2-dropdown-item.resolved-menu-item");o.forEach((function(o){return e.hostElement.removeChild(o)}))};e.prototype.resolveMenuItemElements=function(){var e=this;return this.resolveMenu().then((function(o){return o.map((function(o){var t;switch(o.action){case"navigateTo":t=function(){return e.navigateTo(o.featureName,o.moduleName)};break;case"showOverpanel":t=function(){return e.navigateToOverpanel(o.featureName,o.moduleName)};break}var n=document.createElement("q2-dropdown-item");n.setAttribute("value",o.itemLabel);n.classList.add("resolved-menu-item");n.innerHTML=o.itemLabel;n.onclick=t;return n}))}))};e.prototype.navigateTo=function(e,o){return window.TectonElements&&window.TectonElements.navigateTo(e,o)};e.prototype.navigateToOverpanel=function(e,o){return window.TectonElements&&window.TectonElements.navigateToOverpanel(e,o)};Object.defineProperty(e.prototype,"toggleButtonProps",{get:function(){var e=["icon","fab","primary","secondary"];var o=e.includes(this.type)?this.type:"";var t=o==="icon";var n=o==="fab";var r=["primary","secondary"].includes(o)?o:undefined;var i=this.dropdownOpen;var s=!!this.disabled;var a=this.dropdownOpen;var d=!this.label&&this.ariaLabel?this.loc(this.ariaLabel):undefined;var l="dropdown-button"+(!t&&!n&&!r?" unstyled":"");return{icon:t,fab:n,color:r,active:i,disabled:s,ariaExpanded:a,ariaLabel:d,className:l}},enumerable:false,configurable:true});e.prototype.nameHandler=function(){this.orchestrateResolvedMenuItems()};e.prototype.contextHandler=function(){this.orchestrateResolvedMenuItems()};e.prototype.contextValueHandler=function(){this.orchestrateResolvedMenuItems()};e.prototype.componentDidLoad=function(){this.orchestrateResolvedMenuItems()};e.prototype.componentDidRender=function(){var e=this;setTimeout((function(){e.scheduledAfterRender.forEach((function(e){return e()}));e.scheduledAfterRender=[]}),25)};e.prototype.focusFirstItem=function(){var e=this.hostElement.querySelector(this.dropdownItemSelector+":first-child");e&&e.dispatchEvent(new FocusEvent("focus"))};e.prototype.focusLastItem=function(){var e=this.hostElement.querySelector(this.dropdownItemSelector+":last-child");e&&e.dispatchEvent(new FocusEvent("focus"))};e.prototype.focusAdjacentItem=function(e,o){var t=Array.from(this.hostElement.querySelectorAll(this.dropdownItemSelector));var n=t.indexOf(e);if(n===-1){return}var r=0;if(o==="next"){if(n<t.length-1){r=n+1}else{r=0}}else if(o==="prev"){if(n>0){r=n-1}else{r=t.length-1}}var i=t[r];i&&i.dispatchEvent(new Event("focus"))};e.prototype.render=function(){var e=this.toggleButtonProps;return t("click-elsewhere",{class:"dropdown-container"+(this.dropdownOpen?" dropdown-open":""),onChange:this.onClickElsewhere},t("q2-btn",{class:e.className,onClick:this.onToggleClick,onKeyDown:this.onToggleKeydown,icon:e.icon,fab:e.fab,color:e.color,active:e.active,disabled:e.disabled,ariaExpanded:e.ariaExpanded,ariaLabel:e.ariaLabel,ariaHasPopup:"menu","test-id":"dropdownButton"},t("div",{class:"dropdown-button-content"},this.icon&&t("q2-icon",{type:this.icon}),this.label&&t("span",{class:"dropdown-button-text"},this.loc(this.label)))),t("div",{class:"q2-element-dropdown "+(this.privatePopDirection==="up"?"dropup":""),role:"menu",onClick:this.onDropdownMenuClick,onKeyDown:this.onDropdownMenuKeydown},t("div",null,t("slot",null),this.dropdownOpen&&t("q2-btn",{class:"sr close-dropdown",onFocus:this.closeDropdown}))))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{name:["nameHandler"],context:["contextHandler"],contextValue:["contextValueHandler"]}},enumerable:false,configurable:true});return e}());i.style=r}}}));
@@ -1 +1 @@
1
- System.register(["./p-2d49c74e.system.js"],(function(e){"use strict";var t,n,r;return{setters:[function(e){t=e.r;n=e.c;r=e.g}],execute:function(){var o=e("click_elsewhere",function(){function e(e){var r=this;t(this,e);this.change=n(this,"change",7);this.mouseEventList=["mousedown","dragstart","touchstart"];this.isCurrentlyFocused=false;this.mouseHandler=function(e){var t=r.shadowContains(r.findActiveElement());var n=r.shadowContains(r.shadowEventTarget(e))||r.originatesInSlots(e.target);if(!n&&(r.isCurrentlyFocused||t)){r.isCurrentlyFocused=false;r.change.emit();return}r.isCurrentlyFocused=n||t};this.windowBlurHandler=function(){var e=r.findActiveElement();if(e===document.body&&r.isCurrentlyFocused){r.isCurrentlyFocused=false;r.change.emit();return}}}e.prototype.componentWillLoad=function(){var e=this;this.mouseEventList.forEach((function(t){document.addEventListener(t,e.mouseHandler)}));window.addEventListener("blur",this.windowBlurHandler)};e.prototype.disconnectedCallback=function(){var e=this;this.mouseEventList.forEach((function(t){document.removeEventListener(t,e.mouseHandler)}));window.removeEventListener("blur",this.windowBlurHandler)};e.prototype.findActiveElement=function(){var e=document.activeElement;while(true){if(!e||!e.shadowRoot){return e}e=e.shadowRoot.activeElement}};e.prototype.shadowEventTarget=function(e){return e.composedPath()[0]||e.target};e.prototype.shadowContains=function(e){while(true){if(e===this.hostElement){return true}if(!e){return false}e=e.parentNode||e.host}};e.prototype.originatesInSlots=function(e){var t=this.hostElement.querySelectorAll("slot");for(var n=0;n<t.length;n++){var r=t[n];var o=r&&r.assignedNodes&&r.assignedNodes()||this.hostElement.childNodes;for(var s=0;s<o.length;s++){if(o[s].contains(e)){return true}}}return false};Object.defineProperty(e.prototype,"hostElement",{get:function(){return r(this)},enumerable:false,configurable:true});return e}())}}}));
1
+ System.register(["./p-f08aea0c.system.js"],(function(e){"use strict";var t,n,r;return{setters:[function(e){t=e.r;n=e.c;r=e.g}],execute:function(){var o=e("click_elsewhere",function(){function e(e){var r=this;t(this,e);this.change=n(this,"change",7);this.mouseEventList=["mousedown","dragstart","touchstart"];this.isCurrentlyFocused=false;this.mouseHandler=function(e){var t=r.shadowContains(r.findActiveElement());var n=r.shadowContains(r.shadowEventTarget(e))||r.originatesInSlots(e.target);if(!n&&(r.isCurrentlyFocused||t)){r.isCurrentlyFocused=false;r.change.emit();return}r.isCurrentlyFocused=n||t};this.windowBlurHandler=function(){var e=r.findActiveElement();if(e===document.body&&r.isCurrentlyFocused){r.isCurrentlyFocused=false;r.change.emit();return}}}e.prototype.componentWillLoad=function(){var e=this;this.mouseEventList.forEach((function(t){document.addEventListener(t,e.mouseHandler)}));window.addEventListener("blur",this.windowBlurHandler)};e.prototype.disconnectedCallback=function(){var e=this;this.mouseEventList.forEach((function(t){document.removeEventListener(t,e.mouseHandler)}));window.removeEventListener("blur",this.windowBlurHandler)};e.prototype.findActiveElement=function(){var e=document.activeElement;while(true){if(!e||!e.shadowRoot){return e}e=e.shadowRoot.activeElement}};e.prototype.shadowEventTarget=function(e){return e.composedPath()[0]||e.target};e.prototype.shadowContains=function(e){while(true){if(e===this.hostElement){return true}if(!e){return false}e=e.parentNode||e.host}};e.prototype.originatesInSlots=function(e){var t=this.hostElement.querySelectorAll("slot");for(var n=0;n<t.length;n++){var r=t[n];var o=r&&r.assignedNodes&&r.assignedNodes()||this.hostElement.childNodes;for(var s=0;s<o.length;s++){if(o[s].contains(e)){return true}}}return false};Object.defineProperty(e.prototype,"hostElement",{get:function(){return r(this)},enumerable:false,configurable:true});return e}())}}}));
@@ -1 +1 @@
1
- var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<i;t++)for(var s=arguments[t],l=0,r=s.length;l<r;l++,o++)n[o]=s[l];return n};System.register(["./p-2d49c74e.system.js","./p-4576db15.system.js"],(function(e){"use strict";var t,i,n,o,s;return{setters:[function(e){t=e.r;i=e.c;n=e.h;o=e.g},function(e){s=e.c}],execute:function(){var l="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.q2-element-dropdown{display:none;position:absolute;background-color:var(--app-white);color:var(--t-font-color);left:0;width:100%;z-index:100;margin-top:1px;-webkit-box-shadow:var(--app-shadow-1);box-shadow:var(--app-shadow-1);height:0;overflow:hidden;opacity:0;visibility:hidden;-webkit-transition:opacity var(--app-tween-1);transition:opacity var(--app-tween-1);border-radius:var(--tct-dropdown-element-br, 0)}.q2-element-dropdown.sizable{display:block;height:auto}.dropdown-open .q2-element-dropdown{display:block;height:auto;overflow:auto;opacity:1;visibility:visible;margin-bottom:var(--app-scale-2)}:host([alignment='right']) .q2-element-dropdown{left:auto;right:0}:host{display:block;margin-top:var(--tct-select-margin-top, var(--app-scale-4, 30px));margin-bottom:var(--tct-select-margin-bottom, var(--app-scale-4, 30px))}.q2-select-container{position:relative;display:block}.q2-select-input{margin:0}.custom-display-content{position:absolute;bottom:0;left:calc(var(--tct-scale-2, var(--app-scale-2, 10px)) + 1px);height:44px;width:calc(100% - 34px - var(--tct-scale-3, var(--app-scale-3, 15px)));overflow:hidden;cursor:pointer;-webkit-transition:left var(--tct-tween-2, var(--app-tween-1, 0.2s ease));transition:left var(--tct-tween-2, var(--app-tween-1, 0.2s ease))}.custom-display-content:not([hidden]){display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.is-searchable.is-focused .custom-display-content,.is-searchable .custom-display-content:active{left:calc(var(--tct-scale-3, var(--app-scale-3, 15px)) + 1px)}.has-error .custom-display-content{width:calc(100% - 68px - var(--tct-scale-3, var(--app-scale-3, 15px)))}.dropdown-open .q2-select-dropdown{overflow-y:auto;max-height:300px}.multi-select-header{padding:var(--tct-scale-1, var(--app-scale-1, 5px))\n var(--tct-scale-2, var(--app-scale-2, 10px))}.show-all-options{margin-right:var(--tct-scale-1, var(--app-scale-1, 5px));margin-left:var(--tct-scale-2, var(--app-scale-2, 10px))}";var r=e("q2_select",function(){function e(e){var n=this;t(this,e);this.change=i(this,"change",7);this.input=i(this,"input",7);this.selectedOptions=[];this.disabled=false;this.multiple=false;this.searchable=false;this.multilineOptions=false;this.optional=false;this.dropdownOpen=false;this.onlyShowingSelected=false;this.hasCustomDisplay=false;this.inputFocused=false;this.scheduledAfterRender=[];this.keyStore={queue:[],lastPressedAt:new Date};this.guid=s();this.dropdownId="q2-select-dropdown-"+this.guid;this.onMutationObserved=function(){var e=n.hostElement.querySelector(".custom-display-content");var t=n.hostElement.shadowRoot.querySelector('slot[name="q2-select-display"]');var i=!!t?t.assignedNodes().length>0:e.children.length>0;if(n.hasCustomDisplay!==i){n.hasCustomDisplay=i}if(n.multiple){n.updateMultipleOptionAttrs();return}n.updateSingleOptionAttrs();var o=n.optionElements[n.activeIndex];if(!o||o.id!==n.activeOptionId){n.activeIndex=n.getDefaultActiveIndex();n.setActiveOption()}};this.searchAndFocus=function(e){var t=function(){var e=(n.activeIndex||0)+1;var t=n.optionElements.map((function(e,t){return{element:e,index:t}}));return __spreadArrays(t.slice(e),t.slice(0,e))};var i=function(){var t=new Date;if(t.getTime()-n.keyStore.lastPressedAt.getTime()>1e3){n.keyStore.queue=[]}if(n.keyStore.queue.length!==1||n.keyStore.queue[0]!==e){n.keyStore.queue.push(e)}n.keyStore.lastPressedAt=t};var o=function(e){return e.find((function(e){return!e.element.disabled&&e.element.display.replace(/\s/g,"").match(new RegExp("^"+n.keyStore.queue.join(""),"i"))}))};var s=function(e){var t=e.element,i=e.index;if(n.dropdownOpen||n.multiple){n.openDropdownWithActiveElement(i)}else{n.activeIndex=i;n.change.emit({value:t.value})}};i();var l=o(t());if(l){s(l)}};this.inputClickHandler=function(e){e.stopPropagation();n.toggleDropdown();n.focusInput()};this.inputInputHandler=function(e){e.stopPropagation();if(!n.dropdownOpen){n.openDropdownWithoutActiveElement()}n.searchText=e.detail.value;n.input.emit({query:e.detail.value})};this.inputKeydownHandler=function(e){if(e.key==="Enter"&&n.dropdownOpen){e.preventDefault();var t=n.hostElement.querySelector('[option-id="'+n.activeOptionId+'"]');t&&!t.disabled&&n.selectOption(t.value)}if(["Escape","Esc"].includes(e.key)){n.closeDropdown();n.focusInput()}if(e.key==="Tab"){if(n.dropdownOpen&&n.searchable&&e.shiftKey){e.preventDefault();n.focusInput()}else{n.dropdownOpen&&!n.multiple&&e.preventDefault()}}};this.inputFocusHandler=function(){n.inputFocused=true};this.inputBlurHandler=function(){n.inputFocused=false};this.inputChangeHandler=function(e){e.stopPropagation()};this.showAllOptionTabKeyDown=function(e){if(e.key==="Tab"&&!e.shiftKey&&n.selectedOptionsCount===0){e.preventDefault()}};this.showSelectedOptionTabKeyDown=function(e){if(e.key==="Tab"&&!e.shiftKey){e.preventDefault()}};this.clickedElsewhere=function(e){var t=e.target;if(t.localName==="click-elsewhere"){e.stopPropagation();if(n.dropdownOpen){n.closeDropdown()}}};this.showSelectedOptions=function(){n.onlyShowingSelected=true;n.optionElements.forEach((function(e){e._multiSelectHidden=!e.selected}))};this.showAllOptions=function(){n.onlyShowingSelected=false;n.optionElements.forEach((function(e){e._multiSelectHidden=false}))};this.onCustomDisplayClick=function(e){e.stopPropagation();n.focusInput();n.toggleDropdown()}}e.prototype.loc=function(e,t){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(e,t):e};e.prototype.resizeIframe=function(){return window.TectonElements&&window.TectonElements.resizeIframe&&window.TectonElements.resizeIframe()};e.prototype.getDefaultActiveIndex=function(){var e=this.optionElements.findIndex((function(e){return e.selected}));return e>-1?e:0};e.prototype.setActiveOption=function(){var e=this;if(!this.dropdownOpen){return}this.optionElements.forEach((function(t,i){if(e.activeIndex===i){t.active=true;e.activeOptionId=t.optionId}else{t.active=false}}))};e.prototype.setFocusedOption=function(){var e=this.optionElements[this.activeIndex].shadowRoot.querySelector("div");e.dispatchEvent(new FocusEvent("focus"));e.focus()};e.prototype.calculateMultiSelectSelectedDisplay=function(){var e=this;if(this.selectedOptions.length===1){var t=this.optionElements.find((function(t){return t.value===e.selectedOptions[0]}));return t&&t.display&&this.loc(t.display)||t&&t.value||this.selectedOptions[0]}else if(this.selectedOptions.length>1){return this.loc("tecton.element.select.multiDisplay",[this.selectedOptions.length])}else{return""}};e.prototype.calculateSingleSelectSelectedDisplay=function(){var e=this;var t=this.optionElements.find((function(t){return e.value===t.value}));return t&&t.display&&this.loc(t.display)||this.value||""};Object.defineProperty(e.prototype,"selectedDisplay",{get:function(){if(this.hasCustomDisplay&&!this.searchText){return""}if(this.searchable&&this.dropdownOpen){return this.searchText||""}return this.multiple?this.calculateMultiSelectSelectedDisplay():this.calculateSingleSelectSelectedDisplay()},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"selectedOptionsCount",{get:function(){return this.selectedOptions.length},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"optionElements",{get:function(){return Array.from(this.hostElement.querySelectorAll("q2-option"))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"wrapperClasses",{get:function(){var e=this.dropdownOpen&&" dropdown-open"||"";var t=Array.isArray(this.errors)&&this.errors.length>0?" has-error":"";var i=this.inputFocused?" is-focused":"";var n=this.searchable?" is-searchable":"";return"q2-select-container"+e+t+i+n},enumerable:false,configurable:true});e.prototype.updateSingleOptionAttrs=function(){var e=this;this.optionElements.forEach((function(t,i){t.selected=e.value===t.value;t.optionId="q2-select-"+e.guid+"-option-"+i;t.multiline=e.multilineOptions}))};e.prototype.updateMultipleOptionAttrs=function(){var e=this;if(this.selectedOptions.length===0){this.onlyShowingSelected=false}this.optionElements.forEach((function(t,i){t.selected=e.selectedOptions.includes(t.value);t._multiSelectHidden=e.onlyShowingSelected?!t.selected:false;t.optionId="q2-select-"+e.guid+"-option-"+i;t.multiline=e.multilineOptions}))};e.prototype.selectOption=function(e){if(this.multiple){var t=this.selectedOptions.includes(e);if(t){this.change.emit({selectedOptions:this.selectedOptions.filter((function(t){return t!==e}))})}else{this.change.emit({selectedOptions:__spreadArrays(this.selectedOptions,[e])})}}else{this.change.emit({value:e});this.closeDropdown();this.focusInput()}};e.prototype.scrollToActiveOption=function(){var e=this.optionElements[this.activeIndex];e&&e.scrollIntoView({block:"nearest"})};e.prototype.openDropdownWithoutActiveElement=function(){this.activeIndex=undefined;this.setActiveOption();this.dropdownOpen=true;this.scheduledAfterRender.push(this.resizeIframe)};e.prototype.openDropdownWithActiveElement=function(e){var t=this;this.activeIndex=e;this.dropdownOpen=true;this.setActiveOption();this.scheduledAfterRender.push((function(){if(!t.searchable){t.setFocusedOption()}t.scrollToActiveOption();t.resizeIframe()}))};e.prototype.closeDropdown=function(){this.dropdownOpen=false;if(this.searchText){this.searchText="";this.input.emit({query:""})}this.scheduledAfterRender.push(this.resizeIframe)};e.prototype.toggleDropdown=function(){if(this.disabled){return}if(this.searchable){if(!this.dropdownOpen){this.openDropdownWithoutActiveElement()}}else{if(this.dropdownOpen){this.closeDropdown()}else{this.openDropdownWithoutActiveElement()}}};e.prototype.adjustActiveOptionAndScroll=function(e){this.activeIndex+=e;this.setActiveOption();if(!this.searchable){this.setFocusedOption()}this.scrollToActiveOption()};e.prototype.setDefaultActiveElement=function(){this.activeIndex=this.getDefaultActiveIndex();this.setActiveOption();if(!this.searchable){this.setFocusedOption()}};e.prototype.focusInput=function(){var e=this.hostElement.shadowRoot.querySelector("q2-input");e&&e.dispatchEvent(new FocusEvent("focus"))};e.prototype.getNextVisibleIndex=function(e){var t=this.activeIndex+e;while(t>=0&&t<=this.optionElements.length-1){var i=window.getComputedStyle(this.optionElements[t]),n=i.display,o=i.visibility;if(n!=="none"&&o!=="hidden"){return t}t=t+e}return-1};e.prototype.componentDidLoad=function(){var e=new MutationObserver(this.onMutationObserved);e.observe(this.hostElement,{childList:true,subtree:true});this.mutationObserver=e;this.onMutationObserved()};e.prototype.componentDidRender=function(){var e=this;setTimeout((function(){e.scheduledAfterRender.forEach((function(e){return e()}));e.scheduledAfterRender=[]}),25)};e.prototype.disconnectedCallback=function(){if(this.mutationObserver){this.mutationObserver.disconnect();this.mutationObserver=null}};e.prototype.valueUpdated=function(){if(this.multiple){return}this.updateSingleOptionAttrs()};e.prototype.selectedOptionsUpdated=function(){if(!this.multiple){return}this.updateMultipleOptionAttrs()};e.prototype.multilineOptionsChanged=function(e,t){var i=this;if(e===t){return}this.optionElements.forEach((function(e){e.multiline=i.multilineOptions}))};e.prototype.onHostElementChange=function(e){if(e.target===this.hostElement&&!this.hostElement.onchange){if(this.multiple){this.selectedOptions=e.detail.selectedOptions}else{this.value=e.detail.value}}};e.prototype.onHostElementInput=function(e){if(this.searchable&&e.target===this.hostElement&&!this.hostElement.oninput){var t=this.optionElements;var i=e.detail.query.trim().toLowerCase();t.forEach((function(e){if(i===""){e.style.display=""}else{var t=e.display,n=t===void 0?"":t,o=e.innerText,s=o===void 0?"":o;var l=n.toLowerCase().includes(i)||s.toLowerCase().includes(i);e.style.display=l?"":"none"}}))}};e.prototype.clickHandler=function(e){var t=e.target;if(t.localName!=="q2-option"||t.disabled){return}this.selectOption(t.value)};e.prototype.keydownHandler=function(e){if(e.key==="Enter"&&this.dropdownOpen){e.preventDefault();var t=this.hostElement.querySelector('[option-id="'+this.activeOptionId+'"]');t&&!t.disabled&&this.selectOption(t.value)}else if(["ArrowUp","Up"].includes(e.key)){e.preventDefault();if(this.dropdownOpen){if(this.activeIndex>0){var i=this.getNextVisibleIndex(-1);if(i>-1){this.adjustActiveOptionAndScroll(i-this.activeIndex)}}else if(this.activeIndex!==0){this.setDefaultActiveElement()}}else{this.openDropdownWithActiveElement(this.getDefaultActiveIndex())}}else if(["ArrowDown","Down"].includes(e.key)){e.preventDefault();if(this.dropdownOpen){if(this.activeIndex<this.optionElements.length-1){var i=this.getNextVisibleIndex(1);if(i>-1){this.adjustActiveOptionAndScroll(i-this.activeIndex)}}else if(!this.activeIndex){this.setDefaultActiveElement()}}else{this.openDropdownWithActiveElement(this.getDefaultActiveIndex())}}else if(["Escape","Esc"].includes(e.key)){this.closeDropdown();this.focusInput()}else if(e.key==="Tab"){if(this.dropdownOpen&&this.searchable&&e.shiftKey){e.preventDefault();this.focusInput()}else{this.dropdownOpen&&!this.multiple&&e.preventDefault()}}else if(!this.searchable&&e.key.match(/^[a-zA-Z0-9]$/)){this.searchAndFocus(e.key)}};e.prototype.render=function(){var e=this;return n("click-elsewhere",{class:this.wrapperClasses,onChange:this.clickedElsewhere},n("q2-input",{class:"q2-select-input",label:this.label&&this.loc(this.label)||"",value:this.selectedDisplay,errors:Array.isArray(this.errors)&&this.errors.length>0&&this.errors.map((function(t){return e.loc(t)}))||this.invalid&&["tecton.element.select.invalid"]||[],disabled:this.disabled,optional:this.optional,ariaLabel:!this.label&&this.ariaLabel&&this.loc(this.ariaLabel)||"",ariaExpanded:this.dropdownOpen,ariaOwns:this.dropdownId,ariaHaspopup:"listbox",role:this.searchable?"combobox":null,pseudo:!this.searchable,"test-id":"toggleDropdown","hide-messages":true,iconRight:"chevron-down",onClick:this.inputClickHandler,onInput:this.inputInputHandler,onKeyDown:this.inputKeydownHandler,onFocus:this.inputFocusHandler,onBlur:this.inputBlurHandler,onChange:this.inputChangeHandler}),n("div",{class:"custom-display-content",hidden:!this.hasCustomDisplay||!!this.searchText,onClick:this.onCustomDisplayClick},n("slot",{name:"q2-select-display"})),this.optionsDropdown())};e.prototype.optionsDropdown=function(){return n("div",{class:"q2-select-dropdown q2-element-dropdown"},this.multiple?this.visibilityToggle():"",n("div",{class:"q2-select-options",id:this.dropdownId},n("slot",null)))};e.prototype.visibilityToggle=function(){return n("div",{class:"multi-select-header"},this.loc("tecton.element.select.multiHeader.showing"),n("q2-btn",{class:"option-toggle show-all-options"+(this.onlyShowingSelected?"":" selected"),badge:true,"test-id":"allOptionsButton",onClick:this.showAllOptions,onKeyDown:this.showAllOptionTabKeyDown},this.loc("tecton.element.select.multiHeader.all")),n("q2-btn",{class:"option-toggle show-selected-options"+(this.onlyShowingSelected?" selected":""),disabled:this.selectedOptions.length===0,badge:true,"test-id":"selectedOptionsButton",onClick:this.showSelectedOptions,onKeyDown:this.showSelectedOptionTabKeyDown},this.loc("tecton.element.select.multiHeader.selected",[this.selectedOptionsCount])))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{value:["valueUpdated"],selectedOptions:["selectedOptionsUpdated"],multilineOptions:["multilineOptionsChanged"]}},enumerable:false,configurable:true});return e}());r.style=l}}}));
1
+ var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<i;t++)for(var s=arguments[t],l=0,r=s.length;l<r;l++,o++)n[o]=s[l];return n};System.register(["./p-f08aea0c.system.js","./p-4576db15.system.js"],(function(e){"use strict";var t,i,n,o,s;return{setters:[function(e){t=e.r;i=e.c;n=e.h;o=e.g},function(e){s=e.c}],execute:function(){var l="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.q2-element-dropdown{display:none;position:absolute;background-color:var(--app-white);color:var(--t-font-color);left:0;width:100%;z-index:100;margin-top:1px;-webkit-box-shadow:var(--app-shadow-1);box-shadow:var(--app-shadow-1);height:0;overflow:hidden;opacity:0;visibility:hidden;-webkit-transition:opacity var(--app-tween-1);transition:opacity var(--app-tween-1);border-radius:var(--tct-dropdown-element-br, 0)}.q2-element-dropdown.sizable{display:block;height:auto}.dropdown-open .q2-element-dropdown{display:block;height:auto;overflow:auto;opacity:1;visibility:visible;margin-bottom:var(--app-scale-2)}:host([alignment='right']) .q2-element-dropdown{left:auto;right:0}:host{display:block;margin-top:var(--tct-select-margin-top, var(--app-scale-4, 30px));margin-bottom:var(--tct-select-margin-bottom, var(--app-scale-4, 30px))}.q2-select-container{position:relative;display:block}.q2-select-input{margin:0}.custom-display-content{position:absolute;bottom:0;left:calc(var(--tct-scale-2, var(--app-scale-2, 10px)) + 1px);height:44px;width:calc(100% - 34px - var(--tct-scale-3, var(--app-scale-3, 15px)));overflow:hidden;cursor:pointer;-webkit-transition:left var(--tct-tween-2, var(--app-tween-1, 0.2s ease));transition:left var(--tct-tween-2, var(--app-tween-1, 0.2s ease))}.custom-display-content:not([hidden]){display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.is-searchable.is-focused .custom-display-content,.is-searchable .custom-display-content:active{left:calc(var(--tct-scale-3, var(--app-scale-3, 15px)) + 1px)}.has-error .custom-display-content{width:calc(100% - 68px - var(--tct-scale-3, var(--app-scale-3, 15px)))}.dropdown-open .q2-select-dropdown{overflow-y:auto;max-height:300px}.multi-select-header{padding:var(--tct-scale-1, var(--app-scale-1, 5px))\n var(--tct-scale-2, var(--app-scale-2, 10px))}.show-all-options{margin-right:var(--tct-scale-1, var(--app-scale-1, 5px));margin-left:var(--tct-scale-2, var(--app-scale-2, 10px))}";var r=e("q2_select",function(){function e(e){var n=this;t(this,e);this.change=i(this,"change",7);this.input=i(this,"input",7);this.selectedOptions=[];this.disabled=false;this.multiple=false;this.searchable=false;this.multilineOptions=false;this.optional=false;this.dropdownOpen=false;this.onlyShowingSelected=false;this.hasCustomDisplay=false;this.inputFocused=false;this.scheduledAfterRender=[];this.keyStore={queue:[],lastPressedAt:new Date};this.guid=s();this.dropdownId="q2-select-dropdown-"+this.guid;this.onMutationObserved=function(){var e=n.hostElement.querySelector(".custom-display-content");var t=n.hostElement.shadowRoot.querySelector('slot[name="q2-select-display"]');var i=!!t?t.assignedNodes().length>0:e.children.length>0;if(n.hasCustomDisplay!==i){n.hasCustomDisplay=i}if(n.multiple){n.updateMultipleOptionAttrs();return}n.updateSingleOptionAttrs();var o=n.optionElements[n.activeIndex];if(!o||o.id!==n.activeOptionId){n.activeIndex=n.getDefaultActiveIndex();n.setActiveOption()}};this.searchAndFocus=function(e){var t=function(){var e=(n.activeIndex||0)+1;var t=n.optionElements.map((function(e,t){return{element:e,index:t}}));return __spreadArrays(t.slice(e),t.slice(0,e))};var i=function(){var t=new Date;if(t.getTime()-n.keyStore.lastPressedAt.getTime()>1e3){n.keyStore.queue=[]}if(n.keyStore.queue.length!==1||n.keyStore.queue[0]!==e){n.keyStore.queue.push(e)}n.keyStore.lastPressedAt=t};var o=function(e){return e.find((function(e){return!e.element.disabled&&e.element.display.replace(/\s/g,"").match(new RegExp("^"+n.keyStore.queue.join(""),"i"))}))};var s=function(e){var t=e.element,i=e.index;if(n.dropdownOpen||n.multiple){n.openDropdownWithActiveElement(i)}else{n.activeIndex=i;n.change.emit({value:t.value})}};i();var l=o(t());if(l){s(l)}};this.inputClickHandler=function(e){e.stopPropagation();n.toggleDropdown();n.focusInput()};this.inputInputHandler=function(e){e.stopPropagation();if(!n.dropdownOpen){n.openDropdownWithoutActiveElement()}n.searchText=e.detail.value;n.input.emit({query:e.detail.value})};this.inputKeydownHandler=function(e){if(e.key==="Enter"&&n.dropdownOpen){e.preventDefault();var t=n.hostElement.querySelector('[option-id="'+n.activeOptionId+'"]');t&&!t.disabled&&n.selectOption(t.value)}if(["Escape","Esc"].includes(e.key)){n.closeDropdown();n.focusInput()}if(e.key==="Tab"){if(n.dropdownOpen&&n.searchable&&e.shiftKey){e.preventDefault();n.focusInput()}else{n.dropdownOpen&&!n.multiple&&e.preventDefault()}}};this.inputFocusHandler=function(){n.inputFocused=true};this.inputBlurHandler=function(){n.inputFocused=false};this.inputChangeHandler=function(e){e.stopPropagation()};this.showAllOptionTabKeyDown=function(e){if(e.key==="Tab"&&!e.shiftKey&&n.selectedOptionsCount===0){e.preventDefault()}};this.showSelectedOptionTabKeyDown=function(e){if(e.key==="Tab"&&!e.shiftKey){e.preventDefault()}};this.clickedElsewhere=function(e){var t=e.target;if(t.localName==="click-elsewhere"){e.stopPropagation();if(n.dropdownOpen){n.closeDropdown()}}};this.showSelectedOptions=function(){n.onlyShowingSelected=true;n.optionElements.forEach((function(e){e._multiSelectHidden=!e.selected}))};this.showAllOptions=function(){n.onlyShowingSelected=false;n.optionElements.forEach((function(e){e._multiSelectHidden=false}))};this.onCustomDisplayClick=function(e){e.stopPropagation();n.focusInput();n.toggleDropdown()}}e.prototype.loc=function(e,t){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(e,t):e};e.prototype.resizeIframe=function(){return window.TectonElements&&window.TectonElements.resizeIframe&&window.TectonElements.resizeIframe()};e.prototype.getDefaultActiveIndex=function(){var e=this.optionElements.findIndex((function(e){return e.selected}));return e>-1?e:0};e.prototype.setActiveOption=function(){var e=this;if(!this.dropdownOpen){return}this.optionElements.forEach((function(t,i){if(e.activeIndex===i){t.active=true;e.activeOptionId=t.optionId}else{t.active=false}}))};e.prototype.setFocusedOption=function(){var e=this.optionElements[this.activeIndex].shadowRoot.querySelector("div");e.dispatchEvent(new FocusEvent("focus"));e.focus()};e.prototype.calculateMultiSelectSelectedDisplay=function(){var e=this;if(this.selectedOptions.length===1){var t=this.optionElements.find((function(t){return t.value===e.selectedOptions[0]}));return t&&t.display&&this.loc(t.display)||t&&t.value||this.selectedOptions[0]}else if(this.selectedOptions.length>1){return this.loc("tecton.element.select.multiDisplay",[this.selectedOptions.length])}else{return""}};e.prototype.calculateSingleSelectSelectedDisplay=function(){var e=this;var t=this.optionElements.find((function(t){return e.value===t.value}));return t&&t.display&&this.loc(t.display)||this.value||""};Object.defineProperty(e.prototype,"selectedDisplay",{get:function(){if(this.hasCustomDisplay&&!this.searchText){return""}if(this.searchable&&this.dropdownOpen){return this.searchText||""}return this.multiple?this.calculateMultiSelectSelectedDisplay():this.calculateSingleSelectSelectedDisplay()},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"selectedOptionsCount",{get:function(){return this.selectedOptions.length},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"optionElements",{get:function(){return Array.from(this.hostElement.querySelectorAll("q2-option"))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"wrapperClasses",{get:function(){var e=this.dropdownOpen&&" dropdown-open"||"";var t=Array.isArray(this.errors)&&this.errors.length>0?" has-error":"";var i=this.inputFocused?" is-focused":"";var n=this.searchable?" is-searchable":"";return"q2-select-container"+e+t+i+n},enumerable:false,configurable:true});e.prototype.updateSingleOptionAttrs=function(){var e=this;this.optionElements.forEach((function(t,i){t.selected=e.value===t.value;t.optionId="q2-select-"+e.guid+"-option-"+i;t.multiline=e.multilineOptions}))};e.prototype.updateMultipleOptionAttrs=function(){var e=this;if(this.selectedOptions.length===0){this.onlyShowingSelected=false}this.optionElements.forEach((function(t,i){t.selected=e.selectedOptions.includes(t.value);t._multiSelectHidden=e.onlyShowingSelected?!t.selected:false;t.optionId="q2-select-"+e.guid+"-option-"+i;t.multiline=e.multilineOptions}))};e.prototype.selectOption=function(e){if(this.multiple){var t=this.selectedOptions.includes(e);if(t){this.change.emit({selectedOptions:this.selectedOptions.filter((function(t){return t!==e}))})}else{this.change.emit({selectedOptions:__spreadArrays(this.selectedOptions,[e])})}}else{this.change.emit({value:e});this.closeDropdown();this.focusInput()}};e.prototype.scrollToActiveOption=function(){var e=this.optionElements[this.activeIndex];e&&e.scrollIntoView({block:"nearest"})};e.prototype.openDropdownWithoutActiveElement=function(){this.activeIndex=undefined;this.setActiveOption();this.dropdownOpen=true;this.scheduledAfterRender.push(this.resizeIframe)};e.prototype.openDropdownWithActiveElement=function(e){var t=this;this.activeIndex=e;this.dropdownOpen=true;this.setActiveOption();this.scheduledAfterRender.push((function(){if(!t.searchable){t.setFocusedOption()}t.scrollToActiveOption();t.resizeIframe()}))};e.prototype.closeDropdown=function(){this.dropdownOpen=false;if(this.searchText){this.searchText="";this.input.emit({query:""})}this.scheduledAfterRender.push(this.resizeIframe)};e.prototype.toggleDropdown=function(){if(this.disabled){return}if(this.searchable){if(!this.dropdownOpen){this.openDropdownWithoutActiveElement()}}else{if(this.dropdownOpen){this.closeDropdown()}else{this.openDropdownWithoutActiveElement()}}};e.prototype.adjustActiveOptionAndScroll=function(e){this.activeIndex+=e;this.setActiveOption();if(!this.searchable){this.setFocusedOption()}this.scrollToActiveOption()};e.prototype.setDefaultActiveElement=function(){this.activeIndex=this.getDefaultActiveIndex();this.setActiveOption();if(!this.searchable){this.setFocusedOption()}};e.prototype.focusInput=function(){var e=this.hostElement.shadowRoot.querySelector("q2-input");e&&e.dispatchEvent(new FocusEvent("focus"))};e.prototype.getNextVisibleIndex=function(e){var t=this.activeIndex+e;while(t>=0&&t<=this.optionElements.length-1){var i=window.getComputedStyle(this.optionElements[t]),n=i.display,o=i.visibility;if(n!=="none"&&o!=="hidden"){return t}t=t+e}return-1};e.prototype.componentDidLoad=function(){var e=new MutationObserver(this.onMutationObserved);e.observe(this.hostElement,{childList:true,subtree:true});this.mutationObserver=e;this.onMutationObserved()};e.prototype.componentDidRender=function(){var e=this;setTimeout((function(){e.scheduledAfterRender.forEach((function(e){return e()}));e.scheduledAfterRender=[]}),25)};e.prototype.disconnectedCallback=function(){if(this.mutationObserver){this.mutationObserver.disconnect();this.mutationObserver=null}};e.prototype.valueUpdated=function(){if(this.multiple){return}this.updateSingleOptionAttrs()};e.prototype.selectedOptionsUpdated=function(){if(!this.multiple){return}this.updateMultipleOptionAttrs()};e.prototype.multilineOptionsChanged=function(e,t){var i=this;if(e===t){return}this.optionElements.forEach((function(e){e.multiline=i.multilineOptions}))};e.prototype.onHostElementChange=function(e){if(e.target===this.hostElement&&!this.hostElement.onchange){if(this.multiple){this.selectedOptions=e.detail.selectedOptions}else{this.value=e.detail.value}}};e.prototype.onHostElementInput=function(e){if(this.searchable&&e.target===this.hostElement&&!this.hostElement.oninput){var t=this.optionElements;var i=e.detail.query.trim().toLowerCase();t.forEach((function(e){if(i===""){e.style.display=""}else{var t=e.display,n=t===void 0?"":t,o=e.innerText,s=o===void 0?"":o;var l=n.toLowerCase().includes(i)||s.toLowerCase().includes(i);e.style.display=l?"":"none"}}))}};e.prototype.clickHandler=function(e){var t=e.target;if(t.localName!=="q2-option"||t.disabled){return}this.selectOption(t.value)};e.prototype.keydownHandler=function(e){if(e.key==="Enter"&&this.dropdownOpen){e.preventDefault();var t=this.hostElement.querySelector('[option-id="'+this.activeOptionId+'"]');t&&!t.disabled&&this.selectOption(t.value)}else if(["ArrowUp","Up"].includes(e.key)){e.preventDefault();if(this.dropdownOpen){if(this.activeIndex>0){var i=this.getNextVisibleIndex(-1);if(i>-1){this.adjustActiveOptionAndScroll(i-this.activeIndex)}}else if(this.activeIndex!==0){this.setDefaultActiveElement()}}else{this.openDropdownWithActiveElement(this.getDefaultActiveIndex())}}else if(["ArrowDown","Down"].includes(e.key)){e.preventDefault();if(this.dropdownOpen){if(this.activeIndex<this.optionElements.length-1){var i=this.getNextVisibleIndex(1);if(i>-1){this.adjustActiveOptionAndScroll(i-this.activeIndex)}}else if(!this.activeIndex){this.setDefaultActiveElement()}}else{this.openDropdownWithActiveElement(this.getDefaultActiveIndex())}}else if(["Escape","Esc"].includes(e.key)){this.closeDropdown();this.focusInput()}else if(e.key==="Tab"){if(this.dropdownOpen&&this.searchable&&e.shiftKey){e.preventDefault();this.focusInput()}else{this.dropdownOpen&&!this.multiple&&e.preventDefault()}}else if(!this.searchable&&e.key.match(/^[a-zA-Z0-9]$/)){this.searchAndFocus(e.key)}};e.prototype.render=function(){var e=this;return n("click-elsewhere",{class:this.wrapperClasses,onChange:this.clickedElsewhere},n("q2-input",{class:"q2-select-input",label:this.label&&this.loc(this.label)||"",value:this.selectedDisplay,errors:Array.isArray(this.errors)&&this.errors.length>0&&this.errors.map((function(t){return e.loc(t)}))||this.invalid&&["tecton.element.select.invalid"]||[],disabled:this.disabled,optional:this.optional,ariaLabel:!this.label&&this.ariaLabel&&this.loc(this.ariaLabel)||"",ariaExpanded:this.dropdownOpen,ariaOwns:this.dropdownId,ariaHaspopup:"listbox",role:this.searchable?"combobox":null,pseudo:!this.searchable,"test-id":"toggleDropdown","hide-messages":true,iconRight:"chevron-down",onClick:this.inputClickHandler,onInput:this.inputInputHandler,onKeyDown:this.inputKeydownHandler,onFocus:this.inputFocusHandler,onBlur:this.inputBlurHandler,onChange:this.inputChangeHandler}),n("div",{class:"custom-display-content",hidden:!this.hasCustomDisplay||!!this.searchText,onClick:this.onCustomDisplayClick},n("slot",{name:"q2-select-display"})),this.optionsDropdown())};e.prototype.optionsDropdown=function(){return n("div",{class:"q2-select-dropdown q2-element-dropdown"},this.multiple?this.visibilityToggle():"",n("div",{class:"q2-select-options",id:this.dropdownId},n("slot",null)))};e.prototype.visibilityToggle=function(){return n("div",{class:"multi-select-header"},this.loc("tecton.element.select.multiHeader.showing"),n("q2-btn",{class:"option-toggle show-all-options"+(this.onlyShowingSelected?"":" selected"),badge:true,"test-id":"allOptionsButton",onClick:this.showAllOptions,onKeyDown:this.showAllOptionTabKeyDown},this.loc("tecton.element.select.multiHeader.all")),n("q2-btn",{class:"option-toggle show-selected-options"+(this.onlyShowingSelected?" selected":""),disabled:this.selectedOptions.length===0,badge:true,"test-id":"selectedOptionsButton",onClick:this.showSelectedOptions,onKeyDown:this.showSelectedOptionTabKeyDown},this.loc("tecton.element.select.multiHeader.selected",[this.selectedOptionsCount])))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{value:["valueUpdated"],selectedOptions:["selectedOptionsUpdated"],multilineOptions:["multilineOptionsChanged"]}},enumerable:false,configurable:true});return e}());r.style=l}}}));
@@ -1 +1 @@
1
- System.register(["./p-2d49c74e.system.js"],(function(e){"use strict";var l;return{setters:[function(e){l=e.h}],execute:function(){var i=e("a",{circle:function(e){var i=e.width,t=e.additionalClasses;return l("div",{class:"skeleton-shape circle "+(t||""),style:{width:i,height:i}})},rectangle:function(e){var i=e.width,t=e.height,r=e.borderRadius,a=e.additionalClasses;return l("div",{class:"skeleton-shape rectangle "+(a||""),style:{width:i,height:t,borderRadius:r}})}});var t={field:function(){return l("div",{class:"skeleton-shape field"},l("div",{class:"skeleton-field-label"},i.rectangle({height:"1rem",width:"50%"})),i.rectangle({height:"var(--tct-input-height, 42px)",borderRadius:"3px"}))},text:function(e,t){var r;var a=(r=e===null||e===void 0?void 0:e[0])!==null&&r!==void 0?r:1;var n=t===null||t===void 0?void 0:t.has("header");var d=(t===null||t===void 0?void 0:t.has("center"))&&"center"||(t===null||t===void 0?void 0:t.has("right"))&&"right"||"left";var s=(t===null||t===void 0?void 0:t.has("smallheader"))?" smaller":"";var o=n?"header "+d+s:"";return l("div",{class:"skeleton-shape text"},n&&i.rectangle({width:"60%",additionalClasses:o}),!!a&&Array(a).fill(undefined).map((function(){return i.rectangle({height:"1rem"})})))}};var r=e("s",{rectangle:function(){return i.rectangle({height:"100%",borderRadius:"var(--tct-border-radius-1, 3px)"})},table:function(e,t){var r,a;var n=(r=e===null||e===void 0?void 0:e[0])!==null&&r!==void 0?r:5;var d=(a=e===null||e===void 0?void 0:e[1])!==null&&a!==void 0?a:5;var s=t===null||t===void 0?void 0:t.has("headless");var o=t===null||t===void 0?void 0:t.has("bordered");return l("div",{class:"skeleton-shape table"},!s&&l("div",{class:"skeleton-table-head"},l("div",{class:"skeleton-table-row skeleton-table-header flex"},!!n&&Array(n).fill(undefined).map((function(){return i.rectangle({height:"1rem"})}))),l("div",{class:"skeleton-table-row-border"},i.rectangle({height:"3px"}))),l("div",{class:"skeleton-table-body"},!!d&&Array(d).fill(undefined).map((function(){return l("div",{class:"skeleton-table-row-wrapper"},l("div",{class:"skeleton-table-row flex"},!!n&&Array(n).fill(undefined).map((function(){return i.rectangle({height:"1.5rem"})}))),o&&l("div",{class:"skeleton-table-row-border"},i.rectangle({height:"1px",additionalClasses:"no-margin"})))}))))},field:t.field,form:function(e){var i,r,a;var n=(i=(e===null||e===void 0?void 0:e[1])&&(e===null||e===void 0?void 0:e[0]))!==null&&i!==void 0?i:1;var d=(a=(r=e===null||e===void 0?void 0:e[1])!==null&&r!==void 0?r:e===null||e===void 0?void 0:e[0])!==null&&a!==void 0?a:1;var s=n*d;return l("div",{class:"skeleton-shape form flex columns-"+n},!!s&&Array(s).fill(undefined).map(t.field))},text:t.text,"detailed-item":function(e,r){var a=r===null||r===void 0?void 0:r.has("square");var n=(r===null||r===void 0?void 0:r.has("center"))&&"center"||(r===null||r===void 0?void 0:r.has("right"))&&"right"||"left";return l("div",{class:"skeleton-shape detailed-item flex "+n},l("div",{class:"detailed-item-image flex-"+n},a?i.rectangle({width:"1.5em",height:"1.5em",borderRadius:"3px"}):i.circle({width:"1.5em"})),l("div",{class:"detailed-item-text flex flex-v-center flex-"+n},l("div",null,t.text(e,r))))},"label-value":function(e){var t;var r=2*((t=e===null||e===void 0?void 0:e[0])!==null&&t!==void 0?t:1);return l("div",{class:"skeleton-shape label-value flex"},!!r&&Array(r).fill(undefined).map((function(){return i.rectangle({height:"1rem"})})))}})}}}));
1
+ System.register(["./p-f08aea0c.system.js"],(function(e){"use strict";var l;return{setters:[function(e){l=e.h}],execute:function(){var i=e("a",{circle:function(e){var i=e.width,t=e.additionalClasses;return l("div",{class:"skeleton-shape circle "+(t||""),style:{width:i,height:i}})},rectangle:function(e){var i=e.width,t=e.height,a=e.borderRadius,r=e.additionalClasses;return l("div",{class:"skeleton-shape rectangle "+(r||""),style:{width:i,height:t,borderRadius:a}})}});var t={field:function(){return l("div",{class:"skeleton-shape field"},l("div",{class:"skeleton-field-label"},i.rectangle({height:"1rem",width:"50%"})),i.rectangle({height:"var(--tct-input-height, 42px)",borderRadius:"3px"}))},text:function(e,t){var a;var r=(a=e===null||e===void 0?void 0:e[0])!==null&&a!==void 0?a:1;var n=t===null||t===void 0?void 0:t.has("header");var d=(t===null||t===void 0?void 0:t.has("center"))&&"center"||(t===null||t===void 0?void 0:t.has("right"))&&"right"||"left";var s=(t===null||t===void 0?void 0:t.has("smallheader"))?" smaller":"";var o=n?"header "+d+s:"";return l("div",{class:"skeleton-shape text"},n&&i.rectangle({width:"60%",additionalClasses:o}),!!r&&Array(r).fill(undefined).map((function(){return i.rectangle({height:"1rem"})})))}};var a=e("s",{rectangle:function(){return i.rectangle({height:"100%",borderRadius:"var(--tct-border-radius-1, 3px)"})},table:function(e,t){var a,r;var n=(a=e===null||e===void 0?void 0:e[0])!==null&&a!==void 0?a:5;var d=(r=e===null||e===void 0?void 0:e[1])!==null&&r!==void 0?r:5;var s=t===null||t===void 0?void 0:t.has("headless");var o=t===null||t===void 0?void 0:t.has("bordered");return l("div",{class:"skeleton-shape table"},!s&&l("div",{class:"skeleton-table-head"},l("div",{class:"skeleton-table-row skeleton-table-header flex"},!!n&&Array(n).fill(undefined).map((function(){return i.rectangle({height:"1rem"})}))),l("div",{class:"skeleton-table-row-border"},i.rectangle({height:"3px"}))),l("div",{class:"skeleton-table-body"},!!d&&Array(d).fill(undefined).map((function(){return l("div",{class:"skeleton-table-row-wrapper"},l("div",{class:"skeleton-table-row flex"},!!n&&Array(n).fill(undefined).map((function(){return i.rectangle({height:"1.5rem"})}))),o&&l("div",{class:"skeleton-table-row-border"},i.rectangle({height:"1px",additionalClasses:"no-margin"})))}))))},field:t.field,form:function(e){var i,a,r;var n=(i=(e===null||e===void 0?void 0:e[1])&&(e===null||e===void 0?void 0:e[0]))!==null&&i!==void 0?i:1;var d=(r=(a=e===null||e===void 0?void 0:e[1])!==null&&a!==void 0?a:e===null||e===void 0?void 0:e[0])!==null&&r!==void 0?r:1;var s=n*d;return l("div",{class:"skeleton-shape form flex columns-"+n},!!s&&Array(s).fill(undefined).map(t.field))},text:t.text,"detailed-item":function(e,a){var r=a===null||a===void 0?void 0:a.has("square");var n=(a===null||a===void 0?void 0:a.has("center"))&&"center"||(a===null||a===void 0?void 0:a.has("right"))&&"right"||"left";return l("div",{class:"skeleton-shape detailed-item flex "+n},l("div",{class:"detailed-item-image flex-"+n},r?i.rectangle({width:"1.5em",height:"1.5em",borderRadius:"3px"}):i.circle({width:"1.5em"})),l("div",{class:"detailed-item-text flex flex-v-center flex-"+n},l("div",null,t.text(e,a))))},"label-value":function(e){var t;var a=2*((t=e===null||e===void 0?void 0:e[0])!==null&&t!==void 0?t:1);return l("div",{class:"skeleton-shape label-value flex"},!!a&&Array(a).fill(undefined).map((function(){return i.rectangle({height:"1rem"})})))}})}}}));
@@ -1 +1 @@
1
- import{r as t,h as a,g as i}from"./p-7ff881d1.js";const r=class{constructor(a){t(this,a),this.badSrc=!1,this.onError=()=>{this.badSrc=!0}}srcDidUpdate(){this.badSrc=!1}getInitials(t){const a=t.split(" ");return`${a[0][0]}${a[a.length-1][0]}`.toUpperCase()}render(){return a("div",null,this.src&&!this.badSrc?a("img",{class:"avatar-img","test-id":"userImage",src:this.src,onError:this.onError}):"",!this.name||this.src&&!this.badSrc?"":a("div",{"test-id":"userInitials",class:"avatar-initials"},this.getInitials(this.name)),this.name||this.src&&!this.badSrc?"":a("img",{"test-id":"fallbackImage",class:"fallback",src:"https://upload.wikimedia.org/wikipedia/commons/8/89/Portrait_Placeholder.png"}))}get el(){return i(this)}static get watchers(){return{src:["srcDidUpdate"]}}};r.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.avatar-img{-o-object-fit:cover;object-fit:cover;height:var(--tct-avatar-img-height, 44px);width:var(--tct-avatar-img-width, 44px);border-radius:var(--tct-avatar-img-br, 50%)}.avatar-initials{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:var(--tct-avatar-height, 44px);width:var(--tct-avatar-width, 44px);background-color:var(--tct-avatar-bg,#9e9e9e);color:var(--tct-avatar-color, #ffffff);font-size:var(--tct-avatar-font-size, 20px);font-weight:var(--tct-avatar-font-weight, 200);border-radius:var(--tct-avatar-br, 50%)}.fallback{height:var(--tct-avatar-fallback-height, 44px);width:var(--tct-avatar-fallback-width, 44px);border-radius:var(--tct-avatar-fallback-br, 50%)}";export{r as q2_avatar}
1
+ import{r as t,h as a,g as i}from"./p-1a8e579d.js";const r=class{constructor(a){t(this,a),this.badSrc=!1,this.onError=()=>{this.badSrc=!0}}srcDidUpdate(){this.badSrc=!1}getInitials(t){const a=t.split(" ");return`${a[0][0]}${a[a.length-1][0]}`.toUpperCase()}render(){return a("div",null,this.src&&!this.badSrc?a("img",{class:"avatar-img","test-id":"userImage",src:this.src,onError:this.onError}):"",!this.name||this.src&&!this.badSrc?"":a("div",{"test-id":"userInitials",class:"avatar-initials"},this.getInitials(this.name)),this.name||this.src&&!this.badSrc?"":a("img",{"test-id":"fallbackImage",class:"fallback",src:"https://upload.wikimedia.org/wikipedia/commons/8/89/Portrait_Placeholder.png"}))}get el(){return i(this)}static get watchers(){return{src:["srcDidUpdate"]}}};r.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.avatar-img{-o-object-fit:cover;object-fit:cover;height:var(--tct-avatar-img-height, 44px);width:var(--tct-avatar-img-width, 44px);border-radius:var(--tct-avatar-img-br, 50%)}.avatar-initials{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:var(--tct-avatar-height, 44px);width:var(--tct-avatar-width, 44px);background-color:var(--tct-avatar-bg,#9e9e9e);color:var(--tct-avatar-color, #ffffff);font-size:var(--tct-avatar-font-size, 20px);font-weight:var(--tct-avatar-font-weight, 200);border-radius:var(--tct-avatar-br, 50%)}.fallback{height:var(--tct-avatar-fallback-height, 44px);width:var(--tct-avatar-fallback-width, 44px);border-radius:var(--tct-avatar-fallback-br, 50%)}";export{r as q2_avatar}
@@ -1 +1 @@
1
- import{r as t,c as s,g as i}from"./p-7ff881d1.js";const h=class{constructor(i){t(this,i),this.change=s(this,"change",7),this.mouseEventList=["mousedown","dragstart","touchstart"],this.isCurrentlyFocused=!1,this.mouseHandler=t=>{const s=this.shadowContains(this.findActiveElement()),i=this.shadowContains(this.shadowEventTarget(t))||this.originatesInSlots(t.target);if(!i&&(this.isCurrentlyFocused||s))return this.isCurrentlyFocused=!1,void this.change.emit();this.isCurrentlyFocused=i||s},this.windowBlurHandler=()=>{if(this.findActiveElement()===document.body&&this.isCurrentlyFocused)return this.isCurrentlyFocused=!1,void this.change.emit()}}componentWillLoad(){this.mouseEventList.forEach(t=>{document.addEventListener(t,this.mouseHandler)}),window.addEventListener("blur",this.windowBlurHandler)}disconnectedCallback(){this.mouseEventList.forEach(t=>{document.removeEventListener(t,this.mouseHandler)}),window.removeEventListener("blur",this.windowBlurHandler)}findActiveElement(){let t=document.activeElement;for(;;){if(!t||!t.shadowRoot)return t;t=t.shadowRoot.activeElement}}shadowEventTarget(t){return t.composedPath()[0]||t.target}shadowContains(t){for(;;){if(t===this.hostElement)return!0;if(!t)return!1;t=t.parentNode||t.host}}originatesInSlots(t){const s=this.hostElement.querySelectorAll("slot");for(let i=0;i<s.length;i++){const h=s[i],r=h&&h.assignedNodes&&h.assignedNodes()||this.hostElement.childNodes;for(let s=0;s<r.length;s++)if(r[s].contains(t))return!0}return!1}get hostElement(){return i(this)}};export{h as click_elsewhere}
1
+ import{r as t,c as s,g as i}from"./p-1a8e579d.js";const e=class{constructor(i){t(this,i),this.change=s(this,"change",7),this.mouseEventList=["mousedown","dragstart","touchstart"],this.isCurrentlyFocused=!1,this.mouseHandler=t=>{const s=this.shadowContains(this.findActiveElement()),i=this.shadowContains(this.shadowEventTarget(t))||this.originatesInSlots(t.target);if(!i&&(this.isCurrentlyFocused||s))return this.isCurrentlyFocused=!1,void this.change.emit();this.isCurrentlyFocused=i||s},this.windowBlurHandler=()=>{if(this.findActiveElement()===document.body&&this.isCurrentlyFocused)return this.isCurrentlyFocused=!1,void this.change.emit()}}componentWillLoad(){this.mouseEventList.forEach(t=>{document.addEventListener(t,this.mouseHandler)}),window.addEventListener("blur",this.windowBlurHandler)}disconnectedCallback(){this.mouseEventList.forEach(t=>{document.removeEventListener(t,this.mouseHandler)}),window.removeEventListener("blur",this.windowBlurHandler)}findActiveElement(){let t=document.activeElement;for(;;){if(!t||!t.shadowRoot)return t;t=t.shadowRoot.activeElement}}shadowEventTarget(t){return t.composedPath()[0]||t.target}shadowContains(t){for(;;){if(t===this.hostElement)return!0;if(!t)return!1;t=t.parentNode||t.host}}originatesInSlots(t){const s=this.hostElement.querySelectorAll("slot");for(let i=0;i<s.length;i++){const e=s[i],h=e&&e.assignedNodes&&e.assignedNodes()||this.hostElement.childNodes;for(let s=0;s<h.length;s++)if(h[s].contains(t))return!0}return!1}get hostElement(){return i(this)}};export{e as click_elsewhere}