Skip to content

Commit

Permalink
Initial commit of the property pane controls
Browse files Browse the repository at this point in the history
  • Loading branch information
estruyf committed Sep 12, 2017
1 parent 4453cd6 commit 4d8e0f5
Show file tree
Hide file tree
Showing 72 changed files with 4,518 additions and 43 deletions.
25 changes: 25 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true


[*]

# change these settings to your own preference
indent_style = space
indent_size = 2

# we recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[{package,bower}.json]
indent_style = space
indent_size = 2
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
65 changes: 22 additions & 43 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,58 +2,37 @@
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Dependency directories
node_modules

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Build generated files
dist
lib
solution
temp
*.sppkg

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# OSX
.DS_Store

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm
# Visual Studio files
.ntvs_analysis.dat
.vs
bin
obj

# Optional eslint cache
.eslintcache
# Resx Generated Code
*.resx.ts

# Optional REPL history
.node_repl_history
# Styles Generated Code
*.scss.ts

# Output of 'npm pack'
# NPM packages
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# VSCode
.vscode
22 changes: 22 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Folders
.vscode
coverage
node_modules
sharepoint
src
temp
config
typings
lib/webparts
assets
dist

# Files
*.csproj
.git*
.yo-rc.json
.editorconfig
gulpfile.js
tsconfig.json
yarn.lock
*.tgz
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# sp-dev-fx-property-controls

Property controls for the SharePoint Framework solutions.

# work in progress
17 changes: 17 additions & 0 deletions config/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://dev.office.com/json-schemas/spfx-build/config.2.0.schema.json",
"version": "2.0",
"bundles": {
"property-controls-test-web-part": {
"components": [{
"entrypoint": "./lib/webparts/propertyControlsTest/PropertyControlsTestWebPart.js",
"manifest": "./src/webparts/propertyControlsTest/PropertyControlsTestWebPart.manifest.json"
}]
}
},
"externals": {},
"localizedResources": {
"PropertyControlsTestWebPartStrings": "lib/webparts/propertyControlsTest/loc/{locale}.js",
"PropertyControlStrings": "lib/loc/{locale}.js"
}
}
4 changes: 4 additions & 0 deletions config/copy-assets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://dev.office.com/json-schemas/spfx-build/copy-assets.schema.json",
"deployCdnPath": "temp/deploy"
}
7 changes: 7 additions & 0 deletions config/deploy-azure-storage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "https://dev.office.com/json-schemas/spfx-build/deploy-azure-storage.schema.json",
"workingDir": "./temp/deploy/",
"account": "<!-- STORAGE ACCOUNT NAME -->",
"container": "sp-dev-fx-property-controls",
"accessKey": "<!-- ACCESS KEY -->"
}
12 changes: 12 additions & 0 deletions config/package-solution.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://dev.office.com/json-schemas/spfx-build/package-solution.schema.json",
"solution": {
"name": "sp-dev-fx-property-controls-client-side-solution",
"id": "0253ef52-be23-4282-b00f-e5a9350eb408",
"version": "1.0.0.0",
"skipFeatureDeployment": true
},
"paths": {
"zippedPackage": "solution/sp-dev-fx-property-controls.sppkg"
}
}
10 changes: 10 additions & 0 deletions config/serve.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://dev.office.com/json-schemas/core-build/serve.schema.json",
"port": 4321,
"initialPage": "https://localhost:5432/workbench",
"https": true,
"api": {
"port": 5432,
"entryPath": "node_modules/@microsoft/sp-webpart-workbench/lib/api/"
}
}
45 changes: 45 additions & 0 deletions config/tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"$schema": "https://dev.office.com/json-schemas/core-build/tslint.schema.json",
// Display errors as warnings
"displayAsWarning": true,
// The TSLint task may have been configured with several custom lint rules
// before this config file is read (for example lint rules from the tslint-microsoft-contrib
// project). If true, this flag will deactivate any of these rules.
"removeExistingRules": true,
// When true, the TSLint task is configured with some default TSLint "rules.":
"useDefaultConfigAsBase": false,
// Since removeExistingRules=true and useDefaultConfigAsBase=false, there will be no lint rules
// which are active, other than the list of rules below.
"lintConfig": {
// Opt-in to Lint rules which help to eliminate bugs in JavaScript
"rules": {
"class-name": false,
"export-name": false,
"forin": false,
"label-position": false,
"member-access": true,
"no-arg": false,
"no-console": false,
"no-construct": false,
"no-duplicate-case": true,
"no-duplicate-variable": true,
"no-eval": false,
"no-function-expression": true,
"no-internal-module": true,
"no-shadowed-variable": true,
"no-switch-case-fall-through": true,
"no-unnecessary-semicolons": true,
"no-unused-expression": true,
"no-use-before-declare": true,
"no-with-statement": true,
"semicolon": true,
"trailing-comma": false,
"typedef": false,
"typedef-whitespace": false,
"use-named-parameter": true,
"valid-typeof": true,
"variable-name": false,
"whitespace": false
}
}
}
4 changes: 4 additions & 0 deletions config/write-manifests.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://dev.office.com/json-schemas/spfx-build/write-manifests.schema.json",
"cdnBasePath": "<!-- PATH TO CDN -->"
}
6 changes: 6 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
'use strict';

