@saasquatch/mint-components 1.6.1-21 → 1.6.1-24
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-8ac71167.js → ShadowViewAddon-234c9894.js} +1 -1
- package/dist/cjs/sqm-big-stat_35.cjs.entry.js +7 -2
- package/dist/cjs/sqm-qa-tabs.cjs.entry.js +1 -1
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +2 -2
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +2 -2
- package/dist/cjs/sqm-tabs.cjs.entry.js +1 -1
- package/dist/cjs/{useChildElements-e5f408c3.js → useChildElements-6e96d849.js} +11 -3
- package/dist/cjs/{useReferralTable-3c806f32.js → useReferralTable-c1fbc339.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/{sqm-rewards-table/columns/sqm-rewards-table-plop-target.js → raisins-plop-target/raisins-plop-target.js} +0 -0
- package/dist/collection/components/sqm-table-cell/sqm-table-cell.js +14 -2
- package/dist/collection/components/sqm-table-row/sqm-table-row.js +11 -1
- package/dist/collection/tables/useChildElements.js +11 -3
- package/dist/esm/{ShadowViewAddon-a9e11c7d.js → ShadowViewAddon-ede2ac07.js} +1 -1
- package/dist/esm/sqm-big-stat_35.entry.js +7 -2
- package/dist/esm/sqm-qa-tabs.entry.js +1 -1
- package/dist/esm/sqm-referral-table_11.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +2 -2
- package/dist/esm/sqm-stencilbook.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +1 -1
- package/dist/esm/{useChildElements-9b4c3170.js → useChildElements-6f4c2d26.js} +11 -3
- package/dist/esm/{useReferralTable-e15b9dd4.js → useReferralTable-835d1164.js} +1 -1
- package/dist/esm-es5/{ShadowViewAddon-a9e11c7d.js → ShadowViewAddon-ede2ac07.js} +1 -1
- package/dist/esm-es5/sqm-big-stat_35.entry.js +1 -1
- package/dist/esm-es5/sqm-qa-tabs.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-tabs.entry.js +1 -1
- package/dist/esm-es5/useChildElements-6f4c2d26.js +1 -0
- package/dist/esm-es5/{useReferralTable-e15b9dd4.js → useReferralTable-835d1164.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-a9382a8a.system.js → p-06db7363.system.js} +1 -1
- package/dist/mint-components/{p-df1f3058.entry.js → p-149eb699.entry.js} +1 -1
- package/dist/mint-components/p-22fbdf1d.system.js +1 -0
- package/dist/mint-components/{p-f77de9e8.entry.js → p-2f94d6a9.entry.js} +1 -1
- package/dist/mint-components/{p-0a64cad9.js → p-40403c63.js} +1 -1
- package/dist/mint-components/p-436da6b8.system.js +1 -1
- package/dist/mint-components/{p-ac6c757a.js → p-65681900.js} +1 -1
- package/dist/mint-components/{p-0b6b137c.entry.js → p-7c9bdd5c.entry.js} +1 -1
- package/dist/mint-components/{p-1a3caa0d.system.entry.js → p-844658e5.system.entry.js} +1 -1
- package/dist/mint-components/{p-8c921ee3.system.entry.js → p-8d66258f.system.entry.js} +1 -1
- package/dist/mint-components/{p-380890aa.system.entry.js → p-9152af02.system.entry.js} +1 -1
- package/dist/mint-components/{p-872460a6.system.entry.js → p-919804fc.system.entry.js} +1 -1
- package/dist/mint-components/{p-a0838713.system.entry.js → p-b80a645d.system.entry.js} +1 -1
- package/dist/mint-components/{p-4108d9d1.entry.js → p-c2757409.entry.js} +1 -1
- package/dist/mint-components/{p-2e9a0be1.system.entry.js → p-d2b31320.system.entry.js} +1 -1
- package/dist/mint-components/p-d5562333.js +1 -0
- package/dist/mint-components/{p-27dea71a.system.js → p-eace3b7c.system.js} +1 -1
- package/dist/mint-components/{p-0b4d70e4.entry.js → p-eea7cd91.entry.js} +1 -1
- package/dist/mint-components/{p-4ce6d524.entry.js → p-fcf9d32c.entry.js} +1 -1
- package/dist/types/components/{sqm-rewards-table/columns/sqm-rewards-table-plop-target.d.ts → raisins-plop-target/raisins-plop-target.d.ts} +1 -1
- package/dist/types/components/sqm-table-cell/sqm-table-cell.d.ts +6 -0
- package/dist/types/components/sqm-table-row/sqm-table-row.d.ts +7 -0
- package/dist/types/components.d.ts +18 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/useChildElements-9b4c3170.js +0 -1
- package/dist/mint-components/p-41c73f3a.js +0 -1
- package/dist/mint-components/p-b6e0ffd3.system.js +0 -1
|
@@ -7,7 +7,7 @@ const index_module = require('./index.module-fb61a163.js');
|
|
|
7
7
|
const cjs = require('./cjs-1066ec21.js');
|
|
8
8
|
const mixins = require('./mixins-338ca5f1.js');
|
|
9
9
|
const JSS = require('./JSS-a75f3a9a.js');
|
|
10
|
-
const useChildElements = require('./useChildElements-
|
|
10
|
+
const useChildElements = require('./useChildElements-6e96d849.js');
|
|
11
11
|
const luxon = require('./luxon-59ca7d19.js');
|
|
12
12
|
const utils = require('./utils-8ef4fe4a.js');
|
|
13
13
|
const sqmTextSpanView = require('./sqm-text-span-view-ab4ad6ef.js');
|
|
@@ -13,12 +13,12 @@ const cjs = require('./cjs-1066ec21.js');
|
|
|
13
13
|
require('./mixins-338ca5f1.js');
|
|
14
14
|
const JSS = require('./JSS-a75f3a9a.js');
|
|
15
15
|
const reRender = require('./re-render-f41e352c.js');
|
|
16
|
-
const useChildElements = require('./useChildElements-
|
|
16
|
+
const useChildElements = require('./useChildElements-6e96d849.js');
|
|
17
17
|
require('./luxon-59ca7d19.js');
|
|
18
18
|
const utils = require('./utils-8ef4fe4a.js');
|
|
19
19
|
require('./sqm-text-span-view-ab4ad6ef.js');
|
|
20
20
|
require('./sqm-portal-container-view-2d11ed71.js');
|
|
21
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
21
|
+
const ShadowViewAddon = require('./ShadowViewAddon-234c9894.js');
|
|
22
22
|
require('./sqm-portal-section-view-765aae4d.js');
|
|
23
23
|
|
|
24
24
|
const BigStat = class {
|
|
@@ -7345,7 +7345,9 @@ const StatContainer = class {
|
|
|
7345
7345
|
const TableCell = class {
|
|
7346
7346
|
constructor(hostRef) {
|
|
7347
7347
|
index.registerInstance(this, hostRef);
|
|
7348
|
+
/** @uiName Column Span */
|
|
7348
7349
|
this.colspan = 1;
|
|
7350
|
+
/** @uiName Padding} */
|
|
7349
7351
|
this.padding = "15px 10px";
|
|
7350
7352
|
}
|
|
7351
7353
|
render() {
|
|
@@ -7356,6 +7358,9 @@ const TableCell = class {
|
|
|
7356
7358
|
const TableRow = class {
|
|
7357
7359
|
constructor(hostRef) {
|
|
7358
7360
|
index.registerInstance(this, hostRef);
|
|
7361
|
+
/**
|
|
7362
|
+
* @uiName Border
|
|
7363
|
+
*/
|
|
7359
7364
|
this.border = "1px solid #EAEAEA";
|
|
7360
7365
|
}
|
|
7361
7366
|
render() {
|
|
@@ -7,7 +7,7 @@ const stencilHooks_module = require('./stencil-hooks.module-87a1f4f7.js');
|
|
|
7
7
|
require('./use-callback-e754042f.js');
|
|
8
8
|
const index_module = require('./index.module-fb61a163.js');
|
|
9
9
|
require('./extends-08099afd.js');
|
|
10
|
-
const useChildElements = require('./useChildElements-
|
|
10
|
+
const useChildElements = require('./useChildElements-6e96d849.js');
|
|
11
11
|
const utils = require('./utils-8ef4fe4a.js');
|
|
12
12
|
|
|
13
13
|
const TabsView = ({ content, placement, }) => {
|
|
@@ -13,9 +13,9 @@ require('./mixins-338ca5f1.js');
|
|
|
13
13
|
const JSS = require('./JSS-a75f3a9a.js');
|
|
14
14
|
const GenericTableView = require('./GenericTableView-76b15cb1.js');
|
|
15
15
|
const reRender = require('./re-render-f41e352c.js');
|
|
16
|
-
const useChildElements = require('./useChildElements-
|
|
16
|
+
const useChildElements = require('./useChildElements-6e96d849.js');
|
|
17
17
|
const luxon = require('./luxon-59ca7d19.js');
|
|
18
|
-
const useReferralTable = require('./useReferralTable-
|
|
18
|
+
const useReferralTable = require('./useReferralTable-c1fbc339.js');
|
|
19
19
|
const utils = require('./utils-8ef4fe4a.js');
|
|
20
20
|
const sqmTextSpanView = require('./sqm-text-span-view-ab4ad6ef.js');
|
|
21
21
|
|
|
@@ -13,9 +13,9 @@ require('./mixins-338ca5f1.js');
|
|
|
13
13
|
const JSS = require('./JSS-a75f3a9a.js');
|
|
14
14
|
const GenericTableView = require('./GenericTableView-76b15cb1.js');
|
|
15
15
|
const reRender = require('./re-render-f41e352c.js');
|
|
16
|
-
const useChildElements = require('./useChildElements-
|
|
16
|
+
const useChildElements = require('./useChildElements-6e96d849.js');
|
|
17
17
|
const luxon = require('./luxon-59ca7d19.js');
|
|
18
|
-
const useReferralTable = require('./useReferralTable-
|
|
18
|
+
const useReferralTable = require('./useReferralTable-c1fbc339.js');
|
|
19
19
|
const utils = require('./utils-8ef4fe4a.js');
|
|
20
20
|
|
|
21
21
|
const mockRewardData = (count = 4) => {
|
|
@@ -12,7 +12,7 @@ require('./cjs-1066ec21.js');
|
|
|
12
12
|
require('./mixins-338ca5f1.js');
|
|
13
13
|
const JSS = require('./JSS-a75f3a9a.js');
|
|
14
14
|
const GenericTableView = require('./GenericTableView-76b15cb1.js');
|
|
15
|
-
require('./useChildElements-
|
|
15
|
+
require('./useChildElements-6e96d849.js');
|
|
16
16
|
const luxon = require('./luxon-59ca7d19.js');
|
|
17
17
|
require('./utils-8ef4fe4a.js');
|
|
18
18
|
require('./sqm-text-span-view-ab4ad6ef.js');
|
|
@@ -28,7 +28,7 @@ const sqmPortalContainerView = require('./sqm-portal-container-view-2d11ed71.js'
|
|
|
28
28
|
const sqmPortalProfileView = require('./sqm-portal-profile-view-b77382f6.js');
|
|
29
29
|
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-042073ca.js');
|
|
30
30
|
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-cb3c9c2f.js');
|
|
31
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
31
|
+
const ShadowViewAddon = require('./ShadowViewAddon-234c9894.js');
|
|
32
32
|
const sqmPortalSectionView = require('./sqm-portal-section-view-765aae4d.js');
|
|
33
33
|
|
|
34
34
|
/**
|
|
@@ -7,7 +7,7 @@ const stencilHooks_module = require('./stencil-hooks.module-87a1f4f7.js');
|
|
|
7
7
|
require('./use-callback-e754042f.js');
|
|
8
8
|
const index_module = require('./index.module-fb61a163.js');
|
|
9
9
|
require('./extends-08099afd.js');
|
|
10
|
-
const useChildElements = require('./useChildElements-
|
|
10
|
+
const useChildElements = require('./useChildElements-6e96d849.js');
|
|
11
11
|
const utils = require('./utils-8ef4fe4a.js');
|
|
12
12
|
|
|
13
13
|
const TabsView = ({ content, placement, }) => {
|
|
@@ -9,15 +9,23 @@ function useChildElements() {
|
|
|
9
9
|
? Array.from(host.children)
|
|
10
10
|
: [];
|
|
11
11
|
const [childElements, setChildElements] = stencilHooks_module.useState(initialState);
|
|
12
|
+
let observer;
|
|
12
13
|
stencilHooks_module.useEffect(() => {
|
|
13
|
-
|
|
14
|
+
observer = new MutationObserver(() => {
|
|
14
15
|
const children = Array.from(host.children);
|
|
15
16
|
setChildElements([...children]);
|
|
16
17
|
});
|
|
18
|
+
}, []);
|
|
19
|
+
stencilHooks_module.useEffect(() => {
|
|
20
|
+
if (!observer)
|
|
21
|
+
return;
|
|
17
22
|
observer.observe(host, { childList: true });
|
|
18
|
-
|
|
23
|
+
console.log("observe!");
|
|
24
|
+
return () => {
|
|
25
|
+
console.log("unobserve :(");
|
|
26
|
+
observer.disconnect();
|
|
27
|
+
};
|
|
19
28
|
}, [host]);
|
|
20
|
-
console.log({ childElements });
|
|
21
29
|
return childElements;
|
|
22
30
|
}
|
|
23
31
|
|
|
@@ -4,7 +4,7 @@ const index = require('./index-b0129cd6.js');
|
|
|
4
4
|
const stencilHooks_module = require('./stencil-hooks.module-87a1f4f7.js');
|
|
5
5
|
const index_module = require('./index.module-fb61a163.js');
|
|
6
6
|
const reRender = require('./re-render-f41e352c.js');
|
|
7
|
-
const useChildElements = require('./useChildElements-
|
|
7
|
+
const useChildElements = require('./useChildElements-6e96d849.js');
|
|
8
8
|
|
|
9
9
|
const debug = stencilHooks_module.browser("sq:useReferralTable");
|
|
10
10
|
const CSS_NAMESPACE = "sqm-referral-table";
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"./components/sqm-password-field/sqm-password-field.js",
|
|
4
4
|
"./components/sqm-referral-table/sqm-referral-table.js",
|
|
5
5
|
"./components/sqm-reward-exchange-list/sqm-reward-exchange-list.js",
|
|
6
|
+
"./components/raisins-plop-target/raisins-plop-target.js",
|
|
6
7
|
"./components/sqm-asset-card/sqm-asset-card.js",
|
|
7
8
|
"./components/sqm-big-stat/sqm-big-stat.js",
|
|
8
9
|
"./components/sqm-brand/sqm-brand.js",
|
|
@@ -65,7 +66,6 @@
|
|
|
65
66
|
"./components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js",
|
|
66
67
|
"./components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js",
|
|
67
68
|
"./components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js",
|
|
68
|
-
"./components/sqm-rewards-table/columns/sqm-rewards-table-plop-target.js",
|
|
69
69
|
"./components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js",
|
|
70
70
|
"./components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js",
|
|
71
71
|
"./components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js",
|
|
File without changes
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { Component, h, Prop, Host } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* @uiName Table Cell
|
|
4
|
+
* @slots [{"name":"", "title":"Cell Content"}]
|
|
5
|
+
*/
|
|
2
6
|
export class TableCell {
|
|
3
7
|
constructor() {
|
|
8
|
+
/** @uiName Column Span */
|
|
4
9
|
this.colspan = 1;
|
|
10
|
+
/** @uiName Padding} */
|
|
5
11
|
this.padding = "15px 10px";
|
|
6
12
|
}
|
|
7
13
|
render() {
|
|
@@ -23,7 +29,10 @@ export class TableCell {
|
|
|
23
29
|
"required": false,
|
|
24
30
|
"optional": false,
|
|
25
31
|
"docs": {
|
|
26
|
-
"tags": [
|
|
32
|
+
"tags": [{
|
|
33
|
+
"text": "Column Span",
|
|
34
|
+
"name": "uiName"
|
|
35
|
+
}],
|
|
27
36
|
"text": ""
|
|
28
37
|
},
|
|
29
38
|
"attribute": "colspan",
|
|
@@ -41,7 +50,10 @@ export class TableCell {
|
|
|
41
50
|
"required": false,
|
|
42
51
|
"optional": false,
|
|
43
52
|
"docs": {
|
|
44
|
-
"tags": [
|
|
53
|
+
"tags": [{
|
|
54
|
+
"text": "Padding}",
|
|
55
|
+
"name": "uiName"
|
|
56
|
+
}],
|
|
45
57
|
"text": ""
|
|
46
58
|
},
|
|
47
59
|
"attribute": "padding",
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { Component, h, Host, Prop } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* @uiName Table Row
|
|
4
|
+
* @slots [{"name":"", "title":"Row Content"}]
|
|
5
|
+
*/
|
|
2
6
|
export class TableRow {
|
|
3
7
|
constructor() {
|
|
8
|
+
/**
|
|
9
|
+
* @uiName Border
|
|
10
|
+
*/
|
|
4
11
|
this.border = "1px solid #EAEAEA";
|
|
5
12
|
}
|
|
6
13
|
render() {
|
|
@@ -22,7 +29,10 @@ export class TableRow {
|
|
|
22
29
|
"required": false,
|
|
23
30
|
"optional": false,
|
|
24
31
|
"docs": {
|
|
25
|
-
"tags": [
|
|
32
|
+
"tags": [{
|
|
33
|
+
"text": "Border",
|
|
34
|
+
"name": "uiName"
|
|
35
|
+
}],
|
|
26
36
|
"text": ""
|
|
27
37
|
},
|
|
28
38
|
"attribute": "border",
|
|
@@ -6,14 +6,22 @@ export function useChildElements() {
|
|
|
6
6
|
? Array.from(host.children)
|
|
7
7
|
: [];
|
|
8
8
|
const [childElements, setChildElements] = useState(initialState);
|
|
9
|
+
let observer;
|
|
9
10
|
useEffect(() => {
|
|
10
|
-
|
|
11
|
+
observer = new MutationObserver(() => {
|
|
11
12
|
const children = Array.from(host.children);
|
|
12
13
|
setChildElements([...children]);
|
|
13
14
|
});
|
|
15
|
+
}, []);
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
if (!observer)
|
|
18
|
+
return;
|
|
14
19
|
observer.observe(host, { childList: true });
|
|
15
|
-
|
|
20
|
+
console.log("observe!");
|
|
21
|
+
return () => {
|
|
22
|
+
console.log("unobserve :(");
|
|
23
|
+
observer.disconnect();
|
|
24
|
+
};
|
|
16
25
|
}, [host]);
|
|
17
|
-
console.log({ childElements });
|
|
18
26
|
return childElements;
|
|
19
27
|
}
|
|
@@ -5,7 +5,7 @@ import { d as dist, M, i as ie, R as Rn, b as sn, q as qe, k as kn, A as An } fr
|
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { H as HostBlock, A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-59fd94b7.js';
|
|
7
7
|
import { c as createStyleSheet, j as jss, a as create } from './JSS-418cab16.js';
|
|
8
|
-
import { u as useChildElements } from './useChildElements-
|
|
8
|
+
import { u as useChildElements } from './useChildElements-6f4c2d26.js';
|
|
9
9
|
import { l as luxon } from './luxon-f44215d9.js';
|
|
10
10
|
import { l as luxonLocale } from './utils-d7bbb0e2.js';
|
|
11
11
|
import { T as TextSpanView } from './sqm-text-span-view-020db63f.js';
|
|
@@ -9,12 +9,12 @@ import { c as cjs } from './cjs-bdfb4486.js';
|
|
|
9
9
|
import './mixins-59fd94b7.js';
|
|
10
10
|
import { c as createStyleSheet } from './JSS-418cab16.js';
|
|
11
11
|
import { a as useRequestRerender } from './re-render-8f0a7ab1.js';
|
|
12
|
-
import { u as useChildElements } from './useChildElements-
|
|
12
|
+
import { u as useChildElements } from './useChildElements-6f4c2d26.js';
|
|
13
13
|
import './luxon-f44215d9.js';
|
|
14
14
|
import { g as getProps, a as getMissingProps, s as sanitizeUrlPath } from './utils-d7bbb0e2.js';
|
|
15
15
|
import './sqm-text-span-view-020db63f.js';
|
|
16
16
|
import './sqm-portal-container-view-34f26e2a.js';
|
|
17
|
-
import { c as useDemoBigStat, K as useBigStat, B as BigStatView, H as autoColorScaleCss, G as CardFeedView, C as CheckboxFieldView, D as DropdownFieldView, E as EditProfileView, I as InputFieldView, M as withShadowView, L as LeaderboardView, N as NameFieldsView, e as PortalChangePasswordView, P as PortalFrameView, f as PortalLoginView, g as PortalRegisterView, R as ReferralIframeView, O as demoRewardExchange, i as RewardExchangeView, Q as pathToRegexp, b as useShareButton, S as ShareButtonView, a as ShareLinkView, u as useShareLink, d as StatContainerView, T as TaskCardView } from './ShadowViewAddon-
|
|
17
|
+
import { c as useDemoBigStat, K as useBigStat, B as BigStatView, H as autoColorScaleCss, G as CardFeedView, C as CheckboxFieldView, D as DropdownFieldView, E as EditProfileView, I as InputFieldView, M as withShadowView, L as LeaderboardView, N as NameFieldsView, e as PortalChangePasswordView, P as PortalFrameView, f as PortalLoginView, g as PortalRegisterView, R as ReferralIframeView, O as demoRewardExchange, i as RewardExchangeView, Q as pathToRegexp, b as useShareButton, S as ShareButtonView, a as ShareLinkView, u as useShareLink, d as StatContainerView, T as TaskCardView } from './ShadowViewAddon-ede2ac07.js';
|
|
18
18
|
import './sqm-portal-section-view-c8d1c727.js';
|
|
19
19
|
|
|
20
20
|
const BigStat = class {
|
|
@@ -7341,7 +7341,9 @@ const StatContainer = class {
|
|
|
7341
7341
|
const TableCell = class {
|
|
7342
7342
|
constructor(hostRef) {
|
|
7343
7343
|
registerInstance(this, hostRef);
|
|
7344
|
+
/** @uiName Column Span */
|
|
7344
7345
|
this.colspan = 1;
|
|
7346
|
+
/** @uiName Padding} */
|
|
7345
7347
|
this.padding = "15px 10px";
|
|
7346
7348
|
}
|
|
7347
7349
|
render() {
|
|
@@ -7352,6 +7354,9 @@ const TableCell = class {
|
|
|
7352
7354
|
const TableRow = class {
|
|
7353
7355
|
constructor(hostRef) {
|
|
7354
7356
|
registerInstance(this, hostRef);
|
|
7357
|
+
/**
|
|
7358
|
+
* @uiName Border
|
|
7359
|
+
*/
|
|
7355
7360
|
this.border = "1px solid #EAEAEA";
|
|
7356
7361
|
}
|
|
7357
7362
|
render() {
|
|
@@ -3,7 +3,7 @@ import { l, i as useMemo, e as useEffect, m as h$1 } from './stencil-hooks.modul
|
|
|
3
3
|
import './use-callback-7e0bfd3b.js';
|
|
4
4
|
import { P } from './index.module-f5e17a4e.js';
|
|
5
5
|
import './extends-c31f1eff.js';
|
|
6
|
-
import { u as useChildElements } from './useChildElements-
|
|
6
|
+
import { u as useChildElements } from './useChildElements-6f4c2d26.js';
|
|
7
7
|
import { g as getProps } from './utils-d7bbb0e2.js';
|
|
8
8
|
|
|
9
9
|
const TabsView = ({ content, placement, }) => {
|
|
@@ -9,9 +9,9 @@ import './mixins-59fd94b7.js';
|
|
|
9
9
|
import { c as createStyleSheet } from './JSS-418cab16.js';
|
|
10
10
|
import { G as GenericTableView } from './GenericTableView-42cf93b4.js';
|
|
11
11
|
import { a as useRequestRerender, u as useRerenderListener } from './re-render-8f0a7ab1.js';
|
|
12
|
-
import { u as useChildElements } from './useChildElements-
|
|
12
|
+
import { u as useChildElements } from './useChildElements-6f4c2d26.js';
|
|
13
13
|
import { l as luxon } from './luxon-f44215d9.js';
|
|
14
|
-
import { u as useReferralTable, t as tryMethod } from './useReferralTable-
|
|
14
|
+
import { u as useReferralTable, t as tryMethod } from './useReferralTable-835d1164.js';
|
|
15
15
|
import { l as luxonLocale } from './utils-d7bbb0e2.js';
|
|
16
16
|
import { T as TextSpanView } from './sqm-text-span-view-020db63f.js';
|
|
17
17
|
|
|
@@ -9,9 +9,9 @@ import './mixins-59fd94b7.js';
|
|
|
9
9
|
import { c as createStyleSheet } from './JSS-418cab16.js';
|
|
10
10
|
import { G as GenericTableView } from './GenericTableView-42cf93b4.js';
|
|
11
11
|
import { u as useRerenderListener, a as useRequestRerender } from './re-render-8f0a7ab1.js';
|
|
12
|
-
import { u as useChildElements } from './useChildElements-
|
|
12
|
+
import { u as useChildElements } from './useChildElements-6f4c2d26.js';
|
|
13
13
|
import { l as luxon } from './luxon-f44215d9.js';
|
|
14
|
-
import { g as generateUserError } from './useReferralTable-
|
|
14
|
+
import { g as generateUserError } from './useReferralTable-835d1164.js';
|
|
15
15
|
import { l as luxonLocale } from './utils-d7bbb0e2.js';
|
|
16
16
|
|
|
17
17
|
const mockRewardData = (count = 4) => {
|
|
@@ -8,7 +8,7 @@ import './cjs-bdfb4486.js';
|
|
|
8
8
|
import './mixins-59fd94b7.js';
|
|
9
9
|
import { c as createStyleSheet } from './JSS-418cab16.js';
|
|
10
10
|
import { G as GenericTableView } from './GenericTableView-42cf93b4.js';
|
|
11
|
-
import './useChildElements-
|
|
11
|
+
import './useChildElements-6f4c2d26.js';
|
|
12
12
|
import { l as luxon } from './luxon-f44215d9.js';
|
|
13
13
|
import './utils-d7bbb0e2.js';
|
|
14
14
|
import './sqm-text-span-view-020db63f.js';
|
|
@@ -24,7 +24,7 @@ import { P as PortalContainerView } from './sqm-portal-container-view-34f26e2a.j
|
|
|
24
24
|
import { P as PortalProfileView } from './sqm-portal-profile-view-28c39970.js';
|
|
25
25
|
import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-e0436989.js';
|
|
26
26
|
import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-c489166b.js';
|
|
27
|
-
import { S as ShareButtonView, L as LeaderboardView, a as ShareLinkView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, b as useShareButton, c as useDemoBigStat, d as StatContainerView, e as PortalChangePasswordView, f as PortalLoginView, g as PortalRegisterView, T as TaskCardView, h as ProgressBarView, R as ReferralIframeView, N as NameFieldsView, C as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, i as RewardExchangeView, r as rewardExchangeCustomErrorMsg, j as rewardExchangeLongText, k as rewardExchangeSelected, l as chooseAmountFixed, m as chooseAmountFixedNoDescription, n as chooseAmountVariable, o as chooseAmountVariableNoDescription, p as chooseAmountVariableDisabled, q as chooseAmountVariableUnavailable, s as confirmFixed, t as confirmVariable, v as redemptionError, w as queryError, x as success, y as successVariable, z as loading, A as empty$1, F as rewardExchange, G as CardFeedView, H as autoColorScaleCss, J as ShadowViewAddon } from './ShadowViewAddon-
|
|
27
|
+
import { S as ShareButtonView, L as LeaderboardView, a as ShareLinkView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, b as useShareButton, c as useDemoBigStat, d as StatContainerView, e as PortalChangePasswordView, f as PortalLoginView, g as PortalRegisterView, T as TaskCardView, h as ProgressBarView, R as ReferralIframeView, N as NameFieldsView, C as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, i as RewardExchangeView, r as rewardExchangeCustomErrorMsg, j as rewardExchangeLongText, k as rewardExchangeSelected, l as chooseAmountFixed, m as chooseAmountFixedNoDescription, n as chooseAmountVariable, o as chooseAmountVariableNoDescription, p as chooseAmountVariableDisabled, q as chooseAmountVariableUnavailable, s as confirmFixed, t as confirmVariable, v as redemptionError, w as queryError, x as success, y as successVariable, z as loading, A as empty$1, F as rewardExchange, G as CardFeedView, H as autoColorScaleCss, J as ShadowViewAddon } from './ShadowViewAddon-ede2ac07.js';
|
|
28
28
|
import { P as PortalSectionView } from './sqm-portal-section-view-c8d1c727.js';
|
|
29
29
|
|
|
30
30
|
/**
|
|
@@ -3,7 +3,7 @@ import { l, i as useMemo, e as useEffect, m as h$1 } from './stencil-hooks.modul
|
|
|
3
3
|
import './use-callback-7e0bfd3b.js';
|
|
4
4
|
import { P } from './index.module-f5e17a4e.js';
|
|
5
5
|
import './extends-c31f1eff.js';
|
|
6
|
-
import { u as useChildElements } from './useChildElements-
|
|
6
|
+
import { u as useChildElements } from './useChildElements-6f4c2d26.js';
|
|
7
7
|
import { g as getProps } from './utils-d7bbb0e2.js';
|
|
8
8
|
|
|
9
9
|
const TabsView = ({ content, placement, }) => {
|
|
@@ -7,15 +7,23 @@ function useChildElements() {
|
|
|
7
7
|
? Array.from(host.children)
|
|
8
8
|
: [];
|
|
9
9
|
const [childElements, setChildElements] = useState(initialState);
|
|
10
|
+
let observer;
|
|
10
11
|
useEffect(() => {
|
|
11
|
-
|
|
12
|
+
observer = new MutationObserver(() => {
|
|
12
13
|
const children = Array.from(host.children);
|
|
13
14
|
setChildElements([...children]);
|
|
14
15
|
});
|
|
16
|
+
}, []);
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
if (!observer)
|
|
19
|
+
return;
|
|
15
20
|
observer.observe(host, { childList: true });
|
|
16
|
-
|
|
21
|
+
console.log("observe!");
|
|
22
|
+
return () => {
|
|
23
|
+
console.log("unobserve :(");
|
|
24
|
+
observer.disconnect();
|
|
25
|
+
};
|
|
17
26
|
}, [host]);
|
|
18
|
-
console.log({ childElements });
|
|
19
27
|
return childElements;
|
|
20
28
|
}
|
|
21
29
|
|
|
@@ -2,7 +2,7 @@ import { h } from './index-17b4da69.js';
|
|
|
2
2
|
import { b as browser, u as useReducer, e as useEffect } from './stencil-hooks.module-acc8a613.js';
|
|
3
3
|
import { d as dist, i as ie, M, A as An, b as sn, a as mn } from './index.module-f5e17a4e.js';
|
|
4
4
|
import { u as useRerenderListener } from './re-render-8f0a7ab1.js';
|
|
5
|
-
import { u as useChildElements } from './useChildElements-
|
|
5
|
+
import { u as useChildElements } from './useChildElements-6f4c2d26.js';
|
|
6
6
|
|
|
7
7
|
const debug = browser("sq:useReferralTable");
|
|
8
8
|
const CSS_NAMESPACE = "sqm-referral-table";
|