Skip to content

Commit 870cb1f

Browse files
Implemented Usage documentation for dnn-color-picker
1 parent 5a44188 commit 870cb1f

File tree

6 files changed

+142
-24
lines changed

6 files changed

+142
-24
lines changed

packages/stencil-library/custom-elements.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"type": {
6262
"text": "\"button\" | \"reset\" | \"submit\""
6363
},
64-
"description": "Optional button type,\ncan be either submit, reset or button and defaults to button if not specified.\nWarning: DNN wraps the whole page in a form, only use this if you are handling\nform submission manually.",
64+
"description": "Optional button type,\r\ncan be either submit, reset or button and defaults to button if not specified.\r\nWarning: DNN wraps the whole page in a form, only use this if you are handling\r\nform submission manually.",
6565
"default": "'button'",
6666
"required": false
6767
},
@@ -88,7 +88,7 @@
8888
"type": {
8989
"text": "\"danger\" | \"primary\" | \"secondary\" | \"tertiary\""
9090
},
91-
"description": "Optional button style,\ncan be either primary, secondary or tertiary or danger and defaults to primary if not specified",
91+
"description": "Optional button style,\r\ncan be either primary, secondary or tertiary or danger and defaults to primary if not specified",
9292
"default": "'primary'",
9393
"required": false
9494
}
@@ -447,7 +447,7 @@
447447
"text": "{ contrast: string; preview: string; cancel: string; confirm: string; normal: string; light: string; dark: string; }"
448448
},
449449
"description": "Can be used to customize the text language.",
450-
"default": "{\n contrast: \"Contrast\",\n preview: \"Preview\",\n cancel: \"Cancel\",\n confirm: \"Confirm\",\n normal: \"Normal\",\n light: \"Light\",\n dark: \"Dark\",\n }",
450+
"default": "{\r\n contrast: \"Contrast\",\r\n preview: \"Preview\",\r\n cancel: \"Cancel\",\r\n confirm: \"Confirm\",\r\n normal: \"Normal\",\r\n light: \"Light\",\r\n dark: \"Dark\",\r\n }",
451451
"required": false
452452
}
453453
],
@@ -563,7 +563,7 @@
563563
"type": {
564564
"text": "boolean"
565565
},
566-
"description": "If true, will allow the user to take a snapshot\nusing the device camera. (only works over https).",
566+
"description": "If true, will allow the user to take a snapshot\r\nusing the device camera. (only works over https).",
567567
"default": "false",
568568
"required": false
569569
},
@@ -572,7 +572,7 @@
572572
"type": {
573573
"text": "number"
574574
},
575-
"description": "Specifies the jpeg quality for when the device\ncamera is used to generate a picture.\nNeeds to be a number between 0 and 1 and defaults to 0.8",
575+
"description": "Specifies the jpeg quality for when the device\r\ncamera is used to generate a picture.\r\nNeeds to be a number between 0 and 1 and defaults to 0.8",
576576
"default": "0.8",
577577
"required": false
578578
},
@@ -600,7 +600,7 @@
600600
"type": {
601601
"text": "string[]"
602602
},
603-
"description": "A list of allowed file extensions.\nIf not specified, any file is allowed.\nEx: [\"jpg\", \"jpeg\", \"gif\", \"png\"]",
603+
"description": "A list of allowed file extensions.\r\nIf not specified, any file is allowed.\r\nEx: [\"jpg\", \"jpeg\", \"gif\", \"png\"]",
604604
"required": false
605605
},
606606
{
@@ -816,7 +816,7 @@
816816
"kind": "class",
817817
"name": "dnn-image-cropper.tsx",
818818
"tagName": "dnn-image-cropper",
819-
"description": "Allows cropping an image in-browser with the option to enforce a specific final size.\nAll computation happens in the browser and the final image is emmited\nin an event that has a data-url of the image.",
819+
"description": "Allows cropping an image in-browser with the option to enforce a specific final size.\r\nAll computation happens in the browser and the final image is emmited\r\nin an event that has a data-url of the image.",
820820
"attributes": [
821821
{
822822
"name": "height",
@@ -868,7 +868,7 @@
868868
"type": {
869869
"text": "ImageCropperResx"
870870
},
871-
"description": "Can be used to customize controls text.\nSome values support tokens, see default values for examples.",
871+
"description": "Can be used to customize controls text.\r\nSome values support tokens, see default values for examples.",
872872
"required": false
873873
},
874874
{
@@ -891,7 +891,7 @@
891891
"type": {
892892
"text": "File"
893893
},
894-
"description": "Emits both when a file is initially select and when the crop has changed.\nCompared to imageCropChanged, this event emits the file itself, which can be useful for uploading the file to a server including its name."
894+
"description": "Emits both when a file is initially select and when the crop has changed.\r\nCompared to imageCropChanged, this event emits the file itself, which can be useful for uploading the file to a server including its name."
895895
}
896896
],
897897
"slots": [],
@@ -1151,7 +1151,7 @@
11511151
"type": {
11521152
"text": "string"
11531153
},
1154-
"description": "Optionally pass the aria-label text for the close button.\nDefaults to \"Close modal\" if not provided.",
1154+
"description": "Optionally pass the aria-label text for the close button.\r\nDefaults to \"Close modal\" if not provided.",
11551155
"default": "\"Close modal\"",
11561156
"required": false
11571157
},
@@ -1169,7 +1169,7 @@
11691169
"type": {
11701170
"text": "boolean"
11711171
},
1172-
"description": "Optionally you can pass false to not show the close button.\nIf you decide to do so, you should either not also prevent dismissal by clicking the backdrop\nor provide your own dismissal logic in the modal content.",
1172+
"description": "Optionally you can pass false to not show the close button.\r\nIf you decide to do so, you should either not also prevent dismissal by clicking the backdrop\r\nor provide your own dismissal logic in the modal content.",
11731173
"default": "true",
11741174
"required": false
11751175
},
@@ -1542,7 +1542,7 @@
15421542
"type": {
15431543
"text": "string"
15441544
},
1545-
"description": "Fires up each time the search query changes.\nThe data passed is the new query."
1545+
"description": "Fires up each time the search query changes.\r\nThe data passed is the new query."
15461546
}
15471547
],
15481548
"slots": [],
@@ -2131,7 +2131,7 @@
21312131
"kind": "class",
21322132
"name": "dnn-vertical-splitview.tsx",
21332133
"tagName": "dnn-vertical-splitview",
2134-
"description": "This allows splitting a UI into vertical adjustable panels, the splitter itself is not part of this component.\n- The content for the left part should be injected in the `left` slot.\n- The content for the right part should be injected in the `right` slot.\n- The content for the actual splitter should go in the default slot and other UI elements can be injected as long as you handle their behaviour, by default only the drag behavior is implemented in the component.",
2134+
"description": "This allows splitting a UI into vertical adjustable panels, the splitter itself is not part of this component.\r\n- The content for the left part should be injected in the `left` slot.\r\n- The content for the right part should be injected in the `right` slot.\r\n- The content for the actual splitter should go in the default slot and other UI elements can be injected as long as you handle their behaviour, by default only the drag behavior is implemented in the component.",
21352135
"attributes": [
21362136
{
21372137
"name": "split-width-percentage",
+82-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,94 @@
11
{
2+
"@babel/code-frame@7.12.11": {
3+
"licenses": "MIT",
4+
"repository": "https://github.com/babel/babel",
5+
"publisher": "Sebastian McKenzie",
6+
"email": "sebmck@gmail.com",
7+
"path": "node_modules\\@babel\\code-frame",
8+
"licenseFile": "C:\\dev\\dnn-elements\\packages\\stencil-library\\node_modules\\@babel\\code-frame\\LICENSE"
9+
},
210
"@dnncommunity/dnn-elements@0.23.3-alpha.7": {
311
"licenses": "MIT",
412
"repository": "https://github.com/dnncommunity/dnn-elements",
513
"path": "",
6-
"licenseFile": "D:\\dnn-elements\\dnn-elements\\packages\\stencil-library\\README.md"
14+
"licenseFile": "C:\\dev\\dnn-elements\\packages\\stencil-library\\README.md"
15+
},
16+
"@eslint/eslintrc@0.4.3": {
17+
"licenses": "MIT",
18+
"repository": "https://github.com/eslint/eslintrc",
19+
"publisher": "Nicholas C. Zakas",
20+
"path": "node_modules\\@eslint\\eslintrc",
21+
"licenseFile": "C:\\dev\\dnn-elements\\packages\\stencil-library\\node_modules\\@eslint\\eslintrc\\LICENSE"
22+
},
23+
"@humanwhocodes/config-array@0.5.0": {
24+
"licenses": "Apache-2.0",
25+
"repository": "https://github.com/humanwhocodes/config-array",
26+
"publisher": "Nicholas C. Zakas",
27+
"path": "node_modules\\@humanwhocodes\\config-array",
28+
"licenseFile": "C:\\dev\\dnn-elements\\packages\\stencil-library\\node_modules\\@humanwhocodes\\config-array\\LICENSE"
29+
},
30+
"@stencil/eslint-plugin@0.4.0": {
31+
"licenses": "MIT",
32+
"repository": "https://github.com/ionic-team/stencil-eslint",
33+
"path": "node_modules\\@stencil\\eslint-plugin",
34+
"licenseFile": "C:\\dev\\dnn-elements\\packages\\stencil-library\\node_modules\\@stencil\\eslint-plugin\\LICENSE.md"
35+
},
36+
"eslint-utils@2.1.0": {
37+
"licenses": "MIT",
38+
"repository": "https://github.com/mysticatea/eslint-utils",
39+
"publisher": "Toru Nagashima",
40+
"path": "node_modules\\eslint\\node_modules\\eslint-utils",
41+
"licenseFile": "C:\\dev\\dnn-elements\\packages\\stencil-library\\node_modules\\eslint\\node_modules\\eslint-utils\\LICENSE"
42+
},
43+
"eslint-visitor-keys@1.3.0": {
44+
"licenses": "Apache-2.0",
45+
"repository": "https://github.com/eslint/eslint-visitor-keys",
46+
"publisher": "Toru Nagashima",
47+
"path": "node_modules\\espree\\node_modules\\eslint-visitor-keys",
48+
"licenseFile": "C:\\dev\\dnn-elements\\packages\\stencil-library\\node_modules\\espree\\node_modules\\eslint-visitor-keys\\LICENSE"
49+
},
50+
"eslint@7.32.0": {
51+
"licenses": "MIT",
52+
"repository": "https://github.com/eslint/eslint",
53+
"publisher": "Nicholas C. Zakas",
54+
"email": "nicholas+npm@nczconsulting.com",
55+
"path": "node_modules\\eslint",
56+
"licenseFile": "C:\\dev\\dnn-elements\\packages\\stencil-library\\node_modules\\eslint\\LICENSE"
57+
},
58+
"espree@7.3.1": {
59+
"licenses": "BSD-2-Clause",
60+
"repository": "https://github.com/eslint/espree",
61+
"publisher": "Nicholas C. Zakas",
62+
"email": "nicholas+npm@nczconsulting.com",
63+
"path": "node_modules\\espree",
64+
"licenseFile": "C:\\dev\\dnn-elements\\packages\\stencil-library\\node_modules\\espree\\LICENSE"
65+
},
66+
"ignore@4.0.6": {
67+
"licenses": "MIT",
68+
"repository": "https://github.com/kaelzhang/node-ignore",
69+
"publisher": "kael",
70+
"path": "node_modules\\ignore",
71+
"licenseFile": "C:\\dev\\dnn-elements\\packages\\stencil-library\\node_modules\\ignore\\LICENSE-MIT"
72+
},
73+
"tslib@1.14.1": {
74+
"licenses": "0BSD",
75+
"repository": "https://github.com/Microsoft/tslib",
76+
"publisher": "Microsoft Corp.",
77+
"path": "node_modules\\tslib",
78+
"licenseFile": "C:\\dev\\dnn-elements\\packages\\stencil-library\\node_modules\\tslib\\LICENSE.txt"
79+
},
80+
"tsutils@3.0.0": {
81+
"licenses": "MIT",
82+
"repository": "https://github.com/ajafff/tsutils",
83+
"publisher": "Klaus Meinhardt",
84+
"path": "node_modules\\tsutils",
85+
"licenseFile": "C:\\dev\\dnn-elements\\packages\\stencil-library\\node_modules\\tsutils\\LICENSE"
786
},
8-
"typescript@5.2.2": {
87+
"typescript@4.9.5": {
988
"licenses": "Apache-2.0",
1089
"repository": "https://github.com/Microsoft/TypeScript",
1190
"publisher": "Microsoft Corp.",
1291
"path": "node_modules\\typescript",
13-
"licenseFile": "D:\\dnn-elements\\dnn-elements\\packages\\stencil-library\\node_modules\\typescript\\LICENSE.txt"
92+
"licenseFile": "C:\\dev\\dnn-elements\\packages\\stencil-library\\node_modules\\typescript\\LICENSE.txt"
1493
}
1594
}

packages/stencil-library/src/components/dnn-color-picker/readme.md

+25
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,31 @@
99

1010
Color Picker for Dnn
1111

12+
## Usage
13+
14+
### HTML
15+
16+
```html
17+
<dnn-color-picker
18+
color="FFFFFF"
19+
color-box-height="50%"
20+
>
21+
</dnn-color-picker>
22+
```
23+
24+
25+
### JSX-TSX
26+
27+
```tsx
28+
<dnn-color-picker
29+
color="FFFFFF"
30+
colorBoxHeight="50%"
31+
>
32+
</dnn-color-picker>
33+
```
34+
35+
36+
1237
## Properties
1338

1439
| Property | Attribute | Description | Type | Default |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
```html
2+
<dnn-color-picker
3+
color="FFFFFF"
4+
color-box-height="50%"
5+
>
6+
</dnn-color-picker>
7+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
```tsx
2+
<dnn-color-picker
3+
color="FFFFFF"
4+
colorBoxHeight="50%"
5+
>
6+
</dnn-color-picker>
7+
```

packages/stencil-library/vscode-data.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
{
3232
"name": "form-button-type",
33-
"description": "Optional button type,\ncan be either submit, reset or button and defaults to button if not specified.\nWarning: DNN wraps the whole page in a form, only use this if you are handling\nform submission manually.",
33+
"description": "Optional button type,\r\ncan be either submit, reset or button and defaults to button if not specified.\r\nWarning: DNN wraps the whole page in a form, only use this if you are handling\r\nform submission manually.",
3434
"values": [
3535
{
3636
"name": "button"
@@ -64,7 +64,7 @@
6464
},
6565
{
6666
"name": "type",
67-
"description": "Optional button style,\ncan be either primary, secondary or tertiary or danger and defaults to primary if not specified",
67+
"description": "Optional button style,\r\ncan be either primary, secondary or tertiary or danger and defaults to primary if not specified",
6868
"values": [
6969
{
7070
"name": "danger"
@@ -235,11 +235,11 @@
235235
"attributes": [
236236
{
237237
"name": "allow-camera-mode",
238-
"description": "If true, will allow the user to take a snapshot\nusing the device camera. (only works over https)."
238+
"description": "If true, will allow the user to take a snapshot\r\nusing the device camera. (only works over https)."
239239
},
240240
{
241241
"name": "capture-quality",
242-
"description": "Specifies the jpeg quality for when the device\ncamera is used to generate a picture.\nNeeds to be a number between 0 and 1 and defaults to 0.8"
242+
"description": "Specifies the jpeg quality for when the device\r\ncamera is used to generate a picture.\r\nNeeds to be a number between 0 and 1 and defaults to 0.8"
243243
},
244244
{
245245
"name": "max-file-size",
@@ -320,7 +320,7 @@
320320
"name": "dnn-image-cropper",
321321
"description": {
322322
"kind": "markdown",
323-
"value": "Allows cropping an image in-browser with the option to enforce a specific final size.\nAll computation happens in the browser and the final image is emmited\nin an event that has a data-url of the image."
323+
"value": "Allows cropping an image in-browser with the option to enforce a specific final size.\r\nAll computation happens in the browser and the final image is emmited\r\nin an event that has a data-url of the image."
324324
},
325325
"attributes": [
326326
{
@@ -471,15 +471,15 @@
471471
},
472472
{
473473
"name": "close-text",
474-
"description": "Optionally pass the aria-label text for the close button.\nDefaults to \"Close modal\" if not provided."
474+
"description": "Optionally pass the aria-label text for the close button.\r\nDefaults to \"Close modal\" if not provided."
475475
},
476476
{
477477
"name": "resizable",
478478
"description": "If set to true, the modal becomes resizable."
479479
},
480480
{
481481
"name": "show-close-button",
482-
"description": "Optionally you can pass false to not show the close button.\nIf you decide to do so, you should either not also prevent dismissal by clicking the backdrop\nor provide your own dismissal logic in the modal content."
482+
"description": "Optionally you can pass false to not show the close button.\r\nIf you decide to do so, you should either not also prevent dismissal by clicking the backdrop\r\nor provide your own dismissal logic in the modal content."
483483
},
484484
{
485485
"name": "visible",
@@ -896,7 +896,7 @@
896896
"name": "dnn-vertical-splitview",
897897
"description": {
898898
"kind": "markdown",
899-
"value": "This allows splitting a UI into vertical adjustable panels, the splitter itself is not part of this component.\n- The content for the left part should be injected in the `left` slot.\n- The content for the right part should be injected in the `right` slot.\n- The content for the actual splitter should go in the default slot and other UI elements can be injected as long as you handle their behaviour, by default only the drag behavior is implemented in the component."
899+
"value": "This allows splitting a UI into vertical adjustable panels, the splitter itself is not part of this component.\r\n- The content for the left part should be injected in the `left` slot.\r\n- The content for the right part should be injected in the `right` slot.\r\n- The content for the actual splitter should go in the default slot and other UI elements can be injected as long as you handle their behaviour, by default only the drag behavior is implemented in the component."
900900
},
901901
"attributes": [
902902
{

0 commit comments

Comments
 (0)