Skip to content

Commit

Permalink
Version 7.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
nsteenbeek committed Dec 14, 2023
2 parents 8c4564a + 4d21e8b commit aabf66c
Show file tree
Hide file tree
Showing 28 changed files with 3,872 additions and 8,573 deletions.
2 changes: 1 addition & 1 deletion bin/Entity/form/Entity.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {EntityForm} from './Entity.form';

export const Form = {
//In D365 Form '<%= fullformname %>' specify Form onLoad function: <%= publisher %>.<%= namespace %>.<%= entity %>.<%= formname %>.Form.onLoad
//On deploy the CLI will add in D365 Form '<%= fullformname %>' the form onLoad function: <%= publisher %>.<%= namespace %>.<%= entity %>.<%= formname %>.Form.onLoad
onLoad: async (executionContext: Xrm.Events.EventContext): Promise<void> => {
return EntityForm.onLoad(executionContext);
}
Expand Down
2 changes: 1 addition & 1 deletion bin/License/Validator/Validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class Validator {
}
}

// In D365 Form specify Validator onLoad function: <%= publisher %>.<%= namespace %>.License_Validator.onLoad
// In D365 Form specify Validator onLoad function: <%= publisher %>.<%= namespace %>.LicenseValidator.onLoad
export function onLoad(executionContext: Xrm.Events.EventContext): Promise<ValidateLicenseResult> {
return Validator.onLoad(executionContext);
}
2 changes: 1 addition & 1 deletion bin/main.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion bin/root/Webresources/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
webpack.config.ts
karma.conf.js
test-main.js
postcss.config.js
msbuild-formatter.js
Expand Down
129 changes: 0 additions & 129 deletions bin/root/Webresources/karma.conf.js

This file was deleted.

74 changes: 31 additions & 43 deletions bin/root/Webresources/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,52 +18,40 @@
"update": "hso-d365 update"
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/core": "^7.23.6",
"@babel/preset-env": "^7.12.11",
"@types/jasmine": "^3.6.2",
"@types/node": "^14.14.14",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@types/shelljs": "^0.8.9",
"@types/webpack": "^5.28.0",
"@types/xrm": "^9.0.47",
"@typescript-eslint/eslint-plugin": "^5.12.0",
"@typescript-eslint/parser": "^5.12.0",
"autoprefixer": "^10.1.0",
"babel-plugin-istanbul": "^6.0.0",
"copy-webpack-plugin": "^7.0.0",
"coverage-istanbul-loader": "^3.0.5",
"css-loader": "^5.0.1",
"cssnano": "^5.0.17",
"eslint": "^8.9.0",
"eslint-webpack-plugin": "^2.5.2",
"@types/node": "^20.10.4",
"@types/react": "^18.2.45",
"@types/react-dom": "^18.2.17",
"@types/shelljs": "^0.8.15",
"@types/webpack": "^5.28.5",
"@types/xrm": "^9.0.77",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"autoprefixer": "^10.4.16",
"copy-webpack-plugin": "^11.0.0",
"css-loader": "^6.8.1",
"cssnano": "^6.0.1",
"eslint": "^8.55.0",
"eslint-webpack-plugin": "^4.0.1",
"json-loader": "^0.5.7",
"karma": "^6.3.16",
"karma-chrome-launcher": "^3.1.0",
"karma-coverage": "^2.0.3",
"karma-jasmine": "^4.0.1",
"karma-junit-reporter": "^2.0.1",
"karma-sourcemap-loader": "^0.3.8",
"karma-tap": "^4.2.0",
"karma-webpack": "^5.0.0",
"mini-css-extract-plugin": "^1.3.3",
"moment": "^2.29.1",
"postcss": "^8.4.6",
"postcss-loader": "^6.2.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"mini-css-extract-plugin": "^2.7.6",
"postcss": "^8.4.32",
"postcss-loader": "^7.3.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"replace-in-file-webpack-plugin": "^1.0.6",
"sass": "^1.44.0",
"sass-loader": "^12.3.0",
"shelljs": "^0.8.4",
"style-loader": "^2.0.0",
"terser-webpack-plugin": "^5.0.3",
"ts-loader": "^8.0.12",
"ts-node": "^10.1.0",
"typescript": "^4.5.5",
"webpack": "^5.11.0",
"webpack-cli": "^4.2.0",
"webpack-dev-server": "^4.7.4"
"sass": "^1.69.5",
"sass-loader": "^13.3.2",
"shelljs": "^0.8.5",
"style-loader": "^3.3.3",
"terser-webpack-plugin": "^5.3.9",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.1"
},
"dependencies": {
}
Expand Down
5 changes: 5 additions & 0 deletions bin/root/Webresources/src/WebApi/WebApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ export class WebApi {
return WebApi.request('DELETE', uri);
}

public static async executeFunction(functionName: string): Promise<JSON> {
const xmlHttpRequest = await WebApi.request('GET', `${functionName}`);
return xmlHttpRequest.response && JSON.parse(xmlHttpRequest.response, dateReviver);
}

public static async executeAction<R, I extends string, V>(actionName: string, data?: ActionData<I, V>, entityLogicalName?: string, id?: string): Promise<R> {
if (entityLogicalName) {
return this.executeBoundAction(actionName, data, entityLogicalName, id);
Expand Down
8 changes: 0 additions & 8 deletions bin/root/Webresources/src/util/FormUtil.spec.ts

This file was deleted.

Loading

0 comments on commit aabf66c

Please sign in to comment.