plggmatic 0.2.2 → 0.4.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 +82 -0
- package/dist/Appearance/model/appearance.d.ts +91 -0
- package/dist/Appearance/model/appearance.d.ts.map +1 -0
- package/dist/Appearance/usecase/appearanceCss.d.ts +24 -0
- package/dist/Appearance/usecase/appearanceCss.d.ts.map +1 -0
- package/dist/Appearance/usecase/asAppearance.d.ts +13 -0
- package/dist/Appearance/usecase/asAppearance.d.ts.map +1 -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 +3 -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/properties.d.ts +59 -0
- package/dist/Component/usecase/properties.d.ts.map +1 -0
- package/dist/Component/usecase/selectInput.d.ts.map +1 -1
- package/dist/Component/usecase/sidebarNav.d.ts +78 -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 +257 -0
- package/dist/Meta/model/classHooks.d.ts.map +1 -0
- package/dist/Navigate/index.d.ts +20 -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/carouselScript.d.ts +26 -0
- package/dist/Navigate/usecase/carouselScript.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/Shell/index.d.ts +21 -0
- package/dist/Shell/index.d.ts.map +1 -0
- package/dist/Shell/usecase/kit.d.ts +30 -0
- package/dist/Shell/usecase/kit.d.ts.map +1 -0
- package/dist/Shell/usecase/shell.d.ts +85 -0
- package/dist/Shell/usecase/shell.d.ts.map +1 -0
- package/dist/Style/index.d.ts +6 -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/typography.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/carouselCss.d.ts +17 -0
- package/dist/Style/usecase/carouselCss.d.ts.map +1 -0
- 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/shareCss.d.ts +49 -0
- package/dist/Style/usecase/shareCss.d.ts.map +1 -0
- package/dist/Style/usecase/slotCss.d.ts +73 -0
- package/dist/Style/usecase/slotCss.d.ts.map +1 -0
- package/dist/Style/usecase/syntaxCss.d.ts.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/System/usecase/systemCss.d.ts +43 -0
- package/dist/System/usecase/systemCss.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 +492 -0
- package/dist/index.d.ts +23 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +2649 -181
- package/dist/styleEntry.d.ts +12 -2
- package/dist/styleEntry.d.ts.map +1 -1
- package/dist/styleEntry.es.js +843 -44
- package/package.json +12 -8
package/dist/index.es.js
CHANGED
|
@@ -16,21 +16,127 @@ 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.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
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.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.openedAttr = exports.replacingAttr = exports.leavingAttr = 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.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 = exports.trailParam = exports.restep = exports.stepFrom = void 0;
|
|
22
|
+
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$ = exports.mediaValue = exports.refValue = exports.momentValue = void 0;
|
|
23
|
+
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 = exports.choiceOf = exports.slotOf = exports.emptyModel = void 0;
|
|
24
|
+
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 = exports.stalled = exports.rejected = exports.runFlow = void 0;
|
|
25
|
+
exports.calloutClass = exports.shellOpenAttr = exports.shellBackdropClass = exports.shellMenuId = exports.shellMenuClass = exports.shellMenuButtonClass = exports.shellBarBrandClass = exports.shellBarClass = exports.shellMinAttr = exports.docClass = exports.shellPageClass = exports.shellFootClass = exports.shellFoldClass = exports.shellBrandClass = exports.shellBodyClass = exports.shellTitleClass = exports.shellHeadClass = exports.shellSideClass = exports.shellClass = exports.asAppearance = exports.appearanceCss = exports.soft = exports.monochrome = exports.systemCss = exports.kitAppearanceCss = exports.kitSystemCss = exports.kitCss = exports.shell = exports.carouselInitScript = exports.carouselNextClass = exports.carouselPrevClass = exports.carouselCss = exports.shareInsetVar = exports.spanTwoClass = exports.shareClass = exports.shareCss = exports.shareOptions = 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.navSubgroupTitleClass = void 0;
|
|
26
|
+
exports.switchLabelClass = exports.switchThumbClass = exports.switchTrackClass = exports.switchClass = exports.propControlClass = exports.propLabelClass = exports.propClass = exports.propsClass = exports.toggle = exports.entry = exports.choice = exports.propertyRow = exports.propertyList = exports.calloutToneClass = exports.calloutTitleClass = void 0;
|
|
23
27
|
var identity_1 = require("src/Meta/model/identity.ts");
|
|
24
28
|
Object.defineProperty(exports, "frameworkName", { enumerable: true, get: function () { return identity_1.frameworkName; } });
|
|
25
29
|
Object.defineProperty(exports, "cssPrefix", { enumerable: true, get: function () { return identity_1.cssPrefix; } });
|
|
30
|
+
var classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
31
|
+
Object.defineProperty(exports, "btnClass", { enumerable: true, get: function () { return classHooks_1.btnClass; } });
|
|
32
|
+
Object.defineProperty(exports, "btnPrimaryClass", { enumerable: true, get: function () { return classHooks_1.btnPrimaryClass; } });
|
|
33
|
+
Object.defineProperty(exports, "btnDangerClass", { enumerable: true, get: function () { return classHooks_1.btnDangerClass; } });
|
|
34
|
+
Object.defineProperty(exports, "actionsClass", { enumerable: true, get: function () { return classHooks_1.actionsClass; } });
|
|
35
|
+
Object.defineProperty(exports, "disabledClass", { enumerable: true, get: function () { return classHooks_1.disabledClass; } });
|
|
36
|
+
Object.defineProperty(exports, "modalClass", { enumerable: true, get: function () { return classHooks_1.modalClass; } });
|
|
37
|
+
Object.defineProperty(exports, "backdropClass", { enumerable: true, get: function () { return classHooks_1.backdropClass; } });
|
|
38
|
+
Object.defineProperty(exports, "dialogClass", { enumerable: true, get: function () { return classHooks_1.dialogClass; } });
|
|
39
|
+
Object.defineProperty(exports, "dialogTitleClass", { enumerable: true, get: function () { return classHooks_1.dialogTitleClass; } });
|
|
40
|
+
Object.defineProperty(exports, "dialogActionsClass", { enumerable: true, get: function () { return classHooks_1.dialogActionsClass; } });
|
|
41
|
+
Object.defineProperty(exports, "toasterClass", { enumerable: true, get: function () { return classHooks_1.toasterClass; } });
|
|
42
|
+
Object.defineProperty(exports, "toastClass", { enumerable: true, get: function () { return classHooks_1.toastClass; } });
|
|
43
|
+
Object.defineProperty(exports, "toastCloseClass", { enumerable: true, get: function () { return classHooks_1.toastCloseClass; } });
|
|
44
|
+
Object.defineProperty(exports, "toastToneClass", { enumerable: true, get: function () { return classHooks_1.toastToneClass; } });
|
|
45
|
+
Object.defineProperty(exports, "formClass", { enumerable: true, get: function () { return classHooks_1.formClass; } });
|
|
46
|
+
Object.defineProperty(exports, "fieldsClass", { enumerable: true, get: function () { return classHooks_1.fieldsClass; } });
|
|
47
|
+
Object.defineProperty(exports, "fieldClass", { enumerable: true, get: function () { return classHooks_1.fieldClass; } });
|
|
48
|
+
Object.defineProperty(exports, "fieldLabelClass", { enumerable: true, get: function () { return classHooks_1.fieldLabelClass; } });
|
|
49
|
+
Object.defineProperty(exports, "fieldErrorClass", { enumerable: true, get: function () { return classHooks_1.fieldErrorClass; } });
|
|
50
|
+
Object.defineProperty(exports, "fieldValueClass", { enumerable: true, get: function () { return classHooks_1.fieldValueClass; } });
|
|
51
|
+
Object.defineProperty(exports, "inputClass", { enumerable: true, get: function () { return classHooks_1.inputClass; } });
|
|
52
|
+
Object.defineProperty(exports, "checkClass", { enumerable: true, get: function () { return classHooks_1.checkClass; } });
|
|
53
|
+
Object.defineProperty(exports, "checkboxClass", { enumerable: true, get: function () { return classHooks_1.checkboxClass; } });
|
|
54
|
+
Object.defineProperty(exports, "checkLabelClass", { enumerable: true, get: function () { return classHooks_1.checkLabelClass; } });
|
|
55
|
+
Object.defineProperty(exports, "fieldNumClass", { enumerable: true, get: function () { return classHooks_1.fieldNumClass; } });
|
|
56
|
+
Object.defineProperty(exports, "fieldFlagClass", { enumerable: true, get: function () { return classHooks_1.fieldFlagClass; } });
|
|
57
|
+
Object.defineProperty(exports, "fieldMomentClass", { enumerable: true, get: function () { return classHooks_1.fieldMomentClass; } });
|
|
58
|
+
Object.defineProperty(exports, "fieldRefClass", { enumerable: true, get: function () { return classHooks_1.fieldRefClass; } });
|
|
59
|
+
Object.defineProperty(exports, "fieldMediaClass", { enumerable: true, get: function () { return classHooks_1.fieldMediaClass; } });
|
|
60
|
+
Object.defineProperty(exports, "colHeadClass", { enumerable: true, get: function () { return classHooks_1.colHeadClass; } });
|
|
61
|
+
Object.defineProperty(exports, "colHeadTitleClass", { enumerable: true, get: function () { return classHooks_1.colHeadTitleClass; } });
|
|
62
|
+
Object.defineProperty(exports, "colHeadLinkClass", { enumerable: true, get: function () { return classHooks_1.colHeadLinkClass; } });
|
|
63
|
+
Object.defineProperty(exports, "crumbsClass", { enumerable: true, get: function () { return classHooks_1.crumbsClass; } });
|
|
64
|
+
Object.defineProperty(exports, "crumbHereClass", { enumerable: true, get: function () { return classHooks_1.crumbHereClass; } });
|
|
65
|
+
Object.defineProperty(exports, "crumbLinkClass", { enumerable: true, get: function () { return classHooks_1.crumbLinkClass; } });
|
|
66
|
+
Object.defineProperty(exports, "crumbSepClass", { enumerable: true, get: function () { return classHooks_1.crumbSepClass; } });
|
|
67
|
+
Object.defineProperty(exports, "schedulerClass", { enumerable: true, get: function () { return classHooks_1.schedulerClass; } });
|
|
68
|
+
Object.defineProperty(exports, "singleClass", { enumerable: true, get: function () { return classHooks_1.singleClass; } });
|
|
69
|
+
Object.defineProperty(exports, "backClass", { enumerable: true, get: function () { return classHooks_1.backClass; } });
|
|
70
|
+
Object.defineProperty(exports, "hintClass", { enumerable: true, get: function () { return classHooks_1.hintClass; } });
|
|
71
|
+
Object.defineProperty(exports, "errorClass", { enumerable: true, get: function () { return classHooks_1.errorClass; } });
|
|
72
|
+
Object.defineProperty(exports, "menuBodyClass", { enumerable: true, get: function () { return classHooks_1.menuBodyClass; } });
|
|
73
|
+
Object.defineProperty(exports, "listClass", { enumerable: true, get: function () { return classHooks_1.listClass; } });
|
|
74
|
+
Object.defineProperty(exports, "listItemClass", { enumerable: true, get: function () { return classHooks_1.listItemClass; } });
|
|
75
|
+
Object.defineProperty(exports, "listActionsClass", { enumerable: true, get: function () { return classHooks_1.listActionsClass; } });
|
|
76
|
+
Object.defineProperty(exports, "listActionClass", { enumerable: true, get: function () { return classHooks_1.listActionClass; } });
|
|
77
|
+
Object.defineProperty(exports, "rowLinkClass", { enumerable: true, get: function () { return classHooks_1.rowLinkClass; } });
|
|
78
|
+
Object.defineProperty(exports, "boardClass", { enumerable: true, get: function () { return classHooks_1.boardClass; } });
|
|
79
|
+
Object.defineProperty(exports, "tileClass", { enumerable: true, get: function () { return classHooks_1.tileClass; } });
|
|
80
|
+
Object.defineProperty(exports, "tileBodyClass", { enumerable: true, get: function () { return classHooks_1.tileBodyClass; } });
|
|
81
|
+
Object.defineProperty(exports, "tileLinkClass", { enumerable: true, get: function () { return classHooks_1.tileLinkClass; } });
|
|
82
|
+
Object.defineProperty(exports, "tileLabelClass", { enumerable: true, get: function () { return classHooks_1.tileLabelClass; } });
|
|
83
|
+
Object.defineProperty(exports, "tileCaptionClass", { enumerable: true, get: function () { return classHooks_1.tileCaptionClass; } });
|
|
84
|
+
Object.defineProperty(exports, "queryClass", { enumerable: true, get: function () { return classHooks_1.queryClass; } });
|
|
85
|
+
Object.defineProperty(exports, "queryChoiceClass", { enumerable: true, get: function () { return classHooks_1.queryChoiceClass; } });
|
|
86
|
+
Object.defineProperty(exports, "cssVar", { enumerable: true, get: function () { return classHooks_1.cssVar; } });
|
|
87
|
+
Object.defineProperty(exports, "cssVarRef", { enumerable: true, get: function () { return classHooks_1.cssVarRef; } });
|
|
88
|
+
Object.defineProperty(exports, "selector", { enumerable: true, get: function () { return classHooks_1.selector; } });
|
|
89
|
+
Object.defineProperty(exports, "foldClass", { enumerable: true, get: function () { return classHooks_1.foldClass; } });
|
|
90
|
+
Object.defineProperty(exports, "trailClass", { enumerable: true, get: function () { return classHooks_1.trailClass; } });
|
|
91
|
+
Object.defineProperty(exports, "leavingAttr", { enumerable: true, get: function () { return classHooks_1.leavingAttr; } });
|
|
92
|
+
Object.defineProperty(exports, "replacingAttr", { enumerable: true, get: function () { return classHooks_1.replacingAttr; } });
|
|
93
|
+
Object.defineProperty(exports, "openedAttr", { enumerable: true, get: function () { return classHooks_1.openedAttr; } });
|
|
26
94
|
var Layout_1 = require("src/Layout/index.ts");
|
|
27
95
|
Object.defineProperty(exports, "landmarkTag", { enumerable: true, get: function () { return Layout_1.landmarkTag; } });
|
|
96
|
+
Object.defineProperty(exports, "rowClass", { enumerable: true, get: function () { return Layout_1.rowClass; } });
|
|
97
|
+
Object.defineProperty(exports, "colClass", { enumerable: true, get: function () { return Layout_1.colClass; } });
|
|
98
|
+
Object.defineProperty(exports, "paneClass", { enumerable: true, get: function () { return Layout_1.paneClass; } });
|
|
28
99
|
Object.defineProperty(exports, "row", { enumerable: true, get: function () { return Layout_1.row; } });
|
|
100
|
+
Object.defineProperty(exports, "rowWith", { enumerable: true, get: function () { return Layout_1.rowWith; } });
|
|
29
101
|
Object.defineProperty(exports, "column", { enumerable: true, get: function () { return Layout_1.column; } });
|
|
102
|
+
Object.defineProperty(exports, "columnWith", { enumerable: true, get: function () { return Layout_1.columnWith; } });
|
|
30
103
|
Object.defineProperty(exports, "pane", { enumerable: true, get: function () { return Layout_1.pane; } });
|
|
31
104
|
Object.defineProperty(exports, "navPane", { enumerable: true, get: function () { return Layout_1.navPane; } });
|
|
32
105
|
Object.defineProperty(exports, "mainPane", { enumerable: true, get: function () { return Layout_1.mainPane; } });
|
|
33
106
|
Object.defineProperty(exports, "asidePane", { enumerable: true, get: function () { return Layout_1.asidePane; } });
|
|
107
|
+
var Navigate_1 = require("src/Navigate/index.ts");
|
|
108
|
+
Object.defineProperty(exports, "columnOf", { enumerable: true, get: function () { return Navigate_1.columnOf; } });
|
|
109
|
+
Object.defineProperty(exports, "columnWithSpan", { enumerable: true, get: function () { return Navigate_1.columnWithSpan; } });
|
|
110
|
+
Object.defineProperty(exports, "soloComposition", { enumerable: true, get: function () { return Navigate_1.soloComposition; } });
|
|
111
|
+
Object.defineProperty(exports, "columnsOf", { enumerable: true, get: function () { return Navigate_1.columnsOf; } });
|
|
112
|
+
Object.defineProperty(exports, "restParam", { enumerable: true, get: function () { return Navigate_1.restParam; } });
|
|
113
|
+
Object.defineProperty(exports, "spanParam", { enumerable: true, get: function () { return Navigate_1.spanParam; } });
|
|
114
|
+
Object.defineProperty(exports, "entrySeparator", { enumerable: true, get: function () { return Navigate_1.entrySeparator; } });
|
|
115
|
+
Object.defineProperty(exports, "fieldSeparator", { enumerable: true, get: function () { return Navigate_1.fieldSeparator; } });
|
|
116
|
+
Object.defineProperty(exports, "escapeChar", { enumerable: true, get: function () { return Navigate_1.escapeChar; } });
|
|
117
|
+
Object.defineProperty(exports, "decodeComposition", { enumerable: true, get: function () { return Navigate_1.decodeComposition; } });
|
|
118
|
+
Object.defineProperty(exports, "compositionQuery", { enumerable: true, get: function () { return Navigate_1.compositionQuery; } });
|
|
119
|
+
Object.defineProperty(exports, "compositionHref", { enumerable: true, get: function () { return Navigate_1.compositionHref; } });
|
|
120
|
+
Object.defineProperty(exports, "stripAttr", { enumerable: true, get: function () { return Navigate_1.stripAttr; } });
|
|
121
|
+
Object.defineProperty(exports, "columnAttr", { enumerable: true, get: function () { return Navigate_1.columnAttr; } });
|
|
122
|
+
Object.defineProperty(exports, "spanAttr", { enumerable: true, get: function () { return Navigate_1.spanAttr; } });
|
|
123
|
+
Object.defineProperty(exports, "navHookName", { enumerable: true, get: function () { return Navigate_1.navHookName; } });
|
|
124
|
+
Object.defineProperty(exports, "strip", { enumerable: true, get: function () { return Navigate_1.strip; } });
|
|
125
|
+
Object.defineProperty(exports, "documentColumn", { enumerable: true, get: function () { return Navigate_1.documentColumn; } });
|
|
126
|
+
Object.defineProperty(exports, "navigationInitScript", { enumerable: true, get: function () { return Navigate_1.navigationInitScript; } });
|
|
127
|
+
Object.defineProperty(exports, "injectNavigationScript", { enumerable: true, get: function () { return Navigate_1.injectNavigationScript; } });
|
|
128
|
+
Object.defineProperty(exports, "resolveTrail", { enumerable: true, get: function () { return Navigate_1.resolveTrail; } });
|
|
129
|
+
Object.defineProperty(exports, "settledTrail", { enumerable: true, get: function () { return Navigate_1.settledTrail; } });
|
|
130
|
+
Object.defineProperty(exports, "foldTrail", { enumerable: true, get: function () { return Navigate_1.foldTrail; } });
|
|
131
|
+
Object.defineProperty(exports, "stepFrom", { enumerable: true, get: function () { return Navigate_1.stepFrom; } });
|
|
132
|
+
Object.defineProperty(exports, "restep", { enumerable: true, get: function () { return Navigate_1.restep; } });
|
|
133
|
+
Object.defineProperty(exports, "trailParam", { enumerable: true, get: function () { return Navigate_1.trailParam; } });
|
|
134
|
+
Object.defineProperty(exports, "stepSeparator", { enumerable: true, get: function () { return Navigate_1.stepSeparator; } });
|
|
135
|
+
Object.defineProperty(exports, "encodeTrail", { enumerable: true, get: function () { return Navigate_1.encodeTrail; } });
|
|
136
|
+
Object.defineProperty(exports, "decodeTrail", { enumerable: true, get: function () { return Navigate_1.decodeTrail; } });
|
|
137
|
+
Object.defineProperty(exports, "trailQuery", { enumerable: true, get: function () { return Navigate_1.trailQuery; } });
|
|
138
|
+
Object.defineProperty(exports, "printSteps", { enumerable: true, get: function () { return Navigate_1.printSteps; } });
|
|
139
|
+
Object.defineProperty(exports, "parseSteps", { enumerable: true, get: function () { return Navigate_1.parseSteps; } });
|
|
34
140
|
var Component_1 = require("src/Component/index.ts");
|
|
35
141
|
Object.defineProperty(exports, "focusRing", { enumerable: true, get: function () { return Component_1.focusRing; } });
|
|
36
142
|
Object.defineProperty(exports, "hoverDim", { enumerable: true, get: function () { return Component_1.hoverDim; } });
|
|
@@ -46,6 +152,8 @@ Object.defineProperty(exports, "textInput", { enumerable: true, get: function ()
|
|
|
46
152
|
Object.defineProperty(exports, "textArea", { enumerable: true, get: function () { return Component_1.textArea; } });
|
|
47
153
|
Object.defineProperty(exports, "selectInput", { enumerable: true, get: function () { return Component_1.selectInput; } });
|
|
48
154
|
Object.defineProperty(exports, "checkbox", { enumerable: true, get: function () { return Component_1.checkbox; } });
|
|
155
|
+
Object.defineProperty(exports, "fieldControl", { enumerable: true, get: function () { return Component_1.fieldControl; } });
|
|
156
|
+
Object.defineProperty(exports, "declaredForm", { enumerable: true, get: function () { return Component_1.declaredForm; } });
|
|
49
157
|
Object.defineProperty(exports, "confirmDialog", { enumerable: true, get: function () { return Component_1.confirmDialog; } });
|
|
50
158
|
Object.defineProperty(exports, "tones", { enumerable: true, get: function () { return Component_1.tones; } });
|
|
51
159
|
Object.defineProperty(exports, "toast", { enumerable: true, get: function () { return Component_1.toast; } });
|
|
@@ -67,6 +175,7 @@ Object.defineProperty(exports, "multiColumnWith", { enumerable: true, get: funct
|
|
|
67
175
|
Object.defineProperty(exports, "crumbsOf", { enumerable: true, get: function () { return Render_1.crumbsOf; } });
|
|
68
176
|
Object.defineProperty(exports, "singleColumn", { enumerable: true, get: function () { return Render_1.singleColumn; } });
|
|
69
177
|
Object.defineProperty(exports, "renderMode", { enumerable: true, get: function () { return Render_1.renderMode; } });
|
|
178
|
+
Object.defineProperty(exports, "advanceColumns", { enumerable: true, get: function () { return Render_1.advanceColumns; } });
|
|
70
179
|
var Row_1 = require("src/Declare/model/Row.ts");
|
|
71
180
|
Object.defineProperty(exports, "field", { enumerable: true, get: function () { return Row_1.field; } });
|
|
72
181
|
Object.defineProperty(exports, "fieldOf", { enumerable: true, get: function () { return Row_1.fieldOf; } });
|
|
@@ -212,10 +321,123 @@ var themeToggle_1 = require("src/Component/usecase/themeToggle.ts");
|
|
|
212
321
|
Object.defineProperty(exports, "themeToggle", { enumerable: true, get: function () { return themeToggle_1.themeToggle; } });
|
|
213
322
|
Object.defineProperty(exports, "staticThemeToggle", { enumerable: true, get: function () { return themeToggle_1.staticThemeToggle; } });
|
|
214
323
|
Object.defineProperty(exports, "themeToggleClass", { enumerable: true, get: function () { return themeToggle_1.themeToggleClass; } });
|
|
324
|
+
Object.defineProperty(exports, "sunClass", { enumerable: true, get: function () { return themeToggle_1.sunClass; } });
|
|
325
|
+
Object.defineProperty(exports, "moonClass", { enumerable: true, get: function () { return themeToggle_1.moonClass; } });
|
|
215
326
|
Object.defineProperty(exports, "themeToggleCss", { enumerable: true, get: function () { return themeToggle_1.themeToggleCss; } });
|
|
327
|
+
var sidebarNav_1 = require("src/Component/usecase/sidebarNav.ts");
|
|
328
|
+
Object.defineProperty(exports, "sidebarNav", { enumerable: true, get: function () { return sidebarNav_1.sidebarNav; } });
|
|
329
|
+
Object.defineProperty(exports, "sidebarNavClass", { enumerable: true, get: function () { return sidebarNav_1.sidebarNavClass; } });
|
|
330
|
+
Object.defineProperty(exports, "sidebarNavCss", { enumerable: true, get: function () { return sidebarNav_1.sidebarNavCss; } });
|
|
331
|
+
Object.defineProperty(exports, "sidebarNavRevealScript", { enumerable: true, get: function () { return sidebarNav_1.sidebarNavRevealScript; } });
|
|
216
332
|
var brand_1 = require("src/brand.ts");
|
|
217
333
|
Object.defineProperty(exports, "pragmaticTheme", { enumerable: true, get: function () { return brand_1.pragmaticTheme; } });
|
|
218
334
|
Object.defineProperty(exports, "pragmaticThemeWithPalette", { enumerable: true, get: function () { return brand_1.pragmaticThemeWithPalette; } });
|
|
335
|
+
var Layout_2 = require("src/Layout/index.ts");
|
|
336
|
+
Object.defineProperty(exports, "stripMetrics", { enumerable: true, get: function () { return Layout_2.stripMetrics; } });
|
|
337
|
+
Object.defineProperty(exports, "stripGeometry", { enumerable: true, get: function () { return Layout_2.stripGeometry; } });
|
|
338
|
+
Object.defineProperty(exports, "stripVar", { enumerable: true, get: function () { return Layout_2.stripVar; } });
|
|
339
|
+
Object.defineProperty(exports, "stripStyle", { enumerable: true, get: function () { return Layout_2.stripStyle; } });
|
|
340
|
+
Object.defineProperty(exports, "visibleColumnStart", { enumerable: true, get: function () { return Layout_2.visibleColumnStart; } });
|
|
341
|
+
Object.defineProperty(exports, "reachableScroll", { enumerable: true, get: function () { return Layout_2.reachableScroll; } });
|
|
342
|
+
var workspaceCss_1 = require("src/Style/usecase/workspaceCss.ts");
|
|
343
|
+
Object.defineProperty(exports, "workspaceOptions", { enumerable: true, get: function () { return workspaceCss_1.workspaceOptions; } });
|
|
344
|
+
Object.defineProperty(exports, "workspaceCss", { enumerable: true, get: function () { return workspaceCss_1.workspaceCss; } });
|
|
345
|
+
var classHooks_2 = require("src/Meta/model/classHooks.ts");
|
|
346
|
+
Object.defineProperty(exports, "workspaceClass", { enumerable: true, get: function () { return classHooks_2.workspaceClass; } });
|
|
347
|
+
Object.defineProperty(exports, "pinnedClass", { enumerable: true, get: function () { return classHooks_2.pinnedClass; } });
|
|
348
|
+
Object.defineProperty(exports, "browserClass", { enumerable: true, get: function () { return classHooks_2.browserClass; } });
|
|
349
|
+
Object.defineProperty(exports, "menuClass", { enumerable: true, get: function () { return classHooks_2.menuClass; } });
|
|
350
|
+
Object.defineProperty(exports, "seamClass", { enumerable: true, get: function () { return classHooks_2.seamClass; } });
|
|
351
|
+
Object.defineProperty(exports, "menuOpenAttr", { enumerable: true, get: function () { return classHooks_2.menuOpenAttr; } });
|
|
352
|
+
Object.defineProperty(exports, "menuCompactAttr", { enumerable: true, get: function () { return classHooks_2.menuCompactAttr; } });
|
|
353
|
+
Object.defineProperty(exports, "phoneAttr", { enumerable: true, get: function () { return classHooks_2.phoneAttr; } });
|
|
354
|
+
Object.defineProperty(exports, "programmaticScrollAttr", { enumerable: true, get: function () { return classHooks_2.programmaticScrollAttr; } });
|
|
355
|
+
Object.defineProperty(exports, "widthAttr", { enumerable: true, get: function () { return classHooks_2.widthAttr; } });
|
|
356
|
+
Object.defineProperty(exports, "navClass", { enumerable: true, get: function () { return classHooks_2.navClass; } });
|
|
357
|
+
Object.defineProperty(exports, "navNumberedClass", { enumerable: true, get: function () { return classHooks_2.navNumberedClass; } });
|
|
358
|
+
Object.defineProperty(exports, "navGroupClass", { enumerable: true, get: function () { return classHooks_2.navGroupClass; } });
|
|
359
|
+
Object.defineProperty(exports, "navGroupTitleClass", { enumerable: true, get: function () { return classHooks_2.navGroupTitleClass; } });
|
|
360
|
+
Object.defineProperty(exports, "navLinkClass", { enumerable: true, get: function () { return classHooks_2.navLinkClass; } });
|
|
361
|
+
Object.defineProperty(exports, "navFlatClass", { enumerable: true, get: function () { return classHooks_2.navFlatClass; } });
|
|
362
|
+
Object.defineProperty(exports, "navSubgroupClass", { enumerable: true, get: function () { return classHooks_2.navSubgroupClass; } });
|
|
363
|
+
Object.defineProperty(exports, "navSubgroupTitleClass", { enumerable: true, get: function () { return classHooks_2.navSubgroupTitleClass; } });
|
|
364
|
+
var Layout_3 = require("src/Layout/index.ts");
|
|
365
|
+
Object.defineProperty(exports, "revealTarget", { enumerable: true, get: function () { return Layout_3.revealTarget; } });
|
|
366
|
+
Object.defineProperty(exports, "glideEase", { enumerable: true, get: function () { return Layout_3.glideEase; } });
|
|
367
|
+
var Layout_4 = require("src/Layout/index.ts");
|
|
368
|
+
Object.defineProperty(exports, "revealOptions", { enumerable: true, get: function () { return Layout_4.revealOptions; } });
|
|
369
|
+
Object.defineProperty(exports, "revealColumn", { enumerable: true, get: function () { return Layout_4.revealColumn; } });
|
|
370
|
+
var Layout_5 = require("src/Layout/index.ts");
|
|
371
|
+
Object.defineProperty(exports, "workspace", { enumerable: true, get: function () { return Layout_5.workspace; } });
|
|
372
|
+
Object.defineProperty(exports, "workspaceWith", { enumerable: true, get: function () { return Layout_5.workspaceWith; } });
|
|
373
|
+
Object.defineProperty(exports, "pinnedPanel", { enumerable: true, get: function () { return Layout_5.pinnedPanel; } });
|
|
374
|
+
Object.defineProperty(exports, "browser", { enumerable: true, get: function () { return Layout_5.browser; } });
|
|
375
|
+
Object.defineProperty(exports, "menuColumn", { enumerable: true, get: function () { return Layout_5.menuColumn; } });
|
|
376
|
+
Object.defineProperty(exports, "widthColumn", { enumerable: true, get: function () { return Layout_5.widthColumn; } });
|
|
377
|
+
var Layout_6 = require("src/Layout/index.ts");
|
|
378
|
+
Object.defineProperty(exports, "readPreference", { enumerable: true, get: function () { return Layout_6.readPreference; } });
|
|
379
|
+
Object.defineProperty(exports, "savePreference", { enumerable: true, get: function () { return Layout_6.savePreference; } });
|
|
380
|
+
var shareCss_1 = require("src/Style/usecase/shareCss.ts");
|
|
381
|
+
Object.defineProperty(exports, "shareOptions", { enumerable: true, get: function () { return shareCss_1.shareOptions; } });
|
|
382
|
+
Object.defineProperty(exports, "shareCss", { enumerable: true, get: function () { return shareCss_1.shareCss; } });
|
|
383
|
+
var classHooks_3 = require("src/Meta/model/classHooks.ts");
|
|
384
|
+
Object.defineProperty(exports, "shareClass", { enumerable: true, get: function () { return classHooks_3.shareClass; } });
|
|
385
|
+
Object.defineProperty(exports, "spanTwoClass", { enumerable: true, get: function () { return classHooks_3.spanTwoClass; } });
|
|
386
|
+
Object.defineProperty(exports, "shareInsetVar", { enumerable: true, get: function () { return classHooks_3.shareInsetVar; } });
|
|
387
|
+
var carouselCss_1 = require("src/Style/usecase/carouselCss.ts");
|
|
388
|
+
Object.defineProperty(exports, "carouselCss", { enumerable: true, get: function () { return carouselCss_1.carouselCss; } });
|
|
389
|
+
var classHooks_4 = require("src/Meta/model/classHooks.ts");
|
|
390
|
+
Object.defineProperty(exports, "carouselPrevClass", { enumerable: true, get: function () { return classHooks_4.carouselPrevClass; } });
|
|
391
|
+
Object.defineProperty(exports, "carouselNextClass", { enumerable: true, get: function () { return classHooks_4.carouselNextClass; } });
|
|
392
|
+
var Navigate_2 = require("src/Navigate/index.ts");
|
|
393
|
+
Object.defineProperty(exports, "carouselInitScript", { enumerable: true, get: function () { return Navigate_2.carouselInitScript; } });
|
|
394
|
+
var Shell_1 = require("src/Shell/index.ts");
|
|
395
|
+
Object.defineProperty(exports, "shell", { enumerable: true, get: function () { return Shell_1.shell; } });
|
|
396
|
+
Object.defineProperty(exports, "kitCss", { enumerable: true, get: function () { return Shell_1.kitCss; } });
|
|
397
|
+
Object.defineProperty(exports, "kitSystemCss", { enumerable: true, get: function () { return Shell_1.kitSystemCss; } });
|
|
398
|
+
Object.defineProperty(exports, "kitAppearanceCss", { enumerable: true, get: function () { return Shell_1.kitAppearanceCss; } });
|
|
399
|
+
Object.defineProperty(exports, "systemCss", { enumerable: true, get: function () { return Shell_1.systemCss; } });
|
|
400
|
+
Object.defineProperty(exports, "monochrome", { enumerable: true, get: function () { return Shell_1.monochrome; } });
|
|
401
|
+
Object.defineProperty(exports, "soft", { enumerable: true, get: function () { return Shell_1.soft; } });
|
|
402
|
+
Object.defineProperty(exports, "appearanceCss", { enumerable: true, get: function () { return Shell_1.appearanceCss; } });
|
|
403
|
+
Object.defineProperty(exports, "asAppearance", { enumerable: true, get: function () { return Shell_1.asAppearance; } });
|
|
404
|
+
var classHooks_5 = require("src/Meta/model/classHooks.ts");
|
|
405
|
+
Object.defineProperty(exports, "shellClass", { enumerable: true, get: function () { return classHooks_5.shellClass; } });
|
|
406
|
+
Object.defineProperty(exports, "shellSideClass", { enumerable: true, get: function () { return classHooks_5.shellSideClass; } });
|
|
407
|
+
Object.defineProperty(exports, "shellHeadClass", { enumerable: true, get: function () { return classHooks_5.shellHeadClass; } });
|
|
408
|
+
Object.defineProperty(exports, "shellTitleClass", { enumerable: true, get: function () { return classHooks_5.shellTitleClass; } });
|
|
409
|
+
Object.defineProperty(exports, "shellBodyClass", { enumerable: true, get: function () { return classHooks_5.shellBodyClass; } });
|
|
410
|
+
Object.defineProperty(exports, "shellBrandClass", { enumerable: true, get: function () { return classHooks_5.shellBrandClass; } });
|
|
411
|
+
Object.defineProperty(exports, "shellFoldClass", { enumerable: true, get: function () { return classHooks_5.shellFoldClass; } });
|
|
412
|
+
Object.defineProperty(exports, "shellFootClass", { enumerable: true, get: function () { return classHooks_5.shellFootClass; } });
|
|
413
|
+
Object.defineProperty(exports, "shellPageClass", { enumerable: true, get: function () { return classHooks_5.shellPageClass; } });
|
|
414
|
+
Object.defineProperty(exports, "docClass", { enumerable: true, get: function () { return classHooks_5.docClass; } });
|
|
415
|
+
Object.defineProperty(exports, "shellMinAttr", { enumerable: true, get: function () { return classHooks_5.shellMinAttr; } });
|
|
416
|
+
Object.defineProperty(exports, "shellBarClass", { enumerable: true, get: function () { return classHooks_5.shellBarClass; } });
|
|
417
|
+
Object.defineProperty(exports, "shellBarBrandClass", { enumerable: true, get: function () { return classHooks_5.shellBarBrandClass; } });
|
|
418
|
+
Object.defineProperty(exports, "shellMenuButtonClass", { enumerable: true, get: function () { return classHooks_5.shellMenuButtonClass; } });
|
|
419
|
+
Object.defineProperty(exports, "shellMenuClass", { enumerable: true, get: function () { return classHooks_5.shellMenuClass; } });
|
|
420
|
+
Object.defineProperty(exports, "shellMenuId", { enumerable: true, get: function () { return classHooks_5.shellMenuId; } });
|
|
421
|
+
Object.defineProperty(exports, "shellBackdropClass", { enumerable: true, get: function () { return classHooks_5.shellBackdropClass; } });
|
|
422
|
+
Object.defineProperty(exports, "shellOpenAttr", { enumerable: true, get: function () { return classHooks_5.shellOpenAttr; } });
|
|
423
|
+
Object.defineProperty(exports, "calloutClass", { enumerable: true, get: function () { return classHooks_5.calloutClass; } });
|
|
424
|
+
Object.defineProperty(exports, "calloutTitleClass", { enumerable: true, get: function () { return classHooks_5.calloutTitleClass; } });
|
|
425
|
+
Object.defineProperty(exports, "calloutToneClass", { enumerable: true, get: function () { return classHooks_5.calloutToneClass; } });
|
|
426
|
+
var properties_1 = require("src/Component/usecase/properties.ts");
|
|
427
|
+
Object.defineProperty(exports, "propertyList", { enumerable: true, get: function () { return properties_1.propertyList; } });
|
|
428
|
+
Object.defineProperty(exports, "propertyRow", { enumerable: true, get: function () { return properties_1.propertyRow; } });
|
|
429
|
+
Object.defineProperty(exports, "choice", { enumerable: true, get: function () { return properties_1.choice; } });
|
|
430
|
+
Object.defineProperty(exports, "entry", { enumerable: true, get: function () { return properties_1.entry; } });
|
|
431
|
+
Object.defineProperty(exports, "toggle", { enumerable: true, get: function () { return properties_1.toggle; } });
|
|
432
|
+
var classHooks_6 = require("src/Meta/model/classHooks.ts");
|
|
433
|
+
Object.defineProperty(exports, "propsClass", { enumerable: true, get: function () { return classHooks_6.propsClass; } });
|
|
434
|
+
Object.defineProperty(exports, "propClass", { enumerable: true, get: function () { return classHooks_6.propClass; } });
|
|
435
|
+
Object.defineProperty(exports, "propLabelClass", { enumerable: true, get: function () { return classHooks_6.propLabelClass; } });
|
|
436
|
+
Object.defineProperty(exports, "propControlClass", { enumerable: true, get: function () { return classHooks_6.propControlClass; } });
|
|
437
|
+
Object.defineProperty(exports, "switchClass", { enumerable: true, get: function () { return classHooks_6.switchClass; } });
|
|
438
|
+
Object.defineProperty(exports, "switchTrackClass", { enumerable: true, get: function () { return classHooks_6.switchTrackClass; } });
|
|
439
|
+
Object.defineProperty(exports, "switchThumbClass", { enumerable: true, get: function () { return classHooks_6.switchThumbClass; } });
|
|
440
|
+
Object.defineProperty(exports, "switchLabelClass", { enumerable: true, get: function () { return classHooks_6.switchLabelClass; } });
|
|
219
441
|
|
|
220
442
|
},
|
|
221
443
|
"src/Meta/model/identity.ts": function (module, exports, require) {
|
|
@@ -225,20 +447,185 @@ exports.cssPrefix = exports.frameworkName = void 0;
|
|
|
225
447
|
exports.frameworkName = "plggmatic";
|
|
226
448
|
exports.cssPrefix = "pm";
|
|
227
449
|
|
|
450
|
+
},
|
|
451
|
+
"src/Meta/model/classHooks.ts": function (module, exports, require) {
|
|
452
|
+
"use strict";
|
|
453
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
454
|
+
exports.phoneAttr = exports.menuCompactAttr = exports.menuOpenAttr = exports.seamClass = exports.menuClass = exports.browserClass = exports.pinnedClass = exports.workspaceClass = exports.carouselNextClass = exports.carouselPrevClass = exports.shareInsetVar = exports.spanTwoClass = exports.shareClass = exports.calloutToneClass = exports.calloutTitleClass = exports.calloutClass = exports.shellOpenAttr = exports.shellBackdropClass = exports.shellMenuId = exports.shellMenuClass = exports.shellMenuButtonClass = exports.shellBarBrandClass = exports.shellBarClass = exports.shellMinAttr = exports.docClass = exports.shellPageClass = exports.shellFootClass = exports.shellFoldClass = exports.shellBrandClass = exports.shellBodyClass = exports.shellTitleClass = exports.shellHeadClass = exports.shellSideClass = exports.shellClass = exports.switchLabelClass = exports.switchThumbClass = exports.switchTrackClass = exports.switchClass = exports.propControlClass = exports.propLabelClass = exports.propClass = exports.propsClass = exports.trailClass = exports.openedAttr = exports.replacingAttr = exports.leavingAttr = exports.foldClass = exports.paneClass = exports.colClass = exports.rowClass = void 0;
|
|
455
|
+
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.moonClass = exports.sunClass = exports.themeToggleClass = exports.navSubgroupTitleClass = exports.navSubgroupClass = exports.navFlatClass = exports.navLabelClass = exports.navLinkClass = exports.navGroupTitleClass = exports.navGroupClass = exports.navNumberedClass = exports.navClass = exports.widthAttr = exports.programmaticScrollAttr = void 0;
|
|
456
|
+
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 = void 0;
|
|
457
|
+
const identity_1 = require("src/Meta/model/identity.ts");
|
|
458
|
+
const hook = (name) => `${identity_1.cssPrefix}-${name}`;
|
|
459
|
+
exports.rowClass = hook("row");
|
|
460
|
+
exports.colClass = hook("col");
|
|
461
|
+
exports.paneClass = hook("pane");
|
|
462
|
+
exports.foldClass = hook("fold");
|
|
463
|
+
exports.leavingAttr = `data-${identity_1.cssPrefix}-leaving`;
|
|
464
|
+
exports.replacingAttr = `data-${identity_1.cssPrefix}-replacing`;
|
|
465
|
+
exports.openedAttr = `data-${identity_1.cssPrefix}-opened`;
|
|
466
|
+
exports.trailClass = hook("trail");
|
|
467
|
+
exports.propsClass = hook("props");
|
|
468
|
+
exports.propClass = hook("prop");
|
|
469
|
+
exports.propLabelClass = hook("prop-label");
|
|
470
|
+
exports.propControlClass = hook("prop-control");
|
|
471
|
+
exports.switchClass = hook("switch");
|
|
472
|
+
exports.switchTrackClass = hook("switch-track");
|
|
473
|
+
exports.switchThumbClass = hook("switch-thumb");
|
|
474
|
+
exports.switchLabelClass = hook("switch-label");
|
|
475
|
+
exports.shellClass = hook("shell");
|
|
476
|
+
exports.shellSideClass = hook("shell-side");
|
|
477
|
+
exports.shellHeadClass = hook("shell-head");
|
|
478
|
+
exports.shellTitleClass = hook("shell-title");
|
|
479
|
+
exports.shellBodyClass = hook("shell-body");
|
|
480
|
+
exports.shellBrandClass = hook("shell-brand");
|
|
481
|
+
exports.shellFoldClass = hook("shell-fold");
|
|
482
|
+
exports.shellFootClass = hook("shell-foot");
|
|
483
|
+
exports.shellPageClass = hook("shell-page");
|
|
484
|
+
exports.docClass = hook("doc");
|
|
485
|
+
exports.shellMinAttr = `data-${identity_1.cssPrefix}-shell-min`;
|
|
486
|
+
exports.shellBarClass = hook("shell-bar");
|
|
487
|
+
exports.shellBarBrandClass = hook("shell-bar-brand");
|
|
488
|
+
exports.shellMenuButtonClass = hook("shell-menu-btn");
|
|
489
|
+
exports.shellMenuClass = hook("shell-menu");
|
|
490
|
+
exports.shellMenuId = `${identity_1.cssPrefix}-shell-menu`;
|
|
491
|
+
exports.shellBackdropClass = hook("shell-backdrop");
|
|
492
|
+
exports.shellOpenAttr = `data-${identity_1.cssPrefix}-shell-open`;
|
|
493
|
+
exports.calloutClass = hook("callout");
|
|
494
|
+
exports.calloutTitleClass = hook("callout-title");
|
|
495
|
+
const calloutToneClass = (tone) => hook("callout-" + tone);
|
|
496
|
+
exports.calloutToneClass = calloutToneClass;
|
|
497
|
+
exports.shareClass = hook("share");
|
|
498
|
+
exports.spanTwoClass = hook("span-2");
|
|
499
|
+
exports.shareInsetVar = `--${identity_1.cssPrefix}-share-inset`;
|
|
500
|
+
exports.carouselPrevClass = hook("carousel-prev");
|
|
501
|
+
exports.carouselNextClass = hook("carousel-next");
|
|
502
|
+
exports.workspaceClass = hook("workspace");
|
|
503
|
+
exports.pinnedClass = hook("pinned");
|
|
504
|
+
exports.browserClass = hook("browser");
|
|
505
|
+
exports.menuClass = hook("menu");
|
|
506
|
+
exports.seamClass = hook("seam");
|
|
507
|
+
exports.menuOpenAttr = `data-${identity_1.cssPrefix}-menu-open`;
|
|
508
|
+
exports.menuCompactAttr = `data-${identity_1.cssPrefix}-menu-compact`;
|
|
509
|
+
exports.phoneAttr = `data-${identity_1.cssPrefix}-phone`;
|
|
510
|
+
exports.programmaticScrollAttr = `data-${identity_1.cssPrefix}-programmatic-scroll`;
|
|
511
|
+
exports.widthAttr = `data-${identity_1.cssPrefix}-width`;
|
|
512
|
+
exports.navClass = hook("nav");
|
|
513
|
+
exports.navNumberedClass = hook("nav-numbered");
|
|
514
|
+
exports.navGroupClass = hook("nav-group");
|
|
515
|
+
exports.navGroupTitleClass = hook("nav-group-title");
|
|
516
|
+
exports.navLinkClass = hook("nav-link");
|
|
517
|
+
exports.navLabelClass = hook("nav-label");
|
|
518
|
+
exports.navFlatClass = hook("nav-flat");
|
|
519
|
+
exports.navSubgroupClass = hook("nav-subgroup");
|
|
520
|
+
exports.navSubgroupTitleClass = hook("nav-subgroup-title");
|
|
521
|
+
exports.themeToggleClass = hook("theme-toggle");
|
|
522
|
+
exports.sunClass = hook("sun");
|
|
523
|
+
exports.moonClass = hook("moon");
|
|
524
|
+
exports.btnClass = hook("btn");
|
|
525
|
+
exports.btnPrimaryClass = hook("btn-primary");
|
|
526
|
+
exports.btnDangerClass = hook("btn-danger");
|
|
527
|
+
exports.actionsClass = hook("actions");
|
|
528
|
+
exports.disabledClass = hook("disabled");
|
|
529
|
+
exports.modalClass = hook("modal");
|
|
530
|
+
exports.backdropClass = hook("backdrop");
|
|
531
|
+
exports.dialogClass = hook("dialog");
|
|
532
|
+
exports.dialogTitleClass = hook("dialog-title");
|
|
533
|
+
exports.dialogActionsClass = hook("dialog-actions");
|
|
534
|
+
exports.toasterClass = hook("toaster");
|
|
535
|
+
exports.toastClass = hook("toast");
|
|
536
|
+
exports.toastCloseClass = hook("toast-close");
|
|
537
|
+
const toastToneClass = (tone) => hook(`toast-${tone}`);
|
|
538
|
+
exports.toastToneClass = toastToneClass;
|
|
539
|
+
exports.formClass = hook("form");
|
|
540
|
+
exports.fieldsClass = hook("fields");
|
|
541
|
+
exports.fieldClass = hook("field");
|
|
542
|
+
exports.fieldLabelClass = hook("field-label");
|
|
543
|
+
exports.fieldErrorClass = hook("field-error");
|
|
544
|
+
exports.fieldValueClass = hook("field-value");
|
|
545
|
+
exports.inputClass = hook("input");
|
|
546
|
+
exports.checkClass = hook("check");
|
|
547
|
+
exports.checkboxClass = hook("checkbox");
|
|
548
|
+
exports.checkLabelClass = hook("check-label");
|
|
549
|
+
exports.fieldNumClass = hook("field-num");
|
|
550
|
+
exports.fieldFlagClass = hook("field-flag");
|
|
551
|
+
exports.fieldMomentClass = hook("field-moment");
|
|
552
|
+
exports.fieldRefClass = hook("field-ref");
|
|
553
|
+
exports.fieldMediaClass = hook("field-media");
|
|
554
|
+
exports.colHeadClass = hook("colhead");
|
|
555
|
+
exports.colHeadTitleClass = hook("colhead-title");
|
|
556
|
+
exports.colHeadLinkClass = hook("colhead-link");
|
|
557
|
+
exports.crumbsClass = hook("crumbs");
|
|
558
|
+
exports.crumbHereClass = hook("crumb-here");
|
|
559
|
+
exports.crumbLinkClass = hook("crumb-link");
|
|
560
|
+
exports.crumbSepClass = hook("crumb-sep");
|
|
561
|
+
exports.schedulerClass = hook("scheduler");
|
|
562
|
+
exports.singleClass = hook("single");
|
|
563
|
+
exports.backClass = hook("back");
|
|
564
|
+
exports.hintClass = hook("hint");
|
|
565
|
+
exports.errorClass = hook("error");
|
|
566
|
+
exports.menuBodyClass = hook("menu-body");
|
|
567
|
+
exports.listClass = hook("list");
|
|
568
|
+
exports.listItemClass = hook("list-item");
|
|
569
|
+
exports.listActionsClass = hook("list-actions");
|
|
570
|
+
exports.listActionClass = hook("list-action");
|
|
571
|
+
exports.rowLinkClass = hook("row-link");
|
|
572
|
+
exports.boardClass = hook("board");
|
|
573
|
+
exports.tileClass = hook("tile");
|
|
574
|
+
exports.tileBodyClass = hook("tile-body");
|
|
575
|
+
exports.tileLinkClass = hook("tile-link");
|
|
576
|
+
exports.tileLabelClass = hook("tile-label");
|
|
577
|
+
exports.tileCaptionClass = hook("tile-caption");
|
|
578
|
+
exports.queryClass = hook("query");
|
|
579
|
+
exports.queryChoiceClass = hook("query-choice");
|
|
580
|
+
const cssVar = (name) => `--${identity_1.cssPrefix}-${name}`;
|
|
581
|
+
exports.cssVar = cssVar;
|
|
582
|
+
const cssVarRef = (name) => `var(${(0, exports.cssVar)(name)})`;
|
|
583
|
+
exports.cssVarRef = cssVarRef;
|
|
584
|
+
const selector = (hookClass) => `.${hookClass}`;
|
|
585
|
+
exports.selector = selector;
|
|
586
|
+
|
|
228
587
|
},
|
|
229
588
|
"src/Layout/index.ts": function (module, exports, require) {
|
|
230
589
|
"use strict";
|
|
231
590
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
232
|
-
exports.asidePane = exports.mainPane = exports.navPane = exports.pane = exports.column = exports.row = exports.landmarkTag = void 0;
|
|
591
|
+
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
592
|
var pane_1 = require("src/Layout/model/pane.ts");
|
|
234
593
|
Object.defineProperty(exports, "landmarkTag", { enumerable: true, get: function () { return pane_1.landmarkTag; } });
|
|
235
594
|
var combinators_1 = require("src/Layout/usecase/combinators.ts");
|
|
595
|
+
Object.defineProperty(exports, "rowClass", { enumerable: true, get: function () { return combinators_1.rowClass; } });
|
|
596
|
+
Object.defineProperty(exports, "colClass", { enumerable: true, get: function () { return combinators_1.colClass; } });
|
|
597
|
+
Object.defineProperty(exports, "paneClass", { enumerable: true, get: function () { return combinators_1.paneClass; } });
|
|
236
598
|
Object.defineProperty(exports, "row", { enumerable: true, get: function () { return combinators_1.row; } });
|
|
599
|
+
Object.defineProperty(exports, "rowWith", { enumerable: true, get: function () { return combinators_1.rowWith; } });
|
|
237
600
|
Object.defineProperty(exports, "column", { enumerable: true, get: function () { return combinators_1.column; } });
|
|
601
|
+
Object.defineProperty(exports, "columnWith", { enumerable: true, get: function () { return combinators_1.columnWith; } });
|
|
238
602
|
Object.defineProperty(exports, "pane", { enumerable: true, get: function () { return combinators_1.pane; } });
|
|
239
603
|
Object.defineProperty(exports, "navPane", { enumerable: true, get: function () { return combinators_1.navPane; } });
|
|
240
604
|
Object.defineProperty(exports, "mainPane", { enumerable: true, get: function () { return combinators_1.mainPane; } });
|
|
241
605
|
Object.defineProperty(exports, "asidePane", { enumerable: true, get: function () { return combinators_1.asidePane; } });
|
|
606
|
+
var geometry_1 = require("src/Layout/model/geometry.ts");
|
|
607
|
+
Object.defineProperty(exports, "stripMetrics", { enumerable: true, get: function () { return geometry_1.stripMetrics; } });
|
|
608
|
+
Object.defineProperty(exports, "stripGeometry", { enumerable: true, get: function () { return geometry_1.stripGeometry; } });
|
|
609
|
+
Object.defineProperty(exports, "stripVar", { enumerable: true, get: function () { return geometry_1.stripVar; } });
|
|
610
|
+
Object.defineProperty(exports, "stripStyle", { enumerable: true, get: function () { return geometry_1.stripStyle; } });
|
|
611
|
+
Object.defineProperty(exports, "visibleColumnStart", { enumerable: true, get: function () { return geometry_1.visibleColumnStart; } });
|
|
612
|
+
Object.defineProperty(exports, "reachableScroll", { enumerable: true, get: function () { return geometry_1.reachableScroll; } });
|
|
613
|
+
var reveal_1 = require("src/Layout/model/reveal.ts");
|
|
614
|
+
Object.defineProperty(exports, "revealTarget", { enumerable: true, get: function () { return reveal_1.revealTarget; } });
|
|
615
|
+
Object.defineProperty(exports, "glideEase", { enumerable: true, get: function () { return reveal_1.glideEase; } });
|
|
616
|
+
var revealColumn_1 = require("src/Layout/usecase/revealColumn.ts");
|
|
617
|
+
Object.defineProperty(exports, "revealOptions", { enumerable: true, get: function () { return revealColumn_1.revealOptions; } });
|
|
618
|
+
Object.defineProperty(exports, "revealColumn", { enumerable: true, get: function () { return revealColumn_1.revealColumn; } });
|
|
619
|
+
var workspace_1 = require("src/Layout/usecase/workspace.ts");
|
|
620
|
+
Object.defineProperty(exports, "workspace", { enumerable: true, get: function () { return workspace_1.workspace; } });
|
|
621
|
+
Object.defineProperty(exports, "workspaceWith", { enumerable: true, get: function () { return workspace_1.workspaceWith; } });
|
|
622
|
+
Object.defineProperty(exports, "pinnedPanel", { enumerable: true, get: function () { return workspace_1.pinnedPanel; } });
|
|
623
|
+
Object.defineProperty(exports, "browser", { enumerable: true, get: function () { return workspace_1.browser; } });
|
|
624
|
+
Object.defineProperty(exports, "menuColumn", { enumerable: true, get: function () { return workspace_1.menuColumn; } });
|
|
625
|
+
Object.defineProperty(exports, "widthColumn", { enumerable: true, get: function () { return workspace_1.widthColumn; } });
|
|
626
|
+
var preference_1 = require("src/Layout/usecase/preference.ts");
|
|
627
|
+
Object.defineProperty(exports, "readPreference", { enumerable: true, get: function () { return preference_1.readPreference; } });
|
|
628
|
+
Object.defineProperty(exports, "savePreference", { enumerable: true, get: function () { return preference_1.savePreference; } });
|
|
242
629
|
|
|
243
630
|
},
|
|
244
631
|
"src/Layout/model/pane.ts": function (module, exports, require) {
|
|
@@ -257,15 +644,29 @@ exports.landmarkTag = landmarkTag;
|
|
|
257
644
|
"src/Layout/usecase/combinators.ts": function (module, exports, require) {
|
|
258
645
|
"use strict";
|
|
259
646
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
260
|
-
exports.asidePane = exports.mainPane = exports.navPane = exports.pane = exports.column = exports.row = void 0;
|
|
647
|
+
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
648
|
const plgg_view_1 = require("plgg-view");
|
|
262
649
|
const styleEntry_1 = require("src/styleEntry.ts");
|
|
263
650
|
const pane_1 = require("src/Layout/model/pane.ts");
|
|
264
|
-
const
|
|
651
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
652
|
+
Object.defineProperty(exports, "rowClass", { enumerable: true, get: function () { return classHooks_1.rowClass; } });
|
|
653
|
+
Object.defineProperty(exports, "colClass", { enumerable: true, get: function () { return classHooks_1.colClass; } });
|
|
654
|
+
Object.defineProperty(exports, "paneClass", { enumerable: true, get: function () { return classHooks_1.paneClass; } });
|
|
655
|
+
const row = (parts, children) => (0, exports.rowWith)([], parts, children);
|
|
265
656
|
exports.row = row;
|
|
266
|
-
const
|
|
657
|
+
const rowWith = (attributes, parts, children) => (0, plgg_view_1.el)("div", [
|
|
658
|
+
(0, styleEntry_1.style_)(classHooks_1.rowClass, styleEntry_1.flex, ...parts),
|
|
659
|
+
...attributes,
|
|
660
|
+
], children);
|
|
661
|
+
exports.rowWith = rowWith;
|
|
662
|
+
const column = (parts, children) => (0, exports.columnWith)([], parts, children);
|
|
267
663
|
exports.column = column;
|
|
268
|
-
const
|
|
664
|
+
const columnWith = (attributes, parts, children) => (0, plgg_view_1.el)("div", [
|
|
665
|
+
(0, styleEntry_1.style_)(classHooks_1.colClass, styleEntry_1.flexCol, ...parts),
|
|
666
|
+
...attributes,
|
|
667
|
+
], children);
|
|
668
|
+
exports.columnWith = columnWith;
|
|
669
|
+
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
670
|
exports.pane = pane;
|
|
270
671
|
exports.navPane = (0, exports.pane)("navigation");
|
|
271
672
|
exports.mainPane = (0, exports.pane)("main");
|
|
@@ -289,14 +690,30 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
289
690
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
290
691
|
};
|
|
291
692
|
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;
|
|
693
|
+
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.openedAttr = exports.replacingAttr = exports.leavingAttr = 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;
|
|
694
|
+
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 = exports.bg = exports.zValue = exports.zBands = void 0;
|
|
695
|
+
exports.carouselInitScript = exports.carouselNextClass = exports.carouselPrevClass = exports.carouselCss = exports.shareInsetVar = exports.spanTwoClass = exports.shareClass = exports.shareCss = exports.shareOptions = exports.navSubgroupTitleClass = exports.navSubgroupClass = exports.navFlatClass = exports.navLinkClass = void 0;
|
|
294
696
|
__exportStar(require("plgg-view/style"), exports);
|
|
295
697
|
var themeToggle_1 = require("src/Component/usecase/themeToggle.ts");
|
|
296
698
|
Object.defineProperty(exports, "themeToggle", { enumerable: true, get: function () { return themeToggle_1.themeToggle; } });
|
|
297
699
|
Object.defineProperty(exports, "staticThemeToggle", { enumerable: true, get: function () { return themeToggle_1.staticThemeToggle; } });
|
|
298
700
|
Object.defineProperty(exports, "themeToggleClass", { enumerable: true, get: function () { return themeToggle_1.themeToggleClass; } });
|
|
701
|
+
Object.defineProperty(exports, "sunClass", { enumerable: true, get: function () { return themeToggle_1.sunClass; } });
|
|
702
|
+
Object.defineProperty(exports, "moonClass", { enumerable: true, get: function () { return themeToggle_1.moonClass; } });
|
|
299
703
|
Object.defineProperty(exports, "themeToggleCss", { enumerable: true, get: function () { return themeToggle_1.themeToggleCss; } });
|
|
704
|
+
var sidebarNav_1 = require("src/Component/usecase/sidebarNav.ts");
|
|
705
|
+
Object.defineProperty(exports, "sidebarNav", { enumerable: true, get: function () { return sidebarNav_1.sidebarNav; } });
|
|
706
|
+
Object.defineProperty(exports, "sidebarNavClass", { enumerable: true, get: function () { return sidebarNav_1.sidebarNavClass; } });
|
|
707
|
+
Object.defineProperty(exports, "sidebarNavCss", { enumerable: true, get: function () { return sidebarNav_1.sidebarNavCss; } });
|
|
708
|
+
Object.defineProperty(exports, "sidebarNavRevealScript", { enumerable: true, get: function () { return sidebarNav_1.sidebarNavRevealScript; } });
|
|
709
|
+
var classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
710
|
+
Object.defineProperty(exports, "colClass", { enumerable: true, get: function () { return classHooks_1.colClass; } });
|
|
711
|
+
Object.defineProperty(exports, "foldClass", { enumerable: true, get: function () { return classHooks_1.foldClass; } });
|
|
712
|
+
Object.defineProperty(exports, "trailClass", { enumerable: true, get: function () { return classHooks_1.trailClass; } });
|
|
713
|
+
Object.defineProperty(exports, "leavingAttr", { enumerable: true, get: function () { return classHooks_1.leavingAttr; } });
|
|
714
|
+
Object.defineProperty(exports, "replacingAttr", { enumerable: true, get: function () { return classHooks_1.replacingAttr; } });
|
|
715
|
+
Object.defineProperty(exports, "openedAttr", { enumerable: true, get: function () { return classHooks_1.openedAttr; } });
|
|
716
|
+
Object.defineProperty(exports, "selector", { enumerable: true, get: function () { return classHooks_1.selector; } });
|
|
300
717
|
var Style_1 = require("src/Style/index.ts");
|
|
301
718
|
Object.defineProperty(exports, "defaultTheme", { enumerable: true, get: function () { return Style_1.defaultTheme; } });
|
|
302
719
|
Object.defineProperty(exports, "colors", { enumerable: true, get: function () { return Style_1.colors; } });
|
|
@@ -353,18 +770,65 @@ Object.defineProperty(exports, "syntaxVar", { enumerable: true, get: function ()
|
|
|
353
770
|
Object.defineProperty(exports, "schemeCss", { enumerable: true, get: function () { return Style_1.schemeCss; } });
|
|
354
771
|
Object.defineProperty(exports, "schemeCssOf", { enumerable: true, get: function () { return Style_1.schemeCssOf; } });
|
|
355
772
|
Object.defineProperty(exports, "chromeCss", { enumerable: true, get: function () { return Style_1.chromeCss; } });
|
|
773
|
+
Object.defineProperty(exports, "runwayCss", { enumerable: true, get: function () { return Style_1.runwayCss; } });
|
|
774
|
+
Object.defineProperty(exports, "componentSlots", { enumerable: true, get: function () { return Style_1.componentSlots; } });
|
|
775
|
+
Object.defineProperty(exports, "slotSelector", { enumerable: true, get: function () { return Style_1.slotSelector; } });
|
|
776
|
+
Object.defineProperty(exports, "slotStyle", { enumerable: true, get: function () { return Style_1.slotStyle; } });
|
|
777
|
+
Object.defineProperty(exports, "asSlotStyle", { enumerable: true, get: function () { return Style_1.asSlotStyle; } });
|
|
778
|
+
Object.defineProperty(exports, "slotStyleCss", { enumerable: true, get: function () { return Style_1.slotStyleCss; } });
|
|
779
|
+
Object.defineProperty(exports, "slotCss", { enumerable: true, get: function () { return Style_1.slotCss; } });
|
|
356
780
|
Object.defineProperty(exports, "metricCss", { enumerable: true, get: function () { return Style_1.metricCss; } });
|
|
357
781
|
Object.defineProperty(exports, "reducedMotionCss", { enumerable: true, get: function () { return Style_1.reducedMotionCss; } });
|
|
358
782
|
Object.defineProperty(exports, "syntaxCss", { enumerable: true, get: function () { return Style_1.syntaxCss; } });
|
|
359
783
|
var brand_1 = require("src/brand.ts");
|
|
360
784
|
Object.defineProperty(exports, "pragmaticTheme", { enumerable: true, get: function () { return brand_1.pragmaticTheme; } });
|
|
361
785
|
Object.defineProperty(exports, "pragmaticThemeWithPalette", { enumerable: true, get: function () { return brand_1.pragmaticThemeWithPalette; } });
|
|
786
|
+
var workspaceCss_1 = require("src/Style/usecase/workspaceCss.ts");
|
|
787
|
+
Object.defineProperty(exports, "workspaceOptions", { enumerable: true, get: function () { return workspaceCss_1.workspaceOptions; } });
|
|
788
|
+
Object.defineProperty(exports, "workspaceCss", { enumerable: true, get: function () { return workspaceCss_1.workspaceCss; } });
|
|
789
|
+
var classHooks_2 = require("src/Meta/model/classHooks.ts");
|
|
790
|
+
Object.defineProperty(exports, "workspaceClass", { enumerable: true, get: function () { return classHooks_2.workspaceClass; } });
|
|
791
|
+
Object.defineProperty(exports, "pinnedClass", { enumerable: true, get: function () { return classHooks_2.pinnedClass; } });
|
|
792
|
+
Object.defineProperty(exports, "browserClass", { enumerable: true, get: function () { return classHooks_2.browserClass; } });
|
|
793
|
+
Object.defineProperty(exports, "menuClass", { enumerable: true, get: function () { return classHooks_2.menuClass; } });
|
|
794
|
+
Object.defineProperty(exports, "seamClass", { enumerable: true, get: function () { return classHooks_2.seamClass; } });
|
|
795
|
+
Object.defineProperty(exports, "menuOpenAttr", { enumerable: true, get: function () { return classHooks_2.menuOpenAttr; } });
|
|
796
|
+
Object.defineProperty(exports, "menuCompactAttr", { enumerable: true, get: function () { return classHooks_2.menuCompactAttr; } });
|
|
797
|
+
Object.defineProperty(exports, "phoneAttr", { enumerable: true, get: function () { return classHooks_2.phoneAttr; } });
|
|
798
|
+
Object.defineProperty(exports, "programmaticScrollAttr", { enumerable: true, get: function () { return classHooks_2.programmaticScrollAttr; } });
|
|
799
|
+
Object.defineProperty(exports, "widthAttr", { enumerable: true, get: function () { return classHooks_2.widthAttr; } });
|
|
800
|
+
Object.defineProperty(exports, "navClass", { enumerable: true, get: function () { return classHooks_2.navClass; } });
|
|
801
|
+
Object.defineProperty(exports, "navNumberedClass", { enumerable: true, get: function () { return classHooks_2.navNumberedClass; } });
|
|
802
|
+
Object.defineProperty(exports, "navGroupClass", { enumerable: true, get: function () { return classHooks_2.navGroupClass; } });
|
|
803
|
+
Object.defineProperty(exports, "navGroupTitleClass", { enumerable: true, get: function () { return classHooks_2.navGroupTitleClass; } });
|
|
804
|
+
Object.defineProperty(exports, "navLinkClass", { enumerable: true, get: function () { return classHooks_2.navLinkClass; } });
|
|
805
|
+
Object.defineProperty(exports, "navFlatClass", { enumerable: true, get: function () { return classHooks_2.navFlatClass; } });
|
|
806
|
+
Object.defineProperty(exports, "navSubgroupClass", { enumerable: true, get: function () { return classHooks_2.navSubgroupClass; } });
|
|
807
|
+
Object.defineProperty(exports, "navSubgroupTitleClass", { enumerable: true, get: function () { return classHooks_2.navSubgroupTitleClass; } });
|
|
808
|
+
var shareCss_1 = require("src/Style/usecase/shareCss.ts");
|
|
809
|
+
Object.defineProperty(exports, "shareOptions", { enumerable: true, get: function () { return shareCss_1.shareOptions; } });
|
|
810
|
+
Object.defineProperty(exports, "shareCss", { enumerable: true, get: function () { return shareCss_1.shareCss; } });
|
|
811
|
+
var classHooks_3 = require("src/Meta/model/classHooks.ts");
|
|
812
|
+
Object.defineProperty(exports, "shareClass", { enumerable: true, get: function () { return classHooks_3.shareClass; } });
|
|
813
|
+
Object.defineProperty(exports, "spanTwoClass", { enumerable: true, get: function () { return classHooks_3.spanTwoClass; } });
|
|
814
|
+
Object.defineProperty(exports, "shareInsetVar", { enumerable: true, get: function () { return classHooks_3.shareInsetVar; } });
|
|
815
|
+
var carouselCss_1 = require("src/Style/usecase/carouselCss.ts");
|
|
816
|
+
Object.defineProperty(exports, "carouselCss", { enumerable: true, get: function () { return carouselCss_1.carouselCss; } });
|
|
817
|
+
var classHooks_4 = require("src/Meta/model/classHooks.ts");
|
|
818
|
+
Object.defineProperty(exports, "carouselPrevClass", { enumerable: true, get: function () { return classHooks_4.carouselPrevClass; } });
|
|
819
|
+
Object.defineProperty(exports, "carouselNextClass", { enumerable: true, get: function () { return classHooks_4.carouselNextClass; } });
|
|
820
|
+
var carouselScript_1 = require("src/Navigate/usecase/carouselScript.ts");
|
|
821
|
+
Object.defineProperty(exports, "carouselInitScript", { enumerable: true, get: function () { return carouselScript_1.carouselInitScript; } });
|
|
362
822
|
|
|
363
823
|
},
|
|
364
824
|
"src/Component/usecase/themeToggle.ts": function (module, exports, require) {
|
|
365
825
|
"use strict";
|
|
366
826
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
367
|
-
exports.themeToggleCss = exports.staticThemeToggle = exports.themeToggleClass = exports.themeToggle = void 0;
|
|
827
|
+
exports.themeToggleCss = exports.staticThemeToggle = exports.moonClass = exports.sunClass = exports.themeToggleClass = exports.themeToggle = void 0;
|
|
828
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
829
|
+
Object.defineProperty(exports, "themeToggleClass", { enumerable: true, get: function () { return classHooks_1.themeToggleClass; } });
|
|
830
|
+
Object.defineProperty(exports, "sunClass", { enumerable: true, get: function () { return classHooks_1.sunClass; } });
|
|
831
|
+
Object.defineProperty(exports, "moonClass", { enumerable: true, get: function () { return classHooks_1.moonClass; } });
|
|
368
832
|
const plgg_view_1 = require("plgg-view");
|
|
369
833
|
const Style_1 = require("src/Style/index.ts");
|
|
370
834
|
const style_1 = require("plgg-view/style");
|
|
@@ -392,9 +856,8 @@ const themeToggle = (props) => (0, plgg_view_1.button)([
|
|
|
392
856
|
: icon(MOON_D),
|
|
393
857
|
]);
|
|
394
858
|
exports.themeToggle = themeToggle;
|
|
395
|
-
|
|
396
|
-
const
|
|
397
|
-
const MOON_CLASS = "pm-moon";
|
|
859
|
+
const SUN_CLASS = classHooks_1.sunClass;
|
|
860
|
+
const MOON_CLASS = classHooks_1.moonClass;
|
|
398
861
|
const staticIcon = (cls, d) => (0, plgg_view_1.svg)([
|
|
399
862
|
(0, plgg_view_1.class_)(cls),
|
|
400
863
|
(0, plgg_view_1.attr)("viewBox", "0 0 24 24"),
|
|
@@ -404,12 +867,12 @@ const staticIcon = (cls, d) => (0, plgg_view_1.svg)([
|
|
|
404
867
|
exports.staticThemeToggle = (0, plgg_view_1.button)([
|
|
405
868
|
(0, plgg_view_1.type_)("button"),
|
|
406
869
|
(0, plgg_view_1.attr)("aria-label", "Toggle dark mode"),
|
|
407
|
-
(0, plgg_view_1.class_)(
|
|
870
|
+
(0, plgg_view_1.class_)(classHooks_1.themeToggleClass),
|
|
408
871
|
], [
|
|
409
872
|
staticIcon(SUN_CLASS, SUN_D),
|
|
410
873
|
staticIcon(MOON_CLASS, MOON_D),
|
|
411
874
|
]);
|
|
412
|
-
exports.themeToggleCss = `.${
|
|
875
|
+
exports.themeToggleCss = `.${classHooks_1.themeToggleClass}{display:inline-flex;` +
|
|
413
876
|
`align-items:center;justify-content:center;` +
|
|
414
877
|
`width:38px;height:38px;border-radius:50%;` +
|
|
415
878
|
`border:1px solid ${cvar("border")};` +
|
|
@@ -417,17 +880,17 @@ exports.themeToggleCss = `.${exports.themeToggleClass}{display:inline-flex;` +
|
|
|
417
880
|
`color:${cvar("text")};padding:0;` +
|
|
418
881
|
`cursor:pointer;transition:background-color ` +
|
|
419
882
|
`0.15s,border-color 0.15s}` +
|
|
420
|
-
`.${
|
|
883
|
+
`.${classHooks_1.themeToggleClass}:hover{border-color:` +
|
|
421
884
|
`${cvar("primary-base")}}` +
|
|
422
|
-
`.${
|
|
885
|
+
`.${classHooks_1.themeToggleClass}:focus-visible{outline:2px ` +
|
|
423
886
|
`solid ${cvar("primary-base")};` +
|
|
424
887
|
`outline-offset:2px}` +
|
|
425
888
|
`.${SUN_CLASS},.${MOON_CLASS}{width:18px;` +
|
|
426
889
|
`height:18px;display:block}` +
|
|
427
|
-
`.${
|
|
428
|
-
`html.dark .${
|
|
890
|
+
`.${classHooks_1.themeToggleClass} .${MOON_CLASS}{display:none}` +
|
|
891
|
+
`html.dark .${classHooks_1.themeToggleClass} .${SUN_CLASS}` +
|
|
429
892
|
`{display:none}` +
|
|
430
|
-
`html.dark .${
|
|
893
|
+
`html.dark .${classHooks_1.themeToggleClass} .${MOON_CLASS}` +
|
|
431
894
|
`{display:block}`;
|
|
432
895
|
|
|
433
896
|
},
|
|
@@ -435,7 +898,7 @@ exports.themeToggleCss = `.${exports.themeToggleClass}{display:inline-flex;` +
|
|
|
435
898
|
"use strict";
|
|
436
899
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
437
900
|
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;
|
|
901
|
+
exports.carouselCss = exports.shareCss = exports.shareOptions = 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
902
|
var token_1 = require("src/Style/model/token.ts");
|
|
440
903
|
Object.defineProperty(exports, "colors", { enumerable: true, get: function () { return token_1.colors; } });
|
|
441
904
|
Object.defineProperty(exports, "neutrals", { enumerable: true, get: function () { return token_1.neutrals; } });
|
|
@@ -502,6 +965,16 @@ Object.defineProperty(exports, "schemeCss", { enumerable: true, get: function ()
|
|
|
502
965
|
Object.defineProperty(exports, "schemeCssOf", { enumerable: true, get: function () { return schemeCss_1.schemeCssOf; } });
|
|
503
966
|
var chromeCss_1 = require("src/Style/usecase/chromeCss.ts");
|
|
504
967
|
Object.defineProperty(exports, "chromeCss", { enumerable: true, get: function () { return chromeCss_1.chromeCss; } });
|
|
968
|
+
var runwayCss_1 = require("src/Style/usecase/runwayCss.ts");
|
|
969
|
+
Object.defineProperty(exports, "runwayCss", { enumerable: true, get: function () { return runwayCss_1.runwayCss; } });
|
|
970
|
+
var componentSlot_1 = require("src/Style/model/componentSlot.ts");
|
|
971
|
+
Object.defineProperty(exports, "componentSlots", { enumerable: true, get: function () { return componentSlot_1.componentSlots; } });
|
|
972
|
+
Object.defineProperty(exports, "slotSelector", { enumerable: true, get: function () { return componentSlot_1.slotSelector; } });
|
|
973
|
+
var slotCss_1 = require("src/Style/usecase/slotCss.ts");
|
|
974
|
+
Object.defineProperty(exports, "slotStyle", { enumerable: true, get: function () { return slotCss_1.slotStyle; } });
|
|
975
|
+
Object.defineProperty(exports, "asSlotStyle", { enumerable: true, get: function () { return slotCss_1.asSlotStyle; } });
|
|
976
|
+
Object.defineProperty(exports, "slotStyleCss", { enumerable: true, get: function () { return slotCss_1.slotStyleCss; } });
|
|
977
|
+
Object.defineProperty(exports, "slotCss", { enumerable: true, get: function () { return slotCss_1.slotCss; } });
|
|
505
978
|
var metricCss_1 = require("src/Style/usecase/metricCss.ts");
|
|
506
979
|
Object.defineProperty(exports, "metricCss", { enumerable: true, get: function () { return metricCss_1.metricCss; } });
|
|
507
980
|
var reducedMotion_1 = require("src/Style/usecase/reducedMotion.ts");
|
|
@@ -513,6 +986,14 @@ Object.defineProperty(exports, "syntaxHex", { enumerable: true, get: function ()
|
|
|
513
986
|
Object.defineProperty(exports, "syntaxVar", { enumerable: true, get: function () { return syntax_1.syntaxVar; } });
|
|
514
987
|
var syntaxCss_1 = require("src/Style/usecase/syntaxCss.ts");
|
|
515
988
|
Object.defineProperty(exports, "syntaxCss", { enumerable: true, get: function () { return syntaxCss_1.syntaxCss; } });
|
|
989
|
+
var workspaceCss_1 = require("src/Style/usecase/workspaceCss.ts");
|
|
990
|
+
Object.defineProperty(exports, "workspaceOptions", { enumerable: true, get: function () { return workspaceCss_1.workspaceOptions; } });
|
|
991
|
+
Object.defineProperty(exports, "workspaceCss", { enumerable: true, get: function () { return workspaceCss_1.workspaceCss; } });
|
|
992
|
+
var shareCss_1 = require("src/Style/usecase/shareCss.ts");
|
|
993
|
+
Object.defineProperty(exports, "shareOptions", { enumerable: true, get: function () { return shareCss_1.shareOptions; } });
|
|
994
|
+
Object.defineProperty(exports, "shareCss", { enumerable: true, get: function () { return shareCss_1.shareCss; } });
|
|
995
|
+
var carouselCss_1 = require("src/Style/usecase/carouselCss.ts");
|
|
996
|
+
Object.defineProperty(exports, "carouselCss", { enumerable: true, get: function () { return carouselCss_1.carouselCss; } });
|
|
516
997
|
|
|
517
998
|
},
|
|
518
999
|
"src/Style/model/token.ts": function (module, exports, require) {
|
|
@@ -566,6 +1047,7 @@ exports.defaultTheme = {
|
|
|
566
1047
|
syntax: syntax_1.syntaxPalette,
|
|
567
1048
|
zBands: zIndex_1.zBandTable,
|
|
568
1049
|
storageKey: appearance_1.appearanceStorageKey,
|
|
1050
|
+
slots: [],
|
|
569
1051
|
};
|
|
570
1052
|
|
|
571
1053
|
},
|
|
@@ -612,14 +1094,14 @@ const paletteOf = (get) => ({
|
|
|
612
1094
|
const DEFAULT_RAW = {
|
|
613
1095
|
light: {
|
|
614
1096
|
surface: "#ffffff",
|
|
615
|
-
"surface-2": "#
|
|
616
|
-
text: "#
|
|
617
|
-
muted: "#
|
|
618
|
-
border: "#
|
|
619
|
-
"primary-base": "#
|
|
620
|
-
"primary-text": "#
|
|
621
|
-
"primary-surface": "#
|
|
622
|
-
"primary-border": "#
|
|
1097
|
+
"surface-2": "#f4f4f4",
|
|
1098
|
+
text: "#000000",
|
|
1099
|
+
muted: "#5c5c5c",
|
|
1100
|
+
border: "#e4e4e4",
|
|
1101
|
+
"primary-base": "#000000",
|
|
1102
|
+
"primary-text": "#000000",
|
|
1103
|
+
"primary-surface": "#f4f4f4",
|
|
1104
|
+
"primary-border": "#3d3d3d",
|
|
623
1105
|
"success-base": "#047857",
|
|
624
1106
|
"success-text": "#065f46",
|
|
625
1107
|
"success-surface": "#ecfdf5",
|
|
@@ -638,15 +1120,15 @@ const DEFAULT_RAW = {
|
|
|
638
1120
|
"info-border": "#2563eb",
|
|
639
1121
|
},
|
|
640
1122
|
dark: {
|
|
641
|
-
surface: "#
|
|
642
|
-
"surface-2": "#
|
|
643
|
-
text: "#
|
|
644
|
-
muted: "#
|
|
645
|
-
border: "#
|
|
646
|
-
"primary-base": "#
|
|
647
|
-
"primary-text": "#
|
|
648
|
-
"primary-surface": "#
|
|
649
|
-
"primary-border": "#
|
|
1123
|
+
surface: "#1b1b1b",
|
|
1124
|
+
"surface-2": "#262626",
|
|
1125
|
+
text: "#e2e2e2",
|
|
1126
|
+
muted: "#9d9d9d",
|
|
1127
|
+
border: "#353535",
|
|
1128
|
+
"primary-base": "#e2e2e2",
|
|
1129
|
+
"primary-text": "#e2e2e2",
|
|
1130
|
+
"primary-surface": "#262626",
|
|
1131
|
+
"primary-border": "#8c8c8c",
|
|
650
1132
|
"success-base": "#34d399",
|
|
651
1133
|
"success-text": "#34d399",
|
|
652
1134
|
"success-surface": "#022c22",
|
|
@@ -1068,19 +1550,19 @@ const chromeCss = (theme) => {
|
|
|
1068
1550
|
`.${p}-col{background:${cvar("surface")};border-right:1px solid ${cvar("border")};}` +
|
|
1069
1551
|
`.${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
1552
|
`.${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")};
|
|
1553
|
+
`.${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
1554
|
`.${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;
|
|
1555
|
+
`.${p}-close{color:${cvar("muted")};text-decoration:none;line-height:1;padding:0.25rem 0.4rem;}` +
|
|
1074
1556
|
`.${p}-close:hover{background:${cvar("primary-base")};color:${cvar("surface")};}` +
|
|
1075
1557
|
`.${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;
|
|
1558
|
+
`.${p}-crumbs a{color:${cvar("muted")};text-decoration:none;padding:0.15rem 0.4rem;}` +
|
|
1077
1559
|
`.${p}-crumbs a:hover{background:${cvar("primary-base")};color:${cvar("surface")};}` +
|
|
1078
1560
|
`.${p}-crumb-here{color:${cvar("text")};font-weight:500;overflow:hidden;text-overflow:ellipsis;}` +
|
|
1079
1561
|
`.${p}-crumb-sep{color:${cvar("border")};}` +
|
|
1080
|
-
`.${p}-list{list-style:none;margin:0.75rem;padding:0.4rem;border:1px solid ${cvar("border")};
|
|
1562
|
+
`.${p}-list{list-style:none;margin:0.75rem;padding:0.4rem;border:1px solid ${cvar("border")};background:${cvar("surface-2")};}` +
|
|
1081
1563
|
`.${p}-list-item{margin:0;}` +
|
|
1082
1564
|
`.${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")};
|
|
1565
|
+
`.${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
1566
|
`.${p}-row-link:hover{border-color:${cvar("primary-base")};}` +
|
|
1085
1567
|
`.${p}-pane a[aria-current="page"]{background:${cvar("primary-base")};color:${cvar("surface")};}` +
|
|
1086
1568
|
`@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 +1570,167 @@ const chromeCss = (theme) => {
|
|
|
1088
1570
|
};
|
|
1089
1571
|
exports.chromeCss = chromeCss;
|
|
1090
1572
|
|
|
1573
|
+
},
|
|
1574
|
+
"src/Style/usecase/runwayCss.ts": function (module, exports, require) {
|
|
1575
|
+
"use strict";
|
|
1576
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1577
|
+
exports.runwayCss = void 0;
|
|
1578
|
+
const breakpoint_1 = require("src/Style/model/breakpoint.ts");
|
|
1579
|
+
const runwayCss = (theme) => (opts) => {
|
|
1580
|
+
const p = theme.prefix;
|
|
1581
|
+
const gapVar = `--${p}-runway-gap`;
|
|
1582
|
+
const lastVar = `--${p}-runway-last`;
|
|
1583
|
+
return (`.${p}-row{${gapVar}:${opts.gap};flex:1;min-height:0;height:auto;gap:var(${gapVar});overflow-x:auto;overflow-y:hidden;}` +
|
|
1584
|
+
`@media ${(0, breakpoint_1.minWidth)("snap")}{.${p}-row::after{content:"";flex:0 0 calc(100% - var(${lastVar},${opts.lastFallback}) - var(${gapVar}));}}`);
|
|
1585
|
+
};
|
|
1586
|
+
exports.runwayCss = runwayCss;
|
|
1587
|
+
|
|
1588
|
+
},
|
|
1589
|
+
"src/Style/model/componentSlot.ts": function (module, exports, require) {
|
|
1590
|
+
"use strict";
|
|
1591
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1592
|
+
exports.slotSelector = exports.componentSlots = void 0;
|
|
1593
|
+
exports.componentSlots = [
|
|
1594
|
+
"scheduler",
|
|
1595
|
+
"col",
|
|
1596
|
+
"rowCol",
|
|
1597
|
+
"rowColHasMenu",
|
|
1598
|
+
"rowColHasForm",
|
|
1599
|
+
"colHasQuery",
|
|
1600
|
+
"colHasFields",
|
|
1601
|
+
"colHead",
|
|
1602
|
+
"colHeadTitle",
|
|
1603
|
+
"colHeadTitleBare",
|
|
1604
|
+
"colHeadTitleLink",
|
|
1605
|
+
"pane",
|
|
1606
|
+
"paneLink",
|
|
1607
|
+
"menuBody",
|
|
1608
|
+
"menuList",
|
|
1609
|
+
"menuLink",
|
|
1610
|
+
"query",
|
|
1611
|
+
"list",
|
|
1612
|
+
"listItem",
|
|
1613
|
+
"listItemAdjacent",
|
|
1614
|
+
"rowLink",
|
|
1615
|
+
"listActions",
|
|
1616
|
+
"listAction",
|
|
1617
|
+
"form",
|
|
1618
|
+
"formFirstChild",
|
|
1619
|
+
"field",
|
|
1620
|
+
"fieldAdjacent",
|
|
1621
|
+
"fieldLabel",
|
|
1622
|
+
"input",
|
|
1623
|
+
"btnPrimary",
|
|
1624
|
+
"formBtnPrimary",
|
|
1625
|
+
];
|
|
1626
|
+
const selectorTable = (p) => ({
|
|
1627
|
+
scheduler: `.${p}-scheduler`,
|
|
1628
|
+
col: `.${p}-col`,
|
|
1629
|
+
rowCol: `.${p}-row .${p}-col`,
|
|
1630
|
+
rowColHasMenu: `.${p}-row .${p}-col:has(.${p}-menu-body)`,
|
|
1631
|
+
rowColHasForm: `.${p}-row .${p}-col:has(.${p}-form)`,
|
|
1632
|
+
colHasQuery: `.${p}-col:has(.${p}-query)`,
|
|
1633
|
+
colHasFields: `.${p}-col:has(.${p}-fields)`,
|
|
1634
|
+
colHead: `.${p}-colhead`,
|
|
1635
|
+
colHeadTitle: `.${p}-colhead .${p}-colhead-title`,
|
|
1636
|
+
colHeadTitleBare: `.${p}-colhead-title`,
|
|
1637
|
+
colHeadTitleLink: `.${p}-colhead a.${p}-colhead-title`,
|
|
1638
|
+
pane: `.${p}-pane`,
|
|
1639
|
+
paneLink: `.${p}-pane a`,
|
|
1640
|
+
menuBody: `.${p}-menu-body`,
|
|
1641
|
+
menuList: `.${p}-menu-body ul`,
|
|
1642
|
+
menuLink: `.${p}-menu-body li a`,
|
|
1643
|
+
query: `.${p}-query`,
|
|
1644
|
+
list: `.${p}-list`,
|
|
1645
|
+
listItem: `.${p}-list-item`,
|
|
1646
|
+
listItemAdjacent: `.${p}-list-item+.${p}-list-item`,
|
|
1647
|
+
rowLink: `.${p}-row-link`,
|
|
1648
|
+
listActions: `.${p}-list-actions`,
|
|
1649
|
+
listAction: `.${p}-list-action`,
|
|
1650
|
+
form: `.${p}-form`,
|
|
1651
|
+
formFirstChild: `.${p}-form>*:first-child`,
|
|
1652
|
+
field: `.${p}-form .${p}-field`,
|
|
1653
|
+
fieldAdjacent: `.${p}-form .${p}-field+.${p}-field`,
|
|
1654
|
+
fieldLabel: `.${p}-form .${p}-field-label`,
|
|
1655
|
+
input: `.${p}-form .${p}-input`,
|
|
1656
|
+
btnPrimary: `.${p}-btn-primary`,
|
|
1657
|
+
formBtnPrimary: `.${p}-form .${p}-btn-primary`,
|
|
1658
|
+
});
|
|
1659
|
+
const slotSelector = (theme) => (slot) => selectorTable(theme.prefix)[slot];
|
|
1660
|
+
exports.slotSelector = slotSelector;
|
|
1661
|
+
|
|
1662
|
+
},
|
|
1663
|
+
"src/Style/usecase/slotCss.ts": function (module, exports, require) {
|
|
1664
|
+
"use strict";
|
|
1665
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1666
|
+
exports.slotCss = exports.slotStyleCss = exports.asSlotStyle = exports.slotStyle = void 0;
|
|
1667
|
+
const plgg_1 = require("plgg");
|
|
1668
|
+
const componentSlot_1 = require("src/Style/model/componentSlot.ts");
|
|
1669
|
+
const slotStyle = (spec) => ({
|
|
1670
|
+
slot: spec.slot,
|
|
1671
|
+
scope: (0, plgg_1.fromNullable)(spec.scope),
|
|
1672
|
+
state: (0, plgg_1.fromNullable)(spec.state),
|
|
1673
|
+
within: (0, plgg_1.fromNullable)(spec.within),
|
|
1674
|
+
declarations: spec.declarations,
|
|
1675
|
+
});
|
|
1676
|
+
exports.slotStyle = slotStyle;
|
|
1677
|
+
const escapeSafe = (s) => !/[<>&{}]/.test(s);
|
|
1678
|
+
const at = (obj, key) => typeof obj === "object" &&
|
|
1679
|
+
obj !== null &&
|
|
1680
|
+
key in obj
|
|
1681
|
+
? new Map(Object.entries(obj)).get(key)
|
|
1682
|
+
: undefined;
|
|
1683
|
+
const isSlot = (v) => typeof v === "string" &&
|
|
1684
|
+
componentSlot_1.componentSlots.some((s) => s === v);
|
|
1685
|
+
const optField = (value, label) => value === undefined
|
|
1686
|
+
? (0, plgg_1.ok)((0, plgg_1.none)())
|
|
1687
|
+
: typeof value === "string" &&
|
|
1688
|
+
escapeSafe(value)
|
|
1689
|
+
? (0, plgg_1.ok)((0, plgg_1.some)(value))
|
|
1690
|
+
: (0, plgg_1.err)((0, plgg_1.invalidError)({
|
|
1691
|
+
message: `slot style ${label} is not an escape-safe string`,
|
|
1692
|
+
}));
|
|
1693
|
+
const asSlotStyle = (value) => {
|
|
1694
|
+
const slot = at(value, "slot");
|
|
1695
|
+
if (!isSlot(slot)) {
|
|
1696
|
+
return (0, plgg_1.err)((0, plgg_1.invalidError)({
|
|
1697
|
+
message: "slot style has no declared slot",
|
|
1698
|
+
}));
|
|
1699
|
+
}
|
|
1700
|
+
const decls = at(value, "declarations");
|
|
1701
|
+
if (typeof decls !== "string" ||
|
|
1702
|
+
decls.length === 0 ||
|
|
1703
|
+
!escapeSafe(decls)) {
|
|
1704
|
+
return (0, plgg_1.err)((0, plgg_1.invalidError)({
|
|
1705
|
+
message: "slot style declarations are not a non-empty escape-safe string",
|
|
1706
|
+
}));
|
|
1707
|
+
}
|
|
1708
|
+
const scope = optField(at(value, "scope"), "scope");
|
|
1709
|
+
const state = optField(at(value, "state"), "state");
|
|
1710
|
+
const within = optField(at(value, "within"), "within");
|
|
1711
|
+
return (0, plgg_1.isOk)(scope) &&
|
|
1712
|
+
(0, plgg_1.isOk)(state) &&
|
|
1713
|
+
(0, plgg_1.isOk)(within)
|
|
1714
|
+
? (0, plgg_1.ok)({
|
|
1715
|
+
slot,
|
|
1716
|
+
scope: scope.content,
|
|
1717
|
+
state: state.content,
|
|
1718
|
+
within: within.content,
|
|
1719
|
+
declarations: decls,
|
|
1720
|
+
})
|
|
1721
|
+
: (0, plgg_1.err)((0, plgg_1.invalidError)({
|
|
1722
|
+
message: "slot style has a malformed context field",
|
|
1723
|
+
}));
|
|
1724
|
+
};
|
|
1725
|
+
exports.asSlotStyle = asSlotStyle;
|
|
1726
|
+
const prefixOf = (scope) => (0, plgg_1.matchOption)(() => "", (s) => `${s} `)(scope);
|
|
1727
|
+
const suffixOf = (state) => (0, plgg_1.matchOption)(() => "", (s) => s)(state);
|
|
1728
|
+
const descendantOf = (within) => (0, plgg_1.matchOption)(() => "", (s) => ` ${s}`)(within);
|
|
1729
|
+
const slotStyleCss = (theme) => (style) => `${prefixOf(style.scope)}${(0, componentSlot_1.slotSelector)(theme)(style.slot)}${suffixOf(style.state)}${descendantOf(style.within)}{${style.declarations}}`;
|
|
1730
|
+
exports.slotStyleCss = slotStyleCss;
|
|
1731
|
+
const slotCss = (theme) => theme.slots.map((0, exports.slotStyleCss)(theme)).join("");
|
|
1732
|
+
exports.slotCss = slotCss;
|
|
1733
|
+
|
|
1091
1734
|
},
|
|
1092
1735
|
"src/Style/usecase/metricCss.ts": function (module, exports, require) {
|
|
1093
1736
|
"use strict";
|
|
@@ -1125,6 +1768,93 @@ const syntaxCss = (theme) => `:root{${varsFor(theme, "light")}}html.dark{${varsF
|
|
|
1125
1768
|
rulesFor(theme);
|
|
1126
1769
|
exports.syntaxCss = syntaxCss;
|
|
1127
1770
|
|
|
1771
|
+
},
|
|
1772
|
+
"src/Style/usecase/workspaceCss.ts": function (module, exports, require) {
|
|
1773
|
+
"use strict";
|
|
1774
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1775
|
+
exports.workspaceCss = exports.workspaceOptions = void 0;
|
|
1776
|
+
const token_1 = require("src/Style/model/token.ts");
|
|
1777
|
+
const zIndex_1 = require("src/Style/model/zIndex.ts");
|
|
1778
|
+
const breakpoint_1 = require("src/Style/model/breakpoint.ts");
|
|
1779
|
+
exports.workspaceOptions = {
|
|
1780
|
+
rail: "64px",
|
|
1781
|
+
reading: "640px",
|
|
1782
|
+
menu: "220px",
|
|
1783
|
+
column: "320px",
|
|
1784
|
+
};
|
|
1785
|
+
const workspaceCss = (theme) => (opts) => {
|
|
1786
|
+
const p = theme.prefix;
|
|
1787
|
+
const cvar = (0, token_1.colorVar)(theme);
|
|
1788
|
+
const v = (name) => `--${p}-strip-${name}`;
|
|
1789
|
+
const ws = `.${p}-workspace`;
|
|
1790
|
+
const col = `.${p}-browser .${p}-col`;
|
|
1791
|
+
const width = (kind) => `${col}[data-${p}-width="${kind}"]`;
|
|
1792
|
+
const column = `var(${v("column")},${opts.column})`;
|
|
1793
|
+
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;}` +
|
|
1794
|
+
`.${p}-browser{position:relative;grid-column:2;grid-row:1;height:100%;min-width:var(${v("minimum")},0);width:max-content;}` +
|
|
1795
|
+
`.${p}-seam{flex:0 0 var(${v("seam")},0px);}` +
|
|
1796
|
+
`.${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")};}` +
|
|
1797
|
+
`.${p}-menu,${col}{box-sizing:border-box;flex:none;height:100%;min-height:0;overflow-x:hidden;overflow-y:auto;}` +
|
|
1798
|
+
`.${p}-menu{width:var(${v("menu")},${opts.menu});transition:width .16s ease;}` +
|
|
1799
|
+
`${ws}:not([data-${p}-menu-open]) .${p}-menu{display:none;}` +
|
|
1800
|
+
`${ws}[data-${p}-menu-compact]:not([data-${p}-phone]) .${p}-menu{width:${opts.rail};}` +
|
|
1801
|
+
`${width("fit")}{width:${column};}` +
|
|
1802
|
+
`${width("wide")}{width:min(calc(${column} * 2),100vw);}` +
|
|
1803
|
+
`${width("read")}{width:min(clamp(${opts.reading},45vw,calc(${opts.reading} * 1.5)),100vw);}` +
|
|
1804
|
+
`@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;}}` +
|
|
1805
|
+
`@media (prefers-reduced-motion:reduce){.${p}-menu{transition:none;}}`);
|
|
1806
|
+
};
|
|
1807
|
+
exports.workspaceCss = workspaceCss;
|
|
1808
|
+
|
|
1809
|
+
},
|
|
1810
|
+
"src/Style/usecase/shareCss.ts": function (module, exports, require) {
|
|
1811
|
+
"use strict";
|
|
1812
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1813
|
+
exports.shareCss = exports.shareOptions = void 0;
|
|
1814
|
+
exports.shareOptions = {
|
|
1815
|
+
steps: [
|
|
1816
|
+
{ min: "960px", columns: 2 },
|
|
1817
|
+
{ min: "1760px", columns: 3 },
|
|
1818
|
+
],
|
|
1819
|
+
};
|
|
1820
|
+
const shareCss = (theme) => (opts) => {
|
|
1821
|
+
const p = theme.prefix;
|
|
1822
|
+
const n = `--${p}-share-n`;
|
|
1823
|
+
const room = `(100% - var(--${p}-share-inset,0px))`;
|
|
1824
|
+
const col = `.${p}-share [data-${p}-column]`;
|
|
1825
|
+
return (`.${p}-share{${n}:1;}` +
|
|
1826
|
+
opts.steps
|
|
1827
|
+
.map((step) => `@media (min-width:${step.min}){.${p}-share{${n}:${step.columns};}}`)
|
|
1828
|
+
.join("") +
|
|
1829
|
+
`${col}{flex:1 0 calc(${room} / var(${n}));width:auto;min-width:0;}` +
|
|
1830
|
+
`${col}.${p}-span-2{flex-basis:min(${room},calc(${room} / var(${n}) * 2));}`);
|
|
1831
|
+
};
|
|
1832
|
+
exports.shareCss = shareCss;
|
|
1833
|
+
|
|
1834
|
+
},
|
|
1835
|
+
"src/Style/usecase/carouselCss.ts": function (module, exports, require) {
|
|
1836
|
+
"use strict";
|
|
1837
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1838
|
+
exports.carouselCss = void 0;
|
|
1839
|
+
const token_1 = require("src/Style/model/token.ts");
|
|
1840
|
+
const zIndex_1 = require("src/Style/model/zIndex.ts");
|
|
1841
|
+
const carouselCss = (theme) => {
|
|
1842
|
+
const p = theme.prefix;
|
|
1843
|
+
const cvar = (0, token_1.colorVar)(theme);
|
|
1844
|
+
const both = `.${p}-carousel-prev,.${p}-carousel-next`;
|
|
1845
|
+
const each = (state) => `.${p}-carousel-prev${state},.${p}-carousel-next${state}`;
|
|
1846
|
+
return (`${both}{position:absolute;top:50%;z-index:${(0, zIndex_1.zValue)("chrome")};width:2.25rem;height:2.25rem;margin-top:-1.125rem;padding:0;display:flex;align-items:center;justify-content:center;border:1px solid ${cvar("text")};background:${cvar("surface")};color:${cvar("text")};cursor:pointer;transition:background-color .15s ease,color .15s ease,opacity .2s ease;}` +
|
|
1847
|
+
`${each("[hidden]")}{display:none;}` +
|
|
1848
|
+
`.${p}-carousel-prev{left:calc(var(--${p}-share-inset,0px) + .6rem);}` +
|
|
1849
|
+
`.${p}-carousel-next{right:.6rem;}` +
|
|
1850
|
+
`${each("::before")}{content:"";width:.5rem;height:.5rem;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor;}` +
|
|
1851
|
+
`.${p}-carousel-prev::before{transform:translateX(.12rem) rotate(-135deg);}` +
|
|
1852
|
+
`.${p}-carousel-next::before{transform:translateX(-.12rem) rotate(45deg);}` +
|
|
1853
|
+
`${each(":hover")},${each(":focus-visible")}{background:${cvar("text")};color:${cvar("surface")};outline:0;}` +
|
|
1854
|
+
`@media (prefers-reduced-motion:reduce){${both}{transition:none;}}`);
|
|
1855
|
+
};
|
|
1856
|
+
exports.carouselCss = carouselCss;
|
|
1857
|
+
|
|
1128
1858
|
},
|
|
1129
1859
|
"src/Component/model/interaction.ts": function (module, exports, require) {
|
|
1130
1860
|
"use strict";
|
|
@@ -1148,6 +1878,190 @@ exports.pressDim = {
|
|
|
1148
1878
|
styles: (0, style_1.decl)("opacity", "0.8"),
|
|
1149
1879
|
};
|
|
1150
1880
|
|
|
1881
|
+
},
|
|
1882
|
+
"src/Component/usecase/sidebarNav.ts": function (module, exports, require) {
|
|
1883
|
+
"use strict";
|
|
1884
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1885
|
+
exports.sidebarNavRevealScript = exports.sidebarNavCss = exports.sidebarNav = exports.sidebarNavClass = void 0;
|
|
1886
|
+
const plgg_1 = require("plgg");
|
|
1887
|
+
const plgg_view_1 = require("plgg-view");
|
|
1888
|
+
const Style_1 = require("src/Style/index.ts");
|
|
1889
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
1890
|
+
exports.sidebarNavClass = {
|
|
1891
|
+
nav: classHooks_1.navClass,
|
|
1892
|
+
numbered: classHooks_1.navNumberedClass,
|
|
1893
|
+
group: classHooks_1.navGroupClass,
|
|
1894
|
+
groupTitle: classHooks_1.navGroupTitleClass,
|
|
1895
|
+
link: classHooks_1.navLinkClass,
|
|
1896
|
+
label: classHooks_1.navLabelClass,
|
|
1897
|
+
flat: classHooks_1.navFlatClass,
|
|
1898
|
+
subgroup: classHooks_1.navSubgroupClass,
|
|
1899
|
+
subgroupTitle: classHooks_1.navSubgroupTitleClass,
|
|
1900
|
+
};
|
|
1901
|
+
const sidebarNav = (props) => {
|
|
1902
|
+
const c = exports.sidebarNavClass;
|
|
1903
|
+
const linkAttrs = (href) => props.current(href)
|
|
1904
|
+
? [
|
|
1905
|
+
(0, plgg_view_1.attr)("href", props.resolve(href)),
|
|
1906
|
+
(0, plgg_view_1.attr)("aria-current", "page"),
|
|
1907
|
+
(0, plgg_view_1.class_)(c.link),
|
|
1908
|
+
]
|
|
1909
|
+
: [
|
|
1910
|
+
(0, plgg_view_1.attr)("href", props.resolve(href)),
|
|
1911
|
+
(0, plgg_view_1.class_)(c.link),
|
|
1912
|
+
];
|
|
1913
|
+
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), [
|
|
1914
|
+
(0, plgg_view_1.span)([(0, plgg_view_1.class_)(c.label)], [(0, plgg_view_1.text)(item.label)]),
|
|
1915
|
+
]))(item.href);
|
|
1916
|
+
const renderItem = (item) => item.children.length === 0
|
|
1917
|
+
? leaf(item)
|
|
1918
|
+
: (0, plgg_view_1.div)([(0, plgg_view_1.class_)(c.subgroup)], [
|
|
1919
|
+
(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), [
|
|
1920
|
+
(0, plgg_view_1.text)(item.label),
|
|
1921
|
+
]))(item.href),
|
|
1922
|
+
...item.children.map(renderItem),
|
|
1923
|
+
]);
|
|
1924
|
+
const holdsCurrent = (items) => items.some((item) => (0, plgg_1.matchOption)(() => false, props.current)(item.href) ||
|
|
1925
|
+
holdsCurrent(item.children));
|
|
1926
|
+
const group = (g) => props.toggle
|
|
1927
|
+
? (0, plgg_view_1.details)(holdsCurrent(g.items)
|
|
1928
|
+
? [(0, plgg_view_1.class_)(c.group), (0, plgg_view_1.attr)("open", "")]
|
|
1929
|
+
: [(0, plgg_view_1.class_)(c.group)], [
|
|
1930
|
+
(0, plgg_view_1.summary)([(0, plgg_view_1.class_)(c.groupTitle)], [(0, plgg_view_1.text)(g.label)]),
|
|
1931
|
+
...g.items.map(renderItem),
|
|
1932
|
+
])
|
|
1933
|
+
: (0, plgg_view_1.div)([(0, plgg_view_1.class_)(c.group)], [
|
|
1934
|
+
(0, plgg_view_1.div)([(0, plgg_view_1.class_)(c.groupTitle)], [(0, plgg_view_1.text)(g.label)]),
|
|
1935
|
+
...g.items.map(renderItem),
|
|
1936
|
+
]);
|
|
1937
|
+
return (0, plgg_view_1.nav)([
|
|
1938
|
+
(0, plgg_view_1.class_)(props.numbered
|
|
1939
|
+
? c.nav + " " + c.numbered
|
|
1940
|
+
: c.nav),
|
|
1941
|
+
(0, plgg_view_1.attr)("aria-label", props.label),
|
|
1942
|
+
], props.groups.map(group));
|
|
1943
|
+
};
|
|
1944
|
+
exports.sidebarNav = sidebarNav;
|
|
1945
|
+
const sidebarNavCss = (theme) => {
|
|
1946
|
+
const cvar = (0, Style_1.colorVar)(theme);
|
|
1947
|
+
const c = exports.sidebarNavClass;
|
|
1948
|
+
return `.${c.nav}{display:block}
|
|
1949
|
+
/* top-level section header — always visible, no collapse */
|
|
1950
|
+
.${c.group}{margin:0}
|
|
1951
|
+
.${c.groupTitle}{
|
|
1952
|
+
padding:1.1rem 1.25rem 0.4rem;font-size:0.75rem;
|
|
1953
|
+
line-height:1.25rem;
|
|
1954
|
+
font-weight:500;color:${cvar("muted")};
|
|
1955
|
+
border-bottom:1px solid ${cvar("border")};
|
|
1956
|
+
}
|
|
1957
|
+
/* leaves + subgroup headers: an inverted pill on hover;
|
|
1958
|
+
the active leaf wears the same pill permanently (both
|
|
1959
|
+
tokens flip under dark). Active and inactive share one
|
|
1960
|
+
box so the current page never reflows its neighbours. */
|
|
1961
|
+
/* qmu's text-sm pins the leading at 1.25rem (20px) and
|
|
1962
|
+
gap-px separates items - a 29px pitch, tighter than the
|
|
1963
|
+
prose leading these would otherwise inherit. */
|
|
1964
|
+
.${c.link}{
|
|
1965
|
+
display:block;
|
|
1966
|
+
padding:0.5rem 1.25rem;
|
|
1967
|
+
border-bottom:1px solid ${cvar("border")};
|
|
1968
|
+
font-size:0.875rem;line-height:1.45;
|
|
1969
|
+
color:${cvar("text")};
|
|
1970
|
+
text-decoration:none;
|
|
1971
|
+
}
|
|
1972
|
+
.${c.link}:hover{
|
|
1973
|
+
background:${cvar("surface-2")};
|
|
1974
|
+
text-decoration:none;
|
|
1975
|
+
}
|
|
1976
|
+
.${c.link}:focus-visible{
|
|
1977
|
+
background:${cvar("primary-base")};
|
|
1978
|
+
color:${cvar("surface")};
|
|
1979
|
+
text-decoration:none;
|
|
1980
|
+
}
|
|
1981
|
+
.${c.link}[aria-current]{
|
|
1982
|
+
background:${cvar("primary-base")};
|
|
1983
|
+
color:${cvar("surface")};
|
|
1984
|
+
border-bottom-color:${cvar("primary-base")};
|
|
1985
|
+
}
|
|
1986
|
+
.${c.flat}{
|
|
1987
|
+
display:block;
|
|
1988
|
+
padding:0.5rem 1.25rem;
|
|
1989
|
+
border-bottom:1px solid ${cvar("border")};
|
|
1990
|
+
font-size:0.875rem;line-height:1.45;
|
|
1991
|
+
color:${cvar("muted")};
|
|
1992
|
+
}
|
|
1993
|
+
/* a nested group: its header, then its children, always
|
|
1994
|
+
shown (no disclosure). qmu keeps the whole tree flush
|
|
1995
|
+
left — hierarchy reads from weight and spacing alone,
|
|
1996
|
+
never indentation (SidebarTree.tsx has no pl-/ml-). */
|
|
1997
|
+
.${c.subgroup}{margin:0}
|
|
1998
|
+
.${c.subgroupTitle}{
|
|
1999
|
+
padding:0.5rem 1.25rem;font-size:0.875rem;
|
|
2000
|
+
line-height:1.45;
|
|
2001
|
+
border-bottom:1px solid ${cvar("border")};
|
|
2002
|
+
font-weight:600;color:${cvar("text")};
|
|
2003
|
+
}
|
|
2004
|
+
.${c.numbered}{counter-reset:sample}
|
|
2005
|
+
/* toggle groups: a disclosure per section. The summary
|
|
2006
|
+
wears the links' inverted pill on hover, its chevron
|
|
2007
|
+
turns as the section opens, and the section's height
|
|
2008
|
+
eases where the browser can interpolate to auto. */
|
|
2009
|
+
details.${c.group}{counter-reset:sample;interpolate-size:allow-keywords}
|
|
2010
|
+
details.${c.group} summary{
|
|
2011
|
+
cursor:pointer;list-style:none;display:flex;
|
|
2012
|
+
justify-content:space-between;align-items:center;
|
|
2013
|
+
padding:.7rem 1.25rem;font-size:.8rem;user-select:none;
|
|
2014
|
+
transition:background-color .15s ease,color .15s ease;
|
|
2015
|
+
}
|
|
2016
|
+
details.${c.group} summary::-webkit-details-marker{display:none}
|
|
2017
|
+
details.${c.group} summary::after{
|
|
2018
|
+
content:"";width:.4rem;height:.4rem;margin-right:.2rem;
|
|
2019
|
+
border-right:1px solid currentColor;
|
|
2020
|
+
border-bottom:1px solid currentColor;
|
|
2021
|
+
transform:rotate(-45deg);transition:transform .2s ease;
|
|
2022
|
+
}
|
|
2023
|
+
details.${c.group}[open] summary::after{transform:rotate(45deg)}
|
|
2024
|
+
details.${c.group}[open] summary{color:${cvar("text")}}
|
|
2025
|
+
details.${c.group} summary:hover,
|
|
2026
|
+
details.${c.group} summary:focus-visible{
|
|
2027
|
+
background:${cvar("primary-base")};
|
|
2028
|
+
color:${cvar("surface")};outline:0;
|
|
2029
|
+
}
|
|
2030
|
+
details.${c.group} summary:active{opacity:.8}
|
|
2031
|
+
details.${c.group}::details-content{
|
|
2032
|
+
block-size:0;overflow:clip;
|
|
2033
|
+
transition:block-size .22s ease,
|
|
2034
|
+
content-visibility .22s allow-discrete;
|
|
2035
|
+
}
|
|
2036
|
+
details.${c.group}[open]::details-content{block-size:auto}
|
|
2037
|
+
details.${c.group} .${c.link}{
|
|
2038
|
+
transition:background-color .15s ease,color .15s ease,
|
|
2039
|
+
padding-left .15s ease;
|
|
2040
|
+
}
|
|
2041
|
+
details.${c.group} .${c.link}:hover{padding-left:1.5rem}
|
|
2042
|
+
details.${c.group} .${c.link}[aria-current]:hover{
|
|
2043
|
+
padding-left:1.25rem;
|
|
2044
|
+
}
|
|
2045
|
+
@media (prefers-reduced-motion:reduce){
|
|
2046
|
+
details.${c.group} summary,
|
|
2047
|
+
details.${c.group} summary::after,
|
|
2048
|
+
details.${c.group}::details-content,
|
|
2049
|
+
details.${c.group} .${c.link}{transition:none}
|
|
2050
|
+
}
|
|
2051
|
+
.${c.numbered} .${c.link}{counter-increment:sample}
|
|
2052
|
+
.${c.numbered} .${c.link}::before{content:counter(sample,decimal-leading-zero);font-variant-numeric:tabular-nums;margin-right:1rem}`;
|
|
2053
|
+
};
|
|
2054
|
+
exports.sidebarNavCss = sidebarNavCss;
|
|
2055
|
+
exports.sidebarNavRevealScript = "(function(){var a=document.querySelector(" +
|
|
2056
|
+
JSON.stringify("." + exports.sidebarNavClass.nav + " [aria-current]") +
|
|
2057
|
+
");for(var b=a&&a.parentElement;b;b=b.parentElement){" +
|
|
2058
|
+
"if(b.scrollHeight>b.clientHeight+1){" +
|
|
2059
|
+
"var r=a.getBoundingClientRect()," +
|
|
2060
|
+
"q=b.getBoundingClientRect();" +
|
|
2061
|
+
"if(r.top<q.top||r.bottom>q.bottom)" +
|
|
2062
|
+
"b.scrollTop+=r.top-q.top-q.height/2;" +
|
|
2063
|
+
"break;}}})();";
|
|
2064
|
+
|
|
1151
2065
|
},
|
|
1152
2066
|
"src/brand.ts": function (module, exports, require) {
|
|
1153
2067
|
"use strict";
|
|
@@ -1159,11 +2073,675 @@ exports.pragmaticTheme = Style_1.defaultTheme;
|
|
|
1159
2073
|
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
2074
|
exports.pragmaticThemeWithPalette = pragmaticThemeWithPalette;
|
|
1161
2075
|
|
|
2076
|
+
},
|
|
2077
|
+
"src/Navigate/usecase/carouselScript.ts": function (module, exports, require) {
|
|
2078
|
+
"use strict";
|
|
2079
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2080
|
+
exports.carouselInitScript = void 0;
|
|
2081
|
+
const marker_1 = require("src/Navigate/model/marker.ts");
|
|
2082
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
2083
|
+
const q = (value) => JSON.stringify(value);
|
|
2084
|
+
exports.carouselInitScript = "(function(){" +
|
|
2085
|
+
`var s=document.querySelector(${q("." + classHooks_1.shareClass)});` +
|
|
2086
|
+
"if(!s||!s.parentNode){return;}" +
|
|
2087
|
+
`var C=${q(marker_1.columnAttr)},LV=${q(classHooks_1.leavingAttr)};` +
|
|
2088
|
+
"var R0=window.matchMedia&&window.matchMedia('(prefers-reduced-motion:reduce)').matches;" +
|
|
2089
|
+
"function cols(){return s.querySelectorAll('['+C+']:not(['+LV+'])');}" +
|
|
2090
|
+
"function edge(){return s.getBoundingClientRect().left+(parseFloat(getComputedStyle(s).scrollPaddingLeft)||0);}" +
|
|
2091
|
+
"function step(dir){var c=cols(),L=edge(),t=null,i;" +
|
|
2092
|
+
"if(dir>0){for(i=0;i<c.length;i++){if(c[i].getBoundingClientRect().left>L+1){t=c[i];break;}}}" +
|
|
2093
|
+
"else{for(i=c.length-1;i>=0;i--){if(c[i].getBoundingClientRect().left<L-1){t=c[i];break;}}}" +
|
|
2094
|
+
"if(t){s.scrollBy({left:t.getBoundingClientRect().left-L,behavior:R0?'auto':'smooth'});}}" +
|
|
2095
|
+
"function make(cls,label,dir){var b=document.createElement('button');" +
|
|
2096
|
+
"b.type='button';b.className=cls;b.setAttribute('aria-label',label);b.hidden=true;" +
|
|
2097
|
+
"b.addEventListener('click',function(){step(dir);});s.parentNode.appendChild(b);return b;}" +
|
|
2098
|
+
`var prev=make(${q(classHooks_1.carouselPrevClass)},'前の列へ',-1);` +
|
|
2099
|
+
`var next=make(${q(classHooks_1.carouselNextClass)},'次の列へ',1);` +
|
|
2100
|
+
"function update(){var max=s.scrollWidth-s.clientWidth;" +
|
|
2101
|
+
"prev.hidden=s.scrollLeft<=1;next.hidden=s.scrollLeft>=max-1;}" +
|
|
2102
|
+
"s.addEventListener('scroll',update,{passive:true});" +
|
|
2103
|
+
"s.addEventListener('animationend',update);" +
|
|
2104
|
+
"window.addEventListener('resize',update);" +
|
|
2105
|
+
"document.addEventListener('plgg:columns',function(){update();setTimeout(update,450);});" +
|
|
2106
|
+
"update();})();";
|
|
2107
|
+
|
|
2108
|
+
},
|
|
2109
|
+
"src/Navigate/model/marker.ts": function (module, exports, require) {
|
|
2110
|
+
"use strict";
|
|
2111
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2112
|
+
exports.documentColumn = exports.strip = exports.navHookName = exports.spanAttr = exports.columnAttr = exports.stripAttr = void 0;
|
|
2113
|
+
const plgg_1 = require("plgg");
|
|
2114
|
+
const plgg_view_1 = require("plgg-view");
|
|
2115
|
+
const combinators_1 = require("src/Layout/usecase/combinators.ts");
|
|
2116
|
+
const identity_1 = require("src/Meta/model/identity.ts");
|
|
2117
|
+
exports.stripAttr = `data-${identity_1.cssPrefix}-strip`;
|
|
2118
|
+
exports.columnAttr = `data-${identity_1.cssPrefix}-column`;
|
|
2119
|
+
exports.spanAttr = `data-${identity_1.cssPrefix}-span`;
|
|
2120
|
+
exports.navHookName = `__${identity_1.cssPrefix}Nav`;
|
|
2121
|
+
const strip = (parts, children) => (0, combinators_1.rowWith)([(0, plgg_view_1.attr)(exports.stripAttr, "")], parts, children);
|
|
2122
|
+
exports.strip = strip;
|
|
2123
|
+
const documentColumn = (route, span, parts, children) => (0, combinators_1.columnWith)([
|
|
2124
|
+
(0, plgg_view_1.attr)(exports.columnAttr, route),
|
|
2125
|
+
...(0, plgg_1.matchOption)(() => [], (quoted) => [
|
|
2126
|
+
(0, plgg_view_1.attr)(exports.spanAttr, quoted),
|
|
2127
|
+
])(span),
|
|
2128
|
+
], parts, children);
|
|
2129
|
+
exports.documentColumn = documentColumn;
|
|
2130
|
+
|
|
2131
|
+
},
|
|
2132
|
+
"src/Layout/model/geometry.ts": function (module, exports, require) {
|
|
2133
|
+
"use strict";
|
|
2134
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2135
|
+
exports.reachableScroll = exports.visibleColumnStart = exports.stripStyle = exports.stripVar = exports.stripGeometry = exports.stripMetrics = void 0;
|
|
2136
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
2137
|
+
exports.stripMetrics = {
|
|
2138
|
+
menu: 220,
|
|
2139
|
+
menuShare: 0.4,
|
|
2140
|
+
column: 320,
|
|
2141
|
+
columnShare: 0.6,
|
|
2142
|
+
floor: 320,
|
|
2143
|
+
phone: 640,
|
|
2144
|
+
};
|
|
2145
|
+
const stripGeometry = (metrics) => (viewport, scroll, menuTrack) => {
|
|
2146
|
+
const narrow = viewport < metrics.phone;
|
|
2147
|
+
const menu = menuTrack === "closed"
|
|
2148
|
+
? 0
|
|
2149
|
+
: narrow
|
|
2150
|
+
? viewport
|
|
2151
|
+
: menuTrack === "open"
|
|
2152
|
+
? Math.min(metrics.menu, viewport * metrics.menuShare)
|
|
2153
|
+
: menuTrack;
|
|
2154
|
+
const column = narrow
|
|
2155
|
+
? viewport
|
|
2156
|
+
: Math.min(metrics.column, viewport * metrics.columnShare);
|
|
2157
|
+
const track = viewport - menu;
|
|
2158
|
+
const floor = Math.min(metrics.floor, viewport - column);
|
|
2159
|
+
return {
|
|
2160
|
+
menu,
|
|
2161
|
+
column,
|
|
2162
|
+
track,
|
|
2163
|
+
floor,
|
|
2164
|
+
seam: Math.max(0, viewport - floor - column),
|
|
2165
|
+
layoutMinimum: viewport - floor,
|
|
2166
|
+
width: Math.max(floor, track - Math.max(0, scroll)),
|
|
2167
|
+
};
|
|
2168
|
+
};
|
|
2169
|
+
exports.stripGeometry = stripGeometry;
|
|
2170
|
+
exports.stripVar = {
|
|
2171
|
+
track: (0, classHooks_1.cssVar)("strip-track"),
|
|
2172
|
+
width: (0, classHooks_1.cssVar)("strip-panel"),
|
|
2173
|
+
menu: (0, classHooks_1.cssVar)("strip-menu"),
|
|
2174
|
+
column: (0, classHooks_1.cssVar)("strip-column"),
|
|
2175
|
+
layoutMinimum: (0, classHooks_1.cssVar)("strip-minimum"),
|
|
2176
|
+
seam: (0, classHooks_1.cssVar)("strip-seam"),
|
|
2177
|
+
};
|
|
2178
|
+
const stripStyle = (g) => [
|
|
2179
|
+
`${exports.stripVar.track}:${g.track}px`,
|
|
2180
|
+
`${exports.stripVar.width}:${g.width}px`,
|
|
2181
|
+
`${exports.stripVar.menu}:${g.menu}px`,
|
|
2182
|
+
`${exports.stripVar.column}:${g.column}px`,
|
|
2183
|
+
`${exports.stripVar.layoutMinimum}:${g.layoutMinimum}px`,
|
|
2184
|
+
`${exports.stripVar.seam}:${g.seam}px`,
|
|
2185
|
+
].join(";");
|
|
2186
|
+
exports.stripStyle = stripStyle;
|
|
2187
|
+
const visibleColumnStart = (widths, viewport, pinned) => {
|
|
2188
|
+
const back = (start, used) => {
|
|
2189
|
+
const before = widths[start - 1];
|
|
2190
|
+
return start > 0 &&
|
|
2191
|
+
before !== undefined &&
|
|
2192
|
+
used + before <= viewport - pinned
|
|
2193
|
+
? back(start - 1, used + before)
|
|
2194
|
+
: start;
|
|
2195
|
+
};
|
|
2196
|
+
const last = Math.max(0, widths.length - 1);
|
|
2197
|
+
return back(last, widths[last] ?? 0);
|
|
2198
|
+
};
|
|
2199
|
+
exports.visibleColumnStart = visibleColumnStart;
|
|
2200
|
+
const reachableScroll = (left, scrollWidth, clientWidth) => Math.max(0, Math.min(left, Math.max(0, scrollWidth - clientWidth)));
|
|
2201
|
+
exports.reachableScroll = reachableScroll;
|
|
2202
|
+
|
|
2203
|
+
},
|
|
2204
|
+
"src/Layout/model/reveal.ts": function (module, exports, require) {
|
|
2205
|
+
"use strict";
|
|
2206
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2207
|
+
exports.glideEase = exports.revealTarget = void 0;
|
|
2208
|
+
const revealTarget = (current, maximum, visible, column) => {
|
|
2209
|
+
const delta = column.right - column.left >
|
|
2210
|
+
visible.right - visible.left
|
|
2211
|
+
? column.right - visible.right
|
|
2212
|
+
: column.left < visible.left
|
|
2213
|
+
? column.left - visible.left
|
|
2214
|
+
: column.right > visible.right
|
|
2215
|
+
? column.right - visible.right
|
|
2216
|
+
: 0;
|
|
2217
|
+
return Math.max(0, Math.min(maximum, current + delta));
|
|
2218
|
+
};
|
|
2219
|
+
exports.revealTarget = revealTarget;
|
|
2220
|
+
const glideEase = (progress) => 1 -
|
|
2221
|
+
Math.pow(1 - Math.max(0, Math.min(1, progress)), 3);
|
|
2222
|
+
exports.glideEase = glideEase;
|
|
2223
|
+
|
|
2224
|
+
},
|
|
2225
|
+
"src/Layout/usecase/revealColumn.ts": function (module, exports, require) {
|
|
2226
|
+
"use strict";
|
|
2227
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2228
|
+
exports.revealColumn = exports.revealOptions = void 0;
|
|
2229
|
+
const reveal_1 = require("src/Layout/model/reveal.ts");
|
|
2230
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
2231
|
+
exports.revealOptions = {
|
|
2232
|
+
behavior: "smooth",
|
|
2233
|
+
sticky: null,
|
|
2234
|
+
duration: 280,
|
|
2235
|
+
marker: classHooks_1.programmaticScrollAttr,
|
|
2236
|
+
};
|
|
2237
|
+
const glides = new WeakMap();
|
|
2238
|
+
const revealColumn = (strip, column, options = exports.revealOptions) => {
|
|
2239
|
+
const bounds = strip.getBoundingClientRect();
|
|
2240
|
+
const right = bounds.left + strip.clientWidth;
|
|
2241
|
+
const stuck = options.sticky instanceof HTMLElement &&
|
|
2242
|
+
["sticky", "fixed"].includes(getComputedStyle(options.sticky).position)
|
|
2243
|
+
? options.sticky.getBoundingClientRect()
|
|
2244
|
+
.right
|
|
2245
|
+
: bounds.left;
|
|
2246
|
+
const left = stuck > bounds.left && stuck < right
|
|
2247
|
+
? stuck
|
|
2248
|
+
: bounds.left;
|
|
2249
|
+
const target = (0, reveal_1.revealTarget)(strip.scrollLeft, strip.scrollWidth - strip.clientWidth, { left, right }, column.getBoundingClientRect());
|
|
2250
|
+
glides.get(strip)?.abort();
|
|
2251
|
+
if (options.behavior !== "smooth" ||
|
|
2252
|
+
Math.abs(target - strip.scrollLeft) < 1) {
|
|
2253
|
+
strip.removeAttribute(options.marker);
|
|
2254
|
+
strip.scrollTo({
|
|
2255
|
+
left: target,
|
|
2256
|
+
behavior: "auto",
|
|
2257
|
+
});
|
|
2258
|
+
return;
|
|
2259
|
+
}
|
|
2260
|
+
const controller = new AbortController();
|
|
2261
|
+
const from = strip.scrollLeft;
|
|
2262
|
+
const start = performance.now();
|
|
2263
|
+
glides.set(strip, controller);
|
|
2264
|
+
strip.setAttribute(options.marker, "");
|
|
2265
|
+
const end = () => {
|
|
2266
|
+
controller.abort();
|
|
2267
|
+
strip.removeAttribute(options.marker);
|
|
2268
|
+
};
|
|
2269
|
+
[
|
|
2270
|
+
"pointerdown",
|
|
2271
|
+
"touchstart",
|
|
2272
|
+
"wheel",
|
|
2273
|
+
"keydown",
|
|
2274
|
+
].forEach((event) => strip.addEventListener(event, end, {
|
|
2275
|
+
passive: true,
|
|
2276
|
+
once: true,
|
|
2277
|
+
signal: controller.signal,
|
|
2278
|
+
}));
|
|
2279
|
+
const step = (now) => {
|
|
2280
|
+
if (controller.signal.aborted ||
|
|
2281
|
+
!strip.isConnected)
|
|
2282
|
+
return;
|
|
2283
|
+
const progress = Math.min(1, (now - start) / options.duration);
|
|
2284
|
+
strip.scrollLeft =
|
|
2285
|
+
from +
|
|
2286
|
+
(target - from) * (0, reveal_1.glideEase)(progress);
|
|
2287
|
+
if (progress < 1)
|
|
2288
|
+
requestAnimationFrame(step);
|
|
2289
|
+
else {
|
|
2290
|
+
strip.scrollLeft = target;
|
|
2291
|
+
end();
|
|
2292
|
+
}
|
|
2293
|
+
};
|
|
2294
|
+
requestAnimationFrame(step);
|
|
2295
|
+
};
|
|
2296
|
+
exports.revealColumn = revealColumn;
|
|
2297
|
+
|
|
2298
|
+
},
|
|
2299
|
+
"src/Layout/usecase/workspace.ts": function (module, exports, require) {
|
|
2300
|
+
"use strict";
|
|
2301
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2302
|
+
exports.widthColumn = exports.menuColumn = exports.browser = exports.pinnedPanel = exports.workspaceWith = exports.workspace = void 0;
|
|
2303
|
+
const plgg_view_1 = require("plgg-view");
|
|
2304
|
+
const styleEntry_1 = require("src/styleEntry.ts");
|
|
2305
|
+
const combinators_1 = require("src/Layout/usecase/combinators.ts");
|
|
2306
|
+
const geometry_1 = require("src/Layout/model/geometry.ts");
|
|
2307
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
2308
|
+
const flag = (on, name) => on ? [(0, plgg_view_1.attr)(name, "")] : [];
|
|
2309
|
+
const workspace = (state, parts, children) => (0, exports.workspaceWith)([], state, parts, children);
|
|
2310
|
+
exports.workspace = workspace;
|
|
2311
|
+
const workspaceWith = (attributes, state, parts, children) => (0, plgg_view_1.el)("div", [
|
|
2312
|
+
(0, styleEntry_1.style_)(classHooks_1.workspaceClass, ...parts),
|
|
2313
|
+
(0, plgg_view_1.attr)("style", (0, geometry_1.stripStyle)(state.geometry)),
|
|
2314
|
+
...flag(state.menuOpen, classHooks_1.menuOpenAttr),
|
|
2315
|
+
...flag(state.menuCompact, classHooks_1.menuCompactAttr),
|
|
2316
|
+
...flag(state.phone, classHooks_1.phoneAttr),
|
|
2317
|
+
...attributes,
|
|
2318
|
+
], children);
|
|
2319
|
+
exports.workspaceWith = workspaceWith;
|
|
2320
|
+
const pinnedPanel = (parts, children) => (0, plgg_view_1.el)("aside", [(0, styleEntry_1.style_)(classHooks_1.pinnedClass, ...parts)], children);
|
|
2321
|
+
exports.pinnedPanel = pinnedPanel;
|
|
2322
|
+
const browser = (parts, children) => (0, plgg_view_1.el)("div", [(0, styleEntry_1.style_)(classHooks_1.browserClass, styleEntry_1.flex, ...parts)], [
|
|
2323
|
+
...children,
|
|
2324
|
+
(0, plgg_view_1.el)("div", [
|
|
2325
|
+
(0, styleEntry_1.style_)(classHooks_1.seamClass),
|
|
2326
|
+
(0, plgg_view_1.attr)("aria-hidden", "true"),
|
|
2327
|
+
], []),
|
|
2328
|
+
]);
|
|
2329
|
+
exports.browser = browser;
|
|
2330
|
+
const menuColumn = (parts, children) => (0, combinators_1.columnWith)([], [classHooks_1.menuClass, ...parts], children);
|
|
2331
|
+
exports.menuColumn = menuColumn;
|
|
2332
|
+
const widthColumn = (width, parts, children) => (0, combinators_1.columnWith)([(0, plgg_view_1.attr)(classHooks_1.widthAttr, width)], parts, children);
|
|
2333
|
+
exports.widthColumn = widthColumn;
|
|
2334
|
+
|
|
2335
|
+
},
|
|
2336
|
+
"src/Layout/usecase/preference.ts": function (module, exports, require) {
|
|
2337
|
+
"use strict";
|
|
2338
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2339
|
+
exports.savePreference = exports.readPreference = void 0;
|
|
2340
|
+
const plgg_1 = require("plgg");
|
|
2341
|
+
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));
|
|
2342
|
+
exports.readPreference = readPreference;
|
|
2343
|
+
const savePreference = (key, on, store = () => localStorage) => (0, plgg_1.pipe)((0, plgg_1.tryCatch)(() => {
|
|
2344
|
+
store().setItem(key, on ? "1" : "0");
|
|
2345
|
+
return true;
|
|
2346
|
+
})(undefined), (0, plgg_1.matchResult)(() => false, (saved) => saved));
|
|
2347
|
+
exports.savePreference = savePreference;
|
|
2348
|
+
|
|
2349
|
+
},
|
|
2350
|
+
"src/Navigate/index.ts": function (module, exports, require) {
|
|
2351
|
+
"use strict";
|
|
2352
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2353
|
+
exports.carouselInitScript = 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;
|
|
2354
|
+
var Composition_1 = require("src/Navigate/model/Composition.ts");
|
|
2355
|
+
Object.defineProperty(exports, "columnOf", { enumerable: true, get: function () { return Composition_1.columnOf; } });
|
|
2356
|
+
Object.defineProperty(exports, "columnWithSpan", { enumerable: true, get: function () { return Composition_1.columnWithSpan; } });
|
|
2357
|
+
Object.defineProperty(exports, "soloComposition", { enumerable: true, get: function () { return Composition_1.soloComposition; } });
|
|
2358
|
+
Object.defineProperty(exports, "columnsOf", { enumerable: true, get: function () { return Composition_1.columnsOf; } });
|
|
2359
|
+
var compositionUrl_1 = require("src/Navigate/usecase/compositionUrl.ts");
|
|
2360
|
+
Object.defineProperty(exports, "restParam", { enumerable: true, get: function () { return compositionUrl_1.restParam; } });
|
|
2361
|
+
Object.defineProperty(exports, "spanParam", { enumerable: true, get: function () { return compositionUrl_1.spanParam; } });
|
|
2362
|
+
Object.defineProperty(exports, "entrySeparator", { enumerable: true, get: function () { return compositionUrl_1.entrySeparator; } });
|
|
2363
|
+
Object.defineProperty(exports, "fieldSeparator", { enumerable: true, get: function () { return compositionUrl_1.fieldSeparator; } });
|
|
2364
|
+
Object.defineProperty(exports, "escapeChar", { enumerable: true, get: function () { return compositionUrl_1.escapeChar; } });
|
|
2365
|
+
Object.defineProperty(exports, "decodeComposition", { enumerable: true, get: function () { return compositionUrl_1.decodeComposition; } });
|
|
2366
|
+
Object.defineProperty(exports, "compositionQuery", { enumerable: true, get: function () { return compositionUrl_1.compositionQuery; } });
|
|
2367
|
+
Object.defineProperty(exports, "compositionHref", { enumerable: true, get: function () { return compositionUrl_1.compositionHref; } });
|
|
2368
|
+
var marker_1 = require("src/Navigate/model/marker.ts");
|
|
2369
|
+
Object.defineProperty(exports, "stripAttr", { enumerable: true, get: function () { return marker_1.stripAttr; } });
|
|
2370
|
+
Object.defineProperty(exports, "columnAttr", { enumerable: true, get: function () { return marker_1.columnAttr; } });
|
|
2371
|
+
Object.defineProperty(exports, "spanAttr", { enumerable: true, get: function () { return marker_1.spanAttr; } });
|
|
2372
|
+
Object.defineProperty(exports, "navHookName", { enumerable: true, get: function () { return marker_1.navHookName; } });
|
|
2373
|
+
Object.defineProperty(exports, "strip", { enumerable: true, get: function () { return marker_1.strip; } });
|
|
2374
|
+
Object.defineProperty(exports, "documentColumn", { enumerable: true, get: function () { return marker_1.documentColumn; } });
|
|
2375
|
+
var navigationScript_1 = require("src/Navigate/usecase/navigationScript.ts");
|
|
2376
|
+
Object.defineProperty(exports, "navigationInitScript", { enumerable: true, get: function () { return navigationScript_1.navigationInitScript; } });
|
|
2377
|
+
Object.defineProperty(exports, "injectNavigationScript", { enumerable: true, get: function () { return navigationScript_1.injectNavigationScript; } });
|
|
2378
|
+
var Trail_1 = require("src/Navigate/model/Trail.ts");
|
|
2379
|
+
Object.defineProperty(exports, "resolveTrail", { enumerable: true, get: function () { return Trail_1.resolveTrail; } });
|
|
2380
|
+
Object.defineProperty(exports, "settledTrail", { enumerable: true, get: function () { return Trail_1.settledTrail; } });
|
|
2381
|
+
Object.defineProperty(exports, "foldTrail", { enumerable: true, get: function () { return Trail_1.foldTrail; } });
|
|
2382
|
+
Object.defineProperty(exports, "stepFrom", { enumerable: true, get: function () { return Trail_1.stepFrom; } });
|
|
2383
|
+
Object.defineProperty(exports, "restep", { enumerable: true, get: function () { return Trail_1.restep; } });
|
|
2384
|
+
var trailUrl_1 = require("src/Navigate/usecase/trailUrl.ts");
|
|
2385
|
+
Object.defineProperty(exports, "trailParam", { enumerable: true, get: function () { return trailUrl_1.trailParam; } });
|
|
2386
|
+
Object.defineProperty(exports, "stepSeparator", { enumerable: true, get: function () { return trailUrl_1.stepSeparator; } });
|
|
2387
|
+
Object.defineProperty(exports, "encodeTrail", { enumerable: true, get: function () { return trailUrl_1.encodeTrail; } });
|
|
2388
|
+
Object.defineProperty(exports, "decodeTrail", { enumerable: true, get: function () { return trailUrl_1.decodeTrail; } });
|
|
2389
|
+
Object.defineProperty(exports, "trailQuery", { enumerable: true, get: function () { return trailUrl_1.trailQuery; } });
|
|
2390
|
+
Object.defineProperty(exports, "printSteps", { enumerable: true, get: function () { return trailUrl_1.printSteps; } });
|
|
2391
|
+
Object.defineProperty(exports, "parseSteps", { enumerable: true, get: function () { return trailUrl_1.parseSteps; } });
|
|
2392
|
+
var carouselScript_1 = require("src/Navigate/usecase/carouselScript.ts");
|
|
2393
|
+
Object.defineProperty(exports, "carouselInitScript", { enumerable: true, get: function () { return carouselScript_1.carouselInitScript; } });
|
|
2394
|
+
|
|
2395
|
+
},
|
|
2396
|
+
"src/Navigate/model/Composition.ts": function (module, exports, require) {
|
|
2397
|
+
"use strict";
|
|
2398
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2399
|
+
exports.columnsOf = exports.soloComposition = exports.columnWithSpan = exports.columnOf = void 0;
|
|
2400
|
+
const plgg_1 = require("plgg");
|
|
2401
|
+
const columnOf = (route) => ({ route, span: (0, plgg_1.none)() });
|
|
2402
|
+
exports.columnOf = columnOf;
|
|
2403
|
+
const columnWithSpan = (route, span) => ({ route, span });
|
|
2404
|
+
exports.columnWithSpan = columnWithSpan;
|
|
2405
|
+
const soloComposition = (route) => ({
|
|
2406
|
+
head: (0, exports.columnOf)(route),
|
|
2407
|
+
rest: [],
|
|
2408
|
+
});
|
|
2409
|
+
exports.soloComposition = soloComposition;
|
|
2410
|
+
const columnsOf = (composition) => [
|
|
2411
|
+
composition.head,
|
|
2412
|
+
...composition.rest,
|
|
2413
|
+
];
|
|
2414
|
+
exports.columnsOf = columnsOf;
|
|
2415
|
+
|
|
2416
|
+
},
|
|
2417
|
+
"src/Navigate/usecase/compositionUrl.ts": function (module, exports, require) {
|
|
2418
|
+
"use strict";
|
|
2419
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2420
|
+
exports.compositionHref = exports.compositionQuery = exports.decodeComposition = exports.escapeChar = exports.fieldSeparator = exports.entrySeparator = exports.spanParam = exports.restParam = void 0;
|
|
2421
|
+
const plgg_1 = require("plgg");
|
|
2422
|
+
const Composition_1 = require("src/Navigate/model/Composition.ts");
|
|
2423
|
+
exports.restParam = "c";
|
|
2424
|
+
exports.spanParam = "q";
|
|
2425
|
+
exports.entrySeparator = ",";
|
|
2426
|
+
exports.fieldSeparator = ":";
|
|
2427
|
+
exports.escapeChar = "~";
|
|
2428
|
+
const ENTRY_SEP = exports.entrySeparator;
|
|
2429
|
+
const FIELD_SEP = exports.fieldSeparator;
|
|
2430
|
+
const ESCAPE = exports.escapeChar;
|
|
2431
|
+
const escapeField = (value) => value
|
|
2432
|
+
.split(ESCAPE)
|
|
2433
|
+
.join(ESCAPE + "t")
|
|
2434
|
+
.split(ENTRY_SEP)
|
|
2435
|
+
.join(ESCAPE + "c")
|
|
2436
|
+
.split(FIELD_SEP)
|
|
2437
|
+
.join(ESCAPE + "f");
|
|
2438
|
+
const unescapeField = (value) => value
|
|
2439
|
+
.split(ESCAPE + "f")
|
|
2440
|
+
.join(FIELD_SEP)
|
|
2441
|
+
.split(ESCAPE + "c")
|
|
2442
|
+
.join(ENTRY_SEP)
|
|
2443
|
+
.split(ESCAPE + "t")
|
|
2444
|
+
.join(ESCAPE);
|
|
2445
|
+
const percent = (value) => encodeURIComponent(value)
|
|
2446
|
+
.split("%2F")
|
|
2447
|
+
.join("/")
|
|
2448
|
+
.split("%2C")
|
|
2449
|
+
.join(ENTRY_SEP)
|
|
2450
|
+
.split("%3A")
|
|
2451
|
+
.join(FIELD_SEP);
|
|
2452
|
+
const columnFrom = (route, span) => route === ""
|
|
2453
|
+
? (0, plgg_1.none)()
|
|
2454
|
+
: (0, plgg_1.some)((0, Composition_1.columnWithSpan)(unescapeField(route), span === ""
|
|
2455
|
+
? (0, plgg_1.none)()
|
|
2456
|
+
: (0, plgg_1.some)(unescapeField(span))));
|
|
2457
|
+
const parseEntry = (raw) => (0, plgg_1.pipe)(raw.indexOf(FIELD_SEP), (i) => i < 0
|
|
2458
|
+
? columnFrom(raw, "")
|
|
2459
|
+
: columnFrom(raw.slice(0, i), raw.slice(i + 1)));
|
|
2460
|
+
const parseRest = (raw) => raw
|
|
2461
|
+
.split(ENTRY_SEP)
|
|
2462
|
+
.reduce((acc, entry) => (0, plgg_1.pipe)(parseEntry(entry), (0, plgg_1.matchOption)(() => acc, (column) => [
|
|
2463
|
+
...acc,
|
|
2464
|
+
column,
|
|
2465
|
+
])), []);
|
|
2466
|
+
const decodeComposition = (route, rest, span) => ({
|
|
2467
|
+
head: (0, Composition_1.columnWithSpan)(route, (0, plgg_1.pipe)(span, (0, plgg_1.chainOption)((raw) => raw === ""
|
|
2468
|
+
? (0, plgg_1.none)()
|
|
2469
|
+
: (0, plgg_1.some)(unescapeField(raw))))),
|
|
2470
|
+
rest: (0, plgg_1.pipe)(rest, (0, plgg_1.matchOption)(() => [], (raw) => parseRest(raw))),
|
|
2471
|
+
});
|
|
2472
|
+
exports.decodeComposition = decodeComposition;
|
|
2473
|
+
const encodeEntry = (column) => escapeField(column.route) +
|
|
2474
|
+
(0, plgg_1.pipe)(column.span, (0, plgg_1.matchOption)(() => "", (span) => FIELD_SEP + escapeField(span)));
|
|
2475
|
+
const restParams = (rest) => rest.length === 0
|
|
2476
|
+
? []
|
|
2477
|
+
: [
|
|
2478
|
+
[
|
|
2479
|
+
exports.restParam,
|
|
2480
|
+
rest.map(encodeEntry).join(ENTRY_SEP),
|
|
2481
|
+
],
|
|
2482
|
+
];
|
|
2483
|
+
const paramsOf = (composition) => [
|
|
2484
|
+
...restParams(composition.rest),
|
|
2485
|
+
...(0, plgg_1.pipe)(composition.head.span, (0, plgg_1.matchOption)(() => [], (span) => [[exports.spanParam, escapeField(span)]])),
|
|
2486
|
+
];
|
|
2487
|
+
const compositionQuery = (composition) => (0, plgg_1.pipe)(paramsOf(composition)
|
|
2488
|
+
.map(([key, value]) => key + "=" + percent(value))
|
|
2489
|
+
.join("&"), (query) => query === "" ? "" : "?" + query);
|
|
2490
|
+
exports.compositionQuery = compositionQuery;
|
|
2491
|
+
const compositionHref = (composition) => composition.head.route +
|
|
2492
|
+
(0, exports.compositionQuery)(composition);
|
|
2493
|
+
exports.compositionHref = compositionHref;
|
|
2494
|
+
|
|
2495
|
+
},
|
|
2496
|
+
"src/Navigate/usecase/navigationScript.ts": function (module, exports, require) {
|
|
2497
|
+
"use strict";
|
|
2498
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2499
|
+
exports.injectNavigationScript = exports.navigationInitScript = void 0;
|
|
2500
|
+
const marker_1 = require("src/Navigate/model/marker.ts");
|
|
2501
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
2502
|
+
const compositionUrl_1 = require("src/Navigate/usecase/compositionUrl.ts");
|
|
2503
|
+
const q = (value) => JSON.stringify(value);
|
|
2504
|
+
exports.navigationInitScript = "(function(){" +
|
|
2505
|
+
`var S=${q(marker_1.stripAttr)},C=${q(marker_1.columnAttr)},P=${q(marker_1.spanAttr)};` +
|
|
2506
|
+
`var FC=${q(classHooks_1.foldClass)},TC=${q(classHooks_1.trailClass)};` +
|
|
2507
|
+
`var LV=${q(classHooks_1.leavingAttr)},RP=${q(classHooks_1.replacingAttr)},OP=${q(classHooks_1.openedAttr)};` +
|
|
2508
|
+
"var R0=window.matchMedia&&window.matchMedia('(prefers-reduced-motion:reduce)').matches;" +
|
|
2509
|
+
`var R=${q(compositionUrl_1.restParam)},Q=${q(compositionUrl_1.spanParam)};` +
|
|
2510
|
+
`var E=${q(compositionUrl_1.escapeChar)},N=${q(compositionUrl_1.entrySeparator)},F=${q(compositionUrl_1.fieldSeparator)};` +
|
|
2511
|
+
"function esc(v){return v.split(E).join(E+'t')" +
|
|
2512
|
+
".split(N).join(E+'c').split(F).join(E+'f');}" +
|
|
2513
|
+
"function unesc(v){return v.split(E+'f').join(F)" +
|
|
2514
|
+
".split(E+'c').join(N).split(E+'t').join(E);}" +
|
|
2515
|
+
"function pct(v){return encodeURIComponent(v)" +
|
|
2516
|
+
".split('%2F').join('/').split('%2C').join(N)" +
|
|
2517
|
+
".split('%3A').join(F);}" +
|
|
2518
|
+
"function ps(){return new URL(window.location.href).searchParams;}" +
|
|
2519
|
+
"function entries(){var v=ps().get(R);return v?v.split(N):[];}" +
|
|
2520
|
+
"function entryOf(r,s){return esc(r)+(s?F+esc(s):'');}" +
|
|
2521
|
+
"function routeOf(e){var i=e.indexOf(F);" +
|
|
2522
|
+
"return unesc(i<0?e:e.slice(0,i));}" +
|
|
2523
|
+
"function spanOf(e){var i=e.indexOf(F);" +
|
|
2524
|
+
"return i<0?'':unesc(e.slice(i+1));}" +
|
|
2525
|
+
"function urlFor(list){var p=[];" +
|
|
2526
|
+
"if(list.length){p.push(R+'='+pct(list.join(N)));}" +
|
|
2527
|
+
"var s=ps().get(Q);if(s){p.push(Q+'='+pct(s));}" +
|
|
2528
|
+
"return window.location.pathname+(p.length?'?'+p.join('&'):'');}" +
|
|
2529
|
+
"function strip(){return document.querySelector('['+S+']');}" +
|
|
2530
|
+
"var B=(function(){var h=document.querySelector('['+C+']');" +
|
|
2531
|
+
"var a=h?h.getAttribute(C)||'':'';var p=window.location.pathname;" +
|
|
2532
|
+
"return a&&p.length>a.length&&p.slice(p.length-a.length)===a" +
|
|
2533
|
+
"?p.slice(0,p.length-a.length):'';})();" +
|
|
2534
|
+
"function cols(){return document.querySelectorAll('['+C+']:not(['+LV+'])');}" +
|
|
2535
|
+
"function changed(){if(document.dispatchEvent){document.dispatchEvent(new Event('plgg:columns'));}}" +
|
|
2536
|
+
"function leave(n){n.setAttribute(LV,'');" +
|
|
2537
|
+
"var a=R0||!n.getAnimations?[]:n.getAnimations();" +
|
|
2538
|
+
"if(!a.length){n.remove();return;}" +
|
|
2539
|
+
"var done=function(){n.remove();};" +
|
|
2540
|
+
"Promise.all(a.map(function(x){return x.finished;})).then(done,done);}" +
|
|
2541
|
+
"function truncate(at,now){var c=cols();" +
|
|
2542
|
+
"for(var i=c.length-1;i>at;i--){if(now){c[i].remove();}else{leave(c[i]);}}sync();changed();}" +
|
|
2543
|
+
"function place(node,at){var c=cols();var prev=c[at];" +
|
|
2544
|
+
"prev.parentNode.insertBefore(node,prev.nextSibling);" +
|
|
2545
|
+
"var see=function(){node.scrollIntoView({inline:'nearest',block:'nearest',behavior:R0?'auto':'smooth'});};" +
|
|
2546
|
+
"see();" +
|
|
2547
|
+
"node.addEventListener('animationend',function(ev){if(ev.target===node){see();}},{once:true});" +
|
|
2548
|
+
"showMark(node);sync();changed();}" +
|
|
2549
|
+
"function showMark(node){var m=node.querySelector('mark');" +
|
|
2550
|
+
"if(m){m.scrollIntoView({block:'center'});}}" +
|
|
2551
|
+
"function colUrl(route,span){" +
|
|
2552
|
+
"return route+(span?'?'+Q+'='+pct(esc(span)):'');}" +
|
|
2553
|
+
"function fetchCol(route,span){" +
|
|
2554
|
+
"return fetch(colUrl(route,span),{credentials:'same-origin',mode:'same-origin'})" +
|
|
2555
|
+
".then(function(r){if(!r.ok){throw new Error('nav');}return r.text();})" +
|
|
2556
|
+
".then(function(t){" +
|
|
2557
|
+
"var d=new DOMParser().parseFromString(t,'text/html');" +
|
|
2558
|
+
"var col=d.querySelector('['+C+']');" +
|
|
2559
|
+
"if(!col||!strip()||!cols().length){throw new Error('nav');}" +
|
|
2560
|
+
"const init=d.querySelector('body > script[data-column-init]');if(init){" +
|
|
2561
|
+
"for(const style of d.querySelectorAll('head > style[data-column-style]')){" +
|
|
2562
|
+
"if(!Array.from(document.querySelectorAll('style[data-column-style]')).some(s=>s.dataset.columnStyle===style.dataset.columnStyle))document.head.appendChild(document.importNode(style,true));}" +
|
|
2563
|
+
"const data=d.querySelector('body > script[type=\"application/json\"][data-column-data]');if(data)col.appendChild(document.importNode(data,true));" +
|
|
2564
|
+
"if(!document.querySelector('script[data-column-init]')){" +
|
|
2565
|
+
"const script=document.createElement('script');script.type='module';script.dataset.columnInit='';script.textContent=init.textContent;document.head.appendChild(script);}}" +
|
|
2566
|
+
"return document.importNode(col,true);});}" +
|
|
2567
|
+
"function openFrom(at,route,span){" +
|
|
2568
|
+
"var url=urlFor(entries().slice(0,at).concat([entryOf(route,span)]));" +
|
|
2569
|
+
"return fetchCol(route,span).then(function(col){" +
|
|
2570
|
+
"var rep=cols().length>at+1;" +
|
|
2571
|
+
"if(rep){col.setAttribute(RP,'');}" +
|
|
2572
|
+
"truncate(at,rep);place(col,at);" +
|
|
2573
|
+
"window.history.pushState(null,'',url);return true;}).catch(function(){" +
|
|
2574
|
+
"window.location.assign(url);return false;});}" +
|
|
2575
|
+
"function last(){return cols().length-1;}" +
|
|
2576
|
+
"function open(route,span){return openFrom(last(),route,span);}" +
|
|
2577
|
+
"function columnOf(node){var c=cols();" +
|
|
2578
|
+
"for(var i=0;i<c.length;i++){if(c[i].contains(node)){return i;}}" +
|
|
2579
|
+
"return -1;}" +
|
|
2580
|
+
"function anchorOf(node){var e=node;" +
|
|
2581
|
+
"while(e&&e!==document){if(e.tagName==='A'){return e;}e=e.parentNode;}" +
|
|
2582
|
+
"return null;}" +
|
|
2583
|
+
"function claims(ev,a){return !ev.defaultPrevented&&ev.button===0" +
|
|
2584
|
+
"&&!ev.metaKey&&!ev.ctrlKey&&!ev.shiftKey&&!ev.altKey" +
|
|
2585
|
+
"&&!!a&&!a.hasAttribute('download')" +
|
|
2586
|
+
"&&(a.target===''||a.target==='_self')" +
|
|
2587
|
+
"&&a.origin===window.location.origin" +
|
|
2588
|
+
"&&!(a.pathname===window.location.pathname&&a.hash!=='');}" +
|
|
2589
|
+
"function current(){var c=cols();var out=[];" +
|
|
2590
|
+
"for(var i=0;i<c.length;i++){out.push(entryOf(" +
|
|
2591
|
+
"B+c[i].getAttribute(C),c[i].getAttribute(P)||''));}return out;}" +
|
|
2592
|
+
"function target(){var s=ps().get(Q);" +
|
|
2593
|
+
"return [entryOf(window.location.pathname,s||'')].concat(entries());}" +
|
|
2594
|
+
"function reconcile(){var t=target(),c=current();" +
|
|
2595
|
+
"if(!c.length||t[0]!==c[0]){window.location.reload();return;}" +
|
|
2596
|
+
"var k=1;while(k<t.length&&k<c.length&&t[k]===c[k]){k++;}" +
|
|
2597
|
+
"truncate(k-1);" +
|
|
2598
|
+
"var i=k;" +
|
|
2599
|
+
"var step=function(){if(i>=t.length){return Promise.resolve(true);}" +
|
|
2600
|
+
"var e=t[i];var at=i-1;i++;" +
|
|
2601
|
+
"return fetchCol(routeOf(e),spanOf(e)).then(function(col){" +
|
|
2602
|
+
"place(col,at);return step();});};" +
|
|
2603
|
+
"return step().catch(function(){" +
|
|
2604
|
+
"window.history.replaceState(null,'',urlFor(current().slice(1)));sync();});}" +
|
|
2605
|
+
"function fold(at){truncate(at-1);" +
|
|
2606
|
+
"window.history.pushState(null,'',urlFor(entries().slice(0,at-1)));}" +
|
|
2607
|
+
"function titleOf(c){var hd=c.querySelector(':scope>header');" +
|
|
2608
|
+
"var h=hd?(hd.firstElementChild||hd):c.querySelector('h1');" +
|
|
2609
|
+
"return (h?h.textContent:c.getAttribute(C)||'').trim();}" +
|
|
2610
|
+
"function sync(){var c=cols();" +
|
|
2611
|
+
"for(var i=0;i<c.length;i++){(function(col,i){" +
|
|
2612
|
+
"var b=col.querySelector('.'+FC);" +
|
|
2613
|
+
"if(i===0||i!==c.length-1){if(b){b.remove();}return;}" +
|
|
2614
|
+
"if(!b){b=document.createElement('button');b.type='button';" +
|
|
2615
|
+
"b.className=FC;b.setAttribute('aria-label','この列を閉じる');" +
|
|
2616
|
+
"b.textContent='\u00d7';var hd=col.querySelector(':scope>header');" +
|
|
2617
|
+
"if(hd){hd.appendChild(b);}else{col.insertBefore(b,col.firstChild);}}" +
|
|
2618
|
+
"})(c[i],i);}" +
|
|
2619
|
+
"var s=strip();if(!s){return;}" +
|
|
2620
|
+
"var t=document.querySelector('.'+TC);" +
|
|
2621
|
+
"if(c.length<2){if(t){t.remove();}}else{" +
|
|
2622
|
+
"if(!t){t=document.createElement('nav');t.className=TC;" +
|
|
2623
|
+
"t.setAttribute('aria-label','開いている列');" +
|
|
2624
|
+
"s.parentNode.insertBefore(t,s);}t.textContent='';" +
|
|
2625
|
+
"for(var j=0;j<c.length;j++){(function(col,j){" +
|
|
2626
|
+
"var a=document.createElement('button');a.type='button';" +
|
|
2627
|
+
"a.textContent=titleOf(col);" +
|
|
2628
|
+
"if(j===c.length-1){a.setAttribute('aria-current','true');}" +
|
|
2629
|
+
"a.setAttribute('data-col',String(j));" +
|
|
2630
|
+
"t.appendChild(a);})(c[j],j);}}" +
|
|
2631
|
+
"var bare=function(p){return p.length>1?p.replace(/\\/+$/,''):p;};" +
|
|
2632
|
+
"for(var o=0;o<c.length;o++){" +
|
|
2633
|
+
"var nx=c[o+1];var want=nx?bare(B+(nx.getAttribute(C)||'')):null;" +
|
|
2634
|
+
"var as=c[o].querySelectorAll('a[href]');" +
|
|
2635
|
+
"for(var u=0;u<as.length;u++){var k=as[u];" +
|
|
2636
|
+
"if(want!==null&&k.origin===window.location.origin&&bare(k.pathname)===want){k.setAttribute(OP,'');}" +
|
|
2637
|
+
"else if(k.hasAttribute(OP)){k.removeAttribute(OP);}}}" +
|
|
2638
|
+
"var r=bare(c.length?B+(c[c.length-1].getAttribute(C)||''):location.pathname);" +
|
|
2639
|
+
"var ls=document.querySelectorAll('a[href]');" +
|
|
2640
|
+
"for(var m=0;m<ls.length;m++){var l=ls[m];" +
|
|
2641
|
+
"if(columnOf(l)>=0||!l.closest('nav')){continue;}" +
|
|
2642
|
+
"if(l.getAttribute('data-home')===null){l.setAttribute('data-home',l.getAttribute('aria-current')==='page'?'1':'0');}" +
|
|
2643
|
+
"if(c.length?bare(l.pathname)===r:l.getAttribute('data-home')==='1'){l.setAttribute('aria-current','page');}" +
|
|
2644
|
+
"else if(l.getAttribute('aria-current')==='page'){l.removeAttribute('aria-current');}}}" +
|
|
2645
|
+
"window.addEventListener('popstate',function(){reconcile();});" +
|
|
2646
|
+
"for(var k=0;k<cols().length;k++){showMark(cols()[k]);}" +
|
|
2647
|
+
"(function(){var t=target(),c=current();" +
|
|
2648
|
+
"if(c.length&&t[0]===c[0]&&t.length>c.length){reconcile();}else{sync();}})();" +
|
|
2649
|
+
"document.addEventListener('click',function(ev){" +
|
|
2650
|
+
"var t=ev.target;var fb=t&&t.closest?t.closest('.'+FC):null;" +
|
|
2651
|
+
"if(fb){ev.preventDefault();fold(columnOf(fb));return;}" +
|
|
2652
|
+
"var tb=t&&t.closest?t.closest('.'+TC+' [data-col]'):null;" +
|
|
2653
|
+
"if(tb){var cc=cols()[Number(tb.getAttribute('data-col'))];" +
|
|
2654
|
+
"if(cc){cc.scrollIntoView({inline:'nearest',block:'nearest'});}return;}" +
|
|
2655
|
+
"var a=anchorOf(ev.target);if(!claims(ev,a)){return;}" +
|
|
2656
|
+
"var at=columnOf(a);if(at<0){return;}" +
|
|
2657
|
+
"ev.preventDefault();openFrom(at,a.pathname);});" +
|
|
2658
|
+
`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};` +
|
|
2659
|
+
"})();";
|
|
2660
|
+
const injectNavigationScript = (html) => html.includes("</body>")
|
|
2661
|
+
? html.replace("</body>", `<script>${exports.navigationInitScript}</script></body>`)
|
|
2662
|
+
: html;
|
|
2663
|
+
exports.injectNavigationScript = injectNavigationScript;
|
|
2664
|
+
|
|
2665
|
+
},
|
|
2666
|
+
"src/Navigate/model/Trail.ts": function (module, exports, require) {
|
|
2667
|
+
"use strict";
|
|
2668
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2669
|
+
exports.restep = exports.stepFrom = exports.foldTrail = exports.settledTrail = exports.resolveTrail = void 0;
|
|
2670
|
+
const plgg_1 = require("plgg");
|
|
2671
|
+
const resolveTrail = (resolver) => (trail) => {
|
|
2672
|
+
const walk = (placed, last, rest) => {
|
|
2673
|
+
const [step, ...tail] = rest;
|
|
2674
|
+
return step === undefined
|
|
2675
|
+
? placed
|
|
2676
|
+
: (0, plgg_1.matchOption)(() => placed, (column) => {
|
|
2677
|
+
const next = {
|
|
2678
|
+
prefix: [...last.prefix, step],
|
|
2679
|
+
column,
|
|
2680
|
+
};
|
|
2681
|
+
return walk([...placed, next], next, tail);
|
|
2682
|
+
})(resolver.resolve(last.column, step));
|
|
2683
|
+
};
|
|
2684
|
+
const root = {
|
|
2685
|
+
prefix: [],
|
|
2686
|
+
column: resolver.root(),
|
|
2687
|
+
};
|
|
2688
|
+
return walk([root], root, trail);
|
|
2689
|
+
};
|
|
2690
|
+
exports.resolveTrail = resolveTrail;
|
|
2691
|
+
const settledTrail = (columns) => columns.reduce((_, placed) => placed.prefix, []);
|
|
2692
|
+
exports.settledTrail = settledTrail;
|
|
2693
|
+
const foldTrail = (trail, depth) => trail.slice(0, Math.max(0, depth));
|
|
2694
|
+
exports.foldTrail = foldTrail;
|
|
2695
|
+
const stepFrom = (trail, depth, step) => [
|
|
2696
|
+
...(0, exports.foldTrail)(trail, depth),
|
|
2697
|
+
step,
|
|
2698
|
+
];
|
|
2699
|
+
exports.stepFrom = stepFrom;
|
|
2700
|
+
const restep = (trail, index, step) => trail.map((old, i) => i === index ? step : old);
|
|
2701
|
+
exports.restep = restep;
|
|
2702
|
+
|
|
2703
|
+
},
|
|
2704
|
+
"src/Navigate/usecase/trailUrl.ts": function (module, exports, require) {
|
|
2705
|
+
"use strict";
|
|
2706
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2707
|
+
exports.parseSteps = exports.printSteps = exports.trailQuery = exports.decodeTrail = exports.encodeTrail = exports.stepSeparator = exports.trailParam = void 0;
|
|
2708
|
+
const plgg_1 = require("plgg");
|
|
2709
|
+
exports.trailParam = "x";
|
|
2710
|
+
exports.stepSeparator = ".";
|
|
2711
|
+
const encodeStep = (step) => encodeURIComponent(step).split(".").join("%2E");
|
|
2712
|
+
const decodeStep = (raw) => (0, plgg_1.pipe)((0, plgg_1.tryCatch)((value) => decodeURIComponent(value))(raw), (0, plgg_1.matchResult)(() => raw, (value) => value));
|
|
2713
|
+
const encodeTrail = (trail) => trail.map(encodeStep).join(exports.stepSeparator);
|
|
2714
|
+
exports.encodeTrail = encodeTrail;
|
|
2715
|
+
const decodeTrail = (raw) => (0, plgg_1.matchOption)(() => [], (value) => value
|
|
2716
|
+
.split(exports.stepSeparator)
|
|
2717
|
+
.filter((step) => step !== "")
|
|
2718
|
+
.map(decodeStep))(raw);
|
|
2719
|
+
exports.decodeTrail = decodeTrail;
|
|
2720
|
+
const trailQuery = (trail) => trail.length === 0
|
|
2721
|
+
? ""
|
|
2722
|
+
: "?" +
|
|
2723
|
+
exports.trailParam +
|
|
2724
|
+
"=" +
|
|
2725
|
+
encodeURIComponent((0, exports.encodeTrail)(trail));
|
|
2726
|
+
exports.trailQuery = trailQuery;
|
|
2727
|
+
const printSteps = (codec) => (steps) => steps.map(codec.print);
|
|
2728
|
+
exports.printSteps = printSteps;
|
|
2729
|
+
const parseSteps = (codec) => (trail) => {
|
|
2730
|
+
const read = (done, rest) => {
|
|
2731
|
+
const [raw, ...tail] = rest;
|
|
2732
|
+
return raw === undefined
|
|
2733
|
+
? done
|
|
2734
|
+
: (0, plgg_1.matchOption)(() => done, (step) => read([...done, step], tail))(codec.parse(raw));
|
|
2735
|
+
};
|
|
2736
|
+
return read([], trail);
|
|
2737
|
+
};
|
|
2738
|
+
exports.parseSteps = parseSteps;
|
|
2739
|
+
|
|
1162
2740
|
},
|
|
1163
2741
|
"src/Component/index.ts": function (module, exports, require) {
|
|
1164
2742
|
"use strict";
|
|
1165
2743
|
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;
|
|
2744
|
+
exports.toggle = exports.entry = exports.choice = exports.propertyRow = exports.propertyList = 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
2745
|
var interaction_1 = require("src/Component/model/interaction.ts");
|
|
1168
2746
|
Object.defineProperty(exports, "focusRing", { enumerable: true, get: function () { return interaction_1.focusRing; } });
|
|
1169
2747
|
Object.defineProperty(exports, "hoverDim", { enumerable: true, get: function () { return interaction_1.hoverDim; } });
|
|
@@ -1182,6 +2760,11 @@ Object.defineProperty(exports, "themeToggleClass", { enumerable: true, get: func
|
|
|
1182
2760
|
Object.defineProperty(exports, "themeToggleCss", { enumerable: true, get: function () { return themeToggle_1.themeToggleCss; } });
|
|
1183
2761
|
var navTree_1 = require("src/Component/usecase/navTree.ts");
|
|
1184
2762
|
Object.defineProperty(exports, "navTree", { enumerable: true, get: function () { return navTree_1.navTree; } });
|
|
2763
|
+
var sidebarNav_1 = require("src/Component/usecase/sidebarNav.ts");
|
|
2764
|
+
Object.defineProperty(exports, "sidebarNav", { enumerable: true, get: function () { return sidebarNav_1.sidebarNav; } });
|
|
2765
|
+
Object.defineProperty(exports, "sidebarNavClass", { enumerable: true, get: function () { return sidebarNav_1.sidebarNavClass; } });
|
|
2766
|
+
Object.defineProperty(exports, "sidebarNavCss", { enumerable: true, get: function () { return sidebarNav_1.sidebarNavCss; } });
|
|
2767
|
+
Object.defineProperty(exports, "sidebarNavRevealScript", { enumerable: true, get: function () { return sidebarNav_1.sidebarNavRevealScript; } });
|
|
1185
2768
|
var colHead_1 = require("src/Component/usecase/colHead.ts");
|
|
1186
2769
|
Object.defineProperty(exports, "colHead", { enumerable: true, get: function () { return colHead_1.colHead; } });
|
|
1187
2770
|
var breadcrumb_1 = require("src/Component/usecase/breadcrumb.ts");
|
|
@@ -1194,12 +2777,21 @@ var selectInput_1 = require("src/Component/usecase/selectInput.ts");
|
|
|
1194
2777
|
Object.defineProperty(exports, "selectInput", { enumerable: true, get: function () { return selectInput_1.selectInput; } });
|
|
1195
2778
|
var checkbox_1 = require("src/Component/usecase/checkbox.ts");
|
|
1196
2779
|
Object.defineProperty(exports, "checkbox", { enumerable: true, get: function () { return checkbox_1.checkbox; } });
|
|
2780
|
+
var declaredForm_1 = require("src/Component/usecase/declaredForm.ts");
|
|
2781
|
+
Object.defineProperty(exports, "fieldControl", { enumerable: true, get: function () { return declaredForm_1.fieldControl; } });
|
|
2782
|
+
Object.defineProperty(exports, "declaredForm", { enumerable: true, get: function () { return declaredForm_1.declaredForm; } });
|
|
1197
2783
|
var confirmDialog_1 = require("src/Component/usecase/confirmDialog.ts");
|
|
1198
2784
|
Object.defineProperty(exports, "confirmDialog", { enumerable: true, get: function () { return confirmDialog_1.confirmDialog; } });
|
|
1199
2785
|
var toast_1 = require("src/Component/usecase/toast.ts");
|
|
1200
2786
|
Object.defineProperty(exports, "tones", { enumerable: true, get: function () { return toast_1.tones; } });
|
|
1201
2787
|
Object.defineProperty(exports, "toast", { enumerable: true, get: function () { return toast_1.toast; } });
|
|
1202
2788
|
Object.defineProperty(exports, "toaster", { enumerable: true, get: function () { return toast_1.toaster; } });
|
|
2789
|
+
var properties_1 = require("src/Component/usecase/properties.ts");
|
|
2790
|
+
Object.defineProperty(exports, "propertyList", { enumerable: true, get: function () { return properties_1.propertyList; } });
|
|
2791
|
+
Object.defineProperty(exports, "propertyRow", { enumerable: true, get: function () { return properties_1.propertyRow; } });
|
|
2792
|
+
Object.defineProperty(exports, "choice", { enumerable: true, get: function () { return properties_1.choice; } });
|
|
2793
|
+
Object.defineProperty(exports, "entry", { enumerable: true, get: function () { return properties_1.entry; } });
|
|
2794
|
+
Object.defineProperty(exports, "toggle", { enumerable: true, get: function () { return properties_1.toggle; } });
|
|
1203
2795
|
|
|
1204
2796
|
},
|
|
1205
2797
|
"src/Component/usecase/button.ts": function (module, exports, require) {
|
|
@@ -1214,7 +2806,7 @@ const button = (props) => (0, plgg_view_1.button)([
|
|
|
1214
2806
|
...(props.disabled
|
|
1215
2807
|
? [(0, plgg_view_1.attr)("disabled", "")]
|
|
1216
2808
|
: [(0, plgg_view_1.onClick)(props.onPress)]),
|
|
1217
|
-
(0, styleEntry_1.style_)((0, styleEntry_1.bg)("primary-base"), (0, styleEntry_1.textColor)("surface"), (0, styleEntry_1.px)(4), (0, styleEntry_1.py)(2), (0, styleEntry_1.
|
|
2809
|
+
(0, styleEntry_1.style_)((0, styleEntry_1.bg)("primary-base"), (0, styleEntry_1.textColor)("surface"), (0, styleEntry_1.px)(4), (0, styleEntry_1.py)(2), (0, styleEntry_1.weight)(styleEntry_1.medium), interaction_1.focusRing, ...(props.disabled
|
|
1218
2810
|
? [
|
|
1219
2811
|
(0, styleEntry_1.decl)("cursor", "not-allowed"),
|
|
1220
2812
|
(0, styleEntry_1.decl)("opacity", "0.6"),
|
|
@@ -1316,18 +2908,16 @@ const plgg_1 = require("plgg");
|
|
|
1316
2908
|
const plgg_view_1 = require("plgg-view");
|
|
1317
2909
|
const styleEntry_1 = require("src/styleEntry.ts");
|
|
1318
2910
|
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)([
|
|
2911
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
2912
|
+
const colHead = (props) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class", classHooks_1.colHeadClass)], [
|
|
2913
|
+
(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
2914
|
(0, plgg_view_1.href)(to),
|
|
1325
2915
|
(0, plgg_view_1.attr)("aria-label", `Reset to ${props.title}`),
|
|
1326
|
-
(0, styleEntry_1.style_)(
|
|
2916
|
+
(0, styleEntry_1.style_)(classHooks_1.colHeadTitleClass, interaction_1.focusRing),
|
|
1327
2917
|
], [(0, plgg_view_1.text)(props.title)]))(props.close),
|
|
1328
2918
|
...props.links.map((link) => (0, plgg_view_1.a)([
|
|
1329
2919
|
(0, plgg_view_1.href)(link.href),
|
|
1330
|
-
(0, styleEntry_1.style_)(
|
|
2920
|
+
(0, styleEntry_1.style_)(classHooks_1.colHeadLinkClass, interaction_1.focusRing),
|
|
1331
2921
|
], [(0, plgg_view_1.text)(link.label)])),
|
|
1332
2922
|
]);
|
|
1333
2923
|
exports.colHead = colHead;
|
|
@@ -1341,26 +2931,24 @@ const plgg_1 = require("plgg");
|
|
|
1341
2931
|
const plgg_view_1 = require("plgg-view");
|
|
1342
2932
|
const styleEntry_1 = require("src/styleEntry.ts");
|
|
1343
2933
|
const interaction_1 = require("src/Component/model/interaction.ts");
|
|
1344
|
-
const
|
|
2934
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
1345
2935
|
const breadcrumb = (crumbs) => {
|
|
1346
2936
|
const last = crumbs.length - 1;
|
|
1347
2937
|
return (0, plgg_view_1.slot)([
|
|
1348
|
-
(0, plgg_view_1.attr)("class",
|
|
2938
|
+
(0, plgg_view_1.attr)("class", classHooks_1.crumbsClass),
|
|
1349
2939
|
(0, plgg_view_1.attr)("aria-label", "Breadcrumb"),
|
|
1350
2940
|
], crumbs.flatMap((crumb, i) => {
|
|
1351
2941
|
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)])
|
|
2942
|
+
? (0, plgg_view_1.span)([(0, plgg_view_1.attr)("class", classHooks_1.crumbHereClass)], [(0, plgg_view_1.text)(crumb.label)])
|
|
1355
2943
|
: (0, plgg_1.matchOption)(() => (0, plgg_view_1.span)([], [(0, plgg_view_1.text)(crumb.label)]), (to) => (0, plgg_view_1.a)([
|
|
1356
2944
|
(0, plgg_view_1.href)(to),
|
|
1357
|
-
(0, styleEntry_1.style_)(
|
|
2945
|
+
(0, styleEntry_1.style_)(classHooks_1.crumbLinkClass, interaction_1.focusRing),
|
|
1358
2946
|
], [(0, plgg_view_1.text)(crumb.label)]))(crumb.to);
|
|
1359
2947
|
return i === 0
|
|
1360
2948
|
? [label]
|
|
1361
2949
|
: [
|
|
1362
2950
|
(0, plgg_view_1.span)([
|
|
1363
|
-
(0, plgg_view_1.attr)("class",
|
|
2951
|
+
(0, plgg_view_1.attr)("class", classHooks_1.crumbSepClass),
|
|
1364
2952
|
(0, plgg_view_1.attr)("aria-hidden", "true"),
|
|
1365
2953
|
], [(0, plgg_view_1.text)("›")]),
|
|
1366
2954
|
label,
|
|
@@ -1378,9 +2966,9 @@ const plgg_1 = require("plgg");
|
|
|
1378
2966
|
const plgg_view_1 = require("plgg-view");
|
|
1379
2967
|
const styleEntry_1 = require("src/styleEntry.ts");
|
|
1380
2968
|
const interaction_1 = require("src/Component/model/interaction.ts");
|
|
1381
|
-
const
|
|
2969
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
1382
2970
|
const controlParts_1 = require("src/Form/usecase/controlParts.ts");
|
|
1383
|
-
const textInput = (props) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class",
|
|
2971
|
+
const textInput = (props) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class", classHooks_1.fieldClass)], [
|
|
1384
2972
|
(0, controlParts_1.fieldLabel)(props.name, props.label),
|
|
1385
2973
|
(0, plgg_view_1.input)([
|
|
1386
2974
|
(0, plgg_view_1.id_)(props.name),
|
|
@@ -1390,8 +2978,8 @@ const textInput = (props) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class
|
|
|
1390
2978
|
...(0, plgg_1.matchOption)(() => [], (p) => [(0, plgg_view_1.placeholder_)(p)])(props.placeholder),
|
|
1391
2979
|
...(0, controlParts_1.errorAria)(props.name, props.error),
|
|
1392
2980
|
...(0, plgg_view_1.disabled_)(props.disabled),
|
|
1393
|
-
(0, styleEntry_1.style_)(
|
|
1394
|
-
? [
|
|
2981
|
+
(0, styleEntry_1.style_)(classHooks_1.inputClass, interaction_1.focusRing, ...(props.disabled
|
|
2982
|
+
? [classHooks_1.disabledClass]
|
|
1395
2983
|
: [interaction_1.hoverDim])),
|
|
1396
2984
|
(0, plgg_view_1.onInput)(props.onInput),
|
|
1397
2985
|
], []),
|
|
@@ -1406,11 +2994,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
1406
2994
|
exports.fieldError = exports.errorAria = exports.errorId = exports.fieldLabel = void 0;
|
|
1407
2995
|
const plgg_1 = require("plgg");
|
|
1408
2996
|
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)]);
|
|
2997
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
2998
|
+
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
2999
|
exports.fieldLabel = fieldLabel;
|
|
1415
3000
|
const errorId = (name) => `${name}-error`;
|
|
1416
3001
|
exports.errorId = errorId;
|
|
@@ -1424,7 +3009,7 @@ exports.errorAria = errorAria;
|
|
|
1424
3009
|
const fieldError = (name, error) => (0, plgg_1.matchOption)(() => [], (msg) => [
|
|
1425
3010
|
(0, plgg_view_1.span)([
|
|
1426
3011
|
(0, plgg_view_1.id_)((0, exports.errorId)(name)),
|
|
1427
|
-
(0, plgg_view_1.attr)("class",
|
|
3012
|
+
(0, plgg_view_1.attr)("class", classHooks_1.fieldErrorClass),
|
|
1428
3013
|
(0, plgg_view_1.attr)("role", "alert"),
|
|
1429
3014
|
], [(0, plgg_view_1.text)(msg)]),
|
|
1430
3015
|
])(error);
|
|
@@ -1439,9 +3024,9 @@ const plgg_1 = require("plgg");
|
|
|
1439
3024
|
const plgg_view_1 = require("plgg-view");
|
|
1440
3025
|
const styleEntry_1 = require("src/styleEntry.ts");
|
|
1441
3026
|
const interaction_1 = require("src/Component/model/interaction.ts");
|
|
1442
|
-
const
|
|
3027
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
1443
3028
|
const controlParts_1 = require("src/Form/usecase/controlParts.ts");
|
|
1444
|
-
const textArea = (props) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class",
|
|
3029
|
+
const textArea = (props) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class", classHooks_1.fieldClass)], [
|
|
1445
3030
|
(0, controlParts_1.fieldLabel)(props.name, props.label),
|
|
1446
3031
|
(0, plgg_view_1.textarea)([
|
|
1447
3032
|
(0, plgg_view_1.id_)(props.name),
|
|
@@ -1450,8 +3035,8 @@ const textArea = (props) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class"
|
|
|
1450
3035
|
...(0, plgg_1.matchOption)(() => [], (p) => [(0, plgg_view_1.placeholder_)(p)])(props.placeholder),
|
|
1451
3036
|
...(0, controlParts_1.errorAria)(props.name, props.error),
|
|
1452
3037
|
...(0, plgg_view_1.disabled_)(props.disabled),
|
|
1453
|
-
(0, styleEntry_1.style_)(
|
|
1454
|
-
? [
|
|
3038
|
+
(0, styleEntry_1.style_)(classHooks_1.inputClass, interaction_1.focusRing, ...(props.disabled
|
|
3039
|
+
? [classHooks_1.disabledClass]
|
|
1455
3040
|
: [interaction_1.hoverDim])),
|
|
1456
3041
|
(0, plgg_view_1.onInput)(props.onInput),
|
|
1457
3042
|
], [(0, plgg_view_1.text)(props.value)]),
|
|
@@ -1467,16 +3052,16 @@ exports.selectInput = void 0;
|
|
|
1467
3052
|
const plgg_view_1 = require("plgg-view");
|
|
1468
3053
|
const styleEntry_1 = require("src/styleEntry.ts");
|
|
1469
3054
|
const interaction_1 = require("src/Component/model/interaction.ts");
|
|
1470
|
-
const
|
|
3055
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
1471
3056
|
const controlParts_1 = require("src/Form/usecase/controlParts.ts");
|
|
1472
|
-
const selectInput = (props) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class",
|
|
3057
|
+
const selectInput = (props) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class", classHooks_1.fieldClass)], [
|
|
1473
3058
|
(0, controlParts_1.fieldLabel)(props.name, props.label),
|
|
1474
3059
|
(0, plgg_view_1.select)([
|
|
1475
3060
|
(0, plgg_view_1.id_)(props.name),
|
|
1476
3061
|
(0, plgg_view_1.name_)(props.name),
|
|
1477
3062
|
...(0, controlParts_1.errorAria)(props.name, props.error),
|
|
1478
3063
|
...(0, plgg_view_1.disabled_)(props.disabled),
|
|
1479
|
-
(0, styleEntry_1.style_)(
|
|
3064
|
+
(0, styleEntry_1.style_)(classHooks_1.inputClass, interaction_1.focusRing),
|
|
1480
3065
|
(0, plgg_view_1.onChange)(props.onChange),
|
|
1481
3066
|
], props.options.map((o) => (0, plgg_view_1.option)([
|
|
1482
3067
|
(0, plgg_view_1.attr)("value", o.value),
|
|
@@ -1496,9 +3081,9 @@ exports.checkbox = void 0;
|
|
|
1496
3081
|
const plgg_view_1 = require("plgg-view");
|
|
1497
3082
|
const styleEntry_1 = require("src/styleEntry.ts");
|
|
1498
3083
|
const interaction_1 = require("src/Component/model/interaction.ts");
|
|
1499
|
-
const
|
|
3084
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
1500
3085
|
const checkbox = (props) => (0, plgg_view_1.slot)([
|
|
1501
|
-
(0, plgg_view_1.attr)("class", `${
|
|
3086
|
+
(0, plgg_view_1.attr)("class", `${classHooks_1.fieldClass} ${classHooks_1.checkClass}`),
|
|
1502
3087
|
], [
|
|
1503
3088
|
(0, plgg_view_1.input)([
|
|
1504
3089
|
(0, plgg_view_1.id_)(props.name),
|
|
@@ -1506,18 +3091,108 @@ const checkbox = (props) => (0, plgg_view_1.slot)([
|
|
|
1506
3091
|
(0, plgg_view_1.type_)("checkbox"),
|
|
1507
3092
|
...(0, plgg_view_1.checked_)(props.checked),
|
|
1508
3093
|
...(0, plgg_view_1.disabled_)(props.disabled),
|
|
1509
|
-
(0, styleEntry_1.style_)(
|
|
1510
|
-
? [
|
|
3094
|
+
(0, styleEntry_1.style_)(classHooks_1.checkboxClass, interaction_1.focusRing, ...(props.disabled
|
|
3095
|
+
? [classHooks_1.disabledClass]
|
|
1511
3096
|
: [])),
|
|
1512
3097
|
(0, plgg_view_1.onChange)(() => props.onToggle),
|
|
1513
3098
|
], []),
|
|
1514
3099
|
(0, plgg_view_1.label)([
|
|
1515
3100
|
(0, plgg_view_1.for_)(props.name),
|
|
1516
|
-
(0, plgg_view_1.attr)("class",
|
|
3101
|
+
(0, plgg_view_1.attr)("class", classHooks_1.checkLabelClass),
|
|
1517
3102
|
], [(0, plgg_view_1.text)(props.label)]),
|
|
1518
3103
|
]);
|
|
1519
3104
|
exports.checkbox = checkbox;
|
|
1520
3105
|
|
|
3106
|
+
},
|
|
3107
|
+
"src/Component/usecase/declaredForm.ts": function (module, exports, require) {
|
|
3108
|
+
"use strict";
|
|
3109
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3110
|
+
exports.declaredForm = exports.fieldControl = void 0;
|
|
3111
|
+
const formView_1 = require("src/Form/usecase/formView.ts");
|
|
3112
|
+
const textInput_1 = require("src/Component/usecase/textInput.ts");
|
|
3113
|
+
const textArea_1 = require("src/Component/usecase/textArea.ts");
|
|
3114
|
+
const selectInput_1 = require("src/Component/usecase/selectInput.ts");
|
|
3115
|
+
const checkbox_1 = require("src/Component/usecase/checkbox.ts");
|
|
3116
|
+
const fieldControl = (field, state) => {
|
|
3117
|
+
const control = field.control;
|
|
3118
|
+
switch (control.kind) {
|
|
3119
|
+
case "text":
|
|
3120
|
+
return (0, textInput_1.textInput)({
|
|
3121
|
+
name: field.name,
|
|
3122
|
+
label: field.label,
|
|
3123
|
+
value: state.value,
|
|
3124
|
+
placeholder: control.placeholder,
|
|
3125
|
+
error: state.error,
|
|
3126
|
+
disabled: state.disabled,
|
|
3127
|
+
onInput: control.onInput,
|
|
3128
|
+
});
|
|
3129
|
+
case "textarea":
|
|
3130
|
+
return (0, textArea_1.textArea)({
|
|
3131
|
+
name: field.name,
|
|
3132
|
+
label: field.label,
|
|
3133
|
+
value: state.value,
|
|
3134
|
+
placeholder: control.placeholder,
|
|
3135
|
+
error: state.error,
|
|
3136
|
+
disabled: state.disabled,
|
|
3137
|
+
onInput: control.onInput,
|
|
3138
|
+
});
|
|
3139
|
+
case "select":
|
|
3140
|
+
return (0, selectInput_1.selectInput)({
|
|
3141
|
+
name: field.name,
|
|
3142
|
+
label: field.label,
|
|
3143
|
+
value: state.value,
|
|
3144
|
+
options: control.options,
|
|
3145
|
+
error: state.error,
|
|
3146
|
+
disabled: state.disabled,
|
|
3147
|
+
onChange: control.onChange,
|
|
3148
|
+
});
|
|
3149
|
+
case "checkbox":
|
|
3150
|
+
return (0, checkbox_1.checkbox)({
|
|
3151
|
+
name: field.name,
|
|
3152
|
+
label: field.label,
|
|
3153
|
+
checked: state.value.length > 0,
|
|
3154
|
+
disabled: state.disabled,
|
|
3155
|
+
onToggle: control.onToggle,
|
|
3156
|
+
});
|
|
3157
|
+
}
|
|
3158
|
+
};
|
|
3159
|
+
exports.fieldControl = fieldControl;
|
|
3160
|
+
const declaredForm = (props) => (0, formView_1.formView)({
|
|
3161
|
+
fields: props.fields.map((field) => (0, exports.fieldControl)(field, props.stateOf(field.name))),
|
|
3162
|
+
submitLabel: props.submitLabel,
|
|
3163
|
+
submitting: props.submitting,
|
|
3164
|
+
onSubmit: props.onSubmit,
|
|
3165
|
+
});
|
|
3166
|
+
exports.declaredForm = declaredForm;
|
|
3167
|
+
|
|
3168
|
+
},
|
|
3169
|
+
"src/Form/usecase/formView.ts": function (module, exports, require) {
|
|
3170
|
+
"use strict";
|
|
3171
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3172
|
+
exports.formView = void 0;
|
|
3173
|
+
const plgg_view_1 = require("plgg-view");
|
|
3174
|
+
const styleEntry_1 = require("src/styleEntry.ts");
|
|
3175
|
+
const interaction_1 = require("src/Component/model/interaction.ts");
|
|
3176
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
3177
|
+
const formView = (props) => (0, plgg_view_1.form)([
|
|
3178
|
+
(0, plgg_view_1.onSubmit)(props.onSubmit),
|
|
3179
|
+
(0, plgg_view_1.attr)("class", classHooks_1.formClass),
|
|
3180
|
+
], [
|
|
3181
|
+
...props.fields,
|
|
3182
|
+
(0, plgg_view_1.button)([
|
|
3183
|
+
(0, plgg_view_1.type_)("submit"),
|
|
3184
|
+
...(0, plgg_view_1.disabled_)(props.submitting),
|
|
3185
|
+
(0, styleEntry_1.style_)(`${classHooks_1.btnClass} ${classHooks_1.btnPrimaryClass}`, interaction_1.focusRing, ...(props.submitting
|
|
3186
|
+
? [classHooks_1.disabledClass]
|
|
3187
|
+
: [interaction_1.hoverDim])),
|
|
3188
|
+
], [
|
|
3189
|
+
(0, plgg_view_1.text)(props.submitting
|
|
3190
|
+
? "Submitting…"
|
|
3191
|
+
: props.submitLabel),
|
|
3192
|
+
]),
|
|
3193
|
+
]);
|
|
3194
|
+
exports.formView = formView;
|
|
3195
|
+
|
|
1521
3196
|
},
|
|
1522
3197
|
"src/Component/usecase/confirmDialog.ts": function (module, exports, require) {
|
|
1523
3198
|
"use strict";
|
|
@@ -1526,34 +3201,32 @@ exports.confirmDialog = void 0;
|
|
|
1526
3201
|
const plgg_view_1 = require("plgg-view");
|
|
1527
3202
|
const styleEntry_1 = require("src/styleEntry.ts");
|
|
1528
3203
|
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",
|
|
3204
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
3205
|
+
const TITLE_ID = classHooks_1.dialogTitleClass;
|
|
3206
|
+
const confirmDialog = (props) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class", classHooks_1.modalClass)], [
|
|
1532
3207
|
(0, plgg_view_1.slot)([
|
|
1533
3208
|
(0, plgg_view_1.key)("backdrop"),
|
|
1534
|
-
(0, plgg_view_1.attr)("class",
|
|
3209
|
+
(0, plgg_view_1.attr)("class", classHooks_1.backdropClass),
|
|
1535
3210
|
(0, plgg_view_1.onClick)(props.onCancel),
|
|
1536
3211
|
], []),
|
|
1537
3212
|
(0, plgg_view_1.slot)([
|
|
1538
3213
|
(0, plgg_view_1.key)("dialog"),
|
|
1539
|
-
(0, plgg_view_1.attr)("class",
|
|
3214
|
+
(0, plgg_view_1.attr)("class", classHooks_1.dialogClass),
|
|
1540
3215
|
(0, plgg_view_1.attr)("role", "dialog"),
|
|
1541
3216
|
(0, plgg_view_1.attr)("aria-modal", "true"),
|
|
1542
3217
|
(0, plgg_view_1.attr)("aria-labelledby", TITLE_ID),
|
|
1543
3218
|
], [
|
|
1544
3219
|
(0, plgg_view_1.h2)([(0, plgg_view_1.id_)(TITLE_ID)], [(0, plgg_view_1.text)(props.title)]),
|
|
1545
3220
|
(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
|
-
], [
|
|
3221
|
+
(0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class", classHooks_1.dialogActionsClass)], [
|
|
1549
3222
|
(0, plgg_view_1.button)([
|
|
1550
|
-
(0, styleEntry_1.style_)(
|
|
3223
|
+
(0, styleEntry_1.style_)(classHooks_1.btnClass, interaction_1.focusRing),
|
|
1551
3224
|
(0, plgg_view_1.onClick)(props.onCancel),
|
|
1552
3225
|
], [(0, plgg_view_1.text)(props.cancelLabel)]),
|
|
1553
3226
|
(0, plgg_view_1.button)([
|
|
1554
3227
|
(0, styleEntry_1.style_)(props.destructive
|
|
1555
|
-
? `${
|
|
1556
|
-
:
|
|
3228
|
+
? `${classHooks_1.btnClass} ${classHooks_1.btnDangerClass}`
|
|
3229
|
+
: classHooks_1.btnClass, interaction_1.focusRing),
|
|
1557
3230
|
(0, plgg_view_1.onClick)(props.onConfirm),
|
|
1558
3231
|
], [(0, plgg_view_1.text)(props.confirmLabel)]),
|
|
1559
3232
|
]),
|
|
@@ -1569,7 +3242,7 @@ exports.toaster = exports.toast = exports.tones = void 0;
|
|
|
1569
3242
|
const plgg_view_1 = require("plgg-view");
|
|
1570
3243
|
const styleEntry_1 = require("src/styleEntry.ts");
|
|
1571
3244
|
const interaction_1 = require("src/Component/model/interaction.ts");
|
|
1572
|
-
const
|
|
3245
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
1573
3246
|
exports.tones = [
|
|
1574
3247
|
"success",
|
|
1575
3248
|
"danger",
|
|
@@ -1578,7 +3251,7 @@ exports.tones = [
|
|
|
1578
3251
|
];
|
|
1579
3252
|
const toast = (props) => (0, plgg_view_1.slot)([
|
|
1580
3253
|
(0, plgg_view_1.key)(props.id),
|
|
1581
|
-
(0, plgg_view_1.attr)("class", `${
|
|
3254
|
+
(0, plgg_view_1.attr)("class", `${classHooks_1.toastClass} ${(0, classHooks_1.toastToneClass)(props.tone)}`),
|
|
1582
3255
|
(0, plgg_view_1.attr)("role", "status"),
|
|
1583
3256
|
(0, plgg_view_1.attr)("aria-live", props.tone === "danger"
|
|
1584
3257
|
? "assertive"
|
|
@@ -1587,17 +3260,90 @@ const toast = (props) => (0, plgg_view_1.slot)([
|
|
|
1587
3260
|
(0, plgg_view_1.span)([], [(0, plgg_view_1.text)(props.message)]),
|
|
1588
3261
|
(0, plgg_view_1.button)([
|
|
1589
3262
|
(0, plgg_view_1.attr)("aria-label", "Dismiss"),
|
|
1590
|
-
(0, styleEntry_1.style_)(
|
|
3263
|
+
(0, styleEntry_1.style_)(classHooks_1.toastCloseClass, interaction_1.focusRing),
|
|
1591
3264
|
(0, plgg_view_1.onClick)(props.onDismiss),
|
|
1592
3265
|
], [(0, plgg_view_1.text)("×")]),
|
|
1593
3266
|
]);
|
|
1594
3267
|
exports.toast = toast;
|
|
1595
3268
|
const toaster = (toasts) => (0, plgg_view_1.slot)([
|
|
1596
|
-
(0, plgg_view_1.attr)("class",
|
|
3269
|
+
(0, plgg_view_1.attr)("class", classHooks_1.toasterClass),
|
|
1597
3270
|
(0, plgg_view_1.attr)("aria-live", "polite"),
|
|
1598
3271
|
], toasts.map((t) => (0, exports.toast)(t)));
|
|
1599
3272
|
exports.toaster = toaster;
|
|
1600
3273
|
|
|
3274
|
+
},
|
|
3275
|
+
"src/Component/usecase/properties.ts": function (module, exports, require) {
|
|
3276
|
+
"use strict";
|
|
3277
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3278
|
+
exports.toggle = exports.entry = exports.choice = exports.propertyRow = exports.propertyList = void 0;
|
|
3279
|
+
const plgg_1 = require("plgg");
|
|
3280
|
+
const plgg_view_1 = require("plgg-view");
|
|
3281
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
3282
|
+
const propertyList = (label, rows) => (0, plgg_view_1.el)("div", [
|
|
3283
|
+
(0, plgg_view_1.class_)(classHooks_1.propsClass),
|
|
3284
|
+
(0, plgg_view_1.attr)("role", "group"),
|
|
3285
|
+
(0, plgg_view_1.attr)("aria-label", label),
|
|
3286
|
+
], rows);
|
|
3287
|
+
exports.propertyList = propertyList;
|
|
3288
|
+
const propertyRow = (name, label, control) => (0, plgg_view_1.el)("div", [(0, plgg_view_1.class_)(classHooks_1.propClass)], [
|
|
3289
|
+
(0, plgg_view_1.el)("label", [
|
|
3290
|
+
(0, plgg_view_1.class_)(classHooks_1.propLabelClass),
|
|
3291
|
+
(0, plgg_view_1.attr)("for", name),
|
|
3292
|
+
], [(0, plgg_view_1.text)(label)]),
|
|
3293
|
+
(0, plgg_view_1.el)("div", [(0, plgg_view_1.class_)(classHooks_1.propControlClass)], [control]),
|
|
3294
|
+
]);
|
|
3295
|
+
exports.propertyRow = propertyRow;
|
|
3296
|
+
const off = (disabled) => disabled ? [(0, plgg_view_1.attr)("disabled", "")] : [];
|
|
3297
|
+
const choice = (props) => (0, plgg_view_1.el)("select", [
|
|
3298
|
+
(0, plgg_view_1.attr)("id", props.name),
|
|
3299
|
+
(0, plgg_view_1.attr)("name", props.name),
|
|
3300
|
+
(0, plgg_view_1.class_)(classHooks_1.inputClass),
|
|
3301
|
+
...off(props.disabled),
|
|
3302
|
+
(0, plgg_view_1.onChange)(props.onChange),
|
|
3303
|
+
], props.options.map((o) => (0, plgg_view_1.el)("option", o.value === props.value
|
|
3304
|
+
? [
|
|
3305
|
+
(0, plgg_view_1.attr)("value", o.value),
|
|
3306
|
+
(0, plgg_view_1.attr)("selected", ""),
|
|
3307
|
+
]
|
|
3308
|
+
: [(0, plgg_view_1.attr)("value", o.value)], [(0, plgg_view_1.text)(o.label)])));
|
|
3309
|
+
exports.choice = choice;
|
|
3310
|
+
const entry = (props) => (0, plgg_view_1.el)("input", [
|
|
3311
|
+
(0, plgg_view_1.attr)("id", props.name),
|
|
3312
|
+
(0, plgg_view_1.attr)("name", props.name),
|
|
3313
|
+
(0, plgg_view_1.attr)("type", "text"),
|
|
3314
|
+
(0, plgg_view_1.attr)("value", props.value),
|
|
3315
|
+
(0, plgg_view_1.class_)(classHooks_1.inputClass),
|
|
3316
|
+
...(props.numeric
|
|
3317
|
+
? [(0, plgg_view_1.attr)("inputmode", "numeric")]
|
|
3318
|
+
: []),
|
|
3319
|
+
...(0, plgg_1.matchOption)(() => [], (hint) => [
|
|
3320
|
+
(0, plgg_view_1.attr)("placeholder", hint),
|
|
3321
|
+
])(props.placeholder),
|
|
3322
|
+
...off(props.disabled),
|
|
3323
|
+
(0, plgg_view_1.onInput)(props.onInput),
|
|
3324
|
+
], []);
|
|
3325
|
+
exports.entry = entry;
|
|
3326
|
+
const toggle = (props) => (0, plgg_view_1.el)("button", [
|
|
3327
|
+
(0, plgg_view_1.attr)("type", "button"),
|
|
3328
|
+
(0, plgg_view_1.attr)("id", props.name),
|
|
3329
|
+
(0, plgg_view_1.attr)("role", "switch"),
|
|
3330
|
+
(0, plgg_view_1.attr)("aria-checked", props.on ? "true" : "false"),
|
|
3331
|
+
(0, plgg_view_1.class_)(classHooks_1.switchClass),
|
|
3332
|
+
...(props.disabled
|
|
3333
|
+
? [(0, plgg_view_1.attr)("disabled", "")]
|
|
3334
|
+
: [(0, plgg_view_1.onClick)(props.onToggle)]),
|
|
3335
|
+
], [
|
|
3336
|
+
(0, plgg_view_1.el)("span", [(0, plgg_view_1.class_)(classHooks_1.switchTrackClass)], [
|
|
3337
|
+
(0, plgg_view_1.el)("span", [(0, plgg_view_1.class_)(classHooks_1.switchThumbClass)], []),
|
|
3338
|
+
]),
|
|
3339
|
+
(0, plgg_view_1.el)("span", [(0, plgg_view_1.class_)(classHooks_1.switchLabelClass)], [
|
|
3340
|
+
(0, plgg_view_1.text)(props.on
|
|
3341
|
+
? props.onLabel
|
|
3342
|
+
: props.offLabel),
|
|
3343
|
+
]),
|
|
3344
|
+
]);
|
|
3345
|
+
exports.toggle = toggle;
|
|
3346
|
+
|
|
1601
3347
|
},
|
|
1602
3348
|
"src/Form/index.ts": function (module, exports, require) {
|
|
1603
3349
|
"use strict";
|
|
@@ -1667,39 +3413,11 @@ exports.parseForm = parseForm;
|
|
|
1667
3413
|
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
3414
|
exports.errorFor = errorFor;
|
|
1669
3415
|
|
|
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
3416
|
},
|
|
1699
3417
|
"src/Render/index.ts": function (module, exports, require) {
|
|
1700
3418
|
"use strict";
|
|
1701
3419
|
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;
|
|
3420
|
+
exports.advanceColumns = exports.renderMode = exports.singleColumn = exports.crumbsOf = exports.multiColumnWith = exports.multiColumn = exports.currentScreen = exports.toggleMode = exports.modes = void 0;
|
|
1703
3421
|
var mode_1 = require("src/Render/model/mode.ts");
|
|
1704
3422
|
Object.defineProperty(exports, "modes", { enumerable: true, get: function () { return mode_1.modes; } });
|
|
1705
3423
|
Object.defineProperty(exports, "toggleMode", { enumerable: true, get: function () { return mode_1.toggleMode; } });
|
|
@@ -1713,6 +3431,8 @@ var singleColumn_1 = require("src/Render/usecase/singleColumn.ts");
|
|
|
1713
3431
|
Object.defineProperty(exports, "singleColumn", { enumerable: true, get: function () { return singleColumn_1.singleColumn; } });
|
|
1714
3432
|
var renderMode_1 = require("src/Render/usecase/renderMode.ts");
|
|
1715
3433
|
Object.defineProperty(exports, "renderMode", { enumerable: true, get: function () { return renderMode_1.renderMode; } });
|
|
3434
|
+
var advanceColumns_1 = require("src/Render/usecase/advanceColumns.ts");
|
|
3435
|
+
Object.defineProperty(exports, "advanceColumns", { enumerable: true, get: function () { return advanceColumns_1.advanceColumns; } });
|
|
1716
3436
|
|
|
1717
3437
|
},
|
|
1718
3438
|
"src/Render/model/mode.ts": function (module, exports, require) {
|
|
@@ -1749,13 +3469,13 @@ const combinators_1 = require("src/Layout/usecase/combinators.ts");
|
|
|
1749
3469
|
const breadcrumb_1 = require("src/Component/usecase/breadcrumb.ts");
|
|
1750
3470
|
const colHead_1 = require("src/Component/usecase/colHead.ts");
|
|
1751
3471
|
const Scene_1 = require("src/Schedule/model/Scene.ts");
|
|
1752
|
-
const
|
|
3472
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
1753
3473
|
const parts_1 = require("src/Render/usecase/parts.ts");
|
|
1754
3474
|
const multiColumn = (scene) => (0, exports.multiColumnWith)(scene, {
|
|
1755
3475
|
mapMsg: (msg) => msg,
|
|
1756
3476
|
});
|
|
1757
3477
|
exports.multiColumn = multiColumn;
|
|
1758
|
-
const multiColumnWith = (scene, options) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class",
|
|
3478
|
+
const multiColumnWith = (scene, options) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class", classHooks_1.schedulerClass)], [
|
|
1759
3479
|
...(options.omitBreadcrumb === true
|
|
1760
3480
|
? []
|
|
1761
3481
|
: [(0, breadcrumb_1.breadcrumb)((0, exports.crumbsOf)(scene))]),
|
|
@@ -1801,7 +3521,7 @@ const crumbsOf = (scene) => scene.levels.map((level, i) => ({
|
|
|
1801
3521
|
}));
|
|
1802
3522
|
exports.crumbsOf = crumbsOf;
|
|
1803
3523
|
const detailBody = (collection, detailRow, fields, actions) => (0, plgg_1.matchOption)(() => [
|
|
1804
|
-
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class",
|
|
3524
|
+
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class", classHooks_1.hintClass)], [(0, plgg_view_1.text)("Not found")]),
|
|
1805
3525
|
], (r) => [
|
|
1806
3526
|
(0, parts_1.detailFields)(fields),
|
|
1807
3527
|
...(0, parts_1.actionRow)(collection, (0, plgg_1.some)(r.id), actions),
|
|
@@ -1818,11 +3538,9 @@ const listActions = (collection, options) => {
|
|
|
1818
3538
|
return links.length === 0
|
|
1819
3539
|
? []
|
|
1820
3540
|
: [
|
|
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)([
|
|
3541
|
+
(0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class", classHooks_1.listActionsClass)], links.map((link) => (0, plgg_view_1.a)([
|
|
1824
3542
|
(0, plgg_view_1.href)(link.href),
|
|
1825
|
-
(0, plgg_view_1.attr)("class",
|
|
3543
|
+
(0, plgg_view_1.attr)("class", classHooks_1.listActionClass),
|
|
1826
3544
|
...(link.active
|
|
1827
3545
|
? [
|
|
1828
3546
|
(0, plgg_view_1.attr)("aria-current", "page"),
|
|
@@ -1841,9 +3559,7 @@ const columnFor = (level, options) => (0, plgg_1.match)(level)([
|
|
|
1841
3559
|
close: (0, plgg_1.none)(),
|
|
1842
3560
|
links: [],
|
|
1843
3561
|
}),
|
|
1844
|
-
(0, plgg_view_1.slot)([
|
|
1845
|
-
(0, styleEntry_1.style_)(`${identity_1.cssPrefix}-menu-body`),
|
|
1846
|
-
], [
|
|
3562
|
+
(0, plgg_view_1.slot)([(0, styleEntry_1.style_)(classHooks_1.menuBodyClass)], [
|
|
1847
3563
|
mapScheduler(options)((0, parts_1.menuNav)(content.entries)),
|
|
1848
3564
|
]),
|
|
1849
3565
|
]),
|
|
@@ -1954,7 +3670,7 @@ const plgg_view_1 = require("plgg-view");
|
|
|
1954
3670
|
const styleEntry_1 = require("src/styleEntry.ts");
|
|
1955
3671
|
const navTree_1 = require("src/Component/usecase/navTree.ts");
|
|
1956
3672
|
const interaction_1 = require("src/Component/model/interaction.ts");
|
|
1957
|
-
const
|
|
3673
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
1958
3674
|
const confirmDialog_1 = require("src/Component/usecase/confirmDialog.ts");
|
|
1959
3675
|
const Msg_1 = require("src/Schedule/model/Msg.ts");
|
|
1960
3676
|
const Row_1 = require("src/Declare/model/Row.ts");
|
|
@@ -1975,14 +3691,14 @@ exports.confirmOverlay = confirmOverlay;
|
|
|
1975
3691
|
const actionRow = (collection, target, actions) => actions.length === 0
|
|
1976
3692
|
? []
|
|
1977
3693
|
: [
|
|
1978
|
-
(0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class",
|
|
1979
|
-
(0, styleEntry_1.style_)(
|
|
3694
|
+
(0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class", classHooks_1.actionsClass)], actions.map((ab) => (0, plgg_view_1.button)([
|
|
3695
|
+
(0, styleEntry_1.style_)(classHooks_1.btnClass, interaction_1.focusRing),
|
|
1980
3696
|
(0, plgg_view_1.onClick)((0, Msg_1.requestAction)(collection, ab.id, target)),
|
|
1981
3697
|
], [(0, plgg_view_1.text)(ab.label)]))),
|
|
1982
3698
|
];
|
|
1983
3699
|
exports.actionRow = actionRow;
|
|
1984
3700
|
const choiceSelect = (c) => (0, plgg_view_1.select)([
|
|
1985
|
-
(0, plgg_view_1.attr)("class",
|
|
3701
|
+
(0, plgg_view_1.attr)("class", classHooks_1.queryChoiceClass),
|
|
1986
3702
|
(0, plgg_view_1.attr)("aria-label", c.label),
|
|
1987
3703
|
(0, plgg_view_1.onChange)((v) => (0, Msg_1.queryChoiceInput)(c.id, v)),
|
|
1988
3704
|
], [
|
|
@@ -2002,7 +3718,7 @@ const choiceSelect = (c) => (0, plgg_view_1.select)([
|
|
|
2002
3718
|
const queryField = (q) => (0, plgg_1.matchOption)(() => [], (state) => [
|
|
2003
3719
|
(0, plgg_view_1.input)([
|
|
2004
3720
|
(0, plgg_view_1.attr)("type", "search"),
|
|
2005
|
-
(0, plgg_view_1.attr)("class",
|
|
3721
|
+
(0, plgg_view_1.attr)("class", classHooks_1.queryClass),
|
|
2006
3722
|
(0, plgg_view_1.attr)("value", state.text),
|
|
2007
3723
|
(0, plgg_view_1.attr)("placeholder", state.placeholder),
|
|
2008
3724
|
(0, plgg_view_1.onInput)((v) => (0, Msg_1.queryInput)(v)),
|
|
@@ -2010,31 +3726,29 @@ const queryField = (q) => (0, plgg_1.matchOption)(() => [], (state) => [
|
|
|
2010
3726
|
...state.choices.map(choiceSelect),
|
|
2011
3727
|
])(q);
|
|
2012
3728
|
exports.queryField = queryField;
|
|
2013
|
-
const rowItem = (r) => (0, plgg_view_1.li)([(0, plgg_view_1.attr)("class",
|
|
3729
|
+
const rowItem = (r) => (0, plgg_view_1.li)([(0, plgg_view_1.attr)("class", classHooks_1.listItemClass)], [
|
|
2014
3730
|
(0, plgg_view_1.a)([
|
|
2015
3731
|
(0, plgg_view_1.href)(r.href),
|
|
2016
3732
|
...(r.active
|
|
2017
3733
|
? [(0, plgg_view_1.attr)("aria-current", "page")]
|
|
2018
3734
|
: []),
|
|
2019
|
-
(0, styleEntry_1.style_)(
|
|
3735
|
+
(0, styleEntry_1.style_)(classHooks_1.rowLinkClass, interaction_1.focusRing),
|
|
2020
3736
|
], [(0, plgg_view_1.text)(r.row.label)]),
|
|
2021
3737
|
]);
|
|
2022
3738
|
exports.rowItem = rowItem;
|
|
2023
|
-
const rowList = (rows) => (0, plgg_view_1.ul)([(0, styleEntry_1.style_)(
|
|
3739
|
+
const rowList = (rows) => (0, plgg_view_1.ul)([(0, styleEntry_1.style_)(classHooks_1.listClass)], rows.map(exports.rowItem));
|
|
2024
3740
|
exports.rowList = rowList;
|
|
2025
3741
|
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",
|
|
3742
|
+
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class", classHooks_1.tileLabelClass)], [(0, plgg_view_1.text)(t.label)]),
|
|
3743
|
+
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class", classHooks_1.tileCaptionClass)], [(0, plgg_view_1.text)(t.caption)]),
|
|
2028
3744
|
];
|
|
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)([
|
|
3745
|
+
const tileItem = (t) => (0, plgg_view_1.li)([(0, plgg_view_1.attr)("class", classHooks_1.tileClass)], [
|
|
3746
|
+
(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
3747
|
(0, plgg_view_1.href)(to),
|
|
2034
|
-
(0, styleEntry_1.style_)(
|
|
3748
|
+
(0, styleEntry_1.style_)(classHooks_1.tileLinkClass, interaction_1.focusRing),
|
|
2035
3749
|
], tileBody(t)))(t.href),
|
|
2036
3750
|
]);
|
|
2037
|
-
const tileGrid = (tiles) => (0, plgg_view_1.ul)([(0, styleEntry_1.style_)(
|
|
3751
|
+
const tileGrid = (tiles) => (0, plgg_view_1.ul)([(0, styleEntry_1.style_)(classHooks_1.boardClass)], tiles.map(tileItem));
|
|
2038
3752
|
exports.tileGrid = tileGrid;
|
|
2039
3753
|
const menuNav = (entries) => (0, navTree_1.navTree)(entries.map((e) => ({
|
|
2040
3754
|
label: e.label,
|
|
@@ -2048,12 +3762,12 @@ const activeEntry = (entries) => {
|
|
|
2048
3762
|
};
|
|
2049
3763
|
const loadingHint = (loading) => loading
|
|
2050
3764
|
? [
|
|
2051
|
-
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class",
|
|
3765
|
+
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class", classHooks_1.hintClass)], [(0, plgg_view_1.text)("Loading…")]),
|
|
2052
3766
|
]
|
|
2053
3767
|
: [];
|
|
2054
3768
|
exports.loadingHint = loadingHint;
|
|
2055
3769
|
const errorHint = (error) => (0, plgg_1.matchOption)(() => [], (e) => [
|
|
2056
|
-
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class",
|
|
3770
|
+
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class", classHooks_1.errorClass)], [(0, plgg_view_1.text)(`Failed: ${e}`)]),
|
|
2057
3771
|
])(error);
|
|
2058
3772
|
exports.errorHint = errorHint;
|
|
2059
3773
|
const valueNode = (value, refHref) => (0, plgg_1.match)(value)([
|
|
@@ -2061,49 +3775,39 @@ const valueNode = (value, refHref) => (0, plgg_1.match)(value)([
|
|
|
2061
3775
|
({ content }) => (0, plgg_view_1.text)(content),
|
|
2062
3776
|
], [
|
|
2063
3777
|
(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))]),
|
|
3778
|
+
() => (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
3779
|
], [
|
|
2068
3780
|
(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))]),
|
|
3781
|
+
() => (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
3782
|
], [
|
|
2073
3783
|
(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))]),
|
|
3784
|
+
() => (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
3785
|
], [
|
|
2078
3786
|
(0, Row_1.refValue$)(),
|
|
2079
3787
|
({ content }) => (0, plgg_1.matchOption)(() => (0, plgg_view_1.text)(content.label), (to) => (0, plgg_view_1.a)([
|
|
2080
3788
|
(0, plgg_view_1.href)(to),
|
|
2081
|
-
(0, styleEntry_1.style_)(
|
|
3789
|
+
(0, styleEntry_1.style_)(classHooks_1.fieldRefClass, interaction_1.focusRing),
|
|
2082
3790
|
], [(0, plgg_view_1.text)(content.label)]))(refHref),
|
|
2083
3791
|
], [
|
|
2084
3792
|
(0, Row_1.mediaValue$)(),
|
|
2085
3793
|
({ content }) => (0, plgg_view_1.img)([
|
|
2086
3794
|
(0, plgg_view_1.attr)("src", content.src),
|
|
2087
3795
|
(0, plgg_view_1.attr)("alt", content.alt),
|
|
2088
|
-
(0, plgg_view_1.attr)("class",
|
|
3796
|
+
(0, plgg_view_1.attr)("class", classHooks_1.fieldMediaClass),
|
|
2089
3797
|
], []),
|
|
2090
3798
|
]);
|
|
2091
|
-
const detailFields = (fields) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class",
|
|
3799
|
+
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
3800
|
? [valueNode(f.value, f.href)]
|
|
2093
3801
|
: [
|
|
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)]),
|
|
3802
|
+
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class", classHooks_1.fieldLabelClass)], [(0, plgg_view_1.text)(f.label)]),
|
|
3803
|
+
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class", classHooks_1.fieldValueClass)], [valueNode(f.value, f.href)]),
|
|
2100
3804
|
])));
|
|
2101
3805
|
exports.detailFields = detailFields;
|
|
2102
3806
|
const backControl = (back) => (0, plgg_1.matchOption)(() => [], (to) => [
|
|
2103
3807
|
(0, plgg_view_1.a)([
|
|
2104
3808
|
(0, plgg_view_1.href)(to),
|
|
2105
3809
|
(0, plgg_view_1.attr)("aria-label", "Back"),
|
|
2106
|
-
(0, styleEntry_1.style_)(
|
|
3810
|
+
(0, styleEntry_1.style_)(classHooks_1.backClass, interaction_1.focusRing),
|
|
2107
3811
|
], [(0, plgg_view_1.text)("← Back")]),
|
|
2108
3812
|
])(back);
|
|
2109
3813
|
exports.backControl = backControl;
|
|
@@ -2256,15 +3960,13 @@ const plgg_view_1 = require("plgg-view");
|
|
|
2256
3960
|
const combinators_1 = require("src/Layout/usecase/combinators.ts");
|
|
2257
3961
|
const typography_1 = require("src/Component/usecase/typography.ts");
|
|
2258
3962
|
const Scene_1 = require("src/Schedule/model/Scene.ts");
|
|
2259
|
-
const
|
|
3963
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
2260
3964
|
const screen_1 = require("src/Render/model/screen.ts");
|
|
2261
3965
|
const parts_1 = require("src/Render/usecase/parts.ts");
|
|
2262
|
-
const singleColumn = (scene) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class",
|
|
3966
|
+
const singleColumn = (scene) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class", classHooks_1.singleClass)], [
|
|
2263
3967
|
...(0, parts_1.confirmOverlay)(scene.confirm),
|
|
2264
3968
|
(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")]),
|
|
3969
|
+
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class", classHooks_1.hintClass)], [(0, plgg_view_1.text)("Nothing to show")]),
|
|
2268
3970
|
]), (screen) => screenView(screen))((0, screen_1.currentScreen)(scene)),
|
|
2269
3971
|
]);
|
|
2270
3972
|
exports.singleColumn = singleColumn;
|
|
@@ -2312,7 +4014,7 @@ const screenView = (screen) => (0, plgg_1.match)(screen)([
|
|
|
2312
4014
|
]);
|
|
2313
4015
|
const screenTitle = (title) => (0, typography_1.heading)(2, title);
|
|
2314
4016
|
const detailBody = (collection, detailRow, fields, actions) => (0, plgg_1.matchOption)(() => [
|
|
2315
|
-
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class",
|
|
4017
|
+
(0, plgg_view_1.span)([(0, plgg_view_1.attr)("class", classHooks_1.hintClass)], [(0, plgg_view_1.text)("Not found")]),
|
|
2316
4018
|
], (r) => [
|
|
2317
4019
|
(0, parts_1.detailFields)(fields),
|
|
2318
4020
|
...(0, parts_1.actionRow)(collection, (0, plgg_1.some)(r.id), actions),
|
|
@@ -2335,6 +4037,58 @@ const renderMode = (mode) => (scene) => {
|
|
|
2335
4037
|
};
|
|
2336
4038
|
exports.renderMode = renderMode;
|
|
2337
4039
|
|
|
4040
|
+
},
|
|
4041
|
+
"src/Render/usecase/advanceColumns.ts": function (module, exports, require) {
|
|
4042
|
+
"use strict";
|
|
4043
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4044
|
+
exports.advanceColumns = void 0;
|
|
4045
|
+
const client_1 = require("plgg-view/client");
|
|
4046
|
+
const breakpoint_1 = require("src/Style/model/breakpoint.ts");
|
|
4047
|
+
const advanceColumns = (theme) => (done) => (0, client_1.cmdEffect)(() => new Promise((resolve) => {
|
|
4048
|
+
const finish = () => resolve(done);
|
|
4049
|
+
if (typeof document === "undefined" ||
|
|
4050
|
+
typeof window === "undefined" ||
|
|
4051
|
+
typeof requestAnimationFrame ===
|
|
4052
|
+
"undefined") {
|
|
4053
|
+
return finish();
|
|
4054
|
+
}
|
|
4055
|
+
const p = theme.prefix;
|
|
4056
|
+
const scroll = () => {
|
|
4057
|
+
const row = document.querySelector(`.${p}-row`);
|
|
4058
|
+
if (row !== null) {
|
|
4059
|
+
const cols = Array.from(row.querySelectorAll(`.${p}-col`)).filter((c) => c.getBoundingClientRect()
|
|
4060
|
+
.width > 0);
|
|
4061
|
+
const last = cols[cols.length - 1];
|
|
4062
|
+
if (last !== undefined) {
|
|
4063
|
+
const strip = row.getBoundingClientRect();
|
|
4064
|
+
const col = last.getBoundingClientRect();
|
|
4065
|
+
if (row instanceof HTMLElement) {
|
|
4066
|
+
row.style.setProperty(`--${p}-runway-last`, `${Math.round(col.width)}px`);
|
|
4067
|
+
}
|
|
4068
|
+
const toLeftEdge = row.scrollLeft +
|
|
4069
|
+
(col.left - strip.left);
|
|
4070
|
+
const wide = window.matchMedia((0, breakpoint_1.minWidth)("snap")).matches;
|
|
4071
|
+
const inView = col.left >= strip.left - 1 &&
|
|
4072
|
+
col.right <= strip.right + 1;
|
|
4073
|
+
if (wide && inView) {
|
|
4074
|
+
return finish();
|
|
4075
|
+
}
|
|
4076
|
+
row.scrollTo({
|
|
4077
|
+
left: wide
|
|
4078
|
+
? toLeftEdge -
|
|
4079
|
+
(strip.width - col.width) /
|
|
4080
|
+
2
|
|
4081
|
+
: toLeftEdge,
|
|
4082
|
+
behavior: "smooth",
|
|
4083
|
+
});
|
|
4084
|
+
}
|
|
4085
|
+
}
|
|
4086
|
+
finish();
|
|
4087
|
+
};
|
|
4088
|
+
requestAnimationFrame(() => requestAnimationFrame(scroll));
|
|
4089
|
+
}));
|
|
4090
|
+
exports.advanceColumns = advanceColumns;
|
|
4091
|
+
|
|
2338
4092
|
},
|
|
2339
4093
|
"src/Declare/model/Source.ts": function (module, exports, require) {
|
|
2340
4094
|
"use strict";
|
|
@@ -4243,6 +5997,521 @@ const detectModelContext = (candidate) => {
|
|
|
4243
5997
|
};
|
|
4244
5998
|
exports.detectModelContext = detectModelContext;
|
|
4245
5999
|
|
|
6000
|
+
},
|
|
6001
|
+
"src/Shell/index.ts": function (module, exports, require) {
|
|
6002
|
+
"use strict";
|
|
6003
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6004
|
+
exports.asAppearance = exports.appearanceCss = exports.soft = exports.monochrome = exports.systemCss = exports.kitAppearanceCss = exports.kitSystemCss = exports.kitCss = exports.shell = void 0;
|
|
6005
|
+
var shell_1 = require("src/Shell/usecase/shell.ts");
|
|
6006
|
+
Object.defineProperty(exports, "shell", { enumerable: true, get: function () { return shell_1.shell; } });
|
|
6007
|
+
var kit_1 = require("src/Shell/usecase/kit.ts");
|
|
6008
|
+
Object.defineProperty(exports, "kitCss", { enumerable: true, get: function () { return kit_1.kitCss; } });
|
|
6009
|
+
Object.defineProperty(exports, "kitSystemCss", { enumerable: true, get: function () { return kit_1.kitSystemCss; } });
|
|
6010
|
+
Object.defineProperty(exports, "kitAppearanceCss", { enumerable: true, get: function () { return kit_1.kitAppearanceCss; } });
|
|
6011
|
+
var systemCss_1 = require("src/System/usecase/systemCss.ts");
|
|
6012
|
+
Object.defineProperty(exports, "systemCss", { enumerable: true, get: function () { return systemCss_1.systemCss; } });
|
|
6013
|
+
var appearance_1 = require("src/Appearance/model/appearance.ts");
|
|
6014
|
+
Object.defineProperty(exports, "monochrome", { enumerable: true, get: function () { return appearance_1.monochrome; } });
|
|
6015
|
+
Object.defineProperty(exports, "soft", { enumerable: true, get: function () { return appearance_1.soft; } });
|
|
6016
|
+
var appearanceCss_1 = require("src/Appearance/usecase/appearanceCss.ts");
|
|
6017
|
+
Object.defineProperty(exports, "appearanceCss", { enumerable: true, get: function () { return appearanceCss_1.appearanceCss; } });
|
|
6018
|
+
var asAppearance_1 = require("src/Appearance/usecase/asAppearance.ts");
|
|
6019
|
+
Object.defineProperty(exports, "asAppearance", { enumerable: true, get: function () { return asAppearance_1.asAppearance; } });
|
|
6020
|
+
|
|
6021
|
+
},
|
|
6022
|
+
"src/Shell/usecase/shell.ts": function (module, exports, require) {
|
|
6023
|
+
"use strict";
|
|
6024
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6025
|
+
exports.shell = void 0;
|
|
6026
|
+
const plgg_1 = require("plgg");
|
|
6027
|
+
const plgg_view_1 = require("plgg-view");
|
|
6028
|
+
const marker_1 = require("src/Navigate/model/marker.ts");
|
|
6029
|
+
const sidebarNav_1 = require("src/Component/usecase/sidebarNav.ts");
|
|
6030
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
6031
|
+
const plgg_2 = require("plgg");
|
|
6032
|
+
const head = (children) => (0, plgg_view_1.el)("header", [(0, plgg_view_1.class_)(classHooks_1.shellHeadClass)], children);
|
|
6033
|
+
const body = (children) => (0, plgg_view_1.el)("div", [(0, plgg_view_1.class_)(classHooks_1.shellBodyClass)], children);
|
|
6034
|
+
const page = (p) => (0, marker_1.documentColumn)(p.route, (0, plgg_2.none)(), p.wide
|
|
6035
|
+
? [classHooks_1.shellPageClass, classHooks_1.spanTwoClass]
|
|
6036
|
+
: [classHooks_1.shellPageClass], [
|
|
6037
|
+
head([
|
|
6038
|
+
(0, plgg_view_1.span)([(0, plgg_view_1.class_)(classHooks_1.shellTitleClass)], [(0, plgg_view_1.text)(p.title)]),
|
|
6039
|
+
...(0, plgg_1.matchOption)(() => [], (to) => [
|
|
6040
|
+
(0, plgg_view_1.a)([
|
|
6041
|
+
(0, plgg_view_1.href)(to),
|
|
6042
|
+
(0, plgg_view_1.class_)(classHooks_1.foldClass),
|
|
6043
|
+
(0, plgg_view_1.attr)("aria-label", "この列を閉じる"),
|
|
6044
|
+
], [(0, plgg_view_1.text)("×")]),
|
|
6045
|
+
])(p.close),
|
|
6046
|
+
]),
|
|
6047
|
+
body([
|
|
6048
|
+
(0, plgg_view_1.el)("main", [(0, plgg_view_1.class_)(classHooks_1.docClass)], p.body),
|
|
6049
|
+
]),
|
|
6050
|
+
]);
|
|
6051
|
+
const brandAttrs = (props, cls) => props.atHome
|
|
6052
|
+
? [
|
|
6053
|
+
(0, plgg_view_1.href)(props.home),
|
|
6054
|
+
(0, plgg_view_1.class_)(cls),
|
|
6055
|
+
(0, plgg_view_1.attr)("aria-current", "page"),
|
|
6056
|
+
]
|
|
6057
|
+
: [(0, plgg_view_1.href)(props.home), (0, plgg_view_1.class_)(cls)];
|
|
6058
|
+
const narrowChrome = (props) => (0, plgg_1.matchOption)(() => [
|
|
6059
|
+
(0, plgg_view_1.el)("input", [
|
|
6060
|
+
(0, plgg_view_1.class_)(classHooks_1.shellMenuClass),
|
|
6061
|
+
(0, plgg_view_1.attr)("type", "checkbox"),
|
|
6062
|
+
(0, plgg_view_1.attr)("id", classHooks_1.shellMenuId),
|
|
6063
|
+
(0, plgg_view_1.attr)("aria-hidden", "true"),
|
|
6064
|
+
], []),
|
|
6065
|
+
(0, plgg_view_1.el)("header", [(0, plgg_view_1.class_)(classHooks_1.shellBarClass)], [
|
|
6066
|
+
(0, plgg_view_1.el)("label", [
|
|
6067
|
+
(0, plgg_view_1.attr)("for", classHooks_1.shellMenuId),
|
|
6068
|
+
(0, plgg_view_1.class_)(classHooks_1.shellMenuButtonClass),
|
|
6069
|
+
(0, plgg_view_1.attr)("role", "button"),
|
|
6070
|
+
(0, plgg_view_1.attr)("aria-label", "メニュー"),
|
|
6071
|
+
], []),
|
|
6072
|
+
(0, plgg_view_1.a)(brandAttrs(props, classHooks_1.shellBarBrandClass), [(0, plgg_view_1.text)(props.brand)]),
|
|
6073
|
+
]),
|
|
6074
|
+
(0, plgg_view_1.el)("label", [
|
|
6075
|
+
(0, plgg_view_1.attr)("for", classHooks_1.shellMenuId),
|
|
6076
|
+
(0, plgg_view_1.class_)(classHooks_1.shellBackdropClass),
|
|
6077
|
+
(0, plgg_view_1.attr)("aria-hidden", "true"),
|
|
6078
|
+
], []),
|
|
6079
|
+
], (d) => [
|
|
6080
|
+
(0, plgg_view_1.el)("header", [(0, plgg_view_1.class_)(classHooks_1.shellBarClass)], [
|
|
6081
|
+
(0, plgg_view_1.button)([
|
|
6082
|
+
(0, plgg_view_1.attr)("type", "button"),
|
|
6083
|
+
(0, plgg_view_1.class_)(classHooks_1.shellMenuButtonClass),
|
|
6084
|
+
(0, plgg_view_1.attr)("aria-label", "メニュー"),
|
|
6085
|
+
(0, plgg_view_1.attr)("aria-expanded", d.open ? "true" : "false"),
|
|
6086
|
+
...d.toggle,
|
|
6087
|
+
], []),
|
|
6088
|
+
(0, plgg_view_1.a)(brandAttrs(props, classHooks_1.shellBarBrandClass), [(0, plgg_view_1.text)(props.brand)]),
|
|
6089
|
+
]),
|
|
6090
|
+
(0, plgg_view_1.el)("div", [
|
|
6091
|
+
(0, plgg_view_1.class_)(classHooks_1.shellBackdropClass),
|
|
6092
|
+
(0, plgg_view_1.attr)("aria-hidden", "true"),
|
|
6093
|
+
...d.toggle,
|
|
6094
|
+
], []),
|
|
6095
|
+
])(props.drawer);
|
|
6096
|
+
const drawerOpen = (props) => (0, plgg_1.matchOption)(() => false, (d) => d.open)(props.drawer);
|
|
6097
|
+
const shell = (props) => (0, plgg_view_1.el)("div", [
|
|
6098
|
+
(0, plgg_view_1.class_)(classHooks_1.shellClass),
|
|
6099
|
+
...(props.folded
|
|
6100
|
+
? [(0, plgg_view_1.attr)(classHooks_1.shellMinAttr, "")]
|
|
6101
|
+
: []),
|
|
6102
|
+
...(drawerOpen(props)
|
|
6103
|
+
? [(0, plgg_view_1.attr)(classHooks_1.shellOpenAttr, "")]
|
|
6104
|
+
: []),
|
|
6105
|
+
], [
|
|
6106
|
+
...narrowChrome(props),
|
|
6107
|
+
(0, marker_1.strip)([classHooks_1.shareClass], [
|
|
6108
|
+
(0, plgg_view_1.el)("div", [
|
|
6109
|
+
(0, plgg_view_1.class_)(classHooks_1.colClass + " " + classHooks_1.shellSideClass),
|
|
6110
|
+
], [
|
|
6111
|
+
head([
|
|
6112
|
+
(0, plgg_view_1.a)(brandAttrs(props, classHooks_1.shellBrandClass), [(0, plgg_view_1.text)(props.brand)]),
|
|
6113
|
+
(0, plgg_view_1.button)([
|
|
6114
|
+
(0, plgg_view_1.attr)("type", "button"),
|
|
6115
|
+
(0, plgg_view_1.class_)(classHooks_1.shellFoldClass),
|
|
6116
|
+
(0, plgg_view_1.attr)("aria-label", "サイドバーをたたむ"),
|
|
6117
|
+
(0, plgg_view_1.attr)("aria-expanded", props.folded
|
|
6118
|
+
? "false"
|
|
6119
|
+
: "true"),
|
|
6120
|
+
...props.fold,
|
|
6121
|
+
], [(0, plgg_view_1.span)([], [])]),
|
|
6122
|
+
]),
|
|
6123
|
+
body([(0, sidebarNav_1.sidebarNav)(props.nav)]),
|
|
6124
|
+
(0, plgg_view_1.el)("div", [(0, plgg_view_1.class_)(classHooks_1.shellFootClass)], props.foot),
|
|
6125
|
+
]),
|
|
6126
|
+
...props.pages.map(page),
|
|
6127
|
+
]),
|
|
6128
|
+
]);
|
|
6129
|
+
exports.shell = shell;
|
|
6130
|
+
|
|
6131
|
+
},
|
|
6132
|
+
"src/Shell/usecase/kit.ts": function (module, exports, require) {
|
|
6133
|
+
"use strict";
|
|
6134
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6135
|
+
exports.kitAppearanceCss = exports.kitSystemCss = exports.kitCss = void 0;
|
|
6136
|
+
const metricCss_1 = require("src/Style/usecase/metricCss.ts");
|
|
6137
|
+
const schemeCss_1 = require("src/Style/usecase/schemeCss.ts");
|
|
6138
|
+
const themeToggle_1 = require("src/Component/usecase/themeToggle.ts");
|
|
6139
|
+
const systemCss_1 = require("src/System/usecase/systemCss.ts");
|
|
6140
|
+
const appearance_1 = require("src/Appearance/model/appearance.ts");
|
|
6141
|
+
const appearanceCss_1 = require("src/Appearance/usecase/appearanceCss.ts");
|
|
6142
|
+
const kitCss = (theme, appearance = appearance_1.monochrome) => (0, exports.kitSystemCss)(theme) +
|
|
6143
|
+
(0, exports.kitAppearanceCss)(theme, appearance);
|
|
6144
|
+
exports.kitCss = kitCss;
|
|
6145
|
+
const kitSystemCss = (theme) => (0, metricCss_1.metricCss)(theme) + (0, systemCss_1.systemCss)(theme);
|
|
6146
|
+
exports.kitSystemCss = kitSystemCss;
|
|
6147
|
+
const kitAppearanceCss = (theme, appearance = appearance_1.monochrome) => (0, schemeCss_1.schemeCss)(theme) +
|
|
6148
|
+
themeToggle_1.themeToggleCss +
|
|
6149
|
+
(0, appearanceCss_1.appearanceCss)(theme)(appearance);
|
|
6150
|
+
exports.kitAppearanceCss = kitAppearanceCss;
|
|
6151
|
+
|
|
6152
|
+
},
|
|
6153
|
+
"src/System/usecase/systemCss.ts": function (module, exports, require) {
|
|
6154
|
+
"use strict";
|
|
6155
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6156
|
+
exports.systemCss = void 0;
|
|
6157
|
+
const metric_1 = require("src/Style/model/metric.ts");
|
|
6158
|
+
const zIndex_1 = require("src/Style/model/zIndex.ts");
|
|
6159
|
+
const breakpoint_1 = require("src/Style/model/breakpoint.ts");
|
|
6160
|
+
const shareCss_1 = require("src/Style/usecase/shareCss.ts");
|
|
6161
|
+
const systemCss = (theme) => {
|
|
6162
|
+
const p = theme.prefix;
|
|
6163
|
+
const mvar = (0, metric_1.metricVar)(theme);
|
|
6164
|
+
const inset = `--${p}-share-inset`;
|
|
6165
|
+
const min = `[data-${p}-shell-min]`;
|
|
6166
|
+
const M = `:is(${min} .${p}-shell,.${p}-shell${min})`;
|
|
6167
|
+
const side = `.${p}-shell-side`;
|
|
6168
|
+
const page = `.${p}-shell-page`;
|
|
6169
|
+
const group = `details.${p}-nav-group`;
|
|
6170
|
+
const car = `.${p}-carousel-prev,.${p}-carousel-next`;
|
|
6171
|
+
return (`
|
|
6172
|
+
.${p}-shell{position:relative;display:flex;flex-direction:column;height:100dvh;${inset}:${mvar("sidebar")}}
|
|
6173
|
+
.${p}-shell *{box-sizing:border-box}
|
|
6174
|
+
.${p}-shell .${p}-row{flex:1 1 auto;min-height:0;display:flex;align-items:stretch;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-padding-left:var(${inset})}
|
|
6175
|
+
.${p}-shell .${p}-col{flex:none;display:flex;flex-direction:column;min-height:0;overflow:hidden}
|
|
6176
|
+
.${p}-shell-head{flex:none;display:flex;align-items:center}
|
|
6177
|
+
.${p}-shell-title{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
6178
|
+
.${p}-shell-body{flex:1 1 auto;min-height:0;overflow:auto}
|
|
6179
|
+
${side}{width:var(${inset});position:sticky;left:0;z-index:3}
|
|
6180
|
+
.${p}-shell-brand{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
6181
|
+
.${p}-shell-fold{display:inline-flex;margin-left:auto;flex:none;align-items:center;justify-content:center;cursor:pointer}
|
|
6182
|
+
.${p}-shell-foot{flex:none;margin-top:auto;display:flex;align-items:center}
|
|
6183
|
+
@media ${(0, breakpoint_1.minWidth)("lg")}{
|
|
6184
|
+
${M}{${inset}:3rem}
|
|
6185
|
+
${M} ${side} .${p}-shell-brand,${M} ${side} .${p}-shell-body{display:none}
|
|
6186
|
+
${M} ${side} .${p}-shell-head{justify-content:center}
|
|
6187
|
+
${M} .${p}-shell-fold{margin:0}
|
|
6188
|
+
${M} .${p}-shell-foot{justify-content:center}
|
|
6189
|
+
}
|
|
6190
|
+
.${p}-shell-menu{display:none}
|
|
6191
|
+
.${p}-shell-bar{display:none;flex:none;align-items:center;z-index:${(0, zIndex_1.zValue)("chrome")}}
|
|
6192
|
+
.${p}-shell-menu-btn{display:inline-block;flex:none;width:22px;height:16px;cursor:pointer}
|
|
6193
|
+
.${p}-shell-bar-brand{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
6194
|
+
.${p}-shell-backdrop{display:none;position:fixed;inset:0;z-index:${(0, zIndex_1.zValue)("backdrop")}}
|
|
6195
|
+
@media ${(0, breakpoint_1.maxWidth)("lg")}{
|
|
6196
|
+
.${p}-shell{${inset}:0px}
|
|
6197
|
+
.${p}-shell-bar{display:flex}
|
|
6198
|
+
.${p}-shell-fold{display:none}
|
|
6199
|
+
${side}{position:fixed;top:0;left:0;z-index:${(0, zIndex_1.zValue)("overlay")};height:100dvh;width:17rem;max-width:82vw;transform:translateX(-100%)}
|
|
6200
|
+
.${p}-shell-menu:checked ~ .${p}-row ${side},.${p}-shell[data-${p}-shell-open] ${side}{transform:translateX(0)}
|
|
6201
|
+
.${p}-shell-menu:checked ~ .${p}-shell-backdrop,.${p}-shell[data-${p}-shell-open] .${p}-shell-backdrop{display:block}
|
|
6202
|
+
.${p}-shell .${p}-row{scroll-snap-type:x mandatory}
|
|
6203
|
+
${page}{scroll-snap-align:start;scroll-snap-stop:always}
|
|
6204
|
+
}
|
|
6205
|
+
.${p}-shell .${p}-fold{flex:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
|
|
6206
|
+
@keyframes ${p}-page-in{from{flex-grow:0;flex-basis:0;opacity:0}}
|
|
6207
|
+
@keyframes ${p}-page-out{to{flex-grow:0;flex-basis:0;opacity:0;border-right-width:0}}
|
|
6208
|
+
@keyframes ${p}-page-swap{from{opacity:0}}
|
|
6209
|
+
.${p}-shell ${page}${page}[data-${p}-leaving]{pointer-events:none}
|
|
6210
|
+
.${p}-doc{display:block;margin:0 auto;max-width:${mvar("measure")}}
|
|
6211
|
+
.${p}-span-2 .${p}-doc{max-width:none}
|
|
6212
|
+
.${p}-doc pre{overflow-x:auto}
|
|
6213
|
+
.${p}-doc table{display:block;overflow-x:auto}
|
|
6214
|
+
.${p}-doc img{max-width:100%}
|
|
6215
|
+
.${p}-nav{display:block}
|
|
6216
|
+
.${p}-nav-link,.${p}-nav-flat{display:block}
|
|
6217
|
+
.${p}-nav-numbered{counter-reset:sample}
|
|
6218
|
+
${group}{counter-reset:sample;interpolate-size:allow-keywords}
|
|
6219
|
+
${group} summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;user-select:none}
|
|
6220
|
+
${group} summary::-webkit-details-marker{display:none}
|
|
6221
|
+
${group}::details-content{block-size:0;overflow:clip}
|
|
6222
|
+
${group}[open]::details-content{block-size:auto}
|
|
6223
|
+
.${p}-nav-numbered .${p}-nav-link{counter-increment:sample}
|
|
6224
|
+
.${p}-nav-numbered .${p}-nav-link::before{content:counter(sample,decimal-leading-zero);font-variant-numeric:tabular-nums;margin-right:1rem}
|
|
6225
|
+
${car}{position:absolute;top:50%;z-index:${(0, zIndex_1.zValue)("chrome")};display:flex;align-items:center;justify-content:center;cursor:pointer}
|
|
6226
|
+
.${p}-carousel-prev[hidden],.${p}-carousel-next[hidden]{display:none}
|
|
6227
|
+
.${p}-carousel-prev{left:calc(var(${inset},0px) + .6rem)}
|
|
6228
|
+
.${p}-carousel-next{right:.6rem}
|
|
6229
|
+
.${p}-btn{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
|
|
6230
|
+
.${p}-btn:disabled,.${p}-disabled{cursor:not-allowed}
|
|
6231
|
+
.${p}-actions{display:flex;flex-wrap:wrap}
|
|
6232
|
+
.${p}-form{display:flex;flex-direction:column}
|
|
6233
|
+
.${p}-field{display:flex;flex-direction:column}
|
|
6234
|
+
.${p}-check{flex-direction:row;align-items:center}
|
|
6235
|
+
.${p}-prop{display:grid;grid-template-columns:minmax(5.5rem,2fr) minmax(0,3fr);align-items:center}
|
|
6236
|
+
.${p}-prop-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
6237
|
+
.${p}-prop-control{min-width:0;display:flex;align-items:center}
|
|
6238
|
+
.${p}-prop-control .${p}-input{flex:1 1 auto;width:100%;min-width:0}
|
|
6239
|
+
.${p}-switch{display:inline-flex;align-items:center;cursor:pointer}
|
|
6240
|
+
.${p}-switch:disabled{cursor:not-allowed}
|
|
6241
|
+
.${p}-switch-track{position:relative;display:block;flex:none;width:2.25rem;height:1.25rem}
|
|
6242
|
+
.${p}-switch-thumb{position:absolute;top:50%;left:.2rem;width:.75rem;height:.75rem;margin-top:-.375rem}
|
|
6243
|
+
.${p}-switch[aria-checked="true"] .${p}-switch-thumb{transform:translateX(1.05rem)}
|
|
6244
|
+
.${p}-modal{position:fixed;inset:0;z-index:${(0, zIndex_1.zValue)("backdrop")}}
|
|
6245
|
+
.${p}-backdrop{position:fixed;inset:0;z-index:${(0, zIndex_1.zValue)("backdrop")}}
|
|
6246
|
+
.${p}-dialog{position:fixed;z-index:${(0, zIndex_1.zValue)("overlay")};top:50%;left:50%;transform:translate(-50%,-50%);width:min(26rem,90vw)}
|
|
6247
|
+
.${p}-dialog-actions{display:flex;justify-content:flex-end}
|
|
6248
|
+
.${p}-toaster{position:fixed;right:1rem;bottom:1rem;z-index:${(0, zIndex_1.zValue)("overlay")};display:flex;flex-direction:column}
|
|
6249
|
+
.${p}-toast{display:flex;align-items:center}
|
|
6250
|
+
.${p}-toast-close{flex:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
|
|
6251
|
+
` + (0, shareCss_1.shareCss)(theme)(shareCss_1.shareOptions));
|
|
6252
|
+
};
|
|
6253
|
+
exports.systemCss = systemCss;
|
|
6254
|
+
|
|
6255
|
+
},
|
|
6256
|
+
"src/Appearance/model/appearance.ts": function (module, exports, require) {
|
|
6257
|
+
"use strict";
|
|
6258
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6259
|
+
exports.soft = exports.monochrome = void 0;
|
|
6260
|
+
exports.monochrome = {
|
|
6261
|
+
name: "monochrome",
|
|
6262
|
+
font: '"Inter","Noto Sans JP",system-ui,-apple-system,"Segoe UI","Hiragino Sans",sans-serif',
|
|
6263
|
+
mono: "ui-monospace,SFMono-Regular,Menlo,monospace",
|
|
6264
|
+
size: "15px",
|
|
6265
|
+
leading: "1.75",
|
|
6266
|
+
rule: "primary-border",
|
|
6267
|
+
hairline: "border",
|
|
6268
|
+
ruleWidth: "1px",
|
|
6269
|
+
radius: "0",
|
|
6270
|
+
current: {
|
|
6271
|
+
fill: "primary-base",
|
|
6272
|
+
ink: "surface",
|
|
6273
|
+
},
|
|
6274
|
+
hover: { fill: "surface-2", ink: "text" },
|
|
6275
|
+
press: { fill: "primary-base", ink: "surface" },
|
|
6276
|
+
head: "3rem",
|
|
6277
|
+
gutter: "1.25rem",
|
|
6278
|
+
page: "2rem 2.5rem 3rem",
|
|
6279
|
+
elevation: "none",
|
|
6280
|
+
quick: ".15s",
|
|
6281
|
+
arrive: ".34s",
|
|
6282
|
+
leave: ".26s",
|
|
6283
|
+
swap: ".18s",
|
|
6284
|
+
ease: "cubic-bezier(.2,.7,.2,1)",
|
|
6285
|
+
};
|
|
6286
|
+
exports.soft = {
|
|
6287
|
+
name: "soft",
|
|
6288
|
+
font: 'system-ui,-apple-system,"Segoe UI","Hiragino Sans",sans-serif',
|
|
6289
|
+
mono: "ui-monospace,SFMono-Regular,Menlo,monospace",
|
|
6290
|
+
size: "15px",
|
|
6291
|
+
leading: "1.7",
|
|
6292
|
+
rule: "border",
|
|
6293
|
+
hairline: "border",
|
|
6294
|
+
ruleWidth: "1px",
|
|
6295
|
+
radius: ".5rem",
|
|
6296
|
+
current: {
|
|
6297
|
+
fill: "primary-surface",
|
|
6298
|
+
ink: "primary-text",
|
|
6299
|
+
},
|
|
6300
|
+
hover: { fill: "surface-2", ink: "text" },
|
|
6301
|
+
press: { fill: "surface-2", ink: "text" },
|
|
6302
|
+
head: "3.25rem",
|
|
6303
|
+
gutter: "1rem",
|
|
6304
|
+
page: "1.75rem 2rem 3rem",
|
|
6305
|
+
elevation: "0 8px 28px rgba(0,0,0,.16)",
|
|
6306
|
+
quick: ".2s",
|
|
6307
|
+
arrive: ".42s",
|
|
6308
|
+
leave: ".3s",
|
|
6309
|
+
swap: ".24s",
|
|
6310
|
+
ease: "cubic-bezier(.22,1,.36,1)",
|
|
6311
|
+
};
|
|
6312
|
+
|
|
6313
|
+
},
|
|
6314
|
+
"src/Appearance/usecase/appearanceCss.ts": function (module, exports, require) {
|
|
6315
|
+
"use strict";
|
|
6316
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6317
|
+
exports.appearanceCss = void 0;
|
|
6318
|
+
const token_1 = require("src/Style/model/token.ts");
|
|
6319
|
+
const themeToggle_1 = require("src/Component/usecase/themeToggle.ts");
|
|
6320
|
+
const appearanceCss = (theme) => (a) => {
|
|
6321
|
+
const p = theme.prefix;
|
|
6322
|
+
const cvar = (0, token_1.colorVar)(theme);
|
|
6323
|
+
const text = cvar("text");
|
|
6324
|
+
const surface = cvar("surface");
|
|
6325
|
+
const muted = cvar("muted");
|
|
6326
|
+
const danger = cvar("danger-base");
|
|
6327
|
+
const rule = `${a.ruleWidth} solid ${cvar(a.rule)}`;
|
|
6328
|
+
const hair = `${a.ruleWidth} solid ${cvar(a.hairline)}`;
|
|
6329
|
+
const mark = (m) => `background:${cvar(m.fill)};color:${cvar(m.ink)}`;
|
|
6330
|
+
const quick = (...props) => `transition:${props.map((x) => `${x} ${a.quick} ease`).join(",")}`;
|
|
6331
|
+
const min = `[data-${p}-shell-min]`;
|
|
6332
|
+
const M = `:is(${min} .${p}-shell,.${p}-shell${min})`;
|
|
6333
|
+
const side = `.${p}-shell-side`;
|
|
6334
|
+
const page = `.${p}-shell-page`;
|
|
6335
|
+
const doc = `.${p}-doc`;
|
|
6336
|
+
const group = `details.${p}-nav-group`;
|
|
6337
|
+
const link = `.${p}-nav-link`;
|
|
6338
|
+
const car = `.${p}-carousel-prev,.${p}-carousel-next`;
|
|
6339
|
+
const carEach = (s) => `.${p}-carousel-prev${s},.${p}-carousel-next${s}`;
|
|
6340
|
+
const tones = [
|
|
6341
|
+
"success",
|
|
6342
|
+
"danger",
|
|
6343
|
+
"warning",
|
|
6344
|
+
"info",
|
|
6345
|
+
];
|
|
6346
|
+
return `
|
|
6347
|
+
.${p}-shell{background:${surface};color:${text};font-family:${a.font};font-size:${a.size};line-height:${a.leading};-webkit-font-smoothing:antialiased}
|
|
6348
|
+
.${p}-shell .${p}-col{background:${surface};border-right:${rule}}
|
|
6349
|
+
.${p}-shell-head{gap:.5rem;height:${a.head};padding:0 .5rem 0 ${a.gutter};border-bottom:${rule};font-size:.875rem;line-height:1.25rem;font-weight:600}
|
|
6350
|
+
.${p}-shell-body{scroll-behavior:smooth}
|
|
6351
|
+
${side}{transition:width ${a.arrive} ${a.ease}}
|
|
6352
|
+
${side} .${p}-shell-body{font-size:.875rem}
|
|
6353
|
+
${page} .${p}-shell-body{padding:${a.page}}
|
|
6354
|
+
.${p}-shell-brand{margin-left:-.5rem;padding:.25rem .5rem;border-radius:${a.radius};font-size:1rem;letter-spacing:-.01em;line-height:1.25rem;font-weight:600;color:${text};text-decoration:none;${quick("background-color", "color")}}
|
|
6355
|
+
.${p}-shell-brand:focus-visible{outline:${rule};outline-offset:-1px}
|
|
6356
|
+
.${p}-shell-brand[aria-current]{${mark(a.current)}}
|
|
6357
|
+
.${p}-shell-fold{width:1.9rem;height:1.9rem;padding:0;border:0;border-radius:${a.radius};background:none;color:${text};${quick("background-color", "color")}}
|
|
6358
|
+
.${p}-shell-fold:hover,.${p}-shell-fold:focus-visible{${mark(a.press)};outline:0}
|
|
6359
|
+
.${p}-shell-fold span{position:relative;display:block;width:1rem;height:.8rem;border:1.5px solid currentColor}
|
|
6360
|
+
.${p}-shell-fold span::before{content:"";position:absolute;top:0;bottom:0;left:.25rem;border-left:1.5px solid currentColor}
|
|
6361
|
+
.${p}-shell-foot{gap:.5rem;padding:.6rem ${a.gutter};border-top:${rule}}
|
|
6362
|
+
${M} ${side} .${p}-shell-head{padding:0}
|
|
6363
|
+
${M} .${p}-shell-foot{padding:.6rem 0}
|
|
6364
|
+
.${p}-shell-bar{gap:.6rem;height:${a.head};padding:0 1rem;background:${surface};border-bottom:${rule}}
|
|
6365
|
+
.${p}-shell-menu-btn{border:0;padding:0;color:${text};background-color:transparent;background-image:linear-gradient(currentColor,currentColor),linear-gradient(currentColor,currentColor),linear-gradient(currentColor,currentColor);background-size:100% 2px;background-position:0 1px,0 7px,0 13px;background-repeat:no-repeat}
|
|
6366
|
+
.${p}-shell-bar-brand{padding:.1rem .4rem;border-radius:${a.radius};font-size:1rem;font-weight:600;color:${text};text-decoration:none}
|
|
6367
|
+
.${p}-shell-bar-brand:focus-visible{outline:${rule};outline-offset:-1px}
|
|
6368
|
+
.${p}-shell-bar-brand[aria-current]{${mark(a.current)}}
|
|
6369
|
+
.${p}-shell-backdrop{background:rgba(0,0,0,.4)}
|
|
6370
|
+
@media (max-width:1023px){${side}{transition:transform ${a.leave} ease-out}}
|
|
6371
|
+
.${p}-shell .${p}-fold{width:1.75rem;height:1.75rem;border:0;border-radius:${a.radius};background:none;color:${muted};font:inherit;font-size:1.1rem;line-height:1;text-decoration:none}
|
|
6372
|
+
.${p}-shell .${p}-fold:hover,.${p}-shell .${p}-fold:focus-visible{${mark(a.press)};outline:0}
|
|
6373
|
+
${page} ~ ${page}{animation:${p}-page-in ${a.arrive} ${a.ease}}
|
|
6374
|
+
.${p}-shell ${page}${page}[data-${p}-replacing]{animation:${p}-page-swap ${a.swap} ease-out}
|
|
6375
|
+
.${p}-shell ${page}${page}[data-${p}-leaving]{animation:${p}-page-out ${a.leave} cubic-bezier(.4,0,.6,1) forwards}
|
|
6376
|
+
${doc} h1{font-size:1.375rem;font-weight:600;letter-spacing:-.01em;line-height:1.3;margin:0 0 1rem}
|
|
6377
|
+
${doc} h1 + p{color:${muted}}
|
|
6378
|
+
${doc} h2{font-size:1.0625rem;font-weight:600;line-height:1.4;margin:2.5rem 0 .75rem}
|
|
6379
|
+
${doc} h3{font-size:.9375rem;font-weight:600;line-height:1.5;margin:1.75rem 0 .5rem}
|
|
6380
|
+
${doc} h4{font-size:.875rem;font-weight:600;line-height:1.5;color:${muted};margin:1.25rem 0 .5rem}
|
|
6381
|
+
${doc} p{margin:.85rem 0}
|
|
6382
|
+
${doc} ul,${doc} ol{padding-left:1.35rem;margin:.85rem 0}
|
|
6383
|
+
${doc} li{margin:.35rem 0}
|
|
6384
|
+
${doc} strong{font-weight:600;color:${text}}
|
|
6385
|
+
${doc} blockquote{margin:1rem 0;padding:.1rem 1rem;border-left:${rule};color:${muted}}
|
|
6386
|
+
${doc} a{color:${text};text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;font-weight:400;padding:.15em .3em;margin-inline:-.3em;border-radius:${a.radius};${quick("background-color", "color")}}
|
|
6387
|
+
${doc} a:hover,${doc} a:focus-visible{${mark(a.press)};text-decoration:none;outline:0;box-decoration-break:clone;-webkit-box-decoration-break:clone}
|
|
6388
|
+
${doc} a[data-${p}-opened]{${mark(a.current)};text-decoration:none}
|
|
6389
|
+
${doc} mark{${mark(a.current)};padding:.1em .25em;border-radius:${a.radius};box-decoration-break:clone;-webkit-box-decoration-break:clone;scroll-margin-top:1rem}
|
|
6390
|
+
${doc} code{font-family:${a.mono};font-size:.86em;font-weight:400;color:${text};padding:.1em .35em;border:${a.ruleWidth} solid transparent;border-radius:${a.radius};background:${cvar("surface-2")}}
|
|
6391
|
+
${doc} a:hover code,${doc} a:focus-visible code,${doc} a[data-${p}-opened] code{color:inherit;background:none;border-color:transparent}
|
|
6392
|
+
${doc} pre{margin:1.1rem 0;padding:.875rem 1rem;background:${surface};border:${rule};border-radius:${a.radius};font-size:.8125rem;line-height:1.65}
|
|
6393
|
+
${doc} pre code{padding:0;border:none;background:none;font-size:inherit;color:inherit}
|
|
6394
|
+
${doc} table{border-collapse:collapse;margin:1.25rem 0;font-size:.92rem}
|
|
6395
|
+
${doc} th,${doc} td{text-align:left;padding:.5rem 1.25rem .5rem 0;border-bottom:${hair}}
|
|
6396
|
+
${doc} th{border-bottom:${rule};font-weight:600}
|
|
6397
|
+
${doc} hr{border:none;border-top:${hair};margin:1.5rem 0}
|
|
6398
|
+
${doc} :is(h1,h2,h3,h4){scroll-margin-top:1rem}
|
|
6399
|
+
.${p}-callout{margin:1.25rem 0;padding:.75rem 1rem;border:${a.ruleWidth} solid transparent;border-radius:${a.radius};font-size:.875rem;line-height:1.625}
|
|
6400
|
+
.${p}-callout-title{font-weight:600;margin:0 0 .35rem}
|
|
6401
|
+
.${p}-callout p{margin:.35rem 0}
|
|
6402
|
+
.${p}-callout-info,.${p}-callout-note{background:${surface};border-color:${cvar(a.rule)};color:${text}}
|
|
6403
|
+
.${p}-callout-tip{background:${cvar("success-surface")};border-color:${cvar("success-border")};color:${cvar("success-text")}}
|
|
6404
|
+
.${p}-callout-warning{background:${cvar("warning-surface")};border-color:${cvar("warning-border")};color:${cvar("warning-text")}}
|
|
6405
|
+
.${p}-callout-danger{background:${cvar("danger-surface")};border-color:${cvar("danger-border")};color:${cvar("danger-text")}}
|
|
6406
|
+
.${themeToggle_1.themeToggleClass}{border-radius:${a.radius === "0" ? "0" : "50%"};border:${hair}}
|
|
6407
|
+
.${themeToggle_1.themeToggleClass}:hover{border-color:${cvar(a.rule)}}
|
|
6408
|
+
.${themeToggle_1.themeToggleClass}:focus-visible{outline:${rule};outline-offset:2px}
|
|
6409
|
+
.${p}-nav-group{margin:0}
|
|
6410
|
+
.${p}-nav-group-title{padding:1.1rem ${a.gutter} .4rem;font-size:.75rem;line-height:1.25rem;font-weight:500;color:${muted};border-bottom:${hair}}
|
|
6411
|
+
${link}{padding:.5rem ${a.gutter};border-bottom:${hair};font-size:.875rem;line-height:1.45;color:${text};text-decoration:none}
|
|
6412
|
+
${link}:hover{${mark(a.hover)};text-decoration:none}
|
|
6413
|
+
${link}:focus-visible{${mark(a.press)};text-decoration:none;outline:0}
|
|
6414
|
+
.${p}-nav-label{padding:.15rem .5rem;margin-inline:-.5rem;border-radius:${a.radius};box-decoration-break:clone;-webkit-box-decoration-break:clone}
|
|
6415
|
+
${link}[aria-current] .${p}-nav-label{${mark(a.current)}}
|
|
6416
|
+
.${p}-nav-flat{padding:.5rem ${a.gutter};border-bottom:${hair};font-size:.875rem;line-height:1.45;color:${muted}}
|
|
6417
|
+
.${p}-nav-subgroup{margin:0}
|
|
6418
|
+
.${p}-nav-subgroup-title{padding:.5rem ${a.gutter};font-size:.875rem;line-height:1.45;border-bottom:${hair};font-weight:600;color:${text}}
|
|
6419
|
+
${group} summary{padding:.7rem ${a.gutter};font-size:.875rem;font-weight:600;color:${text};${quick("background-color", "color")}}
|
|
6420
|
+
${group} summary::after{content:"";width:.4rem;height:.4rem;margin-right:.2rem;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(-45deg);transition:transform ${a.quick} ease}
|
|
6421
|
+
${group}[open] summary::after{transform:rotate(45deg)}
|
|
6422
|
+
${group}[open] summary{color:${text}}
|
|
6423
|
+
${group} summary:hover{${mark(a.hover)}}
|
|
6424
|
+
${group} summary:focus-visible{${mark(a.press)};outline:0}
|
|
6425
|
+
${group} summary:active{opacity:.8}
|
|
6426
|
+
${group}::details-content{transition:block-size ${a.leave} ease,content-visibility ${a.leave} allow-discrete}
|
|
6427
|
+
${group} ${link}{${quick("background-color", "color", "padding-left")}}
|
|
6428
|
+
${group}{border-bottom:${hair}}
|
|
6429
|
+
${group} ${link},${group} .${p}-nav-flat,${group} .${p}-nav-subgroup-title{padding-top:.4rem;padding-bottom:.4rem;padding-left:calc(${a.gutter} + .9rem);border-bottom:0;font-size:.8125rem}
|
|
6430
|
+
${group}[open] summary{padding-bottom:.45rem}
|
|
6431
|
+
${group}[open]::details-content{padding-bottom:.5rem}
|
|
6432
|
+
${group} ${link}:hover{padding-left:calc(${a.gutter} + 1.15rem)}
|
|
6433
|
+
${group} ${link}[aria-current]:hover{padding-left:calc(${a.gutter} + .9rem)}
|
|
6434
|
+
${car}{width:2.25rem;height:2.25rem;margin-top:-1.125rem;padding:0;border:${rule};border-radius:${a.radius};background:${surface};color:${text};box-shadow:${a.elevation};${quick("background-color", "color")}}
|
|
6435
|
+
${carEach("::before")}{content:"";width:.5rem;height:.5rem;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor}
|
|
6436
|
+
.${p}-carousel-prev::before{transform:translateX(.12rem) rotate(-135deg)}
|
|
6437
|
+
.${p}-carousel-next::before{transform:translateX(-.12rem) rotate(45deg)}
|
|
6438
|
+
${carEach(":hover")},${carEach(":focus-visible")}{${mark(a.press)};outline:0}
|
|
6439
|
+
.${p}-btn{gap:.4rem;min-height:2.1rem;padding:.35rem .9rem;border:${rule};border-radius:${a.radius};background:${surface};color:${text};font:inherit;font-size:.875rem;font-weight:500;line-height:1.25rem;${quick("background-color", "color", "opacity")}}
|
|
6440
|
+
.${p}-btn:hover:not(:disabled),.${p}-btn:focus-visible{${mark(a.press)};outline:0}
|
|
6441
|
+
.${p}-btn-primary{background:${cvar("primary-base")};color:${surface};border-color:${cvar("primary-base")}}
|
|
6442
|
+
.${p}-btn-primary:hover:not(:disabled),.${p}-btn-primary:focus-visible{opacity:.82;background:${cvar("primary-base")};color:${surface}}
|
|
6443
|
+
.${p}-btn-danger{border-color:${danger};color:${danger}}
|
|
6444
|
+
.${p}-btn-danger:hover:not(:disabled),.${p}-btn-danger:focus-visible{background:${danger};color:${surface};border-color:${danger}}
|
|
6445
|
+
.${p}-btn:disabled,.${p}-disabled{opacity:.45}
|
|
6446
|
+
.${p}-actions{gap:.5rem;margin-top:.9rem}
|
|
6447
|
+
.${p}-form{gap:.25rem;max-width:26rem}
|
|
6448
|
+
.${p}-fields{margin:.5rem 0}
|
|
6449
|
+
.${p}-field{margin:.55rem 0;gap:.3rem}
|
|
6450
|
+
.${p}-check{gap:.55rem}
|
|
6451
|
+
.${p}-field-label{font-size:.8125rem;font-weight:600;color:${text}}
|
|
6452
|
+
.${p}-input{padding:.45rem .6rem;border:${rule};border-radius:${a.radius};background:${surface};color:${text};font:inherit;font-size:.875rem;line-height:1.4;transition:box-shadow ${a.quick} ease}
|
|
6453
|
+
.${p}-input:focus,.${p}-input:focus-visible{outline:0;box-shadow:inset 0 0 0 1px ${cvar(a.rule)}}
|
|
6454
|
+
.${p}-input::placeholder{color:${muted}}
|
|
6455
|
+
.${p}-input[aria-invalid="true"]{border-color:${danger}}
|
|
6456
|
+
.${p}-checkbox{width:1rem;height:1rem;margin:0;accent-color:${cvar("primary-base")}}
|
|
6457
|
+
.${p}-field-error,.${p}-error{color:${danger};font-size:.8125rem}
|
|
6458
|
+
.${p}-hint{color:${muted};font-size:.8125rem}
|
|
6459
|
+
select.${p}-input{appearance:none;padding-right:1.9rem;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - .95rem) 50%,calc(100% - .65rem) 50%;background-size:.3rem .3rem;background-repeat:no-repeat;cursor:pointer}
|
|
6460
|
+
.${p}-input:disabled{opacity:.45}
|
|
6461
|
+
.${p}-props{border-top:${hair}}
|
|
6462
|
+
.${p}-prop{column-gap:.75rem;min-height:2.5rem;padding:.3rem ${a.gutter};border-bottom:${hair}}
|
|
6463
|
+
.${p}-prop-label{font-size:.8125rem;line-height:1.3;color:${text}}
|
|
6464
|
+
.${p}-prop-control .${p}-input{padding:.3rem .55rem;font-size:.8125rem}
|
|
6465
|
+
.${p}-prop-control select.${p}-input{padding-right:1.7rem}
|
|
6466
|
+
.${p}-switch{gap:.55rem;padding:0;border:0;background:none;color:${text};font:inherit;font-size:.8125rem;line-height:1.3}
|
|
6467
|
+
.${p}-switch-track{border:${rule};border-radius:${a.radius === "0" ? "0" : "999px"};background:${surface};${quick("background-color", "border-color")}}
|
|
6468
|
+
.${p}-switch-thumb{border-radius:${a.radius === "0" ? "0" : "50%"};background:${text};transition:transform ${a.quick} ${a.ease},background-color ${a.quick} ease}
|
|
6469
|
+
.${p}-switch[aria-checked="true"] .${p}-switch-track{background:${cvar("primary-base")};border-color:${cvar("primary-base")}}
|
|
6470
|
+
.${p}-switch[aria-checked="true"] .${p}-switch-thumb{background:${surface}}
|
|
6471
|
+
.${p}-switch:focus-visible{outline:0}
|
|
6472
|
+
.${p}-switch:focus-visible .${p}-switch-track{box-shadow:0 0 0 2px ${surface},0 0 0 3px ${cvar(a.rule)}}
|
|
6473
|
+
.${p}-switch:disabled{opacity:.45}
|
|
6474
|
+
.${p}-backdrop{background:rgba(0,0,0,.45)}
|
|
6475
|
+
.${p}-dialog{padding:1.25rem 1.4rem;background:${surface};color:${text};border:${rule};border-radius:${a.radius};box-shadow:${a.elevation}}
|
|
6476
|
+
.${p}-dialog-title{margin:0 0 .5rem;font-size:1rem;font-weight:600}
|
|
6477
|
+
.${p}-dialog-actions{gap:.5rem;margin-top:1.1rem}
|
|
6478
|
+
.${p}-toaster{gap:.5rem}
|
|
6479
|
+
.${p}-toast{gap:.9rem;padding:.55rem .6rem .55rem .9rem;border:${rule};border-radius:${a.radius};background:${surface};color:${text};font-size:.875rem;box-shadow:${a.elevation}}
|
|
6480
|
+
${tones
|
|
6481
|
+
.map((name) => `.${p}-toast-${name}{background:${cvar(`${name}-surface`)};color:${cvar(`${name}-text`)};border-color:${cvar(`${name}-border`)}}`)
|
|
6482
|
+
.join("\n")}
|
|
6483
|
+
.${p}-toast-close{width:1.6rem;height:1.6rem;padding:0;border:0;border-radius:${a.radius};background:none;color:inherit;font-size:1.05rem;line-height:1}
|
|
6484
|
+
.${p}-toast-close:hover,.${p}-toast-close:focus-visible{background:currentColor;outline:0}
|
|
6485
|
+
@media (max-width:959px){${page} .${p}-shell-body{padding:1.25rem 1.25rem 3rem}}
|
|
6486
|
+
@media (prefers-reduced-motion:reduce){${side},.${p}-shell-brand,.${p}-shell-fold,${doc} a,${group} summary,${group} summary::after,${group}::details-content,${group} ${link},${car},.${p}-btn,.${p}-input,.${p}-switch-track,.${p}-switch-thumb{transition:none}${page} ~ ${page},.${p}-shell ${page}${page}[data-${p}-replacing],.${p}-shell ${page}${page}[data-${p}-leaving]{animation:none}}
|
|
6487
|
+
`;
|
|
6488
|
+
};
|
|
6489
|
+
exports.appearanceCss = appearanceCss;
|
|
6490
|
+
|
|
6491
|
+
},
|
|
6492
|
+
"src/Appearance/usecase/asAppearance.ts": function (module, exports, require) {
|
|
6493
|
+
"use strict";
|
|
6494
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6495
|
+
exports.asAppearance = void 0;
|
|
6496
|
+
const plgg_1 = require("plgg");
|
|
6497
|
+
const token_1 = require("src/Style/model/token.ts");
|
|
6498
|
+
const asColor = (value) => {
|
|
6499
|
+
const found = token_1.colors.find((c) => c === value);
|
|
6500
|
+
return found === undefined
|
|
6501
|
+
? (0, plgg_1.err)((0, plgg_1.invalidError)({
|
|
6502
|
+
message: "not a colour role (text, surface, primary-base, …)",
|
|
6503
|
+
}))
|
|
6504
|
+
: (0, plgg_1.ok)(found);
|
|
6505
|
+
};
|
|
6506
|
+
const asMark = (value) => (0, plgg_1.cast)(value, plgg_1.asObj, (0, plgg_1.forProp)("fill", asColor), (0, plgg_1.forProp)("ink", asColor));
|
|
6507
|
+
const asAppearance = (value) => {
|
|
6508
|
+
const drawn = (0, plgg_1.cast)(value, plgg_1.asObj, (0, plgg_1.forProp)("name", plgg_1.asSoftStr), (0, plgg_1.forProp)("font", plgg_1.asSoftStr), (0, plgg_1.forProp)("mono", plgg_1.asSoftStr), (0, plgg_1.forProp)("size", plgg_1.asSoftStr), (0, plgg_1.forProp)("leading", plgg_1.asSoftStr), (0, plgg_1.forProp)("rule", asColor), (0, plgg_1.forProp)("hairline", asColor), (0, plgg_1.forProp)("ruleWidth", plgg_1.asSoftStr), (0, plgg_1.forProp)("radius", plgg_1.asSoftStr), (0, plgg_1.forProp)("current", asMark), (0, plgg_1.forProp)("hover", asMark), (0, plgg_1.forProp)("press", asMark));
|
|
6509
|
+
return (0, plgg_1.isErr)(drawn)
|
|
6510
|
+
? (0, plgg_1.err)(drawn.content)
|
|
6511
|
+
: (0, plgg_1.cast)(drawn.content, (0, plgg_1.forProp)("head", plgg_1.asSoftStr), (0, plgg_1.forProp)("gutter", plgg_1.asSoftStr), (0, plgg_1.forProp)("page", plgg_1.asSoftStr), (0, plgg_1.forProp)("elevation", plgg_1.asSoftStr), (0, plgg_1.forProp)("quick", plgg_1.asSoftStr), (0, plgg_1.forProp)("arrive", plgg_1.asSoftStr), (0, plgg_1.forProp)("leave", plgg_1.asSoftStr), (0, plgg_1.forProp)("swap", plgg_1.asSoftStr), (0, plgg_1.forProp)("ease", plgg_1.asSoftStr));
|
|
6512
|
+
};
|
|
6513
|
+
exports.asAppearance = asAppearance;
|
|
6514
|
+
|
|
4246
6515
|
}
|
|
4247
6516
|
};
|
|
4248
6517
|
const __cache = {};
|
|
@@ -4260,35 +6529,78 @@ export default __entry;
|
|
|
4260
6529
|
export const {
|
|
4261
6530
|
action,
|
|
4262
6531
|
actionById,
|
|
6532
|
+
actionsClass,
|
|
4263
6533
|
actor,
|
|
4264
6534
|
adapter,
|
|
6535
|
+
advanceColumns,
|
|
6536
|
+
appearanceCss,
|
|
4265
6537
|
applyVia,
|
|
6538
|
+
asAppearance,
|
|
4266
6539
|
asFlag,
|
|
4267
6540
|
asMoment,
|
|
4268
6541
|
asNum,
|
|
4269
6542
|
asText,
|
|
4270
6543
|
asidePane,
|
|
4271
6544
|
async,
|
|
6545
|
+
backClass,
|
|
6546
|
+
backdropClass,
|
|
4272
6547
|
binding,
|
|
6548
|
+
boardClass,
|
|
4273
6549
|
boardLevel$,
|
|
4274
6550
|
breadcrumb,
|
|
6551
|
+
browser,
|
|
6552
|
+
browserClass,
|
|
6553
|
+
btnClass,
|
|
6554
|
+
btnDangerClass,
|
|
6555
|
+
btnPrimaryClass,
|
|
4275
6556
|
button,
|
|
6557
|
+
calloutClass,
|
|
6558
|
+
calloutTitleClass,
|
|
6559
|
+
calloutToneClass,
|
|
4276
6560
|
cancelAction,
|
|
6561
|
+
carouselCss,
|
|
6562
|
+
carouselInitScript,
|
|
6563
|
+
carouselNextClass,
|
|
6564
|
+
carouselPrevClass,
|
|
4277
6565
|
catalogOf,
|
|
6566
|
+
checkClass,
|
|
6567
|
+
checkLabelClass,
|
|
4278
6568
|
checkbox,
|
|
6569
|
+
checkboxClass,
|
|
6570
|
+
choice,
|
|
4279
6571
|
choiceOf,
|
|
6572
|
+
colClass,
|
|
4280
6573
|
colHead,
|
|
6574
|
+
colHeadClass,
|
|
6575
|
+
colHeadLinkClass,
|
|
6576
|
+
colHeadTitleClass,
|
|
4281
6577
|
collection,
|
|
4282
6578
|
collectionById,
|
|
4283
6579
|
column,
|
|
6580
|
+
columnAttr,
|
|
6581
|
+
columnOf,
|
|
6582
|
+
columnWith,
|
|
6583
|
+
columnWithSpan,
|
|
6584
|
+
columnsOf,
|
|
6585
|
+
compositionHref,
|
|
6586
|
+
compositionQuery,
|
|
4284
6587
|
confirm,
|
|
4285
6588
|
confirmAction,
|
|
4286
6589
|
confirmDialog,
|
|
4287
6590
|
controlKinds,
|
|
6591
|
+
crumbHereClass,
|
|
6592
|
+
crumbLinkClass,
|
|
6593
|
+
crumbSepClass,
|
|
6594
|
+
crumbsClass,
|
|
4288
6595
|
crumbsOf,
|
|
4289
6596
|
cssPrefix,
|
|
6597
|
+
cssVar,
|
|
6598
|
+
cssVarRef,
|
|
4290
6599
|
currentScreen,
|
|
4291
6600
|
declare,
|
|
6601
|
+
declaredForm,
|
|
6602
|
+
decodeComposition,
|
|
6603
|
+
decodeTrail,
|
|
4292
6604
|
defaultFuel,
|
|
4293
6605
|
descriptorOf,
|
|
4294
6606
|
detailLevel$,
|
|
@@ -4296,19 +6608,42 @@ export const {
|
|
|
4296
6608
|
detailView$,
|
|
4297
6609
|
detectModelContext,
|
|
4298
6610
|
diagnosticSeverity,
|
|
6611
|
+
dialogActionsClass,
|
|
6612
|
+
dialogClass,
|
|
6613
|
+
dialogTitleClass,
|
|
4299
6614
|
diffCatalog,
|
|
6615
|
+
disabledClass,
|
|
6616
|
+
docClass,
|
|
6617
|
+
documentColumn,
|
|
4300
6618
|
dynamic,
|
|
4301
6619
|
effect,
|
|
4302
6620
|
emit,
|
|
4303
6621
|
emit$,
|
|
4304
6622
|
emptyModel,
|
|
6623
|
+
encodeTrail,
|
|
6624
|
+
entry,
|
|
6625
|
+
entrySeparator,
|
|
4305
6626
|
enumArg,
|
|
4306
6627
|
enumArg$,
|
|
6628
|
+
errorClass,
|
|
4307
6629
|
errorFor,
|
|
6630
|
+
escapeChar,
|
|
4308
6631
|
failed,
|
|
4309
6632
|
field,
|
|
6633
|
+
fieldClass,
|
|
6634
|
+
fieldControl,
|
|
6635
|
+
fieldErrorClass,
|
|
6636
|
+
fieldFlagClass,
|
|
6637
|
+
fieldLabelClass,
|
|
6638
|
+
fieldMediaClass,
|
|
6639
|
+
fieldMomentClass,
|
|
6640
|
+
fieldNumClass,
|
|
4310
6641
|
fieldOf,
|
|
6642
|
+
fieldRefClass,
|
|
6643
|
+
fieldSeparator,
|
|
4311
6644
|
fieldText,
|
|
6645
|
+
fieldValueClass,
|
|
6646
|
+
fieldsClass,
|
|
4312
6647
|
flagValue,
|
|
4313
6648
|
flagValue$,
|
|
4314
6649
|
flowHost,
|
|
@@ -4316,18 +6651,33 @@ export const {
|
|
|
4316
6651
|
flowSchemaOf,
|
|
4317
6652
|
focusRing,
|
|
4318
6653
|
focusedView,
|
|
6654
|
+
foldClass,
|
|
6655
|
+
foldTrail,
|
|
6656
|
+
formClass,
|
|
4319
6657
|
formView,
|
|
4320
6658
|
frameworkName,
|
|
6659
|
+
glideEase,
|
|
4321
6660
|
heading,
|
|
6661
|
+
hintClass,
|
|
4322
6662
|
hostAdapter,
|
|
4323
6663
|
hoverDim,
|
|
4324
6664
|
idleSubmission,
|
|
4325
6665
|
immediate,
|
|
4326
6666
|
inertModelContext,
|
|
6667
|
+
injectNavigationScript,
|
|
6668
|
+
inputClass,
|
|
4327
6669
|
invokeWith,
|
|
4328
6670
|
isDestructive,
|
|
4329
6671
|
isPending,
|
|
6672
|
+
kitAppearanceCss,
|
|
6673
|
+
kitCss,
|
|
6674
|
+
kitSystemCss,
|
|
4330
6675
|
landmarkTag,
|
|
6676
|
+
leavingAttr,
|
|
6677
|
+
listActionClass,
|
|
6678
|
+
listActionsClass,
|
|
6679
|
+
listClass,
|
|
6680
|
+
listItemClass,
|
|
4331
6681
|
listLevel$,
|
|
4332
6682
|
listView,
|
|
4333
6683
|
listView$,
|
|
@@ -4339,44 +6689,80 @@ export const {
|
|
|
4339
6689
|
mediaValue,
|
|
4340
6690
|
mediaValue$,
|
|
4341
6691
|
menu,
|
|
6692
|
+
menuBodyClass,
|
|
6693
|
+
menuClass,
|
|
6694
|
+
menuColumn,
|
|
6695
|
+
menuCompactAttr,
|
|
4342
6696
|
menuEntry,
|
|
4343
6697
|
menuLevel$,
|
|
6698
|
+
menuOpenAttr,
|
|
4344
6699
|
menuView,
|
|
4345
6700
|
menuView$,
|
|
6701
|
+
modalClass,
|
|
4346
6702
|
modes,
|
|
4347
6703
|
momentValue,
|
|
4348
6704
|
momentValue$,
|
|
6705
|
+
monochrome,
|
|
6706
|
+
moonClass,
|
|
4349
6707
|
multiColumn,
|
|
4350
6708
|
multiColumnWith,
|
|
4351
6709
|
named,
|
|
6710
|
+
navClass,
|
|
6711
|
+
navFlatClass,
|
|
6712
|
+
navGroupClass,
|
|
6713
|
+
navGroupTitleClass,
|
|
6714
|
+
navHookName,
|
|
6715
|
+
navLinkClass,
|
|
6716
|
+
navNumberedClass,
|
|
4352
6717
|
navPane,
|
|
6718
|
+
navSubgroupClass,
|
|
6719
|
+
navSubgroupTitleClass,
|
|
4353
6720
|
navTree,
|
|
4354
6721
|
navigate,
|
|
6722
|
+
navigationInitScript,
|
|
4355
6723
|
noDefaultAdapter$,
|
|
4356
6724
|
nullary,
|
|
4357
6725
|
nullary$,
|
|
4358
6726
|
numValue,
|
|
4359
6727
|
numValue$,
|
|
4360
6728
|
openMenu,
|
|
6729
|
+
openedAttr,
|
|
4361
6730
|
pane,
|
|
6731
|
+
paneClass,
|
|
4362
6732
|
parseForm,
|
|
6733
|
+
parseSteps,
|
|
4363
6734
|
parseUrl,
|
|
4364
6735
|
pendingSubmission,
|
|
4365
6736
|
permits,
|
|
6737
|
+
phoneAttr,
|
|
6738
|
+
pinnedClass,
|
|
6739
|
+
pinnedPanel,
|
|
4366
6740
|
pragmaticTheme,
|
|
4367
6741
|
pragmaticThemeWithPalette,
|
|
4368
6742
|
pressDim,
|
|
6743
|
+
printSteps,
|
|
6744
|
+
programmaticScrollAttr,
|
|
4369
6745
|
projectField,
|
|
4370
6746
|
projectRow,
|
|
4371
6747
|
projection,
|
|
6748
|
+
propClass,
|
|
6749
|
+
propControlClass,
|
|
6750
|
+
propLabelClass,
|
|
6751
|
+
propertyList,
|
|
6752
|
+
propertyRow,
|
|
6753
|
+
propsClass,
|
|
4372
6754
|
prose,
|
|
4373
6755
|
query,
|
|
4374
6756
|
queryChoice,
|
|
6757
|
+
queryChoiceClass,
|
|
4375
6758
|
queryChoiceInput,
|
|
6759
|
+
queryClass,
|
|
4376
6760
|
queryInput,
|
|
4377
6761
|
ran,
|
|
4378
6762
|
ran$,
|
|
6763
|
+
reachableScroll,
|
|
4379
6764
|
readFlow,
|
|
6765
|
+
readPreference,
|
|
4380
6766
|
reconcile,
|
|
4381
6767
|
refTarget,
|
|
4382
6768
|
refValue,
|
|
@@ -4384,28 +6770,89 @@ export const {
|
|
|
4384
6770
|
rejected,
|
|
4385
6771
|
rejected$,
|
|
4386
6772
|
renderMode,
|
|
6773
|
+
replacingAttr,
|
|
4387
6774
|
requestAction,
|
|
4388
6775
|
resolveAdapter,
|
|
6776
|
+
resolveTrail,
|
|
6777
|
+
restParam,
|
|
6778
|
+
restep,
|
|
4389
6779
|
resumeFlow,
|
|
6780
|
+
revealColumn,
|
|
6781
|
+
revealOptions,
|
|
6782
|
+
revealTarget,
|
|
4390
6783
|
row,
|
|
4391
6784
|
rowCap,
|
|
6785
|
+
rowClass,
|
|
6786
|
+
rowLinkClass,
|
|
6787
|
+
rowWith,
|
|
4392
6788
|
runFlow,
|
|
4393
6789
|
runFlow$,
|
|
4394
6790
|
runFlowEffect,
|
|
6791
|
+
savePreference,
|
|
4395
6792
|
sceneToUrl,
|
|
4396
6793
|
schedule,
|
|
6794
|
+
schedulerClass,
|
|
4397
6795
|
scope,
|
|
6796
|
+
seamClass,
|
|
4398
6797
|
select,
|
|
4399
6798
|
selectInput,
|
|
6799
|
+
selector,
|
|
6800
|
+
settledTrail,
|
|
6801
|
+
shareClass,
|
|
6802
|
+
shareCss,
|
|
6803
|
+
shareInsetVar,
|
|
6804
|
+
shareOptions,
|
|
6805
|
+
shell,
|
|
6806
|
+
shellBackdropClass,
|
|
6807
|
+
shellBarBrandClass,
|
|
6808
|
+
shellBarClass,
|
|
6809
|
+
shellBodyClass,
|
|
6810
|
+
shellBrandClass,
|
|
6811
|
+
shellClass,
|
|
6812
|
+
shellFoldClass,
|
|
6813
|
+
shellFootClass,
|
|
6814
|
+
shellHeadClass,
|
|
6815
|
+
shellMenuButtonClass,
|
|
6816
|
+
shellMenuClass,
|
|
6817
|
+
shellMenuId,
|
|
6818
|
+
shellMinAttr,
|
|
6819
|
+
shellOpenAttr,
|
|
6820
|
+
shellPageClass,
|
|
6821
|
+
shellSideClass,
|
|
6822
|
+
shellTitleClass,
|
|
6823
|
+
sidebarNav,
|
|
6824
|
+
sidebarNavClass,
|
|
6825
|
+
sidebarNavCss,
|
|
6826
|
+
sidebarNavRevealScript,
|
|
6827
|
+
singleClass,
|
|
4400
6828
|
singleColumn,
|
|
4401
6829
|
sliceOf,
|
|
4402
6830
|
slotOf,
|
|
6831
|
+
soft,
|
|
6832
|
+
soloComposition,
|
|
6833
|
+
spanAttr,
|
|
6834
|
+
spanParam,
|
|
6835
|
+
spanTwoClass,
|
|
4403
6836
|
stalled,
|
|
4404
6837
|
stalled$,
|
|
4405
6838
|
startFlow,
|
|
4406
6839
|
staticThemeToggle,
|
|
6840
|
+
stepFrom,
|
|
6841
|
+
stepSeparator,
|
|
6842
|
+
strip,
|
|
6843
|
+
stripAttr,
|
|
6844
|
+
stripGeometry,
|
|
6845
|
+
stripMetrics,
|
|
6846
|
+
stripStyle,
|
|
6847
|
+
stripVar,
|
|
6848
|
+
sunClass,
|
|
6849
|
+
switchClass,
|
|
6850
|
+
switchLabelClass,
|
|
6851
|
+
switchThumbClass,
|
|
6852
|
+
switchTrackClass,
|
|
4407
6853
|
sync,
|
|
4408
6854
|
syncCatalog,
|
|
6855
|
+
systemCss,
|
|
4409
6856
|
textArea,
|
|
4410
6857
|
textArg,
|
|
4411
6858
|
textArg$,
|
|
@@ -4416,12 +6863,33 @@ export const {
|
|
|
4416
6863
|
themeToggle,
|
|
4417
6864
|
themeToggleClass,
|
|
4418
6865
|
themeToggleCss,
|
|
6866
|
+
tileBodyClass,
|
|
6867
|
+
tileCaptionClass,
|
|
6868
|
+
tileClass,
|
|
6869
|
+
tileLabelClass,
|
|
6870
|
+
tileLinkClass,
|
|
4419
6871
|
toast,
|
|
6872
|
+
toastClass,
|
|
6873
|
+
toastCloseClass,
|
|
6874
|
+
toastToneClass,
|
|
4420
6875
|
toaster,
|
|
6876
|
+
toasterClass,
|
|
6877
|
+
toggle,
|
|
4421
6878
|
toggleMode,
|
|
4422
6879
|
tones,
|
|
4423
6880
|
tool,
|
|
6881
|
+
trailClass,
|
|
6882
|
+
trailParam,
|
|
6883
|
+
trailQuery,
|
|
4424
6884
|
unknownAdapter$,
|
|
4425
6885
|
unusedAdapter$,
|
|
4426
|
-
urlChanged
|
|
6886
|
+
urlChanged,
|
|
6887
|
+
visibleColumnStart,
|
|
6888
|
+
widthAttr,
|
|
6889
|
+
widthColumn,
|
|
6890
|
+
workspace,
|
|
6891
|
+
workspaceClass,
|
|
6892
|
+
workspaceCss,
|
|
6893
|
+
workspaceOptions,
|
|
6894
|
+
workspaceWith
|
|
4427
6895
|
} = __entry;
|