@saasquatch/mint-components 1.13.2 → 1.13.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/dist/cjs/{ShadowViewAddon-cf0ee0a0.js → ShadowViewAddon-3ddee92b.js} +6 -5
- package/dist/cjs/copy-text-view-c85acaaa.js +96 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +3 -2
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +6 -5
- package/dist/cjs/sqm-qr-code-view-7b26582e.js +87 -0
- package/dist/cjs/sqm-qr-code.cjs.entry.js +121 -0
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +41 -5
- package/dist/cjs/{copy-text-view-a5524c20.js → useReferralCodes-82e8797b.js} +0 -93
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/sqm-qr-code/QRCode.stories.js +27 -0
- package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +82 -0
- package/dist/collection/components/sqm-qr-code/sqm-qr-code.js +179 -0
- package/dist/collection/components/sqm-qr-code/useQRCode.js +59 -0
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
- package/dist/esm/{ShadowViewAddon-fd07e6e1.js → ShadowViewAddon-499b1f86.js} +2 -1
- package/dist/esm/copy-text-view-782137ba.js +94 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-big-stat_39.entry.js +3 -2
- package/dist/esm/sqm-pagination_3.entry.js +2 -1
- package/dist/esm/sqm-qr-code-view-814b2929.js +85 -0
- package/dist/esm/sqm-qr-code.entry.js +117 -0
- package/dist/esm/sqm-stencilbook.entry.js +41 -5
- package/dist/esm/{copy-text-view-459a2e35.js → useReferralCodes-8f75921a.js} +1 -93
- package/dist/esm-es5/ShadowViewAddon-499b1f86.js +1 -0
- package/dist/esm-es5/copy-text-view-782137ba.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-qr-code-view-814b2929.js +1 -0
- package/dist/esm-es5/sqm-qr-code.entry.js +1 -0
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/useReferralCodes-8f75921a.js +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-10cc43c9.entry.js +9 -0
- package/dist/mint-components/p-30362262.system.entry.js +1 -0
- package/dist/mint-components/p-31015791.js +1 -0
- package/dist/mint-components/p-313feb4a.system.entry.js +1 -0
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/p-3b90e01b.system.js +1 -0
- package/dist/mint-components/p-3f7b81b8.js +52 -0
- package/dist/mint-components/p-49670357.entry.js +13 -0
- package/dist/mint-components/p-5aae2d61.system.js +1 -0
- package/dist/mint-components/p-5cb7f9fc.system.entry.js +1 -0
- package/dist/mint-components/{p-b51e79b3.entry.js → p-7846937e.entry.js} +2 -2
- package/dist/mint-components/p-97038074.system.entry.js +1 -0
- package/dist/mint-components/p-bcac3ecf.js +1 -0
- package/dist/mint-components/p-da4ff3b4.system.js +1 -0
- package/dist/mint-components/p-dbc0e4f8.system.js +1 -0
- package/dist/mint-components/{p-d12fc50f.js → p-e2d5cd22.js} +20 -20
- package/dist/mint-components/{p-87d385d8.entry.js → p-f15c1a53.entry.js} +1 -1
- package/dist/types/components/sqm-qr-code/QRCode.stories.d.ts +6 -0
- package/dist/types/components/sqm-qr-code/sqm-qr-code-view.d.ts +13 -0
- package/dist/types/components/sqm-qr-code/sqm-qr-code.d.ts +33 -0
- package/dist/types/components/sqm-qr-code/useQRCode.d.ts +14 -0
- package/dist/types/components.d.ts +56 -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/ShadowViewAddon-fd07e6e1.js +0 -1
- package/dist/esm-es5/copy-text-view-459a2e35.js +0 -1
- package/dist/mint-components/p-57e2c2fa.system.js +0 -1
- package/dist/mint-components/p-717cc8ac.system.js +0 -1
- package/dist/mint-components/p-71bc04d2.system.entry.js +0 -1
- package/dist/mint-components/p-7f2d4212.js +0 -52
- package/dist/mint-components/p-abedbbf3.system.entry.js +0 -1
- package/dist/mint-components/p-bc83460e.system.entry.js +0 -1
- package/dist/mint-components/p-da932ca2.entry.js +0 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as t,h as e,c as r}from"./p-f708da7b.js";import{n as a,f as s,k as n,i,u as o,m as l,b as c,j as d}from"./p-cd651f81.js";import{i as u}from"./p-65069b66.js";import{i as h,_ as m,d as p,J as g,H as v,$ as f,w as b,B as y,L as x,y as w,j as k,r as C,V as E,u as I,Q as S,k as R}from"./p-94a876b9.js";import{j as T}from"./p-e7e129ac.js";import{c as M}from"./p-c1086930.js";import{g as q,a as _}from"./p-9ec99ced.js";import{c as N}from"./p-cef45012.js";import
|
|
1
|
+
import{r as t,h as e,c as r}from"./p-f708da7b.js";import{n as a,f as s,k as n,i,u as o,m as l,b as c,j as d}from"./p-cd651f81.js";import{i as u}from"./p-65069b66.js";import{i as h,_ as m,d as p,J as g,H as v,$ as f,w as b,B as y,L as x,y as w,j as k,r as C,V as E,u as I,Q as S,k as R}from"./p-94a876b9.js";import{j as T}from"./p-e7e129ac.js";import{c as M}from"./p-c1086930.js";import{g as q,a as _}from"./p-9ec99ced.js";import{c as N}from"./p-cef45012.js";import"./p-3f7b81b8.js";import"./p-91521e9d.js";import{C as A}from"./p-31015791.js";import{a as P}from"./p-4e451f75.js";import{u as L}from"./p-19ccb4ce.js";import"./p-5bedb58c.js";import"./p-c9f1dde7.js";import{p as D}from"./p-8d363802.js";import{R as V,u as F}from"./p-98698131.js";import{P as $}from"./p-dbcb5359.js";import{u as j}from"./p-4e526a94.js";import{A as O}from"./p-121cdc60.js";import{i as B}from"./p-8c23d1b8.js";import{b as U,Q as z,B as H,M as W,G,C as Z,J as Y,D as K,E as Q,H as X,I as J,U as tt,L as et,N as rt,d as at,h as st,P as nt,e as it,R as ot,V as lt,i as ct,a as dt,S as ut,u as ht,c as mt,T as pt}from"./p-e2d5cd22.js";import"./p-a9f4ddb1.js";import{u as gt}from"./p-480e08e9.js";const vt=class{constructor(e){t(this,e),this.flexReverse=!1,this.ignored=!0,a(this)}disconnectedCallback(){}render(){var t;const{props:r,label:a}=h()?U(this):z(this),s=!!(null===(t=m().innerHTML)||void 0===t?void 0:t.trim()),n=e("slot",{name:"label"},s?e("slot",null):a);return e(H,Object.assign({},r,{labelSlot:n}))}},ft=class{constructor(e){t(this,e),a(this)}disconnectedCallback(){}render(){var t,a;const n=null!==(t=function(t){if(t)try{return W(t)}catch{}}(this.brandColor))&&void 0!==t?t:"",i=(null!==(a=this.brandFont)&&void 0!==a?a:"Nunito Sans").trim()||void 0;s((()=>{if(!i)return;const t=document.createElement("link");return t.setAttribute("href",function(...t){return`https://fonts.googleapis.com/css2?${t.map((t=>`family=${encodeURIComponent(t)}`)).join("&")}`}(i)),t.setAttribute("rel","stylesheet"),document.head.appendChild(t),()=>document.head.removeChild(t)}),[i]);const o=null!=i?i:"";return e(r,null,e("style",null,`\n\n :host{\n display: contents;\n }\n /* \n Selects any element placed inside a slot\n - resets css variable inheritence for fonts\n \n */\n ::slotted(*) {\n --sl-font-sans: "${o}", arial;\n --sl-input-font-family: "${o}", arial;\n --sl-tooltip-font-family: "${o}", arial;\n font-family: "${o}", arial;\n\t\t\t\n ${n}\n\n --sl-focus-ring-color-primary: var(--sl-color-primary-100);\n --sl-input-border-color-focus: var(--sl-color-primary-500);\n --sl-color-primary-hue: var(--sl-color-primary-500);\n }`),e("slot",null))}},bt=class{constructor(e){t(this,e),this.ignored=!0,this.width=347,this.gap=24,a(this)}disconnectedCallback(){}render(){return e(G,Object.assign({},q(this)),e("slot",null))}},yt=N({IconStyle:{display:"block",position:"absolute",top:"23px"},DivStyle:{marginLeft:"28px"},Details:{marginLeft:"28px"},Heading:{display:"inline-block"},Children:{display:"none"}}),xt=yt.toString();function wt({missingProps:t,heading:r="There was a problem loading this section",subheading:a="There was a technical problem that prevented this section from loading. Please contact us with the link to this page.",description:s="Error occured while loading <{tagName}>. Values for the following attributes are missing:"},i){if(!t)return!1;const o=m(),[l,c]=n(!1);return e("sl-alert",{type:"danger",open:!0},e("style",{type:"text/css"},xt),e("div",{slot:"icon",class:yt.classes.IconStyle},e("sl-icon",{name:"exclamation-octagon"})),e("div",{class:yt.classes.DivStyle},e("h2",{class:yt.classes.Heading},u.formatMessage({id:"error-heading",defaultMessage:r})),e("p",null,u.formatMessage({id:"error-subheading",defaultMessage:a}))),e("details",{class:yt.classes.Details},e("summary",{onClick:()=>c(!l)},l?"Less":"More"," details"),e("p",null,u.formatMessage({id:"error-description",defaultMessage:s},{tagName:o.tagName.toLowerCase()})),e("ul",null,t.map((t=>e("li",null,e("strong",null,t.attribute)))))),e("div",{class:yt.classes.Children},i))}const kt=class{constructor(e){t(this,e),this.ignored=!0,this.checkboxLabel="By signing up you agree to the {labelLink}",this.checkboxLabelLink="https://example.com",this.checkboxLabelLinkText="Terms and Conditions",this.errorMessage="Must be checked",this.checkboxOptional=!1,a(this)}disconnectedCallback(){}render(){const t=_([{attribute:"checkbox-name",value:this.checkboxName}]);if(!h()&&t)return e(wt,{missingProps:t,heading:"An error occured while loading this form",subheading:"A technical problem prevented this checkbox field from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"});const r={...q(this)},{states:a,callbacks:o}=h()?M({states:{registrationFormState:{},checked:!1},callbacks:{setChecked:()=>{}}},this.demoData||{},{arrayMerge:(t,e)=>e}):function(t){var e;const r=i(V),[a,o]=n(!1);return s((()=>{var e,a;(null===(e=null==r?void 0:r.initialData)||void 0===e?void 0:e[t.checkboxName])&&o(!!(null===(a=null==r?void 0:r.initialData)||void 0===a?void 0:a[t.checkboxName]))}),[null===(e=null==r?void 0:r.initialData)||void 0===e?void 0:e[t.checkboxName]]),{states:{registrationFormState:r,checked:a},callbacks:{setChecked:o}}}(this);return e(Z,{states:a,content:r,callbacks:o})}},Ct=p.gql`
|
|
2
2
|
query fuelTankRewardsQuery($programId: ID!) {
|
|
3
3
|
user: viewer {
|
|
4
4
|
... on User {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface QRCodeViewProps {
|
|
2
|
+
dialogIsOpen: boolean;
|
|
3
|
+
showDialog: () => void;
|
|
4
|
+
hideDialog: () => void;
|
|
5
|
+
qrLink: string;
|
|
6
|
+
createDownloadable: () => void;
|
|
7
|
+
titleText?: string;
|
|
8
|
+
viewCodeText?: string;
|
|
9
|
+
downloadCodeText?: string;
|
|
10
|
+
printCodeText?: string;
|
|
11
|
+
createPrintable: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function QrCodeView({ dialogIsOpen, showDialog, hideDialog, qrLink, titleText, viewCodeText, downloadCodeText, printCodeText, createDownloadable, createPrintable, }: QRCodeViewProps): any;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DemoData } from "../../global/demo";
|
|
2
|
+
import { QRCodeViewProps } from "./sqm-qr-code-view";
|
|
3
|
+
/**
|
|
4
|
+
* @uiName QR Code
|
|
5
|
+
* @exampleGroup Sharing
|
|
6
|
+
* @example QR Code - <sqm-qr-code></sqm-qr-code>
|
|
7
|
+
*/
|
|
8
|
+
export declare class QrCode {
|
|
9
|
+
/**
|
|
10
|
+
* @uiName Title
|
|
11
|
+
*/
|
|
12
|
+
titleText?: string;
|
|
13
|
+
/**
|
|
14
|
+
* @uiName View QR code text
|
|
15
|
+
*/
|
|
16
|
+
viewCodeText?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @uiName Download QR code text
|
|
19
|
+
*/
|
|
20
|
+
downloadCodeText?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @uiName Print QR code text
|
|
23
|
+
*/
|
|
24
|
+
printCodeText?: string;
|
|
25
|
+
/**
|
|
26
|
+
* @undocumented
|
|
27
|
+
* @uiType object
|
|
28
|
+
*/
|
|
29
|
+
demoData?: DemoData<QRCodeViewProps>;
|
|
30
|
+
constructor();
|
|
31
|
+
disconnectedCallback(): void;
|
|
32
|
+
render(): any;
|
|
33
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { QrCode } from "./sqm-qr-code";
|
|
2
|
+
export declare function useQRCode(props: QrCode): {
|
|
3
|
+
qrLink: string;
|
|
4
|
+
dialogIsOpen: boolean;
|
|
5
|
+
showDialog: () => void;
|
|
6
|
+
hideDialog: () => void;
|
|
7
|
+
createDownloadable: () => Promise<void>;
|
|
8
|
+
createPrintable: () => Promise<void>;
|
|
9
|
+
titleText?: string;
|
|
10
|
+
viewCodeText?: string;
|
|
11
|
+
downloadCodeText?: string;
|
|
12
|
+
printCodeText?: string;
|
|
13
|
+
demoData?: Partial<Pick<import("./sqm-qr-code-view").QRCodeViewProps, "titleText" | "dialogIsOpen" | "showDialog" | "hideDialog" | "qrLink" | "viewCodeText" | "downloadCodeText" | "printCodeText" | "createDownloadable" | "createPrintable">>;
|
|
14
|
+
};
|
|
@@ -42,6 +42,7 @@ import { PortalProfileViewProps } from "./components/sqm-portal-profile/sqm-port
|
|
|
42
42
|
import { PortalRegisterViewProps } from "./components/sqm-portal-register/sqm-portal-register-view";
|
|
43
43
|
import { PortalResetPasswordViewProps } from "./components/sqm-portal-reset-password/sqm-portal-reset-password-view";
|
|
44
44
|
import { PortalVerifyEmailViewProps } from "./components/sqm-portal-verify-email/sqm-portal-verify-email-view";
|
|
45
|
+
import { QRCodeViewProps } from "./components/sqm-qr-code/sqm-qr-code-view";
|
|
45
46
|
import { ReferralCodesViewProps } from "./components/sqm-referral-codes/sqm-referral-codes-view";
|
|
46
47
|
import { ReferralIframeViewProps } from "./components/sqm-referral-iframe/sqm-referral-iframe-view";
|
|
47
48
|
import { ReferralDates } from "./components/sqm-referral-table/useReferralTable";
|
|
@@ -2941,6 +2942,29 @@ export namespace Components {
|
|
|
2941
2942
|
}
|
|
2942
2943
|
interface SqmProgramMenu {
|
|
2943
2944
|
}
|
|
2945
|
+
interface SqmQrCode {
|
|
2946
|
+
/**
|
|
2947
|
+
* @undocumented
|
|
2948
|
+
* @uiType object
|
|
2949
|
+
*/
|
|
2950
|
+
"demoData"?: DemoData<QRCodeViewProps>;
|
|
2951
|
+
/**
|
|
2952
|
+
* @uiName Download QR code text
|
|
2953
|
+
*/
|
|
2954
|
+
"downloadCodeText"?: string;
|
|
2955
|
+
/**
|
|
2956
|
+
* @uiName Print QR code text
|
|
2957
|
+
*/
|
|
2958
|
+
"printCodeText"?: string;
|
|
2959
|
+
/**
|
|
2960
|
+
* @uiName Title
|
|
2961
|
+
*/
|
|
2962
|
+
"titleText"?: string;
|
|
2963
|
+
/**
|
|
2964
|
+
* @uiName View QR code text
|
|
2965
|
+
*/
|
|
2966
|
+
"viewCodeText"?: string;
|
|
2967
|
+
}
|
|
2944
2968
|
interface SqmReferralCard {
|
|
2945
2969
|
/**
|
|
2946
2970
|
* @uiName Background color
|
|
@@ -6250,6 +6274,12 @@ declare global {
|
|
|
6250
6274
|
prototype: HTMLSqmProgramMenuElement;
|
|
6251
6275
|
new (): HTMLSqmProgramMenuElement;
|
|
6252
6276
|
};
|
|
6277
|
+
interface HTMLSqmQrCodeElement extends Components.SqmQrCode, HTMLStencilElement {
|
|
6278
|
+
}
|
|
6279
|
+
var HTMLSqmQrCodeElement: {
|
|
6280
|
+
prototype: HTMLSqmQrCodeElement;
|
|
6281
|
+
new (): HTMLSqmQrCodeElement;
|
|
6282
|
+
};
|
|
6253
6283
|
interface HTMLSqmReferralCardElement extends Components.SqmReferralCard, HTMLStencilElement {
|
|
6254
6284
|
}
|
|
6255
6285
|
var HTMLSqmReferralCardElement: {
|
|
@@ -6631,6 +6661,7 @@ declare global {
|
|
|
6631
6661
|
"sqm-program-explainer": HTMLSqmProgramExplainerElement;
|
|
6632
6662
|
"sqm-program-explainer-step": HTMLSqmProgramExplainerStepElement;
|
|
6633
6663
|
"sqm-program-menu": HTMLSqmProgramMenuElement;
|
|
6664
|
+
"sqm-qr-code": HTMLSqmQrCodeElement;
|
|
6634
6665
|
"sqm-referral-card": HTMLSqmReferralCardElement;
|
|
6635
6666
|
"sqm-referral-code": HTMLSqmReferralCodeElement;
|
|
6636
6667
|
"sqm-referral-codes": HTMLSqmReferralCodesElement;
|
|
@@ -9567,6 +9598,29 @@ declare namespace LocalJSX {
|
|
|
9567
9598
|
}
|
|
9568
9599
|
interface SqmProgramMenu {
|
|
9569
9600
|
}
|
|
9601
|
+
interface SqmQrCode {
|
|
9602
|
+
/**
|
|
9603
|
+
* @undocumented
|
|
9604
|
+
* @uiType object
|
|
9605
|
+
*/
|
|
9606
|
+
"demoData"?: DemoData<QRCodeViewProps>;
|
|
9607
|
+
/**
|
|
9608
|
+
* @uiName Download QR code text
|
|
9609
|
+
*/
|
|
9610
|
+
"downloadCodeText"?: string;
|
|
9611
|
+
/**
|
|
9612
|
+
* @uiName Print QR code text
|
|
9613
|
+
*/
|
|
9614
|
+
"printCodeText"?: string;
|
|
9615
|
+
/**
|
|
9616
|
+
* @uiName Title
|
|
9617
|
+
*/
|
|
9618
|
+
"titleText"?: string;
|
|
9619
|
+
/**
|
|
9620
|
+
* @uiName View QR code text
|
|
9621
|
+
*/
|
|
9622
|
+
"viewCodeText"?: string;
|
|
9623
|
+
}
|
|
9570
9624
|
interface SqmReferralCard {
|
|
9571
9625
|
/**
|
|
9572
9626
|
* @uiName Background color
|
|
@@ -12510,6 +12564,7 @@ declare namespace LocalJSX {
|
|
|
12510
12564
|
"sqm-program-explainer": SqmProgramExplainer;
|
|
12511
12565
|
"sqm-program-explainer-step": SqmProgramExplainerStep;
|
|
12512
12566
|
"sqm-program-menu": SqmProgramMenu;
|
|
12567
|
+
"sqm-qr-code": SqmQrCode;
|
|
12513
12568
|
"sqm-referral-card": SqmReferralCard;
|
|
12514
12569
|
"sqm-referral-code": SqmReferralCode;
|
|
12515
12570
|
"sqm-referral-codes": SqmReferralCodes;
|
|
@@ -12636,6 +12691,7 @@ declare module "@stencil/core" {
|
|
|
12636
12691
|
"sqm-program-explainer": LocalJSX.SqmProgramExplainer & JSXBase.HTMLAttributes<HTMLSqmProgramExplainerElement>;
|
|
12637
12692
|
"sqm-program-explainer-step": LocalJSX.SqmProgramExplainerStep & JSXBase.HTMLAttributes<HTMLSqmProgramExplainerStepElement>;
|
|
12638
12693
|
"sqm-program-menu": LocalJSX.SqmProgramMenu & JSXBase.HTMLAttributes<HTMLSqmProgramMenuElement>;
|
|
12694
|
+
"sqm-qr-code": LocalJSX.SqmQrCode & JSXBase.HTMLAttributes<HTMLSqmQrCodeElement>;
|
|
12639
12695
|
"sqm-referral-card": LocalJSX.SqmReferralCard & JSXBase.HTMLAttributes<HTMLSqmReferralCardElement>;
|
|
12640
12696
|
"sqm-referral-code": LocalJSX.SqmReferralCode & JSXBase.HTMLAttributes<HTMLSqmReferralCodeElement>;
|
|
12641
12697
|
"sqm-referral-codes": LocalJSX.SqmReferralCodes & JSXBase.HTMLAttributes<HTMLSqmReferralCodesElement>;
|
package/docs/docs.docx
CHANGED
|
Binary file
|