From cb0992d13ce97a4a9dd57f30e788e60299b6811c Mon Sep 17 00:00:00 2001 From: janschoenherr Date: Tue, 4 Jul 2023 13:05:10 +0200 Subject: [PATCH] chore: cleanup options in tests --- src/js/components/notification.js | 2 +- tests/cover.html | 4 ++-- tests/drop.html | 16 ++++++++-------- tests/dropnav.html | 18 +++++++++--------- tests/filter.html | 6 +++--- tests/form.html | 2 +- tests/grid-masonry.html | 6 +++--- tests/grid-parallax.html | 6 +++--- tests/grid.html | 6 +++--- tests/height-viewport.html | 2 +- tests/height.html | 4 ++-- tests/icon.html | 2 +- tests/image.html | 12 ++++++------ tests/leader.html | 4 ++-- tests/nav.html | 2 +- tests/navbar.html | 18 +++++++++--------- tests/notification.html | 2 +- tests/offcanvas.html | 4 ++-- tests/parallax.html | 2 +- tests/scrollspy.html | 4 ++-- tests/sortable.html | 8 ++++---- tests/sticky.html | 16 ++++++++-------- tests/svg.html | 2 +- tests/tab.html | 2 +- tests/toggle.html | 4 ++-- tests/tooltip.html | 4 ++-- tests/upload.html | 10 +++++----- tests/utility.html | 4 ++-- tests/video.html | 6 +++--- 29 files changed, 89 insertions(+), 89 deletions(-) diff --git a/src/js/components/notification.js b/src/js/components/notification.js index 390d6a5cd..c690f03da 100644 --- a/src/js/components/notification.js +++ b/src/js/components/notification.js @@ -27,7 +27,7 @@ export default { message: '', status: '', timeout: 5000, - group: null, + group: '', pos: 'top-center', clsContainer: 'uk-notification', clsClose: 'uk-notification-close', diff --git a/tests/cover.html b/tests/cover.html index a4ab34746..8799e55c6 100644 --- a/tests/cover.html +++ b/tests/cover.html @@ -154,13 +154,13 @@

JavaScript Options

width Number - undefined + The element's width. height Number - undefined + The element's height. diff --git a/tests/drop.html b/tests/drop.html index c465f4323..fa0d2f57e 100644 --- a/tests/drop.html +++ b/tests/drop.html @@ -609,26 +609,26 @@

JavaScript Options

toggle CSS Selector - '- *' + - * CSS selector for the element to be used as toggle. By default, the preceding element. pos String - 'bottom-left' + bottom-left Drop position. stretch - false|true|'x'|'y' - true - Stretch drop on both (true) or given axis. + Boolean, String + false + Stretch drop on both (true) or given axis (x,y). mode - hover | click + String click,hover - Comma-separated list of drop trigger behavior modes. + Comma-separated list of drop trigger behavior modes (hover|click). delay-show @@ -711,7 +711,7 @@

JavaScript Options

animation String - 'uk-animation-fade' + uk-animation-fade Space-separated names of animations. Comma-separated for animation out. diff --git a/tests/dropnav.html b/tests/dropnav.html index 959491023..b765b872c 100644 --- a/tests/dropnav.html +++ b/tests/dropnav.html @@ -710,9 +710,9 @@

JavaScript Options

align - left|right|center + String left - Drop alignment. + Drop alignment (left|right|center). boundary @@ -722,13 +722,13 @@

JavaScript Options

dropbar - Boolean | CSS selector + Boolean, CSS selector false The dropbar selector. If true the dropbar will be inserted automatically. dropbar-anchor - Boolean | CSS selector + Boolean, CSS selector false The dropbar anchor selector. If set, dropbar will be inserted after the anchor element. @@ -746,15 +746,15 @@

JavaScript Options

stretch - false|true|'x'|'y' + Boolean, String true - Stretch drop on both (true) or given axis. + Stretch drop on both (true) or given axis (x,y). mode - hover | click + String click,hover - Comma-separated list of drop trigger behavior modes. + Comma-separated list of drop trigger behavior modes (hover|click). delay-show @@ -795,7 +795,7 @@

JavaScript Options

animation String - 'uk-animation-fade' + uk-animation-fade Space-separated names of animations. Comma-separated for animation out. diff --git a/tests/filter.html b/tests/filter.html index 16a2839c1..a434be486 100644 --- a/tests/filter.html +++ b/tests/filter.html @@ -256,12 +256,12 @@

Javascript Options

target String - '' + The targeted list on which to apply the filter to. selActive - String|Boolean + String, Boolean false A selector for the initially active filter controls. @@ -273,7 +273,7 @@

Javascript Options

duration - String|Boolean + String, Boolean 250 Animation duration in milliseconds. diff --git a/tests/form.html b/tests/form.html index 1185a8ff1..a8c6d4f31 100644 --- a/tests/form.html +++ b/tests/form.html @@ -608,7 +608,7 @@

JavaScript Options

target - CSS selector | Boolean + CSS selector, Boolean false Value display target. diff --git a/tests/grid-masonry.html b/tests/grid-masonry.html index 5ad580b44..2fce84a1d 100644 --- a/tests/grid-masonry.html +++ b/tests/grid-masonry.html @@ -93,9 +93,9 @@

JavaScript Options

masonry - Boolean|String - false|pack|next - Enables masonry layout for this grid. + Boolean, String + false + Enables masonry layout for this grid (pack|next). parallax diff --git a/tests/grid-parallax.html b/tests/grid-parallax.html index 2414d3c79..e8900337c 100644 --- a/tests/grid-parallax.html +++ b/tests/grid-parallax.html @@ -167,9 +167,9 @@

JavaScript Options

masonry - Boolean|String - false|pack|next - Enables masonry layout for this grid. + Boolean, String + false + Enables masonry layout for this grid (pack|next). parallax diff --git a/tests/grid.html b/tests/grid.html index aae274eed..7fa69fc9b 100644 --- a/tests/grid.html +++ b/tests/grid.html @@ -641,9 +641,9 @@

JavaScript Options

masonry - Boolean|String - false|pack|next - Enables masonry layout for this grid. + Boolean, String + false + Enables masonry layout for this grid (pack|next). parallax diff --git a/tests/height-viewport.html b/tests/height-viewport.html index 51d7648ff..4c67af133 100644 --- a/tests/height-viewport.html +++ b/tests/height-viewport.html @@ -227,7 +227,7 @@

JavaScript Options

offset-bottom - Boolean|Number|Pixel|CSS selector + Boolean, Number, Pixel, CSS selector false Subtracts the element's immediately following sibling's height (true), the given percentage (Number), Pixel (px) value from its own height or the given element's height. diff --git a/tests/height.html b/tests/height.html index 70f707988..86c703cf5 100644 --- a/tests/height.html +++ b/tests/height.html @@ -85,13 +85,13 @@

JavaScript Options

target CSS selector - > * + gt; * Elements that should match. By default, the children will match. row Boolean - true + true By default only items in the same row will be matched. For example, once grid columns extend to a width of 100%, their heights will no longer be matched. This makes sense, for example, if they stack vertically in narrower viewports. diff --git a/tests/icon.html b/tests/icon.html index f5dcf8cd6..41e4a4b29 100644 --- a/tests/icon.html +++ b/tests/icon.html @@ -821,7 +821,7 @@

JavaScript Options

icon String - '' + The icon to display. diff --git a/tests/image.html b/tests/image.html index c65a785f2..a0755b063 100644 --- a/tests/image.html +++ b/tests/image.html @@ -605,30 +605,30 @@

JavaScript Options

dataSrc String - '' + The image's `src` attribute. sources String - '' + The image's sources. This option is used for background images only. The sources attributes be passed in `key: value;` format for a single source. For multiple sources in JSON format. loading - `lazy`|`eager` - `lazy` + String + lazy Enable lazy/eager loading. Set to `eager` for images within the first visible viewport. margin String - '50%' + 50% The margin increases the viewport's bounding box, before computing an intersection with the image. (Must be px or % units) target - String + Boolean, String false A list of targets who's bounding boxes will be used to compute an intersection with the image. (Defaults to the image itself) diff --git a/tests/leader.html b/tests/leader.html index 449290f5a..43030385d 100644 --- a/tests/leader.html +++ b/tests/leader.html @@ -49,12 +49,12 @@

JavaScript Options

fill String - undefined + Optional fill character. media - String + Boolean, String false Condition for the space filling - a width as integer (e.g. 640) or a breakpoint (e.g. @s, @m, @l, @xl). diff --git a/tests/nav.html b/tests/nav.html index e6b8b6749..6fc513520 100644 --- a/tests/nav.html +++ b/tests/nav.html @@ -412,7 +412,7 @@

JavaScript Options

animation - String + Boolean, String true Space-separated names of animations. Comma-separated for animation out. diff --git a/tests/navbar.html b/tests/navbar.html index f583769af..e7ccc5c12 100644 --- a/tests/navbar.html +++ b/tests/navbar.html @@ -2579,9 +2579,9 @@

JavaScript Options

align - left|right|center + String left - Drop alignment. + Drop alignment (left|right|center). boundary @@ -2591,13 +2591,13 @@

JavaScript Options

dropbar - Boolean | CSS selector + Boolean, CSS selector false The dropbar selector. If true the dropbar will be inserted automatically. dropbar-anchor - Boolean | CSS selector + Boolean, CSS selector false The dropbar anchor selector. If set, dropbar will be inserted after the anchor element. @@ -2615,15 +2615,15 @@

JavaScript Options

stretch - false|true|'x'|'y' + Boolean, String true - Stretch drop on both (true) or given axis. + Stretch drop on both (true) or given axis (x,y). mode - hover | click + String click,hover - Comma-separated list of drop trigger behavior modes. + Comma-separated list of drop trigger behavior modes (hover|click). delay-show @@ -2664,7 +2664,7 @@

JavaScript Options

animation String - 'uk-animation-fade' + uk-animation-fade Space-separated names of animations. Comma-separated for animation out. diff --git a/tests/notification.html b/tests/notification.html index 9b4430fce..a43b6441e 100644 --- a/tests/notification.html +++ b/tests/notification.html @@ -112,7 +112,7 @@

JavaScript Options

group String - null + Useful if you want to close all notifications in a specific group. diff --git a/tests/offcanvas.html b/tests/offcanvas.html index ce24ae839..83001c9a9 100644 --- a/tests/offcanvas.html +++ b/tests/offcanvas.html @@ -99,9 +99,9 @@

JavaScript Options

mode - slide|reveal|push|none + String slide - Offcanvas open mode. + Offcanvas open mode (slide|reveal|push|none). flip diff --git a/tests/parallax.html b/tests/parallax.html index 41a1e77e0..dbafffa9c 100644 --- a/tests/parallax.html +++ b/tests/parallax.html @@ -180,7 +180,7 @@

JavaScript Options

media - Number|String + Boolean, Number, String false Condition for the active status - a width as integer (e.g. 640) or a breakpoint (e.g. @s, @m, @l, @xl). diff --git a/tests/scrollspy.html b/tests/scrollspy.html index 6bb29a799..be3350ad8 100644 --- a/tests/scrollspy.html +++ b/tests/scrollspy.html @@ -503,7 +503,7 @@

Scrollspy

cls String - `` + Class to toggle when the element enters/leaves viewport. @@ -515,7 +515,7 @@

Scrollspy

margin String - '-1px' + -1px The margin is added to the viewport's bounding box, before computing an intersection with the element. (Must be px or % units) diff --git a/tests/sortable.html b/tests/sortable.html index bd0008887..b06a2f9ad 100644 --- a/tests/sortable.html +++ b/tests/sortable.html @@ -215,18 +215,18 @@

JavaScript Options

group String - '' + The group animation String, Boolean slide - Animation mode (slide, fade, delayed-fade, false). + Animation mode (slide|fade|delayed-fade|false). duration - String|Boolean + String, Boolean 250 Animation duration in milliseconds. @@ -281,7 +281,7 @@

JavaScript Options

cls-custom String - '' + The ghost's custom class. diff --git a/tests/sticky.html b/tests/sticky.html index 2572af3bf..947785ff2 100644 --- a/tests/sticky.html +++ b/tests/sticky.html @@ -329,19 +329,19 @@

JavaScript Options

position - `top`|`bottom` - `top` - The position the element should be stuck to. + String + top + The position the element should be stuck to (top|bottom). start - Length|CSS Selector + Length, CSS Selector 0 Start offset. The value can be in vh, % and px. It supports basic mathematics operands + and -. The default value of `0` means that the element's top border and viewport's top border intersect. A CSS Selector will set start to the selected element's bottom border and the elements top border. end - Length|CSS Selector|Boolean + Length, CSS Selector, Boolean false End offset. The value can be in vh, % and px. It supports basic mathematics operands + and -. A value of `0` means that the element's top border and viewport's top border intersect, which would cause the element not to be sticky at all if start is also set to `0`. A CSS Selector will set the end to the selected element's bottom and the element's bottom border. `false` will make the element stick until the end of the page. `true` selects the parent element. @@ -372,7 +372,7 @@

JavaScript Options

cls-inactive String - '' + The inactive class. @@ -389,13 +389,13 @@

JavaScript Options

media - Number|String + Number, String false Condition for the active status - a width as integer (e.g. 640) or a breakpoint (e.g. @s, @m, @l, @xl). target-offset - false, Length + Boolean, Length false Initially make sure that the Sticky element is not over a referenced element via the page's location hash. The offset defines by how far the element will be above the referenced element. `false` will disable this behavior. diff --git a/tests/svg.html b/tests/svg.html index 9a8aee30f..833ea717d 100644 --- a/tests/svg.html +++ b/tests/svg.html @@ -54,7 +54,7 @@

JavaScript Options

src String - '' + The SVG source url. If a location hash is present, only the <symbol< of the SVG with the given ID is shown. diff --git a/tests/tab.html b/tests/tab.html index 27c8f10cf..890997034 100644 --- a/tests/tab.html +++ b/tests/tab.html @@ -205,7 +205,7 @@

JavaScript Options

media - Number|String + Number, String 960 When to become horizontal - a width as integer (e.g. 640) or a breakpoint (e.g. @s, @m, @l, @xl). diff --git a/tests/toggle.html b/tests/toggle.html index 179b8f06b..5cc94078c 100644 --- a/tests/toggle.html +++ b/tests/toggle.html @@ -142,9 +142,9 @@

JavaScript Options

mode - hover | click | media + String click - Comma-separated list of trigger behaviour modes. + Comma-separated list of trigger behaviour modes (hover|click|media). media diff --git a/tests/tooltip.html b/tests/tooltip.html index 0c6f717f9..07fdbc894 100644 --- a/tests/tooltip.html +++ b/tests/tooltip.html @@ -71,13 +71,13 @@

JavaScript Options

title String - '' + Tooltip title. pos String - 'top-center' + top-center Tooltip position. diff --git a/tests/upload.html b/tests/upload.html index fa29fa288..a410a6dc2 100644 --- a/tests/upload.html +++ b/tests/upload.html @@ -114,7 +114,7 @@

JavaScript Options

url String - '' + The request url. @@ -126,7 +126,7 @@

JavaScript Options

name String - 'files[]' + files[] The name parameter. @@ -168,8 +168,8 @@

JavaScript Options

type String - (xml, json, script, or html) - The expected response data type. + + The expected response data type (xml, json, script, or html). i18n @@ -180,7 +180,7 @@

JavaScript Options

cls-dragover String - 'uk-dragover' + uk-dragover File name filter. diff --git a/tests/utility.html b/tests/utility.html index f87efdc40..fcd5d5302 100644 --- a/tests/utility.html +++ b/tests/utility.html @@ -216,13 +216,13 @@

JavaScript Options

- selContainer + sel-container CSS selector .uk-modal The container element which provides the height. - selContent + sel-content CSS selector .uk-modal-dialog The element which wraps the inner content to provide its height. diff --git a/tests/video.html b/tests/video.html index cd475309c..408eb3da4 100644 --- a/tests/video.html +++ b/tests/video.html @@ -46,14 +46,14 @@

JavaScript Options

autoplay - Boolean|String - true + Boolean, String + true The video automatically plays/pauses when visible/hidden on the page. A value of `inview` will delay loading the video and play/pause the video as it enters/leaves the viewport. automute Boolean - false + false Automatically mute YouTube or Vimeo videos.