plgg-ir-diagram 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/flow.js +1782 -403
- package/dist/browser/interactive.js +422 -85
- package/dist/editor.cjs.js +38 -17
- package/dist/editor.es.js +38 -17
- package/dist/flow.cjs.js +79 -24
- package/dist/flow.es.js +79 -24
- package/dist/flowEditor.cjs.js +138 -40
- package/dist/flowEditor.es.js +138 -40
- package/dist/flowSheet.cjs.js +81 -25
- package/dist/flowSheet.d.ts +2 -0
- package/dist/flowSheet.es.js +81 -25
- package/dist/mountSheet.d.ts +1 -1
- package/dist/widget.cjs.js +38 -17
- package/dist/widget.es.js +38 -17
- package/package.json +4 -4
package/dist/browser/flow.js
CHANGED
|
@@ -8,7 +8,6 @@ const __modules = {
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
const flowSheet_1 = require("src/flowSheet.ts");
|
|
10
10
|
const mountSheet_1 = require("src/mountSheet.ts");
|
|
11
|
-
const flowEditor_1 = require("src/flowEditor.ts");
|
|
12
11
|
module.exports = (root, props) => {
|
|
13
12
|
const options = props.info.split(/\s+/);
|
|
14
13
|
const names = (0, flowSheet_1.sheetToolNames)(props.info);
|
|
@@ -16,7 +15,7 @@ module.exports = (root, props) => {
|
|
|
16
15
|
options.includes("fill") ||
|
|
17
16
|
options.includes("dsl")
|
|
18
17
|
? (0, mountSheet_1.mountSheet)(root, props.code, options.includes("dsl"), names)
|
|
19
|
-
: (0,
|
|
18
|
+
: (0, mountSheet_1.mountSheet)(root, props.code, true, names, true);
|
|
20
19
|
};
|
|
21
20
|
|
|
22
21
|
},
|
|
@@ -173,11 +172,14 @@ const fitDemo = (state, roomMargin = 80) => {
|
|
|
173
172
|
},
|
|
174
173
|
};
|
|
175
174
|
};
|
|
175
|
+
const pixelWidth = flow.sheetInsets?.pixelWidth;
|
|
176
176
|
let upper = phoneFlat
|
|
177
177
|
? 1.5
|
|
178
178
|
: flow.rooms
|
|
179
179
|
? 1.6
|
|
180
|
-
:
|
|
180
|
+
: pixelWidth && pixelWidth < frame.x
|
|
181
|
+
? Math.min(2, frame.x / pixelWidth)
|
|
182
|
+
: 1, lower = 0;
|
|
181
183
|
let scale = upper;
|
|
182
184
|
for (let i = 0; i < 18; i++) {
|
|
183
185
|
const box = measure(scale);
|
|
@@ -492,8 +494,9 @@ const measuredFrame = (host) => {
|
|
|
492
494
|
insets: {
|
|
493
495
|
...(width < 760 &&
|
|
494
496
|
bottom && { phoneWidth: width }),
|
|
497
|
+
pixelWidth: Math.round(width),
|
|
495
498
|
left: 0,
|
|
496
|
-
top: tools
|
|
499
|
+
top: tools && tools.height
|
|
497
500
|
? unit(tools.bottom - rect.top)
|
|
498
501
|
: 0,
|
|
499
502
|
bottom: bottom && box ? unit(box.height) : 0,
|
|
@@ -734,10 +737,7 @@ const createDslPanel = (select, toggle, retype) => {
|
|
|
734
737
|
exports.createDslPanel = createDslPanel;
|
|
735
738
|
const maximiseButton = (0, plgg_view_1.el)("button", [
|
|
736
739
|
(0, plgg_view_1.attr)("type", "button"),
|
|
737
|
-
(0, plgg_view_1.attr)("class", "maximise " +
|
|
738
|
-
plggmatic_1.iconButtonClass +
|
|
739
|
-
" " +
|
|
740
|
-
plggmatic_1.iconButtonRoundClass),
|
|
740
|
+
(0, plgg_view_1.attr)("class", "maximise " + plggmatic_1.iconButtonClass),
|
|
741
741
|
(0, plgg_view_1.attr)("aria-label", "図を最大化"),
|
|
742
742
|
(0, plgg_view_1.attr)("aria-pressed", "false"),
|
|
743
743
|
], [
|
|
@@ -755,8 +755,34 @@ const maximiseButton = (0, plgg_view_1.el)("button", [
|
|
|
755
755
|
], []),
|
|
756
756
|
]),
|
|
757
757
|
]);
|
|
758
|
+
const closeMaxButton = (0, plgg_view_1.el)("button", [
|
|
759
|
+
(0, plgg_view_1.attr)("type", "button"),
|
|
760
|
+
(0, plgg_view_1.attr)("class", hooks_1.btnClass),
|
|
761
|
+
(0, plgg_view_1.attr)("data-close-max", ""),
|
|
762
|
+
(0, plgg_view_1.attr)("aria-label", "最大化を閉じる"),
|
|
763
|
+
], [
|
|
764
|
+
(0, plgg_view_1.el)("svg", [
|
|
765
|
+
(0, plgg_view_1.attr)("width", "12"),
|
|
766
|
+
(0, plgg_view_1.attr)("height", "12"),
|
|
767
|
+
(0, plgg_view_1.attr)("viewBox", "0 0 16 16"),
|
|
768
|
+
(0, plgg_view_1.attr)("aria-hidden", "true"),
|
|
769
|
+
], [
|
|
770
|
+
(0, plgg_view_1.el)("path", [
|
|
771
|
+
(0, plgg_view_1.attr)("d", "M3 3l10 10M13 3L3 13"),
|
|
772
|
+
(0, plgg_view_1.attr)("fill", "none"),
|
|
773
|
+
(0, plgg_view_1.attr)("stroke", "currentColor"),
|
|
774
|
+
(0, plgg_view_1.attr)("stroke-width", "1.6"),
|
|
775
|
+
], []),
|
|
776
|
+
]),
|
|
777
|
+
(0, plgg_view_1.el)("span", [], [(0, plgg_view_1.text)("閉じる")]),
|
|
778
|
+
]);
|
|
758
779
|
const sheetStage = (board, controls, panel) => (0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", "stage")], [
|
|
759
|
-
(0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", "canvas-wrap")], [
|
|
780
|
+
(0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", "canvas-wrap")], [
|
|
781
|
+
board,
|
|
782
|
+
controls,
|
|
783
|
+
maximiseButton,
|
|
784
|
+
closeMaxButton,
|
|
785
|
+
]),
|
|
760
786
|
...panel,
|
|
761
787
|
]);
|
|
762
788
|
exports.sheetStage = sheetStage;
|
|
@@ -1116,24 +1142,27 @@ exports.observeToolbar = observeToolbar;
|
|
|
1116
1142
|
"../plggmatic/src/index.ts": function (module, exports, require) {
|
|
1117
1143
|
"use strict";
|
|
1118
1144
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1119
|
-
exports.
|
|
1120
|
-
exports.
|
|
1121
|
-
exports.
|
|
1122
|
-
exports.
|
|
1123
|
-
exports.
|
|
1124
|
-
exports.
|
|
1125
|
-
exports.
|
|
1126
|
-
exports.
|
|
1127
|
-
exports.
|
|
1128
|
-
exports.
|
|
1145
|
+
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.fieldRequiredClass = 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.actionsEndClass = exports.actionsClass = exports.btnDangerClass = exports.btnOutlineClass = exports.btnPrimaryClass = exports.btnClass = exports.cssPrefix = exports.frameworkName = void 0;
|
|
1146
|
+
exports.embeddedAttr = exports.embedParam = exports.embeddersMeta = exports.partnersMeta = 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 = exports.boardClass = exports.rowLinkClass = exports.listActionClass = void 0;
|
|
1147
|
+
exports.modes = exports.fieldError = exports.errorAria = exports.errorId = exports.fieldLabel = exports.formActions = 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 = exports.foldTrail = exports.settledTrail = exports.resolveTrail = exports.injectNavigationScript = exports.navigationInitScript = exports.documentColumn = exports.strip = exports.frameClass = void 0;
|
|
1148
|
+
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 = 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 = void 0;
|
|
1149
|
+
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 = 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 = void 0;
|
|
1150
|
+
exports.heroClass = exports.hero = exports.docPagerCss = exports.docPagerTitleClass = exports.docPagerDirClass = exports.docPagerLinkClass = exports.docPagerClass = exports.docPager = exports.headingAnchorAppearanceCss = exports.headingAnchorSystemCss = exports.headingAnchorClass = exports.headingAnchor = exports.languageMenuCss = exports.languageOptionClass = exports.languageListClass = exports.languageToggleClass = exports.languageMenuClass = exports.languageMenu = 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 = 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 = void 0;
|
|
1151
|
+
exports.pinnedPanel = exports.workspaceWith = exports.workspace = exports.revealColumn = exports.revealOptions = exports.glideEase = exports.revealTarget = exports.navSubgroupTitleClass = exports.navSubgroupClass = exports.navFlatClass = exports.navLinkClass = exports.navGroupTitleClass = exports.navGroupClass = exports.navNumberedClass = exports.navClass = exports.widthAttr = exports.programmaticScrollAttr = exports.phoneAttr = exports.menuCompactAttr = exports.menuOpenAttr = exports.seamClass = exports.menuClass = exports.browserClass = exports.pinnedClass = exports.workspaceClass = exports.workspaceCss = exports.workspaceOptions = exports.reachableScroll = exports.visibleColumnStart = exports.stripStyle = exports.stripVar = exports.stripGeometry = exports.stripMetrics = exports.pragmaticThemeWithPalette = exports.pragmaticTheme = exports.sidebarNavRevealScript = exports.sidebarNavCss = exports.sidebarNavClass = exports.sidebarNav = exports.typesetInkCss = exports.typesetCss = exports.defaultTypesetting = exports.heroCss = exports.heroInstallClass = exports.heroActionPrimaryClass = exports.heroActionClass = exports.heroActionsClass = exports.heroTextClass = exports.heroTaglineClass = exports.heroNameClass = void 0;
|
|
1152
|
+
exports.docClass = exports.docFootClass = exports.shellSideLinkClass = exports.shellCaptionClass = exports.chromeLinkMarkClass = exports.chromeLinkLabelClass = exports.chromeLinkClass = exports.chromeLinksClass = exports.shellRailGroupClass = exports.shellRailClass = exports.shellNoteClass = exports.figureBodyClass = exports.figurePageClass = exports.shellPageClass = exports.shellFootClass = exports.shellFoldClass = exports.shellBrandHomeClass = exports.shellBrandFullClass = 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.kitTypesetCss = exports.kitSystemCss = exports.kitCss = exports.shellBrand = exports.shell = exports.codeCopyInitScript = 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 = void 0;
|
|
1153
|
+
exports.iconButtonClass = exports.siteDrawerNoteClass = exports.siteBarNoteClass = exports.siteBarHomeClass = exports.siteMainClass = exports.siteFillClass = exports.siteSectionClass = exports.siteStripClass = exports.siteBodyClass = exports.siteCss = exports.preview = exports.swatches = exports.swatch = exports.split = exports.cluster = exports.exampleBox = exports.statusClass = exports.codeInputClass = exports.rowsRowClass = exports.rowsClass = exports.splitterClass = exports.statusLine = exports.codeInput = exports.rowList = exports.splitter = 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 = exports.calloutClass = exports.shellOpenAttr = exports.shellBackdropClass = exports.shellMenuId = exports.shellMenuClass = exports.shellMenuButtonClass = exports.shellBarBrandClass = exports.shellBarClass = exports.shellMinAttr = exports.codeCopyClass = void 0;
|
|
1154
|
+
exports.sortedOn = exports.drawer = exports.toggled = exports.checkGroup = exports.suggestInput = exports.fileInput = exports.slider = exports.searchField = exports.dateInput = exports.numberInput = exports.segmented = exports.radioGroup = exports.popover = exports.floatingIconButton = exports.iconButton = exports.menuButton = exports.toolbar = exports.toolGroup = exports.toolButton = exports.accordion = exports.steps = exports.pagination = exports.pageNumbers = exports.tabs = exports.alertPanelClass = exports.alertNoticeClass = exports.alertBodyClass = exports.alertTitleClass = exports.alertToneClass = exports.alertClass = exports.tooltip = exports.skeleton = exports.spinner = exports.progress = exports.alert = exports.itemList = exports.emptyState = exports.codeBlock = exports.avatar = exports.divider = exports.descList = exports.dataTable = exports.card = exports.tag = exports.badge = exports.toolIconClass = exports.toolClass = exports.toolGroupClass = exports.toolbarClass = exports.iconButtonRoundClass = void 0;
|
|
1155
|
+
exports.brandMark = exports.joiningHeaders = exports.attachJoining = exports.publicDocumentJoining = exports.mayHonourRequest = exports.mayOpenColumn = exports.joiningDirectives = exports.defineJoining = exports.asOrigin = exports.calendar = exports.monthWeeks = exports.sortTable = exports.sortedBy = void 0;
|
|
1129
1156
|
var identity_1 = require("../plggmatic/src/Meta/model/identity.ts");
|
|
1130
1157
|
Object.defineProperty(exports, "frameworkName", { enumerable: true, get: function () { return identity_1.frameworkName; } });
|
|
1131
1158
|
Object.defineProperty(exports, "cssPrefix", { enumerable: true, get: function () { return identity_1.cssPrefix; } });
|
|
1132
1159
|
var classHooks_1 = require("../plggmatic/src/Meta/model/classHooks.ts");
|
|
1133
1160
|
Object.defineProperty(exports, "btnClass", { enumerable: true, get: function () { return classHooks_1.btnClass; } });
|
|
1134
1161
|
Object.defineProperty(exports, "btnPrimaryClass", { enumerable: true, get: function () { return classHooks_1.btnPrimaryClass; } });
|
|
1162
|
+
Object.defineProperty(exports, "btnOutlineClass", { enumerable: true, get: function () { return classHooks_1.btnOutlineClass; } });
|
|
1135
1163
|
Object.defineProperty(exports, "btnDangerClass", { enumerable: true, get: function () { return classHooks_1.btnDangerClass; } });
|
|
1136
1164
|
Object.defineProperty(exports, "actionsClass", { enumerable: true, get: function () { return classHooks_1.actionsClass; } });
|
|
1165
|
+
Object.defineProperty(exports, "actionsEndClass", { enumerable: true, get: function () { return classHooks_1.actionsEndClass; } });
|
|
1137
1166
|
Object.defineProperty(exports, "disabledClass", { enumerable: true, get: function () { return classHooks_1.disabledClass; } });
|
|
1138
1167
|
Object.defineProperty(exports, "modalClass", { enumerable: true, get: function () { return classHooks_1.modalClass; } });
|
|
1139
1168
|
Object.defineProperty(exports, "backdropClass", { enumerable: true, get: function () { return classHooks_1.backdropClass; } });
|
|
@@ -1149,6 +1178,7 @@ Object.defineProperty(exports, "fieldsClass", { enumerable: true, get: function
|
|
|
1149
1178
|
Object.defineProperty(exports, "fieldClass", { enumerable: true, get: function () { return classHooks_1.fieldClass; } });
|
|
1150
1179
|
Object.defineProperty(exports, "fieldLabelClass", { enumerable: true, get: function () { return classHooks_1.fieldLabelClass; } });
|
|
1151
1180
|
Object.defineProperty(exports, "fieldErrorClass", { enumerable: true, get: function () { return classHooks_1.fieldErrorClass; } });
|
|
1181
|
+
Object.defineProperty(exports, "fieldRequiredClass", { enumerable: true, get: function () { return classHooks_1.fieldRequiredClass; } });
|
|
1152
1182
|
Object.defineProperty(exports, "fieldValueClass", { enumerable: true, get: function () { return classHooks_1.fieldValueClass; } });
|
|
1153
1183
|
Object.defineProperty(exports, "inputClass", { enumerable: true, get: function () { return classHooks_1.inputClass; } });
|
|
1154
1184
|
Object.defineProperty(exports, "checkClass", { enumerable: true, get: function () { return classHooks_1.checkClass; } });
|
|
@@ -1273,6 +1303,11 @@ Object.defineProperty(exports, "isPending", { enumerable: true, get: function ()
|
|
|
1273
1303
|
Object.defineProperty(exports, "parseForm", { enumerable: true, get: function () { return Form_1.parseForm; } });
|
|
1274
1304
|
Object.defineProperty(exports, "errorFor", { enumerable: true, get: function () { return Form_1.errorFor; } });
|
|
1275
1305
|
Object.defineProperty(exports, "formView", { enumerable: true, get: function () { return Form_1.formView; } });
|
|
1306
|
+
Object.defineProperty(exports, "formActions", { enumerable: true, get: function () { return Form_1.formActions; } });
|
|
1307
|
+
Object.defineProperty(exports, "fieldLabel", { enumerable: true, get: function () { return Form_1.fieldLabel; } });
|
|
1308
|
+
Object.defineProperty(exports, "errorId", { enumerable: true, get: function () { return Form_1.errorId; } });
|
|
1309
|
+
Object.defineProperty(exports, "errorAria", { enumerable: true, get: function () { return Form_1.errorAria; } });
|
|
1310
|
+
Object.defineProperty(exports, "fieldError", { enumerable: true, get: function () { return Form_1.fieldError; } });
|
|
1276
1311
|
var Render_1 = require("../plggmatic/src/Render/index.ts");
|
|
1277
1312
|
Object.defineProperty(exports, "modes", { enumerable: true, get: function () { return Render_1.modes; } });
|
|
1278
1313
|
Object.defineProperty(exports, "toggleMode", { enumerable: true, get: function () { return Render_1.toggleMode; } });
|
|
@@ -1431,6 +1466,40 @@ Object.defineProperty(exports, "themeToggleClass", { enumerable: true, get: func
|
|
|
1431
1466
|
Object.defineProperty(exports, "sunClass", { enumerable: true, get: function () { return themeToggle_1.sunClass; } });
|
|
1432
1467
|
Object.defineProperty(exports, "moonClass", { enumerable: true, get: function () { return themeToggle_1.moonClass; } });
|
|
1433
1468
|
Object.defineProperty(exports, "themeToggleCss", { enumerable: true, get: function () { return themeToggle_1.themeToggleCss; } });
|
|
1469
|
+
var languageMenu_1 = require("../plggmatic/src/Component/usecase/languageMenu.ts");
|
|
1470
|
+
Object.defineProperty(exports, "languageMenu", { enumerable: true, get: function () { return languageMenu_1.languageMenu; } });
|
|
1471
|
+
Object.defineProperty(exports, "languageMenuClass", { enumerable: true, get: function () { return languageMenu_1.languageMenuClass; } });
|
|
1472
|
+
Object.defineProperty(exports, "languageToggleClass", { enumerable: true, get: function () { return languageMenu_1.languageToggleClass; } });
|
|
1473
|
+
Object.defineProperty(exports, "languageListClass", { enumerable: true, get: function () { return languageMenu_1.languageListClass; } });
|
|
1474
|
+
Object.defineProperty(exports, "languageOptionClass", { enumerable: true, get: function () { return languageMenu_1.languageOptionClass; } });
|
|
1475
|
+
Object.defineProperty(exports, "languageMenuCss", { enumerable: true, get: function () { return languageMenu_1.languageMenuCss; } });
|
|
1476
|
+
var headingAnchor_1 = require("../plggmatic/src/Component/usecase/headingAnchor.ts");
|
|
1477
|
+
Object.defineProperty(exports, "headingAnchor", { enumerable: true, get: function () { return headingAnchor_1.headingAnchor; } });
|
|
1478
|
+
Object.defineProperty(exports, "headingAnchorClass", { enumerable: true, get: function () { return headingAnchor_1.headingAnchorClass; } });
|
|
1479
|
+
Object.defineProperty(exports, "headingAnchorSystemCss", { enumerable: true, get: function () { return headingAnchor_1.headingAnchorSystemCss; } });
|
|
1480
|
+
Object.defineProperty(exports, "headingAnchorAppearanceCss", { enumerable: true, get: function () { return headingAnchor_1.headingAnchorAppearanceCss; } });
|
|
1481
|
+
var docPager_1 = require("../plggmatic/src/Component/usecase/docPager.ts");
|
|
1482
|
+
Object.defineProperty(exports, "docPager", { enumerable: true, get: function () { return docPager_1.docPager; } });
|
|
1483
|
+
Object.defineProperty(exports, "docPagerClass", { enumerable: true, get: function () { return docPager_1.docPagerClass; } });
|
|
1484
|
+
Object.defineProperty(exports, "docPagerLinkClass", { enumerable: true, get: function () { return docPager_1.docPagerLinkClass; } });
|
|
1485
|
+
Object.defineProperty(exports, "docPagerDirClass", { enumerable: true, get: function () { return docPager_1.docPagerDirClass; } });
|
|
1486
|
+
Object.defineProperty(exports, "docPagerTitleClass", { enumerable: true, get: function () { return docPager_1.docPagerTitleClass; } });
|
|
1487
|
+
Object.defineProperty(exports, "docPagerCss", { enumerable: true, get: function () { return docPager_1.docPagerCss; } });
|
|
1488
|
+
var hero_1 = require("../plggmatic/src/Component/usecase/hero.ts");
|
|
1489
|
+
Object.defineProperty(exports, "hero", { enumerable: true, get: function () { return hero_1.hero; } });
|
|
1490
|
+
Object.defineProperty(exports, "heroClass", { enumerable: true, get: function () { return hero_1.heroClass; } });
|
|
1491
|
+
Object.defineProperty(exports, "heroNameClass", { enumerable: true, get: function () { return hero_1.heroNameClass; } });
|
|
1492
|
+
Object.defineProperty(exports, "heroTaglineClass", { enumerable: true, get: function () { return hero_1.heroTaglineClass; } });
|
|
1493
|
+
Object.defineProperty(exports, "heroTextClass", { enumerable: true, get: function () { return hero_1.heroTextClass; } });
|
|
1494
|
+
Object.defineProperty(exports, "heroActionsClass", { enumerable: true, get: function () { return hero_1.heroActionsClass; } });
|
|
1495
|
+
Object.defineProperty(exports, "heroActionClass", { enumerable: true, get: function () { return hero_1.heroActionClass; } });
|
|
1496
|
+
Object.defineProperty(exports, "heroActionPrimaryClass", { enumerable: true, get: function () { return hero_1.heroActionPrimaryClass; } });
|
|
1497
|
+
Object.defineProperty(exports, "heroInstallClass", { enumerable: true, get: function () { return hero_1.heroInstallClass; } });
|
|
1498
|
+
Object.defineProperty(exports, "heroCss", { enumerable: true, get: function () { return hero_1.heroCss; } });
|
|
1499
|
+
var typesetting_1 = require("../plggmatic/src/Style/model/typesetting.ts");
|
|
1500
|
+
Object.defineProperty(exports, "defaultTypesetting", { enumerable: true, get: function () { return typesetting_1.defaultTypesetting; } });
|
|
1501
|
+
Object.defineProperty(exports, "typesetCss", { enumerable: true, get: function () { return typesetting_1.typesetCss; } });
|
|
1502
|
+
Object.defineProperty(exports, "typesetInkCss", { enumerable: true, get: function () { return typesetting_1.typesetInkCss; } });
|
|
1434
1503
|
var sidebarNav_1 = require("../plggmatic/src/Component/usecase/sidebarNav.ts");
|
|
1435
1504
|
Object.defineProperty(exports, "sidebarNav", { enumerable: true, get: function () { return sidebarNav_1.sidebarNav; } });
|
|
1436
1505
|
Object.defineProperty(exports, "sidebarNavClass", { enumerable: true, get: function () { return sidebarNav_1.sidebarNavClass; } });
|
|
@@ -1498,10 +1567,14 @@ Object.defineProperty(exports, "carouselPrevClass", { enumerable: true, get: fun
|
|
|
1498
1567
|
Object.defineProperty(exports, "carouselNextClass", { enumerable: true, get: function () { return classHooks_4.carouselNextClass; } });
|
|
1499
1568
|
var Navigate_2 = require("../plggmatic/src/Navigate/index.ts");
|
|
1500
1569
|
Object.defineProperty(exports, "carouselInitScript", { enumerable: true, get: function () { return Navigate_2.carouselInitScript; } });
|
|
1570
|
+
var Navigate_3 = require("../plggmatic/src/Navigate/index.ts");
|
|
1571
|
+
Object.defineProperty(exports, "codeCopyInitScript", { enumerable: true, get: function () { return Navigate_3.codeCopyInitScript; } });
|
|
1501
1572
|
var Shell_1 = require("../plggmatic/src/Shell/index.ts");
|
|
1502
1573
|
Object.defineProperty(exports, "shell", { enumerable: true, get: function () { return Shell_1.shell; } });
|
|
1574
|
+
Object.defineProperty(exports, "shellBrand", { enumerable: true, get: function () { return Shell_1.shellBrand; } });
|
|
1503
1575
|
Object.defineProperty(exports, "kitCss", { enumerable: true, get: function () { return Shell_1.kitCss; } });
|
|
1504
1576
|
Object.defineProperty(exports, "kitSystemCss", { enumerable: true, get: function () { return Shell_1.kitSystemCss; } });
|
|
1577
|
+
Object.defineProperty(exports, "kitTypesetCss", { enumerable: true, get: function () { return Shell_1.kitTypesetCss; } });
|
|
1505
1578
|
Object.defineProperty(exports, "kitAppearanceCss", { enumerable: true, get: function () { return Shell_1.kitAppearanceCss; } });
|
|
1506
1579
|
Object.defineProperty(exports, "systemCss", { enumerable: true, get: function () { return Shell_1.systemCss; } });
|
|
1507
1580
|
Object.defineProperty(exports, "monochrome", { enumerable: true, get: function () { return Shell_1.monochrome; } });
|
|
@@ -1515,6 +1588,8 @@ Object.defineProperty(exports, "shellHeadClass", { enumerable: true, get: functi
|
|
|
1515
1588
|
Object.defineProperty(exports, "shellTitleClass", { enumerable: true, get: function () { return classHooks_5.shellTitleClass; } });
|
|
1516
1589
|
Object.defineProperty(exports, "shellBodyClass", { enumerable: true, get: function () { return classHooks_5.shellBodyClass; } });
|
|
1517
1590
|
Object.defineProperty(exports, "shellBrandClass", { enumerable: true, get: function () { return classHooks_5.shellBrandClass; } });
|
|
1591
|
+
Object.defineProperty(exports, "shellBrandFullClass", { enumerable: true, get: function () { return classHooks_5.shellBrandFullClass; } });
|
|
1592
|
+
Object.defineProperty(exports, "shellBrandHomeClass", { enumerable: true, get: function () { return classHooks_5.shellBrandHomeClass; } });
|
|
1518
1593
|
Object.defineProperty(exports, "shellFoldClass", { enumerable: true, get: function () { return classHooks_5.shellFoldClass; } });
|
|
1519
1594
|
Object.defineProperty(exports, "shellFootClass", { enumerable: true, get: function () { return classHooks_5.shellFootClass; } });
|
|
1520
1595
|
Object.defineProperty(exports, "shellPageClass", { enumerable: true, get: function () { return classHooks_5.shellPageClass; } });
|
|
@@ -1526,10 +1601,12 @@ Object.defineProperty(exports, "shellRailGroupClass", { enumerable: true, get: f
|
|
|
1526
1601
|
Object.defineProperty(exports, "chromeLinksClass", { enumerable: true, get: function () { return classHooks_5.chromeLinksClass; } });
|
|
1527
1602
|
Object.defineProperty(exports, "chromeLinkClass", { enumerable: true, get: function () { return classHooks_5.chromeLinkClass; } });
|
|
1528
1603
|
Object.defineProperty(exports, "chromeLinkLabelClass", { enumerable: true, get: function () { return classHooks_5.chromeLinkLabelClass; } });
|
|
1604
|
+
Object.defineProperty(exports, "chromeLinkMarkClass", { enumerable: true, get: function () { return classHooks_5.chromeLinkMarkClass; } });
|
|
1529
1605
|
Object.defineProperty(exports, "shellCaptionClass", { enumerable: true, get: function () { return classHooks_5.shellCaptionClass; } });
|
|
1530
1606
|
Object.defineProperty(exports, "shellSideLinkClass", { enumerable: true, get: function () { return classHooks_5.shellSideLinkClass; } });
|
|
1531
1607
|
Object.defineProperty(exports, "docFootClass", { enumerable: true, get: function () { return classHooks_5.docFootClass; } });
|
|
1532
1608
|
Object.defineProperty(exports, "docClass", { enumerable: true, get: function () { return classHooks_5.docClass; } });
|
|
1609
|
+
Object.defineProperty(exports, "codeCopyClass", { enumerable: true, get: function () { return classHooks_5.codeCopyClass; } });
|
|
1533
1610
|
Object.defineProperty(exports, "shellMinAttr", { enumerable: true, get: function () { return classHooks_5.shellMinAttr; } });
|
|
1534
1611
|
Object.defineProperty(exports, "shellBarClass", { enumerable: true, get: function () { return classHooks_5.shellBarClass; } });
|
|
1535
1612
|
Object.defineProperty(exports, "shellBarBrandClass", { enumerable: true, get: function () { return classHooks_5.shellBarBrandClass; } });
|
|
@@ -1610,6 +1687,13 @@ Object.defineProperty(exports, "progress", { enumerable: true, get: function ()
|
|
|
1610
1687
|
Object.defineProperty(exports, "spinner", { enumerable: true, get: function () { return feedback_1.spinner; } });
|
|
1611
1688
|
Object.defineProperty(exports, "skeleton", { enumerable: true, get: function () { return feedback_1.skeleton; } });
|
|
1612
1689
|
Object.defineProperty(exports, "tooltip", { enumerable: true, get: function () { return feedback_1.tooltip; } });
|
|
1690
|
+
var classHooks_11 = require("../plggmatic/src/Meta/model/classHooks.ts");
|
|
1691
|
+
Object.defineProperty(exports, "alertClass", { enumerable: true, get: function () { return classHooks_11.alertClass; } });
|
|
1692
|
+
Object.defineProperty(exports, "alertToneClass", { enumerable: true, get: function () { return classHooks_11.alertToneClass; } });
|
|
1693
|
+
Object.defineProperty(exports, "alertTitleClass", { enumerable: true, get: function () { return classHooks_11.alertTitleClass; } });
|
|
1694
|
+
Object.defineProperty(exports, "alertBodyClass", { enumerable: true, get: function () { return classHooks_11.alertBodyClass; } });
|
|
1695
|
+
Object.defineProperty(exports, "alertNoticeClass", { enumerable: true, get: function () { return classHooks_11.alertNoticeClass; } });
|
|
1696
|
+
Object.defineProperty(exports, "alertPanelClass", { enumerable: true, get: function () { return classHooks_11.alertPanelClass; } });
|
|
1613
1697
|
var navigation_1 = require("../plggmatic/src/Component/usecase/navigation.ts");
|
|
1614
1698
|
Object.defineProperty(exports, "tabs", { enumerable: true, get: function () { return navigation_1.tabs; } });
|
|
1615
1699
|
Object.defineProperty(exports, "pageNumbers", { enumerable: true, get: function () { return navigation_1.pageNumbers; } });
|
|
@@ -1641,6 +1725,20 @@ Object.defineProperty(exports, "sortedBy", { enumerable: true, get: function ()
|
|
|
1641
1725
|
Object.defineProperty(exports, "sortTable", { enumerable: true, get: function () { return compound_1.sortTable; } });
|
|
1642
1726
|
Object.defineProperty(exports, "monthWeeks", { enumerable: true, get: function () { return compound_1.monthWeeks; } });
|
|
1643
1727
|
Object.defineProperty(exports, "calendar", { enumerable: true, get: function () { return compound_1.calendar; } });
|
|
1728
|
+
var origin_1 = require("../plggmatic/src/Joining/model/origin.ts");
|
|
1729
|
+
Object.defineProperty(exports, "asOrigin", { enumerable: true, get: function () { return origin_1.asOrigin; } });
|
|
1730
|
+
var policy_1 = require("../plggmatic/src/Joining/model/policy.ts");
|
|
1731
|
+
Object.defineProperty(exports, "defineJoining", { enumerable: true, get: function () { return policy_1.defineJoining; } });
|
|
1732
|
+
Object.defineProperty(exports, "joiningDirectives", { enumerable: true, get: function () { return policy_1.joiningDirectives; } });
|
|
1733
|
+
Object.defineProperty(exports, "mayOpenColumn", { enumerable: true, get: function () { return policy_1.mayOpenColumn; } });
|
|
1734
|
+
Object.defineProperty(exports, "mayHonourRequest", { enumerable: true, get: function () { return policy_1.mayHonourRequest; } });
|
|
1735
|
+
Object.defineProperty(exports, "publicDocumentJoining", { enumerable: true, get: function () { return policy_1.publicDocumentJoining; } });
|
|
1736
|
+
var attachJoining_1 = require("../plggmatic/src/Joining/usecase/attachJoining.ts");
|
|
1737
|
+
Object.defineProperty(exports, "attachJoining", { enumerable: true, get: function () { return attachJoining_1.attachJoining; } });
|
|
1738
|
+
var policy_2 = require("../plggmatic/src/Joining/model/policy.ts");
|
|
1739
|
+
Object.defineProperty(exports, "joiningHeaders", { enumerable: true, get: function () { return policy_2.joiningHeaders; } });
|
|
1740
|
+
var brandMark_1 = require("../plggmatic/src/Component/usecase/brandMark.ts");
|
|
1741
|
+
Object.defineProperty(exports, "brandMark", { enumerable: true, get: function () { return brandMark_1.brandMark; } });
|
|
1644
1742
|
|
|
1645
1743
|
},
|
|
1646
1744
|
"../plggmatic/src/Meta/model/identity.ts": function (module, exports, require) {
|
|
@@ -1654,11 +1752,12 @@ exports.cssPrefix = "pm";
|
|
|
1654
1752
|
"../plggmatic/src/Meta/model/classHooks.ts": function (module, exports, require) {
|
|
1655
1753
|
"use strict";
|
|
1656
1754
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1657
|
-
exports.
|
|
1658
|
-
exports.
|
|
1659
|
-
exports.
|
|
1660
|
-
exports.
|
|
1661
|
-
exports.
|
|
1755
|
+
exports.calloutClass = exports.shellOpenAttr = exports.shellBackdropClass = exports.shellMenuId = exports.shellMenuClass = exports.shellMenuButtonClass = exports.shellBarBrandClass = exports.shellBarClass = exports.shellMinAttr = exports.shellNoteClass = exports.docFootClass = exports.shellSideLinkClass = exports.shellCaptionClass = exports.chromeLinkMarkClass = exports.chromeLinkLabelClass = exports.chromeLinkClass = exports.chromeLinksClass = exports.shellRailGroupClass = exports.shellRailClass = exports.figureBodyClass = exports.figurePageClass = exports.codeCopyClass = exports.docClass = exports.shellPageClass = exports.shellFootClass = exports.shellFoldClass = exports.shellBrandHomeClass = exports.shellBrandFullClass = 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;
|
|
1756
|
+
exports.btnDangerClass = exports.btnPrimaryClass = exports.btnOutlineClass = exports.btnClass = exports.heroInstallClass = exports.heroActionPrimaryClass = exports.heroActionClass = exports.heroActionsClass = exports.heroTextClass = exports.heroTaglineClass = exports.heroNameClass = exports.heroClass = exports.docPagerTitleClass = exports.docPagerDirClass = exports.docPagerLinkClass = exports.docPagerClass = exports.headingAnchorClass = exports.languageOptionClass = exports.languageListClass = exports.languageToggleClass = exports.languageMenuClass = 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 = 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 = void 0;
|
|
1757
|
+
exports.tileLinkClass = exports.tileBodyClass = exports.tileClass = exports.boardClass = exports.rowLinkClass = exports.listActionClass = exports.listActionsClass = exports.listItemClass = exports.listClass = exports.menuBodyClass = exports.errorClass = exports.hintClass = exports.backClass = exports.singleClass = exports.schedulerClass = exports.crumbSepClass = exports.crumbLinkClass = exports.crumbHereClass = exports.crumbsClass = exports.colHeadLinkClass = exports.colHeadTitleClass = exports.colHeadClass = exports.fieldMediaClass = exports.fieldRefClass = exports.fieldMomentClass = exports.fieldFlagClass = exports.fieldNumClass = exports.checkLabelClass = exports.checkboxClass = exports.checkClass = exports.inputClass = exports.fieldValueClass = exports.fieldErrorClass = exports.fieldRequiredClass = 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.actionsEndClass = void 0;
|
|
1758
|
+
exports.stepsClass = exports.pagerItemClass = exports.pagerClass = exports.tabClass = exports.tabsClass = exports.tipClass = exports.tipAttr = exports.skeletonLineClass = exports.skeletonClass = exports.spinnerMarkClass = exports.spinnerClass = exports.busyAttr = exports.progressBarClass = exports.progressTrackClass = exports.progressClass = exports.alertTitleClass = exports.alertToneClass = exports.alertClass = exports.alertBodyClass = exports.alertPanelClass = exports.alertNoticeClass = exports.itemsTrailClass = exports.itemsNoteClass = exports.itemsTitleClass = exports.itemsRowClass = exports.itemsClass = exports.emptyTitleClass = exports.emptyClass = exports.codeBlockClass = exports.avatarClass = exports.dividerClass = exports.descClass = exports.numericClass = exports.tableClass = exports.tableWrapClass = exports.cardFootClass = exports.cardBodyClass = exports.cardHeadClass = exports.cardClass = exports.tagRemoveClass = exports.tagClass = exports.badgeToneClass = exports.badgeClass = exports.selector = exports.cssVarRef = exports.cssVar = exports.queryChoiceClass = exports.queryClass = exports.tileCaptionClass = exports.tileLabelClass = void 0;
|
|
1759
|
+
exports.siteSectionClass = exports.siteStripClass = exports.siteBodyClass = exports.previewBarClass = exports.previewClass = exports.swatchChipClass = exports.swatchClass = exports.swatchesClass = exports.splitPaneClass = exports.splitClass = exports.clusterClass = exports.exampleItemClass = exports.exampleClass = exports.statusClass = exports.codeInputClass = exports.rowsRowClass = exports.rowsClass = exports.splitterClass = exports.toolIconClass = exports.toolClass = exports.toolGroupClass = exports.toolbarClass = exports.calendarDayClass = exports.calendarGridClass = exports.calendarHeadClass = exports.calendarClass = exports.sortClass = exports.checksItemClass = exports.checksClass = exports.sideAttr = exports.drawerBodyClass = exports.drawerHeadClass = exports.drawerClass = exports.popoverBodyClass = exports.popoverClass = exports.searchClass = exports.rangeValueClass = exports.rangeClass = exports.segmentClass = exports.segmentedClass = exports.radioClass = exports.radiosClass = exports.iconButtonClass = exports.menuItemClass = exports.menuListClass = exports.menuButtonClass = exports.accordionBodyClass = exports.accordionItemClass = exports.accordionClass = exports.stepClass = void 0;
|
|
1760
|
+
exports.iconButtonRoundClass = exports.siteDrawerNoteClass = exports.siteBarNoteClass = exports.siteBarHomeClass = exports.siteMainClass = exports.siteFillClass = void 0;
|
|
1662
1761
|
const identity_1 = require("../plggmatic/src/Meta/model/identity.ts");
|
|
1663
1762
|
const hook = (name) => `${identity_1.cssPrefix}-${name}`;
|
|
1664
1763
|
exports.rowClass = hook("row");
|
|
@@ -1683,10 +1782,13 @@ exports.shellHeadClass = hook("shell-head");
|
|
|
1683
1782
|
exports.shellTitleClass = hook("shell-title");
|
|
1684
1783
|
exports.shellBodyClass = hook("shell-body");
|
|
1685
1784
|
exports.shellBrandClass = hook("shell-brand");
|
|
1785
|
+
exports.shellBrandFullClass = hook("shell-brand-full");
|
|
1786
|
+
exports.shellBrandHomeClass = hook("shell-brand-home");
|
|
1686
1787
|
exports.shellFoldClass = hook("shell-fold");
|
|
1687
1788
|
exports.shellFootClass = hook("shell-foot");
|
|
1688
1789
|
exports.shellPageClass = hook("shell-page");
|
|
1689
1790
|
exports.docClass = hook("doc");
|
|
1791
|
+
exports.codeCopyClass = hook("doc-code-copy");
|
|
1690
1792
|
exports.figurePageClass = hook("figure-page");
|
|
1691
1793
|
exports.figureBodyClass = hook("figure-body");
|
|
1692
1794
|
exports.shellRailClass = hook("shell-rail");
|
|
@@ -1694,6 +1796,7 @@ exports.shellRailGroupClass = hook("shell-rail-group");
|
|
|
1694
1796
|
exports.chromeLinksClass = hook("chrome-links");
|
|
1695
1797
|
exports.chromeLinkClass = hook("chrome-link");
|
|
1696
1798
|
exports.chromeLinkLabelClass = hook("chrome-link-label");
|
|
1799
|
+
exports.chromeLinkMarkClass = hook("chrome-link-mark");
|
|
1697
1800
|
exports.shellCaptionClass = hook("shell-caption");
|
|
1698
1801
|
exports.shellSideLinkClass = hook("shell-side-link");
|
|
1699
1802
|
exports.docFootClass = hook("doc-foot");
|
|
@@ -1737,9 +1840,28 @@ exports.navSubgroupTitleClass = hook("nav-subgroup-title");
|
|
|
1737
1840
|
exports.themeToggleClass = hook("theme-toggle");
|
|
1738
1841
|
exports.sunClass = hook("sun");
|
|
1739
1842
|
exports.moonClass = hook("moon");
|
|
1843
|
+
exports.languageMenuClass = hook("lang");
|
|
1844
|
+
exports.languageToggleClass = hook("lang-toggle");
|
|
1845
|
+
exports.languageListClass = hook("lang-list");
|
|
1846
|
+
exports.languageOptionClass = hook("lang-option");
|
|
1847
|
+
exports.headingAnchorClass = hook("heading-anchor");
|
|
1848
|
+
exports.docPagerClass = hook("docpager");
|
|
1849
|
+
exports.docPagerLinkClass = hook("docpager-link");
|
|
1850
|
+
exports.docPagerDirClass = hook("docpager-dir");
|
|
1851
|
+
exports.docPagerTitleClass = hook("docpager-title");
|
|
1852
|
+
exports.heroClass = hook("hero");
|
|
1853
|
+
exports.heroNameClass = hook("hero-name");
|
|
1854
|
+
exports.heroTaglineClass = hook("hero-tagline");
|
|
1855
|
+
exports.heroTextClass = hook("hero-text");
|
|
1856
|
+
exports.heroActionsClass = hook("hero-actions");
|
|
1857
|
+
exports.heroActionClass = hook("hero-action");
|
|
1858
|
+
exports.heroActionPrimaryClass = hook("hero-action-primary");
|
|
1859
|
+
exports.heroInstallClass = hook("hero-install");
|
|
1740
1860
|
exports.btnClass = hook("btn");
|
|
1861
|
+
exports.btnOutlineClass = hook("btn-outline");
|
|
1741
1862
|
exports.btnPrimaryClass = hook("btn-primary");
|
|
1742
1863
|
exports.btnDangerClass = hook("btn-danger");
|
|
1864
|
+
exports.actionsEndClass = hook("actions-end");
|
|
1743
1865
|
exports.actionsClass = hook("actions");
|
|
1744
1866
|
exports.disabledClass = hook("disabled");
|
|
1745
1867
|
exports.modalClass = hook("modal");
|
|
@@ -1756,6 +1878,7 @@ exports.formClass = hook("form");
|
|
|
1756
1878
|
exports.fieldsClass = hook("fields");
|
|
1757
1879
|
exports.fieldClass = hook("field");
|
|
1758
1880
|
exports.fieldLabelClass = hook("field-label");
|
|
1881
|
+
exports.fieldRequiredClass = hook("field-required");
|
|
1759
1882
|
exports.fieldErrorClass = hook("field-error");
|
|
1760
1883
|
exports.fieldValueClass = hook("field-value");
|
|
1761
1884
|
exports.inputClass = hook("input");
|
|
@@ -1822,6 +1945,9 @@ exports.itemsRowClass = hook("items-row");
|
|
|
1822
1945
|
exports.itemsTitleClass = hook("items-title");
|
|
1823
1946
|
exports.itemsNoteClass = hook("items-note");
|
|
1824
1947
|
exports.itemsTrailClass = hook("items-trail");
|
|
1948
|
+
exports.alertNoticeClass = hook("alert-notice");
|
|
1949
|
+
exports.alertPanelClass = hook("alert-panel");
|
|
1950
|
+
exports.alertBodyClass = hook("alert-body");
|
|
1825
1951
|
exports.alertClass = hook("alert");
|
|
1826
1952
|
const alertToneClass = (tone) => hook(`alert-${tone}`);
|
|
1827
1953
|
exports.alertToneClass = alertToneClass;
|
|
@@ -5628,9 +5754,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
5628
5754
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
5629
5755
|
};
|
|
5630
5756
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5631
|
-
exports.
|
|
5632
|
-
exports.
|
|
5633
|
-
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;
|
|
5757
|
+
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.heroCss = exports.heroInstallClass = exports.heroActionPrimaryClass = exports.heroActionClass = exports.heroActionsClass = exports.heroTextClass = exports.heroTaglineClass = exports.heroNameClass = exports.heroClass = exports.hero = exports.docPagerCss = exports.docPagerTitleClass = exports.docPagerDirClass = exports.docPagerLinkClass = exports.docPagerClass = exports.docPager = exports.headingAnchorAppearanceCss = exports.headingAnchorSystemCss = exports.headingAnchorClass = exports.headingAnchor = exports.languageMenuCss = exports.languageOptionClass = exports.languageListClass = exports.languageToggleClass = exports.languageMenuClass = exports.languageMenu = exports.themeToggleCss = exports.moonClass = exports.sunClass = exports.themeToggleClass = exports.staticThemeToggle = exports.themeToggle = void 0;
|
|
5758
|
+
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 = 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 = void 0;
|
|
5759
|
+
exports.codeCopyInitScript = 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 = 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 = void 0;
|
|
5634
5760
|
__exportStar(require("../plgg-view/src/styleEntry.ts"), exports);
|
|
5635
5761
|
var themeToggle_1 = require("../plggmatic/src/Component/usecase/themeToggle.ts");
|
|
5636
5762
|
Object.defineProperty(exports, "themeToggle", { enumerable: true, get: function () { return themeToggle_1.themeToggle; } });
|
|
@@ -5639,6 +5765,36 @@ Object.defineProperty(exports, "themeToggleClass", { enumerable: true, get: func
|
|
|
5639
5765
|
Object.defineProperty(exports, "sunClass", { enumerable: true, get: function () { return themeToggle_1.sunClass; } });
|
|
5640
5766
|
Object.defineProperty(exports, "moonClass", { enumerable: true, get: function () { return themeToggle_1.moonClass; } });
|
|
5641
5767
|
Object.defineProperty(exports, "themeToggleCss", { enumerable: true, get: function () { return themeToggle_1.themeToggleCss; } });
|
|
5768
|
+
var languageMenu_1 = require("../plggmatic/src/Component/usecase/languageMenu.ts");
|
|
5769
|
+
Object.defineProperty(exports, "languageMenu", { enumerable: true, get: function () { return languageMenu_1.languageMenu; } });
|
|
5770
|
+
Object.defineProperty(exports, "languageMenuClass", { enumerable: true, get: function () { return languageMenu_1.languageMenuClass; } });
|
|
5771
|
+
Object.defineProperty(exports, "languageToggleClass", { enumerable: true, get: function () { return languageMenu_1.languageToggleClass; } });
|
|
5772
|
+
Object.defineProperty(exports, "languageListClass", { enumerable: true, get: function () { return languageMenu_1.languageListClass; } });
|
|
5773
|
+
Object.defineProperty(exports, "languageOptionClass", { enumerable: true, get: function () { return languageMenu_1.languageOptionClass; } });
|
|
5774
|
+
Object.defineProperty(exports, "languageMenuCss", { enumerable: true, get: function () { return languageMenu_1.languageMenuCss; } });
|
|
5775
|
+
var headingAnchor_1 = require("../plggmatic/src/Component/usecase/headingAnchor.ts");
|
|
5776
|
+
Object.defineProperty(exports, "headingAnchor", { enumerable: true, get: function () { return headingAnchor_1.headingAnchor; } });
|
|
5777
|
+
Object.defineProperty(exports, "headingAnchorClass", { enumerable: true, get: function () { return headingAnchor_1.headingAnchorClass; } });
|
|
5778
|
+
Object.defineProperty(exports, "headingAnchorSystemCss", { enumerable: true, get: function () { return headingAnchor_1.headingAnchorSystemCss; } });
|
|
5779
|
+
Object.defineProperty(exports, "headingAnchorAppearanceCss", { enumerable: true, get: function () { return headingAnchor_1.headingAnchorAppearanceCss; } });
|
|
5780
|
+
var docPager_1 = require("../plggmatic/src/Component/usecase/docPager.ts");
|
|
5781
|
+
Object.defineProperty(exports, "docPager", { enumerable: true, get: function () { return docPager_1.docPager; } });
|
|
5782
|
+
Object.defineProperty(exports, "docPagerClass", { enumerable: true, get: function () { return docPager_1.docPagerClass; } });
|
|
5783
|
+
Object.defineProperty(exports, "docPagerLinkClass", { enumerable: true, get: function () { return docPager_1.docPagerLinkClass; } });
|
|
5784
|
+
Object.defineProperty(exports, "docPagerDirClass", { enumerable: true, get: function () { return docPager_1.docPagerDirClass; } });
|
|
5785
|
+
Object.defineProperty(exports, "docPagerTitleClass", { enumerable: true, get: function () { return docPager_1.docPagerTitleClass; } });
|
|
5786
|
+
Object.defineProperty(exports, "docPagerCss", { enumerable: true, get: function () { return docPager_1.docPagerCss; } });
|
|
5787
|
+
var hero_1 = require("../plggmatic/src/Component/usecase/hero.ts");
|
|
5788
|
+
Object.defineProperty(exports, "hero", { enumerable: true, get: function () { return hero_1.hero; } });
|
|
5789
|
+
Object.defineProperty(exports, "heroClass", { enumerable: true, get: function () { return hero_1.heroClass; } });
|
|
5790
|
+
Object.defineProperty(exports, "heroNameClass", { enumerable: true, get: function () { return hero_1.heroNameClass; } });
|
|
5791
|
+
Object.defineProperty(exports, "heroTaglineClass", { enumerable: true, get: function () { return hero_1.heroTaglineClass; } });
|
|
5792
|
+
Object.defineProperty(exports, "heroTextClass", { enumerable: true, get: function () { return hero_1.heroTextClass; } });
|
|
5793
|
+
Object.defineProperty(exports, "heroActionsClass", { enumerable: true, get: function () { return hero_1.heroActionsClass; } });
|
|
5794
|
+
Object.defineProperty(exports, "heroActionClass", { enumerable: true, get: function () { return hero_1.heroActionClass; } });
|
|
5795
|
+
Object.defineProperty(exports, "heroActionPrimaryClass", { enumerable: true, get: function () { return hero_1.heroActionPrimaryClass; } });
|
|
5796
|
+
Object.defineProperty(exports, "heroInstallClass", { enumerable: true, get: function () { return hero_1.heroInstallClass; } });
|
|
5797
|
+
Object.defineProperty(exports, "heroCss", { enumerable: true, get: function () { return hero_1.heroCss; } });
|
|
5642
5798
|
var sidebarNav_1 = require("../plggmatic/src/Component/usecase/sidebarNav.ts");
|
|
5643
5799
|
Object.defineProperty(exports, "sidebarNav", { enumerable: true, get: function () { return sidebarNav_1.sidebarNav; } });
|
|
5644
5800
|
Object.defineProperty(exports, "sidebarNavClass", { enumerable: true, get: function () { return sidebarNav_1.sidebarNavClass; } });
|
|
@@ -5757,6 +5913,8 @@ Object.defineProperty(exports, "carouselPrevClass", { enumerable: true, get: fun
|
|
|
5757
5913
|
Object.defineProperty(exports, "carouselNextClass", { enumerable: true, get: function () { return classHooks_4.carouselNextClass; } });
|
|
5758
5914
|
var carouselScript_1 = require("../plggmatic/src/Navigate/usecase/carouselScript.ts");
|
|
5759
5915
|
Object.defineProperty(exports, "carouselInitScript", { enumerable: true, get: function () { return carouselScript_1.carouselInitScript; } });
|
|
5916
|
+
var codeCopyScript_1 = require("../plggmatic/src/Navigate/usecase/codeCopyScript.ts");
|
|
5917
|
+
Object.defineProperty(exports, "codeCopyInitScript", { enumerable: true, get: function () { return codeCopyScript_1.codeCopyInitScript; } });
|
|
5760
5918
|
|
|
5761
5919
|
},
|
|
5762
5920
|
"../plgg-view/src/styleEntry.ts": function (module, exports, require) {
|
|
@@ -6534,6 +6692,11 @@ exports.syntaxKinds = [
|
|
|
6534
6692
|
"regex",
|
|
6535
6693
|
"template",
|
|
6536
6694
|
"punctuation",
|
|
6695
|
+
"type",
|
|
6696
|
+
"function",
|
|
6697
|
+
"property",
|
|
6698
|
+
"constant",
|
|
6699
|
+
"macro",
|
|
6537
6700
|
];
|
|
6538
6701
|
const RAW = {
|
|
6539
6702
|
light: {
|
|
@@ -6544,6 +6707,11 @@ const RAW = {
|
|
|
6544
6707
|
regex: "#116329",
|
|
6545
6708
|
template: "#0a3069",
|
|
6546
6709
|
punctuation: "#57606a",
|
|
6710
|
+
type: "#953800",
|
|
6711
|
+
function: "#8250df",
|
|
6712
|
+
property: "#0550ae",
|
|
6713
|
+
constant: "#0550ae",
|
|
6714
|
+
macro: "#116329",
|
|
6547
6715
|
},
|
|
6548
6716
|
dark: {
|
|
6549
6717
|
keyword: "#ff7b72",
|
|
@@ -6553,6 +6721,11 @@ const RAW = {
|
|
|
6553
6721
|
regex: "#7ee787",
|
|
6554
6722
|
template: "#a5d6ff",
|
|
6555
6723
|
punctuation: "#c9d1d9",
|
|
6724
|
+
type: "#ffa657",
|
|
6725
|
+
function: "#d2a8ff",
|
|
6726
|
+
property: "#79c0ff",
|
|
6727
|
+
constant: "#79c0ff",
|
|
6728
|
+
macro: "#7ee787",
|
|
6556
6729
|
},
|
|
6557
6730
|
};
|
|
6558
6731
|
const rowOf = (get) => ({
|
|
@@ -6563,6 +6736,11 @@ const rowOf = (get) => ({
|
|
|
6563
6736
|
regex: get("regex"),
|
|
6564
6737
|
template: get("template"),
|
|
6565
6738
|
punctuation: get("punctuation"),
|
|
6739
|
+
type: get("type"),
|
|
6740
|
+
function: get("function"),
|
|
6741
|
+
property: get("property"),
|
|
6742
|
+
constant: get("constant"),
|
|
6743
|
+
macro: get("macro"),
|
|
6566
6744
|
});
|
|
6567
6745
|
const mint = (s) => (0, plgg_1.box)("HexColor")(s);
|
|
6568
6746
|
exports.syntaxPalette = {
|
|
@@ -7092,6 +7270,252 @@ exports.pressDim = {
|
|
|
7092
7270
|
styles: (0, style_1.decl)("opacity", "0.8"),
|
|
7093
7271
|
};
|
|
7094
7272
|
|
|
7273
|
+
},
|
|
7274
|
+
"../plggmatic/src/Component/usecase/languageMenu.ts": function (module, exports, require) {
|
|
7275
|
+
"use strict";
|
|
7276
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7277
|
+
exports.languageMenuCss = exports.languageOptionClass = exports.languageListClass = exports.languageToggleClass = exports.languageMenuClass = exports.languageMenu = void 0;
|
|
7278
|
+
const classHooks_1 = require("../plggmatic/src/Meta/model/classHooks.ts");
|
|
7279
|
+
Object.defineProperty(exports, "languageMenuClass", { enumerable: true, get: function () { return classHooks_1.languageMenuClass; } });
|
|
7280
|
+
Object.defineProperty(exports, "languageToggleClass", { enumerable: true, get: function () { return classHooks_1.languageToggleClass; } });
|
|
7281
|
+
Object.defineProperty(exports, "languageListClass", { enumerable: true, get: function () { return classHooks_1.languageListClass; } });
|
|
7282
|
+
Object.defineProperty(exports, "languageOptionClass", { enumerable: true, get: function () { return classHooks_1.languageOptionClass; } });
|
|
7283
|
+
const plgg_view_1 = require("../plgg-view/src/index.ts");
|
|
7284
|
+
const Style_1 = require("../plggmatic/src/Style/index.ts");
|
|
7285
|
+
const cvar = (0, Style_1.colorVar)(Style_1.defaultTheme);
|
|
7286
|
+
const globe = (0, plgg_view_1.svg)([
|
|
7287
|
+
(0, plgg_view_1.attr)("viewBox", "0 0 24 24"),
|
|
7288
|
+
(0, plgg_view_1.attr)("fill", "none"),
|
|
7289
|
+
(0, plgg_view_1.attr)("stroke", "currentColor"),
|
|
7290
|
+
(0, plgg_view_1.attr)("stroke-width", "2"),
|
|
7291
|
+
(0, plgg_view_1.attr)("stroke-linecap", "round"),
|
|
7292
|
+
(0, plgg_view_1.attr)("stroke-linejoin", "round"),
|
|
7293
|
+
(0, plgg_view_1.attr)("aria-hidden", "true"),
|
|
7294
|
+
], [
|
|
7295
|
+
(0, plgg_view_1.circle)([
|
|
7296
|
+
(0, plgg_view_1.attr)("cx", "12"),
|
|
7297
|
+
(0, plgg_view_1.attr)("cy", "12"),
|
|
7298
|
+
(0, plgg_view_1.attr)("r", "10"),
|
|
7299
|
+
], []),
|
|
7300
|
+
(0, plgg_view_1.path)([(0, plgg_view_1.attr)("d", "M2 12h20")], []),
|
|
7301
|
+
(0, plgg_view_1.path)([
|
|
7302
|
+
(0, plgg_view_1.attr)("d", "M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"),
|
|
7303
|
+
], []),
|
|
7304
|
+
]);
|
|
7305
|
+
const option = (o) => (0, plgg_view_1.a)([
|
|
7306
|
+
(0, plgg_view_1.attr)("href", o.href),
|
|
7307
|
+
(0, plgg_view_1.class_)(classHooks_1.languageOptionClass),
|
|
7308
|
+
...(o.current
|
|
7309
|
+
? [(0, plgg_view_1.attr)("aria-current", "true")]
|
|
7310
|
+
: []),
|
|
7311
|
+
], [(0, plgg_view_1.text)(o.label)]);
|
|
7312
|
+
const languageMenu = (props) => (0, plgg_view_1.details)([
|
|
7313
|
+
(0, plgg_view_1.class_)(classHooks_1.languageMenuClass),
|
|
7314
|
+
(0, plgg_view_1.attr)("data-opens", props.opens),
|
|
7315
|
+
], [
|
|
7316
|
+
(0, plgg_view_1.summary)([
|
|
7317
|
+
(0, plgg_view_1.class_)(classHooks_1.languageToggleClass),
|
|
7318
|
+
(0, plgg_view_1.attr)("aria-label", props.label),
|
|
7319
|
+
], [globe]),
|
|
7320
|
+
(0, plgg_view_1.div)([
|
|
7321
|
+
(0, plgg_view_1.class_)(classHooks_1.languageListClass),
|
|
7322
|
+
(0, plgg_view_1.attr)("role", "menu"),
|
|
7323
|
+
], props.options.map(option)),
|
|
7324
|
+
]);
|
|
7325
|
+
exports.languageMenu = languageMenu;
|
|
7326
|
+
const menu = `.${classHooks_1.languageMenuClass}`;
|
|
7327
|
+
const toggle = `.${classHooks_1.languageToggleClass}`;
|
|
7328
|
+
const list = `.${classHooks_1.languageListClass}`;
|
|
7329
|
+
const item = `.${classHooks_1.languageOptionClass}`;
|
|
7330
|
+
exports.languageMenuCss = `${menu}{position:relative;display:inline-flex}` +
|
|
7331
|
+
`${toggle}{display:inline-flex;align-items:center;` +
|
|
7332
|
+
`justify-content:center;width:38px;height:38px;` +
|
|
7333
|
+
`border-radius:50%;border:1px solid ${cvar("border")};` +
|
|
7334
|
+
`background:${cvar("surface")};color:${cvar("text")};` +
|
|
7335
|
+
`cursor:pointer;list-style:none;` +
|
|
7336
|
+
`transition:border-color 0.15s}` +
|
|
7337
|
+
`${toggle}::-webkit-details-marker{display:none}` +
|
|
7338
|
+
`${toggle}:hover{border-color:${cvar("primary-base")}}` +
|
|
7339
|
+
`${toggle}:focus-visible{outline:2px solid ` +
|
|
7340
|
+
`${cvar("primary-base")};outline-offset:2px}` +
|
|
7341
|
+
`${toggle} svg{display:block;width:18px;height:18px}` +
|
|
7342
|
+
`${list}{position:absolute;z-index:60;` +
|
|
7343
|
+
`min-width:8.5rem;padding:0.35rem;display:flex;` +
|
|
7344
|
+
`flex-direction:column;gap:0.15rem;` +
|
|
7345
|
+
`background:${cvar("surface")};` +
|
|
7346
|
+
`border:1px solid ${cvar("border")}}` +
|
|
7347
|
+
`${menu}[data-opens="down"] ${list}{` +
|
|
7348
|
+
`top:calc(100% + 6px);right:0}` +
|
|
7349
|
+
`${menu}[data-opens="up"] ${list}{` +
|
|
7350
|
+
`bottom:calc(100% + 6px);left:0}` +
|
|
7351
|
+
`${item}{display:block;padding:0.4rem 0.6rem;` +
|
|
7352
|
+
`font-size:0.85rem;line-height:1.2;` +
|
|
7353
|
+
`white-space:nowrap;color:${cvar("text")};` +
|
|
7354
|
+
`text-decoration:none}` +
|
|
7355
|
+
`${item}:hover,${item}:focus-visible{` +
|
|
7356
|
+
`background:${cvar("primary-base")};` +
|
|
7357
|
+
`color:${cvar("surface")}}` +
|
|
7358
|
+
`${item}[aria-current]{font-weight:600}`;
|
|
7359
|
+
|
|
7360
|
+
},
|
|
7361
|
+
"../plggmatic/src/Component/usecase/headingAnchor.ts": function (module, exports, require) {
|
|
7362
|
+
"use strict";
|
|
7363
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7364
|
+
exports.headingAnchorAppearanceCss = exports.headingAnchorSystemCss = exports.headingAnchor = exports.headingAnchorClass = void 0;
|
|
7365
|
+
const plgg_view_1 = require("../plgg-view/src/index.ts");
|
|
7366
|
+
const classHooks_1 = require("../plggmatic/src/Meta/model/classHooks.ts");
|
|
7367
|
+
Object.defineProperty(exports, "headingAnchorClass", { enumerable: true, get: function () { return classHooks_1.headingAnchorClass; } });
|
|
7368
|
+
const Style_1 = require("../plggmatic/src/Style/index.ts");
|
|
7369
|
+
const headingAnchor = (id) => (0, plgg_view_1.a)([
|
|
7370
|
+
(0, plgg_view_1.class_)(classHooks_1.headingAnchorClass),
|
|
7371
|
+
(0, plgg_view_1.attr)("href", `#${id}`),
|
|
7372
|
+
(0, plgg_view_1.attr)("aria-hidden", "true"),
|
|
7373
|
+
(0, plgg_view_1.attr)("tabindex", "-1"),
|
|
7374
|
+
], []);
|
|
7375
|
+
exports.headingAnchor = headingAnchor;
|
|
7376
|
+
const link = `a.${classHooks_1.headingAnchorClass}`;
|
|
7377
|
+
const heading = ":is(h1,h2,h3,h4)[id]";
|
|
7378
|
+
const headingLink = `${heading} ${link}`;
|
|
7379
|
+
exports.headingAnchorSystemCss = `${heading}:has(${link}){position:relative}` +
|
|
7380
|
+
`${headingLink}{position:absolute;inset-inline-end:100%;margin:0;opacity:0}` +
|
|
7381
|
+
`${link}::before{content:"#"}` +
|
|
7382
|
+
`${heading}:hover ${link}{opacity:1}` +
|
|
7383
|
+
`@media ${(0, Style_1.maxWidth)("lg")}{${headingLink}{display:none}}`;
|
|
7384
|
+
const headingAnchorAppearanceCss = (theme) => `${headingLink}{padding:0;padding-inline-end:.25em;color:${(0, Style_1.colorVar)(theme)("primary-base")};text-decoration:none}`;
|
|
7385
|
+
exports.headingAnchorAppearanceCss = headingAnchorAppearanceCss;
|
|
7386
|
+
|
|
7387
|
+
},
|
|
7388
|
+
"../plggmatic/src/Component/usecase/docPager.ts": function (module, exports, require) {
|
|
7389
|
+
"use strict";
|
|
7390
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7391
|
+
exports.docPagerCss = exports.docPagerTitleClass = exports.docPagerDirClass = exports.docPagerLinkClass = exports.docPagerClass = exports.docPager = void 0;
|
|
7392
|
+
const plgg_1 = require("../plgg/src/index.ts");
|
|
7393
|
+
const classHooks_1 = require("../plggmatic/src/Meta/model/classHooks.ts");
|
|
7394
|
+
Object.defineProperty(exports, "docPagerClass", { enumerable: true, get: function () { return classHooks_1.docPagerClass; } });
|
|
7395
|
+
Object.defineProperty(exports, "docPagerLinkClass", { enumerable: true, get: function () { return classHooks_1.docPagerLinkClass; } });
|
|
7396
|
+
Object.defineProperty(exports, "docPagerDirClass", { enumerable: true, get: function () { return classHooks_1.docPagerDirClass; } });
|
|
7397
|
+
Object.defineProperty(exports, "docPagerTitleClass", { enumerable: true, get: function () { return classHooks_1.docPagerTitleClass; } });
|
|
7398
|
+
const plgg_view_1 = require("../plgg-view/src/index.ts");
|
|
7399
|
+
const Style_1 = require("../plggmatic/src/Style/index.ts");
|
|
7400
|
+
const cvar = (0, Style_1.colorVar)(Style_1.defaultTheme);
|
|
7401
|
+
const link = (dir, rel) => (l) => (0, plgg_view_1.a)([
|
|
7402
|
+
(0, plgg_view_1.attr)("href", l.href),
|
|
7403
|
+
(0, plgg_view_1.attr)("rel", rel),
|
|
7404
|
+
(0, plgg_view_1.attr)("data-dir", rel),
|
|
7405
|
+
(0, plgg_view_1.class_)(classHooks_1.docPagerLinkClass),
|
|
7406
|
+
], [
|
|
7407
|
+
(0, plgg_view_1.span)([(0, plgg_view_1.class_)(classHooks_1.docPagerDirClass)], [(0, plgg_view_1.text)(dir)]),
|
|
7408
|
+
(0, plgg_view_1.span)([(0, plgg_view_1.class_)(classHooks_1.docPagerTitleClass)], [(0, plgg_view_1.text)(l.title)]),
|
|
7409
|
+
]);
|
|
7410
|
+
const slot = (o, build) => (0, plgg_1.matchOption)(() => [], (l) => [
|
|
7411
|
+
build(l),
|
|
7412
|
+
])(o);
|
|
7413
|
+
const docPager = (props) => (0, plgg_view_1.nav)([
|
|
7414
|
+
(0, plgg_view_1.class_)(classHooks_1.docPagerClass),
|
|
7415
|
+
(0, plgg_view_1.attr)("aria-label", props.label),
|
|
7416
|
+
], [
|
|
7417
|
+
...slot(props.previous, link(props.previousLabel, "prev")),
|
|
7418
|
+
...slot(props.next, link(props.nextLabel, "next")),
|
|
7419
|
+
]);
|
|
7420
|
+
exports.docPager = docPager;
|
|
7421
|
+
const box = `.${classHooks_1.docPagerClass}`;
|
|
7422
|
+
const item = `${box} a.${classHooks_1.docPagerLinkClass}`;
|
|
7423
|
+
exports.docPagerCss = `${box}{display:grid;` +
|
|
7424
|
+
`grid-template-columns:1fr 1fr;gap:14px;` +
|
|
7425
|
+
`margin-top:56px;max-width:46em}` +
|
|
7426
|
+
`${item}{display:flex;flex-direction:column;` +
|
|
7427
|
+
`padding:14px 21px;text-decoration:none;` +
|
|
7428
|
+
`border:1px solid ${cvar("border")};` +
|
|
7429
|
+
`color:${cvar("text")}}` +
|
|
7430
|
+
`${item}:hover{border-color:${cvar("primary-base")}}` +
|
|
7431
|
+
`${item}[data-dir="next"]{grid-column:2;` +
|
|
7432
|
+
`text-align:right}` +
|
|
7433
|
+
`.${classHooks_1.docPagerDirClass}{font-size:13px;` +
|
|
7434
|
+
`line-height:28px;color:${cvar("muted")}}` +
|
|
7435
|
+
`.${classHooks_1.docPagerTitleClass}{font-size:16px;` +
|
|
7436
|
+
`line-height:28px;font-weight:600}` +
|
|
7437
|
+
`@media (max-width:639px){${box}{` +
|
|
7438
|
+
`grid-template-columns:1fr}` +
|
|
7439
|
+
`${item}[data-dir="next"]{grid-column:1}}`;
|
|
7440
|
+
|
|
7441
|
+
},
|
|
7442
|
+
"../plggmatic/src/Component/usecase/hero.ts": function (module, exports, require) {
|
|
7443
|
+
"use strict";
|
|
7444
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7445
|
+
exports.heroCss = exports.heroInstallClass = exports.heroActionPrimaryClass = exports.heroActionClass = exports.heroActionsClass = exports.heroTextClass = exports.heroTaglineClass = exports.heroNameClass = exports.heroClass = exports.hero = void 0;
|
|
7446
|
+
const classHooks_1 = require("../plggmatic/src/Meta/model/classHooks.ts");
|
|
7447
|
+
Object.defineProperty(exports, "heroClass", { enumerable: true, get: function () { return classHooks_1.heroClass; } });
|
|
7448
|
+
Object.defineProperty(exports, "heroNameClass", { enumerable: true, get: function () { return classHooks_1.heroNameClass; } });
|
|
7449
|
+
Object.defineProperty(exports, "heroTaglineClass", { enumerable: true, get: function () { return classHooks_1.heroTaglineClass; } });
|
|
7450
|
+
Object.defineProperty(exports, "heroTextClass", { enumerable: true, get: function () { return classHooks_1.heroTextClass; } });
|
|
7451
|
+
Object.defineProperty(exports, "heroActionsClass", { enumerable: true, get: function () { return classHooks_1.heroActionsClass; } });
|
|
7452
|
+
Object.defineProperty(exports, "heroActionClass", { enumerable: true, get: function () { return classHooks_1.heroActionClass; } });
|
|
7453
|
+
Object.defineProperty(exports, "heroActionPrimaryClass", { enumerable: true, get: function () { return classHooks_1.heroActionPrimaryClass; } });
|
|
7454
|
+
Object.defineProperty(exports, "heroInstallClass", { enumerable: true, get: function () { return classHooks_1.heroInstallClass; } });
|
|
7455
|
+
const plgg_view_1 = require("../plgg-view/src/index.ts");
|
|
7456
|
+
const Style_1 = require("../plggmatic/src/Style/index.ts");
|
|
7457
|
+
const cvar = (0, Style_1.colorVar)(Style_1.defaultTheme);
|
|
7458
|
+
const action = (item) => (0, plgg_view_1.a)([
|
|
7459
|
+
(0, plgg_view_1.attr)("href", item.href),
|
|
7460
|
+
(0, plgg_view_1.class_)(item.primary
|
|
7461
|
+
? classHooks_1.heroActionClass +
|
|
7462
|
+
" " +
|
|
7463
|
+
classHooks_1.heroActionPrimaryClass
|
|
7464
|
+
: classHooks_1.heroActionClass),
|
|
7465
|
+
], [(0, plgg_view_1.text)(item.label)]);
|
|
7466
|
+
const hero = (props) => (0, plgg_view_1.section)([(0, plgg_view_1.class_)(classHooks_1.heroClass)], [
|
|
7467
|
+
(0, plgg_view_1.h1)([(0, plgg_view_1.class_)(classHooks_1.heroNameClass)], [(0, plgg_view_1.text)(props.name)]),
|
|
7468
|
+
(0, plgg_view_1.p)([(0, plgg_view_1.class_)(classHooks_1.heroTaglineClass)], [(0, plgg_view_1.text)(props.tagline)]),
|
|
7469
|
+
...props.text.map((t) => (0, plgg_view_1.p)([(0, plgg_view_1.class_)(classHooks_1.heroTextClass)], [(0, plgg_view_1.text)(t)])),
|
|
7470
|
+
...(props.actions.length > 0
|
|
7471
|
+
? [
|
|
7472
|
+
(0, plgg_view_1.div)([(0, plgg_view_1.class_)(classHooks_1.heroActionsClass)], props.actions.map(action)),
|
|
7473
|
+
]
|
|
7474
|
+
: []),
|
|
7475
|
+
...props.install.map((cmd) => (0, plgg_view_1.p)([(0, plgg_view_1.class_)(classHooks_1.heroInstallClass)], [(0, plgg_view_1.code)([], [(0, plgg_view_1.text)(cmd)])])),
|
|
7476
|
+
]);
|
|
7477
|
+
exports.hero = hero;
|
|
7478
|
+
const box = `.${classHooks_1.heroClass}`;
|
|
7479
|
+
const btn = `${box} a.${classHooks_1.heroActionClass}`;
|
|
7480
|
+
exports.heroCss = `${box}{padding:56px 0 42px;` +
|
|
7481
|
+
`margin-bottom:14px;max-width:38em}` +
|
|
7482
|
+
`${box} .${classHooks_1.heroNameClass}{font-size:48px;` +
|
|
7483
|
+
`line-height:56px;font-weight:700;` +
|
|
7484
|
+
`letter-spacing:-0.01em;margin:0 0 14px;` +
|
|
7485
|
+
`border:0;padding:0;font-feature-settings:"palt"}` +
|
|
7486
|
+
`${box} .${classHooks_1.heroTaglineClass}{font-size:28px;` +
|
|
7487
|
+
`line-height:42px;font-weight:700;` +
|
|
7488
|
+
`font-feature-settings:"palt";` +
|
|
7489
|
+
`color:${cvar("text")};margin:0 0 14px}` +
|
|
7490
|
+
`${box} .${classHooks_1.heroTextClass}{font-size:16px;` +
|
|
7491
|
+
`line-height:28px;color:${cvar("muted")};` +
|
|
7492
|
+
`margin:0 0 28px}` +
|
|
7493
|
+
`.${classHooks_1.heroActionsClass}{display:flex;flex-wrap:wrap;` +
|
|
7494
|
+
`gap:14px;margin:0 0 28px}` +
|
|
7495
|
+
`${btn}{display:inline-flex;align-items:center;` +
|
|
7496
|
+
`margin:0;padding:7px 21px;font-size:15px;` +
|
|
7497
|
+
`line-height:28px;` +
|
|
7498
|
+
`font-weight:600;text-decoration:none;` +
|
|
7499
|
+
`border:1px solid ${cvar("border")};` +
|
|
7500
|
+
`color:${cvar("text")};background:${cvar("surface")}}` +
|
|
7501
|
+
`${btn}:hover{border-color:${cvar("primary-base")};` +
|
|
7502
|
+
`color:${cvar("text")};text-decoration:none}` +
|
|
7503
|
+
`${box} a.${classHooks_1.heroActionPrimaryClass}{` +
|
|
7504
|
+
`background:${cvar("primary-base")};` +
|
|
7505
|
+
`border-color:${cvar("primary-base")};` +
|
|
7506
|
+
`color:${cvar("surface")}}` +
|
|
7507
|
+
`${box} a.${classHooks_1.heroActionPrimaryClass}:hover{opacity:0.88;` +
|
|
7508
|
+
`color:${cvar("surface")}}` +
|
|
7509
|
+
`.${classHooks_1.heroInstallClass}{margin:0}` +
|
|
7510
|
+
`${box} .${classHooks_1.heroInstallClass} code{` +
|
|
7511
|
+
`display:inline-block;` +
|
|
7512
|
+
`padding:7px 14px;font-size:14px;line-height:28px;` +
|
|
7513
|
+
`border:1px solid ${cvar("border")};` +
|
|
7514
|
+
`background:${cvar("surface-2")}}` +
|
|
7515
|
+
`@media (max-width:639px){${box}{padding:28px 0}` +
|
|
7516
|
+
`${box} .${classHooks_1.heroNameClass}{font-size:33px;line-height:42px}` +
|
|
7517
|
+
`${box} .${classHooks_1.heroTaglineClass}{font-size:20px;line-height:28px}}`;
|
|
7518
|
+
|
|
7095
7519
|
},
|
|
7096
7520
|
"../plggmatic/src/Component/usecase/sidebarNav.ts": function (module, exports, require) {
|
|
7097
7521
|
"use strict";
|
|
@@ -7114,18 +7538,26 @@ exports.sidebarNavClass = {
|
|
|
7114
7538
|
};
|
|
7115
7539
|
const sidebarNav = (props) => {
|
|
7116
7540
|
const c = exports.sidebarNavClass;
|
|
7117
|
-
const linkAttrs = (href) =>
|
|
7118
|
-
|
|
7119
|
-
|
|
7120
|
-
(0, plgg_view_1.attr)("
|
|
7121
|
-
|
|
7122
|
-
|
|
7123
|
-
|
|
7124
|
-
|
|
7125
|
-
|
|
7126
|
-
|
|
7127
|
-
|
|
7541
|
+
const linkAttrs = (href, item) => [
|
|
7542
|
+
...(item?.id === undefined
|
|
7543
|
+
? []
|
|
7544
|
+
: [(0, plgg_view_1.attr)("id", item.id)]),
|
|
7545
|
+
(0, plgg_view_1.attr)("href", props.resolve(href)),
|
|
7546
|
+
...(props.current(href)
|
|
7547
|
+
? [(0, plgg_view_1.attr)("aria-current", "page")]
|
|
7548
|
+
: []),
|
|
7549
|
+
...(item?.title === undefined
|
|
7550
|
+
? []
|
|
7551
|
+
: [(0, plgg_view_1.attr)("title", item.title)]),
|
|
7552
|
+
(0, plgg_view_1.class_)(c.link),
|
|
7553
|
+
];
|
|
7554
|
+
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, item), [
|
|
7128
7555
|
(0, plgg_view_1.span)([(0, plgg_view_1.class_)(c.label)], [(0, plgg_view_1.text)(item.label)]),
|
|
7556
|
+
...(item.hint === undefined
|
|
7557
|
+
? []
|
|
7558
|
+
: [
|
|
7559
|
+
(0, plgg_view_1.span)([(0, plgg_view_1.class_)(classHooks_1.hintClass)], [(0, plgg_view_1.text)(item.hint)]),
|
|
7560
|
+
]),
|
|
7129
7561
|
]))(item.href);
|
|
7130
7562
|
const renderItem = (item) => item.children.length === 0
|
|
7131
7563
|
? leaf(item)
|
|
@@ -7137,17 +7569,19 @@ const sidebarNav = (props) => {
|
|
|
7137
7569
|
]);
|
|
7138
7570
|
const holdsCurrent = (items) => items.some((item) => (0, plgg_1.matchOption)(() => false, props.current)(item.href) ||
|
|
7139
7571
|
holdsCurrent(item.children));
|
|
7140
|
-
const group = (g) =>
|
|
7141
|
-
? (0, plgg_view_1.
|
|
7142
|
-
|
|
7143
|
-
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7572
|
+
const group = (g) => g.label === ""
|
|
7573
|
+
? (0, plgg_view_1.div)([(0, plgg_view_1.class_)(c.group)], g.items.map(renderItem))
|
|
7574
|
+
: props.toggle
|
|
7575
|
+
? (0, plgg_view_1.details)(holdsCurrent(g.items)
|
|
7576
|
+
? [(0, plgg_view_1.class_)(c.group), (0, plgg_view_1.attr)("open", "")]
|
|
7577
|
+
: [(0, plgg_view_1.class_)(c.group)], [
|
|
7578
|
+
(0, plgg_view_1.summary)([(0, plgg_view_1.class_)(c.groupTitle)], [(0, plgg_view_1.text)(g.label)]),
|
|
7579
|
+
...g.items.map(renderItem),
|
|
7580
|
+
])
|
|
7581
|
+
: (0, plgg_view_1.div)([(0, plgg_view_1.class_)(c.group)], [
|
|
7582
|
+
(0, plgg_view_1.div)([(0, plgg_view_1.class_)(c.groupTitle)], [(0, plgg_view_1.text)(g.label)]),
|
|
7583
|
+
...g.items.map(renderItem),
|
|
7584
|
+
]);
|
|
7151
7585
|
return (0, plgg_view_1.nav)([
|
|
7152
7586
|
(0, plgg_view_1.class_)(props.numbered
|
|
7153
7587
|
? c.nav + " " + c.numbered
|
|
@@ -7323,7 +7757,8 @@ exports.carouselInitScript = "(function(){" +
|
|
|
7323
7757
|
"../plggmatic/src/Navigate/model/marker.ts": function (module, exports, require) {
|
|
7324
7758
|
"use strict";
|
|
7325
7759
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7326
|
-
exports.frameCss = exports.frameClass = exports.embeddedAttr = exports.embedParam = exports.embeddersMeta = exports.partnersMeta = exports.documentColumn = exports.strip = exports.navHookName = exports.spanAttr = exports.columnAttr = exports.stripAttr = void 0;
|
|
7760
|
+
exports.frameCss = exports.frameReadyAttr = exports.frameClass = exports.embeddedAttr = exports.embedParam = exports.embeddersMeta = exports.partnersMeta = exports.matchesOriginScript = exports.documentColumn = exports.strip = exports.navHookName = exports.spanAttr = exports.columnAttr = exports.stripAttr = void 0;
|
|
7761
|
+
const policy_1 = require("../plggmatic/src/Joining/model/policy.ts");
|
|
7327
7762
|
const plgg_1 = require("../plgg/src/index.ts");
|
|
7328
7763
|
const plgg_view_1 = require("../plgg-view/src/index.ts");
|
|
7329
7764
|
const combinators_1 = require("../plggmatic/src/Layout/usecase/combinators.ts");
|
|
@@ -7341,18 +7776,178 @@ const documentColumn = (route, span, parts, children) => (0, combinators_1.colum
|
|
|
7341
7776
|
])(span),
|
|
7342
7777
|
], parts, children);
|
|
7343
7778
|
exports.documentColumn = documentColumn;
|
|
7779
|
+
exports.matchesOriginScript = policy_1.matchesOrigin.toString();
|
|
7344
7780
|
exports.partnersMeta = `${identity_1.cssPrefix}-partners`;
|
|
7345
7781
|
exports.embeddersMeta = `${identity_1.cssPrefix}-embedders`;
|
|
7346
7782
|
exports.embedParam = `${identity_1.cssPrefix}-embed`;
|
|
7347
7783
|
exports.embeddedAttr = `data-${identity_1.cssPrefix}-embedded`;
|
|
7348
7784
|
exports.frameClass = `${identity_1.cssPrefix}-frame`;
|
|
7785
|
+
exports.frameReadyAttr = `data-${identity_1.cssPrefix}-frame-ready`;
|
|
7349
7786
|
const frameCss = (p) => `
|
|
7350
7787
|
.${p}-frame{flex:1 1 auto;min-height:0;width:100%;border-style:none}
|
|
7351
7788
|
[data-${p}-embedded] :is(.${p}-shell-bar,.${p}-shell-side,.${p}-shell-backdrop,.${p}-shell-head,.${p}-trail){display:none}
|
|
7352
|
-
[data-${p}-embedded] .${p}-shell-page{flex:1 1
|
|
7789
|
+
[data-${p}-embedded] .${p}-shell-page{flex:1 1 0;width:100%;min-width:0;max-width:none}
|
|
7790
|
+
[data-${p}-embedded] .${p}-row{overflow-x:hidden}
|
|
7353
7791
|
`;
|
|
7354
7792
|
exports.frameCss = frameCss;
|
|
7355
7793
|
|
|
7794
|
+
},
|
|
7795
|
+
"../plggmatic/src/Joining/model/policy.ts": function (module, exports, require) {
|
|
7796
|
+
"use strict";
|
|
7797
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7798
|
+
exports.joiningHeaders = exports.publicDocumentJoining = exports.joiningDirectives = exports.mayHonourRequest = exports.mayOpenColumn = exports.matchesOrigin = exports.defineJoining = void 0;
|
|
7799
|
+
const plgg_1 = require("../plgg/src/index.ts");
|
|
7800
|
+
const origin_1 = require("../plggmatic/src/Joining/model/origin.ts");
|
|
7801
|
+
const invalid = (message) => (0, plgg_1.err)((0, plgg_1.invalidError)({ message }));
|
|
7802
|
+
const trust = (v) => v === "public" || v === "organization"
|
|
7803
|
+
? (0, plgg_1.ok)(v)
|
|
7804
|
+
: invalid("unknown joining trust");
|
|
7805
|
+
const path = (v) => typeof v === "string" &&
|
|
7806
|
+
/^\/(?:[A-Za-z0-9._~-]+(?:\/[A-Za-z0-9._~-]+)*\/?)?$/.test(v) &&
|
|
7807
|
+
!v
|
|
7808
|
+
.split("/")
|
|
7809
|
+
.some((s) => s === "." || s === "..") &&
|
|
7810
|
+
new URL(v, "https://route.invalid").pathname ===
|
|
7811
|
+
v
|
|
7812
|
+
? (0, plgg_1.ok)(v)
|
|
7813
|
+
: invalid("expected a fixed canonical path");
|
|
7814
|
+
const peer = (v) => (0, plgg_1.cast)(v, plgg_1.asObj, (0, plgg_1.forProp)("origin", origin_1.asOrigin), (0, plgg_1.forProp)("trust", trust));
|
|
7815
|
+
const partner = (v) => (0, plgg_1.cast)(v, peer, (0, plgg_1.forProp)("paths", (0, plgg_1.asReadonlyArray)(path)));
|
|
7816
|
+
const route = (v) => (0, plgg_1.cast)(v, plgg_1.asObj, (0, plgg_1.forProp)("path", path), (0, plgg_1.forProp)("access", trust), (0, plgg_1.forProp)("mode", (m) => m === "readOnly"
|
|
7817
|
+
? (0, plgg_1.ok)(m)
|
|
7818
|
+
: invalid("expected readOnly")), (0, plgg_1.forProp)("label", plgg_1.asSoftStr));
|
|
7819
|
+
const grant = (v) => (0, plgg_1.cast)(v, plgg_1.asObj, (0, plgg_1.forProp)("sender", origin_1.asOrigin), (0, plgg_1.forProp)("origin", origin_1.asOrigin), (0, plgg_1.forProp)("path", path));
|
|
7820
|
+
const list = (v) => (0, plgg_1.pipe)(v, (0, plgg_1.getOr)([]));
|
|
7821
|
+
const distinct = (xs) => new Set(xs).size === xs.length;
|
|
7822
|
+
const distinctPaths = (paths) => distinct(paths.map((path) => path.replace(/\/$/, "")));
|
|
7823
|
+
const consistent = (p) => {
|
|
7824
|
+
const peers = [...p.partners, ...p.embedders];
|
|
7825
|
+
return peers.some((a) => a.origin === p.origin ||
|
|
7826
|
+
peers.some((b) => a.origin === b.origin &&
|
|
7827
|
+
a.trust !== b.trust))
|
|
7828
|
+
? invalid("self origin or conflicting peer trust")
|
|
7829
|
+
: !distinctPaths(p.routes.map((r) => r.path)) ||
|
|
7830
|
+
!distinct(p.partners.map((r) => r.origin)) ||
|
|
7831
|
+
p.partners.some((r) => !distinctPaths(r.paths)) ||
|
|
7832
|
+
!distinctPaths(p.parentRoutes)
|
|
7833
|
+
? invalid("ambiguous joining route")
|
|
7834
|
+
: (0, plgg_1.ok)(p);
|
|
7835
|
+
};
|
|
7836
|
+
const defineJoining = (input) => (0, plgg_1.pipe)((0, plgg_1.cast)(input, plgg_1.asObj, (0, plgg_1.forProp)("origin", origin_1.asOrigin), (0, plgg_1.forOptionProp)("partners", (0, plgg_1.asReadonlyArray)(partner)), (0, plgg_1.forOptionProp)("embedders", (0, plgg_1.asReadonlyArray)(peer)), (0, plgg_1.forOptionProp)("routes", (0, plgg_1.asReadonlyArray)(route)), (0, plgg_1.forOptionProp)("requests", (0, plgg_1.asReadonlyArray)(grant)), (0, plgg_1.forOptionProp)("frames", (0, plgg_1.asReadonlyArray)(origin_1.asOrigin)), (0, plgg_1.forOptionProp)("parentRoutes", (0, plgg_1.asReadonlyArray)(path))), (0, plgg_1.chainResult)((v) => consistent({
|
|
7837
|
+
origin: v.origin,
|
|
7838
|
+
partners: list(v.partners),
|
|
7839
|
+
embedders: list(v.embedders),
|
|
7840
|
+
requests: list(v.requests),
|
|
7841
|
+
routes: list(v.routes),
|
|
7842
|
+
frames: list(v.frames),
|
|
7843
|
+
parentRoutes: list(v.parentRoutes),
|
|
7844
|
+
})));
|
|
7845
|
+
exports.defineJoining = defineJoining;
|
|
7846
|
+
const matchesOrigin = (origins, origin) => origins.includes(origin);
|
|
7847
|
+
exports.matchesOrigin = matchesOrigin;
|
|
7848
|
+
const mayOpenColumn = (origin, path) => (policy) => policy.partners.some((p) => (0, exports.matchesOrigin)([p.origin], origin) &&
|
|
7849
|
+
p.paths.includes(path));
|
|
7850
|
+
exports.mayOpenColumn = mayOpenColumn;
|
|
7851
|
+
const mayHonourRequest = (sender, origin, path) => (policy) => policy.requests.some((g) => g.sender === sender &&
|
|
7852
|
+
g.origin === origin &&
|
|
7853
|
+
g.path === path) &&
|
|
7854
|
+
policy.partners.some((p) => p.origin === sender &&
|
|
7855
|
+
(origin === policy.origin
|
|
7856
|
+
? policy.routes.some((r) => r.path === path &&
|
|
7857
|
+
(r.access === "public" ||
|
|
7858
|
+
p.trust === "organization"))
|
|
7859
|
+
: policy.partners.some((t) => t.origin === origin &&
|
|
7860
|
+
t.paths.includes(path) &&
|
|
7861
|
+
(t.trust === "public" ||
|
|
7862
|
+
p.trust === "organization"))));
|
|
7863
|
+
exports.mayHonourRequest = mayHonourRequest;
|
|
7864
|
+
const sources = (xs) => xs.length
|
|
7865
|
+
? [...new Set(xs)].join(" ")
|
|
7866
|
+
: "'none'";
|
|
7867
|
+
const joiningDirectives = (policy, path) => ({
|
|
7868
|
+
"frame-src": sources(policy.parentRoutes.includes(path)
|
|
7869
|
+
? [
|
|
7870
|
+
...policy.partners.map((p) => p.origin),
|
|
7871
|
+
...policy.frames,
|
|
7872
|
+
]
|
|
7873
|
+
: []),
|
|
7874
|
+
"frame-ancestors": sources(policy.embedders
|
|
7875
|
+
.filter((e) => policy.routes.some((r) => r.path === path &&
|
|
7876
|
+
(r.access === "public" ||
|
|
7877
|
+
e.trust === "organization")))
|
|
7878
|
+
.map((e) => e.origin)),
|
|
7879
|
+
});
|
|
7880
|
+
exports.joiningDirectives = joiningDirectives;
|
|
7881
|
+
const publicPeer = (origin) => ({
|
|
7882
|
+
origin,
|
|
7883
|
+
trust: "public",
|
|
7884
|
+
});
|
|
7885
|
+
const publicDocumentJoining = (partners, embedders, frames) => ({
|
|
7886
|
+
partners: partners.map(publicPeer),
|
|
7887
|
+
embedders: embedders.map(publicPeer),
|
|
7888
|
+
frames,
|
|
7889
|
+
});
|
|
7890
|
+
exports.publicDocumentJoining = publicDocumentJoining;
|
|
7891
|
+
const joiningHeaders = (policy, resolvedPath) => ({
|
|
7892
|
+
"Content-Security-Policy": Object.entries((0, exports.joiningDirectives)(policy, resolvedPath))
|
|
7893
|
+
.map(([name, sources]) => name + " " + sources)
|
|
7894
|
+
.join("; "),
|
|
7895
|
+
});
|
|
7896
|
+
exports.joiningHeaders = joiningHeaders;
|
|
7897
|
+
|
|
7898
|
+
},
|
|
7899
|
+
"../plggmatic/src/Joining/model/origin.ts": function (module, exports, require) {
|
|
7900
|
+
"use strict";
|
|
7901
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7902
|
+
exports.asOrigin = void 0;
|
|
7903
|
+
const plgg_1 = require("../plgg/src/index.ts");
|
|
7904
|
+
const originOf = (value) => URL.canParse(value)
|
|
7905
|
+
? new URL(value).origin
|
|
7906
|
+
: "";
|
|
7907
|
+
const local = (value) => ["localhost", "127.0.0.1"].includes(new URL(value).hostname);
|
|
7908
|
+
const asOrigin = (value) => typeof value === "string" &&
|
|
7909
|
+
originOf(value) === value &&
|
|
7910
|
+
!value.includes("*") &&
|
|
7911
|
+
/^https?:\/\/[a-z0-9.-]+(:\d+)?$/.test(value) &&
|
|
7912
|
+
(value.startsWith("https://") ||
|
|
7913
|
+
(value.startsWith("http://") && local(value)))
|
|
7914
|
+
? (0, plgg_1.ok)(value)
|
|
7915
|
+
: (0, plgg_1.err)((0, plgg_1.invalidError)({
|
|
7916
|
+
message: `a joined site must be an exact origin such as 'https://docs.example.com' (https, no path), got ${typeof value === "object" || typeof value === "bigint" ? typeof value : JSON.stringify(value)}`,
|
|
7917
|
+
}));
|
|
7918
|
+
exports.asOrigin = asOrigin;
|
|
7919
|
+
|
|
7920
|
+
},
|
|
7921
|
+
"../plggmatic/src/Navigate/usecase/codeCopyScript.ts": function (module, exports, require) {
|
|
7922
|
+
"use strict";
|
|
7923
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7924
|
+
exports.codeCopyInitScript = void 0;
|
|
7925
|
+
const classHooks_1 = require("../plggmatic/src/Meta/model/classHooks.ts");
|
|
7926
|
+
const q = (value) => JSON.stringify(value);
|
|
7927
|
+
const clipboardIcon = '<svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.3"><rect x="5.5" y="1.5" width="8" height="10" rx="1.5"/><path d="M3.5 4.5v8.5a1.5 1.5 0 0 0 1.5 1.5h6"/></svg>';
|
|
7928
|
+
const tickIcon = '<svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.6"><path d="M3 8.5l3.2 3L13 4.5"/></svg>';
|
|
7929
|
+
exports.codeCopyInitScript = "(function(){" +
|
|
7930
|
+
"if(!navigator.clipboard){return;}" +
|
|
7931
|
+
`var D=${q("." + classHooks_1.docClass)},B=${q(classHooks_1.codeCopyClass)},` +
|
|
7932
|
+
`I=${q(clipboardIcon)},T=${q(tickIcon)};` +
|
|
7933
|
+
"function arm(){var ps=document.querySelectorAll(D+' pre');" +
|
|
7934
|
+
"for(var i=0;i<ps.length;i++){(function(p){" +
|
|
7935
|
+
"if(p.querySelector('.'+B)){return;}" +
|
|
7936
|
+
"var b=document.createElement('button');" +
|
|
7937
|
+
"b.type='button';b.className=B;b.innerHTML=I;" +
|
|
7938
|
+
"b.setAttribute('aria-label','コードをコピー');" +
|
|
7939
|
+
"b.addEventListener('click',function(){" +
|
|
7940
|
+
"var c=p.querySelector('code')||p;" +
|
|
7941
|
+
"navigator.clipboard.writeText(c.innerText).then(function(){" +
|
|
7942
|
+
"b.innerHTML=T;b.setAttribute('data-copied','');b.setAttribute('aria-label','コピーしました');" +
|
|
7943
|
+
"setTimeout(function(){b.innerHTML=I;b.removeAttribute('data-copied');b.setAttribute('aria-label','コードをコピー');},1600);" +
|
|
7944
|
+
"},function(){});});" +
|
|
7945
|
+
"p.appendChild(b);})(ps[i]);}}" +
|
|
7946
|
+
"arm();document.addEventListener('plgg:columns',arm);" +
|
|
7947
|
+
"if(window.MutationObserver&&document.body){" +
|
|
7948
|
+
"new MutationObserver(arm).observe(document.body,{childList:true,subtree:true});}" +
|
|
7949
|
+
"})();";
|
|
7950
|
+
|
|
7356
7951
|
},
|
|
7357
7952
|
"../plggmatic/src/Layout/model/geometry.ts": function (module, exports, require) {
|
|
7358
7953
|
"use strict";
|
|
@@ -7575,7 +8170,7 @@ exports.savePreference = savePreference;
|
|
|
7575
8170
|
"../plggmatic/src/Navigate/index.ts": function (module, exports, require) {
|
|
7576
8171
|
"use strict";
|
|
7577
8172
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7578
|
-
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.frameClass = exports.embeddedAttr = exports.embedParam = exports.embeddersMeta = exports.partnersMeta = 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;
|
|
8173
|
+
exports.codeCopyInitScript = 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.frameClass = exports.embeddedAttr = exports.embedParam = exports.embeddersMeta = exports.partnersMeta = 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;
|
|
7579
8174
|
var Composition_1 = require("../plggmatic/src/Navigate/model/Composition.ts");
|
|
7580
8175
|
Object.defineProperty(exports, "columnOf", { enumerable: true, get: function () { return Composition_1.columnOf; } });
|
|
7581
8176
|
Object.defineProperty(exports, "columnWithSpan", { enumerable: true, get: function () { return Composition_1.columnWithSpan; } });
|
|
@@ -7621,6 +8216,8 @@ Object.defineProperty(exports, "printSteps", { enumerable: true, get: function (
|
|
|
7621
8216
|
Object.defineProperty(exports, "parseSteps", { enumerable: true, get: function () { return trailUrl_1.parseSteps; } });
|
|
7622
8217
|
var carouselScript_1 = require("../plggmatic/src/Navigate/usecase/carouselScript.ts");
|
|
7623
8218
|
Object.defineProperty(exports, "carouselInitScript", { enumerable: true, get: function () { return carouselScript_1.carouselInitScript; } });
|
|
8219
|
+
var codeCopyScript_1 = require("../plggmatic/src/Navigate/usecase/codeCopyScript.ts");
|
|
8220
|
+
Object.defineProperty(exports, "codeCopyInitScript", { enumerable: true, get: function () { return codeCopyScript_1.codeCopyInitScript; } });
|
|
7624
8221
|
|
|
7625
8222
|
},
|
|
7626
8223
|
"../plggmatic/src/Navigate/model/Composition.ts": function (module, exports, require) {
|
|
@@ -7739,14 +8336,20 @@ exports.navigationInitScript = "(function(){" +
|
|
|
7739
8336
|
`var R=${q(compositionUrl_1.restParam)},Q=${q(compositionUrl_1.spanParam)};` +
|
|
7740
8337
|
`var E=${q(compositionUrl_1.escapeChar)},N=${q(compositionUrl_1.entrySeparator)},F=${q(compositionUrl_1.fieldSeparator)};` +
|
|
7741
8338
|
`var PM=${q(marker_1.partnersMeta)},EM=${q(marker_1.embeddersMeta)},EP=${q(marker_1.embedParam)},EA=${q(marker_1.embeddedAttr)},FR=${q(marker_1.frameClass)};` +
|
|
8339
|
+
`var RD=${q(marker_1.frameReadyAttr)},FT=4000;` +
|
|
7742
8340
|
"function metaList(n){var m=document.querySelector('meta[name=\"'+n+'\"]');" +
|
|
7743
8341
|
"return m?(m.getAttribute('content')||'').split(' ').filter(Boolean):[];}" +
|
|
7744
8342
|
"var PT=metaList(PM),EB=metaList(EM);" +
|
|
7745
|
-
"function abs(r){return r.
|
|
7746
|
-
|
|
8343
|
+
"function abs(r){return /^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(r)||r.charAt(0)!=='/'||r.charAt(1)==='/'||r.charAt(1)==='\\\\';}" +
|
|
8344
|
+
`var matchesOrigin=${marker_1.matchesOriginScript};` +
|
|
8345
|
+
"function partner(u){try{var x=new URL(u);" +
|
|
8346
|
+
"return (x.protocol==='https:'||x.protocol==='http:')&&matchesOrigin(PT,x.origin);}catch(e){return false;}}" +
|
|
8347
|
+
"function local(r){if(abs(r)){return null;}var x;" +
|
|
8348
|
+
"try{x=new URL(r,window.location.origin);}catch(e){return null;}" +
|
|
8349
|
+
"return x.origin===window.location.origin&&(x.protocol==='https:'||x.protocol==='http:')?x:null;}" +
|
|
7747
8350
|
"function bare0(p){return p.length>1?p.replace(/\\/+$/,''):p;}" +
|
|
7748
8351
|
"var EMB=window.parent!==window&&EB.length>0&&new URL(window.location.href).searchParams.get(EP)==='1';" +
|
|
7749
|
-
"
|
|
8352
|
+
"var HS=false;" +
|
|
7750
8353
|
"function tell(m){for(var i=0;i<EB.length;i++){window.parent.postMessage(m,EB[i]);}}" +
|
|
7751
8354
|
"function esc(v){return v.split(E).join(E+'t')" +
|
|
7752
8355
|
".split(N).join(E+'c').split(F).join(E+'f');}" +
|
|
@@ -7756,7 +8359,7 @@ exports.navigationInitScript = "(function(){" +
|
|
|
7756
8359
|
".split('%2F').join('/').split('%2C').join(N)" +
|
|
7757
8360
|
".split('%3A').join(F);}" +
|
|
7758
8361
|
"function ps(){return new URL(window.location.href).searchParams;}" +
|
|
7759
|
-
"function entries(){var v=ps().get(R);return v?v.split(N):[];}" +
|
|
8362
|
+
"function entries(){var v=ps().get(R);return v?v.split(N).slice(0,12):[];}" +
|
|
7760
8363
|
"function entryOf(r,s){return esc(r)+(s?F+esc(s):'');}" +
|
|
7761
8364
|
"function routeOf(e){var i=e.indexOf(F);" +
|
|
7762
8365
|
"return unesc(i<0?e:e.slice(0,i));}" +
|
|
@@ -7799,12 +8402,21 @@ exports.navigationInitScript = "(function(){" +
|
|
|
7799
8402
|
"f.setAttribute('sandbox','allow-scripts allow-same-origin');" +
|
|
7800
8403
|
"f.setAttribute('referrerpolicy','strict-origin-when-cross-origin');" +
|
|
7801
8404
|
"f.title=sp.textContent;var src=new URL(x.origin+x.pathname);src.searchParams.set(EP,'1');f.src=src.href;" +
|
|
7802
|
-
"col.appendChild(f);
|
|
8405
|
+
"col.appendChild(f);" +
|
|
8406
|
+
"setTimeout(function(){if(col.hasAttribute(RD)||!col.isConnected){return;}" +
|
|
8407
|
+
"f.remove();var bd=base.querySelector(':scope>div');" +
|
|
8408
|
+
"var box=document.createElement('div');box.className=bd?bd.className:'';" +
|
|
8409
|
+
"var ln=document.createElement('a');ln.href=x.origin+x.pathname;ln.target='_top';ln.rel='noopener';" +
|
|
8410
|
+
"ln.textContent=x.host+x.pathname;box.appendChild(ln);col.appendChild(box);},FT);" +
|
|
8411
|
+
"return col;}" +
|
|
7803
8412
|
"function fetchCol(route,span){" +
|
|
7804
8413
|
"if(abs(route)){return partner(route)&&strip()&&cols().length" +
|
|
7805
8414
|
"?Promise.resolve(frameCol(route)):Promise.reject(new Error('nav'));}" +
|
|
7806
|
-
"
|
|
7807
|
-
"
|
|
8415
|
+
"var lu=local(route);if(!lu){return Promise.reject(new Error('nav'));}" +
|
|
8416
|
+
"return fetch(colUrl(lu.pathname,span),{credentials:'same-origin',mode:'same-origin',redirect:'follow'})" +
|
|
8417
|
+
".then(function(r){var at;try{at=new URL(r.url).origin;}catch(e){at='';}" +
|
|
8418
|
+
"if(!r.ok||at!==window.location.origin||(r.headers.get('content-type')||'').indexOf('text/html')!==0){throw new Error('nav');}" +
|
|
8419
|
+
"return r.text();})" +
|
|
7808
8420
|
".then(function(t){" +
|
|
7809
8421
|
"var d=new DOMParser().parseFromString(t,'text/html');" +
|
|
7810
8422
|
"var col=d.querySelector('['+C+']');" +
|
|
@@ -7823,7 +8435,7 @@ exports.navigationInitScript = "(function(){" +
|
|
|
7823
8435
|
"if(rep){col.setAttribute(RP,'');}" +
|
|
7824
8436
|
"truncate(at,rep);place(col,at);" +
|
|
7825
8437
|
"window.history.pushState(null,'',url);return true;}).catch(function(){" +
|
|
7826
|
-
"window.location.assign(
|
|
8438
|
+
"if(!abs(route)&&local(route)){window.location.assign(url);}return false;});}" +
|
|
7827
8439
|
"function last(){return cols().length-1;}" +
|
|
7828
8440
|
"function open(route,span){return openFrom(last(),route,span);}" +
|
|
7829
8441
|
"function columnOf(node){var c=cols();" +
|
|
@@ -7898,26 +8510,56 @@ exports.navigationInitScript = "(function(){" +
|
|
|
7898
8510
|
"if(l.getAttribute('data-home')===null){l.setAttribute('data-home',l.getAttribute('aria-current')==='page'?'1':'0');}" +
|
|
7899
8511
|
"if(c.length?bare(l.pathname)===r:l.getAttribute('data-home')==='1'){l.setAttribute('aria-current','page');}" +
|
|
7900
8512
|
"else if(l.getAttribute('aria-current')==='page'){l.removeAttribute('aria-current');}}}" +
|
|
8513
|
+
"function shade(col){var f=col.querySelector(':scope>iframe.'+FR);if(!f||!f.contentWindow){return;}" +
|
|
8514
|
+
"var o;try{o=new URL(col.getAttribute(C)||'').origin;}catch(e){return;}" +
|
|
8515
|
+
"if(!matchesOrigin(PT,o)){return;}" +
|
|
8516
|
+
"f.contentWindow.postMessage({type:'pm:scheme',scheme:document.documentElement.classList.contains('dark')?'dark':'light'},o);}" +
|
|
8517
|
+
"if(PT.length&&window.MutationObserver){new MutationObserver(function(){" +
|
|
8518
|
+
"var c=cols();for(var i=0;i<c.length;i++){shade(c[i]);}})" +
|
|
8519
|
+
".observe(document.documentElement,{attributes:true,attributeFilter:['class']});}" +
|
|
8520
|
+
"if(EMB){window.addEventListener('message',function(ev){" +
|
|
8521
|
+
"if(ev.source!==window.parent||!matchesOrigin(EB,ev.origin)||!ev.data||ev.data.type!=='pm:scheme'){return;}" +
|
|
8522
|
+
"if(ev.data.scheme!=='dark'&&ev.data.scheme!=='light'){return;}" +
|
|
8523
|
+
"if(!HS){HS=true;document.documentElement.setAttribute(EA,'');}" +
|
|
8524
|
+
"if(ev.data.scheme==='dark'){document.documentElement.classList.add('dark');}" +
|
|
8525
|
+
"else if(ev.data.scheme==='light'){document.documentElement.classList.remove('dark');}});" +
|
|
8526
|
+
"window.addEventListener('wheel',function(ev){if(!HS){return;}" +
|
|
8527
|
+
"var dx=ev.deltaX*(ev.deltaMode===1?16:1);" +
|
|
8528
|
+
"if(!dx||Math.abs(dx)<=Math.abs(ev.deltaY)){return;}" +
|
|
8529
|
+
"var e=ev.target;while(e&&e!==document&&e.nodeType===1){" +
|
|
8530
|
+
"var ox=window.getComputedStyle(e).overflowX;" +
|
|
8531
|
+
"if((ox==='auto'||ox==='scroll')&&e.scrollWidth>e.clientWidth+1){" +
|
|
8532
|
+
"if(dx<0?e.scrollLeft>0:e.scrollLeft+e.clientWidth<e.scrollWidth-1){return;}}" +
|
|
8533
|
+
"e=e.parentNode;}" +
|
|
8534
|
+
"ev.preventDefault();tell({type:'pm:scroll',dx:dx});},{passive:false});}" +
|
|
8535
|
+
"var SW=0;" +
|
|
7901
8536
|
"window.addEventListener('message',function(ev){" +
|
|
7902
|
-
"if(PT
|
|
8537
|
+
"if(!matchesOrigin(PT,ev.origin)||!ev.data||typeof ev.data!=='object'){return;}" +
|
|
7903
8538
|
"var c=cols(),at=-1;for(var i=0;i<c.length;i++){" +
|
|
7904
8539
|
"var f=c[i].querySelector(':scope>iframe.'+FR);if(f&&f.contentWindow===ev.source){at=i;}}" +
|
|
7905
8540
|
"if(at<0){return;}" +
|
|
7906
8541
|
"try{if(new URL(c[at].getAttribute(C)||'').origin!==ev.origin){return;}}catch(e){return;}" +
|
|
7907
8542
|
"var d=ev.data;" +
|
|
7908
8543
|
"if(d.type==='pm:title'&&typeof d.title==='string'){" +
|
|
7909
|
-
"
|
|
8544
|
+
"c[at].setAttribute(RD,'');shade(c[at]);" +
|
|
8545
|
+
"var sp=c[at].querySelector(':scope>header>span');if(sp){sp.textContent=d.title.slice(0,120)+' \u2014 '+ev.origin.replace(/^https?:\\/\\//,'');}sync();return;}" +
|
|
8546
|
+
"if(d.type==='pm:scroll'&&typeof d.dx==='number'&&isFinite(d.dx)){" +
|
|
8547
|
+
"var st=strip();if(!st){return;}" +
|
|
8548
|
+
"st.style.scrollSnapType='none';" +
|
|
8549
|
+
"st.scrollBy({left:Math.max(-600,Math.min(600,d.dx)),behavior:'auto'});" +
|
|
8550
|
+
"clearTimeout(SW);SW=setTimeout(function(){st.style.scrollSnapType='';},160);" +
|
|
8551
|
+
"return;}" +
|
|
7910
8552
|
"if(d.type==='pm:open'&&typeof d.href==='string'){var u;try{u=new URL(d.href);}catch(e){return;}" +
|
|
7911
8553
|
"if(u.protocol!=='https:'&&u.protocol!=='http:'){return;}" +
|
|
7912
8554
|
"if(u.origin===window.location.origin){openFrom(at,u.pathname);}" +
|
|
7913
|
-
"else if(PT
|
|
8555
|
+
"else if(matchesOrigin(PT,u.origin)){openFrom(at,u.origin+u.pathname);}}});" +
|
|
7914
8556
|
"if(EMB){tell({type:'pm:title',title:document.title});}" +
|
|
7915
8557
|
"window.addEventListener('popstate',function(){reconcile();});" +
|
|
7916
8558
|
"for(var k=0;k<cols().length;k++){showMark(cols()[k]);}" +
|
|
7917
8559
|
"(function(){var t=target(),c=current();" +
|
|
7918
8560
|
"if(c.length&&t[0]===c[0]&&t.length>c.length){reconcile();}else{sync();}})();" +
|
|
7919
8561
|
"document.addEventListener('click',function(ev){" +
|
|
7920
|
-
"if(EMB){var a0=anchorOf(ev.target);" +
|
|
8562
|
+
"if(EMB&&HS){var a0=anchorOf(ev.target);" +
|
|
7921
8563
|
"if(a0&&plain(ev,a0)&&(a0.origin===window.location.origin||partner(a0.href))" +
|
|
7922
8564
|
"&&!(a0.pathname===window.location.pathname&&a0.hash!=='')){" +
|
|
7923
8565
|
"ev.preventDefault();tell({type:'pm:open',href:a0.origin+a0.pathname});}return;}" +
|
|
@@ -8018,7 +8660,8 @@ exports.parseSteps = parseSteps;
|
|
|
8018
8660
|
"../plggmatic/src/Component/index.ts": function (module, exports, require) {
|
|
8019
8661
|
"use strict";
|
|
8020
8662
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8021
|
-
exports.
|
|
8663
|
+
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.heroCss = exports.heroInstallClass = exports.heroActionPrimaryClass = exports.heroActionClass = exports.heroActionsClass = exports.heroTextClass = exports.heroTaglineClass = exports.heroNameClass = exports.heroClass = exports.hero = exports.docPagerCss = exports.docPagerTitleClass = exports.docPagerDirClass = exports.docPagerLinkClass = exports.docPagerClass = exports.docPager = exports.headingAnchorAppearanceCss = exports.headingAnchorSystemCss = exports.headingAnchorClass = exports.headingAnchor = exports.languageMenuCss = exports.languageOptionClass = exports.languageListClass = exports.languageToggleClass = exports.languageMenuClass = exports.languageMenu = exports.themeToggleCss = exports.themeToggleClass = exports.staticThemeToggle = exports.themeToggle = exports.prose = exports.heading = exports.textLink = exports.button = exports.pressDim = exports.hoverDim = exports.focusRing = void 0;
|
|
8664
|
+
exports.toggle = exports.entry = exports.choice = exports.propertyRow = exports.propertyList = exports.toaster = exports.toast = exports.tones = exports.confirmDialog = void 0;
|
|
8022
8665
|
var interaction_1 = require("../plggmatic/src/Component/model/interaction.ts");
|
|
8023
8666
|
Object.defineProperty(exports, "focusRing", { enumerable: true, get: function () { return interaction_1.focusRing; } });
|
|
8024
8667
|
Object.defineProperty(exports, "hoverDim", { enumerable: true, get: function () { return interaction_1.hoverDim; } });
|
|
@@ -8035,6 +8678,36 @@ Object.defineProperty(exports, "themeToggle", { enumerable: true, get: function
|
|
|
8035
8678
|
Object.defineProperty(exports, "staticThemeToggle", { enumerable: true, get: function () { return themeToggle_1.staticThemeToggle; } });
|
|
8036
8679
|
Object.defineProperty(exports, "themeToggleClass", { enumerable: true, get: function () { return themeToggle_1.themeToggleClass; } });
|
|
8037
8680
|
Object.defineProperty(exports, "themeToggleCss", { enumerable: true, get: function () { return themeToggle_1.themeToggleCss; } });
|
|
8681
|
+
var languageMenu_1 = require("../plggmatic/src/Component/usecase/languageMenu.ts");
|
|
8682
|
+
Object.defineProperty(exports, "languageMenu", { enumerable: true, get: function () { return languageMenu_1.languageMenu; } });
|
|
8683
|
+
Object.defineProperty(exports, "languageMenuClass", { enumerable: true, get: function () { return languageMenu_1.languageMenuClass; } });
|
|
8684
|
+
Object.defineProperty(exports, "languageToggleClass", { enumerable: true, get: function () { return languageMenu_1.languageToggleClass; } });
|
|
8685
|
+
Object.defineProperty(exports, "languageListClass", { enumerable: true, get: function () { return languageMenu_1.languageListClass; } });
|
|
8686
|
+
Object.defineProperty(exports, "languageOptionClass", { enumerable: true, get: function () { return languageMenu_1.languageOptionClass; } });
|
|
8687
|
+
Object.defineProperty(exports, "languageMenuCss", { enumerable: true, get: function () { return languageMenu_1.languageMenuCss; } });
|
|
8688
|
+
var headingAnchor_1 = require("../plggmatic/src/Component/usecase/headingAnchor.ts");
|
|
8689
|
+
Object.defineProperty(exports, "headingAnchor", { enumerable: true, get: function () { return headingAnchor_1.headingAnchor; } });
|
|
8690
|
+
Object.defineProperty(exports, "headingAnchorClass", { enumerable: true, get: function () { return headingAnchor_1.headingAnchorClass; } });
|
|
8691
|
+
Object.defineProperty(exports, "headingAnchorSystemCss", { enumerable: true, get: function () { return headingAnchor_1.headingAnchorSystemCss; } });
|
|
8692
|
+
Object.defineProperty(exports, "headingAnchorAppearanceCss", { enumerable: true, get: function () { return headingAnchor_1.headingAnchorAppearanceCss; } });
|
|
8693
|
+
var docPager_1 = require("../plggmatic/src/Component/usecase/docPager.ts");
|
|
8694
|
+
Object.defineProperty(exports, "docPager", { enumerable: true, get: function () { return docPager_1.docPager; } });
|
|
8695
|
+
Object.defineProperty(exports, "docPagerClass", { enumerable: true, get: function () { return docPager_1.docPagerClass; } });
|
|
8696
|
+
Object.defineProperty(exports, "docPagerLinkClass", { enumerable: true, get: function () { return docPager_1.docPagerLinkClass; } });
|
|
8697
|
+
Object.defineProperty(exports, "docPagerDirClass", { enumerable: true, get: function () { return docPager_1.docPagerDirClass; } });
|
|
8698
|
+
Object.defineProperty(exports, "docPagerTitleClass", { enumerable: true, get: function () { return docPager_1.docPagerTitleClass; } });
|
|
8699
|
+
Object.defineProperty(exports, "docPagerCss", { enumerable: true, get: function () { return docPager_1.docPagerCss; } });
|
|
8700
|
+
var hero_1 = require("../plggmatic/src/Component/usecase/hero.ts");
|
|
8701
|
+
Object.defineProperty(exports, "hero", { enumerable: true, get: function () { return hero_1.hero; } });
|
|
8702
|
+
Object.defineProperty(exports, "heroClass", { enumerable: true, get: function () { return hero_1.heroClass; } });
|
|
8703
|
+
Object.defineProperty(exports, "heroNameClass", { enumerable: true, get: function () { return hero_1.heroNameClass; } });
|
|
8704
|
+
Object.defineProperty(exports, "heroTaglineClass", { enumerable: true, get: function () { return hero_1.heroTaglineClass; } });
|
|
8705
|
+
Object.defineProperty(exports, "heroTextClass", { enumerable: true, get: function () { return hero_1.heroTextClass; } });
|
|
8706
|
+
Object.defineProperty(exports, "heroActionsClass", { enumerable: true, get: function () { return hero_1.heroActionsClass; } });
|
|
8707
|
+
Object.defineProperty(exports, "heroActionClass", { enumerable: true, get: function () { return hero_1.heroActionClass; } });
|
|
8708
|
+
Object.defineProperty(exports, "heroActionPrimaryClass", { enumerable: true, get: function () { return hero_1.heroActionPrimaryClass; } });
|
|
8709
|
+
Object.defineProperty(exports, "heroInstallClass", { enumerable: true, get: function () { return hero_1.heroInstallClass; } });
|
|
8710
|
+
Object.defineProperty(exports, "heroCss", { enumerable: true, get: function () { return hero_1.heroCss; } });
|
|
8038
8711
|
var navTree_1 = require("../plggmatic/src/Component/usecase/navTree.ts");
|
|
8039
8712
|
Object.defineProperty(exports, "navTree", { enumerable: true, get: function () { return navTree_1.navTree; } });
|
|
8040
8713
|
var sidebarNav_1 = require("../plggmatic/src/Component/usecase/sidebarNav.ts");
|
|
@@ -8075,20 +8748,26 @@ Object.defineProperty(exports, "toggle", { enumerable: true, get: function () {
|
|
|
8075
8748
|
"use strict";
|
|
8076
8749
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8077
8750
|
exports.button = void 0;
|
|
8751
|
+
const plgg_1 = require("../plgg/src/index.ts");
|
|
8078
8752
|
const plgg_view_1 = require("../plgg-view/src/index.ts");
|
|
8079
8753
|
const styleEntry_1 = require("../plggmatic/src/styleEntry.ts");
|
|
8080
8754
|
const interaction_1 = require("../plggmatic/src/Component/model/interaction.ts");
|
|
8081
|
-
const
|
|
8082
|
-
|
|
8755
|
+
const classHooks_1 = require("../plggmatic/src/Meta/model/classHooks.ts");
|
|
8756
|
+
const button = ({ type = "button", variant = "primary", ...props }) => (0, plgg_view_1.button)([
|
|
8757
|
+
(0, plgg_view_1.type_)(type),
|
|
8758
|
+
...(0, plgg_1.matchOption)(() => [], (id) => [(0, plgg_view_1.attr)("aria-describedby", id)])((0, plgg_1.fromNullable)(props.describedBy)),
|
|
8083
8759
|
...(props.disabled
|
|
8084
8760
|
? [(0, plgg_view_1.attr)("disabled", "")]
|
|
8085
|
-
: [(0, plgg_view_1.onClick)(props.onPress)
|
|
8086
|
-
(0, styleEntry_1.style_)(
|
|
8087
|
-
?
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
|
-
|
|
8761
|
+
: (0, plgg_1.matchOption)(() => [], (message) => [(0, plgg_view_1.onClick)(message)])((0, plgg_1.fromNullable)(props.onPress))),
|
|
8762
|
+
(0, styleEntry_1.style_)(`${classHooks_1.btnClass} ${variant === "outline"
|
|
8763
|
+
? classHooks_1.btnOutlineClass
|
|
8764
|
+
: classHooks_1.btnPrimaryClass}`, styleEntry_1.pointer, interaction_1.focusRing, {
|
|
8765
|
+
selector: ":disabled",
|
|
8766
|
+
styles: [
|
|
8767
|
+
...(0, styleEntry_1.decl)("cursor", "not-allowed"),
|
|
8768
|
+
...(0, styleEntry_1.decl)("opacity", "0.6"),
|
|
8769
|
+
],
|
|
8770
|
+
}),
|
|
8092
8771
|
], [(0, plgg_view_1.text)(props.label)]);
|
|
8093
8772
|
exports.button = button;
|
|
8094
8773
|
|
|
@@ -8245,22 +8924,23 @@ const styleEntry_1 = require("../plggmatic/src/styleEntry.ts");
|
|
|
8245
8924
|
const interaction_1 = require("../plggmatic/src/Component/model/interaction.ts");
|
|
8246
8925
|
const classHooks_1 = require("../plggmatic/src/Meta/model/classHooks.ts");
|
|
8247
8926
|
const controlParts_1 = require("../plggmatic/src/Form/usecase/controlParts.ts");
|
|
8248
|
-
const textInput = (props) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class", classHooks_1.fieldClass)], [
|
|
8249
|
-
(0, controlParts_1.fieldLabel)(props.
|
|
8927
|
+
const textInput = ({ name, id = name, ...props }) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class", classHooks_1.fieldClass)], [
|
|
8928
|
+
(0, controlParts_1.fieldLabel)(id, props.label, props.required),
|
|
8250
8929
|
(0, plgg_view_1.input)([
|
|
8251
|
-
(0, plgg_view_1.id_)(
|
|
8252
|
-
(0, plgg_view_1.name_)(
|
|
8253
|
-
(0, plgg_view_1.type_)("text"),
|
|
8930
|
+
(0, plgg_view_1.id_)(id),
|
|
8931
|
+
(0, plgg_view_1.name_)(name),
|
|
8932
|
+
(0, plgg_view_1.type_)((0, plgg_1.getOr)("text")((0, plgg_1.fromNullable)(props.type))),
|
|
8254
8933
|
(0, plgg_view_1.value_)(props.value),
|
|
8255
8934
|
...(0, plgg_1.matchOption)(() => [], (p) => [(0, plgg_view_1.placeholder_)(p)])(props.placeholder),
|
|
8256
|
-
...(0, controlParts_1.errorAria)(props.
|
|
8935
|
+
...(0, controlParts_1.errorAria)(id, props.error, props),
|
|
8936
|
+
...(0, controlParts_1.textControlAttributes)(props),
|
|
8257
8937
|
...(0, plgg_view_1.disabled_)(props.disabled),
|
|
8258
8938
|
(0, styleEntry_1.style_)(classHooks_1.inputClass, interaction_1.focusRing, ...(props.disabled
|
|
8259
8939
|
? [classHooks_1.disabledClass]
|
|
8260
8940
|
: [interaction_1.hoverDim])),
|
|
8261
|
-
(0, plgg_view_1.onInput)(props.onInput),
|
|
8941
|
+
...(0, plgg_1.matchOption)(() => [], (handler) => [(0, plgg_view_1.onInput)(handler)])((0, plgg_1.fromNullable)(props.onInput)),
|
|
8262
8942
|
], []),
|
|
8263
|
-
...(0, controlParts_1.fieldError)(props.
|
|
8943
|
+
...(0, controlParts_1.fieldError)(id, props.error, props.errorId),
|
|
8264
8944
|
]);
|
|
8265
8945
|
exports.textInput = textInput;
|
|
8266
8946
|
|
|
@@ -8268,29 +8948,55 @@ exports.textInput = textInput;
|
|
|
8268
8948
|
"../plggmatic/src/Form/usecase/controlParts.ts": function (module, exports, require) {
|
|
8269
8949
|
"use strict";
|
|
8270
8950
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8271
|
-
exports.fieldError = exports.errorAria = exports.errorId = exports.fieldLabel = void 0;
|
|
8951
|
+
exports.textControlAttributes = exports.fieldError = exports.errorAria = exports.errorId = exports.fieldLabel = void 0;
|
|
8272
8952
|
const plgg_1 = require("../plgg/src/index.ts");
|
|
8273
8953
|
const plgg_view_1 = require("../plgg-view/src/index.ts");
|
|
8274
8954
|
const classHooks_1 = require("../plggmatic/src/Meta/model/classHooks.ts");
|
|
8275
|
-
const fieldLabel = (name, labelText) => (0, plgg_view_1.label)([(0, plgg_view_1.for_)(name), (0, plgg_view_1.attr)("class", classHooks_1.fieldLabelClass)], [
|
|
8955
|
+
const fieldLabel = (name, labelText, required = false) => (0, plgg_view_1.label)([(0, plgg_view_1.for_)(name), (0, plgg_view_1.attr)("class", classHooks_1.fieldLabelClass)], [
|
|
8956
|
+
(0, plgg_view_1.text)(labelText),
|
|
8957
|
+
...(required
|
|
8958
|
+
? [
|
|
8959
|
+
(0, plgg_view_1.span)([
|
|
8960
|
+
(0, plgg_view_1.attr)("class", classHooks_1.fieldRequiredClass),
|
|
8961
|
+
(0, plgg_view_1.attr)("aria-hidden", "true"),
|
|
8962
|
+
], [(0, plgg_view_1.text)(" *")]),
|
|
8963
|
+
]
|
|
8964
|
+
: []),
|
|
8965
|
+
]);
|
|
8276
8966
|
exports.fieldLabel = fieldLabel;
|
|
8277
8967
|
const errorId = (name) => `${name}-error`;
|
|
8278
8968
|
exports.errorId = errorId;
|
|
8279
|
-
const errorAria = (name, error) =>
|
|
8280
|
-
|
|
8281
|
-
(0, plgg_view_1.attr)("aria-invalid", "true")
|
|
8282
|
-
|
|
8969
|
+
const errorAria = (name, error, options = {}) => [
|
|
8970
|
+
...((0, plgg_1.isSome)(error)
|
|
8971
|
+
? [(0, plgg_view_1.attr)("aria-invalid", "true")]
|
|
8972
|
+
: []),
|
|
8973
|
+
(0, plgg_view_1.attr)("aria-describedby", [
|
|
8974
|
+
(0, plgg_1.getOr)((0, exports.errorId)(name))((0, plgg_1.fromNullable)(options.errorId)),
|
|
8975
|
+
(0, plgg_1.getOr)("")((0, plgg_1.fromNullable)(options.describedBy)),
|
|
8283
8976
|
]
|
|
8284
|
-
|
|
8977
|
+
.filter((id) => id.length > 0)
|
|
8978
|
+
.join(" ")),
|
|
8979
|
+
];
|
|
8285
8980
|
exports.errorAria = errorAria;
|
|
8286
|
-
const fieldError = (name, error
|
|
8981
|
+
const fieldError = (name, error, id = (0, exports.errorId)(name)) => [
|
|
8287
8982
|
(0, plgg_view_1.span)([
|
|
8288
|
-
(0, plgg_view_1.id_)(
|
|
8983
|
+
(0, plgg_view_1.id_)(id),
|
|
8289
8984
|
(0, plgg_view_1.attr)("class", classHooks_1.fieldErrorClass),
|
|
8290
|
-
(0, plgg_view_1.attr)("
|
|
8291
|
-
|
|
8292
|
-
]
|
|
8985
|
+
(0, plgg_view_1.attr)("aria-live", "polite"),
|
|
8986
|
+
...((0, plgg_1.isSome)(error)
|
|
8987
|
+
? []
|
|
8988
|
+
: [(0, plgg_view_1.attr)("hidden", "")]),
|
|
8989
|
+
], [(0, plgg_view_1.text)((0, plgg_1.getOr)("")(error))]),
|
|
8990
|
+
];
|
|
8293
8991
|
exports.fieldError = fieldError;
|
|
8992
|
+
const textControlAttributes = (options) => [
|
|
8993
|
+
...(options.required === true
|
|
8994
|
+
? [(0, plgg_view_1.attr)("required", "")]
|
|
8995
|
+
: []),
|
|
8996
|
+
...(0, plgg_1.matchOption)(() => [], (value) => [(0, plgg_view_1.attr)("autocomplete", value)])((0, plgg_1.fromNullable)(options.autocomplete)),
|
|
8997
|
+
...(0, plgg_1.matchOption)(() => [], (value) => [(0, plgg_view_1.attr)("maxlength", String(value))])((0, plgg_1.fromNullable)(options.maxLength)),
|
|
8998
|
+
];
|
|
8999
|
+
exports.textControlAttributes = textControlAttributes;
|
|
8294
9000
|
|
|
8295
9001
|
},
|
|
8296
9002
|
"../plggmatic/src/Component/usecase/textArea.ts": function (module, exports, require) {
|
|
@@ -8303,21 +9009,25 @@ const styleEntry_1 = require("../plggmatic/src/styleEntry.ts");
|
|
|
8303
9009
|
const interaction_1 = require("../plggmatic/src/Component/model/interaction.ts");
|
|
8304
9010
|
const classHooks_1 = require("../plggmatic/src/Meta/model/classHooks.ts");
|
|
8305
9011
|
const controlParts_1 = require("../plggmatic/src/Form/usecase/controlParts.ts");
|
|
8306
|
-
const textArea = (props) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class", classHooks_1.fieldClass)], [
|
|
8307
|
-
(0, controlParts_1.fieldLabel)(props.
|
|
9012
|
+
const textArea = ({ name, id = name, ...props }) => (0, plgg_view_1.slot)([(0, plgg_view_1.attr)("class", classHooks_1.fieldClass)], [
|
|
9013
|
+
(0, controlParts_1.fieldLabel)(id, props.label, props.required),
|
|
8308
9014
|
(0, plgg_view_1.textarea)([
|
|
8309
|
-
(0, plgg_view_1.id_)(
|
|
8310
|
-
(0, plgg_view_1.name_)(
|
|
9015
|
+
(0, plgg_view_1.id_)(id),
|
|
9016
|
+
(0, plgg_view_1.name_)(name),
|
|
8311
9017
|
(0, plgg_view_1.value_)(props.value),
|
|
9018
|
+
...(0, plgg_1.matchOption)(() => [], (rows) => [
|
|
9019
|
+
(0, plgg_view_1.attr)("rows", String(rows)),
|
|
9020
|
+
])((0, plgg_1.fromNullable)(props.rows)),
|
|
8312
9021
|
...(0, plgg_1.matchOption)(() => [], (p) => [(0, plgg_view_1.placeholder_)(p)])(props.placeholder),
|
|
8313
|
-
...(0, controlParts_1.errorAria)(props.
|
|
9022
|
+
...(0, controlParts_1.errorAria)(id, props.error, props),
|
|
9023
|
+
...(0, controlParts_1.textControlAttributes)(props),
|
|
8314
9024
|
...(0, plgg_view_1.disabled_)(props.disabled),
|
|
8315
9025
|
(0, styleEntry_1.style_)(classHooks_1.inputClass, interaction_1.focusRing, ...(props.disabled
|
|
8316
9026
|
? [classHooks_1.disabledClass]
|
|
8317
9027
|
: [interaction_1.hoverDim])),
|
|
8318
|
-
(0, plgg_view_1.onInput)(props.onInput),
|
|
9028
|
+
...(0, plgg_1.matchOption)(() => [], (handler) => [(0, plgg_view_1.onInput)(handler)])((0, plgg_1.fromNullable)(props.onInput)),
|
|
8319
9029
|
], [(0, plgg_view_1.text)(props.value)]),
|
|
8320
|
-
...(0, controlParts_1.fieldError)(props.
|
|
9030
|
+
...(0, controlParts_1.fieldError)(id, props.error, props.errorId),
|
|
8321
9031
|
]);
|
|
8322
9032
|
exports.textArea = textArea;
|
|
8323
9033
|
|
|
@@ -8395,23 +9105,23 @@ const fieldControl = (field, state) => {
|
|
|
8395
9105
|
switch (control.kind) {
|
|
8396
9106
|
case "text":
|
|
8397
9107
|
return (0, textInput_1.textInput)({
|
|
9108
|
+
...control,
|
|
8398
9109
|
name: field.name,
|
|
8399
9110
|
label: field.label,
|
|
8400
9111
|
value: state.value,
|
|
8401
9112
|
placeholder: control.placeholder,
|
|
8402
9113
|
error: state.error,
|
|
8403
9114
|
disabled: state.disabled,
|
|
8404
|
-
onInput: control.onInput,
|
|
8405
9115
|
});
|
|
8406
9116
|
case "textarea":
|
|
8407
9117
|
return (0, textArea_1.textArea)({
|
|
9118
|
+
...control,
|
|
8408
9119
|
name: field.name,
|
|
8409
9120
|
label: field.label,
|
|
8410
9121
|
value: state.value,
|
|
8411
9122
|
placeholder: control.placeholder,
|
|
8412
9123
|
error: state.error,
|
|
8413
9124
|
disabled: state.disabled,
|
|
8414
|
-
onInput: control.onInput,
|
|
8415
9125
|
});
|
|
8416
9126
|
case "select":
|
|
8417
9127
|
return (0, selectInput_1.selectInput)({
|
|
@@ -8435,10 +9145,8 @@ const fieldControl = (field, state) => {
|
|
|
8435
9145
|
};
|
|
8436
9146
|
exports.fieldControl = fieldControl;
|
|
8437
9147
|
const declaredForm = (props) => (0, formView_1.formView)({
|
|
9148
|
+
...props,
|
|
8438
9149
|
fields: props.fields.map((field) => (0, exports.fieldControl)(field, props.stateOf(field.name))),
|
|
8439
|
-
submitLabel: props.submitLabel,
|
|
8440
|
-
submitting: props.submitting,
|
|
8441
|
-
onSubmit: props.onSubmit,
|
|
8442
9150
|
});
|
|
8443
9151
|
exports.declaredForm = declaredForm;
|
|
8444
9152
|
|
|
@@ -8446,27 +9154,38 @@ exports.declaredForm = declaredForm;
|
|
|
8446
9154
|
"../plggmatic/src/Form/usecase/formView.ts": function (module, exports, require) {
|
|
8447
9155
|
"use strict";
|
|
8448
9156
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8449
|
-
exports.formView = void 0;
|
|
9157
|
+
exports.formView = exports.formActions = void 0;
|
|
9158
|
+
const plgg_1 = require("../plgg/src/index.ts");
|
|
8450
9159
|
const plgg_view_1 = require("../plgg-view/src/index.ts");
|
|
8451
|
-
const
|
|
8452
|
-
const interaction_1 = require("../plggmatic/src/Component/model/interaction.ts");
|
|
9160
|
+
const button_1 = require("../plggmatic/src/Component/usecase/button.ts");
|
|
8453
9161
|
const classHooks_1 = require("../plggmatic/src/Meta/model/classHooks.ts");
|
|
8454
|
-
const
|
|
8455
|
-
(0, plgg_view_1.
|
|
9162
|
+
const formActions = (children) => (0, plgg_view_1.div)([
|
|
9163
|
+
(0, plgg_view_1.attr)("class", `${classHooks_1.actionsClass} ${classHooks_1.actionsEndClass}`),
|
|
9164
|
+
], children);
|
|
9165
|
+
exports.formActions = formActions;
|
|
9166
|
+
const formView = ({ afterSubmit = [], noValidate = false, ...props }) => (0, plgg_view_1.form)([
|
|
9167
|
+
...(0, plgg_1.matchOption)(() => [], (message) => [(0, plgg_view_1.onSubmit)(message)])((0, plgg_1.fromNullable)(props.onSubmit)),
|
|
9168
|
+
...(0, plgg_1.matchOption)(() => [], (id) => [(0, plgg_view_1.attr)("id", id)])((0, plgg_1.fromNullable)(props.id)),
|
|
9169
|
+
...(noValidate
|
|
9170
|
+
? [(0, plgg_view_1.attr)("novalidate", "")]
|
|
9171
|
+
: []),
|
|
8456
9172
|
(0, plgg_view_1.attr)("class", classHooks_1.formClass),
|
|
8457
9173
|
], [
|
|
8458
9174
|
...props.fields,
|
|
8459
|
-
(0,
|
|
8460
|
-
(0,
|
|
8461
|
-
|
|
8462
|
-
|
|
8463
|
-
|
|
8464
|
-
|
|
8465
|
-
|
|
8466
|
-
|
|
8467
|
-
|
|
8468
|
-
|
|
9175
|
+
(0, exports.formActions)([
|
|
9176
|
+
(0, button_1.button)({
|
|
9177
|
+
type: "submit",
|
|
9178
|
+
disabled: props.submitting,
|
|
9179
|
+
label: props.submitting
|
|
9180
|
+
? "Submitting…"
|
|
9181
|
+
: props.submitLabel,
|
|
9182
|
+
...(0, plgg_1.matchOption)(() => ({}), (describedBy) => ({ describedBy }))((0, plgg_1.fromNullable)(props.submitDescribedBy)),
|
|
9183
|
+
variant: props.submitVariant === "outline"
|
|
9184
|
+
? "outline"
|
|
9185
|
+
: "primary",
|
|
9186
|
+
}),
|
|
8469
9187
|
]),
|
|
9188
|
+
...afterSubmit,
|
|
8470
9189
|
]);
|
|
8471
9190
|
exports.formView = formView;
|
|
8472
9191
|
|
|
@@ -8625,7 +9344,7 @@ exports.toggle = toggle;
|
|
|
8625
9344
|
"../plggmatic/src/Form/index.ts": function (module, exports, require) {
|
|
8626
9345
|
"use strict";
|
|
8627
9346
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8628
|
-
exports.formView = exports.errorFor = exports.parseForm = exports.isPending = exports.pendingSubmission = exports.idleSubmission = exports.controlKinds = void 0;
|
|
9347
|
+
exports.fieldError = exports.errorAria = exports.errorId = exports.fieldLabel = exports.formActions = exports.formView = exports.errorFor = exports.parseForm = exports.isPending = exports.pendingSubmission = exports.idleSubmission = exports.controlKinds = void 0;
|
|
8629
9348
|
var control_1 = require("../plggmatic/src/Form/model/control.ts");
|
|
8630
9349
|
Object.defineProperty(exports, "controlKinds", { enumerable: true, get: function () { return control_1.controlKinds; } });
|
|
8631
9350
|
var submission_1 = require("../plggmatic/src/Form/model/submission.ts");
|
|
@@ -8637,6 +9356,12 @@ Object.defineProperty(exports, "parseForm", { enumerable: true, get: function ()
|
|
|
8637
9356
|
Object.defineProperty(exports, "errorFor", { enumerable: true, get: function () { return parseForm_1.errorFor; } });
|
|
8638
9357
|
var formView_1 = require("../plggmatic/src/Form/usecase/formView.ts");
|
|
8639
9358
|
Object.defineProperty(exports, "formView", { enumerable: true, get: function () { return formView_1.formView; } });
|
|
9359
|
+
Object.defineProperty(exports, "formActions", { enumerable: true, get: function () { return formView_1.formActions; } });
|
|
9360
|
+
var controlParts_1 = require("../plggmatic/src/Form/usecase/controlParts.ts");
|
|
9361
|
+
Object.defineProperty(exports, "fieldLabel", { enumerable: true, get: function () { return controlParts_1.fieldLabel; } });
|
|
9362
|
+
Object.defineProperty(exports, "errorId", { enumerable: true, get: function () { return controlParts_1.errorId; } });
|
|
9363
|
+
Object.defineProperty(exports, "errorAria", { enumerable: true, get: function () { return controlParts_1.errorAria; } });
|
|
9364
|
+
Object.defineProperty(exports, "fieldError", { enumerable: true, get: function () { return controlParts_1.fieldError; } });
|
|
8640
9365
|
|
|
8641
9366
|
},
|
|
8642
9367
|
"../plggmatic/src/Form/model/control.ts": function (module, exports, require) {
|
|
@@ -13957,16 +14682,135 @@ const detectModelContext = (candidate) => {
|
|
|
13957
14682
|
};
|
|
13958
14683
|
exports.detectModelContext = detectModelContext;
|
|
13959
14684
|
|
|
14685
|
+
},
|
|
14686
|
+
"../plggmatic/src/Style/model/typesetting.ts": function (module, exports, require) {
|
|
14687
|
+
"use strict";
|
|
14688
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14689
|
+
exports.typesetInkCss = exports.typesetCss = exports.gridLine = exports.stepSize = exports.halves = exports.unitOf = exports.defaultTypesetting = void 0;
|
|
14690
|
+
exports.defaultTypesetting = {
|
|
14691
|
+
size: 16,
|
|
14692
|
+
leading: 1.75,
|
|
14693
|
+
measure: 38,
|
|
14694
|
+
wide: 46,
|
|
14695
|
+
ratio: 1.2,
|
|
14696
|
+
codeScale: 0.875,
|
|
14697
|
+
};
|
|
14698
|
+
const unitOf = (t) => t.size * t.leading;
|
|
14699
|
+
exports.unitOf = unitOf;
|
|
14700
|
+
const halves = (t) => (n) => ((0, exports.unitOf)(t) / 2) * n;
|
|
14701
|
+
exports.halves = halves;
|
|
14702
|
+
const stepSize = (t) => (steps) => Math.round(t.size * t.ratio ** steps);
|
|
14703
|
+
exports.stepSize = stepSize;
|
|
14704
|
+
const gridLine = (t) => (size) => (0, exports.halves)(t)(Math.ceil((size * 1.25) / ((0, exports.unitOf)(t) / 2)));
|
|
14705
|
+
exports.gridLine = gridLine;
|
|
14706
|
+
const px = (n) => `${Math.round(n * 100) / 100}px`;
|
|
14707
|
+
const typesetCss = (doc, t) => {
|
|
14708
|
+
const h = (0, exports.halves)(t);
|
|
14709
|
+
const line = (0, exports.gridLine)(t);
|
|
14710
|
+
const s1 = (0, exports.stepSize)(t)(3);
|
|
14711
|
+
const s2 = (0, exports.stepSize)(t)(2);
|
|
14712
|
+
const s3 = (0, exports.stepSize)(t)(1);
|
|
14713
|
+
const code = t.size * t.codeScale;
|
|
14714
|
+
const codeLine = h(1) * 1.5;
|
|
14715
|
+
return [
|
|
14716
|
+
`${doc}{font-size:${px(t.size)};line-height:${px((0, exports.unitOf)(t))};` +
|
|
14717
|
+
`max-width:${t.wide}em;margin:0;` +
|
|
14718
|
+
`text-autospace:normal;text-spacing-trim:trim-start;` +
|
|
14719
|
+
`line-break:strict;overflow-wrap:anywhere;` +
|
|
14720
|
+
`font-kerning:normal}`,
|
|
14721
|
+
`${doc} :is(h1,h2,h3,h4){font-feature-settings:"palt";` +
|
|
14722
|
+
`word-break:auto-phrase;` +
|
|
14723
|
+
`scroll-margin-top:${px(h(2))}}`,
|
|
14724
|
+
`${doc} h1{font-size:${px(s1)};line-height:${px(line(s1))};` +
|
|
14725
|
+
`letter-spacing:.01em;margin:0 0 ${px(h(2))}}`,
|
|
14726
|
+
`${doc} h2{font-size:${px(s2)};line-height:${px(line(s2))};` +
|
|
14727
|
+
`letter-spacing:.02em;` +
|
|
14728
|
+
`margin:${px(h(4))} 0 ${px(h(1))};padding-top:${px(h(2))}}`,
|
|
14729
|
+
`${doc} h3{font-size:${px(s3)};line-height:${px(line(s3))};` +
|
|
14730
|
+
`letter-spacing:.02em;margin:${px(h(3))} 0 ${px(h(1))}}`,
|
|
14731
|
+
`${doc} h4{font-size:${px(t.size)};line-height:${px((0, exports.unitOf)(t))};` +
|
|
14732
|
+
`margin:${px(h(2))} 0 0}`,
|
|
14733
|
+
`${doc} :is(p,ul,ol,blockquote,dl){max-width:${t.measure}em}`,
|
|
14734
|
+
`${doc} :is(h1,h2,h3,h4) + p{margin-top:0}`,
|
|
14735
|
+
`${doc} :is(h2,h3) + :is(h3,h4){margin-top:${px(h(1))}}`,
|
|
14736
|
+
`${doc} p{margin:${px(h(1))} 0}`,
|
|
14737
|
+
`${doc} :is(ul,ol){margin:${px(h(1))} 0;padding-left:1.5em}`,
|
|
14738
|
+
`${doc} li{margin:0}`,
|
|
14739
|
+
`${doc} li + li{margin-top:${px(h(1) / 2)}}`,
|
|
14740
|
+
`${doc} blockquote{margin:${px(h(2))} 0;padding:0 0 0 1em}`,
|
|
14741
|
+
`${doc} blockquote p{margin:0}`,
|
|
14742
|
+
`${doc} code{font-size:${t.codeScale}em;padding:0 .2em;` +
|
|
14743
|
+
`margin:0;line-height:1}`,
|
|
14744
|
+
`${doc} pre{margin:${px(h(2))} 0;` +
|
|
14745
|
+
`padding:${px(h(1))} ${px(h(1) + 2)};` +
|
|
14746
|
+
`font-size:${px(code)};line-height:${px(codeLine)};` +
|
|
14747
|
+
`overflow-x:auto}`,
|
|
14748
|
+
`${doc} pre code{font-size:inherit;line-height:inherit;` +
|
|
14749
|
+
`padding:0;margin:0}`,
|
|
14750
|
+
`${doc} pre{position:relative}`,
|
|
14751
|
+
`${doc}-code-copy{position:absolute;top:${px(h(1) / 2)};` +
|
|
14752
|
+
`right:${px(h(1) / 2)};width:${px(h(1) * 2)};` +
|
|
14753
|
+
`height:${px(h(1) * 2)};padding:0;display:grid;` +
|
|
14754
|
+
`place-items:center;font-size:${px(code)};` +
|
|
14755
|
+
`line-height:1;cursor:pointer;opacity:0}`,
|
|
14756
|
+
`${doc} pre:hover ${doc}-code-copy,` +
|
|
14757
|
+
`${doc}-code-copy:focus-visible,` +
|
|
14758
|
+
`${doc}-code-copy[data-copied]{opacity:1}`,
|
|
14759
|
+
`@media (hover:none){${doc}-code-copy{opacity:1}}`,
|
|
14760
|
+
`${doc} table{border-collapse:collapse;margin:${px(h(2))} 0;` +
|
|
14761
|
+
`line-height:${px((0, exports.unitOf)(t))};width:100%}`,
|
|
14762
|
+
`${doc} :is(th,td){text-align:left;vertical-align:top;` +
|
|
14763
|
+
`padding:${px(h(1) / 2)} 1em ${px(h(1) / 2)} 0}`,
|
|
14764
|
+
`${doc} :is(th,td){overflow-wrap:normal;` +
|
|
14765
|
+
`word-break:auto-phrase}`,
|
|
14766
|
+
`${doc} :is(th,td) code{white-space:nowrap}`,
|
|
14767
|
+
`${doc} hr{margin:${px(h(4))} 0}`,
|
|
14768
|
+
`${doc} :is(h3,h4):has(+ pre){font-size:${px(code)};` +
|
|
14769
|
+
`line-height:${px(h(1) * 2)};margin:${px(h(2))} 0 0}`,
|
|
14770
|
+
`${doc} :is(h3,h4) + pre{margin-top:${px(h(1) / 2)}}`,
|
|
14771
|
+
`${doc}-foot{text-align:left;max-width:${t.wide}em;` +
|
|
14772
|
+
`margin-top:${px(h(4))}}`,
|
|
14773
|
+
].join("\n");
|
|
14774
|
+
};
|
|
14775
|
+
exports.typesetCss = typesetCss;
|
|
14776
|
+
const typesetInkCss = (doc, ink) => [
|
|
14777
|
+
`${doc} :is(h1,h2,h3){font-weight:700;color:${ink.text}}`,
|
|
14778
|
+
`${doc} h2{border-top:${ink.hair}}`,
|
|
14779
|
+
`${doc} h4{font-weight:700;color:${ink.muted}}`,
|
|
14780
|
+
`${doc} strong{font-weight:700;color:${ink.text}}`,
|
|
14781
|
+
`:lang(ja) ${doc} em{font-style:normal;` +
|
|
14782
|
+
`font-weight:700}`,
|
|
14783
|
+
`${doc} blockquote{border-left:${ink.rule};color:${ink.muted}}`,
|
|
14784
|
+
`${doc} code{font-family:${ink.mono};` +
|
|
14785
|
+
`border-radius:${ink.radius};background:${ink.wash}}`,
|
|
14786
|
+
`${doc} pre{background:${ink.surface};border:${ink.rule};` +
|
|
14787
|
+
`border-radius:${ink.radius}}`,
|
|
14788
|
+
`${doc} pre code{background:none}`,
|
|
14789
|
+
`${doc}-code-copy{font-family:inherit;color:${ink.muted};` +
|
|
14790
|
+
`background:${ink.surface};border:0;` +
|
|
14791
|
+
`border-radius:${ink.radius};` +
|
|
14792
|
+
`transition:opacity .15s ease}`,
|
|
14793
|
+
`${doc}-code-copy:hover,${doc}-code-copy:focus-visible,` +
|
|
14794
|
+
`${doc}-code-copy[data-copied]{color:${ink.text};outline:0}`,
|
|
14795
|
+
`${doc} :is(th,td){border-bottom:${ink.hair}}`,
|
|
14796
|
+
`${doc} th{font-weight:700;border-bottom:${ink.rule}}`,
|
|
14797
|
+
`${doc} hr{border:0;border-top:${ink.hair}}`,
|
|
14798
|
+
].join("\n");
|
|
14799
|
+
exports.typesetInkCss = typesetInkCss;
|
|
14800
|
+
|
|
13960
14801
|
},
|
|
13961
14802
|
"../plggmatic/src/Shell/index.ts": function (module, exports, require) {
|
|
13962
14803
|
"use strict";
|
|
13963
14804
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13964
|
-
exports.asAppearance = exports.appearanceCss = exports.soft = exports.monochrome = exports.systemCss = exports.kitAppearanceCss = exports.kitSystemCss = exports.kitCss = exports.shell = void 0;
|
|
14805
|
+
exports.asAppearance = exports.appearanceCss = exports.soft = exports.monochrome = exports.systemCss = exports.kitAppearanceCss = exports.kitTypesetCss = exports.kitSystemCss = exports.kitCss = exports.shellBrand = exports.shell = void 0;
|
|
13965
14806
|
var shell_1 = require("../plggmatic/src/Shell/usecase/shell.ts");
|
|
13966
14807
|
Object.defineProperty(exports, "shell", { enumerable: true, get: function () { return shell_1.shell; } });
|
|
14808
|
+
var shellBrand_1 = require("../plggmatic/src/Shell/usecase/shellBrand.ts");
|
|
14809
|
+
Object.defineProperty(exports, "shellBrand", { enumerable: true, get: function () { return shellBrand_1.shellBrand; } });
|
|
13967
14810
|
var kit_1 = require("../plggmatic/src/Shell/usecase/kit.ts");
|
|
13968
14811
|
Object.defineProperty(exports, "kitCss", { enumerable: true, get: function () { return kit_1.kitCss; } });
|
|
13969
14812
|
Object.defineProperty(exports, "kitSystemCss", { enumerable: true, get: function () { return kit_1.kitSystemCss; } });
|
|
14813
|
+
Object.defineProperty(exports, "kitTypesetCss", { enumerable: true, get: function () { return kit_1.kitTypesetCss; } });
|
|
13970
14814
|
Object.defineProperty(exports, "kitAppearanceCss", { enumerable: true, get: function () { return kit_1.kitAppearanceCss; } });
|
|
13971
14815
|
var systemCss_1 = require("../plggmatic/src/System/usecase/systemCss.ts");
|
|
13972
14816
|
Object.defineProperty(exports, "systemCss", { enumerable: true, get: function () { return systemCss_1.systemCss; } });
|
|
@@ -13989,6 +14833,7 @@ const marker_1 = require("../plggmatic/src/Navigate/model/marker.ts");
|
|
|
13989
14833
|
const sidebarNav_1 = require("../plggmatic/src/Component/usecase/sidebarNav.ts");
|
|
13990
14834
|
const classHooks_1 = require("../plggmatic/src/Meta/model/classHooks.ts");
|
|
13991
14835
|
const plgg_2 = require("../plgg/src/index.ts");
|
|
14836
|
+
const shellBrand_1 = require("../plggmatic/src/Shell/usecase/shellBrand.ts");
|
|
13992
14837
|
const head = (children) => (0, plgg_view_1.el)("header", [(0, plgg_view_1.class_)(classHooks_1.shellHeadClass)], children);
|
|
13993
14838
|
const body = (children) => (0, plgg_view_1.el)("div", [(0, plgg_view_1.class_)(classHooks_1.shellBodyClass)], children);
|
|
13994
14839
|
const page = (p) => (0, marker_1.documentColumn)(p.route, (0, plgg_2.none)(), p.wide
|
|
@@ -14069,7 +14914,12 @@ const shell = (props) => (0, plgg_view_1.el)("div", [
|
|
|
14069
14914
|
(0, plgg_view_1.class_)(classHooks_1.colClass + " " + classHooks_1.shellSideClass),
|
|
14070
14915
|
], [
|
|
14071
14916
|
head([
|
|
14072
|
-
(0,
|
|
14917
|
+
(0, shellBrand_1.shellBrand)({
|
|
14918
|
+
fullLabel: props.brand,
|
|
14919
|
+
homeLabel: (0, plgg_1.getOr)((0, plgg_2.none)())((0, plgg_1.fromNullable)(props.homeLabel)),
|
|
14920
|
+
home: props.home,
|
|
14921
|
+
atHome: props.atHome,
|
|
14922
|
+
}),
|
|
14073
14923
|
(0, plgg_view_1.button)([
|
|
14074
14924
|
(0, plgg_view_1.attr)("type", "button"),
|
|
14075
14925
|
(0, plgg_view_1.class_)(classHooks_1.shellFoldClass),
|
|
@@ -14088,24 +14938,58 @@ const shell = (props) => (0, plgg_view_1.el)("div", [
|
|
|
14088
14938
|
]);
|
|
14089
14939
|
exports.shell = shell;
|
|
14090
14940
|
|
|
14941
|
+
},
|
|
14942
|
+
"../plggmatic/src/Shell/usecase/shellBrand.ts": function (module, exports, require) {
|
|
14943
|
+
"use strict";
|
|
14944
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14945
|
+
exports.shellBrand = void 0;
|
|
14946
|
+
const plgg_1 = require("../plgg/src/index.ts");
|
|
14947
|
+
const plgg_view_1 = require("../plgg-view/src/index.ts");
|
|
14948
|
+
const classHooks_1 = require("../plggmatic/src/Meta/model/classHooks.ts");
|
|
14949
|
+
const shellBrand = (props, classes = []) => (0, plgg_view_1.a)([
|
|
14950
|
+
(0, plgg_view_1.href)(props.home),
|
|
14951
|
+
...(props.atHome
|
|
14952
|
+
? [(0, plgg_view_1.attr)("aria-current", "page")]
|
|
14953
|
+
: []),
|
|
14954
|
+
(0, plgg_view_1.class_)([...classes, classHooks_1.shellBrandClass].join(" ")),
|
|
14955
|
+
], (0, plgg_1.matchOption)(() => [(0, plgg_view_1.text)(props.fullLabel)], (homeLabel) => [
|
|
14956
|
+
(0, plgg_view_1.span)([(0, plgg_view_1.class_)(classHooks_1.shellBrandFullClass)], [(0, plgg_view_1.text)(props.fullLabel)]),
|
|
14957
|
+
(0, plgg_view_1.span)([(0, plgg_view_1.class_)(classHooks_1.shellBrandHomeClass)], [(0, plgg_view_1.text)(homeLabel)]),
|
|
14958
|
+
])(props.homeLabel));
|
|
14959
|
+
exports.shellBrand = shellBrand;
|
|
14960
|
+
|
|
14091
14961
|
},
|
|
14092
14962
|
"../plggmatic/src/Shell/usecase/kit.ts": function (module, exports, require) {
|
|
14093
14963
|
"use strict";
|
|
14094
14964
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14095
|
-
exports.kitAppearanceCss = exports.kitSystemCss = exports.kitCss = void 0;
|
|
14965
|
+
exports.kitAppearanceCss = exports.kitSystemCss = exports.kitTypesetCss = exports.kitCss = void 0;
|
|
14096
14966
|
const metricCss_1 = require("../plggmatic/src/Style/usecase/metricCss.ts");
|
|
14967
|
+
const typesetting_1 = require("../plggmatic/src/Style/model/typesetting.ts");
|
|
14097
14968
|
const schemeCss_1 = require("../plggmatic/src/Style/usecase/schemeCss.ts");
|
|
14098
14969
|
const themeToggle_1 = require("../plggmatic/src/Component/usecase/themeToggle.ts");
|
|
14970
|
+
const languageMenu_1 = require("../plggmatic/src/Component/usecase/languageMenu.ts");
|
|
14971
|
+
const headingAnchor_1 = require("../plggmatic/src/Component/usecase/headingAnchor.ts");
|
|
14972
|
+
const docPager_1 = require("../plggmatic/src/Component/usecase/docPager.ts");
|
|
14973
|
+
const hero_1 = require("../plggmatic/src/Component/usecase/hero.ts");
|
|
14099
14974
|
const systemCss_1 = require("../plggmatic/src/System/usecase/systemCss.ts");
|
|
14100
14975
|
const appearance_1 = require("../plggmatic/src/Appearance/model/appearance.ts");
|
|
14101
14976
|
const appearanceCss_1 = require("../plggmatic/src/Appearance/usecase/appearanceCss.ts");
|
|
14102
14977
|
const kitCss = (theme, appearance = appearance_1.monochrome) => (0, exports.kitSystemCss)(theme) +
|
|
14978
|
+
(0, exports.kitTypesetCss)(theme) +
|
|
14103
14979
|
(0, exports.kitAppearanceCss)(theme, appearance);
|
|
14104
14980
|
exports.kitCss = kitCss;
|
|
14105
|
-
const
|
|
14981
|
+
const kitTypesetCss = (theme) => (0, typesetting_1.typesetCss)(`.${theme.prefix}-doc`, typesetting_1.defaultTypesetting);
|
|
14982
|
+
exports.kitTypesetCss = kitTypesetCss;
|
|
14983
|
+
const kitSystemCss = (theme) => (0, metricCss_1.metricCss)(theme) +
|
|
14984
|
+
(0, systemCss_1.systemCss)(theme) +
|
|
14985
|
+
headingAnchor_1.headingAnchorSystemCss;
|
|
14106
14986
|
exports.kitSystemCss = kitSystemCss;
|
|
14107
14987
|
const kitAppearanceCss = (theme, appearance = appearance_1.monochrome) => (0, schemeCss_1.schemeCss)(theme) +
|
|
14108
14988
|
themeToggle_1.themeToggleCss +
|
|
14989
|
+
languageMenu_1.languageMenuCss +
|
|
14990
|
+
(0, headingAnchor_1.headingAnchorAppearanceCss)(theme) +
|
|
14991
|
+
docPager_1.docPagerCss +
|
|
14992
|
+
hero_1.heroCss +
|
|
14109
14993
|
(0, appearanceCss_1.appearanceCss)(theme)(appearance);
|
|
14110
14994
|
exports.kitAppearanceCss = kitAppearanceCss;
|
|
14111
14995
|
|
|
@@ -14120,6 +15004,7 @@ const breakpoint_1 = require("../plggmatic/src/Style/model/breakpoint.ts");
|
|
|
14120
15004
|
const shareCss_1 = require("../plggmatic/src/Style/usecase/shareCss.ts");
|
|
14121
15005
|
const partsCss_1 = require("../plggmatic/src/Component/usecase/partsCss.ts");
|
|
14122
15006
|
const marker_1 = require("../plggmatic/src/Navigate/model/marker.ts");
|
|
15007
|
+
const shellBrandCss_1 = require("../plggmatic/src/Shell/usecase/shellBrandCss.ts");
|
|
14123
15008
|
const systemCss = (theme) => {
|
|
14124
15009
|
const p = theme.prefix;
|
|
14125
15010
|
const mvar = (0, metric_1.metricVar)(theme);
|
|
@@ -14139,7 +15024,7 @@ const systemCss = (theme) => {
|
|
|
14139
15024
|
.${p}-shell-title{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
14140
15025
|
.${p}-shell-body{flex:1 1 auto;min-height:0;overflow:auto}
|
|
14141
15026
|
${side}{width:var(${inset});position:sticky;left:0;z-index:3}
|
|
14142
|
-
|
|
15027
|
+
${(0, shellBrandCss_1.shellBrandSystemCss)(theme)}
|
|
14143
15028
|
.${p}-shell-fold{display:inline-flex;margin-left:auto;flex:none;align-items:center;justify-content:center;cursor:pointer}
|
|
14144
15029
|
.${p}-shell-foot{flex:none;margin-top:auto;display:flex;align-items:center}
|
|
14145
15030
|
@media ${(0, breakpoint_1.minWidth)("lg")}{
|
|
@@ -14147,11 +15032,12 @@ ${M}{${inset}:3rem}
|
|
|
14147
15032
|
${M} ${side} .${p}-shell-brand,${M} ${side} .${p}-shell-body{display:none}
|
|
14148
15033
|
${M} ${side} .${p}-shell-head{justify-content:center}
|
|
14149
15034
|
${M} .${p}-shell-fold{margin:0}
|
|
14150
|
-
${M} .${p}-shell-foot{justify-content:center}
|
|
15035
|
+
${M} .${p}-shell-foot{justify-content:center;flex-direction:column;gap:0.4rem}
|
|
14151
15036
|
}
|
|
14152
15037
|
.${p}-shell-rail{display:none;flex:0 0 ${mvar("rail")};width:${mvar("rail")};flex-direction:column;align-items:center;margin-left:auto;position:sticky;right:0}
|
|
14153
15038
|
.${p}-shell-rail-group,.${p}-shell-rail .${p}-chrome-links{display:flex;flex-direction:column;align-items:center}
|
|
14154
15039
|
.${p}-chrome-links{display:flex;align-items:center}
|
|
15040
|
+
.${p}-chrome-link-mark{display:block;width:18px;height:18px}
|
|
14155
15041
|
.${p}-shell-bar .${p}-chrome-links{margin-left:auto}
|
|
14156
15042
|
.${p}-chrome-link{display:inline-flex;align-items:center}
|
|
14157
15043
|
.${p}-shell-rail .${p}-chrome-link-label{writing-mode:vertical-rl}
|
|
@@ -14211,8 +15097,11 @@ ${car}{position:absolute;top:50%;z-index:${(0, zIndex_1.zValue)("chrome")};displ
|
|
|
14211
15097
|
.${p}-btn{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
|
|
14212
15098
|
.${p}-btn:disabled,.${p}-disabled{cursor:not-allowed}
|
|
14213
15099
|
.${p}-actions{display:flex;flex-wrap:wrap}
|
|
15100
|
+
.${p}-actions-end{justify-content:flex-end}
|
|
14214
15101
|
.${p}-form{display:flex;flex-direction:column}
|
|
14215
|
-
.${p}-field{display:flex;flex-direction:column}
|
|
15102
|
+
.${p}-field{display:flex;flex-direction:column;min-width:0}
|
|
15103
|
+
.${p}-field .${p}-input{box-sizing:border-box;width:100%;min-width:0}
|
|
15104
|
+
.${p}-form[hidden],.${p}-field[hidden],.${p}-field-error[hidden],.${p}-actions[hidden]{display:none}
|
|
14216
15105
|
.${p}-check{flex-direction:row;align-items:center}
|
|
14217
15106
|
.${p}-prop{display:grid;grid-template-columns:minmax(5.5rem,2fr) minmax(0,3fr);align-items:center}
|
|
14218
15107
|
.${p}-prop-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
@@ -14266,6 +15155,9 @@ const partsSystemCss = (p, overlay) => `
|
|
|
14266
15155
|
.${p}-items-title,.${p}-items-note{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
14267
15156
|
.${p}-items-trail{flex:none;display:flex;align-items:center}
|
|
14268
15157
|
.${p}-alert p{margin:0}
|
|
15158
|
+
.${p}-alert-notice,.${p}-alert-panel{display:flex;flex-direction:column;min-width:0}
|
|
15159
|
+
.${p}-alert .${p}-alert-title{margin:0}
|
|
15160
|
+
.${p}-alert[hidden]{display:none}
|
|
14269
15161
|
.${p}-progress-track{position:relative;width:100%;overflow:hidden}
|
|
14270
15162
|
.${p}-progress-bar{height:100%}
|
|
14271
15163
|
.${p}-progress[data-${p}-busy] .${p}-progress-bar{width:40%}
|
|
@@ -14392,7 +15284,14 @@ ${toned("badge")}
|
|
|
14392
15284
|
.${p}-items-trail{gap:.5rem}
|
|
14393
15285
|
.${p}-alert{padding:.7rem .9rem;border:${l.rule};border-left-width:4px;border-radius:${l.radius};font-size:.875rem;line-height:1.6}
|
|
14394
15286
|
${toned("alert")}
|
|
14395
|
-
.${p}-alert-title{font-weight:600}
|
|
15287
|
+
.${p}-alert .${p}-alert-title{padding:0;border:0;font-weight:600}
|
|
15288
|
+
.${p}-alert-notice,.${p}-alert-panel{padding:.75rem 1rem}
|
|
15289
|
+
.${p}-alert-notice{gap:.25rem;border-color:${l.tone("primary", "text")};background:${l.tone("primary", "surface")};color:${l.muted};border-top:0;border-right:0;border-bottom:0}
|
|
15290
|
+
.${p}-alert-notice .${p}-alert-title{font-size:1rem;color:${l.text}}
|
|
15291
|
+
.${p}-alert-panel{gap:.75rem;margin-top:1.5rem;border:${l.rule};background:${l.tone("primary", "surface")};color:${l.text}}
|
|
15292
|
+
.${p}-alert-panel .${p}-alert-title{font-size:1.25rem}
|
|
15293
|
+
.${p}-alert-body :is(p,ul,ol):first-child{margin-top:0}
|
|
15294
|
+
.${p}-alert-body :is(p,ul,ol):last-child{margin-bottom:0}
|
|
14396
15295
|
.${p}-progress-track{height:.5rem;border:${l.rule};border-radius:${l.round};background:${l.surface}}
|
|
14397
15296
|
.${p}-progress-bar{background:${l.text};transition:width ${l.quick} ease}
|
|
14398
15297
|
.${p}-progress[data-${p}-busy] .${p}-progress-bar{animation:${p}-busy 1.2s linear infinite}
|
|
@@ -14525,6 +15424,30 @@ th[aria-sort="ascending"] .${p}-sort::after,th[aria-sort="descending"] .${p}-sor
|
|
|
14525
15424
|
};
|
|
14526
15425
|
exports.partsAppearanceCss = partsAppearanceCss;
|
|
14527
15426
|
|
|
15427
|
+
},
|
|
15428
|
+
"../plggmatic/src/Shell/usecase/shellBrandCss.ts": function (module, exports, require) {
|
|
15429
|
+
"use strict";
|
|
15430
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15431
|
+
exports.shellBrandAppearanceCss = exports.shellBrandSystemCss = void 0;
|
|
15432
|
+
const breakpoint_1 = require("../plggmatic/src/Style/model/breakpoint.ts");
|
|
15433
|
+
const token_1 = require("../plggmatic/src/Style/model/token.ts");
|
|
15434
|
+
const shellBrandSystemCss = (theme) => `
|
|
15435
|
+
.${theme.prefix}-shell-brand{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
15436
|
+
.${theme.prefix}-shell-brand-full{display:inline}
|
|
15437
|
+
.${theme.prefix}-shell-brand-home{display:none}
|
|
15438
|
+
@media ${(0, breakpoint_1.maxWidth)("lg")}{
|
|
15439
|
+
.${theme.prefix}-shell-brand-full{display:none}
|
|
15440
|
+
.${theme.prefix}-shell-brand-home{display:inline}
|
|
15441
|
+
}
|
|
15442
|
+
`;
|
|
15443
|
+
exports.shellBrandSystemCss = shellBrandSystemCss;
|
|
15444
|
+
const shellBrandAppearanceCss = (theme) => (appearance) => `
|
|
15445
|
+
.${theme.prefix}-shell-brand{margin-left:-.5rem;padding:.25rem .5rem;border-radius:${appearance.radius};font-size:1rem;letter-spacing:-.01em;line-height:1.25rem;font-weight:600;color:${(0, token_1.colorVar)(theme)("text")};text-decoration:none;transition:background-color ${appearance.quick} ease,color ${appearance.quick} ease}
|
|
15446
|
+
.${theme.prefix}-shell-brand:focus-visible{outline:${appearance.ruleWidth} solid ${(0, token_1.colorVar)(theme)(appearance.rule)};outline-offset:-1px}
|
|
15447
|
+
.${theme.prefix}-shell-brand[aria-current]{background:${(0, token_1.colorVar)(theme)(appearance.current.fill)};color:${(0, token_1.colorVar)(theme)(appearance.current.ink)}}
|
|
15448
|
+
`;
|
|
15449
|
+
exports.shellBrandAppearanceCss = shellBrandAppearanceCss;
|
|
15450
|
+
|
|
14528
15451
|
},
|
|
14529
15452
|
"../plggmatic/src/Appearance/model/appearance.ts": function (module, exports, require) {
|
|
14530
15453
|
"use strict";
|
|
@@ -14589,8 +15512,11 @@ exports.soft = {
|
|
|
14589
15512
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14590
15513
|
exports.appearanceCss = void 0;
|
|
14591
15514
|
const token_1 = require("../plggmatic/src/Style/model/token.ts");
|
|
15515
|
+
const typesetting_1 = require("../plggmatic/src/Style/model/typesetting.ts");
|
|
14592
15516
|
const themeToggle_1 = require("../plggmatic/src/Component/usecase/themeToggle.ts");
|
|
15517
|
+
const classHooks_1 = require("../plggmatic/src/Meta/model/classHooks.ts");
|
|
14593
15518
|
const partsCss_1 = require("../plggmatic/src/Component/usecase/partsCss.ts");
|
|
15519
|
+
const shellBrandCss_1 = require("../plggmatic/src/Shell/usecase/shellBrandCss.ts");
|
|
14594
15520
|
const appearanceCss = (theme) => (a) => {
|
|
14595
15521
|
const p = theme.prefix;
|
|
14596
15522
|
const cvar = (0, token_1.colorVar)(theme);
|
|
@@ -14625,9 +15551,7 @@ const appearanceCss = (theme) => (a) => {
|
|
|
14625
15551
|
${side}{transition:width ${a.arrive} ${a.ease}}
|
|
14626
15552
|
${side} .${p}-shell-body{font-size:.875rem}
|
|
14627
15553
|
${page} .${p}-shell-body{padding:${a.page}}
|
|
14628
|
-
|
|
14629
|
-
.${p}-shell-brand:focus-visible{outline:${rule};outline-offset:-1px}
|
|
14630
|
-
.${p}-shell-brand[aria-current]{${mark(a.current)}}
|
|
15554
|
+
${(0, shellBrandCss_1.shellBrandAppearanceCss)(theme)(a)}
|
|
14631
15555
|
.${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")}}
|
|
14632
15556
|
.${p}-shell-fold:hover,.${p}-shell-fold:focus-visible{${mark(a.press)};outline:0}
|
|
14633
15557
|
.${p}-shell-fold span{position:relative;display:block;width:1rem;height:.8rem;border:1.5px solid currentColor}
|
|
@@ -14661,28 +15585,21 @@ ${M} .${p}-shell-foot{padding:.6rem 0}
|
|
|
14661
15585
|
${page} ~ ${page}{animation:${p}-page-in ${a.arrive} ${a.ease}}
|
|
14662
15586
|
.${p}-shell ${page}${page}[data-${p}-replacing]{animation:${p}-page-swap ${a.swap} ease-out}
|
|
14663
15587
|
.${p}-shell ${page}${page}[data-${p}-leaving]{animation:${p}-page-out ${a.leave} cubic-bezier(.4,0,.6,1) forwards}
|
|
14664
|
-
${doc
|
|
14665
|
-
|
|
14666
|
-
|
|
14667
|
-
|
|
14668
|
-
|
|
14669
|
-
|
|
14670
|
-
|
|
14671
|
-
|
|
14672
|
-
|
|
15588
|
+
${(0, typesetting_1.typesetInkCss)(doc, {
|
|
15589
|
+
text,
|
|
15590
|
+
muted,
|
|
15591
|
+
rule,
|
|
15592
|
+
hair,
|
|
15593
|
+
wash: cvar("surface-2"),
|
|
15594
|
+
surface,
|
|
15595
|
+
mono: a.mono,
|
|
15596
|
+
radius: a.radius,
|
|
15597
|
+
})}
|
|
14673
15598
|
${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")}}
|
|
14674
15599
|
${doc} a:hover,${doc} a:focus-visible{${mark(a.press)};text-decoration:none;outline:0;box-decoration-break:clone;-webkit-box-decoration-break:clone}
|
|
14675
15600
|
${doc} a[data-${p}-opened]{${mark(a.current)};text-decoration:none}
|
|
14676
15601
|
${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}
|
|
14677
|
-
${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")}}
|
|
14678
15602
|
${doc} a:hover code,${doc} a:focus-visible code,${doc} a[data-${p}-opened] code{color:inherit;background:none;border-color:transparent}
|
|
14679
|
-
${doc} pre{margin:1.1rem 0;padding:.875rem 1rem;background:${surface};border:${rule};border-radius:${a.radius};font-size:.8125rem;line-height:1.65}
|
|
14680
|
-
${doc} pre code{padding:0;border:none;background:none;font-size:inherit;color:inherit}
|
|
14681
|
-
${doc} table{border-collapse:collapse;margin:1.25rem 0;font-size:.92rem}
|
|
14682
|
-
${doc} th,${doc} td{text-align:left;padding:.5rem 1.25rem .5rem 0;border-bottom:${hair}}
|
|
14683
|
-
${doc} th{border-bottom:${rule};font-weight:600}
|
|
14684
|
-
${doc} hr{border:none;border-top:${hair};margin:1.5rem 0}
|
|
14685
|
-
${doc} :is(h1,h2,h3,h4){scroll-margin-top:1rem}
|
|
14686
15603
|
.${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}
|
|
14687
15604
|
.${p}-callout-title{font-weight:600;margin:0 0 .35rem}
|
|
14688
15605
|
.${p}-callout p{margin:.35rem 0}
|
|
@@ -14690,9 +15607,10 @@ ${doc} :is(h1,h2,h3,h4){scroll-margin-top:1rem}
|
|
|
14690
15607
|
.${p}-callout-tip{background:${cvar("success-surface")};border-color:${cvar("success-border")};color:${cvar("success-text")}}
|
|
14691
15608
|
.${p}-callout-warning{background:${cvar("warning-surface")};border-color:${cvar("warning-border")};color:${cvar("warning-text")}}
|
|
14692
15609
|
.${p}-callout-danger{background:${cvar("danger-surface")};border-color:${cvar("danger-border")};color:${cvar("danger-text")}}
|
|
14693
|
-
.${themeToggle_1.themeToggleClass}{border-radius:${a.radius === "0" ? "0" : "50%"};border:${hair}}
|
|
14694
|
-
.${themeToggle_1.themeToggleClass}:hover{border-color:${cvar(a.rule)}}
|
|
14695
|
-
.${themeToggle_1.themeToggleClass}:focus-visible{outline:${rule};outline-offset:2px}
|
|
15610
|
+
.${themeToggle_1.themeToggleClass},.${classHooks_1.languageToggleClass}{border-radius:${a.radius === "0" ? "0" : "50%"};border:${hair}}
|
|
15611
|
+
.${themeToggle_1.themeToggleClass}:hover,.${classHooks_1.languageToggleClass}:hover{border-color:${cvar(a.rule)}}
|
|
15612
|
+
.${themeToggle_1.themeToggleClass}:focus-visible,.${classHooks_1.languageToggleClass}:focus-visible{outline:${rule};outline-offset:2px}
|
|
15613
|
+
.${classHooks_1.languageListClass}{border-radius:${a.radius};border:${hair}}
|
|
14696
15614
|
.${p}-nav-group{margin:0}
|
|
14697
15615
|
.${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}}
|
|
14698
15616
|
${link}{padding:.5rem ${a.gutter};border-bottom:${hair};font-size:.875rem;line-height:1.45;color:${text};text-decoration:none}
|
|
@@ -14727,6 +15645,8 @@ ${carEach(":hover")},${carEach(":focus-visible")}{${mark(a.press)};outline:0}
|
|
|
14727
15645
|
.${p}-btn:hover:not(:disabled),.${p}-btn:focus-visible{${mark(a.press)};outline:0}
|
|
14728
15646
|
.${p}-btn-primary{background:${cvar("primary-base")};color:${surface};border-color:${cvar("primary-base")}}
|
|
14729
15647
|
.${p}-btn-primary:hover:not(:disabled),.${p}-btn-primary:focus-visible{opacity:.82;background:${cvar("primary-base")};color:${surface}}
|
|
15648
|
+
.${p}-btn-outline{background:transparent;color:${cvar("primary-text")};border-color:${cvar("primary-text")}}
|
|
15649
|
+
.${p}-btn-outline:hover:not(:disabled),.${p}-btn-outline:focus-visible{background:${cvar("primary-text")};color:${surface}}
|
|
14730
15650
|
.${p}-btn-danger{border-color:${danger};color:${danger}}
|
|
14731
15651
|
.${p}-btn-danger:hover:not(:disabled),.${p}-btn-danger:focus-visible{background:${danger};color:${surface};border-color:${danger}}
|
|
14732
15652
|
.${p}-btn:disabled,.${p}-disabled{opacity:.45}
|
|
@@ -14739,9 +15659,10 @@ ${carEach(":hover")},${carEach(":focus-visible")}{${mark(a.press)};outline:0}
|
|
|
14739
15659
|
.${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}
|
|
14740
15660
|
.${p}-input:focus,.${p}-input:focus-visible{outline:0;box-shadow:inset 0 0 0 1px ${cvar(a.rule)}}
|
|
14741
15661
|
.${p}-input::placeholder{color:${muted}}
|
|
14742
|
-
.${p}-input[aria-invalid="true"]{border-color:${danger}}
|
|
15662
|
+
.${p}-input[aria-invalid="true"]{border-color:${cvar("danger-border")}}
|
|
14743
15663
|
.${p}-checkbox{width:1rem;height:1rem;margin:0;accent-color:${cvar("primary-base")}}
|
|
14744
|
-
.${p}-field-
|
|
15664
|
+
.${p}-field-required{color:${cvar("danger-border")}}
|
|
15665
|
+
.${p}-field-error,.${p}-error{color:${cvar("danger-text")};font-size:.8125rem}
|
|
14745
15666
|
.${p}-hint{color:${muted};font-size:.8125rem}
|
|
14746
15667
|
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}
|
|
14747
15668
|
.${p}-input:disabled{opacity:.45}
|
|
@@ -15003,7 +15924,8 @@ body.${classHooks_1.siteBodyClass}{
|
|
|
15003
15924
|
oversized relative to the phone column; scale them down.
|
|
15004
15925
|
Body text keeps its base size. */
|
|
15005
15926
|
@media ${(0, styleEntry_1.maxWidth)("sm")}{
|
|
15006
|
-
.${classHooks_1.docClass} h1{font-size:1.
|
|
15927
|
+
.${classHooks_1.docClass} h1{font-size:1.5rem}
|
|
15928
|
+
.${classHooks_1.docClass} h2{font-size:1.2rem;margin-top:2.25rem}
|
|
15007
15929
|
}
|
|
15008
15930
|
|
|
15009
15931
|
@media ${(0, styleEntry_1.minWidth)("lg")}{
|
|
@@ -15090,7 +16012,8 @@ const tag = (props) => (0, plgg_view_1.el)("span", [(0, plgg_view_1.attr)("class
|
|
|
15090
16012
|
(0, plgg_view_1.el)("button", [
|
|
15091
16013
|
(0, plgg_view_1.attr)("type", "button"),
|
|
15092
16014
|
(0, plgg_view_1.attr)("class", classHooks_1.tagRemoveClass),
|
|
15093
|
-
(0, plgg_view_1.attr)("aria-label",
|
|
16015
|
+
(0, plgg_view_1.attr)("aria-label", props.removeLabel ??
|
|
16016
|
+
`${props.label}のタグを外す`),
|
|
15094
16017
|
(0, plgg_view_1.onClick)(remove),
|
|
15095
16018
|
], [(0, plgg_view_1.text)("×")]),
|
|
15096
16019
|
])(props.onRemove),
|
|
@@ -15168,17 +16091,55 @@ exports.tooltip = exports.skeleton = exports.spinner = exports.progress = export
|
|
|
15168
16091
|
const plgg_1 = require("../plgg/src/index.ts");
|
|
15169
16092
|
const plgg_view_1 = require("../plgg-view/src/index.ts");
|
|
15170
16093
|
const classHooks_1 = require("../plggmatic/src/Meta/model/classHooks.ts");
|
|
15171
|
-
const alert = (props) => (0,
|
|
15172
|
-
|
|
15173
|
-
|
|
15174
|
-
|
|
15175
|
-
|
|
15176
|
-
|
|
15177
|
-
|
|
15178
|
-
|
|
15179
|
-
|
|
15180
|
-
|
|
15181
|
-
])
|
|
16094
|
+
const alert = ({ layout = "message", hidden = false, focusable = false, tone, role = tone === "danger" ? "alert" : "status", ...props }) => (0, plgg_1.box)("Element")({
|
|
16095
|
+
tag: layout === "notice" ? "section" : "div",
|
|
16096
|
+
attributes: [
|
|
16097
|
+
(0, plgg_view_1.attr)("class", [
|
|
16098
|
+
classHooks_1.alertClass,
|
|
16099
|
+
(0, classHooks_1.alertToneClass)(tone),
|
|
16100
|
+
...(layout === "notice"
|
|
16101
|
+
? [classHooks_1.alertNoticeClass]
|
|
16102
|
+
: layout === "panel"
|
|
16103
|
+
? [classHooks_1.alertPanelClass]
|
|
16104
|
+
: []),
|
|
16105
|
+
].join(" ")),
|
|
16106
|
+
...(layout === "notice"
|
|
16107
|
+
? []
|
|
16108
|
+
: [
|
|
16109
|
+
(0, plgg_view_1.attr)("role", layout === "panel"
|
|
16110
|
+
? "status"
|
|
16111
|
+
: role),
|
|
16112
|
+
]),
|
|
16113
|
+
...(hidden ? [(0, plgg_view_1.attr)("hidden", "")] : []),
|
|
16114
|
+
...(focusable
|
|
16115
|
+
? [(0, plgg_view_1.attr)("tabindex", "-1")]
|
|
16116
|
+
: []),
|
|
16117
|
+
...(0, plgg_1.matchOption)(() => [], (id) => [(0, plgg_view_1.attr)("id", id)])((0, plgg_1.fromNullable)(props.id)),
|
|
16118
|
+
...(0, plgg_1.matchOption)(() => [], (id) => [(0, plgg_view_1.attr)("aria-labelledby", id)])((0, plgg_1.isSome)(props.title)
|
|
16119
|
+
? (0, plgg_1.fromNullable)(props.titleId)
|
|
16120
|
+
: (0, plgg_1.none)()),
|
|
16121
|
+
],
|
|
16122
|
+
children: [
|
|
16123
|
+
...(0, plgg_1.matchOption)(() => [], (title) => [
|
|
16124
|
+
(0, plgg_view_1.el)(layout === "notice"
|
|
16125
|
+
? "h3"
|
|
16126
|
+
: layout === "panel"
|
|
16127
|
+
? "h2"
|
|
16128
|
+
: "p", [
|
|
16129
|
+
(0, plgg_view_1.attr)("class", classHooks_1.alertTitleClass),
|
|
16130
|
+
...(0, plgg_1.matchOption)(() => [], (id) => [(0, plgg_view_1.attr)("id", id)])((0, plgg_1.fromNullable)(props.titleId)),
|
|
16131
|
+
...(layout === "panel"
|
|
16132
|
+
? [(0, plgg_view_1.attr)("tabindex", "-1")]
|
|
16133
|
+
: []),
|
|
16134
|
+
], [(0, plgg_view_1.text)(title)]),
|
|
16135
|
+
])(props.title),
|
|
16136
|
+
...(layout === "message"
|
|
16137
|
+
? props.body
|
|
16138
|
+
: [
|
|
16139
|
+
(0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.alertBodyClass)], props.body),
|
|
16140
|
+
]),
|
|
16141
|
+
],
|
|
16142
|
+
});
|
|
15182
16143
|
exports.alert = alert;
|
|
15183
16144
|
const percent = (share) => Math.round(Math.min(1, Math.max(0, share)) * 100);
|
|
15184
16145
|
const progress = (props) => (0, plgg_view_1.el)("div", [
|
|
@@ -15268,7 +16229,7 @@ const pagination = (props) => (0, plgg_view_1.el)("nav", [
|
|
|
15268
16229
|
(0, plgg_view_1.attr)("class", classHooks_1.pagerClass),
|
|
15269
16230
|
(0, plgg_view_1.attr)("aria-label", props.label),
|
|
15270
16231
|
], [
|
|
15271
|
-
step(props, props.page - 1, "‹", "前のページ"),
|
|
16232
|
+
step(props, props.page - 1, "‹", props.previousLabel ?? "前のページ"),
|
|
15272
16233
|
...(0, exports.pageNumbers)(props.page, props.pages).map((n) => n === 0
|
|
15273
16234
|
? (0, plgg_view_1.el)("span", [(0, plgg_view_1.attr)("aria-hidden", "true")], [(0, plgg_view_1.text)("…")])
|
|
15274
16235
|
: (0, plgg_view_1.el)("button", [
|
|
@@ -15280,7 +16241,7 @@ const pagination = (props) => (0, plgg_view_1.el)("nav", [
|
|
|
15280
16241
|
]
|
|
15281
16242
|
: [(0, plgg_view_1.onClick)(props.onGo(n))]),
|
|
15282
16243
|
], [(0, plgg_view_1.text)(String(n))])),
|
|
15283
|
-
step(props, props.page + 1, "›", "次のページ"),
|
|
16244
|
+
step(props, props.page + 1, "›", props.nextLabel ?? "次のページ"),
|
|
15284
16245
|
]);
|
|
15285
16246
|
exports.pagination = pagination;
|
|
15286
16247
|
const steps = (props) => (0, plgg_view_1.el)("ol", [
|
|
@@ -15657,6 +16618,204 @@ const calendar = (props) => (0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("c
|
|
|
15657
16618
|
]);
|
|
15658
16619
|
exports.calendar = calendar;
|
|
15659
16620
|
|
|
16621
|
+
},
|
|
16622
|
+
"../plggmatic/src/Joining/usecase/attachJoining.ts": function (module, exports, require) {
|
|
16623
|
+
"use strict";
|
|
16624
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16625
|
+
exports.attachJoining = void 0;
|
|
16626
|
+
const plgg_1 = require("../plgg/src/index.ts");
|
|
16627
|
+
const policy_1 = require("../plggmatic/src/Joining/model/policy.ts");
|
|
16628
|
+
const marker_1 = require("../plggmatic/src/Navigate/model/marker.ts");
|
|
16629
|
+
const handshake_1 = require("../plggmatic/src/Joining/model/handshake.ts");
|
|
16630
|
+
const attachChild = (win, policy) => {
|
|
16631
|
+
win.document.documentElement.hidden = true;
|
|
16632
|
+
let challenge = (0, plgg_1.none)();
|
|
16633
|
+
const receive = (event) => {
|
|
16634
|
+
const data = event.data;
|
|
16635
|
+
const loc = win.location;
|
|
16636
|
+
if (!(0, handshake_1.isJoiningMessage)(data) ||
|
|
16637
|
+
win.top !== win.parent ||
|
|
16638
|
+
event.source !== win.parent ||
|
|
16639
|
+
!(0, plgg_1.pipe)(policy, (0, handshake_1.mayAnswer)(event.origin, loc.href, data.path)))
|
|
16640
|
+
return;
|
|
16641
|
+
if (data.kind === "hello" &&
|
|
16642
|
+
(0, plgg_1.isNone)(challenge)) {
|
|
16643
|
+
challenge = (0, plgg_1.some)({
|
|
16644
|
+
origin: event.origin,
|
|
16645
|
+
nonce: data.nonce,
|
|
16646
|
+
path: data.path,
|
|
16647
|
+
});
|
|
16648
|
+
win.parent.postMessage((0, handshake_1.message)("ready", data.nonce, data.path), event.origin);
|
|
16649
|
+
}
|
|
16650
|
+
else if ((0, plgg_1.isSome)(challenge) &&
|
|
16651
|
+
event.origin === challenge.content.origin &&
|
|
16652
|
+
(0, plgg_1.pipe)(data, (0, handshake_1.matchesConnection)("accept", challenge.content.nonce, challenge.content.path))) {
|
|
16653
|
+
win.document.documentElement.hidden = false;
|
|
16654
|
+
win.document.documentElement.setAttribute(marker_1.embeddedAttr, "");
|
|
16655
|
+
}
|
|
16656
|
+
};
|
|
16657
|
+
win.addEventListener("message", receive);
|
|
16658
|
+
return () => {
|
|
16659
|
+
win.removeEventListener("message", receive);
|
|
16660
|
+
win.document.documentElement.hidden = true;
|
|
16661
|
+
win.document.documentElement.removeAttribute(marker_1.embeddedAttr);
|
|
16662
|
+
};
|
|
16663
|
+
};
|
|
16664
|
+
const attachJoining = (root, policy, adapter) => {
|
|
16665
|
+
const win = root.ownerDocument.defaultView;
|
|
16666
|
+
if (!win ||
|
|
16667
|
+
win.location.origin !== policy.origin)
|
|
16668
|
+
return () => { };
|
|
16669
|
+
if (win !== win.top)
|
|
16670
|
+
return attachChild(win, policy);
|
|
16671
|
+
const parentAllowed = () => policy.parentRoutes.includes(win.location.pathname);
|
|
16672
|
+
const connections = new Map();
|
|
16673
|
+
const click = (e) => {
|
|
16674
|
+
if (e.defaultPrevented ||
|
|
16675
|
+
e.button !== 0 ||
|
|
16676
|
+
e.metaKey ||
|
|
16677
|
+
e.ctrlKey ||
|
|
16678
|
+
e.shiftKey ||
|
|
16679
|
+
e.altKey ||
|
|
16680
|
+
!parentAllowed() ||
|
|
16681
|
+
!adapter.mount ||
|
|
16682
|
+
!(e.target instanceof Element))
|
|
16683
|
+
return;
|
|
16684
|
+
const a = e.target.closest("a[href]");
|
|
16685
|
+
if (!(a instanceof HTMLAnchorElement) ||
|
|
16686
|
+
!root.contains(a) ||
|
|
16687
|
+
a.hasAttribute("download") ||
|
|
16688
|
+
(a.target && a.target !== "_self") ||
|
|
16689
|
+
a.getAttribute("href") !==
|
|
16690
|
+
a.origin + a.pathname ||
|
|
16691
|
+
!(0, plgg_1.pipe)(policy, (0, policy_1.mayOpenColumn)(a.origin, a.pathname)) ||
|
|
16692
|
+
!policy.partners.some((p) => p.origin === a.origin &&
|
|
16693
|
+
p.trust === "public"))
|
|
16694
|
+
return;
|
|
16695
|
+
const { origin, pathname, href } = a;
|
|
16696
|
+
e.preventDefault();
|
|
16697
|
+
const prior = connections.get(href);
|
|
16698
|
+
if (prior && root.contains(prior.frame))
|
|
16699
|
+
return;
|
|
16700
|
+
prior?.close();
|
|
16701
|
+
const frame = root.ownerDocument.createElement("iframe");
|
|
16702
|
+
frame.className = marker_1.frameClass;
|
|
16703
|
+
frame.hidden = true;
|
|
16704
|
+
frame.title = href;
|
|
16705
|
+
frame.sandbox.add("allow-scripts", "allow-same-origin");
|
|
16706
|
+
frame.referrerPolicy =
|
|
16707
|
+
"strict-origin-when-cross-origin";
|
|
16708
|
+
let challenge = (0, plgg_1.none)();
|
|
16709
|
+
const load = () => {
|
|
16710
|
+
frame.hidden = true;
|
|
16711
|
+
const nonce = crypto.randomUUID();
|
|
16712
|
+
challenge = (0, plgg_1.some)(nonce);
|
|
16713
|
+
frame.contentWindow?.postMessage((0, handshake_1.message)("hello", nonce, pathname), origin);
|
|
16714
|
+
};
|
|
16715
|
+
const receive = (event) => {
|
|
16716
|
+
const data = event.data;
|
|
16717
|
+
if (!parentAllowed() ||
|
|
16718
|
+
!root.contains(frame) ||
|
|
16719
|
+
event.origin !== origin ||
|
|
16720
|
+
!event.source ||
|
|
16721
|
+
event.source !== frame.contentWindow ||
|
|
16722
|
+
!(0, plgg_1.isSome)(challenge) ||
|
|
16723
|
+
!(0, plgg_1.pipe)(data, (0, handshake_1.matchesConnection)("ready", challenge.content, pathname)))
|
|
16724
|
+
return;
|
|
16725
|
+
frame.contentWindow?.postMessage((0, handshake_1.message)("accept", challenge.content, pathname), origin);
|
|
16726
|
+
frame.hidden = false;
|
|
16727
|
+
};
|
|
16728
|
+
frame.addEventListener("load", load);
|
|
16729
|
+
win.addEventListener("message", receive);
|
|
16730
|
+
frame.src = href + "?pm-embed=1";
|
|
16731
|
+
const unmount = adapter.mount(href, frame);
|
|
16732
|
+
connections.set(href, {
|
|
16733
|
+
frame,
|
|
16734
|
+
close: () => {
|
|
16735
|
+
frame.removeEventListener("load", load);
|
|
16736
|
+
win.removeEventListener("message", receive);
|
|
16737
|
+
connections.delete(href);
|
|
16738
|
+
unmount();
|
|
16739
|
+
},
|
|
16740
|
+
});
|
|
16741
|
+
};
|
|
16742
|
+
const observer = new MutationObserver(() => {
|
|
16743
|
+
for (const c of connections.values())
|
|
16744
|
+
if (!root.contains(c.frame))
|
|
16745
|
+
c.close();
|
|
16746
|
+
});
|
|
16747
|
+
observer.observe(root, {
|
|
16748
|
+
subtree: true,
|
|
16749
|
+
childList: true,
|
|
16750
|
+
});
|
|
16751
|
+
root.addEventListener("click", click);
|
|
16752
|
+
return () => {
|
|
16753
|
+
observer.disconnect();
|
|
16754
|
+
root.removeEventListener("click", click);
|
|
16755
|
+
for (const c of connections.values())
|
|
16756
|
+
c.close();
|
|
16757
|
+
};
|
|
16758
|
+
};
|
|
16759
|
+
exports.attachJoining = attachJoining;
|
|
16760
|
+
|
|
16761
|
+
},
|
|
16762
|
+
"../plggmatic/src/Joining/model/handshake.ts": function (module, exports, require) {
|
|
16763
|
+
"use strict";
|
|
16764
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16765
|
+
exports.mayAnswer = exports.matchesConnection = exports.isJoiningMessage = exports.message = void 0;
|
|
16766
|
+
const message = (kind, nonce, path) => ({
|
|
16767
|
+
protocol: "plggmatic.join",
|
|
16768
|
+
version: 1,
|
|
16769
|
+
kind,
|
|
16770
|
+
nonce,
|
|
16771
|
+
path,
|
|
16772
|
+
});
|
|
16773
|
+
exports.message = message;
|
|
16774
|
+
const isJoiningMessage = (v) => typeof v === "object" &&
|
|
16775
|
+
v !== null &&
|
|
16776
|
+
"protocol" in v &&
|
|
16777
|
+
v.protocol === "plggmatic.join" &&
|
|
16778
|
+
"version" in v &&
|
|
16779
|
+
v.version === 1 &&
|
|
16780
|
+
"kind" in v &&
|
|
16781
|
+
(v.kind === "hello" ||
|
|
16782
|
+
v.kind === "ready" ||
|
|
16783
|
+
v.kind === "accept") &&
|
|
16784
|
+
"nonce" in v &&
|
|
16785
|
+
typeof v.nonce === "string" &&
|
|
16786
|
+
/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/.test(v.nonce) &&
|
|
16787
|
+
"path" in v &&
|
|
16788
|
+
typeof v.path === "string";
|
|
16789
|
+
exports.isJoiningMessage = isJoiningMessage;
|
|
16790
|
+
const matchesConnection = (kind, nonce, path) => (data) => (0, exports.isJoiningMessage)(data) &&
|
|
16791
|
+
data.kind === kind &&
|
|
16792
|
+
data.nonce === nonce &&
|
|
16793
|
+
data.path === path;
|
|
16794
|
+
exports.matchesConnection = matchesConnection;
|
|
16795
|
+
const mayAnswer = (sender, href, path) => (policy) => policy.embedders.some((p) => p.origin === sender) &&
|
|
16796
|
+
policy.routes.some((r) => r.access === "public" && r.path === path) &&
|
|
16797
|
+
href === policy.origin + path + "?pm-embed=1";
|
|
16798
|
+
exports.mayAnswer = mayAnswer;
|
|
16799
|
+
|
|
16800
|
+
},
|
|
16801
|
+
"../plggmatic/src/Component/usecase/brandMark.ts": function (module, exports, require) {
|
|
16802
|
+
"use strict";
|
|
16803
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16804
|
+
exports.brandMark = void 0;
|
|
16805
|
+
const classHooks_1 = require("../plggmatic/src/Meta/model/classHooks.ts");
|
|
16806
|
+
const plgg_view_1 = require("../plgg-view/src/index.ts");
|
|
16807
|
+
const GITHUB_D = "M12 .3a12 12 0 0 0-3.8 23.4c.6.1.8-.3.8-.6v-2c-3.3.7-4-1.6-4-1.6-.6-1.4-1.4-1.8-1.4-1.8-1-.7.1-.7.1-.7 1.2.1 1.8 1.2 1.8 1.2 1 1.8 2.8 1.3 3.5 1 0-.8.4-1.3.7-1.6-2.7-.3-5.5-1.3-5.5-6 0-1.2.5-2.3 1.3-3.1-.2-.4-.6-1.6 0-3.2 0 0 1-.3 3.3 1.2a11.5 11.5 0 0 1 6 0C17.3 4.6 18.3 5 18.3 5c.6 1.6.2 2.8.1 3.2.8.8 1.3 1.9 1.3 3.2 0 4.6-2.8 5.6-5.5 5.9.5.4.9 1.1.9 2.2v3.3c0 .3.1.7.8.6A12 12 0 0 0 12 .3";
|
|
16808
|
+
const marks = {
|
|
16809
|
+
github: GITHUB_D,
|
|
16810
|
+
};
|
|
16811
|
+
const brandMark = (name) => (0, plgg_view_1.svg)([
|
|
16812
|
+
(0, plgg_view_1.class_)(classHooks_1.chromeLinkMarkClass),
|
|
16813
|
+
(0, plgg_view_1.attr)("viewBox", "0 0 24 24"),
|
|
16814
|
+
(0, plgg_view_1.attr)("fill", "currentColor"),
|
|
16815
|
+
(0, plgg_view_1.attr)("aria-hidden", "true"),
|
|
16816
|
+
], [(0, plgg_view_1.path)([(0, plgg_view_1.attr)("d", marks[name])], [])]);
|
|
16817
|
+
exports.brandMark = brandMark;
|
|
16818
|
+
|
|
15660
16819
|
},
|
|
15661
16820
|
"src/sheetHistory.ts": function (module, exports, require) {
|
|
15662
16821
|
"use strict";
|
|
@@ -17108,9 +18267,24 @@ exports.relieveInputCapacity = relieveInputCapacity;
|
|
|
17108
18267
|
"../plggmatic/src/hooksEntry.ts": function (module, exports, require) {
|
|
17109
18268
|
"use strict";
|
|
17110
18269
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17111
|
-
exports.switchLabelClass = exports.switchThumbClass = exports.switchTrackClass = exports.switchClass = exports.propControlClass = exports.propLabelClass = exports.propClass = exports.propsClass = exports.inputClass = exports.btnClass = void 0;
|
|
18270
|
+
exports.switchLabelClass = exports.switchThumbClass = exports.switchTrackClass = exports.switchClass = exports.propControlClass = exports.propLabelClass = exports.propClass = exports.propsClass = exports.inputClass = exports.alertPanelClass = exports.alertNoticeClass = exports.alertBodyClass = exports.alertTitleClass = exports.alertToneClass = exports.alertClass = exports.fieldErrorClass = exports.fieldRequiredClass = exports.fieldLabelClass = exports.fieldClass = exports.formClass = exports.actionsEndClass = exports.actionsClass = exports.btnOutlineClass = exports.btnPrimaryClass = exports.btnClass = void 0;
|
|
17112
18271
|
var classHooks_1 = require("../plggmatic/src/Meta/model/classHooks.ts");
|
|
17113
18272
|
Object.defineProperty(exports, "btnClass", { enumerable: true, get: function () { return classHooks_1.btnClass; } });
|
|
18273
|
+
Object.defineProperty(exports, "btnPrimaryClass", { enumerable: true, get: function () { return classHooks_1.btnPrimaryClass; } });
|
|
18274
|
+
Object.defineProperty(exports, "btnOutlineClass", { enumerable: true, get: function () { return classHooks_1.btnOutlineClass; } });
|
|
18275
|
+
Object.defineProperty(exports, "actionsClass", { enumerable: true, get: function () { return classHooks_1.actionsClass; } });
|
|
18276
|
+
Object.defineProperty(exports, "actionsEndClass", { enumerable: true, get: function () { return classHooks_1.actionsEndClass; } });
|
|
18277
|
+
Object.defineProperty(exports, "formClass", { enumerable: true, get: function () { return classHooks_1.formClass; } });
|
|
18278
|
+
Object.defineProperty(exports, "fieldClass", { enumerable: true, get: function () { return classHooks_1.fieldClass; } });
|
|
18279
|
+
Object.defineProperty(exports, "fieldLabelClass", { enumerable: true, get: function () { return classHooks_1.fieldLabelClass; } });
|
|
18280
|
+
Object.defineProperty(exports, "fieldRequiredClass", { enumerable: true, get: function () { return classHooks_1.fieldRequiredClass; } });
|
|
18281
|
+
Object.defineProperty(exports, "fieldErrorClass", { enumerable: true, get: function () { return classHooks_1.fieldErrorClass; } });
|
|
18282
|
+
Object.defineProperty(exports, "alertClass", { enumerable: true, get: function () { return classHooks_1.alertClass; } });
|
|
18283
|
+
Object.defineProperty(exports, "alertToneClass", { enumerable: true, get: function () { return classHooks_1.alertToneClass; } });
|
|
18284
|
+
Object.defineProperty(exports, "alertTitleClass", { enumerable: true, get: function () { return classHooks_1.alertTitleClass; } });
|
|
18285
|
+
Object.defineProperty(exports, "alertBodyClass", { enumerable: true, get: function () { return classHooks_1.alertBodyClass; } });
|
|
18286
|
+
Object.defineProperty(exports, "alertNoticeClass", { enumerable: true, get: function () { return classHooks_1.alertNoticeClass; } });
|
|
18287
|
+
Object.defineProperty(exports, "alertPanelClass", { enumerable: true, get: function () { return classHooks_1.alertPanelClass; } });
|
|
17114
18288
|
Object.defineProperty(exports, "inputClass", { enumerable: true, get: function () { return classHooks_1.inputClass; } });
|
|
17115
18289
|
Object.defineProperty(exports, "propsClass", { enumerable: true, get: function () { return classHooks_1.propsClass; } });
|
|
17116
18290
|
Object.defineProperty(exports, "propClass", { enumerable: true, get: function () { return classHooks_1.propClass; } });
|
|
@@ -17323,14 +18497,32 @@ const fitGeometry = (state, nodes, extra) => {
|
|
|
17323
18497
|
z: node.position.z + offset.z,
|
|
17324
18498
|
};
|
|
17325
18499
|
})),
|
|
17326
|
-
], (0, exports.frameOf)(state),
|
|
18500
|
+
], (0, exports.frameOf)(state), 40)(state.camera);
|
|
17327
18501
|
return (0, plgg_1.isSome)(fitted)
|
|
17328
18502
|
? { ...state, camera: fitted.content }
|
|
17329
18503
|
: state;
|
|
17330
18504
|
};
|
|
17331
|
-
const
|
|
18505
|
+
const legible = (camera, size) => camera.scale >= 1
|
|
18506
|
+
? camera
|
|
18507
|
+
: {
|
|
18508
|
+
...camera,
|
|
18509
|
+
scale: 1,
|
|
18510
|
+
origin: {
|
|
18511
|
+
x: size.x / 2 -
|
|
18512
|
+
(size.x / 2 - camera.origin.x) /
|
|
18513
|
+
camera.scale,
|
|
18514
|
+
y: size.y / 2 -
|
|
18515
|
+
(size.y / 2 - camera.origin.y) /
|
|
18516
|
+
camera.scale,
|
|
18517
|
+
},
|
|
18518
|
+
};
|
|
18519
|
+
const legibleFit = (state) => ({
|
|
18520
|
+
...state,
|
|
18521
|
+
camera: legible(state.camera, (0, exports.frameOf)(state)),
|
|
18522
|
+
});
|
|
18523
|
+
const fitFlow = (state) => legibleFit(fitGeometry(state, state.nodes.filter((n) => !state.focus || state.focus.has(n.id)), state.chart
|
|
17332
18524
|
? (0, chart_1.chartExtent)(state.chart, state)
|
|
17333
|
-
: []);
|
|
18525
|
+
: []));
|
|
17334
18526
|
exports.fitFlow = fitFlow;
|
|
17335
18527
|
const fitWire = (state) => {
|
|
17336
18528
|
const index = state.activeEdge
|
|
@@ -17653,12 +18845,21 @@ const beginStroke = (point, pointer) => (state) => {
|
|
|
17653
18845
|
};
|
|
17654
18846
|
};
|
|
17655
18847
|
exports.beginStroke = beginStroke;
|
|
17656
|
-
const boxDelta = (node, travel, step) => {
|
|
17657
|
-
const
|
|
18848
|
+
const boxDelta = (flow, node, travel, step) => {
|
|
18849
|
+
const p = node.position;
|
|
18850
|
+
const peers = flow.edges.flatMap((e) => e.source === node.id
|
|
18851
|
+
? flow.nodes.filter((n) => n.id === e.target)
|
|
18852
|
+
: e.target === node.id
|
|
18853
|
+
? flow.nodes.filter((n) => n.id === e.source)
|
|
18854
|
+
: []);
|
|
18855
|
+
const lineUp = (k, moved) => peers
|
|
18856
|
+
.map((n) => n.position[k] - p[k])
|
|
18857
|
+
.filter((d) => Math.abs(d - moved) < step / 2)
|
|
18858
|
+
.sort((a, b) => Math.abs(a - moved) -
|
|
18859
|
+
Math.abs(b - moved))[0] ?? moved;
|
|
17658
18860
|
return {
|
|
17659
|
-
x: (
|
|
17660
|
-
y: (
|
|
17661
|
-
p.y,
|
|
18861
|
+
x: lineUp("x", Math.round(travel.x / step) * step),
|
|
18862
|
+
y: lineUp("y", Math.round(travel.y / step) * step),
|
|
17662
18863
|
z: 0,
|
|
17663
18864
|
};
|
|
17664
18865
|
};
|
|
@@ -17673,7 +18874,7 @@ const moveOnGrid = (flow, roots, delta, step) => {
|
|
|
17673
18874
|
nodes: geometry.nodes.map((n) => {
|
|
17674
18875
|
if (!moved.has(n.id) || n.within)
|
|
17675
18876
|
return n;
|
|
17676
|
-
const offset = boxDelta(n, { x: 0, y: 0 }, step);
|
|
18877
|
+
const offset = boxDelta(flow, n, { x: 0, y: 0 }, step);
|
|
17677
18878
|
if (!offset.x && !offset.y)
|
|
17678
18879
|
return n;
|
|
17679
18880
|
return {
|
|
@@ -17701,7 +18902,7 @@ const releasePointer = (flow, drawing) => {
|
|
|
17701
18902
|
const roots = (0, exports.selectedNodes)(flow).filter((id) => !flow.nodes.find((n) => n.id === id)
|
|
17702
18903
|
?.locked);
|
|
17703
18904
|
const geometry = flow.snap
|
|
17704
|
-
? moveOnGrid(flow, roots, boxDelta(anchor, { x: 0, y: 0 }, flow.snap), flow.snap)
|
|
18905
|
+
? moveOnGrid(flow, roots, boxDelta(flow, anchor, { x: 0, y: 0 }, flow.snap), flow.snap)
|
|
17705
18906
|
: {};
|
|
17706
18907
|
return { ...idle, ...geometry };
|
|
17707
18908
|
};
|
|
@@ -17853,7 +19054,7 @@ const movePointer = (point, pointer, drawing) => (state) => {
|
|
|
17853
19054
|
?.locked), travel = (0, plgg_board_1.worldDelta)(state.camera, {
|
|
17854
19055
|
x: point.x - previous.x,
|
|
17855
19056
|
y: point.y - previous.y,
|
|
17856
|
-
}, depth), adjusted = boxDelta(moving, travel, snap);
|
|
19057
|
+
}, depth), adjusted = boxDelta(state, moving, travel, snap);
|
|
17857
19058
|
if (!adjusted.x && !adjusted.y)
|
|
17858
19059
|
return {
|
|
17859
19060
|
...state,
|
|
@@ -20421,12 +21622,12 @@ exports.alignBox = alignBox;
|
|
|
20421
21622
|
const fullWidth = /(?![\uff61-\uffdc])[\p{Script=Han}\p{Script=Hangul}\p{Script=Katakana}\p{Script=Hiragana}\u3000-\u30ff\uff01-\uff60\uffe0-\uffe6]/u;
|
|
20422
21623
|
const labelWidth = (label) => {
|
|
20423
21624
|
if (/^[ -~]*$/.test(label))
|
|
20424
|
-
return label.length * 7
|
|
21625
|
+
return label.length * 8.7;
|
|
20425
21626
|
let width = 0;
|
|
20426
21627
|
for (const ch of label) {
|
|
20427
21628
|
if (/[\u3099\u309a\ufe00-\ufe0f\u{e0100}-\u{e01ef}]/u.test(ch))
|
|
20428
21629
|
continue;
|
|
20429
|
-
width += fullWidth.test(ch) ?
|
|
21630
|
+
width += fullWidth.test(ch) ? 15 : 8.7;
|
|
20430
21631
|
}
|
|
20431
21632
|
return width;
|
|
20432
21633
|
};
|
|
@@ -21965,6 +23166,7 @@ Object.defineProperty(exports, "routeSpace", { enumerable: true, get: function (
|
|
|
21965
23166
|
const nodeBody_1 = require("../plgg-flow/src/nodeBody.ts");
|
|
21966
23167
|
const nodeSize_1 = require("../plgg-flow/src/nodeSize.ts");
|
|
21967
23168
|
const round = (n) => Math.ceil(n / 16) * 16;
|
|
23169
|
+
const rowPitch = 112;
|
|
21968
23170
|
const planSpace = (data, view, sizes = nodeSize_1.nodeSize) => {
|
|
21969
23171
|
const axis = (role) => data.axes.findIndex((a) => a.attribute === view[role]);
|
|
21970
23172
|
const values = (role) => data.axes[axis(role)]?.values ?? ["—"];
|
|
@@ -22040,7 +23242,9 @@ const planSpace = (data, view, sizes = nodeSize_1.nodeSize) => {
|
|
|
22040
23242
|
: Math.floor(t / count);
|
|
22041
23243
|
rows.set(col, row + 1);
|
|
22042
23244
|
const left = (cake ? 32 : 16) + pitch * col;
|
|
22043
|
-
const z = 32 +
|
|
23245
|
+
const z = 32 +
|
|
23246
|
+
(cake ? (0, nodeBody_1.bodyDepth)(n) : 0) +
|
|
23247
|
+
rowPitch * row;
|
|
22044
23248
|
local.set(n.id, {
|
|
22045
23249
|
x: left + width / 2,
|
|
22046
23250
|
y: (cake ? 0 : 16) + height / 2,
|
|
@@ -22115,8 +23319,8 @@ const planSpace = (data, view, sizes = nodeSize_1.nodeSize) => {
|
|
|
22115
23319
|
16) /
|
|
22116
23320
|
pitch))) * pitch;
|
|
22117
23321
|
shift.z =
|
|
22118
|
-
Math.max(0, Math.min(Math.round(shift.z /
|
|
22119
|
-
|
|
23322
|
+
Math.max(0, Math.min(Math.round(shift.z / rowPitch), Math.floor((spans.z[k] - lastZ - 32) /
|
|
23323
|
+
rowPitch))) * rowPitch;
|
|
22120
23324
|
}
|
|
22121
23325
|
for (const { n, p } of placed)
|
|
22122
23326
|
positions.set(n.id, {
|
|
@@ -22338,11 +23542,88 @@ const planSpace = (data, view, sizes = nodeSize_1.nodeSize) => {
|
|
|
22338
23542
|
}
|
|
22339
23543
|
return next;
|
|
22340
23544
|
};
|
|
23545
|
+
const cellOf = new Map(cells.flatMap((c) => c.members.map((id) => [id, c])));
|
|
23546
|
+
const align = (assignment, down) => {
|
|
23547
|
+
const next = assignment.slice();
|
|
23548
|
+
const levels = [
|
|
23549
|
+
...new Set(next.map((p) => p.y)),
|
|
23550
|
+
].sort((a, b) => (down ? a - b : b - a));
|
|
23551
|
+
const done = new Set();
|
|
23552
|
+
for (const y of levels) {
|
|
23553
|
+
const level = rowsOf(next).filter((r) => next[r[0]].y === y);
|
|
23554
|
+
if (level.length > 1) {
|
|
23555
|
+
done.add(y);
|
|
23556
|
+
continue;
|
|
23557
|
+
}
|
|
23558
|
+
for (const row of level) {
|
|
23559
|
+
const half = (i) => sizes(nodes[i]).width / 2;
|
|
23560
|
+
const want = (i) => {
|
|
23561
|
+
const xs = links.flatMap((l) => l.a === i && done.has(next[l.b].y)
|
|
23562
|
+
? [next[l.b].x]
|
|
23563
|
+
: l.b === i &&
|
|
23564
|
+
done.has(next[l.a].y)
|
|
23565
|
+
? [next[l.a].x]
|
|
23566
|
+
: []);
|
|
23567
|
+
return xs.length
|
|
23568
|
+
? Math.round(xs.reduce((a, b) => a + b, 0) /
|
|
23569
|
+
xs.length /
|
|
23570
|
+
16) * 16
|
|
23571
|
+
: next[i].x;
|
|
23572
|
+
};
|
|
23573
|
+
const inRow = links.some((l) => row.includes(l.a) &&
|
|
23574
|
+
row.includes(l.b));
|
|
23575
|
+
const order = row
|
|
23576
|
+
.slice()
|
|
23577
|
+
.sort((a, b) => inRow
|
|
23578
|
+
? next[a].x - next[b].x
|
|
23579
|
+
: want(a) - want(b));
|
|
23580
|
+
const gap = 48;
|
|
23581
|
+
const xs = order.reduce((acc, i, j) => {
|
|
23582
|
+
const prior = order[j - 1];
|
|
23583
|
+
const floor = prior === undefined
|
|
23584
|
+
? -Infinity
|
|
23585
|
+
: acc[j - 1] +
|
|
23586
|
+
half(prior) +
|
|
23587
|
+
gap +
|
|
23588
|
+
half(i);
|
|
23589
|
+
return [
|
|
23590
|
+
...acc,
|
|
23591
|
+
Math.max(want(i), floor),
|
|
23592
|
+
];
|
|
23593
|
+
}, []);
|
|
23594
|
+
for (let j = order.length - 2; j >= 0; j--) {
|
|
23595
|
+
const i = order[j], after = order[j + 1];
|
|
23596
|
+
const ceiling = xs[j + 1] -
|
|
23597
|
+
half(after) -
|
|
23598
|
+
gap -
|
|
23599
|
+
half(i);
|
|
23600
|
+
xs[j] = Math.min(Math.max(xs[j], want(i)), ceiling);
|
|
23601
|
+
}
|
|
23602
|
+
const fits = order.every((i, j) => {
|
|
23603
|
+
const cell = cellOf.get(nodes[i].id);
|
|
23604
|
+
return (cell !== undefined &&
|
|
23605
|
+
xs[j] - half(i) >= cell.min.x + 16 &&
|
|
23606
|
+
xs[j] + half(i) <= cell.max.x - 16);
|
|
23607
|
+
});
|
|
23608
|
+
if (fits)
|
|
23609
|
+
order.forEach((i, j) => {
|
|
23610
|
+
next[i] = { ...next[i], x: xs[j] };
|
|
23611
|
+
});
|
|
23612
|
+
}
|
|
23613
|
+
done.add(y);
|
|
23614
|
+
}
|
|
23615
|
+
return next;
|
|
23616
|
+
};
|
|
22341
23617
|
const start = cake
|
|
22342
23618
|
? [sweep(slots, true), sweep(slots, false)]
|
|
22343
23619
|
.flatMap((t) => [t, mirror(t)])
|
|
22344
23620
|
.concat([mirror(slots)])
|
|
22345
23621
|
.map(polish)
|
|
23622
|
+
.flatMap((t) => [
|
|
23623
|
+
t,
|
|
23624
|
+
align(t, true),
|
|
23625
|
+
align(t, false),
|
|
23626
|
+
])
|
|
22346
23627
|
.reduce((best, trial) => reading(trial) < reading(best)
|
|
22347
23628
|
? trial
|
|
22348
23629
|
: best, polish(slots))
|
|
@@ -23747,18 +25028,24 @@ const toneOf = (light, face, sign) => sign * face.normal.y < -0.707
|
|
|
23747
25028
|
: "shade";
|
|
23748
25029
|
const filled = (eye, light, face, polygon) => polygon.length < 3
|
|
23749
25030
|
? []
|
|
23750
|
-
:
|
|
23751
|
-
|
|
23752
|
-
|
|
23753
|
-
|
|
23754
|
-
|
|
23755
|
-
|
|
23756
|
-
|
|
23757
|
-
|
|
23758
|
-
|
|
23759
|
-
|
|
25031
|
+
: painted(face, polygon, light, face.double &&
|
|
25032
|
+
(0, geometry_1.dot)(face.normal, eye.direction) <
|
|
25033
|
+
face.offset * eye.k
|
|
25034
|
+
? -1
|
|
25035
|
+
: 1);
|
|
25036
|
+
const painted = (face, points, light, sign) => [
|
|
25037
|
+
{
|
|
25038
|
+
id: face.item.id,
|
|
25039
|
+
style: face.item.style,
|
|
25040
|
+
tone: toneOf(light, face, sign),
|
|
25041
|
+
normal: {
|
|
25042
|
+
x: sign * face.normal.x,
|
|
25043
|
+
y: sign * face.normal.y,
|
|
25044
|
+
z: sign * face.normal.z,
|
|
23760
25045
|
},
|
|
23761
|
-
|
|
25046
|
+
points,
|
|
25047
|
+
},
|
|
25048
|
+
];
|
|
23762
25049
|
const fills = (eye, light, model, faces) => (0, bsp_1.ordered)(model.tree, eye.direction, eye.k).flatMap((piece) => several((0, plgg_1.fromNullable)(faces.get(piece.face))).flatMap((s) => filled(eye, light, piece.face, piece.points === piece.face.points
|
|
23763
25050
|
? s.points
|
|
23764
25051
|
: projectLoop(eye, piece.points))));
|
|
@@ -23766,14 +25053,18 @@ const covered = (query, p, opaqueOnly) => query((0, visibility_1.segmentBounds)(
|
|
|
23766
25053
|
s.face.item.opaqueInk === true) &&
|
|
23767
25054
|
(0, visibility_1.depth)(s, p) > p.z + geometry_1.epsilon &&
|
|
23768
25055
|
(0, visibility_1.inside)(s, p));
|
|
23769
|
-
const upright = (o) => [
|
|
23770
|
-
|
|
23771
|
-
|
|
23772
|
-
|
|
23773
|
-
|
|
23774
|
-
|
|
23775
|
-
o.
|
|
23776
|
-
|
|
25056
|
+
const upright = (o, scale) => [scale, 0, 0, scale, o.x, o.y];
|
|
25057
|
+
const fitScale = (eye, p, text, room) => {
|
|
25058
|
+
const o = eye.at(p);
|
|
25059
|
+
const across = Math.max(...[
|
|
25060
|
+
{ x: 1, y: 0, z: 0 },
|
|
25061
|
+
{ x: 0, y: 0, z: 1 },
|
|
25062
|
+
].map((u) => Math.abs(eye.at((0, geometry_1.shift)(p, u, 1)).x - o.x)));
|
|
25063
|
+
const fit = (across * room) / (text + 28);
|
|
25064
|
+
return Number.isFinite(fit) && fit > 0
|
|
25065
|
+
? Math.min(1, fit)
|
|
25066
|
+
: 1;
|
|
25067
|
+
};
|
|
23777
25068
|
const laid = (o, u, v) => [
|
|
23778
25069
|
u.x - o.x,
|
|
23779
25070
|
u.y - o.y,
|
|
@@ -23782,7 +25073,7 @@ const laid = (o, u, v) => [
|
|
|
23782
25073
|
o.x,
|
|
23783
25074
|
o.y,
|
|
23784
25075
|
];
|
|
23785
|
-
const matrix = (eye, p, axes) => (0, plgg_1.pipe)(axes, (0, plgg_1.matchOption)(() => upright(eye.at(p)), (x) => laid(eye.at(p), eye.at((0, geometry_1.shift)(p, x.u, 1)), eye.at((0, geometry_1.shift)(p, x.v, 1)))));
|
|
25076
|
+
const matrix = (eye, p, axes, scale = 1) => (0, plgg_1.pipe)(axes, (0, plgg_1.matchOption)(() => upright(eye.at(p), scale), (x) => laid(eye.at(p), eye.at((0, geometry_1.shift)(p, x.u, 1)), eye.at((0, geometry_1.shift)(p, x.v, 1)))));
|
|
23786
25077
|
const run = (kind, lo, hi) => ({ kind, lo, hi });
|
|
23787
25078
|
const sweep = (kind) => (s, i) => i.lo > s.cursor + geometry_1.epsilon
|
|
23788
25079
|
? {
|
|
@@ -24044,9 +25335,12 @@ const lettered = (eye, query, l, buried, transform) => ({
|
|
|
24044
25335
|
const sceneLabel = (eye, query) => (l) => (0, plgg_1.pipe)(covered(query, eye.at(l.point), true), (buried) => buried && l.behind === undefined
|
|
24045
25336
|
? []
|
|
24046
25337
|
: [
|
|
24047
|
-
lettered(eye, query, l, buried,
|
|
24048
|
-
? (
|
|
24049
|
-
: (0, plgg_1.fromNullable)(l.axes)
|
|
25338
|
+
lettered(eye, query, l, buried, buried || l.style === "tag"
|
|
25339
|
+
? upright(eye.at(l.point), 1)
|
|
25340
|
+
: matrix(eye, l.point, (0, plgg_1.fromNullable)(l.axes), l.room !== undefined &&
|
|
25341
|
+
l.size !== undefined
|
|
25342
|
+
? fitScale(eye, l.point, l.size.x, l.room)
|
|
25343
|
+
: 1)),
|
|
24050
25344
|
]);
|
|
24051
25345
|
const composed = (scene, light, eye, model, faces, visible, query) => assembled(scene, eye, query, fills(eye, light, model, faces), (0, shadow_1.shadows)(scene, light, visible, eye.at, eye.near), edgeInk(eye, query, model, faces), wiring(eye, query, model, scene, model.faces.filter((f) => scene.sheets.some((s) => s === f.item))));
|
|
24052
25346
|
const assembled = (scene, eye, query, painted, cast, edges, wires) => ({
|
|
@@ -27012,6 +28306,7 @@ exports.flowView = exports.drawFlow = exports.placedLabels = exports.groundSide
|
|
|
27012
28306
|
const wireDepth_1 = require("../plgg-flow/src/wireDepth.ts");
|
|
27013
28307
|
const engineView_1 = require("../plgg-flow/src/engineView.ts");
|
|
27014
28308
|
const scenery_1 = require("../plgg-flow/src/scenery.ts");
|
|
28309
|
+
const depthCue_1 = require("../plgg-flow/src/depthCue.ts");
|
|
27015
28310
|
const wireGeometry_1 = require("../plgg-flow/src/wireGeometry.ts");
|
|
27016
28311
|
const lazyLayer_1 = require("../plgg-flow/src/lazyLayer.ts");
|
|
27017
28312
|
const nodeSize_1 = require("../plgg-flow/src/nodeSize.ts");
|
|
@@ -27164,6 +28459,28 @@ const footprint = (camera, n) => {
|
|
|
27164
28459
|
], []),
|
|
27165
28460
|
]);
|
|
27166
28461
|
};
|
|
28462
|
+
const groundAnchors = (camera, nodes) => {
|
|
28463
|
+
const cue = (0, depthCue_1.depthCue)(camera);
|
|
28464
|
+
const anchor = (0, depthCue_1.anchorOf)((0, plgg_board_1.project)(camera), groundHeight);
|
|
28465
|
+
const anchors = cue === 0 || (0, exports.groundSide)(camera) === "level"
|
|
28466
|
+
? []
|
|
28467
|
+
: nodes
|
|
28468
|
+
.filter((n) => !(n.group && !n.collapsed))
|
|
28469
|
+
.map((n) => anchor(n.position, (0, nodeSize_1.nodeSize)(n), (0, nodeBody_1.bodyDepth)(n)));
|
|
28470
|
+
return (0, plgg_view_1.el)("g", [
|
|
28471
|
+
a("pointer-events", "none"),
|
|
28472
|
+
a("opacity", cue.toFixed(3)),
|
|
28473
|
+
], anchors.flatMap((x) => [
|
|
28474
|
+
(0, plgg_view_1.el)("polygon", [
|
|
28475
|
+
a("style", depthCue_1.footprintStyle),
|
|
28476
|
+
a("points", polygonPoints(x.footprint)),
|
|
28477
|
+
], []),
|
|
28478
|
+
(0, plgg_view_1.el)("path", [
|
|
28479
|
+
a("style", depthCue_1.dropStyle),
|
|
28480
|
+
a("d", `M${x.drop[0].x} ${x.drop[0].y}L${x.drop[1].x} ${x.drop[1].y}`),
|
|
28481
|
+
], []),
|
|
28482
|
+
]));
|
|
28483
|
+
};
|
|
27167
28484
|
const depthStems = (camera, nodes, parents) => {
|
|
27168
28485
|
const at = (0, plgg_board_1.project)(camera);
|
|
27169
28486
|
const stems = nodes
|
|
@@ -27252,6 +28569,21 @@ const wireLayers = layerMemo();
|
|
|
27252
28569
|
const matches = (old, next) => old.length === next.length &&
|
|
27253
28570
|
old.every((v, i) => v === next[i]);
|
|
27254
28571
|
const defaultLabel = (node) => (0, plgg_view_1.el)("text", [a("text-anchor", "middle"), a("y", 5)], [(0, plgg_view_1.text)(node.label)]);
|
|
28572
|
+
const curveStroke = (source, controls, target, side) => {
|
|
28573
|
+
const [p1, p2] = controls;
|
|
28574
|
+
if (!side ||
|
|
28575
|
+
!p1 ||
|
|
28576
|
+
!p2 ||
|
|
28577
|
+
controls.length !== 2)
|
|
28578
|
+
return [source, ...controls, target];
|
|
28579
|
+
const arm = Math.hypot(p2.x - target.x, p2.y - target.y);
|
|
28580
|
+
const stub = Math.min(16, arm / 3);
|
|
28581
|
+
const end = {
|
|
28582
|
+
...(0, wireGeometry_1.move)(target, side, stub),
|
|
28583
|
+
z: target.z,
|
|
28584
|
+
};
|
|
28585
|
+
return [source, p1, p2, end, target];
|
|
28586
|
+
};
|
|
27255
28587
|
const scrollHint = (hint, frame) => (0, plgg_view_1.el)("g", [
|
|
27256
28588
|
(0, plgg_view_1.key)("hint" + hint),
|
|
27257
28589
|
a("class", "scroll-hint"),
|
|
@@ -27277,7 +28609,7 @@ const scrollHint = (hint, frame) => (0, plgg_view_1.el)("g", [
|
|
|
27277
28609
|
a("text-anchor", "middle"),
|
|
27278
28610
|
a("dominant-baseline", "middle"),
|
|
27279
28611
|
a("font-size", 18),
|
|
27280
|
-
a("fill", "
|
|
28612
|
+
a("fill", "var(--paper,#fff)"),
|
|
27281
28613
|
], [
|
|
27282
28614
|
(0, plgg_view_1.text)("Ctrl(⌘)+ スクロールで拡大・縮小"),
|
|
27283
28615
|
]),
|
|
@@ -27390,9 +28722,10 @@ const drawFlow = (flow, renderLabel = defaultLabel, registry = {}) => {
|
|
|
27390
28722
|
?.getAttribute("data-group-handle");
|
|
27391
28723
|
if (handle)
|
|
27392
28724
|
return { node: handle };
|
|
27393
|
-
const wire = element?.closest("[data-wire-control]");
|
|
28725
|
+
const wire = element?.closest("[data-wire-control],[data-wire-label]");
|
|
27394
28726
|
if (wire) {
|
|
27395
|
-
const edge = state.edges[Number(wire.getAttribute("data-wire-control")
|
|
28727
|
+
const edge = state.edges[Number(wire.getAttribute("data-wire-control") ??
|
|
28728
|
+
wire.getAttribute("data-wire-label"))];
|
|
27396
28729
|
if (edge)
|
|
27397
28730
|
return { edge };
|
|
27398
28731
|
}
|
|
@@ -27539,6 +28872,7 @@ const drawFlow = (flow, renderLabel = defaultLabel, registry = {}) => {
|
|
|
27539
28872
|
extent,
|
|
27540
28873
|
state.camera,
|
|
27541
28874
|
quiet,
|
|
28875
|
+
state.hoveredNode === n.id,
|
|
27542
28876
|
chosen.has(n.id),
|
|
27543
28877
|
state.spatial?.depthColor,
|
|
27544
28878
|
(0, plgg_1.isSome)(state.source),
|
|
@@ -27580,6 +28914,9 @@ const drawFlow = (flow, renderLabel = defaultLabel, registry = {}) => {
|
|
|
27580
28914
|
depth: solid.depth,
|
|
27581
28915
|
html: (0, plgg_view_1.lazy)(deferred, () => (0, plgg_view_1.el)("g", [
|
|
27582
28916
|
a("data-node", n.id),
|
|
28917
|
+
...(state.hoveredNode === n.id
|
|
28918
|
+
? [a("data-hovered", "true")]
|
|
28919
|
+
: []),
|
|
27583
28920
|
...(quiet
|
|
27584
28921
|
? [
|
|
27585
28922
|
a("class", "quiet-node"),
|
|
@@ -27742,8 +29079,10 @@ const drawFlow = (flow, renderLabel = defaultLabel, registry = {}) => {
|
|
|
27742
29079
|
state.hoveredNode !== to.id
|
|
27743
29080
|
? " quiet-wire"
|
|
27744
29081
|
: "";
|
|
27745
|
-
const hovered =
|
|
27746
|
-
state.hoveredEdge
|
|
29082
|
+
const hovered = state.hoveredEdge === original ||
|
|
29083
|
+
(!state.hoveredEdge &&
|
|
29084
|
+
(state.hoveredNode === from.id ||
|
|
29085
|
+
state.hoveredNode === to.id));
|
|
27747
29086
|
const inputs = [
|
|
27748
29087
|
tone,
|
|
27749
29088
|
hovered,
|
|
@@ -27804,18 +29143,18 @@ const drawFlow = (flow, renderLabel = defaultLabel, registry = {}) => {
|
|
|
27804
29143
|
controls &&
|
|
27805
29144
|
(wire.source.z === wire.target.z ||
|
|
27806
29145
|
!state.camera.perspective)
|
|
27807
|
-
?
|
|
27808
|
-
|
|
27809
|
-
|
|
27810
|
-
wire.target,
|
|
27811
|
-
]
|
|
29146
|
+
? curveStroke(wire.source, controls, wire.target, wire.sourceSide === wire.targetSide
|
|
29147
|
+
? undefined
|
|
29148
|
+
: wire.targetSide)
|
|
27812
29149
|
.map((k, i) => {
|
|
27813
29150
|
const p = (0, plgg_board_1.project)(state.camera)(k);
|
|
27814
29151
|
return ((i === 0
|
|
27815
29152
|
? "M"
|
|
27816
29153
|
: i === 1
|
|
27817
29154
|
? "C"
|
|
27818
|
-
:
|
|
29155
|
+
: i === 4
|
|
29156
|
+
? "L"
|
|
29157
|
+
: " ") +
|
|
27819
29158
|
p.x +
|
|
27820
29159
|
" " +
|
|
27821
29160
|
p.y);
|
|
@@ -27923,7 +29262,7 @@ const drawFlow = (flow, renderLabel = defaultLabel, registry = {}) => {
|
|
|
27923
29262
|
(chosenWire
|
|
27924
29263
|
? 3
|
|
27925
29264
|
: hovered
|
|
27926
|
-
?
|
|
29265
|
+
? 2.4
|
|
27927
29266
|
: 1.25)),
|
|
27928
29267
|
a("stroke-linecap", "round"),
|
|
27929
29268
|
], []);
|
|
@@ -28033,8 +29372,9 @@ const drawFlow = (flow, renderLabel = defaultLabel, registry = {}) => {
|
|
|
28033
29372
|
? tangent + 180
|
|
28034
29373
|
: tangent;
|
|
28035
29374
|
items.push({
|
|
28036
|
-
depth:
|
|
29375
|
+
depth: Infinity,
|
|
28037
29376
|
html: (0, plgg_view_1.lazy)(deferred, () => (0, plgg_view_1.el)("g", [
|
|
29377
|
+
a("data-wire-label", String(originalIndex)),
|
|
28038
29378
|
a("transform", `translate(${middle.x} ${middle.y})` +
|
|
28039
29379
|
(spatial
|
|
28040
29380
|
? ` rotate(${angle}) scale(${middle.scale})`
|
|
@@ -28042,14 +29382,21 @@ const drawFlow = (flow, renderLabel = defaultLabel, registry = {}) => {
|
|
|
28042
29382
|
], customEdgeLabel
|
|
28043
29383
|
? [customEdgeLabel(edge, state)]
|
|
28044
29384
|
: [
|
|
29385
|
+
(0, plgg_view_1.el)("rect", [
|
|
29386
|
+
a("class", "edge-label-card"),
|
|
29387
|
+
a("x", -((0, nodeSize_1.labelWidth)(edge.label ?? "") /
|
|
29388
|
+
2 +
|
|
29389
|
+
6)),
|
|
29390
|
+
a("y", -11),
|
|
29391
|
+
a("width", (0, nodeSize_1.labelWidth)(edge.label ?? "") + 12),
|
|
29392
|
+
a("height", 22),
|
|
29393
|
+
a("fill", "var(--paper,#fff)"),
|
|
29394
|
+
a("pointer-events", "all"),
|
|
29395
|
+
], []),
|
|
28045
29396
|
(0, plgg_view_1.el)("text", [
|
|
28046
29397
|
a("class", "edge-label"),
|
|
28047
29398
|
a("text-anchor", "middle"),
|
|
28048
|
-
a("
|
|
28049
|
-
a("paint-order", "stroke"),
|
|
28050
|
-
a("stroke", "#f7faf7"),
|
|
28051
|
-
a("stroke-width", 3),
|
|
28052
|
-
a("stroke-linejoin", "round"),
|
|
29399
|
+
a("dominant-baseline", "central"),
|
|
28053
29400
|
a("pointer-events", "none"),
|
|
28054
29401
|
], [(0, plgg_view_1.text)(edge.label ?? "")]),
|
|
28055
29402
|
])),
|
|
@@ -28531,7 +29878,7 @@ const drawFlow = (flow, renderLabel = defaultLabel, registry = {}) => {
|
|
|
28531
29878
|
if (!e.ctrlKey && !e.metaKey) {
|
|
28532
29879
|
const at = e.timeStamp;
|
|
28533
29880
|
return (0, plgg_1.some)((s) => s.scrollHint !== undefined &&
|
|
28534
|
-
at - s.scrollHint <
|
|
29881
|
+
at - s.scrollHint < 1600
|
|
28535
29882
|
? s
|
|
28536
29883
|
: { ...s, scrollHint: at });
|
|
28537
29884
|
}
|
|
@@ -28658,6 +30005,8 @@ const drawFlow = (flow, renderLabel = defaultLabel, registry = {}) => {
|
|
|
28658
30005
|
: engine
|
|
28659
30006
|
? [
|
|
28660
30007
|
gridLayer(state.camera, [state.frame], () => worldGrid(state)),
|
|
30008
|
+
groundAnchors(state.camera, scene.nodes.filter((n) => !state.focus ||
|
|
30009
|
+
state.focus.has(n.id))),
|
|
28661
30010
|
]
|
|
28662
30011
|
: state.scenery
|
|
28663
30012
|
? scenery
|
|
@@ -28756,7 +30105,7 @@ const drawFlow = (flow, renderLabel = defaultLabel, registry = {}) => {
|
|
|
28756
30105
|
a("y", p.y - 4),
|
|
28757
30106
|
a("width", 8),
|
|
28758
30107
|
a("height", 8),
|
|
28759
|
-
a("fill", "
|
|
30108
|
+
a("fill", "var(--paper,#fff)"),
|
|
28760
30109
|
a("stroke", "#d95f34"),
|
|
28761
30110
|
(0, plgg_view_1.onEvent)("pointerdown", (e) => {
|
|
28762
30111
|
if (!(e instanceof
|
|
@@ -29095,8 +30444,34 @@ const plgg_1 = require("../plgg/src/index.ts");
|
|
|
29095
30444
|
const model_1 = require("../plgg-flow/src/model.ts");
|
|
29096
30445
|
const nodeBody_1 = require("../plgg-flow/src/nodeBody.ts");
|
|
29097
30446
|
const nodeSize_1 = require("../plgg-flow/src/nodeSize.ts");
|
|
30447
|
+
const depthCue_1 = require("../plgg-flow/src/depthCue.ts");
|
|
29098
30448
|
const roomView_1 = require("../plgg-flow/src/roomView.ts");
|
|
29099
30449
|
const off = (p) => p.z !== 0;
|
|
30450
|
+
const halfway = (points, fallback) => {
|
|
30451
|
+
const lengths = points
|
|
30452
|
+
.slice(1)
|
|
30453
|
+
.map((p, i) => {
|
|
30454
|
+
const q = points[i] ?? p;
|
|
30455
|
+
return Math.hypot(p.x - q.x, p.y - q.y);
|
|
30456
|
+
});
|
|
30457
|
+
const half = lengths.reduce((a, b) => a + b, 0) / 2;
|
|
30458
|
+
const at = lengths.reduce((acc, len, i) => acc.found >= 0
|
|
30459
|
+
? acc
|
|
30460
|
+
: acc.left > len
|
|
30461
|
+
? { left: acc.left - len, found: -1 }
|
|
30462
|
+
: { left: acc.left, found: i }, { left: half, found: -1 });
|
|
30463
|
+
const a = points[at.found];
|
|
30464
|
+
const b = points[at.found + 1];
|
|
30465
|
+
const len = lengths[at.found] ?? 0;
|
|
30466
|
+
const t = len === 0 ? 0 : at.left / len;
|
|
30467
|
+
return a && b
|
|
30468
|
+
? {
|
|
30469
|
+
x: a.x + (b.x - a.x) * t,
|
|
30470
|
+
y: a.y + (b.y - a.y) * t,
|
|
30471
|
+
z: a.z + (b.z - a.z) * t,
|
|
30472
|
+
}
|
|
30473
|
+
: (points[0] ?? fallback);
|
|
30474
|
+
};
|
|
29100
30475
|
const spatialDrawing = (flow, wires) => Boolean(flow.camera.yaw ||
|
|
29101
30476
|
flow.camera.pitch ||
|
|
29102
30477
|
flow.nodes.some((n) => n.bare || off(n.position)) ||
|
|
@@ -29246,7 +30621,7 @@ const engineView = (flow, nodes, edges, wires, caption) => {
|
|
|
29246
30621
|
labels.push({
|
|
29247
30622
|
id,
|
|
29248
30623
|
style: "edge-caption",
|
|
29249
|
-
point:
|
|
30624
|
+
point: halfway(w.points, w.source),
|
|
29250
30625
|
text: edge.label,
|
|
29251
30626
|
});
|
|
29252
30627
|
}
|
|
@@ -29276,6 +30651,7 @@ const engineView = (flow, nodes, edges, wires, caption) => {
|
|
|
29276
30651
|
const upright = (0, nodeBody_1.captionTagged)(camera, tagged.get(flow.nodes));
|
|
29277
30652
|
tagged.set(flow.nodes, upright);
|
|
29278
30653
|
const at = (0, plgg_board_1.project)(camera);
|
|
30654
|
+
const cue = (0, depthCue_1.depthCue)(camera);
|
|
29279
30655
|
for (const n of nodes) {
|
|
29280
30656
|
if (flow.focus && !flow.focus.has(n.id))
|
|
29281
30657
|
continue;
|
|
@@ -29396,7 +30772,9 @@ const engineView = (flow, nodes, edges, wires, caption) => {
|
|
|
29396
30772
|
text: n.label,
|
|
29397
30773
|
point,
|
|
29398
30774
|
size: { x: width, y: 16 },
|
|
29399
|
-
|
|
30775
|
+
room: size.width,
|
|
30776
|
+
...(!tag &&
|
|
30777
|
+
cue === 0 && {
|
|
29400
30778
|
axes: {
|
|
29401
30779
|
u: { x: sign, y: 0, z: 0 },
|
|
29402
30780
|
v: { x: 0, y: 1, z: 0 },
|
|
@@ -29416,7 +30794,7 @@ const engineView = (flow, nodes, edges, wires, caption) => {
|
|
|
29416
30794
|
text: s.text,
|
|
29417
30795
|
point: s.anchor,
|
|
29418
30796
|
size: {
|
|
29419
|
-
x: ((0, nodeSize_1.labelWidth)(s.text) * s.size) /
|
|
30797
|
+
x: ((0, nodeSize_1.labelWidth)(s.text) * s.size) / 15,
|
|
29420
30798
|
y: s.size,
|
|
29421
30799
|
},
|
|
29422
30800
|
});
|
|
@@ -29486,7 +30864,7 @@ const engineView = (flow, nodes, edges, wires, caption) => {
|
|
|
29486
30864
|
geometry.set(flow.edges, shapes);
|
|
29487
30865
|
const drawing = (0, plgg_board_1.render)({ ...shapes, lines, marks, labels }, camera, { direction: { x: 0.45, y: 1, z: -0.35 } }, { deferLabelClear: true });
|
|
29488
30866
|
const children = [];
|
|
29489
|
-
const shape = (style, kind, d, id) => (0, plgg_view_1.el)("path", [
|
|
30867
|
+
const shape = (style, kind, d, id, extra = "") => (0, plgg_view_1.el)("path", [
|
|
29490
30868
|
(0, plgg_view_1.attr)("class", style +
|
|
29491
30869
|
" " +
|
|
29492
30870
|
kind +
|
|
@@ -29496,11 +30874,13 @@ const engineView = (flow, nodes, edges, wires, caption) => {
|
|
|
29496
30874
|
? " quiet"
|
|
29497
30875
|
: "")),
|
|
29498
30876
|
...(id ? [(0, plgg_view_1.attr)("data-id", id)] : []),
|
|
29499
|
-
(0, plgg_view_1.attr)("style", styles.get(style) ?? ""),
|
|
30877
|
+
(0, plgg_view_1.attr)("style", (styles.get(style) ?? "") + extra),
|
|
29500
30878
|
(0, plgg_view_1.attr)("d", d),
|
|
29501
30879
|
], []);
|
|
29502
30880
|
for (const f of drawing.fills)
|
|
29503
|
-
children.push(shape(f.style, f.tone, path(f.points) + "Z", f.id)
|
|
30881
|
+
children.push(shape(f.style, f.tone, path(f.points) + "Z", f.id, captions.has(f.id) && cue > 0
|
|
30882
|
+
? (0, depthCue_1.facetFill)((0, depthCue_1.facet)(f.normal))
|
|
30883
|
+
: ""));
|
|
29504
30884
|
for (const s of drawing.shadows)
|
|
29505
30885
|
children.push(shape(s.style, "shadow", path(s.points) + "Z"));
|
|
29506
30886
|
const strokeIndex = children.length;
|
|
@@ -29677,13 +31057,27 @@ const engineView = (flow, nodes, edges, wires, caption) => {
|
|
|
29677
31057
|
: `matrix(${[...set.matrix.slice(0, 4), (set.box.left + set.box.right) / 2, (set.box.top + set.box.bottom) / 2].join(" ")})`),
|
|
29678
31058
|
], [caption(node)]));
|
|
29679
31059
|
}
|
|
29680
|
-
else
|
|
31060
|
+
else {
|
|
31061
|
+
if (l.style === "edge-caption")
|
|
31062
|
+
children.push((0, plgg_view_1.el)("rect", [
|
|
31063
|
+
(0, plgg_view_1.attr)("class", "edge-caption-card"),
|
|
31064
|
+
(0, plgg_view_1.attr)("x", String(set.box.left - 4)),
|
|
31065
|
+
(0, plgg_view_1.attr)("y", String(set.box.top - 2)),
|
|
31066
|
+
(0, plgg_view_1.attr)("width", String(set.box.right -
|
|
31067
|
+
set.box.left +
|
|
31068
|
+
8)),
|
|
31069
|
+
(0, plgg_view_1.attr)("height", String(set.box.bottom -
|
|
31070
|
+
set.box.top +
|
|
31071
|
+
4)),
|
|
31072
|
+
(0, plgg_view_1.attr)("fill", "var(--paper,#fff)"),
|
|
31073
|
+
], []));
|
|
29681
31074
|
children.push((0, plgg_view_1.el)("text", [
|
|
29682
31075
|
...attributes,
|
|
29683
31076
|
(0, plgg_view_1.attr)("transform", "matrix(" +
|
|
29684
31077
|
set.matrix.join(" ") +
|
|
29685
31078
|
")"),
|
|
29686
31079
|
], [(0, plgg_view_1.text)(l.text)]));
|
|
31080
|
+
}
|
|
29687
31081
|
}
|
|
29688
31082
|
const inked = {
|
|
29689
31083
|
...(0, plgg_board_1.clearLabelStrokes)(drawing, placed),
|
|
@@ -29692,6 +31086,26 @@ const engineView = (flow, nodes, edges, wires, caption) => {
|
|
|
29692
31086
|
const strokes = [];
|
|
29693
31087
|
const batches = new Map();
|
|
29694
31088
|
const stroke = (0, plgg_board_1.strokePath)(inked);
|
|
31089
|
+
const depths = new Map();
|
|
31090
|
+
for (const s of inked.strokes) {
|
|
31091
|
+
const d = depths.get(s.id) ?? {
|
|
31092
|
+
sum: 0,
|
|
31093
|
+
count: 0,
|
|
31094
|
+
};
|
|
31095
|
+
depths.set(s.id, {
|
|
31096
|
+
sum: d.sum + s.points[0].z + s.points[1].z,
|
|
31097
|
+
count: d.count + 2,
|
|
31098
|
+
});
|
|
31099
|
+
}
|
|
31100
|
+
const means = [...depths.values()].map((d) => d.sum / d.count);
|
|
31101
|
+
const ink = (0, depthCue_1.depthInk)(cue, Math.min(...means), Math.max(...means));
|
|
31102
|
+
const inkStyle = (id) => {
|
|
31103
|
+
const d = depths.get(id);
|
|
31104
|
+
const i = ink(d ? d.sum / d.count : 0);
|
|
31105
|
+
return cue === 0
|
|
31106
|
+
? ""
|
|
31107
|
+
: `;--depth:${i.width.toFixed(3)};stroke-opacity:${i.opacity.toFixed(3)}`;
|
|
31108
|
+
};
|
|
29695
31109
|
for (const [i, s] of inked.strokes.entries()) {
|
|
29696
31110
|
if (s.style === "arrow" ||
|
|
29697
31111
|
(s.kind === "hidden" &&
|
|
@@ -29712,7 +31126,7 @@ const engineView = (flow, nodes, edges, wires, caption) => {
|
|
|
29712
31126
|
for (const [key, d] of item) {
|
|
29713
31127
|
const [style, kind] = key.split("|");
|
|
29714
31128
|
const w = wireItems.get(id);
|
|
29715
|
-
const visible = shape(style, kind, d, id);
|
|
31129
|
+
const visible = shape(style, kind, d, id, inkStyle(id));
|
|
29716
31130
|
strokes.push(w && kind === "line"
|
|
29717
31131
|
? (0, plgg_view_1.el)("g", [
|
|
29718
31132
|
(0, plgg_view_1.attr)("data-wire-control", String(edgeIndices.get(originals.get(w.edge) ??
|
|
@@ -29734,7 +31148,14 @@ const engineView = (flow, nodes, edges, wires, caption) => {
|
|
|
29734
31148
|
children.splice(strokeIndex, 0, ...strokes);
|
|
29735
31149
|
const hit = (p) => targets.get((0, plgg_1.getOr)("")((0, plgg_board_1.pick)(inked, p)));
|
|
29736
31150
|
return {
|
|
29737
|
-
html: (0, plgg_view_1.el)("g", [
|
|
31151
|
+
html: (0, plgg_view_1.el)("g", [
|
|
31152
|
+
(0, plgg_view_1.attr)("class", "engine-drawing"),
|
|
31153
|
+
...(cue === 0
|
|
31154
|
+
? []
|
|
31155
|
+
: [
|
|
31156
|
+
(0, plgg_view_1.attr)("style", `--cue:${cue.toFixed(3)}`),
|
|
31157
|
+
]),
|
|
31158
|
+
], children),
|
|
29738
31159
|
placed,
|
|
29739
31160
|
hit,
|
|
29740
31161
|
drawing: inked,
|
|
@@ -29742,6 +31163,75 @@ const engineView = (flow, nodes, edges, wires, caption) => {
|
|
|
29742
31163
|
};
|
|
29743
31164
|
exports.engineView = engineView;
|
|
29744
31165
|
|
|
31166
|
+
},
|
|
31167
|
+
"../plgg-flow/src/depthCue.ts": function (module, exports, require) {
|
|
31168
|
+
"use strict";
|
|
31169
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31170
|
+
exports.dropStyle = exports.footprintStyle = exports.facetFill = exports.anchorOf = exports.facet = exports.depthInk = exports.plainInk = exports.depthCue = void 0;
|
|
31171
|
+
const depthCue = (camera) => eased((2 *
|
|
31172
|
+
Math.hypot(Math.sin(camera.yaw / 2), Math.sin(camera.pitch / 2)) -
|
|
31173
|
+
0.32) /
|
|
31174
|
+
0.36);
|
|
31175
|
+
exports.depthCue = depthCue;
|
|
31176
|
+
const eased = (t) => clamp(t) * clamp(t) * (3 - 2 * clamp(t));
|
|
31177
|
+
const clamp = (t) => Math.min(1, Math.max(0, t));
|
|
31178
|
+
exports.plainInk = {
|
|
31179
|
+
width: 1,
|
|
31180
|
+
opacity: 1,
|
|
31181
|
+
};
|
|
31182
|
+
const depthInk = (cue, far, near) => (z) => cue <= 0 || near - far < 1
|
|
31183
|
+
? exports.plainInk
|
|
31184
|
+
: inkAt(cue, clamp((z - far) / (near - far)));
|
|
31185
|
+
exports.depthInk = depthInk;
|
|
31186
|
+
const inkAt = (cue, t) => ({
|
|
31187
|
+
width: 1 + cue * (0.7 * t - 0.3),
|
|
31188
|
+
opacity: 1 - cue * 0.5 * (1 - t),
|
|
31189
|
+
});
|
|
31190
|
+
const facet = (normal) => Math.abs(normal.y) >= Math.abs(normal.x) &&
|
|
31191
|
+
Math.abs(normal.y) >= Math.abs(normal.z)
|
|
31192
|
+
? normal.y < 0
|
|
31193
|
+
? "top"
|
|
31194
|
+
: "bottom"
|
|
31195
|
+
: Math.abs(normal.z) >= Math.abs(normal.x)
|
|
31196
|
+
? normal.z > 0
|
|
31197
|
+
? "front"
|
|
31198
|
+
: "back"
|
|
31199
|
+
: "side";
|
|
31200
|
+
exports.facet = facet;
|
|
31201
|
+
const anchorOf = (at, ground) => (position, size, depth) => ({
|
|
31202
|
+
footprint: [
|
|
31203
|
+
[-1, -1],
|
|
31204
|
+
[1, -1],
|
|
31205
|
+
[1, 1],
|
|
31206
|
+
[-1, 1],
|
|
31207
|
+
].map(([x = 0, y = 0]) => at({
|
|
31208
|
+
x: position.x + (x * size.width) / 2,
|
|
31209
|
+
y: position.y + (y * size.height) / 2,
|
|
31210
|
+
z: ground,
|
|
31211
|
+
})),
|
|
31212
|
+
drop: [
|
|
31213
|
+
at({
|
|
31214
|
+
...position,
|
|
31215
|
+
z: Math.max(ground, position.z - depth),
|
|
31216
|
+
}),
|
|
31217
|
+
at({ ...position, z: ground }),
|
|
31218
|
+
],
|
|
31219
|
+
});
|
|
31220
|
+
exports.anchorOf = anchorOf;
|
|
31221
|
+
const facetFill = (f) => f === "front"
|
|
31222
|
+
? ""
|
|
31223
|
+
: `;fill:color-mix(in srgb,var(--facet-base),${f === "top" ? "var(--paper)" : "var(--ink)"} calc(var(--cue,0) * ${facetMix[f]}%))`;
|
|
31224
|
+
exports.facetFill = facetFill;
|
|
31225
|
+
const facetMix = {
|
|
31226
|
+
top: 60,
|
|
31227
|
+
side: 14,
|
|
31228
|
+
bottom: 22,
|
|
31229
|
+
back: 22,
|
|
31230
|
+
front: 0,
|
|
31231
|
+
};
|
|
31232
|
+
exports.footprintStyle = "fill:color-mix(in srgb,var(--ink) 9%,transparent);stroke:color-mix(in srgb,var(--ink) 14%,transparent);stroke-width:0.75";
|
|
31233
|
+
exports.dropStyle = "fill:none;stroke:var(--pencil,var(--ink));stroke-width:0.75;stroke-dasharray:2 3";
|
|
31234
|
+
|
|
29745
31235
|
},
|
|
29746
31236
|
"../plgg-flow/src/roomView.ts": function (module, exports, require) {
|
|
29747
31237
|
"use strict";
|
|
@@ -44200,10 +45690,18 @@ ${(0, boardCss_1.boardCss)('.flow-sheet, [data-island="plgg-flow"] figure')}
|
|
|
44200
45690
|
.stage .dsl textarea{background:transparent}
|
|
44201
45691
|
.stage:has(.dsl) .board-controls{right:calc(var(--panel) + 12px)}
|
|
44202
45692
|
.dsl-handle,.tool-trigger{display:none}
|
|
44203
|
-
.maximise{position:absolute;right:calc(var(--panel) + 12px);bottom:12px}
|
|
45693
|
+
.maximise{position:absolute;right:calc(var(--panel) + 12px);bottom:12px;border:0;background:none;box-shadow:none;color:var(--graphite,currentColor)}
|
|
45694
|
+
.maximise:hover{color:var(--ink)}
|
|
45695
|
+
[data-close-max]{display:none}
|
|
45696
|
+
:scope[data-max="true"] .maximise{display:none}
|
|
45697
|
+
:scope[data-max="true"] [data-close-max]{position:absolute;top:12px;right:calc(var(--panel) + 12px);z-index:3;display:inline-flex;align-items:center;gap:6px}
|
|
44204
45698
|
:scope[data-max="true"]{position:fixed;inset:0;z-index:100;height:auto;padding:0;background:var(--paper)}
|
|
44205
45699
|
:scope[data-max="true"] .stage{--panel:0px}
|
|
44206
45700
|
:scope[data-max="true"] .stage .dsl{display:none}
|
|
45701
|
+
:scope[data-dsl-max]:not([data-max="true"]) .stage{--panel:0px}
|
|
45702
|
+
:scope[data-dsl-max]:not([data-max="true"]) .stage .dsl{display:none}
|
|
45703
|
+
:scope[data-dsl-max][data-max="true"] .stage{--panel:var(--dsl-wide,360px)}
|
|
45704
|
+
:scope[data-dsl-max][data-max="true"] .stage .dsl{display:flex}
|
|
44207
45705
|
.session-tool,.tool-content[popover]{display:contents}
|
|
44208
45706
|
.tool-content .editing-tools{margin:0;padding:0}
|
|
44209
45707
|
.toolbar .minimap{width:100px;height:44px}
|
|
@@ -44476,13 +45974,16 @@ exports.boardCss = void 0;
|
|
|
44476
45974
|
const boardCss = (root) => `
|
|
44477
45975
|
@scope (${root}) {
|
|
44478
45976
|
.engine-drawing .up {
|
|
44479
|
-
|
|
45977
|
+
--facet-base: var(--tint, light-dark(var(--surface, var(--paper)), var(--wash)));
|
|
45978
|
+
fill: var(--facet-base);
|
|
44480
45979
|
}
|
|
44481
45980
|
.engine-drawing .lit {
|
|
44482
|
-
|
|
45981
|
+
--facet-base: var(--tint, light-dark(var(--surface, var(--wash)), #1f1f1f));
|
|
45982
|
+
fill: var(--facet-base);
|
|
44483
45983
|
}
|
|
44484
45984
|
.engine-drawing .shade {
|
|
44485
|
-
|
|
45985
|
+
--facet-base: var(--tint, light-dark(var(--surface, var(--shade)), #0a0a0a));
|
|
45986
|
+
fill: var(--facet-base);
|
|
44486
45987
|
}
|
|
44487
45988
|
.engine-drawing :is(.up, .lit, .shade) {
|
|
44488
45989
|
fill-opacity: var(--opacity, 1);
|
|
@@ -44493,13 +45994,13 @@ const boardCss = (root) => `
|
|
|
44493
45994
|
stroke: var(--stroke, var(--ink));
|
|
44494
45995
|
}
|
|
44495
45996
|
.engine-drawing .silhouette {
|
|
44496
|
-
stroke-width: 1.5;
|
|
45997
|
+
stroke-width: calc(1.5 * var(--depth, 1));
|
|
44497
45998
|
}
|
|
44498
45999
|
.engine-drawing .crease {
|
|
44499
|
-
stroke-width: 0.75;
|
|
46000
|
+
stroke-width: calc(0.75 * var(--depth, 1));
|
|
44500
46001
|
}
|
|
44501
46002
|
.engine-drawing .line {
|
|
44502
|
-
stroke-width: var(--weight, 1.25);
|
|
46003
|
+
stroke-width: calc(var(--weight, 1.25) * var(--depth, 1));
|
|
44503
46004
|
}
|
|
44504
46005
|
.engine-drawing .hidden {
|
|
44505
46006
|
stroke: var(--pencil, gray);
|
|
@@ -44556,7 +46057,7 @@ const boardCss = (root) => `
|
|
|
44556
46057
|
user-select: none;
|
|
44557
46058
|
}
|
|
44558
46059
|
.flow-board text {
|
|
44559
|
-
font: 500
|
|
46060
|
+
font: 500 15px var(--body);
|
|
44560
46061
|
fill: var(--ink) !important;
|
|
44561
46062
|
}
|
|
44562
46063
|
/* the ordinary arrow over the sheet and its nodes, a
|
|
@@ -44566,15 +46067,17 @@ const boardCss = (root) => `
|
|
|
44566
46067
|
.flow-board g {
|
|
44567
46068
|
cursor: default;
|
|
44568
46069
|
}
|
|
44569
|
-
/* a node
|
|
46070
|
+
/* a node is clicked to select it: the pointing
|
|
46071
|
+
finger, held through a press so the hand never
|
|
46072
|
+
closes over it */
|
|
44570
46073
|
.flow-board [data-node],
|
|
44571
|
-
.flow-board [data-node]
|
|
44572
|
-
cursor: grab;
|
|
44573
|
-
}
|
|
44574
|
-
.flow-board:active,
|
|
44575
|
-
.flow-board:active g,
|
|
46074
|
+
.flow-board [data-node] *,
|
|
44576
46075
|
.flow-board:active [data-node],
|
|
44577
46076
|
.flow-board:active [data-node] * {
|
|
46077
|
+
cursor: pointer;
|
|
46078
|
+
}
|
|
46079
|
+
.flow-board:active,
|
|
46080
|
+
.flow-board:active g:not([data-node]) {
|
|
44578
46081
|
cursor: grabbing;
|
|
44579
46082
|
}
|
|
44580
46083
|
.flow-board [data-node] circle {
|
|
@@ -44657,10 +46160,26 @@ const boardCss = (root) => `
|
|
|
44657
46160
|
.flow-board .quiet-node:not(:hover) [stroke], .flow-board path.quiet-wire { stroke: var(--pencil); }
|
|
44658
46161
|
.flow-board .quiet-node:not(:hover) text, .flow-board polygon.quiet-wire { fill: var(--pencil) !important; }
|
|
44659
46162
|
.flow-board g:has(> .edge-hit):hover > .quiet-wire { stroke: var(--ink); }
|
|
44660
|
-
|
|
44661
|
-
|
|
44662
|
-
|
|
44663
|
-
|
|
46163
|
+
/* the selected node is highlighted: a tinted face
|
|
46164
|
+
and a heavier edge, the text left as it is */
|
|
46165
|
+
.flow-board [data-node][aria-pressed="true"] [data-node-face] {
|
|
46166
|
+
fill: color-mix(in srgb, var(--paper) 78%, var(--ink)) !important;
|
|
46167
|
+
stroke-width: 2px;
|
|
46168
|
+
}
|
|
46169
|
+
/* the node under the pointer: a lighter tint than the
|
|
46170
|
+
selection, the same heavier edge */
|
|
46171
|
+
.flow-board [data-node][data-hovered="true"] [data-node-face] {
|
|
46172
|
+
fill: color-mix(in srgb, var(--paper) 90%, var(--ink)) !important;
|
|
46173
|
+
stroke-width: 2px;
|
|
46174
|
+
}
|
|
46175
|
+
.flow-board .edge-label {
|
|
46176
|
+
fill: var(--ink) !important;
|
|
46177
|
+
stroke: none !important;
|
|
46178
|
+
}
|
|
46179
|
+
.flow-board .edge-label-card {
|
|
46180
|
+
fill: var(--paper) !important;
|
|
46181
|
+
stroke: var(--trace);
|
|
46182
|
+
stroke-width: 1px;
|
|
44664
46183
|
}
|
|
44665
46184
|
.animated {
|
|
44666
46185
|
stroke-dasharray: 9 6;
|
|
@@ -44726,7 +46245,7 @@ const plgg_flow_1 = require("../plgg-flow/src/index.ts");
|
|
|
44726
46245
|
const dsl_1 = require("../plgg-flow/src/dsl.ts");
|
|
44727
46246
|
const flowSheet_1 = require("src/flowSheet.ts");
|
|
44728
46247
|
let mountedSheets = 0;
|
|
44729
|
-
const mountSheet = (root, code, dsl, names = []) => {
|
|
46248
|
+
const mountSheet = (root, code, dsl, names = [], dslOnMax = false) => {
|
|
44730
46249
|
const sheetId = ++mountedSheets;
|
|
44731
46250
|
const parsed = (0, dsl_1.parseSpec)(code);
|
|
44732
46251
|
if (parsed.__tag === "Err")
|
|
@@ -44912,6 +46431,8 @@ const mountSheet = (root, code, dsl, names = []) => {
|
|
|
44912
46431
|
}, options);
|
|
44913
46432
|
}
|
|
44914
46433
|
const sheet = root.querySelector(".flow-sheet");
|
|
46434
|
+
if (dslOnMax)
|
|
46435
|
+
sheet?.setAttribute("data-dsl-max", "");
|
|
44915
46436
|
const sizing = (bar, apply) => {
|
|
44916
46437
|
if (!(bar instanceof HTMLElement))
|
|
44917
46438
|
return;
|
|
@@ -44966,6 +46487,9 @@ const mountSheet = (root, code, dsl, names = []) => {
|
|
|
44966
46487
|
root
|
|
44967
46488
|
.querySelector(".maximise")
|
|
44968
46489
|
?.addEventListener("click", () => maximise(!maximised()), options);
|
|
46490
|
+
root
|
|
46491
|
+
.querySelector("[data-close-max]")
|
|
46492
|
+
?.addEventListener("click", () => maximise(false), options);
|
|
44969
46493
|
window.addEventListener("keydown", (e) => {
|
|
44970
46494
|
if (e.key === "Escape" && maximised())
|
|
44971
46495
|
maximise(false);
|
|
@@ -45076,151 +46600,6 @@ const mountSheet = (root, code, dsl, names = []) => {
|
|
|
45076
46600
|
};
|
|
45077
46601
|
exports.mountSheet = mountSheet;
|
|
45078
46602
|
|
|
45079
|
-
},
|
|
45080
|
-
"src/flowEditor.ts": function (module, exports, require) {
|
|
45081
|
-
"use strict";
|
|
45082
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45083
|
-
exports.mountFlow = void 0;
|
|
45084
|
-
const plggmatic_1 = require("../plggmatic/src/index.ts");
|
|
45085
|
-
const plgg_flow_1 = require("../plgg-flow/src/index.ts");
|
|
45086
|
-
const dsl_1 = require("../plgg-flow/src/dsl.ts");
|
|
45087
|
-
const flow_1 = require("src/flow.ts");
|
|
45088
|
-
const plgg_view_1 = require("../plgg-view/src/index.ts");
|
|
45089
|
-
const client_1 = require("../plgg-view/src/client.ts");
|
|
45090
|
-
const mountFlow = (root, source) => {
|
|
45091
|
-
const first = (0, flow_1.sourceFlow)(source);
|
|
45092
|
-
if (first.__tag === "Err")
|
|
45093
|
-
return;
|
|
45094
|
-
const change = (fn) => (m) => ({ ...m, flow: fn(m.flow) });
|
|
45095
|
-
const button = (label, fn) => (0, plgg_view_1.el)("button", [
|
|
45096
|
-
(0, plgg_view_1.attr)("type", "button"),
|
|
45097
|
-
(0, plgg_view_1.onClick)(change(fn)),
|
|
45098
|
-
], [(0, plgg_view_1.text)(label)]);
|
|
45099
|
-
const retype = (value) => (m) => {
|
|
45100
|
-
const r = (0, dsl_1.parseSpec)(value);
|
|
45101
|
-
return r.__tag === "Err"
|
|
45102
|
-
? {
|
|
45103
|
-
...m,
|
|
45104
|
-
source: value,
|
|
45105
|
-
error: r.content,
|
|
45106
|
-
}
|
|
45107
|
-
: {
|
|
45108
|
-
source: value,
|
|
45109
|
-
flow: (0, dsl_1.applySpec)(r.content)(m.flow),
|
|
45110
|
-
};
|
|
45111
|
-
};
|
|
45112
|
-
const view = (m) => (0, plgg_view_1.el)("figure", [(0, plgg_view_1.attr)("class", "plgg-flow")], [
|
|
45113
|
-
(0, plgg_view_1.mapHtml)(change)((0, plgg_flow_1.flowView)(m.flow)),
|
|
45114
|
-
(0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", "controls")], [
|
|
45115
|
-
button("平面", (0, plgg_flow_1.viewAt)(0, 0)),
|
|
45116
|
-
button("立体", (0, plgg_flow_1.viewAt)(-0.48, 0.42)),
|
|
45117
|
-
button("全体", plgg_flow_1.fitFlow),
|
|
45118
|
-
]),
|
|
45119
|
-
...(m.error
|
|
45120
|
-
? [
|
|
45121
|
-
(0, plgg_view_1.el)("div", [
|
|
45122
|
-
(0, plgg_view_1.attr)("class", plggmatic_1.statusClass),
|
|
45123
|
-
(0, plgg_view_1.attr)("data-error", ""),
|
|
45124
|
-
(0, plgg_view_1.attr)("aria-live", "polite"),
|
|
45125
|
-
], [(0, plgg_view_1.text)(m.error)]),
|
|
45126
|
-
]
|
|
45127
|
-
: []),
|
|
45128
|
-
(0, plgg_view_1.el)("details", [], [
|
|
45129
|
-
(0, plgg_view_1.el)("summary", [], [(0, plgg_view_1.text)("ソース")]),
|
|
45130
|
-
(0, plgg_view_1.el)("textarea", [
|
|
45131
|
-
(0, plgg_view_1.attr)("aria-label", "図のソース"),
|
|
45132
|
-
(0, plgg_view_1.attr)("spellcheck", "false"),
|
|
45133
|
-
(0, plgg_view_1.attr)("value", m.source),
|
|
45134
|
-
(0, plgg_view_1.onInput)(retype),
|
|
45135
|
-
], []),
|
|
45136
|
-
]),
|
|
45137
|
-
]);
|
|
45138
|
-
root.replaceChildren();
|
|
45139
|
-
return (0, client_1.sandbox)({
|
|
45140
|
-
init: [
|
|
45141
|
-
{ source, flow: first.content },
|
|
45142
|
-
(0, client_1.cmdNone)(),
|
|
45143
|
-
],
|
|
45144
|
-
view,
|
|
45145
|
-
update: (edit, m) => [edit(m), (0, client_1.cmdNone)()],
|
|
45146
|
-
})(root);
|
|
45147
|
-
};
|
|
45148
|
-
exports.mountFlow = mountFlow;
|
|
45149
|
-
|
|
45150
|
-
},
|
|
45151
|
-
"src/flow.ts": function (module, exports, require) {
|
|
45152
|
-
"use strict";
|
|
45153
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45154
|
-
exports.flowCss = exports.tilted = exports.flowWidget = exports.sourceFlow = void 0;
|
|
45155
|
-
const plggmatic_1 = require("../plggmatic/src/index.ts");
|
|
45156
|
-
const sheetCss_1 = require("src/sheetCss.ts");
|
|
45157
|
-
const plgg_1 = require("../plgg/src/index.ts");
|
|
45158
|
-
const plgg_flow_1 = require("../plgg-flow/src/index.ts");
|
|
45159
|
-
const dsl_1 = require("../plgg-flow/src/dsl.ts");
|
|
45160
|
-
const plgg_view_1 = require("../plgg-view/src/index.ts");
|
|
45161
|
-
const sourceFlow = (source) => {
|
|
45162
|
-
const r = (0, dsl_1.parseSpec)(source);
|
|
45163
|
-
return r.__tag === "Ok"
|
|
45164
|
-
? (0, plgg_1.ok)((0, plgg_flow_1.fitFlow)((0, dsl_1.specFlow)(r.content)))
|
|
45165
|
-
: r;
|
|
45166
|
-
};
|
|
45167
|
-
exports.sourceFlow = sourceFlow;
|
|
45168
|
-
const board = (flow) => (0, plgg_view_1.raw)((0, plgg_view_1.renderToString)((0, plgg_flow_1.flowView)(flow)));
|
|
45169
|
-
const flowWidget = (source, info = "") => {
|
|
45170
|
-
const r = (0, exports.sourceFlow)(source);
|
|
45171
|
-
const listing = (0, plgg_view_1.el)("details", [], [
|
|
45172
|
-
(0, plgg_view_1.el)("summary", [], [(0, plgg_view_1.text)("ソース")]),
|
|
45173
|
-
(0, plgg_view_1.el)("pre", [], [(0, plgg_view_1.el)("code", [], [(0, plgg_view_1.text)(source)])]),
|
|
45174
|
-
]);
|
|
45175
|
-
return r.__tag === "Err"
|
|
45176
|
-
? (0, plgg_view_1.el)("figure", [(0, plgg_view_1.attr)("class", "plgg-flow-error")], [
|
|
45177
|
-
(0, plgg_view_1.el)("p", [
|
|
45178
|
-
(0, plgg_view_1.attr)("class", plggmatic_1.statusClass),
|
|
45179
|
-
(0, plgg_view_1.attr)("data-error", ""),
|
|
45180
|
-
], [(0, plgg_view_1.text)(r.content)]),
|
|
45181
|
-
listing,
|
|
45182
|
-
])
|
|
45183
|
-
: info.split(/\s+/).includes("fill")
|
|
45184
|
-
? (0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", "flow-sheet")], [
|
|
45185
|
-
(0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", "stage")], [
|
|
45186
|
-
(0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", "canvas-wrap")], [board(r.content)]),
|
|
45187
|
-
...(info
|
|
45188
|
-
.split(/\s+/)
|
|
45189
|
-
.includes("dsl")
|
|
45190
|
-
? [
|
|
45191
|
-
(0, plgg_view_1.el)("aside", [(0, plgg_view_1.attr)("class", "dsl")], [listing]),
|
|
45192
|
-
]
|
|
45193
|
-
: []),
|
|
45194
|
-
]),
|
|
45195
|
-
])
|
|
45196
|
-
: (0, plgg_view_1.el)("figure", [(0, plgg_view_1.attr)("class", "plgg-flow")], [board(r.content), listing]);
|
|
45197
|
-
};
|
|
45198
|
-
exports.flowWidget = flowWidget;
|
|
45199
|
-
const tilted = (flow) => (0, plgg_flow_1.fitFlow)((0, plgg_flow_1.viewAt)(-0.48, 0.42)(flow));
|
|
45200
|
-
exports.tilted = tilted;
|
|
45201
|
-
const root = '[data-island="plgg-flow"]';
|
|
45202
|
-
exports.flowCss = `
|
|
45203
|
-
${root}{--ink:var(--pm-text);--rule:var(--pm-primary-border,var(--pm-text));--paper:var(--pm-surface);--graphite:var(--pm-muted);--trace:var(--pm-border);--wash:var(--pm-surface-2);--pencil:color-mix(in srgb,var(--paper) 66%,var(--ink));--display:system-ui,sans-serif;--body:system-ui,sans-serif;
|
|
45204
|
-
color:var(--ink);background:var(--paper);}
|
|
45205
|
-
${root} figure{margin:0;position:relative}
|
|
45206
|
-
${root} figure .flow-board{height:auto;aspect-ratio:900/580}
|
|
45207
|
-
${root} .controls{position:absolute;top:8px;left:8px;display:flex}
|
|
45208
|
-
${root} .controls button{font:inherit;font-size:12px;cursor:pointer;background:var(--paper);color:var(--ink);border:1px solid var(--ink);padding:3px 10px}
|
|
45209
|
-
${root} .controls button+button{margin-left:-1px}
|
|
45210
|
-
${root} .controls button:hover{background:var(--trace)}
|
|
45211
|
-
${root} summary{cursor:pointer;padding:6px 0;font-size:12px;color:var(--graphite)}
|
|
45212
|
-
${root} pre,${root} figure textarea{width:100%;margin:0;font:12.5px/1.65 ui-monospace,Menlo,monospace;padding:10px;border:1px solid var(--ink);background:var(--paper);color:var(--ink)}
|
|
45213
|
-
${root} figure textarea{min-height:10rem;resize:vertical}
|
|
45214
|
-
${root} :focus-visible{outline:2px solid var(--ink);outline-offset:2px}
|
|
45215
|
-
${root}[data-fill] figure{height:100%;display:flex;flex-direction:column;min-height:0}
|
|
45216
|
-
${root}[data-fill] figure .flow-board{flex:1;min-height:0}
|
|
45217
|
-
${root}[data-fill] details{max-height:45%;overflow:auto}
|
|
45218
|
-
${root}:not([data-fill]) .flow-sheet{height:26rem}
|
|
45219
|
-
${root}[data-fill] .flow-sheet .stage{border:0;margin:0}
|
|
45220
|
-
${root} .flow-sheet{height:100%;display:flex;flex-direction:column;min-height:0;padding-bottom:8px}
|
|
45221
|
-
${sheetCss_1.sheetCss}
|
|
45222
|
-
`;
|
|
45223
|
-
|
|
45224
46603
|
}
|
|
45225
46604
|
};
|
|
45226
46605
|
const __cache = {};
|