@motifx-community/ui 0.1.0-beta.17 → 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 +57 -0
- package/dist/components/datagrid/DataGrid.d.ts +2 -1
- package/dist/components/datagrid/grid-column.d.ts +6 -0
- package/dist/components/datagrid/model/ColumnModel.d.ts +2 -0
- package/dist/components/datagrid/model/GridModel.d.ts +4 -0
- package/dist/components/datagrid/view/ColumnStyles.d.ts +7 -3
- package/dist/components/datagrid/view/GridBody.d.ts +56 -4
- 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/excel/index.js +1 -1
- package/dist/excel/index.js.map +1 -1
- package/dist/generated/tokens.d.ts +20 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +836 -126
- package/dist/index.js.map +1 -1
- package/dist/parts/table/RowHeights.d.ts +23 -0
- package/dist/parts/table/ScrollGeometry.d.ts +6 -1
- package/dist/parts/table/table-sheet-column.d.ts +2 -0
- package/dist/pdf/index.js +1 -1
- package/dist/pdf/index.js.map +1 -1
- package/dist/pdf/pdf-export-options.d.ts +4 -1
- package/dist/styles.css +93 -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 +3 -2
- 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 +77 -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 +530 -225
- 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
|
}
|
|
@@ -53682,6 +53927,11 @@ var ColumnModel = class {
|
|
|
53682
53927
|
const def = this.get(field);
|
|
53683
53928
|
return def.align ?? (def.type === "number" ? "end" : def.type === "boolean" ? "center" : "start");
|
|
53684
53929
|
}
|
|
53930
|
+
/** Whether the text of the column's cells wraps onto more lines (`wrap`); the grid's own columns never do. */
|
|
53931
|
+
wraps(field) {
|
|
53932
|
+
this.state.revision;
|
|
53933
|
+
return !this.isInternal(field) && !!readField$1(this.get(field), "wrap");
|
|
53934
|
+
}
|
|
53685
53935
|
/** Where a band's caption sits: its own, else the `bandAlign` setting. */
|
|
53686
53936
|
bandAlign(id) {
|
|
53687
53937
|
return readField$1(this.bands.get(id)?.def, "align") ?? this.settings.get("bandAlign");
|
|
@@ -60679,6 +60929,12 @@ var GridModel = class {
|
|
|
60679
60929
|
exporting: false,
|
|
60680
60930
|
acting: false
|
|
60681
60931
|
}));
|
|
60932
|
+
_defineProperty(
|
|
60933
|
+
this,
|
|
60934
|
+
/** Set when the grid is disposed: a wait for the rows ends with it. */
|
|
60935
|
+
"life",
|
|
60936
|
+
reactive({ over: false })
|
|
60937
|
+
);
|
|
60682
60938
|
_defineProperty(
|
|
60683
60939
|
this,
|
|
60684
60940
|
/** The new-row area, in display order. */
|
|
@@ -61162,6 +61418,11 @@ var GridModel = class {
|
|
|
61162
61418
|
else if (!this.loadMore()) break;
|
|
61163
61419
|
return same() && data.total >= Math.min(rows, data.knownCount ?? rows);
|
|
61164
61420
|
}
|
|
61421
|
+
/** Resolves once the rows the grid waits for have arrived, or failed to: `false` when the grid is disposed first. */
|
|
61422
|
+
async rowsLoaded() {
|
|
61423
|
+
await settled(() => this.life.over || this.state.status !== "loading");
|
|
61424
|
+
return !this.life.over;
|
|
61425
|
+
}
|
|
61165
61426
|
/** Infinite mode: what the indicator under the rows shows (`loadMoreIndicator`): a part loading, a part that failed, or nothing. Reactive. */
|
|
61166
61427
|
moreState() {
|
|
61167
61428
|
if (this.mode !== "infinite" || !this.settings.get("loadMoreIndicator")) return null;
|
|
@@ -62364,6 +62625,7 @@ var GridModel = class {
|
|
|
62364
62625
|
});
|
|
62365
62626
|
}
|
|
62366
62627
|
dispose() {
|
|
62628
|
+
this.life.over = true;
|
|
62367
62629
|
clearTimeout(this.filterTimer);
|
|
62368
62630
|
for (const s of this.dataSubscriptions.splice(0)) s.dispose();
|
|
62369
62631
|
this.events.dispose();
|
|
@@ -63991,6 +64253,7 @@ var GridExport = class {
|
|
|
63991
64253
|
title: model.columns.title(fields[j]),
|
|
63992
64254
|
width: options.widthOf(fields[j]),
|
|
63993
64255
|
align: model.columns.align(fields[j]),
|
|
64256
|
+
wrap: model.columns.wraps(fields[j]) || void 0,
|
|
63994
64257
|
numberFormat: column.type === "number" && !column.lookup ? formatter.numberOptions(column) : void 0,
|
|
63995
64258
|
dateFormat: (column.type === "date" || column.type === "datetime") && !column.lookup ? formatter.dateOptions(column) : void 0
|
|
63996
64259
|
})),
|
|
@@ -65217,8 +65480,9 @@ var ColumnMenu = class {
|
|
|
65217
65480
|
//#endregion
|
|
65218
65481
|
//#region src/components/datagrid/view/ColumnStyles.ts
|
|
65219
65482
|
var escapeAttr = (v) => v.replace(/["\\]/g, "\\$&");
|
|
65483
|
+
var NO_WRAP = /* @__PURE__ */ new Set();
|
|
65220
65484
|
/**
|
|
65221
|
-
* Per-column CSS of one grid: columns not shown, the tracks of the columns pinned to the end, alignment and sticky offsets, written as rules keyed
|
|
65485
|
+
* Per-column CSS of one grid: columns not shown, the tracks of the columns pinned to the end, alignment, wrapping and sticky offsets, written as rules keyed
|
|
65222
65486
|
* by `data-field` (a pinned band's header by `data-band`, at the offset of its columns). Changing a width or pinning a column rewrites this sheet only; no cell gets a
|
|
65223
65487
|
* binding of its own and no row is touched. A rule finds the rows through the parts that hold them (the head, the body,
|
|
65224
65488
|
* the foot, the copy of a dragged row), which carry the grid's id, and goes on by child combinators only: the rows of a
|
|
@@ -65244,11 +65508,20 @@ var ColumnStyles = class {
|
|
|
65244
65508
|
this.columns = columns;
|
|
65245
65509
|
this.gridId = gridId;
|
|
65246
65510
|
}
|
|
65247
|
-
/**
|
|
65248
|
-
|
|
65511
|
+
/**
|
|
65512
|
+
* `placed`: every column's cells get their track by number, so a row may leave out the cells of columns not drawn (virtual
|
|
65513
|
+
* columns). `wrap`: the columns whose cells wrap their text; with any, a data row (in the body, and its copy while it is
|
|
65514
|
+
* dragged) is as tall as its tallest cell.
|
|
65515
|
+
*/
|
|
65516
|
+
update(visible, offsets, align, bands = [], placed = false, wrap = NO_WRAP) {
|
|
65249
65517
|
const rows = `[data-grid-id="${this.gridId}"] > .mx-data-grid__row`;
|
|
65250
65518
|
const rules = [];
|
|
65251
65519
|
const shown = new Set(visible);
|
|
65520
|
+
if (wrap.size) {
|
|
65521
|
+
const dataRows = `[data-grid-id="${this.gridId}"]:is(.mx-data-grid__body, .mx-data-grid__ghost-rows) > .mx-data-grid__row:not(.mx-data-grid__group-row, .mx-data-grid__group-footer)`;
|
|
65522
|
+
rules.push(`${dataRows}{block-size:auto;min-block-size:var(--_row-height)}`);
|
|
65523
|
+
rules.push(`${dataRows} > .mx-data-grid__cell{contain:size}`);
|
|
65524
|
+
}
|
|
65252
65525
|
for (const field of this.columns.state.order) {
|
|
65253
65526
|
const sel = `${rows} > [data-field="${escapeAttr(field)}"]`;
|
|
65254
65527
|
if (!shown.has(field)) {
|
|
@@ -65263,6 +65536,7 @@ var ColumnStyles = class {
|
|
|
65263
65536
|
rules.push(`${sel}.mx-data-grid__cell{text-align:${a}}`);
|
|
65264
65537
|
rules.push(`${sel} > .mx-data-grid__title{text-align:${a}}`);
|
|
65265
65538
|
}
|
|
65539
|
+
if (wrap.has(field)) rules.push(`${sel}.mx-data-grid__cell:not(.mx-data-grid__summary-cell){contain:inline-size;white-space:pre-line;overflow-wrap:anywhere;text-overflow:clip;line-height:var(--_wrap-line);padding-block:var(--_wrap-space)}`);
|
|
65266
65540
|
if (sticky) {
|
|
65267
65541
|
rules.push(`${sel}{position:sticky;inset-inline-${sticky.side}:${sticky.offset}px;z-index:var(--_z-sticky)}`);
|
|
65268
65542
|
if (sticky.edge) rules.push(`${sel}{box-shadow:var(--_sticky-${sticky.side})}`);
|
|
@@ -66028,6 +66302,57 @@ var ExtraHeights = class {
|
|
|
66028
66302
|
}
|
|
66029
66303
|
};
|
|
66030
66304
|
//#endregion
|
|
66305
|
+
//#region src/parts/table/RowHeights.ts
|
|
66306
|
+
/**
|
|
66307
|
+
* How much taller than the others some rows are (a column that wraps its text), by position among the rows laid out. A
|
|
66308
|
+
* row not measured yet counts as tall as every row. The sums before a position are kept in a Fenwick tree, so a row's
|
|
66309
|
+
* offset is found in a few steps however many rows there are, and a new measurement changes one entry only.
|
|
66310
|
+
*/
|
|
66311
|
+
var RowHeights = class {
|
|
66312
|
+
constructor(size) {
|
|
66313
|
+
_defineProperty(this, "size", void 0);
|
|
66314
|
+
_defineProperty(this, "added", void 0);
|
|
66315
|
+
_defineProperty(this, "summed", void 0);
|
|
66316
|
+
_defineProperty(this, "taller", 0);
|
|
66317
|
+
_defineProperty(this, "sum", 0);
|
|
66318
|
+
this.size = size;
|
|
66319
|
+
this.added = new Float64Array(size);
|
|
66320
|
+
this.summed = new Float64Array(size + 1);
|
|
66321
|
+
}
|
|
66322
|
+
/** Whether any row is taller than the others. */
|
|
66323
|
+
get any() {
|
|
66324
|
+
return this.taller > 0;
|
|
66325
|
+
}
|
|
66326
|
+
/** What every row adds, together. */
|
|
66327
|
+
get total() {
|
|
66328
|
+
return this.sum;
|
|
66329
|
+
}
|
|
66330
|
+
/** Gives a position what it adds to the height every row has (0: as tall as the others). Returns whether it changed. */
|
|
66331
|
+
set(position, added) {
|
|
66332
|
+
if (position < 0 || position >= this.size) return false;
|
|
66333
|
+
const value = added > 0 ? added : 0;
|
|
66334
|
+
const before = this.added[position];
|
|
66335
|
+
if (value === before) return false;
|
|
66336
|
+
this.added[position] = value;
|
|
66337
|
+
if (before === 0) this.taller++;
|
|
66338
|
+
else if (value === 0) this.taller--;
|
|
66339
|
+
const diff = value - before;
|
|
66340
|
+
this.sum += diff;
|
|
66341
|
+
for (let i = position + 1; i <= this.size; i += i & -i) this.summed[i] += diff;
|
|
66342
|
+
return true;
|
|
66343
|
+
}
|
|
66344
|
+
/** What a position adds (0 out of range). */
|
|
66345
|
+
addedAt(position) {
|
|
66346
|
+
return position >= 0 && position < this.size ? this.added[position] : 0;
|
|
66347
|
+
}
|
|
66348
|
+
/** What the positions before `position` add. */
|
|
66349
|
+
before(position) {
|
|
66350
|
+
let sum = 0;
|
|
66351
|
+
for (let i = Math.min(Math.max(0, position), this.size); i > 0; i -= i & -i) sum += this.summed[i];
|
|
66352
|
+
return sum;
|
|
66353
|
+
}
|
|
66354
|
+
};
|
|
66355
|
+
//#endregion
|
|
66031
66356
|
//#region src/parts/table/ScrollGeometry.ts
|
|
66032
66357
|
var clamp$2 = (v, lo, hi) => v < lo ? lo : v > hi ? hi : v;
|
|
66033
66358
|
/**
|
|
@@ -66037,7 +66362,7 @@ var clamp$2 = (v, lo, hi) => v < lo ? lo : v > hi ? hi : v;
|
|
|
66037
66362
|
* placed relative to the scroll position, so the wheel and the keyboard still move row by row.
|
|
66038
66363
|
*/
|
|
66039
66364
|
var ScrollGeometry = class ScrollGeometry {
|
|
66040
|
-
constructor(total, rowHeight, viewport, max = ScrollGeometry.MAX_HEIGHT, tall = null, details = null, adaptive = null, tail = 0) {
|
|
66365
|
+
constructor(total, rowHeight, viewport, max = ScrollGeometry.MAX_HEIGHT, tall = null, details = null, adaptive = null, tail = 0, rows = null) {
|
|
66041
66366
|
_defineProperty(this, "total", void 0);
|
|
66042
66367
|
_defineProperty(this, "rowHeight", void 0);
|
|
66043
66368
|
_defineProperty(this, "viewport", void 0);
|
|
@@ -66046,6 +66371,7 @@ var ScrollGeometry = class ScrollGeometry {
|
|
|
66046
66371
|
_defineProperty(this, "details", void 0);
|
|
66047
66372
|
_defineProperty(this, "adaptive", void 0);
|
|
66048
66373
|
_defineProperty(this, "tail", void 0);
|
|
66374
|
+
_defineProperty(this, "rows", void 0);
|
|
66049
66375
|
this.total = total;
|
|
66050
66376
|
this.rowHeight = rowHeight;
|
|
66051
66377
|
this.viewport = viewport;
|
|
@@ -66054,19 +66380,20 @@ var ScrollGeometry = class ScrollGeometry {
|
|
|
66054
66380
|
this.details = details;
|
|
66055
66381
|
this.adaptive = adaptive;
|
|
66056
66382
|
this.tail = tail;
|
|
66383
|
+
this.rows = rows;
|
|
66057
66384
|
}
|
|
66058
66385
|
/** Height of all rows, and the room after them. */
|
|
66059
66386
|
get contentHeight() {
|
|
66060
|
-
return this.total * this.rowHeight + this.extraHeight + this.adaptiveBefore(this.total) + (this.details ? this.details.before(this.total) : 0) + this.tail;
|
|
66387
|
+
return this.total * this.rowHeight + this.extraHeight + this.adaptiveBefore(this.total) + (this.details ? this.details.before(this.total) : 0) + (this.rows ? this.rows.before(this.total) : 0) + this.tail;
|
|
66061
66388
|
}
|
|
66062
66389
|
/** Top of row `index` in the full content. */
|
|
66063
66390
|
offsetOf(index) {
|
|
66064
66391
|
const tall = this.tall;
|
|
66065
|
-
return index * this.rowHeight + (tall && index > tall.at ? tall.extra : 0) + this.adaptiveBefore(index) + (this.details ? this.details.before(index) : 0);
|
|
66392
|
+
return index * this.rowHeight + (tall && index > tall.at ? tall.extra : 0) + this.adaptiveBefore(index) + (this.details ? this.details.before(index) : 0) + (this.rows ? this.rows.before(index) : 0);
|
|
66066
66393
|
}
|
|
66067
66394
|
/** Height of row `index` itself (the edit form when it stands for the row), without its details. */
|
|
66068
66395
|
rowHeightOf(index) {
|
|
66069
|
-
return this.rowHeight + (this.tall?.at === index ? this.tall.extra : 0);
|
|
66396
|
+
return this.rowHeight + (this.tall?.at === index ? this.tall.extra : 0) + (this.rows ? this.rows.addedAt(index) : 0);
|
|
66070
66397
|
}
|
|
66071
66398
|
/** Height of the adaptive detail under row `index` (0 when it has none open). */
|
|
66072
66399
|
adaptiveAt(index) {
|
|
@@ -66079,7 +66406,7 @@ var ScrollGeometry = class ScrollGeometry {
|
|
|
66079
66406
|
/** The row at an offset in the full content (a row's details count as the row). */
|
|
66080
66407
|
indexAt(offset) {
|
|
66081
66408
|
const tall = this.tall;
|
|
66082
|
-
if (this.details?.size || this.adaptive) return this.search(offset);
|
|
66409
|
+
if (this.details?.size || this.adaptive || this.rows?.any) return this.search(offset);
|
|
66083
66410
|
if (!tall || offset < (tall.at + 1) * this.rowHeight) return Math.floor(offset / this.rowHeight);
|
|
66084
66411
|
if (offset < (tall.at + 1) * this.rowHeight + tall.extra) return tall.at;
|
|
66085
66412
|
return Math.floor((offset - tall.extra) / this.rowHeight);
|
|
@@ -67686,7 +68013,11 @@ var grids = /* @__PURE__ */ new Set();
|
|
|
67686
68013
|
* detail of the one row that has it open (the columns the width hides) is a detail row too, right
|
|
67687
68014
|
* under its row and before its details. The viewport is read with the measuring layer: a layout asked for
|
|
67688
68015
|
* runs at once with the viewport as last read (and as the body scrolled it), and again with the next round
|
|
67689
|
-
* if the viewport turns out to be elsewhere; the sizes of details and of the edit form are watched.
|
|
68016
|
+
* if the viewport turns out to be elsewhere; the sizes of details and of the edit form are watched. While a
|
|
68017
|
+
* column wraps its text, a data row is as tall as its cells: the rows drawn are measured in the round after
|
|
68018
|
+
* they are laid out, before the screen is drawn, and again when one changes size; what they add over the
|
|
68019
|
+
* rows' height is kept by position (`RowHeights`), and the first row in view stays where it stood when the
|
|
68020
|
+
* rows above it come out taller or shorter.
|
|
67690
68021
|
*/
|
|
67691
68022
|
var GridBody = class extends Component {
|
|
67692
68023
|
constructor(grid, viewport, widths, host) {
|
|
@@ -67842,6 +68173,74 @@ var GridBody = class extends Component {
|
|
|
67842
68173
|
"dropRow",
|
|
67843
68174
|
null
|
|
67844
68175
|
);
|
|
68176
|
+
_defineProperty(
|
|
68177
|
+
this,
|
|
68178
|
+
/** Whether a column wraps its text: data rows are as tall as their cells, measured as they are drawn. */
|
|
68179
|
+
"wrapping",
|
|
68180
|
+
false
|
|
68181
|
+
);
|
|
68182
|
+
_defineProperty(
|
|
68183
|
+
this,
|
|
68184
|
+
/** The columns and widths the rows were measured for. */
|
|
68185
|
+
"wrapFor",
|
|
68186
|
+
""
|
|
68187
|
+
);
|
|
68188
|
+
_defineProperty(
|
|
68189
|
+
this,
|
|
68190
|
+
/** What the rows laid out add over the rows' height, and the rows and height that was found for. */
|
|
68191
|
+
"heights",
|
|
68192
|
+
null
|
|
68193
|
+
);
|
|
68194
|
+
_defineProperty(this, "heightsFor", "");
|
|
68195
|
+
_defineProperty(
|
|
68196
|
+
this,
|
|
68197
|
+
/** The size watches of the pooled rows, while rows are measured. */
|
|
68198
|
+
"rowWatches",
|
|
68199
|
+
/* @__PURE__ */ new Map()
|
|
68200
|
+
);
|
|
68201
|
+
_defineProperty(
|
|
68202
|
+
this,
|
|
68203
|
+
/**
|
|
68204
|
+
* The row kept in place after the last layout, the first in view or the one `reveal` brought in: its position, its id,
|
|
68205
|
+
* how far below the top of the view its top (or its bottom, `edge`) stood, and the scroll then.
|
|
68206
|
+
*/
|
|
68207
|
+
"anchor",
|
|
68208
|
+
null
|
|
68209
|
+
);
|
|
68210
|
+
_defineProperty(
|
|
68211
|
+
this,
|
|
68212
|
+
/** The row `reveal` brought into view, at the edge it was brought to: kept there while rows are measured, until the view is scrolled. */
|
|
68213
|
+
"pinned",
|
|
68214
|
+
null
|
|
68215
|
+
);
|
|
68216
|
+
_defineProperty(
|
|
68217
|
+
this,
|
|
68218
|
+
/** The heights of the data rows drawn, read after they were laid out. */
|
|
68219
|
+
"readHeights",
|
|
68220
|
+
() => {
|
|
68221
|
+
const out = [];
|
|
68222
|
+
for (const row of this.byIndex.values()) if (row.row !== void 0) out.push([row, boxOf(row.part).offsetHeight]);
|
|
68223
|
+
return out;
|
|
68224
|
+
}
|
|
68225
|
+
);
|
|
68226
|
+
_defineProperty(
|
|
68227
|
+
this,
|
|
68228
|
+
/** Rows that came out another height: the rows are laid out again, the first row in view where it stood. */
|
|
68229
|
+
"writeHeights",
|
|
68230
|
+
(read) => {
|
|
68231
|
+
const heights = this.wrapping ? this.rowHeights() : null;
|
|
68232
|
+
if (!heights || !this.isBuilt) return;
|
|
68233
|
+
const grid = this.grid;
|
|
68234
|
+
const base = grid.state.rowHeight;
|
|
68235
|
+
let changed = false;
|
|
68236
|
+
for (const [row, height] of read) {
|
|
68237
|
+
if (height <= 0 || row.index < 0 || row.row === void 0) continue;
|
|
68238
|
+
const l = grid.mode !== "paged" ? row.index : grid.localOf(row.index);
|
|
68239
|
+
if (heights.set(l, height - base)) changed = true;
|
|
68240
|
+
}
|
|
68241
|
+
if (changed) this.layoutSoon();
|
|
68242
|
+
}
|
|
68243
|
+
);
|
|
67845
68244
|
_defineProperty(this, "readView", () => {
|
|
67846
68245
|
const vp = this.scroller();
|
|
67847
68246
|
if (!vp) return null;
|
|
@@ -67887,8 +68286,10 @@ var GridBody = class extends Component {
|
|
|
67887
68286
|
if (scrollTop === null || !wanted || !vp) return;
|
|
67888
68287
|
const local = this.grid.localOf(wanted.index);
|
|
67889
68288
|
if (local < 0) return;
|
|
67890
|
-
const
|
|
68289
|
+
const g = this.geometry();
|
|
68290
|
+
const top = g.revealRow(scrollTop, local, wanted.align);
|
|
67891
68291
|
if (top === scrollTop) return;
|
|
68292
|
+
this.pin(g, local, top);
|
|
67892
68293
|
scrollTo(vp, { top });
|
|
67893
68294
|
this.lastView = {
|
|
67894
68295
|
...this.lastView,
|
|
@@ -67933,15 +68334,19 @@ var GridBody = class extends Component {
|
|
|
67933
68334
|
});
|
|
67934
68335
|
this.motif.setDisposable(() => resolved.dispose());
|
|
67935
68336
|
}
|
|
67936
|
-
/**
|
|
68337
|
+
/**
|
|
68338
|
+
* Geometry of the rows the body lays out (all rows, or one page); the edit form's row is as tall as the form, open details
|
|
68339
|
+
* and the adaptive detail add their height, and so do rows taller than the others while a column wraps.
|
|
68340
|
+
*/
|
|
67937
68341
|
geometry() {
|
|
67938
68342
|
const grid = this.grid;
|
|
67939
68343
|
const rowHeight = grid.state.rowHeight;
|
|
68344
|
+
const heights = this.rowHeights();
|
|
67940
68345
|
const at = this.formIndex();
|
|
67941
68346
|
const local = at < 0 ? -1 : grid.mode !== "paged" ? at : grid.localOf(at);
|
|
67942
68347
|
const tall = local >= 0 && this.form ? {
|
|
67943
68348
|
at: local,
|
|
67944
|
-
extra: Math.max(0, this.form.height - rowHeight)
|
|
68349
|
+
extra: Math.max(0, this.form.height - rowHeight) - (heights ? heights.addedAt(local) : 0)
|
|
67945
68350
|
} : null;
|
|
67946
68351
|
const a = this.adaptiveLocal();
|
|
67947
68352
|
const adaptive = a >= 0 ? {
|
|
@@ -67949,7 +68354,163 @@ var GridBody = class extends Component {
|
|
|
67949
68354
|
height: this.adaptive?.id === grid.adaptive.state.rowId ? this.adaptive.height : 0
|
|
67950
68355
|
} : null;
|
|
67951
68356
|
const tail = grid.moreState() ? rowHeight : 0;
|
|
67952
|
-
return new ScrollGeometry(grid.reachable(), rowHeight, Math.max(rowHeight, grid.state.viewport), ScrollGeometry.MAX_HEIGHT, tall, this.openExtras(), adaptive, tail);
|
|
68357
|
+
return new ScrollGeometry(grid.reachable(), rowHeight, Math.max(rowHeight, grid.state.viewport), ScrollGeometry.MAX_HEIGHT, tall, this.openExtras(), adaptive, tail, heights);
|
|
68358
|
+
}
|
|
68359
|
+
/**
|
|
68360
|
+
* Whether a column wraps its text, and the columns and widths that is for (`key`): with one, rows are measured as they
|
|
68361
|
+
* are drawn and when they change size; another key has the rows drawn measured again.
|
|
68362
|
+
*/
|
|
68363
|
+
setWrap(on, key) {
|
|
68364
|
+
if (on === this.wrapping && key === this.wrapFor) return;
|
|
68365
|
+
const was = this.wrapping;
|
|
68366
|
+
this.wrapFor = key;
|
|
68367
|
+
if (!on && !was) return;
|
|
68368
|
+
this.wrapping = on;
|
|
68369
|
+
if (on) for (const row of this.pool) this.watchRow(row);
|
|
68370
|
+
else {
|
|
68371
|
+
for (const stop of this.rowWatches.values()) stop();
|
|
68372
|
+
this.rowWatches.clear();
|
|
68373
|
+
const anchor = this.anchor;
|
|
68374
|
+
this.heights = null;
|
|
68375
|
+
this.heightsFor = "";
|
|
68376
|
+
this.anchor = null;
|
|
68377
|
+
this.pinned = null;
|
|
68378
|
+
if (was && anchor) this.scrollToAnchor(anchor);
|
|
68379
|
+
}
|
|
68380
|
+
this.layoutSoon(true);
|
|
68381
|
+
}
|
|
68382
|
+
/** Scrolls so that a row noted in the view (`anchor`) stands where it stood, in the rows as they are now. */
|
|
68383
|
+
scrollToAnchor(anchor) {
|
|
68384
|
+
const vp = this.scroller();
|
|
68385
|
+
const g = this.geometry();
|
|
68386
|
+
if (!vp || anchor.local >= g.total) return;
|
|
68387
|
+
const edge = anchor.edge === "bottom" ? g.offsetOf(anchor.local) + g.rowHeightOf(anchor.local) : g.offsetOf(anchor.local);
|
|
68388
|
+
const want = Math.max(0, Math.min(g.maxVirtualTop, edge - anchor.screen));
|
|
68389
|
+
this.sizeSpacer(g);
|
|
68390
|
+
if (this.grid.mode !== "paged") {
|
|
68391
|
+
this.setVirtualTop(vp, g, want, true);
|
|
68392
|
+
return;
|
|
68393
|
+
}
|
|
68394
|
+
scrollTo(vp, { top: want });
|
|
68395
|
+
this.lastView = {
|
|
68396
|
+
...this.lastView,
|
|
68397
|
+
top: want
|
|
68398
|
+
};
|
|
68399
|
+
if (this.seenScroll) this.seenScroll = {
|
|
68400
|
+
...this.seenScroll,
|
|
68401
|
+
top: want
|
|
68402
|
+
};
|
|
68403
|
+
}
|
|
68404
|
+
/** What the rows laid out add over the rows' height while a column wraps; found again for other rows or another height. */
|
|
68405
|
+
rowHeights() {
|
|
68406
|
+
if (!this.wrapping) return null;
|
|
68407
|
+
return untracked(() => {
|
|
68408
|
+
const grid = this.grid;
|
|
68409
|
+
const st = grid.state;
|
|
68410
|
+
const n = grid.reachable();
|
|
68411
|
+
const same = `${st.version}|${st.connection}|${st.added}|${st.page}|${st.rowHeight}|${grid.mode}`;
|
|
68412
|
+
const key = `${same}|${n}`;
|
|
68413
|
+
if (this.heights && key === this.heightsFor) return this.heights;
|
|
68414
|
+
const was = this.heights;
|
|
68415
|
+
const kept = was !== null && this.heightsFor.startsWith(`${same}|`);
|
|
68416
|
+
this.heightsFor = key;
|
|
68417
|
+
this.heights = new RowHeights(n);
|
|
68418
|
+
if (kept) {
|
|
68419
|
+
for (let l = 0, end = Math.min(n, was.size); l < end; l++) if (was.addedAt(l)) this.heights.set(l, was.addedAt(l));
|
|
68420
|
+
}
|
|
68421
|
+
return this.heights;
|
|
68422
|
+
});
|
|
68423
|
+
}
|
|
68424
|
+
/** Watches a pooled row's size while rows are measured: a row that changes size (its content drawn again) is measured again. */
|
|
68425
|
+
watchRow(row) {
|
|
68426
|
+
if (this.rowWatches.has(row)) return;
|
|
68427
|
+
this.rowWatches.set(row, onLayout(row.part, "size", (size) => this.rowResized(row, size), { owner: this }));
|
|
68428
|
+
}
|
|
68429
|
+
/** A row drawn came out another size than it was measured at: the rows after it move, with the next round. */
|
|
68430
|
+
rowResized(row, size) {
|
|
68431
|
+
const heights = this.wrapping ? this.rowHeights() : null;
|
|
68432
|
+
const height = Math.round(size.height);
|
|
68433
|
+
if (!heights || this.isDisposed || height <= 0 || row.index < 0 || row.row === void 0) return;
|
|
68434
|
+
const l = this.grid.mode !== "paged" ? row.index : this.grid.localOf(row.index);
|
|
68435
|
+
if (heights.set(l, height - this.grid.state.rowHeight)) this.layoutSoon();
|
|
68436
|
+
}
|
|
68437
|
+
/**
|
|
68438
|
+
* While rows are measured, the first row in view stays where it stood when what the rows above it add changed (they were
|
|
68439
|
+
* measured, or found again), unless the view was scrolled since: returns the scroll the rows are laid out for.
|
|
68440
|
+
*/
|
|
68441
|
+
keepAnchor(g, scrollTop) {
|
|
68442
|
+
const a = this.anchor;
|
|
68443
|
+
const vp = this.scroller();
|
|
68444
|
+
if (!a || !vp || scrollTop !== a.scrollTop) {
|
|
68445
|
+
if (a) this.pinned = null;
|
|
68446
|
+
return scrollTop;
|
|
68447
|
+
}
|
|
68448
|
+
const grid = this.grid;
|
|
68449
|
+
const paged = grid.mode === "paged";
|
|
68450
|
+
let l = a.local;
|
|
68451
|
+
if (a.rowId !== void 0 && grid.rowIdAt(paged ? grid.viewAt(l) : l) !== a.rowId) {
|
|
68452
|
+
const i = grid.indexOfKey(a.rowId);
|
|
68453
|
+
const found = i < 0 ? -1 : paged ? grid.localOf(i) : i;
|
|
68454
|
+
if (found >= 0) l = found;
|
|
68455
|
+
}
|
|
68456
|
+
if (l < 0 || l >= g.total) return scrollTop;
|
|
68457
|
+
if (this.pinned) this.pinned = {
|
|
68458
|
+
...this.pinned,
|
|
68459
|
+
local: l
|
|
68460
|
+
};
|
|
68461
|
+
const edge = a.edge === "bottom" ? g.offsetOf(l) + g.rowHeightOf(l) : g.offsetOf(l);
|
|
68462
|
+
const want = Math.max(0, Math.min(g.maxVirtualTop, edge - a.screen));
|
|
68463
|
+
const now = paged ? scrollTop : this.virtualTop;
|
|
68464
|
+
if (Math.abs(want - now) < 1) return scrollTop;
|
|
68465
|
+
let top = want;
|
|
68466
|
+
if (!paged) {
|
|
68467
|
+
this.virtualTop = want;
|
|
68468
|
+
top = g.scrollFromVirtual(want);
|
|
68469
|
+
}
|
|
68470
|
+
scrollTo(vp, { top });
|
|
68471
|
+
this.lastView = {
|
|
68472
|
+
...this.lastView,
|
|
68473
|
+
top
|
|
68474
|
+
};
|
|
68475
|
+
if (this.seenScroll) this.seenScroll = {
|
|
68476
|
+
...this.seenScroll,
|
|
68477
|
+
top
|
|
68478
|
+
};
|
|
68479
|
+
return top;
|
|
68480
|
+
}
|
|
68481
|
+
/** Notes the row to keep where it stands (`keepAnchor`): the one `reveal` brought in, else the first that starts in view. */
|
|
68482
|
+
noteAnchor(g, scrollTop) {
|
|
68483
|
+
const grid = this.grid;
|
|
68484
|
+
const paged = grid.mode === "paged";
|
|
68485
|
+
const vt = paged ? scrollTop : this.virtualTop;
|
|
68486
|
+
const p = this.pinned && this.pinned.local < g.total ? this.pinned : null;
|
|
68487
|
+
let l = p ? p.local : g.total > 0 ? g.indexAt(vt) : -1;
|
|
68488
|
+
if (!p && l >= 0 && l < g.total - 1 && g.offsetOf(l) < vt) l++;
|
|
68489
|
+
if (l < 0) {
|
|
68490
|
+
this.anchor = null;
|
|
68491
|
+
return;
|
|
68492
|
+
}
|
|
68493
|
+
const edge = p?.edge ?? "top";
|
|
68494
|
+
const at = edge === "bottom" ? g.offsetOf(l) + g.rowHeightOf(l) : g.offsetOf(l);
|
|
68495
|
+
this.anchor = {
|
|
68496
|
+
local: l,
|
|
68497
|
+
rowId: grid.rowIdAt(paged ? grid.viewAt(l) : l),
|
|
68498
|
+
edge,
|
|
68499
|
+
screen: at - vt,
|
|
68500
|
+
scrollTop
|
|
68501
|
+
};
|
|
68502
|
+
}
|
|
68503
|
+
/** While rows are measured, a row `reveal` scrolled to stays at the edge it came to (`v`: the view's new top). */
|
|
68504
|
+
pin(g, local, v) {
|
|
68505
|
+
if (!this.wrapping) return;
|
|
68506
|
+
this.pinned = Math.abs(v - g.offsetOf(local)) < 1 ? {
|
|
68507
|
+
local,
|
|
68508
|
+
edge: "top"
|
|
68509
|
+
} : {
|
|
68510
|
+
local,
|
|
68511
|
+
edge: "bottom"
|
|
68512
|
+
};
|
|
68513
|
+
this.anchor = null;
|
|
67953
68514
|
}
|
|
67954
68515
|
/** The details drawn now, the adaptive detail among them, in grid order (a row's adaptive detail before its details). */
|
|
67955
68516
|
drawnDetails() {
|
|
@@ -68225,7 +68786,9 @@ var GridBody = class extends Component {
|
|
|
68225
68786
|
}
|
|
68226
68787
|
const g = this.geometry();
|
|
68227
68788
|
this.sizeSpacer(g);
|
|
68228
|
-
|
|
68789
|
+
const v = g.revealRow(this.virtualTop, index, align);
|
|
68790
|
+
if (v !== this.virtualTop) this.pin(g, index, v);
|
|
68791
|
+
this.setVirtualTop(vp, g, v, true);
|
|
68229
68792
|
}
|
|
68230
68793
|
/** Back to the first row (after a sort change); the rows follow with the next round. */
|
|
68231
68794
|
toStart() {
|
|
@@ -68245,10 +68808,25 @@ var GridBody = class extends Component {
|
|
|
68245
68808
|
};
|
|
68246
68809
|
this.layoutSoon();
|
|
68247
68810
|
}
|
|
68248
|
-
/**
|
|
68249
|
-
|
|
68811
|
+
/**
|
|
68812
|
+
* Rows the viewport shows fully, for PageUp/PageDown: a screen of rows down (`down`) or up from grid row `from`, counted
|
|
68813
|
+
* by their heights while some are taller than the others.
|
|
68814
|
+
*/
|
|
68815
|
+
pageRows(from = -1, down = true) {
|
|
68250
68816
|
const g = this.geometry();
|
|
68251
|
-
|
|
68817
|
+
const even = Math.max(1, Math.floor(g.viewport / g.rowHeight) - 1);
|
|
68818
|
+
const grid = this.grid;
|
|
68819
|
+
const start = !g.rows?.any || from < 0 ? -1 : grid.mode !== "paged" ? from : grid.localOf(from);
|
|
68820
|
+
if (start < 0) return even;
|
|
68821
|
+
const step = down ? 1 : -1;
|
|
68822
|
+
let room = g.viewport - g.heightOf(start);
|
|
68823
|
+
let n = 0;
|
|
68824
|
+
for (let l = start + step; l >= 0 && l < g.total; l += step) {
|
|
68825
|
+
room -= g.heightOf(l);
|
|
68826
|
+
if (room < 0) break;
|
|
68827
|
+
n++;
|
|
68828
|
+
}
|
|
68829
|
+
return Math.max(1, n);
|
|
68252
68830
|
}
|
|
68253
68831
|
/** The pooled row that shows grid row `index`, if it is drawn. */
|
|
68254
68832
|
rowAt(index) {
|
|
@@ -68483,7 +69061,7 @@ var GridBody = class extends Component {
|
|
|
68483
69061
|
const data = grid.data;
|
|
68484
69062
|
const g = this.geometry();
|
|
68485
69063
|
const loading = grid.state.status === "loading";
|
|
68486
|
-
|
|
69064
|
+
let scrollTop = view.top;
|
|
68487
69065
|
let start;
|
|
68488
69066
|
let end;
|
|
68489
69067
|
let top;
|
|
@@ -68492,6 +69070,7 @@ var GridBody = class extends Component {
|
|
|
68492
69070
|
if (this.expectedScrollTop < 0 || Math.abs(scrollTop - this.expectedScrollTop) > 1) this.virtualTop = g.virtualFromScroll(scrollTop);
|
|
68493
69071
|
this.expectedScrollTop = -1;
|
|
68494
69072
|
this.virtualTop = Math.max(0, Math.min(g.maxVirtualTop, this.virtualTop));
|
|
69073
|
+
if (this.wrapping) scrollTop = this.keepAnchor(g, scrollTop);
|
|
68495
69074
|
const vis = g.visibleRange(this.virtualTop);
|
|
68496
69075
|
const extra = Math.max(0, Math.floor(grid.settings.get("extraRows")));
|
|
68497
69076
|
start = Math.max(0, vis.first - extra);
|
|
@@ -68506,6 +69085,7 @@ var GridBody = class extends Component {
|
|
|
68506
69085
|
else if (end > start && dataOf(end) > dataOf(start)) data.ensure(Math.max(0, dataOf(start) - pre), dataOf(end) + pre, immediate);
|
|
68507
69086
|
if (grid.mode === "infinite" && !loading && data.total - dataOf(vis.end) <= Math.max(0, grid.settings.get("loadMoreDistance")) + pre) grid.loadMore();
|
|
68508
69087
|
} else {
|
|
69088
|
+
if (this.wrapping) scrollTop = this.keepAnchor(g, scrollTop);
|
|
68509
69089
|
start = 0;
|
|
68510
69090
|
end = g.total;
|
|
68511
69091
|
top = (local) => g.offsetOf(local);
|
|
@@ -68596,6 +69176,10 @@ var GridBody = class extends Component {
|
|
|
68596
69176
|
const under = i - row === .5 && drawn && adaptiveAt === row ? 2 : 1;
|
|
68597
69177
|
put(part, "aria-rowindex", String(Number.isInteger(i) ? this.ariaRowIndex(i) : this.ariaRowIndex(row) + under));
|
|
68598
69178
|
}
|
|
69179
|
+
if (this.wrapping) {
|
|
69180
|
+
this.noteAnchor(g, scrollTop);
|
|
69181
|
+
measure(this, this.readHeights, this.writeHeights);
|
|
69182
|
+
}
|
|
68599
69183
|
}
|
|
68600
69184
|
/**
|
|
68601
69185
|
* Details under the rows that show theirs (made the first time); the others are parked, and those
|
|
@@ -68806,6 +69390,7 @@ var GridBody = class extends Component {
|
|
|
68806
69390
|
this.controls.add(row.part);
|
|
68807
69391
|
row.arrange(this.visible);
|
|
68808
69392
|
this.pool.push(row);
|
|
69393
|
+
if (this.wrapping) this.watchRow(row);
|
|
68809
69394
|
return row;
|
|
68810
69395
|
}
|
|
68811
69396
|
/** Gives a row's element an id of its own. */
|
|
@@ -72464,6 +73049,7 @@ var hasKeys = (o) => Object.keys(o).length > 0;
|
|
|
72464
73049
|
var COLUMN_LOOK = [
|
|
72465
73050
|
"title",
|
|
72466
73051
|
"hidingPriority",
|
|
73052
|
+
"wrap",
|
|
72467
73053
|
"resizeMode",
|
|
72468
73054
|
"columnRenderingMode",
|
|
72469
73055
|
"headerFilterInterval",
|
|
@@ -73312,10 +73898,12 @@ var DataGrid = class extends Control {
|
|
|
73312
73898
|
* Opens a new row, as the "New row" button does: at the bottom (the grid moves to the end, and a
|
|
73313
73899
|
* virtual list loads only the last block) or at the top, with the first cell a new row can fill in
|
|
73314
73900
|
* edit mode. The row being edited is left first, and no row is added if it cannot be left. `values`
|
|
73315
|
-
* fill the new row as if typed.
|
|
73901
|
+
* fill the new row as if typed. While the rows load (before the first of them arrive, or after the
|
|
73902
|
+
* sort changes), it waits for them; `false` if the grid is disposed first.
|
|
73316
73903
|
*/
|
|
73317
73904
|
addRow(values) {
|
|
73318
73905
|
const { model } = this;
|
|
73906
|
+
if (model.state.status === "loading") return model.rowsLoaded().then((ok) => ok ? this.addRow(values) : false);
|
|
73319
73907
|
if (model.state.busy) return Promise.resolve(false);
|
|
73320
73908
|
if (this.formEdit && !this.cancelForm(false)) return Promise.resolve(false);
|
|
73321
73909
|
const pending = this.pendingInvalid;
|
|
@@ -75210,6 +75798,7 @@ var DataGrid = class extends Control {
|
|
|
75210
75798
|
cols.template(visible),
|
|
75211
75799
|
[...cols.stickyOffsets(visible)],
|
|
75212
75800
|
visible.map((f) => cols.align(f)),
|
|
75801
|
+
visible.map((f) => cols.wraps(f)),
|
|
75213
75802
|
cols.hasBands ? cols.shownBands(visible) : [],
|
|
75214
75803
|
cols.anyVirtual(visible)
|
|
75215
75804
|
])];
|
|
@@ -75218,8 +75807,10 @@ var DataGrid = class extends Control {
|
|
|
75218
75807
|
const visible = cols.visible();
|
|
75219
75808
|
const align = /* @__PURE__ */ new Map();
|
|
75220
75809
|
for (const f of visible) align.set(f, cols.align(f));
|
|
75810
|
+
const wrap = new Set(visible.filter((f) => cols.wraps(f)));
|
|
75221
75811
|
if (this.shell) css(this.shell.vp, "--_columns", cols.template(visible));
|
|
75222
|
-
this.styles.update(visible, cols.stickyOffsets(visible), align, cols.hasBands ? cols.shownBands(visible) : [], cols.anyVirtual(visible));
|
|
75812
|
+
this.styles.update(visible, cols.stickyOffsets(visible), align, cols.hasBands ? cols.shownBands(visible) : [], cols.anyVirtual(visible), wrap);
|
|
75813
|
+
this.body.setWrap(wrap.size > 0, `${visible.join("\n")}|${cols.template(visible)}|${[...wrap].join("\n")}`);
|
|
75223
75814
|
});
|
|
75224
75815
|
this.whenChanged(() => [model.columns.fitWidth(model.state.width).join("\n")], () => {
|
|
75225
75816
|
const hidden = model.columns.fitWidth(model.state.width);
|
|
@@ -77514,7 +78105,7 @@ var DataGrid = class extends Control {
|
|
|
77514
78105
|
return;
|
|
77515
78106
|
}
|
|
77516
78107
|
if (down ? !hasRows : row < 0) break;
|
|
77517
|
-
row = down ? row < 0 ? first : model.stepRow(row, this.body.pageRows()) : model.stepRow(row, -this.body.pageRows());
|
|
78108
|
+
row = down ? row < 0 ? first : model.stepRow(row, this.body.pageRows(row, true)) : model.stepRow(row, -this.body.pageRows(row, false));
|
|
77518
78109
|
break;
|
|
77519
78110
|
}
|
|
77520
78111
|
case "Enter":
|
|
@@ -77822,9 +78413,9 @@ var DataGrid = class extends Control {
|
|
|
77822
78413
|
model.loadMore();
|
|
77823
78414
|
break;
|
|
77824
78415
|
case "pageDown":
|
|
77825
|
-
row = model.stepRow(row, this.body.pageRows());
|
|
78416
|
+
row = model.stepRow(row, this.body.pageRows(row, true));
|
|
77826
78417
|
break;
|
|
77827
|
-
case "pageUp": row = model.stepRow(row, -this.body.pageRows());
|
|
78418
|
+
case "pageUp": row = model.stepRow(row, -this.body.pageRows(row, false));
|
|
77828
78419
|
}
|
|
77829
78420
|
e.preventDefault();
|
|
77830
78421
|
if (row < 0) return true;
|
|
@@ -77842,7 +78433,7 @@ var DataGrid = class extends Control {
|
|
|
77842
78433
|
const move = Object.keys(keys).find((name) => isChord(keys[name] ?? [], e));
|
|
77843
78434
|
if (!move) return false;
|
|
77844
78435
|
e.preventDefault();
|
|
77845
|
-
const page = this.body.pageRows();
|
|
78436
|
+
const page = move === "pageDown" || move === "pageUp" ? this.body.pageRows(row, move === "pageDown") : 1;
|
|
77846
78437
|
const to = model.stepRow(row, move === "down" ? 1 : move === "up" ? -1 : move === "pageDown" ? page : -page);
|
|
77847
78438
|
if (to < 0) return true;
|
|
77848
78439
|
this.extendSelection(row, to);
|
|
@@ -117879,9 +118470,21 @@ var LOOK = [
|
|
|
117879
118470
|
"inline"
|
|
117880
118471
|
];
|
|
117881
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
|
+
];
|
|
117882
118484
|
/**
|
|
117883
118485
|
* Children in a row or a column with a gap between them, aligned across the direction and spread
|
|
117884
|
-
* 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' }}`).
|
|
117885
118488
|
*
|
|
117886
118489
|
* @example
|
|
117887
118490
|
* <Stack orientation="horizontal" gap="sm" align="center">
|
|
@@ -117898,8 +118501,8 @@ var Stack = class extends Control {
|
|
|
117898
118501
|
const own = this.props ?? {};
|
|
117899
118502
|
this.class.add("mx-stack");
|
|
117900
118503
|
for (const name of LOOK) this.observeProperty(name, () => this.renderLook());
|
|
117901
|
-
this.observeProperty("gap", (gap) => setSpace(this, "--_gap", gap));
|
|
117902
|
-
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)));
|
|
117903
118506
|
for (const name of OWN$9) if (own[name] !== void 0) this.bindProperty(name, own[name]);
|
|
117904
118507
|
this.settings;
|
|
117905
118508
|
if (this.childs?.length) this.controls.add(...this.childs);
|
|
@@ -117935,16 +118538,16 @@ var Stack = class extends Control {
|
|
|
117935
118538
|
this.assignProperty("justify", value);
|
|
117936
118539
|
}
|
|
117937
118540
|
get wrap() {
|
|
117938
|
-
return
|
|
118541
|
+
return this.getProperty("wrap") ?? false;
|
|
117939
118542
|
}
|
|
117940
118543
|
set wrap(value) {
|
|
117941
|
-
this.assignProperty("wrap", value
|
|
118544
|
+
this.assignProperty("wrap", value);
|
|
117942
118545
|
}
|
|
117943
118546
|
get reverse() {
|
|
117944
|
-
return
|
|
118547
|
+
return this.getProperty("reverse") ?? false;
|
|
117945
118548
|
}
|
|
117946
118549
|
set reverse(value) {
|
|
117947
|
-
this.assignProperty("reverse", value
|
|
118550
|
+
this.assignProperty("reverse", value);
|
|
117948
118551
|
}
|
|
117949
118552
|
get inline() {
|
|
117950
118553
|
return !!this.getProperty("inline");
|
|
@@ -117952,6 +118555,12 @@ var Stack = class extends Control {
|
|
|
117952
118555
|
set inline(value) {
|
|
117953
118556
|
this.assignProperty("inline", value, Boolean);
|
|
117954
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
|
+
}
|
|
117955
118564
|
/** The `grow` of a child, from its props or as set with {@link setGrow}. */
|
|
117956
118565
|
growOf(child) {
|
|
117957
118566
|
return this.settings.get(child, "grow") ?? false;
|
|
@@ -117964,12 +118573,7 @@ var Stack = class extends Control {
|
|
|
117964
118573
|
const self = this;
|
|
117965
118574
|
if (self[CHILDREN$2]) return self[CHILDREN$2];
|
|
117966
118575
|
self[CHILDREN$2] = new ChildSettings(this, ["grow"], {
|
|
117967
|
-
changed: (child) =>
|
|
117968
|
-
const grow = this.settings.get(child, "grow");
|
|
117969
|
-
const amount = grow === true ? 1 : typeof grow === "number" && grow > 0 ? grow : 0;
|
|
117970
|
-
css(child, "flex-grow", amount ? String(amount) : "");
|
|
117971
|
-
mark(child, "data-mx-grow", !!amount);
|
|
117972
|
-
},
|
|
118576
|
+
changed: (child) => this.placeChild(child),
|
|
117973
118577
|
left: (child) => {
|
|
117974
118578
|
css(child, "flex-grow", "");
|
|
117975
118579
|
mark(child, "data-mx-grow", false);
|
|
@@ -117977,14 +118581,37 @@ var Stack = class extends Control {
|
|
|
117977
118581
|
});
|
|
117978
118582
|
return self[CHILDREN$2].addPresent();
|
|
117979
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
|
+
}
|
|
117980
118590
|
renderLook() {
|
|
117981
|
-
put(this, "data-orientation", this.peekProperty("orientation") ?? "vertical");
|
|
117982
|
-
put(this, "data-align", this.peekProperty("align") ?? "stretch");
|
|
117983
|
-
put(this, "data-justify", this.peekProperty("justify") ?? "start");
|
|
117984
|
-
mark(this, "data-wrap", !!this.peekProperty("wrap"));
|
|
117985
|
-
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")));
|
|
117986
118596
|
mark(this, "data-inline", !!this.peekProperty("inline"));
|
|
117987
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
|
+
}
|
|
117988
118615
|
};
|
|
117989
118616
|
//#endregion
|
|
117990
118617
|
//#region src/parts/recurrence/format-rule-date.ts
|
|
@@ -130796,6 +131423,22 @@ var PLACEMENT = [
|
|
|
130796
131423
|
"grid-column-end"
|
|
130797
131424
|
];
|
|
130798
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);
|
|
130799
131442
|
/** A line for CSS: a number as it is, a string passed through. */
|
|
130800
131443
|
function line(value) {
|
|
130801
131444
|
return typeof value === "number" || typeof value === "string" ? String(value) : "";
|
|
@@ -130807,7 +131450,8 @@ function span(value) {
|
|
|
130807
131450
|
/**
|
|
130808
131451
|
* Rows and columns defined up front, in a CSS-like form (`columns="auto 1fr 2fr 120"`). Children fill
|
|
130809
131452
|
* the cells in order, or declare their position in their own props: `row`, `column`, `rowSpan` and
|
|
130810
|
-
* `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' }}`).
|
|
130811
131455
|
*
|
|
130812
131456
|
* @example
|
|
130813
131457
|
* <Grid columns="auto 1fr" gap="sm">
|
|
@@ -130823,17 +131467,7 @@ var Grid = class extends Control {
|
|
|
130823
131467
|
super("div", props);
|
|
130824
131468
|
const own = this.props ?? {};
|
|
130825
131469
|
this.class.add("mx-grid");
|
|
130826
|
-
this.observeProperty(
|
|
130827
|
-
this.observeProperty("columns", (columns) => this.writeStyle("grid-template-columns", trackList(columns)));
|
|
130828
|
-
this.observeProperty("autoRows", (rows) => this.writeStyle("grid-auto-rows", trackList(typeof rows === "number" ? [rows] : rows)));
|
|
130829
|
-
this.observeProperty("autoColumns", (columns) => this.writeStyle("grid-auto-columns", trackList(typeof columns === "number" ? [columns] : columns)));
|
|
130830
|
-
this.observeProperty("gap", (gap) => setSpace(this, "--_gap", gap));
|
|
130831
|
-
this.observeProperty("rowGap", (gap) => setSpace(this, "--_row-gap", gap));
|
|
130832
|
-
this.observeProperty("columnGap", (gap) => setSpace(this, "--_column-gap", gap));
|
|
130833
|
-
this.observeProperty("padding", (padding) => setPadding(this, padding));
|
|
130834
|
-
this.observeProperty("flow", (flow) => this.writeStyle("grid-auto-flow", flow ?? ""));
|
|
130835
|
-
this.observeProperty("align", (align) => put(this, "data-align", align ?? "stretch"));
|
|
130836
|
-
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)));
|
|
130837
131471
|
this.observeProperty("inline", (inline) => mark(this, "data-inline", !!inline));
|
|
130838
131472
|
for (const name of OWN$6) if (own[name] !== void 0) this.bindProperty(name, own[name]);
|
|
130839
131473
|
this.settings;
|
|
@@ -130911,6 +131545,12 @@ var Grid = class extends Control {
|
|
|
130911
131545
|
set inline(value) {
|
|
130912
131546
|
this.assignProperty("inline", value, Boolean);
|
|
130913
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
|
+
}
|
|
130914
131554
|
/** The cell of a child, from its props or as set with {@link setCell}. */
|
|
130915
131555
|
cellOf(child) {
|
|
130916
131556
|
const cell = {};
|
|
@@ -130928,24 +131568,35 @@ var Grid = class extends Control {
|
|
|
130928
131568
|
const self = this;
|
|
130929
131569
|
if (self[CHILDREN$1]) return self[CHILDREN$1];
|
|
130930
131570
|
self[CHILDREN$1] = new ChildSettings(this, CELL, {
|
|
130931
|
-
changed: (child) =>
|
|
130932
|
-
const get = (name) => this.settings.get(child, name);
|
|
130933
|
-
this.place(child, "grid-row-start", line(get("row")));
|
|
130934
|
-
this.place(child, "grid-row-end", span(get("rowSpan")));
|
|
130935
|
-
this.place(child, "grid-column-start", line(get("column")));
|
|
130936
|
-
this.place(child, "grid-column-end", span(get("columnSpan")));
|
|
130937
|
-
},
|
|
131571
|
+
changed: (child) => this.placeChild(child),
|
|
130938
131572
|
left: (child) => {
|
|
130939
131573
|
for (const name of PLACEMENT) css(child, name, "");
|
|
130940
131574
|
}
|
|
130941
131575
|
});
|
|
130942
131576
|
return self[CHILDREN$1].addPresent();
|
|
130943
131577
|
}
|
|
130944
|
-
|
|
130945
|
-
|
|
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")));
|
|
131584
|
+
}
|
|
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;
|
|
130946
131588
|
}
|
|
130947
|
-
|
|
130948
|
-
|
|
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);
|
|
130949
131600
|
}
|
|
130950
131601
|
};
|
|
130951
131602
|
//#endregion
|
|
@@ -130958,6 +131609,7 @@ var OWN$5 = [
|
|
|
130958
131609
|
"variant"
|
|
130959
131610
|
];
|
|
130960
131611
|
var PARTS$2 = Symbol("mx.group-box");
|
|
131612
|
+
var BREAKPOINTS$3 = Symbol("mx.group-box.breakpoints");
|
|
130961
131613
|
/**
|
|
130962
131614
|
* A titled frame around related controls: a `<fieldset>` whose `<legend>` names the group for
|
|
130963
131615
|
* screen readers. `enabled = false` disables everything inside, the title's `&` key moves focus to
|
|
@@ -130980,8 +131632,8 @@ var GroupBox = class extends Control {
|
|
|
130980
131632
|
const parts = this.parts;
|
|
130981
131633
|
if (own.text === void 0 && own.title !== void 0) this.bindProperty("text", own.title);
|
|
130982
131634
|
this.observeProperty("text", (text) => this.renderTitle(text));
|
|
130983
|
-
this.observeProperty("padding", (padding) => setPadding(this, padding));
|
|
130984
|
-
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)));
|
|
130985
131637
|
this.observeProperty("variant", (variant) => put(this, "data-variant", variant ?? "outline"));
|
|
130986
131638
|
this.observeProperty("collapsible", () => this.renderToggle());
|
|
130987
131639
|
this.observeProperty("collapsed", (collapsed) => {
|
|
@@ -131029,6 +131681,12 @@ var GroupBox = class extends Control {
|
|
|
131029
131681
|
set gap(value) {
|
|
131030
131682
|
this.assignProperty("gap", value);
|
|
131031
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
|
+
}
|
|
131032
131690
|
get variant() {
|
|
131033
131691
|
return this.getProperty("variant") ?? "outline";
|
|
131034
131692
|
}
|
|
@@ -131103,6 +131761,19 @@ var GroupBox = class extends Control {
|
|
|
131103
131761
|
parts.byUser = false;
|
|
131104
131762
|
}
|
|
131105
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
|
+
}
|
|
131106
131777
|
renderTitle(text) {
|
|
131107
131778
|
const parsed = parseAccessKey(text ?? "");
|
|
131108
131779
|
this.setAccessKey(parsed.key);
|
|
@@ -131159,6 +131830,7 @@ var LAYOUT = [
|
|
|
131159
131830
|
];
|
|
131160
131831
|
var SPLITTER = "var(--_layout-splitter-size)";
|
|
131161
131832
|
var PARTS$1 = Symbol("mx.split-container");
|
|
131833
|
+
var BREAKPOINTS$2 = Symbol("mx.split-container.breakpoints");
|
|
131162
131834
|
function isShare(position) {
|
|
131163
131835
|
return typeof position === "string" && position.trim().endsWith("%");
|
|
131164
131836
|
}
|
|
@@ -131251,6 +131923,12 @@ var SplitContainer = class extends FocusContainer {
|
|
|
131251
131923
|
get second() {
|
|
131252
131924
|
return this.parts.second;
|
|
131253
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
|
+
}
|
|
131254
131932
|
/** The splitter part (`role="separator"`). */
|
|
131255
131933
|
get splitterPart() {
|
|
131256
131934
|
return this.parts.splitter;
|
|
@@ -131374,7 +132052,19 @@ var SplitContainer = class extends FocusContainer {
|
|
|
131374
132052
|
};
|
|
131375
132053
|
}
|
|
131376
132054
|
get horizontal() {
|
|
131377
|
-
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();
|
|
131378
132068
|
}
|
|
131379
132069
|
route(control) {
|
|
131380
132070
|
const parts = this.parts;
|
|
@@ -131555,6 +132245,7 @@ var FACING = {
|
|
|
131555
132245
|
end: "margin-inline-start"
|
|
131556
132246
|
};
|
|
131557
132247
|
var CHILDREN = Symbol("mx.dock-panel");
|
|
132248
|
+
var BREAKPOINTS$1 = Symbol("mx.dock-panel.breakpoints");
|
|
131558
132249
|
function length(value) {
|
|
131559
132250
|
if (typeof value === "number") return `${value}px`;
|
|
131560
132251
|
return typeof value === "string" ? value : "";
|
|
@@ -131583,7 +132274,7 @@ var DockPanel = class extends Control {
|
|
|
131583
132274
|
const own = this.props ?? {};
|
|
131584
132275
|
this.class.add("mx-dock-panel");
|
|
131585
132276
|
this.observeProperty("gap", () => this.arrange());
|
|
131586
|
-
this.observeProperty("padding", (padding) => setPadding(this, padding));
|
|
132277
|
+
this.observeProperty("padding", (padding) => setPadding(this, this.at(padding)));
|
|
131587
132278
|
for (const name of OWN$3) if (own[name] !== void 0) this.bindProperty(name, own[name]);
|
|
131588
132279
|
this.settings;
|
|
131589
132280
|
if (this.childs?.length) this.controls.add(...this.childs);
|
|
@@ -131600,9 +132291,15 @@ var DockPanel = class extends Control {
|
|
|
131600
132291
|
set padding(value) {
|
|
131601
132292
|
this.assignProperty("padding", value);
|
|
131602
132293
|
}
|
|
131603
|
-
/**
|
|
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}. */
|
|
131604
132301
|
dockOf(child) {
|
|
131605
|
-
const dock = this.settings.get(child, "dock");
|
|
132302
|
+
const dock = this.at(this.settings.get(child, "dock"));
|
|
131606
132303
|
return dock && DOCKS.has(dock) ? dock : "fill";
|
|
131607
132304
|
}
|
|
131608
132305
|
/** Docks a child programmatically: a value, or a tracked function. */
|
|
@@ -131643,7 +132340,7 @@ var DockPanel = class extends Control {
|
|
|
131643
132340
|
].join(" ");
|
|
131644
132341
|
css(this, "grid-template-rows", tracks(tops, bottoms));
|
|
131645
132342
|
css(this, "grid-template-columns", tracks(starts, ends));
|
|
131646
|
-
const gap = spaceValue(this.peekProperty("gap"));
|
|
132343
|
+
const gap = spaceValue(this.at(this.peekProperty("gap")));
|
|
131647
132344
|
let [t, b, s, e] = [
|
|
131648
132345
|
0,
|
|
131649
132346
|
0,
|
|
@@ -131664,7 +132361,7 @@ var DockPanel = class extends Control {
|
|
|
131664
132361
|
this.write(child, "grid-row", row);
|
|
131665
132362
|
this.write(child, "grid-column", column);
|
|
131666
132363
|
for (const [side, margin] of Object.entries(FACING)) this.write(child, margin, side === dock ? gap : "");
|
|
131667
|
-
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))) : "");
|
|
131668
132365
|
});
|
|
131669
132366
|
}
|
|
131670
132367
|
clear(child) {
|
|
@@ -131679,6 +132376,19 @@ var DockPanel = class extends Control {
|
|
|
131679
132376
|
write(child, name, value) {
|
|
131680
132377
|
css(child, name, value);
|
|
131681
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
|
+
}
|
|
131682
132392
|
};
|
|
131683
132393
|
//#endregion
|
|
131684
132394
|
//#region src/parts/item-tree/ItemTree.ts
|
|
@@ -136507,6 +137217,6 @@ function connectI18n(source, target = uiLocale) {
|
|
|
136507
137217
|
return () => changed.dispose();
|
|
136508
137218
|
}
|
|
136509
137219
|
//#endregion
|
|
136510
|
-
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 };
|
|
136511
137221
|
|
|
136512
137222
|
//# sourceMappingURL=index.js.map
|