diff --git a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.d.ts b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.d.ts index 6d351caa3..5c9db7477 100644 --- a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.d.ts +++ b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.d.ts @@ -18,6 +18,7 @@ export interface IEnhancedPowerAppsWebPartProps { height: number; width: number; aspectratio: '16:9' | '3:2' | '16:10' | '4:3' | 'Custom'; + isWebPartHiddenOnSmallDevices: boolean; themeValues: string[]; } export default class EnhancedPowerAppsWebPart extends BaseClientSideWebPart { diff --git a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.d.ts.map b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.d.ts.map index 77d31b52a..5f35b7ebd 100644 --- a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.d.ts.map +++ b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"EnhancedPowerAppsWebPart.d.ts","sourceRoot":"","sources":["../../../src/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACL,0BAA0B,EAK3B,MAAM,6BAA6B,CAAC;AAMrC;;GAEG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D;;GAEG;AACH,OAAO,EACL,qBAAqB,EACrB,0BAA0B,EAG3B,MAAM,4BAA4B,CAAC;AAuBpC,MAAM,WAAW,8BAA8B;IAC7C,WAAW,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,aAAa,GAAC,aAAa,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,GAAC,KAAK,GAAC,OAAO,GAAC,KAAK,GAAC,QAAQ,CAAC;IACjD,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,OAAO,wBAAyB,SAAQ,qBAAqB,CAAC,8BAA8B,CAAC;IACzG,OAAO,CAAC,cAAc,CAAgB;IACtC,OAAO,CAAC,aAAa,CAA6B;IAElD,SAAS,CAAC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAa1B,MAAM,IAAI,IAAI;IA4DrB,SAAS,CAAC,SAAS,IAAI,IAAI;uBAIb,WAAW,EAAI,OAAO;IAIpC,SAAS,CAAC,4BAA4B,IAAI,0BAA0B;uBAwItD,kBAAkB,EAAI,0BAA0B;IAU9D,OAAO,CAAC,YAAY,CAEnB;IAED;;;;KAIC;IACD,OAAO,CAAC,wBAAwB;IAKhC;;;OAGG;IACH,SAAS,CAAC,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;CAIjD"} \ No newline at end of file +{"version":3,"file":"EnhancedPowerAppsWebPart.d.ts","sourceRoot":"","sources":["../../../src/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACL,0BAA0B,EAK3B,MAAM,6BAA6B,CAAC;AAMrC;;GAEG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D;;GAEG;AACH,OAAO,EACL,qBAAqB,EACrB,0BAA0B,EAG3B,MAAM,4BAA4B,CAAC;AAuBpC,MAAM,WAAW,8BAA8B;IAC7C,WAAW,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,aAAa,GAAC,aAAa,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,GAAC,KAAK,GAAC,OAAO,GAAC,KAAK,GAAC,QAAQ,CAAC;IACjD,6BAA6B,EAAE,OAAO,CAAC;IACvC,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,OAAO,wBAAyB,SAAQ,qBAAqB,CAAC,8BAA8B,CAAC;IACzG,OAAO,CAAC,cAAc,CAAgB;IACtC,OAAO,CAAC,aAAa,CAA6B;IAElD,SAAS,CAAC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAa1B,MAAM,IAAI,IAAI;IA6DrB,SAAS,CAAC,SAAS,IAAI,IAAI;uBAIb,WAAW,EAAI,OAAO;IAIpC,SAAS,CAAC,4BAA4B,IAAI,0BAA0B;uBA2ItD,kBAAkB,EAAI,0BAA0B;IAU9D,OAAO,CAAC,YAAY,CAEnB;IAED;;;;KAIC;IACD,OAAO,CAAC,wBAAwB;IAKhC;;;OAGG;IACH,SAAS,CAAC,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;CAIjD"} \ No newline at end of file diff --git a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.js b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.js index c5f1dbaaa..97c44b630 100644 --- a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.js +++ b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.js @@ -100,6 +100,7 @@ var EnhancedPowerAppsWebPart = /** @class */ (function (_super) { height: clientHeight, themeVariant: this._themeVariant, border: this.properties.border, + isWebPartHiddenOnSmallDevices: this.properties.isWebPartHiddenOnSmallDevices, themeValues: this.properties.themeValues }); ReactDom.render(element, this.domElement); @@ -139,6 +140,9 @@ var EnhancedPowerAppsWebPart = /** @class */ (function (_super) { PropertyPaneToggle('border', { label: strings.BorderFieldLabel }), + PropertyPaneToggle('isWebPartHiddenOnSmallDevices', { + label: strings.IsWebPartHiddenOnSmallDevicesFieldLabel + }), PropertyPaneChoiceGroup('layout', { label: strings.LayoutFieldLabel, options: [ @@ -191,7 +195,7 @@ var EnhancedPowerAppsWebPart = /** @class */ (function (_super) { }), this.properties.layout === "AspectRatio" && this.properties.aspectratio === "Custom" && PropertyPaneTextField('height', { label: strings.HeightFieldLabel, - }), + }) ] }, { diff --git a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.js.map b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.js.map index aec4ccca5..f29926fc0 100644 --- a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.js.map +++ b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.js.map @@ -1 +1 @@ -{"version":3,"file":"EnhancedPowerAppsWebPart.js","sourceRoot":"","sources":["../../../src/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,QAAQ,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAEL,qBAAqB,EACrB,kBAAkB,EAClB,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,6BAA6B,CAAC;AAErC,OAAO,KA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,UAAU,CAAC,WAAW;iCAC1C,CAAC;gCACF,gBAAgB,CAAC;oCACf,GAAG,EAAE,iBAAiB;oCACtB,IAAI,EAAE,OAAO,CAAC,mBAAmB;iCAClC,CAAC;6BACH;yBACF;qBACF;iBACF;aACF;SACF,CAAC;IACJ,CAAC;IAED,sBAAc,wDAAkB;aAAhC;YACE,OAAO;gBACL,iEAAiE;gBACjE,4DAA4D;gBAC5D,aAAa,EAAE;oBACb,mBAAmB,EAAE,QAAQ;iBAC9B;aACF,CAAC;QACJ,CAAC;;;OAAA;IAMD;;;;KAIC;IACO,2DAAwB,GAAhC,UAAiC,IAA2B;QAC1D,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC;QAChC,IAAI,CAAC,MAAM,EAAE,CAAC;IAChB,CAAC;IAED;;;OAGG;IACO,gDAAa,GAAvB,UAAwB,SAAiB;QACvC,sBAAsB;QACtB,IAAI,CAAC,MAAM,EAAE,CAAC;IAChB,CAAC;IACH,+BAAC;AAAD,CAAC,AA7PD,CAAsD,qBAAqB,GA6P1E"} \ No newline at end of file +{"version":3,"file":"EnhancedPowerAppsWebPart.js","sourceRoot":"","sources":["../../../src/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,QAAQ,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAEL,qBAAqB,EACrB,kBAAkB,EAClB,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,6BAA6B,CAAC;AAErC,OAAO,KAAK,OAAO,MAAM,iCAAiC,CAAC;AAC3D,OAAO,iBAAiB,MAAM,gCAAgC,CAAC;AAQ/D;;GAEG;AACH,OAAO,EACL,qBAAqB,EAErB,2BAA2B,EAC3B,wBAAwB,EACzB,MAAM,4BAA4B,CAAC;AAEpC;;GAEG;AACH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AAgB,CAAC;oCACf,GAAG,EAAE,iBAAiB;oCACtB,IAAI,EAAE,OAAO,CAAC,mBAAmB;iCAClC,CAAC;6BACH;yBACF;qBACF;iBACF;aACF;SACF,CAAC;IACJ,CAAC;IAED,sBAAc,wDAAkB;aAAhC;YACE,OAAO;gBACL,iEAAiE;gBACjE,4DAA4D;gBAC5D,aAAa,EAAE;oBACb,mBAAmB,EAAE,QAAQ;iBAC9B;aACF,CAAC;QACJ,CAAC;;;OAAA;IAMD;;;;KAIC;IACO,2DAAwB,GAAhC,UAAiC,IAA2B;QAC1D,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC;QAChC,IAAI,CAAC,MAAM,EAAE,CAAC;IAChB,CAAC;IAED;;;OAGG;IACO,gDAAa,GAAvB,UAAwB,SAAiB;QACvC,sBAAsB;QACtB,IAAI,CAAC,MAAM,EAAE,CAAC;IAChB,CAAC;IACH,+BAAC;AAAD,CAAC,AAjQD,CAAsD,qBAAqB,GAiQ1E"} \ No newline at end of file diff --git a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.manifest.json b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.manifest.json index fea555140..db86b46ef 100644 --- a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.manifest.json +++ b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.manifest.json @@ -21,6 +21,7 @@ "properties": { "layout": 'AspectRatio', "aspectratio": '16:9', + "isWebPartHiddenOnSmallDevices":false } }] } diff --git a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.js b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.js index cf799aa7e..c37fb85a9 100644 --- a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.js +++ b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.js @@ -24,7 +24,7 @@ var EnhancedPowerApps = /** @class */ (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } EnhancedPowerApps.prototype.render = function () { - var _a = this.props, dynamicProp = _a.dynamicProp, themeVariant = _a.themeVariant, themeValues = _a.themeValues, appWebLink = _a.appWebLink, useDynamicProp = _a.useDynamicProp, dynamicPropName = _a.dynamicPropName, locale = _a.locale, border = _a.border, height = _a.height; + var _a = this.props, dynamicProp = _a.dynamicProp, themeVariant = _a.themeVariant, themeValues = _a.themeValues, appWebLink = _a.appWebLink, useDynamicProp = _a.useDynamicProp, dynamicPropName = _a.dynamicPropName, locale = _a.locale, border = _a.border, isWebPartHiddenOnSmallDevices = _a.isWebPartHiddenOnSmallDevices, height = _a.height; // The only thing we need for this web part to be configured is an app link or app id var needConfiguration = !appWebLink; var semanticColors = themeVariant.semanticColors; @@ -48,7 +48,7 @@ var EnhancedPowerApps = /** @class */ (function (_super) { } // Build the frame url var frameUrl = appUrl + "?source=SPClient-EnhancedPowerAppsWebPart&locale=" + locale + "&enableOnBehalfOf=true&authMode=onbehalfof&hideNavBar=true&" + dynamicPropValue + themeParams + "&locale=" + locale; - return (React.createElement("div", { className: styles.enhancedPowerApps, style: needConfiguration ? { height: "315px" } : { height: height + "px" } }, + return (React.createElement("div", { className: isWebPartHiddenOnSmallDevices ? styles.enhancedPowerApps && styles.hideOnMobileDevices : styles.enhancedPowerApps, style: needConfiguration ? { height: "315px" } : { height: height + "px" } }, needConfiguration && React.createElement(Placeholder, { iconName: 'PowerApps', iconText: strings.PlaceholderIconText, description: strings.PlaceholderDescription, buttonLabel: strings.PlaceholderButtonLabel, onConfigure: this.props.onConfigure }), !needConfiguration && diff --git a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.js.map b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.js.map index 1765436ab..6dd51f6ab 100644 --- a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.js.map +++ b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.js.map @@ -1 +1 @@ -{"version":3,"file":"EnhancedPowerApps.js","sourceRoot":"","sources":["../../../../src/webparts/enhancedPowerApps/components/EnhancedPowerApps.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,MAAM,MAAM,iCAAiC,CAAC;AAErD,OAAO,KAAK,OAAO,MAAM,iCAAiC,CAAC;AAE3D;;KAEK;AACL,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAQvE;IAA+C,qCAAiE;IAAhH;;IAmEA,CAAC;IAjEQ,kCAAM,GAAb;QACQ,IAAA,eAUU,EATd,4BAAW,EACX,8BAAY,EACZ,4BAAW,EACX,0BAAU,EACV,kCAAc,EACd,oCAAe,EACf,kBAAM,EACN,kBAAM,EACN,kBACc,CAAC;QAEjB,qFAAqF;QACrF,IAAM,iBAAiB,GAAY,CAAC,UAAU,CAAC;QAEvC,IAAA,4CAAc,CAAkC;QAExD,sEAAsE;QACtE,IAAM,gBAAgB,GAAW,cAAc,IAAI,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,MAAI,kBAAkB,CAAC,eAAe,CAAC,SAAI,kBAAkB,CAAC,WAAW,CAAG,CAAA,CAAC,CAAA,EAAE,CAAC;QAE/J,uGAAuG;QACvG,2DAA2D;QAC3D,IAAM,MAAM,GAAW,UAAU,IAAI,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,qCAAmC,UAAY,CAAC,CAAC,CAAC,UAAU,CAAC;QAExI,gEAAgE;QAChE,IAAI,WAAW,GAAW,EAAE,CAAC;QAE7B,IAAI,WAAW,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE;YACzC,WAAW,CAAC,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,CAAC,SAAS,GAmE7D"} \ No newline at end of file +{"version":3,"file":"EnhancedPowerApps.js","sourceRoot":"","sources":["../../../../src/webparts/enhancedPowerApps/components/EnhancedPowerApps.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,MAAM,MAAM,iCAAiC,CAAC;AAErD,OAAO,KAAK,OAAO,MAAM,iCAAiC,CAAC;AAE3D;;KAEK;AACL,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAQvE;IAA+C,qCAAiE;IAAhH;;IAmEA,CAAC;IAjEQ,kCAAM,GAAb;QACQ,IAAA,eAWU,EAVd,4BAAW,EACX,8BAAY,EACZ,4BAAW,EACX,0BAAU,EACV,kCAAc,EACd,oCAAe,EACf,kBAAM,EACN,kBAAM,EACN,gEAA6B,EAC7B,kBACc,CAAC;QAEjB,qFAAqF;QACrF,IAAM,iBAAiB,GAAY,CAAC,UAAU,CAAC;QAEvC,IAAA,4CAAc,CAAkC;QAExD,sEAAsE;QACtE,IAAM,gBAAgB,GAAW,cAAc,IAAI,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,MAAI,kBAAkB,CAAC,eAAe,CAAC,SAAI,kBAAkB,CAAC,WAAW,CAAG,CAAA,CAAC,CAAA,EAAE,CAAC;QAE/J,uGAAuG;QACvG,2DAA2D;QAC3D,IAAM,MAAM,GAAW,UAAU,IAAI,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,qCAAmC,UAAY,CAAC,CAAC,CAAC,UAAU,CAAC;QAExI,gEAAgE;QAChE,IAAI,WAAW,GAAW,EAAE,CAAC;QAE7B,IAAI,WAAW,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE;YACzC,WAAW,CAAC,OAAO,CAAC,UAAC,UAAkB;gBACrC,IAAI;oBAEF,IAAM,UAAU,GAAW,cAAc,CAAC,UAAU,CAAC,CAAC;o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AC,SAAS,GAmE7D"} \ No newline at end of file diff --git a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.module.css b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.module.css index d29a6494f..51e9a0569 100644 --- a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.module.css +++ b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.module.css @@ -1,2 +1 @@ -.enhancedPowerApps_466fc2fc{color:inherit}.enhancedPowerApps_466fc2fc span[class^=placeholderText_]{font-size:20px!important;font-weight:600!important;color:#323130}.enhancedPowerApps_466fc2fc span[class^=placeholderDescriptionText_]{color:#605e5c!important;margin:20px 0 28px;line-height:23px;font-size:16px!important} -/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpbGU6Ly8vd29ya3NwYWNlcy9zcC1kZXYtZngtd2VicGFydHMvc2FtcGxlcy9yZWFjdC1lbmhhbmNlZC1wb3dlcmFwcHMvc3JjL3dlYnBhcnRzL2VuaGFuY2VkUG93ZXJBcHBzL2NvbXBvbmVudHMvRW5oYW5jZWRQb3dlckFwcHMubW9kdWxlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsNEJBQ0UsTUFBQSxRQU9BLDBEQUNFLFVBQUEsZUFDQSxZQUFBLGNBQ0EsTUFBQSxRQUdGLHFFQUNFLE1BQUEsa0JBQ0EsT0FBQSxLQUFBLEVBQUEsS0FDQSxZQUFBLEtBQ0EsVUFBQSJ9 */ \ No newline at end of file +.enhancedPowerApps_dc8a3c45{color:inherit}.enhancedPowerApps_dc8a3c45 span[class^=placeholderText_]{font-size:20px!important;font-weight:600!important;color:#323130}.enhancedPowerApps_dc8a3c45 span[class^=placeholderDescriptionText_]{color:#605e5c!important;margin:20px 0 28px;line-height:23px;font-size:16px!important}@media only screen and (max-width:639.99999px){.hideOnMobileDevices_dc8a3c45{display:none!important}} \ No newline at end of file diff --git a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.module.scss.d.ts b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.module.scss.d.ts index b4a4a4fae..1ec15ff8a 100644 --- a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.module.scss.d.ts +++ b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.module.scss.d.ts @@ -1,5 +1,6 @@ declare const styles: { enhancedPowerApps: string; + hideOnMobileDevices: string; }; export default styles; //# sourceMappingURL=EnhancedPowerApps.module.scss.d.ts.map \ No newline at end of file diff --git a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.module.scss.d.ts.map b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.module.scss.d.ts.map index 197fb4978..f5c2c1f20 100644 --- a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.module.scss.d.ts.map +++ b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.module.scss.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"EnhancedPowerApps.module.scss.d.ts","sourceRoot":"","sources":["../../../../src/webparts/enhancedPowerApps/components/EnhancedPowerApps.module.scss.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM;;CAEX,CAAC;AAEF,eAAe,MAAM,CAAC"} \ No newline at end of file +{"version":3,"file":"EnhancedPowerApps.module.scss.d.ts","sourceRoot":"","sources":["../../../../src/webparts/enhancedPowerApps/components/EnhancedPowerApps.module.scss.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM;;;CAGX,CAAC;AAEF,eAAe,MAAM,CAAC"} \ No newline at end of file diff --git a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.module.scss.js b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.module.scss.js index c653b2fc3..55af524d8 100644 --- a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.module.scss.js +++ b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.module.scss.js @@ -1,7 +1,8 @@ /* tslint:disable */ require("./EnhancedPowerApps.module.css"); var styles = { - enhancedPowerApps: 'enhancedPowerApps_466fc2fc' + enhancedPowerApps: 'enhancedPowerApps_dc8a3c45', + hideOnMobileDevices: 'hideOnMobileDevices_dc8a3c45' }; export default styles; /* tslint:enable */ diff --git a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.module.scss.js.map b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.module.scss.js.map index cedd98ad4..d5f7b69da 100644 --- a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.module.scss.js.map +++ b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/EnhancedPowerApps.module.scss.js.map @@ -1 +1 @@ -{"version":3,"file":"EnhancedPowerApps.module.scss.js","sourceRoot":"","sources":["../../../../src/webparts/enhancedPowerApps/components/EnhancedPowerApps.module.scss.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,CAAC,gCAAgC,CAAC,CAAC;AAC1C,IAAM,MAAM,GAAG;IACb,iBAAiB,EAAE,4BAA4B;CAChD,CAAC;AAEF,eAAe,MAAM,CAAC;AACtB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"EnhancedPowerApps.module.scss.js","sourceRoot":"","sources":["../../../../src/webparts/enhancedPowerApps/components/EnhancedPowerApps.module.scss.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,CAAC,gCAAgC,CAAC,CAAC;AAC1C,IAAM,MAAM,GAAG;IACb,iBAAiB,EAAE,4BAA4B;IAC/C,mBAAmB,EAAE,8BAA8B;CACpD,CAAC;AAEF,eAAe,MAAM,CAAC;AACtB,mBAAmB"} \ No newline at end of file diff --git a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/IEnhancedPowerAppsProps.d.ts b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/IEnhancedPowerAppsProps.d.ts index 8d6dbea97..a48046d01 100644 --- a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/IEnhancedPowerAppsProps.d.ts +++ b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/IEnhancedPowerAppsProps.d.ts @@ -41,6 +41,10 @@ export interface IEnhancedPowerAppsProps { * Whether we show border or not */ border: boolean; + /** + * Whether we show webpart or not + */ + isWebPartHiddenOnSmallDevices: boolean; /** * Selected theme values to pass to Power Apps */ diff --git a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/IEnhancedPowerAppsProps.d.ts.map b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/IEnhancedPowerAppsProps.d.ts.map index a36e6e8ad..bcdce548f 100644 --- a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/IEnhancedPowerAppsProps.d.ts.map +++ b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/components/IEnhancedPowerAppsProps.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"IEnhancedPowerAppsProps.d.ts","sourceRoot":"","sources":["../../../../src/webparts/enhancedPowerApps/components/IEnhancedPowerAppsProps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,EAAE,MAAM,IAAI,CAAC;IAExB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,YAAY,EAAE,cAAc,GAAG,SAAS,CAAC;IAEzC;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB"} \ No newline at end of file +{"version":3,"file":"IEnhancedPowerAppsProps.d.ts","sourceRoot":"","sources":["../../../../src/webparts/enhancedPowerApps/components/IEnhancedPowerAppsProps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,EAAE,MAAM,IAAI,CAAC;IAExB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,YAAY,EAAE,cAAc,GAAG,SAAS,CAAC;IAEzC;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,6BAA6B,EAAE,OAAO,CAAC;IAEvC;;OAEG;IACH,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB"} \ No newline at end of file diff --git a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/loc/en-us.js b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/loc/en-us.js index c344886ef..dd72a057e 100644 --- a/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/loc/en-us.js +++ b/samples/react-enhanced-powerapps/lib/webparts/enhancedPowerApps/loc/en-us.js @@ -26,6 +26,7 @@ define([], function() { PlaceholderIconText: "Enhanced Microsoft Power Apps", PropertyPaneDescription: "Add a custom business app by pasting its web link or ID below.", BasicGroupName: "Basic Configuration", - AppWebLinkFieldLabel: "App web link or ID" + AppWebLinkFieldLabel: "App web link or ID", + IsWebPartHiddenOnSmallDevicesFieldLabel: "Hide webpart on mobile devices" } }); diff --git a/samples/react-enhanced-powerapps/package-lock.json b/samples/react-enhanced-powerapps/package-lock.json index 1d62369f7..66eef8088 100644 --- a/samples/react-enhanced-powerapps/package-lock.json +++ b/samples/react-enhanced-powerapps/package-lock.json @@ -2939,6 +2939,14 @@ "tslint": "~5.12.1", "tslint-microsoft-contrib": "~5.2.1", "typescript": "~3.3.3" + }, + "dependencies": { + "typescript": { + "version": "3.3.4000", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.3.4000.tgz", + "integrity": "sha512-jjOcCZvpkl2+z7JFn0yBOoLQyLoIkNZAs/fYJkUG6VKy6zLPHJGfQJYFHzibB6GJaF/8QrcECtlQ5cpvRHSMEA==", + "dev": true + } } }, "@microsoft/sp-build-core-tasks": { @@ -3715,16 +3723,6 @@ "msal": "1.4.13", "msalLegacy": "npm:msal@1.4.12", "tslib": "~1.10.0" - }, - "dependencies": { - "msalLegacy": { - "version": "npm:msal@1.4.12", - "resolved": "https://registry.npmjs.org/msal/-/msal-1.4.12.tgz", - "integrity": "sha512-gjupwQ6nvNL6mZkl5NIXyUmZhTiEMRu5giNdgHMh8l5EPOnV2Xj6nukY1NIxFacSTkEYUSDB47Pej9GxDYf+1w==", - "requires": { - "tslib": "^1.9.3" - } - } } }, "@microsoft/sp-loader": { @@ -15970,6 +15968,14 @@ "tslib": "^1.9.3" } }, + "msalLegacy": { + "version": "npm:msal@1.4.12", + "resolved": "https://registry.npmjs.org/msal/-/msal-1.4.12.tgz", + "integrity": "sha512-gjupwQ6nvNL6mZkl5NIXyUmZhTiEMRu5giNdgHMh8l5EPOnV2Xj6nukY1NIxFacSTkEYUSDB47Pej9GxDYf+1w==", + "requires": { + "tslib": "^1.9.3" + } + }, "multicast-dns": { "version": "6.2.3", "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-6.2.3.tgz", @@ -18535,14 +18541,13 @@ "integrity": "sha1-DD0L6u2KAclm2Xh793goElKpeao=" }, "react": { - "version": "16.8.5", - "resolved": "https://registry.npmjs.org/react/-/react-16.8.5.tgz", - "integrity": "sha512-daCb9TD6FZGvJ3sg8da1tRAtIuw29PbKZW++NN4wqkbEvxL+bZpaaYb4xuftW/SpXmgacf1skXl/ddX6CdOlDw==", + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react/-/react-16.13.1.tgz", + "integrity": "sha512-YMZQQq32xHLX0bz5Mnibv1/LHb3Sqzngu7xstSM+vrkE5Kzr9xE0yMByK5kMoTK30YVJE61WfbxIFFvfeDKT1w==", "requires": { "loose-envify": "^1.1.0", "object-assign": "^4.1.1", - "prop-types": "^15.6.2", - "scheduler": "^0.13.5" + "prop-types": "^15.6.2" } }, "react-ace": { @@ -21744,9 +21749,9 @@ } }, "typescript": { - "version": "3.3.4000", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.3.4000.tgz", - "integrity": "sha512-jjOcCZvpkl2+z7JFn0yBOoLQyLoIkNZAs/fYJkUG6VKy6zLPHJGfQJYFHzibB6GJaF/8QrcECtlQ5cpvRHSMEA==", + "version": "3.9.10", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", + "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==", "dev": true }, "ua-parser-js": { diff --git a/samples/react-enhanced-powerapps/package.json b/samples/react-enhanced-powerapps/package.json index 5c8300efa..781297b96 100644 --- a/samples/react-enhanced-powerapps/package.json +++ b/samples/react-enhanced-powerapps/package.json @@ -1,6 +1,6 @@ { "name": "react-enhanced-powerapps", - "version": "1.1.0", + "version": "1.2.0", "private": true, "main": "lib/index.js", "engines": { @@ -21,12 +21,12 @@ "@microsoft/sp-webpart-base": "1.13.1", "@pnp/spfx-controls-react": "1.19.0", "@pnp/spfx-property-controls": "1.19.0", - "office-ui-fabric-react": "6.214.0", - "react": "16.8.5", - "react-dom": "16.8.5", "lodash": ">=4.17.19", - "serialize-javascript": ">=2.1.1", - "lodash.template": ">=4.5.0" + "lodash.template": ">=4.5.0", + "office-ui-fabric-react": "6.214.0", + "react": "^16.13.1", + "react-dom": "16.8.5", + "serialize-javascript": ">=2.1.1" }, "devDependencies": { "@microsoft/rush-stack-compiler-3.3": "0.3.5", @@ -47,6 +47,7 @@ "stylelint-config-css-modules": "^2.2.0", "stylelint-config-standard": "^20.0.0", "stylelint-scss": "^3.18.0", + "typescript": "^3.9.10", "webpack-bundle-analyzer": "^3.8.0" } } diff --git a/samples/react-enhanced-powerapps/sharepoint/solution/react-enhanced-powerapps.sppkg b/samples/react-enhanced-powerapps/sharepoint/solution/react-enhanced-powerapps.sppkg index 76963dab1..5317e390e 100644 Binary files a/samples/react-enhanced-powerapps/sharepoint/solution/react-enhanced-powerapps.sppkg and b/samples/react-enhanced-powerapps/sharepoint/solution/react-enhanced-powerapps.sppkg differ diff --git a/samples/react-enhanced-powerapps/src/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.manifest.json b/samples/react-enhanced-powerapps/src/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.manifest.json index fea555140..db86b46ef 100644 --- a/samples/react-enhanced-powerapps/src/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.manifest.json +++ b/samples/react-enhanced-powerapps/src/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.manifest.json @@ -21,6 +21,7 @@ "properties": { "layout": 'AspectRatio', "aspectratio": '16:9', + "isWebPartHiddenOnSmallDevices":false } }] } diff --git a/samples/react-enhanced-powerapps/src/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.ts b/samples/react-enhanced-powerapps/src/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.ts index bb363639d..1925601ef 100644 --- a/samples/react-enhanced-powerapps/src/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.ts +++ b/samples/react-enhanced-powerapps/src/webparts/enhancedPowerApps/EnhancedPowerAppsWebPart.ts @@ -59,6 +59,7 @@ export interface IEnhancedPowerAppsWebPartProps { height: number; width: number; aspectratio: '16:9'|'3:2'|'16:10'|'4:3'|'Custom'; + isWebPartHiddenOnSmallDevices: boolean; themeValues: string[]; } @@ -132,6 +133,7 @@ export default class EnhancedPowerAppsWebPart extends BaseClientSideWebPart +
{needConfiguration && { this.props.appWebLink && - } diff --git a/samples/react-enhanced-powerapps/src/webparts/enhancedPowerApps/components/IEnhancedPowerAppsProps.ts b/samples/react-enhanced-powerapps/src/webparts/enhancedPowerApps/components/IEnhancedPowerAppsProps.ts index b37c486db..d4533d8f6 100644 --- a/samples/react-enhanced-powerapps/src/webparts/enhancedPowerApps/components/IEnhancedPowerAppsProps.ts +++ b/samples/react-enhanced-powerapps/src/webparts/enhancedPowerApps/components/IEnhancedPowerAppsProps.ts @@ -54,6 +54,11 @@ export interface IEnhancedPowerAppsProps { */ border: boolean; + /** + * Whether we show webpart or not + */ + isWebPartHiddenOnSmallDevices: boolean; + /** * Selected theme values to pass to Power Apps */ diff --git a/samples/react-enhanced-powerapps/src/webparts/enhancedPowerApps/loc/en-us.js b/samples/react-enhanced-powerapps/src/webparts/enhancedPowerApps/loc/en-us.js index c344886ef..dd72a057e 100644 --- a/samples/react-enhanced-powerapps/src/webparts/enhancedPowerApps/loc/en-us.js +++ b/samples/react-enhanced-powerapps/src/webparts/enhancedPowerApps/loc/en-us.js @@ -26,6 +26,7 @@ define([], function() { PlaceholderIconText: "Enhanced Microsoft Power Apps", PropertyPaneDescription: "Add a custom business app by pasting its web link or ID below.", BasicGroupName: "Basic Configuration", - AppWebLinkFieldLabel: "App web link or ID" + AppWebLinkFieldLabel: "App web link or ID", + IsWebPartHiddenOnSmallDevicesFieldLabel: "Hide webpart on mobile devices" } }); diff --git a/samples/react-enhanced-powerapps/src/webparts/enhancedPowerApps/loc/mystrings.d.ts b/samples/react-enhanced-powerapps/src/webparts/enhancedPowerApps/loc/mystrings.d.ts index 62fa5fec8..1ffd6fe57 100644 --- a/samples/react-enhanced-powerapps/src/webparts/enhancedPowerApps/loc/mystrings.d.ts +++ b/samples/react-enhanced-powerapps/src/webparts/enhancedPowerApps/loc/mystrings.d.ts @@ -26,6 +26,7 @@ declare interface IEnhancedPowerAppsWebPartStrings { PropertyPaneDescription: string; BasicGroupName: string; AppWebLinkFieldLabel: string; + IsWebPartHiddenOnSmallDevicesFieldLabel:string; } declare module 'EnhancedPowerAppsWebPartStrings' { diff --git a/samples/react-enhanced-powerapps/temp/manifests.js b/samples/react-enhanced-powerapps/temp/manifests.js index a11a284db..6b0a47cd7 100644 --- a/samples/react-enhanced-powerapps/temp/manifests.js +++ b/samples/react-enhanced-powerapps/temp/manifests.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.debugManifests=t():e.debugManifests=t()}(window,function(){return function(e){var t={};function n(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(a,i,function(t){return e[t]}.bind(null,i));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",function(){var e,t=document.getElementsByTagName("script"),a=/manifests\.js/i;if(t&&t.length)for(var i=0;i