ion-segment-content.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*!
  2. * (C) Ionic http://ionicframework.com - MIT License
  3. */
  4. import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
  5. const segmentContentCss = ":host{scroll-snap-align:center;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none;}:host::-webkit-scrollbar{display:none}";
  6. const IonSegmentContentStyle0 = segmentContentCss;
  7. const SegmentContent = /*@__PURE__*/ proxyCustomElement(class SegmentContent extends HTMLElement {
  8. constructor() {
  9. super();
  10. this.__registerHost();
  11. this.__attachShadow();
  12. }
  13. render() {
  14. return (h(Host, { key: '64b3965b14c749e77e9ce13b59f349d971e245c8' }, h("slot", { key: '2d0bed34f9bc93f92e713cb51e42220f3cecd8f5' })));
  15. }
  16. static get style() { return IonSegmentContentStyle0; }
  17. }, [1, "ion-segment-content"]);
  18. function defineCustomElement$1() {
  19. if (typeof customElements === "undefined") {
  20. return;
  21. }
  22. const components = ["ion-segment-content"];
  23. components.forEach(tagName => { switch (tagName) {
  24. case "ion-segment-content":
  25. if (!customElements.get(tagName)) {
  26. customElements.define(tagName, SegmentContent);
  27. }
  28. break;
  29. } });
  30. }
  31. const IonSegmentContent = SegmentContent;
  32. const defineCustomElement = defineCustomElement$1;
  33. export { IonSegmentContent, defineCustomElement };