@loadbare/app 0.25.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/assemble.d.ts +1 -2
- package/dist/build/assemble.d.ts.map +1 -1
- package/dist/build/assemble.js +11 -53
- package/dist/build/assemble.js.map +1 -1
- package/dist/build/cli.d.ts +4 -10
- package/dist/build/cli.d.ts.map +1 -1
- package/dist/build/cli.js +11 -33
- package/dist/build/cli.js.map +1 -1
- package/dist/build/declared.js +1 -1
- package/dist/build/declared.js.map +1 -1
- package/dist/core/lb-constants.d.ts +8 -18
- package/dist/core/lb-constants.d.ts.map +1 -1
- package/dist/core/lb-constants.js +32 -72
- package/dist/core/lb-constants.js.map +1 -1
- package/dist/core/lb-types.d.ts +12 -11
- package/dist/core/lb-types.d.ts.map +1 -1
- package/dist/core/lb-types.js +7 -0
- package/dist/core/lb-types.js.map +1 -1
- package/dist/hub/lb-apply.d.ts +10 -37
- package/dist/hub/lb-apply.d.ts.map +1 -1
- package/dist/hub/lb-apply.js +139 -522
- package/dist/hub/lb-apply.js.map +1 -1
- package/dist/hub/lb-hub.browser.d.ts.map +1 -1
- package/dist/hub/lb-hub.browser.js +115 -126
- package/dist/hub/lb-hub.browser.js.map +1 -1
- package/dist/hub/lb-lifecycle.d.ts +2 -2
- package/dist/hub/lb-lifecycle.d.ts.map +1 -1
- package/dist/hub/lb-lifecycle.js +9 -17
- package/dist/hub/lb-lifecycle.js.map +1 -1
- package/dist/server/lb-express.d.ts.map +1 -1
- package/dist/server/lb-express.js +3 -3
- package/dist/server/lb-express.js.map +1 -1
- package/dist/server/lb-server.d.ts +35 -19
- package/dist/server/lb-server.d.ts.map +1 -1
- package/dist/server/lb-server.js +141 -88
- package/dist/server/lb-server.js.map +1 -1
- package/docs/binding-cases.md +150 -0
- package/docs/comparison.md +18 -29
- package/docs/miswarts.md +2 -2
- package/docs/reference/css.md +2 -15
- package/docs/reference/custom-elements.md +6 -8
- package/docs/reference/data-binding.md +37 -180
- package/docs/reference/names.md +10 -26
- package/docs/reference/page-files.md +1 -12
- package/docs/reference/server.md +0 -1
- package/docs/testing.md +2 -5
- package/package.json +1 -1
- package/skills/loadbare-app/SKILL.md +52 -54
- package/skills/loadbare-app/references/css.md +2 -15
- package/skills/loadbare-app/references/custom-elements.md +6 -8
- package/skills/loadbare-app/references/data-binding.md +37 -180
- package/skills/loadbare-app/references/miswarts.md +2 -2
- package/skills/loadbare-app/references/names.md +10 -26
- package/skills/loadbare-app/references/page-files.md +1 -12
- package/skills/loadbare-app/references/server.md +0 -1
package/dist/hub/lb-apply.d.ts
CHANGED
|
@@ -36,11 +36,6 @@ export declare function gatherInto(values: Record<string, ParmValue>, column: st
|
|
|
36
36
|
* showing.
|
|
37
37
|
*/
|
|
38
38
|
export declare function within(root: Element, selector: string): Element[];
|
|
39
|
-
/**
|
|
40
|
-
* Tick or clear an `lb-select` checkbox, and stamp the live row it selects
|
|
41
|
-
* to match.
|
|
42
|
-
*/
|
|
43
|
-
export declare function select(box: Element, on: boolean): void;
|
|
44
39
|
/**
|
|
45
40
|
* Fill from one row: every `lb-column` and `lb-show` in root's query.
|
|
46
41
|
*
|
|
@@ -49,10 +44,8 @@ export declare function select(box: Element, on: boolean): void;
|
|
|
49
44
|
* it displays. An element a `row` lands on is not its own ancestor, so its
|
|
50
45
|
* own `lb-column` reads from the row around it and is left alone here. Root's
|
|
51
46
|
* own `lb-show` never counts.
|
|
52
|
-
*
|
|
53
|
-
* `stop` passes over everything matching it and inside it.
|
|
54
47
|
*/
|
|
55
|
-
export declare function applyRow(root: Element, row: Row, self?: boolean
|
|
48
|
+
export declare function applyRow(root: Element, row: Row, self?: boolean): void;
|
|
56
49
|
/**
|
|
57
50
|
* A row naming every column root's query shows, each null: what landing it
|
|
58
51
|
* leaves is root as it stands with no row. Absent branches are counted, so a
|
|
@@ -88,12 +81,12 @@ export declare function addUnentered(el: Element): boolean;
|
|
|
88
81
|
export declare function discardUnentered(row: Element): boolean;
|
|
89
82
|
/** How a list of rows lands: in what order, and whether a request asked. */
|
|
90
83
|
export interface RowsOptions {
|
|
91
|
-
/** The
|
|
84
|
+
/** The query's resolved order, from its row of `lb-sort`. */
|
|
92
85
|
order?: string;
|
|
93
86
|
/** The column types the server declared. */
|
|
94
87
|
types?: ColumnTypes;
|
|
95
|
-
/** The
|
|
96
|
-
|
|
88
|
+
/** The query's row of `lb-filters`. */
|
|
89
|
+
filters?: Row;
|
|
97
90
|
/**
|
|
98
91
|
* The landing answers a request from this page, so a side the list
|
|
99
92
|
* places by hand leaves its rows where they stand.
|
|
@@ -113,29 +106,9 @@ export interface RowsOptions {
|
|
|
113
106
|
doc?: Document;
|
|
114
107
|
}
|
|
115
108
|
/**
|
|
116
|
-
* Land rows through a row template.
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
* live row for each key not yet shown, with its key and no values. The
|
|
120
|
-
* landing loop lands each arriving row's values on its live row, as a `row`
|
|
121
|
-
* lands, passing over a column that already shows its value. Then every live
|
|
122
|
-
* row is placed by the order in one fragment, and the browser styles once.
|
|
123
|
-
*
|
|
124
|
-
* All rows decide membership: a row whose key did not arrive leaves. A patch
|
|
125
|
-
* disturbs only what it names — a row it did not mention keeps its contents,
|
|
126
|
-
* and keeps its place unless a row the patch named now sorts around it.
|
|
127
|
-
*
|
|
128
|
-
* With no order, all rows show in the order they arrived, and a patch's new
|
|
129
|
-
* rows go last. A row that stands where it stood is not touched, so landing
|
|
130
|
-
* the same rows again moves nothing. A row a filter the user chose does not
|
|
131
|
-
* pass is `hidden`.
|
|
132
|
-
*
|
|
133
|
-
* A landing that answers a request leaves alone each side `lb-manual` names
|
|
134
|
-
* on the element, whole or a patch. Under `order`, nothing already showing
|
|
135
|
-
* moves, and a new row goes last in its group. Under `filter`, a row the
|
|
136
|
-
* answer changed or created stays showing. A row left where the order or
|
|
137
|
-
* the filter would not leave it is stamped unplaced until the rows are next
|
|
138
|
-
* placed.
|
|
109
|
+
* Land rows through a row template: a live row per key, placed by the order.
|
|
110
|
+
* A patch disturbs only what it names — rows it leaves out keep their
|
|
111
|
+
* contents and their place.
|
|
139
112
|
*/
|
|
140
113
|
export declare function applyRows(el: Element, template: HTMLTemplateElement, keyColumn: string, result: RowsResult, options?: RowsOptions): void;
|
|
141
114
|
/** The answer kept for a query, as all of its rows. */
|
|
@@ -160,9 +133,9 @@ export interface LandOptions {
|
|
|
160
133
|
/**
|
|
161
134
|
* Land response items. Every answer arrives through here, and is kept for
|
|
162
135
|
* `root`, so that what arrives after it is filled from it — see forget().
|
|
163
|
-
* An answer to `lb-
|
|
164
|
-
* everything has landed, each custom element placed since the last
|
|
165
|
-
* is attached.
|
|
136
|
+
* An answer to `lb-sort` or `lb-filters` places again the rows it changes.
|
|
137
|
+
* Once everything has landed, each custom element placed since the last
|
|
138
|
+
* landing is attached.
|
|
166
139
|
*/
|
|
167
140
|
export declare function applyResponse(root: ParentNode, items: ResponseItem[], options?: LandOptions): void;
|
|
168
141
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lb-apply.d.ts","sourceRoot":"","sources":["../../hub/lb-apply.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lb-apply.d.ts","sourceRoot":"","sources":["../../hub/lb-apply.ts"],"names":[],"mappings":"AA0CA,OAAO,EAML,KAAK,WAAW,EAGhB,KAAK,SAAS,EAGd,KAAK,YAAY,EACjB,KAAK,GAAG,EACR,KAAK,UAAU,EAEhB,MAAM,qBAAqB,CAAC;AA0B7B,mEAAmE;AACnE,MAAM,WAAW,OAAQ,SAAQ,OAAO;IACtC,KAAK,EAAE,MAAM,CAAC;CACf;AA4BD;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,EAAE,EAAE,OAAO,GAAG,OAAO,CAE5C;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,OAAO,GAAG,OAAO,CAGrD;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC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