plggmatic 0.4.1 → 0.5.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/Appearance/usecase/appearanceCss.d.ts.map +1 -1
- package/dist/Component/usecase/choices.d.ts +125 -0
- package/dist/Component/usecase/choices.d.ts.map +1 -0
- package/dist/Component/usecase/compound.d.ts +76 -0
- package/dist/Component/usecase/compound.d.ts.map +1 -0
- package/dist/Component/usecase/display.d.ts +90 -0
- package/dist/Component/usecase/display.d.ts.map +1 -0
- package/dist/Component/usecase/feedback.d.ts +47 -0
- package/dist/Component/usecase/feedback.d.ts.map +1 -0
- package/dist/Component/usecase/navigation.d.ts +141 -0
- package/dist/Component/usecase/navigation.d.ts.map +1 -0
- package/dist/Component/usecase/partsCss.d.ts +34 -0
- package/dist/Component/usecase/partsCss.d.ts.map +1 -0
- package/dist/Component/usecase/presenting.d.ts +51 -0
- package/dist/Component/usecase/presenting.d.ts.map +1 -0
- package/dist/Component/usecase/toast.d.ts.map +1 -1
- package/dist/Component/usecase/workbench.d.ts +59 -0
- package/dist/Component/usecase/workbench.d.ts.map +1 -0
- package/dist/Meta/model/classHooks.d.ts +155 -0
- package/dist/Meta/model/classHooks.d.ts.map +1 -1
- package/dist/Navigate/index.d.ts +1 -1
- package/dist/Navigate/index.d.ts.map +1 -1
- package/dist/Navigate/model/marker.d.ts +24 -0
- package/dist/Navigate/model/marker.d.ts.map +1 -1
- package/dist/Navigate/usecase/navigationScript.d.ts.map +1 -1
- package/dist/Shell/usecase/shell.d.ts.map +1 -1
- package/dist/Shell/usecase/siteCss.d.ts +24 -0
- package/dist/Shell/usecase/siteCss.d.ts.map +1 -0
- package/dist/System/usecase/systemCss.d.ts.map +1 -1
- package/dist/columnsEntry.es.js +101 -1
- package/dist/hooksEntry.es.js +101 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +1511 -23
- package/dist/styleEntry.es.js +114 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -17,13 +17,15 @@ const __modules = {
|
|
|
17
17
|
"use strict";
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
19
|
exports.boardClass = exports.rowLinkClass = exports.listActionClass = exports.listActionsClass = exports.listItemClass = exports.listClass = exports.menuBodyClass = exports.errorClass = exports.hintClass = exports.backClass = exports.singleClass = exports.schedulerClass = exports.crumbSepClass = exports.crumbLinkClass = exports.crumbHereClass = exports.crumbsClass = exports.colHeadLinkClass = exports.colHeadTitleClass = exports.colHeadClass = exports.fieldMediaClass = exports.fieldRefClass = exports.fieldMomentClass = exports.fieldFlagClass = exports.fieldNumClass = exports.checkLabelClass = exports.checkboxClass = exports.checkClass = exports.inputClass = exports.fieldValueClass = exports.fieldErrorClass = exports.fieldLabelClass = exports.fieldClass = exports.fieldsClass = exports.formClass = exports.toastToneClass = exports.toastCloseClass = exports.toastClass = exports.toasterClass = exports.dialogActionsClass = exports.dialogTitleClass = exports.dialogClass = exports.backdropClass = exports.modalClass = exports.disabledClass = exports.actionsClass = exports.btnDangerClass = exports.btnPrimaryClass = exports.btnClass = exports.cssPrefix = exports.frameworkName = void 0;
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.switchLabelClass = exports.switchThumbClass = exports.switchTrackClass = exports.switchClass = exports.propControlClass = exports.propLabelClass = exports.propClass = exports.propsClass = exports.toggle = exports.entry = exports.choice = exports.propertyRow = exports.propertyList = exports.calloutToneClass = exports.calloutTitleClass = exports.calloutClass = exports.shellOpenAttr = exports.shellBackdropClass = exports.shellMenuId = exports.shellMenuClass = exports.shellMenuButtonClass = exports.shellBarBrandClass = exports.shellBarClass = exports.shellMinAttr = exports.docClass = exports.docFootClass = void 0;
|
|
20
|
+
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 = exports.asidePane = exports.mainPane = exports.navPane = exports.pane = exports.columnWith = exports.column = exports.rowWith = exports.row = exports.paneClass = exports.colClass = exports.rowClass = exports.landmarkTag = exports.openedAttr = exports.replacingAttr = exports.leavingAttr = exports.trailClass = exports.foldClass = exports.selector = exports.cssVarRef = exports.cssVar = exports.queryChoiceClass = exports.queryClass = exports.tileCaptionClass = exports.tileLabelClass = exports.tileLinkClass = exports.tileBodyClass = exports.tileClass = void 0;
|
|
21
|
+
exports.advanceColumns = exports.renderMode = exports.singleColumn = exports.crumbsOf = exports.multiColumnWith = exports.multiColumn = exports.currentScreen = exports.toggleMode = exports.modes = exports.formView = exports.errorFor = exports.parseForm = exports.isPending = exports.pendingSubmission = exports.idleSubmission = exports.controlKinds = exports.toaster = exports.toast = exports.tones = exports.confirmDialog = exports.declaredForm = exports.fieldControl = exports.checkbox = exports.selectInput = exports.textArea = exports.textInput = exports.breadcrumb = exports.colHead = exports.navTree = exports.prose = exports.heading = exports.textLink = exports.button = exports.pressDim = exports.hoverDim = exports.focusRing = exports.parseSteps = exports.printSteps = exports.trailQuery = exports.decodeTrail = exports.encodeTrail = exports.stepSeparator = exports.trailParam = exports.restep = exports.stepFrom = exports.foldTrail = exports.settledTrail = exports.resolveTrail = exports.injectNavigationScript = exports.navigationInitScript = void 0;
|
|
22
|
+
exports.collection = exports.permits = exports.isDestructive = exports.action = exports.confirm = exports.immediate = exports.matchesChoice = exports.matchesQuery = exports.queryChoice = exports.query = exports.applyVia = exports.projectRow = exports.projection = exports.projectField = exports.asFlag = exports.asMoment = exports.asNum = exports.asText = exports.unusedAdapter$ = exports.noDefaultAdapter$ = exports.unknownAdapter$ = exports.diagnosticSeverity = exports.reconcile = exports.resolveAdapter = exports.named = exports.hostAdapter = exports.effect = exports.scope = exports.actor = exports.adapter = exports.dynamic = exports.async = exports.sync = exports.makeRow = exports.refTarget = exports.fieldText = exports.mediaValue$ = exports.refValue$ = exports.momentValue$ = exports.flagValue$ = exports.numValue$ = exports.textValue$ = exports.mediaValue = exports.refValue = exports.momentValue = exports.flagValue = exports.numValue = exports.textValue = exports.fieldOf = exports.field = void 0;
|
|
23
|
+
exports.emit$ = exports.enumArg$ = exports.textArg$ = exports.nullary$ = exports.tool = exports.runFlowEffect = exports.emit = exports.enumArg = exports.textArg = exports.nullary = exports.resumeFlow = exports.startFlow = exports.readFlow = exports.flowSchema = exports.defaultFuel = exports.schedule = exports.sceneToUrl = exports.parseUrl = exports.detailLevel$ = exports.boardLevel$ = exports.listLevel$ = exports.menuLevel$ = exports.failed = exports.loaded = exports.cancelAction = exports.confirmAction = exports.requestAction = exports.queryChoiceInput = exports.queryInput = exports.select = exports.openMenu = exports.urlChanged = exports.navigate = exports.sliceOf = exports.focusedView = exports.binding = exports.detailView$ = exports.listView$ = exports.menuView$ = exports.detailView = exports.listView = exports.menuView = exports.choiceOf = exports.slotOf = exports.emptyModel = exports.declare = exports.menu = exports.menuEntry = exports.actionById = exports.collectionById = void 0;
|
|
24
|
+
exports.navNumberedClass = exports.navClass = exports.widthAttr = exports.programmaticScrollAttr = exports.phoneAttr = exports.menuCompactAttr = exports.menuOpenAttr = exports.seamClass = exports.menuClass = exports.browserClass = exports.pinnedClass = exports.workspaceClass = exports.workspaceCss = exports.workspaceOptions = exports.reachableScroll = exports.visibleColumnStart = exports.stripStyle = exports.stripVar = exports.stripGeometry = exports.stripMetrics = exports.pragmaticThemeWithPalette = exports.pragmaticTheme = exports.sidebarNavRevealScript = exports.sidebarNavCss = exports.sidebarNavClass = exports.sidebarNav = exports.themeToggleCss = exports.moonClass = exports.sunClass = exports.themeToggleClass = exports.staticThemeToggle = exports.themeToggle = exports.inertModelContext = exports.detectModelContext = exports.invokeWith = exports.syncCatalog = exports.diffCatalog = exports.descriptorOf = exports.ran$ = exports.stalled$ = exports.rejected$ = exports.ran = exports.stalled = exports.rejected = exports.runFlow = exports.flowSchemaOf = exports.flowHost = exports.catalogOf = exports.rowCap = exports.runFlow$ = void 0;
|
|
25
|
+
exports.shellRailGroupClass = exports.shellRailClass = exports.shellNoteClass = exports.figureBodyClass = exports.figurePageClass = exports.shellPageClass = exports.shellFootClass = exports.shellFoldClass = exports.shellBrandClass = exports.shellBodyClass = exports.shellTitleClass = exports.shellHeadClass = exports.shellSideClass = exports.shellClass = exports.asAppearance = exports.appearanceCss = exports.soft = exports.monochrome = exports.systemCss = exports.kitAppearanceCss = exports.kitSystemCss = exports.kitCss = exports.shell = exports.carouselInitScript = exports.carouselNextClass = exports.carouselPrevClass = exports.carouselCss = exports.shareInsetVar = exports.spanTwoClass = exports.shareClass = exports.shareCss = exports.shareOptions = exports.savePreference = exports.readPreference = exports.widthColumn = exports.menuColumn = exports.browser = exports.pinnedPanel = exports.workspaceWith = exports.workspace = exports.revealColumn = exports.revealOptions = exports.glideEase = exports.revealTarget = exports.navSubgroupTitleClass = exports.navSubgroupClass = exports.navFlatClass = exports.navLinkClass = exports.navGroupTitleClass = exports.navGroupClass = void 0;
|
|
26
|
+
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.docClass = exports.docFootClass = exports.shellSideLinkClass = exports.shellCaptionClass = exports.chromeLinkLabelClass = exports.chromeLinkClass = exports.chromeLinksClass = void 0;
|
|
27
|
+
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.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 = exports.iconButtonClass = exports.siteDrawerNoteClass = exports.siteBarNoteClass = exports.siteBarHomeClass = exports.siteMainClass = exports.siteFillClass = void 0;
|
|
28
|
+
exports.calendar = exports.monthWeeks = exports.sortTable = exports.sortedBy = void 0;
|
|
27
29
|
var identity_1 = require("src/Meta/model/identity.ts");
|
|
28
30
|
Object.defineProperty(exports, "frameworkName", { enumerable: true, get: function () { return identity_1.frameworkName; } });
|
|
29
31
|
Object.defineProperty(exports, "cssPrefix", { enumerable: true, get: function () { return identity_1.cssPrefix; } });
|
|
@@ -121,6 +123,11 @@ Object.defineProperty(exports, "stripAttr", { enumerable: true, get: function ()
|
|
|
121
123
|
Object.defineProperty(exports, "columnAttr", { enumerable: true, get: function () { return Navigate_1.columnAttr; } });
|
|
122
124
|
Object.defineProperty(exports, "spanAttr", { enumerable: true, get: function () { return Navigate_1.spanAttr; } });
|
|
123
125
|
Object.defineProperty(exports, "navHookName", { enumerable: true, get: function () { return Navigate_1.navHookName; } });
|
|
126
|
+
Object.defineProperty(exports, "partnersMeta", { enumerable: true, get: function () { return Navigate_1.partnersMeta; } });
|
|
127
|
+
Object.defineProperty(exports, "embeddersMeta", { enumerable: true, get: function () { return Navigate_1.embeddersMeta; } });
|
|
128
|
+
Object.defineProperty(exports, "embedParam", { enumerable: true, get: function () { return Navigate_1.embedParam; } });
|
|
129
|
+
Object.defineProperty(exports, "embeddedAttr", { enumerable: true, get: function () { return Navigate_1.embeddedAttr; } });
|
|
130
|
+
Object.defineProperty(exports, "frameClass", { enumerable: true, get: function () { return Navigate_1.frameClass; } });
|
|
124
131
|
Object.defineProperty(exports, "strip", { enumerable: true, get: function () { return Navigate_1.strip; } });
|
|
125
132
|
Object.defineProperty(exports, "documentColumn", { enumerable: true, get: function () { return Navigate_1.documentColumn; } });
|
|
126
133
|
Object.defineProperty(exports, "navigationInitScript", { enumerable: true, get: function () { return Navigate_1.navigationInitScript; } });
|
|
@@ -449,6 +456,91 @@ Object.defineProperty(exports, "switchClass", { enumerable: true, get: function
|
|
|
449
456
|
Object.defineProperty(exports, "switchTrackClass", { enumerable: true, get: function () { return classHooks_6.switchTrackClass; } });
|
|
450
457
|
Object.defineProperty(exports, "switchThumbClass", { enumerable: true, get: function () { return classHooks_6.switchThumbClass; } });
|
|
451
458
|
Object.defineProperty(exports, "switchLabelClass", { enumerable: true, get: function () { return classHooks_6.switchLabelClass; } });
|
|
459
|
+
var workbench_1 = require("src/Component/usecase/workbench.ts");
|
|
460
|
+
Object.defineProperty(exports, "splitter", { enumerable: true, get: function () { return workbench_1.splitter; } });
|
|
461
|
+
Object.defineProperty(exports, "rowList", { enumerable: true, get: function () { return workbench_1.rowList; } });
|
|
462
|
+
Object.defineProperty(exports, "codeInput", { enumerable: true, get: function () { return workbench_1.codeInput; } });
|
|
463
|
+
Object.defineProperty(exports, "statusLine", { enumerable: true, get: function () { return workbench_1.statusLine; } });
|
|
464
|
+
var classHooks_7 = require("src/Meta/model/classHooks.ts");
|
|
465
|
+
Object.defineProperty(exports, "splitterClass", { enumerable: true, get: function () { return classHooks_7.splitterClass; } });
|
|
466
|
+
Object.defineProperty(exports, "rowsClass", { enumerable: true, get: function () { return classHooks_7.rowsClass; } });
|
|
467
|
+
Object.defineProperty(exports, "rowsRowClass", { enumerable: true, get: function () { return classHooks_7.rowsRowClass; } });
|
|
468
|
+
Object.defineProperty(exports, "codeInputClass", { enumerable: true, get: function () { return classHooks_7.codeInputClass; } });
|
|
469
|
+
Object.defineProperty(exports, "statusClass", { enumerable: true, get: function () { return classHooks_7.statusClass; } });
|
|
470
|
+
var presenting_1 = require("src/Component/usecase/presenting.ts");
|
|
471
|
+
Object.defineProperty(exports, "exampleBox", { enumerable: true, get: function () { return presenting_1.exampleBox; } });
|
|
472
|
+
Object.defineProperty(exports, "cluster", { enumerable: true, get: function () { return presenting_1.cluster; } });
|
|
473
|
+
Object.defineProperty(exports, "split", { enumerable: true, get: function () { return presenting_1.split; } });
|
|
474
|
+
Object.defineProperty(exports, "swatch", { enumerable: true, get: function () { return presenting_1.swatch; } });
|
|
475
|
+
Object.defineProperty(exports, "swatches", { enumerable: true, get: function () { return presenting_1.swatches; } });
|
|
476
|
+
Object.defineProperty(exports, "preview", { enumerable: true, get: function () { return presenting_1.preview; } });
|
|
477
|
+
var siteCss_1 = require("src/Shell/usecase/siteCss.ts");
|
|
478
|
+
Object.defineProperty(exports, "siteCss", { enumerable: true, get: function () { return siteCss_1.siteCss; } });
|
|
479
|
+
var classHooks_8 = require("src/Meta/model/classHooks.ts");
|
|
480
|
+
Object.defineProperty(exports, "siteBodyClass", { enumerable: true, get: function () { return classHooks_8.siteBodyClass; } });
|
|
481
|
+
Object.defineProperty(exports, "siteStripClass", { enumerable: true, get: function () { return classHooks_8.siteStripClass; } });
|
|
482
|
+
Object.defineProperty(exports, "siteSectionClass", { enumerable: true, get: function () { return classHooks_8.siteSectionClass; } });
|
|
483
|
+
Object.defineProperty(exports, "siteFillClass", { enumerable: true, get: function () { return classHooks_8.siteFillClass; } });
|
|
484
|
+
Object.defineProperty(exports, "siteMainClass", { enumerable: true, get: function () { return classHooks_8.siteMainClass; } });
|
|
485
|
+
Object.defineProperty(exports, "siteBarHomeClass", { enumerable: true, get: function () { return classHooks_8.siteBarHomeClass; } });
|
|
486
|
+
Object.defineProperty(exports, "siteBarNoteClass", { enumerable: true, get: function () { return classHooks_8.siteBarNoteClass; } });
|
|
487
|
+
Object.defineProperty(exports, "siteDrawerNoteClass", { enumerable: true, get: function () { return classHooks_8.siteDrawerNoteClass; } });
|
|
488
|
+
var classHooks_9 = require("src/Meta/model/classHooks.ts");
|
|
489
|
+
Object.defineProperty(exports, "iconButtonClass", { enumerable: true, get: function () { return classHooks_9.iconButtonClass; } });
|
|
490
|
+
Object.defineProperty(exports, "iconButtonRoundClass", { enumerable: true, get: function () { return classHooks_9.iconButtonRoundClass; } });
|
|
491
|
+
var classHooks_10 = require("src/Meta/model/classHooks.ts");
|
|
492
|
+
Object.defineProperty(exports, "toolbarClass", { enumerable: true, get: function () { return classHooks_10.toolbarClass; } });
|
|
493
|
+
Object.defineProperty(exports, "toolGroupClass", { enumerable: true, get: function () { return classHooks_10.toolGroupClass; } });
|
|
494
|
+
Object.defineProperty(exports, "toolClass", { enumerable: true, get: function () { return classHooks_10.toolClass; } });
|
|
495
|
+
Object.defineProperty(exports, "toolIconClass", { enumerable: true, get: function () { return classHooks_10.toolIconClass; } });
|
|
496
|
+
var display_1 = require("src/Component/usecase/display.ts");
|
|
497
|
+
Object.defineProperty(exports, "badge", { enumerable: true, get: function () { return display_1.badge; } });
|
|
498
|
+
Object.defineProperty(exports, "tag", { enumerable: true, get: function () { return display_1.tag; } });
|
|
499
|
+
Object.defineProperty(exports, "card", { enumerable: true, get: function () { return display_1.card; } });
|
|
500
|
+
Object.defineProperty(exports, "dataTable", { enumerable: true, get: function () { return display_1.dataTable; } });
|
|
501
|
+
Object.defineProperty(exports, "descList", { enumerable: true, get: function () { return display_1.descList; } });
|
|
502
|
+
Object.defineProperty(exports, "divider", { enumerable: true, get: function () { return display_1.divider; } });
|
|
503
|
+
Object.defineProperty(exports, "avatar", { enumerable: true, get: function () { return display_1.avatar; } });
|
|
504
|
+
Object.defineProperty(exports, "codeBlock", { enumerable: true, get: function () { return display_1.codeBlock; } });
|
|
505
|
+
Object.defineProperty(exports, "emptyState", { enumerable: true, get: function () { return display_1.emptyState; } });
|
|
506
|
+
Object.defineProperty(exports, "itemList", { enumerable: true, get: function () { return display_1.itemList; } });
|
|
507
|
+
var feedback_1 = require("src/Component/usecase/feedback.ts");
|
|
508
|
+
Object.defineProperty(exports, "alert", { enumerable: true, get: function () { return feedback_1.alert; } });
|
|
509
|
+
Object.defineProperty(exports, "progress", { enumerable: true, get: function () { return feedback_1.progress; } });
|
|
510
|
+
Object.defineProperty(exports, "spinner", { enumerable: true, get: function () { return feedback_1.spinner; } });
|
|
511
|
+
Object.defineProperty(exports, "skeleton", { enumerable: true, get: function () { return feedback_1.skeleton; } });
|
|
512
|
+
Object.defineProperty(exports, "tooltip", { enumerable: true, get: function () { return feedback_1.tooltip; } });
|
|
513
|
+
var navigation_1 = require("src/Component/usecase/navigation.ts");
|
|
514
|
+
Object.defineProperty(exports, "tabs", { enumerable: true, get: function () { return navigation_1.tabs; } });
|
|
515
|
+
Object.defineProperty(exports, "pageNumbers", { enumerable: true, get: function () { return navigation_1.pageNumbers; } });
|
|
516
|
+
Object.defineProperty(exports, "pagination", { enumerable: true, get: function () { return navigation_1.pagination; } });
|
|
517
|
+
Object.defineProperty(exports, "steps", { enumerable: true, get: function () { return navigation_1.steps; } });
|
|
518
|
+
Object.defineProperty(exports, "accordion", { enumerable: true, get: function () { return navigation_1.accordion; } });
|
|
519
|
+
Object.defineProperty(exports, "toolButton", { enumerable: true, get: function () { return navigation_1.toolButton; } });
|
|
520
|
+
Object.defineProperty(exports, "toolGroup", { enumerable: true, get: function () { return navigation_1.toolGroup; } });
|
|
521
|
+
Object.defineProperty(exports, "toolbar", { enumerable: true, get: function () { return navigation_1.toolbar; } });
|
|
522
|
+
Object.defineProperty(exports, "menuButton", { enumerable: true, get: function () { return navigation_1.menuButton; } });
|
|
523
|
+
Object.defineProperty(exports, "iconButton", { enumerable: true, get: function () { return navigation_1.iconButton; } });
|
|
524
|
+
Object.defineProperty(exports, "floatingIconButton", { enumerable: true, get: function () { return navigation_1.floatingIconButton; } });
|
|
525
|
+
Object.defineProperty(exports, "popover", { enumerable: true, get: function () { return navigation_1.popover; } });
|
|
526
|
+
var choices_1 = require("src/Component/usecase/choices.ts");
|
|
527
|
+
Object.defineProperty(exports, "radioGroup", { enumerable: true, get: function () { return choices_1.radioGroup; } });
|
|
528
|
+
Object.defineProperty(exports, "segmented", { enumerable: true, get: function () { return choices_1.segmented; } });
|
|
529
|
+
Object.defineProperty(exports, "numberInput", { enumerable: true, get: function () { return choices_1.numberInput; } });
|
|
530
|
+
Object.defineProperty(exports, "dateInput", { enumerable: true, get: function () { return choices_1.dateInput; } });
|
|
531
|
+
Object.defineProperty(exports, "searchField", { enumerable: true, get: function () { return choices_1.searchField; } });
|
|
532
|
+
Object.defineProperty(exports, "slider", { enumerable: true, get: function () { return choices_1.slider; } });
|
|
533
|
+
Object.defineProperty(exports, "fileInput", { enumerable: true, get: function () { return choices_1.fileInput; } });
|
|
534
|
+
Object.defineProperty(exports, "suggestInput", { enumerable: true, get: function () { return choices_1.suggestInput; } });
|
|
535
|
+
Object.defineProperty(exports, "checkGroup", { enumerable: true, get: function () { return choices_1.checkGroup; } });
|
|
536
|
+
Object.defineProperty(exports, "toggled", { enumerable: true, get: function () { return choices_1.toggled; } });
|
|
537
|
+
var compound_1 = require("src/Component/usecase/compound.ts");
|
|
538
|
+
Object.defineProperty(exports, "drawer", { enumerable: true, get: function () { return compound_1.drawer; } });
|
|
539
|
+
Object.defineProperty(exports, "sortedOn", { enumerable: true, get: function () { return compound_1.sortedOn; } });
|
|
540
|
+
Object.defineProperty(exports, "sortedBy", { enumerable: true, get: function () { return compound_1.sortedBy; } });
|
|
541
|
+
Object.defineProperty(exports, "sortTable", { enumerable: true, get: function () { return compound_1.sortTable; } });
|
|
542
|
+
Object.defineProperty(exports, "monthWeeks", { enumerable: true, get: function () { return compound_1.monthWeeks; } });
|
|
543
|
+
Object.defineProperty(exports, "calendar", { enumerable: true, get: function () { return compound_1.calendar; } });
|
|
452
544
|
|
|
453
545
|
},
|
|
454
546
|
"src/Meta/model/identity.ts": function (module, exports, require) {
|
|
@@ -464,7 +556,9 @@ exports.cssPrefix = "pm";
|
|
|
464
556
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
465
557
|
exports.spanTwoClass = exports.shareClass = exports.calloutToneClass = exports.calloutTitleClass = exports.calloutClass = exports.shellOpenAttr = exports.shellBackdropClass = exports.shellMenuId = exports.shellMenuClass = exports.shellMenuButtonClass = exports.shellBarBrandClass = exports.shellBarClass = exports.shellMinAttr = exports.shellNoteClass = exports.docFootClass = exports.shellSideLinkClass = exports.shellCaptionClass = exports.chromeLinkLabelClass = exports.chromeLinkClass = exports.chromeLinksClass = exports.shellRailGroupClass = exports.shellRailClass = exports.figureBodyClass = exports.figurePageClass = exports.docClass = exports.shellPageClass = exports.shellFootClass = exports.shellFoldClass = exports.shellBrandClass = exports.shellBodyClass = exports.shellTitleClass = exports.shellHeadClass = exports.shellSideClass = exports.shellClass = exports.switchLabelClass = exports.switchThumbClass = exports.switchTrackClass = exports.switchClass = exports.propControlClass = exports.propLabelClass = exports.propClass = exports.propsClass = exports.trailClass = exports.openedAttr = exports.replacingAttr = exports.leavingAttr = exports.foldClass = exports.paneClass = exports.colClass = exports.rowClass = void 0;
|
|
466
558
|
exports.fieldNumClass = exports.checkLabelClass = exports.checkboxClass = exports.checkClass = exports.inputClass = exports.fieldValueClass = exports.fieldErrorClass = exports.fieldLabelClass = exports.fieldClass = exports.fieldsClass = exports.formClass = exports.toastToneClass = exports.toastCloseClass = exports.toastClass = exports.toasterClass = exports.dialogActionsClass = exports.dialogTitleClass = exports.dialogClass = exports.backdropClass = exports.modalClass = exports.disabledClass = exports.actionsClass = exports.btnDangerClass = exports.btnPrimaryClass = exports.btnClass = exports.moonClass = exports.sunClass = exports.themeToggleClass = exports.navSubgroupTitleClass = exports.navSubgroupClass = exports.navFlatClass = exports.navLabelClass = exports.navLinkClass = exports.navGroupTitleClass = exports.navGroupClass = exports.navNumberedClass = exports.navClass = exports.widthAttr = exports.programmaticScrollAttr = exports.phoneAttr = exports.menuCompactAttr = exports.menuOpenAttr = exports.seamClass = exports.menuClass = exports.browserClass = exports.pinnedClass = exports.workspaceClass = exports.carouselNextClass = exports.carouselPrevClass = exports.shareInsetVar = void 0;
|
|
467
|
-
exports.selector = exports.cssVarRef = exports.cssVar = exports.queryChoiceClass = exports.queryClass = exports.tileCaptionClass = exports.tileLabelClass = exports.tileLinkClass = exports.tileBodyClass = exports.tileClass = exports.boardClass = exports.rowLinkClass = exports.listActionClass = exports.listActionsClass = exports.listItemClass = exports.listClass = exports.menuBodyClass = exports.errorClass = exports.hintClass = exports.backClass = exports.singleClass = exports.schedulerClass = exports.crumbSepClass = exports.crumbLinkClass = exports.crumbHereClass = exports.crumbsClass = exports.colHeadLinkClass = exports.colHeadTitleClass = exports.colHeadClass = exports.fieldMediaClass = exports.fieldRefClass = exports.fieldMomentClass = exports.fieldFlagClass = void 0;
|
|
559
|
+
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 = 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 = void 0;
|
|
560
|
+
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 = 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.itemsTrailClass = exports.itemsNoteClass = exports.itemsTitleClass = exports.itemsRowClass = exports.itemsClass = void 0;
|
|
561
|
+
exports.iconButtonRoundClass = exports.siteDrawerNoteClass = exports.siteBarNoteClass = exports.siteBarHomeClass = exports.siteMainClass = exports.siteFillClass = 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 = void 0;
|
|
468
562
|
const identity_1 = require("src/Meta/model/identity.ts");
|
|
469
563
|
const hook = (name) => `${identity_1.cssPrefix}-${name}`;
|
|
470
564
|
exports.rowClass = hook("row");
|
|
@@ -605,6 +699,104 @@ const cssVarRef = (name) => `var(${(0, exports.cssVar)(name)})`;
|
|
|
605
699
|
exports.cssVarRef = cssVarRef;
|
|
606
700
|
const selector = (hookClass) => `.${hookClass}`;
|
|
607
701
|
exports.selector = selector;
|
|
702
|
+
exports.badgeClass = hook("badge");
|
|
703
|
+
const badgeToneClass = (tone) => hook(`badge-${tone}`);
|
|
704
|
+
exports.badgeToneClass = badgeToneClass;
|
|
705
|
+
exports.tagClass = hook("tag");
|
|
706
|
+
exports.tagRemoveClass = hook("tag-remove");
|
|
707
|
+
exports.cardClass = hook("card");
|
|
708
|
+
exports.cardHeadClass = hook("card-head");
|
|
709
|
+
exports.cardBodyClass = hook("card-body");
|
|
710
|
+
exports.cardFootClass = hook("card-foot");
|
|
711
|
+
exports.tableWrapClass = hook("table-wrap");
|
|
712
|
+
exports.tableClass = hook("table");
|
|
713
|
+
exports.numericClass = hook("num");
|
|
714
|
+
exports.descClass = hook("desc");
|
|
715
|
+
exports.dividerClass = hook("divider");
|
|
716
|
+
exports.avatarClass = hook("avatar");
|
|
717
|
+
exports.codeBlockClass = hook("code");
|
|
718
|
+
exports.emptyClass = hook("empty");
|
|
719
|
+
exports.emptyTitleClass = hook("empty-title");
|
|
720
|
+
exports.itemsClass = hook("items");
|
|
721
|
+
exports.itemsRowClass = hook("items-row");
|
|
722
|
+
exports.itemsTitleClass = hook("items-title");
|
|
723
|
+
exports.itemsNoteClass = hook("items-note");
|
|
724
|
+
exports.itemsTrailClass = hook("items-trail");
|
|
725
|
+
exports.alertClass = hook("alert");
|
|
726
|
+
const alertToneClass = (tone) => hook(`alert-${tone}`);
|
|
727
|
+
exports.alertToneClass = alertToneClass;
|
|
728
|
+
exports.alertTitleClass = hook("alert-title");
|
|
729
|
+
exports.progressClass = hook("progress");
|
|
730
|
+
exports.progressTrackClass = hook("progress-track");
|
|
731
|
+
exports.progressBarClass = hook("progress-bar");
|
|
732
|
+
exports.busyAttr = `data-${identity_1.cssPrefix}-busy`;
|
|
733
|
+
exports.spinnerClass = hook("spinner");
|
|
734
|
+
exports.spinnerMarkClass = hook("spinner-mark");
|
|
735
|
+
exports.skeletonClass = hook("skeleton");
|
|
736
|
+
exports.skeletonLineClass = hook("skeleton-line");
|
|
737
|
+
exports.tipAttr = `data-${identity_1.cssPrefix}-tip`;
|
|
738
|
+
exports.tipClass = hook("tip");
|
|
739
|
+
exports.tabsClass = hook("tabs");
|
|
740
|
+
exports.tabClass = hook("tab");
|
|
741
|
+
exports.pagerClass = hook("pager");
|
|
742
|
+
exports.pagerItemClass = hook("pager-item");
|
|
743
|
+
exports.stepsClass = hook("steps");
|
|
744
|
+
exports.stepClass = hook("step");
|
|
745
|
+
exports.accordionClass = hook("accordion");
|
|
746
|
+
exports.accordionItemClass = hook("accordion-item");
|
|
747
|
+
exports.accordionBodyClass = hook("accordion-body");
|
|
748
|
+
exports.menuButtonClass = hook("menu-button");
|
|
749
|
+
exports.menuListClass = hook("menu-list");
|
|
750
|
+
exports.menuItemClass = hook("menu-item");
|
|
751
|
+
exports.iconButtonClass = hook("icon-btn");
|
|
752
|
+
exports.radiosClass = hook("radios");
|
|
753
|
+
exports.radioClass = hook("radio");
|
|
754
|
+
exports.segmentedClass = hook("segmented");
|
|
755
|
+
exports.segmentClass = hook("segment");
|
|
756
|
+
exports.rangeClass = hook("range");
|
|
757
|
+
exports.rangeValueClass = hook("range-value");
|
|
758
|
+
exports.searchClass = hook("search");
|
|
759
|
+
exports.popoverClass = hook("popover");
|
|
760
|
+
exports.popoverBodyClass = hook("popover-body");
|
|
761
|
+
exports.drawerClass = hook("drawer");
|
|
762
|
+
exports.drawerHeadClass = hook("drawer-head");
|
|
763
|
+
exports.drawerBodyClass = hook("drawer-body");
|
|
764
|
+
exports.sideAttr = `data-${identity_1.cssPrefix}-side`;
|
|
765
|
+
exports.checksClass = hook("checks");
|
|
766
|
+
exports.checksItemClass = hook("checks-item");
|
|
767
|
+
exports.sortClass = hook("sort");
|
|
768
|
+
exports.calendarClass = hook("calendar");
|
|
769
|
+
exports.calendarHeadClass = hook("calendar-head");
|
|
770
|
+
exports.calendarGridClass = hook("calendar-grid");
|
|
771
|
+
exports.calendarDayClass = hook("calendar-day");
|
|
772
|
+
exports.toolbarClass = hook("toolbar");
|
|
773
|
+
exports.toolGroupClass = hook("tool-group");
|
|
774
|
+
exports.toolClass = hook("tool");
|
|
775
|
+
exports.toolIconClass = hook("tool-icon");
|
|
776
|
+
exports.splitterClass = hook("splitter");
|
|
777
|
+
exports.rowsClass = hook("rows");
|
|
778
|
+
exports.rowsRowClass = hook("rows-row");
|
|
779
|
+
exports.codeInputClass = hook("code-input");
|
|
780
|
+
exports.statusClass = hook("status");
|
|
781
|
+
exports.exampleClass = hook("example");
|
|
782
|
+
exports.exampleItemClass = hook("example-item");
|
|
783
|
+
exports.clusterClass = hook("cluster");
|
|
784
|
+
exports.splitClass = hook("split");
|
|
785
|
+
exports.splitPaneClass = hook("split-pane");
|
|
786
|
+
exports.swatchesClass = hook("swatches");
|
|
787
|
+
exports.swatchClass = hook("swatch");
|
|
788
|
+
exports.swatchChipClass = hook("swatch-chip");
|
|
789
|
+
exports.previewClass = hook("preview");
|
|
790
|
+
exports.previewBarClass = hook("preview-bar");
|
|
791
|
+
exports.siteBodyClass = hook("site");
|
|
792
|
+
exports.siteStripClass = hook("site-strip");
|
|
793
|
+
exports.siteSectionClass = hook("site-section");
|
|
794
|
+
exports.siteFillClass = hook("site-fill");
|
|
795
|
+
exports.siteMainClass = hook("site-main");
|
|
796
|
+
exports.siteBarHomeClass = hook("site-bar-home");
|
|
797
|
+
exports.siteBarNoteClass = hook("site-bar-note");
|
|
798
|
+
exports.siteDrawerNoteClass = hook("site-drawer-note");
|
|
799
|
+
exports.iconButtonRoundClass = hook("icon-btn-round");
|
|
608
800
|
|
|
609
801
|
},
|
|
610
802
|
"src/Layout/index.ts": function (module, exports, require) {
|
|
@@ -2131,7 +2323,7 @@ exports.carouselInitScript = "(function(){" +
|
|
|
2131
2323
|
"src/Navigate/model/marker.ts": function (module, exports, require) {
|
|
2132
2324
|
"use strict";
|
|
2133
2325
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2134
|
-
exports.documentColumn = exports.strip = exports.navHookName = exports.spanAttr = exports.columnAttr = exports.stripAttr = void 0;
|
|
2326
|
+
exports.frameCss = exports.frameReadyAttr = exports.frameClass = exports.embeddedAttr = exports.embedParam = exports.embeddersMeta = exports.partnersMeta = exports.documentColumn = exports.strip = exports.navHookName = exports.spanAttr = exports.columnAttr = exports.stripAttr = void 0;
|
|
2135
2327
|
const plgg_1 = require("plgg");
|
|
2136
2328
|
const plgg_view_1 = require("plgg-view");
|
|
2137
2329
|
const combinators_1 = require("src/Layout/usecase/combinators.ts");
|
|
@@ -2149,6 +2341,18 @@ const documentColumn = (route, span, parts, children) => (0, combinators_1.colum
|
|
|
2149
2341
|
])(span),
|
|
2150
2342
|
], parts, children);
|
|
2151
2343
|
exports.documentColumn = documentColumn;
|
|
2344
|
+
exports.partnersMeta = `${identity_1.cssPrefix}-partners`;
|
|
2345
|
+
exports.embeddersMeta = `${identity_1.cssPrefix}-embedders`;
|
|
2346
|
+
exports.embedParam = `${identity_1.cssPrefix}-embed`;
|
|
2347
|
+
exports.embeddedAttr = `data-${identity_1.cssPrefix}-embedded`;
|
|
2348
|
+
exports.frameClass = `${identity_1.cssPrefix}-frame`;
|
|
2349
|
+
exports.frameReadyAttr = `data-${identity_1.cssPrefix}-frame-ready`;
|
|
2350
|
+
const frameCss = (p) => `
|
|
2351
|
+
.${p}-frame{flex:1 1 auto;min-height:0;width:100%;border-style:none}
|
|
2352
|
+
[data-${p}-embedded] :is(.${p}-shell-bar,.${p}-shell-side,.${p}-shell-backdrop,.${p}-shell-head,.${p}-trail){display:none}
|
|
2353
|
+
[data-${p}-embedded] .${p}-shell-page{flex:1 1 auto;width:100%;max-width:none}
|
|
2354
|
+
`;
|
|
2355
|
+
exports.frameCss = frameCss;
|
|
2152
2356
|
|
|
2153
2357
|
},
|
|
2154
2358
|
"src/Layout/model/geometry.ts": function (module, exports, require) {
|
|
@@ -2372,7 +2576,7 @@ exports.savePreference = savePreference;
|
|
|
2372
2576
|
"src/Navigate/index.ts": function (module, exports, require) {
|
|
2373
2577
|
"use strict";
|
|
2374
2578
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2375
|
-
exports.carouselInitScript = exports.parseSteps = exports.printSteps = exports.trailQuery = exports.decodeTrail = exports.encodeTrail = exports.stepSeparator = exports.trailParam = exports.restep = exports.stepFrom = exports.foldTrail = exports.settledTrail = exports.resolveTrail = exports.injectNavigationScript = exports.navigationInitScript = exports.documentColumn = exports.strip = exports.navHookName = exports.spanAttr = exports.columnAttr = exports.stripAttr = exports.compositionHref = exports.compositionQuery = exports.decodeComposition = exports.escapeChar = exports.fieldSeparator = exports.entrySeparator = exports.spanParam = exports.restParam = exports.columnsOf = exports.soloComposition = exports.columnWithSpan = exports.columnOf = void 0;
|
|
2579
|
+
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;
|
|
2376
2580
|
var Composition_1 = require("src/Navigate/model/Composition.ts");
|
|
2377
2581
|
Object.defineProperty(exports, "columnOf", { enumerable: true, get: function () { return Composition_1.columnOf; } });
|
|
2378
2582
|
Object.defineProperty(exports, "columnWithSpan", { enumerable: true, get: function () { return Composition_1.columnWithSpan; } });
|
|
@@ -2392,6 +2596,11 @@ Object.defineProperty(exports, "stripAttr", { enumerable: true, get: function ()
|
|
|
2392
2596
|
Object.defineProperty(exports, "columnAttr", { enumerable: true, get: function () { return marker_1.columnAttr; } });
|
|
2393
2597
|
Object.defineProperty(exports, "spanAttr", { enumerable: true, get: function () { return marker_1.spanAttr; } });
|
|
2394
2598
|
Object.defineProperty(exports, "navHookName", { enumerable: true, get: function () { return marker_1.navHookName; } });
|
|
2599
|
+
Object.defineProperty(exports, "partnersMeta", { enumerable: true, get: function () { return marker_1.partnersMeta; } });
|
|
2600
|
+
Object.defineProperty(exports, "embeddersMeta", { enumerable: true, get: function () { return marker_1.embeddersMeta; } });
|
|
2601
|
+
Object.defineProperty(exports, "embedParam", { enumerable: true, get: function () { return marker_1.embedParam; } });
|
|
2602
|
+
Object.defineProperty(exports, "embeddedAttr", { enumerable: true, get: function () { return marker_1.embeddedAttr; } });
|
|
2603
|
+
Object.defineProperty(exports, "frameClass", { enumerable: true, get: function () { return marker_1.frameClass; } });
|
|
2395
2604
|
Object.defineProperty(exports, "strip", { enumerable: true, get: function () { return marker_1.strip; } });
|
|
2396
2605
|
Object.defineProperty(exports, "documentColumn", { enumerable: true, get: function () { return marker_1.documentColumn; } });
|
|
2397
2606
|
var navigationScript_1 = require("src/Navigate/usecase/navigationScript.ts");
|
|
@@ -2530,6 +2739,17 @@ exports.navigationInitScript = "(function(){" +
|
|
|
2530
2739
|
"var R0=window.matchMedia&&window.matchMedia('(prefers-reduced-motion:reduce)').matches;" +
|
|
2531
2740
|
`var R=${q(compositionUrl_1.restParam)},Q=${q(compositionUrl_1.spanParam)};` +
|
|
2532
2741
|
`var E=${q(compositionUrl_1.escapeChar)},N=${q(compositionUrl_1.entrySeparator)},F=${q(compositionUrl_1.fieldSeparator)};` +
|
|
2742
|
+
`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)};` +
|
|
2743
|
+
`var RD=${q(marker_1.frameReadyAttr)},FT=4000;` +
|
|
2744
|
+
"function metaList(n){var m=document.querySelector('meta[name=\"'+n+'\"]');" +
|
|
2745
|
+
"return m?(m.getAttribute('content')||'').split(' ').filter(Boolean):[];}" +
|
|
2746
|
+
"var PT=metaList(PM),EB=metaList(EM);" +
|
|
2747
|
+
"function abs(r){return r.indexOf('https://')===0||r.indexOf('http://')===0;}" +
|
|
2748
|
+
"function partner(u){try{return PT.indexOf(new URL(u).origin)>=0;}catch(e){return false;}}" +
|
|
2749
|
+
"function bare0(p){return p.length>1?p.replace(/\\/+$/,''):p;}" +
|
|
2750
|
+
"var EMB=window.parent!==window&&EB.length>0&&new URL(window.location.href).searchParams.get(EP)==='1';" +
|
|
2751
|
+
"if(EMB){document.documentElement.setAttribute(EA,'');}" +
|
|
2752
|
+
"function tell(m){for(var i=0;i<EB.length;i++){window.parent.postMessage(m,EB[i]);}}" +
|
|
2533
2753
|
"function esc(v){return v.split(E).join(E+'t')" +
|
|
2534
2754
|
".split(N).join(E+'c').split(F).join(E+'f');}" +
|
|
2535
2755
|
"function unesc(v){return v.split(E+'f').join(F)" +
|
|
@@ -2572,7 +2792,24 @@ exports.navigationInitScript = "(function(){" +
|
|
|
2572
2792
|
"if(m){m.scrollIntoView({block:'center'});}}" +
|
|
2573
2793
|
"function colUrl(route,span){" +
|
|
2574
2794
|
"return route+(span?'?'+Q+'='+pct(esc(span)):'');}" +
|
|
2795
|
+
"function frameCol(u){var all=cols(),base=all[all.length-1];var x=new URL(u);" +
|
|
2796
|
+
"var col=document.createElement('div');col.className=base.className;col.setAttribute(C,x.origin+x.pathname);" +
|
|
2797
|
+
"var hd=base.querySelector(':scope>header');var h=document.createElement('header');h.className=hd?hd.className:'';" +
|
|
2798
|
+
"var t0=hd?hd.firstElementChild:null;var sp=document.createElement('span');sp.className=t0?t0.className:'';" +
|
|
2799
|
+
"sp.textContent=x.host+x.pathname;h.appendChild(sp);col.appendChild(h);" +
|
|
2800
|
+
"var f=document.createElement('iframe');f.className=FR;" +
|
|
2801
|
+
"f.setAttribute('sandbox','allow-scripts allow-same-origin');" +
|
|
2802
|
+
"f.setAttribute('referrerpolicy','strict-origin-when-cross-origin');" +
|
|
2803
|
+
"f.title=sp.textContent;var src=new URL(x.origin+x.pathname);src.searchParams.set(EP,'1');f.src=src.href;" +
|
|
2804
|
+
"col.appendChild(f);" +
|
|
2805
|
+
"setTimeout(function(){if(col.hasAttribute(RD)||!col.isConnected){return;}" +
|
|
2806
|
+
"var at=columnOf(col);if(at>0){truncate(at-1,true);" +
|
|
2807
|
+
"window.history.replaceState(null,'',urlFor(current().slice(1)));}" +
|
|
2808
|
+
"window.location.assign(x.origin+x.pathname);},FT);" +
|
|
2809
|
+
"return col;}" +
|
|
2575
2810
|
"function fetchCol(route,span){" +
|
|
2811
|
+
"if(abs(route)){return partner(route)&&strip()&&cols().length" +
|
|
2812
|
+
"?Promise.resolve(frameCol(route)):Promise.reject(new Error('nav'));}" +
|
|
2576
2813
|
"return fetch(colUrl(route,span),{credentials:'same-origin',mode:'same-origin'})" +
|
|
2577
2814
|
".then(function(r){if(!r.ok){throw new Error('nav');}return r.text();})" +
|
|
2578
2815
|
".then(function(t){" +
|
|
@@ -2593,7 +2830,7 @@ exports.navigationInitScript = "(function(){" +
|
|
|
2593
2830
|
"if(rep){col.setAttribute(RP,'');}" +
|
|
2594
2831
|
"truncate(at,rep);place(col,at);" +
|
|
2595
2832
|
"window.history.pushState(null,'',url);return true;}).catch(function(){" +
|
|
2596
|
-
"window.location.assign(url);return false;});}" +
|
|
2833
|
+
"window.location.assign(abs(route)?route:url);return false;});}" +
|
|
2597
2834
|
"function last(){return cols().length-1;}" +
|
|
2598
2835
|
"function open(route,span){return openFrom(last(),route,span);}" +
|
|
2599
2836
|
"function columnOf(node){var c=cols();" +
|
|
@@ -2602,15 +2839,18 @@ exports.navigationInitScript = "(function(){" +
|
|
|
2602
2839
|
"function anchorOf(node){var e=node;" +
|
|
2603
2840
|
"while(e&&e!==document){if(e.tagName==='A'){return e;}e=e.parentNode;}" +
|
|
2604
2841
|
"return null;}" +
|
|
2605
|
-
"function
|
|
2842
|
+
"function plain(ev,a){return !ev.defaultPrevented&&ev.button===0" +
|
|
2606
2843
|
"&&!ev.metaKey&&!ev.ctrlKey&&!ev.shiftKey&&!ev.altKey" +
|
|
2607
2844
|
"&&!!a&&!a.hasAttribute('download')" +
|
|
2608
|
-
"&&(a.target===''||a.target==='_self')" +
|
|
2845
|
+
"&&(a.target===''||a.target==='_self');}" +
|
|
2846
|
+
"function claimsOut(ev,a){return plain(ev,a)&&partner(a.href);}" +
|
|
2847
|
+
"function claims(ev,a){return plain(ev,a)" +
|
|
2609
2848
|
"&&a.origin===window.location.origin" +
|
|
2610
2849
|
"&&!(a.pathname===window.location.pathname&&a.hash!=='');}" +
|
|
2850
|
+
"function full(a){return abs(a)?a:B+a;}" +
|
|
2611
2851
|
"function current(){var c=cols();var out=[];" +
|
|
2612
2852
|
"for(var i=0;i<c.length;i++){out.push(entryOf(" +
|
|
2613
|
-
"
|
|
2853
|
+
"full(c[i].getAttribute(C)||''),c[i].getAttribute(P)||''));}return out;}" +
|
|
2614
2854
|
"function target(){var s=ps().get(Q);" +
|
|
2615
2855
|
"return [entryOf(window.location.pathname,s||'')].concat(entries());}" +
|
|
2616
2856
|
"function reconcile(){var t=target(),c=current();" +
|
|
@@ -2652,10 +2892,11 @@ exports.navigationInitScript = "(function(){" +
|
|
|
2652
2892
|
"t.appendChild(a);})(c[j],j);}}" +
|
|
2653
2893
|
"var bare=function(p){return p.length>1?p.replace(/\\/+$/,''):p;};" +
|
|
2654
2894
|
"for(var o=0;o<c.length;o++){" +
|
|
2655
|
-
"var nx=c[o+1];var
|
|
2895
|
+
"var nx=c[o+1];var na=nx?nx.getAttribute(C)||'':'';var out=abs(na);" +
|
|
2896
|
+
"var want=nx?(out?bare(na):bare(B+na)):null;" +
|
|
2656
2897
|
"var as=c[o].querySelectorAll('a[href]');" +
|
|
2657
2898
|
"for(var u=0;u<as.length;u++){var k=as[u];" +
|
|
2658
|
-
"if(want!==null&&k.origin===window.location.origin&&bare(k.pathname)===want){k.setAttribute(OP,'');}" +
|
|
2899
|
+
"if(want!==null&&(out?bare(k.origin+k.pathname)===want:k.origin===window.location.origin&&bare(k.pathname)===want)){k.setAttribute(OP,'');}" +
|
|
2659
2900
|
"else if(k.hasAttribute(OP)){k.removeAttribute(OP);}}}" +
|
|
2660
2901
|
"var r=bare(c.length?B+(c[c.length-1].getAttribute(C)||''):location.pathname);" +
|
|
2661
2902
|
"var ls=document.querySelectorAll('a[href]');" +
|
|
@@ -2664,17 +2905,39 @@ exports.navigationInitScript = "(function(){" +
|
|
|
2664
2905
|
"if(l.getAttribute('data-home')===null){l.setAttribute('data-home',l.getAttribute('aria-current')==='page'?'1':'0');}" +
|
|
2665
2906
|
"if(c.length?bare(l.pathname)===r:l.getAttribute('data-home')==='1'){l.setAttribute('aria-current','page');}" +
|
|
2666
2907
|
"else if(l.getAttribute('aria-current')==='page'){l.removeAttribute('aria-current');}}}" +
|
|
2908
|
+
"window.addEventListener('message',function(ev){" +
|
|
2909
|
+
"if(PT.indexOf(ev.origin)<0||!ev.data||typeof ev.data!=='object'){return;}" +
|
|
2910
|
+
"var c=cols(),at=-1;for(var i=0;i<c.length;i++){" +
|
|
2911
|
+
"var f=c[i].querySelector(':scope>iframe.'+FR);if(f&&f.contentWindow===ev.source){at=i;}}" +
|
|
2912
|
+
"if(at<0){return;}" +
|
|
2913
|
+
"try{if(new URL(c[at].getAttribute(C)||'').origin!==ev.origin){return;}}catch(e){return;}" +
|
|
2914
|
+
"var d=ev.data;" +
|
|
2915
|
+
"if(d.type==='pm:title'&&typeof d.title==='string'){" +
|
|
2916
|
+
"c[at].setAttribute(RD,'');" +
|
|
2917
|
+
"var sp=c[at].querySelector(':scope>header>span');if(sp){sp.textContent=d.title.slice(0,120);}sync();return;}" +
|
|
2918
|
+
"if(d.type==='pm:open'&&typeof d.href==='string'){var u;try{u=new URL(d.href);}catch(e){return;}" +
|
|
2919
|
+
"if(u.protocol!=='https:'&&u.protocol!=='http:'){return;}" +
|
|
2920
|
+
"if(u.origin===window.location.origin){openFrom(at,u.pathname);}" +
|
|
2921
|
+
"else if(PT.indexOf(u.origin)>=0){openFrom(at,u.origin+u.pathname);}}});" +
|
|
2922
|
+
"if(EMB){tell({type:'pm:title',title:document.title});}" +
|
|
2667
2923
|
"window.addEventListener('popstate',function(){reconcile();});" +
|
|
2668
2924
|
"for(var k=0;k<cols().length;k++){showMark(cols()[k]);}" +
|
|
2669
2925
|
"(function(){var t=target(),c=current();" +
|
|
2670
2926
|
"if(c.length&&t[0]===c[0]&&t.length>c.length){reconcile();}else{sync();}})();" +
|
|
2671
2927
|
"document.addEventListener('click',function(ev){" +
|
|
2928
|
+
"if(EMB){var a0=anchorOf(ev.target);" +
|
|
2929
|
+
"if(a0&&plain(ev,a0)&&(a0.origin===window.location.origin||partner(a0.href))" +
|
|
2930
|
+
"&&!(a0.pathname===window.location.pathname&&a0.hash!=='')){" +
|
|
2931
|
+
"ev.preventDefault();tell({type:'pm:open',href:a0.origin+a0.pathname});}return;}" +
|
|
2672
2932
|
"var t=ev.target;var fb=t&&t.closest?t.closest('.'+FC):null;" +
|
|
2673
2933
|
"if(fb){ev.preventDefault();fold(columnOf(fb));return;}" +
|
|
2674
2934
|
"var tb=t&&t.closest?t.closest('.'+TC+' [data-col]'):null;" +
|
|
2675
2935
|
"if(tb){var cc=cols()[Number(tb.getAttribute('data-col'))];" +
|
|
2676
2936
|
"if(cc){cc.scrollIntoView({inline:'nearest',block:'nearest'});}return;}" +
|
|
2677
|
-
"var a=anchorOf(ev.target);
|
|
2937
|
+
"var a=anchorOf(ev.target);" +
|
|
2938
|
+
"if(claimsOut(ev,a)){var from=columnOf(a);if(from<0){return;}" +
|
|
2939
|
+
"ev.preventDefault();openFrom(from,a.origin+a.pathname);return;}" +
|
|
2940
|
+
"if(!claims(ev,a)){return;}" +
|
|
2678
2941
|
"var at=columnOf(a);if(at<0){return;}" +
|
|
2679
2942
|
"ev.preventDefault();openFrom(at,a.pathname);});" +
|
|
2680
2943
|
`window[${q(marker_1.navHookName)}]={open:open,openFrom:openFrom,urlFor:urlFor,entries:entries,entryOf:entryOf,columnOf:columnOf,claims:claims,current:current,target:target,reconcile:reconcile,fold:fold};` +
|
|
@@ -6089,7 +6352,7 @@ const narrowChrome = (props) => (0, plgg_1.matchOption)(() => [
|
|
|
6089
6352
|
(0, plgg_view_1.attr)("for", classHooks_1.shellMenuId),
|
|
6090
6353
|
(0, plgg_view_1.class_)(classHooks_1.shellMenuButtonClass),
|
|
6091
6354
|
(0, plgg_view_1.attr)("role", "button"),
|
|
6092
|
-
(0, plgg_view_1.attr)("aria-label", "
|
|
6355
|
+
(0, plgg_view_1.attr)("aria-label", "メニューを開閉"),
|
|
6093
6356
|
], []),
|
|
6094
6357
|
(0, plgg_view_1.a)(brandAttrs(props, classHooks_1.shellBarBrandClass), [(0, plgg_view_1.text)(props.brand)]),
|
|
6095
6358
|
]),
|
|
@@ -6103,7 +6366,7 @@ const narrowChrome = (props) => (0, plgg_1.matchOption)(() => [
|
|
|
6103
6366
|
(0, plgg_view_1.button)([
|
|
6104
6367
|
(0, plgg_view_1.attr)("type", "button"),
|
|
6105
6368
|
(0, plgg_view_1.class_)(classHooks_1.shellMenuButtonClass),
|
|
6106
|
-
(0, plgg_view_1.attr)("aria-label", "
|
|
6369
|
+
(0, plgg_view_1.attr)("aria-label", "メニューを開閉"),
|
|
6107
6370
|
(0, plgg_view_1.attr)("aria-expanded", d.open ? "true" : "false"),
|
|
6108
6371
|
...d.toggle,
|
|
6109
6372
|
], []),
|
|
@@ -6135,7 +6398,7 @@ const shell = (props) => (0, plgg_view_1.el)("div", [
|
|
|
6135
6398
|
(0, plgg_view_1.button)([
|
|
6136
6399
|
(0, plgg_view_1.attr)("type", "button"),
|
|
6137
6400
|
(0, plgg_view_1.class_)(classHooks_1.shellFoldClass),
|
|
6138
|
-
(0, plgg_view_1.attr)("aria-label", "
|
|
6401
|
+
(0, plgg_view_1.attr)("aria-label", "サイドバーを折りたたむ"),
|
|
6139
6402
|
(0, plgg_view_1.attr)("aria-expanded", props.folded
|
|
6140
6403
|
? "false"
|
|
6141
6404
|
: "true"),
|
|
@@ -6180,6 +6443,8 @@ const metric_1 = require("src/Style/model/metric.ts");
|
|
|
6180
6443
|
const zIndex_1 = require("src/Style/model/zIndex.ts");
|
|
6181
6444
|
const breakpoint_1 = require("src/Style/model/breakpoint.ts");
|
|
6182
6445
|
const shareCss_1 = require("src/Style/usecase/shareCss.ts");
|
|
6446
|
+
const partsCss_1 = require("src/Component/usecase/partsCss.ts");
|
|
6447
|
+
const marker_1 = require("src/Navigate/model/marker.ts");
|
|
6183
6448
|
const systemCss = (theme) => {
|
|
6184
6449
|
const p = theme.prefix;
|
|
6185
6450
|
const mvar = (0, metric_1.metricVar)(theme);
|
|
@@ -6291,10 +6556,300 @@ ${car}{position:absolute;top:50%;z-index:${(0, zIndex_1.zValue)("chrome")};displ
|
|
|
6291
6556
|
.${p}-toaster{position:fixed;right:1rem;bottom:1rem;z-index:${(0, zIndex_1.zValue)("overlay")};display:flex;flex-direction:column}
|
|
6292
6557
|
.${p}-toast{display:flex;align-items:center}
|
|
6293
6558
|
.${p}-toast-close{flex:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
|
|
6294
|
-
` +
|
|
6559
|
+
` +
|
|
6560
|
+
(0, partsCss_1.partsSystemCss)(p, String((0, zIndex_1.zValue)("overlay"))) +
|
|
6561
|
+
(0, marker_1.frameCss)(p) +
|
|
6562
|
+
(0, shareCss_1.shareCss)(theme)(shareCss_1.shareOptions));
|
|
6295
6563
|
};
|
|
6296
6564
|
exports.systemCss = systemCss;
|
|
6297
6565
|
|
|
6566
|
+
},
|
|
6567
|
+
"src/Component/usecase/partsCss.ts": function (module, exports, require) {
|
|
6568
|
+
"use strict";
|
|
6569
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6570
|
+
exports.partsAppearanceCss = exports.partsSystemCss = void 0;
|
|
6571
|
+
const partsSystemCss = (p, overlay) => `
|
|
6572
|
+
.${p}-badge{display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle}
|
|
6573
|
+
.${p}-tag{display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle}
|
|
6574
|
+
.${p}-tag-remove{flex:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
|
|
6575
|
+
.${p}-card{display:flex;flex-direction:column;min-width:0}
|
|
6576
|
+
.${p}-card-foot{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap}
|
|
6577
|
+
.${p}-table-wrap{max-width:100%;overflow-x:auto}
|
|
6578
|
+
.${p}-table{width:100%;border-collapse:collapse}
|
|
6579
|
+
.${p}-table :is(th,td){text-align:left;white-space:nowrap}
|
|
6580
|
+
.${p}-table .${p}-num{text-align:right;font-variant-numeric:tabular-nums}
|
|
6581
|
+
.${p}-desc{display:grid;grid-template-columns:minmax(5.5rem,max-content) minmax(0,1fr);margin:0}
|
|
6582
|
+
.${p}-desc dd{margin:0;min-width:0}
|
|
6583
|
+
.${p}-divider{display:block;width:100%;height:0;margin:0}
|
|
6584
|
+
.${p}-avatar{display:inline-flex;align-items:center;justify-content:center;flex:none;width:2rem;height:2rem;overflow:hidden;vertical-align:middle}
|
|
6585
|
+
.${p}-code{margin:0;overflow-x:auto;white-space:pre}
|
|
6586
|
+
.${p}-empty{display:flex;flex-direction:column;align-items:center;text-align:center}
|
|
6587
|
+
.${p}-empty p{margin:0}
|
|
6588
|
+
.${p}-items{list-style:none;margin:0}
|
|
6589
|
+
.${p}-items-row{display:flex;align-items:center;justify-content:space-between}
|
|
6590
|
+
.${p}-items-row div:first-child{min-width:0}
|
|
6591
|
+
.${p}-items-title,.${p}-items-note{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
6592
|
+
.${p}-items-trail{flex:none;display:flex;align-items:center}
|
|
6593
|
+
.${p}-alert p{margin:0}
|
|
6594
|
+
.${p}-progress-track{position:relative;width:100%;overflow:hidden}
|
|
6595
|
+
.${p}-progress-bar{height:100%}
|
|
6596
|
+
.${p}-progress[data-${p}-busy] .${p}-progress-bar{width:40%}
|
|
6597
|
+
.${p}-spinner{display:inline-flex;align-items:center}
|
|
6598
|
+
.${p}-spinner-mark{flex:none;display:block;width:1rem;height:1rem}
|
|
6599
|
+
.${p}-skeleton{display:flex;flex-direction:column}
|
|
6600
|
+
.${p}-skeleton-line{height:.8rem}
|
|
6601
|
+
.${p}-skeleton-line:last-child:not(:first-child){width:60%}
|
|
6602
|
+
.${p}-tip{position:relative;display:inline-flex}
|
|
6603
|
+
.${p}-tip::after{content:attr(data-${p}-tip);position:absolute;z-index:${overlay};bottom:calc(100% + .35rem);left:50%;transform:translateX(-50%);width:max-content;max-width:16rem;pointer-events:none;opacity:0}
|
|
6604
|
+
.${p}-tip:is(:hover,:focus-visible,:focus-within)::after{opacity:1}
|
|
6605
|
+
.${p}-tabs{display:flex;overflow-x:auto}
|
|
6606
|
+
.${p}-tab{flex:none;cursor:pointer;white-space:nowrap}
|
|
6607
|
+
.${p}-pager{display:flex;align-items:center;flex-wrap:wrap}
|
|
6608
|
+
.${p}-pager-item{display:inline-flex;align-items:center;justify-content:center;min-width:2rem;height:2rem;cursor:pointer}
|
|
6609
|
+
.${p}-pager-item:disabled{cursor:not-allowed}
|
|
6610
|
+
.${p}-steps{display:flex;list-style:none;margin:0;counter-reset:${p}-step}
|
|
6611
|
+
.${p}-step{flex:1 1 0;min-width:0;display:flex;align-items:center;counter-increment:${p}-step;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
6612
|
+
.${p}-step::before{content:counter(${p}-step);flex:none;display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem}
|
|
6613
|
+
.${p}-accordion-item summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none}
|
|
6614
|
+
.${p}-accordion-item summary::-webkit-details-marker{display:none}
|
|
6615
|
+
.${p}-accordion-item summary::after{content:"";flex:none;width:.45rem;height:.45rem;transform:rotate(45deg)}
|
|
6616
|
+
.${p}-accordion-item[open] summary::after{transform:rotate(225deg)}
|
|
6617
|
+
.${p}-menu-button{position:relative;display:inline-block}
|
|
6618
|
+
.${p}-menu-button summary{display:inline-flex;align-items:center;cursor:pointer;list-style:none}
|
|
6619
|
+
.${p}-menu-button summary::-webkit-details-marker{display:none}
|
|
6620
|
+
.${p}-menu-button summary::after{content:"";flex:none;width:.4rem;height:.4rem;transform:rotate(45deg) translateY(-.15rem)}
|
|
6621
|
+
.${p}-menu-list{position:absolute;z-index:${overlay};top:calc(100% + .25rem);left:0;display:flex;flex-direction:column;min-width:10rem}
|
|
6622
|
+
.${p}-menu-item{display:block;width:100%;text-align:left;cursor:pointer;white-space:nowrap}
|
|
6623
|
+
.${p}-icon-btn{display:inline-flex;align-items:center;justify-content:center;flex:none;width:2rem;height:2rem;cursor:pointer}
|
|
6624
|
+
.${p}-icon-btn:disabled{cursor:not-allowed}
|
|
6625
|
+
.${p}-radios{display:flex;flex-direction:column;margin:0;min-width:0}
|
|
6626
|
+
.${p}-radio{display:inline-flex;align-items:center;cursor:pointer}
|
|
6627
|
+
.${p}-radio input{flex:none;margin:0}
|
|
6628
|
+
.${p}-segmented{display:inline-flex}
|
|
6629
|
+
.${p}-segment{flex:none;cursor:pointer;white-space:nowrap}
|
|
6630
|
+
.${p}-range{display:flex;align-items:center}
|
|
6631
|
+
.${p}-range input{flex:1 1 auto;min-width:0;margin:0}
|
|
6632
|
+
.${p}-range-value{flex:none;min-width:2.5rem;text-align:right;font-variant-numeric:tabular-nums}
|
|
6633
|
+
.${p}-search{display:flex}
|
|
6634
|
+
.${p}-search .${p}-input{flex:1 1 auto;min-width:0;width:100%}
|
|
6635
|
+
.${p}-toolbar{display:flex;align-items:center;flex-wrap:wrap}
|
|
6636
|
+
.${p}-tool-group{display:inline-flex;flex:none}
|
|
6637
|
+
.${p}-tool{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:2.125rem;height:2.125rem;cursor:pointer;white-space:nowrap}
|
|
6638
|
+
.${p}-tool:disabled{cursor:not-allowed}
|
|
6639
|
+
.${p}-tool-group .${p}-tool + .${p}-tool{margin-left:-1px}
|
|
6640
|
+
.${p}-tool-group .${p}-tool:is(:hover,:focus-visible,[aria-pressed="true"]){position:relative;z-index:1}
|
|
6641
|
+
.${p}-splitter{flex:none;position:relative;z-index:1;touch-action:none}
|
|
6642
|
+
.${p}-splitter[aria-orientation="vertical"]{width:6px;cursor:col-resize}
|
|
6643
|
+
.${p}-splitter[aria-orientation="horizontal"]{height:8px;cursor:row-resize}
|
|
6644
|
+
.${p}-rows{overflow:auto;white-space:pre}
|
|
6645
|
+
.${p}-rows-row{position:relative;width:max-content;min-width:100%;min-height:1.7em;cursor:default;user-select:none;-webkit-user-select:none}
|
|
6646
|
+
.${p}-code-input{display:block;width:100%;min-height:8rem;resize:none;overflow:auto;white-space:pre;tab-size:2}
|
|
6647
|
+
.${p}-status{display:block}
|
|
6648
|
+
.${p}-example :is(h1,h2,h3):first-child{margin-top:0}
|
|
6649
|
+
.${p}-example p:last-child{margin-bottom:0}
|
|
6650
|
+
.${p}-cluster{display:flex;flex-wrap:wrap;align-items:center}
|
|
6651
|
+
.${p}-split{display:flex;min-height:7rem}
|
|
6652
|
+
.${p}-split[data-orientation="horizontal"]{flex-direction:column}
|
|
6653
|
+
.${p}-split-pane{flex:1 1 0;min-width:0;min-height:0;overflow:auto}
|
|
6654
|
+
.${p}-swatches{display:grid;grid-template-columns:repeat(auto-fill,minmax(11rem,1fr))}
|
|
6655
|
+
.${p}-swatch{display:grid;grid-template-columns:2.25rem 1fr;grid-template-rows:auto auto;align-items:center}
|
|
6656
|
+
.${p}-swatch-chip{grid-row:1 / 3;width:2.25rem;height:2.25rem}
|
|
6657
|
+
.${p}-preview-bar{display:flex;align-items:center;justify-content:space-between;height:2.25rem}
|
|
6658
|
+
.${p}-preview iframe{display:block;width:100%;height:min(34rem,62vh);border-style:none}
|
|
6659
|
+
.${p}-trail{flex:none;display:flex;align-items:stretch;height:2rem;overflow-x:auto}
|
|
6660
|
+
.${p}-trail button{flex:none;cursor:pointer;white-space:nowrap;max-width:14rem;overflow:hidden;text-overflow:ellipsis}
|
|
6661
|
+
.${p}-trail button + button::before{content:"›"}
|
|
6662
|
+
.${p}-popover{position:relative;display:inline-block}
|
|
6663
|
+
.${p}-popover summary{display:inline-flex;align-items:center;cursor:pointer;list-style:none}
|
|
6664
|
+
.${p}-popover summary::-webkit-details-marker{display:none}
|
|
6665
|
+
.${p}-popover-body{position:absolute;z-index:${overlay};top:calc(100% + .35rem);left:0;width:max-content;max-width:min(20rem,80vw)}
|
|
6666
|
+
.${p}-drawer{position:fixed;z-index:${overlay};top:0;bottom:0;right:0;display:flex;flex-direction:column;width:min(22rem,88vw)}
|
|
6667
|
+
.${p}-drawer[data-${p}-side="left"]{right:auto;left:0}
|
|
6668
|
+
.${p}-drawer-head{flex:none;display:flex;align-items:center;justify-content:space-between}
|
|
6669
|
+
.${p}-drawer-body{flex:1 1 auto;min-height:0;overflow-y:auto}
|
|
6670
|
+
.${p}-checks{display:flex;flex-direction:column;margin:0;min-width:0}
|
|
6671
|
+
.${p}-checks-item{display:inline-flex;align-items:center;cursor:pointer}
|
|
6672
|
+
.${p}-checks-item input{flex:none;margin:0}
|
|
6673
|
+
.${p}-sort{display:inline-flex;align-items:center;cursor:pointer;white-space:nowrap}
|
|
6674
|
+
.${p}-sort::after{content:"↕";flex:none}
|
|
6675
|
+
th[aria-sort="ascending"] .${p}-sort::after{content:"↑"}
|
|
6676
|
+
th[aria-sort="descending"] .${p}-sort::after{content:"↓"}
|
|
6677
|
+
.${p}-calendar{display:inline-flex;flex-direction:column}
|
|
6678
|
+
.${p}-calendar-head{display:flex;align-items:center;justify-content:space-between}
|
|
6679
|
+
.${p}-calendar-grid{border-collapse:collapse}
|
|
6680
|
+
.${p}-calendar-grid :is(th,td){text-align:center}
|
|
6681
|
+
.${p}-calendar-day{display:inline-flex;align-items:center;justify-content:center;width:2.1rem;height:2.1rem;cursor:pointer}
|
|
6682
|
+
`;
|
|
6683
|
+
exports.partsSystemCss = partsSystemCss;
|
|
6684
|
+
const partsAppearanceCss = (l) => {
|
|
6685
|
+
const p = l.p;
|
|
6686
|
+
const toned = (part) => l.tones
|
|
6687
|
+
.map((name) => `.${p}-${part}-${name}{background:${l.tone(name, "surface")};color:${l.tone(name, "text")};border-color:${l.tone(name, "border")}}`)
|
|
6688
|
+
.join("\n");
|
|
6689
|
+
return `
|
|
6690
|
+
.${p}-badge{padding:.05rem .45rem;border:${l.rule};border-radius:${l.round};font-size:.75rem;line-height:1.5;font-weight:500;color:${l.text}}
|
|
6691
|
+
${toned("badge")}
|
|
6692
|
+
.${p}-tag{gap:.25rem;padding:.1rem .5rem;border:${l.hair};border-radius:${l.radius};background:${l.wash};font-size:.8125rem;line-height:1.5;color:${l.text}}
|
|
6693
|
+
.${p}-tag-remove{width:1.1rem;height:1.1rem;margin-right:-.2rem;padding:0;border:0;border-radius:${l.radius};background:none;color:inherit;font-size:.9rem;line-height:1}
|
|
6694
|
+
.${p}-tag-remove:hover,.${p}-tag-remove:focus-visible{${l.press};outline:0}
|
|
6695
|
+
.${p}-card{border:${l.rule};border-radius:${l.radius};background:${l.surface};color:${l.text}}
|
|
6696
|
+
.${p}-card-head{padding:.7rem 1rem;border-bottom:${l.rule};font-size:.9375rem;font-weight:600}
|
|
6697
|
+
.${p}-card-body{padding:1rem;font-size:.875rem}
|
|
6698
|
+
.${p}-card-body :is(p,ul,ol):first-child{margin-top:0}
|
|
6699
|
+
.${p}-card-body :is(p,ul,ol):last-child{margin-bottom:0}
|
|
6700
|
+
.${p}-card-foot{gap:.5rem;padding:.7rem 1rem;border-top:${l.hair}}
|
|
6701
|
+
.${p}-table{font-size:.875rem;color:${l.text}}
|
|
6702
|
+
.${p}-table th{padding:.5rem .75rem;border-bottom:${l.rule};font-weight:600}
|
|
6703
|
+
.${p}-table td{padding:.5rem .75rem;border-bottom:${l.hair}}
|
|
6704
|
+
.${p}-table tbody tr:hover{${l.hover}}
|
|
6705
|
+
.${p}-desc{gap:.4rem 1.25rem;font-size:.875rem}
|
|
6706
|
+
.${p}-desc dt{color:${l.muted}}
|
|
6707
|
+
.${p}-divider{border:0;border-top:${l.hair};margin:1rem 0}
|
|
6708
|
+
.${p}-avatar{border:${l.rule};border-radius:${l.round};background:${l.wash};color:${l.text};font-size:.875rem;font-weight:600;line-height:1}
|
|
6709
|
+
.${p}-code{padding:.8rem 1rem;border:${l.hair};border-radius:${l.radius};background:${l.wash};font-family:${l.mono};font-size:.8125rem;line-height:1.6;color:${l.text}}
|
|
6710
|
+
.${p}-empty{gap:.5rem;padding:2rem 1rem;border:1px dashed ${l.muted};border-radius:${l.radius};color:${l.muted};font-size:.875rem}
|
|
6711
|
+
.${p}-empty-title{font-size:.9375rem;font-weight:600;color:${l.text}}
|
|
6712
|
+
.${p}-empty .${p}-btn{margin-top:.5rem}
|
|
6713
|
+
.${p}-items,ul.${p}-items{margin:0;padding:0;border-top:${l.hair};font-size:.875rem}
|
|
6714
|
+
.${p}-items-row{gap:1rem;padding:.6rem .25rem;border-bottom:${l.hair}}
|
|
6715
|
+
.${p}-items-title{font-weight:500;color:${l.text}}
|
|
6716
|
+
.${p}-items-note{font-size:.8125rem;color:${l.muted}}
|
|
6717
|
+
.${p}-items-trail{gap:.5rem}
|
|
6718
|
+
.${p}-alert{padding:.7rem .9rem;border:${l.rule};border-left-width:4px;border-radius:${l.radius};font-size:.875rem;line-height:1.6}
|
|
6719
|
+
${toned("alert")}
|
|
6720
|
+
.${p}-alert-title{font-weight:600}
|
|
6721
|
+
.${p}-progress-track{height:.5rem;border:${l.rule};border-radius:${l.round};background:${l.surface}}
|
|
6722
|
+
.${p}-progress-bar{background:${l.text};transition:width ${l.quick} ease}
|
|
6723
|
+
.${p}-progress[data-${p}-busy] .${p}-progress-bar{animation:${p}-busy 1.2s linear infinite}
|
|
6724
|
+
@keyframes ${p}-busy{from{transform:translateX(-100%)}to{transform:translateX(250%)}}
|
|
6725
|
+
.${p}-spinner{gap:.5rem;font-size:.875rem;color:${l.muted}}
|
|
6726
|
+
.${p}-spinner-mark{border:2px solid ${l.muted};border-top-color:${l.text};border-radius:${l.round};animation:${p}-spin .8s linear infinite}
|
|
6727
|
+
@keyframes ${p}-spin{to{transform:rotate(360deg)}}
|
|
6728
|
+
.${p}-skeleton{gap:.55rem}
|
|
6729
|
+
.${p}-skeleton-line{border-radius:${l.radius};background:${l.wash};animation:${p}-pulse 1.4s ease-in-out infinite}
|
|
6730
|
+
@keyframes ${p}-pulse{50%{opacity:.45}}
|
|
6731
|
+
.${p}-tip{text-decoration:underline dotted;text-underline-offset:.2em;cursor:help}
|
|
6732
|
+
.${p}-tip::after{padding:.3rem .5rem;border-radius:${l.radius};${l.current};font-size:.75rem;line-height:1.4;font-weight:400;text-decoration:none;white-space:normal;transition:opacity ${l.quick} ease}
|
|
6733
|
+
.${p}-tip:focus-visible{outline:${l.rule};outline-offset:2px}
|
|
6734
|
+
.${p}-tabs{border-bottom:${l.rule}}
|
|
6735
|
+
.${p}-tab{padding:.5rem .9rem;border:0;border-radius:${l.radius} ${l.radius} 0 0;background:none;color:${l.muted};font:inherit;font-size:.875rem;transition:background-color ${l.quick} ease,color ${l.quick} ease}
|
|
6736
|
+
.${p}-tab:hover{${l.hover}}
|
|
6737
|
+
.${p}-tab[aria-selected="true"]{${l.current};font-weight:500}
|
|
6738
|
+
.${p}-tab:focus-visible{outline:${l.rule};outline-offset:-2px}
|
|
6739
|
+
.${p}-pager{gap:.25rem;font-size:.875rem;color:${l.text}}
|
|
6740
|
+
.${p}-pager-item{padding:0 .4rem;border:${l.rule};border-radius:${l.radius};background:${l.surface};color:${l.text};font:inherit;font-size:.8125rem;transition:background-color ${l.quick} ease,color ${l.quick} ease}
|
|
6741
|
+
.${p}-pager-item:hover:not(:disabled),.${p}-pager-item:focus-visible{${l.press};outline:0}
|
|
6742
|
+
.${p}-pager-item[aria-current]{${l.current};cursor:default}
|
|
6743
|
+
.${p}-pager-item:disabled{opacity:.4}
|
|
6744
|
+
.${p}-steps,ol.${p}-steps{margin:0;padding:0;gap:.75rem;font-size:.8125rem;color:${l.muted}}
|
|
6745
|
+
.${p}-step{gap:.45rem}
|
|
6746
|
+
.${p}-step::before{border:${l.rule};border-radius:${l.round};font-size:.75rem;color:${l.text};background:${l.surface}}
|
|
6747
|
+
.${p}-step[aria-current]{color:${l.text};font-weight:600}
|
|
6748
|
+
.${p}-step[aria-current]::before{${l.current}}
|
|
6749
|
+
.${p}-step[data-done]::before{content:"✓";background:${l.wash}}
|
|
6750
|
+
.${p}-accordion{border-top:${l.rule}}
|
|
6751
|
+
.${p}-accordion-item{border-bottom:${l.rule}}
|
|
6752
|
+
.${p}-accordion-item summary{gap:1rem;padding:.7rem .25rem;font-size:.9375rem;font-weight:500;color:${l.text}}
|
|
6753
|
+
.${p}-accordion-item summary:hover{${l.hover}}
|
|
6754
|
+
.${p}-accordion-item summary:focus-visible{outline:${l.rule};outline-offset:-1px}
|
|
6755
|
+
.${p}-accordion-item summary::after{border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;margin-right:.4rem;transition:transform ${l.quick} ease}
|
|
6756
|
+
.${p}-accordion-body{padding:.25rem .25rem 1rem;font-size:.875rem}
|
|
6757
|
+
.${p}-menu-button summary{gap:.5rem;padding:.45rem .8rem;border:${l.rule};border-radius:${l.radius};background:${l.surface};color:${l.text};font-size:.875rem;font-weight:500}
|
|
6758
|
+
.${p}-menu-button summary:hover,.${p}-menu-button summary:focus-visible,.${p}-menu-button[open] summary{${l.press};outline:0}
|
|
6759
|
+
.${p}-menu-button summary::after{border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor}
|
|
6760
|
+
.${p}-menu-list{padding:.25rem;border:${l.rule};border-radius:${l.radius};background:${l.surface};box-shadow:${l.elevation}}
|
|
6761
|
+
.${p}-menu-item{padding:.4rem .6rem;border:0;border-radius:${l.radius};background:none;color:${l.text};font:inherit;font-size:.875rem}
|
|
6762
|
+
.${p}-menu-item:hover,.${p}-menu-item:focus-visible{${l.press};outline:0}
|
|
6763
|
+
.${p}-menu-item[data-danger]{color:${l.danger}}
|
|
6764
|
+
.${p}-menu-item[data-danger]:is(:hover,:focus-visible){background:${l.danger};color:${l.surface}}
|
|
6765
|
+
.${p}-icon-btn{padding:0;border:${l.rule};border-radius:${l.radius};background:${l.surface};color:${l.text};font-size:1rem;line-height:1;transition:background-color ${l.quick} ease,color ${l.quick} ease}
|
|
6766
|
+
.${p}-icon-btn:hover:not(:disabled),.${p}-icon-btn:focus-visible{${l.press};outline:0}
|
|
6767
|
+
.${p}-icon-btn:disabled{opacity:.45}
|
|
6768
|
+
.${p}-icon-btn-round{border-radius:50%;box-shadow:${l.elevation}}
|
|
6769
|
+
.${p}-radios{gap:.4rem;padding:0;border:0}
|
|
6770
|
+
.${p}-radios legend{padding:0;margin-bottom:.35rem}
|
|
6771
|
+
.${p}-radio{gap:.5rem;font-size:.875rem;color:${l.text}}
|
|
6772
|
+
.${p}-radio input{appearance:none;width:1rem;height:1rem;border:${l.rule};border-radius:${l.round};background:${l.surface}}
|
|
6773
|
+
.${p}-radio input:checked{box-shadow:inset 0 0 0 3px ${l.surface};background:${l.text}}
|
|
6774
|
+
.${p}-radio input:focus-visible{outline:${l.rule};outline-offset:2px}
|
|
6775
|
+
.${p}-segmented{border:${l.rule};border-radius:${l.radius};overflow:hidden}
|
|
6776
|
+
.${p}-segment{padding:.4rem .85rem;border:0;border-right:${l.rule};background:${l.surface};color:${l.text};font:inherit;font-size:.8125rem;transition:background-color ${l.quick} ease,color ${l.quick} ease}
|
|
6777
|
+
.${p}-segment:last-child{border-right:0}
|
|
6778
|
+
.${p}-segment:hover{${l.hover}}
|
|
6779
|
+
.${p}-segment[aria-pressed="true"]{${l.current}}
|
|
6780
|
+
.${p}-segment:focus-visible{outline:${l.rule};outline-offset:-3px}
|
|
6781
|
+
.${p}-range{gap:.75rem}
|
|
6782
|
+
.${p}-range input{accent-color:${l.text}}
|
|
6783
|
+
.${p}-range-value{font-size:.8125rem;color:${l.muted}}
|
|
6784
|
+
.${p}-input[type="file"]{padding:.3rem}
|
|
6785
|
+
.${p}-input[type="file"]::file-selector-button{margin-right:.6rem;padding:.25rem .6rem;border:${l.rule};border-radius:${l.radius};background:${l.surface};color:${l.text};font:inherit;font-size:.8125rem;cursor:pointer}
|
|
6786
|
+
.${p}-toolbar{gap:.75rem}
|
|
6787
|
+
.${p}-tool{padding:0 .75rem;border:${l.rule};border-radius:${l.radius};background:${l.surface};color:${l.text};font:inherit;font-size:.8125rem;line-height:1;transition:background-color ${l.quick} ease,color ${l.quick} ease}
|
|
6788
|
+
.${p}-tool-icon{padding:0;font-size:1rem}
|
|
6789
|
+
.${p}-tool:hover:not(:disabled),.${p}-tool:focus-visible{${l.press};outline:0}
|
|
6790
|
+
.${p}-tool[aria-pressed="true"]{${l.current}}
|
|
6791
|
+
.${p}-tool:disabled{opacity:.45}
|
|
6792
|
+
.${p}-tool-group .${p}-tool:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}
|
|
6793
|
+
.${p}-tool-group .${p}-tool:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}
|
|
6794
|
+
.${p}-splitter{background:transparent;transition:background-color ${l.quick} ease}
|
|
6795
|
+
.${p}-splitter:is(:hover,:focus-visible,[data-dragging]){background:color-mix(in srgb,${l.text} 35%,transparent);outline:0}
|
|
6796
|
+
.${p}-rows,.${p}-code-input{padding:.875rem;border:0;background:none;color:${l.text};font-family:${l.mono};font-size:.8125rem;line-height:1.7}
|
|
6797
|
+
.${p}-rows-row:hover{${l.hover}}
|
|
6798
|
+
.${p}-rows-row[aria-selected="true"],.${p}-rows-row[aria-selected="true"]:hover{background:color-mix(in srgb,${l.text} 18%,${l.surface})}
|
|
6799
|
+
.${p}-rows-row[aria-invalid="true"]{text-decoration:underline wavy ${l.danger}}
|
|
6800
|
+
.${p}-rows-row:focus-visible{outline:${l.rule};outline-offset:-1px}
|
|
6801
|
+
.${p}-code-input:focus-visible{outline:0;box-shadow:inset 0 -1px 0 ${l.text}}
|
|
6802
|
+
.${p}-status{padding:.5rem .875rem;border-top:${l.rule};font-size:.75rem;line-height:1.6;color:${l.muted}}
|
|
6803
|
+
.${p}-status[data-error]{${l.current}}
|
|
6804
|
+
.${p}-example{margin:1rem 0;padding:1.25rem 1.4rem;border:${l.rule};border-radius:${l.radius}}
|
|
6805
|
+
.${p}-example-item + .${p}-example-item{margin-top:.9rem}
|
|
6806
|
+
.${p}-example table{margin:0}
|
|
6807
|
+
.${p}-cluster{gap:.6rem}
|
|
6808
|
+
.${p}-split{border:${l.hair};border-radius:${l.radius}}
|
|
6809
|
+
.${p}-split-pane{padding:.75rem;font-size:.875rem}
|
|
6810
|
+
.${p}-swatches{gap:.6rem;margin:.75rem 0}
|
|
6811
|
+
.${p}-swatch{column-gap:.7rem;padding:.5rem;border:${l.hair};border-radius:${l.radius}}
|
|
6812
|
+
.${p}-swatch-chip{border:${l.rule};border-radius:${l.radius}}
|
|
6813
|
+
.${p}-swatch strong{font-size:.8125rem;font-weight:600;line-height:1.3}
|
|
6814
|
+
.${p}-swatch code{padding:0;background:none;font-size:.7rem;line-height:1.3;color:${l.muted}}
|
|
6815
|
+
.${p}-preview{margin:1rem 0;border:${l.rule};border-radius:${l.radius};overflow:hidden}
|
|
6816
|
+
.${p}-preview-bar{gap:1rem;padding:0 .4rem 0 .9rem;border-bottom:${l.rule};font-size:.8125rem;font-weight:600}
|
|
6817
|
+
.${p}-preview-bar a{font-weight:400;font-size:.75rem}
|
|
6818
|
+
.${p}-preview iframe{background:${l.surface}}
|
|
6819
|
+
.${p}-trail{border-bottom:${l.rule};background:${l.surface};font-size:.75rem}
|
|
6820
|
+
.${p}-trail button{padding:0 .75rem;border:0;background:none;color:${l.muted};font:inherit}
|
|
6821
|
+
.${p}-trail button + button::before{margin-right:.75rem;color:${l.muted}}
|
|
6822
|
+
.${p}-trail button[aria-current]{color:${l.text};font-weight:600}
|
|
6823
|
+
.${p}-trail button:hover{color:${l.text}}
|
|
6824
|
+
.${p}-popover summary{padding:.45rem .8rem;border:${l.rule};border-radius:${l.radius};background:${l.surface};color:${l.text};font-size:.875rem;font-weight:500}
|
|
6825
|
+
.${p}-popover summary:hover,.${p}-popover summary:focus-visible,.${p}-popover[open] summary{${l.press};outline:0}
|
|
6826
|
+
.${p}-popover-body{padding:.75rem .9rem;border:${l.rule};border-radius:${l.radius};background:${l.surface};color:${l.text};font-size:.875rem;line-height:1.6;box-shadow:${l.elevation}}
|
|
6827
|
+
.${p}-popover-body :is(p,ul,ol):first-child{margin-top:0}
|
|
6828
|
+
.${p}-popover-body :is(p,ul,ol):last-child{margin-bottom:0}
|
|
6829
|
+
.${p}-drawer{border-left:${l.rule};background:${l.surface};color:${l.text};box-shadow:${l.elevation}}
|
|
6830
|
+
.${p}-drawer[data-${p}-side="left"]{border-left:0;border-right:${l.rule}}
|
|
6831
|
+
.${p}-drawer-head{gap:1rem;padding:.6rem .75rem .6rem 1rem;border-bottom:${l.rule};font-size:.9375rem;font-weight:600}
|
|
6832
|
+
.${p}-drawer-body{padding:1rem;font-size:.875rem}
|
|
6833
|
+
.${p}-checks{gap:.4rem;padding:0;border:0}
|
|
6834
|
+
.${p}-checks legend{padding:0;margin-bottom:.35rem}
|
|
6835
|
+
.${p}-checks-item{gap:.5rem;font-size:.875rem;color:${l.text}}
|
|
6836
|
+
.${p}-sort{gap:.35rem;padding:0;border:0;background:none;color:inherit;font:inherit;font-weight:600}
|
|
6837
|
+
.${p}-sort::after{font-size:.75rem;color:${l.muted}}
|
|
6838
|
+
.${p}-sort:hover{text-decoration:underline}
|
|
6839
|
+
.${p}-sort:focus-visible{outline:${l.rule};outline-offset:2px}
|
|
6840
|
+
th[aria-sort="ascending"] .${p}-sort::after,th[aria-sort="descending"] .${p}-sort::after{color:${l.text}}
|
|
6841
|
+
.${p}-calendar{gap:.5rem;padding:.75rem;border:${l.rule};border-radius:${l.radius};background:${l.surface};color:${l.text}}
|
|
6842
|
+
.${p}-calendar-head{gap:.5rem;font-size:.9375rem;font-weight:600}
|
|
6843
|
+
.${p}-calendar-grid th{padding:.2rem 0;font-size:.75rem;font-weight:500;color:${l.muted}}
|
|
6844
|
+
.${p}-calendar-grid td{padding:1px}
|
|
6845
|
+
.${p}-calendar-day{padding:0;border:0;border-radius:${l.radius};background:none;color:${l.text};font:inherit;font-size:.8125rem;transition:background-color ${l.quick} ease,color ${l.quick} ease}
|
|
6846
|
+
.${p}-calendar-day:hover,.${p}-calendar-day:focus-visible{${l.press};outline:0}
|
|
6847
|
+
.${p}-calendar-day[aria-pressed="true"]{${l.current}}
|
|
6848
|
+
@media (prefers-reduced-motion:reduce){.${p}-spinner-mark,.${p}-skeleton-line,.${p}-progress[data-${p}-busy] .${p}-progress-bar{animation:none}.${p}-tip::after{transition:none}}
|
|
6849
|
+
`;
|
|
6850
|
+
};
|
|
6851
|
+
exports.partsAppearanceCss = partsAppearanceCss;
|
|
6852
|
+
|
|
6298
6853
|
},
|
|
6299
6854
|
"src/Appearance/model/appearance.ts": function (module, exports, require) {
|
|
6300
6855
|
"use strict";
|
|
@@ -6319,7 +6874,7 @@ exports.monochrome = {
|
|
|
6319
6874
|
head: "3rem",
|
|
6320
6875
|
gutter: "1.25rem",
|
|
6321
6876
|
page: "2rem 2.5rem 3rem",
|
|
6322
|
-
elevation: "
|
|
6877
|
+
elevation: "0 2px 10px rgba(0,0,0,.22)",
|
|
6323
6878
|
quick: ".15s",
|
|
6324
6879
|
arrive: ".34s",
|
|
6325
6880
|
leave: ".26s",
|
|
@@ -6360,6 +6915,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6360
6915
|
exports.appearanceCss = void 0;
|
|
6361
6916
|
const token_1 = require("src/Style/model/token.ts");
|
|
6362
6917
|
const themeToggle_1 = require("src/Component/usecase/themeToggle.ts");
|
|
6918
|
+
const partsCss_1 = require("src/Component/usecase/partsCss.ts");
|
|
6363
6919
|
const appearanceCss = (theme) => (a) => {
|
|
6364
6920
|
const p = theme.prefix;
|
|
6365
6921
|
const cvar = (0, token_1.colorVar)(theme);
|
|
@@ -6487,7 +7043,7 @@ ${group}[open] summary{padding-bottom:.45rem}
|
|
|
6487
7043
|
${group}[open]::details-content{padding-bottom:.5rem}
|
|
6488
7044
|
${group} ${link}:hover{padding-left:calc(${a.gutter} + 1.15rem)}
|
|
6489
7045
|
${group} ${link}[aria-current]:hover{padding-left:calc(${a.gutter} + .9rem)}
|
|
6490
|
-
${car}{width:2.25rem;height:2.25rem;margin-top:-1.125rem;padding:0;border:${rule};border-radius
|
|
7046
|
+
${car}{width:2.25rem;height:2.25rem;margin-top:-1.125rem;padding:0;border:${rule};border-radius:50%;background:${surface};color:${text};box-shadow:${a.elevation};${quick("background-color", "color")}}
|
|
6491
7047
|
${carEach("::before")}{content:"";width:.5rem;height:.5rem;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor}
|
|
6492
7048
|
.${p}-carousel-prev::before{transform:translateX(.12rem) rotate(-135deg)}
|
|
6493
7049
|
.${p}-carousel-next::before{transform:translateX(-.12rem) rotate(45deg)}
|
|
@@ -6542,6 +7098,26 @@ ${tones
|
|
|
6542
7098
|
.join("\n")}
|
|
6543
7099
|
.${p}-toast-close{width:1.6rem;height:1.6rem;padding:0;border:0;border-radius:${a.radius};background:none;color:inherit;font-size:1.05rem;line-height:1}
|
|
6544
7100
|
.${p}-toast-close:hover,.${p}-toast-close:focus-visible{background:currentColor;outline:0}
|
|
7101
|
+
${(0, partsCss_1.partsAppearanceCss)({
|
|
7102
|
+
p,
|
|
7103
|
+
text,
|
|
7104
|
+
surface,
|
|
7105
|
+
muted,
|
|
7106
|
+
wash: cvar("surface-2"),
|
|
7107
|
+
rule,
|
|
7108
|
+
hair,
|
|
7109
|
+
radius: a.radius,
|
|
7110
|
+
round: a.radius === "0" ? "0" : "999px",
|
|
7111
|
+
mono: a.mono,
|
|
7112
|
+
elevation: a.elevation,
|
|
7113
|
+
quick: a.quick,
|
|
7114
|
+
current: mark(a.current),
|
|
7115
|
+
press: mark(a.press),
|
|
7116
|
+
hover: mark(a.hover),
|
|
7117
|
+
danger,
|
|
7118
|
+
tone: (name, part) => `var(--${p}-${name}-${part})`,
|
|
7119
|
+
tones,
|
|
7120
|
+
})}
|
|
6545
7121
|
@media (max-width:959px){${page} .${p}-shell-body{padding:1.25rem 1.25rem 3rem}}
|
|
6546
7122
|
@media (prefers-reduced-motion:reduce){${side},.${p}-shell-brand,.${p}-shell-fold,${doc} a,${group} summary,${group} summary::after,${group}::details-content,${group} ${link},${car},.${p}-chrome-link,.${p}-btn,.${p}-input,.${p}-switch-track,.${p}-switch-thumb{transition:none}${page} ~ ${page},.${p}-shell ${page}${page}[data-${p}-replacing],.${p}-shell ${page}${page}[data-${p}-leaving]{animation:none}}
|
|
6547
7123
|
`;
|
|
@@ -6572,6 +7148,840 @@ const asAppearance = (value) => {
|
|
|
6572
7148
|
};
|
|
6573
7149
|
exports.asAppearance = asAppearance;
|
|
6574
7150
|
|
|
7151
|
+
},
|
|
7152
|
+
"src/Component/usecase/workbench.ts": function (module, exports, require) {
|
|
7153
|
+
"use strict";
|
|
7154
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7155
|
+
exports.statusLine = exports.codeInput = exports.rowList = exports.splitter = void 0;
|
|
7156
|
+
const plgg_1 = require("plgg");
|
|
7157
|
+
const plgg_view_1 = require("plgg-view");
|
|
7158
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
7159
|
+
const splitter = (props) => (0, plgg_view_1.el)("div", [
|
|
7160
|
+
(0, plgg_view_1.attr)("class", classHooks_1.splitterClass),
|
|
7161
|
+
(0, plgg_view_1.attr)("role", "separator"),
|
|
7162
|
+
(0, plgg_view_1.attr)("aria-orientation", props.orientation),
|
|
7163
|
+
(0, plgg_view_1.attr)("aria-label", props.label),
|
|
7164
|
+
], []);
|
|
7165
|
+
exports.splitter = splitter;
|
|
7166
|
+
const rowList = (props) => (0, plgg_view_1.el)("div", [
|
|
7167
|
+
(0, plgg_view_1.attr)("class", classHooks_1.rowsClass),
|
|
7168
|
+
(0, plgg_view_1.attr)("role", "listbox"),
|
|
7169
|
+
(0, plgg_view_1.attr)("aria-label", props.label),
|
|
7170
|
+
], props.rows.map((row) => (0, plgg_view_1.el)("div", [
|
|
7171
|
+
(0, plgg_view_1.attr)("class", classHooks_1.rowsRowClass),
|
|
7172
|
+
(0, plgg_view_1.attr)("role", "option"),
|
|
7173
|
+
(0, plgg_view_1.attr)("tabindex", "0"),
|
|
7174
|
+
(0, plgg_view_1.attr)("aria-selected", (0, plgg_1.matchOption)(() => false, (id) => id === row.id)(props.selected)
|
|
7175
|
+
? "true"
|
|
7176
|
+
: "false"),
|
|
7177
|
+
...(row.invalid
|
|
7178
|
+
? [(0, plgg_view_1.attr)("aria-invalid", "true")]
|
|
7179
|
+
: []),
|
|
7180
|
+
(0, plgg_view_1.onClick)(props.onSelect(row.id)),
|
|
7181
|
+
], [(0, plgg_view_1.text)(row.text)])));
|
|
7182
|
+
exports.rowList = rowList;
|
|
7183
|
+
const codeInput = (props) => (0, plgg_view_1.el)("textarea", [
|
|
7184
|
+
(0, plgg_view_1.attr)("class", classHooks_1.codeInputClass),
|
|
7185
|
+
(0, plgg_view_1.attr)("name", props.name),
|
|
7186
|
+
(0, plgg_view_1.attr)("aria-label", props.label),
|
|
7187
|
+
(0, plgg_view_1.attr)("spellcheck", "false"),
|
|
7188
|
+
(0, plgg_view_1.attr)("value", props.value),
|
|
7189
|
+
(0, plgg_view_1.onInput)(props.onInput),
|
|
7190
|
+
], [(0, plgg_view_1.text)(props.value)]);
|
|
7191
|
+
exports.codeInput = codeInput;
|
|
7192
|
+
const statusLine = (props) => (0, plgg_view_1.el)("output", [
|
|
7193
|
+
(0, plgg_view_1.attr)("class", classHooks_1.statusClass),
|
|
7194
|
+
(0, plgg_view_1.attr)("aria-live", "polite"),
|
|
7195
|
+
...((0, plgg_1.isSome)(props.tone)
|
|
7196
|
+
? [(0, plgg_view_1.attr)("data-error", "")]
|
|
7197
|
+
: []),
|
|
7198
|
+
], [(0, plgg_view_1.text)(props.text)]);
|
|
7199
|
+
exports.statusLine = statusLine;
|
|
7200
|
+
|
|
7201
|
+
},
|
|
7202
|
+
"src/Component/usecase/presenting.ts": function (module, exports, require) {
|
|
7203
|
+
"use strict";
|
|
7204
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7205
|
+
exports.preview = exports.swatches = exports.swatch = exports.split = exports.cluster = exports.exampleBox = void 0;
|
|
7206
|
+
const plgg_view_1 = require("plgg-view");
|
|
7207
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
7208
|
+
const workbench_1 = require("src/Component/usecase/workbench.ts");
|
|
7209
|
+
const exampleBox = (children) => (0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.exampleClass)], children.map((child) => (0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.exampleItemClass)], [child])));
|
|
7210
|
+
exports.exampleBox = exampleBox;
|
|
7211
|
+
const cluster = (children) => (0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.clusterClass)], children);
|
|
7212
|
+
exports.cluster = cluster;
|
|
7213
|
+
const split = (props) => (0, plgg_view_1.el)("div", [
|
|
7214
|
+
(0, plgg_view_1.attr)("class", classHooks_1.splitClass),
|
|
7215
|
+
(0, plgg_view_1.attr)("data-orientation", props.orientation),
|
|
7216
|
+
], [
|
|
7217
|
+
(0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.splitPaneClass)], props.first),
|
|
7218
|
+
(0, workbench_1.splitter)({
|
|
7219
|
+
label: props.label,
|
|
7220
|
+
orientation: props.orientation,
|
|
7221
|
+
}),
|
|
7222
|
+
(0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.splitPaneClass)], props.second),
|
|
7223
|
+
]);
|
|
7224
|
+
exports.split = split;
|
|
7225
|
+
const swatch = (props) => (0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.swatchClass)], [
|
|
7226
|
+
(0, plgg_view_1.el)("span", [
|
|
7227
|
+
(0, plgg_view_1.attr)("class", classHooks_1.swatchChipClass),
|
|
7228
|
+
(0, plgg_view_1.attr)("style", `background:${props.color}`),
|
|
7229
|
+
], []),
|
|
7230
|
+
(0, plgg_view_1.el)("strong", [], [(0, plgg_view_1.text)(props.name)]),
|
|
7231
|
+
(0, plgg_view_1.el)("code", [], [(0, plgg_view_1.text)(props.written)]),
|
|
7232
|
+
]);
|
|
7233
|
+
exports.swatch = swatch;
|
|
7234
|
+
const swatches = (items) => (0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.swatchesClass)], items.map((item) => (0, exports.swatch)(item)));
|
|
7235
|
+
exports.swatches = swatches;
|
|
7236
|
+
const preview = (props) => (0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.previewClass)], [
|
|
7237
|
+
(0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.previewBarClass)], [
|
|
7238
|
+
(0, plgg_view_1.el)("span", [], [(0, plgg_view_1.text)(props.title)]),
|
|
7239
|
+
(0, plgg_view_1.el)("a", [
|
|
7240
|
+
(0, plgg_view_1.attr)("href", props.src),
|
|
7241
|
+
(0, plgg_view_1.attr)("target", "_blank"),
|
|
7242
|
+
(0, plgg_view_1.attr)("rel", "noopener"),
|
|
7243
|
+
], [(0, plgg_view_1.text)(props.openLabel)]),
|
|
7244
|
+
]),
|
|
7245
|
+
(0, plgg_view_1.el)("iframe", [
|
|
7246
|
+
(0, plgg_view_1.attr)("src", props.src),
|
|
7247
|
+
(0, plgg_view_1.attr)("title", props.title),
|
|
7248
|
+
(0, plgg_view_1.attr)("loading", "lazy"),
|
|
7249
|
+
], []),
|
|
7250
|
+
]);
|
|
7251
|
+
exports.preview = preview;
|
|
7252
|
+
|
|
7253
|
+
},
|
|
7254
|
+
"src/Shell/usecase/siteCss.ts": function (module, exports, require) {
|
|
7255
|
+
"use strict";
|
|
7256
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7257
|
+
exports.siteCss = void 0;
|
|
7258
|
+
const styleEntry_1 = require("src/styleEntry.ts");
|
|
7259
|
+
const Shell_1 = require("src/Shell/index.ts");
|
|
7260
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
7261
|
+
const siteCss = (theme, a = Shell_1.monochrome) => {
|
|
7262
|
+
const cvar = (0, styleEntry_1.colorVar)(theme);
|
|
7263
|
+
const mvar = (0, styleEntry_1.metricVar)(theme);
|
|
7264
|
+
return `
|
|
7265
|
+
*{box-sizing:border-box}
|
|
7266
|
+
html{scroll-behavior:smooth}
|
|
7267
|
+
/* qmu: anchor jumps in the lg app shell scroll the content
|
|
7268
|
+
column, not the page; smooth-scroll must be set on both.
|
|
7269
|
+
The reduced-motion RESET of these is the shared UI
|
|
7270
|
+
reducedMotionCss (composed by shell). */
|
|
7271
|
+
main{scroll-behavior:smooth}
|
|
7272
|
+
/* the site's own motion: article/chrome link hover fades.
|
|
7273
|
+
Killed under reduced-motion here (the framework reset only
|
|
7274
|
+
resets its own scroll motion). */
|
|
7275
|
+
@media (prefers-reduced-motion:reduce){
|
|
7276
|
+
.${classHooks_1.siteBodyClass} a{transition:none}
|
|
7277
|
+
.${classHooks_1.docClass} a{transition:none}
|
|
7278
|
+
}
|
|
7279
|
+
body.${classHooks_1.siteBodyClass}{
|
|
7280
|
+
margin:0;
|
|
7281
|
+
font-family:${a.font};
|
|
7282
|
+
font-size:${a.size};line-height:${a.leading};
|
|
7283
|
+
color:${cvar("text")};
|
|
7284
|
+
background:${cvar("surface")};
|
|
7285
|
+
-webkit-font-smoothing:antialiased;
|
|
7286
|
+
}
|
|
7287
|
+
/* Chrome links carry no underline in any state (qmu:
|
|
7288
|
+
every hover affordance is the inverted pill; only
|
|
7289
|
+
article prose underlines, and only at rest). No generic
|
|
7290
|
+
a:hover rule - its (0,2,1) specificity silently beat
|
|
7291
|
+
the pill classes' (0,2,0) and re-underlined them. */
|
|
7292
|
+
:where(.${classHooks_1.siteBodyClass}) a{
|
|
7293
|
+
color:${cvar("primary-base")};
|
|
7294
|
+
text-decoration:none;
|
|
7295
|
+
}
|
|
7296
|
+
|
|
7297
|
+
/* ---- the column system ----------------------------------
|
|
7298
|
+
One frame, one strip, one column shape — the layout
|
|
7299
|
+
coop-planner and corpd share.
|
|
7300
|
+
FRAME .${classHooks_1.shellClass} is exactly the viewport, a flex column:
|
|
7301
|
+
the trail row (when more than one page is open)
|
|
7302
|
+
on top, the strip beneath taking the rest.
|
|
7303
|
+
STRIP .${classHooks_1.siteStripClass} scrolls HORIZONTALLY as columns open;
|
|
7304
|
+
nothing bounds its width.
|
|
7305
|
+
COLUMN every column — sections, drilled section, page —
|
|
7306
|
+
is the same thing: a fixed-height head bar that
|
|
7307
|
+
names it, and a body that scrolls VERTICALLY on
|
|
7308
|
+
its own. One hairline on its right edge is the
|
|
7309
|
+
only separator; there is no gap.
|
|
7310
|
+
Widths are declared once, here. */
|
|
7311
|
+
.${classHooks_1.siteStripClass}{scroll-padding-right:${mvar("rail")}}
|
|
7312
|
+
.${classHooks_1.siteSectionClass}{width:15rem}
|
|
7313
|
+
.${classHooks_1.shellPageClass}{
|
|
7314
|
+
width:min(
|
|
7315
|
+
clamp(40rem,45vw,calc(${mvar("measure")} + 4rem)),
|
|
7316
|
+
100vw
|
|
7317
|
+
);
|
|
7318
|
+
}
|
|
7319
|
+
.${classHooks_1.siteSectionClass} .${classHooks_1.shellBodyClass}{
|
|
7320
|
+
padding:0;font-size:0.875rem;
|
|
7321
|
+
}
|
|
7322
|
+
/* the phone bar and the drawer are the kit's; a site
|
|
7323
|
+
adds the appearance toggle and the social links to the
|
|
7324
|
+
bar */
|
|
7325
|
+
.${classHooks_1.shellBarClass} .${styleEntry_1.themeToggleClass}{margin-left:0.4rem}
|
|
7326
|
+
.${classHooks_1.siteMainClass}{display:block}
|
|
7327
|
+
/* below sm (qmu's 639px block): the prose headings render
|
|
7328
|
+
oversized relative to the phone column; scale them down.
|
|
7329
|
+
Body text keeps its base size. */
|
|
7330
|
+
@media ${(0, styleEntry_1.maxWidth)("sm")}{
|
|
7331
|
+
.${classHooks_1.docClass} h1{font-size:1.25rem}
|
|
7332
|
+
}
|
|
7333
|
+
|
|
7334
|
+
@media ${(0, styleEntry_1.minWidth)("lg")}{
|
|
7335
|
+
/* pages of a fixed width do not share the room, so the
|
|
7336
|
+
sidebar scrolls away with the strip as it always did */
|
|
7337
|
+
.${classHooks_1.siteStripClass}:not(.${classHooks_1.shareClass}) .${classHooks_1.shellSideClass}{position:static}
|
|
7338
|
+
.${classHooks_1.siteStripClass}:not(.${classHooks_1.shareClass}){scroll-padding-left:0}
|
|
7339
|
+
}
|
|
7340
|
+
|
|
7341
|
+
/* below lg the kit turns the sidebar into a drawer under
|
|
7342
|
+
a bar; what is the site's own there: no rail, no
|
|
7343
|
+
drilled section column (the drawer carries it), and a
|
|
7344
|
+
fixed-width page takes the whole window. */
|
|
7345
|
+
@media ${(0, styleEntry_1.maxWidth)("lg")}{
|
|
7346
|
+
.${classHooks_1.siteSectionClass}{display:none}
|
|
7347
|
+
.${classHooks_1.shellPageClass}{width:100vw}
|
|
7348
|
+
.${classHooks_1.shellPageClass} .${classHooks_1.shellBodyClass}{
|
|
7349
|
+
padding:1.25rem 1.25rem 3rem;
|
|
7350
|
+
}
|
|
7351
|
+
.${classHooks_1.docClass}{max-width:100%}
|
|
7352
|
+
.${classHooks_1.docClass} pre{max-width:100%}
|
|
7353
|
+
}
|
|
7354
|
+
@media(min-width:1024px) and (max-width:1099px){
|
|
7355
|
+
.${classHooks_1.shellClass}:has(.${classHooks_1.figurePageClass}) .${classHooks_1.shellBarClass}{display:flex}
|
|
7356
|
+
.${classHooks_1.shellClass}:has(.${classHooks_1.figurePageClass}) .${classHooks_1.shellMenuButtonClass}{display:inline-block}
|
|
7357
|
+
.${classHooks_1.siteStripClass}:has(.${classHooks_1.figurePageClass}) :is(.${classHooks_1.siteSectionClass},.${classHooks_1.shellRailClass}){display:none}
|
|
7358
|
+
.${classHooks_1.siteStripClass}:has(.${classHooks_1.figurePageClass}) .${classHooks_1.shellSideClass}{position:fixed;inset:0 auto 0 0;z-index:50;background:${cvar("surface")};transform:translateX(-100%)}
|
|
7359
|
+
.${classHooks_1.shellMenuClass}:checked ~ .${classHooks_1.siteStripClass}:has(.${classHooks_1.figurePageClass}) .${classHooks_1.shellSideClass}{transform:translateX(0)}
|
|
7360
|
+
.${classHooks_1.shellMenuClass}:checked ~ .${classHooks_1.shellBackdropClass}{display:block}
|
|
7361
|
+
}
|
|
7362
|
+
.${classHooks_1.figurePageClass}{color-scheme:light}
|
|
7363
|
+
html.dark .${classHooks_1.figurePageClass}{color-scheme:dark}
|
|
7364
|
+
.${classHooks_1.siteDrawerNoteClass},.${classHooks_1.siteBarNoteClass}{display:none}
|
|
7365
|
+
@media(max-width:759px),(orientation:landscape) and (max-height:499px){
|
|
7366
|
+
.${classHooks_1.shellClass}:has(.${classHooks_1.figurePageClass}){height:100dvh;box-sizing:border-box;overflow:hidden;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
|
|
7367
|
+
.${classHooks_1.shellClass}:has(.${classHooks_1.figurePageClass}) .${classHooks_1.shellBarClass}{height:48px;flex:none;box-sizing:border-box;padding-inline:0 12px}
|
|
7368
|
+
.${classHooks_1.shellClass}:has(.${classHooks_1.figurePageClass}) .${classHooks_1.shellMenuButtonClass}{background-size:22px 2px;background-position:12px calc(50% - 6px),12px center,12px calc(50% + 6px)}
|
|
7369
|
+
.${classHooks_1.shellClass}:has(.${classHooks_1.figurePageClass}) .${classHooks_1.shellBarClass} :is(label,button){min-width:44px;min-height:44px}
|
|
7370
|
+
.${classHooks_1.figurePageClass} .${classHooks_1.shellHeadClass}{display:none}
|
|
7371
|
+
.${classHooks_1.shellClass}:has(.${classHooks_1.figurePageClass}) .${classHooks_1.siteBarHomeClass}{display:block;flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:20px}
|
|
7372
|
+
.${classHooks_1.siteBarNoteClass}{display:block;font-size:12px;line-height:14px;height:14px;overflow:hidden;white-space:normal;color:${cvar("muted")}}
|
|
7373
|
+
.${classHooks_1.siteBarNoteClass} span{display:inline-block;width:max-content}
|
|
7374
|
+
.${classHooks_1.siteBarNoteClass}[data-overflow]{height:0;visibility:hidden}
|
|
7375
|
+
.${classHooks_1.shellClass}:has(.${classHooks_1.figurePageClass}) .${styleEntry_1.sidebarNavClass.link}{min-height:44px;box-sizing:border-box}
|
|
7376
|
+
.${classHooks_1.siteDrawerNoteClass}{display:block;padding:0 1rem}
|
|
7377
|
+
.${classHooks_1.siteStripClass}:has(.${classHooks_1.figurePageClass}){scrollbar-width:none}
|
|
7378
|
+
}
|
|
7379
|
+
@media(orientation:landscape) and (max-height:499px){
|
|
7380
|
+
.${classHooks_1.shellClass}:has(.${classHooks_1.figurePageClass}) .${classHooks_1.shellBarClass}{height:40px}
|
|
7381
|
+
}
|
|
7382
|
+
.${classHooks_1.docClass} [data-island]{display:block;margin:1.25rem 0}
|
|
7383
|
+
::selection{
|
|
7384
|
+
background:${cvar("text")};
|
|
7385
|
+
color:${cvar("surface")};
|
|
7386
|
+
}
|
|
7387
|
+
|
|
7388
|
+
/* the sheet page (one figure filling its column) is the
|
|
7389
|
+
kit's figure page; nothing of it is declared here */
|
|
7390
|
+
/* pages that share the width need no row naming them: each
|
|
7391
|
+
one's own head does, and its close control is there */
|
|
7392
|
+
.${classHooks_1.shellClass}:has(.${classHooks_1.siteFillClass}) ${(0, styleEntry_1.selector)(classHooks_1.trailClass)}{display:none}
|
|
7393
|
+
@media (prefers-reduced-motion:reduce){
|
|
7394
|
+
.${classHooks_1.shellSideClass}{transition:none}
|
|
7395
|
+
}
|
|
7396
|
+
`;
|
|
7397
|
+
};
|
|
7398
|
+
exports.siteCss = siteCss;
|
|
7399
|
+
|
|
7400
|
+
},
|
|
7401
|
+
"src/Component/usecase/display.ts": function (module, exports, require) {
|
|
7402
|
+
"use strict";
|
|
7403
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7404
|
+
exports.itemList = exports.emptyState = exports.codeBlock = exports.avatar = exports.divider = exports.descList = exports.dataTable = exports.card = exports.tag = exports.badge = void 0;
|
|
7405
|
+
const plgg_1 = require("plgg");
|
|
7406
|
+
const plgg_view_1 = require("plgg-view");
|
|
7407
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
7408
|
+
const badge = (props) => (0, plgg_view_1.el)("span", [
|
|
7409
|
+
(0, plgg_view_1.attr)("class", (0, plgg_1.matchOption)(() => classHooks_1.badgeClass, (tone) => `${classHooks_1.badgeClass} ${(0, classHooks_1.badgeToneClass)(tone)}`)(props.tone)),
|
|
7410
|
+
], [(0, plgg_view_1.text)(props.label)]);
|
|
7411
|
+
exports.badge = badge;
|
|
7412
|
+
const tag = (props) => (0, plgg_view_1.el)("span", [(0, plgg_view_1.attr)("class", classHooks_1.tagClass)], [
|
|
7413
|
+
(0, plgg_view_1.text)(props.label),
|
|
7414
|
+
...(0, plgg_1.matchOption)(() => [], (remove) => [
|
|
7415
|
+
(0, plgg_view_1.el)("button", [
|
|
7416
|
+
(0, plgg_view_1.attr)("type", "button"),
|
|
7417
|
+
(0, plgg_view_1.attr)("class", classHooks_1.tagRemoveClass),
|
|
7418
|
+
(0, plgg_view_1.attr)("aria-label", `${props.label}のタグを外す`),
|
|
7419
|
+
(0, plgg_view_1.onClick)(remove),
|
|
7420
|
+
], [(0, plgg_view_1.text)("×")]),
|
|
7421
|
+
])(props.onRemove),
|
|
7422
|
+
]);
|
|
7423
|
+
exports.tag = tag;
|
|
7424
|
+
const card = (props) => (0, plgg_view_1.el)("section", [(0, plgg_view_1.attr)("class", classHooks_1.cardClass)], [
|
|
7425
|
+
...(0, plgg_1.matchOption)(() => [], (title) => [
|
|
7426
|
+
(0, plgg_view_1.el)("header", [(0, plgg_view_1.attr)("class", classHooks_1.cardHeadClass)], [(0, plgg_view_1.text)(title)]),
|
|
7427
|
+
])(props.title),
|
|
7428
|
+
(0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.cardBodyClass)], props.body),
|
|
7429
|
+
...(props.foot.length === 0
|
|
7430
|
+
? []
|
|
7431
|
+
: [
|
|
7432
|
+
(0, plgg_view_1.el)("footer", [(0, plgg_view_1.attr)("class", classHooks_1.cardFootClass)], props.foot),
|
|
7433
|
+
]),
|
|
7434
|
+
]);
|
|
7435
|
+
exports.card = card;
|
|
7436
|
+
const cellAttrs = (columns, i) => columns.some((c, at) => at === i && c.numeric)
|
|
7437
|
+
? [(0, plgg_view_1.attr)("class", classHooks_1.numericClass)]
|
|
7438
|
+
: [];
|
|
7439
|
+
const dataTable = (props) => (0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.tableWrapClass)], [
|
|
7440
|
+
(0, plgg_view_1.el)("table", [
|
|
7441
|
+
(0, plgg_view_1.attr)("class", classHooks_1.tableClass),
|
|
7442
|
+
(0, plgg_view_1.attr)("aria-label", props.caption),
|
|
7443
|
+
], [
|
|
7444
|
+
(0, plgg_view_1.el)("thead", [], [
|
|
7445
|
+
(0, plgg_view_1.el)("tr", [], props.columns.map((c, i) => (0, plgg_view_1.el)("th", [
|
|
7446
|
+
(0, plgg_view_1.attr)("scope", "col"),
|
|
7447
|
+
...cellAttrs(props.columns, i),
|
|
7448
|
+
], [(0, plgg_view_1.text)(c.label)]))),
|
|
7449
|
+
]),
|
|
7450
|
+
(0, plgg_view_1.el)("tbody", [], props.rows.map((cells) => (0, plgg_view_1.el)("tr", [], cells.map((cell, i) => (0, plgg_view_1.el)("td", cellAttrs(props.columns, i), [cell]))))),
|
|
7451
|
+
]),
|
|
7452
|
+
]);
|
|
7453
|
+
exports.dataTable = dataTable;
|
|
7454
|
+
const descList = (items) => (0, plgg_view_1.el)("dl", [(0, plgg_view_1.attr)("class", classHooks_1.descClass)], items.flatMap((item) => [
|
|
7455
|
+
(0, plgg_view_1.el)("dt", [], [(0, plgg_view_1.text)(item.term)]),
|
|
7456
|
+
(0, plgg_view_1.el)("dd", [], item.value),
|
|
7457
|
+
]));
|
|
7458
|
+
exports.descList = descList;
|
|
7459
|
+
const divider = () => (0, plgg_view_1.el)("hr", [(0, plgg_view_1.attr)("class", classHooks_1.dividerClass)], []);
|
|
7460
|
+
exports.divider = divider;
|
|
7461
|
+
const avatar = (name) => (0, plgg_view_1.el)("span", [
|
|
7462
|
+
(0, plgg_view_1.attr)("class", classHooks_1.avatarClass),
|
|
7463
|
+
(0, plgg_view_1.attr)("role", "img"),
|
|
7464
|
+
(0, plgg_view_1.attr)("aria-label", name),
|
|
7465
|
+
], [(0, plgg_view_1.text)([...name.trim()].slice(0, 1).join(""))]);
|
|
7466
|
+
exports.avatar = avatar;
|
|
7467
|
+
const codeBlock = (source) => (0, plgg_view_1.el)("pre", [(0, plgg_view_1.attr)("class", classHooks_1.codeBlockClass)], [(0, plgg_view_1.el)("code", [], [(0, plgg_view_1.text)(source)])]);
|
|
7468
|
+
exports.codeBlock = codeBlock;
|
|
7469
|
+
const emptyState = (props) => (0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.emptyClass)], [
|
|
7470
|
+
(0, plgg_view_1.el)("p", [(0, plgg_view_1.attr)("class", classHooks_1.emptyTitleClass)], [(0, plgg_view_1.text)(props.title)]),
|
|
7471
|
+
(0, plgg_view_1.el)("p", [], [(0, plgg_view_1.text)(props.hint)]),
|
|
7472
|
+
...props.action,
|
|
7473
|
+
]);
|
|
7474
|
+
exports.emptyState = emptyState;
|
|
7475
|
+
const itemList = (items) => (0, plgg_view_1.el)("ul", [(0, plgg_view_1.attr)("class", classHooks_1.itemsClass)], items.map((item) => (0, plgg_view_1.el)("li", [(0, plgg_view_1.attr)("class", classHooks_1.itemsRowClass)], [
|
|
7476
|
+
(0, plgg_view_1.el)("div", [], [
|
|
7477
|
+
(0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.itemsTitleClass)], [(0, plgg_view_1.text)(item.title)]),
|
|
7478
|
+
...(0, plgg_1.matchOption)(() => [], (note) => [
|
|
7479
|
+
(0, plgg_view_1.el)("div", [
|
|
7480
|
+
(0, plgg_view_1.attr)("class", classHooks_1.itemsNoteClass),
|
|
7481
|
+
], [(0, plgg_view_1.text)(note)]),
|
|
7482
|
+
])(item.note),
|
|
7483
|
+
]),
|
|
7484
|
+
(0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.itemsTrailClass)], item.trailing),
|
|
7485
|
+
])));
|
|
7486
|
+
exports.itemList = itemList;
|
|
7487
|
+
|
|
7488
|
+
},
|
|
7489
|
+
"src/Component/usecase/feedback.ts": function (module, exports, require) {
|
|
7490
|
+
"use strict";
|
|
7491
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7492
|
+
exports.tooltip = exports.skeleton = exports.spinner = exports.progress = exports.alert = void 0;
|
|
7493
|
+
const plgg_1 = require("plgg");
|
|
7494
|
+
const plgg_view_1 = require("plgg-view");
|
|
7495
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
7496
|
+
const alert = (props) => (0, plgg_view_1.el)("div", [
|
|
7497
|
+
(0, plgg_view_1.attr)("class", `${classHooks_1.alertClass} ${(0, classHooks_1.alertToneClass)(props.tone)}`),
|
|
7498
|
+
(0, plgg_view_1.attr)("role", props.tone === "danger"
|
|
7499
|
+
? "alert"
|
|
7500
|
+
: "status"),
|
|
7501
|
+
], [
|
|
7502
|
+
...(0, plgg_1.matchOption)(() => [], (title) => [
|
|
7503
|
+
(0, plgg_view_1.el)("p", [(0, plgg_view_1.attr)("class", classHooks_1.alertTitleClass)], [(0, plgg_view_1.text)(title)]),
|
|
7504
|
+
])(props.title),
|
|
7505
|
+
...props.body,
|
|
7506
|
+
]);
|
|
7507
|
+
exports.alert = alert;
|
|
7508
|
+
const percent = (share) => Math.round(Math.min(1, Math.max(0, share)) * 100);
|
|
7509
|
+
const progress = (props) => (0, plgg_view_1.el)("div", [
|
|
7510
|
+
(0, plgg_view_1.attr)("class", classHooks_1.progressClass),
|
|
7511
|
+
(0, plgg_view_1.attr)("role", "progressbar"),
|
|
7512
|
+
(0, plgg_view_1.attr)("aria-label", props.label),
|
|
7513
|
+
...(0, plgg_1.matchOption)(() => [(0, plgg_view_1.attr)(classHooks_1.busyAttr, "")], (share) => [
|
|
7514
|
+
(0, plgg_view_1.attr)("aria-valuemin", "0"),
|
|
7515
|
+
(0, plgg_view_1.attr)("aria-valuemax", "100"),
|
|
7516
|
+
(0, plgg_view_1.attr)("aria-valuenow", String(percent(share))),
|
|
7517
|
+
])(props.share),
|
|
7518
|
+
], [
|
|
7519
|
+
(0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.progressTrackClass)], [
|
|
7520
|
+
(0, plgg_view_1.el)("div", [
|
|
7521
|
+
(0, plgg_view_1.attr)("class", classHooks_1.progressBarClass),
|
|
7522
|
+
...(0, plgg_1.matchOption)(() => [], (share) => [
|
|
7523
|
+
(0, plgg_view_1.attr)("style", `width:${percent(share)}%`),
|
|
7524
|
+
])(props.share),
|
|
7525
|
+
], []),
|
|
7526
|
+
]),
|
|
7527
|
+
]);
|
|
7528
|
+
exports.progress = progress;
|
|
7529
|
+
const spinner = (label) => (0, plgg_view_1.el)("span", [
|
|
7530
|
+
(0, plgg_view_1.attr)("class", classHooks_1.spinnerClass),
|
|
7531
|
+
(0, plgg_view_1.attr)("role", "status"),
|
|
7532
|
+
], [
|
|
7533
|
+
(0, plgg_view_1.el)("span", [
|
|
7534
|
+
(0, plgg_view_1.attr)("class", classHooks_1.spinnerMarkClass),
|
|
7535
|
+
(0, plgg_view_1.attr)("aria-hidden", "true"),
|
|
7536
|
+
], []),
|
|
7537
|
+
(0, plgg_view_1.text)(label),
|
|
7538
|
+
]);
|
|
7539
|
+
exports.spinner = spinner;
|
|
7540
|
+
const skeleton = (lines) => (0, plgg_view_1.el)("div", [
|
|
7541
|
+
(0, plgg_view_1.attr)("class", classHooks_1.skeletonClass),
|
|
7542
|
+
(0, plgg_view_1.attr)("aria-hidden", "true"),
|
|
7543
|
+
], Array.from({ length: Math.max(1, Math.round(lines)) }, () => (0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.skeletonLineClass)], [])));
|
|
7544
|
+
exports.skeleton = skeleton;
|
|
7545
|
+
const tooltip = (props) => (0, plgg_view_1.el)("span", [
|
|
7546
|
+
(0, plgg_view_1.attr)("class", classHooks_1.tipClass),
|
|
7547
|
+
(0, plgg_view_1.attr)(classHooks_1.tipAttr, props.tip),
|
|
7548
|
+
(0, plgg_view_1.attr)("aria-description", props.tip),
|
|
7549
|
+
(0, plgg_view_1.attr)("tabindex", "0"),
|
|
7550
|
+
], props.children);
|
|
7551
|
+
exports.tooltip = tooltip;
|
|
7552
|
+
|
|
7553
|
+
},
|
|
7554
|
+
"src/Component/usecase/navigation.ts": function (module, exports, require) {
|
|
7555
|
+
"use strict";
|
|
7556
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7557
|
+
exports.toolbar = exports.toolGroup = exports.toolButton = exports.popover = exports.floatingIconButton = exports.iconButton = exports.menuButton = exports.accordion = exports.steps = exports.pagination = exports.pageNumbers = exports.tabs = void 0;
|
|
7558
|
+
const plgg_1 = require("plgg");
|
|
7559
|
+
const plgg_view_1 = require("plgg-view");
|
|
7560
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
7561
|
+
const tabs = (props) => (0, plgg_view_1.el)("div", [
|
|
7562
|
+
(0, plgg_view_1.attr)("class", classHooks_1.tabsClass),
|
|
7563
|
+
(0, plgg_view_1.attr)("role", "tablist"),
|
|
7564
|
+
(0, plgg_view_1.attr)("aria-label", props.label),
|
|
7565
|
+
], props.items.map((item) => (0, plgg_view_1.el)("button", [
|
|
7566
|
+
(0, plgg_view_1.attr)("type", "button"),
|
|
7567
|
+
(0, plgg_view_1.attr)("class", classHooks_1.tabClass),
|
|
7568
|
+
(0, plgg_view_1.attr)("role", "tab"),
|
|
7569
|
+
(0, plgg_view_1.attr)("aria-selected", item.id === props.current
|
|
7570
|
+
? "true"
|
|
7571
|
+
: "false"),
|
|
7572
|
+
(0, plgg_view_1.onClick)(props.onSelect(item.id)),
|
|
7573
|
+
], [(0, plgg_view_1.text)(item.label)])));
|
|
7574
|
+
exports.tabs = tabs;
|
|
7575
|
+
const pageNumbers = (page, pages) => Array.from({ length: Math.max(0, pages) }, (_, i) => i + 1)
|
|
7576
|
+
.filter((n) => n === 1 ||
|
|
7577
|
+
n === pages ||
|
|
7578
|
+
Math.abs(n - page) <= 1)
|
|
7579
|
+
.flatMap((n, i, shown) => i > 0 &&
|
|
7580
|
+
shown.some((before, at) => at === i - 1 && n - before > 1)
|
|
7581
|
+
? [0, n]
|
|
7582
|
+
: [n]);
|
|
7583
|
+
exports.pageNumbers = pageNumbers;
|
|
7584
|
+
const step = (props, to, glyph, name) => (0, plgg_view_1.el)("button", [
|
|
7585
|
+
(0, plgg_view_1.attr)("type", "button"),
|
|
7586
|
+
(0, plgg_view_1.attr)("class", classHooks_1.pagerItemClass),
|
|
7587
|
+
(0, plgg_view_1.attr)("aria-label", name),
|
|
7588
|
+
...(to < 1 || to > props.pages
|
|
7589
|
+
? [(0, plgg_view_1.attr)("disabled", "")]
|
|
7590
|
+
: [(0, plgg_view_1.onClick)(props.onGo(to))]),
|
|
7591
|
+
], [(0, plgg_view_1.text)(glyph)]);
|
|
7592
|
+
const pagination = (props) => (0, plgg_view_1.el)("nav", [
|
|
7593
|
+
(0, plgg_view_1.attr)("class", classHooks_1.pagerClass),
|
|
7594
|
+
(0, plgg_view_1.attr)("aria-label", props.label),
|
|
7595
|
+
], [
|
|
7596
|
+
step(props, props.page - 1, "‹", "前のページ"),
|
|
7597
|
+
...(0, exports.pageNumbers)(props.page, props.pages).map((n) => n === 0
|
|
7598
|
+
? (0, plgg_view_1.el)("span", [(0, plgg_view_1.attr)("aria-hidden", "true")], [(0, plgg_view_1.text)("…")])
|
|
7599
|
+
: (0, plgg_view_1.el)("button", [
|
|
7600
|
+
(0, plgg_view_1.attr)("type", "button"),
|
|
7601
|
+
(0, plgg_view_1.attr)("class", classHooks_1.pagerItemClass),
|
|
7602
|
+
...(n === props.page
|
|
7603
|
+
? [
|
|
7604
|
+
(0, plgg_view_1.attr)("aria-current", "page"),
|
|
7605
|
+
]
|
|
7606
|
+
: [(0, plgg_view_1.onClick)(props.onGo(n))]),
|
|
7607
|
+
], [(0, plgg_view_1.text)(String(n))])),
|
|
7608
|
+
step(props, props.page + 1, "›", "次のページ"),
|
|
7609
|
+
]);
|
|
7610
|
+
exports.pagination = pagination;
|
|
7611
|
+
const steps = (props) => (0, plgg_view_1.el)("ol", [
|
|
7612
|
+
(0, plgg_view_1.attr)("class", classHooks_1.stepsClass),
|
|
7613
|
+
(0, plgg_view_1.attr)("aria-label", props.label),
|
|
7614
|
+
], props.items.map((name, i) => (0, plgg_view_1.el)("li", [
|
|
7615
|
+
(0, plgg_view_1.attr)("class", classHooks_1.stepClass),
|
|
7616
|
+
...(i === props.current
|
|
7617
|
+
? [(0, plgg_view_1.attr)("aria-current", "step")]
|
|
7618
|
+
: i < props.current
|
|
7619
|
+
? [(0, plgg_view_1.attr)("data-done", "")]
|
|
7620
|
+
: []),
|
|
7621
|
+
], [(0, plgg_view_1.text)(name)])));
|
|
7622
|
+
exports.steps = steps;
|
|
7623
|
+
const accordion = (items) => (0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.accordionClass)], items.map((item) => (0, plgg_view_1.el)("details", [
|
|
7624
|
+
(0, plgg_view_1.attr)("class", classHooks_1.accordionItemClass),
|
|
7625
|
+
...(item.open
|
|
7626
|
+
? [(0, plgg_view_1.attr)("open", "")]
|
|
7627
|
+
: []),
|
|
7628
|
+
], [
|
|
7629
|
+
(0, plgg_view_1.el)("summary", [], [(0, plgg_view_1.text)(item.title)]),
|
|
7630
|
+
(0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.accordionBodyClass)], item.body),
|
|
7631
|
+
])));
|
|
7632
|
+
exports.accordion = accordion;
|
|
7633
|
+
const menuButton = (props) => (0, plgg_view_1.el)("details", [(0, plgg_view_1.attr)("class", classHooks_1.menuButtonClass)], [
|
|
7634
|
+
(0, plgg_view_1.el)("summary", [], [(0, plgg_view_1.text)(props.label)]),
|
|
7635
|
+
(0, plgg_view_1.el)("div", [
|
|
7636
|
+
(0, plgg_view_1.attr)("class", classHooks_1.menuListClass),
|
|
7637
|
+
(0, plgg_view_1.attr)("role", "menu"),
|
|
7638
|
+
], props.items.map((item) => (0, plgg_view_1.el)("button", [
|
|
7639
|
+
(0, plgg_view_1.attr)("type", "button"),
|
|
7640
|
+
(0, plgg_view_1.attr)("class", classHooks_1.menuItemClass),
|
|
7641
|
+
(0, plgg_view_1.attr)("role", "menuitem"),
|
|
7642
|
+
...(item.danger
|
|
7643
|
+
? [(0, plgg_view_1.attr)("data-danger", "")]
|
|
7644
|
+
: []),
|
|
7645
|
+
(0, plgg_view_1.onClick)(item.onPress),
|
|
7646
|
+
], [(0, plgg_view_1.text)(item.label)]))),
|
|
7647
|
+
]);
|
|
7648
|
+
exports.menuButton = menuButton;
|
|
7649
|
+
const iconButton = (props) => (0, plgg_view_1.el)("button", [
|
|
7650
|
+
(0, plgg_view_1.attr)("type", "button"),
|
|
7651
|
+
(0, plgg_view_1.attr)("class", classHooks_1.iconButtonClass),
|
|
7652
|
+
(0, plgg_view_1.attr)("aria-label", props.label),
|
|
7653
|
+
...(props.disabled
|
|
7654
|
+
? [(0, plgg_view_1.attr)("disabled", "")]
|
|
7655
|
+
: [(0, plgg_view_1.onClick)(props.onPress)]),
|
|
7656
|
+
], [
|
|
7657
|
+
(0, plgg_view_1.el)("span", [(0, plgg_view_1.attr)("aria-hidden", "true")], [(0, plgg_view_1.text)(props.glyph)]),
|
|
7658
|
+
]);
|
|
7659
|
+
exports.iconButton = iconButton;
|
|
7660
|
+
const floatingIconButton = (props) => (0, plgg_view_1.el)("button", [
|
|
7661
|
+
(0, plgg_view_1.attr)("type", "button"),
|
|
7662
|
+
(0, plgg_view_1.attr)("class", `${classHooks_1.iconButtonClass} ${classHooks_1.iconButtonRoundClass}`),
|
|
7663
|
+
(0, plgg_view_1.attr)("aria-label", props.label),
|
|
7664
|
+
...(props.disabled
|
|
7665
|
+
? [(0, plgg_view_1.attr)("disabled", "")]
|
|
7666
|
+
: [(0, plgg_view_1.onClick)(props.onPress)]),
|
|
7667
|
+
], [
|
|
7668
|
+
(0, plgg_view_1.el)("span", [(0, plgg_view_1.attr)("aria-hidden", "true")], [(0, plgg_view_1.text)(props.glyph)]),
|
|
7669
|
+
]);
|
|
7670
|
+
exports.floatingIconButton = floatingIconButton;
|
|
7671
|
+
const popover = (props) => (0, plgg_view_1.el)("details", [(0, plgg_view_1.attr)("class", classHooks_1.popoverClass)], [
|
|
7672
|
+
(0, plgg_view_1.el)("summary", [], [(0, plgg_view_1.text)(props.label)]),
|
|
7673
|
+
(0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.popoverBodyClass)], props.body),
|
|
7674
|
+
]);
|
|
7675
|
+
exports.popover = popover;
|
|
7676
|
+
const toolButton = (props) => (0, plgg_view_1.el)("button", [
|
|
7677
|
+
(0, plgg_view_1.attr)("type", "button"),
|
|
7678
|
+
(0, plgg_view_1.attr)("class", (0, plgg_1.isSome)(props.glyph)
|
|
7679
|
+
? `${classHooks_1.toolClass} ${classHooks_1.toolIconClass}`
|
|
7680
|
+
: classHooks_1.toolClass),
|
|
7681
|
+
...((0, plgg_1.isSome)(props.glyph)
|
|
7682
|
+
? [(0, plgg_view_1.attr)("aria-label", props.label)]
|
|
7683
|
+
: []),
|
|
7684
|
+
...(0, plgg_1.matchOption)(() => [], (on) => [
|
|
7685
|
+
(0, plgg_view_1.attr)("aria-pressed", on ? "true" : "false"),
|
|
7686
|
+
])(props.pressed),
|
|
7687
|
+
...(props.disabled
|
|
7688
|
+
? [(0, plgg_view_1.attr)("disabled", "")]
|
|
7689
|
+
: [(0, plgg_view_1.onClick)(props.onPress)]),
|
|
7690
|
+
], [
|
|
7691
|
+
(0, plgg_1.matchOption)(() => (0, plgg_view_1.text)(props.label), (glyph) => (0, plgg_view_1.el)("span", [(0, plgg_view_1.attr)("aria-hidden", "true")], [(0, plgg_view_1.text)(glyph)]))(props.glyph),
|
|
7692
|
+
]);
|
|
7693
|
+
exports.toolButton = toolButton;
|
|
7694
|
+
const toolGroup = (props) => (0, plgg_view_1.el)("div", [
|
|
7695
|
+
(0, plgg_view_1.attr)("class", classHooks_1.toolGroupClass),
|
|
7696
|
+
(0, plgg_view_1.attr)("role", "group"),
|
|
7697
|
+
(0, plgg_view_1.attr)("aria-label", props.label),
|
|
7698
|
+
], props.items);
|
|
7699
|
+
exports.toolGroup = toolGroup;
|
|
7700
|
+
const toolbar = (props) => (0, plgg_view_1.el)("div", [
|
|
7701
|
+
(0, plgg_view_1.attr)("class", classHooks_1.toolbarClass),
|
|
7702
|
+
(0, plgg_view_1.attr)("role", "toolbar"),
|
|
7703
|
+
(0, plgg_view_1.attr)("aria-label", props.label),
|
|
7704
|
+
], props.items);
|
|
7705
|
+
exports.toolbar = toolbar;
|
|
7706
|
+
|
|
7707
|
+
},
|
|
7708
|
+
"src/Component/usecase/choices.ts": function (module, exports, require) {
|
|
7709
|
+
"use strict";
|
|
7710
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7711
|
+
exports.toggled = exports.checkGroup = exports.suggestInput = exports.fileInput = exports.slider = exports.searchField = exports.dateInput = exports.numberInput = exports.segmented = exports.radioGroup = void 0;
|
|
7712
|
+
const plgg_1 = require("plgg");
|
|
7713
|
+
const plgg_view_1 = require("plgg-view");
|
|
7714
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
7715
|
+
const controlParts_1 = require("src/Form/usecase/controlParts.ts");
|
|
7716
|
+
const radioGroup = (props) => (0, plgg_view_1.el)("fieldset", [(0, plgg_view_1.attr)("class", classHooks_1.radiosClass)], [
|
|
7717
|
+
(0, plgg_view_1.el)("legend", [(0, plgg_view_1.attr)("class", classHooks_1.fieldLabelClass)], [(0, plgg_view_1.text)(props.label)]),
|
|
7718
|
+
...props.options.map((option) => (0, plgg_view_1.el)("label", [(0, plgg_view_1.attr)("class", classHooks_1.radioClass)], [
|
|
7719
|
+
(0, plgg_view_1.el)("input", [
|
|
7720
|
+
(0, plgg_view_1.attr)("type", "radio"),
|
|
7721
|
+
(0, plgg_view_1.attr)("name", props.name),
|
|
7722
|
+
(0, plgg_view_1.attr)("value", option.id),
|
|
7723
|
+
...(option.id === props.value
|
|
7724
|
+
? [(0, plgg_view_1.attr)("checked", "")]
|
|
7725
|
+
: []),
|
|
7726
|
+
(0, plgg_view_1.onChange)(props.onChange),
|
|
7727
|
+
], []),
|
|
7728
|
+
(0, plgg_view_1.el)("span", [], [(0, plgg_view_1.text)(option.label)]),
|
|
7729
|
+
])),
|
|
7730
|
+
]);
|
|
7731
|
+
exports.radioGroup = radioGroup;
|
|
7732
|
+
const segmented = (props) => (0, plgg_view_1.el)("div", [
|
|
7733
|
+
(0, plgg_view_1.attr)("class", classHooks_1.segmentedClass),
|
|
7734
|
+
(0, plgg_view_1.attr)("role", "group"),
|
|
7735
|
+
(0, plgg_view_1.attr)("aria-label", props.label),
|
|
7736
|
+
], props.options.map((option) => (0, plgg_view_1.el)("button", [
|
|
7737
|
+
(0, plgg_view_1.attr)("type", "button"),
|
|
7738
|
+
(0, plgg_view_1.attr)("class", classHooks_1.segmentClass),
|
|
7739
|
+
(0, plgg_view_1.attr)("aria-pressed", option.id === props.value
|
|
7740
|
+
? "true"
|
|
7741
|
+
: "false"),
|
|
7742
|
+
(0, plgg_view_1.onClick)(props.onSelect(option.id)),
|
|
7743
|
+
], [(0, plgg_view_1.text)(option.label)])));
|
|
7744
|
+
exports.segmented = segmented;
|
|
7745
|
+
const given = (name, value) => (0, plgg_1.matchOption)(() => [], (v) => [(0, plgg_view_1.attr)(name, String(v))])(value);
|
|
7746
|
+
const typedField = (type, props, more) => (0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.fieldClass)], [
|
|
7747
|
+
(0, controlParts_1.fieldLabel)(props.name, props.label),
|
|
7748
|
+
(0, plgg_view_1.el)("input", [
|
|
7749
|
+
(0, plgg_view_1.attr)("id", props.name),
|
|
7750
|
+
(0, plgg_view_1.attr)("name", props.name),
|
|
7751
|
+
(0, plgg_view_1.attr)("type", type),
|
|
7752
|
+
(0, plgg_view_1.attr)("value", props.value),
|
|
7753
|
+
(0, plgg_view_1.attr)("class", classHooks_1.inputClass),
|
|
7754
|
+
...more,
|
|
7755
|
+
...(0, controlParts_1.errorAria)(props.name, props.error),
|
|
7756
|
+
...(props.disabled
|
|
7757
|
+
? [(0, plgg_view_1.attr)("disabled", "")]
|
|
7758
|
+
: []),
|
|
7759
|
+
(0, plgg_view_1.onInput)(props.onInput),
|
|
7760
|
+
], []),
|
|
7761
|
+
...(0, controlParts_1.fieldError)(props.name, props.error),
|
|
7762
|
+
]);
|
|
7763
|
+
const numberInput = (props) => typedField("number", props, [
|
|
7764
|
+
(0, plgg_view_1.attr)("inputmode", "decimal"),
|
|
7765
|
+
...given("min", props.min),
|
|
7766
|
+
...given("max", props.max),
|
|
7767
|
+
...given("step", props.step),
|
|
7768
|
+
]);
|
|
7769
|
+
exports.numberInput = numberInput;
|
|
7770
|
+
const dateInput = (props) => typedField("date", props, []);
|
|
7771
|
+
exports.dateInput = dateInput;
|
|
7772
|
+
const searchField = (props) => (0, plgg_view_1.el)("div", [
|
|
7773
|
+
(0, plgg_view_1.attr)("class", classHooks_1.searchClass),
|
|
7774
|
+
(0, plgg_view_1.attr)("role", "search"),
|
|
7775
|
+
], [
|
|
7776
|
+
(0, plgg_view_1.el)("input", [
|
|
7777
|
+
(0, plgg_view_1.attr)("type", "search"),
|
|
7778
|
+
(0, plgg_view_1.attr)("name", props.name),
|
|
7779
|
+
(0, plgg_view_1.attr)("value", props.value),
|
|
7780
|
+
(0, plgg_view_1.attr)("placeholder", props.placeholder),
|
|
7781
|
+
(0, plgg_view_1.attr)("aria-label", props.label),
|
|
7782
|
+
(0, plgg_view_1.attr)("class", classHooks_1.inputClass),
|
|
7783
|
+
(0, plgg_view_1.onInput)(props.onInput),
|
|
7784
|
+
], []),
|
|
7785
|
+
]);
|
|
7786
|
+
exports.searchField = searchField;
|
|
7787
|
+
const slider = (props) => (0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.fieldClass)], [
|
|
7788
|
+
(0, controlParts_1.fieldLabel)(props.name, props.label),
|
|
7789
|
+
(0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.rangeClass)], [
|
|
7790
|
+
(0, plgg_view_1.el)("input", [
|
|
7791
|
+
(0, plgg_view_1.attr)("id", props.name),
|
|
7792
|
+
(0, plgg_view_1.attr)("name", props.name),
|
|
7793
|
+
(0, plgg_view_1.attr)("type", "range"),
|
|
7794
|
+
(0, plgg_view_1.attr)("min", String(props.min)),
|
|
7795
|
+
(0, plgg_view_1.attr)("max", String(props.max)),
|
|
7796
|
+
(0, plgg_view_1.attr)("step", String(props.step)),
|
|
7797
|
+
(0, plgg_view_1.attr)("value", String(props.value)),
|
|
7798
|
+
(0, plgg_view_1.onInput)(props.onInput),
|
|
7799
|
+
], []),
|
|
7800
|
+
(0, plgg_view_1.el)("output", [
|
|
7801
|
+
(0, plgg_view_1.attr)("for", props.name),
|
|
7802
|
+
(0, plgg_view_1.attr)("class", classHooks_1.rangeValueClass),
|
|
7803
|
+
], [(0, plgg_view_1.text)(String(props.value))]),
|
|
7804
|
+
]),
|
|
7805
|
+
]);
|
|
7806
|
+
exports.slider = slider;
|
|
7807
|
+
const fileInput = (props) => (0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.fieldClass)], [
|
|
7808
|
+
(0, controlParts_1.fieldLabel)(props.name, props.label),
|
|
7809
|
+
(0, plgg_view_1.el)("input", [
|
|
7810
|
+
(0, plgg_view_1.attr)("id", props.name),
|
|
7811
|
+
(0, plgg_view_1.attr)("name", props.name),
|
|
7812
|
+
(0, plgg_view_1.attr)("type", "file"),
|
|
7813
|
+
(0, plgg_view_1.attr)("class", classHooks_1.inputClass),
|
|
7814
|
+
...(0, plgg_1.matchOption)(() => [], (accept) => [
|
|
7815
|
+
(0, plgg_view_1.attr)("accept", accept),
|
|
7816
|
+
])(props.accept),
|
|
7817
|
+
(0, plgg_view_1.onChange)(props.onChange),
|
|
7818
|
+
], []),
|
|
7819
|
+
]);
|
|
7820
|
+
exports.fileInput = fileInput;
|
|
7821
|
+
const suggestInput = (props) => (0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.fieldClass)], [
|
|
7822
|
+
(0, controlParts_1.fieldLabel)(props.name, props.label),
|
|
7823
|
+
(0, plgg_view_1.el)("input", [
|
|
7824
|
+
(0, plgg_view_1.attr)("id", props.name),
|
|
7825
|
+
(0, plgg_view_1.attr)("name", props.name),
|
|
7826
|
+
(0, plgg_view_1.attr)("type", "text"),
|
|
7827
|
+
(0, plgg_view_1.attr)("value", props.value),
|
|
7828
|
+
(0, plgg_view_1.attr)("class", classHooks_1.inputClass),
|
|
7829
|
+
(0, plgg_view_1.attr)("list", `${props.name}-options`),
|
|
7830
|
+
(0, plgg_view_1.attr)("autocomplete", "off"),
|
|
7831
|
+
...(0, controlParts_1.errorAria)(props.name, props.error),
|
|
7832
|
+
...(props.disabled
|
|
7833
|
+
? [(0, plgg_view_1.attr)("disabled", "")]
|
|
7834
|
+
: []),
|
|
7835
|
+
(0, plgg_view_1.onInput)(props.onInput),
|
|
7836
|
+
], []),
|
|
7837
|
+
(0, plgg_view_1.el)("datalist", [(0, plgg_view_1.attr)("id", `${props.name}-options`)], props.options.map((option) => (0, plgg_view_1.el)("option", [(0, plgg_view_1.attr)("value", option)], []))),
|
|
7838
|
+
...(0, controlParts_1.fieldError)(props.name, props.error),
|
|
7839
|
+
]);
|
|
7840
|
+
exports.suggestInput = suggestInput;
|
|
7841
|
+
const checkGroup = (props) => (0, plgg_view_1.el)("fieldset", [(0, plgg_view_1.attr)("class", classHooks_1.checksClass)], [
|
|
7842
|
+
(0, plgg_view_1.el)("legend", [(0, plgg_view_1.attr)("class", classHooks_1.fieldLabelClass)], [(0, plgg_view_1.text)(props.label)]),
|
|
7843
|
+
...props.options.map((option) => (0, plgg_view_1.el)("label", [(0, plgg_view_1.attr)("class", classHooks_1.checksItemClass)], [
|
|
7844
|
+
(0, plgg_view_1.el)("input", [
|
|
7845
|
+
(0, plgg_view_1.attr)("type", "checkbox"),
|
|
7846
|
+
(0, plgg_view_1.attr)("name", props.name),
|
|
7847
|
+
(0, plgg_view_1.attr)("value", option.id),
|
|
7848
|
+
(0, plgg_view_1.attr)("class", classHooks_1.checkboxClass),
|
|
7849
|
+
...(props.chosen.includes(option.id)
|
|
7850
|
+
? [(0, plgg_view_1.attr)("checked", "")]
|
|
7851
|
+
: []),
|
|
7852
|
+
(0, plgg_view_1.onChange)(() => props.onToggle(option.id)),
|
|
7853
|
+
], []),
|
|
7854
|
+
(0, plgg_view_1.el)("span", [], [(0, plgg_view_1.text)(option.label)]),
|
|
7855
|
+
])),
|
|
7856
|
+
]);
|
|
7857
|
+
exports.checkGroup = checkGroup;
|
|
7858
|
+
const toggled = (chosen, id) => chosen.includes(id)
|
|
7859
|
+
? chosen.filter((c) => c !== id)
|
|
7860
|
+
: [...chosen, id];
|
|
7861
|
+
exports.toggled = toggled;
|
|
7862
|
+
|
|
7863
|
+
},
|
|
7864
|
+
"src/Component/usecase/compound.ts": function (module, exports, require) {
|
|
7865
|
+
"use strict";
|
|
7866
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7867
|
+
exports.calendar = exports.monthWeeks = exports.sortTable = exports.sortedBy = exports.sortedOn = exports.drawer = void 0;
|
|
7868
|
+
const plgg_1 = require("plgg");
|
|
7869
|
+
const plgg_view_1 = require("plgg-view");
|
|
7870
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
7871
|
+
const drawer = (props) => (0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.modalClass)], [
|
|
7872
|
+
(0, plgg_view_1.el)("div", [
|
|
7873
|
+
(0, plgg_view_1.attr)("class", classHooks_1.backdropClass),
|
|
7874
|
+
(0, plgg_view_1.onClick)(props.onClose),
|
|
7875
|
+
], []),
|
|
7876
|
+
(0, plgg_view_1.el)("aside", [
|
|
7877
|
+
(0, plgg_view_1.attr)("class", classHooks_1.drawerClass),
|
|
7878
|
+
(0, plgg_view_1.attr)(classHooks_1.sideAttr, props.side),
|
|
7879
|
+
(0, plgg_view_1.attr)("role", "dialog"),
|
|
7880
|
+
(0, plgg_view_1.attr)("aria-modal", "true"),
|
|
7881
|
+
(0, plgg_view_1.attr)("aria-label", props.title),
|
|
7882
|
+
], [
|
|
7883
|
+
(0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.drawerHeadClass)], [
|
|
7884
|
+
(0, plgg_view_1.el)("span", [], [(0, plgg_view_1.text)(props.title)]),
|
|
7885
|
+
(0, plgg_view_1.el)("button", [
|
|
7886
|
+
(0, plgg_view_1.attr)("type", "button"),
|
|
7887
|
+
(0, plgg_view_1.attr)("class", classHooks_1.iconButtonClass),
|
|
7888
|
+
(0, plgg_view_1.attr)("aria-label", props.closeLabel),
|
|
7889
|
+
(0, plgg_view_1.onClick)(props.onClose),
|
|
7890
|
+
], [
|
|
7891
|
+
(0, plgg_view_1.el)("span", [(0, plgg_view_1.attr)("aria-hidden", "true")], [(0, plgg_view_1.text)("×")]),
|
|
7892
|
+
]),
|
|
7893
|
+
]),
|
|
7894
|
+
(0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.drawerBodyClass)], props.body),
|
|
7895
|
+
]),
|
|
7896
|
+
]);
|
|
7897
|
+
exports.drawer = drawer;
|
|
7898
|
+
const sortedOn = (sort, id) => ({
|
|
7899
|
+
by: id,
|
|
7900
|
+
descending: sort.by === id ? !sort.descending : false,
|
|
7901
|
+
});
|
|
7902
|
+
exports.sortedOn = sortedOn;
|
|
7903
|
+
const sortedBy = (rows, read, descending) => [...rows].sort((a, b) => (descending ? -1 : 1) *
|
|
7904
|
+
between(read(a), read(b)));
|
|
7905
|
+
exports.sortedBy = sortedBy;
|
|
7906
|
+
const between = (a, b) => typeof a === "number" && typeof b === "number"
|
|
7907
|
+
? a - b
|
|
7908
|
+
: String(a).localeCompare(String(b));
|
|
7909
|
+
const numeric = (numbers) => numbers ? [(0, plgg_view_1.attr)("class", classHooks_1.numericClass)] : [];
|
|
7910
|
+
const sortTable = (props) => (0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.tableWrapClass)], [
|
|
7911
|
+
(0, plgg_view_1.el)("table", [
|
|
7912
|
+
(0, plgg_view_1.attr)("class", classHooks_1.tableClass),
|
|
7913
|
+
(0, plgg_view_1.attr)("aria-label", props.caption),
|
|
7914
|
+
], [
|
|
7915
|
+
(0, plgg_view_1.el)("thead", [], [
|
|
7916
|
+
(0, plgg_view_1.el)("tr", [], props.columns.map((c) => (0, plgg_view_1.el)("th", [
|
|
7917
|
+
(0, plgg_view_1.attr)("scope", "col"),
|
|
7918
|
+
...numeric(c.numeric),
|
|
7919
|
+
...(c.sortable
|
|
7920
|
+
? [
|
|
7921
|
+
(0, plgg_view_1.attr)("aria-sort", props.sort.by !==
|
|
7922
|
+
c.id
|
|
7923
|
+
? "none"
|
|
7924
|
+
: props.sort
|
|
7925
|
+
.descending
|
|
7926
|
+
? "descending"
|
|
7927
|
+
: "ascending"),
|
|
7928
|
+
]
|
|
7929
|
+
: []),
|
|
7930
|
+
], [
|
|
7931
|
+
c.sortable
|
|
7932
|
+
? (0, plgg_view_1.el)("button", [
|
|
7933
|
+
(0, plgg_view_1.attr)("type", "button"),
|
|
7934
|
+
(0, plgg_view_1.attr)("class", classHooks_1.sortClass),
|
|
7935
|
+
(0, plgg_view_1.onClick)(props.onSort(c.id)),
|
|
7936
|
+
], [(0, plgg_view_1.text)(c.label)])
|
|
7937
|
+
: (0, plgg_view_1.text)(c.label),
|
|
7938
|
+
]))),
|
|
7939
|
+
]),
|
|
7940
|
+
(0, plgg_view_1.el)("tbody", [], props.rows.map((cells) => (0, plgg_view_1.el)("tr", [], cells.map((cell, i) => (0, plgg_view_1.el)("td", numeric(props.columns.some((c, at) => at === i &&
|
|
7941
|
+
c.numeric)), [cell]))))),
|
|
7942
|
+
]),
|
|
7943
|
+
]);
|
|
7944
|
+
exports.sortTable = sortTable;
|
|
7945
|
+
const monthWeeks = (year, month) => weeksOf(new Date(Date.UTC(year, month - 1, 1)).getUTCDay(), new Date(Date.UTC(year, month, 0)).getUTCDate());
|
|
7946
|
+
exports.monthWeeks = monthWeeks;
|
|
7947
|
+
const weeksOf = (lead, days) => Array.from({ length: Math.ceil((lead + days) / 7) }, (_, week) => Array.from({ length: 7 }, (_, at) => week * 7 + at - lead + 1).map((day) => day < 1 || day > days ? 0 : day));
|
|
7948
|
+
const turn = (label, glyph, on) => (0, plgg_view_1.el)("button", [
|
|
7949
|
+
(0, plgg_view_1.attr)("type", "button"),
|
|
7950
|
+
(0, plgg_view_1.attr)("class", classHooks_1.iconButtonClass),
|
|
7951
|
+
(0, plgg_view_1.attr)("aria-label", label),
|
|
7952
|
+
(0, plgg_view_1.onClick)(on),
|
|
7953
|
+
], [
|
|
7954
|
+
(0, plgg_view_1.el)("span", [(0, plgg_view_1.attr)("aria-hidden", "true")], [(0, plgg_view_1.text)(glyph)]),
|
|
7955
|
+
]);
|
|
7956
|
+
const calendar = (props) => (0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.calendarClass)], [
|
|
7957
|
+
(0, plgg_view_1.el)("div", [(0, plgg_view_1.attr)("class", classHooks_1.calendarHeadClass)], [
|
|
7958
|
+
turn(props.previousLabel, "‹", props.onPrevious),
|
|
7959
|
+
(0, plgg_view_1.el)("span", [(0, plgg_view_1.attr)("aria-live", "polite")], [(0, plgg_view_1.text)(props.title)]),
|
|
7960
|
+
turn(props.nextLabel, "›", props.onNext),
|
|
7961
|
+
]),
|
|
7962
|
+
(0, plgg_view_1.el)("table", [
|
|
7963
|
+
(0, plgg_view_1.attr)("class", classHooks_1.calendarGridClass),
|
|
7964
|
+
(0, plgg_view_1.attr)("aria-label", props.title),
|
|
7965
|
+
], [
|
|
7966
|
+
(0, plgg_view_1.el)("thead", [], [
|
|
7967
|
+
(0, plgg_view_1.el)("tr", [], props.weekdays.map((name) => (0, plgg_view_1.el)("th", [(0, plgg_view_1.attr)("scope", "col")], [(0, plgg_view_1.text)(name)]))),
|
|
7968
|
+
]),
|
|
7969
|
+
(0, plgg_view_1.el)("tbody", [], (0, exports.monthWeeks)(props.year, props.month).map((week) => (0, plgg_view_1.el)("tr", [], week.map((day) => (0, plgg_view_1.el)("td", [], day === 0
|
|
7970
|
+
? []
|
|
7971
|
+
: [
|
|
7972
|
+
(0, plgg_view_1.el)("button", [
|
|
7973
|
+
(0, plgg_view_1.attr)("type", "button"),
|
|
7974
|
+
(0, plgg_view_1.attr)("class", classHooks_1.calendarDayClass),
|
|
7975
|
+
(0, plgg_view_1.attr)("aria-pressed", (0, plgg_1.matchOption)(() => false, (d) => d === day)(props.chosen)
|
|
7976
|
+
? "true"
|
|
7977
|
+
: "false"),
|
|
7978
|
+
(0, plgg_view_1.onClick)(props.onPick(day)),
|
|
7979
|
+
], [(0, plgg_view_1.text)(String(day))]),
|
|
7980
|
+
]))))),
|
|
7981
|
+
]),
|
|
7982
|
+
]);
|
|
7983
|
+
exports.calendar = calendar;
|
|
7984
|
+
|
|
6575
7985
|
}
|
|
6576
7986
|
};
|
|
6577
7987
|
const __cache = {};
|
|
@@ -6587,12 +7997,14 @@ function __require(id) {
|
|
|
6587
7997
|
const __entry = __require("src/index.ts");
|
|
6588
7998
|
export default __entry;
|
|
6589
7999
|
export const {
|
|
8000
|
+
accordion,
|
|
6590
8001
|
action,
|
|
6591
8002
|
actionById,
|
|
6592
8003
|
actionsClass,
|
|
6593
8004
|
actor,
|
|
6594
8005
|
adapter,
|
|
6595
8006
|
advanceColumns,
|
|
8007
|
+
alert,
|
|
6596
8008
|
appearanceCss,
|
|
6597
8009
|
applyVia,
|
|
6598
8010
|
asAppearance,
|
|
@@ -6602,8 +8014,10 @@ export const {
|
|
|
6602
8014
|
asText,
|
|
6603
8015
|
asidePane,
|
|
6604
8016
|
async,
|
|
8017
|
+
avatar,
|
|
6605
8018
|
backClass,
|
|
6606
8019
|
backdropClass,
|
|
8020
|
+
badge,
|
|
6607
8021
|
binding,
|
|
6608
8022
|
boardClass,
|
|
6609
8023
|
boardLevel$,
|
|
@@ -6614,16 +8028,19 @@ export const {
|
|
|
6614
8028
|
btnDangerClass,
|
|
6615
8029
|
btnPrimaryClass,
|
|
6616
8030
|
button,
|
|
8031
|
+
calendar,
|
|
6617
8032
|
calloutClass,
|
|
6618
8033
|
calloutTitleClass,
|
|
6619
8034
|
calloutToneClass,
|
|
6620
8035
|
cancelAction,
|
|
8036
|
+
card,
|
|
6621
8037
|
carouselCss,
|
|
6622
8038
|
carouselInitScript,
|
|
6623
8039
|
carouselNextClass,
|
|
6624
8040
|
carouselPrevClass,
|
|
6625
8041
|
catalogOf,
|
|
6626
8042
|
checkClass,
|
|
8043
|
+
checkGroup,
|
|
6627
8044
|
checkLabelClass,
|
|
6628
8045
|
checkbox,
|
|
6629
8046
|
checkboxClass,
|
|
@@ -6632,6 +8049,10 @@ export const {
|
|
|
6632
8049
|
chromeLinkClass,
|
|
6633
8050
|
chromeLinkLabelClass,
|
|
6634
8051
|
chromeLinksClass,
|
|
8052
|
+
cluster,
|
|
8053
|
+
codeBlock,
|
|
8054
|
+
codeInput,
|
|
8055
|
+
codeInputClass,
|
|
6635
8056
|
colClass,
|
|
6636
8057
|
colHead,
|
|
6637
8058
|
colHeadClass,
|
|
@@ -6660,11 +8081,14 @@ export const {
|
|
|
6660
8081
|
cssVar,
|
|
6661
8082
|
cssVarRef,
|
|
6662
8083
|
currentScreen,
|
|
8084
|
+
dataTable,
|
|
8085
|
+
dateInput,
|
|
6663
8086
|
declare,
|
|
6664
8087
|
declaredForm,
|
|
6665
8088
|
decodeComposition,
|
|
6666
8089
|
decodeTrail,
|
|
6667
8090
|
defaultFuel,
|
|
8091
|
+
descList,
|
|
6668
8092
|
descriptorOf,
|
|
6669
8093
|
detailLevel$,
|
|
6670
8094
|
detailView,
|
|
@@ -6676,14 +8100,20 @@ export const {
|
|
|
6676
8100
|
dialogTitleClass,
|
|
6677
8101
|
diffCatalog,
|
|
6678
8102
|
disabledClass,
|
|
8103
|
+
divider,
|
|
6679
8104
|
docClass,
|
|
6680
8105
|
docFootClass,
|
|
6681
8106
|
documentColumn,
|
|
8107
|
+
drawer,
|
|
6682
8108
|
dynamic,
|
|
6683
8109
|
effect,
|
|
8110
|
+
embedParam,
|
|
8111
|
+
embeddedAttr,
|
|
8112
|
+
embeddersMeta,
|
|
6684
8113
|
emit,
|
|
6685
8114
|
emit$,
|
|
6686
8115
|
emptyModel,
|
|
8116
|
+
emptyState,
|
|
6687
8117
|
encodeTrail,
|
|
6688
8118
|
entry,
|
|
6689
8119
|
entrySeparator,
|
|
@@ -6692,6 +8122,7 @@ export const {
|
|
|
6692
8122
|
errorClass,
|
|
6693
8123
|
errorFor,
|
|
6694
8124
|
escapeChar,
|
|
8125
|
+
exampleBox,
|
|
6695
8126
|
failed,
|
|
6696
8127
|
field,
|
|
6697
8128
|
fieldClass,
|
|
@@ -6710,8 +8141,10 @@ export const {
|
|
|
6710
8141
|
fieldsClass,
|
|
6711
8142
|
figureBodyClass,
|
|
6712
8143
|
figurePageClass,
|
|
8144
|
+
fileInput,
|
|
6713
8145
|
flagValue,
|
|
6714
8146
|
flagValue$,
|
|
8147
|
+
floatingIconButton,
|
|
6715
8148
|
flowHost,
|
|
6716
8149
|
flowSchema,
|
|
6717
8150
|
flowSchemaOf,
|
|
@@ -6721,12 +8154,16 @@ export const {
|
|
|
6721
8154
|
foldTrail,
|
|
6722
8155
|
formClass,
|
|
6723
8156
|
formView,
|
|
8157
|
+
frameClass,
|
|
6724
8158
|
frameworkName,
|
|
6725
8159
|
glideEase,
|
|
6726
8160
|
heading,
|
|
6727
8161
|
hintClass,
|
|
6728
8162
|
hostAdapter,
|
|
6729
8163
|
hoverDim,
|
|
8164
|
+
iconButton,
|
|
8165
|
+
iconButtonClass,
|
|
8166
|
+
iconButtonRoundClass,
|
|
6730
8167
|
idleSubmission,
|
|
6731
8168
|
immediate,
|
|
6732
8169
|
inertModelContext,
|
|
@@ -6735,6 +8172,7 @@ export const {
|
|
|
6735
8172
|
invokeWith,
|
|
6736
8173
|
isDestructive,
|
|
6737
8174
|
isPending,
|
|
8175
|
+
itemList,
|
|
6738
8176
|
kitAppearanceCss,
|
|
6739
8177
|
kitCss,
|
|
6740
8178
|
kitSystemCss,
|
|
@@ -6756,6 +8194,7 @@ export const {
|
|
|
6756
8194
|
mediaValue$,
|
|
6757
8195
|
menu,
|
|
6758
8196
|
menuBodyClass,
|
|
8197
|
+
menuButton,
|
|
6759
8198
|
menuClass,
|
|
6760
8199
|
menuColumn,
|
|
6761
8200
|
menuCompactAttr,
|
|
@@ -6769,6 +8208,7 @@ export const {
|
|
|
6769
8208
|
momentValue,
|
|
6770
8209
|
momentValue$,
|
|
6771
8210
|
monochrome,
|
|
8211
|
+
monthWeeks,
|
|
6772
8212
|
moonClass,
|
|
6773
8213
|
multiColumn,
|
|
6774
8214
|
multiColumnWith,
|
|
@@ -6791,23 +8231,30 @@ export const {
|
|
|
6791
8231
|
nullary$,
|
|
6792
8232
|
numValue,
|
|
6793
8233
|
numValue$,
|
|
8234
|
+
numberInput,
|
|
6794
8235
|
openMenu,
|
|
6795
8236
|
openedAttr,
|
|
8237
|
+
pageNumbers,
|
|
8238
|
+
pagination,
|
|
6796
8239
|
pane,
|
|
6797
8240
|
paneClass,
|
|
6798
8241
|
parseForm,
|
|
6799
8242
|
parseSteps,
|
|
6800
8243
|
parseUrl,
|
|
8244
|
+
partnersMeta,
|
|
6801
8245
|
pendingSubmission,
|
|
6802
8246
|
permits,
|
|
6803
8247
|
phoneAttr,
|
|
6804
8248
|
pinnedClass,
|
|
6805
8249
|
pinnedPanel,
|
|
8250
|
+
popover,
|
|
6806
8251
|
pragmaticTheme,
|
|
6807
8252
|
pragmaticThemeWithPalette,
|
|
6808
8253
|
pressDim,
|
|
8254
|
+
preview,
|
|
6809
8255
|
printSteps,
|
|
6810
8256
|
programmaticScrollAttr,
|
|
8257
|
+
progress,
|
|
6811
8258
|
projectField,
|
|
6812
8259
|
projectRow,
|
|
6813
8260
|
projection,
|
|
@@ -6824,6 +8271,7 @@ export const {
|
|
|
6824
8271
|
queryChoiceInput,
|
|
6825
8272
|
queryClass,
|
|
6826
8273
|
queryInput,
|
|
8274
|
+
radioGroup,
|
|
6827
8275
|
ran,
|
|
6828
8276
|
ran$,
|
|
6829
8277
|
reachableScroll,
|
|
@@ -6850,7 +8298,10 @@ export const {
|
|
|
6850
8298
|
rowCap,
|
|
6851
8299
|
rowClass,
|
|
6852
8300
|
rowLinkClass,
|
|
8301
|
+
rowList,
|
|
6853
8302
|
rowWith,
|
|
8303
|
+
rowsClass,
|
|
8304
|
+
rowsRowClass,
|
|
6854
8305
|
runFlow,
|
|
6855
8306
|
runFlow$,
|
|
6856
8307
|
runFlowEffect,
|
|
@@ -6860,6 +8311,8 @@ export const {
|
|
|
6860
8311
|
schedulerClass,
|
|
6861
8312
|
scope,
|
|
6862
8313
|
seamClass,
|
|
8314
|
+
searchField,
|
|
8315
|
+
segmented,
|
|
6863
8316
|
select,
|
|
6864
8317
|
selectInput,
|
|
6865
8318
|
selector,
|
|
@@ -6897,26 +8350,50 @@ export const {
|
|
|
6897
8350
|
sidebarNavRevealScript,
|
|
6898
8351
|
singleClass,
|
|
6899
8352
|
singleColumn,
|
|
8353
|
+
siteBarHomeClass,
|
|
8354
|
+
siteBarNoteClass,
|
|
8355
|
+
siteBodyClass,
|
|
8356
|
+
siteCss,
|
|
8357
|
+
siteDrawerNoteClass,
|
|
8358
|
+
siteFillClass,
|
|
8359
|
+
siteMainClass,
|
|
8360
|
+
siteSectionClass,
|
|
8361
|
+
siteStripClass,
|
|
8362
|
+
skeleton,
|
|
6900
8363
|
sliceOf,
|
|
8364
|
+
slider,
|
|
6901
8365
|
slotOf,
|
|
6902
8366
|
soft,
|
|
6903
8367
|
soloComposition,
|
|
8368
|
+
sortTable,
|
|
8369
|
+
sortedBy,
|
|
8370
|
+
sortedOn,
|
|
6904
8371
|
spanAttr,
|
|
6905
8372
|
spanParam,
|
|
6906
8373
|
spanTwoClass,
|
|
8374
|
+
spinner,
|
|
8375
|
+
split,
|
|
8376
|
+
splitter,
|
|
8377
|
+
splitterClass,
|
|
6907
8378
|
stalled,
|
|
6908
8379
|
stalled$,
|
|
6909
8380
|
startFlow,
|
|
6910
8381
|
staticThemeToggle,
|
|
8382
|
+
statusClass,
|
|
8383
|
+
statusLine,
|
|
6911
8384
|
stepFrom,
|
|
6912
8385
|
stepSeparator,
|
|
8386
|
+
steps,
|
|
6913
8387
|
strip,
|
|
6914
8388
|
stripAttr,
|
|
6915
8389
|
stripGeometry,
|
|
6916
8390
|
stripMetrics,
|
|
6917
8391
|
stripStyle,
|
|
6918
8392
|
stripVar,
|
|
8393
|
+
suggestInput,
|
|
6919
8394
|
sunClass,
|
|
8395
|
+
swatch,
|
|
8396
|
+
swatches,
|
|
6920
8397
|
switchClass,
|
|
6921
8398
|
switchLabelClass,
|
|
6922
8399
|
switchThumbClass,
|
|
@@ -6924,6 +8401,8 @@ export const {
|
|
|
6924
8401
|
sync,
|
|
6925
8402
|
syncCatalog,
|
|
6926
8403
|
systemCss,
|
|
8404
|
+
tabs,
|
|
8405
|
+
tag,
|
|
6927
8406
|
textArea,
|
|
6928
8407
|
textArg,
|
|
6929
8408
|
textArg$,
|
|
@@ -6947,8 +8426,17 @@ export const {
|
|
|
6947
8426
|
toasterClass,
|
|
6948
8427
|
toggle,
|
|
6949
8428
|
toggleMode,
|
|
8429
|
+
toggled,
|
|
6950
8430
|
tones,
|
|
6951
8431
|
tool,
|
|
8432
|
+
toolButton,
|
|
8433
|
+
toolClass,
|
|
8434
|
+
toolGroup,
|
|
8435
|
+
toolGroupClass,
|
|
8436
|
+
toolIconClass,
|
|
8437
|
+
toolbar,
|
|
8438
|
+
toolbarClass,
|
|
8439
|
+
tooltip,
|
|
6952
8440
|
trailClass,
|
|
6953
8441
|
trailParam,
|
|
6954
8442
|
trailQuery,
|