This commit is contained in:
Jerry Yasir 2020-09-26 15:54:06 -04:00 committed by GitHub
parent f388ef6d87
commit 6eb9677a74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
26 changed files with 77319 additions and 0 deletions

View File

@ -0,0 +1,81 @@
{
"id": "6baae7a7-af13-40d3-9567-f3bca9986248",
"alias": "WorldClockWebPartWebPart",
"componentType": "WebPart",
"version": "0.0.1",
"manifestVersion": 2,
"requiresCustomScript": false,
"supportedHosts": [
"SharePointWebPart"
],
"preconfiguredEntries": [
{
"groupId": "5c03119e-3074-46fd-976b-c60198311f70",
"group": {
"default": "Other"
},
"title": {
"default": "WorldClockWebPart"
},
"description": {
"default": "World Clock Web Part"
},
"officeFabricIconFontName": "Page",
"properties": {
"description": "World Clock WebPart"
}
}
],
"loaderConfig": {
"entryModuleId": "world-clock-web-part-web-part",
"internalModuleBaseUrls": [
"https://localhost:4321/"
],
"scriptResources": {
"world-clock-web-part-web-part": {
"type": "path",
"path": "dist/world-clock-web-part-web-part.js"
},
"WorldClockWebPartWebPartStrings": {
"defaultPath": "lib/webparts/worldClockWebPart/loc/en-us.js",
"type": "localizedPath"
},
"ControlStrings": {
"defaultPath": "node_modules/@pnp/spfx-controls-react/lib/loc/en-us.js",
"type": "localizedPath"
},
"@microsoft/sp-property-pane": {
"type": "component",
"version": "1.11.0",
"id": "f9e737b7-f0df-4597-ba8c-3060f82380db"
},
"@microsoft/sp-core-library": {
"type": "component",
"version": "1.11.0",
"id": "7263c7d0-1d6a-45ec-8d85-d4d1d234171b"
},
"@microsoft/sp-webpart-base": {
"type": "component",
"version": "1.11.0",
"id": "974a7777-0990-4136-8fa6-95d80114c2e0"
},
"react": {
"type": "component",
"version": "16.8.5",
"id": "0d910c1c-13b9-4e1c-9aa4-b008c5e42d7d",
"failoverPath": "node_modules/react/dist/react.js"
},
"react-dom": {
"type": "component",
"version": "16.8.5",
"id": "aa0a46ec-1505-43cd-a44a-93f3a5aa460a",
"failoverPath": "node_modules/react-dom/dist/react-dom.js"
},
"@microsoft/sp-http": {
"type": "component",
"version": "1.11.0",
"id": "c07208f0-ea3b-4c1a-9965-ac1b825211a6"
}
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
//# sourceMappingURL=index.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}

View File

@ -0,0 +1,2 @@
// A file is required to be in the root of the /src directory by the TypeScript compiler
//# sourceMappingURL=index.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,wFAAwF"}

View File

@ -0,0 +1,19 @@
import { Version } from "@microsoft/sp-core-library";
import { BaseClientSideWebPart } from "@microsoft/sp-webpart-base";
import { IPropertyPaneConfiguration } from "@microsoft/sp-property-pane";
export interface IWorldClockWebPartWebPartProps {
selectedList: string;
description: string;
ShowTime: boolean;
showActiveOnly: boolean;
showTitle: boolean;
}
export default class WorldClockWebPartWebPart extends BaseClientSideWebPart<IWorldClockWebPartWebPartProps> {
render(): void;
onInit(): Promise<void>;
protected onDispose(): void;
protected readonly dataVersion: Version;
protected getPropertyPaneConfiguration(): IPropertyPaneConfiguration;
private _getLocations;
}
//# sourceMappingURL=WorldClockWebPartWebPart.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"WorldClockWebPartWebPart.d.ts","sourceRoot":"","sources":["../../../src/webparts/worldClockWebPart/WorldClockWebPartWebPart.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,OAAO,EACL,0BAA0B,EAK3B,MAAM,6BAA6B,CAAC;AASrC,MAAM,WAAW,8BAA8B;IAC7C,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;CACpB;AASD,MAAM,CAAC,OAAO,OAAO,wBAAyB,SAAQ,qBAAqB,CACzE,8BAA8B,CAC/B;IACQ,MAAM,IAAI,IAAI;IAuBd,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAQ9B,SAAS,CAAC,SAAS,IAAI,IAAI;uBAQb,WAAW,EAAI,OAAO;IAIpC,SAAS,CAAC,4BAA4B,IAAI,0BAA0B;IAwDpE,OAAO,CAAC,aAAa;CAgCtB"}

View File

@ -0,0 +1,158 @@
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import * as React from "react";
import * as ReactDom from "react-dom";
import { Version } from "@microsoft/sp-core-library";
import { BaseClientSideWebPart } from "@microsoft/sp-webpart-base";
import { PropertyPaneTextField, PropertyPaneToggle, } from "@microsoft/sp-property-pane";
import * as strings from "WorldClockWebPartWebPartStrings";
import WorldClockWebPart from "./components/WorldClockWebPart";
import { sp } from "@pnp/sp/presets/all";
import { PropertyFieldListPicker, PropertyFieldListPickerOrderBy, } from "@pnp/spfx-property-controls/lib/PropertyFieldListPicker";
var WorldClockWebPartWebPart = /** @class */ (function (_super) {
__extends(WorldClockWebPartWebPart, _super);
function WorldClockWebPartWebPart() {
return _super !== null && _super.apply(this, arguments) || this;
}
WorldClockWebPartWebPart.prototype.render = function () {
var _this = this;
var element = React.createElement(WorldClockWebPart, {
selectedList: this.properties.selectedList,
description: this.properties.description,
loadLocations: this._getLocations.bind(this),
ShowTime: this.properties.ShowTime,
showActiveOnly: this.properties.showActiveOnly,
showTitle: this.properties.showTitle,
updateProperty: function (value) {
_this.properties.description = value;
},
displayMode: this.displayMode,
onConfigure: function () {
_this.context.propertyPane.open();
},
});
ReactDom.render(element, this.domElement);
};
WorldClockWebPartWebPart.prototype.onInit = function () {
var _this = this;
return _super.prototype.onInit.call(this).then(function (_) {
sp.setup({
spfxContext: _this.context,
});
});
};
WorldClockWebPartWebPart.prototype.onDispose = function () {
ReactDom.unmountComponentAtNode(this.domElement);
};
Object.defineProperty(WorldClockWebPartWebPart.prototype, "dataVersion", {
// protected get disableReactivePropertyChanges(): boolean {
// return true;
// }
get: function () {
return Version.parse("1.0");
},
enumerable: true,
configurable: true
});
WorldClockWebPartWebPart.prototype.getPropertyPaneConfiguration = function () {
return {
pages: [
{
header: {
description: strings.PropertyPaneDescription,
},
groups: [
{
groupName: strings.BasicGroupName,
groupFields: [
PropertyPaneTextField("description", {
label: strings.DescriptionFieldLabel,
}),
PropertyFieldListPicker("selectedList", {
label: "Select a list",
selectedList: this.properties.selectedList,
includeHidden: false,
orderBy: PropertyFieldListPickerOrderBy.Title,
disabled: false,
webAbsoluteUrl: this.context.pageContext.web.absoluteUrl,
onPropertyChange: this.onPropertyPaneFieldChanged.bind(this),
properties: this.properties,
context: this.context,
onGetErrorMessage: null,
deferredValidationTime: 0,
key: "listPickerFieldId",
}),
],
},
{
groupName: strings.BasicViewGroupName,
groupFields: [
PropertyPaneToggle("ShowTime", {
label: strings.IsShowTimeFieldLabel,
checked: this.properties.ShowTime,
key: "ShowTime",
}),
PropertyPaneToggle("showActiveOnly", {
label: strings.ShowActiveOnlyFieldLabel,
checked: this.properties.showActiveOnly,
key: "togshowActiveOnly",
}),
,
PropertyPaneToggle("showTitle", {
label: strings.showTitleFieldLabel,
checked: this.properties.showTitle,
key: "togshowTitle",
}),
],
},
],
},
],
};
};
WorldClockWebPartWebPart.prototype._getLocations = function () {
//console.log(this.properties);
//"World Clocks"
// debugger;
//console.log('__');
//console.log(this.context.pageContext.web.absoluteUrl);
//console.log(this.properties);
//let webLocation = new this.sp.web pnp.c(this.context.pageContext.web.absoluteUrl);
var filter = "";
console.log(this.properties.showActiveOnly);
if (this.properties.showActiveOnly) {
filter = "IsActive eq 1";
}
else {
filter = "";
}
return sp.web.lists
.getById(this.properties.selectedList)
.items.filter(filter)
.select("Title", "GMTValues")
.orderBy("ListOrder")
.get()
.then(function (Locations) {
return Locations;
})
.catch(function (error) {
console.log("error loading all location....");
console.log(error);
return [];
});
};
return WorldClockWebPartWebPart;
}(BaseClientSideWebPart));
export default WorldClockWebPartWebPart;
//# sourceMappingURL=WorldClockWebPartWebPart.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"WorldClockWebPartWebPart.js","sourceRoot":"","sources":["../../../src/webparts/worldClockWebPart/WorldClockWebPartWebPart.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,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,OAAO,EAEL,qBAAqB,EACrB,kBAAkB,GAGnB,MAAM,6BAA6B,CAAC;AAErC,OAAO,KAAK,OAAO,MAAM,iCAAiC,CAAC;AAC3D,OAAO,iBAAiB,MAAM,gCAAgC,CAAC;AAa/D,OAAO,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAC;AAEzC,OAAO,EACL,uBAAuB,EACvB,8BAA8B,GAC/B,MAAM,yDAAyD,CAAC;AAGjE;IAAsD,4CAErD;IAFD;;IAsIA,CAAC;IAnIQ,yCAAM,GAAb;QAAA,iBAqBC;QApBC,IAAM,OAAO,GAAgD,KAAK,CAAC,aAAa,CAC9E,iBAAiB,EACjB;YACE,YAAY,EAAE,IAAI,CAAC,UAAU,CAAC,YAAY;YAC1C,WAAW,EAAE,IAAI,CAAC,UAAU,CAAC,W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/B,gBAAgB;QAChB,YAAY;QACZ,oBAAoB;QACpB,wDAAwD;QACxD,+BAA+B;QAE/B,oFAAoF;QACpF,IAAI,MAAM,GAAW,EAAE,CAAC;QACxB,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;QAC5C,IAAI,IAAI,CAAC,UAAU,CAAC,cAAc,EAAE;YAClC,MAAM,GAAG,eAAe,CAAC;SAC1B;aAAM;YACL,MAAM,GAAG,EAAE,CAAC;SACb;QAED,OAAO,EAAE,CAAC,GAAG,CAAC,KAAK;aAChB,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC;aACrC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;aACpB,MAAM,CAAC,OAAO,EAAE,WAAW,CAAC;aAC5B,OAAO,CAAC,WAAW,CAAC;aACpB,GAAG,EAAE;aACL,IAAI,CAAC,UAAC,SAAS;YACd,OAAO,SAAS,CAAC;QACnB,CAAC,CAAC;aACD,KAAK,CAAC,UAAC,KAAK;YACX,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;YAC9C,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YACnB,OAAO,EAAE,CAAC;QACZ,CAAC,CAAC,CAAC;IACP,CAAC;IACH,+BAAC;AAAD,CAAC,AAtID,CAAsD,qBAAqB,GAsI1E"}

View File

@ -0,0 +1,29 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/spfx/client-side-web-part-manifest.schema.json",
"id": "6baae7a7-af13-40d3-9567-f3bca9986248",
"alias": "WorldClockWebPartWebPart",
"componentType": "WebPart",
"version": "*",
"manifestVersion": 2,
"requiresCustomScript": false,
"supportedHosts": ["SharePointWebPart"],
"preconfiguredEntries": [{
"groupId": "5c03119e-3074-46fd-976b-c60198311f70", // Other
"group": {
"default": "Other"
},
"title": {
"default": "WorldClockWebPart"
},
"description": {
"default": "World Clock Web Part"
},
"officeFabricIconFontName": "Page",
"properties": {
"description": "World Clock WebPart"
}
}]
}

View File

@ -0,0 +1,20 @@
import { DisplayMode } from "@microsoft/sp-core-library";
export interface IWorldClockWebPartProps {
selectedList: string;
description: string;
loadLocations: () => Promise<ILocation[]>;
ShowTime: boolean;
showActiveOnly: boolean;
showTitle: boolean;
displayMode: DisplayMode;
updateProperty: (value: string) => void;
onConfigure: () => void;
}
export interface ILocation {
Title?: string;
GMTValues?: number;
}
export interface IWorldClockWebPartState {
clocks?: any[];
}
//# sourceMappingURL=IWorldClockWebPartProps.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"IWorldClockWebPartProps.d.ts","sourceRoot":"","sources":["../../../../src/webparts/worldClockWebPart/components/IWorldClockWebPartProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,MAAM,WAAW,uBAAuB;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;IAC1C,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,WAAW,CAAC;IACzB,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,uBAAuB;IACtC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;CAChB"}

View File

@ -0,0 +1 @@
//# sourceMappingURL=IWorldClockWebPartProps.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"IWorldClockWebPartProps.js","sourceRoot":"","sources":["../../../../src/webparts/worldClockWebPart/components/IWorldClockWebPartProps.ts"],"names":[],"mappings":""}

View File

@ -0,0 +1,10 @@
import * as React from "react";
import { IWorldClockWebPartProps, IWorldClockWebPartState } from "./IWorldClockWebPartProps";
export default class WorldClockWebPart extends React.Component<IWorldClockWebPartProps, IWorldClockWebPartState> {
private clocks;
private TitleText;
constructor(props: IWorldClockWebPartProps, state: IWorldClockWebPartState);
componentDidMount(): void;
render(): React.ReactElement<IWorldClockWebPartProps>;
}
//# sourceMappingURL=WorldClockWebPart.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"WorldClockWebPart.d.ts","sourceRoot":"","sources":["../../../../src/webparts/worldClockWebPart/components/WorldClockWebPart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,uBAAuB,EAEvB,uBAAuB,EACxB,MAAM,2BAA2B,CAAC;AAYnC,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,KAAK,CAAC,SAAS,CAC5D,uBAAuB,EACvB,uBAAuB,CACxB;IACC,OAAO,CAAC,MAAM,CAAM;IACpB,OAAO,CAAC,SAAS,CAAc;gBACnB,KAAK,EAAE,uBAAuB,EAAE,KAAK,EAAE,uBAAuB;IAInE,iBAAiB;IAyHjB,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,uBAAuB,CAAC;CA6B7D"}

View File

@ -0,0 +1,137 @@
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import * as React from "react";
import styles from "./WorldClockWebPart.module.scss";
import AnalogClock from "react-analog-clock";
import Clock from "react-live-clock";
import moment from "moment";
import { Placeholder } from "@pnp/spfx-controls-react/lib/Placeholder";
import { WebPartTitle } from "@pnp/spfx-controls-react/lib/WebPartTitle";
var WorldClockWebPart = /** @class */ (function (_super) {
__extends(WorldClockWebPart, _super);
function WorldClockWebPart(props, state) {
var _this = _super.call(this, props) || this;
_this.clocks = [];
_this.TitleText = "";
_this.state = { clocks: [] };
return _this;
}
WorldClockWebPart.prototype.componentDidMount = function () {
var _this = this;
var dayTheme = {
background: "#ededed",
border: "#222222",
center: "#222222",
seconds: "transparent",
minutes: "#000",
hour: "#000",
tick: "#000",
smallTickWidth: 1,
largeTickWidth: 1,
secondHandWidth: 1,
minuteHandWidth: 1,
hourHandWidth: 1,
};
var eveningTheme = {
background: "#A9A9A9",
border: "#868181",
center: "#DCDCDC",
seconds: "transparent",
minutes: "#000000",
hour: "#000000",
tick: "#000000",
smallTickWidth: 1,
largeTickWidth: 1,
secondHandWidth: 1,
minuteHandWidth: 1,
hourHandWidth: 1,
};
var nightTheme = {
background: "#2e2e2e",
border: "#868181",
center: "#acabab",
seconds: "transparent",
minutes: "#acabab",
hour: "#acabab",
tick: "#acabab",
smallTickWidth: 1,
largeTickWidth: 1,
secondHandWidth: 1,
minuteHandWidth: 1,
hourHandWidth: 1,
};
var WIDTH = 100;
this.props.loadLocations().then(function (options) {
console.log(options);
for (var i = 0; i < options.length; i++) {
var myDate = new Date().setHours(new Date().getHours() +
new Date().getTimezoneOffset() / 60 +
Number(options[i].GMTValues));
var TimeofDay = moment(myDate).format("hh:mm A");
var selectedTheme = null;
var time = new Date(myDate).getHours();
{
var timeOfDayMessage = "";
if (time > 4 && time < 18) {
timeOfDayMessage = "is having a great day Today.";
selectedTheme = dayTheme;
}
else if (time >= 18 && time < 21) {
timeOfDayMessage = "is having a great evening right Now.";
selectedTheme = eveningTheme;
}
else {
timeOfDayMessage = "is all Good Night right now!";
selectedTheme = nightTheme;
}
_this.clocks.push(React.createElement("span", { className: styles.Clock, title: "Current Time in " +
options[i].Title +
" (GMT" +
options[i].GMTValues +
") is " +
TimeofDay +
" and it " +
timeOfDayMessage },
React.createElement(AnalogClock
//theme={time > 6 && time < 18 ? dayTheme : nightTheme}
, {
//theme={time > 6 && time < 18 ? dayTheme : nightTheme}
theme: selectedTheme, gmtOffset: options[i].GMTValues, showSmallTicks: false, width: WIDTH, interval: 1 }),
_this.props.ShowTime ? (React.createElement("p", { className: styles.ClockTitle, title: "Current Time in " +
options[i].Title +
" (GMT" +
options[i].GMTValues +
") is " +
TimeofDay },
React.createElement(Clock, { date: myDate, format: "hh:mm:ss", interval: 1000, ticking: true }))) : (React.createElement("div", null)),
React.createElement("p", { className: styles.ClockTitle }, options[i].Title)));
}
}
_this.setState({ clocks: _this.clocks });
});
};
WorldClockWebPart.prototype.render = function () {
var WIDTH = 250;
var showTitle = this.props.showTitle;
var listSelected = typeof this.props.selectedList !== "undefined" &&
this.props.selectedList.length > 0;
return (React.createElement("div", { className: styles.worldClockWebPart },
!listSelected && (React.createElement(Placeholder, { iconName: "MusicInCollectionFill", iconText: "Configure your web part", description: "Select the already imported Clocks list and choose other settings.", buttonLabel: "Choose a List", onConfigure: this.props.onConfigure })),
showTitle && (React.createElement(WebPartTitle, { title: this.props.description, displayMode: this.props.displayMode, updateProperty: this.props.updateProperty })),
React.createElement("div", { className: styles.container }, this.clocks)));
};
return WorldClockWebPart;
}(React.Component));
export default WorldClockWebPart;
//# sourceMappingURL=WorldClockWebPart.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"WorldClockWebPart.js","sourceRoot":"","sources":["../../../../src/webparts/worldClockWebPart/components/WorldClockWebPart.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,MAAM,MAAM,iCAAiC,CAAC;AAOrD,OAAO,WAAuB,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,MAAM,kBAAkB,CAAC;AACrC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACvE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,KAAK,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC;QAErC,OAAO,CACL,6BAAK,SAAS,EAAE,MAAM,CAAC,iBAAiB;YACrC,CAAC,YAAY,IAAI,CAChB,oBAAC,WAAW,IACV,QAAQ,EAAC,uBAAuB,EAChC,QAAQ,EAAC,yBAAyB,EAClC,WAAW,EAAC,oEAAoE,EAChF,WAAW,EAAC,eAAe,EAC3B,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,GACnC,CACH;YACA,SAAS,IAAI,CACZ,oBAAC,YAAY,IACX,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,EAC7B,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,EACnC,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,GACzC,CACH;YACD,6BAAK,SAAS,EAAE,MAAM,CAAC,SAAS,IAAG,IAAI,CAAC,MAAM,CAAO,CACjD,CACP,CAAC;IACJ,CAAC;IACH,wBAAC;AAAD,CAAC,AAhKD,CAA+C,KAAK,CAAC,SAAS,GAgK7D"}

View File

@ -0,0 +1,2 @@
.worldClockWebPart_5c7ebacf .container_5c7ebacf{margin:0 auto;padding:10px;display:table}.worldClockWebPart_5c7ebacf .Clock_5c7ebacf{float:left;margin-left:10px;margin-right:10px}.worldClockWebPart_5c7ebacf .Clock_5c7ebacf>div{-webkit-box-sizing:unset;box-sizing:unset}.worldClockWebPart_5c7ebacf .ClockTitle_5c7ebacf{text-align:center;margin:5px;font-size:13px;font-weight:700;font-family:"Segoe UI Web (West European)",Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}.worldClockWebPart_5c7ebacf .row_5c7ebacf{margin:0 -8px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;background-color:#005a9e;padding:20px}.worldClockWebPart_5c7ebacf .row_5c7ebacf::after,.worldClockWebPart_5c7ebacf .row_5c7ebacf::before{display:table;content:'';line-height:0}.worldClockWebPart_5c7ebacf .row_5c7ebacf::after{clear:both}.worldClockWebPart_5c7ebacf .column_5c7ebacf{position:relative;min-height:1px;padding-left:8px;padding-right:8px;-webkit-box-sizing:border-box;box-sizing:border-box}[dir=ltr] .worldClockWebPart_5c7ebacf .column_5c7ebacf{float:left}[dir=rtl] .worldClockWebPart_5c7ebacf .column_5c7ebacf{float:right}.worldClockWebPart_5c7ebacf .column_5c7ebacf .ms-Grid_5c7ebacf{padding:0}@media (min-width:640px){.worldClockWebPart_5c7ebacf .column_5c7ebacf{width:83.33333333333334%}}@media (min-width:1024px){.worldClockWebPart_5c7ebacf .column_5c7ebacf{width:66.66666666666666%}}@media (min-width:1024px){[dir=ltr] .worldClockWebPart_5c7ebacf .column_5c7ebacf{left:16.66667%}[dir=rtl] .worldClockWebPart_5c7ebacf .column_5c7ebacf{right:16.66667%}}@media (min-width:640px){[dir=ltr] .worldClockWebPart_5c7ebacf .column_5c7ebacf{left:8.33333%}[dir=rtl] .worldClockWebPart_5c7ebacf .column_5c7ebacf{right:8.33333%}}.worldClockWebPart_5c7ebacf .title_5c7ebacf{font-size:21px;font-weight:100;color:#fff}.worldClockWebPart_5c7ebacf .subTitle_5c7ebacf{font-size:17px;font-weight:300;color:#fff}.worldClockWebPart_5c7ebacf .description_5c7ebacf{font-size:17px;font-weight:300;color:#fff}.worldClockWebPart_5c7ebacf .button_5c7ebacf{text-decoration:none;height:32px;min-width:80px;background-color:#0078d4;border-color:#0078d4;color:#fff;outline:transparent;position:relative;font-family:"Segoe UI WestEuropean","Segoe UI",-apple-system,BlinkMacSystemFont,Roboto,"Helvetica Neue",sans-serif;-webkit-font-smoothing:antialiased;font-size:14px;font-weight:400;border-width:0;text-align:center;cursor:pointer;display:inline-block;padding:0 16px}.worldClockWebPart_5c7ebacf .button_5c7ebacf .label_5c7ebacf{font-weight:600;font-size:14px;height:32px;line-height:32px;margin:0 4px;vertical-align:top;display:inline-block}
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3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UEsRUFBQSxLQXJGSiw2REF3Rk0sWUFBQSxJQUNBLFVBQUEsS0FDQSxPQUFBLEtBQ0EsWUFBQSxLQUNBLE9BQUEsRUFBQSxJQUNBLGVBQUEsSUFDQSxRQUFBIn0= */

View File

@ -0,0 +1,16 @@
declare const styles: {
worldClockWebPart: string;
container: string;
Clock: string;
ClockTitle: string;
row: string;
column: string;
'ms-Grid': string;
title: string;
subTitle: string;
description: string;
button: string;
label: string;
};
export default styles;
//# sourceMappingURL=WorldClockWebPart.module.scss.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"WorldClockWebPart.module.scss.d.ts","sourceRoot":"","sources":["../../../../src/webparts/worldClockWebPart/components/WorldClockWebPart.module.scss.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM;;;;;;;;;;;;;CAaX,CAAC;AAEF,eAAe,MAAM,CAAC"}

View File

@ -0,0 +1,19 @@
/* tslint:disable */
require("./WorldClockWebPart.module.css");
var styles = {
worldClockWebPart: 'worldClockWebPart_5c7ebacf',
container: 'container_5c7ebacf',
Clock: 'Clock_5c7ebacf',
ClockTitle: 'ClockTitle_5c7ebacf',
row: 'row_5c7ebacf',
column: 'column_5c7ebacf',
'ms-Grid': 'ms-Grid_5c7ebacf',
title: 'title_5c7ebacf',
subTitle: 'subTitle_5c7ebacf',
description: 'description_5c7ebacf',
button: 'button_5c7ebacf',
label: 'label_5c7ebacf'
};
export default styles;
/* tslint:enable */
//# sourceMappingURL=WorldClockWebPart.module.scss.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"WorldClockWebPart.module.scss.js","sourceRoot":"","sources":["../../../../src/webparts/worldClockWebPart/components/WorldClockWebPart.module.scss.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,CAAC,gCAAgC,CAAC,CAAC;AAC1C,IAAM,MAAM,GAAG;IACb,iBAAiB,EAAE,4BAA4B;IAC/C,SAAS,EAAE,oBAAoB;IAC/B,KAAK,EAAE,gBAAgB;IACvB,UAAU,EAAE,qBAAqB;IACjC,GAAG,EAAE,cAAc;IACnB,MAAM,EAAE,iBAAiB;IACzB,SAAS,EAAE,kBAAkB;IAC7B,KAAK,EAAE,gBAAgB;IACvB,QAAQ,EAAE,mBAAmB;IAC7B,WAAW,EAAE,sBAAsB;IACnC,MAAM,EAAE,iBAAiB;IACzB,KAAK,EAAE,gBAAgB;CACxB,CAAC;AAEF,eAAe,MAAM,CAAC;AACtB,mBAAmB"}

View File

@ -0,0 +1,12 @@
define([], function () {
return {
PropertyPaneDescription: "Basic Web Part Properties",
BasicGroupName: "Base Properties",
BasicViewGroupName: "View Properties",
DescriptionFieldLabel: "Clocks Title",
showTitleFieldLabel: "Show Title",
ListNameFieldLabel: "Select Clocks List",
IsShowTimeFieldLabel: "Show Time",
ShowActiveOnlyFieldLabel: "Show Active Clocks"
};
});