Skip to content

Commit

Permalink
Merge pull request #3 from dmitrydyachenko/master
Browse files Browse the repository at this point in the history
Computed Field Type added + Functions definitions changed to be able to use 'use strict' mode
  • Loading branch information
andrei-markeev committed Apr 18, 2018
2 parents c5e8958 + c363242 commit 822641f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 20 deletions.
32 changes: 19 additions & 13 deletions CamlJs/camljs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 14 additions & 7 deletions CamlJs/camljs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ module CamlBuilder {
TextField(internalName: string): ITextFieldExpression;
/** Specifies that a condition will be tested against the field with the specified internal name, and the type of this field is Choice */
ChoiceField(internalName: string): ITextFieldExpression;
/** Specifies that a condition will be tested against the field with the specified internal name, and the type of this field is Computed */
ComputedField(internalName: string): ITextFieldExpression;
/** Specifies that a condition will be tested against the field with the specified internal name, and the type of this field is Boolean */
BooleanField(internalName: string): IBooleanFieldExpression;
/** Specifies that a condition will be tested against the field with the specified internal name, and the type of this field is URL */
Expand Down Expand Up @@ -788,6 +790,10 @@ module CamlBuilder {
ChoiceField(internalName: string): ITextFieldExpression {
return new FieldExpressionToken(this.builder, internalName, "Choice");
}
/** Specifies that a condition will be tested against the field with the specified internal name, and the type of this field is Computed */
ComputedField(internalName: string): ITextFieldExpression {
return new FieldExpressionToken(this.builder, internalName, "Computed");
};
/** Specifies that a condition will be tested against the field with the specified internal name, and the type of this field is Boolean */
BooleanField(internalName: string): IBooleanFieldExpression {
return new FieldExpressionToken(this.builder, internalName, "Integer");
Expand Down Expand Up @@ -1515,24 +1521,24 @@ if (typeof (window["Sys"]) == "undefined" || window["Sys"] == null) {
this._len = 0;
}

function Sys$StringBuilder$append(text) {
var Sys$StringBuilder$append = function(text) {
this._parts[this._parts.length] = text;
}
function Sys$StringBuilder$appendLine(text) {
var Sys$StringBuilder$appendLine = function(text) {
this._parts[this._parts.length] =
((typeof (text) === 'undefined') || (text === null) || (text === '')) ?
'\r\n' : text + '\r\n';
}
function Sys$StringBuilder$clear() {
var Sys$StringBuilder$clear = function() {
this._parts = [];
this._value = {};
this._len = 0;
}
function Sys$StringBuilder$isEmpty() {
var Sys$StringBuilder$isEmpty = function() {
if (this._parts.length === 0) return true;
return this.toString() === '';
}
function Sys$StringBuilder$toString(separator) {
var Sys$StringBuilder$toString = function(separator) {
separator = separator || '';
var parts = this._parts;
if (this._len !== parts.length) {
Expand Down Expand Up @@ -1567,13 +1573,14 @@ if (typeof (window["Sys"]) == "undefined" || window["Sys"] == null) {
}

if (typeof window["SP"] == 'undefined') {

window["SP"] = {};
function SP_ScriptUtility$isNullOrEmptyString(str) {

var SP_ScriptUtility$isNullOrEmptyString = function(str) {
var strNull = null;

return str === strNull || typeof str === 'undefined' || !str.length;
};

window["SP"].XmlWriter = function SP_XmlWriter($p0) {
this.$f_0 = [];
this.$1_0 = $p0;
Expand Down

0 comments on commit 822641f

Please sign in to comment.