Skip to content

Commit a63c2a0

Browse files
feat(date-time-picker-web): create new date time picker widget
1 parent 0c2933c commit a63c2a0

21 files changed

+721
-121
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const base = require("@mendix/pluggable-widgets-tools/configs/eslint.ts.base.json");
2+
3+
module.exports = {
4+
...base
5+
};
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Set the default behavior, in case people don't have core.autocrlf set.
2+
* text=auto
3+
4+
# Explicitly declare text files you want to always be normalized and converted
5+
# to native line endings on checkout.
6+
*.ts text eol=lf
7+
*.tsx text eol=lf
8+
*.js text eol=lf
9+
*.jsx text eol=lf
10+
*.css text eol=lf
11+
*.scss text eol=lf
12+
*.json text eol=lf
13+
*.xml text eol=lf
14+
*.md text eol=lf
15+
*.gitattributes eol=lf
16+
*.gitignore eol=lf
17+
18+
# Denote all files that are truly binary and should not be modified.
19+
*.png binary
20+
*.jpg binary
21+
*.gif binary
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
tests/testProject/
2+
.DS_Store
3+
.idea
4+
.vscode
5+
dist
6+
node_modules
7+
.env
8+
*.log
9+
*.bak
10+
*.launch
11+
mxproject
12+
coverage
13+
14+
**/results
15+
mendixProject
16+
**/e2e/diffs
17+
**/screenshot
18+
**/screenshot-results
19+
**/tests/testProject
20+
**/artifacts
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tests/testProject/
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require("@mendix/prettier-config-web-widgets");
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
The Apache License v2.0
2+
3+
Copyright © Mendix Technology BV 2022. All rights reserved.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<!-- TODO: Update marketplace URL -->
2+
3+
Please see [Date Time Picker](https://docs.mendix.com/appstore/widgets/combobox) in the Mendix documentation for
4+
details.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"name": "@mendix/date-time-picker-web",
3+
"widgetName": "DateTimePicker",
4+
"version": "1.0.0",
5+
"description": "Date, time and range picker widget",
6+
"copyright": "© Mendix Technology BV 2025. All rights reserved.",
7+
"license": "Apache-2.0",
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/mendix/web-widgets.git"
11+
},
12+
"config": {
13+
"developmentPort": 3000,
14+
"mendixHost": "http://localhost:8080"
15+
},
16+
"mxpackage": {
17+
"name": "DateTimePicker",
18+
"type": "widget",
19+
"mpkName": "com.mendix.widget.web.DateTimePicker.mpk"
20+
},
21+
"packagePath": "com.mendix.widget.web",
22+
"marketplace": {
23+
"minimumMXVersion": "10.24.0",
24+
"appNumber": 999999,
25+
"appName": "Date Time Picker",
26+
"reactReady": true
27+
},
28+
"testProject": {
29+
"githubUrl": "https://github.com/mendix/testProjects",
30+
"branchName": "date-time-picker-web"
31+
},
32+
"scripts": {
33+
"prebuild": "rui-create-translation",
34+
"build": "pluggable-widgets-tools build:web",
35+
"create-gh-release": "rui-create-gh-release",
36+
"create-translation": "rui-create-translation",
37+
"dev": "pluggable-widgets-tools start:web",
38+
"format": "prettier --ignore-path ./node_modules/@mendix/prettier-config-web-widgets/global-prettierignore --write .",
39+
"lint": "pluggable-widgets-tools lint",
40+
"lint:fix": "pluggable-widgets-tools lint:fix",
41+
"publish-marketplace": "rui-publish-marketplace",
42+
"prerelease": "npm run lint",
43+
"release": "pluggable-widgets-tools release:web",
44+
"start": "pluggable-widgets-tools start:server",
45+
"test": "pluggable-widgets-tools test:unit:web:enzyme-free",
46+
"update-changelog": "rui-update-changelog-widget",
47+
"verify": "rui-verify-package-format"
48+
},
49+
"dependencies": {
50+
"classnames": "^2.5.1",
51+
"react-datepicker": "^8.9.0"
52+
},
53+
"devDependencies": {
54+
"@mendix/automation-utils": "workspace:*",
55+
"@mendix/eslint-config-web-widgets": "workspace:*",
56+
"@mendix/pluggable-widgets-tools": "*",
57+
"@mendix/prettier-config-web-widgets": "workspace:*",
58+
"@mendix/rollup-web-widgets": "workspace:*",
59+
"@mendix/widget-plugin-test-utils": "workspace:*"
60+
}
61+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import copyFiles from "@mendix/rollup-web-widgets/copyFiles.mjs";
2+
3+
export default args => {
4+
return copyFiles(args);
5+
};
1.43 KB
Loading

0 commit comments

Comments
 (0)