@saasquatch/mint-components 1.5.2 → 1.5.3-2
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/CHANGELOG.md +18 -1
- package/dist/cjs/{ShadowViewAddon-9b256c28.js → ShadowViewAddon-8de07cc1.js} +58 -27
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/{sqm-big-stat_34.cjs.entry.js → sqm-big-stat_35.cjs.entry.js} +129 -55
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +224 -43
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/sqm-checkbox-field/CheckboxField.stories.js +4 -0
- package/dist/collection/components/sqm-checkbox-field/UseCheckboxField.stories.js +5 -1
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +1 -1
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +18 -8
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +1 -1
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +18 -8
- package/dist/collection/components/sqm-hero/Hero.stories.js +1 -1
- package/dist/collection/components/sqm-input-field/InputField.stories.js +81 -0
- package/dist/collection/components/sqm-input-field/UseInputField.stories.js +71 -0
- package/dist/collection/components/sqm-input-field/sqm-input-field-view.js +33 -0
- package/dist/collection/components/sqm-input-field/sqm-input-field.js +197 -0
- package/dist/collection/components/sqm-input-field/useInputField.js +10 -0
- package/dist/collection/components/sqm-name-fields/NameFields.stories.js +2 -2
- package/dist/collection/components/sqm-portal-footer/PortalFooter.stories.js +1 -1
- package/dist/collection/components/sqm-program-menu/ProgramMenu.stories.js +1 -1
- package/dist/collection/components/sqm-referral-iframe/ReferralIframe.stories.js +1 -1
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +5 -1
- package/dist/esm/{ShadowViewAddon-b98faaf1.js → ShadowViewAddon-63a40a95.js} +58 -28
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/{sqm-big-stat_34.entry.js → sqm-big-stat_35.entry.js} +131 -58
- package/dist/esm/sqm-stencilbook.entry.js +224 -43
- package/dist/esm-es5/{ShadowViewAddon-b98faaf1.js → ShadowViewAddon-63a40a95.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-big-stat_35.entry.js +1 -0
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-436da6b8.system.js +1 -1
- package/dist/mint-components/{p-f702ffef.js → p-86263d7f.js} +1 -1
- package/dist/mint-components/p-9e34ff81.system.entry.js +1 -0
- package/dist/mint-components/p-aa5474be.system.entry.js +1 -0
- package/dist/mint-components/p-d336a610.system.js +1 -0
- package/dist/mint-components/{p-52ca31c9.entry.js → p-e218474f.entry.js} +12 -12
- package/dist/mint-components/p-ff22834a.entry.js +9 -0
- package/dist/types/components/sqm-checkbox-field/CheckboxField.stories.d.ts +3 -0
- package/dist/types/components/sqm-checkbox-field/UseCheckboxField.stories.d.ts +3 -0
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field-view.d.ts +1 -1
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +2 -2
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field-view.d.ts +1 -1
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +2 -2
- package/dist/types/components/sqm-input-field/InputField.stories.d.ts +15 -0
- package/dist/types/components/sqm-input-field/UseInputField.stories.d.ts +43 -0
- package/dist/types/components/sqm-input-field/sqm-input-field-view.d.ts +14 -0
- package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +35 -0
- package/dist/types/components/sqm-input-field/useInputField.d.ts +5 -0
- package/dist/types/components.d.ts +74 -8
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/shoelace/assets/icons/123.svg +3 -0
- package/shoelace/assets/icons/activity.svg +3 -0
- package/shoelace/assets/icons/apple.svg +4 -0
- package/shoelace/assets/icons/bandaid-fill.svg +3 -0
- package/shoelace/assets/icons/bandaid.svg +4 -0
- package/shoelace/assets/icons/bank.svg +3 -0
- package/shoelace/assets/icons/bank2.svg +3 -0
- package/shoelace/assets/icons/behance.svg +3 -0
- package/shoelace/assets/icons/bell-slash-fill.svg +3 -0
- package/shoelace/assets/icons/bell-slash.svg +3 -0
- package/shoelace/assets/icons/bluetooth.svg +3 -0
- package/shoelace/assets/icons/body-text.svg +3 -0
- package/shoelace/assets/icons/boombox-fill.svg +4 -0
- package/shoelace/assets/icons/boombox.svg +6 -0
- package/shoelace/assets/icons/boxes.svg +3 -0
- package/shoelace/assets/icons/cash-coin.svg +6 -0
- package/shoelace/assets/icons/check-lg.svg +3 -0
- package/shoelace/assets/icons/cloud-haze2.svg +3 -0
- package/shoelace/assets/icons/coin.svg +5 -0
- package/shoelace/assets/icons/currency-bitcoin.svg +3 -0
- package/shoelace/assets/icons/currency-dollar.svg +3 -0
- package/shoelace/assets/icons/currency-euro.svg +3 -0
- package/shoelace/assets/icons/currency-exchange.svg +3 -0
- package/shoelace/assets/icons/currency-pound.svg +3 -0
- package/shoelace/assets/icons/currency-yen.svg +3 -0
- package/shoelace/assets/icons/dash-lg.svg +3 -0
- package/shoelace/assets/icons/device-hdd-fill.svg +4 -0
- package/shoelace/assets/icons/device-hdd.svg +5 -0
- package/shoelace/assets/icons/device-ssd-fill.svg +4 -0
- package/shoelace/assets/icons/device-ssd.svg +4 -0
- package/shoelace/assets/icons/displayport-fill.svg +3 -0
- package/shoelace/assets/icons/displayport.svg +4 -0
- package/shoelace/assets/icons/dpad-fill.svg +3 -0
- package/shoelace/assets/icons/dpad.svg +4 -0
- package/shoelace/assets/icons/dribbble.svg +3 -0
- package/shoelace/assets/icons/ear-fill.svg +3 -0
- package/shoelace/assets/icons/ear.svg +3 -0
- package/shoelace/assets/icons/easel2-fill.svg +4 -0
- package/shoelace/assets/icons/easel2.svg +3 -0
- package/shoelace/assets/icons/easel3-fill.svg +3 -0
- package/shoelace/assets/icons/easel3.svg +3 -0
- package/shoelace/assets/icons/envelope-check-fill.svg +4 -0
- package/shoelace/assets/icons/envelope-check.svg +4 -0
- package/shoelace/assets/icons/envelope-dash-fill.svg +4 -0
- package/shoelace/assets/icons/envelope-dash.svg +4 -0
- package/shoelace/assets/icons/envelope-exclamation-fill.svg +4 -0
- package/shoelace/assets/icons/envelope-exclamation.svg +4 -0
- package/shoelace/assets/icons/envelope-plus-fill.svg +4 -0
- package/shoelace/assets/icons/envelope-plus.svg +4 -0
- package/shoelace/assets/icons/envelope-slash-fill.svg +4 -0
- package/shoelace/assets/icons/envelope-slash.svg +4 -0
- package/shoelace/assets/icons/envelope-x-fill.svg +4 -0
- package/shoelace/assets/icons/envelope-x.svg +4 -0
- package/shoelace/assets/icons/ethernet.svg +4 -0
- package/shoelace/assets/icons/exclamation-lg.svg +3 -0
- package/shoelace/assets/icons/explicit-fill.svg +3 -0
- package/shoelace/assets/icons/explicit.svg +4 -0
- package/shoelace/assets/icons/fan.svg +4 -0
- package/shoelace/assets/icons/file-earmark-pdf-fill.svg +4 -0
- package/shoelace/assets/icons/file-earmark-pdf.svg +4 -0
- package/shoelace/assets/icons/file-pdf-fill.svg +4 -0
- package/shoelace/assets/icons/file-pdf.svg +4 -0
- package/shoelace/assets/icons/fingerprint.svg +7 -0
- package/shoelace/assets/icons/gender-ambiguous.svg +3 -0
- package/shoelace/assets/icons/gender-female.svg +3 -0
- package/shoelace/assets/icons/gender-male.svg +3 -0
- package/shoelace/assets/icons/gender-trans.svg +3 -0
- package/shoelace/assets/icons/git.svg +3 -0
- package/shoelace/assets/icons/gpu-card.svg +5 -0
- package/shoelace/assets/icons/graph-down-arrow.svg +3 -0
- package/shoelace/assets/icons/graph-up-arrow.svg +3 -0
- package/shoelace/assets/icons/hdmi-fill.svg +3 -0
- package/shoelace/assets/icons/hdmi.svg +4 -0
- package/shoelace/assets/icons/headset-vr.svg +4 -0
- package/shoelace/assets/icons/hypnotize.svg +4 -0
- package/shoelace/assets/icons/infinity.svg +3 -0
- package/shoelace/assets/icons/info-lg.svg +3 -0
- package/shoelace/assets/icons/line.svg +3 -0
- package/shoelace/assets/icons/list-columns-reverse.svg +3 -0
- package/shoelace/assets/icons/list-columns.svg +3 -0
- package/shoelace/assets/icons/magic.svg +3 -0
- package/shoelace/assets/icons/mastodon.svg +3 -0
- package/shoelace/assets/icons/medium.svg +3 -0
- package/shoelace/assets/icons/memory.svg +3 -0
- package/shoelace/assets/icons/messenger.svg +3 -0
- package/shoelace/assets/icons/meta.svg +3 -0
- package/shoelace/assets/icons/microsoft.svg +3 -0
- package/shoelace/assets/icons/modem-fill.svg +3 -0
- package/shoelace/assets/icons/modem.svg +4 -0
- package/shoelace/assets/icons/mortarboard-fill.svg +4 -0
- package/shoelace/assets/icons/mortarboard.svg +4 -0
- package/shoelace/assets/icons/motherboard-fill.svg +4 -0
- package/shoelace/assets/icons/motherboard.svg +4 -0
- package/shoelace/assets/icons/nintendo-switch.svg +4 -0
- package/shoelace/assets/icons/optical-audio-fill.svg +4 -0
- package/shoelace/assets/icons/optical-audio.svg +5 -0
- package/shoelace/assets/icons/paypal.svg +3 -0
- package/shoelace/assets/icons/pc-display-horizontal.svg +3 -0
- package/shoelace/assets/icons/pc-display.svg +3 -0
- package/shoelace/assets/icons/pc-horizontal.svg +3 -0
- package/shoelace/assets/icons/pc.svg +3 -0
- package/shoelace/assets/icons/pci-card.svg +4 -0
- package/shoelace/assets/icons/person-rolodex.svg +4 -0
- package/shoelace/assets/icons/person-video.svg +4 -0
- package/shoelace/assets/icons/person-video2.svg +4 -0
- package/shoelace/assets/icons/person-video3.svg +4 -0
- package/shoelace/assets/icons/person-workspace.svg +4 -0
- package/shoelace/assets/icons/piggy-bank-fill.svg +3 -0
- package/shoelace/assets/icons/piggy-bank.svg +4 -0
- package/shoelace/assets/icons/pin-map-fill.svg +4 -0
- package/shoelace/assets/icons/pin-map.svg +4 -0
- package/shoelace/assets/icons/pinterest.svg +3 -0
- package/shoelace/assets/icons/playstation.svg +3 -0
- package/shoelace/assets/icons/plus-lg.svg +3 -0
- package/shoelace/assets/icons/plus-slash-minus.svg +3 -0
- package/shoelace/assets/icons/projector-fill.svg +3 -0
- package/shoelace/assets/icons/projector.svg +4 -0
- package/shoelace/assets/icons/qr-code-scan.svg +7 -0
- package/shoelace/assets/icons/qr-code.svg +7 -0
- package/shoelace/assets/icons/question-lg.svg +3 -0
- package/shoelace/assets/icons/quora.svg +3 -0
- package/shoelace/assets/icons/quote.svg +3 -0
- package/shoelace/assets/icons/radioactive.svg +4 -0
- package/shoelace/assets/icons/recycle.svg +3 -0
- package/shoelace/assets/icons/reddit.svg +4 -0
- package/shoelace/assets/icons/robot.svg +4 -0
- package/shoelace/assets/icons/router-fill.svg +6 -0
- package/shoelace/assets/icons/router.svg +6 -0
- package/shoelace/assets/icons/safe-fill.svg +4 -0
- package/shoelace/assets/icons/safe.svg +4 -0
- package/shoelace/assets/icons/safe2-fill.svg +4 -0
- package/shoelace/assets/icons/safe2.svg +4 -0
- package/shoelace/assets/icons/sd-card-fill.svg +3 -0
- package/shoelace/assets/icons/sd-card.svg +4 -0
- package/shoelace/assets/icons/send-check-fill.svg +4 -0
- package/shoelace/assets/icons/send-check.svg +4 -0
- package/shoelace/assets/icons/send-dash-fill.svg +4 -0
- package/shoelace/assets/icons/send-dash.svg +4 -0
- package/shoelace/assets/icons/send-exclamation-fill.svg +4 -0
- package/shoelace/assets/icons/send-exclamation.svg +4 -0
- package/shoelace/assets/icons/send-fill.svg +3 -0
- package/shoelace/assets/icons/send-plus-fill.svg +4 -0
- package/shoelace/assets/icons/send-plus.svg +4 -0
- package/shoelace/assets/icons/send-slash-fill.svg +4 -0
- package/shoelace/assets/icons/send-slash.svg +4 -0
- package/shoelace/assets/icons/send-x-fill.svg +4 -0
- package/shoelace/assets/icons/send-x.svg +4 -0
- package/shoelace/assets/icons/send.svg +3 -0
- package/shoelace/assets/icons/signal.svg +3 -0
- package/shoelace/assets/icons/skype.svg +3 -0
- package/shoelace/assets/icons/slash-lg.svg +3 -0
- package/shoelace/assets/icons/snapchat.svg +3 -0
- package/shoelace/assets/icons/spotify.svg +3 -0
- package/shoelace/assets/icons/stack-overflow.svg +4 -0
- package/shoelace/assets/icons/steam.svg +4 -0
- package/shoelace/assets/icons/strava.svg +3 -0
- package/shoelace/assets/icons/terminal-dash.svg +4 -0
- package/shoelace/assets/icons/terminal-plus.svg +4 -0
- package/shoelace/assets/icons/terminal-split.svg +4 -0
- package/shoelace/assets/icons/terminal-x.svg +4 -0
- package/shoelace/assets/icons/thunderbolt-fill.svg +3 -0
- package/shoelace/assets/icons/thunderbolt.svg +4 -0
- package/shoelace/assets/icons/ticket-detailed-fill.svg +3 -0
- package/shoelace/assets/icons/ticket-detailed.svg +4 -0
- package/shoelace/assets/icons/ticket-fill.svg +3 -0
- package/shoelace/assets/icons/ticket-perforated-fill.svg +3 -0
- package/shoelace/assets/icons/ticket-perforated.svg +4 -0
- package/shoelace/assets/icons/ticket.svg +3 -0
- package/shoelace/assets/icons/tiktok.svg +3 -0
- package/shoelace/assets/icons/translate.svg +4 -0
- package/shoelace/assets/icons/usb-c-fill.svg +3 -0
- package/shoelace/assets/icons/usb-c.svg +4 -0
- package/shoelace/assets/icons/usb-drive-fill.svg +3 -0
- package/shoelace/assets/icons/usb-drive.svg +3 -0
- package/shoelace/assets/icons/usb-fill.svg +3 -0
- package/shoelace/assets/icons/usb-micro-fill.svg +3 -0
- package/shoelace/assets/icons/usb-micro.svg +4 -0
- package/shoelace/assets/icons/usb-mini-fill.svg +3 -0
- package/shoelace/assets/icons/usb-mini.svg +4 -0
- package/shoelace/assets/icons/usb-plug-fill.svg +3 -0
- package/shoelace/assets/icons/usb-plug.svg +3 -0
- package/shoelace/assets/icons/usb-symbol.svg +3 -0
- package/shoelace/assets/icons/usb.svg +4 -0
- package/shoelace/assets/icons/vimeo.svg +3 -0
- package/shoelace/assets/icons/webcam-fill.svg +4 -0
- package/shoelace/assets/icons/webcam.svg +4 -0
- package/shoelace/assets/icons/window-dash.svg +5 -0
- package/shoelace/assets/icons/window-desktop.svg +4 -0
- package/shoelace/assets/icons/window-fullscreen.svg +4 -0
- package/shoelace/assets/icons/window-plus.svg +5 -0
- package/shoelace/assets/icons/window-split.svg +4 -0
- package/shoelace/assets/icons/window-stack.svg +4 -0
- package/shoelace/assets/icons/window-x.svg +5 -0
- package/shoelace/assets/icons/windows.svg +3 -0
- package/shoelace/assets/icons/wordpress.svg +5 -0
- package/shoelace/assets/icons/x-lg.svg +4 -0
- package/shoelace/assets/icons/xbox.svg +3 -0
- package/shoelace/assets/icons/yin-yang.svg +4 -0
- package/shoelace/themes/themes/dark.styles.d.ts +2 -0
- package/shoelace/themes/themes/dark.styles.js +531 -0
- package/shoelace/themes/themes/light.css +439 -0
- package/shoelace/themes/themes/light.styles.d.ts +2 -0
- package/shoelace/themes/themes/light.styles.js +531 -0
- package/dist/esm-es5/sqm-big-stat_34.entry.js +0 -1
- package/dist/mint-components/p-842aa194.system.js +0 -1
- package/dist/mint-components/p-8a1a1fb4.system.entry.js +0 -1
- package/dist/mint-components/p-a624b8d7.system.entry.js +0 -1
- package/dist/mint-components/p-b176c55c.entry.js +0 -9
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -1
- package/dist/types/stories/features.d.ts +0 -4
- package/dist/types/stories/templates.d.ts +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
|
-
import { m as h, e as useEffect, y, o as d,
|
|
2
|
+
import { m as h, e as useEffect, k as useState, y, o as d, f as useRef, b as browser, u as useReducer } from './stencil-hooks.module-acc8a613.js';
|
|
3
3
|
import { i as intl } from './global-15cdf41a.js';
|
|
4
4
|
import { u as useCallback } from './use-callback-7e0bfd3b.js';
|
|
5
5
|
import { j as jn, P, d as dist, i as ie, b as sn, q as qe, M, r as rn, c as dn, g as $e, E as Ee, D as De, H as He, l as ln, R as Rn, A as An } from './index.module-f5e17a4e.js';
|
|
@@ -11,10 +11,10 @@ import { c as createStyleSheet } from './JSS-418cab16.js';
|
|
|
11
11
|
import { a as useRequestRerender } from './re-render-8f0a7ab1.js';
|
|
12
12
|
import { u as useChildElements } from './useChildElements-3ffd7077.js';
|
|
13
13
|
import './luxon-f44215d9.js';
|
|
14
|
-
import { g as getProps,
|
|
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,
|
|
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-63a40a95.js';
|
|
18
18
|
import './sqm-portal-section-view-c8d1c727.js';
|
|
19
19
|
|
|
20
20
|
const BigStat = class {
|
|
@@ -119,6 +119,51 @@ const CardFeed = class {
|
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
121
|
|
|
122
|
+
const style = {
|
|
123
|
+
IconStyle: {
|
|
124
|
+
display: "block",
|
|
125
|
+
position: "absolute",
|
|
126
|
+
top: "23px",
|
|
127
|
+
},
|
|
128
|
+
DivStyle: {
|
|
129
|
+
marginLeft: "30px",
|
|
130
|
+
},
|
|
131
|
+
Details: {
|
|
132
|
+
marginLeft: "30px",
|
|
133
|
+
},
|
|
134
|
+
Heading: {
|
|
135
|
+
display: "inline-block",
|
|
136
|
+
},
|
|
137
|
+
Alert: {
|
|
138
|
+
margin: "30px",
|
|
139
|
+
},
|
|
140
|
+
};
|
|
141
|
+
const sheet = createStyleSheet(style);
|
|
142
|
+
const styleString = sheet.toString();
|
|
143
|
+
function RequiredPropsError({ missingProps }) {
|
|
144
|
+
if (!missingProps)
|
|
145
|
+
return false;
|
|
146
|
+
const host = P();
|
|
147
|
+
const [detailsOpen, setDetailsOpen] = useState(false);
|
|
148
|
+
return (h$1("sl-alert", { type: "danger", open: true, class: sheet.classes.Alert },
|
|
149
|
+
h$1("style", { type: "text/css" }, styleString),
|
|
150
|
+
h$1("div", { slot: "icon", class: sheet.classes.IconStyle },
|
|
151
|
+
h$1("sl-icon", { name: "exclamation-octagon" })),
|
|
152
|
+
h$1("div", { class: sheet.classes.DivStyle },
|
|
153
|
+
h$1("h2", { class: sheet.classes.Heading }, "There was a problem loading this page"),
|
|
154
|
+
h$1("p", null, "There was a technical problem that prevented this page from loading. Please contact us with the link to this page.")),
|
|
155
|
+
h$1("details", { class: sheet.classes.Details },
|
|
156
|
+
h$1("summary", { onClick: () => setDetailsOpen(!detailsOpen) },
|
|
157
|
+
detailsOpen ? "Less" : "More",
|
|
158
|
+
" details"),
|
|
159
|
+
h$1("p", null,
|
|
160
|
+
"Error occured while loading ",
|
|
161
|
+
`<${host.tagName.toLowerCase()}>`,
|
|
162
|
+
". Values for the following attributes are missing:"),
|
|
163
|
+
h$1("ul", null, missingProps.map((prop) => (h$1("li", null,
|
|
164
|
+
h$1("strong", null, prop.attribute))))))));
|
|
165
|
+
}
|
|
166
|
+
|
|
122
167
|
const FORM_VALIDATION_CONTEXT = "sq:validation-state";
|
|
123
168
|
function useValidationState(formState) {
|
|
124
169
|
const host = P();
|
|
@@ -162,13 +207,22 @@ const CheckboxField = class {
|
|
|
162
207
|
*/
|
|
163
208
|
this.errorMessage = "Must be checked";
|
|
164
209
|
/**
|
|
165
|
-
* @uiName
|
|
210
|
+
* @uiName Optional
|
|
166
211
|
*/
|
|
167
|
-
this.
|
|
212
|
+
this.checkboxOptional = false;
|
|
168
213
|
h(this);
|
|
169
214
|
}
|
|
170
215
|
disconnectedCallback() { }
|
|
171
216
|
render() {
|
|
217
|
+
const missingProps = getMissingProps([
|
|
218
|
+
{
|
|
219
|
+
attribute: "checkbox-name",
|
|
220
|
+
value: this.checkboxName,
|
|
221
|
+
},
|
|
222
|
+
]);
|
|
223
|
+
if (missingProps) {
|
|
224
|
+
return h$1(RequiredPropsError, { missingProps: missingProps });
|
|
225
|
+
}
|
|
172
226
|
const content = {
|
|
173
227
|
...getProps(this),
|
|
174
228
|
};
|
|
@@ -279,13 +333,22 @@ const DropdownField = class {
|
|
|
279
333
|
*/
|
|
280
334
|
this.errorMessage = "Select an option";
|
|
281
335
|
/**
|
|
282
|
-
* @uiName
|
|
336
|
+
* @uiName Optional
|
|
283
337
|
*/
|
|
284
|
-
this.
|
|
338
|
+
this.dropdownOptional = false;
|
|
285
339
|
h(this);
|
|
286
340
|
}
|
|
287
341
|
disconnectedCallback() { }
|
|
288
342
|
render() {
|
|
343
|
+
const missingProps = getMissingProps([
|
|
344
|
+
{
|
|
345
|
+
attribute: "dropdown-name",
|
|
346
|
+
value: this.dropdownName,
|
|
347
|
+
},
|
|
348
|
+
]);
|
|
349
|
+
if (missingProps) {
|
|
350
|
+
return h$1(RequiredPropsError, { missingProps: missingProps });
|
|
351
|
+
}
|
|
289
352
|
const content = {
|
|
290
353
|
...getProps(this),
|
|
291
354
|
selectOptions: h$1("slot", null),
|
|
@@ -737,6 +800,61 @@ const SqmHookStoryContainer = class {
|
|
|
737
800
|
}
|
|
738
801
|
};
|
|
739
802
|
|
|
803
|
+
function useInputField() {
|
|
804
|
+
const validationState = d(FORM_VALIDATION_CONTEXT);
|
|
805
|
+
return {
|
|
806
|
+
states: {
|
|
807
|
+
validationErrors: validationState === null || validationState === void 0 ? void 0 : validationState.validationErrors,
|
|
808
|
+
},
|
|
809
|
+
};
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
const InputField = class {
|
|
813
|
+
constructor(hostRef) {
|
|
814
|
+
registerInstance(this, hostRef);
|
|
815
|
+
this.ignored = true;
|
|
816
|
+
/**
|
|
817
|
+
* @uiName Input Type
|
|
818
|
+
* @uiType string
|
|
819
|
+
* @uiEnum ["text", "date", "tel"]
|
|
820
|
+
*/
|
|
821
|
+
this.fieldType = "text";
|
|
822
|
+
/**
|
|
823
|
+
* @uiName Empty error message
|
|
824
|
+
*/
|
|
825
|
+
this.errorMessage = "Cannot be empty";
|
|
826
|
+
/**
|
|
827
|
+
* @uiName Optional
|
|
828
|
+
*/
|
|
829
|
+
this.fieldOptional = false;
|
|
830
|
+
h(this);
|
|
831
|
+
}
|
|
832
|
+
disconnectedCallback() { }
|
|
833
|
+
render() {
|
|
834
|
+
const content = {
|
|
835
|
+
...getProps(this),
|
|
836
|
+
};
|
|
837
|
+
const missingProps = getMissingProps([
|
|
838
|
+
{
|
|
839
|
+
attribute: "field-name",
|
|
840
|
+
value: this.fieldName,
|
|
841
|
+
},
|
|
842
|
+
]);
|
|
843
|
+
if (missingProps) {
|
|
844
|
+
return h$1(RequiredPropsError, { missingProps: missingProps });
|
|
845
|
+
}
|
|
846
|
+
const { states } = jn() ? useInputFieldDemo(this) : useInputField();
|
|
847
|
+
return h$1(InputFieldView, { states: states, content: content });
|
|
848
|
+
}
|
|
849
|
+
};
|
|
850
|
+
function useInputFieldDemo(props) {
|
|
851
|
+
return cjs({
|
|
852
|
+
states: {
|
|
853
|
+
validationErrors: [],
|
|
854
|
+
},
|
|
855
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
856
|
+
}
|
|
857
|
+
|
|
740
858
|
const GET_LEADERBOARD = dist.gql `
|
|
741
859
|
query ($type: String!, $filter: UserLeaderboardFilterInput) {
|
|
742
860
|
userLeaderboard(type: $type, filter: $filter) {
|
|
@@ -5593,7 +5711,7 @@ const ProgramMenu = class {
|
|
|
5593
5711
|
}
|
|
5594
5712
|
};
|
|
5595
5713
|
|
|
5596
|
-
const style = {
|
|
5714
|
+
const style$1 = {
|
|
5597
5715
|
Container: {
|
|
5598
5716
|
display: "flex",
|
|
5599
5717
|
color: "var(--sl-color-neutral-900)",
|
|
@@ -5627,8 +5745,8 @@ const style = {
|
|
|
5627
5745
|
},
|
|
5628
5746
|
},
|
|
5629
5747
|
};
|
|
5630
|
-
const sheet = createStyleSheet(style);
|
|
5631
|
-
const styleString = sheet.toString();
|
|
5748
|
+
const sheet$1 = createStyleSheet(style$1);
|
|
5749
|
+
const styleString$1 = sheet$1.toString();
|
|
5632
5750
|
const vanillaStyle = `
|
|
5633
5751
|
:host{
|
|
5634
5752
|
display: block;
|
|
@@ -5637,9 +5755,9 @@ const vanillaStyle = `
|
|
|
5637
5755
|
function ReferralCardView(props) {
|
|
5638
5756
|
return (h$1("div", null,
|
|
5639
5757
|
h$1("style", { type: "text/css" },
|
|
5640
|
-
styleString,
|
|
5758
|
+
styleString$1,
|
|
5641
5759
|
vanillaStyle),
|
|
5642
|
-
h$1("div", { class: sheet.classes.Container },
|
|
5760
|
+
h$1("div", { class: sheet$1.classes.Container },
|
|
5643
5761
|
h$1("div", { class: "left", style: {
|
|
5644
5762
|
alignSelf: props.verticalAlignment,
|
|
5645
5763
|
} }, props.slots.left),
|
|
@@ -5695,51 +5813,6 @@ function useReferralIframe(props) {
|
|
|
5695
5813
|
};
|
|
5696
5814
|
}
|
|
5697
5815
|
|
|
5698
|
-
const style$1 = {
|
|
5699
|
-
IconStyle: {
|
|
5700
|
-
display: "block",
|
|
5701
|
-
position: "absolute",
|
|
5702
|
-
top: "23px",
|
|
5703
|
-
},
|
|
5704
|
-
DivStyle: {
|
|
5705
|
-
marginLeft: "30px",
|
|
5706
|
-
},
|
|
5707
|
-
Details: {
|
|
5708
|
-
marginLeft: "30px",
|
|
5709
|
-
},
|
|
5710
|
-
Heading: {
|
|
5711
|
-
display: "inline-block",
|
|
5712
|
-
},
|
|
5713
|
-
Alert: {
|
|
5714
|
-
margin: "30px",
|
|
5715
|
-
},
|
|
5716
|
-
};
|
|
5717
|
-
const sheet$1 = createStyleSheet(style$1);
|
|
5718
|
-
const styleString$1 = sheet$1.toString();
|
|
5719
|
-
function RequiredPropsError({ missingProps }) {
|
|
5720
|
-
if (!missingProps)
|
|
5721
|
-
return false;
|
|
5722
|
-
const host = P();
|
|
5723
|
-
const [detailsOpen, setDetailsOpen] = useState(false);
|
|
5724
|
-
return (h$1("sl-alert", { type: "danger", open: true, class: sheet$1.classes.Alert },
|
|
5725
|
-
h$1("style", { type: "text/css" }, styleString$1),
|
|
5726
|
-
h$1("div", { slot: "icon", class: sheet$1.classes.IconStyle },
|
|
5727
|
-
h$1("sl-icon", { name: "exclamation-octagon" })),
|
|
5728
|
-
h$1("div", { class: sheet$1.classes.DivStyle },
|
|
5729
|
-
h$1("h2", { class: sheet$1.classes.Heading }, "There was a problem loading this page"),
|
|
5730
|
-
h$1("p", null, "There was a technical problem that prevented this page from loading. Please contact us with the link to this page.")),
|
|
5731
|
-
h$1("details", { class: sheet$1.classes.Details },
|
|
5732
|
-
h$1("summary", { onClick: () => setDetailsOpen(!detailsOpen) },
|
|
5733
|
-
detailsOpen ? "Less" : "More",
|
|
5734
|
-
" details"),
|
|
5735
|
-
h$1("p", null,
|
|
5736
|
-
"Error occured while loading ",
|
|
5737
|
-
`<${host.tagName.toLowerCase()}>`,
|
|
5738
|
-
". Values for the following attributes are missing:"),
|
|
5739
|
-
h$1("ul", null, missingProps.map((prop) => (h$1("li", null,
|
|
5740
|
-
h$1("strong", null, prop.attribute))))))));
|
|
5741
|
-
}
|
|
5742
|
-
|
|
5743
5816
|
const SqmReferralIframe = class {
|
|
5744
5817
|
constructor(hostRef) {
|
|
5745
5818
|
registerInstance(this, hostRef);
|
|
@@ -7525,4 +7598,4 @@ function useUserNameDemo(props) {
|
|
|
7525
7598
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
7526
7599
|
}
|
|
7527
7600
|
|
|
7528
|
-
export { BigStat as sqm_big_stat, BrandComponent as sqm_brand, CardFeed as sqm_card_feed, CheckboxField as sqm_checkbox_field, DividedLayout as sqm_divided_layout, DropdownField as sqm_dropdown_field, EditProfile as sqm_edit_profile, HeroImage as sqm_hero_image, SqmHookStoryContainer as sqm_hook_story_container, Leaderboard as sqm_leaderboard, NameFields as sqm_name_fields, NavigationMenu as sqm_navigation_menu, PortalChangePassword as sqm_portal_change_password, PortalFrame as sqm_portal_frame, PortalLogin as sqm_portal_login, PortalRegister as sqm_portal_register, ProgramExplainer as sqm_program_explainer, ProgramExplainerStep as sqm_program_explainer_step, ProgramMenu as sqm_program_menu, ReferralCard as sqm_referral_card, SqmReferralIframe as sqm_referral_iframe, SqmRewardExchangeList as sqm_reward_exchange_list, SqmRouter as sqm_router, Scroll as sqm_scroll, ShareButton as sqm_share_button, ShareCode as sqm_share_code, ShareLink as sqm_share_link, StatContainer as sqm_stat_container, TableCell as sqm_table_cell, TableRow as sqm_table_row, TaskCard as sqm_task_card, Timeline as sqm_timeline, TimelineReward as sqm_timeline_entry, UserName as sqm_user_name };
|
|
7601
|
+
export { BigStat as sqm_big_stat, BrandComponent as sqm_brand, CardFeed as sqm_card_feed, CheckboxField as sqm_checkbox_field, DividedLayout as sqm_divided_layout, DropdownField as sqm_dropdown_field, EditProfile as sqm_edit_profile, HeroImage as sqm_hero_image, SqmHookStoryContainer as sqm_hook_story_container, InputField as sqm_input_field, Leaderboard as sqm_leaderboard, NameFields as sqm_name_fields, NavigationMenu as sqm_navigation_menu, PortalChangePassword as sqm_portal_change_password, PortalFrame as sqm_portal_frame, PortalLogin as sqm_portal_login, PortalRegister as sqm_portal_register, ProgramExplainer as sqm_program_explainer, ProgramExplainerStep as sqm_program_explainer_step, ProgramMenu as sqm_program_menu, ReferralCard as sqm_referral_card, SqmReferralIframe as sqm_referral_iframe, SqmRewardExchangeList as sqm_reward_exchange_list, SqmRouter as sqm_router, Scroll as sqm_scroll, ShareButton as sqm_share_button, ShareCode as sqm_share_code, ShareLink as sqm_share_link, StatContainer as sqm_stat_container, TableCell as sqm_table_cell, TableRow as sqm_table_row, TaskCard as sqm_task_card, Timeline as sqm_timeline, TimelineReward as sqm_timeline_entry, UserName as sqm_user_name };
|