@motifx-community/ui 0.1.0-beta.18 → 0.1.0-beta.19
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/CHANGELOG.md +34 -0
- package/dist/components/form/MxForm.d.ts +3 -0
- package/dist/components/form/form-props.d.ts +7 -0
- package/dist/components/formlayout/FormLayout.d.ts +21 -6
- package/dist/components/formlayout/form-item.d.ts +4 -3
- package/dist/components/formlayout/form-layout-props.d.ts +9 -5
- package/dist/components/formlayout/form-tab.d.ts +2 -1
- package/dist/components/layout/DockPanel.d.ts +16 -6
- package/dist/components/layout/Grid.d.ts +35 -25
- package/dist/components/layout/GroupBox.d.ts +14 -4
- package/dist/components/layout/Panel.d.ts +12 -2
- package/dist/components/layout/SplitContainer.d.ts +12 -2
- package/dist/components/layout/Stack.d.ts +29 -17
- package/dist/components/layout/dock-child-props.d.ts +7 -6
- package/dist/components/layout/dock-panel-props.d.ts +3 -2
- package/dist/components/layout/grid-cell.d.ts +7 -5
- package/dist/components/layout/grid-props.d.ts +17 -12
- package/dist/components/layout/group-box-props.d.ts +3 -2
- package/dist/components/layout/panel-props.d.ts +2 -1
- package/dist/components/layout/split-container-props.d.ts +2 -1
- package/dist/components/layout/stack-child-props.d.ts +3 -2
- package/dist/components/layout/stack-props.d.ts +8 -7
- package/dist/components/tabs/Tab.d.ts +6 -0
- package/dist/components/tabs/Tabs.d.ts +5 -0
- package/dist/components/tabs/tab-props.d.ts +7 -1
- package/dist/components/tabs/tabs-props.d.ts +6 -0
- package/dist/core/responsive.d.ts +52 -0
- package/dist/generated/tokens.d.ts +20 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +466 -102
- package/dist/index.js.map +1 -1
- package/dist/styles.css +89 -5
- package/dist/tokens/index.d.ts +40 -0
- package/dist/tokens/index.js +20 -0
- package/dist/tokens/index.js.map +1 -1
- package/docs/accordion.md +1 -1
- package/docs/actionsheet.md +1 -1
- package/docs/appbar.md +1 -1
- package/docs/appmenu-api.md +1 -1
- package/docs/appmenu-programmatic.md +1 -1
- package/docs/appmenu-search.md +1 -1
- package/docs/appmenu.md +1 -1
- package/docs/avatar.md +1 -1
- package/docs/badge.md +1 -1
- package/docs/bar-gauge-angles.md +1 -1
- package/docs/bar-gauge-data.md +1 -1
- package/docs/bar-gauge-labels.md +1 -1
- package/docs/bar-gauge.md +1 -1
- package/docs/barcode.md +1 -1
- package/docs/bottomnavigation.md +1 -1
- package/docs/bottomsheet.md +1 -1
- package/docs/breadcrumb.md +1 -1
- package/docs/button.md +1 -1
- package/docs/buttongroup.md +1 -1
- package/docs/buttons.md +1 -1
- package/docs/calendar.md +1 -1
- package/docs/card.md +1 -1
- package/docs/chart-bars.md +1 -1
- package/docs/chart-candles.md +1 -1
- package/docs/chart-funnel.md +1 -1
- package/docs/chart-heatmap.md +1 -1
- package/docs/chart-lines.md +1 -1
- package/docs/chart-live.md +1 -1
- package/docs/chart-pie.md +1 -1
- package/docs/chart-radar.md +1 -1
- package/docs/chart-ranges.md +1 -1
- package/docs/chart-references.md +1 -1
- package/docs/chart-scatter.md +1 -1
- package/docs/chart-waterfall.md +1 -1
- package/docs/chart-zoom.md +1 -1
- package/docs/chart.md +1 -1
- package/docs/chat.md +1 -1
- package/docs/checkbox.md +1 -1
- package/docs/chip.md +1 -1
- package/docs/choice.md +1 -1
- package/docs/colorbox.md +1 -1
- package/docs/combobox.md +1 -1
- package/docs/commands.md +1 -1
- package/docs/control.md +1 -1
- package/docs/data.md +1 -1
- package/docs/datagrid-api.md +1 -1
- package/docs/datagrid-bands.md +1 -1
- package/docs/datagrid-drag-select.md +1 -1
- package/docs/datagrid-drag.md +1 -1
- package/docs/datagrid-editing.md +1 -1
- package/docs/datagrid-filtering.md +1 -1
- package/docs/datagrid-forms.md +1 -1
- package/docs/datagrid-grouping.md +1 -1
- package/docs/datagrid-layout.md +1 -1
- package/docs/datagrid-lookups.md +1 -1
- package/docs/datagrid-master-detail.md +1 -1
- package/docs/datagrid-scrolling.md +1 -1
- package/docs/datagrid-selection.md +1 -1
- package/docs/datagrid.md +1 -1
- package/docs/datebox.md +1 -1
- package/docs/daterangebox.md +1 -1
- package/docs/diagram-api.md +1 -1
- package/docs/diagram-commands.md +1 -1
- package/docs/diagram-connections.md +1 -1
- package/docs/diagram-custom-nodes.md +1 -1
- package/docs/diagram-designer.md +1 -1
- package/docs/diagram-editing.md +1 -1
- package/docs/diagram-flow.md +1 -1
- package/docs/diagram-keyboard.md +1 -1
- package/docs/diagram-layout.md +1 -1
- package/docs/diagram-nodes.md +1 -1
- package/docs/diagram-tables.md +1 -1
- package/docs/diagram.md +1 -1
- package/docs/display.md +1 -1
- package/docs/draggable.md +1 -1
- package/docs/drawer.md +1 -1
- package/docs/dropdown.md +1 -1
- package/docs/editors.md +1 -1
- package/docs/expressioneditor.md +1 -1
- package/docs/expressions.md +1 -1
- package/docs/feedback.md +1 -1
- package/docs/fileuploader.md +1 -1
- package/docs/filterbuilder.md +1 -1
- package/docs/formlayout-schema.md +1 -1
- package/docs/formlayout.md +52 -6
- package/docs/foundations.md +1 -1
- package/docs/gallery.md +1 -1
- package/docs/gauge-base.md +1 -1
- package/docs/gauge-circular.md +1 -1
- package/docs/gauge-dashboards.md +1 -1
- package/docs/gauge-linear.md +1 -1
- package/docs/gauge-markers.md +1 -1
- package/docs/gauge-marks.md +1 -1
- package/docs/gauge-ranges.md +1 -1
- package/docs/gauge-scales.md +1 -1
- package/docs/gauge.md +1 -1
- package/docs/home.md +1 -1
- package/docs/keyboard.md +1 -1
- package/docs/language.md +1 -1
- package/docs/layout.md +101 -28
- package/docs/listbox.md +1 -1
- package/docs/loadpanel.md +1 -1
- package/docs/lookup.md +1 -1
- package/docs/markdown.md +1 -1
- package/docs/menus-api.md +1 -1
- package/docs/menus-context.md +1 -1
- package/docs/menus-customization.md +1 -1
- package/docs/menus-merging.md +1 -1
- package/docs/menus-programmatic.md +1 -1
- package/docs/menus.md +1 -1
- package/docs/multiview.md +1 -1
- package/docs/navigation.md +1 -1
- package/docs/numberbox.md +1 -1
- package/docs/otpinput.md +1 -1
- package/docs/pagination.md +1 -1
- package/docs/pivotgrid-api.md +1 -1
- package/docs/pivotgrid-chart.md +1 -1
- package/docs/pivotgrid-drilldown.md +1 -1
- package/docs/pivotgrid-export.md +1 -1
- package/docs/pivotgrid-fields.md +1 -1
- package/docs/pivotgrid-keyboard.md +1 -1
- package/docs/pivotgrid-layout.md +1 -1
- package/docs/pivotgrid-panel.md +1 -1
- package/docs/pivotgrid-remote.md +1 -1
- package/docs/pivotgrid-sorting.md +1 -1
- package/docs/pivotgrid-state.md +1 -1
- package/docs/pivotgrid-summaries.md +1 -1
- package/docs/pivotgrid.md +1 -1
- package/docs/popover.md +1 -1
- package/docs/progress.md +1 -1
- package/docs/qrcode.md +1 -1
- package/docs/radiogroup.md +1 -1
- package/docs/rating.md +1 -1
- package/docs/resizable.md +1 -1
- package/docs/ribbonmenu-api.md +1 -1
- package/docs/ribbonmenu-commands.md +1 -1
- package/docs/ribbonmenu-customization.md +1 -1
- package/docs/ribbonmenu-display.md +1 -1
- package/docs/ribbonmenu-layouts.md +1 -1
- package/docs/ribbonmenu-programmatic.md +1 -1
- package/docs/ribbonmenu.md +1 -1
- package/docs/scheduler-agenda.md +1 -1
- package/docs/scheduler-big-data.md +1 -1
- package/docs/scheduler-editing.md +1 -1
- package/docs/scheduler-form.md +1 -1
- package/docs/scheduler-icalendar.md +1 -1
- package/docs/scheduler-mobile.md +1 -1
- package/docs/scheduler-recurrence.md +1 -1
- package/docs/scheduler-resources.md +1 -1
- package/docs/scheduler-timeline.md +1 -1
- package/docs/scheduler.md +1 -1
- package/docs/scrollview.md +1 -1
- package/docs/shortcuteditor.md +1 -1
- package/docs/showcase-flowstudio.md +1 -1
- package/docs/showcase-home.md +1 -1
- package/docs/showcase-mail.md +1 -1
- package/docs/showcase.md +1 -1
- package/docs/signature.md +1 -1
- package/docs/skeleton.md +1 -1
- package/docs/slider.md +1 -1
- package/docs/sortable.md +1 -1
- package/docs/sparkline.md +1 -1
- package/docs/speeddial.md +1 -1
- package/docs/splitter.md +1 -1
- package/docs/stepper.md +1 -1
- package/docs/switch.md +1 -1
- package/docs/tabdocs-dock.md +1 -1
- package/docs/tabdocs-drag.md +1 -1
- package/docs/tabdocs-menus.md +1 -1
- package/docs/tabdocs-mobile.md +1 -1
- package/docs/tabdocs-tabs.md +1 -1
- package/docs/tabdocs-windows.md +1 -1
- package/docs/tabdocs-workspace.md +1 -1
- package/docs/tabdocs.md +1 -1
- package/docs/tabs.md +58 -1
- package/docs/tagbox.md +1 -1
- package/docs/textarea.md +1 -1
- package/docs/textbox.md +1 -1
- package/docs/tileview.md +1 -1
- package/docs/timeline.md +1 -1
- package/docs/toast.md +1 -1
- package/docs/tokens.md +9 -1
- package/docs/toolbar-api.md +1 -1
- package/docs/toolbar-customization.md +1 -1
- package/docs/toolbar.md +1 -1
- package/docs/tooltip.md +1 -1
- package/docs/treeview.md +2 -2
- package/docs/validationsummary.md +1 -1
- package/docs/window.md +45 -1
- package/docs/wizard.md +1 -1
- package/llms-full.txt +452 -224
- package/llms.txt +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -8231,7 +8231,7 @@ var CommandRegistry = class {
|
|
|
8231
8231
|
var commands = new CommandRegistry();
|
|
8232
8232
|
//#endregion
|
|
8233
8233
|
//#region src/core/shortcut-text.ts
|
|
8234
|
-
var NAMES = {
|
|
8234
|
+
var NAMES$1 = {
|
|
8235
8235
|
" ": "Space",
|
|
8236
8236
|
arrowup: "↑",
|
|
8237
8237
|
arrowdown: "↓",
|
|
@@ -8253,7 +8253,7 @@ function shortcutText(shortcut) {
|
|
|
8253
8253
|
}
|
|
8254
8254
|
const apple = isApplePlatform();
|
|
8255
8255
|
return chords.map((c) => {
|
|
8256
|
-
const key = NAMES[c.key] ?? (c.key.length === 1 ? c.key.toUpperCase() : c.key[0].toUpperCase() + c.key.slice(1));
|
|
8256
|
+
const key = NAMES$1[c.key] ?? (c.key.length === 1 ? c.key.toUpperCase() : c.key[0].toUpperCase() + c.key.slice(1));
|
|
8257
8257
|
if (apple) return `${c.ctrl ? "⌃" : ""}${c.alt ? "⌥" : ""}${c.shift ? "⇧" : ""}${c.meta ? "⌘" : ""}${key}`;
|
|
8258
8258
|
return [
|
|
8259
8259
|
c.ctrl && "Ctrl",
|
|
@@ -22391,6 +22391,7 @@ var ChatComposer = class extends Control {
|
|
|
22391
22391
|
this.box = new TextArea({
|
|
22392
22392
|
rows: 1,
|
|
22393
22393
|
autoGrow: true,
|
|
22394
|
+
stretch: true,
|
|
22394
22395
|
submitOnEnter: true,
|
|
22395
22396
|
onEnter: () => this.send()
|
|
22396
22397
|
});
|
|
@@ -23605,6 +23606,7 @@ var ChatAskForm = class {
|
|
|
23605
23606
|
if (q.other !== false) {
|
|
23606
23607
|
const box = new TextBox({
|
|
23607
23608
|
placeholder: strings.chatOtherHint,
|
|
23609
|
+
stretch: true,
|
|
23608
23610
|
onEnter: () => this.otherEntered()
|
|
23609
23611
|
});
|
|
23610
23612
|
box.class.add("mx-chat__ask-other");
|
|
@@ -23621,6 +23623,7 @@ var ChatAskForm = class {
|
|
|
23621
23623
|
const box = new TextArea({
|
|
23622
23624
|
rows: 2,
|
|
23623
23625
|
autoGrow: true,
|
|
23626
|
+
stretch: true,
|
|
23624
23627
|
placeholder: strings.chatOtherHint
|
|
23625
23628
|
});
|
|
23626
23629
|
box.class.add("mx-chat__ask-free");
|
|
@@ -23825,7 +23828,10 @@ var ChatChoicesView = class {
|
|
|
23825
23828
|
this.list = part(body, "div", "mx-chat__ask-options");
|
|
23826
23829
|
put(this.list, "role", "group");
|
|
23827
23830
|
put(this.list, "aria-labelledby", id);
|
|
23828
|
-
this.box = new TextBox({
|
|
23831
|
+
this.box = new TextBox({
|
|
23832
|
+
stretch: true,
|
|
23833
|
+
onEnter: () => this.take(this.boxFor)
|
|
23834
|
+
});
|
|
23829
23835
|
this.box.class.add("mx-chat__ask-other");
|
|
23830
23836
|
this.box.motif.on("keydown", (_, e) => {
|
|
23831
23837
|
if (e.key !== "Escape") return;
|
|
@@ -23973,6 +23979,154 @@ var ChatChoicesView = class {
|
|
|
23973
23979
|
}
|
|
23974
23980
|
};
|
|
23975
23981
|
//#endregion
|
|
23982
|
+
//#region src/core/responsive.ts
|
|
23983
|
+
/** The widths a layout changes at, narrowest first: `xs` is narrower than the design system's `breakpoint.sm`. */
|
|
23984
|
+
var BREAKPOINTS = [
|
|
23985
|
+
"xs",
|
|
23986
|
+
"sm",
|
|
23987
|
+
"md",
|
|
23988
|
+
"lg",
|
|
23989
|
+
"xl"
|
|
23990
|
+
];
|
|
23991
|
+
var NAMES = new Set(BREAKPOINTS);
|
|
23992
|
+
/** The lengths of sm, md, lg and xl, in this kit's layout tokens (the design system's `breakpoint` scale by default). */
|
|
23993
|
+
var TOKENS = [
|
|
23994
|
+
"--mx-layout-breakpoint-sm",
|
|
23995
|
+
"--mx-layout-breakpoint-md",
|
|
23996
|
+
"--mx-layout-breakpoint-lg",
|
|
23997
|
+
"--mx-layout-breakpoint-xl"
|
|
23998
|
+
];
|
|
23999
|
+
/** The design system's widths, until a window has read its own. */
|
|
24000
|
+
var FALLBACK = [
|
|
24001
|
+
560,
|
|
24002
|
+
768,
|
|
24003
|
+
1024,
|
|
24004
|
+
1440
|
|
24005
|
+
];
|
|
24006
|
+
/** Whether `value` gives values per breakpoint: a plain object whose keys are all breakpoints. */
|
|
24007
|
+
function isPerBreakpoint(value) {
|
|
24008
|
+
if (!value || typeof value !== "object" || Array.isArray(value) || Object.getPrototypeOf(value) !== Object.prototype) return false;
|
|
24009
|
+
const keys = Object.keys(value);
|
|
24010
|
+
return keys.length > 0 && keys.every((key) => NAMES.has(key));
|
|
24011
|
+
}
|
|
24012
|
+
/** The value at `breakpoint`: its own, else that of the widest narrower breakpoint given, else `undefined`. */
|
|
24013
|
+
function valueAt(value, breakpoint) {
|
|
24014
|
+
if (!isPerBreakpoint(value)) return value;
|
|
24015
|
+
for (let i = BREAKPOINTS.indexOf(breakpoint); i >= 0; i--) {
|
|
24016
|
+
const at = value[BREAKPOINTS[i]];
|
|
24017
|
+
if (at !== void 0) return at;
|
|
24018
|
+
}
|
|
24019
|
+
}
|
|
24020
|
+
/** The breakpoint of `width` on a scale: the lengths of sm, md, lg and xl. */
|
|
24021
|
+
function breakpointOf(width, scale = FALLBACK) {
|
|
24022
|
+
let at = 0;
|
|
24023
|
+
for (let i = 0; i < scale.length; i++) if (width >= scale[i]) at = i + 1;
|
|
24024
|
+
return BREAKPOINTS[at];
|
|
24025
|
+
}
|
|
24026
|
+
/**
|
|
24027
|
+
* The breakpoint of the room a layout container is laid out in, for the props and child settings it takes per
|
|
24028
|
+
* breakpoint: the content box of its parent (past parents with no element of their own), its own without one. The
|
|
24029
|
+
* room, not the container itself: a sidebar docked at the side of a wide page is narrow but sits in a wide page, and a
|
|
24030
|
+
* container sized by its content would otherwise change its own breakpoint by changing its layout. Nothing is followed
|
|
24031
|
+
* until a value per breakpoint is picked; from then on the room's size and the look are watched, and `changed` runs each
|
|
24032
|
+
* time the breakpoint changes, to apply those values again. Until it is first measured, the breakpoint is the
|
|
24033
|
+
* window's: a container usually spans most of it, so the first frame is mostly right already. The widths are this
|
|
24034
|
+
* kit's `layout.breakpoint` tokens, read again when the look changes; a room out of sight keeps its breakpoint until it
|
|
24035
|
+
* is laid out again.
|
|
24036
|
+
*/
|
|
24037
|
+
var BreakpointFollow = class {
|
|
24038
|
+
constructor(owner, changed) {
|
|
24039
|
+
_defineProperty(this, "owner", void 0);
|
|
24040
|
+
_defineProperty(this, "changed", void 0);
|
|
24041
|
+
_defineProperty(
|
|
24042
|
+
this,
|
|
24043
|
+
/** Measured; read in a binding, it is read again when it changes. */
|
|
24044
|
+
"current",
|
|
24045
|
+
createSignal(null)
|
|
24046
|
+
);
|
|
24047
|
+
_defineProperty(this, "guessed", null);
|
|
24048
|
+
_defineProperty(this, "width", 0);
|
|
24049
|
+
_defineProperty(this, "scale", FALLBACK);
|
|
24050
|
+
_defineProperty(this, "following", false);
|
|
24051
|
+
_defineProperty(this, "room", null);
|
|
24052
|
+
_defineProperty(this, "stopRoom", null);
|
|
24053
|
+
_defineProperty(this, "read", () => {
|
|
24054
|
+
const values = styleOf(this.owner, TOKENS);
|
|
24055
|
+
const room = this.roomNow();
|
|
24056
|
+
const pad = styleOf(room, ["padding-left", "padding-right"]);
|
|
24057
|
+
const width = boxOf(room).clientWidth - (pixels(pad["padding-left"]) ?? 0) - (pixels(pad["padding-right"]) ?? 0);
|
|
24058
|
+
return {
|
|
24059
|
+
scale: TOKENS.map((name, i) => pixels(values[name]) ?? FALLBACK[i]),
|
|
24060
|
+
width
|
|
24061
|
+
};
|
|
24062
|
+
});
|
|
24063
|
+
_defineProperty(this, "took", (read) => {
|
|
24064
|
+
this.watchRoom();
|
|
24065
|
+
this.scale = read.scale;
|
|
24066
|
+
if (read.width > 0) this.width = read.width;
|
|
24067
|
+
this.decide();
|
|
24068
|
+
});
|
|
24069
|
+
this.owner = owner;
|
|
24070
|
+
this.changed = changed;
|
|
24071
|
+
}
|
|
24072
|
+
/** The breakpoint now. Reactive: read in a binding, it is read again when it changes. */
|
|
24073
|
+
get breakpoint() {
|
|
24074
|
+
return this.current.value ?? (this.guessed ??= this.windowBreakpoint());
|
|
24075
|
+
}
|
|
24076
|
+
/** `value` at the breakpoint now. A value per breakpoint starts the following. */
|
|
24077
|
+
pick(value) {
|
|
24078
|
+
if (!isPerBreakpoint(value)) return value;
|
|
24079
|
+
this.follow();
|
|
24080
|
+
return valueAt(value, this.breakpoint);
|
|
24081
|
+
}
|
|
24082
|
+
follow() {
|
|
24083
|
+
if (this.following || this.owner.isDisposed) return;
|
|
24084
|
+
this.following = true;
|
|
24085
|
+
this.watchRoom();
|
|
24086
|
+
measure(this.owner, this.read, this.took);
|
|
24087
|
+
onLayout(this.owner, "look", () => {
|
|
24088
|
+
this.watchRoom();
|
|
24089
|
+
measure(this.owner, this.read, this.took);
|
|
24090
|
+
});
|
|
24091
|
+
}
|
|
24092
|
+
/** The room it is laid out in now: its parent's content box, past parents with no element of their own. */
|
|
24093
|
+
roomNow() {
|
|
24094
|
+
const parent = this.owner.parent;
|
|
24095
|
+
return (parent && holderOf(parent)) ?? this.owner;
|
|
24096
|
+
}
|
|
24097
|
+
watchRoom() {
|
|
24098
|
+
const room = this.roomNow();
|
|
24099
|
+
if (room === this.room) return;
|
|
24100
|
+
this.stopRoom?.();
|
|
24101
|
+
this.room = room;
|
|
24102
|
+
this.stopRoom = onLayout(room, "size", (size) => {
|
|
24103
|
+
if (size.width <= 0) return;
|
|
24104
|
+
this.width = size.width;
|
|
24105
|
+
this.decide();
|
|
24106
|
+
}, {
|
|
24107
|
+
owner: this.owner,
|
|
24108
|
+
box: "content"
|
|
24109
|
+
});
|
|
24110
|
+
}
|
|
24111
|
+
decide() {
|
|
24112
|
+
if (this.width <= 0 || this.owner.isDisposed) return;
|
|
24113
|
+
const next = breakpointOf(this.width, this.scale);
|
|
24114
|
+
const was = untracked(() => this.breakpoint);
|
|
24115
|
+
this.current.value = next;
|
|
24116
|
+
if (next !== was) this.changed();
|
|
24117
|
+
}
|
|
24118
|
+
windowBreakpoint() {
|
|
24119
|
+
let at = 0;
|
|
24120
|
+
for (let i = 0; i < FALLBACK.length; i++) if (mediaOf(this.owner, `(min-width: ${FALLBACK[i]}px)`)) at = i + 1;
|
|
24121
|
+
return BREAKPOINTS[at];
|
|
24122
|
+
}
|
|
24123
|
+
};
|
|
24124
|
+
/** A length the tokens give in pixels; `null` for anything else. */
|
|
24125
|
+
function pixels(value) {
|
|
24126
|
+
const match = /^(-?\d*\.?\d+)px$/.exec(value);
|
|
24127
|
+
return match ? Number(match[1]) : null;
|
|
24128
|
+
}
|
|
24129
|
+
//#endregion
|
|
23976
24130
|
//#region src/parts/validation/validate-targets.ts
|
|
23977
24131
|
/** In the order of the component tree, by the parts of the targets. */
|
|
23978
24132
|
function inTreeOrder(a, b) {
|
|
@@ -26585,6 +26739,45 @@ var Lookup = class extends DropDown {
|
|
|
26585
26739
|
}
|
|
26586
26740
|
};
|
|
26587
26741
|
//#endregion
|
|
26742
|
+
//#region src/components/layout/space-value.ts
|
|
26743
|
+
var STEPS$1 = /* @__PURE__ */ new Set([
|
|
26744
|
+
"xxs",
|
|
26745
|
+
"xs",
|
|
26746
|
+
"sm",
|
|
26747
|
+
"md",
|
|
26748
|
+
"lg",
|
|
26749
|
+
"xl",
|
|
26750
|
+
"xxl"
|
|
26751
|
+
]);
|
|
26752
|
+
/** One CSS value per word: a step becomes its token and a bare number becomes pixels. Returns `''` for no value. */
|
|
26753
|
+
function spaceValue(value) {
|
|
26754
|
+
if (value === null || value === void 0 || value === "") return "";
|
|
26755
|
+
if (typeof value === "number") return `${value}px`;
|
|
26756
|
+
return value.trim().split(/\s+/).map((word) => STEPS$1.has(word) ? `var(--mx-layout-space-${word})` : /^-?\d*\.?\d+$/.test(word) ? `${word}px` : word).join(" ");
|
|
26757
|
+
}
|
|
26758
|
+
//#endregion
|
|
26759
|
+
//#region src/components/layout/set-padding.ts
|
|
26760
|
+
var SIDES$4 = [
|
|
26761
|
+
"padding-block-start",
|
|
26762
|
+
"padding-inline-end",
|
|
26763
|
+
"padding-block-end",
|
|
26764
|
+
"padding-inline-start"
|
|
26765
|
+
];
|
|
26766
|
+
/**
|
|
26767
|
+
* Writes a padding the way CSS reads one to four values (block-start, inline-end, block-end,
|
|
26768
|
+
* inline-start), on the logical sides, so it follows the reading direction.
|
|
26769
|
+
*/
|
|
26770
|
+
function setPadding(part, value) {
|
|
26771
|
+
const [start, end = start, blockEnd = start, inlineStart = end] = spaceValue(value).split(" ").filter(Boolean);
|
|
26772
|
+
const values = [
|
|
26773
|
+
start,
|
|
26774
|
+
end,
|
|
26775
|
+
blockEnd,
|
|
26776
|
+
inlineStart
|
|
26777
|
+
];
|
|
26778
|
+
SIDES$4.forEach((side, i) => css(part, side, values[i] ?? ""));
|
|
26779
|
+
}
|
|
26780
|
+
//#endregion
|
|
26588
26781
|
//#region src/components/tabs/PanelContent.ts
|
|
26589
26782
|
/**
|
|
26590
26783
|
* The content of a panel that is created when it is first shown: the JSX children, kept once
|
|
@@ -26633,7 +26826,8 @@ var OWN$71 = [
|
|
|
26633
26826
|
"hint",
|
|
26634
26827
|
"closable",
|
|
26635
26828
|
"lazy",
|
|
26636
|
-
"keepAlive"
|
|
26829
|
+
"keepAlive",
|
|
26830
|
+
"padding"
|
|
26637
26831
|
];
|
|
26638
26832
|
var PARTS$27 = Symbol("mx.tab");
|
|
26639
26833
|
/**
|
|
@@ -26664,6 +26858,7 @@ var Tab = class extends Control {
|
|
|
26664
26858
|
else put(parts.headerPart, "title", null);
|
|
26665
26859
|
});
|
|
26666
26860
|
this.observeProperty("closable", () => this.renderClose());
|
|
26861
|
+
this.observeProperty("padding", () => this.renderPadding());
|
|
26667
26862
|
this.observeProperty("key", () => parts.owner?.tabChanged(this));
|
|
26668
26863
|
this.observeProperty("lazy", () => parts.owner?.tabChanged(this));
|
|
26669
26864
|
this.motif.setDisposable(() => {
|
|
@@ -26727,6 +26922,13 @@ var Tab = class extends Control {
|
|
|
26727
26922
|
set keepAlive(value) {
|
|
26728
26923
|
this.assignProperty("keepAlive", value);
|
|
26729
26924
|
}
|
|
26925
|
+
/** This tab's own setting. `undefined` inherits from the `Tabs`. */
|
|
26926
|
+
get padding() {
|
|
26927
|
+
return this.getProperty("padding");
|
|
26928
|
+
}
|
|
26929
|
+
set padding(value) {
|
|
26930
|
+
this.assignProperty("padding", value);
|
|
26931
|
+
}
|
|
26730
26932
|
/** Indicates whether the tab shows a close button: its own `closable`, otherwise that of the `Tabs`. Reactive. */
|
|
26731
26933
|
get isClosable() {
|
|
26732
26934
|
return this.closable ?? this.parts.owner?.closable ?? false;
|
|
@@ -26787,6 +26989,7 @@ var Tab = class extends Control {
|
|
|
26787
26989
|
this.showPanel(false, true);
|
|
26788
26990
|
}
|
|
26789
26991
|
this.renderClose();
|
|
26992
|
+
this.renderPadding();
|
|
26790
26993
|
}
|
|
26791
26994
|
/** @internal Shows or hides the panel; the Tabs decides. */
|
|
26792
26995
|
showPanel(on, keepAlive) {
|
|
@@ -26811,6 +27014,15 @@ var Tab = class extends Control {
|
|
|
26811
27014
|
updatePanelFocus() {
|
|
26812
27015
|
if (this.parts.shown) put(this, "tabindex", holdsFocusable(this) ? null : "0");
|
|
26813
27016
|
}
|
|
27017
|
+
/** @internal The panel's padding: its own `padding`, otherwise that of the `Tabs`, otherwise the look's. */
|
|
27018
|
+
renderPadding() {
|
|
27019
|
+
const value = this.peekProperty("padding") ?? this.parts.owner?.peekPadding();
|
|
27020
|
+
setPadding(this, value);
|
|
27021
|
+
const [start, end = start, , inlineStart = end] = spaceValue(value).split(" ").filter(Boolean);
|
|
27022
|
+
css(this, "--_panel-block-start", start ?? "");
|
|
27023
|
+
css(this, "--_panel-inline-end", end ?? "");
|
|
27024
|
+
css(this, "--_panel-inline-start", inlineStart ?? "");
|
|
27025
|
+
}
|
|
26814
27026
|
/** @internal The `Tabs` closable setting changed. */
|
|
26815
27027
|
renderClose() {
|
|
26816
27028
|
const parts = this.parts;
|
|
@@ -26922,6 +27134,7 @@ var OWN$70 = [
|
|
|
26922
27134
|
"closable",
|
|
26923
27135
|
"lazy",
|
|
26924
27136
|
"keepAlive",
|
|
27137
|
+
"padding",
|
|
26925
27138
|
"selectedIndex",
|
|
26926
27139
|
"value"
|
|
26927
27140
|
];
|
|
@@ -26988,6 +27201,9 @@ var Tabs = class extends Control {
|
|
|
26988
27201
|
});
|
|
26989
27202
|
this.observeProperty("closable", () => this.refreshTabs());
|
|
26990
27203
|
this.observeProperty("lazy", () => this.refreshTabs());
|
|
27204
|
+
this.observeProperty("padding", () => {
|
|
27205
|
+
for (const tab of this.tabsNow()) tab.renderPadding();
|
|
27206
|
+
});
|
|
26991
27207
|
this.observeProperty("scrollButtons", () => this.queueOverflow());
|
|
26992
27208
|
for (const name of OWN$70) if (own[name] !== void 0) this.bindProperty(name, own[name]);
|
|
26993
27209
|
if (own.label !== void 0) this.bindProperty("text", own.label);
|
|
@@ -27087,6 +27303,12 @@ var Tabs = class extends Control {
|
|
|
27087
27303
|
set keepAlive(value) {
|
|
27088
27304
|
this.assignProperty("keepAlive", value, Boolean);
|
|
27089
27305
|
}
|
|
27306
|
+
get padding() {
|
|
27307
|
+
return this.getProperty("padding");
|
|
27308
|
+
}
|
|
27309
|
+
set padding(value) {
|
|
27310
|
+
this.assignProperty("padding", value);
|
|
27311
|
+
}
|
|
27090
27312
|
/** Occurs before the user selects a tab. Set `e.cancel = true` to keep the current tab. */
|
|
27091
27313
|
get onSelecting() {
|
|
27092
27314
|
return this.parts.selecting.event;
|
|
@@ -27161,6 +27383,10 @@ var Tabs = class extends Control {
|
|
|
27161
27383
|
super.applyProperty(name, value);
|
|
27162
27384
|
if (name === "value" || name === "selectedIndex") this.selectFrom(name, value);
|
|
27163
27385
|
}
|
|
27386
|
+
/** @internal `padding` without tracking it. */
|
|
27387
|
+
peekPadding() {
|
|
27388
|
+
return this.peekProperty("padding");
|
|
27389
|
+
}
|
|
27164
27390
|
/** @internal `closable` without tracking it. */
|
|
27165
27391
|
peekClosable() {
|
|
27166
27392
|
return !!this.peekProperty("closable");
|
|
@@ -28624,6 +28850,7 @@ var OWN$68 = [
|
|
|
28624
28850
|
"labelMode",
|
|
28625
28851
|
"readOnly"
|
|
28626
28852
|
];
|
|
28853
|
+
var BREAKPOINTS$7 = Symbol("mx.form-layout.breakpoints");
|
|
28627
28854
|
var PARTS$24 = Symbol("mx.formlayout");
|
|
28628
28855
|
/** Props an editor takes from its item, given again by `refresh`. */
|
|
28629
28856
|
var ITEM_PROPS = [
|
|
@@ -28654,11 +28881,8 @@ var FormLayout = class FormLayout extends Control {
|
|
|
28654
28881
|
this.class.add("mx-form-layout");
|
|
28655
28882
|
mark(this, "novalidate", true);
|
|
28656
28883
|
for (const name of OWN$68) if (own[name] !== void 0) this.bindProperty(name, own[name]);
|
|
28657
|
-
this.observeProperty("columns", (n) =>
|
|
28658
|
-
this.observeProperty("minColumnWidth", (width) =>
|
|
28659
|
-
css(this, "--_form-min", width || "");
|
|
28660
|
-
mark(this, "data-fluid", !!width);
|
|
28661
|
-
});
|
|
28884
|
+
this.observeProperty("columns", (n) => this.drawColumns(n));
|
|
28885
|
+
this.observeProperty("minColumnWidth", (width) => this.drawMinWidth(width));
|
|
28662
28886
|
this.motif.on("submit", (_, e) => {
|
|
28663
28887
|
e.preventDefault();
|
|
28664
28888
|
this.submit(e);
|
|
@@ -28704,6 +28928,12 @@ var FormLayout = class FormLayout extends Control {
|
|
|
28704
28928
|
set labelMode(value) {
|
|
28705
28929
|
this.assignProperty("labelMode", value);
|
|
28706
28930
|
}
|
|
28931
|
+
/**
|
|
28932
|
+
* The breakpoint of the room the form is laid out in, by which its values per breakpoint are picked. Reactive.
|
|
28933
|
+
*/
|
|
28934
|
+
get breakpoint() {
|
|
28935
|
+
return this.breakpoints.breakpoint;
|
|
28936
|
+
}
|
|
28707
28937
|
get readOnly() {
|
|
28708
28938
|
return !!this.getProperty("readOnly");
|
|
28709
28939
|
}
|
|
@@ -28797,6 +29027,32 @@ var FormLayout = class FormLayout extends Control {
|
|
|
28797
29027
|
for (let c = part; c && c !== this; c = c.parent) if (hidden.has(c)) return true;
|
|
28798
29028
|
return false;
|
|
28799
29029
|
}
|
|
29030
|
+
drawColumns(n) {
|
|
29031
|
+
css(this, "--_form-columns", String(Math.max(1, this.at(n) || 1)));
|
|
29032
|
+
}
|
|
29033
|
+
drawMinWidth(width) {
|
|
29034
|
+
const at = this.at(width);
|
|
29035
|
+
css(this, "--_form-min", at || "");
|
|
29036
|
+
mark(this, "data-fluid", !!at);
|
|
29037
|
+
}
|
|
29038
|
+
/**
|
|
29039
|
+
* A value at the form's breakpoint now: one per breakpoint starts following its width. Read in a binding, it is read
|
|
29040
|
+
* again when the breakpoint changes.
|
|
29041
|
+
*/
|
|
29042
|
+
at(value) {
|
|
29043
|
+
return isPerBreakpoint(value) ? this.breakpoints.pick(value) : value;
|
|
29044
|
+
}
|
|
29045
|
+
get breakpoints() {
|
|
29046
|
+
const self = this;
|
|
29047
|
+
return self[BREAKPOINTS$7] ??= new BreakpointFollow(this, () => this.redraw());
|
|
29048
|
+
}
|
|
29049
|
+
/** The breakpoint changed: the form's columns again (the bindings that picked a value per breakpoint follow it). */
|
|
29050
|
+
redraw() {
|
|
29051
|
+
const columns = this.peekProperty("columns");
|
|
29052
|
+
if (isPerBreakpoint(columns)) this.drawColumns(columns);
|
|
29053
|
+
const width = this.peekProperty("minColumnWidth");
|
|
29054
|
+
if (isPerBreakpoint(width)) this.drawMinWidth(width);
|
|
29055
|
+
}
|
|
28800
29056
|
get formParts() {
|
|
28801
29057
|
const self = this;
|
|
28802
29058
|
return self[PARTS$24] ??= {
|
|
@@ -28941,7 +29197,7 @@ var FormLayout = class FormLayout extends Control {
|
|
|
28941
29197
|
});
|
|
28942
29198
|
cellPart.bindings.watch(() => {
|
|
28943
29199
|
const item = cell.item.value;
|
|
28944
|
-
const span = item.colSpan ?? (item.items || item.tabs ? "all" : void 0);
|
|
29200
|
+
const span = this.at(item.colSpan) ?? (item.items || item.tabs ? "all" : void 0);
|
|
28945
29201
|
untracked(() => {
|
|
28946
29202
|
put(cellPart, "data-span", span === "all" ? "all" : null);
|
|
28947
29203
|
css(cellPart, "--_form-span", typeof span === "number" && span > 1 ? String(span) : "");
|
|
@@ -28986,7 +29242,7 @@ var FormLayout = class FormLayout extends Control {
|
|
|
28986
29242
|
/** The columns of a group or a tab, as its item gives them now. */
|
|
28987
29243
|
gridColumns(grid, read) {
|
|
28988
29244
|
grid.bindings.watch(() => {
|
|
28989
|
-
const n = read();
|
|
29245
|
+
const n = this.at(read());
|
|
28990
29246
|
untracked(() => css(grid, "--_form-columns", n ? String(n) : ""));
|
|
28991
29247
|
});
|
|
28992
29248
|
}
|
|
@@ -29080,7 +29336,7 @@ var FormLayout = class FormLayout extends Control {
|
|
|
29080
29336
|
label: item.label ?? field,
|
|
29081
29337
|
value,
|
|
29082
29338
|
validationGroup: this.formParts.group,
|
|
29083
|
-
labelMode: () => this.getProperty("labelMode"),
|
|
29339
|
+
labelMode: () => this.at(this.getProperty("labelMode")),
|
|
29084
29340
|
readOnly: () => {
|
|
29085
29341
|
parts.version.value;
|
|
29086
29342
|
return !!this.getProperty("readOnly") || givenField(cell.item.value, "readOnly") === true;
|
|
@@ -30653,6 +30909,7 @@ var ChatQuestionView = class {
|
|
|
30653
30909
|
rows: 1,
|
|
30654
30910
|
autoGrow: true,
|
|
30655
30911
|
maxRows: 12,
|
|
30912
|
+
stretch: true,
|
|
30656
30913
|
submitOnEnter: true,
|
|
30657
30914
|
onEnter: () => this.sendEdit()
|
|
30658
30915
|
});
|
|
@@ -35706,51 +35963,13 @@ function followPointer(on, e, move, end, frame) {
|
|
|
35706
35963
|
on.motif.on("pointercancel", onUp);
|
|
35707
35964
|
}
|
|
35708
35965
|
//#endregion
|
|
35709
|
-
//#region src/components/layout/space-value.ts
|
|
35710
|
-
var STEPS$1 = /* @__PURE__ */ new Set([
|
|
35711
|
-
"xxs",
|
|
35712
|
-
"xs",
|
|
35713
|
-
"sm",
|
|
35714
|
-
"md",
|
|
35715
|
-
"lg",
|
|
35716
|
-
"xl",
|
|
35717
|
-
"xxl"
|
|
35718
|
-
]);
|
|
35719
|
-
/** One CSS value per word: a step becomes its token and a bare number becomes pixels. Returns `''` for no value. */
|
|
35720
|
-
function spaceValue(value) {
|
|
35721
|
-
if (value === null || value === void 0 || value === "") return "";
|
|
35722
|
-
if (typeof value === "number") return `${value}px`;
|
|
35723
|
-
return value.trim().split(/\s+/).map((word) => STEPS$1.has(word) ? `var(--mx-layout-space-${word})` : /^-?\d*\.?\d+$/.test(word) ? `${word}px` : word).join(" ");
|
|
35724
|
-
}
|
|
35725
|
-
//#endregion
|
|
35726
|
-
//#region src/components/layout/set-padding.ts
|
|
35727
|
-
var SIDES$4 = [
|
|
35728
|
-
"padding-block-start",
|
|
35729
|
-
"padding-inline-end",
|
|
35730
|
-
"padding-block-end",
|
|
35731
|
-
"padding-inline-start"
|
|
35732
|
-
];
|
|
35733
|
-
/**
|
|
35734
|
-
* Writes a padding the way CSS reads one to four values (block-start, inline-end, block-end,
|
|
35735
|
-
* inline-start), on the logical sides, so it follows the reading direction.
|
|
35736
|
-
*/
|
|
35737
|
-
function setPadding(part, value) {
|
|
35738
|
-
const [start, end = start, blockEnd = start, inlineStart = end] = spaceValue(value).split(" ").filter(Boolean);
|
|
35739
|
-
const values = [
|
|
35740
|
-
start,
|
|
35741
|
-
end,
|
|
35742
|
-
blockEnd,
|
|
35743
|
-
inlineStart
|
|
35744
|
-
];
|
|
35745
|
-
SIDES$4.forEach((side, i) => css(part, side, values[i] ?? ""));
|
|
35746
|
-
}
|
|
35747
|
-
//#endregion
|
|
35748
35966
|
//#region src/components/layout/Panel.ts
|
|
35749
35967
|
var OWN$55 = [
|
|
35750
35968
|
"scrollable",
|
|
35751
35969
|
"padding",
|
|
35752
35970
|
"variant"
|
|
35753
35971
|
];
|
|
35972
|
+
var BREAKPOINTS$6 = Symbol("mx.panel.breakpoints");
|
|
35754
35973
|
function scrollOf(value) {
|
|
35755
35974
|
if (value === true) return "both";
|
|
35756
35975
|
return value || null;
|
|
@@ -35772,7 +35991,7 @@ var Panel = class extends Control {
|
|
|
35772
35991
|
this.class.add("mx-panel");
|
|
35773
35992
|
this.observeProperty("text", (text) => this.renderName(text));
|
|
35774
35993
|
this.observeProperty("scrollable", () => this.renderScroll());
|
|
35775
|
-
this.observeProperty("padding", (padding) => setPadding(this, padding));
|
|
35994
|
+
this.observeProperty("padding", (padding) => setPadding(this, this.at(padding)));
|
|
35776
35995
|
this.observeProperty("variant", (variant) => put(this, "data-variant", variant ?? "plain"));
|
|
35777
35996
|
for (const name of OWN$55) if (own[name] !== void 0) this.bindProperty(name, own[name]);
|
|
35778
35997
|
if (this.childs?.length) this.controls.add(...this.childs);
|
|
@@ -35789,6 +36008,12 @@ var Panel = class extends Control {
|
|
|
35789
36008
|
set padding(value) {
|
|
35790
36009
|
this.assignProperty("padding", value);
|
|
35791
36010
|
}
|
|
36011
|
+
/**
|
|
36012
|
+
* The breakpoint of the room the panel is laid out in, by which its values per breakpoint are picked. Reactive.
|
|
36013
|
+
*/
|
|
36014
|
+
get breakpoint() {
|
|
36015
|
+
return this.breakpoints.breakpoint;
|
|
36016
|
+
}
|
|
35792
36017
|
get variant() {
|
|
35793
36018
|
return this.getProperty("variant") ?? "plain";
|
|
35794
36019
|
}
|
|
@@ -35802,6 +36027,18 @@ var Panel = class extends Control {
|
|
|
35802
36027
|
if (name === "tabStop") this.renderScroll();
|
|
35803
36028
|
else super.applyProperty(name, value);
|
|
35804
36029
|
}
|
|
36030
|
+
/** A value at the panel's breakpoint now: one per breakpoint starts following its width. */
|
|
36031
|
+
at(value) {
|
|
36032
|
+
return isPerBreakpoint(value) ? this.breakpoints.pick(value) : value;
|
|
36033
|
+
}
|
|
36034
|
+
get breakpoints() {
|
|
36035
|
+
const self = this;
|
|
36036
|
+
return self[BREAKPOINTS$6] ??= new BreakpointFollow(this, () => this.redraw());
|
|
36037
|
+
}
|
|
36038
|
+
/** The breakpoint changed: every value given per breakpoint again. */
|
|
36039
|
+
redraw() {
|
|
36040
|
+
setPadding(this, this.at(this.peekProperty("padding")));
|
|
36041
|
+
}
|
|
35805
36042
|
renderName(text) {
|
|
35806
36043
|
if (text) {
|
|
35807
36044
|
put(this, "role", "region");
|
|
@@ -39156,6 +39393,7 @@ var OWN$47 = [
|
|
|
39156
39393
|
"modal",
|
|
39157
39394
|
"content",
|
|
39158
39395
|
"footer",
|
|
39396
|
+
"padding",
|
|
39159
39397
|
"icon",
|
|
39160
39398
|
"showClose",
|
|
39161
39399
|
"showMinimize",
|
|
@@ -39280,6 +39518,7 @@ var MxForm = class MxForm extends FocusContainer {
|
|
|
39280
39518
|
this.observeProperty("height", (height) => this.renderSize("height", lengthOf(height) ?? ""));
|
|
39281
39519
|
this.observeProperty("content", () => this.placeContent());
|
|
39282
39520
|
this.observeProperty("footer", () => this.placeFooter());
|
|
39521
|
+
this.observeProperty("padding", (padding) => setPadding(this.parts.contentPart, padding));
|
|
39283
39522
|
this.observeProperty("minimizeTarget", (given) => this.takeTarget(given));
|
|
39284
39523
|
if (own.onLoaded) this.onLoaded(own.onLoaded);
|
|
39285
39524
|
if (own.onShown) this.onShown(own.onShown);
|
|
@@ -39363,6 +39602,12 @@ var MxForm = class MxForm extends FocusContainer {
|
|
|
39363
39602
|
set showMaximize(value) {
|
|
39364
39603
|
this.assignProperty("showMaximize", value, Boolean);
|
|
39365
39604
|
}
|
|
39605
|
+
get padding() {
|
|
39606
|
+
return this.getProperty("padding");
|
|
39607
|
+
}
|
|
39608
|
+
set padding(value) {
|
|
39609
|
+
this.assignProperty("padding", value);
|
|
39610
|
+
}
|
|
39366
39611
|
get resizable() {
|
|
39367
39612
|
return this.getProperty("resizable") ?? true;
|
|
39368
39613
|
}
|
|
@@ -118225,9 +118470,21 @@ var LOOK = [
|
|
|
118225
118470
|
"inline"
|
|
118226
118471
|
];
|
|
118227
118472
|
var CHILDREN$2 = Symbol("mx.stack");
|
|
118473
|
+
var BREAKPOINTS$5 = Symbol("mx.stack.breakpoints");
|
|
118474
|
+
/** The props that take values per breakpoint. */
|
|
118475
|
+
var RESPONSIVE$1 = [
|
|
118476
|
+
"orientation",
|
|
118477
|
+
"gap",
|
|
118478
|
+
"padding",
|
|
118479
|
+
"align",
|
|
118480
|
+
"justify",
|
|
118481
|
+
"wrap",
|
|
118482
|
+
"reverse"
|
|
118483
|
+
];
|
|
118228
118484
|
/**
|
|
118229
118485
|
* Children in a row or a column with a gap between them, aligned across the direction and spread
|
|
118230
|
-
* along it, with optional wrapping. A child that sets `grow` takes the free space.
|
|
118486
|
+
* along it, with optional wrapping. A child that sets `grow` takes the free space. Every prop but `inline`, and `grow`,
|
|
118487
|
+
* also takes values per breakpoint of the room the stack is laid out in (`orientation={{ xs: 'vertical', md: 'horizontal' }}`).
|
|
118231
118488
|
*
|
|
118232
118489
|
* @example
|
|
118233
118490
|
* <Stack orientation="horizontal" gap="sm" align="center">
|
|
@@ -118244,8 +118501,8 @@ var Stack = class extends Control {
|
|
|
118244
118501
|
const own = this.props ?? {};
|
|
118245
118502
|
this.class.add("mx-stack");
|
|
118246
118503
|
for (const name of LOOK) this.observeProperty(name, () => this.renderLook());
|
|
118247
|
-
this.observeProperty("gap", (gap) => setSpace(this, "--_gap", gap));
|
|
118248
|
-
this.observeProperty("padding", (padding) => setPadding(this, padding));
|
|
118504
|
+
this.observeProperty("gap", (gap) => setSpace(this, "--_gap", this.at(gap)));
|
|
118505
|
+
this.observeProperty("padding", (padding) => setPadding(this, this.at(padding)));
|
|
118249
118506
|
for (const name of OWN$9) if (own[name] !== void 0) this.bindProperty(name, own[name]);
|
|
118250
118507
|
this.settings;
|
|
118251
118508
|
if (this.childs?.length) this.controls.add(...this.childs);
|
|
@@ -118281,16 +118538,16 @@ var Stack = class extends Control {
|
|
|
118281
118538
|
this.assignProperty("justify", value);
|
|
118282
118539
|
}
|
|
118283
118540
|
get wrap() {
|
|
118284
|
-
return
|
|
118541
|
+
return this.getProperty("wrap") ?? false;
|
|
118285
118542
|
}
|
|
118286
118543
|
set wrap(value) {
|
|
118287
|
-
this.assignProperty("wrap", value
|
|
118544
|
+
this.assignProperty("wrap", value);
|
|
118288
118545
|
}
|
|
118289
118546
|
get reverse() {
|
|
118290
|
-
return
|
|
118547
|
+
return this.getProperty("reverse") ?? false;
|
|
118291
118548
|
}
|
|
118292
118549
|
set reverse(value) {
|
|
118293
|
-
this.assignProperty("reverse", value
|
|
118550
|
+
this.assignProperty("reverse", value);
|
|
118294
118551
|
}
|
|
118295
118552
|
get inline() {
|
|
118296
118553
|
return !!this.getProperty("inline");
|
|
@@ -118298,6 +118555,12 @@ var Stack = class extends Control {
|
|
|
118298
118555
|
set inline(value) {
|
|
118299
118556
|
this.assignProperty("inline", value, Boolean);
|
|
118300
118557
|
}
|
|
118558
|
+
/**
|
|
118559
|
+
* The breakpoint of the room the stack is laid out in, by which its values per breakpoint are picked. Reactive.
|
|
118560
|
+
*/
|
|
118561
|
+
get breakpoint() {
|
|
118562
|
+
return this.breakpoints.breakpoint;
|
|
118563
|
+
}
|
|
118301
118564
|
/** The `grow` of a child, from its props or as set with {@link setGrow}. */
|
|
118302
118565
|
growOf(child) {
|
|
118303
118566
|
return this.settings.get(child, "grow") ?? false;
|
|
@@ -118310,12 +118573,7 @@ var Stack = class extends Control {
|
|
|
118310
118573
|
const self = this;
|
|
118311
118574
|
if (self[CHILDREN$2]) return self[CHILDREN$2];
|
|
118312
118575
|
self[CHILDREN$2] = new ChildSettings(this, ["grow"], {
|
|
118313
|
-
changed: (child) =>
|
|
118314
|
-
const grow = this.settings.get(child, "grow");
|
|
118315
|
-
const amount = grow === true ? 1 : typeof grow === "number" && grow > 0 ? grow : 0;
|
|
118316
|
-
css(child, "flex-grow", amount ? String(amount) : "");
|
|
118317
|
-
mark(child, "data-mx-grow", !!amount);
|
|
118318
|
-
},
|
|
118576
|
+
changed: (child) => this.placeChild(child),
|
|
118319
118577
|
left: (child) => {
|
|
118320
118578
|
css(child, "flex-grow", "");
|
|
118321
118579
|
mark(child, "data-mx-grow", false);
|
|
@@ -118323,14 +118581,37 @@ var Stack = class extends Control {
|
|
|
118323
118581
|
});
|
|
118324
118582
|
return self[CHILDREN$2].addPresent();
|
|
118325
118583
|
}
|
|
118584
|
+
placeChild(child) {
|
|
118585
|
+
const grow = this.at(this.settings.get(child, "grow"));
|
|
118586
|
+
const amount = grow === true ? 1 : typeof grow === "number" && grow > 0 ? grow : 0;
|
|
118587
|
+
css(child, "flex-grow", amount ? String(amount) : "");
|
|
118588
|
+
mark(child, "data-mx-grow", !!amount);
|
|
118589
|
+
}
|
|
118326
118590
|
renderLook() {
|
|
118327
|
-
put(this, "data-orientation", this.peekProperty("orientation") ?? "vertical");
|
|
118328
|
-
put(this, "data-align", this.peekProperty("align") ?? "stretch");
|
|
118329
|
-
put(this, "data-justify", this.peekProperty("justify") ?? "start");
|
|
118330
|
-
mark(this, "data-wrap", !!this.peekProperty("wrap"));
|
|
118331
|
-
mark(this, "data-reverse", !!this.peekProperty("reverse"));
|
|
118591
|
+
put(this, "data-orientation", this.at(this.peekProperty("orientation")) ?? "vertical");
|
|
118592
|
+
put(this, "data-align", this.at(this.peekProperty("align")) ?? "stretch");
|
|
118593
|
+
put(this, "data-justify", this.at(this.peekProperty("justify")) ?? "start");
|
|
118594
|
+
mark(this, "data-wrap", !!this.at(this.peekProperty("wrap")));
|
|
118595
|
+
mark(this, "data-reverse", !!this.at(this.peekProperty("reverse")));
|
|
118332
118596
|
mark(this, "data-inline", !!this.peekProperty("inline"));
|
|
118333
118597
|
}
|
|
118598
|
+
/** A value at the stack's breakpoint now: one per breakpoint starts following its width. */
|
|
118599
|
+
at(value) {
|
|
118600
|
+
return isPerBreakpoint(value) ? this.breakpoints.pick(value) : value;
|
|
118601
|
+
}
|
|
118602
|
+
get breakpoints() {
|
|
118603
|
+
const self = this;
|
|
118604
|
+
return self[BREAKPOINTS$5] ??= new BreakpointFollow(this, () => this.redraw());
|
|
118605
|
+
}
|
|
118606
|
+
/** The breakpoint changed: every value given per breakpoint again. */
|
|
118607
|
+
redraw() {
|
|
118608
|
+
if (RESPONSIVE$1.some((name) => isPerBreakpoint(this.peekProperty(name)))) {
|
|
118609
|
+
this.renderLook();
|
|
118610
|
+
setSpace(this, "--_gap", this.at(this.peekProperty("gap")));
|
|
118611
|
+
setPadding(this, this.at(this.peekProperty("padding")));
|
|
118612
|
+
}
|
|
118613
|
+
for (const child of this.settings.children) this.placeChild(child);
|
|
118614
|
+
}
|
|
118334
118615
|
};
|
|
118335
118616
|
//#endregion
|
|
118336
118617
|
//#region src/parts/recurrence/format-rule-date.ts
|
|
@@ -131142,6 +131423,22 @@ var PLACEMENT = [
|
|
|
131142
131423
|
"grid-column-end"
|
|
131143
131424
|
];
|
|
131144
131425
|
var CHILDREN$1 = Symbol("mx.grid");
|
|
131426
|
+
var BREAKPOINTS$4 = Symbol("mx.grid.breakpoints");
|
|
131427
|
+
/** How each prop that takes values per breakpoint is written, from its value at the grid's breakpoint now. */
|
|
131428
|
+
var DRAWS = {
|
|
131429
|
+
rows: (grid, rows) => css(grid, "grid-template-rows", trackList(rows)),
|
|
131430
|
+
columns: (grid, columns) => css(grid, "grid-template-columns", trackList(columns)),
|
|
131431
|
+
autoRows: (grid, rows) => css(grid, "grid-auto-rows", trackList(typeof rows === "number" ? [rows] : rows)),
|
|
131432
|
+
autoColumns: (grid, columns) => css(grid, "grid-auto-columns", trackList(typeof columns === "number" ? [columns] : columns)),
|
|
131433
|
+
gap: (grid, gap) => setSpace(grid, "--_gap", gap),
|
|
131434
|
+
rowGap: (grid, gap) => setSpace(grid, "--_row-gap", gap),
|
|
131435
|
+
columnGap: (grid, gap) => setSpace(grid, "--_column-gap", gap),
|
|
131436
|
+
padding: (grid, padding) => setPadding(grid, padding),
|
|
131437
|
+
flow: (grid, flow) => css(grid, "grid-auto-flow", flow ?? ""),
|
|
131438
|
+
align: (grid, align) => put(grid, "data-align", align ?? "stretch"),
|
|
131439
|
+
justify: (grid, justify) => put(grid, "data-justify", justify ?? "stretch")
|
|
131440
|
+
};
|
|
131441
|
+
var RESPONSIVE = Object.keys(DRAWS);
|
|
131145
131442
|
/** A line for CSS: a number as it is, a string passed through. */
|
|
131146
131443
|
function line(value) {
|
|
131147
131444
|
return typeof value === "number" || typeof value === "string" ? String(value) : "";
|
|
@@ -131153,7 +131450,8 @@ function span(value) {
|
|
|
131153
131450
|
/**
|
|
131154
131451
|
* Rows and columns defined up front, in a CSS-like form (`columns="auto 1fr 2fr 120"`). Children fill
|
|
131155
131452
|
* the cells in order, or declare their position in their own props: `row`, `column`, `rowSpan` and
|
|
131156
|
-
* `columnSpan`, counted from 1.
|
|
131453
|
+
* `columnSpan`, counted from 1. Every prop but `inline`, and every cell, also takes values per breakpoint of the
|
|
131454
|
+
* room the grid is laid out in (`columns={{ xs: 1, md: '240 1fr' }}`).
|
|
131157
131455
|
*
|
|
131158
131456
|
* @example
|
|
131159
131457
|
* <Grid columns="auto 1fr" gap="sm">
|
|
@@ -131169,17 +131467,7 @@ var Grid = class extends Control {
|
|
|
131169
131467
|
super("div", props);
|
|
131170
131468
|
const own = this.props ?? {};
|
|
131171
131469
|
this.class.add("mx-grid");
|
|
131172
|
-
this.observeProperty(
|
|
131173
|
-
this.observeProperty("columns", (columns) => this.writeStyle("grid-template-columns", trackList(columns)));
|
|
131174
|
-
this.observeProperty("autoRows", (rows) => this.writeStyle("grid-auto-rows", trackList(typeof rows === "number" ? [rows] : rows)));
|
|
131175
|
-
this.observeProperty("autoColumns", (columns) => this.writeStyle("grid-auto-columns", trackList(typeof columns === "number" ? [columns] : columns)));
|
|
131176
|
-
this.observeProperty("gap", (gap) => setSpace(this, "--_gap", gap));
|
|
131177
|
-
this.observeProperty("rowGap", (gap) => setSpace(this, "--_row-gap", gap));
|
|
131178
|
-
this.observeProperty("columnGap", (gap) => setSpace(this, "--_column-gap", gap));
|
|
131179
|
-
this.observeProperty("padding", (padding) => setPadding(this, padding));
|
|
131180
|
-
this.observeProperty("flow", (flow) => this.writeStyle("grid-auto-flow", flow ?? ""));
|
|
131181
|
-
this.observeProperty("align", (align) => put(this, "data-align", align ?? "stretch"));
|
|
131182
|
-
this.observeProperty("justify", (justify) => put(this, "data-justify", justify ?? "stretch"));
|
|
131470
|
+
for (const name of RESPONSIVE) this.observeProperty(name, (value) => DRAWS[name](this, this.at(value)));
|
|
131183
131471
|
this.observeProperty("inline", (inline) => mark(this, "data-inline", !!inline));
|
|
131184
131472
|
for (const name of OWN$6) if (own[name] !== void 0) this.bindProperty(name, own[name]);
|
|
131185
131473
|
this.settings;
|
|
@@ -131257,6 +131545,12 @@ var Grid = class extends Control {
|
|
|
131257
131545
|
set inline(value) {
|
|
131258
131546
|
this.assignProperty("inline", value, Boolean);
|
|
131259
131547
|
}
|
|
131548
|
+
/**
|
|
131549
|
+
* The breakpoint of the room the grid is laid out in, by which its values per breakpoint are picked. Reactive.
|
|
131550
|
+
*/
|
|
131551
|
+
get breakpoint() {
|
|
131552
|
+
return this.breakpoints.breakpoint;
|
|
131553
|
+
}
|
|
131260
131554
|
/** The cell of a child, from its props or as set with {@link setCell}. */
|
|
131261
131555
|
cellOf(child) {
|
|
131262
131556
|
const cell = {};
|
|
@@ -131274,24 +131568,35 @@ var Grid = class extends Control {
|
|
|
131274
131568
|
const self = this;
|
|
131275
131569
|
if (self[CHILDREN$1]) return self[CHILDREN$1];
|
|
131276
131570
|
self[CHILDREN$1] = new ChildSettings(this, CELL, {
|
|
131277
|
-
changed: (child) =>
|
|
131278
|
-
const get = (name) => this.settings.get(child, name);
|
|
131279
|
-
this.place(child, "grid-row-start", line(get("row")));
|
|
131280
|
-
this.place(child, "grid-row-end", span(get("rowSpan")));
|
|
131281
|
-
this.place(child, "grid-column-start", line(get("column")));
|
|
131282
|
-
this.place(child, "grid-column-end", span(get("columnSpan")));
|
|
131283
|
-
},
|
|
131571
|
+
changed: (child) => this.placeChild(child),
|
|
131284
131572
|
left: (child) => {
|
|
131285
131573
|
for (const name of PLACEMENT) css(child, name, "");
|
|
131286
131574
|
}
|
|
131287
131575
|
});
|
|
131288
131576
|
return self[CHILDREN$1].addPresent();
|
|
131289
131577
|
}
|
|
131290
|
-
|
|
131291
|
-
|
|
131578
|
+
placeChild(child) {
|
|
131579
|
+
const get = (name) => this.at(this.settings.get(child, name));
|
|
131580
|
+
css(child, "grid-row-start", line(get("row")));
|
|
131581
|
+
css(child, "grid-row-end", span(get("rowSpan")));
|
|
131582
|
+
css(child, "grid-column-start", line(get("column")));
|
|
131583
|
+
css(child, "grid-column-end", span(get("columnSpan")));
|
|
131292
131584
|
}
|
|
131293
|
-
|
|
131294
|
-
|
|
131585
|
+
/** A value at the grid's breakpoint now: one per breakpoint starts following its width. */
|
|
131586
|
+
at(value) {
|
|
131587
|
+
return isPerBreakpoint(value) ? this.breakpoints.pick(value) : value;
|
|
131588
|
+
}
|
|
131589
|
+
get breakpoints() {
|
|
131590
|
+
const self = this;
|
|
131591
|
+
return self[BREAKPOINTS$4] ??= new BreakpointFollow(this, () => this.redraw());
|
|
131592
|
+
}
|
|
131593
|
+
/** The breakpoint changed: every value given per breakpoint again. */
|
|
131594
|
+
redraw() {
|
|
131595
|
+
for (const name of RESPONSIVE) {
|
|
131596
|
+
const value = this.peekProperty(name);
|
|
131597
|
+
if (isPerBreakpoint(value)) DRAWS[name](this, this.at(value));
|
|
131598
|
+
}
|
|
131599
|
+
for (const child of this.settings.children) this.placeChild(child);
|
|
131295
131600
|
}
|
|
131296
131601
|
};
|
|
131297
131602
|
//#endregion
|
|
@@ -131304,6 +131609,7 @@ var OWN$5 = [
|
|
|
131304
131609
|
"variant"
|
|
131305
131610
|
];
|
|
131306
131611
|
var PARTS$2 = Symbol("mx.group-box");
|
|
131612
|
+
var BREAKPOINTS$3 = Symbol("mx.group-box.breakpoints");
|
|
131307
131613
|
/**
|
|
131308
131614
|
* A titled frame around related controls: a `<fieldset>` whose `<legend>` names the group for
|
|
131309
131615
|
* screen readers. `enabled = false` disables everything inside, the title's `&` key moves focus to
|
|
@@ -131326,8 +131632,8 @@ var GroupBox = class extends Control {
|
|
|
131326
131632
|
const parts = this.parts;
|
|
131327
131633
|
if (own.text === void 0 && own.title !== void 0) this.bindProperty("text", own.title);
|
|
131328
131634
|
this.observeProperty("text", (text) => this.renderTitle(text));
|
|
131329
|
-
this.observeProperty("padding", (padding) => setPadding(this, padding));
|
|
131330
|
-
this.observeProperty("gap", (gap) => setSpace(this, "--_gap", gap));
|
|
131635
|
+
this.observeProperty("padding", (padding) => setPadding(this, this.at(padding)));
|
|
131636
|
+
this.observeProperty("gap", (gap) => setSpace(this, "--_gap", this.at(gap)));
|
|
131331
131637
|
this.observeProperty("variant", (variant) => put(this, "data-variant", variant ?? "outline"));
|
|
131332
131638
|
this.observeProperty("collapsible", () => this.renderToggle());
|
|
131333
131639
|
this.observeProperty("collapsed", (collapsed) => {
|
|
@@ -131375,6 +131681,12 @@ var GroupBox = class extends Control {
|
|
|
131375
131681
|
set gap(value) {
|
|
131376
131682
|
this.assignProperty("gap", value);
|
|
131377
131683
|
}
|
|
131684
|
+
/**
|
|
131685
|
+
* The breakpoint of the room the group box is laid out in, by which its values per breakpoint are picked. Reactive.
|
|
131686
|
+
*/
|
|
131687
|
+
get breakpoint() {
|
|
131688
|
+
return this.breakpoints.breakpoint;
|
|
131689
|
+
}
|
|
131378
131690
|
get variant() {
|
|
131379
131691
|
return this.getProperty("variant") ?? "outline";
|
|
131380
131692
|
}
|
|
@@ -131449,6 +131761,19 @@ var GroupBox = class extends Control {
|
|
|
131449
131761
|
parts.byUser = false;
|
|
131450
131762
|
}
|
|
131451
131763
|
}
|
|
131764
|
+
/** A value at the group box's breakpoint now: one per breakpoint starts following its width. */
|
|
131765
|
+
at(value) {
|
|
131766
|
+
return isPerBreakpoint(value) ? this.breakpoints.pick(value) : value;
|
|
131767
|
+
}
|
|
131768
|
+
get breakpoints() {
|
|
131769
|
+
const self = this;
|
|
131770
|
+
return self[BREAKPOINTS$3] ??= new BreakpointFollow(this, () => this.redraw());
|
|
131771
|
+
}
|
|
131772
|
+
/** The breakpoint changed: every value given per breakpoint again. */
|
|
131773
|
+
redraw() {
|
|
131774
|
+
setPadding(this, this.at(this.peekProperty("padding")));
|
|
131775
|
+
setSpace(this, "--_gap", this.at(this.peekProperty("gap")));
|
|
131776
|
+
}
|
|
131452
131777
|
renderTitle(text) {
|
|
131453
131778
|
const parsed = parseAccessKey(text ?? "");
|
|
131454
131779
|
this.setAccessKey(parsed.key);
|
|
@@ -131505,6 +131830,7 @@ var LAYOUT = [
|
|
|
131505
131830
|
];
|
|
131506
131831
|
var SPLITTER = "var(--_layout-splitter-size)";
|
|
131507
131832
|
var PARTS$1 = Symbol("mx.split-container");
|
|
131833
|
+
var BREAKPOINTS$2 = Symbol("mx.split-container.breakpoints");
|
|
131508
131834
|
function isShare(position) {
|
|
131509
131835
|
return typeof position === "string" && position.trim().endsWith("%");
|
|
131510
131836
|
}
|
|
@@ -131597,6 +131923,12 @@ var SplitContainer = class extends FocusContainer {
|
|
|
131597
131923
|
get second() {
|
|
131598
131924
|
return this.parts.second;
|
|
131599
131925
|
}
|
|
131926
|
+
/**
|
|
131927
|
+
* The breakpoint of the room the container is laid out in, by which its values per breakpoint are picked. Reactive.
|
|
131928
|
+
*/
|
|
131929
|
+
get breakpoint() {
|
|
131930
|
+
return this.breakpoints.breakpoint;
|
|
131931
|
+
}
|
|
131600
131932
|
/** The splitter part (`role="separator"`). */
|
|
131601
131933
|
get splitterPart() {
|
|
131602
131934
|
return this.parts.splitter;
|
|
@@ -131720,7 +132052,19 @@ var SplitContainer = class extends FocusContainer {
|
|
|
131720
132052
|
};
|
|
131721
132053
|
}
|
|
131722
132054
|
get horizontal() {
|
|
131723
|
-
return this.peekProperty("orientation") !== "vertical";
|
|
132055
|
+
return this.at(this.peekProperty("orientation")) !== "vertical";
|
|
132056
|
+
}
|
|
132057
|
+
/** A value at the container's breakpoint now: one per breakpoint starts following its width. */
|
|
132058
|
+
at(value) {
|
|
132059
|
+
return isPerBreakpoint(value) ? this.breakpoints.pick(value) : value;
|
|
132060
|
+
}
|
|
132061
|
+
get breakpoints() {
|
|
132062
|
+
const self = this;
|
|
132063
|
+
return self[BREAKPOINTS$2] ??= new BreakpointFollow(this, () => this.redraw());
|
|
132064
|
+
}
|
|
132065
|
+
/** The breakpoint changed: every value given per breakpoint again. */
|
|
132066
|
+
redraw() {
|
|
132067
|
+
this.renderLayout();
|
|
131724
132068
|
}
|
|
131725
132069
|
route(control) {
|
|
131726
132070
|
const parts = this.parts;
|
|
@@ -131901,6 +132245,7 @@ var FACING = {
|
|
|
131901
132245
|
end: "margin-inline-start"
|
|
131902
132246
|
};
|
|
131903
132247
|
var CHILDREN = Symbol("mx.dock-panel");
|
|
132248
|
+
var BREAKPOINTS$1 = Symbol("mx.dock-panel.breakpoints");
|
|
131904
132249
|
function length(value) {
|
|
131905
132250
|
if (typeof value === "number") return `${value}px`;
|
|
131906
132251
|
return typeof value === "string" ? value : "";
|
|
@@ -131929,7 +132274,7 @@ var DockPanel = class extends Control {
|
|
|
131929
132274
|
const own = this.props ?? {};
|
|
131930
132275
|
this.class.add("mx-dock-panel");
|
|
131931
132276
|
this.observeProperty("gap", () => this.arrange());
|
|
131932
|
-
this.observeProperty("padding", (padding) => setPadding(this, padding));
|
|
132277
|
+
this.observeProperty("padding", (padding) => setPadding(this, this.at(padding)));
|
|
131933
132278
|
for (const name of OWN$3) if (own[name] !== void 0) this.bindProperty(name, own[name]);
|
|
131934
132279
|
this.settings;
|
|
131935
132280
|
if (this.childs?.length) this.controls.add(...this.childs);
|
|
@@ -131946,9 +132291,15 @@ var DockPanel = class extends Control {
|
|
|
131946
132291
|
set padding(value) {
|
|
131947
132292
|
this.assignProperty("padding", value);
|
|
131948
132293
|
}
|
|
131949
|
-
/**
|
|
132294
|
+
/**
|
|
132295
|
+
* The breakpoint of the room the panel is laid out in, by which its values per breakpoint are picked. Reactive.
|
|
132296
|
+
*/
|
|
132297
|
+
get breakpoint() {
|
|
132298
|
+
return this.breakpoints.breakpoint;
|
|
132299
|
+
}
|
|
132300
|
+
/** The dock position of a child at the panel's breakpoint now, from its props or as set with {@link setDock}. */
|
|
131950
132301
|
dockOf(child) {
|
|
131951
|
-
const dock = this.settings.get(child, "dock");
|
|
132302
|
+
const dock = this.at(this.settings.get(child, "dock"));
|
|
131952
132303
|
return dock && DOCKS.has(dock) ? dock : "fill";
|
|
131953
132304
|
}
|
|
131954
132305
|
/** Docks a child programmatically: a value, or a tracked function. */
|
|
@@ -131989,7 +132340,7 @@ var DockPanel = class extends Control {
|
|
|
131989
132340
|
].join(" ");
|
|
131990
132341
|
css(this, "grid-template-rows", tracks(tops, bottoms));
|
|
131991
132342
|
css(this, "grid-template-columns", tracks(starts, ends));
|
|
131992
|
-
const gap = spaceValue(this.peekProperty("gap"));
|
|
132343
|
+
const gap = spaceValue(this.at(this.peekProperty("gap")));
|
|
131993
132344
|
let [t, b, s, e] = [
|
|
131994
132345
|
0,
|
|
131995
132346
|
0,
|
|
@@ -132010,7 +132361,7 @@ var DockPanel = class extends Control {
|
|
|
132010
132361
|
this.write(child, "grid-row", row);
|
|
132011
132362
|
this.write(child, "grid-column", column);
|
|
132012
132363
|
for (const [side, margin] of Object.entries(FACING)) this.write(child, margin, side === dock ? gap : "");
|
|
132013
|
-
for (const [name, css] of ANCHORS) this.write(child, css, dock === "float" ? length(this.settings.get(child, name)) : "");
|
|
132364
|
+
for (const [name, css] of ANCHORS) this.write(child, css, dock === "float" ? length(this.at(this.settings.get(child, name))) : "");
|
|
132014
132365
|
});
|
|
132015
132366
|
}
|
|
132016
132367
|
clear(child) {
|
|
@@ -132025,6 +132376,19 @@ var DockPanel = class extends Control {
|
|
|
132025
132376
|
write(child, name, value) {
|
|
132026
132377
|
css(child, name, value);
|
|
132027
132378
|
}
|
|
132379
|
+
/** A value at the panel's breakpoint now: one per breakpoint starts following its width. */
|
|
132380
|
+
at(value) {
|
|
132381
|
+
return isPerBreakpoint(value) ? this.breakpoints.pick(value) : value;
|
|
132382
|
+
}
|
|
132383
|
+
get breakpoints() {
|
|
132384
|
+
const self = this;
|
|
132385
|
+
return self[BREAKPOINTS$1] ??= new BreakpointFollow(this, () => this.redraw());
|
|
132386
|
+
}
|
|
132387
|
+
/** The breakpoint changed: every value given per breakpoint again. */
|
|
132388
|
+
redraw() {
|
|
132389
|
+
setPadding(this, this.at(this.peekProperty("padding")));
|
|
132390
|
+
this.arrange();
|
|
132391
|
+
}
|
|
132028
132392
|
};
|
|
132029
132393
|
//#endregion
|
|
132030
132394
|
//#region src/parts/item-tree/ItemTree.ts
|
|
@@ -136853,6 +137217,6 @@ function connectI18n(source, target = uiLocale) {
|
|
|
136853
137217
|
return () => changed.dispose();
|
|
136854
137218
|
}
|
|
136855
137219
|
//#endregion
|
|
136856
|
-
export { Accordion, AccordionItem, ActionSheet, AppBar, AppMenu, Autocomplete, Avatar, AvatarGroup, Badge, BarGauge, Barcode, BottomNavigation, BottomSheet, Breadcrumb, Button, ButtonGroup, Calendar, Card, Chart, Chat, ChatComposer, ChatReply, ChatToolCall, ChatWriter, CheckBox, ChildSettings, Chip, ChipGroup, ColorBox, ColorPicker, ComboBox, CommandRegistry, ContextMenu, Control, DataGrid, DataItems, DateBox, DateRangeBox, Diagram, DiagramMap, DockPanel, DragGhost, Draggable, Drawer, DropDown, DropTarget, ExpressionEditor, Field, FileUploader, FilterBuilder, FilterBuilderModel, FocusContainer, FormLayout, Gallery, Gauge, Grid, GroupBox, InputMask, KeyedItems, ListBox, LoadPanel, Lookup, Markdown, MaskedText, MenuBar, MenuList, MultiView, MxForm, NumberBox, OptionList, OtpInput, OverlayPanel, Pagination, Panel, PivotGrid, Popover, Popup, ProgressBar, QRCode, RadioGroup, Rating, RecurrenceEditor, Resizable, RibbonMenu, Scheduler, ScrollView, ShortcutEditor, ShortcutRegistry, Signature, Skeleton, Slider, Sortable, Sparkline, SpeedDial, Spinner, SplitContainer, SplitPane, Splitter, Stack, Stepper, SwipeTracker, Switch, Tab, TabBarSettings, TabBrowserWindow, TabDockArea, TabDocument, TabDocumentManager, TabGroup, TabWindow, Tabs, TagBox, TextArea, TextBox, TileView, TimeZone, Timeline, Toast, Toaster, ToggleField, Toolbar, ToolbarSeparator, Tooltip, TreeModel, TreeView, UiLocale, ValidationGroup, ValidationSummary, View, WindowList, Wizard, WizardStep, addRuleDate, addShortcut, addTooltip, attachContextMenu, cardKind, checkRules, commands, confirm, connectDocument, connectI18n, datePatternOf, dateToDigits, defaultOperations, describeRecurrence, digitsToDate, disconnectDocument, enStrings, expressionProblemText, fieldsWithin, filterRuleDates, filterText, formatColor, formatRecurrenceRule, formatRuleDate, functionValue, holdBackButton, icalendarMoment, initialsOf, maskChars, messageBox, mirrorPage, pageDocuments, parseAccessKey, parseColor, parseICalendar, parseMask, parseRecurrenceRule, parseRuleDate, placePopup, rangeFilter, readItemField, readRuleDates, recurrenceDates, renderAccessKey, schemaItems, scrollStep, shortcutText, shortcuts, spaceValue, timeZoneLines, toast, toneOfName, trackList, uiLocale, validateFields, writeICalendar };
|
|
137220
|
+
export { Accordion, AccordionItem, ActionSheet, AppBar, AppMenu, Autocomplete, Avatar, AvatarGroup, BREAKPOINTS, Badge, BarGauge, Barcode, BottomNavigation, BottomSheet, Breadcrumb, Button, ButtonGroup, Calendar, Card, Chart, Chat, ChatComposer, ChatReply, ChatToolCall, ChatWriter, CheckBox, ChildSettings, Chip, ChipGroup, ColorBox, ColorPicker, ComboBox, CommandRegistry, ContextMenu, Control, DataGrid, DataItems, DateBox, DateRangeBox, Diagram, DiagramMap, DockPanel, DragGhost, Draggable, Drawer, DropDown, DropTarget, ExpressionEditor, Field, FileUploader, FilterBuilder, FilterBuilderModel, FocusContainer, FormLayout, Gallery, Gauge, Grid, GroupBox, InputMask, KeyedItems, ListBox, LoadPanel, Lookup, Markdown, MaskedText, MenuBar, MenuList, MultiView, MxForm, NumberBox, OptionList, OtpInput, OverlayPanel, Pagination, Panel, PivotGrid, Popover, Popup, ProgressBar, QRCode, RadioGroup, Rating, RecurrenceEditor, Resizable, RibbonMenu, Scheduler, ScrollView, ShortcutEditor, ShortcutRegistry, Signature, Skeleton, Slider, Sortable, Sparkline, SpeedDial, Spinner, SplitContainer, SplitPane, Splitter, Stack, Stepper, SwipeTracker, Switch, Tab, TabBarSettings, TabBrowserWindow, TabDockArea, TabDocument, TabDocumentManager, TabGroup, TabWindow, Tabs, TagBox, TextArea, TextBox, TileView, TimeZone, Timeline, Toast, Toaster, ToggleField, Toolbar, ToolbarSeparator, Tooltip, TreeModel, TreeView, UiLocale, ValidationGroup, ValidationSummary, View, WindowList, Wizard, WizardStep, addRuleDate, addShortcut, addTooltip, attachContextMenu, breakpointOf, cardKind, checkRules, commands, confirm, connectDocument, connectI18n, datePatternOf, dateToDigits, defaultOperations, describeRecurrence, digitsToDate, disconnectDocument, enStrings, expressionProblemText, fieldsWithin, filterRuleDates, filterText, formatColor, formatRecurrenceRule, formatRuleDate, functionValue, holdBackButton, icalendarMoment, initialsOf, isPerBreakpoint, maskChars, messageBox, mirrorPage, pageDocuments, parseAccessKey, parseColor, parseICalendar, parseMask, parseRecurrenceRule, parseRuleDate, placePopup, rangeFilter, readItemField, readRuleDates, recurrenceDates, renderAccessKey, schemaItems, scrollStep, shortcutText, shortcuts, spaceValue, timeZoneLines, toast, toneOfName, trackList, uiLocale, validateFields, valueAt, writeICalendar };
|
|
136857
137221
|
|
|
136858
137222
|
//# sourceMappingURL=index.js.map
|