@saasquatch/mint-components 1.5.0-72 → 1.5.0-76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-fbbacd12.js → ShadowViewAddon-878ad3f9.js} +2 -1
- package/dist/cjs/{global-58d95b21.js → global-4c495d76.js} +45 -2
- package/dist/cjs/loader.cjs.js +2 -3
- package/dist/cjs/mint-components.cjs.js +2 -3
- package/dist/cjs/{useChildElements-4bc9b219.js → re-render-2f8d0f37.js} +0 -16
- package/dist/cjs/{sqm-brand_28.cjs.entry.js → sqm-brand_29.cjs.entry.js} +67 -35
- package/dist/cjs/sqm-image_4.cjs.entry.js +13 -13
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -2
- package/dist/cjs/{sqm-portal-email-verification-view-f42557ca.js → sqm-portal-email-verification-view-1552442a.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -3
- package/dist/cjs/{sqm-portal-footer-view-5e6903c9.js → sqm-portal-footer-view-15ce261b.js} +1 -1
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +2 -3
- package/dist/cjs/{sqm-portal-profile-view-637d2fe7.js → sqm-portal-profile-view-659635e9.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -3
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +12 -10
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +14 -14
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +246 -61
- package/dist/cjs/sqm-tab.cjs.entry.js +37 -2
- package/dist/cjs/sqm-tabs.cjs.entry.js +54 -0
- package/dist/cjs/useChildElements-a68699b4.js +21 -0
- package/dist/cjs/{useReferralTable-e473585e.js → useReferralTable-45f295ba.js} +3 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/sqm-hero-image/HeroImage.stories.js +26 -14
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +4 -8
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +6 -71
- package/dist/collection/components/sqm-image/Image.stories.js +12 -9
- package/dist/collection/components/sqm-image/sqm-image-view.js +2 -2
- package/dist/collection/components/sqm-image/sqm-image.js +3 -3
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +38 -21
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +3 -1
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +1 -0
- package/dist/collection/components/sqm-rewards-table/RewardsTable.stories.js +87 -3
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +26 -17
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +4 -4
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +1 -1
- package/dist/collection/components/sqm-scroll/Scroll.stories.js +59 -0
- package/dist/collection/components/sqm-scroll/sqm-scroll.js +113 -0
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
- package/dist/collection/components/sqm-tab/sqm-tab-view.js +17 -0
- package/dist/collection/components/sqm-tab/sqm-tab.js +43 -8
- package/dist/collection/components/sqm-tab/useTab.js +15 -0
- package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +17 -0
- package/dist/collection/components/sqm-tabs/sqm-tabs.js +17 -0
- package/dist/collection/components/sqm-tabs/useTabs.js +13 -0
- package/dist/collection/components/sqm-text/sqm-text.js +12 -11
- package/dist/esm/{ShadowViewAddon-98630948.js → ShadowViewAddon-9ee208b0.js} +2 -1
- package/dist/esm/{global-58010a55.js → global-c2179248.js} +44 -1
- package/dist/esm/loader.js +2 -3
- package/dist/esm/mint-components.js +2 -3
- package/dist/esm/{useChildElements-c11d6189.js → re-render-43311710.js} +2 -17
- package/dist/esm/{sqm-brand_28.entry.js → sqm-brand_29.entry.js} +66 -35
- package/dist/esm/sqm-image_4.entry.js +14 -14
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -2
- package/dist/esm/{sqm-portal-email-verification-view-2c8bfca8.js → sqm-portal-email-verification-view-8acdcd89.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -3
- package/dist/esm/{sqm-portal-footer-view-a6c21fb9.js → sqm-portal-footer-view-9995ad03.js} +1 -1
- package/dist/esm/sqm-portal-footer.entry.js +2 -3
- package/dist/esm/{sqm-portal-profile-view-6a4ab589.js → sqm-portal-profile-view-71c84f2e.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +2 -3
- package/dist/esm/sqm-referral-table_11.entry.js +7 -5
- package/dist/esm/sqm-rewards-table_9.entry.js +9 -9
- package/dist/esm/sqm-stencilbook.entry.js +246 -61
- package/dist/esm/sqm-tab.entry.js +40 -5
- package/dist/esm/sqm-tabs.entry.js +50 -0
- package/dist/esm/useChildElements-0146a8bd.js +19 -0
- package/dist/esm/{useReferralTable-bccb9ac0.js → useReferralTable-596519fc.js} +2 -1
- package/dist/esm-es5/{ShadowViewAddon-98630948.js → ShadowViewAddon-9ee208b0.js} +1 -1
- package/dist/esm-es5/{global-58010a55.js → global-c2179248.js} +2 -2
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/re-render-43311710.js +1 -0
- package/dist/esm-es5/sqm-brand_29.entry.js +1 -0
- package/dist/esm-es5/sqm-image_4.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-2c8bfca8.js → sqm-portal-email-verification-view-8acdcd89.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-a6c21fb9.js → sqm-portal-footer-view-9995ad03.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-6a4ab589.js → sqm-portal-profile-view-71c84f2e.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -0
- package/dist/esm-es5/useChildElements-0146a8bd.js +1 -0
- package/dist/esm-es5/useReferralTable-596519fc.js +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-07005b24.system.entry.js +1 -0
- package/dist/mint-components/{p-14655192.js → p-092d50be.js} +2 -2
- package/dist/mint-components/{p-7a5c88bc.js → p-0fa2ba69.js} +1 -1
- package/dist/mint-components/{p-0988f079.system.js → p-134f64dc.system.js} +22 -22
- package/dist/mint-components/p-182b47d2.system.entry.js +1 -0
- package/dist/mint-components/p-1b9b8bfb.entry.js +150 -0
- package/dist/mint-components/p-233dfb7d.system.js +1 -0
- package/dist/mint-components/p-23ece152.system.entry.js +1 -0
- package/dist/mint-components/p-249a778c.system.entry.js +1 -0
- package/dist/mint-components/p-258d46de.entry.js +1 -0
- package/dist/mint-components/p-298af592.system.entry.js +1 -0
- package/dist/mint-components/p-2f6decd6.entry.js +1 -0
- package/dist/mint-components/p-31f775f1.entry.js +1 -0
- package/dist/mint-components/p-38e81e7a.entry.js +1 -0
- package/dist/mint-components/p-396b5489.js +1 -0
- package/dist/mint-components/{p-382a1bca.system.js → p-3c934de4.system.js} +1 -1
- package/dist/mint-components/p-448822f7.system.entry.js +1 -0
- package/dist/mint-components/{p-fc3bbee6.js → p-47a0b6a2.js} +3 -3
- package/dist/mint-components/{p-4dbf5bbf.system.js → p-51a0961b.system.js} +1 -1
- package/dist/mint-components/p-5667647c.system.entry.js +1 -0
- package/dist/mint-components/p-58e718de.entry.js +1 -0
- package/dist/mint-components/p-616a0d9b.entry.js +1 -0
- package/dist/mint-components/p-668bbbf4.system.js +1 -0
- package/dist/mint-components/p-6dc64a2f.system.entry.js +1 -0
- package/dist/mint-components/p-7ba0e231.js +1 -0
- package/dist/mint-components/p-7c8ca014.entry.js +90 -0
- package/dist/mint-components/{p-0aee946d.js → p-88be9a23.js} +1 -1
- package/dist/mint-components/p-89101dc5.system.js +1 -0
- package/dist/mint-components/{p-5ab40dfa.system.js → p-9294bb29.system.js} +1 -1
- package/dist/mint-components/p-a10bbd50.system.entry.js +1 -0
- package/dist/mint-components/{p-b18cc44f.js → p-a5a7c655.js} +1 -1
- package/dist/mint-components/{p-18003e9c.system.js → p-b62cb89c.system.js} +1 -1
- package/dist/mint-components/p-c432ee49.entry.js +13 -0
- package/dist/mint-components/{p-5a2bd8cc.js → p-e43c77bd.js} +153 -153
- package/dist/mint-components/{p-de3e12a6.system.entry.js → p-e8ae39ef.system.entry.js} +1 -1
- package/dist/mint-components/p-efae86df.system.js +1 -0
- package/dist/mint-components/p-f2fccdea.system.entry.js +1 -0
- package/dist/mint-components/{p-854ad349.entry.js → p-f494eaa5.entry.js} +2 -2
- package/dist/mint-components/{p-d8a45132.entry.js → p-f6989de4.entry.js} +2 -2
- package/dist/types/components/sqm-hero-image/HeroImage.stories.d.ts +6 -2
- package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +0 -3
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +3 -15
- package/dist/types/components/sqm-image/Image.stories.d.ts +4 -3
- package/dist/types/components/sqm-image/sqm-image-view.d.ts +2 -2
- package/dist/types/components/sqm-image/sqm-image.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/RewardsTable.stories.d.ts +3 -1
- package/dist/types/components/sqm-rewards-table/RewardsTableCell.stories.d.ts +7 -4
- package/dist/types/components/sqm-scroll/Scroll.stories.d.ts +7 -0
- package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +11 -0
- package/dist/types/components/sqm-tab/sqm-tab-view.d.ts +5 -0
- package/dist/types/components/sqm-tab/sqm-tab.d.ts +2 -1
- package/dist/types/components/sqm-tab/useTab.d.ts +8 -0
- package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +11 -0
- package/dist/types/components/{sqm-tab-group/sqm-tab-group.d.ts → sqm-tabs/sqm-tabs.d.ts} +1 -2
- package/dist/types/components/sqm-tabs/useTabs.d.ts +12 -0
- package/dist/types/components.d.ts +48 -58
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/insertcss-04580cfa.js +0 -47
- package/dist/cjs/sqm-tab-group.cjs.entry.js +0 -20
- package/dist/cjs/sqm-tab-panel.cjs.entry.js +0 -20
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.css +0 -57
- package/dist/collection/components/sqm-tab-group/sqm-tab-group.js +0 -19
- package/dist/collection/components/sqm-tab-panel/sqm-tab-panel.js +0 -19
- package/dist/esm/insertcss-bcaf3818.js +0 -45
- package/dist/esm/sqm-tab-group.entry.js +0 -16
- package/dist/esm/sqm-tab-panel.entry.js +0 -16
- package/dist/esm-es5/insertcss-bcaf3818.js +0 -1
- package/dist/esm-es5/sqm-brand_28.entry.js +0 -1
- package/dist/esm-es5/sqm-tab-group.entry.js +0 -1
- package/dist/esm-es5/sqm-tab-panel.entry.js +0 -1
- package/dist/esm-es5/useChildElements-c11d6189.js +0 -1
- package/dist/esm-es5/useReferralTable-bccb9ac0.js +0 -1
- package/dist/mint-components/p-12c6ad5d.system.entry.js +0 -1
- package/dist/mint-components/p-27849b7e.system.entry.js +0 -1
- package/dist/mint-components/p-2d7db47e.entry.js +0 -1
- package/dist/mint-components/p-408551bc.entry.js +0 -1
- package/dist/mint-components/p-4991f4c0.system.entry.js +0 -1
- package/dist/mint-components/p-59454f33.system.js +0 -1
- package/dist/mint-components/p-5e3f4daa.system.entry.js +0 -1
- package/dist/mint-components/p-61d68133.system.entry.js +0 -1
- package/dist/mint-components/p-61d769e2.system.js +0 -1
- package/dist/mint-components/p-673407d4.entry.js +0 -150
- package/dist/mint-components/p-68c38020.entry.js +0 -1
- package/dist/mint-components/p-71a4e832.entry.js +0 -13
- package/dist/mint-components/p-7aea48a0.entry.js +0 -1
- package/dist/mint-components/p-875f46d7.system.entry.js +0 -1
- package/dist/mint-components/p-88765e8f.system.entry.js +0 -1
- package/dist/mint-components/p-8d74871c.system.js +0 -1
- package/dist/mint-components/p-95e36be8.entry.js +0 -1
- package/dist/mint-components/p-a2038ff2.entry.js +0 -1
- package/dist/mint-components/p-aab3dc7b.system.entry.js +0 -1
- package/dist/mint-components/p-ac65007d.js +0 -1
- package/dist/mint-components/p-af7d926d.system.entry.js +0 -1
- package/dist/mint-components/p-c968ea28.system.entry.js +0 -1
- package/dist/mint-components/p-d5f16295.entry.js +0 -90
- package/dist/mint-components/p-e7a29898.entry.js +0 -1
- package/dist/mint-components/p-f4c0cd0b.js +0 -1
- package/dist/mint-components/p-f80e4997.system.entry.js +0 -1
- package/dist/mint-components/p-fe4d9531.system.js +0 -1
- package/dist/types/components/sqm-tab-panel/sqm-tab-panel.d.ts +0 -6
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const containers = []; // will store container HTMLElement references
|
|
4
|
-
const styleElements = []; // will store {prepend: HTMLElement, append: HTMLElement}
|
|
5
|
-
const usage = 'insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).';
|
|
6
|
-
function insertCSS(css, options) {
|
|
7
|
-
options = options || {};
|
|
8
|
-
if (css === undefined) {
|
|
9
|
-
throw new Error(usage);
|
|
10
|
-
}
|
|
11
|
-
var position = options.prepend === true ? 'prepend' : 'append';
|
|
12
|
-
var container = options.container !== undefined ? options.container : document.querySelector('head');
|
|
13
|
-
var containerId = containers.indexOf(container);
|
|
14
|
-
// first time we see this container, create the necessary entries
|
|
15
|
-
if (containerId === -1) {
|
|
16
|
-
containerId = containers.push(container) - 1;
|
|
17
|
-
styleElements[containerId] = {};
|
|
18
|
-
}
|
|
19
|
-
// try to get the correponding container + position styleElement, create it otherwise
|
|
20
|
-
var styleElement;
|
|
21
|
-
if (styleElements[containerId] !== undefined && styleElements[containerId][position] !== undefined) {
|
|
22
|
-
styleElement = styleElements[containerId][position];
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
styleElement = styleElements[containerId][position] = createStyleElement();
|
|
26
|
-
if (position === 'prepend') {
|
|
27
|
-
container.insertBefore(styleElement, container.childNodes[0]);
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
container.appendChild(styleElement);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
// strip potential UTF-8 BOM if css was read from a file
|
|
34
|
-
if (css.charCodeAt(0) === 0xFEFF) {
|
|
35
|
-
css = css.substr(1, css.length);
|
|
36
|
-
}
|
|
37
|
-
// actually add the stylesheet
|
|
38
|
-
styleElement.textContent += css;
|
|
39
|
-
return styleElement;
|
|
40
|
-
}
|
|
41
|
-
function createStyleElement() {
|
|
42
|
-
var styleElement = document.createElement('style');
|
|
43
|
-
styleElement.setAttribute('type', 'text/css');
|
|
44
|
-
return styleElement;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
exports.insertCSS = insertCSS;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-b0129cd6.js');
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-87a1f4f7.js');
|
|
7
|
-
|
|
8
|
-
const TabGroup = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
index.registerInstance(this, hostRef);
|
|
11
|
-
this.ignored = true;
|
|
12
|
-
stencilHooks_module.h$1(this);
|
|
13
|
-
}
|
|
14
|
-
disconnectedCallback() { }
|
|
15
|
-
render() {
|
|
16
|
-
return (index.h(index.Host, { style: { display: "block" } }, index.h("sl-tab-group", null, index.h("slot", { name: "nav" }), index.h("slot", null))));
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
exports.sqm_tab_group = TabGroup;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-b0129cd6.js');
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-87a1f4f7.js');
|
|
7
|
-
|
|
8
|
-
const TabPanel = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
index.registerInstance(this, hostRef);
|
|
11
|
-
this.ignored = true;
|
|
12
|
-
stencilHooks_module.h$1(this);
|
|
13
|
-
}
|
|
14
|
-
disconnectedCallback() { }
|
|
15
|
-
render() {
|
|
16
|
-
return (index.h(index.Host, { style: { display: "block" } }, index.h("sl-tab-panel", null, index.h("slot", { name: "sqm-panel", slot: "panel" }))));
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
exports.sqm_tab_panel = TabPanel;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
:host([hidden]) {
|
|
6
|
-
display: none;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
table {
|
|
10
|
-
width: 100%;
|
|
11
|
-
border-collapse: collapse;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
th {
|
|
15
|
-
font-size: var(--sl-font-size-small);
|
|
16
|
-
font-weight: var(--sl-font-weight-semibold);
|
|
17
|
-
text-align: left;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
tr:not(:first-child) {
|
|
21
|
-
border-top: 1px solid var(--sl-color-neutral-200);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
td {
|
|
25
|
-
font-size: var(--sl-font-size-medium);
|
|
26
|
-
font-weight: var(--sl-font-weight-normal);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.ellipses {
|
|
30
|
-
text-align: center;
|
|
31
|
-
padding: 0;
|
|
32
|
-
color: var(--sl-color-neutral-500);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.highlight {
|
|
36
|
-
background: var(--sl-color-primary-50);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
td,
|
|
40
|
-
th {
|
|
41
|
-
color: var(--sl-color-gray-800);
|
|
42
|
-
padding: var(--sl-spacing-medium);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
th {
|
|
46
|
-
padding: var(--sl-spacing-medium);
|
|
47
|
-
padding-top: 0;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.User {
|
|
51
|
-
width: 100%;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.Score {
|
|
55
|
-
width: auto;
|
|
56
|
-
white-space: nowrap;
|
|
57
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
2
|
-
import { Component, h, Host, State } from "@stencil/core";
|
|
3
|
-
export class TabGroup {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.ignored = true;
|
|
6
|
-
withHooks(this);
|
|
7
|
-
}
|
|
8
|
-
disconnectedCallback() { }
|
|
9
|
-
render() {
|
|
10
|
-
return (h(Host, { style: { display: "block" } },
|
|
11
|
-
h("sl-tab-group", null,
|
|
12
|
-
h("slot", { name: "nav" }),
|
|
13
|
-
h("slot", null))));
|
|
14
|
-
}
|
|
15
|
-
static get is() { return "sqm-tab-group"; }
|
|
16
|
-
static get states() { return {
|
|
17
|
-
"ignored": {}
|
|
18
|
-
}; }
|
|
19
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
2
|
-
import { Component, h, Host, State } from "@stencil/core";
|
|
3
|
-
export class TabPanel {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.ignored = true;
|
|
6
|
-
withHooks(this);
|
|
7
|
-
}
|
|
8
|
-
disconnectedCallback() { }
|
|
9
|
-
render() {
|
|
10
|
-
return (h(Host, { style: { display: "block" } },
|
|
11
|
-
h("sl-tab-panel", null,
|
|
12
|
-
h("slot", { name: "sqm-panel", slot: "panel" }))));
|
|
13
|
-
}
|
|
14
|
-
static get is() { return "sqm-tab-panel"; }
|
|
15
|
-
static get encapsulation() { return "shadow"; }
|
|
16
|
-
static get states() { return {
|
|
17
|
-
"ignored": {}
|
|
18
|
-
}; }
|
|
19
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
const containers = []; // will store container HTMLElement references
|
|
2
|
-
const styleElements = []; // will store {prepend: HTMLElement, append: HTMLElement}
|
|
3
|
-
const usage = 'insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).';
|
|
4
|
-
function insertCSS(css, options) {
|
|
5
|
-
options = options || {};
|
|
6
|
-
if (css === undefined) {
|
|
7
|
-
throw new Error(usage);
|
|
8
|
-
}
|
|
9
|
-
var position = options.prepend === true ? 'prepend' : 'append';
|
|
10
|
-
var container = options.container !== undefined ? options.container : document.querySelector('head');
|
|
11
|
-
var containerId = containers.indexOf(container);
|
|
12
|
-
// first time we see this container, create the necessary entries
|
|
13
|
-
if (containerId === -1) {
|
|
14
|
-
containerId = containers.push(container) - 1;
|
|
15
|
-
styleElements[containerId] = {};
|
|
16
|
-
}
|
|
17
|
-
// try to get the correponding container + position styleElement, create it otherwise
|
|
18
|
-
var styleElement;
|
|
19
|
-
if (styleElements[containerId] !== undefined && styleElements[containerId][position] !== undefined) {
|
|
20
|
-
styleElement = styleElements[containerId][position];
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
styleElement = styleElements[containerId][position] = createStyleElement();
|
|
24
|
-
if (position === 'prepend') {
|
|
25
|
-
container.insertBefore(styleElement, container.childNodes[0]);
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
container.appendChild(styleElement);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
// strip potential UTF-8 BOM if css was read from a file
|
|
32
|
-
if (css.charCodeAt(0) === 0xFEFF) {
|
|
33
|
-
css = css.substr(1, css.length);
|
|
34
|
-
}
|
|
35
|
-
// actually add the stylesheet
|
|
36
|
-
styleElement.textContent += css;
|
|
37
|
-
return styleElement;
|
|
38
|
-
}
|
|
39
|
-
function createStyleElement() {
|
|
40
|
-
var styleElement = document.createElement('style');
|
|
41
|
-
styleElement.setAttribute('type', 'text/css');
|
|
42
|
-
return styleElement;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export { insertCSS as i };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
|
-
import { m as h } from './stencil-hooks.module-2f159754.js';
|
|
3
|
-
|
|
4
|
-
const TabGroup = class {
|
|
5
|
-
constructor(hostRef) {
|
|
6
|
-
registerInstance(this, hostRef);
|
|
7
|
-
this.ignored = true;
|
|
8
|
-
h(this);
|
|
9
|
-
}
|
|
10
|
-
disconnectedCallback() { }
|
|
11
|
-
render() {
|
|
12
|
-
return (h$1(Host, { style: { display: "block" } }, h$1("sl-tab-group", null, h$1("slot", { name: "nav" }), h$1("slot", null))));
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { TabGroup as sqm_tab_group };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
|
-
import { m as h } from './stencil-hooks.module-2f159754.js';
|
|
3
|
-
|
|
4
|
-
const TabPanel = class {
|
|
5
|
-
constructor(hostRef) {
|
|
6
|
-
registerInstance(this, hostRef);
|
|
7
|
-
this.ignored = true;
|
|
8
|
-
h(this);
|
|
9
|
-
}
|
|
10
|
-
disconnectedCallback() { }
|
|
11
|
-
render() {
|
|
12
|
-
return (h$1(Host, { style: { display: "block" } }, h$1("sl-tab-panel", null, h$1("slot", { name: "sqm-panel", slot: "panel" }))));
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { TabPanel as sqm_tab_panel };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var containers=[];var styleElements=[];var usage="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function insertCSS(e,t){t=t||{};if(e===undefined){throw new Error(usage)}var n=t.prepend===true?"prepend":"append";var r=t.container!==undefined?t.container:document.querySelector("head");var s=containers.indexOf(r);if(s===-1){s=containers.push(r)-1;styleElements[s]={}}var i;if(styleElements[s]!==undefined&&styleElements[s][n]!==undefined){i=styleElements[s][n]}else{i=styleElements[s][n]=createStyleElement();if(n==="prepend"){r.insertBefore(i,r.childNodes[0])}else{r.appendChild(i)}}if(e.charCodeAt(0)===65279){e=e.substr(1,e.length)}i.textContent+=e;return i}function createStyleElement(){var e=document.createElement("style");e.setAttribute("type","text/css");return e}export{insertCSS as i};
|