Skip to content

Commit 37ffdd3

Browse files
authored
Merge pull request #1486 from DNNCommunity/release/0.29.2
Released v0.29.2
2 parents 534b00e + 91eecb2 commit 37ffdd3

9 files changed

Lines changed: 808 additions & 403 deletions

File tree

package-lock.json

Lines changed: 548 additions & 294 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/react-library/test-app/package-lock.json

Lines changed: 166 additions & 91 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/stencil-library/custom-elements.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"type": {
1717
"text": "string"
1818
},
19-
"description": "Defines the type of automatic completion the browser could use.\nSee https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete",
19+
"description": "Defines the type of automatic completion the browser could use.\r\nSee https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete",
2020
"default": "\"off\"",
2121
"required": false
2222
},
@@ -57,7 +57,7 @@
5757
"type": {
5858
"text": "number"
5959
},
60-
"description": "How many suggestions to preload in pixels of their height.\nThis is used to calculate the virtual scroll height and request\nmore items before they get into view.",
60+
"description": "How many suggestions to preload in pixels of their height.\r\nThis is used to calculate the virtual scroll height and request\r\nmore items before they get into view.",
6161
"default": "1000",
6262
"required": false
6363
},
@@ -74,7 +74,7 @@
7474
"type": {
7575
"text": "number | undefined"
7676
},
77-
"description": "The total amount of suggestions for the given search query.\nThis can be used to show virtual scroll and pagination progressive feeding.\nThe needMoreItems event should be used to request more items.",
77+
"description": "The total amount of suggestions for the given search query.\r\nThis can be used to show virtual scroll and pagination progressive feeding.\r\nThe needMoreItems event should be used to request more items.",
7878
"required": false
7979
},
8080
{
@@ -140,7 +140,7 @@
140140
"type": {
141141
"text": "string"
142142
},
143-
"description": "Fires when the search query has changed.\nThis is almost like valueInput, but it is debounced\nand can be used to trigger a search query without overloading\nAPI endpoints while typing."
143+
"description": "Fires when the search query has changed.\r\nThis is almost like valueInput, but it is debounced\r\nand can be used to trigger a search query without overloading\r\nAPI endpoints while typing."
144144
},
145145
{
146146
"name": "valueChange",

packages/stencil-library/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@
7070
"devDependencies": {
7171
"@chromatic-com/storybook": "^5.0.1",
7272
"@eslint/js": "^9.39.2",
73-
"@stencil/core": "4.43.0",
73+
"@stencil/core": "4.43.2",
7474
"@stencil/eslint-plugin": "1.1.0",
7575
"@stencil/react-output-target": "^1.2.0",
7676
"@stencil/sass": "^3.0.4",
77-
"@storybook/addon-a11y": "10.2.10",
78-
"@storybook/addon-docs": "10.2.10",
79-
"@storybook/web-components-vite": "10.2.10",
77+
"@storybook/addon-a11y": "10.2.13",
78+
"@storybook/addon-docs": "10.2.13",
79+
"@storybook/web-components-vite": "10.2.13",
8080
"@timkendrick/monaco-editor": "^0.0.9",
8181
"@types/jest": "^29.5.14",
8282
"@typescript-eslint/eslint-plugin": "^8.30.1",
@@ -89,7 +89,7 @@
8989
"babel-loader": "^10.0.0",
9090
"eslint": "^9.39.2",
9191
"eslint-plugin-react": "^7.16.0",
92-
"eslint-plugin-storybook": "10.2.10",
92+
"eslint-plugin-storybook": "10.2.13",
9393
"gh-pages": "^6.0.0",
9494
"jiti": "^2.4.2",
9595
"license-checker-rseidelsohn": "^4.2.6",
@@ -98,7 +98,7 @@
9898
"react": "^19.2.3",
9999
"react-dom": "^19.1.0",
100100
"rollup-plugin-node-polyfills": "^0.2.1",
101-
"storybook": "10.2.10",
101+
"storybook": "10.2.13",
102102
"ts-node": "^10.9.2",
103103
"typescript": "5.9.3",
104104
"typescript-debounce-decorator": "^0.0.18",

packages/stencil-library/src/components/dnn-dropzone/readme.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,44 @@
55
<!-- Auto Generated Below -->
66

77

8+
## Usage
9+
10+
### HTML
11+
12+
### Most basic usage
13+
14+
```html
15+
<dnn-dropzone id="dz"></dnn-dropzone>
16+
17+
<script>
18+
document.addEventListener('DOMContentLoaded', () => {
19+
const dz = document.getElementById('dz');
20+
dz.addEventListener('filesSelected', e => console.log('files', e.detail));
21+
});
22+
</script>
23+
```
24+
25+
Notes:
26+
- `dnn-dropzone` emits `filesSelected` with the selected FileList.
27+
28+
29+
### JSX-TSX
30+
31+
### JSX / TSX usage
32+
33+
```tsx
34+
render() {
35+
return (
36+
<dnn-dropzone onFilesSelected={e => console.log(e.detail)} />
37+
);
38+
}
39+
```
40+
41+
Notes:
42+
- Use a framework ref to call methods on the element if needed.
43+
44+
45+
846
## Properties
947

1048
| Property | Attribute | Description | Type | Default |
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### Most basic usage
2+
3+
```html
4+
<dnn-dropzone id="dz"></dnn-dropzone>
5+
6+
<script>
7+
document.addEventListener('DOMContentLoaded', () => {
8+
const dz = document.getElementById('dz');
9+
dz.addEventListener('filesSelected', e => console.log('files', e.detail));
10+
});
11+
</script>
12+
```
13+
14+
Notes:
15+
- `dnn-dropzone` emits `filesSelected` with the selected FileList.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
### JSX / TSX usage
2+
3+
```tsx
4+
render() {
5+
return (
6+
<dnn-dropzone onFilesSelected={e => console.log(e.detail)} />
7+
);
8+
}
9+
```
10+
11+
Notes:
12+
- Use a framework ref to call methods on the element if needed.

packages/stencil-library/src/components/dnn-input/dnn-input.tsx

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,23 @@ export class DnnInput {
132132
}
133133

134134
private handleInput(e: InputEvent): void {
135-
if (this.type === "number" && e.data === "-") {
136-
// Ignore the minus sign if the input type is number
137-
return;
138-
}
139135
var value = (e.target as HTMLInputElement).value;
140-
this.value = value;
136+
if (this.type === "number") {
137+
value = value.replace(/,/g, '.');
138+
if (value === "") {
139+
this.value = "";
140+
}
141+
else if (!isNaN(Number(value))) {
142+
this.value = Number(value);
143+
}
144+
else {
145+
this.value = value;
146+
}
147+
}
148+
else{
149+
this.value = value;
150+
}
151+
141152
var valid = this.inputField.checkValidity();
142153
this.valid = valid;
143154
this.valueInput.emit(this.value);

packages/stencil-library/vscode-data.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"attributes": [
1111
{
1212
"name": "autocomplete",
13-
"description": "Defines the type of automatic completion the browser could use.\nSee https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete"
13+
"description": "Defines the type of automatic completion the browser could use.\r\nSee https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete"
1414
},
1515
{
1616
"name": "disabled",
@@ -30,15 +30,15 @@
3030
},
3131
{
3232
"name": "preload-threshold-pixels",
33-
"description": "How many suggestions to preload in pixels of their height.\nThis is used to calculate the virtual scroll height and request\nmore items before they get into view."
33+
"description": "How many suggestions to preload in pixels of their height.\r\nThis is used to calculate the virtual scroll height and request\r\nmore items before they get into view."
3434
},
3535
{
3636
"name": "required",
3737
"description": "Defines whether the field requires having a value."
3838
},
3939
{
4040
"name": "total-suggestions",
41-
"description": "The total amount of suggestions for the given search query.\nThis can be used to show virtual scroll and pagination progressive feeding.\nThe needMoreItems event should be used to request more items."
41+
"description": "The total amount of suggestions for the given search query.\r\nThis can be used to show virtual scroll and pagination progressive feeding.\r\nThe needMoreItems event should be used to request more items."
4242
},
4343
{
4444
"name": "value",

0 commit comments

Comments
 (0)