plggmatic 0.2.2 → 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/model/tool.d.ts.map +1 -1
- package/dist/Catalog/usecase/adapter.d.ts.map +1 -1
- package/dist/Catalog/usecase/catalog.d.ts.map +1 -1
- package/dist/Catalog/usecase/runFlow.d.ts.map +1 -1
- package/dist/Component/index.d.ts +2 -0
- package/dist/Component/index.d.ts.map +1 -1
- package/dist/Component/usecase/breadcrumb.d.ts.map +1 -1
- package/dist/Component/usecase/button.d.ts.map +1 -1
- package/dist/Component/usecase/checkbox.d.ts.map +1 -1
- package/dist/Component/usecase/colHead.d.ts.map +1 -1
- package/dist/Component/usecase/confirmDialog.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/Component/usecase/selectInput.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/Component/usecase/textInput.d.ts.map +1 -1
- package/dist/Component/usecase/textLink.d.ts.map +1 -1
- package/dist/Component/usecase/themeToggle.d.ts +6 -1
- package/dist/Component/usecase/themeToggle.d.ts.map +1 -1
- package/dist/Component/usecase/toast.d.ts.map +1 -1
- package/dist/Component/usecase/typography.d.ts.map +1 -1
- package/dist/Declare/model/Action.d.ts.map +1 -1
- package/dist/Declare/model/Adapter.d.ts.map +1 -1
- package/dist/Declare/model/Collection.d.ts.map +1 -1
- package/dist/Declare/model/Declaration.d.ts.map +1 -1
- package/dist/Declare/model/Menu.d.ts.map +1 -1
- package/dist/Declare/model/Query.d.ts.map +1 -1
- package/dist/Declare/model/Row.d.ts.map +1 -1
- package/dist/Declare/model/Source.d.ts.map +1 -1
- package/dist/Declare/usecase/apply.d.ts.map +1 -1
- package/dist/Declare/usecase/project.d.ts.map +1 -1
- package/dist/Declare/usecase/reconcile.d.ts.map +1 -1
- package/dist/Flow/model/forms.d.ts.map +1 -1
- package/dist/Flow/model/run.d.ts.map +1 -1
- package/dist/Flow/model/script.d.ts.map +1 -1
- package/dist/Flow/usecase/interpret.d.ts.map +1 -1
- package/dist/Flow/usecase/read.d.ts.map +1 -1
- package/dist/Form/model/submission.d.ts.map +1 -1
- package/dist/Form/usecase/controlParts.d.ts.map +1 -1
- package/dist/Form/usecase/formView.d.ts.map +1 -1
- package/dist/Form/usecase/parseForm.d.ts.map +1 -1
- package/dist/Layout/index.d.ts +6 -1
- package/dist/Layout/index.d.ts.map +1 -1
- 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.map +1 -1
- 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 +30 -1
- package/dist/Layout/usecase/combinators.d.ts.map +1 -1
- 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/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 +1 -0
- package/dist/Render/index.d.ts.map +1 -1
- package/dist/Render/model/mode.d.ts.map +1 -1
- package/dist/Render/model/screen.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/Render/usecase/parts.d.ts.map +1 -1
- package/dist/Render/usecase/renderMode.d.ts.map +1 -1
- package/dist/Render/usecase/singleColumn.d.ts.map +1 -1
- package/dist/Schedule/model/Model.d.ts.map +1 -1
- package/dist/Schedule/model/Msg.d.ts.map +1 -1
- package/dist/Schedule/model/Scene.d.ts.map +1 -1
- package/dist/Schedule/model/View.d.ts.map +1 -1
- package/dist/Schedule/usecase/chain.d.ts.map +1 -1
- package/dist/Schedule/usecase/codec.d.ts.map +1 -1
- package/dist/Schedule/usecase/lower.d.ts.map +1 -1
- package/dist/Schedule/usecase/scene.d.ts.map +1 -1
- package/dist/Schedule/usecase/schedule.d.ts.map +1 -1
- package/dist/Schedule/usecase/update.d.ts.map +1 -1
- package/dist/Style/index.d.ts +4 -0
- package/dist/Style/index.d.ts.map +1 -1
- package/dist/Style/model/appearance.d.ts.map +1 -1
- package/dist/Style/model/breakpoint.d.ts.map +1 -1
- 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 +3 -1
- package/dist/Style/model/hexColor.d.ts.map +1 -1
- package/dist/Style/model/metric.d.ts.map +1 -1
- package/dist/Style/model/palette.d.ts.map +1 -1
- package/dist/Style/model/syntax.d.ts.map +1 -1
- package/dist/Style/model/theme.d.ts +10 -0
- package/dist/Style/model/theme.d.ts.map +1 -1
- package/dist/Style/model/token.d.ts.map +1 -1
- package/dist/Style/model/zIndex.d.ts.map +1 -1
- package/dist/Style/usecase/appearanceScript.d.ts.map +1 -1
- package/dist/Style/usecase/chromeCss.d.ts.map +1 -1
- package/dist/Style/usecase/contrast.d.ts.map +1 -1
- package/dist/Style/usecase/metricCss.d.ts.map +1 -1
- 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.map +1 -1
- 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.map +1 -1
- package/dist/Style/usecase/utilities.d.ts +1 -1
- package/dist/Style/usecase/utilities.d.ts.map +1 -1
- package/dist/Style/usecase/workspaceCss.d.ts +48 -0
- package/dist/Style/usecase/workspaceCss.d.ts.map +1 -0
- package/dist/brand.d.ts.map +1 -1
- 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 +14 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +1773 -178
- package/dist/styleEntry.d.ts +7 -2
- package/dist/styleEntry.d.ts.map +1 -1
- package/dist/styleEntry.es.js +623 -44
- package/package.json +12 -8
package/dist/index.es.js
CHANGED
|
@@ -16,21 +16,123 @@ const __modules = {
|
|
|
16
16
|
"src/index.ts": function (module, exports, require) {
|
|
17
17
|
"use strict";
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
19
|
+
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 = 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.cssPrefix = exports.frameworkName = void 0;
|
|
20
|
+
exports.trailParam = exports.restep = exports.stepFrom = exports.foldTrail = exports.settledTrail = exports.resolveTrail = exports.injectNavigationScript = exports.navigationInitScript = exports.documentColumn = exports.strip = exports.navHookName = exports.spanAttr = exports.columnAttr = exports.stripAttr = exports.compositionHref = exports.compositionQuery = exports.decodeComposition = exports.escapeChar = exports.fieldSeparator = exports.entrySeparator = exports.spanParam = exports.restParam = exports.columnsOf = exports.soloComposition = exports.columnWithSpan = exports.columnOf = exports.asidePane = exports.mainPane = exports.navPane = exports.pane = exports.columnWith = exports.column = exports.rowWith = exports.row = exports.paneClass = exports.colClass = exports.rowClass = exports.landmarkTag = exports.trailClass = exports.foldClass = exports.selector = exports.cssVarRef = exports.cssVar = exports.queryChoiceClass = exports.queryClass = exports.tileCaptionClass = exports.tileLabelClass = exports.tileLinkClass = exports.tileBodyClass = exports.tileClass = void 0;
|
|
21
|
+
exports.mediaValue = exports.refValue = exports.momentValue = exports.flagValue = exports.numValue = exports.textValue = exports.fieldOf = exports.field = exports.advanceColumns = exports.renderMode = exports.singleColumn = exports.crumbsOf = exports.multiColumnWith = exports.multiColumn = exports.currentScreen = exports.toggleMode = exports.modes = exports.formView = exports.errorFor = exports.parseForm = exports.isPending = exports.pendingSubmission = exports.idleSubmission = exports.controlKinds = exports.toaster = exports.toast = exports.tones = exports.confirmDialog = exports.declaredForm = exports.fieldControl = exports.checkbox = exports.selectInput = exports.textArea = exports.textInput = exports.breadcrumb = exports.colHead = exports.navTree = exports.prose = exports.heading = exports.textLink = exports.button = exports.pressDim = exports.hoverDim = exports.focusRing = exports.parseSteps = exports.printSteps = exports.trailQuery = exports.decodeTrail = exports.encodeTrail = exports.stepSeparator = void 0;
|
|
20
22
|
exports.choiceOf = exports.slotOf = exports.emptyModel = exports.declare = exports.menu = exports.menuEntry = exports.actionById = exports.collectionById = exports.collection = exports.permits = exports.isDestructive = exports.action = exports.confirm = exports.immediate = exports.matchesChoice = exports.matchesQuery = exports.queryChoice = exports.query = exports.applyVia = exports.projectRow = exports.projection = exports.projectField = exports.asFlag = exports.asMoment = exports.asNum = exports.asText = exports.unusedAdapter$ = exports.noDefaultAdapter$ = exports.unknownAdapter$ = exports.diagnosticSeverity = exports.reconcile = exports.resolveAdapter = exports.named = exports.hostAdapter = exports.effect = exports.scope = exports.actor = exports.adapter = exports.dynamic = exports.async = exports.sync = exports.makeRow = exports.refTarget = exports.fieldText = exports.mediaValue$ = exports.refValue$ = exports.momentValue$ = exports.flagValue$ = exports.numValue$ = exports.textValue$ = void 0;
|
|
21
23
|
exports.stalled = exports.rejected = exports.runFlow = exports.flowSchemaOf = exports.flowHost = exports.catalogOf = exports.rowCap = exports.runFlow$ = exports.emit$ = exports.enumArg$ = exports.textArg$ = exports.nullary$ = exports.tool = exports.runFlowEffect = exports.emit = exports.enumArg = exports.textArg = exports.nullary = exports.resumeFlow = exports.startFlow = exports.readFlow = exports.flowSchema = exports.defaultFuel = exports.schedule = exports.sceneToUrl = exports.parseUrl = exports.detailLevel$ = exports.boardLevel$ = exports.listLevel$ = exports.menuLevel$ = exports.failed = exports.loaded = exports.cancelAction = exports.confirmAction = exports.requestAction = exports.queryChoiceInput = exports.queryInput = exports.select = exports.openMenu = exports.urlChanged = exports.navigate = exports.sliceOf = exports.focusedView = exports.binding = exports.detailView$ = exports.listView$ = exports.menuView$ = exports.detailView = exports.listView = exports.menuView = void 0;
|
|
22
|
-
exports.pragmaticThemeWithPalette = exports.pragmaticTheme = exports.themeToggleCss = exports.themeToggleClass = exports.staticThemeToggle = exports.themeToggle = exports.inertModelContext = exports.detectModelContext = exports.invokeWith = exports.syncCatalog = exports.diffCatalog = exports.descriptorOf = exports.ran$ = exports.stalled$ = exports.rejected$ = exports.ran = void 0;
|
|
24
|
+
exports.glideEase = exports.revealTarget = 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.workspaceCss = exports.workspaceOptions = exports.reachableScroll = exports.visibleColumnStart = exports.stripStyle = exports.stripVar = exports.stripGeometry = exports.stripMetrics = exports.pragmaticThemeWithPalette = exports.pragmaticTheme = exports.sidebarNavRevealScript = exports.sidebarNavCss = exports.sidebarNavClass = exports.sidebarNav = exports.themeToggleCss = exports.moonClass = exports.sunClass = exports.themeToggleClass = exports.staticThemeToggle = exports.themeToggle = exports.inertModelContext = exports.detectModelContext = exports.invokeWith = exports.syncCatalog = exports.diffCatalog = exports.descriptorOf = exports.ran$ = exports.stalled$ = exports.rejected$ = exports.ran = void 0;
|
|
25
|
+
exports.savePreference = exports.readPreference = exports.widthColumn = exports.menuColumn = exports.browser = exports.pinnedPanel = exports.workspaceWith = exports.workspace = exports.revealColumn = exports.revealOptions = void 0;
|
|
23
26
|
var identity_1 = require("src/Meta/model/identity.ts");
|
|
24
27
|
Object.defineProperty(exports, "frameworkName", { enumerable: true, get: function () { return identity_1.frameworkName; } });
|
|
25
28
|
Object.defineProperty(exports, "cssPrefix", { enumerable: true, get: function () { return identity_1.cssPrefix; } });
|
|
29
|
+
var classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
30
|
+
Object.defineProperty(exports, "btnClass", { enumerable: true, get: function () { return classHooks_1.btnClass; } });
|
|
31
|
+
Object.defineProperty(exports, "btnPrimaryClass", { enumerable: true, get: function () { return classHooks_1.btnPrimaryClass; } });
|
|
32
|
+
Object.defineProperty(exports, "btnDangerClass", { enumerable: true, get: function () { return classHooks_1.btnDangerClass; } });
|
|
33
|
+
Object.defineProperty(exports, "actionsClass", { enumerable: true, get: function () { return classHooks_1.actionsClass; } });
|
|
34
|
+
Object.defineProperty(exports, "disabledClass", { enumerable: true, get: function () { return classHooks_1.disabledClass; } });
|
|
35
|
+
Object.defineProperty(exports, "modalClass", { enumerable: true, get: function () { return classHooks_1.modalClass; } });
|
|
36
|
+
Object.defineProperty(exports, "backdropClass", { enumerable: true, get: function () { return classHooks_1.backdropClass; } });
|
|
37
|
+
Object.defineProperty(exports, "dialogClass", { enumerable: true, get: function () { return classHooks_1.dialogClass; } });
|
|
38
|
+
Object.defineProperty(exports, "dialogTitleClass", { enumerable: true, get: function () { return classHooks_1.dialogTitleClass; } });
|
|
39
|
+
Object.defineProperty(exports, "dialogActionsClass", { enumerable: true, get: function () { return classHooks_1.dialogActionsClass; } });
|
|
40
|
+
Object.defineProperty(exports, "toasterClass", { enumerable: true, get: function () { return classHooks_1.toasterClass; } });
|
|
41
|
+
Object.defineProperty(exports, "toastClass", { enumerable: true, get: function () { return classHooks_1.toastClass; } });
|
|
42
|
+
Object.defineProperty(exports, "toastCloseClass", { enumerable: true, get: function () { return classHooks_1.toastCloseClass; } });
|
|
43
|
+
Object.defineProperty(exports, "toastToneClass", { enumerable: true, get: function () { return classHooks_1.toastToneClass; } });
|
|
44
|
+
Object.defineProperty(exports, "formClass", { enumerable: true, get: function () { return classHooks_1.formClass; } });
|
|
45
|
+
Object.defineProperty(exports, "fieldsClass", { enumerable: true, get: function () { return classHooks_1.fieldsClass; } });
|
|
46
|
+
Object.defineProperty(exports, "fieldClass", { enumerable: true, get: function () { return classHooks_1.fieldClass; } });
|
|
47
|
+
Object.defineProperty(exports, "fieldLabelClass", { enumerable: true, get: function () { return classHooks_1.fieldLabelClass; } });
|
|
48
|
+
Object.defineProperty(exports, "fieldErrorClass", { enumerable: true, get: function () { return classHooks_1.fieldErrorClass; } });
|
|
49
|
+
Object.defineProperty(exports, "fieldValueClass", { enumerable: true, get: function () { return classHooks_1.fieldValueClass; } });
|
|
50
|
+
Object.defineProperty(exports, "inputClass", { enumerable: true, get: function () { return classHooks_1.inputClass; } });
|
|
51
|
+
Object.defineProperty(exports, "checkClass", { enumerable: true, get: function () { return classHooks_1.checkClass; } });
|
|
52
|
+
Object.defineProperty(exports, "checkboxClass", { enumerable: true, get: function () { return classHooks_1.checkboxClass; } });
|
|
53
|
+
Object.defineProperty(exports, "checkLabelClass", { enumerable: true, get: function () { return classHooks_1.checkLabelClass; } });
|
|
54
|
+
Object.defineProperty(exports, "fieldNumClass", { enumerable: true, get: function () { return classHooks_1.fieldNumClass; } });
|
|
55
|
+
Object.defineProperty(exports, "fieldFlagClass", { enumerable: true, get: function () { return classHooks_1.fieldFlagClass; } });
|
|
56
|
+
Object.defineProperty(exports, "fieldMomentClass", { enumerable: true, get: function () { return classHooks_1.fieldMomentClass; } });
|
|
57
|
+
Object.defineProperty(exports, "fieldRefClass", { enumerable: true, get: function () { return classHooks_1.fieldRefClass; } });
|
|
58
|
+
Object.defineProperty(exports, "fieldMediaClass", { enumerable: true, get: function () { return classHooks_1.fieldMediaClass; } });
|
|
59
|
+
Object.defineProperty(exports, "colHeadClass", { enumerable: true, get: function () { return classHooks_1.colHeadClass; } });
|
|
60
|
+
Object.defineProperty(exports, "colHeadTitleClass", { enumerable: true, get: function () { return classHooks_1.colHeadTitleClass; } });
|
|
61
|
+
Object.defineProperty(exports, "colHeadLinkClass", { enumerable: true, get: function () { return classHooks_1.colHeadLinkClass; } });
|
|
62
|
+
Object.defineProperty(exports, "crumbsClass", { enumerable: true, get: function () { return classHooks_1.crumbsClass; } });
|
|
63
|
+
Object.defineProperty(exports, "crumbHereClass", { enumerable: true, get: function () { return classHooks_1.crumbHereClass; } });
|
|
64
|
+
Object.defineProperty(exports, "crumbLinkClass", { enumerable: true, get: function () { return classHooks_1.crumbLinkClass; } });
|
|
65
|
+
Object.defineProperty(exports, "crumbSepClass", { enumerable: true, get: function () { return classHooks_1.crumbSepClass; } });
|
|
66
|
+
Object.defineProperty(exports, "schedulerClass", { enumerable: true, get: function () { return classHooks_1.schedulerClass; } });
|
|
67
|
+
Object.defineProperty(exports, "singleClass", { enumerable: true, get: function () { return classHooks_1.singleClass; } });
|
|
68
|
+
Object.defineProperty(exports, "backClass", { enumerable: true, get: function () { return classHooks_1.backClass; } });
|
|
69
|
+
Object.defineProperty(exports, "hintClass", { enumerable: true, get: function () { return classHooks_1.hintClass; } });
|
|
70
|
+
Object.defineProperty(exports, "errorClass", { enumerable: true, get: function () { return classHooks_1.errorClass; } });
|
|
71
|
+
Object.defineProperty(exports, "menuBodyClass", { enumerable: true, get: function () { return classHooks_1.menuBodyClass; } });
|
|
72
|
+
Object.defineProperty(exports, "listClass", { enumerable: true, get: function () { return classHooks_1.listClass; } });
|
|
73
|
+
Object.defineProperty(exports, "listItemClass", { enumerable: true, get: function () { return classHooks_1.listItemClass; } });
|
|
74
|
+
Object.defineProperty(exports, "listActionsClass", { enumerable: true, get: function () { return classHooks_1.listActionsClass; } });
|
|
75
|
+
Object.defineProperty(exports, "listActionClass", { enumerable: true, get: function () { return classHooks_1.listActionClass; } });
|
|
76
|
+
Object.defineProperty(exports, "rowLinkClass", { enumerable: true, get: function () { return classHooks_1.rowLinkClass; } });
|
|
77
|
+
Object.defineProperty(exports, "boardClass", { enumerable: true, get: function () { return classHooks_1.boardClass; } });
|
|
78
|
+
Object.defineProperty(exports, "tileClass", { enumerable: true, get: function () { return classHooks_1.tileClass; } });
|
|
79
|
+
Object.defineProperty(exports, "tileBodyClass", { enumerable: true, get: function () { return classHooks_1.tileBodyClass; } });
|
|
80
|
+
Object.defineProperty(exports, "tileLinkClass", { enumerable: true, get: function () { return classHooks_1.tileLinkClass; } });
|
|
81
|
+
Object.defineProperty(exports, "tileLabelClass", { enumerable: true, get: function () { return classHooks_1.tileLabelClass; } });
|
|
82
|
+
Object.defineProperty(exports, "tileCaptionClass", { enumerable: true, get: function () { return classHooks_1.tileCaptionClass; } });
|
|
83
|
+
Object.defineProperty(exports, "queryClass", { enumerable: true, get: function () { return classHooks_1.queryClass; } });
|
|
84
|
+
Object.defineProperty(exports, "queryChoiceClass", { enumerable: true, get: function () { return classHooks_1.queryChoiceClass; } });
|
|
85
|
+
Object.defineProperty(exports, "cssVar", { enumerable: true, get: function () { return classHooks_1.cssVar; } });
|
|
86
|
+
Object.defineProperty(exports, "cssVarRef", { enumerable: true, get: function () { return classHooks_1.cssVarRef; } });
|
|
87
|
+
Object.defineProperty(exports, "selector", { enumerable: true, get: function () { return classHooks_1.selector; } });
|
|
88
|
+
Object.defineProperty(exports, "foldClass", { enumerable: true, get: function () { return classHooks_1.foldClass; } });
|
|
89
|
+
Object.defineProperty(exports, "trailClass", { enumerable: true, get: function () { return classHooks_1.trailClass; } });
|
|
26
90
|
var Layout_1 = require("src/Layout/index.ts");
|
|
27
91
|
Object.defineProperty(exports, "landmarkTag", { enumerable: true, get: function () { return Layout_1.landmarkTag; } });
|
|
92
|
+
Object.defineProperty(exports, "rowClass", { enumerable: true, get: function () { return Layout_1.rowClass; } });
|
|
93
|
+
Object.defineProperty(exports, "colClass", { enumerable: true, get: function () { return Layout_1.colClass; } });
|
|
94
|
+
Object.defineProperty(exports, "paneClass", { enumerable: true, get: function () { return Layout_1.paneClass; } });
|
|
28
95
|
Object.defineProperty(exports, "row", { enumerable: true, get: function () { return Layout_1.row; } });
|
|
96
|
+
Object.defineProperty(exports, "rowWith", { enumerable: true, get: function () { return Layout_1.rowWith; } });
|
|
29
97
|
Object.defineProperty(exports, "column", { enumerable: true, get: function () { return Layout_1.column; } });
|
|
98
|
+
Object.defineProperty(exports, "columnWith", { enumerable: true, get: function () { return Layout_1.columnWith; } });
|
|
30
99
|
Object.defineProperty(exports, "pane", { enumerable: true, get: function () { return Layout_1.pane; } });
|
|
31
100
|
Object.defineProperty(exports, "navPane", { enumerable: true, get: function () { return Layout_1.navPane; } });
|
|
32
101
|
Object.defineProperty(exports, "mainPane", { enumerable: true, get: function () { return Layout_1.mainPane; } });
|
|
33
102
|
Object.defineProperty(exports, "asidePane", { enumerable: true, get: function () { return Layout_1.asidePane; } });
|
|
103
|
+
var Navigate_1 = require("src/Navigate/index.ts");
|
|
104
|
+
Object.defineProperty(exports, "columnOf", { enumerable: true, get: function () { return Navigate_1.columnOf; } });
|
|
105
|
+
Object.defineProperty(exports, "columnWithSpan", { enumerable: true, get: function () { return Navigate_1.columnWithSpan; } });
|
|
106
|
+
Object.defineProperty(exports, "soloComposition", { enumerable: true, get: function () { return Navigate_1.soloComposition; } });
|
|
107
|
+
Object.defineProperty(exports, "columnsOf", { enumerable: true, get: function () { return Navigate_1.columnsOf; } });
|
|
108
|
+
Object.defineProperty(exports, "restParam", { enumerable: true, get: function () { return Navigate_1.restParam; } });
|
|
109
|
+
Object.defineProperty(exports, "spanParam", { enumerable: true, get: function () { return Navigate_1.spanParam; } });
|
|
110
|
+
Object.defineProperty(exports, "entrySeparator", { enumerable: true, get: function () { return Navigate_1.entrySeparator; } });
|
|
111
|
+
Object.defineProperty(exports, "fieldSeparator", { enumerable: true, get: function () { return Navigate_1.fieldSeparator; } });
|
|
112
|
+
Object.defineProperty(exports, "escapeChar", { enumerable: true, get: function () { return Navigate_1.escapeChar; } });
|
|
113
|
+
Object.defineProperty(exports, "decodeComposition", { enumerable: true, get: function () { return Navigate_1.decodeComposition; } });
|
|
114
|
+
Object.defineProperty(exports, "compositionQuery", { enumerable: true, get: function () { return Navigate_1.compositionQuery; } });
|
|
115
|
+
Object.defineProperty(exports, "compositionHref", { enumerable: true, get: function () { return Navigate_1.compositionHref; } });
|
|
116
|
+
Object.defineProperty(exports, "stripAttr", { enumerable: true, get: function () { return Navigate_1.stripAttr; } });
|
|
117
|
+
Object.defineProperty(exports, "columnAttr", { enumerable: true, get: function () { return Navigate_1.columnAttr; } });
|
|
118
|
+
Object.defineProperty(exports, "spanAttr", { enumerable: true, get: function () { return Navigate_1.spanAttr; } });
|
|
119
|
+
Object.defineProperty(exports, "navHookName", { enumerable: true, get: function () { return Navigate_1.navHookName; } });
|
|
120
|
+
Object.defineProperty(exports, "strip", { enumerable: true, get: function () { return Navigate_1.strip; } });
|
|
121
|
+
Object.defineProperty(exports, "documentColumn", { enumerable: true, get: function () { return Navigate_1.documentColumn; } });
|
|
122
|
+
Object.defineProperty(exports, "navigationInitScript", { enumerable: true, get: function () { return Navigate_1.navigationInitScript; } });
|
|
123
|
+
Object.defineProperty(exports, "injectNavigationScript", { enumerable: true, get: function () { return Navigate_1.injectNavigationScript; } });
|
|
124
|
+
Object.defineProperty(exports, "resolveTrail", { enumerable: true, get: function () { return Navigate_1.resolveTrail; } });
|
|
125
|
+
Object.defineProperty(exports, "settledTrail", { enumerable: true, get: function () { return Navigate_1.settledTrail; } });
|
|
126
|
+
Object.defineProperty(exports, "foldTrail", { enumerable: true, get: function () { return Navigate_1.foldTrail; } });
|
|
127
|
+
Object.defineProperty(exports, "stepFrom", { enumerable: true, get: function () { return Navigate_1.stepFrom; } });
|
|
128
|
+
Object.defineProperty(exports, "restep", { enumerable: true, get: function () { return Navigate_1.restep; } });
|
|
129
|
+
Object.defineProperty(exports, "trailParam", { enumerable: true, get: function () { return Navigate_1.trailParam; } });
|
|
130
|
+
Object.defineProperty(exports, "stepSeparator", { enumerable: true, get: function () { return Navigate_1.stepSeparator; } });
|
|
131
|
+
Object.defineProperty(exports, "encodeTrail", { enumerable: true, get: function () { return Navigate_1.encodeTrail; } });
|
|
132
|
+
Object.defineProperty(exports, "decodeTrail", { enumerable: true, get: function () { return Navigate_1.decodeTrail; } });
|
|
133
|
+
Object.defineProperty(exports, "trailQuery", { enumerable: true, get: function () { return Navigate_1.trailQuery; } });
|
|
134
|
+
Object.defineProperty(exports, "printSteps", { enumerable: true, get: function () { return Navigate_1.printSteps; } });
|
|
135
|
+
Object.defineProperty(exports, "parseSteps", { enumerable: true, get: function () { return Navigate_1.parseSteps; } });
|
|
34
136
|
var Component_1 = require("src/Component/index.ts");
|
|
35
137
|
Object.defineProperty(exports, "focusRing", { enumerable: true, get: function () { return Component_1.focusRing; } });
|
|
36
138
|
Object.defineProperty(exports, "hoverDim", { enumerable: true, get: function () { return Component_1.hoverDim; } });
|
|
@@ -46,6 +148,8 @@ Object.defineProperty(exports, "textInput", { enumerable: true, get: function ()
|
|
|
46
148
|
Object.defineProperty(exports, "textArea", { enumerable: true, get: function () { return Component_1.textArea; } });
|
|
47
149
|
Object.defineProperty(exports, "selectInput", { enumerable: true, get: function () { return Component_1.selectInput; } });
|
|
48
150
|
Object.defineProperty(exports, "checkbox", { enumerable: true, get: function () { return Component_1.checkbox; } });
|
|
151
|
+
Object.defineProperty(exports, "fieldControl", { enumerable: true, get: function () { return Component_1.fieldControl; } });
|
|
152
|
+
Object.defineProperty(exports, "declaredForm", { enumerable: true, get: function () { return Component_1.declaredForm; } });
|
|
49
153
|
Object.defineProperty(exports, "confirmDialog", { enumerable: true, get: function () { return Component_1.confirmDialog; } });
|
|
50
154
|
Object.defineProperty(exports, "tones", { enumerable: true, get: function () { return Component_1.tones; } });
|
|
51
155
|
Object.defineProperty(exports, "toast", { enumerable: true, get: function () { return Component_1.toast; } });
|
|
@@ -67,6 +171,7 @@ Object.defineProperty(exports, "multiColumnWith", { enumerable: true, get: funct
|
|
|
67
171
|
Object.defineProperty(exports, "crumbsOf", { enumerable: true, get: function () { return Render_1.crumbsOf; } });
|
|
68
172
|
Object.defineProperty(exports, "singleColumn", { enumerable: true, get: function () { return Render_1.singleColumn; } });
|
|
69
173
|
Object.defineProperty(exports, "renderMode", { enumerable: true, get: function () { return Render_1.renderMode; } });
|
|
174
|
+
Object.defineProperty(exports, "advanceColumns", { enumerable: true, get: function () { return Render_1.advanceColumns; } });
|
|
70
175
|
var Row_1 = require("src/Declare/model/Row.ts");
|
|
71
176
|
Object.defineProperty(exports, "field", { enumerable: true, get: function () { return Row_1.field; } });
|
|
72
177
|
Object.defineProperty(exports, "fieldOf", { enumerable: true, get: function () { return Row_1.fieldOf; } });
|
|
@@ -212,10 +317,62 @@ var themeToggle_1 = require("src/Component/usecase/themeToggle.ts");
|
|
|
212
317
|
Object.defineProperty(exports, "themeToggle", { enumerable: true, get: function () { return themeToggle_1.themeToggle; } });
|
|
213
318
|
Object.defineProperty(exports, "staticThemeToggle", { enumerable: true, get: function () { return themeToggle_1.staticThemeToggle; } });
|
|
214
319
|
Object.defineProperty(exports, "themeToggleClass", { enumerable: true, get: function () { return themeToggle_1.themeToggleClass; } });
|
|
320
|
+
Object.defineProperty(exports, "sunClass", { enumerable: true, get: function () { return themeToggle_1.sunClass; } });
|
|
321
|
+
Object.defineProperty(exports, "moonClass", { enumerable: true, get: function () { return themeToggle_1.moonClass; } });
|
|
215
322
|
Object.defineProperty(exports, "themeToggleCss", { enumerable: true, get: function () { return themeToggle_1.themeToggleCss; } });
|
|
323
|
+
var sidebarNav_1 = require("src/Component/usecase/sidebarNav.ts");
|
|
324
|
+
Object.defineProperty(exports, "sidebarNav", { enumerable: true, get: function () { return sidebarNav_1.sidebarNav; } });
|
|
325
|
+
Object.defineProperty(exports, "sidebarNavClass", { enumerable: true, get: function () { return sidebarNav_1.sidebarNavClass; } });
|
|
326
|
+
Object.defineProperty(exports, "sidebarNavCss", { enumerable: true, get: function () { return sidebarNav_1.sidebarNavCss; } });
|
|
327
|
+
Object.defineProperty(exports, "sidebarNavRevealScript", { enumerable: true, get: function () { return sidebarNav_1.sidebarNavRevealScript; } });
|
|
216
328
|
var brand_1 = require("src/brand.ts");
|
|
217
329
|
Object.defineProperty(exports, "pragmaticTheme", { enumerable: true, get: function () { return brand_1.pragmaticTheme; } });
|
|
218
330
|
Object.defineProperty(exports, "pragmaticThemeWithPalette", { enumerable: true, get: function () { return brand_1.pragmaticThemeWithPalette; } });
|
|
331
|
+
var Layout_2 = require("src/Layout/index.ts");
|
|
332
|
+
Object.defineProperty(exports, "stripMetrics", { enumerable: true, get: function () { return Layout_2.stripMetrics; } });
|
|
333
|
+
Object.defineProperty(exports, "stripGeometry", { enumerable: true, get: function () { return Layout_2.stripGeometry; } });
|
|
334
|
+
Object.defineProperty(exports, "stripVar", { enumerable: true, get: function () { return Layout_2.stripVar; } });
|
|
335
|
+
Object.defineProperty(exports, "stripStyle", { enumerable: true, get: function () { return Layout_2.stripStyle; } });
|
|
336
|
+
Object.defineProperty(exports, "visibleColumnStart", { enumerable: true, get: function () { return Layout_2.visibleColumnStart; } });
|
|
337
|
+
Object.defineProperty(exports, "reachableScroll", { enumerable: true, get: function () { return Layout_2.reachableScroll; } });
|
|
338
|
+
var workspaceCss_1 = require("src/Style/usecase/workspaceCss.ts");
|
|
339
|
+
Object.defineProperty(exports, "workspaceOptions", { enumerable: true, get: function () { return workspaceCss_1.workspaceOptions; } });
|
|
340
|
+
Object.defineProperty(exports, "workspaceCss", { enumerable: true, get: function () { return workspaceCss_1.workspaceCss; } });
|
|
341
|
+
var classHooks_2 = require("src/Meta/model/classHooks.ts");
|
|
342
|
+
Object.defineProperty(exports, "workspaceClass", { enumerable: true, get: function () { return classHooks_2.workspaceClass; } });
|
|
343
|
+
Object.defineProperty(exports, "pinnedClass", { enumerable: true, get: function () { return classHooks_2.pinnedClass; } });
|
|
344
|
+
Object.defineProperty(exports, "browserClass", { enumerable: true, get: function () { return classHooks_2.browserClass; } });
|
|
345
|
+
Object.defineProperty(exports, "menuClass", { enumerable: true, get: function () { return classHooks_2.menuClass; } });
|
|
346
|
+
Object.defineProperty(exports, "seamClass", { enumerable: true, get: function () { return classHooks_2.seamClass; } });
|
|
347
|
+
Object.defineProperty(exports, "menuOpenAttr", { enumerable: true, get: function () { return classHooks_2.menuOpenAttr; } });
|
|
348
|
+
Object.defineProperty(exports, "menuCompactAttr", { enumerable: true, get: function () { return classHooks_2.menuCompactAttr; } });
|
|
349
|
+
Object.defineProperty(exports, "phoneAttr", { enumerable: true, get: function () { return classHooks_2.phoneAttr; } });
|
|
350
|
+
Object.defineProperty(exports, "programmaticScrollAttr", { enumerable: true, get: function () { return classHooks_2.programmaticScrollAttr; } });
|
|
351
|
+
Object.defineProperty(exports, "widthAttr", { enumerable: true, get: function () { return classHooks_2.widthAttr; } });
|
|
352
|
+
Object.defineProperty(exports, "navClass", { enumerable: true, get: function () { return classHooks_2.navClass; } });
|
|
353
|
+
Object.defineProperty(exports, "navNumberedClass", { enumerable: true, get: function () { return classHooks_2.navNumberedClass; } });
|
|
354
|
+
Object.defineProperty(exports, "navGroupClass", { enumerable: true, get: function () { return classHooks_2.navGroupClass; } });
|
|
355
|
+
Object.defineProperty(exports, "navGroupTitleClass", { enumerable: true, get: function () { return classHooks_2.navGroupTitleClass; } });
|
|
356
|
+
Object.defineProperty(exports, "navLinkClass", { enumerable: true, get: function () { return classHooks_2.navLinkClass; } });
|
|
357
|
+
Object.defineProperty(exports, "navFlatClass", { enumerable: true, get: function () { return classHooks_2.navFlatClass; } });
|
|
358
|
+
Object.defineProperty(exports, "navSubgroupClass", { enumerable: true, get: function () { return classHooks_2.navSubgroupClass; } });
|
|
359
|
+
Object.defineProperty(exports, "navSubgroupTitleClass", { enumerable: true, get: function () { return classHooks_2.navSubgroupTitleClass; } });
|
|
360
|
+
var Layout_3 = require("src/Layout/index.ts");
|
|
361
|
+
Object.defineProperty(exports, "revealTarget", { enumerable: true, get: function () { return Layout_3.revealTarget; } });
|
|
362
|
+
Object.defineProperty(exports, "glideEase", { enumerable: true, get: function () { return Layout_3.glideEase; } });
|
|
363
|
+
var Layout_4 = require("src/Layout/index.ts");
|
|
364
|
+
Object.defineProperty(exports, "revealOptions", { enumerable: true, get: function () { return Layout_4.revealOptions; } });
|
|
365
|
+
Object.defineProperty(exports, "revealColumn", { enumerable: true, get: function () { return Layout_4.revealColumn; } });
|
|
366
|
+
var Layout_5 = require("src/Layout/index.ts");
|
|
367
|
+
Object.defineProperty(exports, "workspace", { enumerable: true, get: function () { return Layout_5.workspace; } });
|
|
368
|
+
Object.defineProperty(exports, "workspaceWith", { enumerable: true, get: function () { return Layout_5.workspaceWith; } });
|
|
369
|
+
Object.defineProperty(exports, "pinnedPanel", { enumerable: true, get: function () { return Layout_5.pinnedPanel; } });
|
|
370
|
+
Object.defineProperty(exports, "browser", { enumerable: true, get: function () { return Layout_5.browser; } });
|
|
371
|
+
Object.defineProperty(exports, "menuColumn", { enumerable: true, get: function () { return Layout_5.menuColumn; } });
|
|
372
|
+
Object.defineProperty(exports, "widthColumn", { enumerable: true, get: function () { return Layout_5.widthColumn; } });
|
|
373
|
+
var Layout_6 = require("src/Layout/index.ts");
|
|
374
|
+
Object.defineProperty(exports, "readPreference", { enumerable: true, get: function () { return Layout_6.readPreference; } });
|
|
375
|
+
Object.defineProperty(exports, "savePreference", { enumerable: true, get: function () { return Layout_6.savePreference; } });
|
|
219
376
|
|
|
220
377
|
},
|
|
221
378
|
"src/Meta/model/identity.ts": function (module, exports, require) {
|
|
@@ -225,20 +382,145 @@ exports.cssPrefix = exports.frameworkName = void 0;
|
|
|
225
382
|
exports.frameworkName = "plggmatic";
|
|
226
383
|
exports.cssPrefix = "pm";
|
|
227
384
|
|
|
385
|
+
},
|
|
386
|
+
"src/Meta/model/classHooks.ts": function (module, exports, require) {
|
|
387
|
+
"use strict";
|
|
388
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
389
|
+
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;
|
|
390
|
+
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;
|
|
391
|
+
const identity_1 = require("src/Meta/model/identity.ts");
|
|
392
|
+
const hook = (name) => `${identity_1.cssPrefix}-${name}`;
|
|
393
|
+
exports.rowClass = hook("row");
|
|
394
|
+
exports.colClass = hook("col");
|
|
395
|
+
exports.paneClass = hook("pane");
|
|
396
|
+
exports.foldClass = hook("fold");
|
|
397
|
+
exports.trailClass = hook("trail");
|
|
398
|
+
exports.workspaceClass = hook("workspace");
|
|
399
|
+
exports.pinnedClass = hook("pinned");
|
|
400
|
+
exports.browserClass = hook("browser");
|
|
401
|
+
exports.menuClass = hook("menu");
|
|
402
|
+
exports.seamClass = hook("seam");
|
|
403
|
+
exports.menuOpenAttr = `data-${identity_1.cssPrefix}-menu-open`;
|
|
404
|
+
exports.menuCompactAttr = `data-${identity_1.cssPrefix}-menu-compact`;
|
|
405
|
+
exports.phoneAttr = `data-${identity_1.cssPrefix}-phone`;
|
|
406
|
+
exports.programmaticScrollAttr = `data-${identity_1.cssPrefix}-programmatic-scroll`;
|
|
407
|
+
exports.widthAttr = `data-${identity_1.cssPrefix}-width`;
|
|
408
|
+
exports.navClass = hook("nav");
|
|
409
|
+
exports.navNumberedClass = hook("nav-numbered");
|
|
410
|
+
exports.navGroupClass = hook("nav-group");
|
|
411
|
+
exports.navGroupTitleClass = hook("nav-group-title");
|
|
412
|
+
exports.navLinkClass = hook("nav-link");
|
|
413
|
+
exports.navFlatClass = hook("nav-flat");
|
|
414
|
+
exports.navSubgroupClass = hook("nav-subgroup");
|
|
415
|
+
exports.navSubgroupTitleClass = hook("nav-subgroup-title");
|
|
416
|
+
exports.themeToggleClass = hook("theme-toggle");
|
|
417
|
+
exports.sunClass = hook("sun");
|
|
418
|
+
exports.moonClass = hook("moon");
|
|
419
|
+
exports.btnClass = hook("btn");
|
|
420
|
+
exports.btnPrimaryClass = hook("btn-primary");
|
|
421
|
+
exports.btnDangerClass = hook("btn-danger");
|
|
422
|
+
exports.actionsClass = hook("actions");
|
|
423
|
+
exports.disabledClass = hook("disabled");
|
|
424
|
+
exports.modalClass = hook("modal");
|
|
425
|
+
exports.backdropClass = hook("backdrop");
|
|
426
|
+
exports.dialogClass = hook("dialog");
|
|
427
|
+
exports.dialogTitleClass = hook("dialog-title");
|
|
428
|
+
exports.dialogActionsClass = hook("dialog-actions");
|
|
429
|
+
exports.toasterClass = hook("toaster");
|
|
430
|
+
exports.toastClass = hook("toast");
|
|
431
|
+
exports.toastCloseClass = hook("toast-close");
|
|
432
|
+
const toastToneClass = (tone) => hook(`toast-${tone}`);
|
|
433
|
+
exports.toastToneClass = toastToneClass;
|
|
434
|
+
exports.formClass = hook("form");
|
|
435
|
+
exports.fieldsClass = hook("fields");
|
|
436
|
+
exports.fieldClass = hook("field");
|
|
437
|
+
exports.fieldLabelClass = hook("field-label");
|
|
438
|
+
exports.fieldErrorClass = hook("field-error");
|
|
439
|
+
exports.fieldValueClass = hook("field-value");
|
|
440
|
+
exports.inputClass = hook("input");
|
|
441
|
+
exports.checkClass = hook("check");
|
|
442
|
+
exports.checkboxClass = hook("checkbox");
|
|
443
|
+
exports.checkLabelClass = hook("check-label");
|
|
444
|
+
exports.fieldNumClass = hook("field-num");
|
|
445
|
+
exports.fieldFlagClass = hook("field-flag");
|
|
446
|
+
exports.fieldMomentClass = hook("field-moment");
|
|
447
|
+
exports.fieldRefClass = hook("field-ref");
|
|
448
|
+
exports.fieldMediaClass = hook("field-media");
|
|
449
|
+
exports.colHeadClass = hook("colhead");
|
|
450
|
+
exports.colHeadTitleClass = hook("colhead-title");
|
|
451
|
+
exports.colHeadLinkClass = hook("colhead-link");
|
|
452
|
+
exports.crumbsClass = hook("crumbs");
|
|
453
|
+
exports.crumbHereClass = hook("crumb-here");
|
|
454
|
+
exports.crumbLinkClass = hook("crumb-link");
|
|
455
|
+
exports.crumbSepClass = hook("crumb-sep");
|
|
456
|
+
exports.schedulerClass = hook("scheduler");
|
|
457
|
+
exports.singleClass = hook("single");
|
|
458
|
+
exports.backClass = hook("back");
|
|
459
|
+
exports.hintClass = hook("hint");
|
|
460
|
+
exports.errorClass = hook("error");
|
|
461
|
+
exports.menuBodyClass = hook("menu-body");
|
|
462
|
+
exports.listClass = hook("list");
|
|
463
|
+
exports.listItemClass = hook("list-item");
|
|
464
|
+
exports.listActionsClass = hook("list-actions");
|
|
465
|
+
exports.listActionClass = hook("list-action");
|
|
466
|
+
exports.rowLinkClass = hook("row-link");
|
|
467
|
+
exports.boardClass = hook("board");
|
|
468
|
+
exports.tileClass = hook("tile");
|
|
469
|
+
exports.tileBodyClass = hook("tile-body");
|
|
470
|
+
exports.tileLinkClass = hook("tile-link");
|
|
471
|
+
exports.tileLabelClass = hook("tile-label");
|
|
472
|
+
exports.tileCaptionClass = hook("tile-caption");
|
|
473
|
+
exports.queryClass = hook("query");
|
|
474
|
+
exports.queryChoiceClass = hook("query-choice");
|
|
475
|
+
const cssVar = (name) => `--${identity_1.cssPrefix}-${name}`;
|
|
476
|
+
exports.cssVar = cssVar;
|
|
477
|
+
const cssVarRef = (name) => `var(${(0, exports.cssVar)(name)})`;
|
|
478
|
+
exports.cssVarRef = cssVarRef;
|
|
479
|
+
const selector = (hookClass) => `.${hookClass}`;
|
|
480
|
+
exports.selector = selector;
|
|
481
|
+
|
|
228
482
|
},
|
|
229
483
|
"src/Layout/index.ts": function (module, exports, require) {
|
|
230
484
|
"use strict";
|
|
231
485
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
232
|
-
exports.asidePane = exports.mainPane = exports.navPane = exports.pane = exports.column = exports.row = exports.landmarkTag = void 0;
|
|
486
|
+
exports.savePreference = exports.readPreference = exports.widthColumn = exports.menuColumn = exports.browser = exports.pinnedPanel = exports.workspaceWith = exports.workspace = exports.revealColumn = exports.revealOptions = exports.glideEase = exports.revealTarget = exports.reachableScroll = exports.visibleColumnStart = exports.stripStyle = exports.stripVar = exports.stripGeometry = exports.stripMetrics = exports.asidePane = exports.mainPane = exports.navPane = exports.pane = exports.columnWith = exports.column = exports.rowWith = exports.row = exports.paneClass = exports.colClass = exports.rowClass = exports.landmarkTag = void 0;
|
|
233
487
|
var pane_1 = require("src/Layout/model/pane.ts");
|
|
234
488
|
Object.defineProperty(exports, "landmarkTag", { enumerable: true, get: function () { return pane_1.landmarkTag; } });
|
|
235
489
|
var combinators_1 = require("src/Layout/usecase/combinators.ts");
|
|
490
|
+
Object.defineProperty(exports, "rowClass", { enumerable: true, get: function () { return combinators_1.rowClass; } });
|
|
491
|
+
Object.defineProperty(exports, "colClass", { enumerable: true, get: function () { return combinators_1.colClass; } });
|
|
492
|
+
Object.defineProperty(exports, "paneClass", { enumerable: true, get: function () { return combinators_1.paneClass; } });
|
|
236
493
|
Object.defineProperty(exports, "row", { enumerable: true, get: function () { return combinators_1.row; } });
|
|
494
|
+
Object.defineProperty(exports, "rowWith", { enumerable: true, get: function () { return combinators_1.rowWith; } });
|
|
237
495
|
Object.defineProperty(exports, "column", { enumerable: true, get: function () { return combinators_1.column; } });
|
|
496
|
+
Object.defineProperty(exports, "columnWith", { enumerable: true, get: function () { return combinators_1.columnWith; } });
|
|
238
497
|
Object.defineProperty(exports, "pane", { enumerable: true, get: function () { return combinators_1.pane; } });
|
|
239
498
|
Object.defineProperty(exports, "navPane", { enumerable: true, get: function () { return combinators_1.navPane; } });
|
|
240
499
|
Object.defineProperty(exports, "mainPane", { enumerable: true, get: function () { return combinators_1.mainPane; } });
|
|
241
500
|
Object.defineProperty(exports, "asidePane", { enumerable: true, get: function () { return combinators_1.asidePane; } });
|
|
501
|
+
var geometry_1 = require("src/Layout/model/geometry.ts");
|
|
502
|
+
Object.defineProperty(exports, "stripMetrics", { enumerable: true, get: function () { return geometry_1.stripMetrics; } });
|
|
503
|
+
Object.defineProperty(exports, "stripGeometry", { enumerable: true, get: function () { return geometry_1.stripGeometry; } });
|
|
504
|
+
Object.defineProperty(exports, "stripVar", { enumerable: true, get: function () { return geometry_1.stripVar; } });
|
|
505
|
+
Object.defineProperty(exports, "stripStyle", { enumerable: true, get: function () { return geometry_1.stripStyle; } });
|
|
506
|
+
Object.defineProperty(exports, "visibleColumnStart", { enumerable: true, get: function () { return geometry_1.visibleColumnStart; } });
|
|
507
|
+
Object.defineProperty(exports, "reachableScroll", { enumerable: true, get: function () { return geometry_1.reachableScroll; } });
|
|
508
|
+
var reveal_1 = require("src/Layout/model/reveal.ts");
|
|
509
|
+
Object.defineProperty(exports, "revealTarget", { enumerable: true, get: function () { return reveal_1.revealTarget; } });
|
|
510
|
+
Object.defineProperty(exports, "glideEase", { enumerable: true, get: function () { return reveal_1.glideEase; } });
|
|
511
|
+
var revealColumn_1 = require("src/Layout/usecase/revealColumn.ts");
|
|
512
|
+
Object.defineProperty(exports, "revealOptions", { enumerable: true, get: function () { return revealColumn_1.revealOptions; } });
|
|
513
|
+
Object.defineProperty(exports, "revealColumn", { enumerable: true, get: function () { return revealColumn_1.revealColumn; } });
|
|
514
|
+
var workspace_1 = require("src/Layout/usecase/workspace.ts");
|
|
515
|
+
Object.defineProperty(exports, "workspace", { enumerable: true, get: function () { return workspace_1.workspace; } });
|
|
516
|
+
Object.defineProperty(exports, "workspaceWith", { enumerable: true, get: function () { return workspace_1.workspaceWith; } });
|
|
517
|
+
Object.defineProperty(exports, "pinnedPanel", { enumerable: true, get: function () { return workspace_1.pinnedPanel; } });
|
|
518
|
+
Object.defineProperty(exports, "browser", { enumerable: true, get: function () { return workspace_1.browser; } });
|
|
519
|
+
Object.defineProperty(exports, "menuColumn", { enumerable: true, get: function () { return workspace_1.menuColumn; } });
|
|
520
|
+
Object.defineProperty(exports, "widthColumn", { enumerable: true, get: function () { return workspace_1.widthColumn; } });
|
|
521
|
+
var preference_1 = require("src/Layout/usecase/preference.ts");
|
|
522
|
+
Object.defineProperty(exports, "readPreference", { enumerable: true, get: function () { return preference_1.readPreference; } });
|
|
523
|
+
Object.defineProperty(exports, "savePreference", { enumerable: true, get: function () { return preference_1.savePreference; } });
|
|
242
524
|
|
|
243
525
|
},
|
|
244
526
|
"src/Layout/model/pane.ts": function (module, exports, require) {
|
|
@@ -257,15 +539,29 @@ exports.landmarkTag = landmarkTag;
|
|
|
257
539
|
"src/Layout/usecase/combinators.ts": function (module, exports, require) {
|
|
258
540
|
"use strict";
|
|
259
541
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
260
|
-
exports.asidePane = exports.mainPane = exports.navPane = exports.pane = exports.column = exports.row = void 0;
|
|
542
|
+
exports.asidePane = exports.mainPane = exports.navPane = exports.pane = exports.columnWith = exports.column = exports.rowWith = exports.row = exports.paneClass = exports.colClass = exports.rowClass = void 0;
|
|
261
543
|
const plgg_view_1 = require("plgg-view");
|
|
262
544
|
const styleEntry_1 = require("src/styleEntry.ts");
|
|
263
545
|
const pane_1 = require("src/Layout/model/pane.ts");
|
|
264
|
-
const
|
|
546
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
547
|
+
Object.defineProperty(exports, "rowClass", { enumerable: true, get: function () { return classHooks_1.rowClass; } });
|
|
548
|
+
Object.defineProperty(exports, "colClass", { enumerable: true, get: function () { return classHooks_1.colClass; } });
|
|
549
|
+
Object.defineProperty(exports, "paneClass", { enumerable: true, get: function () { return classHooks_1.paneClass; } });
|
|
550
|
+
const row = (parts, children) => (0, exports.rowWith)([], parts, children);
|
|
265
551
|
exports.row = row;
|
|
266
|
-
const
|
|
552
|
+
const rowWith = (attributes, parts, children) => (0, plgg_view_1.el)("div", [
|
|
553
|
+
(0, styleEntry_1.style_)(classHooks_1.rowClass, styleEntry_1.flex, ...parts),
|
|
554
|
+
...attributes,
|
|
555
|
+
], children);
|
|
556
|
+
exports.rowWith = rowWith;
|
|
557
|
+
const column = (parts, children) => (0, exports.columnWith)([], parts, children);
|
|
267
558
|
exports.column = column;
|
|
268
|
-
const
|
|
559
|
+
const columnWith = (attributes, parts, children) => (0, plgg_view_1.el)("div", [
|
|
560
|
+
(0, styleEntry_1.style_)(classHooks_1.colClass, styleEntry_1.flexCol, ...parts),
|
|
561
|
+
...attributes,
|
|
562
|
+
], children);
|
|
563
|
+
exports.columnWith = columnWith;
|
|
564
|
+
const pane = (role) => (parts, children) => (0, plgg_view_1.el)((0, pane_1.landmarkTag)(role), [(0, styleEntry_1.style_)(classHooks_1.paneClass, ...parts)], children);
|
|
269
565
|
exports.pane = pane;
|
|
270
566
|
exports.navPane = (0, exports.pane)("navigation");
|
|
271
567
|
exports.mainPane = (0, exports.pane)("main");
|
|
@@ -289,14 +585,27 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
289
585
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
290
586
|
};
|
|
291
587
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
292
|
-
exports.
|
|
293
|
-
exports.pragmaticThemeWithPalette = exports.pragmaticTheme = exports.syntaxCss = exports.reducedMotionCss = exports.metricCss = exports.chromeCss = exports.schemeCssOf = exports.schemeCss = exports.syntaxVar = exports.syntaxHex = exports.syntaxPalette = exports.syntaxKinds = exports.measure = exports.typeStyle = void 0;
|
|
588
|
+
exports.bg = exports.zValue = exports.zBands = exports.metricVar = exports.metricValue = exports.metrics = exports.maxWidth = exports.minWidth = exports.breakpointPx = exports.breakpoints = exports.sansFontStack = exports.typeScale = exports.semibold = exports.medium = exports.regular = exports.fontWeights = exports.typeRoles = exports.applyScheme = exports.injectAppearanceScript = exports.appearanceInitScript = exports.decideScheme = exports.appearanceStorageKey = exports.contrastRatio = exports.hex = exports.paletteHex = exports.asPalette = exports.defaultPalette = exports.asHexColor = exports.colorVar = exports.colorHex = exports.schemes = exports.variants = exports.semanticRoles = exports.neutrals = exports.colors = exports.defaultTheme = exports.selector = exports.trailClass = exports.foldClass = exports.colClass = exports.sidebarNavRevealScript = exports.sidebarNavCss = exports.sidebarNavClass = exports.sidebarNav = exports.themeToggleCss = exports.moonClass = exports.sunClass = exports.themeToggleClass = exports.staticThemeToggle = exports.themeToggle = void 0;
|
|
589
|
+
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.workspaceCss = exports.workspaceOptions = exports.pragmaticThemeWithPalette = exports.pragmaticTheme = exports.syntaxCss = exports.reducedMotionCss = exports.metricCss = exports.slotCss = exports.slotStyleCss = exports.asSlotStyle = exports.slotStyle = exports.slotSelector = exports.componentSlots = exports.runwayCss = exports.chromeCss = exports.schemeCssOf = exports.schemeCss = exports.syntaxVar = exports.syntaxHex = exports.syntaxPalette = exports.syntaxKinds = exports.measure = exports.typeStyle = exports.zIndex = exports.lineHeight = exports.weight = exports.fluid = exports.basis = exports.outline = exports.borderColor = exports.border = exports.textColor = exports.color = void 0;
|
|
590
|
+
exports.navSubgroupTitleClass = void 0;
|
|
294
591
|
__exportStar(require("plgg-view/style"), exports);
|
|
295
592
|
var themeToggle_1 = require("src/Component/usecase/themeToggle.ts");
|
|
296
593
|
Object.defineProperty(exports, "themeToggle", { enumerable: true, get: function () { return themeToggle_1.themeToggle; } });
|
|
297
594
|
Object.defineProperty(exports, "staticThemeToggle", { enumerable: true, get: function () { return themeToggle_1.staticThemeToggle; } });
|
|
298
595
|
Object.defineProperty(exports, "themeToggleClass", { enumerable: true, get: function () { return themeToggle_1.themeToggleClass; } });
|
|
596
|
+
Object.defineProperty(exports, "sunClass", { enumerable: true, get: function () { return themeToggle_1.sunClass; } });
|
|
597
|
+
Object.defineProperty(exports, "moonClass", { enumerable: true, get: function () { return themeToggle_1.moonClass; } });
|
|
299
598
|
Object.defineProperty(exports, "themeToggleCss", { enumerable: true, get: function () { return themeToggle_1.themeToggleCss; } });
|
|
599
|
+
var sidebarNav_1 = require("src/Component/usecase/sidebarNav.ts");
|
|
600
|
+
Object.defineProperty(exports, "sidebarNav", { enumerable: true, get: function () { return sidebarNav_1.sidebarNav; } });
|
|
601
|
+
Object.defineProperty(exports, "sidebarNavClass", { enumerable: true, get: function () { return sidebarNav_1.sidebarNavClass; } });
|
|
602
|
+
Object.defineProperty(exports, "sidebarNavCss", { enumerable: true, get: function () { return sidebarNav_1.sidebarNavCss; } });
|
|
603
|
+
Object.defineProperty(exports, "sidebarNavRevealScript", { enumerable: true, get: function () { return sidebarNav_1.sidebarNavRevealScript; } });
|
|
604
|
+
var classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
605
|
+
Object.defineProperty(exports, "colClass", { enumerable: true, get: function () { return classHooks_1.colClass; } });
|
|
606
|
+
Object.defineProperty(exports, "foldClass", { enumerable: true, get: function () { return classHooks_1.foldClass; } });
|
|
607
|
+
Object.defineProperty(exports, "trailClass", { enumerable: true, get: function () { return classHooks_1.trailClass; } });
|
|
608
|
+
Object.defineProperty(exports, "selector", { enumerable: true, get: function () { return classHooks_1.selector; } });
|
|
300
609
|
var Style_1 = require("src/Style/index.ts");
|
|
301
610
|
Object.defineProperty(exports, "defaultTheme", { enumerable: true, get: function () { return Style_1.defaultTheme; } });
|
|
302
611
|
Object.defineProperty(exports, "colors", { enumerable: true, get: function () { return Style_1.colors; } });
|
|
@@ -353,18 +662,51 @@ Object.defineProperty(exports, "syntaxVar", { enumerable: true, get: function ()
|
|
|
353
662
|
Object.defineProperty(exports, "schemeCss", { enumerable: true, get: function () { return Style_1.schemeCss; } });
|
|
354
663
|
Object.defineProperty(exports, "schemeCssOf", { enumerable: true, get: function () { return Style_1.schemeCssOf; } });
|
|
355
664
|
Object.defineProperty(exports, "chromeCss", { enumerable: true, get: function () { return Style_1.chromeCss; } });
|
|
665
|
+
Object.defineProperty(exports, "runwayCss", { enumerable: true, get: function () { return Style_1.runwayCss; } });
|
|
666
|
+
Object.defineProperty(exports, "componentSlots", { enumerable: true, get: function () { return Style_1.componentSlots; } });
|
|
667
|
+
Object.defineProperty(exports, "slotSelector", { enumerable: true, get: function () { return Style_1.slotSelector; } });
|
|
668
|
+
Object.defineProperty(exports, "slotStyle", { enumerable: true, get: function () { return Style_1.slotStyle; } });
|
|
669
|
+
Object.defineProperty(exports, "asSlotStyle", { enumerable: true, get: function () { return Style_1.asSlotStyle; } });
|
|
670
|
+
Object.defineProperty(exports, "slotStyleCss", { enumerable: true, get: function () { return Style_1.slotStyleCss; } });
|
|
671
|
+
Object.defineProperty(exports, "slotCss", { enumerable: true, get: function () { return Style_1.slotCss; } });
|
|
356
672
|
Object.defineProperty(exports, "metricCss", { enumerable: true, get: function () { return Style_1.metricCss; } });
|
|
357
673
|
Object.defineProperty(exports, "reducedMotionCss", { enumerable: true, get: function () { return Style_1.reducedMotionCss; } });
|
|
358
674
|
Object.defineProperty(exports, "syntaxCss", { enumerable: true, get: function () { return Style_1.syntaxCss; } });
|
|
359
675
|
var brand_1 = require("src/brand.ts");
|
|
360
676
|
Object.defineProperty(exports, "pragmaticTheme", { enumerable: true, get: function () { return brand_1.pragmaticTheme; } });
|
|
361
677
|
Object.defineProperty(exports, "pragmaticThemeWithPalette", { enumerable: true, get: function () { return brand_1.pragmaticThemeWithPalette; } });
|
|
678
|
+
var workspaceCss_1 = require("src/Style/usecase/workspaceCss.ts");
|
|
679
|
+
Object.defineProperty(exports, "workspaceOptions", { enumerable: true, get: function () { return workspaceCss_1.workspaceOptions; } });
|
|
680
|
+
Object.defineProperty(exports, "workspaceCss", { enumerable: true, get: function () { return workspaceCss_1.workspaceCss; } });
|
|
681
|
+
var classHooks_2 = require("src/Meta/model/classHooks.ts");
|
|
682
|
+
Object.defineProperty(exports, "workspaceClass", { enumerable: true, get: function () { return classHooks_2.workspaceClass; } });
|
|
683
|
+
Object.defineProperty(exports, "pinnedClass", { enumerable: true, get: function () { return classHooks_2.pinnedClass; } });
|
|
684
|
+
Object.defineProperty(exports, "browserClass", { enumerable: true, get: function () { return classHooks_2.browserClass; } });
|
|
685
|
+
Object.defineProperty(exports, "menuClass", { enumerable: true, get: function () { return classHooks_2.menuClass; } });
|
|
686
|
+
Object.defineProperty(exports, "seamClass", { enumerable: true, get: function () { return classHooks_2.seamClass; } });
|
|
687
|
+
Object.defineProperty(exports, "menuOpenAttr", { enumerable: true, get: function () { return classHooks_2.menuOpenAttr; } });
|
|
688
|
+
Object.defineProperty(exports, "menuCompactAttr", { enumerable: true, get: function () { return classHooks_2.menuCompactAttr; } });
|
|
689
|
+
Object.defineProperty(exports, "phoneAttr", { enumerable: true, get: function () { return classHooks_2.phoneAttr; } });
|
|
690
|
+
Object.defineProperty(exports, "programmaticScrollAttr", { enumerable: true, get: function () { return classHooks_2.programmaticScrollAttr; } });
|
|
691
|
+
Object.defineProperty(exports, "widthAttr", { enumerable: true, get: function () { return classHooks_2.widthAttr; } });
|
|
692
|
+
Object.defineProperty(exports, "navClass", { enumerable: true, get: function () { return classHooks_2.navClass; } });
|
|
693
|
+
Object.defineProperty(exports, "navNumberedClass", { enumerable: true, get: function () { return classHooks_2.navNumberedClass; } });
|
|
694
|
+
Object.defineProperty(exports, "navGroupClass", { enumerable: true, get: function () { return classHooks_2.navGroupClass; } });
|
|
695
|
+
Object.defineProperty(exports, "navGroupTitleClass", { enumerable: true, get: function () { return classHooks_2.navGroupTitleClass; } });
|
|
696
|
+
Object.defineProperty(exports, "navLinkClass", { enumerable: true, get: function () { return classHooks_2.navLinkClass; } });
|
|
697
|
+
Object.defineProperty(exports, "navFlatClass", { enumerable: true, get: function () { return classHooks_2.navFlatClass; } });
|
|
698
|
+
Object.defineProperty(exports, "navSubgroupClass", { enumerable: true, get: function () { return classHooks_2.navSubgroupClass; } });
|
|
699
|
+
Object.defineProperty(exports, "navSubgroupTitleClass", { enumerable: true, get: function () { return classHooks_2.navSubgroupTitleClass; } });
|
|
362
700
|
|
|
363
701
|
},
|
|
364
702
|
"src/Component/usecase/themeToggle.ts": function (module, exports, require) {
|
|
365
703
|
"use strict";
|
|
366
704
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
367
|
-
exports.themeToggleCss = exports.staticThemeToggle = exports.themeToggleClass = exports.themeToggle = void 0;
|
|
705
|
+
exports.themeToggleCss = exports.staticThemeToggle = exports.moonClass = exports.sunClass = exports.themeToggleClass = exports.themeToggle = void 0;
|
|
706
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
707
|
+
Object.defineProperty(exports, "themeToggleClass", { enumerable: true, get: function () { return classHooks_1.themeToggleClass; } });
|
|
708
|
+
Object.defineProperty(exports, "sunClass", { enumerable: true, get: function () { return classHooks_1.sunClass; } });
|
|
709
|
+
Object.defineProperty(exports, "moonClass", { enumerable: true, get: function () { return classHooks_1.moonClass; } });
|
|
368
710
|
const plgg_view_1 = require("plgg-view");
|
|
369
711
|
const Style_1 = require("src/Style/index.ts");
|
|
370
712
|
const style_1 = require("plgg-view/style");
|
|
@@ -392,9 +734,8 @@ const themeToggle = (props) => (0, plgg_view_1.button)([
|
|
|
392
734
|
: icon(MOON_D),
|
|
393
735
|
]);
|
|
394
736
|
exports.themeToggle = themeToggle;
|
|
395
|
-
|
|
396
|
-
const
|
|
397
|
-
const MOON_CLASS = "pm-moon";
|
|
737
|
+
const SUN_CLASS = classHooks_1.sunClass;
|
|
738
|
+
const MOON_CLASS = classHooks_1.moonClass;
|
|
398
739
|
const staticIcon = (cls, d) => (0, plgg_view_1.svg)([
|
|
399
740
|
(0, plgg_view_1.class_)(cls),
|
|
400
741
|
(0, plgg_view_1.attr)("viewBox", "0 0 24 24"),
|
|
@@ -404,12 +745,12 @@ const staticIcon = (cls, d) => (0, plgg_view_1.svg)([
|
|
|
404
745
|
exports.staticThemeToggle = (0, plgg_view_1.button)([
|
|
405
746
|
(0, plgg_view_1.type_)("button"),
|
|
406
747
|
(0, plgg_view_1.attr)("aria-label", "Toggle dark mode"),
|
|
407
|
-
(0, plgg_view_1.class_)(
|
|
748
|
+
(0, plgg_view_1.class_)(classHooks_1.themeToggleClass),
|
|
408
749
|
], [
|
|
409
750
|
staticIcon(SUN_CLASS, SUN_D),
|
|
410
751
|
staticIcon(MOON_CLASS, MOON_D),
|
|
411
752
|
]);
|
|
412
|
-
exports.themeToggleCss = `.${
|
|
753
|
+
exports.themeToggleCss = `.${classHooks_1.themeToggleClass}{display:inline-flex;` +
|
|
413
754
|
`align-items:center;justify-content:center;` +
|
|
414
755
|
`width:38px;height:38px;border-radius:50%;` +
|
|
415
756
|
`border:1px solid ${cvar("border")};` +
|
|
@@ -417,17 +758,17 @@ exports.themeToggleCss = `.${exports.themeToggleClass}{display:inline-flex;` +
|
|
|
417
758
|
`color:${cvar("text")};padding:0;` +
|
|
418
759
|
`cursor:pointer;transition:background-color ` +
|
|
419
760
|
`0.15s,border-color 0.15s}` +
|
|
420
|
-
`.${
|
|
761
|
+
`.${classHooks_1.themeToggleClass}:hover{border-color:` +
|
|
421
762
|
`${cvar("primary-base")}}` +
|
|
422
|
-
`.${
|
|
763
|
+
`.${classHooks_1.themeToggleClass}:focus-visible{outline:2px ` +
|
|
423
764
|
`solid ${cvar("primary-base")};` +
|
|
424
765
|
`outline-offset:2px}` +
|
|
425
766
|
`.${SUN_CLASS},.${MOON_CLASS}{width:18px;` +
|
|
426
767
|
`height:18px;display:block}` +
|
|
427
|
-
`.${
|
|
428
|
-
`html.dark .${
|
|
768
|
+
`.${classHooks_1.themeToggleClass} .${MOON_CLASS}{display:none}` +
|
|
769
|
+
`html.dark .${classHooks_1.themeToggleClass} .${SUN_CLASS}` +
|
|
429
770
|
`{display:none}` +
|
|
430
|
-
`html.dark .${
|
|
771
|
+
`html.dark .${classHooks_1.themeToggleClass} .${MOON_CLASS}` +
|
|
431
772
|
`{display:block}`;
|
|
432
773
|
|
|
433
774
|
},
|
|
@@ -435,7 +776,7 @@ exports.themeToggleCss = `.${exports.themeToggleClass}{display:inline-flex;` +
|
|
|
435
776
|
"use strict";
|
|
436
777
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
437
778
|
exports.schemeCssOf = exports.schemeCss = exports.measure = exports.typeStyle = exports.zIndex = exports.weight = exports.lineHeight = exports.fluid = exports.basis = exports.outline = exports.borderColor = exports.border = exports.textColor = exports.color = exports.bg = exports.contrastRatio = exports.applyScheme = exports.injectAppearanceScript = exports.appearanceInitScript = exports.decideScheme = exports.appearanceStorageKey = exports.hex = exports.colorHex = exports.paletteHex = exports.asPalette = exports.defaultPalette = exports.asHexColor = exports.zValue = exports.zBands = exports.metricVar = exports.metricValue = exports.metrics = exports.maxWidth = exports.minWidth = exports.breakpointPx = exports.breakpoints = exports.sansFontStack = exports.typeScale = exports.semibold = exports.medium = exports.regular = exports.fontWeights = exports.typeRoles = exports.schemes = exports.defaultTheme = exports.colorVar = exports.variants = exports.semanticRoles = exports.neutrals = exports.colors = void 0;
|
|
438
|
-
exports.syntaxCss = exports.syntaxVar = exports.syntaxHex = exports.syntaxPalette = exports.syntaxKinds = exports.reducedMotionCss = exports.metricCss = exports.chromeCss = void 0;
|
|
779
|
+
exports.workspaceCss = exports.workspaceOptions = exports.syntaxCss = exports.syntaxVar = exports.syntaxHex = exports.syntaxPalette = exports.syntaxKinds = exports.reducedMotionCss = exports.metricCss = exports.slotCss = exports.slotStyleCss = exports.asSlotStyle = exports.slotStyle = exports.slotSelector = exports.componentSlots = exports.runwayCss = exports.chromeCss = void 0;
|
|
439
780
|
var token_1 = require("src/Style/model/token.ts");
|
|
440
781
|
Object.defineProperty(exports, "colors", { enumerable: true, get: function () { return token_1.colors; } });
|
|
441
782
|
Object.defineProperty(exports, "neutrals", { enumerable: true, get: function () { return token_1.neutrals; } });
|
|
@@ -502,6 +843,16 @@ Object.defineProperty(exports, "schemeCss", { enumerable: true, get: function ()
|
|
|
502
843
|
Object.defineProperty(exports, "schemeCssOf", { enumerable: true, get: function () { return schemeCss_1.schemeCssOf; } });
|
|
503
844
|
var chromeCss_1 = require("src/Style/usecase/chromeCss.ts");
|
|
504
845
|
Object.defineProperty(exports, "chromeCss", { enumerable: true, get: function () { return chromeCss_1.chromeCss; } });
|
|
846
|
+
var runwayCss_1 = require("src/Style/usecase/runwayCss.ts");
|
|
847
|
+
Object.defineProperty(exports, "runwayCss", { enumerable: true, get: function () { return runwayCss_1.runwayCss; } });
|
|
848
|
+
var componentSlot_1 = require("src/Style/model/componentSlot.ts");
|
|
849
|
+
Object.defineProperty(exports, "componentSlots", { enumerable: true, get: function () { return componentSlot_1.componentSlots; } });
|
|
850
|
+
Object.defineProperty(exports, "slotSelector", { enumerable: true, get: function () { return componentSlot_1.slotSelector; } });
|
|
851
|
+
var slotCss_1 = require("src/Style/usecase/slotCss.ts");
|
|
852
|
+
Object.defineProperty(exports, "slotStyle", { enumerable: true, get: function () { return slotCss_1.slotStyle; } });
|
|
853
|
+
Object.defineProperty(exports, "asSlotStyle", { enumerable: true, get: function () { return slotCss_1.asSlotStyle; } });
|
|
854
|
+
Object.defineProperty(exports, "slotStyleCss", { enumerable: true, get: function () { return slotCss_1.slotStyleCss; } });
|
|
855
|
+
Object.defineProperty(exports, "slotCss", { enumerable: true, get: function () { return slotCss_1.slotCss; } });
|
|
505
856
|
var metricCss_1 = require("src/Style/usecase/metricCss.ts");
|
|
506
857
|
Object.defineProperty(exports, "metricCss", { enumerable: true, get: function () { return metricCss_1.metricCss; } });
|
|
507
858
|
var reducedMotion_1 = require("src/Style/usecase/reducedMotion.ts");
|
|
@@ -513,6 +864,9 @@ Object.defineProperty(exports, "syntaxHex", { enumerable: true, get: function ()
|
|
|
513
864
|
Object.defineProperty(exports, "syntaxVar", { enumerable: true, get: function () { return syntax_1.syntaxVar; } });
|
|
514
865
|
var syntaxCss_1 = require("src/Style/usecase/syntaxCss.ts");
|
|
515
866
|
Object.defineProperty(exports, "syntaxCss", { enumerable: true, get: function () { return syntaxCss_1.syntaxCss; } });
|
|
867
|
+
var workspaceCss_1 = require("src/Style/usecase/workspaceCss.ts");
|
|
868
|
+
Object.defineProperty(exports, "workspaceOptions", { enumerable: true, get: function () { return workspaceCss_1.workspaceOptions; } });
|
|
869
|
+
Object.defineProperty(exports, "workspaceCss", { enumerable: true, get: function () { return workspaceCss_1.workspaceCss; } });
|
|
516
870
|
|
|
517
871
|
},
|
|
518
872
|
"src/Style/model/token.ts": function (module, exports, require) {
|
|
@@ -566,6 +920,7 @@ exports.defaultTheme = {
|
|
|
566
920
|
syntax: syntax_1.syntaxPalette,
|
|
567
921
|
zBands: zIndex_1.zBandTable,
|
|
568
922
|
storageKey: appearance_1.appearanceStorageKey,
|
|
923
|
+
slots: [],
|
|
569
924
|
};
|
|
570
925
|
|
|
571
926
|
},
|
|
@@ -612,14 +967,14 @@ const paletteOf = (get) => ({
|
|
|
612
967
|
const DEFAULT_RAW = {
|
|
613
968
|
light: {
|
|
614
969
|
surface: "#ffffff",
|
|
615
|
-
"surface-2": "#
|
|
616
|
-
text: "#
|
|
617
|
-
muted: "#
|
|
618
|
-
border: "#
|
|
619
|
-
"primary-base": "#
|
|
620
|
-
"primary-text": "#
|
|
621
|
-
"primary-surface": "#
|
|
622
|
-
"primary-border": "#
|
|
970
|
+
"surface-2": "#f4f4f4",
|
|
971
|
+
text: "#000000",
|
|
972
|
+
muted: "#5c5c5c",
|
|
973
|
+
border: "#e4e4e4",
|
|
974
|
+
"primary-base": "#000000",
|
|
975
|
+
"primary-text": "#000000",
|
|
976
|
+
"primary-surface": "#f4f4f4",
|
|
977
|
+
"primary-border": "#767676",
|
|
623
978
|
"success-base": "#047857",
|
|
624
979
|
"success-text": "#065f46",
|
|
625
980
|
"success-surface": "#ecfdf5",
|
|
@@ -638,15 +993,15 @@ const DEFAULT_RAW = {
|
|
|
638
993
|
"info-border": "#2563eb",
|
|
639
994
|
},
|
|
640
995
|
dark: {
|
|
641
|
-
surface: "#
|
|
642
|
-
"surface-2": "#
|
|
643
|
-
text: "#
|
|
644
|
-
muted: "#
|
|
645
|
-
border: "#
|
|
646
|
-
"primary-base": "#
|
|
647
|
-
"primary-text": "#
|
|
648
|
-
"primary-surface": "#
|
|
649
|
-
"primary-border": "#
|
|
996
|
+
surface: "#000000",
|
|
997
|
+
"surface-2": "#141414",
|
|
998
|
+
text: "#ffffff",
|
|
999
|
+
muted: "#a8a8a8",
|
|
1000
|
+
border: "#2a2a2a",
|
|
1001
|
+
"primary-base": "#ffffff",
|
|
1002
|
+
"primary-text": "#ffffff",
|
|
1003
|
+
"primary-surface": "#141414",
|
|
1004
|
+
"primary-border": "#8a8a8a",
|
|
650
1005
|
"success-base": "#34d399",
|
|
651
1006
|
"success-text": "#34d399",
|
|
652
1007
|
"success-surface": "#022c22",
|
|
@@ -1068,19 +1423,19 @@ const chromeCss = (theme) => {
|
|
|
1068
1423
|
`.${p}-col{background:${cvar("surface")};border-right:1px solid ${cvar("border")};}` +
|
|
1069
1424
|
`.${p}-colhead{position:sticky;top:0;z-index:${(0, zIndex_1.zValue)("content")};display:flex;align-items:center;justify-content:space-between;gap:0.5rem;height:40px;padding:0 0.75rem;background:${cvar("surface-2")};border-bottom:1px solid ${cvar("border")};}` +
|
|
1070
1425
|
`.${p}-colhead-title{font-size:0.85rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;color:inherit;}` +
|
|
1071
|
-
`.${p}-colhead-link{margin-left:auto;color:${cvar("primary-base")};text-decoration:none;line-height:1;padding:0.35rem 0.55rem;border:1px solid ${cvar("border")};
|
|
1426
|
+
`.${p}-colhead-link{margin-left:auto;color:${cvar("primary-base")};text-decoration:none;line-height:1;padding:0.35rem 0.55rem;border:1px solid ${cvar("border")};background:${cvar("surface")};font-size:0.8rem;font-weight:600;white-space:nowrap;}` +
|
|
1072
1427
|
`.${p}-colhead-link:hover{background:${cvar("primary-base")};border-color:${cvar("primary-base")};color:${cvar("surface")};}` +
|
|
1073
|
-
`.${p}-close{color:${cvar("muted")};text-decoration:none;line-height:1;padding:0.25rem 0.4rem;
|
|
1428
|
+
`.${p}-close{color:${cvar("muted")};text-decoration:none;line-height:1;padding:0.25rem 0.4rem;}` +
|
|
1074
1429
|
`.${p}-close:hover{background:${cvar("primary-base")};color:${cvar("surface")};}` +
|
|
1075
1430
|
`.${p}-crumbs{display:flex;align-items:center;gap:0.4rem;min-width:0;overflow:hidden;white-space:nowrap;font-size:0.85rem;color:${cvar("muted")};}` +
|
|
1076
|
-
`.${p}-crumbs a{color:${cvar("muted")};text-decoration:none;padding:0.15rem 0.4rem;
|
|
1431
|
+
`.${p}-crumbs a{color:${cvar("muted")};text-decoration:none;padding:0.15rem 0.4rem;}` +
|
|
1077
1432
|
`.${p}-crumbs a:hover{background:${cvar("primary-base")};color:${cvar("surface")};}` +
|
|
1078
1433
|
`.${p}-crumb-here{color:${cvar("text")};font-weight:500;overflow:hidden;text-overflow:ellipsis;}` +
|
|
1079
1434
|
`.${p}-crumb-sep{color:${cvar("border")};}` +
|
|
1080
|
-
`.${p}-list{list-style:none;margin:0.75rem;padding:0.4rem;border:1px solid ${cvar("border")};
|
|
1435
|
+
`.${p}-list{list-style:none;margin:0.75rem;padding:0.4rem;border:1px solid ${cvar("border")};background:${cvar("surface-2")};}` +
|
|
1081
1436
|
`.${p}-list-item{margin:0;}` +
|
|
1082
1437
|
`.${p}-list-item+.${p}-list-item{margin-top:0.35rem;}` +
|
|
1083
|
-
`.${p}-row-link{display:block;color:${cvar("text")};text-decoration:none;padding:0.45rem 0.55rem;border:1px solid ${cvar("border")};
|
|
1438
|
+
`.${p}-row-link{display:block;color:${cvar("text")};text-decoration:none;padding:0.45rem 0.55rem;border:1px solid ${cvar("border")};background:${cvar("surface")};}` +
|
|
1084
1439
|
`.${p}-row-link:hover{border-color:${cvar("primary-base")};}` +
|
|
1085
1440
|
`.${p}-pane a[aria-current="page"]{background:${cvar("primary-base")};color:${cvar("surface")};}` +
|
|
1086
1441
|
`@media ${(0, breakpoint_1.minWidth)("snap")}{.${p}-row{height:calc(100vh - ${mvar("rail")});overflow:hidden;}.${p}-col{height:calc(100vh - ${mvar("rail")});overflow-y:auto;}}` +
|
|
@@ -1088,6 +1443,167 @@ const chromeCss = (theme) => {
|
|
|
1088
1443
|
};
|
|
1089
1444
|
exports.chromeCss = chromeCss;
|
|
1090
1445
|
|
|
1446
|
+
},
|
|
1447
|
+
"src/Style/usecase/runwayCss.ts": function (module, exports, require) {
|
|
1448
|
+
"use strict";
|
|
1449
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1450
|
+
exports.runwayCss = void 0;
|
|
1451
|
+
const breakpoint_1 = require("src/Style/model/breakpoint.ts");
|
|
1452
|
+
const runwayCss = (theme) => (opts) => {
|
|
1453
|
+
const p = theme.prefix;
|
|
1454
|
+
const gapVar = `--${p}-runway-gap`;
|
|
1455
|
+
const lastVar = `--${p}-runway-last`;
|
|
1456
|
+
return (`.${p}-row{${gapVar}:${opts.gap};flex:1;min-height:0;height:auto;gap:var(${gapVar});overflow-x:auto;overflow-y:hidden;}` +
|
|
1457
|
+
`@media ${(0, breakpoint_1.minWidth)("snap")}{.${p}-row::after{content:"";flex:0 0 calc(100% - var(${lastVar},${opts.lastFallback}) - var(${gapVar}));}}`);
|
|
1458
|
+
};
|
|
1459
|
+
exports.runwayCss = runwayCss;
|
|
1460
|
+
|
|
1461
|
+
},
|
|
1462
|
+
"src/Style/model/componentSlot.ts": function (module, exports, require) {
|
|
1463
|
+
"use strict";
|
|
1464
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1465
|
+
exports.slotSelector = exports.componentSlots = void 0;
|
|
1466
|
+
exports.componentSlots = [
|
|
1467
|
+
"scheduler",
|
|
1468
|
+
"col",
|
|
1469
|
+
"rowCol",
|
|
1470
|
+
"rowColHasMenu",
|
|
1471
|
+
"rowColHasForm",
|
|
1472
|
+
"colHasQuery",
|
|
1473
|
+
"colHasFields",
|
|
1474
|
+
"colHead",
|
|
1475
|
+
"colHeadTitle",
|
|
1476
|
+
"colHeadTitleBare",
|
|
1477
|
+
"colHeadTitleLink",
|
|
1478
|
+
"pane",
|
|
1479
|
+
"paneLink",
|
|
1480
|
+
"menuBody",
|
|
1481
|
+
"menuList",
|
|
1482
|
+
"menuLink",
|
|
1483
|
+
"query",
|
|
1484
|
+
"list",
|
|
1485
|
+
"listItem",
|
|
1486
|
+
"listItemAdjacent",
|
|
1487
|
+
"rowLink",
|
|
1488
|
+
"listActions",
|
|
1489
|
+
"listAction",
|
|
1490
|
+
"form",
|
|
1491
|
+
"formFirstChild",
|
|
1492
|
+
"field",
|
|
1493
|
+
"fieldAdjacent",
|
|
1494
|
+
"fieldLabel",
|
|
1495
|
+
"input",
|
|
1496
|
+
"btnPrimary",
|
|
1497
|
+
"formBtnPrimary",
|
|
1498
|
+
];
|
|
1499
|
+
const selectorTable = (p) => ({
|
|
1500
|
+
scheduler: `.${p}-scheduler`,
|
|
1501
|
+
col: `.${p}-col`,
|
|
1502
|
+
rowCol: `.${p}-row .${p}-col`,
|
|
1503
|
+
rowColHasMenu: `.${p}-row .${p}-col:has(.${p}-menu-body)`,
|
|
1504
|
+
rowColHasForm: `.${p}-row .${p}-col:has(.${p}-form)`,
|
|
1505
|
+
colHasQuery: `.${p}-col:has(.${p}-query)`,
|
|
1506
|
+
colHasFields: `.${p}-col:has(.${p}-fields)`,
|
|
1507
|
+
colHead: `.${p}-colhead`,
|
|
1508
|
+
colHeadTitle: `.${p}-colhead .${p}-colhead-title`,
|
|
1509
|
+
colHeadTitleBare: `.${p}-colhead-title`,
|
|
1510
|
+
colHeadTitleLink: `.${p}-colhead a.${p}-colhead-title`,
|
|
1511
|
+
pane: `.${p}-pane`,
|
|
1512
|
+
paneLink: `.${p}-pane a`,
|
|
1513
|
+
menuBody: `.${p}-menu-body`,
|
|
1514
|
+
menuList: `.${p}-menu-body ul`,
|
|
1515
|
+
menuLink: `.${p}-menu-body li a`,
|
|
1516
|
+
query: `.${p}-query`,
|
|
1517
|
+
list: `.${p}-list`,
|
|
1518
|
+
listItem: `.${p}-list-item`,
|
|
1519
|
+
listItemAdjacent: `.${p}-list-item+.${p}-list-item`,
|
|
1520
|
+
rowLink: `.${p}-row-link`,
|
|
1521
|
+
listActions: `.${p}-list-actions`,
|
|
1522
|
+
listAction: `.${p}-list-action`,
|
|
1523
|
+
form: `.${p}-form`,
|
|
1524
|
+
formFirstChild: `.${p}-form>*:first-child`,
|
|
1525
|
+
field: `.${p}-form .${p}-field`,
|
|
1526
|
+
fieldAdjacent: `.${p}-form .${p}-field+.${p}-field`,
|
|
1527
|
+
fieldLabel: `.${p}-form .${p}-field-label`,
|
|
1528
|
+
input: `.${p}-form .${p}-input`,
|
|
1529
|
+
btnPrimary: `.${p}-btn-primary`,
|
|
1530
|
+
formBtnPrimary: `.${p}-form .${p}-btn-primary`,
|
|
1531
|
+
});
|
|
1532
|
+
const slotSelector = (theme) => (slot) => selectorTable(theme.prefix)[slot];
|
|
1533
|
+
exports.slotSelector = slotSelector;
|
|
1534
|
+
|
|
1535
|
+
},
|
|
1536
|
+
"src/Style/usecase/slotCss.ts": function (module, exports, require) {
|
|
1537
|
+
"use strict";
|
|
1538
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1539
|
+
exports.slotCss = exports.slotStyleCss = exports.asSlotStyle = exports.slotStyle = void 0;
|
|
1540
|
+
const plgg_1 = require("plgg");
|
|
1541
|
+
const componentSlot_1 = require("src/Style/model/componentSlot.ts");
|
|
1542
|
+
const slotStyle = (spec) => ({
|
|
1543
|
+
slot: spec.slot,
|
|
1544
|
+
scope: (0, plgg_1.fromNullable)(spec.scope),
|
|
1545
|
+
state: (0, plgg_1.fromNullable)(spec.state),
|
|
1546
|
+
within: (0, plgg_1.fromNullable)(spec.within),
|
|
1547
|
+
declarations: spec.declarations,
|
|
1548
|
+
});
|
|
1549
|
+
exports.slotStyle = slotStyle;
|
|
1550
|
+
const escapeSafe = (s) => !/[<>&{}]/.test(s);
|
|
1551
|
+
const at = (obj, key) => typeof obj === "object" &&
|
|
1552
|
+
obj !== null &&
|
|
1553
|
+
key in obj
|
|
1554
|
+
? new Map(Object.entries(obj)).get(key)
|
|
1555
|
+
: undefined;
|
|
1556
|
+
const isSlot = (v) => typeof v === "string" &&
|
|
1557
|
+
componentSlot_1.componentSlots.some((s) => s === v);
|
|
1558
|
+
const optField = (value, label) => value === undefined
|
|
1559
|
+
? (0, plgg_1.ok)((0, plgg_1.none)())
|
|
1560
|
+
: typeof value === "string" &&
|
|
1561
|
+
escapeSafe(value)
|
|
1562
|
+
? (0, plgg_1.ok)((0, plgg_1.some)(value))
|
|
1563
|
+
: (0, plgg_1.err)((0, plgg_1.invalidError)({
|
|
1564
|
+
message: `slot style ${label} is not an escape-safe string`,
|
|
1565
|
+
}));
|
|
1566
|
+
const asSlotStyle = (value) => {
|
|
1567
|
+
const slot = at(value, "slot");
|
|
1568
|
+
if (!isSlot(slot)) {
|
|
1569
|
+
return (0, plgg_1.err)((0, plgg_1.invalidError)({
|
|
1570
|
+
message: "slot style has no declared slot",
|
|
1571
|
+
}));
|
|
1572
|
+
}
|
|
1573
|
+
const decls = at(value, "declarations");
|
|
1574
|
+
if (typeof decls !== "string" ||
|
|
1575
|
+
decls.length === 0 ||
|
|
1576
|
+
!escapeSafe(decls)) {
|
|
1577
|
+
return (0, plgg_1.err)((0, plgg_1.invalidError)({
|
|
1578
|
+
message: "slot style declarations are not a non-empty escape-safe string",
|
|
1579
|
+
}));
|
|
1580
|
+
}
|
|
1581
|
+
const scope = optField(at(value, "scope"), "scope");
|
|
1582
|
+
const state = optField(at(value, "state"), "state");
|
|
1583
|
+
const within = optField(at(value, "within"), "within");
|
|
1584
|
+
return (0, plgg_1.isOk)(scope) &&
|
|
1585
|
+
(0, plgg_1.isOk)(state) &&
|
|
1586
|
+
(0, plgg_1.isOk)(within)
|
|
1587
|
+
? (0, plgg_1.ok)({
|
|
1588
|
+
slot,
|
|
1589
|
+
scope: scope.content,
|
|
1590
|
+
state: state.content,
|
|
1591
|
+
within: within.content,
|
|
1592
|
+
declarations: decls,
|
|
1593
|
+
})
|
|
1594
|
+
: (0, plgg_1.err)((0, plgg_1.invalidError)({
|
|
1595
|
+
message: "slot style has a malformed context field",
|
|
1596
|
+
}));
|
|
1597
|
+
};
|
|
1598
|
+
exports.asSlotStyle = asSlotStyle;
|
|
1599
|
+
const prefixOf = (scope) => (0, plgg_1.matchOption)(() => "", (s) => `${s} `)(scope);
|
|
1600
|
+
const suffixOf = (state) => (0, plgg_1.matchOption)(() => "", (s) => s)(state);
|
|
1601
|
+
const descendantOf = (within) => (0, plgg_1.matchOption)(() => "", (s) => ` ${s}`)(within);
|
|
1602
|
+
const slotStyleCss = (theme) => (style) => `${prefixOf(style.scope)}${(0, componentSlot_1.slotSelector)(theme)(style.slot)}${suffixOf(style.state)}${descendantOf(style.within)}{${style.declarations}}`;
|
|
1603
|
+
exports.slotStyleCss = slotStyleCss;
|
|
1604
|
+
const slotCss = (theme) => theme.slots.map((0, exports.slotStyleCss)(theme)).join("");
|
|
1605
|
+
exports.slotCss = slotCss;
|
|
1606
|
+
|
|
1091
1607
|
},
|
|
1092
1608
|
"src/Style/usecase/metricCss.ts": function (module, exports, require) {
|
|
1093
1609
|
"use strict";
|
|
@@ -1125,6 +1641,44 @@ const syntaxCss = (theme) => `:root{${varsFor(theme, "light")}}html.dark{${varsF
|
|
|
1125
1641
|
rulesFor(theme);
|
|
1126
1642
|
exports.syntaxCss = syntaxCss;
|
|
1127
1643
|
|
|
1644
|
+
},
|
|
1645
|
+
"src/Style/usecase/workspaceCss.ts": function (module, exports, require) {
|
|
1646
|
+
"use strict";
|
|
1647
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1648
|
+
exports.workspaceCss = exports.workspaceOptions = void 0;
|
|
1649
|
+
const token_1 = require("src/Style/model/token.ts");
|
|
1650
|
+
const zIndex_1 = require("src/Style/model/zIndex.ts");
|
|
1651
|
+
const breakpoint_1 = require("src/Style/model/breakpoint.ts");
|
|
1652
|
+
exports.workspaceOptions = {
|
|
1653
|
+
rail: "64px",
|
|
1654
|
+
reading: "640px",
|
|
1655
|
+
menu: "220px",
|
|
1656
|
+
column: "320px",
|
|
1657
|
+
};
|
|
1658
|
+
const workspaceCss = (theme) => (opts) => {
|
|
1659
|
+
const p = theme.prefix;
|
|
1660
|
+
const cvar = (0, token_1.colorVar)(theme);
|
|
1661
|
+
const v = (name) => `--${p}-strip-${name}`;
|
|
1662
|
+
const ws = `.${p}-workspace`;
|
|
1663
|
+
const col = `.${p}-browser .${p}-col`;
|
|
1664
|
+
const width = (kind) => `${col}[data-${p}-width="${kind}"]`;
|
|
1665
|
+
const column = `var(${v("column")},${opts.column})`;
|
|
1666
|
+
return (`${ws}{display:grid;grid-template-columns:var(${v("track")},100vw) max-content;grid-template-rows:100%;height:100dvh;overflow-x:auto;overflow-y:hidden;overflow-anchor:none;overscroll-behavior-x:contain;}` +
|
|
1667
|
+
`.${p}-browser{position:relative;grid-column:2;grid-row:1;height:100%;min-width:var(${v("minimum")},0);width:max-content;}` +
|
|
1668
|
+
`.${p}-seam{flex:0 0 var(${v("seam")},0px);}` +
|
|
1669
|
+
`.${p}-pinned{grid-column:1 / -1;grid-row:1;justify-self:start;position:sticky;left:0;z-index:${(0, zIndex_1.zValue)("chrome")};width:var(${v("panel")},100vw);height:100%;min-width:0;display:flex;flex-direction:column;overflow:hidden;background:${cvar("surface")};border-right:1px solid ${cvar("border")};}` +
|
|
1670
|
+
`.${p}-menu,${col}{box-sizing:border-box;flex:none;height:100%;min-height:0;overflow-x:hidden;overflow-y:auto;}` +
|
|
1671
|
+
`.${p}-menu{width:var(${v("menu")},${opts.menu});transition:width .16s ease;}` +
|
|
1672
|
+
`${ws}:not([data-${p}-menu-open]) .${p}-menu{display:none;}` +
|
|
1673
|
+
`${ws}[data-${p}-menu-compact]:not([data-${p}-phone]) .${p}-menu{width:${opts.rail};}` +
|
|
1674
|
+
`${width("fit")}{width:${column};}` +
|
|
1675
|
+
`${width("wide")}{width:min(calc(${column} * 2),100vw);}` +
|
|
1676
|
+
`${width("read")}{width:min(clamp(${opts.reading},45vw,calc(${opts.reading} * 1.5)),100vw);}` +
|
|
1677
|
+
`@media ${(0, breakpoint_1.maxWidth)("sm")}{${ws}{grid-template-columns:0 max-content;scroll-snap-type:x mandatory;}.${p}-pinned{border-right-width:0;}${ws}[data-${p}-programmatic-scroll]{scroll-snap-type:none;}.${p}-menu,${col}{scroll-snap-align:start;scroll-snap-stop:always;}}` +
|
|
1678
|
+
`@media (prefers-reduced-motion:reduce){.${p}-menu{transition:none;}}`);
|
|
1679
|
+
};
|
|
1680
|
+
exports.workspaceCss = workspaceCss;
|
|
1681
|
+
|
|
1128
1682
|
},
|
|
1129
1683
|
"src/Component/model/interaction.ts": function (module, exports, require) {
|
|
1130
1684
|
"use strict";
|
|
@@ -1148,6 +1702,193 @@ exports.pressDim = {
|
|
|
1148
1702
|
styles: (0, style_1.decl)("opacity", "0.8"),
|
|
1149
1703
|
};
|
|
1150
1704
|
|
|
1705
|
+
},
|
|
1706
|
+
"src/Component/usecase/sidebarNav.ts": function (module, exports, require) {
|
|
1707
|
+
"use strict";
|
|
1708
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1709
|
+
exports.sidebarNavRevealScript = exports.sidebarNavCss = exports.sidebarNav = exports.sidebarNavClass = void 0;
|
|
1710
|
+
const plgg_1 = require("plgg");
|
|
1711
|
+
const plgg_view_1 = require("plgg-view");
|
|
1712
|
+
const Style_1 = require("src/Style/index.ts");
|
|
1713
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
1714
|
+
exports.sidebarNavClass = {
|
|
1715
|
+
nav: classHooks_1.navClass,
|
|
1716
|
+
numbered: classHooks_1.navNumberedClass,
|
|
1717
|
+
group: classHooks_1.navGroupClass,
|
|
1718
|
+
groupTitle: classHooks_1.navGroupTitleClass,
|
|
1719
|
+
link: classHooks_1.navLinkClass,
|
|
1720
|
+
flat: classHooks_1.navFlatClass,
|
|
1721
|
+
subgroup: classHooks_1.navSubgroupClass,
|
|
1722
|
+
subgroupTitle: classHooks_1.navSubgroupTitleClass,
|
|
1723
|
+
};
|
|
1724
|
+
const sidebarNav = (props) => {
|
|
1725
|
+
const c = exports.sidebarNavClass;
|
|
1726
|
+
const linkAttrs = (href) => props.current(href)
|
|
1727
|
+
? [
|
|
1728
|
+
(0, plgg_view_1.attr)("href", props.resolve(href)),
|
|
1729
|
+
(0, plgg_view_1.attr)("aria-current", "page"),
|
|
1730
|
+
(0, plgg_view_1.class_)(c.link),
|
|
1731
|
+
]
|
|
1732
|
+
: [
|
|
1733
|
+
(0, plgg_view_1.attr)("href", props.resolve(href)),
|
|
1734
|
+
(0, plgg_view_1.class_)(c.link),
|
|
1735
|
+
];
|
|
1736
|
+
const leaf = (item) => (0, plgg_1.matchOption)(() => (0, plgg_view_1.span)([(0, plgg_view_1.class_)(c.flat)], [(0, plgg_view_1.text)(item.label)]), (href) => (0, plgg_view_1.a)(linkAttrs(href), [(0, plgg_view_1.text)(item.label)]))(item.href);
|
|
1737
|
+
const renderItem = (item) => item.children.length === 0
|
|
1738
|
+
? leaf(item)
|
|
1739
|
+
: (0, plgg_view_1.div)([(0, plgg_view_1.class_)(c.subgroup)], [
|
|
1740
|
+
(0, plgg_1.matchOption)(() => (0, plgg_view_1.div)([(0, plgg_view_1.class_)(c.subgroupTitle)], [(0, plgg_view_1.text)(item.label)]), (href) => (0, plgg_view_1.a)(linkAttrs(href), [
|
|
1741
|
+
(0, plgg_view_1.text)(item.label),
|
|
1742
|
+
]))(item.href),
|
|
1743
|
+
...item.children.map(renderItem),
|
|
1744
|
+
]);
|
|
1745
|
+
const holdsCurrent = (items) => items.some((item) => (0, plgg_1.matchOption)(() => false, props.current)(item.href) ||
|
|
1746
|
+
holdsCurrent(item.children));
|
|
1747
|
+
const group = (g) => props.toggle
|
|
1748
|
+
? (0, plgg_view_1.details)(holdsCurrent(g.items)
|
|
1749
|
+
? [
|
|
1750
|
+
(0, plgg_view_1.class_)(c.group),
|
|
1751
|
+
(0, plgg_view_1.attr)("name", c.group),
|
|
1752
|
+
(0, plgg_view_1.attr)("open", ""),
|
|
1753
|
+
]
|
|
1754
|
+
: [
|
|
1755
|
+
(0, plgg_view_1.class_)(c.group),
|
|
1756
|
+
(0, plgg_view_1.attr)("name", c.group),
|
|
1757
|
+
], [
|
|
1758
|
+
(0, plgg_view_1.summary)([(0, plgg_view_1.class_)(c.groupTitle)], [(0, plgg_view_1.text)(g.label)]),
|
|
1759
|
+
...g.items.map(renderItem),
|
|
1760
|
+
])
|
|
1761
|
+
: (0, plgg_view_1.div)([(0, plgg_view_1.class_)(c.group)], [
|
|
1762
|
+
(0, plgg_view_1.div)([(0, plgg_view_1.class_)(c.groupTitle)], [(0, plgg_view_1.text)(g.label)]),
|
|
1763
|
+
...g.items.map(renderItem),
|
|
1764
|
+
]);
|
|
1765
|
+
return (0, plgg_view_1.nav)([
|
|
1766
|
+
(0, plgg_view_1.class_)(props.numbered
|
|
1767
|
+
? c.nav + " " + c.numbered
|
|
1768
|
+
: c.nav),
|
|
1769
|
+
(0, plgg_view_1.attr)("aria-label", props.label),
|
|
1770
|
+
], props.groups.map(group));
|
|
1771
|
+
};
|
|
1772
|
+
exports.sidebarNav = sidebarNav;
|
|
1773
|
+
const sidebarNavCss = (theme) => {
|
|
1774
|
+
const cvar = (0, Style_1.colorVar)(theme);
|
|
1775
|
+
const c = exports.sidebarNavClass;
|
|
1776
|
+
return `.${c.nav}{display:block}
|
|
1777
|
+
/* top-level section header — always visible, no collapse */
|
|
1778
|
+
.${c.group}{margin:0}
|
|
1779
|
+
.${c.groupTitle}{
|
|
1780
|
+
padding:1.1rem 1.25rem 0.4rem;font-size:0.75rem;
|
|
1781
|
+
line-height:1.25rem;
|
|
1782
|
+
font-weight:500;color:${cvar("muted")};
|
|
1783
|
+
border-bottom:1px solid ${cvar("border")};
|
|
1784
|
+
}
|
|
1785
|
+
/* leaves + subgroup headers: an inverted pill on hover;
|
|
1786
|
+
the active leaf wears the same pill permanently (both
|
|
1787
|
+
tokens flip under dark). Active and inactive share one
|
|
1788
|
+
box so the current page never reflows its neighbours. */
|
|
1789
|
+
/* qmu's text-sm pins the leading at 1.25rem (20px) and
|
|
1790
|
+
gap-px separates items - a 29px pitch, tighter than the
|
|
1791
|
+
prose leading these would otherwise inherit. */
|
|
1792
|
+
.${c.link}{
|
|
1793
|
+
display:block;
|
|
1794
|
+
padding:0.5rem 1.25rem;
|
|
1795
|
+
border-bottom:1px solid ${cvar("border")};
|
|
1796
|
+
font-size:0.875rem;line-height:1.45;
|
|
1797
|
+
color:${cvar("text")};
|
|
1798
|
+
}
|
|
1799
|
+
.${c.link}:hover{
|
|
1800
|
+
background:${cvar("surface-2")};
|
|
1801
|
+
text-decoration:none;
|
|
1802
|
+
}
|
|
1803
|
+
.${c.link}:focus-visible{
|
|
1804
|
+
background:${cvar("primary-base")};
|
|
1805
|
+
color:${cvar("surface")};
|
|
1806
|
+
text-decoration:none;
|
|
1807
|
+
}
|
|
1808
|
+
.${c.link}[aria-current]{
|
|
1809
|
+
background:${cvar("primary-base")};
|
|
1810
|
+
color:${cvar("surface")};
|
|
1811
|
+
border-bottom-color:${cvar("primary-base")};
|
|
1812
|
+
}
|
|
1813
|
+
.${c.flat}{
|
|
1814
|
+
display:block;
|
|
1815
|
+
padding:0.5rem 1.25rem;
|
|
1816
|
+
border-bottom:1px solid ${cvar("border")};
|
|
1817
|
+
font-size:0.875rem;line-height:1.45;
|
|
1818
|
+
color:${cvar("muted")};
|
|
1819
|
+
}
|
|
1820
|
+
/* a nested group: its header, then its children, always
|
|
1821
|
+
shown (no disclosure). qmu keeps the whole tree flush
|
|
1822
|
+
left — hierarchy reads from weight and spacing alone,
|
|
1823
|
+
never indentation (SidebarTree.tsx has no pl-/ml-). */
|
|
1824
|
+
.${c.subgroup}{margin:0}
|
|
1825
|
+
.${c.subgroupTitle}{
|
|
1826
|
+
padding:0.5rem 1.25rem;font-size:0.875rem;
|
|
1827
|
+
line-height:1.45;
|
|
1828
|
+
border-bottom:1px solid ${cvar("border")};
|
|
1829
|
+
font-weight:600;color:${cvar("text")};
|
|
1830
|
+
}
|
|
1831
|
+
.${c.numbered}{counter-reset:sample}
|
|
1832
|
+
/* toggle groups: a disclosure per section. The summary
|
|
1833
|
+
wears the links' inverted pill on hover, its chevron
|
|
1834
|
+
turns as the section opens, and the section's height
|
|
1835
|
+
eases where the browser can interpolate to auto. */
|
|
1836
|
+
details.${c.group}{counter-reset:sample;interpolate-size:allow-keywords}
|
|
1837
|
+
details.${c.group} summary{
|
|
1838
|
+
cursor:pointer;list-style:none;display:flex;
|
|
1839
|
+
justify-content:space-between;align-items:center;
|
|
1840
|
+
padding:.7rem 1.25rem;font-size:.8rem;user-select:none;
|
|
1841
|
+
transition:background-color .15s ease,color .15s ease;
|
|
1842
|
+
}
|
|
1843
|
+
details.${c.group} summary::-webkit-details-marker{display:none}
|
|
1844
|
+
details.${c.group} summary::after{
|
|
1845
|
+
content:"";width:.4rem;height:.4rem;margin-right:.2rem;
|
|
1846
|
+
border-right:1px solid currentColor;
|
|
1847
|
+
border-bottom:1px solid currentColor;
|
|
1848
|
+
transform:rotate(-45deg);transition:transform .2s ease;
|
|
1849
|
+
}
|
|
1850
|
+
details.${c.group}[open] summary::after{transform:rotate(45deg)}
|
|
1851
|
+
details.${c.group}[open] summary{color:${cvar("text")}}
|
|
1852
|
+
details.${c.group} summary:hover,
|
|
1853
|
+
details.${c.group} summary:focus-visible{
|
|
1854
|
+
background:${cvar("primary-base")};
|
|
1855
|
+
color:${cvar("surface")};outline:0;
|
|
1856
|
+
}
|
|
1857
|
+
details.${c.group} summary:active{opacity:.8}
|
|
1858
|
+
details.${c.group}::details-content{
|
|
1859
|
+
block-size:0;overflow:clip;
|
|
1860
|
+
transition:block-size .22s ease,
|
|
1861
|
+
content-visibility .22s allow-discrete;
|
|
1862
|
+
}
|
|
1863
|
+
details.${c.group}[open]::details-content{block-size:auto}
|
|
1864
|
+
details.${c.group} .${c.link}{
|
|
1865
|
+
transition:background-color .15s ease,color .15s ease,
|
|
1866
|
+
padding-left .15s ease;
|
|
1867
|
+
}
|
|
1868
|
+
details.${c.group} .${c.link}:hover{padding-left:1.5rem}
|
|
1869
|
+
details.${c.group} .${c.link}[aria-current]:hover{
|
|
1870
|
+
padding-left:1.25rem;
|
|
1871
|
+
}
|
|
1872
|
+
@media (prefers-reduced-motion:reduce){
|
|
1873
|
+
details.${c.group} summary,
|
|
1874
|
+
details.${c.group} summary::after,
|
|
1875
|
+
details.${c.group}::details-content,
|
|
1876
|
+
details.${c.group} .${c.link}{transition:none}
|
|
1877
|
+
}
|
|
1878
|
+
.${c.numbered} .${c.link}{counter-increment:sample}
|
|
1879
|
+
.${c.numbered} .${c.link}::before{content:counter(sample,decimal-leading-zero);font-variant-numeric:tabular-nums;margin-right:1rem}`;
|
|
1880
|
+
};
|
|
1881
|
+
exports.sidebarNavCss = sidebarNavCss;
|
|
1882
|
+
exports.sidebarNavRevealScript = "(function(){var a=document.querySelector(" +
|
|
1883
|
+
JSON.stringify("." + exports.sidebarNavClass.nav + " [aria-current]") +
|
|
1884
|
+
");for(var b=a&&a.parentElement;b;b=b.parentElement){" +
|
|
1885
|
+
"if(b.scrollHeight>b.clientHeight+1){" +
|
|
1886
|
+
"var r=a.getBoundingClientRect()," +
|
|
1887
|
+
"q=b.getBoundingClientRect();" +
|
|
1888
|
+
"if(r.top<q.top||r.bottom>q.bottom)" +
|
|
1889
|
+
"b.scrollTop+=r.top-q.top-q.height/2;" +
|
|
1890
|
+
"break;}}})();";
|
|
1891
|
+
|
|
1151
1892
|
},
|
|
1152
1893
|
"src/brand.ts": function (module, exports, require) {
|
|
1153
1894
|
"use strict";
|
|
@@ -1159,11 +1900,624 @@ exports.pragmaticTheme = Style_1.defaultTheme;
|
|
|
1159
1900
|
const pragmaticThemeWithPalette = (paletteInput) => (0, plgg_1.matchResult)((e) => (0, plgg_1.err)(e), (palette) => (0, plgg_1.ok)({ ...exports.pragmaticTheme, palette }))((0, Style_1.asPalette)(paletteInput));
|
|
1160
1901
|
exports.pragmaticThemeWithPalette = pragmaticThemeWithPalette;
|
|
1161
1902
|
|
|
1903
|
+
},
|
|
1904
|
+
"src/Layout/model/geometry.ts": function (module, exports, require) {
|
|
1905
|
+
"use strict";
|
|
1906
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1907
|
+
exports.reachableScroll = exports.visibleColumnStart = exports.stripStyle = exports.stripVar = exports.stripGeometry = exports.stripMetrics = void 0;
|
|
1908
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
1909
|
+
exports.stripMetrics = {
|
|
1910
|
+
menu: 220,
|
|
1911
|
+
menuShare: 0.4,
|
|
1912
|
+
column: 320,
|
|
1913
|
+
columnShare: 0.6,
|
|
1914
|
+
floor: 320,
|
|
1915
|
+
phone: 640,
|
|
1916
|
+
};
|
|
1917
|
+
const stripGeometry = (metrics) => (viewport, scroll, menuTrack) => {
|
|
1918
|
+
const narrow = viewport < metrics.phone;
|
|
1919
|
+
const menu = menuTrack === "closed"
|
|
1920
|
+
? 0
|
|
1921
|
+
: narrow
|
|
1922
|
+
? viewport
|
|
1923
|
+
: menuTrack === "open"
|
|
1924
|
+
? Math.min(metrics.menu, viewport * metrics.menuShare)
|
|
1925
|
+
: menuTrack;
|
|
1926
|
+
const column = narrow
|
|
1927
|
+
? viewport
|
|
1928
|
+
: Math.min(metrics.column, viewport * metrics.columnShare);
|
|
1929
|
+
const track = viewport - menu;
|
|
1930
|
+
const floor = Math.min(metrics.floor, viewport - column);
|
|
1931
|
+
return {
|
|
1932
|
+
menu,
|
|
1933
|
+
column,
|
|
1934
|
+
track,
|
|
1935
|
+
floor,
|
|
1936
|
+
seam: Math.max(0, viewport - floor - column),
|
|
1937
|
+
layoutMinimum: viewport - floor,
|
|
1938
|
+
width: Math.max(floor, track - Math.max(0, scroll)),
|
|
1939
|
+
};
|
|
1940
|
+
};
|
|
1941
|
+
exports.stripGeometry = stripGeometry;
|
|
1942
|
+
exports.stripVar = {
|
|
1943
|
+
track: (0, classHooks_1.cssVar)("strip-track"),
|
|
1944
|
+
width: (0, classHooks_1.cssVar)("strip-panel"),
|
|
1945
|
+
menu: (0, classHooks_1.cssVar)("strip-menu"),
|
|
1946
|
+
column: (0, classHooks_1.cssVar)("strip-column"),
|
|
1947
|
+
layoutMinimum: (0, classHooks_1.cssVar)("strip-minimum"),
|
|
1948
|
+
seam: (0, classHooks_1.cssVar)("strip-seam"),
|
|
1949
|
+
};
|
|
1950
|
+
const stripStyle = (g) => [
|
|
1951
|
+
`${exports.stripVar.track}:${g.track}px`,
|
|
1952
|
+
`${exports.stripVar.width}:${g.width}px`,
|
|
1953
|
+
`${exports.stripVar.menu}:${g.menu}px`,
|
|
1954
|
+
`${exports.stripVar.column}:${g.column}px`,
|
|
1955
|
+
`${exports.stripVar.layoutMinimum}:${g.layoutMinimum}px`,
|
|
1956
|
+
`${exports.stripVar.seam}:${g.seam}px`,
|
|
1957
|
+
].join(";");
|
|
1958
|
+
exports.stripStyle = stripStyle;
|
|
1959
|
+
const visibleColumnStart = (widths, viewport, pinned) => {
|
|
1960
|
+
const back = (start, used) => {
|
|
1961
|
+
const before = widths[start - 1];
|
|
1962
|
+
return start > 0 &&
|
|
1963
|
+
before !== undefined &&
|
|
1964
|
+
used + before <= viewport - pinned
|
|
1965
|
+
? back(start - 1, used + before)
|
|
1966
|
+
: start;
|
|
1967
|
+
};
|
|
1968
|
+
const last = Math.max(0, widths.length - 1);
|
|
1969
|
+
return back(last, widths[last] ?? 0);
|
|
1970
|
+
};
|
|
1971
|
+
exports.visibleColumnStart = visibleColumnStart;
|
|
1972
|
+
const reachableScroll = (left, scrollWidth, clientWidth) => Math.max(0, Math.min(left, Math.max(0, scrollWidth - clientWidth)));
|
|
1973
|
+
exports.reachableScroll = reachableScroll;
|
|
1974
|
+
|
|
1975
|
+
},
|
|
1976
|
+
"src/Layout/model/reveal.ts": function (module, exports, require) {
|
|
1977
|
+
"use strict";
|
|
1978
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1979
|
+
exports.glideEase = exports.revealTarget = void 0;
|
|
1980
|
+
const revealTarget = (current, maximum, visible, column) => {
|
|
1981
|
+
const delta = column.right - column.left >
|
|
1982
|
+
visible.right - visible.left
|
|
1983
|
+
? column.right - visible.right
|
|
1984
|
+
: column.left < visible.left
|
|
1985
|
+
? column.left - visible.left
|
|
1986
|
+
: column.right > visible.right
|
|
1987
|
+
? column.right - visible.right
|
|
1988
|
+
: 0;
|
|
1989
|
+
return Math.max(0, Math.min(maximum, current + delta));
|
|
1990
|
+
};
|
|
1991
|
+
exports.revealTarget = revealTarget;
|
|
1992
|
+
const glideEase = (progress) => 1 -
|
|
1993
|
+
Math.pow(1 - Math.max(0, Math.min(1, progress)), 3);
|
|
1994
|
+
exports.glideEase = glideEase;
|
|
1995
|
+
|
|
1996
|
+
},
|
|
1997
|
+
"src/Layout/usecase/revealColumn.ts": function (module, exports, require) {
|
|
1998
|
+
"use strict";
|
|
1999
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2000
|
+
exports.revealColumn = exports.revealOptions = void 0;
|
|
2001
|
+
const reveal_1 = require("src/Layout/model/reveal.ts");
|
|
2002
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
2003
|
+
exports.revealOptions = {
|
|
2004
|
+
behavior: "smooth",
|
|
2005
|
+
sticky: null,
|
|
2006
|
+
duration: 280,
|
|
2007
|
+
marker: classHooks_1.programmaticScrollAttr,
|
|
2008
|
+
};
|
|
2009
|
+
const glides = new WeakMap();
|
|
2010
|
+
const revealColumn = (strip, column, options = exports.revealOptions) => {
|
|
2011
|
+
const bounds = strip.getBoundingClientRect();
|
|
2012
|
+
const right = bounds.left + strip.clientWidth;
|
|
2013
|
+
const stuck = options.sticky instanceof HTMLElement &&
|
|
2014
|
+
["sticky", "fixed"].includes(getComputedStyle(options.sticky).position)
|
|
2015
|
+
? options.sticky.getBoundingClientRect()
|
|
2016
|
+
.right
|
|
2017
|
+
: bounds.left;
|
|
2018
|
+
const left = stuck > bounds.left && stuck < right
|
|
2019
|
+
? stuck
|
|
2020
|
+
: bounds.left;
|
|
2021
|
+
const target = (0, reveal_1.revealTarget)(strip.scrollLeft, strip.scrollWidth - strip.clientWidth, { left, right }, column.getBoundingClientRect());
|
|
2022
|
+
glides.get(strip)?.abort();
|
|
2023
|
+
if (options.behavior !== "smooth" ||
|
|
2024
|
+
Math.abs(target - strip.scrollLeft) < 1) {
|
|
2025
|
+
strip.removeAttribute(options.marker);
|
|
2026
|
+
strip.scrollTo({
|
|
2027
|
+
left: target,
|
|
2028
|
+
behavior: "auto",
|
|
2029
|
+
});
|
|
2030
|
+
return;
|
|
2031
|
+
}
|
|
2032
|
+
const controller = new AbortController();
|
|
2033
|
+
const from = strip.scrollLeft;
|
|
2034
|
+
const start = performance.now();
|
|
2035
|
+
glides.set(strip, controller);
|
|
2036
|
+
strip.setAttribute(options.marker, "");
|
|
2037
|
+
const end = () => {
|
|
2038
|
+
controller.abort();
|
|
2039
|
+
strip.removeAttribute(options.marker);
|
|
2040
|
+
};
|
|
2041
|
+
[
|
|
2042
|
+
"pointerdown",
|
|
2043
|
+
"touchstart",
|
|
2044
|
+
"wheel",
|
|
2045
|
+
"keydown",
|
|
2046
|
+
].forEach((event) => strip.addEventListener(event, end, {
|
|
2047
|
+
passive: true,
|
|
2048
|
+
once: true,
|
|
2049
|
+
signal: controller.signal,
|
|
2050
|
+
}));
|
|
2051
|
+
const step = (now) => {
|
|
2052
|
+
if (controller.signal.aborted ||
|
|
2053
|
+
!strip.isConnected)
|
|
2054
|
+
return;
|
|
2055
|
+
const progress = Math.min(1, (now - start) / options.duration);
|
|
2056
|
+
strip.scrollLeft =
|
|
2057
|
+
from +
|
|
2058
|
+
(target - from) * (0, reveal_1.glideEase)(progress);
|
|
2059
|
+
if (progress < 1)
|
|
2060
|
+
requestAnimationFrame(step);
|
|
2061
|
+
else {
|
|
2062
|
+
strip.scrollLeft = target;
|
|
2063
|
+
end();
|
|
2064
|
+
}
|
|
2065
|
+
};
|
|
2066
|
+
requestAnimationFrame(step);
|
|
2067
|
+
};
|
|
2068
|
+
exports.revealColumn = revealColumn;
|
|
2069
|
+
|
|
2070
|
+
},
|
|
2071
|
+
"src/Layout/usecase/workspace.ts": function (module, exports, require) {
|
|
2072
|
+
"use strict";
|
|
2073
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2074
|
+
exports.widthColumn = exports.menuColumn = exports.browser = exports.pinnedPanel = exports.workspaceWith = exports.workspace = void 0;
|
|
2075
|
+
const plgg_view_1 = require("plgg-view");
|
|
2076
|
+
const styleEntry_1 = require("src/styleEntry.ts");
|
|
2077
|
+
const combinators_1 = require("src/Layout/usecase/combinators.ts");
|
|
2078
|
+
const geometry_1 = require("src/Layout/model/geometry.ts");
|
|
2079
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
2080
|
+
const flag = (on, name) => on ? [(0, plgg_view_1.attr)(name, "")] : [];
|
|
2081
|
+
const workspace = (state, parts, children) => (0, exports.workspaceWith)([], state, parts, children);
|
|
2082
|
+
exports.workspace = workspace;
|
|
2083
|
+
const workspaceWith = (attributes, state, parts, children) => (0, plgg_view_1.el)("div", [
|
|
2084
|
+
(0, styleEntry_1.style_)(classHooks_1.workspaceClass, ...parts),
|
|
2085
|
+
(0, plgg_view_1.attr)("style", (0, geometry_1.stripStyle)(state.geometry)),
|
|
2086
|
+
...flag(state.menuOpen, classHooks_1.menuOpenAttr),
|
|
2087
|
+
...flag(state.menuCompact, classHooks_1.menuCompactAttr),
|
|
2088
|
+
...flag(state.phone, classHooks_1.phoneAttr),
|
|
2089
|
+
...attributes,
|
|
2090
|
+
], children);
|
|
2091
|
+
exports.workspaceWith = workspaceWith;
|
|
2092
|
+
const pinnedPanel = (parts, children) => (0, plgg_view_1.el)("aside", [(0, styleEntry_1.style_)(classHooks_1.pinnedClass, ...parts)], children);
|
|
2093
|
+
exports.pinnedPanel = pinnedPanel;
|
|
2094
|
+
const browser = (parts, children) => (0, plgg_view_1.el)("div", [(0, styleEntry_1.style_)(classHooks_1.browserClass, styleEntry_1.flex, ...parts)], [
|
|
2095
|
+
...children,
|
|
2096
|
+
(0, plgg_view_1.el)("div", [
|
|
2097
|
+
(0, styleEntry_1.style_)(classHooks_1.seamClass),
|
|
2098
|
+
(0, plgg_view_1.attr)("aria-hidden", "true"),
|
|
2099
|
+
], []),
|
|
2100
|
+
]);
|
|
2101
|
+
exports.browser = browser;
|
|
2102
|
+
const menuColumn = (parts, children) => (0, combinators_1.columnWith)([], [classHooks_1.menuClass, ...parts], children);
|
|
2103
|
+
exports.menuColumn = menuColumn;
|
|
2104
|
+
const widthColumn = (width, parts, children) => (0, combinators_1.columnWith)([(0, plgg_view_1.attr)(classHooks_1.widthAttr, width)], parts, children);
|
|
2105
|
+
exports.widthColumn = widthColumn;
|
|
2106
|
+
|
|
2107
|
+
},
|
|
2108
|
+
"src/Layout/usecase/preference.ts": function (module, exports, require) {
|
|
2109
|
+
"use strict";
|
|
2110
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2111
|
+
exports.savePreference = exports.readPreference = void 0;
|
|
2112
|
+
const plgg_1 = require("plgg");
|
|
2113
|
+
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));
|
|
2114
|
+
exports.readPreference = readPreference;
|
|
2115
|
+
const savePreference = (key, on, store = () => localStorage) => (0, plgg_1.pipe)((0, plgg_1.tryCatch)(() => {
|
|
2116
|
+
store().setItem(key, on ? "1" : "0");
|
|
2117
|
+
return true;
|
|
2118
|
+
})(undefined), (0, plgg_1.matchResult)(() => false, (saved) => saved));
|
|
2119
|
+
exports.savePreference = savePreference;
|
|
2120
|
+
|
|
2121
|
+
},
|
|
2122
|
+
"src/Navigate/index.ts": function (module, exports, require) {
|
|
2123
|
+
"use strict";
|
|
2124
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2125
|
+
exports.parseSteps = exports.printSteps = exports.trailQuery = exports.decodeTrail = exports.encodeTrail = exports.stepSeparator = exports.trailParam = exports.restep = exports.stepFrom = exports.foldTrail = exports.settledTrail = exports.resolveTrail = exports.injectNavigationScript = exports.navigationInitScript = exports.documentColumn = exports.strip = exports.navHookName = exports.spanAttr = exports.columnAttr = exports.stripAttr = exports.compositionHref = exports.compositionQuery = exports.decodeComposition = exports.escapeChar = exports.fieldSeparator = exports.entrySeparator = exports.spanParam = exports.restParam = exports.columnsOf = exports.soloComposition = exports.columnWithSpan = exports.columnOf = void 0;
|
|
2126
|
+
var Composition_1 = require("src/Navigate/model/Composition.ts");
|
|
2127
|
+
Object.defineProperty(exports, "columnOf", { enumerable: true, get: function () { return Composition_1.columnOf; } });
|
|
2128
|
+
Object.defineProperty(exports, "columnWithSpan", { enumerable: true, get: function () { return Composition_1.columnWithSpan; } });
|
|
2129
|
+
Object.defineProperty(exports, "soloComposition", { enumerable: true, get: function () { return Composition_1.soloComposition; } });
|
|
2130
|
+
Object.defineProperty(exports, "columnsOf", { enumerable: true, get: function () { return Composition_1.columnsOf; } });
|
|
2131
|
+
var compositionUrl_1 = require("src/Navigate/usecase/compositionUrl.ts");
|
|
2132
|
+
Object.defineProperty(exports, "restParam", { enumerable: true, get: function () { return compositionUrl_1.restParam; } });
|
|
2133
|
+
Object.defineProperty(exports, "spanParam", { enumerable: true, get: function () { return compositionUrl_1.spanParam; } });
|
|
2134
|
+
Object.defineProperty(exports, "entrySeparator", { enumerable: true, get: function () { return compositionUrl_1.entrySeparator; } });
|
|
2135
|
+
Object.defineProperty(exports, "fieldSeparator", { enumerable: true, get: function () { return compositionUrl_1.fieldSeparator; } });
|
|
2136
|
+
Object.defineProperty(exports, "escapeChar", { enumerable: true, get: function () { return compositionUrl_1.escapeChar; } });
|
|
2137
|
+
Object.defineProperty(exports, "decodeComposition", { enumerable: true, get: function () { return compositionUrl_1.decodeComposition; } });
|
|
2138
|
+
Object.defineProperty(exports, "compositionQuery", { enumerable: true, get: function () { return compositionUrl_1.compositionQuery; } });
|
|
2139
|
+
Object.defineProperty(exports, "compositionHref", { enumerable: true, get: function () { return compositionUrl_1.compositionHref; } });
|
|
2140
|
+
var marker_1 = require("src/Navigate/model/marker.ts");
|
|
2141
|
+
Object.defineProperty(exports, "stripAttr", { enumerable: true, get: function () { return marker_1.stripAttr; } });
|
|
2142
|
+
Object.defineProperty(exports, "columnAttr", { enumerable: true, get: function () { return marker_1.columnAttr; } });
|
|
2143
|
+
Object.defineProperty(exports, "spanAttr", { enumerable: true, get: function () { return marker_1.spanAttr; } });
|
|
2144
|
+
Object.defineProperty(exports, "navHookName", { enumerable: true, get: function () { return marker_1.navHookName; } });
|
|
2145
|
+
Object.defineProperty(exports, "strip", { enumerable: true, get: function () { return marker_1.strip; } });
|
|
2146
|
+
Object.defineProperty(exports, "documentColumn", { enumerable: true, get: function () { return marker_1.documentColumn; } });
|
|
2147
|
+
var navigationScript_1 = require("src/Navigate/usecase/navigationScript.ts");
|
|
2148
|
+
Object.defineProperty(exports, "navigationInitScript", { enumerable: true, get: function () { return navigationScript_1.navigationInitScript; } });
|
|
2149
|
+
Object.defineProperty(exports, "injectNavigationScript", { enumerable: true, get: function () { return navigationScript_1.injectNavigationScript; } });
|
|
2150
|
+
var Trail_1 = require("src/Navigate/model/Trail.ts");
|
|
2151
|
+
Object.defineProperty(exports, "resolveTrail", { enumerable: true, get: function () { return Trail_1.resolveTrail; } });
|
|
2152
|
+
Object.defineProperty(exports, "settledTrail", { enumerable: true, get: function () { return Trail_1.settledTrail; } });
|
|
2153
|
+
Object.defineProperty(exports, "foldTrail", { enumerable: true, get: function () { return Trail_1.foldTrail; } });
|
|
2154
|
+
Object.defineProperty(exports, "stepFrom", { enumerable: true, get: function () { return Trail_1.stepFrom; } });
|
|
2155
|
+
Object.defineProperty(exports, "restep", { enumerable: true, get: function () { return Trail_1.restep; } });
|
|
2156
|
+
var trailUrl_1 = require("src/Navigate/usecase/trailUrl.ts");
|
|
2157
|
+
Object.defineProperty(exports, "trailParam", { enumerable: true, get: function () { return trailUrl_1.trailParam; } });
|
|
2158
|
+
Object.defineProperty(exports, "stepSeparator", { enumerable: true, get: function () { return trailUrl_1.stepSeparator; } });
|
|
2159
|
+
Object.defineProperty(exports, "encodeTrail", { enumerable: true, get: function () { return trailUrl_1.encodeTrail; } });
|
|
2160
|
+
Object.defineProperty(exports, "decodeTrail", { enumerable: true, get: function () { return trailUrl_1.decodeTrail; } });
|
|
2161
|
+
Object.defineProperty(exports, "trailQuery", { enumerable: true, get: function () { return trailUrl_1.trailQuery; } });
|
|
2162
|
+
Object.defineProperty(exports, "printSteps", { enumerable: true, get: function () { return trailUrl_1.printSteps; } });
|
|
2163
|
+
Object.defineProperty(exports, "parseSteps", { enumerable: true, get: function () { return trailUrl_1.parseSteps; } });
|
|
2164
|
+
|
|
2165
|
+
},
|
|
2166
|
+
"src/Navigate/model/Composition.ts": function (module, exports, require) {
|
|
2167
|
+
"use strict";
|
|
2168
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2169
|
+
exports.columnsOf = exports.soloComposition = exports.columnWithSpan = exports.columnOf = void 0;
|
|
2170
|
+
const plgg_1 = require("plgg");
|
|
2171
|
+
const columnOf = (route) => ({ route, span: (0, plgg_1.none)() });
|
|
2172
|
+
exports.columnOf = columnOf;
|
|
2173
|
+
const columnWithSpan = (route, span) => ({ route, span });
|
|
2174
|
+
exports.columnWithSpan = columnWithSpan;
|
|
2175
|
+
const soloComposition = (route) => ({
|
|
2176
|
+
head: (0, exports.columnOf)(route),
|
|
2177
|
+
rest: [],
|
|
2178
|
+
});
|
|
2179
|
+
exports.soloComposition = soloComposition;
|
|
2180
|
+
const columnsOf = (composition) => [
|
|
2181
|
+
composition.head,
|
|
2182
|
+
...composition.rest,
|
|
2183
|
+
];
|
|
2184
|
+
exports.columnsOf = columnsOf;
|
|
2185
|
+
|
|
2186
|
+
},
|
|
2187
|
+
"src/Navigate/usecase/compositionUrl.ts": function (module, exports, require) {
|
|
2188
|
+
"use strict";
|
|
2189
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2190
|
+
exports.compositionHref = exports.compositionQuery = exports.decodeComposition = exports.escapeChar = exports.fieldSeparator = exports.entrySeparator = exports.spanParam = exports.restParam = void 0;
|
|
2191
|
+
const plgg_1 = require("plgg");
|
|
2192
|
+
const Composition_1 = require("src/Navigate/model/Composition.ts");
|
|
2193
|
+
exports.restParam = "c";
|
|
2194
|
+
exports.spanParam = "q";
|
|
2195
|
+
exports.entrySeparator = ",";
|
|
2196
|
+
exports.fieldSeparator = ":";
|
|
2197
|
+
exports.escapeChar = "~";
|
|
2198
|
+
const ENTRY_SEP = exports.entrySeparator;
|
|
2199
|
+
const FIELD_SEP = exports.fieldSeparator;
|
|
2200
|
+
const ESCAPE = exports.escapeChar;
|
|
2201
|
+
const escapeField = (value) => value
|
|
2202
|
+
.split(ESCAPE)
|
|
2203
|
+
.join(ESCAPE + "t")
|
|
2204
|
+
.split(ENTRY_SEP)
|
|
2205
|
+
.join(ESCAPE + "c")
|
|
2206
|
+
.split(FIELD_SEP)
|
|
2207
|
+
.join(ESCAPE + "f");
|
|
2208
|
+
const unescapeField = (value) => value
|
|
2209
|
+
.split(ESCAPE + "f")
|
|
2210
|
+
.join(FIELD_SEP)
|
|
2211
|
+
.split(ESCAPE + "c")
|
|
2212
|
+
.join(ENTRY_SEP)
|
|
2213
|
+
.split(ESCAPE + "t")
|
|
2214
|
+
.join(ESCAPE);
|
|
2215
|
+
const percent = (value) => encodeURIComponent(value)
|
|
2216
|
+
.split("%2F")
|
|
2217
|
+
.join("/")
|
|
2218
|
+
.split("%2C")
|
|
2219
|
+
.join(ENTRY_SEP)
|
|
2220
|
+
.split("%3A")
|
|
2221
|
+
.join(FIELD_SEP);
|
|
2222
|
+
const columnFrom = (route, span) => route === ""
|
|
2223
|
+
? (0, plgg_1.none)()
|
|
2224
|
+
: (0, plgg_1.some)((0, Composition_1.columnWithSpan)(unescapeField(route), span === ""
|
|
2225
|
+
? (0, plgg_1.none)()
|
|
2226
|
+
: (0, plgg_1.some)(unescapeField(span))));
|
|
2227
|
+
const parseEntry = (raw) => (0, plgg_1.pipe)(raw.indexOf(FIELD_SEP), (i) => i < 0
|
|
2228
|
+
? columnFrom(raw, "")
|
|
2229
|
+
: columnFrom(raw.slice(0, i), raw.slice(i + 1)));
|
|
2230
|
+
const parseRest = (raw) => raw
|
|
2231
|
+
.split(ENTRY_SEP)
|
|
2232
|
+
.reduce((acc, entry) => (0, plgg_1.pipe)(parseEntry(entry), (0, plgg_1.matchOption)(() => acc, (column) => [
|
|
2233
|
+
...acc,
|
|
2234
|
+
column,
|
|
2235
|
+
])), []);
|
|
2236
|
+
const decodeComposition = (route, rest, span) => ({
|
|
2237
|
+
head: (0, Composition_1.columnWithSpan)(route, (0, plgg_1.pipe)(span, (0, plgg_1.chainOption)((raw) => raw === ""
|
|
2238
|
+
? (0, plgg_1.none)()
|
|
2239
|
+
: (0, plgg_1.some)(unescapeField(raw))))),
|
|
2240
|
+
rest: (0, plgg_1.pipe)(rest, (0, plgg_1.matchOption)(() => [], (raw) => parseRest(raw))),
|
|
2241
|
+
});
|
|
2242
|
+
exports.decodeComposition = decodeComposition;
|
|
2243
|
+
const encodeEntry = (column) => escapeField(column.route) +
|
|
2244
|
+
(0, plgg_1.pipe)(column.span, (0, plgg_1.matchOption)(() => "", (span) => FIELD_SEP + escapeField(span)));
|
|
2245
|
+
const restParams = (rest) => rest.length === 0
|
|
2246
|
+
? []
|
|
2247
|
+
: [
|
|
2248
|
+
[
|
|
2249
|
+
exports.restParam,
|
|
2250
|
+
rest.map(encodeEntry).join(ENTRY_SEP),
|
|
2251
|
+
],
|
|
2252
|
+
];
|
|
2253
|
+
const paramsOf = (composition) => [
|
|
2254
|
+
...restParams(composition.rest),
|
|
2255
|
+
...(0, plgg_1.pipe)(composition.head.span, (0, plgg_1.matchOption)(() => [], (span) => [[exports.spanParam, escapeField(span)]])),
|
|
2256
|
+
];
|
|
2257
|
+
const compositionQuery = (composition) => (0, plgg_1.pipe)(paramsOf(composition)
|
|
2258
|
+
.map(([key, value]) => key + "=" + percent(value))
|
|
2259
|
+
.join("&"), (query) => query === "" ? "" : "?" + query);
|
|
2260
|
+
exports.compositionQuery = compositionQuery;
|
|
2261
|
+
const compositionHref = (composition) => composition.head.route +
|
|
2262
|
+
(0, exports.compositionQuery)(composition);
|
|
2263
|
+
exports.compositionHref = compositionHref;
|
|
2264
|
+
|
|
2265
|
+
},
|
|
2266
|
+
"src/Navigate/model/marker.ts": function (module, exports, require) {
|
|
2267
|
+
"use strict";
|
|
2268
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2269
|
+
exports.documentColumn = exports.strip = exports.navHookName = exports.spanAttr = exports.columnAttr = exports.stripAttr = void 0;
|
|
2270
|
+
const plgg_1 = require("plgg");
|
|
2271
|
+
const plgg_view_1 = require("plgg-view");
|
|
2272
|
+
const combinators_1 = require("src/Layout/usecase/combinators.ts");
|
|
2273
|
+
const identity_1 = require("src/Meta/model/identity.ts");
|
|
2274
|
+
exports.stripAttr = `data-${identity_1.cssPrefix}-strip`;
|
|
2275
|
+
exports.columnAttr = `data-${identity_1.cssPrefix}-column`;
|
|
2276
|
+
exports.spanAttr = `data-${identity_1.cssPrefix}-span`;
|
|
2277
|
+
exports.navHookName = `__${identity_1.cssPrefix}Nav`;
|
|
2278
|
+
const strip = (parts, children) => (0, combinators_1.rowWith)([(0, plgg_view_1.attr)(exports.stripAttr, "")], parts, children);
|
|
2279
|
+
exports.strip = strip;
|
|
2280
|
+
const documentColumn = (route, span, parts, children) => (0, combinators_1.columnWith)([
|
|
2281
|
+
(0, plgg_view_1.attr)(exports.columnAttr, route),
|
|
2282
|
+
...(0, plgg_1.matchOption)(() => [], (quoted) => [
|
|
2283
|
+
(0, plgg_view_1.attr)(exports.spanAttr, quoted),
|
|
2284
|
+
])(span),
|
|
2285
|
+
], parts, children);
|
|
2286
|
+
exports.documentColumn = documentColumn;
|
|
2287
|
+
|
|
2288
|
+
},
|
|
2289
|
+
"src/Navigate/usecase/navigationScript.ts": function (module, exports, require) {
|
|
2290
|
+
"use strict";
|
|
2291
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2292
|
+
exports.injectNavigationScript = exports.navigationInitScript = void 0;
|
|
2293
|
+
const marker_1 = require("src/Navigate/model/marker.ts");
|
|
2294
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
2295
|
+
const compositionUrl_1 = require("src/Navigate/usecase/compositionUrl.ts");
|
|
2296
|
+
const q = (value) => JSON.stringify(value);
|
|
2297
|
+
exports.navigationInitScript = "(function(){" +
|
|
2298
|
+
`var S=${q(marker_1.stripAttr)},C=${q(marker_1.columnAttr)},P=${q(marker_1.spanAttr)};` +
|
|
2299
|
+
`var FC=${q(classHooks_1.foldClass)},TC=${q(classHooks_1.trailClass)};` +
|
|
2300
|
+
"var R0=window.matchMedia&&window.matchMedia('(prefers-reduced-motion:reduce)').matches;" +
|
|
2301
|
+
`var R=${q(compositionUrl_1.restParam)},Q=${q(compositionUrl_1.spanParam)};` +
|
|
2302
|
+
`var E=${q(compositionUrl_1.escapeChar)},N=${q(compositionUrl_1.entrySeparator)},F=${q(compositionUrl_1.fieldSeparator)};` +
|
|
2303
|
+
"function esc(v){return v.split(E).join(E+'t')" +
|
|
2304
|
+
".split(N).join(E+'c').split(F).join(E+'f');}" +
|
|
2305
|
+
"function unesc(v){return v.split(E+'f').join(F)" +
|
|
2306
|
+
".split(E+'c').join(N).split(E+'t').join(E);}" +
|
|
2307
|
+
"function pct(v){return encodeURIComponent(v)" +
|
|
2308
|
+
".split('%2F').join('/').split('%2C').join(N)" +
|
|
2309
|
+
".split('%3A').join(F);}" +
|
|
2310
|
+
"function ps(){return new URL(window.location.href).searchParams;}" +
|
|
2311
|
+
"function entries(){var v=ps().get(R);return v?v.split(N):[];}" +
|
|
2312
|
+
"function entryOf(r,s){return esc(r)+(s?F+esc(s):'');}" +
|
|
2313
|
+
"function routeOf(e){var i=e.indexOf(F);" +
|
|
2314
|
+
"return unesc(i<0?e:e.slice(0,i));}" +
|
|
2315
|
+
"function spanOf(e){var i=e.indexOf(F);" +
|
|
2316
|
+
"return i<0?'':unesc(e.slice(i+1));}" +
|
|
2317
|
+
"function urlFor(list){var p=[];" +
|
|
2318
|
+
"if(list.length){p.push(R+'='+pct(list.join(N)));}" +
|
|
2319
|
+
"var s=ps().get(Q);if(s){p.push(Q+'='+pct(s));}" +
|
|
2320
|
+
"return window.location.pathname+(p.length?'?'+p.join('&'):'');}" +
|
|
2321
|
+
"function strip(){return document.querySelector('['+S+']');}" +
|
|
2322
|
+
"var B=(function(){var h=document.querySelector('['+C+']');" +
|
|
2323
|
+
"var a=h?h.getAttribute(C)||'':'';var p=window.location.pathname;" +
|
|
2324
|
+
"return a&&p.length>a.length&&p.slice(p.length-a.length)===a" +
|
|
2325
|
+
"?p.slice(0,p.length-a.length):'';})();" +
|
|
2326
|
+
"function cols(){return document.querySelectorAll('['+C+']');}" +
|
|
2327
|
+
"function changed(){if(document.dispatchEvent){document.dispatchEvent(new Event('plgg:columns'));}}" +
|
|
2328
|
+
"function truncate(at){var c=cols();" +
|
|
2329
|
+
"for(var i=c.length-1;i>at;i--){c[i].remove();}sync();changed();}" +
|
|
2330
|
+
"function place(node,at){var c=cols();var prev=c[at];" +
|
|
2331
|
+
"prev.parentNode.insertBefore(node,prev.nextSibling);" +
|
|
2332
|
+
"node.scrollIntoView({inline:'nearest',block:'nearest',behavior:R0?'auto':'smooth'});" +
|
|
2333
|
+
"showMark(node);sync();changed();}" +
|
|
2334
|
+
"function showMark(node){var m=node.querySelector('mark');" +
|
|
2335
|
+
"if(m){m.scrollIntoView({block:'center'});}}" +
|
|
2336
|
+
"function colUrl(route,span){" +
|
|
2337
|
+
"return route+(span?'?'+Q+'='+pct(esc(span)):'');}" +
|
|
2338
|
+
"function fetchCol(route,span){" +
|
|
2339
|
+
"return fetch(colUrl(route,span),{credentials:'same-origin',mode:'same-origin'})" +
|
|
2340
|
+
".then(function(r){if(!r.ok){throw new Error('nav');}return r.text();})" +
|
|
2341
|
+
".then(function(t){" +
|
|
2342
|
+
"var d=new DOMParser().parseFromString(t,'text/html');" +
|
|
2343
|
+
"var col=d.querySelector('['+C+']');" +
|
|
2344
|
+
"if(!col||!strip()||!cols().length){throw new Error('nav');}" +
|
|
2345
|
+
"const init=d.querySelector('body > script[data-column-init]');if(init){" +
|
|
2346
|
+
"for(const style of d.querySelectorAll('head > style[data-column-style]')){" +
|
|
2347
|
+
"if(!Array.from(document.querySelectorAll('style[data-column-style]')).some(s=>s.dataset.columnStyle===style.dataset.columnStyle))document.head.appendChild(document.importNode(style,true));}" +
|
|
2348
|
+
"const data=d.querySelector('body > script[type=\"application/json\"][data-column-data]');if(data)col.appendChild(document.importNode(data,true));" +
|
|
2349
|
+
"if(!document.querySelector('script[data-column-init]')){" +
|
|
2350
|
+
"const script=document.createElement('script');script.type='module';script.dataset.columnInit='';script.textContent=init.textContent;document.head.appendChild(script);}}" +
|
|
2351
|
+
"return document.importNode(col,true);});}" +
|
|
2352
|
+
"function openFrom(at,route,span){" +
|
|
2353
|
+
"var url=urlFor(entries().slice(0,at).concat([entryOf(route,span)]));" +
|
|
2354
|
+
"return fetchCol(route,span).then(function(col){" +
|
|
2355
|
+
"truncate(at);place(col,at);" +
|
|
2356
|
+
"window.history.pushState(null,'',url);return true;}).catch(function(){" +
|
|
2357
|
+
"window.location.assign(url);return false;});}" +
|
|
2358
|
+
"function last(){return cols().length-1;}" +
|
|
2359
|
+
"function open(route,span){return openFrom(last(),route,span);}" +
|
|
2360
|
+
"function columnOf(node){var c=cols();" +
|
|
2361
|
+
"for(var i=0;i<c.length;i++){if(c[i].contains(node)){return i;}}" +
|
|
2362
|
+
"return -1;}" +
|
|
2363
|
+
"function anchorOf(node){var e=node;" +
|
|
2364
|
+
"while(e&&e!==document){if(e.tagName==='A'){return e;}e=e.parentNode;}" +
|
|
2365
|
+
"return null;}" +
|
|
2366
|
+
"function claims(ev,a){return !ev.defaultPrevented&&ev.button===0" +
|
|
2367
|
+
"&&!ev.metaKey&&!ev.ctrlKey&&!ev.shiftKey&&!ev.altKey" +
|
|
2368
|
+
"&&!!a&&!a.hasAttribute('download')" +
|
|
2369
|
+
"&&(a.target===''||a.target==='_self')" +
|
|
2370
|
+
"&&a.origin===window.location.origin" +
|
|
2371
|
+
"&&!(a.pathname===window.location.pathname&&a.hash!=='');}" +
|
|
2372
|
+
"function current(){var c=cols();var out=[];" +
|
|
2373
|
+
"for(var i=0;i<c.length;i++){out.push(entryOf(" +
|
|
2374
|
+
"B+c[i].getAttribute(C),c[i].getAttribute(P)||''));}return out;}" +
|
|
2375
|
+
"function target(){var s=ps().get(Q);" +
|
|
2376
|
+
"return [entryOf(window.location.pathname,s||'')].concat(entries());}" +
|
|
2377
|
+
"function reconcile(){var t=target(),c=current();" +
|
|
2378
|
+
"if(!c.length||t[0]!==c[0]){window.location.reload();return;}" +
|
|
2379
|
+
"var k=1;while(k<t.length&&k<c.length&&t[k]===c[k]){k++;}" +
|
|
2380
|
+
"truncate(k-1);" +
|
|
2381
|
+
"var i=k;" +
|
|
2382
|
+
"var step=function(){if(i>=t.length){return Promise.resolve(true);}" +
|
|
2383
|
+
"var e=t[i];var at=i-1;i++;" +
|
|
2384
|
+
"return fetchCol(routeOf(e),spanOf(e)).then(function(col){" +
|
|
2385
|
+
"place(col,at);return step();});};" +
|
|
2386
|
+
"return step().catch(function(){window.location.reload();});}" +
|
|
2387
|
+
"function fold(at){truncate(at-1);" +
|
|
2388
|
+
"window.history.pushState(null,'',urlFor(entries().slice(0,at-1)));}" +
|
|
2389
|
+
"function titleOf(c){var hd=c.querySelector(':scope>header');" +
|
|
2390
|
+
"var h=hd?(hd.firstElementChild||hd):c.querySelector('h1');" +
|
|
2391
|
+
"return (h?h.textContent:c.getAttribute(C)||'').trim();}" +
|
|
2392
|
+
"function sync(){var c=cols();" +
|
|
2393
|
+
"for(var i=0;i<c.length;i++){(function(col,i){" +
|
|
2394
|
+
"var b=col.querySelector('.'+FC);" +
|
|
2395
|
+
"if(i===0){if(b){b.remove();}return;}" +
|
|
2396
|
+
"if(!b){b=document.createElement('button');b.type='button';" +
|
|
2397
|
+
"b.className=FC;b.setAttribute('aria-label','この列を閉じる');" +
|
|
2398
|
+
"b.textContent='\u00d7';var hd=col.querySelector(':scope>header');" +
|
|
2399
|
+
"if(hd){hd.appendChild(b);}else{col.insertBefore(b,col.firstChild);}}" +
|
|
2400
|
+
"})(c[i],i);}" +
|
|
2401
|
+
"var s=strip();if(!s){return;}" +
|
|
2402
|
+
"var t=document.querySelector('.'+TC);" +
|
|
2403
|
+
"if(c.length<2){if(t){t.remove();}}else{" +
|
|
2404
|
+
"if(!t){t=document.createElement('nav');t.className=TC;" +
|
|
2405
|
+
"t.setAttribute('aria-label','開いている列');" +
|
|
2406
|
+
"s.parentNode.insertBefore(t,s);}t.textContent='';" +
|
|
2407
|
+
"for(var j=0;j<c.length;j++){(function(col,j){" +
|
|
2408
|
+
"var a=document.createElement('button');a.type='button';" +
|
|
2409
|
+
"a.textContent=titleOf(col);" +
|
|
2410
|
+
"if(j===c.length-1){a.setAttribute('aria-current','true');}" +
|
|
2411
|
+
"a.setAttribute('data-col',String(j));" +
|
|
2412
|
+
"t.appendChild(a);})(c[j],j);}}" +
|
|
2413
|
+
"var bare=function(p){return p.length>1?p.replace(/\\/+$/,''):p;};" +
|
|
2414
|
+
"var r=bare(c.length?B+(c[c.length-1].getAttribute(C)||''):location.pathname);" +
|
|
2415
|
+
"var ls=document.querySelectorAll('a[href]');" +
|
|
2416
|
+
"for(var m=0;m<ls.length;m++){var l=ls[m];" +
|
|
2417
|
+
"if(columnOf(l)>=0||!l.closest('nav')){continue;}" +
|
|
2418
|
+
"if(l.getAttribute('data-home')===null){l.setAttribute('data-home',l.getAttribute('aria-current')==='page'?'1':'0');}" +
|
|
2419
|
+
"if(c.length?bare(l.pathname)===r:l.getAttribute('data-home')==='1'){l.setAttribute('aria-current','page');}" +
|
|
2420
|
+
"else if(l.getAttribute('aria-current')==='page'){l.removeAttribute('aria-current');}}}" +
|
|
2421
|
+
"window.addEventListener('popstate',function(){reconcile();});" +
|
|
2422
|
+
"for(var k=0;k<cols().length;k++){showMark(cols()[k]);}" +
|
|
2423
|
+
"(function(){var t=target(),c=current();" +
|
|
2424
|
+
"if(c.length&&t[0]===c[0]&&t.length>c.length){reconcile();}else{sync();}})();" +
|
|
2425
|
+
"document.addEventListener('click',function(ev){" +
|
|
2426
|
+
"var t=ev.target;var fb=t&&t.closest?t.closest('.'+FC):null;" +
|
|
2427
|
+
"if(fb){ev.preventDefault();fold(columnOf(fb));return;}" +
|
|
2428
|
+
"var tb=t&&t.closest?t.closest('.'+TC+' [data-col]'):null;" +
|
|
2429
|
+
"if(tb){var cc=cols()[Number(tb.getAttribute('data-col'))];" +
|
|
2430
|
+
"if(cc){cc.scrollIntoView({inline:'nearest',block:'nearest'});}return;}" +
|
|
2431
|
+
"var a=anchorOf(ev.target);if(!claims(ev,a)){return;}" +
|
|
2432
|
+
"var at=columnOf(a);if(at<0){return;}" +
|
|
2433
|
+
"ev.preventDefault();openFrom(at,a.pathname);});" +
|
|
2434
|
+
`window[${q(marker_1.navHookName)}]={open:open,openFrom:openFrom,urlFor:urlFor,entries:entries,entryOf:entryOf,columnOf:columnOf,claims:claims,current:current,target:target,reconcile:reconcile,fold:fold};` +
|
|
2435
|
+
"})();";
|
|
2436
|
+
const injectNavigationScript = (html) => html.includes("</body>")
|
|
2437
|
+
? html.replace("</body>", `<script>${exports.navigationInitScript}</script></body>`)
|
|
2438
|
+
: html;
|
|
2439
|
+
exports.injectNavigationScript = injectNavigationScript;
|
|
2440
|
+
|
|
2441
|
+
},
|
|
2442
|
+
"src/Navigate/model/Trail.ts": function (module, exports, require) {
|
|
2443
|
+
"use strict";
|
|
2444
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2445
|
+
exports.restep = exports.stepFrom = exports.foldTrail = exports.settledTrail = exports.resolveTrail = void 0;
|
|
2446
|
+
const plgg_1 = require("plgg");
|
|
2447
|
+
const resolveTrail = (resolver) => (trail) => {
|
|
2448
|
+
const walk = (placed, last, rest) => {
|
|
2449
|
+
const [step, ...tail] = rest;
|
|
2450
|
+
return step === undefined
|
|
2451
|
+
? placed
|
|
2452
|
+
: (0, plgg_1.matchOption)(() => placed, (column) => {
|
|
2453
|
+
const next = {
|
|
2454
|
+
prefix: [...last.prefix, step],
|
|
2455
|
+
column,
|
|
2456
|
+
};
|
|
2457
|
+
return walk([...placed, next], next, tail);
|
|
2458
|
+
})(resolver.resolve(last.column, step));
|
|
2459
|
+
};
|
|
2460
|
+
const root = {
|
|
2461
|
+
prefix: [],
|
|
2462
|
+
column: resolver.root(),
|
|
2463
|
+
};
|
|
2464
|
+
return walk([root], root, trail);
|
|
2465
|
+
};
|
|
2466
|
+
exports.resolveTrail = resolveTrail;
|
|
2467
|
+
const settledTrail = (columns) => columns.reduce((_, placed) => placed.prefix, []);
|
|
2468
|
+
exports.settledTrail = settledTrail;
|
|
2469
|
+
const foldTrail = (trail, depth) => trail.slice(0, Math.max(0, depth));
|
|
2470
|
+
exports.foldTrail = foldTrail;
|
|
2471
|
+
const stepFrom = (trail, depth, step) => [
|
|
2472
|
+
...(0, exports.foldTrail)(trail, depth),
|
|
2473
|
+
step,
|
|
2474
|
+
];
|
|
2475
|
+
exports.stepFrom = stepFrom;
|
|
2476
|
+
const restep = (trail, index, step) => trail.map((old, i) => i === index ? step : old);
|
|
2477
|
+
exports.restep = restep;
|
|
2478
|
+
|
|
2479
|
+
},
|
|
2480
|
+
"src/Navigate/usecase/trailUrl.ts": function (module, exports, require) {
|
|
2481
|
+
"use strict";
|
|
2482
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2483
|
+
exports.parseSteps = exports.printSteps = exports.trailQuery = exports.decodeTrail = exports.encodeTrail = exports.stepSeparator = exports.trailParam = void 0;
|
|
2484
|
+
const plgg_1 = require("plgg");
|
|
2485
|
+
exports.trailParam = "x";
|
|
2486
|
+
exports.stepSeparator = ".";
|
|
2487
|
+
const encodeStep = (step) => encodeURIComponent(step).split(".").join("%2E");
|
|
2488
|
+
const decodeStep = (raw) => (0, plgg_1.pipe)((0, plgg_1.tryCatch)((value) => decodeURIComponent(value))(raw), (0, plgg_1.matchResult)(() => raw, (value) => value));
|
|
2489
|
+
const encodeTrail = (trail) => trail.map(encodeStep).join(exports.stepSeparator);
|
|
2490
|
+
exports.encodeTrail = encodeTrail;
|
|
2491
|
+
const decodeTrail = (raw) => (0, plgg_1.matchOption)(() => [], (value) => value
|
|
2492
|
+
.split(exports.stepSeparator)
|
|
2493
|
+
.filter((step) => step !== "")
|
|
2494
|
+
.map(decodeStep))(raw);
|
|
2495
|
+
exports.decodeTrail = decodeTrail;
|
|
2496
|
+
const trailQuery = (trail) => trail.length === 0
|
|
2497
|
+
? ""
|
|
2498
|
+
: "?" +
|
|
2499
|
+
exports.trailParam +
|
|
2500
|
+
"=" +
|
|
2501
|
+
encodeURIComponent((0, exports.encodeTrail)(trail));
|
|
2502
|
+
exports.trailQuery = trailQuery;
|
|
2503
|
+
const printSteps = (codec) => (steps) => steps.map(codec.print);
|
|
2504
|
+
exports.printSteps = printSteps;
|
|
2505
|
+
const parseSteps = (codec) => (trail) => {
|
|
2506
|
+
const read = (done, rest) => {
|
|
2507
|
+
const [raw, ...tail] = rest;
|
|
2508
|
+
return raw === undefined
|
|
2509
|
+
? done
|
|
2510
|
+
: (0, plgg_1.matchOption)(() => done, (step) => read([...done, step], tail))(codec.parse(raw));
|
|
2511
|
+
};
|
|
2512
|
+
return read([], trail);
|
|
2513
|
+
};
|
|
2514
|
+
exports.parseSteps = parseSteps;
|
|
2515
|
+
|
|
1162
2516
|
},
|
|
1163
2517
|
"src/Component/index.ts": function (module, exports, require) {
|
|
1164
2518
|
"use strict";
|
|
1165
2519
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1166
|
-
exports.toaster = exports.toast = exports.tones = exports.confirmDialog = exports.checkbox = exports.selectInput = exports.textArea = exports.textInput = exports.breadcrumb = exports.colHead = exports.navTree = exports.themeToggleCss = exports.themeToggleClass = exports.staticThemeToggle = exports.themeToggle = exports.prose = exports.heading = exports.textLink = exports.button = exports.pressDim = exports.hoverDim = exports.focusRing = void 0;
|
|
2520
|
+
exports.toaster = exports.toast = exports.tones = exports.confirmDialog = exports.declaredForm = exports.fieldControl = exports.checkbox = exports.selectInput = exports.textArea = exports.textInput = exports.breadcrumb = exports.colHead = exports.sidebarNavRevealScript = exports.sidebarNavCss = exports.sidebarNavClass = exports.sidebarNav = exports.navTree = exports.themeToggleCss = exports.themeToggleClass = exports.staticThemeToggle = exports.themeToggle = exports.prose = exports.heading = exports.textLink = exports.button = exports.pressDim = exports.hoverDim = exports.focusRing = void 0;
|
|
1167
2521
|
var interaction_1 = require("src/Component/model/interaction.ts");
|
|
1168
2522
|
Object.defineProperty(exports, "focusRing", { enumerable: true, get: function () { return interaction_1.focusRing; } });
|
|
1169
2523
|
Object.defineProperty(exports, "hoverDim", { enumerable: true, get: function () { return interaction_1.hoverDim; } });
|
|
@@ -1182,6 +2536,11 @@ Object.defineProperty(exports, "themeToggleClass", { enumerable: true, get: func
|
|
|
1182
2536
|
Object.defineProperty(exports, "themeToggleCss", { enumerable: true, get: function () { return themeToggle_1.themeToggleCss; } });
|
|
1183
2537
|
var navTree_1 = require("src/Component/usecase/navTree.ts");
|
|
1184
2538
|
Object.defineProperty(exports, "navTree", { enumerable: true, get: function () { return navTree_1.navTree; } });
|
|
2539
|
+
var sidebarNav_1 = require("src/Component/usecase/sidebarNav.ts");
|
|
2540
|
+
Object.defineProperty(exports, "sidebarNav", { enumerable: true, get: function () { return sidebarNav_1.sidebarNav; } });
|
|
2541
|
+
Object.defineProperty(exports, "sidebarNavClass", { enumerable: true, get: function () { return sidebarNav_1.sidebarNavClass; } });
|
|
2542
|
+
Object.defineProperty(exports, "sidebarNavCss", { enumerable: true, get: function () { return sidebarNav_1.sidebarNavCss; } });
|
|
2543
|
+
Object.defineProperty(exports, "sidebarNavRevealScript", { enumerable: true, get: function () { return sidebarNav_1.sidebarNavRevealScript; } });
|
|
1185
2544
|
var colHead_1 = require("src/Component/usecase/colHead.ts");
|
|
1186
2545
|
Object.defineProperty(exports, "colHead", { enumerable: true, get: function () { return colHead_1.colHead; } });
|
|
1187
2546
|
var breadcrumb_1 = require("src/Component/usecase/breadcrumb.ts");
|
|
@@ -1194,6 +2553,9 @@ var selectInput_1 = require("src/Component/usecase/selectInput.ts");
|
|
|
1194
2553
|
Object.defineProperty(exports, "selectInput", { enumerable: true, get: function () { return selectInput_1.selectInput; } });
|
|
1195
2554
|
var checkbox_1 = require("src/Component/usecase/checkbox.ts");
|
|
1196
2555
|
Object.defineProperty(exports, "checkbox", { enumerable: true, get: function () { return checkbox_1.checkbox; } });
|
|
2556
|
+
var declaredForm_1 = require("src/Component/usecase/declaredForm.ts");
|
|
2557
|
+
Object.defineProperty(exports, "fieldControl", { enumerable: true, get: function () { return declaredForm_1.fieldControl; } });
|
|
2558
|
+
Object.defineProperty(exports, "declaredForm", { enumerable: true, get: function () { return declaredForm_1.declaredForm; } });
|
|
1197
2559
|
var confirmDialog_1 = require("src/Component/usecase/confirmDialog.ts");
|
|
1198
2560
|
Object.defineProperty(exports, "confirmDialog", { enumerable: true, get: function () { return confirmDialog_1.confirmDialog; } });
|
|
1199
2561
|
var toast_1 = require("src/Component/usecase/toast.ts");
|
|
@@ -1316,18 +2678,16 @@ const plgg_1 = require("plgg");
|
|
|
1316
2678
|
const plgg_view_1 = require("plgg-view");
|
|
1317
2679
|
const styleEntry_1 = require("src/styleEntry.ts");
|
|
1318
2680
|
const interaction_1 = require("src/Component/model/interaction.ts");
|
|
1319
|
-
const
|
|
1320
|
-
const colHead = (props) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class",
|
|
1321
|
-
(0, plgg_1.matchOption)(() => (0, plgg_view_1.span)([
|
|
1322
|
-
(0, plgg_view_1.attr)("class", `${identity_1.cssPrefix}-colhead-title`),
|
|
1323
|
-
], [(0, plgg_view_1.text)(props.title)]), (to) => (0, plgg_view_1.a)([
|
|
2681
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
2682
|
+
const colHead = (props) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class", classHooks_1.colHeadClass)], [
|
|
2683
|
+
(0, plgg_1.matchOption)(() => (0, plgg_view_1.span)([(0, plgg_view_1.attr)("class", classHooks_1.colHeadTitleClass)], [(0, plgg_view_1.text)(props.title)]), (to) => (0, plgg_view_1.a)([
|
|
1324
2684
|
(0, plgg_view_1.href)(to),
|
|
1325
2685
|
(0, plgg_view_1.attr)("aria-label", `Reset to ${props.title}`),
|
|
1326
|
-
(0, styleEntry_1.style_)(
|
|
2686
|
+
(0, styleEntry_1.style_)(classHooks_1.colHeadTitleClass, interaction_1.focusRing),
|
|
1327
2687
|
], [(0, plgg_view_1.text)(props.title)]))(props.close),
|
|
1328
2688
|
...props.links.map((link) => (0, plgg_view_1.a)([
|
|
1329
2689
|
(0, plgg_view_1.href)(link.href),
|
|
1330
|
-
(0, styleEntry_1.style_)(
|
|
2690
|
+
(0, styleEntry_1.style_)(classHooks_1.colHeadLinkClass, interaction_1.focusRing),
|
|
1331
2691
|
], [(0, plgg_view_1.text)(link.label)])),
|
|
1332
2692
|
]);
|
|
1333
2693
|
exports.colHead = colHead;
|
|
@@ -1341,26 +2701,24 @@ const plgg_1 = require("plgg");
|
|
|
1341
2701
|
const plgg_view_1 = require("plgg-view");
|
|
1342
2702
|
const styleEntry_1 = require("src/styleEntry.ts");
|
|
1343
2703
|
const interaction_1 = require("src/Component/model/interaction.ts");
|
|
1344
|
-
const
|
|
2704
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
1345
2705
|
const breadcrumb = (crumbs) => {
|
|
1346
2706
|
const last = crumbs.length - 1;
|
|
1347
2707
|
return (0, plgg_view_1.slot)([
|
|
1348
|
-
(0, plgg_view_1.attr)("class",
|
|
2708
|
+
(0, plgg_view_1.attr)("class", classHooks_1.crumbsClass),
|
|
1349
2709
|
(0, plgg_view_1.attr)("aria-label", "Breadcrumb"),
|
|
1350
2710
|
], crumbs.flatMap((crumb, i) => {
|
|
1351
2711
|
const label = i === last
|
|
1352
|
-
? (0, plgg_view_1.span)([
|
|
1353
|
-
(0, plgg_view_1.attr)("class", `${identity_1.cssPrefix}-crumb-here`),
|
|
1354
|
-
], [(0, plgg_view_1.text)(crumb.label)])
|
|
2712
|
+
? (0, plgg_view_1.span)([(0, plgg_view_1.attr)("class", classHooks_1.crumbHereClass)], [(0, plgg_view_1.text)(crumb.label)])
|
|
1355
2713
|
: (0, plgg_1.matchOption)(() => (0, plgg_view_1.span)([], [(0, plgg_view_1.text)(crumb.label)]), (to) => (0, plgg_view_1.a)([
|
|
1356
2714
|
(0, plgg_view_1.href)(to),
|
|
1357
|
-
(0, styleEntry_1.style_)(
|
|
2715
|
+
(0, styleEntry_1.style_)(classHooks_1.crumbLinkClass, interaction_1.focusRing),
|
|
1358
2716
|
], [(0, plgg_view_1.text)(crumb.label)]))(crumb.to);
|
|
1359
2717
|
return i === 0
|
|
1360
2718
|
? [label]
|
|
1361
2719
|
: [
|
|
1362
2720
|
(0, plgg_view_1.span)([
|
|
1363
|
-
(0, plgg_view_1.attr)("class",
|
|
2721
|
+
(0, plgg_view_1.attr)("class", classHooks_1.crumbSepClass),
|
|
1364
2722
|
(0, plgg_view_1.attr)("aria-hidden", "true"),
|
|
1365
2723
|
], [(0, plgg_view_1.text)("›")]),
|
|
1366
2724
|
label,
|
|
@@ -1378,9 +2736,9 @@ const plgg_1 = require("plgg");
|
|
|
1378
2736
|
const plgg_view_1 = require("plgg-view");
|
|
1379
2737
|
const styleEntry_1 = require("src/styleEntry.ts");
|
|
1380
2738
|
const interaction_1 = require("src/Component/model/interaction.ts");
|
|
1381
|
-
const
|
|
2739
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
1382
2740
|
const controlParts_1 = require("src/Form/usecase/controlParts.ts");
|
|
1383
|
-
const textInput = (props) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class",
|
|
2741
|
+
const textInput = (props) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class", classHooks_1.fieldClass)], [
|
|
1384
2742
|
(0, controlParts_1.fieldLabel)(props.name, props.label),
|
|
1385
2743
|
(0, plgg_view_1.input)([
|
|
1386
2744
|
(0, plgg_view_1.id_)(props.name),
|
|
@@ -1390,8 +2748,8 @@ const textInput = (props) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class
|
|
|
1390
2748
|
...(0, plgg_1.matchOption)(() => [], (p) => [(0, plgg_view_1.placeholder_)(p)])(props.placeholder),
|
|
1391
2749
|
...(0, controlParts_1.errorAria)(props.name, props.error),
|
|
1392
2750
|
...(0, plgg_view_1.disabled_)(props.disabled),
|
|
1393
|
-
(0, styleEntry_1.style_)(
|
|
1394
|
-
? [
|
|
2751
|
+
(0, styleEntry_1.style_)(classHooks_1.inputClass, interaction_1.focusRing, ...(props.disabled
|
|
2752
|
+
? [classHooks_1.disabledClass]
|
|
1395
2753
|
: [interaction_1.hoverDim])),
|
|
1396
2754
|
(0, plgg_view_1.onInput)(props.onInput),
|
|
1397
2755
|
], []),
|
|
@@ -1406,11 +2764,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
1406
2764
|
exports.fieldError = exports.errorAria = exports.errorId = exports.fieldLabel = void 0;
|
|
1407
2765
|
const plgg_1 = require("plgg");
|
|
1408
2766
|
const plgg_view_1 = require("plgg-view");
|
|
1409
|
-
const
|
|
1410
|
-
const fieldLabel = (name, labelText) => (0, plgg_view_1.label)([
|
|
1411
|
-
(0, plgg_view_1.for_)(name),
|
|
1412
|
-
(0, plgg_view_1.attr)("class", `${identity_1.cssPrefix}-field-label`),
|
|
1413
|
-
], [(0, plgg_view_1.text)(labelText)]);
|
|
2767
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
2768
|
+
const fieldLabel = (name, labelText) => (0, plgg_view_1.label)([(0, plgg_view_1.for_)(name), (0, plgg_view_1.attr)("class", classHooks_1.fieldLabelClass)], [(0, plgg_view_1.text)(labelText)]);
|
|
1414
2769
|
exports.fieldLabel = fieldLabel;
|
|
1415
2770
|
const errorId = (name) => `${name}-error`;
|
|
1416
2771
|
exports.errorId = errorId;
|
|
@@ -1424,7 +2779,7 @@ exports.errorAria = errorAria;
|
|
|
1424
2779
|
const fieldError = (name, error) => (0, plgg_1.matchOption)(() => [], (msg) => [
|
|
1425
2780
|
(0, plgg_view_1.span)([
|
|
1426
2781
|
(0, plgg_view_1.id_)((0, exports.errorId)(name)),
|
|
1427
|
-
(0, plgg_view_1.attr)("class",
|
|
2782
|
+
(0, plgg_view_1.attr)("class", classHooks_1.fieldErrorClass),
|
|
1428
2783
|
(0, plgg_view_1.attr)("role", "alert"),
|
|
1429
2784
|
], [(0, plgg_view_1.text)(msg)]),
|
|
1430
2785
|
])(error);
|
|
@@ -1439,9 +2794,9 @@ const plgg_1 = require("plgg");
|
|
|
1439
2794
|
const plgg_view_1 = require("plgg-view");
|
|
1440
2795
|
const styleEntry_1 = require("src/styleEntry.ts");
|
|
1441
2796
|
const interaction_1 = require("src/Component/model/interaction.ts");
|
|
1442
|
-
const
|
|
2797
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
1443
2798
|
const controlParts_1 = require("src/Form/usecase/controlParts.ts");
|
|
1444
|
-
const textArea = (props) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class",
|
|
2799
|
+
const textArea = (props) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class", classHooks_1.fieldClass)], [
|
|
1445
2800
|
(0, controlParts_1.fieldLabel)(props.name, props.label),
|
|
1446
2801
|
(0, plgg_view_1.textarea)([
|
|
1447
2802
|
(0, plgg_view_1.id_)(props.name),
|
|
@@ -1450,8 +2805,8 @@ const textArea = (props) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class"
|
|
|
1450
2805
|
...(0, plgg_1.matchOption)(() => [], (p) => [(0, plgg_view_1.placeholder_)(p)])(props.placeholder),
|
|
1451
2806
|
...(0, controlParts_1.errorAria)(props.name, props.error),
|
|
1452
2807
|
...(0, plgg_view_1.disabled_)(props.disabled),
|
|
1453
|
-
(0, styleEntry_1.style_)(
|
|
1454
|
-
? [
|
|
2808
|
+
(0, styleEntry_1.style_)(classHooks_1.inputClass, interaction_1.focusRing, ...(props.disabled
|
|
2809
|
+
? [classHooks_1.disabledClass]
|
|
1455
2810
|
: [interaction_1.hoverDim])),
|
|
1456
2811
|
(0, plgg_view_1.onInput)(props.onInput),
|
|
1457
2812
|
], [(0, plgg_view_1.text)(props.value)]),
|
|
@@ -1467,16 +2822,16 @@ exports.selectInput = void 0;
|
|
|
1467
2822
|
const plgg_view_1 = require("plgg-view");
|
|
1468
2823
|
const styleEntry_1 = require("src/styleEntry.ts");
|
|
1469
2824
|
const interaction_1 = require("src/Component/model/interaction.ts");
|
|
1470
|
-
const
|
|
2825
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
1471
2826
|
const controlParts_1 = require("src/Form/usecase/controlParts.ts");
|
|
1472
|
-
const selectInput = (props) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class",
|
|
2827
|
+
const selectInput = (props) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class", classHooks_1.fieldClass)], [
|
|
1473
2828
|
(0, controlParts_1.fieldLabel)(props.name, props.label),
|
|
1474
2829
|
(0, plgg_view_1.select)([
|
|
1475
2830
|
(0, plgg_view_1.id_)(props.name),
|
|
1476
2831
|
(0, plgg_view_1.name_)(props.name),
|
|
1477
2832
|
...(0, controlParts_1.errorAria)(props.name, props.error),
|
|
1478
2833
|
...(0, plgg_view_1.disabled_)(props.disabled),
|
|
1479
|
-
(0, styleEntry_1.style_)(
|
|
2834
|
+
(0, styleEntry_1.style_)(classHooks_1.inputClass, interaction_1.focusRing),
|
|
1480
2835
|
(0, plgg_view_1.onChange)(props.onChange),
|
|
1481
2836
|
], props.options.map((o) => (0, plgg_view_1.option)([
|
|
1482
2837
|
(0, plgg_view_1.attr)("value", o.value),
|
|
@@ -1496,9 +2851,9 @@ exports.checkbox = void 0;
|
|
|
1496
2851
|
const plgg_view_1 = require("plgg-view");
|
|
1497
2852
|
const styleEntry_1 = require("src/styleEntry.ts");
|
|
1498
2853
|
const interaction_1 = require("src/Component/model/interaction.ts");
|
|
1499
|
-
const
|
|
2854
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
1500
2855
|
const checkbox = (props) => (0, plgg_view_1.slot)([
|
|
1501
|
-
(0, plgg_view_1.attr)("class", `${
|
|
2856
|
+
(0, plgg_view_1.attr)("class", `${classHooks_1.fieldClass} ${classHooks_1.checkClass}`),
|
|
1502
2857
|
], [
|
|
1503
2858
|
(0, plgg_view_1.input)([
|
|
1504
2859
|
(0, plgg_view_1.id_)(props.name),
|
|
@@ -1506,18 +2861,108 @@ const checkbox = (props) => (0, plgg_view_1.slot)([
|
|
|
1506
2861
|
(0, plgg_view_1.type_)("checkbox"),
|
|
1507
2862
|
...(0, plgg_view_1.checked_)(props.checked),
|
|
1508
2863
|
...(0, plgg_view_1.disabled_)(props.disabled),
|
|
1509
|
-
(0, styleEntry_1.style_)(
|
|
1510
|
-
? [
|
|
2864
|
+
(0, styleEntry_1.style_)(classHooks_1.checkboxClass, interaction_1.focusRing, ...(props.disabled
|
|
2865
|
+
? [classHooks_1.disabledClass]
|
|
1511
2866
|
: [])),
|
|
1512
2867
|
(0, plgg_view_1.onChange)(() => props.onToggle),
|
|
1513
2868
|
], []),
|
|
1514
2869
|
(0, plgg_view_1.label)([
|
|
1515
2870
|
(0, plgg_view_1.for_)(props.name),
|
|
1516
|
-
(0, plgg_view_1.attr)("class",
|
|
2871
|
+
(0, plgg_view_1.attr)("class", classHooks_1.checkLabelClass),
|
|
1517
2872
|
], [(0, plgg_view_1.text)(props.label)]),
|
|
1518
2873
|
]);
|
|
1519
2874
|
exports.checkbox = checkbox;
|
|
1520
2875
|
|
|
2876
|
+
},
|
|
2877
|
+
"src/Component/usecase/declaredForm.ts": function (module, exports, require) {
|
|
2878
|
+
"use strict";
|
|
2879
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2880
|
+
exports.declaredForm = exports.fieldControl = void 0;
|
|
2881
|
+
const formView_1 = require("src/Form/usecase/formView.ts");
|
|
2882
|
+
const textInput_1 = require("src/Component/usecase/textInput.ts");
|
|
2883
|
+
const textArea_1 = require("src/Component/usecase/textArea.ts");
|
|
2884
|
+
const selectInput_1 = require("src/Component/usecase/selectInput.ts");
|
|
2885
|
+
const checkbox_1 = require("src/Component/usecase/checkbox.ts");
|
|
2886
|
+
const fieldControl = (field, state) => {
|
|
2887
|
+
const control = field.control;
|
|
2888
|
+
switch (control.kind) {
|
|
2889
|
+
case "text":
|
|
2890
|
+
return (0, textInput_1.textInput)({
|
|
2891
|
+
name: field.name,
|
|
2892
|
+
label: field.label,
|
|
2893
|
+
value: state.value,
|
|
2894
|
+
placeholder: control.placeholder,
|
|
2895
|
+
error: state.error,
|
|
2896
|
+
disabled: state.disabled,
|
|
2897
|
+
onInput: control.onInput,
|
|
2898
|
+
});
|
|
2899
|
+
case "textarea":
|
|
2900
|
+
return (0, textArea_1.textArea)({
|
|
2901
|
+
name: field.name,
|
|
2902
|
+
label: field.label,
|
|
2903
|
+
value: state.value,
|
|
2904
|
+
placeholder: control.placeholder,
|
|
2905
|
+
error: state.error,
|
|
2906
|
+
disabled: state.disabled,
|
|
2907
|
+
onInput: control.onInput,
|
|
2908
|
+
});
|
|
2909
|
+
case "select":
|
|
2910
|
+
return (0, selectInput_1.selectInput)({
|
|
2911
|
+
name: field.name,
|
|
2912
|
+
label: field.label,
|
|
2913
|
+
value: state.value,
|
|
2914
|
+
options: control.options,
|
|
2915
|
+
error: state.error,
|
|
2916
|
+
disabled: state.disabled,
|
|
2917
|
+
onChange: control.onChange,
|
|
2918
|
+
});
|
|
2919
|
+
case "checkbox":
|
|
2920
|
+
return (0, checkbox_1.checkbox)({
|
|
2921
|
+
name: field.name,
|
|
2922
|
+
label: field.label,
|
|
2923
|
+
checked: state.value.length > 0,
|
|
2924
|
+
disabled: state.disabled,
|
|
2925
|
+
onToggle: control.onToggle,
|
|
2926
|
+
});
|
|
2927
|
+
}
|
|
2928
|
+
};
|
|
2929
|
+
exports.fieldControl = fieldControl;
|
|
2930
|
+
const declaredForm = (props) => (0, formView_1.formView)({
|
|
2931
|
+
fields: props.fields.map((field) => (0, exports.fieldControl)(field, props.stateOf(field.name))),
|
|
2932
|
+
submitLabel: props.submitLabel,
|
|
2933
|
+
submitting: props.submitting,
|
|
2934
|
+
onSubmit: props.onSubmit,
|
|
2935
|
+
});
|
|
2936
|
+
exports.declaredForm = declaredForm;
|
|
2937
|
+
|
|
2938
|
+
},
|
|
2939
|
+
"src/Form/usecase/formView.ts": function (module, exports, require) {
|
|
2940
|
+
"use strict";
|
|
2941
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2942
|
+
exports.formView = void 0;
|
|
2943
|
+
const plgg_view_1 = require("plgg-view");
|
|
2944
|
+
const styleEntry_1 = require("src/styleEntry.ts");
|
|
2945
|
+
const interaction_1 = require("src/Component/model/interaction.ts");
|
|
2946
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
2947
|
+
const formView = (props) => (0, plgg_view_1.form)([
|
|
2948
|
+
(0, plgg_view_1.onSubmit)(props.onSubmit),
|
|
2949
|
+
(0, plgg_view_1.attr)("class", classHooks_1.formClass),
|
|
2950
|
+
], [
|
|
2951
|
+
...props.fields,
|
|
2952
|
+
(0, plgg_view_1.button)([
|
|
2953
|
+
(0, plgg_view_1.type_)("submit"),
|
|
2954
|
+
...(0, plgg_view_1.disabled_)(props.submitting),
|
|
2955
|
+
(0, styleEntry_1.style_)(`${classHooks_1.btnClass} ${classHooks_1.btnPrimaryClass}`, interaction_1.focusRing, ...(props.submitting
|
|
2956
|
+
? [classHooks_1.disabledClass]
|
|
2957
|
+
: [interaction_1.hoverDim])),
|
|
2958
|
+
], [
|
|
2959
|
+
(0, plgg_view_1.text)(props.submitting
|
|
2960
|
+
? "Submitting…"
|
|
2961
|
+
: props.submitLabel),
|
|
2962
|
+
]),
|
|
2963
|
+
]);
|
|
2964
|
+
exports.formView = formView;
|
|
2965
|
+
|
|
1521
2966
|
},
|
|
1522
2967
|
"src/Component/usecase/confirmDialog.ts": function (module, exports, require) {
|
|
1523
2968
|
"use strict";
|
|
@@ -1526,34 +2971,32 @@ exports.confirmDialog = void 0;
|
|
|
1526
2971
|
const plgg_view_1 = require("plgg-view");
|
|
1527
2972
|
const styleEntry_1 = require("src/styleEntry.ts");
|
|
1528
2973
|
const interaction_1 = require("src/Component/model/interaction.ts");
|
|
1529
|
-
const
|
|
1530
|
-
const TITLE_ID =
|
|
1531
|
-
const confirmDialog = (props) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class",
|
|
2974
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
2975
|
+
const TITLE_ID = classHooks_1.dialogTitleClass;
|
|
2976
|
+
const confirmDialog = (props) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class", classHooks_1.modalClass)], [
|
|
1532
2977
|
(0, plgg_view_1.slot)([
|
|
1533
2978
|
(0, plgg_view_1.key)("backdrop"),
|
|
1534
|
-
(0, plgg_view_1.attr)("class",
|
|
2979
|
+
(0, plgg_view_1.attr)("class", classHooks_1.backdropClass),
|
|
1535
2980
|
(0, plgg_view_1.onClick)(props.onCancel),
|
|
1536
2981
|
], []),
|
|
1537
2982
|
(0, plgg_view_1.slot)([
|
|
1538
2983
|
(0, plgg_view_1.key)("dialog"),
|
|
1539
|
-
(0, plgg_view_1.attr)("class",
|
|
2984
|
+
(0, plgg_view_1.attr)("class", classHooks_1.dialogClass),
|
|
1540
2985
|
(0, plgg_view_1.attr)("role", "dialog"),
|
|
1541
2986
|
(0, plgg_view_1.attr)("aria-modal", "true"),
|
|
1542
2987
|
(0, plgg_view_1.attr)("aria-labelledby", TITLE_ID),
|
|
1543
2988
|
], [
|
|
1544
2989
|
(0, plgg_view_1.h2)([(0, plgg_view_1.id_)(TITLE_ID)], [(0, plgg_view_1.text)(props.title)]),
|
|
1545
2990
|
(0, plgg_view_1.p)([], [(0, plgg_view_1.text)(props.body)]),
|
|
1546
|
-
(0, plgg_view_1.slot)([
|
|
1547
|
-
(0, plgg_view_1.attr)("class", `${identity_1.cssPrefix}-dialog-actions`),
|
|
1548
|
-
], [
|
|
2991
|
+
(0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class", classHooks_1.dialogActionsClass)], [
|
|
1549
2992
|
(0, plgg_view_1.button)([
|
|
1550
|
-
(0, styleEntry_1.style_)(
|
|
2993
|
+
(0, styleEntry_1.style_)(classHooks_1.btnClass, interaction_1.focusRing),
|
|
1551
2994
|
(0, plgg_view_1.onClick)(props.onCancel),
|
|
1552
2995
|
], [(0, plgg_view_1.text)(props.cancelLabel)]),
|
|
1553
2996
|
(0, plgg_view_1.button)([
|
|
1554
2997
|
(0, styleEntry_1.style_)(props.destructive
|
|
1555
|
-
? `${
|
|
1556
|
-
:
|
|
2998
|
+
? `${classHooks_1.btnClass} ${classHooks_1.btnDangerClass}`
|
|
2999
|
+
: classHooks_1.btnClass, interaction_1.focusRing),
|
|
1557
3000
|
(0, plgg_view_1.onClick)(props.onConfirm),
|
|
1558
3001
|
], [(0, plgg_view_1.text)(props.confirmLabel)]),
|
|
1559
3002
|
]),
|
|
@@ -1569,7 +3012,7 @@ exports.toaster = exports.toast = exports.tones = void 0;
|
|
|
1569
3012
|
const plgg_view_1 = require("plgg-view");
|
|
1570
3013
|
const styleEntry_1 = require("src/styleEntry.ts");
|
|
1571
3014
|
const interaction_1 = require("src/Component/model/interaction.ts");
|
|
1572
|
-
const
|
|
3015
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
1573
3016
|
exports.tones = [
|
|
1574
3017
|
"success",
|
|
1575
3018
|
"danger",
|
|
@@ -1578,7 +3021,7 @@ exports.tones = [
|
|
|
1578
3021
|
];
|
|
1579
3022
|
const toast = (props) => (0, plgg_view_1.slot)([
|
|
1580
3023
|
(0, plgg_view_1.key)(props.id),
|
|
1581
|
-
(0, plgg_view_1.attr)("class", `${
|
|
3024
|
+
(0, plgg_view_1.attr)("class", `${classHooks_1.toastClass} ${(0, classHooks_1.toastToneClass)(props.tone)}`),
|
|
1582
3025
|
(0, plgg_view_1.attr)("role", "status"),
|
|
1583
3026
|
(0, plgg_view_1.attr)("aria-live", props.tone === "danger"
|
|
1584
3027
|
? "assertive"
|
|
@@ -1587,13 +3030,13 @@ const toast = (props) => (0, plgg_view_1.slot)([
|
|
|
1587
3030
|
(0, plgg_view_1.span)([], [(0, plgg_view_1.text)(props.message)]),
|
|
1588
3031
|
(0, plgg_view_1.button)([
|
|
1589
3032
|
(0, plgg_view_1.attr)("aria-label", "Dismiss"),
|
|
1590
|
-
(0, styleEntry_1.style_)(
|
|
3033
|
+
(0, styleEntry_1.style_)(classHooks_1.toastCloseClass, interaction_1.focusRing),
|
|
1591
3034
|
(0, plgg_view_1.onClick)(props.onDismiss),
|
|
1592
3035
|
], [(0, plgg_view_1.text)("×")]),
|
|
1593
3036
|
]);
|
|
1594
3037
|
exports.toast = toast;
|
|
1595
3038
|
const toaster = (toasts) => (0, plgg_view_1.slot)([
|
|
1596
|
-
(0, plgg_view_1.attr)("class",
|
|
3039
|
+
(0, plgg_view_1.attr)("class", classHooks_1.toasterClass),
|
|
1597
3040
|
(0, plgg_view_1.attr)("aria-live", "polite"),
|
|
1598
3041
|
], toasts.map((t) => (0, exports.toast)(t)));
|
|
1599
3042
|
exports.toaster = toaster;
|
|
@@ -1667,39 +3110,11 @@ exports.parseForm = parseForm;
|
|
|
1667
3110
|
const errorFor = (errors, name) => (0, plgg_1.pipe)((0, plgg_1.fromNullable)(errors.find(([n]) => n === name)), (0, plgg_1.matchOption)(() => (0, plgg_1.none)(), ([, msg]) => (0, plgg_1.some)(msg)));
|
|
1668
3111
|
exports.errorFor = errorFor;
|
|
1669
3112
|
|
|
1670
|
-
},
|
|
1671
|
-
"src/Form/usecase/formView.ts": function (module, exports, require) {
|
|
1672
|
-
"use strict";
|
|
1673
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1674
|
-
exports.formView = void 0;
|
|
1675
|
-
const plgg_view_1 = require("plgg-view");
|
|
1676
|
-
const styleEntry_1 = require("src/styleEntry.ts");
|
|
1677
|
-
const interaction_1 = require("src/Component/model/interaction.ts");
|
|
1678
|
-
const identity_1 = require("src/Meta/model/identity.ts");
|
|
1679
|
-
const formView = (props) => (0, plgg_view_1.form)([
|
|
1680
|
-
(0, plgg_view_1.onSubmit)(props.onSubmit),
|
|
1681
|
-
(0, plgg_view_1.attr)("class", `${identity_1.cssPrefix}-form`),
|
|
1682
|
-
], [
|
|
1683
|
-
...props.fields,
|
|
1684
|
-
(0, plgg_view_1.button)([
|
|
1685
|
-
(0, plgg_view_1.type_)("submit"),
|
|
1686
|
-
...(0, plgg_view_1.disabled_)(props.submitting),
|
|
1687
|
-
(0, styleEntry_1.style_)(`${identity_1.cssPrefix}-btn ${identity_1.cssPrefix}-btn-primary`, interaction_1.focusRing, ...(props.submitting
|
|
1688
|
-
? [`${identity_1.cssPrefix}-disabled`]
|
|
1689
|
-
: [interaction_1.hoverDim])),
|
|
1690
|
-
], [
|
|
1691
|
-
(0, plgg_view_1.text)(props.submitting
|
|
1692
|
-
? "Submitting…"
|
|
1693
|
-
: props.submitLabel),
|
|
1694
|
-
]),
|
|
1695
|
-
]);
|
|
1696
|
-
exports.formView = formView;
|
|
1697
|
-
|
|
1698
3113
|
},
|
|
1699
3114
|
"src/Render/index.ts": function (module, exports, require) {
|
|
1700
3115
|
"use strict";
|
|
1701
3116
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1702
|
-
exports.renderMode = exports.singleColumn = exports.crumbsOf = exports.multiColumnWith = exports.multiColumn = exports.currentScreen = exports.toggleMode = exports.modes = void 0;
|
|
3117
|
+
exports.advanceColumns = exports.renderMode = exports.singleColumn = exports.crumbsOf = exports.multiColumnWith = exports.multiColumn = exports.currentScreen = exports.toggleMode = exports.modes = void 0;
|
|
1703
3118
|
var mode_1 = require("src/Render/model/mode.ts");
|
|
1704
3119
|
Object.defineProperty(exports, "modes", { enumerable: true, get: function () { return mode_1.modes; } });
|
|
1705
3120
|
Object.defineProperty(exports, "toggleMode", { enumerable: true, get: function () { return mode_1.toggleMode; } });
|
|
@@ -1713,6 +3128,8 @@ var singleColumn_1 = require("src/Render/usecase/singleColumn.ts");
|
|
|
1713
3128
|
Object.defineProperty(exports, "singleColumn", { enumerable: true, get: function () { return singleColumn_1.singleColumn; } });
|
|
1714
3129
|
var renderMode_1 = require("src/Render/usecase/renderMode.ts");
|
|
1715
3130
|
Object.defineProperty(exports, "renderMode", { enumerable: true, get: function () { return renderMode_1.renderMode; } });
|
|
3131
|
+
var advanceColumns_1 = require("src/Render/usecase/advanceColumns.ts");
|
|
3132
|
+
Object.defineProperty(exports, "advanceColumns", { enumerable: true, get: function () { return advanceColumns_1.advanceColumns; } });
|
|
1716
3133
|
|
|
1717
3134
|
},
|
|
1718
3135
|
"src/Render/model/mode.ts": function (module, exports, require) {
|
|
@@ -1749,13 +3166,13 @@ const combinators_1 = require("src/Layout/usecase/combinators.ts");
|
|
|
1749
3166
|
const breadcrumb_1 = require("src/Component/usecase/breadcrumb.ts");
|
|
1750
3167
|
const colHead_1 = require("src/Component/usecase/colHead.ts");
|
|
1751
3168
|
const Scene_1 = require("src/Schedule/model/Scene.ts");
|
|
1752
|
-
const
|
|
3169
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
1753
3170
|
const parts_1 = require("src/Render/usecase/parts.ts");
|
|
1754
3171
|
const multiColumn = (scene) => (0, exports.multiColumnWith)(scene, {
|
|
1755
3172
|
mapMsg: (msg) => msg,
|
|
1756
3173
|
});
|
|
1757
3174
|
exports.multiColumn = multiColumn;
|
|
1758
|
-
const multiColumnWith = (scene, options) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class",
|
|
3175
|
+
const multiColumnWith = (scene, options) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class", classHooks_1.schedulerClass)], [
|
|
1759
3176
|
...(options.omitBreadcrumb === true
|
|
1760
3177
|
? []
|
|
1761
3178
|
: [(0, breadcrumb_1.breadcrumb)((0, exports.crumbsOf)(scene))]),
|
|
@@ -1801,7 +3218,7 @@ const crumbsOf = (scene) => scene.levels.map((level, i) => ({
|
|
|
1801
3218
|
}));
|
|
1802
3219
|
exports.crumbsOf = crumbsOf;
|
|
1803
3220
|
const detailBody = (collection, detailRow, fields, actions) => (0, plgg_1.matchOption)(() => [
|
|
1804
|
-
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class",
|
|
3221
|
+
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class", classHooks_1.hintClass)], [(0, plgg_view_1.text)("Not found")]),
|
|
1805
3222
|
], (r) => [
|
|
1806
3223
|
(0, parts_1.detailFields)(fields),
|
|
1807
3224
|
...(0, parts_1.actionRow)(collection, (0, plgg_1.some)(r.id), actions),
|
|
@@ -1818,11 +3235,9 @@ const listActions = (collection, options) => {
|
|
|
1818
3235
|
return links.length === 0
|
|
1819
3236
|
? []
|
|
1820
3237
|
: [
|
|
1821
|
-
(0, plgg_view_1.slot)([
|
|
1822
|
-
(0, plgg_view_1.attr)("class", `${identity_1.cssPrefix}-list-actions`),
|
|
1823
|
-
], links.map((link) => (0, plgg_view_1.a)([
|
|
3238
|
+
(0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class", classHooks_1.listActionsClass)], links.map((link) => (0, plgg_view_1.a)([
|
|
1824
3239
|
(0, plgg_view_1.href)(link.href),
|
|
1825
|
-
(0, plgg_view_1.attr)("class",
|
|
3240
|
+
(0, plgg_view_1.attr)("class", classHooks_1.listActionClass),
|
|
1826
3241
|
...(link.active
|
|
1827
3242
|
? [
|
|
1828
3243
|
(0, plgg_view_1.attr)("aria-current", "page"),
|
|
@@ -1841,9 +3256,7 @@ const columnFor = (level, options) => (0, plgg_1.match)(level)([
|
|
|
1841
3256
|
close: (0, plgg_1.none)(),
|
|
1842
3257
|
links: [],
|
|
1843
3258
|
}),
|
|
1844
|
-
(0, plgg_view_1.slot)([
|
|
1845
|
-
(0, styleEntry_1.style_)(`${identity_1.cssPrefix}-menu-body`),
|
|
1846
|
-
], [
|
|
3259
|
+
(0, plgg_view_1.slot)([(0, styleEntry_1.style_)(classHooks_1.menuBodyClass)], [
|
|
1847
3260
|
mapScheduler(options)((0, parts_1.menuNav)(content.entries)),
|
|
1848
3261
|
]),
|
|
1849
3262
|
]),
|
|
@@ -1954,7 +3367,7 @@ const plgg_view_1 = require("plgg-view");
|
|
|
1954
3367
|
const styleEntry_1 = require("src/styleEntry.ts");
|
|
1955
3368
|
const navTree_1 = require("src/Component/usecase/navTree.ts");
|
|
1956
3369
|
const interaction_1 = require("src/Component/model/interaction.ts");
|
|
1957
|
-
const
|
|
3370
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
1958
3371
|
const confirmDialog_1 = require("src/Component/usecase/confirmDialog.ts");
|
|
1959
3372
|
const Msg_1 = require("src/Schedule/model/Msg.ts");
|
|
1960
3373
|
const Row_1 = require("src/Declare/model/Row.ts");
|
|
@@ -1975,14 +3388,14 @@ exports.confirmOverlay = confirmOverlay;
|
|
|
1975
3388
|
const actionRow = (collection, target, actions) => actions.length === 0
|
|
1976
3389
|
? []
|
|
1977
3390
|
: [
|
|
1978
|
-
(0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class",
|
|
1979
|
-
(0, styleEntry_1.style_)(
|
|
3391
|
+
(0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class", classHooks_1.actionsClass)], actions.map((ab) => (0, plgg_view_1.button)([
|
|
3392
|
+
(0, styleEntry_1.style_)(classHooks_1.btnClass, interaction_1.focusRing),
|
|
1980
3393
|
(0, plgg_view_1.onClick)((0, Msg_1.requestAction)(collection, ab.id, target)),
|
|
1981
3394
|
], [(0, plgg_view_1.text)(ab.label)]))),
|
|
1982
3395
|
];
|
|
1983
3396
|
exports.actionRow = actionRow;
|
|
1984
3397
|
const choiceSelect = (c) => (0, plgg_view_1.select)([
|
|
1985
|
-
(0, plgg_view_1.attr)("class",
|
|
3398
|
+
(0, plgg_view_1.attr)("class", classHooks_1.queryChoiceClass),
|
|
1986
3399
|
(0, plgg_view_1.attr)("aria-label", c.label),
|
|
1987
3400
|
(0, plgg_view_1.onChange)((v) => (0, Msg_1.queryChoiceInput)(c.id, v)),
|
|
1988
3401
|
], [
|
|
@@ -2002,7 +3415,7 @@ const choiceSelect = (c) => (0, plgg_view_1.select)([
|
|
|
2002
3415
|
const queryField = (q) => (0, plgg_1.matchOption)(() => [], (state) => [
|
|
2003
3416
|
(0, plgg_view_1.input)([
|
|
2004
3417
|
(0, plgg_view_1.attr)("type", "search"),
|
|
2005
|
-
(0, plgg_view_1.attr)("class",
|
|
3418
|
+
(0, plgg_view_1.attr)("class", classHooks_1.queryClass),
|
|
2006
3419
|
(0, plgg_view_1.attr)("value", state.text),
|
|
2007
3420
|
(0, plgg_view_1.attr)("placeholder", state.placeholder),
|
|
2008
3421
|
(0, plgg_view_1.onInput)((v) => (0, Msg_1.queryInput)(v)),
|
|
@@ -2010,31 +3423,29 @@ const queryField = (q) => (0, plgg_1.matchOption)(() => [], (state) => [
|
|
|
2010
3423
|
...state.choices.map(choiceSelect),
|
|
2011
3424
|
])(q);
|
|
2012
3425
|
exports.queryField = queryField;
|
|
2013
|
-
const rowItem = (r) => (0, plgg_view_1.li)([(0, plgg_view_1.attr)("class",
|
|
3426
|
+
const rowItem = (r) => (0, plgg_view_1.li)([(0, plgg_view_1.attr)("class", classHooks_1.listItemClass)], [
|
|
2014
3427
|
(0, plgg_view_1.a)([
|
|
2015
3428
|
(0, plgg_view_1.href)(r.href),
|
|
2016
3429
|
...(r.active
|
|
2017
3430
|
? [(0, plgg_view_1.attr)("aria-current", "page")]
|
|
2018
3431
|
: []),
|
|
2019
|
-
(0, styleEntry_1.style_)(
|
|
3432
|
+
(0, styleEntry_1.style_)(classHooks_1.rowLinkClass, interaction_1.focusRing),
|
|
2020
3433
|
], [(0, plgg_view_1.text)(r.row.label)]),
|
|
2021
3434
|
]);
|
|
2022
3435
|
exports.rowItem = rowItem;
|
|
2023
|
-
const rowList = (rows) => (0, plgg_view_1.ul)([(0, styleEntry_1.style_)(
|
|
3436
|
+
const rowList = (rows) => (0, plgg_view_1.ul)([(0, styleEntry_1.style_)(classHooks_1.listClass)], rows.map(exports.rowItem));
|
|
2024
3437
|
exports.rowList = rowList;
|
|
2025
3438
|
const tileBody = (t) => [
|
|
2026
|
-
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class",
|
|
2027
|
-
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class",
|
|
3439
|
+
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class", classHooks_1.tileLabelClass)], [(0, plgg_view_1.text)(t.label)]),
|
|
3440
|
+
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class", classHooks_1.tileCaptionClass)], [(0, plgg_view_1.text)(t.caption)]),
|
|
2028
3441
|
];
|
|
2029
|
-
const tileItem = (t) => (0, plgg_view_1.li)([(0, plgg_view_1.attr)("class",
|
|
2030
|
-
(0, plgg_1.matchOption)(() => (0, plgg_view_1.span)([
|
|
2031
|
-
(0, plgg_view_1.attr)("class", `${identity_1.cssPrefix}-tile-body`),
|
|
2032
|
-
], tileBody(t)), (to) => (0, plgg_view_1.a)([
|
|
3442
|
+
const tileItem = (t) => (0, plgg_view_1.li)([(0, plgg_view_1.attr)("class", classHooks_1.tileClass)], [
|
|
3443
|
+
(0, plgg_1.matchOption)(() => (0, plgg_view_1.span)([(0, plgg_view_1.attr)("class", classHooks_1.tileBodyClass)], tileBody(t)), (to) => (0, plgg_view_1.a)([
|
|
2033
3444
|
(0, plgg_view_1.href)(to),
|
|
2034
|
-
(0, styleEntry_1.style_)(
|
|
3445
|
+
(0, styleEntry_1.style_)(classHooks_1.tileLinkClass, interaction_1.focusRing),
|
|
2035
3446
|
], tileBody(t)))(t.href),
|
|
2036
3447
|
]);
|
|
2037
|
-
const tileGrid = (tiles) => (0, plgg_view_1.ul)([(0, styleEntry_1.style_)(
|
|
3448
|
+
const tileGrid = (tiles) => (0, plgg_view_1.ul)([(0, styleEntry_1.style_)(classHooks_1.boardClass)], tiles.map(tileItem));
|
|
2038
3449
|
exports.tileGrid = tileGrid;
|
|
2039
3450
|
const menuNav = (entries) => (0, navTree_1.navTree)(entries.map((e) => ({
|
|
2040
3451
|
label: e.label,
|
|
@@ -2048,12 +3459,12 @@ const activeEntry = (entries) => {
|
|
|
2048
3459
|
};
|
|
2049
3460
|
const loadingHint = (loading) => loading
|
|
2050
3461
|
? [
|
|
2051
|
-
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class",
|
|
3462
|
+
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class", classHooks_1.hintClass)], [(0, plgg_view_1.text)("Loading…")]),
|
|
2052
3463
|
]
|
|
2053
3464
|
: [];
|
|
2054
3465
|
exports.loadingHint = loadingHint;
|
|
2055
3466
|
const errorHint = (error) => (0, plgg_1.matchOption)(() => [], (e) => [
|
|
2056
|
-
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class",
|
|
3467
|
+
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class", classHooks_1.errorClass)], [(0, plgg_view_1.text)(`Failed: ${e}`)]),
|
|
2057
3468
|
])(error);
|
|
2058
3469
|
exports.errorHint = errorHint;
|
|
2059
3470
|
const valueNode = (value, refHref) => (0, plgg_1.match)(value)([
|
|
@@ -2061,49 +3472,39 @@ const valueNode = (value, refHref) => (0, plgg_1.match)(value)([
|
|
|
2061
3472
|
({ content }) => (0, plgg_view_1.text)(content),
|
|
2062
3473
|
], [
|
|
2063
3474
|
(0, Row_1.numValue$)(),
|
|
2064
|
-
() => (0, plgg_view_1.span)([
|
|
2065
|
-
(0, plgg_view_1.attr)("class", `${identity_1.cssPrefix}-field-num`),
|
|
2066
|
-
], [(0, plgg_view_1.text)((0, Row_1.fieldText)(value))]),
|
|
3475
|
+
() => (0, plgg_view_1.span)([(0, plgg_view_1.attr)("class", classHooks_1.fieldNumClass)], [(0, plgg_view_1.text)((0, Row_1.fieldText)(value))]),
|
|
2067
3476
|
], [
|
|
2068
3477
|
(0, Row_1.flagValue$)(),
|
|
2069
|
-
() => (0, plgg_view_1.span)([
|
|
2070
|
-
(0, plgg_view_1.attr)("class", `${identity_1.cssPrefix}-field-flag`),
|
|
2071
|
-
], [(0, plgg_view_1.text)((0, Row_1.fieldText)(value))]),
|
|
3478
|
+
() => (0, plgg_view_1.span)([(0, plgg_view_1.attr)("class", classHooks_1.fieldFlagClass)], [(0, plgg_view_1.text)((0, Row_1.fieldText)(value))]),
|
|
2072
3479
|
], [
|
|
2073
3480
|
(0, Row_1.momentValue$)(),
|
|
2074
|
-
() => (0, plgg_view_1.span)([
|
|
2075
|
-
(0, plgg_view_1.attr)("class", `${identity_1.cssPrefix}-field-moment`),
|
|
2076
|
-
], [(0, plgg_view_1.text)((0, Row_1.fieldText)(value))]),
|
|
3481
|
+
() => (0, plgg_view_1.span)([(0, plgg_view_1.attr)("class", classHooks_1.fieldMomentClass)], [(0, plgg_view_1.text)((0, Row_1.fieldText)(value))]),
|
|
2077
3482
|
], [
|
|
2078
3483
|
(0, Row_1.refValue$)(),
|
|
2079
3484
|
({ content }) => (0, plgg_1.matchOption)(() => (0, plgg_view_1.text)(content.label), (to) => (0, plgg_view_1.a)([
|
|
2080
3485
|
(0, plgg_view_1.href)(to),
|
|
2081
|
-
(0, styleEntry_1.style_)(
|
|
3486
|
+
(0, styleEntry_1.style_)(classHooks_1.fieldRefClass, interaction_1.focusRing),
|
|
2082
3487
|
], [(0, plgg_view_1.text)(content.label)]))(refHref),
|
|
2083
3488
|
], [
|
|
2084
3489
|
(0, Row_1.mediaValue$)(),
|
|
2085
3490
|
({ content }) => (0, plgg_view_1.img)([
|
|
2086
3491
|
(0, plgg_view_1.attr)("src", content.src),
|
|
2087
3492
|
(0, plgg_view_1.attr)("alt", content.alt),
|
|
2088
|
-
(0, plgg_view_1.attr)("class",
|
|
3493
|
+
(0, plgg_view_1.attr)("class", classHooks_1.fieldMediaClass),
|
|
2089
3494
|
], []),
|
|
2090
3495
|
]);
|
|
2091
|
-
const detailFields = (fields) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class",
|
|
3496
|
+
const detailFields = (fields) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class", classHooks_1.fieldsClass)], fields.map((f) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class", classHooks_1.fieldClass)], f.label === ""
|
|
2092
3497
|
? [valueNode(f.value, f.href)]
|
|
2093
3498
|
: [
|
|
2094
|
-
(0, plgg_view_1.span)([
|
|
2095
|
-
|
|
2096
|
-
], [(0, plgg_view_1.text)(f.label)]),
|
|
2097
|
-
(0, plgg_view_1.span)([
|
|
2098
|
-
(0, plgg_view_1.attr)("class", `${identity_1.cssPrefix}-field-value`),
|
|
2099
|
-
], [valueNode(f.value, f.href)]),
|
|
3499
|
+
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class", classHooks_1.fieldLabelClass)], [(0, plgg_view_1.text)(f.label)]),
|
|
3500
|
+
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class", classHooks_1.fieldValueClass)], [valueNode(f.value, f.href)]),
|
|
2100
3501
|
])));
|
|
2101
3502
|
exports.detailFields = detailFields;
|
|
2102
3503
|
const backControl = (back) => (0, plgg_1.matchOption)(() => [], (to) => [
|
|
2103
3504
|
(0, plgg_view_1.a)([
|
|
2104
3505
|
(0, plgg_view_1.href)(to),
|
|
2105
3506
|
(0, plgg_view_1.attr)("aria-label", "Back"),
|
|
2106
|
-
(0, styleEntry_1.style_)(
|
|
3507
|
+
(0, styleEntry_1.style_)(classHooks_1.backClass, interaction_1.focusRing),
|
|
2107
3508
|
], [(0, plgg_view_1.text)("← Back")]),
|
|
2108
3509
|
])(back);
|
|
2109
3510
|
exports.backControl = backControl;
|
|
@@ -2256,15 +3657,13 @@ const plgg_view_1 = require("plgg-view");
|
|
|
2256
3657
|
const combinators_1 = require("src/Layout/usecase/combinators.ts");
|
|
2257
3658
|
const typography_1 = require("src/Component/usecase/typography.ts");
|
|
2258
3659
|
const Scene_1 = require("src/Schedule/model/Scene.ts");
|
|
2259
|
-
const
|
|
3660
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
2260
3661
|
const screen_1 = require("src/Render/model/screen.ts");
|
|
2261
3662
|
const parts_1 = require("src/Render/usecase/parts.ts");
|
|
2262
|
-
const singleColumn = (scene) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class",
|
|
3663
|
+
const singleColumn = (scene) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class", classHooks_1.singleClass)], [
|
|
2263
3664
|
...(0, parts_1.confirmOverlay)(scene.confirm),
|
|
2264
3665
|
(0, plgg_1.matchOption)(() => (0, combinators_1.column)([], [
|
|
2265
|
-
(0, plgg_view_1.span)([
|
|
2266
|
-
(0, plgg_view_1.attr)("class", `${identity_1.cssPrefix}-hint`),
|
|
2267
|
-
], [(0, plgg_view_1.text)("Nothing to show")]),
|
|
3666
|
+
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class", classHooks_1.hintClass)], [(0, plgg_view_1.text)("Nothing to show")]),
|
|
2268
3667
|
]), (screen) => screenView(screen))((0, screen_1.currentScreen)(scene)),
|
|
2269
3668
|
]);
|
|
2270
3669
|
exports.singleColumn = singleColumn;
|
|
@@ -2312,7 +3711,7 @@ const screenView = (screen) => (0, plgg_1.match)(screen)([
|
|
|
2312
3711
|
]);
|
|
2313
3712
|
const screenTitle = (title) => (0, typography_1.heading)(2, title);
|
|
2314
3713
|
const detailBody = (collection, detailRow, fields, actions) => (0, plgg_1.matchOption)(() => [
|
|
2315
|
-
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class",
|
|
3714
|
+
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class", classHooks_1.hintClass)], [(0, plgg_view_1.text)("Not found")]),
|
|
2316
3715
|
], (r) => [
|
|
2317
3716
|
(0, parts_1.detailFields)(fields),
|
|
2318
3717
|
...(0, parts_1.actionRow)(collection, (0, plgg_1.some)(r.id), actions),
|
|
@@ -2335,6 +3734,58 @@ const renderMode = (mode) => (scene) => {
|
|
|
2335
3734
|
};
|
|
2336
3735
|
exports.renderMode = renderMode;
|
|
2337
3736
|
|
|
3737
|
+
},
|
|
3738
|
+
"src/Render/usecase/advanceColumns.ts": function (module, exports, require) {
|
|
3739
|
+
"use strict";
|
|
3740
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3741
|
+
exports.advanceColumns = void 0;
|
|
3742
|
+
const client_1 = require("plgg-view/client");
|
|
3743
|
+
const breakpoint_1 = require("src/Style/model/breakpoint.ts");
|
|
3744
|
+
const advanceColumns = (theme) => (done) => (0, client_1.cmdEffect)(() => new Promise((resolve) => {
|
|
3745
|
+
const finish = () => resolve(done);
|
|
3746
|
+
if (typeof document === "undefined" ||
|
|
3747
|
+
typeof window === "undefined" ||
|
|
3748
|
+
typeof requestAnimationFrame ===
|
|
3749
|
+
"undefined") {
|
|
3750
|
+
return finish();
|
|
3751
|
+
}
|
|
3752
|
+
const p = theme.prefix;
|
|
3753
|
+
const scroll = () => {
|
|
3754
|
+
const row = document.querySelector(`.${p}-row`);
|
|
3755
|
+
if (row !== null) {
|
|
3756
|
+
const cols = Array.from(row.querySelectorAll(`.${p}-col`)).filter((c) => c.getBoundingClientRect()
|
|
3757
|
+
.width > 0);
|
|
3758
|
+
const last = cols[cols.length - 1];
|
|
3759
|
+
if (last !== undefined) {
|
|
3760
|
+
const strip = row.getBoundingClientRect();
|
|
3761
|
+
const col = last.getBoundingClientRect();
|
|
3762
|
+
if (row instanceof HTMLElement) {
|
|
3763
|
+
row.style.setProperty(`--${p}-runway-last`, `${Math.round(col.width)}px`);
|
|
3764
|
+
}
|
|
3765
|
+
const toLeftEdge = row.scrollLeft +
|
|
3766
|
+
(col.left - strip.left);
|
|
3767
|
+
const wide = window.matchMedia((0, breakpoint_1.minWidth)("snap")).matches;
|
|
3768
|
+
const inView = col.left >= strip.left - 1 &&
|
|
3769
|
+
col.right <= strip.right + 1;
|
|
3770
|
+
if (wide && inView) {
|
|
3771
|
+
return finish();
|
|
3772
|
+
}
|
|
3773
|
+
row.scrollTo({
|
|
3774
|
+
left: wide
|
|
3775
|
+
? toLeftEdge -
|
|
3776
|
+
(strip.width - col.width) /
|
|
3777
|
+
2
|
|
3778
|
+
: toLeftEdge,
|
|
3779
|
+
behavior: "smooth",
|
|
3780
|
+
});
|
|
3781
|
+
}
|
|
3782
|
+
}
|
|
3783
|
+
finish();
|
|
3784
|
+
};
|
|
3785
|
+
requestAnimationFrame(() => requestAnimationFrame(scroll));
|
|
3786
|
+
}));
|
|
3787
|
+
exports.advanceColumns = advanceColumns;
|
|
3788
|
+
|
|
2338
3789
|
},
|
|
2339
3790
|
"src/Declare/model/Source.ts": function (module, exports, require) {
|
|
2340
3791
|
"use strict";
|
|
@@ -4260,8 +5711,10 @@ export default __entry;
|
|
|
4260
5711
|
export const {
|
|
4261
5712
|
action,
|
|
4262
5713
|
actionById,
|
|
5714
|
+
actionsClass,
|
|
4263
5715
|
actor,
|
|
4264
5716
|
adapter,
|
|
5717
|
+
advanceColumns,
|
|
4265
5718
|
applyVia,
|
|
4266
5719
|
asFlag,
|
|
4267
5720
|
asMoment,
|
|
@@ -4269,26 +5722,57 @@ export const {
|
|
|
4269
5722
|
asText,
|
|
4270
5723
|
asidePane,
|
|
4271
5724
|
async,
|
|
5725
|
+
backClass,
|
|
5726
|
+
backdropClass,
|
|
4272
5727
|
binding,
|
|
5728
|
+
boardClass,
|
|
4273
5729
|
boardLevel$,
|
|
4274
5730
|
breadcrumb,
|
|
5731
|
+
browser,
|
|
5732
|
+
browserClass,
|
|
5733
|
+
btnClass,
|
|
5734
|
+
btnDangerClass,
|
|
5735
|
+
btnPrimaryClass,
|
|
4275
5736
|
button,
|
|
4276
5737
|
cancelAction,
|
|
4277
5738
|
catalogOf,
|
|
5739
|
+
checkClass,
|
|
5740
|
+
checkLabelClass,
|
|
4278
5741
|
checkbox,
|
|
5742
|
+
checkboxClass,
|
|
4279
5743
|
choiceOf,
|
|
5744
|
+
colClass,
|
|
4280
5745
|
colHead,
|
|
5746
|
+
colHeadClass,
|
|
5747
|
+
colHeadLinkClass,
|
|
5748
|
+
colHeadTitleClass,
|
|
4281
5749
|
collection,
|
|
4282
5750
|
collectionById,
|
|
4283
5751
|
column,
|
|
5752
|
+
columnAttr,
|
|
5753
|
+
columnOf,
|
|
5754
|
+
columnWith,
|
|
5755
|
+
columnWithSpan,
|
|
5756
|
+
columnsOf,
|
|
5757
|
+
compositionHref,
|
|
5758
|
+
compositionQuery,
|
|
4284
5759
|
confirm,
|
|
4285
5760
|
confirmAction,
|
|
4286
5761
|
confirmDialog,
|
|
4287
5762
|
controlKinds,
|
|
5763
|
+
crumbHereClass,
|
|
5764
|
+
crumbLinkClass,
|
|
5765
|
+
crumbSepClass,
|
|
5766
|
+
crumbsClass,
|
|
4288
5767
|
crumbsOf,
|
|
4289
5768
|
cssPrefix,
|
|
5769
|
+
cssVar,
|
|
5770
|
+
cssVarRef,
|
|
4290
5771
|
currentScreen,
|
|
4291
5772
|
declare,
|
|
5773
|
+
declaredForm,
|
|
5774
|
+
decodeComposition,
|
|
5775
|
+
decodeTrail,
|
|
4292
5776
|
defaultFuel,
|
|
4293
5777
|
descriptorOf,
|
|
4294
5778
|
detailLevel$,
|
|
@@ -4296,19 +5780,40 @@ export const {
|
|
|
4296
5780
|
detailView$,
|
|
4297
5781
|
detectModelContext,
|
|
4298
5782
|
diagnosticSeverity,
|
|
5783
|
+
dialogActionsClass,
|
|
5784
|
+
dialogClass,
|
|
5785
|
+
dialogTitleClass,
|
|
4299
5786
|
diffCatalog,
|
|
5787
|
+
disabledClass,
|
|
5788
|
+
documentColumn,
|
|
4300
5789
|
dynamic,
|
|
4301
5790
|
effect,
|
|
4302
5791
|
emit,
|
|
4303
5792
|
emit$,
|
|
4304
5793
|
emptyModel,
|
|
5794
|
+
encodeTrail,
|
|
5795
|
+
entrySeparator,
|
|
4305
5796
|
enumArg,
|
|
4306
5797
|
enumArg$,
|
|
5798
|
+
errorClass,
|
|
4307
5799
|
errorFor,
|
|
5800
|
+
escapeChar,
|
|
4308
5801
|
failed,
|
|
4309
5802
|
field,
|
|
5803
|
+
fieldClass,
|
|
5804
|
+
fieldControl,
|
|
5805
|
+
fieldErrorClass,
|
|
5806
|
+
fieldFlagClass,
|
|
5807
|
+
fieldLabelClass,
|
|
5808
|
+
fieldMediaClass,
|
|
5809
|
+
fieldMomentClass,
|
|
5810
|
+
fieldNumClass,
|
|
4310
5811
|
fieldOf,
|
|
5812
|
+
fieldRefClass,
|
|
5813
|
+
fieldSeparator,
|
|
4311
5814
|
fieldText,
|
|
5815
|
+
fieldValueClass,
|
|
5816
|
+
fieldsClass,
|
|
4312
5817
|
flagValue,
|
|
4313
5818
|
flagValue$,
|
|
4314
5819
|
flowHost,
|
|
@@ -4316,18 +5821,29 @@ export const {
|
|
|
4316
5821
|
flowSchemaOf,
|
|
4317
5822
|
focusRing,
|
|
4318
5823
|
focusedView,
|
|
5824
|
+
foldClass,
|
|
5825
|
+
foldTrail,
|
|
5826
|
+
formClass,
|
|
4319
5827
|
formView,
|
|
4320
5828
|
frameworkName,
|
|
5829
|
+
glideEase,
|
|
4321
5830
|
heading,
|
|
5831
|
+
hintClass,
|
|
4322
5832
|
hostAdapter,
|
|
4323
5833
|
hoverDim,
|
|
4324
5834
|
idleSubmission,
|
|
4325
5835
|
immediate,
|
|
4326
5836
|
inertModelContext,
|
|
5837
|
+
injectNavigationScript,
|
|
5838
|
+
inputClass,
|
|
4327
5839
|
invokeWith,
|
|
4328
5840
|
isDestructive,
|
|
4329
5841
|
isPending,
|
|
4330
5842
|
landmarkTag,
|
|
5843
|
+
listActionClass,
|
|
5844
|
+
listActionsClass,
|
|
5845
|
+
listClass,
|
|
5846
|
+
listItemClass,
|
|
4331
5847
|
listLevel$,
|
|
4332
5848
|
listView,
|
|
4333
5849
|
listView$,
|
|
@@ -4339,19 +5855,36 @@ export const {
|
|
|
4339
5855
|
mediaValue,
|
|
4340
5856
|
mediaValue$,
|
|
4341
5857
|
menu,
|
|
5858
|
+
menuBodyClass,
|
|
5859
|
+
menuClass,
|
|
5860
|
+
menuColumn,
|
|
5861
|
+
menuCompactAttr,
|
|
4342
5862
|
menuEntry,
|
|
4343
5863
|
menuLevel$,
|
|
5864
|
+
menuOpenAttr,
|
|
4344
5865
|
menuView,
|
|
4345
5866
|
menuView$,
|
|
5867
|
+
modalClass,
|
|
4346
5868
|
modes,
|
|
4347
5869
|
momentValue,
|
|
4348
5870
|
momentValue$,
|
|
5871
|
+
moonClass,
|
|
4349
5872
|
multiColumn,
|
|
4350
5873
|
multiColumnWith,
|
|
4351
5874
|
named,
|
|
5875
|
+
navClass,
|
|
5876
|
+
navFlatClass,
|
|
5877
|
+
navGroupClass,
|
|
5878
|
+
navGroupTitleClass,
|
|
5879
|
+
navHookName,
|
|
5880
|
+
navLinkClass,
|
|
5881
|
+
navNumberedClass,
|
|
4352
5882
|
navPane,
|
|
5883
|
+
navSubgroupClass,
|
|
5884
|
+
navSubgroupTitleClass,
|
|
4353
5885
|
navTree,
|
|
4354
5886
|
navigate,
|
|
5887
|
+
navigationInitScript,
|
|
4355
5888
|
noDefaultAdapter$,
|
|
4356
5889
|
nullary,
|
|
4357
5890
|
nullary$,
|
|
@@ -4359,24 +5892,35 @@ export const {
|
|
|
4359
5892
|
numValue$,
|
|
4360
5893
|
openMenu,
|
|
4361
5894
|
pane,
|
|
5895
|
+
paneClass,
|
|
4362
5896
|
parseForm,
|
|
5897
|
+
parseSteps,
|
|
4363
5898
|
parseUrl,
|
|
4364
5899
|
pendingSubmission,
|
|
4365
5900
|
permits,
|
|
5901
|
+
phoneAttr,
|
|
5902
|
+
pinnedClass,
|
|
5903
|
+
pinnedPanel,
|
|
4366
5904
|
pragmaticTheme,
|
|
4367
5905
|
pragmaticThemeWithPalette,
|
|
4368
5906
|
pressDim,
|
|
5907
|
+
printSteps,
|
|
5908
|
+
programmaticScrollAttr,
|
|
4369
5909
|
projectField,
|
|
4370
5910
|
projectRow,
|
|
4371
5911
|
projection,
|
|
4372
5912
|
prose,
|
|
4373
5913
|
query,
|
|
4374
5914
|
queryChoice,
|
|
5915
|
+
queryChoiceClass,
|
|
4375
5916
|
queryChoiceInput,
|
|
5917
|
+
queryClass,
|
|
4376
5918
|
queryInput,
|
|
4377
5919
|
ran,
|
|
4378
5920
|
ran$,
|
|
5921
|
+
reachableScroll,
|
|
4379
5922
|
readFlow,
|
|
5923
|
+
readPreference,
|
|
4380
5924
|
reconcile,
|
|
4381
5925
|
refTarget,
|
|
4382
5926
|
refValue,
|
|
@@ -4386,24 +5930,55 @@ export const {
|
|
|
4386
5930
|
renderMode,
|
|
4387
5931
|
requestAction,
|
|
4388
5932
|
resolveAdapter,
|
|
5933
|
+
resolveTrail,
|
|
5934
|
+
restParam,
|
|
5935
|
+
restep,
|
|
4389
5936
|
resumeFlow,
|
|
5937
|
+
revealColumn,
|
|
5938
|
+
revealOptions,
|
|
5939
|
+
revealTarget,
|
|
4390
5940
|
row,
|
|
4391
5941
|
rowCap,
|
|
5942
|
+
rowClass,
|
|
5943
|
+
rowLinkClass,
|
|
5944
|
+
rowWith,
|
|
4392
5945
|
runFlow,
|
|
4393
5946
|
runFlow$,
|
|
4394
5947
|
runFlowEffect,
|
|
5948
|
+
savePreference,
|
|
4395
5949
|
sceneToUrl,
|
|
4396
5950
|
schedule,
|
|
5951
|
+
schedulerClass,
|
|
4397
5952
|
scope,
|
|
5953
|
+
seamClass,
|
|
4398
5954
|
select,
|
|
4399
5955
|
selectInput,
|
|
5956
|
+
selector,
|
|
5957
|
+
settledTrail,
|
|
5958
|
+
sidebarNav,
|
|
5959
|
+
sidebarNavClass,
|
|
5960
|
+
sidebarNavCss,
|
|
5961
|
+
sidebarNavRevealScript,
|
|
5962
|
+
singleClass,
|
|
4400
5963
|
singleColumn,
|
|
4401
5964
|
sliceOf,
|
|
4402
5965
|
slotOf,
|
|
5966
|
+
soloComposition,
|
|
5967
|
+
spanAttr,
|
|
5968
|
+
spanParam,
|
|
4403
5969
|
stalled,
|
|
4404
5970
|
stalled$,
|
|
4405
5971
|
startFlow,
|
|
4406
5972
|
staticThemeToggle,
|
|
5973
|
+
stepFrom,
|
|
5974
|
+
stepSeparator,
|
|
5975
|
+
strip,
|
|
5976
|
+
stripAttr,
|
|
5977
|
+
stripGeometry,
|
|
5978
|
+
stripMetrics,
|
|
5979
|
+
stripStyle,
|
|
5980
|
+
stripVar,
|
|
5981
|
+
sunClass,
|
|
4407
5982
|
sync,
|
|
4408
5983
|
syncCatalog,
|
|
4409
5984
|
textArea,
|
|
@@ -4416,12 +5991,32 @@ export const {
|
|
|
4416
5991
|
themeToggle,
|
|
4417
5992
|
themeToggleClass,
|
|
4418
5993
|
themeToggleCss,
|
|
5994
|
+
tileBodyClass,
|
|
5995
|
+
tileCaptionClass,
|
|
5996
|
+
tileClass,
|
|
5997
|
+
tileLabelClass,
|
|
5998
|
+
tileLinkClass,
|
|
4419
5999
|
toast,
|
|
6000
|
+
toastClass,
|
|
6001
|
+
toastCloseClass,
|
|
6002
|
+
toastToneClass,
|
|
4420
6003
|
toaster,
|
|
6004
|
+
toasterClass,
|
|
4421
6005
|
toggleMode,
|
|
4422
6006
|
tones,
|
|
4423
6007
|
tool,
|
|
6008
|
+
trailClass,
|
|
6009
|
+
trailParam,
|
|
6010
|
+
trailQuery,
|
|
4424
6011
|
unknownAdapter$,
|
|
4425
6012
|
unusedAdapter$,
|
|
4426
|
-
urlChanged
|
|
6013
|
+
urlChanged,
|
|
6014
|
+
visibleColumnStart,
|
|
6015
|
+
widthAttr,
|
|
6016
|
+
widthColumn,
|
|
6017
|
+
workspace,
|
|
6018
|
+
workspaceClass,
|
|
6019
|
+
workspaceCss,
|
|
6020
|
+
workspaceOptions,
|
|
6021
|
+
workspaceWith
|
|
4427
6022
|
} = __entry;
|