const gulp = require('gulp');
const build = require('@microsoft/sp-build-web');

build.initialize(gulp);
33 changes: 33 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "sp-dev-fx-property-controls",
"version": "0.0.1",
"private": true,
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"build": "gulp bundle",
"clean": "gulp clean",
"test": "gulp test"
},
"dependencies": {
"@microsoft/sp-core-library": "~1.2.0",
"@microsoft/sp-webpart-base": "~1.2.0",
"@types/webpack-env": ">=1.12.1 <1.14.0",
"react": "15.4.2",
"react-dom": "15.4.2",
"@types/react": "15.0.38",
"@types/react-dom": "0.14.18",
"@types/react-addons-shallow-compare": "0.14.17",
"@types/react-addons-update": "0.14.14",
"@types/react-addons-test-utils": "0.14.15"
},
"devDependencies": {
"@microsoft/sp-build-web": "~1.2.0",
"@microsoft/sp-module-interfaces": "~1.2.0",
"@microsoft/sp-webpart-workbench": "~1.2.0",
"gulp": "~3.9.1",
"@types/chai": ">=3.4.34 <3.6.0",
"@types/mocha": ">=2.2.33 <2.6.0"
}
}
1 change: 1 addition & 0 deletions src/PropertyFieldDateTimePicker.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './propertyFields/dateTimePicker/index';
1 change: 1 addition & 0 deletions src/PropertyFieldListPicker.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './propertyFields/listPicker/index';
1 change: 1 addition & 0 deletions src/PropertyFieldPeoplePicker.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './propertyFields/peoplePicker/index';
1 change: 1 addition & 0 deletions src/PropertyFieldTermPicker.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './propertyFields/termPicker/index';
54 changes: 54 additions & 0 deletions src/loc/en-us.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
define([], function () {
return {
// PeoplePicker labels
"PeoplePickerSuggestedContacts": "Suggested people",
"PeoplePickerSuggestedGroups": "Suggested groups",
"PeoplePickerSuggestedCombined": "Suggested people and groups",
"PeoplePickerNoResults": "No result found",
"PeoplePickerLoading": "Loading results ...",

//DatePicker labels
"DatePickerMonthLongJanuary": "January",
"DatePickerMonthShortJanuary": "Jan",
"DatePickerMonthLongFebruary": "February",
"DatePickerMonthShortFebruary": "Feb",
"DatePickerMonthLongMarch": "March",
"DatePickerMonthShortMarch": "Mar",
"DatePickerMonthLongApril": "April",
"DatePickerMonthShortApril": "Apr",
"DatePickerMonthLongMay": "May",
"DatePickerMonthShortMay": "May",
"DatePickerMonthLongJune": "June",
"DatePickerMonthShortJune": "Jun",
"DatePickerMonthLongJuly": "July",
"DatePickerMonthShortJuly": "Jul",
"DatePickerMonthLongAugust": "August",
"DatePickerMonthShortAugust": "Aug",
"DatePickerMonthLongSeptember": "September",
"DatePickerMonthShortSeptember": "Sept",
"DatePickerMonthLongOctober": "October",
"DatePickerMonthShortOctober": "Oct",
"DatePickerMonthLongNovember": "November",
"DatePickerMonthShortNovember": "Nov",
"DatePickerMonthLongDecember": "December",
"DatePickerMonthShortDecember": "Dec",
"DatePickerDayLongSunday": "Sunday",
"DatePickerDayShortSunday": "Sun",
"DatePickerDayLongMonday": "Monday",
"DatePickerDayShortMonday": "Mon",
"DatePickerDayLongTuesday": "Tuesday",
"DatePickerDayShortTuesday": "Tue",
"DatePickerDayLongWednesday": "Wednesday",
"DatePickerDayShortWednesday": "Web",
"DatePickerDayLongThursday": "Thursday",
"DatePickerDayShortThursday": "Thu",
"DatePickerDayLongFriday": "Friday",
"DatePickerDayShortFriday": "Fri",
"DatePickerDayLongSaturday": "Saturday",
"DatePickerDayShortSaturday": "Sat",

"DatepickerGoToToday": "Today",
"DateTimePickerDate": "Date",
"DateTimePickerTime": "Time"
}
});
Loading

0 comments on commit 4d8e0f5

Please sign in to comment.