Skip to content

Commit

Permalink
Version 0.1.2.2: Support for List Ribbon Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
olemp committed Feb 7, 2016
1 parent 443e5d8 commit fbb779e
Show file tree
Hide file tree
Showing 64 changed files with 1,650 additions and 1,510 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "js-sites-core",
"version": "0.1.2.1",
"version": "0.1.2.2",
"homepage": "https://github.com/olemp/js-sites-core",
"authors": [
"olemp <[email protected]>",
Expand Down
2,042 changes: 1,036 additions & 1,006 deletions dist/pzl.sites.core.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/pzl.sites.core.min.js

Large diffs are not rendered by default.

37 changes: 37 additions & 0 deletions dist/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ Defines a ListInstance element
"FieldRefs": [],
"Views": [],
"DataRows": [],
"RibbonActions": [],
"Security": {}
}
```
Expand Down Expand Up @@ -228,6 +229,7 @@ Fields|Array<[Field](#field)>|The Fields entries of the List Instance, optional
Folders|Array<[Folder](#folder)>|The Folders entries of the List Instance, optional collection of elements
Views|Array<[View](#view)>|The Views entries of the List Instance, optional collection of elements
DataRows|Array<Object>|The DataRows entries of the List Instance, optional collection of elements
RibbonActions|Array<[RibbonAction](#ribbonaction)>|The RibbonActions entries of the List Instance, optional collection of elements
Security|[Security](#security)|The Security entrie of the List Instance, optional elemenet


Expand Down Expand Up @@ -590,3 +592,38 @@ Attibute|Type|Description
ID|string|The unique ID of the Feature, required attribute
Deactivate|boolean|Defines if the feature has to be deactivated or activated
Description|string|The Description of the feature, optional attribute

###RibbonAction
Defines a RibbonAction element

```json
{
"Location": "",
"Control": "",
"Name": "",
"Description": "",
"Sequence": 5,
"Group": "",
"LabelText": "",
"Image16by16": "",
"Image32by32": "",
"LoadScript": ""
}
```


Here follow the available attributes for the RibbonAction element.


Attibute|Type|Description
--------|----|-----------
Location|string||The Location of the RibbonAction, required attribute
Control|string||The Control of the RibbonAction, required attribute
Name|string||The Name of the RibbonAction, required attribute
Description|string||The Description of the RibbonAction, required attribute
Sequence|number||The Sequence of the RibbonAction, required attribute
Group|string||The Group of the RibbonAction, required attribute
LabelText|string||The LabelText of the RibbonAction, required attribute
Image16by16|string||The Image16by16 of the RibbonAction, optional attribute
Image32by32|string||The Image32by32 of the RibbonAction, optional attribute
LoadScript|string||The LoadScript of the RibbonAction, required attribute
20 changes: 18 additions & 2 deletions src/build.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
tsc --out ..\dist\pzl.sites.core.js .\pzl.sites.core.ts --removeComments | Out-Null
Param(
[switch]$OpenFolderOnComplete
)
$output = "..\dist\pzl.sites.core.js"
Write-Host ""
Write-Host "----------------------------------------------------------------------" -ForegroundColor Green
Write-Host "Compiling dist '$($output)" -ForegroundColor Green
Write-Host "----------------------------------------------------------------------" -ForegroundColor Green
Write-Host ""
tsc --out $output .\pzl.sites.core.ts --removeComments
Write-Host ""
Write-Host "----------------------------------------------------------------------" -ForegroundColor Green
Write-Host "Creating minified dist using uglifyjs" -ForegroundColor Green
Write-Host "----------------------------------------------------------------------" -ForegroundColor Green
Write-Host ""
uglifyjs --mangle --compress --output ..\dist\pzl.sites.core.min.js -- ..\dist\pzl.sites.core.js | Out-Null
explorer.exe ..\dist
if($OpenFolderOnComplete) {
explorer.exe ..\dist
}
6 changes: 6 additions & 0 deletions src/model/ILoggingOptions.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
declare module Pzl.Sites.Core.Model {
interface ILoggingOptions {
On: boolean;
LoggingFolder: string;
}
}
6 changes: 0 additions & 6 deletions src/model/ILoggingOptions.ts

This file was deleted.

6 changes: 6 additions & 0 deletions src/model/IObjectHandler.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
declare module Pzl.Sites.Core.Model {
interface IObjectHandler {
name: string;
ProvisionObjects(objects);
}
}
5 changes: 0 additions & 5 deletions src/model/IObjectHandler.ts

This file was deleted.

7 changes: 7 additions & 0 deletions src/model/IOptions.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/// <reference path="model.d.ts" />
declare module Pzl.Sites.Core.Model {
interface IOptions {
WaitMessage?: IWaitMessageOptions;
Logging?: ILoggingOptions;
}
}
9 changes: 0 additions & 9 deletions src/model/IOptions.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Pzl.Sites.Core.Model {
export interface IWaitMessageOptions {
declare module Pzl.Sites.Core.Model {
interface IWaitMessageOptions {
Header?: string;
Content?: string;
ShowProgress?: boolean;
Expand Down
5 changes: 2 additions & 3 deletions src/model/ObjectHandlerBase.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/// <reference path="IObjectHandler.ts" />

/// <reference path="model.d.ts" />
module Pzl.Sites.Core.Model {
export class ObjectHandlerBase implements IObjectHandler {
name: string;
Expand All @@ -8,4 +7,4 @@ module Pzl.Sites.Core.Model {
}
ProvisionObjects(objects, parameters?) {}
}
}
}
6 changes: 6 additions & 0 deletions src/model/model.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/// <reference path='ILoggingOptions.d.ts' />
/// <reference path='IObjectHandler.d.ts' />
/// <reference path='IOptions.d.ts' />
/// <reference path='IWaitMessageOptions.d.ts' />
/// <reference path='ObjectHandlerBase.ts' />
/// <reference path='ProvisioningStep.ts' />
4 changes: 2 additions & 2 deletions src/objecthandlers/ComposedLook.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference path="..\..\typings\tsd.d.ts" />
/// <reference path="..\model\ObjectHandlerBase.ts" />
/// <reference path="..\schema\IComposedLook.ts" />
/// <reference path="..\model\model.d.ts" />
/// <reference path="..\schema\schema.d.ts" />
/// <reference path="..\pzl.sites.core.d.ts" />
/// <reference path="..\resources\pzl.sites.core.resources.ts" />

Expand Down
4 changes: 2 additions & 2 deletions src/objecthandlers/CustomActions.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference path="..\..\typings\tsd.d.ts" />
/// <reference path="..\model\ObjectHandlerBase.ts" />
/// <reference path="..\schema\ICustomAction.ts" />
/// <reference path="..\model\model.d.ts" />
/// <reference path="..\schema\schema.d.ts" />
/// <reference path="..\pzl.sites.core.d.ts" />
/// <reference path="..\resources\pzl.sites.core.resources.ts" />
"use strict";
Expand Down
2 changes: 1 addition & 1 deletion src/objecthandlers/Features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/// <reference path="..\model\ObjectHandlerBase.ts" />
/// <reference path="..\pzl.sites.core.d.ts" />
/// <reference path="..\resources\pzl.sites.core.resources.ts" />
/// <reference path="..\schema\IFeature.ts" />
/// <reference path="..\schema\schema.d.ts" />

module Pzl.Sites.Core.ObjectHandlers {
export class Features extends Model.ObjectHandlerBase {
Expand Down
7 changes: 3 additions & 4 deletions src/objecthandlers/Files.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/// <reference path="..\..\typings\tsd.d.ts" />
/// <reference path="..\model\ObjectHandlerBase.ts" />
/// <reference path="..\schema\IFile.ts" />
/// <reference path="..\schema\IWebPart.ts" />
/// <reference path="..\model\model.d.ts" />
/// <reference path="..\schema\schema.d.ts" />
/// <reference path="..\pzl.sites.core.d.ts" />
/// <reference path="..\resources\pzl.sites.core.resources.ts" />
"use strict";
Expand Down Expand Up @@ -222,7 +221,7 @@ module Pzl.Sites.Core.ObjectHandlers {
() => {
Object.keys(mapping).forEach((l, index) => {
Core.Log.Information("Hidden Views", String.format(Resources.Files_modifying_list_views, l));
var views: Array<Schema.HiddenView> = mapping[l];
var views: Array<Schema.IHiddenView> = mapping[l];
var list = lists[index];
var viewCollection = listViewCollections[index];
views.forEach((v) => {
Expand Down
Loading

0 comments on commit fbb779e

Please sign in to comment.