No files matched your search
@@ -15,6 +15,8 @@
|
||||
cats:
|
||||
- name: API
|
||||
internal: extend/api.md
|
||||
- name: App
|
||||
internal: extend/app.md
|
||||
- name: Integrate
|
||||
internal: extend/integrate/index.md
|
||||
- name: Plugins
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
<section id='image-carousel' class='splide'>
|
||||
<div class='splide__track'>
|
||||
<ul class='splide__list' style='list-style-type: none; list-style: none;'>
|
||||
{% for image in site.static_files %}
|
||||
{% if image.path contains 'appgallery/' %}
|
||||
<li class='splide__slide'>
|
||||
<img src="{{ image.path | relative_url }}" alt="" />
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
document.addEventListener( 'DOMContentLoaded', function () {
|
||||
new Splide('#image-carousel', {
|
||||
type: 'loop',
|
||||
perPage: 3,
|
||||
autoPlay: true,
|
||||
pagination: false,
|
||||
// pagination: false,
|
||||
// focus: 'center',
|
||||
}).mount();
|
||||
});
|
||||
</script>
|
||||
@@ -2,9 +2,12 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="stylesheet" href="{{ '/assets/splide/css/splide.min.css' | relative_url }}">
|
||||
<link rel="stylesheet" href="{{ '/assets/index.css' | relative_url }}">
|
||||
<link rel="shortcut icon" type="image/png" href="{{ '/assets/icon/favicon.ico' | relative_url }}">
|
||||
|
||||
<script src="{{ '/assets/splide/js/splide.min.js' | relative_url }}"></script>
|
||||
|
||||
<title>{{ site.title }}{% if page.title %} - {{ page.title }}{% endif %}</title>
|
||||
<meta itemprop="description" name="description"
|
||||
content="{% if page.description %}{{ page.description | truncate: 160 }}{% else %}{{ site.description | truncate: 160 }}{% endif %}" />
|
||||
|
||||
|
After Width: | Height: | Size: 89 KiB |
|
After Width: | Height: | Size: 180 KiB |
|
After Width: | Height: | Size: 204 KiB |
|
After Width: | Height: | Size: 138 KiB |
|
After Width: | Height: | Size: 177 KiB |
|
After Width: | Height: | Size: 239 KiB |
|
After Width: | Height: | Size: 154 KiB |
|
After Width: | Height: | Size: 369 KiB |
|
After Width: | Height: | Size: 169 KiB |
|
After Width: | Height: | Size: 263 KiB |
|
After Width: | Height: | Size: 177 KiB |
|
After Width: | Height: | Size: 205 KiB |
|
After Width: | Height: | Size: 205 KiB |
|
After Width: | Height: | Size: 1015 KiB |
|
After Width: | Height: | Size: 204 KiB |
@@ -0,0 +1 @@
|
||||
@keyframes splide-loading{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.splide__track--draggable{-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.splide__track--fade>.splide__list{display:block}.splide__track--fade>.splide__list>.splide__slide{left:0;opacity:0;position:absolute;top:0;z-index:0}.splide__track--fade>.splide__list>.splide__slide.is-active{opacity:1;position:relative;z-index:1}.splide--rtl{direction:rtl}.splide__track--ttb>.splide__list{display:block}.splide__container{box-sizing:border-box;position:relative}.splide__list{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:-ms-flexbox;display:flex;height:100%;margin:0!important;padding:0!important}.splide.is-initialized:not(.is-active) .splide__list{display:block}.splide__pagination{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;margin:0;pointer-events:none}.splide__pagination li{display:inline-block;line-height:1;list-style-type:none;margin:0;pointer-events:auto}.splide__progress__bar{width:0}.splide{position:relative;visibility:hidden}.splide.is-initialized,.splide.is-rendered{visibility:visible}.splide__slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0;list-style-type:none!important;margin:0;position:relative}.splide__slide img{vertical-align:bottom}.splide__spinner{animation:splide-loading 1s linear infinite;border:2px solid #999;border-left-color:transparent;border-radius:50%;bottom:0;contain:strict;display:inline-block;height:20px;left:0;margin:auto;position:absolute;right:0;top:0;width:20px}.splide__sr{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.splide__toggle.is-active .splide__toggle__play,.splide__toggle__pause{display:none}.splide__toggle.is-active .splide__toggle__pause{display:inline}.splide__track{overflow:hidden;position:relative;z-index:0}
|
||||
@@ -0,0 +1 @@
|
||||
.splide__container{box-sizing:border-box;position:relative}.splide__list{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:-ms-flexbox;display:flex;height:100%;margin:0!important;padding:0!important}.splide.is-initialized:not(.is-active) .splide__list{display:block}.splide__pagination{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;margin:0;pointer-events:none}.splide__pagination li{display:inline-block;line-height:1;list-style-type:none;margin:0;pointer-events:auto}.splide__progress__bar{width:0}.splide{position:relative;visibility:hidden}.splide.is-initialized,.splide.is-rendered{visibility:visible}.splide__slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0;list-style-type:none!important;margin:0;position:relative}.splide__slide img{vertical-align:bottom}.splide__spinner{animation:splide-loading 1s linear infinite;border:2px solid #999;border-left-color:transparent;border-radius:50%;bottom:0;contain:strict;display:inline-block;height:20px;left:0;margin:auto;position:absolute;right:0;top:0;width:20px}.splide__sr{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.splide__toggle.is-active .splide__toggle__play,.splide__toggle__pause{display:none}.splide__toggle.is-active .splide__toggle__pause{display:inline}.splide__track{overflow:hidden;position:relative;z-index:0}@keyframes splide-loading{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.splide__track--draggable{-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.splide__track--fade>.splide__list{display:block}.splide__track--fade>.splide__list>.splide__slide{left:0;opacity:0;position:absolute;top:0;z-index:0}.splide__track--fade>.splide__list>.splide__slide.is-active{opacity:1;position:relative;z-index:1}.splide--rtl{direction:rtl}.splide__track--ttb>.splide__list{display:block}.splide__arrow{-ms-flex-align:center;align-items:center;background:#ccc;border:0;border-radius:50%;cursor:pointer;display:-ms-flexbox;display:flex;height:2em;-ms-flex-pack:center;justify-content:center;opacity:.7;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:2em;z-index:1}.splide__arrow svg{fill:#000;height:1.2em;width:1.2em}.splide__arrow:hover:not(:disabled){opacity:.9}.splide__arrow:disabled{opacity:.3}.splide__arrow:focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide__arrow--prev{left:1em}.splide__arrow--prev svg{transform:scaleX(-1)}.splide__arrow--next{right:1em}.splide.is-focus-in .splide__arrow:focus{outline:3px solid #0bf;outline-offset:3px}.splide__pagination{bottom:.5em;left:0;padding:0 1em;position:absolute;right:0;z-index:1}.splide__pagination__page{background:#ccc;border:0;border-radius:50%;display:inline-block;height:8px;margin:3px;opacity:.7;padding:0;position:relative;transition:transform .2s linear;width:8px}.splide__pagination__page.is-active{background:#fff;transform:scale(1.4);z-index:1}.splide__pagination__page:hover{cursor:pointer;opacity:.9}.splide__pagination__page:focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide.is-focus-in .splide__pagination__page:focus{outline:3px solid #0bf;outline-offset:3px}.splide__progress__bar{background:#ccc;height:3px}.splide__slide{-webkit-tap-highlight-color:transparent}.splide__slide:focus{outline:0}@supports(outline-offset:-3px){.splide__slide:focus-visible{outline:3px solid #0bf;outline-offset:-3px}}@media screen and (-ms-high-contrast:none){.splide__slide:focus-visible{border:3px solid #0bf}}@supports(outline-offset:-3px){.splide.is-focus-in .splide__slide:focus{outline:3px solid #0bf;outline-offset:-3px}}@media screen and (-ms-high-contrast:none){.splide.is-focus-in .splide__slide:focus{border:3px solid #0bf}.splide.is-focus-in .splide__track>.splide__list>.splide__slide:focus{border-color:#0bf}}.splide__toggle{cursor:pointer}.splide__toggle:focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide.is-focus-in .splide__toggle:focus{outline:3px solid #0bf;outline-offset:3px}.splide__track--nav>.splide__list>.splide__slide{border:3px solid transparent;cursor:pointer}.splide__track--nav>.splide__list>.splide__slide.is-active{border:3px solid #000}.splide__arrows--rtl .splide__arrow--prev{left:auto;right:1em}.splide__arrows--rtl .splide__arrow--prev svg{transform:scaleX(1)}.splide__arrows--rtl .splide__arrow--next{left:1em;right:auto}.splide__arrows--rtl .splide__arrow--next svg{transform:scaleX(-1)}.splide__arrows--ttb .splide__arrow{left:50%;transform:translate(-50%)}.splide__arrows--ttb .splide__arrow--prev{top:1em}.splide__arrows--ttb .splide__arrow--prev svg{transform:rotate(-90deg)}.splide__arrows--ttb .splide__arrow--next{bottom:1em;top:auto}.splide__arrows--ttb .splide__arrow--next svg{transform:rotate(90deg)}.splide__pagination--ttb{bottom:0;display:-ms-flexbox;display:fleLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
.splide__container{box-sizing:border-box;position:relative}.splide__list{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:-ms-flexbox;display:flex;height:100%;margin:0!important;padding:0!important}.splide.is-initialized:not(.is-active) .splide__list{display:block}.splide__pagination{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;margin:0;pointer-events:none}.splide__pagination li{display:inline-block;line-height:1;list-style-type:none;margin:0;pointer-events:auto}.splide__progress__bar{width:0}.splide{position:relative;visibility:hidden}.splide.is-initialized,.splide.is-rendered{visibility:visible}.splide__slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0;list-style-type:none!important;margin:0;position:relative}.splide__slide img{vertical-align:bottom}.splide__spinner{animation:splide-loading 1s linear infinite;border:2px solid #999;border-left-color:transparent;border-radius:50%;bottom:0;contain:strict;display:inline-block;height:20px;left:0;margin:auto;position:absolute;right:0;top:0;width:20px}.splide__sr{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.splide__toggle.is-active .splide__toggle__play,.splide__toggle__pause{display:none}.splide__toggle.is-active .splide__toggle__pause{display:inline}.splide__track{overflow:hidden;position:relative;z-index:0}@keyframes splide-loading{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.splide__track--draggable{-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.splide__track--fade>.splide__list{display:block}.splide__track--fade>.splide__list>.splide__slide{left:0;opacity:0;position:absolute;top:0;z-index:0}.splide__track--fade>.splide__list>.splide__slide.is-active{opacity:1;position:relative;z-index:1}.splide--rtl{direction:rtl}.splide__track--ttb>.splide__list{display:block}.splide__arrow{-ms-flex-align:center;align-items:center;background:#ccc;border:0;border-radius:50%;cursor:pointer;display:-ms-flexbox;display:flex;height:2em;-ms-flex-pack:center;justify-content:center;opacity:.7;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:2em;z-index:1}.splide__arrow svg{fill:#000;height:1.2em;width:1.2em}.splide__arrow:hover:not(:disabled){opacity:.9}.splide__arrow:disabled{opacity:.3}.splide__arrow:focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide__arrow--prev{left:1em}.splide__arrow--prev svg{transform:scaleX(-1)}.splide__arrow--next{right:1em}.splide.is-focus-in .splide__arrow:focus{outline:3px solid #0bf;outline-offset:3px}.splide__pagination{bottom:.5em;left:0;padding:0 1em;position:absolute;right:0;z-index:1}.splide__pagination__page{background:#ccc;border:0;border-radius:50%;display:inline-block;height:8px;margin:3px;opacity:.7;padding:0;position:relative;transition:transform .2s linear;width:8px}.splide__pagination__page.is-active{background:#fff;transform:scale(1.4);z-index:1}.splide__pagination__page:hover{cursor:pointer;opacity:.9}.splide__pagination__page:focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide.is-focus-in .splide__pagination__page:focus{outline:3px solid #0bf;outline-offset:3px}.splide__progress__bar{background:#ccc;height:3px}.splide__slide{-webkit-tap-highlight-color:transparent}.splide__slide:focus{outline:0}@supports(outline-offset:-3px){.splide__slide:focus-visible{outline:3px solid #0bf;outline-offset:-3px}}@media screen and (-ms-high-contrast:none){.splide__slide:focus-visible{border:3px solid #0bf}}@supports(outline-offset:-3px){.splide.is-focus-in .splide__slide:focus{outline:3px solid #0bf;outline-offset:-3px}}@media screen and (-ms-high-contrast:none){.splide.is-focus-in .splide__slide:focus{border:3px solid #0bf}.splide.is-focus-in .splide__track>.splide__list>.splide__slide:focus{border-color:#0bf}}.splide__toggle{cursor:pointer}.splide__toggle:focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide.is-focus-in .splide__toggle:focus{outline:3px solid #0bf;outline-offset:3px}.splide__track--nav>.splide__list>.splide__slide{border:3px solid transparent;cursor:pointer}.splide__track--nav>.splide__list>.splide__slide.is-active{border:3px solid #000}.splide__arrows--rtl .splide__arrow--prev{left:auto;right:1em}.splide__arrows--rtl .splide__arrow--prev svg{transform:scaleX(1)}.splide__arrows--rtl .splide__arrow--next{left:1em;right:auto}.splide__arrows--rtl .splide__arrow--next svg{transform:scaleX(-1)}.splide__arrows--ttb .splide__arrow{left:50%;transform:translate(-50%)}.splide__arrows--ttb .splide__arrow--prev{top:1em}.splide__arrows--ttb .splide__arrow--prev svg{transform:rotate(-90deg)}.splide__arrows--ttb .splide__arrow--next{bottom:1em;top:auto}.splide__arrows--ttb .splide__arrow--next svg{transform:rotate(90deg)}.splide__pagination--ttb{bottom:0;display:-ms-flexbox;display:fleLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
.splide__track--nav>.splide__list>.splide__slide{border:3px solid transparent;border-radius:4px;cursor:pointer;opacity:.7}.splide__track--nav>.splide__list>.splide__slide.is-active{border:3px solid #20b2aa;opacity:1}.splide__arrows--ttb .splide__arrow{left:50%;transform:translate(-50%)}.splide__arrows--ttb .splide__arrow--prev{top:1em}.splide__arrows--ttb .splide__arrow--prev svg{transform:rotate(-90deg)}.splide__arrows--ttb .splide__arrow--next{bottom:1em;top:auto}.splide__arrows--ttb .splide__arrow--next svg{transform:rotate(90deg)}.splide__pagination--ttb{bottom:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;left:auto;padding:1em 0;right:1em;top:0}.splide__pagination--ttb .splide__pagination__page{height:20px;width:5px}.splide__arrow{-ms-flex-align:center;align-items:center;background:transparent;border:0;border-radius:0;cursor:pointer;display:-ms-flexbox;display:flex;height:2.5em;-ms-flex-pack:center;justify-content:center;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:2.5em;z-index:1}.splide__arrow svg{fill:#20b2aa;height:2.5em;transition:fill .2s linear;width:2.5em}.splide__arrow:hover:not(:disabled) svg{fill:#57e1d9}.splide__arrow:disabled{opacity:.3}.splide__arrow:focus-visible{outline:3px solid #20b2aa;outline-offset:3px}.splide__arrow--prev{left:1em}.splide__arrow--prev svg{transform:scaleX(-1)}.splide__arrow--next{right:1em}.splide.is-focus-in .splide__arrow:focus{outline:3px solid #20b2aa;outline-offset:3px}.splide__pagination{bottom:1em;left:0;padding:0 1em;position:absolute;right:0;z-index:1}.splide__pagination__page{background:#ccc;border:0;border-radius:2.5px;display:inline-block;height:5px;margin:3px;padding:0;position:relative;transition:background-color .2s linear;width:20px}.splide__pagination__page.is-active{background:#20b2aa;z-index:1}.splide__pagination__page:hover{background:#57e1d9;cursor:pointer;opacity:.9}.splide__pagination__page:focus-visible{outline:3px solid #20b2aa;outline-offset:3px}.splide.is-focus-in .splide__pagination__page:focus{outline:3px solid #20b2aa;outline-offset:3px}.splide__slide{-webkit-tap-highlight-color:transparent;border-radius:4px}.splide__slide:focus{outline:0}@supports(outline-offset:-3px){.splide__slide:focus-visible{outline:3px solid #20b2aa;outline-offset:-3px}}@media screen and (-ms-high-contrast:none){.splide__slide:focus-visible{border:3px solid #20b2aa}}@supports(outline-offset:-3px){.splide.is-focus-in .splide__slide:focus{outline:3px solid #20b2aa;outline-offset:-3px}}@media screen and (-ms-high-contrast:none){.splide.is-focus-in .splide__slide:focus{border:3px solid #20b2aa}.splide.is-focus-in .splide__track>.splide__list>.splide__slide:focus{border-color:#20b2aa}}.splide__container{box-sizing:border-box;position:relative}.splide__list{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:-ms-flexbox;display:flex;height:100%;margin:0!important;padding:0!important}.splide.is-initialized:not(.is-active) .splide__list{display:block}.splide__pagination{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;margin:0;pointer-events:none}.splide__pagination li{display:inline-block;line-height:1;list-style-type:none;margin:0;pointer-events:auto}.splide__progress__bar{width:0}.splide{position:relative;visibility:hidden}.splide.is-initialized,.splide.is-rendered{visibility:visible}.splide__slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0;list-style-type:none!important;margin:0;position:relative}.splide__slide img{vertical-align:bottom}.splide__spinner{animation:splide-loading 1s linear infinite;border:2px solid #20b2aa;border-left-color:transparent;border-radius:50%;bottom:0;contain:strict;display:inline-block;height:20px;left:0;margin:auto;position:absolute;right:0;top:0;width:20px}.splide__sr{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.splide__toggle.is-active .splide__toggle__play,.splide__toggle__pause{display:none}.splide__toggle.is-active .splide__toggle__pause{display:inline}.splide__track{overflow:hidden;position:relative;z-index:0}@keyframes splide-loading{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.splide__track--draggable{-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.splide__track--fade>.splide__list{display:block}.splide__track--fade>.splide__list>.splide__slide{left:0;opacity:0;position:absolute;top:0;z-index:0}.splide__track--fade>.splide__list>.splide__slide.is-active{opacity:1;position:relative;z-index:1}.splide--rtl{direction:rtl}.splide__track--ttb>.splide__list{display:block}.splide__progress__bar{background:#ccc;height:3px}.splide__toggle{cursor:pointer}.splide__toggle:focus-visible{outline:3px solid #20b2aa;outline-offset:3px}.splide.is-focus-in .splide__toggle:focus{outline:3pLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
.splide__track--nav>.splide__list>.splide__slide{border:3px solid transparent;cursor:pointer;opacity:.7}.splide__track--nav>.splide__list>.splide__slide.is-active{border:3px solid #00bfff;opacity:1}.splide__arrow{-ms-flex-align:center;align-items:center;background:transparent;border:0;border-radius:0;cursor:pointer;display:-ms-flexbox;display:flex;height:2.5em;-ms-flex-pack:center;justify-content:center;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:2.5em;z-index:1}.splide__arrow svg{fill:#00bfff;height:2.5em;transition:fill .2s linear;width:2.5em}.splide__arrow:hover:not(:disabled) svg{fill:#66d9ff}.splide__arrow:disabled{opacity:.3}.splide__arrow:focus-visible{outline:3px solid #00bfff;outline-offset:3px}.splide__arrow--prev{left:1em}.splide__arrow--prev svg{transform:scaleX(-1)}.splide__arrow--next{right:1em}.splide.is-focus-in .splide__arrow:focus{outline:3px solid #00bfff;outline-offset:3px}.splide__pagination{bottom:.5em;left:0;padding:0 1em;position:absolute;right:0;z-index:1}.splide__pagination__page{background:#ccc;border:0;border-radius:50%;display:inline-block;height:10px;margin:3px;padding:0;position:relative;transition:background-color .2s linear,transform .2s linear;width:10px}.splide__pagination__page.is-active{background:#00bfff;transform:scale(1.4);z-index:1}.splide__pagination__page:hover{background:#66d9ff;cursor:pointer;opacity:.9}.splide__pagination__page:focus-visible{outline:3px solid #00bfff;outline-offset:3px}.splide.is-focus-in .splide__pagination__page:focus{outline:3px solid #00bfff;outline-offset:3px}.splide__container{box-sizing:border-box;position:relative}.splide__list{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:-ms-flexbox;display:flex;height:100%;margin:0!important;padding:0!important}.splide.is-initialized:not(.is-active) .splide__list{display:block}.splide__pagination{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;margin:0;pointer-events:none}.splide__pagination li{display:inline-block;line-height:1;list-style-type:none;margin:0;pointer-events:auto}.splide__progress__bar{width:0}.splide{position:relative;visibility:hidden}.splide.is-initialized,.splide.is-rendered{visibility:visible}.splide__slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0;list-style-type:none!important;margin:0;position:relative}.splide__slide img{vertical-align:bottom}.splide__spinner{animation:splide-loading 1s linear infinite;border:2px solid #00bfff;border-left-color:transparent;border-radius:50%;bottom:0;contain:strict;display:inline-block;height:20px;left:0;margin:auto;position:absolute;right:0;top:0;width:20px}.splide__sr{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.splide__toggle.is-active .splide__toggle__play,.splide__toggle__pause{display:none}.splide__toggle.is-active .splide__toggle__pause{display:inline}.splide__track{overflow:hidden;position:relative;z-index:0}@keyframes splide-loading{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.splide__track--draggable{-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.splide__track--fade>.splide__list{display:block}.splide__track--fade>.splide__list>.splide__slide{left:0;opacity:0;position:absolute;top:0;z-index:0}.splide__track--fade>.splide__list>.splide__slide.is-active{opacity:1;position:relative;z-index:1}.splide--rtl{direction:rtl}.splide__track--ttb>.splide__list{display:block}.splide__progress__bar{background:#ccc;height:3px}.splide__slide{-webkit-tap-highlight-color:transparent}.splide__slide:focus{outline:0}@supports(outline-offset:-3px){.splide__slide:focus-visible{outline:3px solid #00bfff;outline-offset:-3px}}@media screen and (-ms-high-contrast:none){.splide__slide:focus-visible{border:3px solid #00bfff}}@supports(outline-offset:-3px){.splide.is-focus-in .splide__slide:focus{outline:3px solid #00bfff;outline-offset:-3px}}@media screen and (-ms-high-contrast:none){.splide.is-focus-in .splide__slide:focus{border:3px solid #00bfff}.splide.is-focus-in .splide__track>.splide__list>.splide__slide:focus{border-color:#00bfff}}.splide__toggle{cursor:pointer}.splide__toggle:focus-visible{outline:3px solid #00bfff;outline-offset:3px}.splide.is-focus-in .splide__toggle:focus{outline:3px solid #00bfff;outline-offset:3px}.splide__arrows--rtl .splide__arrow--prev{left:auto;right:1em}.splide__arrows--rtl .splide__arrow--prev svg{transform:scaleX(1)}.splide__arrows--rtl .splide__arrow--next{left:1em;right:auto}.splide__arrows--rtl .splide__arrow--next svg{transform:scaleX(-1)}.splide__arrows--ttb .splide__arrow{left:50%;transform:translate(-50%)}.splide__arrows--ttb .splide__arrow--prev{top:1em}.splide__arrows--ttb .splide__arrow--prev svg{transform:rotate(-90deg)}.splide__arrows--ttb .splide__arrow--next{bottom:1em;top:auto}Line truncated
|
||||
@@ -0,0 +1,2 @@
|
||||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).SplideRenderer=e()}(this,function(){"use strict";var r="rtl",o="ttb",a={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:["ArrowUp","ArrowRight"],ArrowRight:["ArrowDown","ArrowLeft"]};function n(t,e,n){return{resolve:function(t,e,i){var s=(i=i||n.direction)!==r||e?i===o?0:-1:1;return a[t]&&a[t][s]||t.replace(/width|left|right/i,function(t,e){t=a[t.toLowerCase()][s]||t;return 0<e?t.charAt(0).toUpperCase()+t.slice(1):t})},orient:function(t){return t*(n.direction===r?1:-1)}}}var i="splide",s=i,u=i+"__track",l=i+"__list",c=i+"__slide",h=c+"--clone",t=i+"__arrow",e=i+"__pagination",d="is-active",f={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:{slide:c,clone:h,arrows:i+"__arrows",arrow:t,prev:t+"--prev",next:t+"--next",pagination:e,page:e+"__page",spinner:i+"__spinner"},i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function p(t,e,i){return Array.prototype.slice.call(t,e,i)}function v(t){return t.bind.apply(t,[null].concat(p(arguments,1)))}function g(t,e){return typeof e===t}function y(t){return null!==t&&g("object",t)}var b=Array.isArray;v(g,"function");var m=v(g,"string");function S(t){return b(t)?t:[t]}function w(t,e){S(t).forEach(e)}function C(t,e){return t.push.apply(t,S(e)),t}function x(t,e){return t instanceof HTMLElement&&(t.msMatchesSelector||t.matches).call(t,e)}function _(t,e){return e?(i=e,e=(e=t)?p(e.children):[],(i?e.filter(function(t){return x(t,i)}):e)[0]):t.firstElementChild;var i}v(g,"undefined");var k=Object.keys;function E(t,e,i){if(t)for(var s=k(t),s=i?s.reverse():s,n=0;n<s.length;n++){var r=s[n];if("__proto__"!==r&&!1===e(t[r],r))break}return t}function A(s){return p(arguments,1).forEach(function(i){E(i,function(t,e){s[e]=i[e]})}),s}function L(i){return p(arguments,1).forEach(function(t){E(t,function(t,e){b(t)?i[e]=t.slice():y(t)?i[e]=L({},y(i[e])?i[e]:{},t):i[e]=t})}),i}function P(t){w(t,function(t){t&&t.parentNode&&t.parentNode.removeChild(t)})}function V(t){return m(t)?t:t?t+"px":""}function T(t,e){if(!t)throw new Error("["+i+"] "+(e||""))}Math.min;var H=Math.max;Math.floor,Math.ceil,Math.abs;function W(t){return t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}var D={};function O(){var a=[];function i(t,i,s){w(t,function(e){e&&w(i,function(t){t.split(" ").forEach(function(t){t=t.split(".");s(e,t[0],t[1])})})})}return{bind:function(t,e,r,o){i(t,e,function(t,e,i){var s="addEventListener"in t,n=s?t.removeEventListener.bind(t,e,r,o):t.removeListener.bind(t,r);s?t.addEventListener(e,r,o):t.addListener(r),a.push([t,e,i,r,n])})},unbind:function(t,e,n){i(t,e,function(e,i,s){a=a.filter(function(t){return!!(t[0]!==e||t[1]!==i||t[2]!==s||n&&t[3]!==n)||(t[4](),!1)})})},dispatch:function(t,e,i){var s;return"function"==typeof CustomEvent?s=new CustomEvent(e,{bubbles:!0,detail:i}):(s=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!1,i),t.dispatchEvent(s),s},destroy:function(){a.forEach(function(t){t[4]()}),a.length=0}}}function R(t){var i=t?t.event.bus:document.createDocumentFragment(),s=O();return t&&t.event.on("destroy",s.destroy),A(s,{bus:i,on:function(t,e){s.bind(i,S(t).join(" "),function(t){e.apply(e,b(t.detail)?t.detail:[])})},off:v(s.unbind,i),emit:function(t){s.dispatch(i,t,p(arguments,1))}})}var M={listTag:"ul",slideTag:"li"},j=function(){function t(t,e){this.styles={},this.id=t,this.options=e}var e=t.prototype;return e.rule=function(t,e,i,s){s=this.styles[s=s||"default"]=this.styles[s]||{};(s[t]=s[t]||{})[e]=i},e.build=function(){var i=this,e="";return this.styles.default&&(e+=this.buildSelectors(this.styles.default)),Object.keys(this.styles).sort(function(t,e){return"min"===i.options.mediaQuery?+t-+e:+e-+t}).forEach(function(t){"default"!==t&&(e+="@media screen and (max-width: "+t+"px) {",e+=i.buildSelectors(i.styles[t]),e+="}")}),e},e.buildSelectors=function(t){var i=this,s="";return E(t,function(t,e){e=("#"+i.id+" "+e).trim(),s+=e+" {",E(t,function(t,e){!t&&0!==t||(s+=e+": "+t+";")}),s+="}"}),s},t}();return function(){function t(t,e,i,s){this.slides=[],this.options={},this.breakpoints=[],L(f,s||{}),L(L(this.options,f),e||{}),this.contents=t,this.config=A({},M,i||{}),this.id=this.config.id||""+(i="splide")+((i=D[i]=(D[i]||0)+1)<10?"0"+i:""+i),this.Style=new j(this.id,this.options),this.DirecLine truncated
|
||||
//# sourceMappingURL=splide-renderer.min.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"splide-renderer.min.js","sources":["../../src/js/constants/directions.ts","../../src/js/components/Direction/Direction.ts","../../src/js/constants/arrows.ts","../../src/js/constants/project.ts","../../src/js/constants/classes.ts","../../src/js/constants/defaults.ts","../../src/js/constants/i18n.ts","../../src/js/utils/arrayLike/slice/slice.ts","../../src/js/utils/function/apply/apply.ts","../../src/js/utils/type/type.ts","../../src/js/utils/array/toArray/toArray.ts","../../src/js/utils/array/forEach/forEach.ts","../../src/js/utils/array/push/push.ts","../../src/js/utils/dom/matches/matches.ts","../../src/js/utils/dom/child/child.ts","../../src/js/utils/dom/children/children.ts","../../src/js/utils/object/ownKeys/ownKeys.ts","../../src/js/utils/object/forOwn/forOwn.ts","../../src/js/utils/object/assign/assign.ts","../../src/js/utils/object/merge/merge.ts","../../src/js/utils/dom/remove/remove.ts","../../src/js/utils/dom/unit/unit.ts","../../src/js/utils/error/assert/assert.ts","../../src/js/utils/math/math/math.ts","../../src/js/utils/string/camelToKebab/camelToKebab.ts","../../src/js/utils/string/uniqueId/uniqueId.ts","../../src/js/constructors/EventBinder/EventBinder.ts","../../src/js/utils/array/empty/empty.ts","../../src/js/constructors/EventInterface/EventInterface.ts","../../src/js/constants/events.ts","../../src/js/renderer/constants/defaults.ts","../../src/js/renderer/Style/Style.ts","../../src/js/renderer/SplideRenderer/SplideRenderer.ts","../../src/js/utils/string/pad/pad.ts","../../src/js/utils/dom/queryAll/queryAll.ts","../../src/js/constants/types.ts","../../src/js/renderer/constants/classes.ts","../../src/js/components/Arrows/path.ts"],"sourcesContent":["/**\r\n * Enumerates slides from left to right.\r\n */\r\nexport const LTR = 'ltr';\r\n\r\n/**\r\n * Enumerates slides from right to left.\r\n */\r\nexport const RTL = 'rtl';\r\n\r\n/**\r\n * Enumerates slides in a col.\r\n */\r\nexport const TTB = 'ttb';\r\n","import { ARROW_DOWN, ARROW_LEFT, ARROW_RIGHT, ARROW_UP } from '../../constants/arrows';\r\nimport { RTL, TTB } from '../../constants/directions';\r\nimport { Splide } from '../../core/Splide/Splide';\r\nimport { BaseComponent, Components, Options } from '../../types';\r\n\r\n\r\n/**\r\n * The interface for the Direction component.\r\n *\r\n * @since 3.0.0\r\n */\r\nexport interface DirectionComponent extends BaseComponent {\r\n resolve( prop: string, axisOnly?: boolean, direction?: Options['direction'] ): string;\r\n orient( value: number ): number;\r\n}\r\n\r\n/**\r\n * The translation map for directions.\r\n *\r\n * @since 3.0.0\r\n */\r\nexport const ORIENTATION_MAP = {\r\n width : [ 'height' ],\r\n left : [ 'top', 'right' ],\r\n right : [ 'bottom', 'left' ],\r\n x : [ 'y' ],\r\n X : [ 'Y' ],\r\n Y : [ 'X' ],\r\n ArrowLeft : [ ARROW_UP, ARROW_RIGHT ],\r\n ArrowRight: [ ARROW_DOWN, ARROW_LEFT ],\r\n};\r\n\r\n/**\r\n * The component that absorbs the difference among directions.\r\n *\r\n * @since 3.0.0\r\n *\r\n * @param Splide - A Splide instance.\r\n * @param Components - A collection of components.\r\n * @param options - Options.\r\n *\r\n * @return A Direction component object.\r\n */\r\nexport function Direction( Splide: Splide, Components: Components, options: Options ): DirectionComponent {\r\n /**\r\n * Resolves the provided property name.\r\n *\r\n * @param prop - A property name to translate.\r\n * @param axisOnly - Optional. If `ture`, returns the same property for LTR and RTL.\r\n * @param direction - Optional. Specify the direction. The default value is the `direction` option.\r\n */\r\n function resolve( prop: string, axisOnly?: boolean, direction?: Options['direction'] ): string {\r\n direction = direction || options.direction;\r\n const index = direction === RTL && ! axisOnly ? 1 : direction === TTB ? 0 : -1;\r\n\r\n return ORIENTATION_MAP[ prop ] && ORIENTATION_MAP[ prop ][ index ]\r\n || prop.replace( /width|left|right/i, ( match, offset ) => {\r\n const replacement = ORIENTATION_MAP[ match.toLowerCase() ][ index ] || match;\r\n return offset > 0 ? replacement.charAt( 0 ).toUpperCase() + replacement.slice( 1 ) : replacement;\r\n } );\r\n }\r\n\r\n /**\r\n * Orients the value towards the current direction.\r\n *\r\n * @param value - A value to orient.\r\n *\r\n * @return The oriented value.\r\n */\r\n function orient( value: number ): number {\r\n return value * ( options.direction === RTL ? 1 : -1 );\r\n }\r\n\r\n return {\r\n resolve,\r\n orient,\r\n };\r\n}\r\n","const ARROW = 'Arrow';\r\nexport const ARROW_LEFT = `${ ARROW }Left`;\r\nexport const ARROW_RIGHT = `${ ARROW }Right`;\r\nexport const ARROW_UP = `${ ARROW }Up`;\r\nexport const ARROW_DOWN = `${ ARROW }Down`;","/**\r\n * The project code.\r\n *\r\n * @since 3.0.0\r\n */\r\nexport const PROJECT_CODE = 'splide';\r\n\r\n/**\r\n * The data attribute prefLine truncated
|
||||
@@ -0,0 +1,2 @@
|
||||
function _defineProperties(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function _createClass(n,t,e){return t&&_defineProperties(n.prototype,t),e&&_defineProperties(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n="undefined"!=typeof globalThis?globalThis:n||self).Splide=t()}(this,function(){"use strict";var d="(prefers-reduced-motion: reduce)",R=4,W=5,n={CREATED:1,MOUNTED:2,IDLE:3,MOVING:R,SCROLLING:W,DRAGGING:6,DESTROYED:7};function x(n){n.length=0}function _(n,t,e){return Array.prototype.slice.call(n,t,e)}function D(n){return n.bind.apply(n,[null].concat(_(arguments,1)))}function G(){}var v=setTimeout;function p(n){return requestAnimationFrame(n)}function t(n,t){return typeof t===n}function X(n){return!r(n)&&t("object",n)}var o=Array.isArray,w=D(t,"function"),M=D(t,"string"),z=D(t,"undefined");function r(n){return null===n}function g(n){return n instanceof HTMLElement}function m(n){return o(n)?n:[n]}function y(n,t){m(n).forEach(t)}function b(n,t){return-1<n.indexOf(t)}function E(n,t){return n.push.apply(n,m(t)),n}function L(t,n,e){t&&y(n,function(n){n&&t.classList[e?"add":"remove"](n)})}function C(n,t){L(n,M(t)?t.split(" "):t,!0)}function P(n,t){y(t,n.appendChild.bind(n))}function k(n,e){y(n,function(n){var t=(e||n).parentNode;t&&t.insertBefore(n,e)})}function B(n,t){return g(n)&&(n.msMatchesSelector||n.matches).call(n,t)}function S(n,t){n=n?_(n.children):[];return t?n.filter(function(n){return B(n,t)}):n}function A(n,t){return t?S(n,t)[0]:n.firstElementChild}var h=Object.keys;function N(n,t,e){if(n)for(var i=h(n),i=e?i.reverse():i,o=0;o<i.length;o++){var r=i[o];if("__proto__"!==r&&!1===t(n[r],r))break}return n}function T(i){return _(arguments,1).forEach(function(e){N(e,function(n,t){i[t]=e[t]})}),i}function O(e){return _(arguments,1).forEach(function(n){N(n,function(n,t){o(n)?e[t]=n.slice():X(n)?e[t]=O({},X(e[t])?e[t]:{},n):e[t]=n})}),e}function I(t,n){m(n||h(t)).forEach(function(n){delete t[n]})}function F(n,e){y(n,function(t){y(e,function(n){t&&t.removeAttribute(n)})})}function j(e,t,i){X(t)?N(t,function(n,t){j(e,t,n)}):y(e,function(n){r(i)||""===i?F(n,t):n.setAttribute(t,String(i))})}function H(n,t,e){n=document.createElement(n);return t&&(M(t)?C:j)(n,t),e&&P(e,n),n}function Y(n,t,e){if(z(e))return getComputedStyle(n)[t];r(e)||(n.style[t]=""+e)}function q(n,t){Y(n,"display",t)}function U(n){n.setActive&&n.setActive()||n.focus({preventScroll:!0})}function K(n,t){return n.getAttribute(t)}function J(n,t){return n&&n.classList.contains(t)}function Q(n){return n.getBoundingClientRect()}function V(n){y(n,function(n){n&&n.parentNode&&n.parentNode.removeChild(n)})}function Z(n){return A((new DOMParser).parseFromString(n,"text/html").body)}function $(n,t){n.preventDefault(),t&&(n.stopPropagation(),n.stopImmediatePropagation())}function nn(n,t){return n&&n.querySelector(t)}function tn(n,t){return t?_(n.querySelectorAll(t)):[]}function en(n,t){L(n,t,!1)}function on(n){return n.timeStamp}function rn(n){return M(n)?n:n?n+"px":""}var un="splide",i="data-"+un;function sn(n,t){if(!n)throw new Error("["+un+"] "+(t||""))}var cn=Math.min,an=Math.max,fn=Math.floor,ln=Math.ceil,dn=Math.abs;function pn(n,t,e){return dn(n-t)<e}function hn(n,t,e,i){var o=cn(t,e),e=an(t,e);return i?o<n&&n<e:o<=n&&n<=e}function vn(n,t,e){var i=cn(t,e),e=an(t,e);return cn(an(i,n),e)}function gn(n){return(0<n)-(n<0)}function mn(t,n){return y(n,function(n){t=t.replace("%s",""+n)}),t}function yn(n){return n<10?"0"+n:""+n}var bn={};function wn(){var s=[];function e(n,e,i){y(n,function(t){t&&y(e,function(n){n.split(" ").forEach(function(n){n=n.split(".");i(t,n[0],n[1])})})})}return{bind:function(n,t,r,u){e(n,t,function(n,t,e){var i="addEventListener"in n,o=i?n.removeEventListener.bind(n,t,r,u):n.removeListener.bind(n,r);i?n.addEventListener(t,r,u):n.addListener(r),s.push([n,t,e,r,o])})},unbind:function(n,t,o){e(n,t,function(t,e,i){s=s.filter(function(n){return!!(n[0]!==t||n[1]!==e||n[2]!==i||o&&n[3]!==o)||(n[4](),!1)})})},dispatch:function(n,t,e){var i;return"function"==typeof CustomEvent?i=new CustomEvent(t,{bubbles:!0,detail:e}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!1,e),n.dispatchEvent(i),i},destroy:function(){s.forEach(function(n){n[4]()}),x(s)}}}var En="mounted",Sn="move",xn="moved",_n="shifted",Cn="click",Pn="active",kn="inactive",Ln="visible",An="hidden",Dn="slide:keydown",Mn="refresh",zn="updated",Nn="resize",Tn="resized",On="scroll",In="scrolled",u="destroy",Fn="navigation:mounted",jn="autoplay:play",Rn="autoplay:pause",Wn="lazyload:loaded";function Gn(n){var e=n?n.event.bus:document.createDocumentFragment(),i=wn();return n&&n.event.on(u,i.destroy),T(i,{bus:e,on:function(n,t){i.bind(e,m(n).join(" "),function(n){t.apply(t,o(n.detail)?n.detail:[])})},off:D(i.unbindLine truncated
|
||||
//# sourceMappingURL=splide.min.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"splide.min.js","sources":["../../src/js/constants/media.ts","../../src/js/constants/states.ts","../../src/js/utils/array/empty/empty.ts","../../src/js/utils/arrayLike/slice/slice.ts","../../src/js/utils/function/apply/apply.ts","../../src/js/utils/function/noop/noop.ts","../../src/js/utils/function/nextTick/nextTick.ts","../../src/js/utils/function/raf/raf.ts","../../src/js/utils/type/type.ts","../../src/js/utils/array/toArray/toArray.ts","../../src/js/utils/array/forEach/forEach.ts","../../src/js/utils/array/includes/includes.ts","../../src/js/utils/array/push/push.ts","../../src/js/utils/dom/toggleClass/toggleClass.ts","../../src/js/utils/dom/addClass/addClass.ts","../../src/js/utils/dom/append/append.ts","../../src/js/utils/dom/before/before.ts","../../src/js/utils/dom/matches/matches.ts","../../src/js/utils/dom/children/children.ts","../../src/js/utils/dom/child/child.ts","../../src/js/utils/object/ownKeys/ownKeys.ts","../../src/js/utils/object/forOwn/forOwn.ts","../../src/js/utils/object/assign/assign.ts","../../src/js/utils/object/merge/merge.ts","../../src/js/utils/object/omit/omit.ts","../../src/js/utils/dom/removeAttribute/removeAttribute.ts","../../src/js/utils/dom/setAttribute/setAttribute.ts","../../src/js/utils/dom/create/create.ts","../../src/js/utils/dom/style/style.ts","../../src/js/utils/dom/display/display.ts","../../src/js/utils/dom/focus/focus.ts","../../src/js/utils/dom/getAttribute/getAttribute.ts","../../src/js/utils/dom/hasClass/hasClass.ts","../../src/js/utils/dom/rect/rect.ts","../../src/js/utils/dom/remove/remove.ts","../../src/js/utils/dom/parseHtml/parseHtml.ts","../../src/js/utils/dom/prevent/prevent.ts","../../src/js/utils/dom/query/query.ts","../../src/js/utils/dom/queryAll/queryAll.ts","../../src/js/utils/dom/removeClass/removeClass.ts","../../src/js/utils/dom/timeOf/timeOf.ts","../../src/js/utils/dom/unit/unit.ts","../../src/js/constants/project.ts","../../src/js/utils/error/assert/assert.ts","../../src/js/utils/math/math/math.ts","../../src/js/utils/math/approximatelyEqual/approximatelyEqual.ts","../../src/js/utils/math/between/between.ts","../../src/js/utils/math/clamp/clamp.ts","../../src/js/utils/math/sign/sign.ts","../../src/js/utils/string/format/format.ts","../../src/js/utils/string/pad/pad.ts","../../src/js/utils/string/uniqueId/uniqueId.ts","../../src/js/constructors/EventBinder/EventBinder.ts","../../src/js/constants/events.ts","../../src/js/constructors/EventInterface/EventInterface.ts","../../src/js/constructors/RequestInterval/RequestInterval.ts","../../src/js/constructors/State/State.ts","../../src/js/constants/arrows.ts","../../src/js/constants/directions.ts","../../src/js/components/Direction/Direction.ts","../../src/js/constants/attributes.ts","../../src/js/constants/classes.ts","../../src/js/components/Drag/constants.ts","../../src/js/constants/types.ts","../../src/js/components/Slides/Slide.ts","../../src/js/components/Autoplay/constants.ts","../../src/js/constants/listener-options.ts","../../src/js/utils/dom/normalizeKey/normalizeKey.ts","../../src/js/components/Keyboard/Keyboard.ts","../../src/js/components/LazyLoad/constants.ts","../../src/js/components/Sync/Sync.ts","../../src/js/components/Media/Media.ts","../../src/js/components/Elements/Elements.ts","../../src/js/utils/dom/closest/closest.ts","../../src/js/components/Slides/Slides.ts","../../src/js/components/Layout/Layout.ts","../../src/js/constructors/Throttle/Throttle.ts","../../src/js/components/Clones/Clones.ts","../../src/js/components/Move/Move.ts","../../src/js/components/Controller/Controller.ts","../../src/js/components/Arrows/Arrows.ts","../../src/js/components/Arrows/path.ts","../../src/js/components/Autoplay/Autoplay.ts","../../src/js/components/Cover/Cover.ts","../../src/js/components/Scroll/Scroll.ts","../../src/js/components/Scroll/constants.ts","../../src/js/components/Drag/Drag.ts","../../src/js/components/LazyLoad/LazyLoad.ts","../../src/js/components/Pagination/Pagination.ts","../../src/js/components/Wheel/Wheel.ts","../../src/js/components/Live/Live.ts","../../src/js/constants/defaults.ts","../../src/js/constants/i18n.ts","../../src/js/transitions/Fade/Fade.ts","../../src/js/transitions/Slide/Slide.ts","../../src/js/core/Splide/Splide.ts"],"sourcesContent":["export const MEDIA_PREFERS_REDUCED_MOTION = '(prefers-reduced-motion: reduce)';","/**\r\n * Splide has been just created.\r\n */\r\nexport const CREATED = 1;\r\n\r\n/**\r\n * Splide has mounted components.\r\n */\r\nexport const MOUNTED = 2;\r\n\r\n/**\r\n * Splide is ready.\r\n */\r\nexport const IDLE = 3;\r\n\r\n/**\r\n * Splide is moving.\r\n */\r\nexport const MOVING = 4;\r\n\r\n/**\r\n * Splide is moving.\r\n */\r\nexport const SCROLLING = 5;\r\n\r\n/**\r\n * The user is dragging the slider.\r\n */\r\nexport const DRAGGING = 6;\r\n\r\n/**\r\n * Splide has been destroyed.\r\n */\r\nexport const DESTROYED = 7;\r\n\r\n/**\r\n * The collection of all states.\r\n *\r\n * @since 3.0.0\r\n */\r\nexport cLine truncated
|
||||
@@ -0,0 +1,379 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
function empty(array) {
|
||||
array.length = 0;
|
||||
}
|
||||
|
||||
function slice(arrayLike, start, end) {
|
||||
return Array.prototype.slice.call(arrayLike, start, end);
|
||||
}
|
||||
|
||||
function find(arrayLike, predicate) {
|
||||
return slice(arrayLike).filter(predicate)[0];
|
||||
}
|
||||
|
||||
function apply(func) {
|
||||
return func.bind(null, ...slice(arguments, 1));
|
||||
}
|
||||
|
||||
const nextTick = setTimeout;
|
||||
|
||||
const noop = () => {
|
||||
};
|
||||
|
||||
function raf(func) {
|
||||
return requestAnimationFrame(func);
|
||||
}
|
||||
|
||||
function typeOf(type, subject) {
|
||||
return typeof subject === type;
|
||||
}
|
||||
function isObject(subject) {
|
||||
return !isNull(subject) && typeOf("object", subject);
|
||||
}
|
||||
const isArray = Array.isArray;
|
||||
const isFunction = apply(typeOf, "function");
|
||||
const isString = apply(typeOf, "string");
|
||||
const isUndefined = apply(typeOf, "undefined");
|
||||
function isNull(subject) {
|
||||
return subject === null;
|
||||
}
|
||||
function isHTMLElement(subject) {
|
||||
return subject instanceof HTMLElement;
|
||||
}
|
||||
function isHTMLButtonElement(subject) {
|
||||
return subject instanceof HTMLButtonElement;
|
||||
}
|
||||
|
||||
function toArray(value) {
|
||||
return isArray(value) ? value : [value];
|
||||
}
|
||||
|
||||
function forEach(values, iteratee) {
|
||||
toArray(values).forEach(iteratee);
|
||||
}
|
||||
|
||||
function includes(array, value) {
|
||||
return array.indexOf(value) > -1;
|
||||
}
|
||||
|
||||
function push(array, items) {
|
||||
array.push(...toArray(items));
|
||||
return array;
|
||||
}
|
||||
|
||||
function toggleClass(elm, classes, add) {
|
||||
if (elm) {
|
||||
forEach(classes, (name) => {
|
||||
if (name) {
|
||||
elm.classList[add ? "add" : "remove"](name);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function addClass(elm, classes) {
|
||||
toggleClass(elm, isString(classes) ? classes.split(" ") : classes, true);
|
||||
}
|
||||
|
||||
function append(parent, children) {
|
||||
forEach(children, parent.appendChild.bind(parent));
|
||||
}
|
||||
|
||||
function before(nodes, ref) {
|
||||
forEach(nodes, (node) => {
|
||||
const parent = (ref || node).parentNode;
|
||||
if (parent) {
|
||||
parent.insertBefore(node, ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function matches(elm, selector) {
|
||||
return isHTMLElement(elm) && (elm["msMatchesSelector"] || elm.matches).call(elm, selector);
|
||||
}
|
||||
|
||||
function children(parent, selector) {
|
||||
const children2 = parent ? slice(parent.children) : [];
|
||||
return selector ? children2.filter((child) => matches(child, selector)) : children2;
|
||||
}
|
||||
|
||||
function child(parent, selector) {
|
||||
return selector ? children(parent, selector)[0] : parent.firstElementChild;
|
||||
}
|
||||
|
||||
const ownKeys = Object.keys;
|
||||
|
||||
function forOwn(object, iteratee, right) {
|
||||
if (object) {
|
||||
let keys = ownKeys(object);
|
||||
keys = right ? keys.reverse() : keys;
|
||||
for (let i = 0; i < keys.length; i++) {
|
||||
const key = keys[i];
|
||||
if (key !== "__proto__") {
|
||||
if (iteratee(object[key], key) === false) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return object;
|
||||
}
|
||||
|
||||
function assign(object) {
|
||||
slice(arguments, 1).forEach((source) => {
|
||||
forOwn(source, (value, key) => {
|
||||
object[key] = source[key];
|
||||
});
|
||||
});
|
||||
return object;
|
||||
}
|
||||
|
||||
function merge(object) {
|
||||
slice(arguments, 1).forEach((source) => {
|
||||
forOwn(source, (value, key) => {
|
||||
if (isArray(value)) {
|
||||
object[key] = value.slice();
|
||||
} else if (isObject(value)) {
|
||||
object[key] = merge({}, isObject(object[key]) ? object[key] : {}, value);
|
||||
} else {
|
||||
object[key] = value;
|
||||
}
|
||||
});
|
||||
});
|
||||
return object;
|
||||
}
|
||||
|
||||
function omit(object, keys) {
|
||||
toArray(keys || ownKeys(object)).forEach((key) => {
|
||||
delete object[key];
|
||||
});
|
||||
}
|
||||
|
||||
function removeAttribute(elms, attrs) {
|
||||
forEach(elms, (elm) => {
|
||||
forEach(attrs, (attr) => {
|
||||
elm && elm.removeAttribute(attr);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function setAttribute(elms, attrs, value) {
|
||||
if (isObject(attrs)) {
|
||||
forOwn(attrs, (value2, name) => {
|
||||
setAttribute(elms, name, value2);
|
||||
});
|
||||
} else {
|
||||
forEach(elms, (elm) => {
|
||||
isNull(value) || value === "" ? removeAttribute(elm, attrs) : elm.setAttribute(attrs, String(value));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function create(tag, attrs, parent) {
|
||||
const elm = document.createElement(tag);
|
||||
if (attrs) {
|
||||
isString(attrs) ? addClass(elm, attrs) : setAttribute(elm, attrs);
|
||||
}
|
||||
parent && append(parent, elm);
|
||||
return elm;
|
||||
}
|
||||
|
||||
function style(elm, prop, value) {
|
||||
if (isUndefined(value)) {
|
||||
return getComputedStyle(elm)[prop];
|
||||
}
|
||||
if (!isNull(value)) {
|
||||
elm.style[prop] = `${value}`;
|
||||
}
|
||||
}
|
||||
|
||||
function display(elm, display2) {
|
||||
style(elm, "display", display2);
|
||||
}
|
||||
|
||||
function focus(elm) {
|
||||
elm["setActive"] && elm["setActive"]() || elm.focus({ preventScroll: true });
|
||||
}
|
||||
|
||||
function getAttribute(elm, attr) {
|
||||
return elm.getAttribute(attr);
|
||||
}
|
||||
|
||||
function hasClass(elm, className) {
|
||||
return elm && elm.classList.contains(className);
|
||||
}
|
||||
|
||||
function rect(target) {
|
||||
return target.getBoundingClientRect();
|
||||
}
|
||||
|
||||
function remove(nodes) {
|
||||
forEach(nodes, (node) => {
|
||||
if (node && node.parentNode) {
|
||||
node.parentNode.removeChild(node);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function measure(parent, value) {
|
||||
if (isString(value)) {
|
||||
const div = create("div", { style: `width: ${value}; position: absolute;` }, parent);
|
||||
value = rect(div).width;
|
||||
remove(div);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function parseHtml(html) {
|
||||
return child(new DOMParser().parseFromString(html, "text/html").body);
|
||||
}
|
||||
|
||||
function prevent(e, stopPropagation) {
|
||||
e.preventDefault();
|
||||
if (stopPropagation) {
|
||||
e.stopPropagation();
|
||||
e.stopImmediatePropagation();
|
||||
}
|
||||
}
|
||||
|
||||
function query(parent, selector) {
|
||||
return parent && parent.querySelector(selector);
|
||||
}
|
||||
|
||||
function queryAll(parent, selector) {
|
||||
return selector ? slice(parent.querySelectorAll(selector)) : [];
|
||||
}
|
||||
|
||||
function removeClass(elm, classes) {
|
||||
toggleClass(elm, classes, false);
|
||||
}
|
||||
|
||||
function timeOf(e) {
|
||||
return e.timeStamp;
|
||||
}
|
||||
|
||||
function unit(value) {
|
||||
return isString(value) ? value : value ? `${value}px` : "";
|
||||
}
|
||||
|
||||
const PROJECT_CODE = "splide";
|
||||
|
||||
function assert(condition, message) {
|
||||
if (!condition) {
|
||||
throw new Error(`[${PROJECT_CODE}] ${message || ""}`);
|
||||
}
|
||||
}
|
||||
|
||||
function error(message) {
|
||||
console.error(`[${PROJECT_CODE}] ${message}`);
|
||||
}
|
||||
|
||||
const { min, max, floor, ceil, abs } = Math;
|
||||
|
||||
function approximatelyEqual(x, y, epsilon) {
|
||||
return abs(x - y) < epsilon;
|
||||
}
|
||||
|
||||
function between(number, minOrMax, maxOrMin, exclusive) {
|
||||
const minimum = min(minOrMax, maxOrMin);
|
||||
const maximum = max(minOrMax, maxOrMin);
|
||||
return exclusive ? minimum < number && number < maximum : minimum <= number && number <= maximum;
|
||||
}
|
||||
|
||||
function clamp(number, x, y) {
|
||||
const minimum = min(x, y);
|
||||
const maximum = max(x, y);
|
||||
return min(max(minimum, number), maximum);
|
||||
}
|
||||
|
||||
function sign(x) {
|
||||
return +(x > 0) - +(x < 0);
|
||||
}
|
||||
|
||||
function camelToKebab(string) {
|
||||
return string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
||||
}
|
||||
|
||||
function format(string, replacements) {
|
||||
forEach(replacements, (replacement) => {
|
||||
string = string.replace("%s", `${replacement}`);
|
||||
});
|
||||
return string;
|
||||
}
|
||||
|
||||
function pad(number) {
|
||||
return number < 10 ? `0${number}` : `${number}`;
|
||||
}
|
||||
|
||||
const ids = {};
|
||||
function uniqueId(prefix) {
|
||||
return `${prefix}${pad(ids[prefix] = (ids[prefix] || 0) + 1)}`;
|
||||
}
|
||||
|
||||
exports.abs = abs;
|
||||
exports.addClass = addClass;
|
||||
exports.append = append;
|
||||
exports.apply = apply;
|
||||
exports.approximatelyEqual = approximatelyEqual;
|
||||
exports.assert = assert;
|
||||
exports.assign = assign;
|
||||
exports.before = before;
|
||||
exports.between = between;
|
||||
exports.camelToKebab = camelToKebab;
|
||||
exports.ceil = ceil;
|
||||
exports.child = child;
|
||||
exports.children = children;
|
||||
exports.clamp = clamp;
|
||||
exports.create = create;
|
||||
exports.display = display;
|
||||
exports.empty = empty;
|
||||
exports.error = error;
|
||||
exports.find = find;
|
||||
exports.floor = floor;
|
||||
exports.focus = focus;
|
||||
exports.forEach = forEach;
|
||||
exports.forOwn = forOwn;
|
||||
exports.format = format;
|
||||
exports.getAttribute = getAttribute;
|
||||
exports.hasClass = hasClass;
|
||||
exports.includes = includes;
|
||||
exports.isArray = isArray;
|
||||
exports.isFunction = isFunction;
|
||||
exports.isHTMLButtonElement = isHTMLButtonElement;
|
||||
exports.isHTMLElement = isHTMLElement;
|
||||
exports.isNull = isNull;
|
||||
exports.isObject = isObject;
|
||||
exports.isString = isString;
|
||||
exports.isUndefined = isUndefined;
|
||||
exports.matches = matches;
|
||||
exports.max = max;
|
||||
exports.measure = measure;
|
||||
exports.merge = merge;
|
||||
exports.min = min;
|
||||
exports.nextTick = nextTick;
|
||||
exports.noop = noop;
|
||||
exports.omit = omit;
|
||||
exports.ownKeys = ownKeys;
|
||||
exports.pad = pad;
|
||||
exports.parseHtml = parseHtml;
|
||||
exports.prevent = prevent;
|
||||
exports.push = push;
|
||||
exports.query = query;
|
||||
exports.queryAll = queryAll;
|
||||
exports.raf = raf;
|
||||
exports.rect = rect;
|
||||
exports.remove = remove;
|
||||
exports.removeAttribute = removeAttribute;
|
||||
exports.removeClass = removeClass;
|
||||
exports.setAttribute = setAttribute;
|
||||
exports.sign = sign;
|
||||
exports.slice = slice;
|
||||
exports.style = style;
|
||||
exports.timeOf = timeOf;
|
||||
exports.toArray = toArray;
|
||||
exports.toggleClass = toggleClass;
|
||||
exports.uniqueId = uniqueId;
|
||||
exports.unit = unit;
|
||||
@@ -0,0 +1,312 @@
|
||||
function empty(array) {
|
||||
array.length = 0;
|
||||
}
|
||||
|
||||
function slice(arrayLike, start, end) {
|
||||
return Array.prototype.slice.call(arrayLike, start, end);
|
||||
}
|
||||
|
||||
function find(arrayLike, predicate) {
|
||||
return slice(arrayLike).filter(predicate)[0];
|
||||
}
|
||||
|
||||
function apply(func) {
|
||||
return func.bind(null, ...slice(arguments, 1));
|
||||
}
|
||||
|
||||
const nextTick = setTimeout;
|
||||
|
||||
const noop = () => {
|
||||
};
|
||||
|
||||
function raf(func) {
|
||||
return requestAnimationFrame(func);
|
||||
}
|
||||
|
||||
function typeOf(type, subject) {
|
||||
return typeof subject === type;
|
||||
}
|
||||
function isObject(subject) {
|
||||
return !isNull(subject) && typeOf("object", subject);
|
||||
}
|
||||
const isArray = Array.isArray;
|
||||
const isFunction = apply(typeOf, "function");
|
||||
const isString = apply(typeOf, "string");
|
||||
const isUndefined = apply(typeOf, "undefined");
|
||||
function isNull(subject) {
|
||||
return subject === null;
|
||||
}
|
||||
function isHTMLElement(subject) {
|
||||
return subject instanceof HTMLElement;
|
||||
}
|
||||
function isHTMLButtonElement(subject) {
|
||||
return subject instanceof HTMLButtonElement;
|
||||
}
|
||||
|
||||
function toArray(value) {
|
||||
return isArray(value) ? value : [value];
|
||||
}
|
||||
|
||||
function forEach(values, iteratee) {
|
||||
toArray(values).forEach(iteratee);
|
||||
}
|
||||
|
||||
function includes(array, value) {
|
||||
return array.indexOf(value) > -1;
|
||||
}
|
||||
|
||||
function push(array, items) {
|
||||
array.push(...toArray(items));
|
||||
return array;
|
||||
}
|
||||
|
||||
function toggleClass(elm, classes, add) {
|
||||
if (elm) {
|
||||
forEach(classes, (name) => {
|
||||
if (name) {
|
||||
elm.classList[add ? "add" : "remove"](name);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function addClass(elm, classes) {
|
||||
toggleClass(elm, isString(classes) ? classes.split(" ") : classes, true);
|
||||
}
|
||||
|
||||
function append(parent, children) {
|
||||
forEach(children, parent.appendChild.bind(parent));
|
||||
}
|
||||
|
||||
function before(nodes, ref) {
|
||||
forEach(nodes, (node) => {
|
||||
const parent = (ref || node).parentNode;
|
||||
if (parent) {
|
||||
parent.insertBefore(node, ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function matches(elm, selector) {
|
||||
return isHTMLElement(elm) && (elm["msMatchesSelector"] || elm.matches).call(elm, selector);
|
||||
}
|
||||
|
||||
function children(parent, selector) {
|
||||
const children2 = parent ? slice(parent.children) : [];
|
||||
return selector ? children2.filter((child) => matches(child, selector)) : children2;
|
||||
}
|
||||
|
||||
function child(parent, selector) {
|
||||
return selector ? children(parent, selector)[0] : parent.firstElementChild;
|
||||
}
|
||||
|
||||
const ownKeys = Object.keys;
|
||||
|
||||
function forOwn(object, iteratee, right) {
|
||||
if (object) {
|
||||
let keys = ownKeys(object);
|
||||
keys = right ? keys.reverse() : keys;
|
||||
for (let i = 0; i < keys.length; i++) {
|
||||
const key = keys[i];
|
||||
if (key !== "__proto__") {
|
||||
if (iteratee(object[key], key) === false) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return object;
|
||||
}
|
||||
|
||||
function assign(object) {
|
||||
slice(arguments, 1).forEach((source) => {
|
||||
forOwn(source, (value, key) => {
|
||||
object[key] = source[key];
|
||||
});
|
||||
});
|
||||
return object;
|
||||
}
|
||||
|
||||
function merge(object) {
|
||||
slice(arguments, 1).forEach((source) => {
|
||||
forOwn(source, (value, key) => {
|
||||
if (isArray(value)) {
|
||||
object[key] = value.slice();
|
||||
} else if (isObject(value)) {
|
||||
object[key] = merge({}, isObject(object[key]) ? object[key] : {}, value);
|
||||
} else {
|
||||
object[key] = value;
|
||||
}
|
||||
});
|
||||
});
|
||||
return object;
|
||||
}
|
||||
|
||||
function omit(object, keys) {
|
||||
toArray(keys || ownKeys(object)).forEach((key) => {
|
||||
delete object[key];
|
||||
});
|
||||
}
|
||||
|
||||
function removeAttribute(elms, attrs) {
|
||||
forEach(elms, (elm) => {
|
||||
forEach(attrs, (attr) => {
|
||||
elm && elm.removeAttribute(attr);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function setAttribute(elms, attrs, value) {
|
||||
if (isObject(attrs)) {
|
||||
forOwn(attrs, (value2, name) => {
|
||||
setAttribute(elms, name, value2);
|
||||
});
|
||||
} else {
|
||||
forEach(elms, (elm) => {
|
||||
isNull(value) || value === "" ? removeAttribute(elm, attrs) : elm.setAttribute(attrs, String(value));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function create(tag, attrs, parent) {
|
||||
const elm = document.createElement(tag);
|
||||
if (attrs) {
|
||||
isString(attrs) ? addClass(elm, attrs) : setAttribute(elm, attrs);
|
||||
}
|
||||
parent && append(parent, elm);
|
||||
return elm;
|
||||
}
|
||||
|
||||
function style(elm, prop, value) {
|
||||
if (isUndefined(value)) {
|
||||
return getComputedStyle(elm)[prop];
|
||||
}
|
||||
if (!isNull(value)) {
|
||||
elm.style[prop] = `${value}`;
|
||||
}
|
||||
}
|
||||
|
||||
function display(elm, display2) {
|
||||
style(elm, "display", display2);
|
||||
}
|
||||
|
||||
function focus(elm) {
|
||||
elm["setActive"] && elm["setActive"]() || elm.focus({ preventScroll: true });
|
||||
}
|
||||
|
||||
function getAttribute(elm, attr) {
|
||||
return elm.getAttribute(attr);
|
||||
}
|
||||
|
||||
function hasClass(elm, className) {
|
||||
return elm && elm.classList.contains(className);
|
||||
}
|
||||
|
||||
function rect(target) {
|
||||
return target.getBoundingClientRect();
|
||||
}
|
||||
|
||||
function remove(nodes) {
|
||||
forEach(nodes, (node) => {
|
||||
if (node && node.parentNode) {
|
||||
node.parentNode.removeChild(node);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function measure(parent, value) {
|
||||
if (isString(value)) {
|
||||
const div = create("div", { style: `width: ${value}; position: absolute;` }, parent);
|
||||
value = rect(div).width;
|
||||
remove(div);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function parseHtml(html) {
|
||||
return child(new DOMParser().parseFromString(html, "text/html").body);
|
||||
}
|
||||
|
||||
function prevent(e, stopPropagation) {
|
||||
e.preventDefault();
|
||||
if (stopPropagation) {
|
||||
e.stopPropagation();
|
||||
e.stopImmediatePropagation();
|
||||
}
|
||||
}
|
||||
|
||||
function query(parent, selector) {
|
||||
return parent && parent.querySelector(selector);
|
||||
}
|
||||
|
||||
function queryAll(parent, selector) {
|
||||
return selector ? slice(parent.querySelectorAll(selector)) : [];
|
||||
}
|
||||
|
||||
function removeClass(elm, classes) {
|
||||
toggleClass(elm, classes, false);
|
||||
}
|
||||
|
||||
function timeOf(e) {
|
||||
return e.timeStamp;
|
||||
}
|
||||
|
||||
function unit(value) {
|
||||
return isString(value) ? value : value ? `${value}px` : "";
|
||||
}
|
||||
|
||||
const PROJECT_CODE = "splide";
|
||||
|
||||
function assert(condition, message) {
|
||||
if (!condition) {
|
||||
throw new Error(`[${PROJECT_CODE}] ${message || ""}`);
|
||||
}
|
||||
}
|
||||
|
||||
function error(message) {
|
||||
console.error(`[${PROJECT_CODE}] ${message}`);
|
||||
}
|
||||
|
||||
const { min, max, floor, ceil, abs } = Math;
|
||||
|
||||
function approximatelyEqual(x, y, epsilon) {
|
||||
return abs(x - y) < epsilon;
|
||||
}
|
||||
|
||||
function between(number, minOrMax, maxOrMin, exclusive) {
|
||||
const minimum = min(minOrMax, maxOrMin);
|
||||
const maximum = max(minOrMax, maxOrMin);
|
||||
return exclusive ? minimum < number && number < maximum : minimum <= number && number <= maximum;
|
||||
}
|
||||
|
||||
function clamp(number, x, y) {
|
||||
const minimum = min(x, y);
|
||||
const maximum = max(x, y);
|
||||
return min(max(minimum, number), maximum);
|
||||
}
|
||||
|
||||
function sign(x) {
|
||||
return +(x > 0) - +(x < 0);
|
||||
}
|
||||
|
||||
function camelToKebab(string) {
|
||||
return string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
||||
}
|
||||
|
||||
function format(string, replacements) {
|
||||
forEach(replacements, (replacement) => {
|
||||
string = string.replace("%s", `${replacement}`);
|
||||
});
|
||||
return string;
|
||||
}
|
||||
|
||||
function pad(number) {
|
||||
return number < 10 ? `0${number}` : `${number}`;
|
||||
}
|
||||
|
||||
const ids = {};
|
||||
function uniqueId(prefix) {
|
||||
return `${prefix}${pad(ids[prefix] = (ids[prefix] || 0) + 1)}`;
|
||||
}
|
||||
|
||||
export { abs, addClass, append, apply, approximatelyEqual, assert, assign, before, between, camelToKebab, ceil, child, children, clamp, create, display, empty, error, find, floor, focus, forEach, forOwn, format, getAttribute, hasClass, includes, isArray, isFunction, isHTMLButtonElement, isHTMLElement, isNull, isObject, isString, isUndefined, matches, max, measure, merge, min, nextTick, noop, omit, ownKeys, pad, parseHtml, prevent, push, query, queryAll, raf, rect, remove, removeAttribute, removeClass, setAttribute, sign, slice, style, timeOf, toArray, toggleClass, uniqueId, unit };
|
||||
@@ -0,0 +1,31 @@
|
||||
---
|
||||
title: InvenTree Mobile App
|
||||
---
|
||||
|
||||
|
||||
The InvenTree Mobile App brings stock control to your pocket. Integrating seamlessly with the [InvenTree API](../extend/api.md), the app provides immediate access to inventory data without requiring physical access to a computer.
|
||||
|
||||
Native barcode support provides a multitude of context-sensitive stock control actions, allowing streamlined inventory management at your fingertips. The app has been optimized for speed, providing instant access to stock knowledge and handy on-site functionality.
|
||||
|
||||
{% include app_carousel.html %}
|
||||
|
||||
### Features
|
||||
|
||||
Core app features include:
|
||||
|
||||
- View and edit part and stock information with a blazingly fast interface
|
||||
- Perform stock control actions on the go
|
||||
- Barcode integrations simplify stock operations
|
||||
- Receive purchase orders and check in stock items
|
||||
|
||||
### Download
|
||||
|
||||
The InvenTree app can be downloaded from either the Android or Apple app stores, or accessed via the links below:
|
||||
|
||||
<span class='fab fa-android'></span> [Android Play Store](https://play.google.com/store/apps/details?id=inventree.inventree_app).
|
||||
|
||||
<span class='fab fa-apple'></span> [Apple App Store](https://apps.apple.com/au/app/inventree/id1581731101#?platform=iphone)
|
||||
|
||||
### Documentation
|
||||
|
||||
Mobile app documentation can be found on the [InvenTree documentation site](https://inventree.readthedocs.io/en/latest/app/app/).
|
||||