Skip to content

Commit 01c5803

Browse files
committed
package-lock and whitespace fixes
1 parent ca3cdf6 commit 01c5803

File tree

5 files changed

+43
-40
lines changed

5 files changed

+43
-40
lines changed

components/dash-core-components/package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/dash-html-components/package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/dash-html-components/scripts/data/attributes.json

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"elements": [
2424
"form"
2525
],
26-
"description": "The URI of a program that processes the information submitted via the form."
26+
"description": "The URI of a program that processes the information submitted via the form."
2727
},
2828
"allow": {
2929
"elements": [
@@ -53,7 +53,7 @@
5353
"select",
5454
"textarea"
5555
],
56-
"description": "Indicates whether controls in this form can by default have their values automatically completed by the browser."
56+
"description": "Indicates whether controls in this form can by default have their values automatically completed by the browser."
5757
},
5858
"autoFocus": {
5959
"elements": [
@@ -76,7 +76,7 @@
7676
"elements": [
7777
"input"
7878
],
79-
"description": "From the Media Capture specification, specifies a new file can be captured."
79+
"description": "From the Media Capture specification, specifies a new file can be captured."
8080
},
8181
"challenge": {
8282
"elements": [
@@ -130,7 +130,7 @@
130130
"elements": [
131131
"meta"
132132
],
133-
"description": "A value associated with http-equiv or name depending on the context."
133+
"description": "A value associated with http-equiv or name depending on the context."
134134
},
135135
"contentEditable": {
136136
"elements": [
@@ -142,7 +142,7 @@
142142
"elements": [
143143
"Globalattribute"
144144
],
145-
"description": "Defines the ID of a <menu> element which will serve as the element's context menu."
145+
"description": "Defines the ID of a <menu> element which will serve as the element's context menu."
146146
},
147147
"controls": {
148148
"elements": [
@@ -185,19 +185,19 @@
185185
"elements": [
186186
"track"
187187
],
188-
"description": "Indicates that the track should be enabled unless the user's preferences indicate something different."
188+
"description": "Indicates that the track should be enabled unless the user's preferences indicate something different."
189189
},
190190
"defer": {
191191
"elements": [
192192
"script"
193193
],
194-
"description": "Indicates that the script should be executed after the page has been parsed."
194+
"description": "Indicates that the script should be executed after the page has been parsed."
195195
},
196196
"dir": {
197197
"elements": [
198198
"Globalattribute"
199199
],
200-
"description": "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)"
200+
"description": "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)"
201201
},
202202
"disabled": {
203203
"elements": [
@@ -230,7 +230,7 @@
230230
"elements": [
231231
"form"
232232
],
233-
"description": "Defines the content type of the form data when the method is POST."
233+
"description": "Defines the content type of the form data when the method is POST."
234234
},
235235
"htmlFor": {
236236
"elements": [
@@ -260,42 +260,42 @@
260260
"input",
261261
"button"
262262
],
263-
"description": "Indicates the action of the element, overriding the action defined in the <form>."
263+
"description": "Indicates the action of the element, overriding the action defined in the <form>."
264264
},
265265
"formEncType": {
266266
"elements": [
267267
"button",
268268
"input"
269269
],
270-
"description": "If the button/input is a submit button (type=\"submit\"), this attribute sets the encoding type to use during form submission. If this attribute is specified, it overrides the enctype attribute of the button's form owner."
270+
"description": "If the button/input is a submit button (type=\"submit\"), this attribute sets the encoding type to use during form submission. If this attribute is specified, it overrides the enctype attribute of the button's form owner."
271271
},
272272
"formMethod": {
273273
"elements": [
274274
"button",
275275
"input"
276276
],
277-
"description": "If the button/input is a submit button (type=\"submit\"), this attribute sets the submission method to use during form submission (GET, POST, etc.). If this attribute is specified, it overrides the method attribute of the button's form owner."
277+
"description": "If the button/input is a submit button (type=\"submit\"), this attribute sets the submission method to use during form submission (GET, POST, etc.). If this attribute is specified, it overrides the method attribute of the button's form owner."
278278
},
279279
"formNoValidate": {
280280
"elements": [
281281
"button",
282282
"input"
283283
],
284-
"description": "If the button/input is a submit button (type=\"submit\"), this boolean attribute specifies that the form is not to be validated when it is submitted. If this attribute is specified, it overrides the novalidate attribute of the button's form owner."
284+
"description": "If the button/input is a submit button (type=\"submit\"), this boolean attribute specifies that the form is not to be validated when it is submitted. If this attribute is specified, it overrides the novalidate attribute of the button's form owner."
285285
},
286286
"formTarget": {
287287
"elements": [
288288
"button",
289289
"input"
290290
],
291-
"description": "If the button/input is a submit button (type=\"submit\"), this attribute specifies the browsing context (for example, tab, window, or inline frame) in which to display the response that is received after submitting the form. If this attribute is specified, it overrides the target attribute of the button's form owner."
291+
"description": "If the button/input is a submit button (type=\"submit\"), this attribute specifies the browsing context (for example, tab, window, or inline frame) in which to display the response that is received after submitting the form. If this attribute is specified, it overrides the target attribute of the button's form owner."
292292
},
293293
"headers": {
294294
"elements": [
295295
"td",
296296
"th"
297297
],
298-
"description": "IDs of the <th> elements which applies to this element."
298+
"description": "IDs of the <th> elements which applies to this element."
299299
},
300300
"height": {
301301
"elements": [
@@ -307,13 +307,13 @@
307307
"object",
308308
"video"
309309
],
310-
"description": "Specifies the height of elements listed here. For all other elements, use the CSS height property. Note: In some instances, such as <div>, this is a legacy attribute, in which case the CSS height property should be used instead."
310+
"description": "Specifies the height of elements listed here. For all other elements, use the CSS height property. Note: In some instances, such as <div>, this is a legacy attribute, in which case the CSS height property should be used instead."
311311
},
312312
"hidden": {
313313
"elements": [
314314
"Globalattribute"
315315
],
316-
"description": "Prevents rendering of given element, while keeping child elements, e.g. script elements, active."
316+
"description": "Prevents rendering of given element, while keeping child elements, e.g. script elements, active."
317317
},
318318
"high": {
319319
"elements": [
@@ -354,21 +354,21 @@
354354
"elements": [
355355
"Globalattribute"
356356
],
357-
"description": "Often used with CSS to style a specific element. The value of this attribute must be unique."
357+
"description": "Often used with CSS to style a specific element. The value of this attribute must be unique."
358358
},
359359
"integrity": {
360360
"elements": [
361361
"link",
362362
"script"
363363
],
364-
"description": "Specifies a Subresource Integrity value that allows browsers to verify what they fetch."
364+
"description": "Specifies a Subresource Integrity value that allows browsers to verify what they fetch."
365365
},
366366
"inputMode": {
367367
"elements": [
368368
"textarea",
369369
"contenteditable"
370370
],
371-
"description": "Provides a hint as to the type of data that might be entered by the user while editing the element or its contents. The attribute can be used with form controls (such as the value of textarea elements), or in elements in an editing host (e.g., using contenteditable attribute)."
371+
"description": "Provides a hint as to the type of data that might be entered by the user while editing the element or its contents. The attribute can be used with form controls (such as the value of textarea elements), or in elements in an editing host (e.g., using contenteditable attribute)."
372372
},
373373
"keyType": {
374374
"elements": [
@@ -409,7 +409,7 @@
409409
"marquee",
410410
"video"
411411
],
412-
"description": "Indicates whether the media should start playing from the start when it's finished."
412+
"description": "Indicates whether the media should start playing from the start when it's finished."
413413
},
414414
"low": {
415415
"elements": [
@@ -421,7 +421,7 @@
421421
"elements": [
422422
"html"
423423
],
424-
"description": "Specifies the URL of the document's cache manifest. Note: This attribute is obsolete, use <link rel=\"manifest\"> instead."
424+
"description": "Specifies the URL of the document's cache manifest. Note: This attribute is obsolete, use <link rel=\"manifest\"> instead."
425425
},
426426
"max": {
427427
"elements": [
@@ -453,13 +453,13 @@
453453
"source",
454454
"style"
455455
],
456-
"description": "Specifies a hint of the media for which the linked resource was designed."
456+
"description": "Specifies a hint of the media for which the linked resource was designed."
457457
},
458458
"method": {
459459
"elements": [
460460
"form"
461461
],
462-
"description": "Defines which HTTP method to use when submitting the form. Can be GET (default) or POST."
462+
"description": "Defines which HTTP method to use when submitting the form. Can be GET (default) or POST."
463463
},
464464
"min": {
465465
"elements": [
@@ -473,7 +473,7 @@
473473
"input",
474474
"select"
475475
],
476-
"description": "Indicates whether multiple values can be entered in an input of the type email or file."
476+
"description": "Indicates whether multiple values can be entered in an input of the type email or file."
477477
},
478478
"muted": {
479479
"elements": [
@@ -498,20 +498,20 @@
498498
"meta",
499499
"param"
500500
],
501-
"description": "Name of the element. For example used by the server to identify the fields in form submits."
501+
"description": "Name of the element. For example used by the server to identify the fields in form submits."
502502
},
503503
"noValidate": {
504504
"elements": [
505505
"form"
506506
],
507-
"description": "This attribute indicates that the form shouldn't be validated when submitted."
507+
"description": "This attribute indicates that the form shouldn't be validated when submitted."
508508
},
509509
"open": {
510510
"elements": [
511511
"details",
512512
"dialog"
513513
],
514-
"description": "Indicates whether the the contents are currently visible (in the case of a <details> element) or whether the dialog is active and can be interacted with (in the case of a <dialog> element)."
514+
"description": "Indicates whether the the contents are currently visible (in the case of a <details> element) or whether the dialog is active and can be interacted with (in the case of a <dialog> element)."
515515
},
516516
"optimum": {
517517
"elements": [
@@ -523,7 +523,7 @@
523523
"elements": [
524524
"input"
525525
],
526-
"description": "Defines a regular expression which the element's value will be validated against."
526+
"description": "Defines a regular expression which the element's value will be validated against."
527527
},
528528
"placeholder": {
529529
"elements": [
@@ -543,7 +543,7 @@
543543
"audio",
544544
"video"
545545
],
546-
"description": "Indicates whether the whole resource, parts of it or nothing should be preloaded."
546+
"description": "Indicates whether the whole resource, parts of it or nothing should be preloaded."
547547
},
548548
"radioGroup": {
549549
"elements": [
@@ -589,7 +589,7 @@
589589
"elements": [
590590
"ol"
591591
],
592-
"description": "Indicates whether the list should be displayed in a descending order instead of a ascending."
592+
"description": "Indicates whether the list should be displayed in a descending order instead of a ascending."
593593
},
594594
"rows": {
595595
"elements": [
@@ -608,13 +608,13 @@
608608
"elements": [
609609
"iframe"
610610
],
611-
"description": "Stops a document loaded in an iframe from using certain features (such as submitting forms or opening new windows)."
611+
"description": "Stops a document loaded in an iframe from using certain features (such as submitting forms or opening new windows)."
612612
},
613613
"scope": {
614614
"elements": [
615615
"th"
616616
],
617-
"description": "Defines the cells that the header test (defined in the th element) relates to."
617+
"description": "Defines the cells that the header test (defined in the th element) relates to."
618618
},
619619
"scoped": {
620620
"elements": [
@@ -640,7 +640,7 @@
640640
"input",
641641
"select"
642642
],
643-
"description": "Defines the width of the element (in pixels). If the element's type attribute is text or password then it's the number of characters."
643+
"description": "Defines the width of the element (in pixels). If the element's type attribute is text or password then it's the number of characters."
644644
},
645645
"sizes": {
646646
"elements": [
@@ -724,7 +724,7 @@
724724
"elements": [
725725
"Globalattribute"
726726
],
727-
"description": "Overrides the browser's default tab order and follows the one specified instead."
727+
"description": "Overrides the browser's default tab order and follows the one specified instead."
728728
},
729729
"target": {
730730
"elements": [
@@ -733,7 +733,7 @@
733733
"base",
734734
"form"
735735
],
736-
"description": "Specifies where to open the linked document (in the case of an <a> element) or where to display the response received (in the case of a <form> element)"
736+
"description": "Specifies where to open the linked document (in the case of an <a> element) or where to display the response received (in the case of a <form> element)"
737737
},
738738
"title": {
739739
"elements": [
@@ -775,7 +775,7 @@
775775
"progress",
776776
"param"
777777
],
778-
"description": "Defines a default value which will be displayed in the element on page load."
778+
"description": "Defines a default value which will be displayed in the element on page load."
779779
},
780780
"width": {
781781
"elements": [
@@ -787,7 +787,7 @@
787787
"object",
788788
"video"
789789
],
790-
"description": "For the elements listed here, this establishes the element's width. Note: For all other instances, such as <div>, this is a legacy attribute, in which case the CSS width property should be used instead."
790+
"description": "For the elements listed here, this establishes the element's width. Note: For all other instances, such as <div>, this is a legacy attribute, in which case the CSS width property should be used instead."
791791
},
792792
"wrap": {
793793
"elements": [

components/dash-html-components/scripts/extract-attributes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const supportedAttributes = ['accept', 'accessKey', 'action', 'allow',
2525
'manifest', 'marginHeight', 'marginWidth', 'max', 'maxLength', 'media',
2626
'mediaGroup', 'method', 'min', 'minLength', 'multiple', 'muted', 'name',
2727
'noValidate', 'nonce', 'open', 'optimum', 'pattern', 'placeholder', 'poster',
28-
'preload', 'profile', 'radioGroup', 'readOnly', 'referrerPolicy', 'rel', 'required',
28+
'preload', 'profile', 'radioGroup', 'readOnly', 'referrerPolicy', 'rel', 'required',
2929
'reversed', 'role', 'rowSpan', 'rows', 'sandbox', 'scope', 'scoped', 'scrolling',
3030
'seamless', 'selected', 'shape', 'size', 'sizes', 'span', 'spellCheck', 'src',
3131
'srcDoc', 'srcLang', 'srcSet', 'start', 'step', 'style', 'summary', 'tabIndex',
@@ -71,7 +71,7 @@ function extractAttributes($) {
7171
const description = $children.eq(2).text()
7272
.replace(/\n/g, '')
7373
// Fix irregular whitespace characters
74-
.replace(' ', ' ')
74+
.replace(/\s+/g, ' ')
7575
.trim();
7676

7777
const htmlAttribute = str(attribute)

components/dash-table/package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)