Skip to content

Commit

Permalink
Deploying to gh-pages from @ d72f1f4 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
koplenov committed Sep 5, 2023
1 parent 7d5a257 commit 08c5db9
Show file tree
Hide file tree
Showing 14 changed files with 215 additions and 56 deletions.
12 changes: 10 additions & 2 deletions node.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2020,7 +2020,11 @@ declare namespace $ {
param(): string;
spread(next?: any): string;
spreads(): Record<string, any>;
Spread(): $mol_view;
Spread(id: any): $mol_view;
Spread_default(): any;
spread_ids(): readonly string[];
menu_filter_enabled(): boolean;
spread_ids_filtered(): readonly string[];
pages(): readonly any[];
Spread_close(): $$.$mol_link;
Menu_logo(): any;
Expand Down Expand Up @@ -2053,9 +2057,13 @@ declare namespace $ {
declare namespace $.$$ {
class $mol_book2_catalog extends $.$mol_book2_catalog {
pages(): any[];
spread_ids(): string[];
menu_body(): ($mol_list | $mol_search)[];
menu_filter_enabled(): boolean;
menu_links(): $mol_link[];
Spread(): any;
spread_ids_filtered(): string[];
Spread(id: string): any;
Spread_default(): any;
spread(next?: string): string;
arg(spread: string): {
[x: string]: string | null;
Expand Down
2 changes: 1 addition & 1 deletion node.deps.json

Large diffs are not rendered by default.

45 changes: 36 additions & 9 deletions node.js

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

2 changes: 1 addition & 1 deletion node.js.map

Large diffs are not rendered by default.

45 changes: 36 additions & 9 deletions node.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6928,10 +6928,22 @@ var $;
spreads() {
return {};
}
Spread() {
Spread(id) {
const obj = new this.$.$mol_view();
return obj;
}
Spread_default() {
return null;
}
spread_ids() {
return [];
}
menu_filter_enabled() {
return false;
}
spread_ids_filtered() {
return [];
}
pages() {
return [
this.Menu()
Expand Down Expand Up @@ -7040,7 +7052,7 @@ var $;
$mol_mem
], $mol_book2_catalog.prototype, "spread", null);
__decorate([
$mol_mem
$mol_mem_key
], $mol_book2_catalog.prototype, "Spread", null);
__decorate([
$mol_mem
Expand Down Expand Up @@ -7093,7 +7105,7 @@ var $;
(function ($$) {
class $mol_book2_catalog extends $.$mol_book2_catalog {
pages() {
const spread = this.Spread();
const spread = this.spread() === '' ? this.Spread_default() : this.Spread(this.spread());
return [
this.Menu(),
...spread
Expand All @@ -7103,19 +7115,31 @@ var $;
: [],
];
}
spread_ids() {
return Object.keys(this.spreads());
}
menu_body() {
return [
...Object.keys(this.spreads()).length >= 10 ? [this.Menu_filter()] : [],
...this.menu_filter_enabled() ? [this.Menu_filter()] : [],
this.Menu_links(),
];
}
menu_filter_enabled() {
return this.spread_ids().length >= 10;
}
menu_links() {
return Object.keys(this.spreads())
.filter($mol_match_text(this.menu_filter(), spread => [this.spread_title(spread)]))
return this.spread_ids_filtered()
.map(spread => this.Menu_link(spread));
}
Spread() {
return this.spreads()[this.spread()];
spread_ids_filtered() {
return this.spread_ids()
.filter($mol_match_text(this.menu_filter(), spread => [this.spread_title(spread)]));
}
Spread(id) {
return this.spreads()[id];
}
Spread_default() {
return this.spreads()[''];
}
spread(next) {
return this.$.$mol_state_arg.value(this.param(), next) ?? '';
Expand All @@ -7127,7 +7151,7 @@ var $;
return { [this.param()]: null };
}
spread_title(spread) {
const page = this.spreads()[spread];
const page = this.Spread(spread);
return page instanceof $mol_book2
&& page.menu_title()
|| page.title();
Expand All @@ -7136,6 +7160,9 @@ var $;
__decorate([
$mol_mem
], $mol_book2_catalog.prototype, "pages", null);
__decorate([
$mol_mem
], $mol_book2_catalog.prototype, "spread_ids", null);
__decorate([
$mol_mem
], $mol_book2_catalog.prototype, "menu_body", null);
Expand Down
45 changes: 36 additions & 9 deletions node.test.js

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

2 changes: 1 addition & 1 deletion node.test.js.map

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion node.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,11 @@ $mol_book2_catalog $mol_book2
param \
spread? \
spreads *
Spread $mol_view
Spread* $mol_view
Spread_default null
spread_ids /string
menu_filter_enabled false
spread_ids_filtered /string
pages /
<= Menu $mol_page
Logo <= Menu_logo null
Expand Down
12 changes: 10 additions & 2 deletions web.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1894,7 +1894,11 @@ declare namespace $ {
param(): string;
spread(next?: any): string;
spreads(): Record<string, any>;
Spread(): $mol_view;
Spread(id: any): $mol_view;
Spread_default(): any;
spread_ids(): readonly string[];
menu_filter_enabled(): boolean;
spread_ids_filtered(): readonly string[];
pages(): readonly any[];
Spread_close(): $$.$mol_link;
Menu_logo(): any;
Expand Down Expand Up @@ -1927,9 +1931,13 @@ declare namespace $ {
declare namespace $.$$ {
class $mol_book2_catalog extends $.$mol_book2_catalog {
pages(): any[];
spread_ids(): string[];
menu_body(): ($mol_list | $mol_search)[];
menu_filter_enabled(): boolean;
menu_links(): $mol_link[];
Spread(): any;
spread_ids_filtered(): string[];
Spread(id: string): any;
Spread_default(): any;
spread(next?: string): string;
arg(spread: string): {
[x: string]: string | null;
Expand Down
2 changes: 1 addition & 1 deletion web.deps.json

Large diffs are not rendered by default.

Loading

0 comments on commit 08c5db9

Please sign in to comment.