@saasquatch/mint-components 1.15.0-17 → 1.15.0-19
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-974f6839.js → ShadowViewAddon-d958d324.js} +1 -1
- package/dist/cjs/{global-19fe8600.js → global-f06aabc0.js} +70 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/sqm-banking-info-form_17.cjs.entry.js +2 -2
- package/dist/cjs/sqm-big-stat_41.cjs.entry.js +12 -3
- package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-invoice-table-view-55066ec6.js → sqm-invoice-table-view-431faed1.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-navigation-sidebar-item-view-6f35d2ee.js → sqm-navigation-sidebar-item-view-5dfd2b52.js} +17 -6
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +25 -2
- package/dist/cjs/{sqm-navigation-sidebar-view-17111896.js → sqm-navigation-sidebar-view-38a5227a.js} +16 -6
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +19 -3
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +14 -4
- package/dist/cjs/{sqm-portal-email-verification-view-9f7b86a9.js → sqm-portal-email-verification-view-969cf926.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-e77710f0.js → sqm-portal-profile-view-96e936cf.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +7 -7
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +2 -2
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +4 -1
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +30 -0
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +16 -6
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +83 -5
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +17 -6
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +233 -1
- package/dist/collection/components/sqm-navigation-sidebar-item/useNavigationSidebarItem.js +9 -1
- package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +3 -3
- package/dist/collection/components/sqm-pagination/sqm-pagination.js +43 -0
- package/dist/collection/global/styles.js +70 -2
- package/dist/collection/global/styles.ts +70 -2
- package/dist/esm/{ShadowViewAddon-6a9f6e48.js → ShadowViewAddon-28c8307e.js} +1 -1
- package/dist/esm/{global-9d6f3bbe.js → global-5e65213d.js} +70 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/sqm-banking-info-form_17.entry.js +2 -2
- package/dist/esm/sqm-big-stat_41.entry.js +12 -3
- package/dist/esm/sqm-email-verification.entry.js +1 -1
- package/dist/esm/sqm-empty_4.entry.js +1 -1
- package/dist/esm/{sqm-invoice-table-view-fda573e4.js → sqm-invoice-table-view-a2c45ff7.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm/{sqm-navigation-sidebar-item-view-8f1c72bc.js → sqm-navigation-sidebar-item-view-9cc0f695.js} +17 -6
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +25 -2
- package/dist/esm/{sqm-navigation-sidebar-view-9d802b78.js → sqm-navigation-sidebar-view-f898265a.js} +16 -6
- package/dist/esm/sqm-navigation-sidebar.entry.js +20 -4
- package/dist/esm/sqm-pagination_3.entry.js +14 -4
- package/dist/esm/{sqm-portal-email-verification-view-14f1c22c.js → sqm-portal-email-verification-view-56a69db0.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-41116f1d.js → sqm-portal-profile-view-5cf91770.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +7 -7
- package/dist/esm-es5/{ShadowViewAddon-6a9f6e48.js → ShadowViewAddon-28c8307e.js} +1 -1
- package/dist/esm-es5/{global-9d6f3bbe.js → global-5e65213d.js} +4 -4
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_41.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/{sqm-invoice-table-view-fda573e4.js → sqm-invoice-table-view-a2c45ff7.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-9cc0f695.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-f898265a.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-14f1c22c.js → sqm-portal-email-verification-view-56a69db0.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-41116f1d.js → sqm-portal-profile-view-5cf91770.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/mint-components/global/styles.ts +70 -2
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-afbb3f73.entry.js → p-03622801.entry.js} +1 -1
- package/dist/mint-components/{p-52858682.system.js → p-05f785fb.system.js} +1 -1
- package/dist/mint-components/{p-868daffd.system.entry.js → p-125a798a.system.entry.js} +1 -1
- package/dist/mint-components/p-16c16702.js +1 -0
- package/dist/mint-components/p-1a6725c1.system.entry.js +1 -0
- package/dist/mint-components/{p-320d3c31.entry.js → p-1b983c86.entry.js} +1 -1
- package/dist/mint-components/{p-28b011a0.js → p-1e7e8dd2.js} +1 -1
- package/dist/mint-components/{p-45bb63c7.system.entry.js → p-26d60973.system.entry.js} +1 -1
- package/dist/mint-components/{p-8119a65e.system.entry.js → p-2d0163d2.system.entry.js} +1 -1
- package/dist/mint-components/{p-4027c743.system.entry.js → p-317264ac.system.entry.js} +1 -1
- package/dist/mint-components/{p-776260e8.js → p-37e86ead.js} +10 -10
- package/dist/mint-components/p-386c82ba.entry.js +13 -0
- package/dist/mint-components/{p-81d6479a.system.js → p-437c4eac.system.js} +1 -1
- package/dist/mint-components/p-46a672e4.entry.js +1 -0
- package/dist/mint-components/{p-82d04fd3.entry.js → p-48b3ef9c.entry.js} +1 -1
- package/dist/mint-components/p-4a3359aa.entry.js +1 -0
- package/dist/mint-components/p-5b1b2c10.system.entry.js +1 -0
- package/dist/mint-components/p-5d407714.system.entry.js +1 -0
- package/dist/mint-components/p-5e617dd6.system.js +1 -0
- package/dist/mint-components/{p-dce51a2e.system.entry.js → p-6131a44f.system.entry.js} +1 -1
- package/dist/mint-components/{p-1ae6c418.entry.js → p-61af919f.entry.js} +1 -1
- package/dist/mint-components/{p-72263a72.js → p-62a04a06.js} +1 -1
- package/dist/mint-components/p-66a2b1a4.js +1 -0
- package/dist/mint-components/{p-8d9328dd.entry.js → p-69e017e1.entry.js} +2 -2
- package/dist/mint-components/{p-12536a1f.system.entry.js → p-749cb346.system.entry.js} +1 -1
- package/dist/mint-components/{p-642b0650.system.js → p-773e2418.system.js} +9 -9
- package/dist/mint-components/p-861d4824.entry.js +13 -0
- package/dist/mint-components/p-9f2edf59.system.js +1 -0
- package/dist/mint-components/p-9f35f2b5.system.entry.js +1 -0
- package/dist/mint-components/{p-3d8c4dd2.entry.js → p-a041f0dc.entry.js} +7 -7
- package/dist/mint-components/{p-6d8f7c71.js → p-a34ac378.js} +1 -1
- package/dist/mint-components/{p-3c96533f.js → p-b1c78ed4.js} +1 -1
- package/dist/mint-components/{p-d30919cd.entry.js → p-be3ffc17.entry.js} +1 -1
- package/dist/mint-components/{p-4d91a1d6.system.js → p-d24a881e.system.js} +1 -1
- package/dist/mint-components/p-dbec319d.system.js +1 -0
- package/dist/mint-components/{p-b385c9f0.system.entry.js → p-e977ff3b.system.entry.js} +1 -1
- package/dist/mint-components/{p-8ab87bd4.entry.js → p-eadd9d56.entry.js} +1 -1
- package/dist/mint-components/{p-17da19a2.system.js → p-ebae139f.system.js} +1 -1
- package/dist/mint-components/{p-1b7e6ee9.entry.js → p-f189d803.entry.js} +1 -1
- package/dist/mint-components/{p-f9da2c34.system.entry.js → p-f5023fd8.system.entry.js} +1 -1
- package/dist/mint-components/{p-ead64a3d.system.entry.js → p-fb85fbb0.system.entry.js} +1 -1
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +2 -2
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout-view.d.ts +2 -0
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +6 -0
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.d.ts +1 -0
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +14 -0
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.d.ts +8 -0
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +57 -0
- package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +1 -0
- package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +9 -0
- package/dist/types/components.d.ts +171 -4
- package/dist/types/global/styles.d.ts +1 -1
- 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/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-9d802b78.js +0 -1
- package/dist/mint-components/p-094b3b54.system.entry.js +0 -1
- package/dist/mint-components/p-141bf5c1.system.entry.js +0 -1
- package/dist/mint-components/p-24db5c70.js +0 -1
- package/dist/mint-components/p-38e5c429.system.js +0 -1
- package/dist/mint-components/p-3db34d68.js +0 -1
- package/dist/mint-components/p-420554af.system.entry.js +0 -1
- package/dist/mint-components/p-635d5ef2.system.js +0 -1
- package/dist/mint-components/p-7ab21e4d.entry.js +0 -1
- package/dist/mint-components/p-7e3d84a3.entry.js +0 -13
- package/dist/mint-components/p-9abb9ab0.entry.js +0 -13
- package/dist/mint-components/p-b12e132b.system.entry.js +0 -1
- package/dist/mint-components/p-e6f50ffd.entry.js +0 -1
- package/dist/mint-components/p-ee06426a.system.js +0 -1
|
@@ -5,7 +5,7 @@ import { c as cjs } from './cjs-bdfb4486.js';
|
|
|
5
5
|
import { g as getProps } from './utils-334c1e34.js';
|
|
6
6
|
import './JSS-67b5cff8.js';
|
|
7
7
|
import './mixins-83f90fa1.js';
|
|
8
|
-
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-
|
|
8
|
+
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-9cc0f695.js';
|
|
9
9
|
|
|
10
10
|
function useNavigationSidebarItem(props) {
|
|
11
11
|
const currentPage = kn();
|
|
@@ -16,14 +16,29 @@ function useNavigationSidebarItem(props) {
|
|
|
16
16
|
data: {
|
|
17
17
|
label: props.label,
|
|
18
18
|
icon: props.icon,
|
|
19
|
-
path: props.path
|
|
19
|
+
path: props.path,
|
|
20
20
|
},
|
|
21
|
+
backgroundColor: props.backgroundColor,
|
|
22
|
+
backgroundHoverColor: props.backgroundHoverColor,
|
|
23
|
+
textColor: props.textColor,
|
|
24
|
+
textHoverColor: props.textHoverColor,
|
|
25
|
+
borderRadius: props.borderRadius,
|
|
26
|
+
backgroundFocusedColor: props.backgroundFocusedColor,
|
|
27
|
+
textFocusedColor: props.textFocusedColor,
|
|
28
|
+
padding: props.padding,
|
|
21
29
|
};
|
|
22
30
|
}
|
|
23
31
|
|
|
24
32
|
const NavigationSidebarItem = class {
|
|
25
33
|
constructor(hostRef) {
|
|
26
34
|
registerInstance(this, hostRef);
|
|
35
|
+
/**
|
|
36
|
+
* @uiName Padding
|
|
37
|
+
* @uiType string
|
|
38
|
+
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
39
|
+
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
40
|
+
*/
|
|
41
|
+
this.padding = "x-small";
|
|
27
42
|
h(this);
|
|
28
43
|
}
|
|
29
44
|
disconnectedCallback() { }
|
|
@@ -43,6 +58,14 @@ function useSidebarItemDemo(props) {
|
|
|
43
58
|
label: props.label || "Dashboard",
|
|
44
59
|
icon: props.icon || "house",
|
|
45
60
|
},
|
|
61
|
+
backgroundColor: props.backgroundColor,
|
|
62
|
+
backgroundHoverColor: props.backgroundHoverColor,
|
|
63
|
+
textColor: props.textColor,
|
|
64
|
+
textHoverColor: props.textHoverColor,
|
|
65
|
+
borderRadius: props.borderRadius,
|
|
66
|
+
backgroundFocusedColor: props.backgroundFocusedColor,
|
|
67
|
+
textFocusedColor: props.textFocusedColor,
|
|
68
|
+
padding: props.padding,
|
|
46
69
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
47
70
|
}
|
|
48
71
|
|
package/dist/esm/{sqm-navigation-sidebar-view-9d802b78.js → sqm-navigation-sidebar-view-f898265a.js}
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { h } from './index-91e7729f.js';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
function NavigationSidebarView(props, children) {
|
|
4
|
+
const vanillaStyle = `
|
|
4
5
|
|
|
5
6
|
* {
|
|
6
7
|
padding: 0;
|
|
@@ -8,6 +9,16 @@ const vanillaStyle = `
|
|
|
8
9
|
box-sizing: border-box;
|
|
9
10
|
}
|
|
10
11
|
|
|
12
|
+
.container {
|
|
13
|
+
background: var(--sqm-portal-background);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.menu-items {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
gap: 10px;
|
|
20
|
+
}
|
|
21
|
+
|
|
11
22
|
@keyframes slideIn {
|
|
12
23
|
0% {
|
|
13
24
|
left: -350px;
|
|
@@ -59,12 +70,12 @@ const vanillaStyle = `
|
|
|
59
70
|
flex-direction: column;
|
|
60
71
|
z-index: 100;
|
|
61
72
|
}
|
|
62
|
-
.menu-items {
|
|
73
|
+
.menu-items {
|
|
63
74
|
display: none;
|
|
64
75
|
padding: 20px;
|
|
65
76
|
border-right: 1px solid #eaeaea;
|
|
66
77
|
padding-top: 60px;
|
|
67
|
-
background:
|
|
78
|
+
background: var(--sqm-portal-background);
|
|
68
79
|
width: 100vw;
|
|
69
80
|
height: 100vh;
|
|
70
81
|
position: absolute;
|
|
@@ -128,7 +139,7 @@ const vanillaStyle = `
|
|
|
128
139
|
.toggler:checked ~ .hamburger > .line:nth-child(2),
|
|
129
140
|
.toggler:checked ~ .hamburger > .line:nth-child(3) {
|
|
130
141
|
width: 75%;
|
|
131
|
-
border-bottom: 3px solid
|
|
142
|
+
border-bottom: 3px solid ${props.mobileMenuColor};
|
|
132
143
|
margin: 0;
|
|
133
144
|
}
|
|
134
145
|
|
|
@@ -138,11 +149,10 @@ const vanillaStyle = `
|
|
|
138
149
|
height: 4px;
|
|
139
150
|
width: 100%;
|
|
140
151
|
margin-bottom: 3px;
|
|
141
|
-
border-bottom: 5px solid
|
|
152
|
+
border-bottom: 5px solid ${props.mobileMenuColor};
|
|
142
153
|
}
|
|
143
154
|
}
|
|
144
155
|
`;
|
|
145
|
-
function NavigationSidebarView(props, children) {
|
|
146
156
|
return (h("div", { class: "container", part: "sqm-base" },
|
|
147
157
|
h("style", null, vanillaStyle),
|
|
148
158
|
h("input", Object.assign({ type: "checkbox", class: "toggler" }, props)),
|
|
@@ -1,21 +1,31 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
|
|
2
2
|
import { n as h, k as useState, f as useEffect } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
-
import { k as kn, H } from './index.module-89a79f66.js';
|
|
4
|
-
import {
|
|
3
|
+
import { i as isDemo, k as kn, H } from './index.module-89a79f66.js';
|
|
4
|
+
import { c as cjs } from './cjs-bdfb4486.js';
|
|
5
|
+
import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-f898265a.js';
|
|
5
6
|
|
|
6
7
|
const NavigationSidebar = class {
|
|
7
8
|
constructor(hostRef) {
|
|
8
9
|
registerInstance(this, hostRef);
|
|
9
10
|
this.ignored = true;
|
|
11
|
+
/**
|
|
12
|
+
* @uiName Text color
|
|
13
|
+
* @uiWidget color
|
|
14
|
+
* @format color
|
|
15
|
+
* @uiGroup Style
|
|
16
|
+
*/
|
|
17
|
+
this.mobileMenuColor = "var(--sqm-text, #444445)";
|
|
10
18
|
h(this);
|
|
11
19
|
}
|
|
12
20
|
disconnectedCallback() { }
|
|
13
21
|
render() {
|
|
14
|
-
const props =
|
|
22
|
+
const props = isDemo()
|
|
23
|
+
? useDemoNavigationSidebar(this)
|
|
24
|
+
: useNavigationSidebar(this);
|
|
15
25
|
return (h$1(NavigationSidebarView, Object.assign({}, props), h$1("slot", null)));
|
|
16
26
|
}
|
|
17
27
|
};
|
|
18
|
-
function useNavigationSidebar() {
|
|
28
|
+
function useNavigationSidebar(props) {
|
|
19
29
|
const location = kn();
|
|
20
30
|
const programId = H();
|
|
21
31
|
const [checked, setChecked] = useState(false);
|
|
@@ -27,9 +37,15 @@ function useNavigationSidebar() {
|
|
|
27
37
|
setChecked(e.target.checked);
|
|
28
38
|
}
|
|
29
39
|
return {
|
|
40
|
+
mobileMenuColor: props.mobileMenuColor,
|
|
30
41
|
checked,
|
|
31
42
|
onClick,
|
|
32
43
|
};
|
|
33
44
|
}
|
|
45
|
+
function useDemoNavigationSidebar(props) {
|
|
46
|
+
return cjs({
|
|
47
|
+
mobileMenuColor: props.mobileMenuColor,
|
|
48
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
49
|
+
}
|
|
34
50
|
|
|
35
51
|
export { NavigationSidebar as sqm_navigation_sidebar };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, F as Fragment, r as registerInstance } from './index-91e7729f.js';
|
|
2
2
|
import { n as h$1, k as useState } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
3
|
+
import { i as intl } from './global-5e65213d.js';
|
|
4
4
|
import { F as Fn, i as isDemo, d as dist, H, J, w as wn, $ as $e, B } from './index.module-89a79f66.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { g as getProps } from './utils-334c1e34.js';
|
|
@@ -25,7 +25,7 @@ const style = {
|
|
|
25
25
|
const sheet = createStyleSheet(style);
|
|
26
26
|
const styleString = sheet.toString();
|
|
27
27
|
function PaginationView(props) {
|
|
28
|
-
const { states, callbacks, text } = props;
|
|
28
|
+
const { states, callbacks, text, buttonType } = props;
|
|
29
29
|
const { onNext, onPrev } = callbacks;
|
|
30
30
|
const { currentPage, totalPages, loading } = states;
|
|
31
31
|
if (totalPages === 1)
|
|
@@ -33,10 +33,10 @@ function PaginationView(props) {
|
|
|
33
33
|
return (h("span", { class: sheet.classes.Container, part: "sqm-base" },
|
|
34
34
|
h("style", { type: "text/css" }, styleString),
|
|
35
35
|
!loading && (h(Fragment, null,
|
|
36
|
-
h("sl-button", { onClick: onPrev, part: "sqm-pagination-button", circle: true, disabled: currentPage === 1 },
|
|
36
|
+
h("sl-button", { exportparts: `base: ${props.buttonType === "primary" ? "primary" : "secondary"}button-base`, onClick: onPrev, part: "sqm-pagination-button", circle: true, disabled: currentPage === 1 },
|
|
37
37
|
h("sl-icon", { name: "chevron-left", label: "Previous Page" })),
|
|
38
38
|
h("div", { class: sheet.classes.TextContainer }, text.paginationText))),
|
|
39
|
-
h("sl-button", { onClick: onNext, part: "sqm-pagination-button", circle: true, disabled: currentPage === totalPages },
|
|
39
|
+
h("sl-button", { exportparts: `base: ${props.buttonType === "primary" ? "primary" : "secondary"}button-base`, onClick: onNext, part: "sqm-pagination-button", circle: true, disabled: currentPage === totalPages },
|
|
40
40
|
h("sl-icon", { name: "chevron-right", label: "Previous Page" }))));
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -75,6 +75,15 @@ const Pagination = class {
|
|
|
75
75
|
* @uiName Pagination text
|
|
76
76
|
*/
|
|
77
77
|
this.paginationText = "{currentPage} of {totalPages}";
|
|
78
|
+
/**
|
|
79
|
+
* The type of the button (primary or secondary) that will be used to copy the link.
|
|
80
|
+
* @uiName Button Type
|
|
81
|
+
* @uiType string
|
|
82
|
+
* @uiEnum ["primary", "secondary"]
|
|
83
|
+
* @uiEnumNames ["Primary", "Secondary"]
|
|
84
|
+
* @uiGroup Style
|
|
85
|
+
*/
|
|
86
|
+
this.buttonType = "secondary";
|
|
78
87
|
h$1(this);
|
|
79
88
|
}
|
|
80
89
|
disconnectedCallback() { }
|
|
@@ -93,6 +102,7 @@ function useDemoPagination(props) {
|
|
|
93
102
|
totalPages: 5,
|
|
94
103
|
loading: false,
|
|
95
104
|
},
|
|
105
|
+
buttonType: props.buttonType,
|
|
96
106
|
callbacks: {
|
|
97
107
|
onNext: () => setCurrentPage(currentPage + 1),
|
|
98
108
|
onPrev: () => setCurrentPage(currentPage - 1),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-91e7729f.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-5e65213d.js';
|
|
3
3
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
4
4
|
import { A as AuthWrapper, a as AuthColumn } from './mixins-83f90fa1.js';
|
|
5
5
|
import { T as TextSpanView } from './sqm-text-span-view-c577cc60.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
|
|
2
2
|
import { k as useState, m as useRef, f as useEffect, n as h } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
-
import './global-
|
|
3
|
+
import './global-5e65213d.js';
|
|
4
4
|
import { l as ln, n as nn, J, j as jn, u as useCallback, i as isDemo } from './index.module-89a79f66.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './JSS-67b5cff8.js';
|
|
7
7
|
import './mixins-83f90fa1.js';
|
|
8
8
|
import './sqm-text-span-view-c577cc60.js';
|
|
9
|
-
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-
|
|
9
|
+
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-56a69db0.js';
|
|
10
10
|
|
|
11
11
|
function usePortalEmailVerification(props) {
|
|
12
12
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
package/dist/esm/{sqm-portal-profile-view-41116f1d.js → sqm-portal-profile-view-5cf91770.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-91e7729f.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-5e65213d.js';
|
|
3
3
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
4
4
|
import { T as TextSpanView } from './sqm-text-span-view-c577cc60.js';
|
|
5
5
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
|
|
2
2
|
import { k as useState, f as useEffect, n as h } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
-
import './global-
|
|
3
|
+
import './global-5e65213d.js';
|
|
4
4
|
import { d as dist, J, w as wn, $ as $e, i as isDemo } from './index.module-89a79f66.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { g as getProps } from './utils-334c1e34.js';
|
|
7
7
|
import './JSS-67b5cff8.js';
|
|
8
8
|
import './sqm-text-span-view-c577cc60.js';
|
|
9
|
-
import { P as PortalProfileView } from './sqm-portal-profile-view-
|
|
9
|
+
import { P as PortalProfileView } from './sqm-portal-profile-view-5cf91770.js';
|
|
10
10
|
import { i as isEmpty } from './utilities-5b0ca040.js';
|
|
11
11
|
|
|
12
12
|
const GET_USER = dist.gql `
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, g as getElement, c as Host } from './index-91e7729f.js';
|
|
2
2
|
import { n as h, j as useReducer, u as useMemo, f as useEffect } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
3
|
+
import { i as intl } from './global-5e65213d.js';
|
|
4
4
|
import { i as isDemo } from './index.module-89a79f66.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { l as luxonLocale } from './utils-334c1e34.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host } from './index-91e7729f.js';
|
|
2
2
|
import { b as browser, j as useReducer, f as useEffect, n as h$1, u as useMemo } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
3
|
+
import { i as intl } from './global-5e65213d.js';
|
|
4
4
|
import { d as dist, J, H, L, w as wn, R as Rn, i as isDemo } from './index.module-89a79f66.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { l as luxonLocale } from './utils-334c1e34.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host } from './index-91e7729f.js';
|
|
2
2
|
import { a as commonjsGlobal, u as useMemo, k as useState, f as useEffect, c as createCommonjsModule, n as h$1 } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
-
import './global-
|
|
3
|
+
import './global-5e65213d.js';
|
|
4
4
|
import { j as jn, k as kn, b as setUserIdentity, d as dist, X as Xe, p as setProgramId } from './index.module-89a79f66.js';
|
|
5
5
|
import './cjs-bdfb4486.js';
|
|
6
6
|
import './utils-334c1e34.js';
|
|
@@ -18,22 +18,22 @@ import './index-ffa26b43.js';
|
|
|
18
18
|
import { E as EmailRegistrationView } from './email-registration-view-a7818cf2.js';
|
|
19
19
|
import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-753c8d4a.js';
|
|
20
20
|
import { L as LogoutCurrentUserView } from './sqm-logout-current-user-view-8ef8180f.js';
|
|
21
|
-
import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-
|
|
22
|
-
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-
|
|
23
|
-
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-
|
|
21
|
+
import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-f898265a.js';
|
|
22
|
+
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-9cc0f695.js';
|
|
23
|
+
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-56a69db0.js';
|
|
24
24
|
import { P as PortalForgotPasswordView } from './sqm-portal-forgot-password-view-50444a7c.js';
|
|
25
25
|
import { P as PortalLoginView } from './sqm-portal-login-view-37c85d04.js';
|
|
26
26
|
import { B as BaseRegistrationFormView } from './sqm-base-registration-form-view-31f1cb87.js';
|
|
27
27
|
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-21d57492.js';
|
|
28
|
-
import { P as PortalProfileView } from './sqm-portal-profile-view-
|
|
28
|
+
import { P as PortalProfileView } from './sqm-portal-profile-view-5cf91770.js';
|
|
29
29
|
import './utilities-5b0ca040.js';
|
|
30
30
|
import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-b000ffc5.js';
|
|
31
31
|
import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-2983ba9b.js';
|
|
32
32
|
import './ErrorView-48e2b969.js';
|
|
33
33
|
import { Q as QrCodeView } from './sqm-qr-code-view-10b8b4cb.js';
|
|
34
|
-
import { S as ShareButtonView, L as LeaderboardView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalRegisterView, C as ChangeMarktingView, T as TaskCardView, f as ProgressBarView, g as PoweredByImg$1, h as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, i as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as CardFeedView, K as CouponCodeView, M as ProgressBar$2, O as autoColorScaleCss, Q as ShadowViewAddon } from './ShadowViewAddon-
|
|
34
|
+
import { S as ShareButtonView, L as LeaderboardView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalRegisterView, C as ChangeMarktingView, T as TaskCardView, f as ProgressBarView, g as PoweredByImg$1, h as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, i as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as CardFeedView, K as CouponCodeView, M as ProgressBar$2, O as autoColorScaleCss, Q as ShadowViewAddon } from './ShadowViewAddon-28c8307e.js';
|
|
35
35
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-1683ae32.js';
|
|
36
|
-
import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-
|
|
36
|
+
import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-a2c45ff7.js';
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* lodash (Custom Build) <https://lodash.com/>
|