Skip to content

Commit

Permalink
Add built artefacts
Browse files Browse the repository at this point in the history
  • Loading branch information
longhotsummer committed Mar 2, 2022
1 parent a6ac6a5 commit 5de7cc6
Show file tree
Hide file tree
Showing 13 changed files with 38 additions and 22 deletions.
9 changes: 6 additions & 3 deletions dist/cjs/la-akoma-ntoso_8.cjs.entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -3639,7 +3639,7 @@ class GutterLayout {
if (anchor) {
this.anchors.set(item, anchor);
}
item.style.display = anchor ? 'block' : 'none';
item.style.display = anchor ? '' : 'none';
}
}
getItemAnchor(item) {
Expand Down Expand Up @@ -4275,7 +4275,7 @@ let Gutter = class {
* then the top-most item will be activated. If there is one item in the gutter that is not active, then that item will be activated.
*/
async activateNextItem() {
const items = this.layout ? this.layout.sortItems([...this.items()]) : [];
const items = this.layout ? this.layout.sortItems(this.getVisibleItems()) : [];
if (items.length === 1) {
items[0].active = true;
return items[0];
Expand All @@ -4299,7 +4299,7 @@ let Gutter = class {
* then the bottom-most item will be activated. If there is one item in the gutter that is not active, then that item will be activated.
*/
async activatePrevItem() {
const items = this.layout ? this.layout.sortItems([...this.items()]) : [];
const items = this.layout ? this.layout.sortItems(this.getVisibleItems()) : [];
if (items.length === 1) {
items[0].active = true;
return items[0];
Expand All @@ -4319,6 +4319,9 @@ let Gutter = class {
items() {
return this.el.querySelectorAll('la-gutter-item');
}
getVisibleItems() {
return [...this.items()].filter(i => i.style.display !== 'none');
}
get el() { return index.getElement(this); }
};
Gutter.style = gutterCss;
Expand Down
7 changes: 5 additions & 2 deletions dist/collection/components/gutter/gutter.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class Gutter {
* then the top-most item will be activated. If there is one item in the gutter that is not active, then that item will be activated.
*/
async activateNextItem() {
const items = this.layout ? this.layout.sortItems([...this.items()]) : [];
const items = this.layout ? this.layout.sortItems(this.getVisibleItems()) : [];
if (items.length === 1) {
items[0].active = true;
return items[0];
Expand All @@ -108,7 +108,7 @@ export class Gutter {
* then the bottom-most item will be activated. If there is one item in the gutter that is not active, then that item will be activated.
*/
async activatePrevItem() {
const items = this.layout ? this.layout.sortItems([...this.items()]) : [];
const items = this.layout ? this.layout.sortItems(this.getVisibleItems()) : [];
if (items.length === 1) {
items[0].active = true;
return items[0];
Expand All @@ -128,6 +128,9 @@ export class Gutter {
items() {
return this.el.querySelectorAll('la-gutter-item');
}
getVisibleItems() {
return [...this.items()].filter(i => i.style.display !== 'none');
}
static get is() { return "la-gutter"; }
static get originalStyleUrls() { return {
"$": ["gutter.scss"]
Expand Down
2 changes: 1 addition & 1 deletion dist/collection/components/gutter/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class GutterLayout {
if (anchor) {
this.anchors.set(item, anchor);
}
item.style.display = anchor ? 'block' : 'none';
item.style.display = anchor ? '' : 'none';
}
}
getItemAnchor(item) {
Expand Down
9 changes: 6 additions & 3 deletions dist/components/la-gutter.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class GutterLayout {
if (anchor) {
this.anchors.set(item, anchor);
}
item.style.display = anchor ? 'block' : 'none';
item.style.display = anchor ? '' : 'none';
}
}
getItemAnchor(item) {
Expand Down Expand Up @@ -249,7 +249,7 @@ let Gutter = class extends HTMLElement$1 {
* then the top-most item will be activated. If there is one item in the gutter that is not active, then that item will be activated.
*/
async activateNextItem() {
const items = this.layout ? this.layout.sortItems([...this.items()]) : [];
const items = this.layout ? this.layout.sortItems(this.getVisibleItems()) : [];
if (items.length === 1) {
items[0].active = true;
return items[0];
Expand All @@ -273,7 +273,7 @@ let Gutter = class extends HTMLElement$1 {
* then the bottom-most item will be activated. If there is one item in the gutter that is not active, then that item will be activated.
*/
async activatePrevItem() {
const items = this.layout ? this.layout.sortItems([...this.items()]) : [];
const items = this.layout ? this.layout.sortItems(this.getVisibleItems()) : [];
if (items.length === 1) {
items[0].active = true;
return items[0];
Expand All @@ -293,6 +293,9 @@ let Gutter = class extends HTMLElement$1 {
items() {
return this.el.querySelectorAll('la-gutter-item');
}
getVisibleItems() {
return [...this.items()].filter(i => i.style.display !== 'none');
}
get el() { return this; }
static get style() { return gutterCss; }
};
Expand Down
9 changes: 6 additions & 3 deletions dist/custom-elements/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3639,7 +3639,7 @@ class GutterLayout {
if (anchor) {
this.anchors.set(item, anchor);
}
item.style.display = anchor ? 'block' : 'none';
item.style.display = anchor ? '' : 'none';
}
}
getItemAnchor(item) {
Expand Down Expand Up @@ -4276,7 +4276,7 @@ let Gutter = class extends HTMLElement$1 {
* then the top-most item will be activated. If there is one item in the gutter that is not active, then that item will be activated.
*/
async activateNextItem() {
const items = this.layout ? this.layout.sortItems([...this.items()]) : [];
const items = this.layout ? this.layout.sortItems(this.getVisibleItems()) : [];
if (items.length === 1) {
items[0].active = true;
return items[0];
Expand All @@ -4300,7 +4300,7 @@ let Gutter = class extends HTMLElement$1 {
* then the bottom-most item will be activated. If there is one item in the gutter that is not active, then that item will be activated.
*/
async activatePrevItem() {
const items = this.layout ? this.layout.sortItems([...this.items()]) : [];
const items = this.layout ? this.layout.sortItems(this.getVisibleItems()) : [];
if (items.length === 1) {
items[0].active = true;
return items[0];
Expand All @@ -4320,6 +4320,9 @@ let Gutter = class extends HTMLElement$1 {
items() {
return this.el.querySelectorAll('la-gutter-item');
}
getVisibleItems() {
return [...this.items()].filter(i => i.style.display !== 'none');
}
get el() { return this; }
static get style() { return gutterCss; }
};
Expand Down
2 changes: 1 addition & 1 deletion dist/esm-es5/la-akoma-ntoso_8.entry.js

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions dist/esm/la-akoma-ntoso_8.entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -3635,7 +3635,7 @@ class GutterLayout {
if (anchor) {
this.anchors.set(item, anchor);
}
item.style.display = anchor ? 'block' : 'none';
item.style.display = anchor ? '' : 'none';
}
}
getItemAnchor(item) {
Expand Down Expand Up @@ -4271,7 +4271,7 @@ let Gutter = class {
* then the top-most item will be activated. If there is one item in the gutter that is not active, then that item will be activated.
*/
async activateNextItem() {
const items = this.layout ? this.layout.sortItems([...this.items()]) : [];
const items = this.layout ? this.layout.sortItems(this.getVisibleItems()) : [];
if (items.length === 1) {
items[0].active = true;
return items[0];
Expand All @@ -4295,7 +4295,7 @@ let Gutter = class {
* then the bottom-most item will be activated. If there is one item in the gutter that is not active, then that item will be activated.
*/
async activatePrevItem() {
const items = this.layout ? this.layout.sortItems([...this.items()]) : [];
const items = this.layout ? this.layout.sortItems(this.getVisibleItems()) : [];
if (items.length === 1) {
items[0].active = true;
return items[0];
Expand All @@ -4315,6 +4315,9 @@ let Gutter = class {
items() {
return this.el.querySelectorAll('la-gutter-item');
}
getVisibleItems() {
return [...this.items()].filter(i => i.style.display !== 'none');
}
get el() { return getElement(this); }
};
Gutter.style = gutterCss;
Expand Down
2 changes: 1 addition & 1 deletion dist/la-web-components/la-web-components.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/la-web-components/la-web-components.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/la-web-components/p-e6b05fde.system.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/types/components/gutter/gutter.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@ export declare class Gutter {
*/
activatePrevItem(): Promise<HTMLLaGutterItemElement | null>;
items(): NodeListOf<HTMLLaGutterItemElement>;
getVisibleItems(): HTMLLaGutterItemElement[];
}

0 comments on commit 5de7cc6

Please sign in to comment.