plggmatic 0.2.1 → 0.3.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/README.md +37 -0
- package/dist/Catalog/index.d.ts +17 -0
- package/dist/Catalog/index.d.ts.map +1 -0
- package/dist/Catalog/model/tool.d.ts +101 -0
- package/dist/Catalog/model/tool.d.ts.map +1 -0
- package/dist/Catalog/usecase/adapter.d.ts +81 -0
- package/dist/Catalog/usecase/adapter.d.ts.map +1 -0
- package/dist/Catalog/usecase/catalog.d.ts +43 -0
- package/dist/Catalog/usecase/catalog.d.ts.map +1 -0
- package/dist/Catalog/usecase/runFlow.d.ts +77 -0
- package/dist/Catalog/usecase/runFlow.d.ts.map +1 -0
- package/dist/Component/index.d.ts +30 -0
- package/dist/Component/index.d.ts.map +1 -0
- package/dist/Component/model/interaction.d.ts +41 -0
- package/dist/Component/model/interaction.d.ts.map +1 -0
- package/dist/Component/model/navItem.d.ts +16 -0
- package/dist/Component/model/navItem.d.ts.map +1 -0
- package/dist/Component/usecase/breadcrumb.d.ts +26 -0
- package/dist/Component/usecase/breadcrumb.d.ts.map +1 -0
- package/dist/Component/usecase/button.d.ts +27 -0
- package/dist/Component/usecase/button.d.ts.map +1 -0
- package/dist/Component/usecase/checkbox.d.ts +20 -0
- package/dist/Component/usecase/checkbox.d.ts.map +1 -0
- package/dist/Component/usecase/colHead.d.ts +28 -0
- package/dist/Component/usecase/colHead.d.ts.map +1 -0
- package/dist/Component/usecase/confirmDialog.d.ts +25 -0
- package/dist/Component/usecase/confirmDialog.d.ts.map +1 -0
- package/dist/Component/usecase/declaredForm.d.ts +89 -0
- package/dist/Component/usecase/declaredForm.d.ts.map +1 -0
- package/dist/Component/usecase/navTree.d.ts +21 -0
- package/dist/Component/usecase/navTree.d.ts.map +1 -0
- package/dist/Component/usecase/selectInput.d.ts +28 -0
- package/dist/Component/usecase/selectInput.d.ts.map +1 -0
- package/dist/Component/usecase/sidebarNav.d.ts +77 -0
- package/dist/Component/usecase/sidebarNav.d.ts.map +1 -0
- package/dist/Component/usecase/textArea.d.ts +22 -0
- package/dist/Component/usecase/textArea.d.ts.map +1 -0
- package/dist/Component/usecase/textInput.d.ts +23 -0
- package/dist/Component/usecase/textInput.d.ts.map +1 -0
- package/dist/Component/usecase/textLink.d.ts +26 -0
- package/dist/Component/usecase/textLink.d.ts.map +1 -0
- package/dist/Component/usecase/themeToggle.d.ts +75 -0
- package/dist/Component/usecase/themeToggle.d.ts.map +1 -0
- package/dist/Component/usecase/toast.d.ts +32 -0
- package/dist/Component/usecase/toast.d.ts.map +1 -0
- package/dist/Component/usecase/typography.d.ts +33 -0
- package/dist/Component/usecase/typography.d.ts.map +1 -0
- package/dist/Declare/model/Action.d.ts +91 -0
- package/dist/Declare/model/Action.d.ts.map +1 -0
- package/dist/Declare/model/Adapter.d.ts +107 -0
- package/dist/Declare/model/Adapter.d.ts.map +1 -0
- package/dist/Declare/model/Collection.d.ts +55 -0
- package/dist/Declare/model/Collection.d.ts.map +1 -0
- package/dist/Declare/model/Declaration.d.ts +27 -0
- package/dist/Declare/model/Declaration.d.ts.map +1 -0
- package/dist/Declare/model/Menu.d.ts +21 -0
- package/dist/Declare/model/Menu.d.ts.map +1 -0
- package/dist/Declare/model/Query.d.ts +56 -0
- package/dist/Declare/model/Query.d.ts.map +1 -0
- package/dist/Declare/model/Row.d.ts +129 -0
- package/dist/Declare/model/Row.d.ts.map +1 -0
- package/dist/Declare/model/Source.d.ts +83 -0
- package/dist/Declare/model/Source.d.ts.map +1 -0
- package/dist/Declare/usecase/apply.d.ts +23 -0
- package/dist/Declare/usecase/apply.d.ts.map +1 -0
- package/dist/Declare/usecase/project.d.ts +66 -0
- package/dist/Declare/usecase/project.d.ts.map +1 -0
- package/dist/Declare/usecase/reconcile.d.ts +63 -0
- package/dist/Declare/usecase/reconcile.d.ts.map +1 -0
- package/dist/Flow/model/forms.d.ts +45 -0
- package/dist/Flow/model/forms.d.ts.map +1 -0
- package/dist/Flow/model/run.d.ts +74 -0
- package/dist/Flow/model/run.d.ts.map +1 -0
- package/dist/Flow/model/script.d.ts +279 -0
- package/dist/Flow/model/script.d.ts.map +1 -0
- package/dist/Flow/usecase/interpret.d.ts +17 -0
- package/dist/Flow/usecase/interpret.d.ts.map +1 -0
- package/dist/Flow/usecase/read.d.ts +46 -0
- package/dist/Flow/usecase/read.d.ts.map +1 -0
- package/dist/Form/index.d.ts +14 -0
- package/dist/Form/index.d.ts.map +1 -0
- package/dist/Form/model/control.d.ts +9 -0
- package/dist/Form/model/control.d.ts.map +1 -0
- package/dist/Form/model/submission.d.ts +30 -0
- package/dist/Form/model/submission.d.ts.map +1 -0
- package/dist/Form/usecase/controlParts.d.ts +30 -0
- package/dist/Form/usecase/controlParts.d.ts.map +1 -0
- package/dist/Form/usecase/formView.d.ts +21 -0
- package/dist/Form/usecase/formView.d.ts.map +1 -0
- package/dist/Form/usecase/parseForm.d.ts +28 -0
- package/dist/Form/usecase/parseForm.d.ts.map +1 -0
- package/dist/Layout/index.d.ts +21 -0
- package/dist/Layout/index.d.ts.map +1 -0
- package/dist/Layout/model/geometry.d.ts +97 -0
- package/dist/Layout/model/geometry.d.ts.map +1 -0
- package/dist/Layout/model/pane.d.ts +15 -0
- package/dist/Layout/model/pane.d.ts.map +1 -0
- package/dist/Layout/model/reveal.d.ts +26 -0
- package/dist/Layout/model/reveal.d.ts.map +1 -0
- package/dist/Layout/usecase/combinators.d.ts +78 -0
- package/dist/Layout/usecase/combinators.d.ts.map +1 -0
- package/dist/Layout/usecase/preference.d.ts +27 -0
- package/dist/Layout/usecase/preference.d.ts.map +1 -0
- package/dist/Layout/usecase/revealColumn.d.ts +39 -0
- package/dist/Layout/usecase/revealColumn.d.ts.map +1 -0
- package/dist/Layout/usecase/workspace.d.ts +58 -0
- package/dist/Layout/usecase/workspace.d.ts.map +1 -0
- package/dist/Meta/model/classHooks.d.ts +141 -0
- package/dist/Meta/model/classHooks.d.ts.map +1 -0
- package/dist/Meta/model/identity.d.ts +16 -0
- package/dist/Meta/model/identity.d.ts.map +1 -0
- package/dist/Navigate/index.d.ts +19 -0
- package/dist/Navigate/index.d.ts.map +1 -0
- package/dist/Navigate/model/Composition.d.ts +50 -0
- package/dist/Navigate/model/Composition.d.ts.map +1 -0
- package/dist/Navigate/model/Trail.d.ts +84 -0
- package/dist/Navigate/model/Trail.d.ts.map +1 -0
- package/dist/Navigate/model/marker.d.ts +44 -0
- package/dist/Navigate/model/marker.d.ts.map +1 -0
- package/dist/Navigate/usecase/compositionUrl.d.ts +63 -0
- package/dist/Navigate/usecase/compositionUrl.d.ts.map +1 -0
- package/dist/Navigate/usecase/navigationScript.d.ts +16 -0
- package/dist/Navigate/usecase/navigationScript.d.ts.map +1 -0
- package/dist/Navigate/usecase/trailUrl.d.ts +61 -0
- package/dist/Navigate/usecase/trailUrl.d.ts.map +1 -0
- package/dist/Render/index.d.ts +18 -0
- package/dist/Render/index.d.ts.map +1 -0
- package/dist/Render/model/mode.d.ts +13 -0
- package/dist/Render/model/mode.d.ts.map +1 -0
- package/dist/Render/model/screen.d.ts +27 -0
- package/dist/Render/model/screen.d.ts.map +1 -0
- package/dist/Render/usecase/advanceColumns.d.ts +41 -0
- package/dist/Render/usecase/advanceColumns.d.ts.map +1 -0
- package/dist/Render/usecase/multiColumn.d.ts +52 -0
- package/dist/Render/usecase/multiColumn.d.ts.map +1 -0
- package/dist/Render/usecase/parts.d.ts +56 -0
- package/dist/Render/usecase/parts.d.ts.map +1 -0
- package/dist/Render/usecase/renderMode.d.ts +17 -0
- package/dist/Render/usecase/renderMode.d.ts.map +1 -0
- package/dist/Render/usecase/singleColumn.d.ts +20 -0
- package/dist/Render/usecase/singleColumn.d.ts.map +1 -0
- package/dist/Schedule/model/Model.d.ts +103 -0
- package/dist/Schedule/model/Model.d.ts.map +1 -0
- package/dist/Schedule/model/Msg.d.ts +131 -0
- package/dist/Schedule/model/Msg.d.ts.map +1 -0
- package/dist/Schedule/model/Scene.d.ts +190 -0
- package/dist/Schedule/model/Scene.d.ts.map +1 -0
- package/dist/Schedule/model/View.d.ts +54 -0
- package/dist/Schedule/model/View.d.ts.map +1 -0
- package/dist/Schedule/usecase/chain.d.ts +16 -0
- package/dist/Schedule/usecase/chain.d.ts.map +1 -0
- package/dist/Schedule/usecase/codec.d.ts +44 -0
- package/dist/Schedule/usecase/codec.d.ts.map +1 -0
- package/dist/Schedule/usecase/lower.d.ts +45 -0
- package/dist/Schedule/usecase/lower.d.ts.map +1 -0
- package/dist/Schedule/usecase/scene.d.ts +16 -0
- package/dist/Schedule/usecase/scene.d.ts.map +1 -0
- package/dist/Schedule/usecase/schedule.d.ts +72 -0
- package/dist/Schedule/usecase/schedule.d.ts.map +1 -0
- package/dist/Schedule/usecase/update.d.ts +39 -0
- package/dist/Schedule/usecase/update.d.ts.map +1 -0
- package/dist/Style/index.d.ts +34 -0
- package/dist/Style/index.d.ts.map +1 -0
- package/dist/Style/model/appearance.d.ts +23 -0
- package/dist/Style/model/appearance.d.ts.map +1 -0
- package/dist/Style/model/breakpoint.d.ts +43 -0
- package/dist/Style/model/breakpoint.d.ts.map +1 -0
- package/dist/Style/model/componentSlot.d.ts +35 -0
- package/dist/Style/model/componentSlot.d.ts.map +1 -0
- package/dist/Style/model/hexColor.d.ts +26 -0
- package/dist/Style/model/hexColor.d.ts.map +1 -0
- package/dist/Style/model/metric.d.ts +35 -0
- package/dist/Style/model/metric.d.ts.map +1 -0
- package/dist/Style/model/palette.d.ts +38 -0
- package/dist/Style/model/palette.d.ts.map +1 -0
- package/dist/Style/model/scheme.d.ts +26 -0
- package/dist/Style/model/scheme.d.ts.map +1 -0
- package/dist/Style/model/syntax.d.ts +54 -0
- package/dist/Style/model/syntax.d.ts.map +1 -0
- package/dist/Style/model/theme.d.ts +68 -0
- package/dist/Style/model/theme.d.ts.map +1 -0
- package/dist/Style/model/token.d.ts +142 -0
- package/dist/Style/model/token.d.ts.map +1 -0
- package/dist/Style/model/typography.d.ts +83 -0
- package/dist/Style/model/typography.d.ts.map +1 -0
- package/dist/Style/model/zIndex.d.ts +25 -0
- package/dist/Style/model/zIndex.d.ts.map +1 -0
- package/dist/Style/usecase/appearanceScript.d.ts +43 -0
- package/dist/Style/usecase/appearanceScript.d.ts.map +1 -0
- package/dist/Style/usecase/chromeCss.d.ts +41 -0
- package/dist/Style/usecase/chromeCss.d.ts.map +1 -0
- package/dist/Style/usecase/contrast.d.ts +3 -0
- package/dist/Style/usecase/contrast.d.ts.map +1 -0
- package/dist/Style/usecase/metricCss.d.ts +17 -0
- package/dist/Style/usecase/metricCss.d.ts.map +1 -0
- package/dist/Style/usecase/reducedMotion.d.ts +20 -0
- package/dist/Style/usecase/reducedMotion.d.ts.map +1 -0
- package/dist/Style/usecase/runwayCss.d.ts +50 -0
- package/dist/Style/usecase/runwayCss.d.ts.map +1 -0
- package/dist/Style/usecase/schemeCss.d.ts +25 -0
- package/dist/Style/usecase/schemeCss.d.ts.map +1 -0
- package/dist/Style/usecase/slotCss.d.ts +73 -0
- package/dist/Style/usecase/slotCss.d.ts.map +1 -0
- package/dist/Style/usecase/syntaxCss.d.ts +14 -0
- package/dist/Style/usecase/syntaxCss.d.ts.map +1 -0
- package/dist/Style/usecase/utilities.d.ts +98 -0
- package/dist/Style/usecase/utilities.d.ts.map +1 -0
- package/dist/Style/usecase/workspaceCss.d.ts +48 -0
- package/dist/Style/usecase/workspaceCss.d.ts.map +1 -0
- package/dist/brand.d.ts +29 -0
- package/dist/brand.d.ts.map +1 -0
- package/dist/columnsEntry.d.ts +27 -0
- package/dist/columnsEntry.d.ts.map +1 -0
- package/dist/columnsEntry.es.js +452 -0
- package/dist/index.d.ts +63 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.es.js +6022 -0
- package/dist/styleEntry.d.ts +34 -0
- package/dist/styleEntry.d.ts.map +1 -0
- package/dist/styleEntry.es.js +1615 -0
- package/package.json +15 -8
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
import * as __ext0 from "plgg";
|
|
2
|
+
const __externals = {
|
|
3
|
+
"plgg": __ext0
|
|
4
|
+
};
|
|
5
|
+
const __modules = {
|
|
6
|
+
"src/columnsEntry.ts": function (module, exports, require) {
|
|
7
|
+
"use strict";
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.widthAttr = exports.programmaticScrollAttr = exports.phoneAttr = exports.menuCompactAttr = exports.menuOpenAttr = exports.savePreference = exports.readPreference = exports.revealColumn = exports.revealOptions = exports.glideEase = exports.revealTarget = exports.reachableScroll = exports.visibleColumnStart = exports.stripStyle = exports.stripVar = exports.stripGeometry = exports.stripMetrics = exports.parseSteps = exports.printSteps = exports.trailQuery = exports.decodeTrail = exports.encodeTrail = exports.stepSeparator = exports.trailParam = exports.restep = exports.stepFrom = exports.foldTrail = exports.settledTrail = exports.resolveTrail = void 0;
|
|
10
|
+
var Trail_1 = require("src/Navigate/model/Trail.ts");
|
|
11
|
+
Object.defineProperty(exports, "resolveTrail", { enumerable: true, get: function () { return Trail_1.resolveTrail; } });
|
|
12
|
+
Object.defineProperty(exports, "settledTrail", { enumerable: true, get: function () { return Trail_1.settledTrail; } });
|
|
13
|
+
Object.defineProperty(exports, "foldTrail", { enumerable: true, get: function () { return Trail_1.foldTrail; } });
|
|
14
|
+
Object.defineProperty(exports, "stepFrom", { enumerable: true, get: function () { return Trail_1.stepFrom; } });
|
|
15
|
+
Object.defineProperty(exports, "restep", { enumerable: true, get: function () { return Trail_1.restep; } });
|
|
16
|
+
var trailUrl_1 = require("src/Navigate/usecase/trailUrl.ts");
|
|
17
|
+
Object.defineProperty(exports, "trailParam", { enumerable: true, get: function () { return trailUrl_1.trailParam; } });
|
|
18
|
+
Object.defineProperty(exports, "stepSeparator", { enumerable: true, get: function () { return trailUrl_1.stepSeparator; } });
|
|
19
|
+
Object.defineProperty(exports, "encodeTrail", { enumerable: true, get: function () { return trailUrl_1.encodeTrail; } });
|
|
20
|
+
Object.defineProperty(exports, "decodeTrail", { enumerable: true, get: function () { return trailUrl_1.decodeTrail; } });
|
|
21
|
+
Object.defineProperty(exports, "trailQuery", { enumerable: true, get: function () { return trailUrl_1.trailQuery; } });
|
|
22
|
+
Object.defineProperty(exports, "printSteps", { enumerable: true, get: function () { return trailUrl_1.printSteps; } });
|
|
23
|
+
Object.defineProperty(exports, "parseSteps", { enumerable: true, get: function () { return trailUrl_1.parseSteps; } });
|
|
24
|
+
var geometry_1 = require("src/Layout/model/geometry.ts");
|
|
25
|
+
Object.defineProperty(exports, "stripMetrics", { enumerable: true, get: function () { return geometry_1.stripMetrics; } });
|
|
26
|
+
Object.defineProperty(exports, "stripGeometry", { enumerable: true, get: function () { return geometry_1.stripGeometry; } });
|
|
27
|
+
Object.defineProperty(exports, "stripVar", { enumerable: true, get: function () { return geometry_1.stripVar; } });
|
|
28
|
+
Object.defineProperty(exports, "stripStyle", { enumerable: true, get: function () { return geometry_1.stripStyle; } });
|
|
29
|
+
Object.defineProperty(exports, "visibleColumnStart", { enumerable: true, get: function () { return geometry_1.visibleColumnStart; } });
|
|
30
|
+
Object.defineProperty(exports, "reachableScroll", { enumerable: true, get: function () { return geometry_1.reachableScroll; } });
|
|
31
|
+
var reveal_1 = require("src/Layout/model/reveal.ts");
|
|
32
|
+
Object.defineProperty(exports, "revealTarget", { enumerable: true, get: function () { return reveal_1.revealTarget; } });
|
|
33
|
+
Object.defineProperty(exports, "glideEase", { enumerable: true, get: function () { return reveal_1.glideEase; } });
|
|
34
|
+
var revealColumn_1 = require("src/Layout/usecase/revealColumn.ts");
|
|
35
|
+
Object.defineProperty(exports, "revealOptions", { enumerable: true, get: function () { return revealColumn_1.revealOptions; } });
|
|
36
|
+
Object.defineProperty(exports, "revealColumn", { enumerable: true, get: function () { return revealColumn_1.revealColumn; } });
|
|
37
|
+
var preference_1 = require("src/Layout/usecase/preference.ts");
|
|
38
|
+
Object.defineProperty(exports, "readPreference", { enumerable: true, get: function () { return preference_1.readPreference; } });
|
|
39
|
+
Object.defineProperty(exports, "savePreference", { enumerable: true, get: function () { return preference_1.savePreference; } });
|
|
40
|
+
var classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
41
|
+
Object.defineProperty(exports, "menuOpenAttr", { enumerable: true, get: function () { return classHooks_1.menuOpenAttr; } });
|
|
42
|
+
Object.defineProperty(exports, "menuCompactAttr", { enumerable: true, get: function () { return classHooks_1.menuCompactAttr; } });
|
|
43
|
+
Object.defineProperty(exports, "phoneAttr", { enumerable: true, get: function () { return classHooks_1.phoneAttr; } });
|
|
44
|
+
Object.defineProperty(exports, "programmaticScrollAttr", { enumerable: true, get: function () { return classHooks_1.programmaticScrollAttr; } });
|
|
45
|
+
Object.defineProperty(exports, "widthAttr", { enumerable: true, get: function () { return classHooks_1.widthAttr; } });
|
|
46
|
+
|
|
47
|
+
},
|
|
48
|
+
"src/Navigate/model/Trail.ts": function (module, exports, require) {
|
|
49
|
+
"use strict";
|
|
50
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
+
exports.restep = exports.stepFrom = exports.foldTrail = exports.settledTrail = exports.resolveTrail = void 0;
|
|
52
|
+
const plgg_1 = require("plgg");
|
|
53
|
+
const resolveTrail = (resolver) => (trail) => {
|
|
54
|
+
const walk = (placed, last, rest) => {
|
|
55
|
+
const [step, ...tail] = rest;
|
|
56
|
+
return step === undefined
|
|
57
|
+
? placed
|
|
58
|
+
: (0, plgg_1.matchOption)(() => placed, (column) => {
|
|
59
|
+
const next = {
|
|
60
|
+
prefix: [...last.prefix, step],
|
|
61
|
+
column,
|
|
62
|
+
};
|
|
63
|
+
return walk([...placed, next], next, tail);
|
|
64
|
+
})(resolver.resolve(last.column, step));
|
|
65
|
+
};
|
|
66
|
+
const root = {
|
|
67
|
+
prefix: [],
|
|
68
|
+
column: resolver.root(),
|
|
69
|
+
};
|
|
70
|
+
return walk([root], root, trail);
|
|
71
|
+
};
|
|
72
|
+
exports.resolveTrail = resolveTrail;
|
|
73
|
+
const settledTrail = (columns) => columns.reduce((_, placed) => placed.prefix, []);
|
|
74
|
+
exports.settledTrail = settledTrail;
|
|
75
|
+
const foldTrail = (trail, depth) => trail.slice(0, Math.max(0, depth));
|
|
76
|
+
exports.foldTrail = foldTrail;
|
|
77
|
+
const stepFrom = (trail, depth, step) => [
|
|
78
|
+
...(0, exports.foldTrail)(trail, depth),
|
|
79
|
+
step,
|
|
80
|
+
];
|
|
81
|
+
exports.stepFrom = stepFrom;
|
|
82
|
+
const restep = (trail, index, step) => trail.map((old, i) => i === index ? step : old);
|
|
83
|
+
exports.restep = restep;
|
|
84
|
+
|
|
85
|
+
},
|
|
86
|
+
"src/Navigate/usecase/trailUrl.ts": function (module, exports, require) {
|
|
87
|
+
"use strict";
|
|
88
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
89
|
+
exports.parseSteps = exports.printSteps = exports.trailQuery = exports.decodeTrail = exports.encodeTrail = exports.stepSeparator = exports.trailParam = void 0;
|
|
90
|
+
const plgg_1 = require("plgg");
|
|
91
|
+
exports.trailParam = "x";
|
|
92
|
+
exports.stepSeparator = ".";
|
|
93
|
+
const encodeStep = (step) => encodeURIComponent(step).split(".").join("%2E");
|
|
94
|
+
const decodeStep = (raw) => (0, plgg_1.pipe)((0, plgg_1.tryCatch)((value) => decodeURIComponent(value))(raw), (0, plgg_1.matchResult)(() => raw, (value) => value));
|
|
95
|
+
const encodeTrail = (trail) => trail.map(encodeStep).join(exports.stepSeparator);
|
|
96
|
+
exports.encodeTrail = encodeTrail;
|
|
97
|
+
const decodeTrail = (raw) => (0, plgg_1.matchOption)(() => [], (value) => value
|
|
98
|
+
.split(exports.stepSeparator)
|
|
99
|
+
.filter((step) => step !== "")
|
|
100
|
+
.map(decodeStep))(raw);
|
|
101
|
+
exports.decodeTrail = decodeTrail;
|
|
102
|
+
const trailQuery = (trail) => trail.length === 0
|
|
103
|
+
? ""
|
|
104
|
+
: "?" +
|
|
105
|
+
exports.trailParam +
|
|
106
|
+
"=" +
|
|
107
|
+
encodeURIComponent((0, exports.encodeTrail)(trail));
|
|
108
|
+
exports.trailQuery = trailQuery;
|
|
109
|
+
const printSteps = (codec) => (steps) => steps.map(codec.print);
|
|
110
|
+
exports.printSteps = printSteps;
|
|
111
|
+
const parseSteps = (codec) => (trail) => {
|
|
112
|
+
const read = (done, rest) => {
|
|
113
|
+
const [raw, ...tail] = rest;
|
|
114
|
+
return raw === undefined
|
|
115
|
+
? done
|
|
116
|
+
: (0, plgg_1.matchOption)(() => done, (step) => read([...done, step], tail))(codec.parse(raw));
|
|
117
|
+
};
|
|
118
|
+
return read([], trail);
|
|
119
|
+
};
|
|
120
|
+
exports.parseSteps = parseSteps;
|
|
121
|
+
|
|
122
|
+
},
|
|
123
|
+
"src/Layout/model/geometry.ts": function (module, exports, require) {
|
|
124
|
+
"use strict";
|
|
125
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126
|
+
exports.reachableScroll = exports.visibleColumnStart = exports.stripStyle = exports.stripVar = exports.stripGeometry = exports.stripMetrics = void 0;
|
|
127
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
128
|
+
exports.stripMetrics = {
|
|
129
|
+
menu: 220,
|
|
130
|
+
menuShare: 0.4,
|
|
131
|
+
column: 320,
|
|
132
|
+
columnShare: 0.6,
|
|
133
|
+
floor: 320,
|
|
134
|
+
phone: 640,
|
|
135
|
+
};
|
|
136
|
+
const stripGeometry = (metrics) => (viewport, scroll, menuTrack) => {
|
|
137
|
+
const narrow = viewport < metrics.phone;
|
|
138
|
+
const menu = menuTrack === "closed"
|
|
139
|
+
? 0
|
|
140
|
+
: narrow
|
|
141
|
+
? viewport
|
|
142
|
+
: menuTrack === "open"
|
|
143
|
+
? Math.min(metrics.menu, viewport * metrics.menuShare)
|
|
144
|
+
: menuTrack;
|
|
145
|
+
const column = narrow
|
|
146
|
+
? viewport
|
|
147
|
+
: Math.min(metrics.column, viewport * metrics.columnShare);
|
|
148
|
+
const track = viewport - menu;
|
|
149
|
+
const floor = Math.min(metrics.floor, viewport - column);
|
|
150
|
+
return {
|
|
151
|
+
menu,
|
|
152
|
+
column,
|
|
153
|
+
track,
|
|
154
|
+
floor,
|
|
155
|
+
seam: Math.max(0, viewport - floor - column),
|
|
156
|
+
layoutMinimum: viewport - floor,
|
|
157
|
+
width: Math.max(floor, track - Math.max(0, scroll)),
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
exports.stripGeometry = stripGeometry;
|
|
161
|
+
exports.stripVar = {
|
|
162
|
+
track: (0, classHooks_1.cssVar)("strip-track"),
|
|
163
|
+
width: (0, classHooks_1.cssVar)("strip-panel"),
|
|
164
|
+
menu: (0, classHooks_1.cssVar)("strip-menu"),
|
|
165
|
+
column: (0, classHooks_1.cssVar)("strip-column"),
|
|
166
|
+
layoutMinimum: (0, classHooks_1.cssVar)("strip-minimum"),
|
|
167
|
+
seam: (0, classHooks_1.cssVar)("strip-seam"),
|
|
168
|
+
};
|
|
169
|
+
const stripStyle = (g) => [
|
|
170
|
+
`${exports.stripVar.track}:${g.track}px`,
|
|
171
|
+
`${exports.stripVar.width}:${g.width}px`,
|
|
172
|
+
`${exports.stripVar.menu}:${g.menu}px`,
|
|
173
|
+
`${exports.stripVar.column}:${g.column}px`,
|
|
174
|
+
`${exports.stripVar.layoutMinimum}:${g.layoutMinimum}px`,
|
|
175
|
+
`${exports.stripVar.seam}:${g.seam}px`,
|
|
176
|
+
].join(";");
|
|
177
|
+
exports.stripStyle = stripStyle;
|
|
178
|
+
const visibleColumnStart = (widths, viewport, pinned) => {
|
|
179
|
+
const back = (start, used) => {
|
|
180
|
+
const before = widths[start - 1];
|
|
181
|
+
return start > 0 &&
|
|
182
|
+
before !== undefined &&
|
|
183
|
+
used + before <= viewport - pinned
|
|
184
|
+
? back(start - 1, used + before)
|
|
185
|
+
: start;
|
|
186
|
+
};
|
|
187
|
+
const last = Math.max(0, widths.length - 1);
|
|
188
|
+
return back(last, widths[last] ?? 0);
|
|
189
|
+
};
|
|
190
|
+
exports.visibleColumnStart = visibleColumnStart;
|
|
191
|
+
const reachableScroll = (left, scrollWidth, clientWidth) => Math.max(0, Math.min(left, Math.max(0, scrollWidth - clientWidth)));
|
|
192
|
+
exports.reachableScroll = reachableScroll;
|
|
193
|
+
|
|
194
|
+
},
|
|
195
|
+
"src/Meta/model/classHooks.ts": function (module, exports, require) {
|
|
196
|
+
"use strict";
|
|
197
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
198
|
+
exports.checkLabelClass = exports.checkboxClass = exports.checkClass = exports.inputClass = exports.fieldValueClass = exports.fieldErrorClass = exports.fieldLabelClass = exports.fieldClass = exports.fieldsClass = exports.formClass = exports.toastToneClass = exports.toastCloseClass = exports.toastClass = exports.toasterClass = exports.dialogActionsClass = exports.dialogTitleClass = exports.dialogClass = exports.backdropClass = exports.modalClass = exports.disabledClass = exports.actionsClass = exports.btnDangerClass = exports.btnPrimaryClass = exports.btnClass = exports.moonClass = exports.sunClass = exports.themeToggleClass = exports.navSubgroupTitleClass = exports.navSubgroupClass = exports.navFlatClass = exports.navLinkClass = exports.navGroupTitleClass = exports.navGroupClass = exports.navNumberedClass = exports.navClass = exports.widthAttr = exports.programmaticScrollAttr = exports.phoneAttr = exports.menuCompactAttr = exports.menuOpenAttr = exports.seamClass = exports.menuClass = exports.browserClass = exports.pinnedClass = exports.workspaceClass = exports.trailClass = exports.foldClass = exports.paneClass = exports.colClass = exports.rowClass = void 0;
|
|
199
|
+
exports.selector = exports.cssVarRef = exports.cssVar = exports.queryChoiceClass = exports.queryClass = exports.tileCaptionClass = exports.tileLabelClass = exports.tileLinkClass = exports.tileBodyClass = exports.tileClass = exports.boardClass = exports.rowLinkClass = exports.listActionClass = exports.listActionsClass = exports.listItemClass = exports.listClass = exports.menuBodyClass = exports.errorClass = exports.hintClass = exports.backClass = exports.singleClass = exports.schedulerClass = exports.crumbSepClass = exports.crumbLinkClass = exports.crumbHereClass = exports.crumbsClass = exports.colHeadLinkClass = exports.colHeadTitleClass = exports.colHeadClass = exports.fieldMediaClass = exports.fieldRefClass = exports.fieldMomentClass = exports.fieldFlagClass = exports.fieldNumClass = void 0;
|
|
200
|
+
const identity_1 = require("src/Meta/model/identity.ts");
|
|
201
|
+
const hook = (name) => `${identity_1.cssPrefix}-${name}`;
|
|
202
|
+
exports.rowClass = hook("row");
|
|
203
|
+
exports.colClass = hook("col");
|
|
204
|
+
exports.paneClass = hook("pane");
|
|
205
|
+
exports.foldClass = hook("fold");
|
|
206
|
+
exports.trailClass = hook("trail");
|
|
207
|
+
exports.workspaceClass = hook("workspace");
|
|
208
|
+
exports.pinnedClass = hook("pinned");
|
|
209
|
+
exports.browserClass = hook("browser");
|
|
210
|
+
exports.menuClass = hook("menu");
|
|
211
|
+
exports.seamClass = hook("seam");
|
|
212
|
+
exports.menuOpenAttr = `data-${identity_1.cssPrefix}-menu-open`;
|
|
213
|
+
exports.menuCompactAttr = `data-${identity_1.cssPrefix}-menu-compact`;
|
|
214
|
+
exports.phoneAttr = `data-${identity_1.cssPrefix}-phone`;
|
|
215
|
+
exports.programmaticScrollAttr = `data-${identity_1.cssPrefix}-programmatic-scroll`;
|
|
216
|
+
exports.widthAttr = `data-${identity_1.cssPrefix}-width`;
|
|
217
|
+
exports.navClass = hook("nav");
|
|
218
|
+
exports.navNumberedClass = hook("nav-numbered");
|
|
219
|
+
exports.navGroupClass = hook("nav-group");
|
|
220
|
+
exports.navGroupTitleClass = hook("nav-group-title");
|
|
221
|
+
exports.navLinkClass = hook("nav-link");
|
|
222
|
+
exports.navFlatClass = hook("nav-flat");
|
|
223
|
+
exports.navSubgroupClass = hook("nav-subgroup");
|
|
224
|
+
exports.navSubgroupTitleClass = hook("nav-subgroup-title");
|
|
225
|
+
exports.themeToggleClass = hook("theme-toggle");
|
|
226
|
+
exports.sunClass = hook("sun");
|
|
227
|
+
exports.moonClass = hook("moon");
|
|
228
|
+
exports.btnClass = hook("btn");
|
|
229
|
+
exports.btnPrimaryClass = hook("btn-primary");
|
|
230
|
+
exports.btnDangerClass = hook("btn-danger");
|
|
231
|
+
exports.actionsClass = hook("actions");
|
|
232
|
+
exports.disabledClass = hook("disabled");
|
|
233
|
+
exports.modalClass = hook("modal");
|
|
234
|
+
exports.backdropClass = hook("backdrop");
|
|
235
|
+
exports.dialogClass = hook("dialog");
|
|
236
|
+
exports.dialogTitleClass = hook("dialog-title");
|
|
237
|
+
exports.dialogActionsClass = hook("dialog-actions");
|
|
238
|
+
exports.toasterClass = hook("toaster");
|
|
239
|
+
exports.toastClass = hook("toast");
|
|
240
|
+
exports.toastCloseClass = hook("toast-close");
|
|
241
|
+
const toastToneClass = (tone) => hook(`toast-${tone}`);
|
|
242
|
+
exports.toastToneClass = toastToneClass;
|
|
243
|
+
exports.formClass = hook("form");
|
|
244
|
+
exports.fieldsClass = hook("fields");
|
|
245
|
+
exports.fieldClass = hook("field");
|
|
246
|
+
exports.fieldLabelClass = hook("field-label");
|
|
247
|
+
exports.fieldErrorClass = hook("field-error");
|
|
248
|
+
exports.fieldValueClass = hook("field-value");
|
|
249
|
+
exports.inputClass = hook("input");
|
|
250
|
+
exports.checkClass = hook("check");
|
|
251
|
+
exports.checkboxClass = hook("checkbox");
|
|
252
|
+
exports.checkLabelClass = hook("check-label");
|
|
253
|
+
exports.fieldNumClass = hook("field-num");
|
|
254
|
+
exports.fieldFlagClass = hook("field-flag");
|
|
255
|
+
exports.fieldMomentClass = hook("field-moment");
|
|
256
|
+
exports.fieldRefClass = hook("field-ref");
|
|
257
|
+
exports.fieldMediaClass = hook("field-media");
|
|
258
|
+
exports.colHeadClass = hook("colhead");
|
|
259
|
+
exports.colHeadTitleClass = hook("colhead-title");
|
|
260
|
+
exports.colHeadLinkClass = hook("colhead-link");
|
|
261
|
+
exports.crumbsClass = hook("crumbs");
|
|
262
|
+
exports.crumbHereClass = hook("crumb-here");
|
|
263
|
+
exports.crumbLinkClass = hook("crumb-link");
|
|
264
|
+
exports.crumbSepClass = hook("crumb-sep");
|
|
265
|
+
exports.schedulerClass = hook("scheduler");
|
|
266
|
+
exports.singleClass = hook("single");
|
|
267
|
+
exports.backClass = hook("back");
|
|
268
|
+
exports.hintClass = hook("hint");
|
|
269
|
+
exports.errorClass = hook("error");
|
|
270
|
+
exports.menuBodyClass = hook("menu-body");
|
|
271
|
+
exports.listClass = hook("list");
|
|
272
|
+
exports.listItemClass = hook("list-item");
|
|
273
|
+
exports.listActionsClass = hook("list-actions");
|
|
274
|
+
exports.listActionClass = hook("list-action");
|
|
275
|
+
exports.rowLinkClass = hook("row-link");
|
|
276
|
+
exports.boardClass = hook("board");
|
|
277
|
+
exports.tileClass = hook("tile");
|
|
278
|
+
exports.tileBodyClass = hook("tile-body");
|
|
279
|
+
exports.tileLinkClass = hook("tile-link");
|
|
280
|
+
exports.tileLabelClass = hook("tile-label");
|
|
281
|
+
exports.tileCaptionClass = hook("tile-caption");
|
|
282
|
+
exports.queryClass = hook("query");
|
|
283
|
+
exports.queryChoiceClass = hook("query-choice");
|
|
284
|
+
const cssVar = (name) => `--${identity_1.cssPrefix}-${name}`;
|
|
285
|
+
exports.cssVar = cssVar;
|
|
286
|
+
const cssVarRef = (name) => `var(${(0, exports.cssVar)(name)})`;
|
|
287
|
+
exports.cssVarRef = cssVarRef;
|
|
288
|
+
const selector = (hookClass) => `.${hookClass}`;
|
|
289
|
+
exports.selector = selector;
|
|
290
|
+
|
|
291
|
+
},
|
|
292
|
+
"src/Meta/model/identity.ts": function (module, exports, require) {
|
|
293
|
+
"use strict";
|
|
294
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
295
|
+
exports.cssPrefix = exports.frameworkName = void 0;
|
|
296
|
+
exports.frameworkName = "plggmatic";
|
|
297
|
+
exports.cssPrefix = "pm";
|
|
298
|
+
|
|
299
|
+
},
|
|
300
|
+
"src/Layout/model/reveal.ts": function (module, exports, require) {
|
|
301
|
+
"use strict";
|
|
302
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
303
|
+
exports.glideEase = exports.revealTarget = void 0;
|
|
304
|
+
const revealTarget = (current, maximum, visible, column) => {
|
|
305
|
+
const delta = column.right - column.left >
|
|
306
|
+
visible.right - visible.left
|
|
307
|
+
? column.right - visible.right
|
|
308
|
+
: column.left < visible.left
|
|
309
|
+
? column.left - visible.left
|
|
310
|
+
: column.right > visible.right
|
|
311
|
+
? column.right - visible.right
|
|
312
|
+
: 0;
|
|
313
|
+
return Math.max(0, Math.min(maximum, current + delta));
|
|
314
|
+
};
|
|
315
|
+
exports.revealTarget = revealTarget;
|
|
316
|
+
const glideEase = (progress) => 1 -
|
|
317
|
+
Math.pow(1 - Math.max(0, Math.min(1, progress)), 3);
|
|
318
|
+
exports.glideEase = glideEase;
|
|
319
|
+
|
|
320
|
+
},
|
|
321
|
+
"src/Layout/usecase/revealColumn.ts": function (module, exports, require) {
|
|
322
|
+
"use strict";
|
|
323
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
324
|
+
exports.revealColumn = exports.revealOptions = void 0;
|
|
325
|
+
const reveal_1 = require("src/Layout/model/reveal.ts");
|
|
326
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
327
|
+
exports.revealOptions = {
|
|
328
|
+
behavior: "smooth",
|
|
329
|
+
sticky: null,
|
|
330
|
+
duration: 280,
|
|
331
|
+
marker: classHooks_1.programmaticScrollAttr,
|
|
332
|
+
};
|
|
333
|
+
const glides = new WeakMap();
|
|
334
|
+
const revealColumn = (strip, column, options = exports.revealOptions) => {
|
|
335
|
+
const bounds = strip.getBoundingClientRect();
|
|
336
|
+
const right = bounds.left + strip.clientWidth;
|
|
337
|
+
const stuck = options.sticky instanceof HTMLElement &&
|
|
338
|
+
["sticky", "fixed"].includes(getComputedStyle(options.sticky).position)
|
|
339
|
+
? options.sticky.getBoundingClientRect()
|
|
340
|
+
.right
|
|
341
|
+
: bounds.left;
|
|
342
|
+
const left = stuck > bounds.left && stuck < right
|
|
343
|
+
? stuck
|
|
344
|
+
: bounds.left;
|
|
345
|
+
const target = (0, reveal_1.revealTarget)(strip.scrollLeft, strip.scrollWidth - strip.clientWidth, { left, right }, column.getBoundingClientRect());
|
|
346
|
+
glides.get(strip)?.abort();
|
|
347
|
+
if (options.behavior !== "smooth" ||
|
|
348
|
+
Math.abs(target - strip.scrollLeft) < 1) {
|
|
349
|
+
strip.removeAttribute(options.marker);
|
|
350
|
+
strip.scrollTo({
|
|
351
|
+
left: target,
|
|
352
|
+
behavior: "auto",
|
|
353
|
+
});
|
|
354
|
+
return;
|
|
355
|
+
}
|
|
356
|
+
const controller = new AbortController();
|
|
357
|
+
const from = strip.scrollLeft;
|
|
358
|
+
const start = performance.now();
|
|
359
|
+
glides.set(strip, controller);
|
|
360
|
+
strip.setAttribute(options.marker, "");
|
|
361
|
+
const end = () => {
|
|
362
|
+
controller.abort();
|
|
363
|
+
strip.removeAttribute(options.marker);
|
|
364
|
+
};
|
|
365
|
+
[
|
|
366
|
+
"pointerdown",
|
|
367
|
+
"touchstart",
|
|
368
|
+
"wheel",
|
|
369
|
+
"keydown",
|
|
370
|
+
].forEach((event) => strip.addEventListener(event, end, {
|
|
371
|
+
passive: true,
|
|
372
|
+
once: true,
|
|
373
|
+
signal: controller.signal,
|
|
374
|
+
}));
|
|
375
|
+
const step = (now) => {
|
|
376
|
+
if (controller.signal.aborted ||
|
|
377
|
+
!strip.isConnected)
|
|
378
|
+
return;
|
|
379
|
+
const progress = Math.min(1, (now - start) / options.duration);
|
|
380
|
+
strip.scrollLeft =
|
|
381
|
+
from +
|
|
382
|
+
(target - from) * (0, reveal_1.glideEase)(progress);
|
|
383
|
+
if (progress < 1)
|
|
384
|
+
requestAnimationFrame(step);
|
|
385
|
+
else {
|
|
386
|
+
strip.scrollLeft = target;
|
|
387
|
+
end();
|
|
388
|
+
}
|
|
389
|
+
};
|
|
390
|
+
requestAnimationFrame(step);
|
|
391
|
+
};
|
|
392
|
+
exports.revealColumn = revealColumn;
|
|
393
|
+
|
|
394
|
+
},
|
|
395
|
+
"src/Layout/usecase/preference.ts": function (module, exports, require) {
|
|
396
|
+
"use strict";
|
|
397
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
398
|
+
exports.savePreference = exports.readPreference = void 0;
|
|
399
|
+
const plgg_1 = require("plgg");
|
|
400
|
+
const readPreference = (key, store = () => localStorage) => (0, plgg_1.pipe)((0, plgg_1.tryCatch)(() => store().getItem(key) === "1")(undefined), (0, plgg_1.matchResult)(() => false, (value) => value));
|
|
401
|
+
exports.readPreference = readPreference;
|
|
402
|
+
const savePreference = (key, on, store = () => localStorage) => (0, plgg_1.pipe)((0, plgg_1.tryCatch)(() => {
|
|
403
|
+
store().setItem(key, on ? "1" : "0");
|
|
404
|
+
return true;
|
|
405
|
+
})(undefined), (0, plgg_1.matchResult)(() => false, (saved) => saved));
|
|
406
|
+
exports.savePreference = savePreference;
|
|
407
|
+
|
|
408
|
+
}
|
|
409
|
+
};
|
|
410
|
+
const __cache = {};
|
|
411
|
+
function __require(id) {
|
|
412
|
+
if (id in __cache) return __cache[id].exports;
|
|
413
|
+
const fn = __modules[id];
|
|
414
|
+
if (!fn) { if (id in __externals) return __externals[id]; return import(id); }
|
|
415
|
+
const module = { exports: {} };
|
|
416
|
+
__cache[id] = module;
|
|
417
|
+
fn(module, module.exports, __require);
|
|
418
|
+
return module.exports;
|
|
419
|
+
}
|
|
420
|
+
const __entry = __require("src/columnsEntry.ts");
|
|
421
|
+
export default __entry;
|
|
422
|
+
export const {
|
|
423
|
+
decodeTrail,
|
|
424
|
+
encodeTrail,
|
|
425
|
+
foldTrail,
|
|
426
|
+
glideEase,
|
|
427
|
+
menuCompactAttr,
|
|
428
|
+
menuOpenAttr,
|
|
429
|
+
parseSteps,
|
|
430
|
+
phoneAttr,
|
|
431
|
+
printSteps,
|
|
432
|
+
programmaticScrollAttr,
|
|
433
|
+
reachableScroll,
|
|
434
|
+
readPreference,
|
|
435
|
+
resolveTrail,
|
|
436
|
+
restep,
|
|
437
|
+
revealColumn,
|
|
438
|
+
revealOptions,
|
|
439
|
+
revealTarget,
|
|
440
|
+
savePreference,
|
|
441
|
+
settledTrail,
|
|
442
|
+
stepFrom,
|
|
443
|
+
stepSeparator,
|
|
444
|
+
stripGeometry,
|
|
445
|
+
stripMetrics,
|
|
446
|
+
stripStyle,
|
|
447
|
+
stripVar,
|
|
448
|
+
trailParam,
|
|
449
|
+
trailQuery,
|
|
450
|
+
visibleColumnStart,
|
|
451
|
+
widthAttr
|
|
452
|
+
} = __entry;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* plggmatic — the Pragmatic design system on the plgg
|
|
3
|
+
* family, and the home of its UI engine (absorbed back
|
|
4
|
+
* from the retired `plgg-ui` package; the engine depends
|
|
5
|
+
* only on `plgg` and `plgg-view`). The root barrel is
|
|
6
|
+
* the RUNTIME surface: an explicit named-export list of
|
|
7
|
+
* layout combinators, components, forms, the declarative
|
|
8
|
+
* vocabulary, the scheduler, and the renderers. The THEME
|
|
9
|
+
* surface (token utilities, scheme-aware color atoms, CSS
|
|
10
|
+
* emitters, and the `themeToggle*` family) lives on the
|
|
11
|
+
* `plggmatic/style` subpath (see `src/styleEntry.ts`) so
|
|
12
|
+
* their Tailwind-style names (`p`, `text`, …) never
|
|
13
|
+
* collide with the Html element builders here, and so the
|
|
14
|
+
* subpath boundary equals the runtime/theme surface
|
|
15
|
+
* boundary a consumer imports across.
|
|
16
|
+
*
|
|
17
|
+
* The `themeToggle*` family — routed onto the `/style`
|
|
18
|
+
* subpath — is ALSO re-exported HERE on the root, because
|
|
19
|
+
* plggmatic's historical root surface (where consumers
|
|
20
|
+
* still import `themeToggle*`) carries it.
|
|
21
|
+
*/
|
|
22
|
+
export { frameworkName, cssPrefix, } from "./Meta/model/identity";
|
|
23
|
+
export { btnClass, btnPrimaryClass, btnDangerClass, actionsClass, disabledClass, modalClass, backdropClass, dialogClass, dialogTitleClass, dialogActionsClass, toasterClass, toastClass, toastCloseClass, toastToneClass, formClass, fieldsClass, fieldClass, fieldLabelClass, fieldErrorClass, fieldValueClass, inputClass, checkClass, checkboxClass, checkLabelClass, fieldNumClass, fieldFlagClass, fieldMomentClass, fieldRefClass, fieldMediaClass, colHeadClass, colHeadTitleClass, colHeadLinkClass, crumbsClass, crumbHereClass, crumbLinkClass, crumbSepClass, schedulerClass, singleClass, backClass, hintClass, errorClass, menuBodyClass, listClass, listItemClass, listActionsClass, listActionClass, rowLinkClass, boardClass, tileClass, tileBodyClass, tileLinkClass, tileLabelClass, tileCaptionClass, queryClass, queryChoiceClass, cssVar, cssVarRef, selector, foldClass, trailClass, } from "./Meta/model/classHooks";
|
|
24
|
+
export { type PaneRole, type Parts, landmarkTag, rowClass, colClass, paneClass, row, rowWith, column, columnWith, pane, navPane, mainPane, asidePane, } from "./Layout";
|
|
25
|
+
export { type Column, type Composition, columnOf, columnWithSpan, soloComposition, columnsOf, restParam, spanParam, entrySeparator, fieldSeparator, escapeChar, decodeComposition, compositionQuery, compositionHref, stripAttr, columnAttr, spanAttr, navHookName, strip, documentColumn, navigationInitScript, injectNavigationScript, type Trail, type TrailResolver, type TrailColumn, resolveTrail, settledTrail, foldTrail, stepFrom, restep, type StepCodec, trailParam, stepSeparator, encodeTrail, decodeTrail, trailQuery, printSteps, parseSteps, } from "./Navigate";
|
|
26
|
+
export { type InteractionState, type ButtonProps, type TextLinkProps, type HeadingLevel, type NavItem, focusRing, hoverDim, pressDim, button, textLink, heading, prose, navTree, type ColHeadProps, type Crumb, colHead, breadcrumb, type TextInputProps, type TextAreaProps, type SelectOption, type SelectProps, type CheckboxProps, type Control, type FormField, type FieldState, type DeclaredFormProps, type ConfirmDialogProps, type Tone, type ToastProps, textInput, textArea, selectInput, checkbox, fieldControl, declaredForm, confirmDialog, tones, toast, toaster, } from "./Component";
|
|
27
|
+
export { type ControlKind, type SubmissionState, type FieldSpec, type FormErrors, type Payload, type FormViewProps, controlKinds, idleSubmission, pendingSubmission, isPending, parseForm, errorFor, formView, } from "./Form";
|
|
28
|
+
export { type Mode, type Screen, modes, toggleMode, currentScreen, type HeaderLink, type ExtraColumn, type MultiColumnOptions, multiColumn, multiColumnWith, crumbsOf, singleColumn, renderMode, advanceColumns, } from "./Render";
|
|
29
|
+
export { type Field, type FieldValue, type Row, field, fieldOf, textValue, numValue, flagValue, momentValue, refValue, mediaValue, textValue$, numValue$, flagValue$, momentValue$, refValue$, mediaValue$, fieldText, refTarget, row as makeRow, } from "./Declare/model/Row";
|
|
30
|
+
export { type Path, type TypedSource, type Source, sync, async, dynamic, adapter, } from "./Declare/model/Source";
|
|
31
|
+
export { type Actor, type Scope, type Effect, type ApplyOk, type HostAdapter, type NamedAdapter, type Registry, actor, scope, effect, hostAdapter, named, resolveAdapter, } from "./Declare/model/Adapter";
|
|
32
|
+
export { type Diagnostic, reconcile, diagnosticSeverity, unknownAdapter$, noDefaultAdapter$, unusedAdapter$, } from "./Declare/usecase/reconcile";
|
|
33
|
+
export { type HostRecord, type Projected, type FieldProjection, type Projection, asText, asNum, asMoment, asFlag, projectField, projection, projectRow, } from "./Declare/usecase/project";
|
|
34
|
+
export { applyVia } from "./Declare/usecase/apply";
|
|
35
|
+
export { type Query, type QueryChoice, query, queryChoice, matchesQuery, matchesChoice, } from "./Declare/model/Query";
|
|
36
|
+
export { type Verb, type Confirm, type Action, type Authorize, immediate, confirm, action, isDestructive, permits, } from "./Declare/model/Action";
|
|
37
|
+
export { type Collection, collection, collectionById, actionById, } from "./Declare/model/Collection";
|
|
38
|
+
export { type MenuEntry, type Menu, menuEntry, menu, } from "./Declare/model/Menu";
|
|
39
|
+
export { type Declaration, declare, } from "./Declare/model/Declaration";
|
|
40
|
+
export { type Slot, type PendingAction, type Model as ScheduledModel, emptyModel, slotOf, choiceOf, } from "./Schedule/model/Model";
|
|
41
|
+
export { type View, type Binding, menuView, listView, detailView, menuView$, listView$, detailView$, binding, } from "./Schedule/model/View";
|
|
42
|
+
export { focusedView, sliceOf, } from "./Schedule/usecase/lower";
|
|
43
|
+
export { type SchedulerMsg, navigate, urlChanged, openMenu, select, queryInput, queryChoiceInput, requestAction, confirmAction, cancelAction, loaded, failed, } from "./Schedule/model/Msg";
|
|
44
|
+
export { type ConfirmPrompt, type ActionButton, type RowLink, type MenuLink, type QueryState, type QueryChoiceState, type DetailField, type Tile, type Level, type Scene, menuLevel$, listLevel$, boardLevel$, detailLevel$, } from "./Schedule/model/Scene";
|
|
45
|
+
export { type UrlSlice, parseUrl, toUrl as sceneToUrl, } from "./Schedule/usecase/codec";
|
|
46
|
+
export { type Scheduled, type Host, schedule, } from "./Schedule/usecase/schedule";
|
|
47
|
+
export { type FlowScript, type FlowStep, type FlowExpr, type FlowValue, } from "./Flow/model/script";
|
|
48
|
+
export { type FlowOutcome, type PausedFlow, type FlowDiag, defaultFuel, } from "./Flow/model/run";
|
|
49
|
+
export { type FlowSchema, type CollectionSchema, flowSchema, } from "./Flow/model/forms";
|
|
50
|
+
export { readFlow } from "./Flow/usecase/read";
|
|
51
|
+
export { startFlow, resumeFlow, } from "./Flow/usecase/interpret";
|
|
52
|
+
export { type ToolInput, type ToolEffect, type Tool, nullary, textArg, enumArg, emit, runFlowEffect, tool, nullary$, textArg$, enumArg$, emit$, runFlow$, rowCap, catalogOf, type FlowHost, type RunOutcome, flowHost, flowSchemaOf, runFlow, rejected, stalled, ran, rejected$, stalled$, ran$, type ToolDescriptor, type CatalogDiff, type ModelContext, descriptorOf, diffCatalog, syncCatalog, invokeWith, detectModelContext, inertModelContext, } from "./Catalog";
|
|
53
|
+
export { type ThemeToggleProps, themeToggle, staticThemeToggle, themeToggleClass, sunClass, moonClass, themeToggleCss, } from "./Component/usecase/themeToggle";
|
|
54
|
+
export { type NavGroup, type SidebarNavProps, sidebarNav, sidebarNavClass, sidebarNavCss, sidebarNavRevealScript, } from "./Component/usecase/sidebarNav";
|
|
55
|
+
export { pragmaticTheme, pragmaticThemeWithPalette, } from "./brand";
|
|
56
|
+
export { type StripMetrics, type MenuTrack, type StripGeometry, stripMetrics, stripGeometry, stripVar, stripStyle, visibleColumnStart, reachableScroll, } from "./Layout";
|
|
57
|
+
export { type WorkspaceOptions, workspaceOptions, workspaceCss, } from "./Style/usecase/workspaceCss";
|
|
58
|
+
export { workspaceClass, pinnedClass, browserClass, menuClass, seamClass, menuOpenAttr, menuCompactAttr, phoneAttr, programmaticScrollAttr, widthAttr, navClass, navNumberedClass, navGroupClass, navGroupTitleClass, navLinkClass, navFlatClass, navSubgroupClass, navSubgroupTitleClass, } from "./Meta/model/classHooks";
|
|
59
|
+
export { type Span, revealTarget, glideEase, } from "./Layout";
|
|
60
|
+
export { type RevealOptions, revealOptions, revealColumn, } from "./Layout";
|
|
61
|
+
export { type WorkspaceState, type ColumnWidth, workspace, workspaceWith, pinnedPanel, browser, menuColumn, widthColumn, } from "./Layout";
|
|
62
|
+
export { type PreferenceStore, type PreferenceReader, type PreferenceWriter, readPreference, savePreference, } from "./Layout";
|
|
63
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EACL,aAAa,EACb,SAAS,GACV,MAAM,+BAA+B,CAAC;AAQvC,OAAO,EACL,QAAQ,EACR,eAAe,EACf,cAAc,EACd,YAAY,EACZ,aAAa,EACb,UAAU,EACV,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,UAAU,EACV,eAAe,EACf,cAAc,EACd,SAAS,EACT,WAAW,EACX,UAAU,EACV,eAAe,EACf,eAAe,EACf,eAAe,EACf,UAAU,EACV,UAAU,EACV,aAAa,EACb,eAAe,EACf,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,cAAc,EACd,aAAa,EACb,cAAc,EACd,WAAW,EACX,SAAS,EACT,SAAS,EACT,UAA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