@mono-lit/helper 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/control-tooltip-7vegYmq3.js +678 -0
- package/dist/{tooltip-FCMRUSLi.js → control-tooltip-C3rA_nSH.js} +12 -119
- package/dist/{data-source-controller-Cf_sMxEh.js → data-source-controller-C6C4ej_M.js} +1 -1
- package/dist/{data-source-options-Bk-UoaZV.js → data-source-options-Cz9fVLK8.js} +3 -2
- package/dist/{data-source-read-Cuqw3LcP.js → data-source-read-i6CYSUEl.js} +2 -1
- package/dist/{excel-DtRpxmxs.js → excel-BPdDt06G.js} +1 -1
- package/dist/{export-B91P6J1y.js → export-DgomqI_3.js} +2 -2
- package/dist/export.js +2 -2
- package/dist/{field-icons-FmyBWa0g.js → field-icons-t8rXRCKs.js} +50 -1
- package/dist/field-tooltip-FyMi9vNM.js +266 -0
- package/dist/field-tooltip.css_raw-DEctHXKm.js +270 -0
- package/dist/field-validation-CHHQi1zl.js +170 -0
- package/dist/field-validation.css_raw-B3Iu33rS.js +178 -0
- package/dist/{form-control-core-CIdMLXMo.js → form-control-core-rW2WvOcb.js} +1 -1
- package/dist/{hydration-flush-DHrl4_KK.js → hydration-flush-9AJE8FRl.js} +398 -1
- package/dist/index.js +6 -5
- package/dist/{index.node-dvrNviMx.js → index.node-tTkISFn2.js} +2 -2
- package/dist/index.node.js +6 -5
- package/dist/input-format-GrRCJBqV.js +251 -0
- package/dist/input.css_raw-CQu2fAsU.js +5 -0
- package/dist/{light-slots-DdDdZ6zs.js → light-slots-BnBR29E7.js} +1 -1
- package/dist/{light-slots-4ZCjOcBg.js → light-slots-Cb6e-LU3.js} +1 -1
- package/dist/{mono-button-CeDB9khW.js → mono-button-Cy5-Y0At.js} +3 -3
- package/dist/{mono-button.shadow-D9NdMsmH.js → mono-button.shadow-CIBGisyo.js} +1 -2
- package/dist/{mono-data-grid-BHlo1IgR.js → mono-data-grid-KDpu4d4_.js} +5 -4
- package/dist/{mono-element-C7vCschg.js → mono-element-Bc9wElPy.js} +1 -1
- package/dist/{mono-form-controller-IYn0MuUQ.js → mono-form-controller-BkMR8g14.js} +18 -3
- package/dist/mono-ui-KOBJcnXk.js +758 -0
- package/dist/{reactive-DFCdZbH9.js → normalize-error-BmLbgANw.js} +1 -48
- package/dist/nuxt.js +1 -1
- package/dist/{popup-portal-HWhkd7oy.js → popup-portal-C8ttHDRX.js} +17 -1
- package/dist/{popup-stack-De05Y-mJ.js → popup-stack-C64WCuXq.js} +21 -1
- package/dist/src/components/accordion/accordion-core.d.ts +4 -1
- package/dist/src/components/accordion/mono-accordion.shadow.d.ts +4 -1
- package/dist/src/components/date/date-core.d.ts +3 -0
- package/dist/src/components/date/date-types.d.ts +36 -1
- package/dist/src/components/drawer/drawer-core.d.ts +1 -0
- package/dist/src/components/dropdown-table/dropdown-table-core.d.ts +3 -0
- package/dist/src/components/dropdown-table/dropdown-table-types.d.ts +31 -0
- package/dist/src/components/form/form-types.d.ts +23 -5
- package/dist/src/components/input/index.d.ts +2 -2
- package/dist/src/components/input/index.shadow.d.ts +2 -2
- package/dist/src/components/input/input-core.d.ts +23 -3
- package/dist/src/components/input/input-types.d.ts +84 -9
- package/dist/src/components/input/mono-input.d.ts +3 -2
- package/dist/src/components/input/mono-input.shadow.d.ts +3 -2
- package/dist/src/components/modal/modal-core.d.ts +1 -0
- package/dist/src/components/otp/index.d.ts +5 -0
- package/dist/src/components/otp/index.shadow.d.ts +6 -0
- package/dist/src/components/otp/mono-otp.d.ts +32 -0
- package/dist/src/components/otp/mono-otp.shadow.d.ts +30 -0
- package/dist/src/components/otp/otp-core.d.ts +91 -0
- package/dist/src/components/otp/otp-types.d.ts +161 -0
- package/dist/src/components/otp/otp-utils.d.ts +41 -0
- package/dist/src/components/select/select-core.d.ts +3 -0
- package/dist/src/components/select/select-types.d.ts +31 -0
- package/dist/src/components/slider/index.d.ts +5 -0
- package/dist/src/components/slider/index.shadow.d.ts +6 -0
- package/dist/src/components/slider/mono-slider.d.ts +33 -0
- package/dist/src/components/slider/mono-slider.shadow.d.ts +29 -0
- package/dist/src/components/slider/slider-core.d.ts +77 -0
- package/dist/src/components/slider/slider-math.d.ts +102 -0
- package/dist/src/components/slider/slider-types.d.ts +188 -0
- package/dist/src/components/table/column-autosize.d.ts +74 -0
- package/dist/src/components/table/mono-data-grid.d.ts +10 -0
- package/dist/src/components/table/mono-table-th-core.d.ts +3 -0
- package/dist/src/components/table/table-types.d.ts +8 -1
- package/dist/src/components/tag-input/mono-tag-input.d.ts +12 -0
- package/dist/src/components/tag-input/mono-tag-input.shadow.d.ts +9 -1
- package/dist/src/components/tag-input/tag-input-core.d.ts +12 -1
- package/dist/src/components/tag-input/tag-input-types.d.ts +33 -0
- package/dist/src/components/textarea/textarea-core.d.ts +3 -0
- package/dist/src/components/textarea/textarea-types.d.ts +31 -0
- package/dist/src/composables/field-bubble.d.ts +34 -0
- package/dist/src/composables/field-icons.d.ts +10 -0
- package/dist/src/composables/field-tooltip.d.ts +52 -0
- package/dist/src/composables/field-validation.d.ts +58 -0
- package/dist/src/composables/mono-size-attrs.d.ts +10 -0
- package/dist/src/composables/popup-portal.d.ts +12 -0
- package/dist/src/composables/popup-stack.d.ts +21 -0
- package/dist/src/entries/index.d.ts +3 -2
- package/dist/src/entries/index.node.d.ts +3 -2
- package/dist/ssr-lit/runtime/components/LitWrapper.vue +11 -11
- package/dist/ssr-lit/runtime/components/LitWrapperClient.vue +11 -11
- package/dist/ssr-lit/runtime/components/LitWrapperServer.vue +38 -38
- package/dist/ssr-lit/runtime/plugins/antiFouc.server.js +25 -25
- package/dist/ssr-lit/runtime/plugins/hydrateSupport.client.js +4 -4
- package/dist/ssr-lit/runtime/plugins/polyfill.client.js +9 -9
- package/dist/ssr-lit/runtime/utils/customElements.js +11 -11
- package/dist/ssr-lit/runtime/utils/litElementRenderer.js +28 -28
- package/dist/{styles-D-ergrfR.js → styles-BODNpZV1.js} +1 -1
- package/dist/tooltip-Drekihf5.js +102 -0
- package/dist/tooltip-loader-3U9FTOXj.js +20 -0
- package/dist/tooltip-loader-Dcp9AUZn.js +23 -0
- package/dist/tooltip.js +3 -1
- package/dist/ui/accordion.js +19 -6
- package/dist/ui/alert.js +3 -3
- package/dist/ui/breadcrumb.js +3 -3
- package/dist/ui/button-dropdown.js +3 -3
- package/dist/ui/button.js +1 -1
- package/dist/ui/card.js +3 -3
- package/dist/ui/chart.js +3 -4
- package/dist/ui/checkbox.js +3 -3
- package/dist/ui/chip.js +2 -2
- package/dist/ui/date.js +68 -7
- package/dist/ui/drawer.js +14 -5
- package/dist/ui/dropdown-table.js +63 -9
- package/dist/ui/dropdown.js +6 -5
- package/dist/ui/file-upload.js +3 -3
- package/dist/ui/filter.js +2 -2
- package/dist/ui/form.js +1 -1
- package/dist/ui/index.css +4276 -2543
- package/dist/ui/input.js +365 -264
- package/dist/ui/menu.js +3 -3
- package/dist/ui/modal.js +15 -6
- package/dist/ui/nav.js +3 -3
- package/dist/ui/otp.js +834 -0
- package/dist/ui/radio.js +3 -3
- package/dist/ui/rich-text-editor.js +3 -4
- package/dist/ui/select.js +70 -7
- package/dist/ui/shadow/accordion.js +31 -4
- package/dist/ui/shadow/alert.js +2 -2
- package/dist/ui/shadow/breadcrumb.js +1 -1
- package/dist/ui/shadow/button-dropdown.js +3 -3
- package/dist/ui/shadow/button.js +1 -1
- package/dist/ui/shadow/card.js +1 -2
- package/dist/ui/shadow/chart.js +5 -6
- package/dist/ui/shadow/checkbox.js +2 -2
- package/dist/ui/shadow/chip.js +1 -1
- package/dist/ui/shadow/date.js +69 -9
- package/dist/ui/shadow/drawer.js +12 -3
- package/dist/ui/shadow/dropdown-table.js +64 -10
- package/dist/ui/shadow/dropdown.js +4 -3
- package/dist/ui/shadow/file-upload.js +2 -2
- package/dist/ui/shadow/filter.js +1 -2
- package/dist/ui/shadow/input.js +369 -264
- package/dist/ui/shadow/menu.js +1 -1
- package/dist/ui/shadow/modal.js +13 -4
- package/dist/ui/shadow/nav.js +1 -1
- package/dist/ui/shadow/otp.js +841 -0
- package/dist/ui/shadow/radio.js +2 -2
- package/dist/ui/shadow/rich-text-editor.js +2 -3
- package/dist/ui/shadow/select.js +74 -10
- package/dist/ui/shadow/sidebar.js +3 -3
- package/dist/ui/shadow/slider.js +1081 -0
- package/dist/ui/shadow/switch.js +2 -2
- package/dist/ui/shadow/table.js +40 -11
- package/dist/ui/shadow/tabs.js +1 -1
- package/dist/ui/shadow/tag-input.js +160 -15
- package/dist/ui/shadow/textarea.js +65 -5
- package/dist/ui/sidebar.js +5 -5
- package/dist/ui/slider.js +1078 -0
- package/dist/ui/switch.js +3 -3
- package/dist/ui/table.js +36 -7
- package/dist/ui/tabs.js +3 -3
- package/dist/ui/tag-input.js +167 -7
- package/dist/ui/textarea.js +65 -5
- package/dist/ui/theme/luma.css +505 -466
- package/dist/ui/theme/lyra.css +505 -466
- package/dist/ui/theme/maia.css +501 -466
- package/dist/ui/theme/mira.css +505 -466
- package/dist/ui/theme/nova.css +503 -466
- package/dist/ui/theme/one.css +742 -699
- package/dist/ui/theme/rhea.css +506 -466
- package/dist/ui/theme/sera.css +507 -466
- package/dist/ui/theme/vega.css +495 -466
- package/dist/{vite-DcyRlTTf.js → vite-CivRCJaf.js} +2 -0
- package/dist/vite.js +1 -1
- package/dist/vue.d.ts +10 -0
- package/package.json +31 -13
- package/dist/css-size-DWAPgQdT.js +0 -38
- package/dist/input.css_raw-CGESifay.js +0 -5
- package/dist/mono-ui-BwUc0L6B.js +0 -360
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
//#region src/composables/field-bubble.d.ts
|
|
2
|
+
export interface FieldBubbleOptions {
|
|
3
|
+
/** Preferred side of the anchor; flips when it doesn't fit. Default `top`. */
|
|
4
|
+
side?: 'top' | 'bottom';
|
|
5
|
+
/** `center` on the anchor (tooltip), or `start` = flush with its left edge (a message under a box). */
|
|
6
|
+
align?: 'center' | 'start';
|
|
7
|
+
}
|
|
8
|
+
export declare class FieldBubble {
|
|
9
|
+
/** For `id` / `aria-describedby`. */
|
|
10
|
+
readonly id: string;
|
|
11
|
+
private _anchor;
|
|
12
|
+
private _bubble;
|
|
13
|
+
private _open;
|
|
14
|
+
private _hideTimer;
|
|
15
|
+
private readonly _side;
|
|
16
|
+
private readonly _align;
|
|
17
|
+
constructor(options?: FieldBubbleOptions);
|
|
18
|
+
get isOpen(): boolean;
|
|
19
|
+
/** `ref` callback for the element the bubble points at. */
|
|
20
|
+
setAnchor: (el: Element | undefined | null) => void;
|
|
21
|
+
/** `ref` callback for the bubble itself — a new node closes the old one. */
|
|
22
|
+
setBubble: (el: Element | undefined) => void;
|
|
23
|
+
show: () => void;
|
|
24
|
+
hide: () => void;
|
|
25
|
+
scheduleHide: () => void;
|
|
26
|
+
cancelHide: () => void;
|
|
27
|
+
/** `pointerleave` handler: a touch "leaves" on lift — that would close what the tap just opened. */
|
|
28
|
+
onPointerLeave: (e: PointerEvent) => void;
|
|
29
|
+
/** `keydown` handler: Escape closes. */
|
|
30
|
+
onKeydown: (e: KeyboardEvent) => void;
|
|
31
|
+
/** Fixed-position the bubble on its side of the anchor (the other if it doesn't fit), clamped to the viewport. */
|
|
32
|
+
place: () => void;
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
@@ -14,4 +14,14 @@ export declare function chevronIcon(dir: -1 | 1): TemplateResult;
|
|
|
14
14
|
export declare function spinnerIcon(): TemplateResult;
|
|
15
15
|
/** ↻ — the retry affordance a field shows after its data source failed. */
|
|
16
16
|
export declare function refreshIcon(): TemplateResult;
|
|
17
|
+
/**
|
|
18
|
+
* ⓘ — the label's "more information" affordance (`tooltip` prop). The
|
|
19
|
+
* `mdi:information-outline` path, so the shadow builds draw exactly what the
|
|
20
|
+
* light build's `i-mdi-information-outline` mask paints.
|
|
21
|
+
*/
|
|
22
|
+
export declare function infoIcon(): TemplateResult;
|
|
23
|
+
/** `validation-position="icon"` — mdi alert-circle-outline (invalid / warning). */
|
|
24
|
+
export declare function alertCircleIcon(): TemplateResult;
|
|
25
|
+
/** `validation-position="icon"` — mdi check-circle-outline (valid). */
|
|
26
|
+
export declare function checkCircleIcon(): TemplateResult;
|
|
17
27
|
//#endregion
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { MonoTooltipOptions } from "../components/tooltip/tooltip-types.js";
|
|
2
|
+
import { ReactiveController, ReactiveControllerHost, TemplateResult, nothing } from "lit";
|
|
3
|
+
//#region src/composables/field-tooltip.d.ts
|
|
4
|
+
/** What the `tooltip` prop accepts: plain text, or full tooltip options. */
|
|
5
|
+
export type FieldTooltipValue = string | MonoTooltipOptions | null | undefined | false;
|
|
6
|
+
/** @internal — tests: forget the cached probe so a re-mocked peer is probed again. */
|
|
7
|
+
export declare function resetFieldTooltipProbe(): void;
|
|
8
|
+
/** `string` → `{ content }`; anything without content → `null` (renders nothing). */
|
|
9
|
+
export declare function normalizeFieldTooltip(value: FieldTooltipValue): MonoTooltipOptions | null;
|
|
10
|
+
/** A click on the bubble is still inside the `<label>` and the icon: neither should react. */
|
|
11
|
+
export declare const stopBubbleClick: (e: Event) => void;
|
|
12
|
+
export declare class FieldTooltipController implements ReactiveController {
|
|
13
|
+
private readonly host;
|
|
14
|
+
private readonly read;
|
|
15
|
+
private _fn;
|
|
16
|
+
private _ctrl;
|
|
17
|
+
private _el;
|
|
18
|
+
/** The options last handed to the controller — keys dropped since get blanked. */
|
|
19
|
+
private _applied;
|
|
20
|
+
/** The raw prop value behind `_applied` — a string re-normalizes to a new object every time. */
|
|
21
|
+
private _raw;
|
|
22
|
+
private _connected;
|
|
23
|
+
/** The built-in bubble behind a plain-text tooltip. */
|
|
24
|
+
private readonly _bubble;
|
|
25
|
+
constructor(host: ReactiveControllerHost & {
|
|
26
|
+
readonly renderRoot?: Node;
|
|
27
|
+
}, read: () => FieldTooltipValue);
|
|
28
|
+
hostConnected(): void;
|
|
29
|
+
hostDisconnected(): void;
|
|
30
|
+
hostUpdated(): void;
|
|
31
|
+
/** The ⓘ for the end of the label row, or `nothing`. */
|
|
32
|
+
render(): TemplateResult | typeof nothing;
|
|
33
|
+
/**
|
|
34
|
+
* Plain text: the icon carries its own bubble. `aria-describedby` reads the
|
|
35
|
+
* text to screen readers on focus; hover, focus or a tap shows it, Escape
|
|
36
|
+
* dismisses it, and the pointer may move onto it without it closing.
|
|
37
|
+
*/
|
|
38
|
+
private _renderSimple;
|
|
39
|
+
/**
|
|
40
|
+
* Light build: the UnoCSS `i-mdi-information-outline` mask (shipped in
|
|
41
|
+
* `ui/index.css`). Shadow build: the same path inline — the page's icon CSS
|
|
42
|
+
* cannot reach a shadow root.
|
|
43
|
+
*/
|
|
44
|
+
private _icon;
|
|
45
|
+
private _ensureProbe;
|
|
46
|
+
private _setEl;
|
|
47
|
+
private _sync;
|
|
48
|
+
private _unbind;
|
|
49
|
+
/** Touch has no hover: a tap shows it, and it closes when focus leaves. */
|
|
50
|
+
private _onIconClick;
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ReactiveController, ReactiveControllerHost, TemplateResult, nothing } from "lit";
|
|
2
|
+
//#region src/composables/field-validation.d.ts
|
|
3
|
+
export type FieldValidationPosition = 'bottom' | 'icon' | 'float';
|
|
4
|
+
/** The normalized state painted on the icon / bubbles. */
|
|
5
|
+
export type FieldValidationTone = 'invalid' | 'warning' | 'valid';
|
|
6
|
+
export interface FieldValidationRead {
|
|
7
|
+
position: FieldValidationPosition | string | undefined;
|
|
8
|
+
/** The component's own state name (`invalid` / `error` / `warning` / `valid` / `success` / `default`). */
|
|
9
|
+
state: string | undefined;
|
|
10
|
+
/** The validation message; empty → nothing moves. */
|
|
11
|
+
text: string | undefined | null;
|
|
12
|
+
/** While the control's own popup (dropdown, calendar) is open the float bubble stays closed. */
|
|
13
|
+
suppressed?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface FieldValidationNotice {
|
|
16
|
+
position: 'icon' | 'float';
|
|
17
|
+
tone: FieldValidationTone;
|
|
18
|
+
text: string;
|
|
19
|
+
}
|
|
20
|
+
export declare class FieldValidationController implements ReactiveController {
|
|
21
|
+
private readonly host;
|
|
22
|
+
private readonly read;
|
|
23
|
+
private readonly getBox;
|
|
24
|
+
private readonly _iconBubble;
|
|
25
|
+
private readonly _floatBubble;
|
|
26
|
+
private _hovered;
|
|
27
|
+
private _focused;
|
|
28
|
+
constructor(host: ReactiveControllerHost & HTMLElement, read: () => FieldValidationRead, getBox: () => Element | null | undefined);
|
|
29
|
+
/** The message that moved out of the bottom row, or `null` (bottom mode / no text). */
|
|
30
|
+
get notice(): FieldValidationNotice | null;
|
|
31
|
+
/** True when the bottom row should show the helper and keep the validation text sr-only. */
|
|
32
|
+
get moved(): boolean;
|
|
33
|
+
hostConnected(): void;
|
|
34
|
+
hostDisconnected(): void;
|
|
35
|
+
hostUpdated(): void;
|
|
36
|
+
/** Re-evaluate the float bubble — for popups the host opens without a re-render (date's calendar). */
|
|
37
|
+
refresh(): void;
|
|
38
|
+
/**
|
|
39
|
+
* `icon` mode: the state icon for inside the box (before the clear button /
|
|
40
|
+
* actions). `anchored` wraps it in a zero-height `[mono-validation-anchor]`
|
|
41
|
+
* — for the textarea, whose box can't hold children.
|
|
42
|
+
*/
|
|
43
|
+
renderIcon(options?: {
|
|
44
|
+
anchored?: boolean;
|
|
45
|
+
}): TemplateResult | typeof nothing;
|
|
46
|
+
/** `float` mode: the bubble that floats under the box while the field is hovered or focused. */
|
|
47
|
+
renderFloat(): TemplateResult | typeof nothing;
|
|
48
|
+
/** Light build: UnoCSS mask icons; shadow build: inline SVG (page icon CSS can't reach a shadow root). */
|
|
49
|
+
private _glyph;
|
|
50
|
+
/** Touch has no hover: a tap shows the tip — and must not open / focus the control underneath. */
|
|
51
|
+
private _onIconClick;
|
|
52
|
+
private _onEnter;
|
|
53
|
+
private _onLeave;
|
|
54
|
+
private _onFocusIn;
|
|
55
|
+
private _onFocusOut;
|
|
56
|
+
private _syncFloat;
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/composables/mono-size-attrs.d.ts
|
|
2
|
+
/** Apply the three attributes to one element. Re-run whenever one of them changes. */
|
|
3
|
+
export declare function applyMonoSizeAttributes(el: HTMLElement): void;
|
|
4
|
+
/**
|
|
5
|
+
* Turn the attributes on for the whole document — idempotent, so every caller may call it.
|
|
6
|
+
* Returns a stop function (tests; an app never needs it).
|
|
7
|
+
*/
|
|
8
|
+
export declare function startMonoSizeAttributes(): () => void;
|
|
9
|
+
export declare function stopMonoSizeAttributes(): void;
|
|
10
|
+
//#endregion
|
|
@@ -188,6 +188,18 @@ export declare class PopupPortalController implements ReactiveController, PopupL
|
|
|
188
188
|
* in the library asks this method.
|
|
189
189
|
*/
|
|
190
190
|
containsInPath(path: EventTarget[]): boolean;
|
|
191
|
+
/**
|
|
192
|
+
* PopupLayer hook — this popup's OWN containment: its portaled panel or a popup
|
|
193
|
+
* opened from inside it. Never the layers above (that is `inLayerAbove`), so
|
|
194
|
+
* `pathInLayerAbove` walking the stack does not recurse.
|
|
195
|
+
*/
|
|
196
|
+
containsEventPath(path: EventTarget[]): boolean;
|
|
197
|
+
/**
|
|
198
|
+
* True when the path lands in a layer opened ABOVE this popup while it is open
|
|
199
|
+
* — a modal opened from a figure in this panel, say. That layer is on top of the
|
|
200
|
+
* panel, not outside it, so its clicks, focus and Escape are not a dismiss.
|
|
201
|
+
*/
|
|
202
|
+
inLayerAbove(path: EventTarget[]): boolean;
|
|
191
203
|
/**
|
|
192
204
|
* True when the path passes through a popup opened from INSIDE this one
|
|
193
205
|
* (at any depth) — not this popup's own panel.
|
|
@@ -38,6 +38,12 @@ export interface PopupLayer {
|
|
|
38
38
|
* underneath the very dialog it belongs to.
|
|
39
39
|
*/
|
|
40
40
|
readonly pinnedZ?: number;
|
|
41
|
+
/**
|
|
42
|
+
* True when an event's composed path lands inside THIS layer — its own
|
|
43
|
+
* surface and any popup opened from within it, never the layers above it.
|
|
44
|
+
* What `pathInLayerAbove` asks each layer stacked over another one.
|
|
45
|
+
*/
|
|
46
|
+
containsEventPath?(path: EventTarget[]): boolean;
|
|
41
47
|
}
|
|
42
48
|
/** Add a layer to the top of the stack (call on open). */
|
|
43
49
|
export declare function registerPopupLayer(layer: PopupLayer): void;
|
|
@@ -69,4 +75,19 @@ export declare function setExternalScrollLock(owner: object, wanted: boolean): v
|
|
|
69
75
|
* own type — filter the returned list by `instanceof`.
|
|
70
76
|
*/
|
|
71
77
|
export declare function getOpenPopupLayers(): readonly PopupLayer[];
|
|
78
|
+
/**
|
|
79
|
+
* True when an event's composed path lands inside a layer opened AFTER `layer`
|
|
80
|
+
* — one stacked above it.
|
|
81
|
+
*
|
|
82
|
+
* The other half of the "topmost only" rule modal and drawer apply to their own
|
|
83
|
+
* outside click. A dropdown open under a dialog that was opened from its panel
|
|
84
|
+
* (a figure in a tag-input option opening a breakdown modal) must not read a
|
|
85
|
+
* click or focus in that dialog as "outside": the dialog is not behind the
|
|
86
|
+
* panel, it is on top of it. Ownership (`pathOwnedBy`) cannot tell, because the
|
|
87
|
+
* dialog's element usually lives elsewhere on the page, not inside the panel.
|
|
88
|
+
*
|
|
89
|
+
* A layer opened BEFORE `layer` (the modal a dropdown sits in) is below it and
|
|
90
|
+
* does not count, so a click in that modal's body still closes the dropdown.
|
|
91
|
+
*/
|
|
92
|
+
export declare function pathInLayerAbove(layer: PopupLayer, path: EventTarget[]): boolean;
|
|
72
93
|
//#endregion
|
|
@@ -14,6 +14,7 @@ import { MonoChartAgg, MonoChartAggregateCtx, MonoChartController, MonoChartData
|
|
|
14
14
|
import { arrayToODataString, arrayToTree, odataStringToArray, treeToArray } from "../components/filter/filter-odata.js";
|
|
15
15
|
import { MonoChartOdataRequest, buildChartApply, buildChartOdataRequest, composeApply } from "../components/chart/chart-odata.js";
|
|
16
16
|
import { controlMonoChart as monoChart } from "../components/chart/mono-data-chart.js";
|
|
17
|
+
import { MonoTooltipColor, MonoTooltipContent, MonoTooltipController, MonoTooltipGlobal, MonoTooltipGlobalOptions, MonoTooltipOptions, MonoTooltipPlacement, MonoTooltipSize, MonoTooltipTarget, MonoTooltipTrigger, MonoTooltipVariant } from "../components/tooltip/tooltip-types.js";
|
|
17
18
|
import { MonoDataDropdownOptions, MonoDropdownController, MonoDropdownItem, controlMonoDataDropdown as monoDataDropdown } from "../components/dropdown-table/mono-data-dropdown.js";
|
|
18
19
|
import { controlMonoFilterBuilder as monoFilterBuilder } from "../components/filter/filter-builder.js";
|
|
19
20
|
import { DEFAULT_TEXTS, OPERATOR_ARITY, operatorsFor } from "../components/filter/filter-operators.js";
|
|
@@ -24,14 +25,14 @@ import { controlMonoModal as monoModal } from "../components/modal/mono-modal-co
|
|
|
24
25
|
import { MonoArraySourceOptions, monoArraySource } from "../components/table/array-source.js";
|
|
25
26
|
import { FieldSegment, ODataClause, ParsedFieldPath, getFieldValue, isPath, mergePatch, parseFieldPath, setFieldValue, toODataClause, toODataSelector } from "../search/field-path.js";
|
|
26
27
|
import { TableCheckboxProps, TableDetailProps, TableInfoProps, TableLoadingProps, TablePageSizeProps, TablePagingProps, TableSearchProps, TableSortProps, TableSummaryProps, TableThProps, TableThSort } from "../components/table/table-types.js";
|
|
27
|
-
import { MonoTooltipColor, MonoTooltipContent, MonoTooltipController, MonoTooltipGlobal, MonoTooltipGlobalOptions, MonoTooltipOptions, MonoTooltipPlacement, MonoTooltipSize, MonoTooltipTarget, MonoTooltipTrigger, MonoTooltipVariant } from "../components/tooltip/tooltip-types.js";
|
|
28
28
|
import { controlMonoTooltip, monoTooltip } from "../components/tooltip/control-tooltip.js";
|
|
29
29
|
import { createMonoTooltip, destroyAllMonoTooltips, resetMonoTooltip } from "../components/tooltip/tooltip-declarative.js";
|
|
30
30
|
import { getMonoTooltipGlobal } from "../components/tooltip/tooltip-config.js";
|
|
31
|
+
import { applyMonoSizeAttributes, startMonoSizeAttributes, stopMonoSizeAttributes } from "../composables/mono-size-attrs.js";
|
|
31
32
|
import { MonoPending, MonoPendingOptions, MonoPhantomProps, MonoSkeletonDefaults, MonoSkeletonStatus, getMonoSkeletonStatus, isMonoSsrApp, resetMonoSkeleton } from "../composables/mono-skeleton.js";
|
|
32
33
|
import { MonoUI, MonoUIComponents, MonoUIConfig, MonoUIStatus, createMonoUI, getMonoUI, getMonoUIStatus, resetMonoUI } from "../composables/mono-ui.js";
|
|
33
34
|
import { BasecoatTokens, DEFAULT_FLAVOR, DEFAULT_THEME, FlavorName, MonoRoleTokens, ThemeColors, ThemeFlavor, ThemeMode, ThemeName, ThemePalette, flavorPresets, themePresets } from "../data/theme/presets.js";
|
|
34
35
|
import { ApplyThemeInput, FlavorConfig, ThemeConfig, applyFlavor, applyTheme, createFlavorClass, createThemeClass, flavors, getAllFlavors, getAllThemes, getCurrentFlavor, getCurrentTheme, getFlavorData, getThemeData, isValidFlavor, isValidTheme, resetFlavor, resetTheme, themes } from "../data/theme/index.js";
|
|
35
36
|
import "./index.node.js";
|
|
36
37
|
import "virtual:uno.css";
|
|
37
|
-
export { type ApplySourceSearchOptions, ApplyThemeInput, BasecoatTokens, DEFAULT_ERROR_MESSAGES, DEFAULT_FLAVOR, DEFAULT_SEARCH_OPERATION, DEFAULT_THEME, type DescribedError, type FieldSegment, type FilterBuilderEvents, FlavorConfig, FlavorName, type GroupPageInfo, OPERATOR_ARITY as MONO_FILTER_OPERATOR_ARITY, DEFAULT_TEXTS as MONO_FILTER_TEXTS, type MaybeReactive, type MonoArraySourceOptions, type MonoChartAgg, type MonoChartAggregateCtx, type MonoChartController, type MonoChartData, type MonoChartDataset, type MonoChartOdataOptions, type MonoChartOdataRequest, type MonoChartOptions, type MonoChartPointEvent, type MonoChartProps, type MonoChartSeries, type MonoChartSource, type MonoChartType, type MonoCheckConfig, type MonoCheckHandle, type MonoCheckMode, type MonoColumnDef, type MonoColumnHandle, type MonoDataDropdownOptions, type MonoDataGridOptions, type MonoDataSourceOptions, type MonoDetailEl, type MonoDetailHandle, type MonoDialogButton, type MonoDialogButtonCtx, type MonoDialogController, type MonoDialogOptions, type MonoDisplayRow, type MonoDistinctValuesContext, type MonoDropdownController, type MonoDropdownItem, type MonoErrorMessageKey, type MonoErrorMessages, type MonoEventProps, type MonoExportColumn, type MonoExportDetail, type MonoExportDetailBatch, type MonoExportFormat, type MonoExportFormatOptions, type MonoExportOptions, type MonoExportResult, type MonoExportStyle, type MonoExportStyles, type MonoFilterApplyEvent, type MonoFilterBuilderOptions, type MonoFilterBuilderProps, type MonoFilterChangeEvent, type MonoFilterChangeEventDetail, type MonoFilterClearEvent, type MonoFilterClearEventDetail, type MonoFilterController, type MonoFilterDataType, type MonoFilterExpression, type MonoFilterField, type MonoFilterGroup, type MonoFilterGroupOperator, type MonoFilterNode, type MonoFilterOperator, type MonoFilterOutput, type MonoFilterProps, type MonoFilterReadOptions, type MonoFilterRule, type MonoFilterSize, type MonoFilterTexts, type MonoFormComponent, type MonoFormComponentProps, type MonoFormController, type MonoFormInput, type MonoFormInputOf, type MonoFormItem, type MonoFormOptions, type MonoFormProps, type MonoFormRefLike, type MonoFormRule, type MonoFormRuleCtx, type MonoFormSchemaLike, type MonoFormSetProp, type MonoFormSetValidation, type MonoFormTiming, type MonoFormValidation, type MonoFormWatcherCtx, type MonoGridSource, type MonoGroupMeta, type MonoGroupNode, type MonoImportAmbiguity, type MonoImportChange, type MonoImportColumn, type MonoImportMatch, type MonoImportNumberFormat, type MonoImportOptions, type MonoImportRejection, type MonoImportResult, type MonoImportType, type MonoImportValueType, type MonoModalController, type MonoModalOptions, type MonoOdataOptions, type MonoPending, type MonoPendingOptions, type MonoPhantomProps, MonoRoleTokens, type MonoSearchCustomCtx, type MonoSearchCustomResult, type MonoSearchExpr, type MonoSearchExprCustom, type MonoSearchExprEntry, type MonoSearchFieldsAliases, type MonoSearchTerm, type MonoSearchValue, type MonoServerGroupCtx, type MonoServerGroupSource, type MonoSkeletonDefaults, type MonoSkeletonStatus, MonoSourceSearch, type MonoSummaryConfig, type MonoSummaryFieldSpec, type MonoSummaryHandle, type MonoSummaryRecalculate, type MonoSummaryResult, type MonoSummarySpec, type MonoSummaryType, type MonoTableColumnProps, type MonoTableController, type MonoTableProps, type MonoTooltipColor, type MonoTooltipContent, type MonoTooltipController, type MonoTooltipGlobal, type MonoTooltipGlobalOptions, type MonoTooltipOptions, type MonoTooltipPlacement, type MonoTooltipSize, type MonoTooltipTarget, type MonoTooltipTrigger, type MonoTooltipVariant, type MonoUI, type MonoUIComponents, type MonoUIConfig, type MonoUIStatus, type ODataClause, type ParsedFieldPath, type ResolveSearchFieldsOptions, SEARCH_FIELDS_KEYS, type SearchableSource, type SortOrder, type TableCheckboxProps, type TableDetailProps, type TableInfoProps, type TableLoadingProps, type TablePageSizeProps, type TablePagingProps, type TableSearchProps, type TableSortProps, type TableSummaryProps, type TableThProps, type TableThSort, ThemeColors, ThemeConfig, ThemeFlavor, ThemeMode, ThemeName, ThemePalette, applyFlavor, applyTheme, arrayToODataString, arrayToTree, buildChartApply, buildChartOdataRequest, buildGroups, collectGroupPaths, composeApply, monoChart as controlMonoChart, monoDataDropdown as controlMonoDataDropdown, monoFilterBuilder as controlMonoFilterBuilder, monoForm as controlMonoForm, monoModal as controlMonoModal, monoDataGrid as controlMonoTable, controlMonoTooltip, createFlavorClass, createMonoTooltip, createMonoUI, createThemeClass, describeError, destroyAllMonoTooltips, errorStatus, flattenLeaves, flavorPresets, flavors, getAllFlavors, getAllThemes, getCurrentFlavor, getCurrentTheme, getFieldValue, getFlavorData, getMonoSkeletonStatus, getMonoTooltipGlobal, getMonoUI, getMonoUIStatus, getThemeData, isFoldableSearch, isGroupNode, isMonoSsrApp, isPath, isValidFlavor, isValidTheme, mergePatch, mergeSearchFields, monoArraySource, monoChart, monoDataDropdown, monoDataGrid, monoFilterBuilder, operatorsFor as monoFilterOperatorsFor, monoForm, monoModal, monoTooltip, normalizeError, odataStringToArray, parseFieldPath, parseSearchValue, plainSearchFields, readSearchField, resetFlavor, resetMonoSkeleton, resetMonoTooltip, resetMonoUI, resetTheme, resolveErrorMessages, resolveMaybeReactive, resolveSearchFields, searchRemoteFilter, searchRowPredicate, setErrorMessages, setFieldValue, themePresets, themes, toODataClause, toODataSelector, treeToArray };
|
|
38
|
+
export { type ApplySourceSearchOptions, ApplyThemeInput, BasecoatTokens, DEFAULT_ERROR_MESSAGES, DEFAULT_FLAVOR, DEFAULT_SEARCH_OPERATION, DEFAULT_THEME, type DescribedError, type FieldSegment, type FilterBuilderEvents, FlavorConfig, FlavorName, type GroupPageInfo, OPERATOR_ARITY as MONO_FILTER_OPERATOR_ARITY, DEFAULT_TEXTS as MONO_FILTER_TEXTS, type MaybeReactive, type MonoArraySourceOptions, type MonoChartAgg, type MonoChartAggregateCtx, type MonoChartController, type MonoChartData, type MonoChartDataset, type MonoChartOdataOptions, type MonoChartOdataRequest, type MonoChartOptions, type MonoChartPointEvent, type MonoChartProps, type MonoChartSeries, type MonoChartSource, type MonoChartType, type MonoCheckConfig, type MonoCheckHandle, type MonoCheckMode, type MonoColumnDef, type MonoColumnHandle, type MonoDataDropdownOptions, type MonoDataGridOptions, type MonoDataSourceOptions, type MonoDetailEl, type MonoDetailHandle, type MonoDialogButton, type MonoDialogButtonCtx, type MonoDialogController, type MonoDialogOptions, type MonoDisplayRow, type MonoDistinctValuesContext, type MonoDropdownController, type MonoDropdownItem, type MonoErrorMessageKey, type MonoErrorMessages, type MonoEventProps, type MonoExportColumn, type MonoExportDetail, type MonoExportDetailBatch, type MonoExportFormat, type MonoExportFormatOptions, type MonoExportOptions, type MonoExportResult, type MonoExportStyle, type MonoExportStyles, type MonoFilterApplyEvent, type MonoFilterBuilderOptions, type MonoFilterBuilderProps, type MonoFilterChangeEvent, type MonoFilterChangeEventDetail, type MonoFilterClearEvent, type MonoFilterClearEventDetail, type MonoFilterController, type MonoFilterDataType, type MonoFilterExpression, type MonoFilterField, type MonoFilterGroup, type MonoFilterGroupOperator, type MonoFilterNode, type MonoFilterOperator, type MonoFilterOutput, type MonoFilterProps, type MonoFilterReadOptions, type MonoFilterRule, type MonoFilterSize, type MonoFilterTexts, type MonoFormComponent, type MonoFormComponentProps, type MonoFormController, type MonoFormInput, type MonoFormInputOf, type MonoFormItem, type MonoFormOptions, type MonoFormProps, type MonoFormRefLike, type MonoFormRule, type MonoFormRuleCtx, type MonoFormSchemaLike, type MonoFormSetProp, type MonoFormSetValidation, type MonoFormTiming, type MonoFormValidation, type MonoFormWatcherCtx, type MonoGridSource, type MonoGroupMeta, type MonoGroupNode, type MonoImportAmbiguity, type MonoImportChange, type MonoImportColumn, type MonoImportMatch, type MonoImportNumberFormat, type MonoImportOptions, type MonoImportRejection, type MonoImportResult, type MonoImportType, type MonoImportValueType, type MonoModalController, type MonoModalOptions, type MonoOdataOptions, type MonoPending, type MonoPendingOptions, type MonoPhantomProps, MonoRoleTokens, type MonoSearchCustomCtx, type MonoSearchCustomResult, type MonoSearchExpr, type MonoSearchExprCustom, type MonoSearchExprEntry, type MonoSearchFieldsAliases, type MonoSearchTerm, type MonoSearchValue, type MonoServerGroupCtx, type MonoServerGroupSource, type MonoSkeletonDefaults, type MonoSkeletonStatus, MonoSourceSearch, type MonoSummaryConfig, type MonoSummaryFieldSpec, type MonoSummaryHandle, type MonoSummaryRecalculate, type MonoSummaryResult, type MonoSummarySpec, type MonoSummaryType, type MonoTableColumnProps, type MonoTableController, type MonoTableProps, type MonoTooltipColor, type MonoTooltipContent, type MonoTooltipController, type MonoTooltipGlobal, type MonoTooltipGlobalOptions, type MonoTooltipOptions, type MonoTooltipPlacement, type MonoTooltipSize, type MonoTooltipTarget, type MonoTooltipTrigger, type MonoTooltipVariant, type MonoUI, type MonoUIComponents, type MonoUIConfig, type MonoUIStatus, type ODataClause, type ParsedFieldPath, type ResolveSearchFieldsOptions, SEARCH_FIELDS_KEYS, type SearchableSource, type SortOrder, type TableCheckboxProps, type TableDetailProps, type TableInfoProps, type TableLoadingProps, type TablePageSizeProps, type TablePagingProps, type TableSearchProps, type TableSortProps, type TableSummaryProps, type TableThProps, type TableThSort, ThemeColors, ThemeConfig, ThemeFlavor, ThemeMode, ThemeName, ThemePalette, applyFlavor, applyMonoSizeAttributes, applyTheme, arrayToODataString, arrayToTree, buildChartApply, buildChartOdataRequest, buildGroups, collectGroupPaths, composeApply, monoChart as controlMonoChart, monoDataDropdown as controlMonoDataDropdown, monoFilterBuilder as controlMonoFilterBuilder, monoForm as controlMonoForm, monoModal as controlMonoModal, monoDataGrid as controlMonoTable, controlMonoTooltip, createFlavorClass, createMonoTooltip, createMonoUI, createThemeClass, describeError, destroyAllMonoTooltips, errorStatus, flattenLeaves, flavorPresets, flavors, getAllFlavors, getAllThemes, getCurrentFlavor, getCurrentTheme, getFieldValue, getFlavorData, getMonoSkeletonStatus, getMonoTooltipGlobal, getMonoUI, getMonoUIStatus, getThemeData, isFoldableSearch, isGroupNode, isMonoSsrApp, isPath, isValidFlavor, isValidTheme, mergePatch, mergeSearchFields, monoArraySource, monoChart, monoDataDropdown, monoDataGrid, monoFilterBuilder, operatorsFor as monoFilterOperatorsFor, monoForm, monoModal, monoTooltip, normalizeError, odataStringToArray, parseFieldPath, parseSearchValue, plainSearchFields, readSearchField, resetFlavor, resetMonoSkeleton, resetMonoTooltip, resetMonoUI, resetTheme, resolveErrorMessages, resolveMaybeReactive, resolveSearchFields, searchRemoteFilter, searchRowPredicate, setErrorMessages, setFieldValue, startMonoSizeAttributes, stopMonoSizeAttributes, themePresets, themes, toODataClause, toODataSelector, treeToArray };
|
|
@@ -14,6 +14,7 @@ import { MonoChartAgg, MonoChartAggregateCtx, MonoChartController, MonoChartData
|
|
|
14
14
|
import { arrayToODataString, arrayToTree, odataStringToArray, treeToArray } from "../components/filter/filter-odata.js";
|
|
15
15
|
import { MonoChartOdataRequest, buildChartApply, buildChartOdataRequest, composeApply } from "../components/chart/chart-odata.js";
|
|
16
16
|
import { controlMonoChart as monoChart } from "../components/chart/mono-data-chart.js";
|
|
17
|
+
import { MonoTooltipColor, MonoTooltipContent, MonoTooltipController, MonoTooltipGlobal, MonoTooltipGlobalOptions, MonoTooltipOptions, MonoTooltipPlacement, MonoTooltipSize, MonoTooltipTarget, MonoTooltipTrigger, MonoTooltipVariant } from "../components/tooltip/tooltip-types.js";
|
|
17
18
|
import { MonoDataDropdownOptions, MonoDropdownController, MonoDropdownItem, controlMonoDataDropdown as monoDataDropdown } from "../components/dropdown-table/mono-data-dropdown.js";
|
|
18
19
|
import { controlMonoFilterBuilder as monoFilterBuilder } from "../components/filter/filter-builder.js";
|
|
19
20
|
import { DEFAULT_TEXTS, OPERATOR_ARITY, operatorsFor } from "../components/filter/filter-operators.js";
|
|
@@ -24,12 +25,12 @@ import { controlMonoModal as monoModal } from "../components/modal/mono-modal-co
|
|
|
24
25
|
import { MonoArraySourceOptions, monoArraySource } from "../components/table/array-source.js";
|
|
25
26
|
import { FieldSegment, ODataClause, ParsedFieldPath, getFieldValue, isPath, mergePatch, parseFieldPath, setFieldValue, toODataClause, toODataSelector } from "../search/field-path.js";
|
|
26
27
|
import { TableCheckboxProps, TableDetailProps, TableInfoProps, TableLoadingProps, TablePageSizeProps, TablePagingProps, TableSearchProps, TableSortProps, TableSummaryProps, TableThProps, TableThSort } from "../components/table/table-types.js";
|
|
27
|
-
import { MonoTooltipColor, MonoTooltipContent, MonoTooltipController, MonoTooltipGlobal, MonoTooltipGlobalOptions, MonoTooltipOptions, MonoTooltipPlacement, MonoTooltipSize, MonoTooltipTarget, MonoTooltipTrigger, MonoTooltipVariant } from "../components/tooltip/tooltip-types.js";
|
|
28
28
|
import { controlMonoTooltip, monoTooltip } from "../components/tooltip/control-tooltip.js";
|
|
29
29
|
import { createMonoTooltip, destroyAllMonoTooltips, resetMonoTooltip } from "../components/tooltip/tooltip-declarative.js";
|
|
30
30
|
import { getMonoTooltipGlobal } from "../components/tooltip/tooltip-config.js";
|
|
31
|
+
import { applyMonoSizeAttributes, startMonoSizeAttributes, stopMonoSizeAttributes } from "../composables/mono-size-attrs.js";
|
|
31
32
|
import { MonoPending, MonoPendingOptions, MonoPhantomProps, MonoSkeletonDefaults, MonoSkeletonStatus, getMonoSkeletonStatus, isMonoSsrApp, resetMonoSkeleton } from "../composables/mono-skeleton.js";
|
|
32
33
|
import { MonoUI, MonoUIComponents, MonoUIConfig, MonoUIStatus, createMonoUI, getMonoUI, getMonoUIStatus, resetMonoUI } from "../composables/mono-ui.js";
|
|
33
34
|
import { BasecoatTokens, DEFAULT_FLAVOR, DEFAULT_THEME, FlavorName, MonoRoleTokens, ThemeColors, ThemeFlavor, ThemeMode, ThemeName, ThemePalette, flavorPresets, themePresets } from "../data/theme/presets.js";
|
|
34
35
|
import { ApplyThemeInput, FlavorConfig, ThemeConfig, applyFlavor, applyTheme, createFlavorClass, createThemeClass, flavors, getAllFlavors, getAllThemes, getCurrentFlavor, getCurrentTheme, getFlavorData, getThemeData, isValidFlavor, isValidTheme, resetFlavor, resetTheme, themes } from "../data/theme/index.js";
|
|
35
|
-
export { type ApplySourceSearchOptions, ApplyThemeInput, BasecoatTokens, DEFAULT_ERROR_MESSAGES, DEFAULT_FLAVOR, DEFAULT_SEARCH_OPERATION, DEFAULT_THEME, type DescribedError, type FieldSegment, type FilterBuilderEvents, FlavorConfig, FlavorName, type GroupPageInfo, OPERATOR_ARITY as MONO_FILTER_OPERATOR_ARITY, DEFAULT_TEXTS as MONO_FILTER_TEXTS, type MaybeReactive, type MonoArraySourceOptions, type MonoChartAgg, type MonoChartAggregateCtx, type MonoChartController, type MonoChartData, type MonoChartDataset, type MonoChartOdataOptions, type MonoChartOdataRequest, type MonoChartOptions, type MonoChartPointEvent, type MonoChartProps, type MonoChartSeries, type MonoChartSource, type MonoChartType, type MonoCheckConfig, type MonoCheckHandle, type MonoCheckMode, type MonoColumnDef, type MonoColumnHandle, type MonoDataDropdownOptions, type MonoDataGridOptions, type MonoDataSourceOptions, type MonoDetailEl, type MonoDetailHandle, type MonoDialogButton, type MonoDialogButtonCtx, type MonoDialogController, type MonoDialogOptions, type MonoDisplayRow, type MonoDistinctValuesContext, type MonoDropdownController, type MonoDropdownItem, type MonoErrorMessageKey, type MonoErrorMessages, type MonoEventProps, type MonoExportColumn, type MonoExportDetail, type MonoExportDetailBatch, type MonoExportFormat, type MonoExportFormatOptions, type MonoExportOptions, type MonoExportResult, type MonoExportStyle, type MonoExportStyles, type MonoFilterApplyEvent, type MonoFilterBuilderOptions, type MonoFilterBuilderProps, type MonoFilterChangeEvent, type MonoFilterChangeEventDetail, type MonoFilterClearEvent, type MonoFilterClearEventDetail, type MonoFilterController, type MonoFilterDataType, type MonoFilterExpression, type MonoFilterField, type MonoFilterGroup, type MonoFilterGroupOperator, type MonoFilterNode, type MonoFilterOperator, type MonoFilterOutput, type MonoFilterProps, type MonoFilterReadOptions, type MonoFilterRule, type MonoFilterSize, type MonoFilterTexts, type MonoFormComponent, type MonoFormComponentProps, type MonoFormController, type MonoFormInput, type MonoFormInputOf, type MonoFormItem, type MonoFormOptions, type MonoFormProps, type MonoFormRefLike, type MonoFormRule, type MonoFormRuleCtx, type MonoFormSchemaLike, type MonoFormSetProp, type MonoFormSetValidation, type MonoFormTiming, type MonoFormValidation, type MonoFormWatcherCtx, type MonoGridSource, type MonoGroupMeta, type MonoGroupNode, type MonoImportAmbiguity, type MonoImportChange, type MonoImportColumn, type MonoImportMatch, type MonoImportNumberFormat, type MonoImportOptions, type MonoImportRejection, type MonoImportResult, type MonoImportType, type MonoImportValueType, type MonoModalController, type MonoModalOptions, type MonoOdataOptions, type MonoPending, type MonoPendingOptions, type MonoPhantomProps, MonoRoleTokens, type MonoSearchCustomCtx, type MonoSearchCustomResult, type MonoSearchExpr, type MonoSearchExprCustom, type MonoSearchExprEntry, type MonoSearchFieldsAliases, type MonoSearchTerm, type MonoSearchValue, type MonoServerGroupCtx, type MonoServerGroupSource, type MonoSkeletonDefaults, type MonoSkeletonStatus, MonoSourceSearch, type MonoSummaryConfig, type MonoSummaryFieldSpec, type MonoSummaryHandle, type MonoSummaryRecalculate, type MonoSummaryResult, type MonoSummarySpec, type MonoSummaryType, type MonoTableColumnProps, type MonoTableController, type MonoTableProps, type MonoTooltipColor, type MonoTooltipContent, type MonoTooltipController, type MonoTooltipGlobal, type MonoTooltipGlobalOptions, type MonoTooltipOptions, type MonoTooltipPlacement, type MonoTooltipSize, type MonoTooltipTarget, type MonoTooltipTrigger, type MonoTooltipVariant, type MonoUI, type MonoUIComponents, type MonoUIConfig, type MonoUIStatus, type ODataClause, type ParsedFieldPath, type ResolveSearchFieldsOptions, SEARCH_FIELDS_KEYS, type SearchableSource, type SortOrder, type TableCheckboxProps, type TableDetailProps, type TableInfoProps, type TableLoadingProps, type TablePageSizeProps, type TablePagingProps, type TableSearchProps, type TableSortProps, type TableSummaryProps, type TableThProps, type TableThSort, ThemeColors, ThemeConfig, ThemeFlavor, ThemeMode, ThemeName, ThemePalette, applyFlavor, applyTheme, arrayToODataString, arrayToTree, buildChartApply, buildChartOdataRequest, buildGroups, collectGroupPaths, composeApply, monoChart as controlMonoChart, monoDataDropdown as controlMonoDataDropdown, monoFilterBuilder as controlMonoFilterBuilder, monoForm as controlMonoForm, monoModal as controlMonoModal, monoDataGrid as controlMonoTable, controlMonoTooltip, createFlavorClass, createMonoTooltip, createMonoUI, createThemeClass, describeError, destroyAllMonoTooltips, errorStatus, flattenLeaves, flavorPresets, flavors, getAllFlavors, getAllThemes, getCurrentFlavor, getCurrentTheme, getFieldValue, getFlavorData, getMonoSkeletonStatus, getMonoTooltipGlobal, getMonoUI, getMonoUIStatus, getThemeData, isFoldableSearch, isGroupNode, isMonoSsrApp, isPath, isValidFlavor, isValidTheme, mergePatch, mergeSearchFields, monoArraySource, monoChart, monoDataDropdown, monoDataGrid, monoFilterBuilder, operatorsFor as monoFilterOperatorsFor, monoForm, monoModal, monoTooltip, normalizeError, odataStringToArray, parseFieldPath, parseSearchValue, plainSearchFields, readSearchField, resetFlavor, resetMonoSkeleton, resetMonoTooltip, resetMonoUI, resetTheme, resolveErrorMessages, resolveMaybeReactive, resolveSearchFields, searchRemoteFilter, searchRowPredicate, setErrorMessages, setFieldValue, themePresets, themes, toODataClause, toODataSelector, treeToArray };
|
|
36
|
+
export { type ApplySourceSearchOptions, ApplyThemeInput, BasecoatTokens, DEFAULT_ERROR_MESSAGES, DEFAULT_FLAVOR, DEFAULT_SEARCH_OPERATION, DEFAULT_THEME, type DescribedError, type FieldSegment, type FilterBuilderEvents, FlavorConfig, FlavorName, type GroupPageInfo, OPERATOR_ARITY as MONO_FILTER_OPERATOR_ARITY, DEFAULT_TEXTS as MONO_FILTER_TEXTS, type MaybeReactive, type MonoArraySourceOptions, type MonoChartAgg, type MonoChartAggregateCtx, type MonoChartController, type MonoChartData, type MonoChartDataset, type MonoChartOdataOptions, type MonoChartOdataRequest, type MonoChartOptions, type MonoChartPointEvent, type MonoChartProps, type MonoChartSeries, type MonoChartSource, type MonoChartType, type MonoCheckConfig, type MonoCheckHandle, type MonoCheckMode, type MonoColumnDef, type MonoColumnHandle, type MonoDataDropdownOptions, type MonoDataGridOptions, type MonoDataSourceOptions, type MonoDetailEl, type MonoDetailHandle, type MonoDialogButton, type MonoDialogButtonCtx, type MonoDialogController, type MonoDialogOptions, type MonoDisplayRow, type MonoDistinctValuesContext, type MonoDropdownController, type MonoDropdownItem, type MonoErrorMessageKey, type MonoErrorMessages, type MonoEventProps, type MonoExportColumn, type MonoExportDetail, type MonoExportDetailBatch, type MonoExportFormat, type MonoExportFormatOptions, type MonoExportOptions, type MonoExportResult, type MonoExportStyle, type MonoExportStyles, type MonoFilterApplyEvent, type MonoFilterBuilderOptions, type MonoFilterBuilderProps, type MonoFilterChangeEvent, type MonoFilterChangeEventDetail, type MonoFilterClearEvent, type MonoFilterClearEventDetail, type MonoFilterController, type MonoFilterDataType, type MonoFilterExpression, type MonoFilterField, type MonoFilterGroup, type MonoFilterGroupOperator, type MonoFilterNode, type MonoFilterOperator, type MonoFilterOutput, type MonoFilterProps, type MonoFilterReadOptions, type MonoFilterRule, type MonoFilterSize, type MonoFilterTexts, type MonoFormComponent, type MonoFormComponentProps, type MonoFormController, type MonoFormInput, type MonoFormInputOf, type MonoFormItem, type MonoFormOptions, type MonoFormProps, type MonoFormRefLike, type MonoFormRule, type MonoFormRuleCtx, type MonoFormSchemaLike, type MonoFormSetProp, type MonoFormSetValidation, type MonoFormTiming, type MonoFormValidation, type MonoFormWatcherCtx, type MonoGridSource, type MonoGroupMeta, type MonoGroupNode, type MonoImportAmbiguity, type MonoImportChange, type MonoImportColumn, type MonoImportMatch, type MonoImportNumberFormat, type MonoImportOptions, type MonoImportRejection, type MonoImportResult, type MonoImportType, type MonoImportValueType, type MonoModalController, type MonoModalOptions, type MonoOdataOptions, type MonoPending, type MonoPendingOptions, type MonoPhantomProps, MonoRoleTokens, type MonoSearchCustomCtx, type MonoSearchCustomResult, type MonoSearchExpr, type MonoSearchExprCustom, type MonoSearchExprEntry, type MonoSearchFieldsAliases, type MonoSearchTerm, type MonoSearchValue, type MonoServerGroupCtx, type MonoServerGroupSource, type MonoSkeletonDefaults, type MonoSkeletonStatus, MonoSourceSearch, type MonoSummaryConfig, type MonoSummaryFieldSpec, type MonoSummaryHandle, type MonoSummaryRecalculate, type MonoSummaryResult, type MonoSummarySpec, type MonoSummaryType, type MonoTableColumnProps, type MonoTableController, type MonoTableProps, type MonoTooltipColor, type MonoTooltipContent, type MonoTooltipController, type MonoTooltipGlobal, type MonoTooltipGlobalOptions, type MonoTooltipOptions, type MonoTooltipPlacement, type MonoTooltipSize, type MonoTooltipTarget, type MonoTooltipTrigger, type MonoTooltipVariant, type MonoUI, type MonoUIComponents, type MonoUIConfig, type MonoUIStatus, type ODataClause, type ParsedFieldPath, type ResolveSearchFieldsOptions, SEARCH_FIELDS_KEYS, type SearchableSource, type SortOrder, type TableCheckboxProps, type TableDetailProps, type TableInfoProps, type TableLoadingProps, type TablePageSizeProps, type TablePagingProps, type TableSearchProps, type TableSortProps, type TableSummaryProps, type TableThProps, type TableThSort, ThemeColors, ThemeConfig, ThemeFlavor, ThemeMode, ThemeName, ThemePalette, applyFlavor, applyMonoSizeAttributes, applyTheme, arrayToODataString, arrayToTree, buildChartApply, buildChartOdataRequest, buildGroups, collectGroupPaths, composeApply, monoChart as controlMonoChart, monoDataDropdown as controlMonoDataDropdown, monoFilterBuilder as controlMonoFilterBuilder, monoForm as controlMonoForm, monoModal as controlMonoModal, monoDataGrid as controlMonoTable, controlMonoTooltip, createFlavorClass, createMonoTooltip, createMonoUI, createThemeClass, describeError, destroyAllMonoTooltips, errorStatus, flattenLeaves, flavorPresets, flavors, getAllFlavors, getAllThemes, getCurrentFlavor, getCurrentTheme, getFieldValue, getFlavorData, getMonoSkeletonStatus, getMonoTooltipGlobal, getMonoUI, getMonoUIStatus, getThemeData, isFoldableSearch, isGroupNode, isMonoSsrApp, isPath, isValidFlavor, isValidTheme, mergePatch, mergeSearchFields, monoArraySource, monoChart, monoDataDropdown, monoDataGrid, monoFilterBuilder, operatorsFor as monoFilterOperatorsFor, monoForm, monoModal, monoTooltip, normalizeError, odataStringToArray, parseFieldPath, parseSearchValue, plainSearchFields, readSearchField, resetFlavor, resetMonoSkeleton, resetMonoTooltip, resetMonoUI, resetTheme, resolveErrorMessages, resolveMaybeReactive, resolveSearchFields, searchRemoteFilter, searchRowPredicate, setErrorMessages, setFieldValue, startMonoSizeAttributes, stopMonoSizeAttributes, themePresets, themes, toODataClause, toODataSelector, treeToArray };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import { h, defineComponent, defineAsyncComponent } from "vue";
|
|
3
|
-
import LitWrapperClient from "./LitWrapperClient.vue";
|
|
4
|
-
const LitWrapperServer = defineAsyncComponent(() => import("./LitWrapperServer.vue"));
|
|
5
|
-
export default defineComponent({
|
|
6
|
-
name: "LitWrapper",
|
|
7
|
-
render() {
|
|
8
|
-
return h(import.meta.server ? LitWrapperServer : LitWrapperClient, this.$slots.default);
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
</script>
|
|
1
|
+
<script>
|
|
2
|
+
import { h, defineComponent, defineAsyncComponent } from "vue";
|
|
3
|
+
import LitWrapperClient from "./LitWrapperClient.vue";
|
|
4
|
+
const LitWrapperServer = defineAsyncComponent(() => import("./LitWrapperServer.vue"));
|
|
5
|
+
export default defineComponent({
|
|
6
|
+
name: "LitWrapper",
|
|
7
|
+
render() {
|
|
8
|
+
return h(import.meta.server ? LitWrapperServer : LitWrapperClient, this.$slots.default);
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
</script>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import { defineComponent } from "vue";
|
|
3
|
-
export default defineComponent({
|
|
4
|
-
setup(_, context) {
|
|
5
|
-
return () => context.slots.default?.()?.[0];
|
|
6
|
-
},
|
|
7
|
-
mounted() {
|
|
8
|
-
this.$el?.removeAttribute?.("defer-hydration");
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
</script>
|
|
1
|
+
<script>
|
|
2
|
+
import { defineComponent } from "vue";
|
|
3
|
+
export default defineComponent({
|
|
4
|
+
setup(_, context) {
|
|
5
|
+
return () => context.slots.default?.()?.[0];
|
|
6
|
+
},
|
|
7
|
+
mounted() {
|
|
8
|
+
this.$el?.removeAttribute?.("defer-hydration");
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
</script>
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import { defineComponent, ssrUtils, mergeProps } from "vue";
|
|
3
|
-
import { ssrRenderVNode, ssrRenderAttrs } from "@vue/server-renderer";
|
|
4
|
-
import { LitElementRenderer } from "@lit-labs/ssr/lib/lit-element-renderer.js";
|
|
5
|
-
import { createLitElementRenderer } from "../utils/litElementRenderer";
|
|
6
|
-
export default defineComponent({
|
|
7
|
-
ssrRender(ctx, push, litWrapperInstance, litWrapperAttrs) {
|
|
8
|
-
const [litElementVNode] = litWrapperInstance.slots.default();
|
|
9
|
-
const litElementTagName = String(litElementVNode.type);
|
|
10
|
-
const litElementVNodeProps = litElementVNode.props || {};
|
|
11
|
-
const renderer = createLitElementRenderer(litElementTagName, litElementVNodeProps);
|
|
12
|
-
if (!renderer) {
|
|
13
|
-
return null;
|
|
14
|
-
}
|
|
15
|
-
try {
|
|
16
|
-
renderer.connectedCallback();
|
|
17
|
-
const attributes = ssrRenderAttrs(mergeProps(litElementVNodeProps, litWrapperAttrs));
|
|
18
|
-
push(
|
|
19
|
-
`<${litElementTagName}${attributes} defer-hydration="true"><template shadowrootmode="open" shadowroot="open">`
|
|
20
|
-
);
|
|
21
|
-
for (const shadowContent of renderer.renderShadow({
|
|
22
|
-
elementRenderers: [LitElementRenderer],
|
|
23
|
-
customElementInstanceStack: [renderer],
|
|
24
|
-
customElementHostStack: [renderer]
|
|
25
|
-
})) {
|
|
26
|
-
push(shadowContent);
|
|
27
|
-
}
|
|
28
|
-
push(`</template>`);
|
|
29
|
-
const litElementChildren = litElementVNode.children ? Array.isArray(litElementVNode.children) ? litElementVNode.children : [litElementVNode.children] : [];
|
|
30
|
-
litElementChildren.forEach((child) => ssrRenderVNode(push, ssrUtils.normalizeVNode(child), litWrapperInstance));
|
|
31
|
-
push(`</${litElementTagName}>`);
|
|
32
|
-
} catch (e) {
|
|
33
|
-
console.error(e);
|
|
34
|
-
return null;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
</script>
|
|
1
|
+
<script>
|
|
2
|
+
import { defineComponent, ssrUtils, mergeProps } from "vue";
|
|
3
|
+
import { ssrRenderVNode, ssrRenderAttrs } from "@vue/server-renderer";
|
|
4
|
+
import { LitElementRenderer } from "@lit-labs/ssr/lib/lit-element-renderer.js";
|
|
5
|
+
import { createLitElementRenderer } from "../utils/litElementRenderer";
|
|
6
|
+
export default defineComponent({
|
|
7
|
+
ssrRender(ctx, push, litWrapperInstance, litWrapperAttrs) {
|
|
8
|
+
const [litElementVNode] = litWrapperInstance.slots.default();
|
|
9
|
+
const litElementTagName = String(litElementVNode.type);
|
|
10
|
+
const litElementVNodeProps = litElementVNode.props || {};
|
|
11
|
+
const renderer = createLitElementRenderer(litElementTagName, litElementVNodeProps);
|
|
12
|
+
if (!renderer) {
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
try {
|
|
16
|
+
renderer.connectedCallback();
|
|
17
|
+
const attributes = ssrRenderAttrs(mergeProps(litElementVNodeProps, litWrapperAttrs));
|
|
18
|
+
push(
|
|
19
|
+
`<${litElementTagName}${attributes} defer-hydration="true"><template shadowrootmode="open" shadowroot="open">`
|
|
20
|
+
);
|
|
21
|
+
for (const shadowContent of renderer.renderShadow({
|
|
22
|
+
elementRenderers: [LitElementRenderer],
|
|
23
|
+
customElementInstanceStack: [renderer],
|
|
24
|
+
customElementHostStack: [renderer]
|
|
25
|
+
})) {
|
|
26
|
+
push(shadowContent);
|
|
27
|
+
}
|
|
28
|
+
push(`</template>`);
|
|
29
|
+
const litElementChildren = litElementVNode.children ? Array.isArray(litElementVNode.children) ? litElementVNode.children : [litElementVNode.children] : [];
|
|
30
|
+
litElementChildren.forEach((child) => ssrRenderVNode(push, ssrUtils.normalizeVNode(child), litWrapperInstance));
|
|
31
|
+
push(`</${litElementTagName}>`);
|
|
32
|
+
} catch (e) {
|
|
33
|
+
console.error(e);
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
</script>
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineNuxtPlugin, useHead } from "#imports";
|
|
2
|
-
export default defineNuxtPlugin(() => {
|
|
3
|
-
useHead({
|
|
4
|
-
style: [
|
|
5
|
-
{
|
|
6
|
-
innerHTML: "body[dsd-pending] { display: none; }"
|
|
7
|
-
}
|
|
8
|
-
],
|
|
9
|
-
script: [
|
|
10
|
-
{
|
|
11
|
-
children: `
|
|
12
|
-
{
|
|
13
|
-
const hasNativeDsd =
|
|
14
|
-
Object.hasOwnProperty.call(HTMLTemplateElement.prototype, "shadowRootMode") ||
|
|
15
|
-
Object.hasOwnProperty.call(HTMLTemplateElement.prototype, "shadowRoot");
|
|
16
|
-
|
|
17
|
-
if (!hasNativeDsd) {
|
|
18
|
-
document.body.setAttribute('dsd-pending', 'true');
|
|
19
|
-
}
|
|
20
|
-
}`,
|
|
21
|
-
tagPosition: "bodyOpen"
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
});
|
|
25
|
-
});
|
|
1
|
+
import { defineNuxtPlugin, useHead } from "#imports";
|
|
2
|
+
export default defineNuxtPlugin(() => {
|
|
3
|
+
useHead({
|
|
4
|
+
style: [
|
|
5
|
+
{
|
|
6
|
+
innerHTML: "body[dsd-pending] { display: none; }"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
script: [
|
|
10
|
+
{
|
|
11
|
+
children: `
|
|
12
|
+
{
|
|
13
|
+
const hasNativeDsd =
|
|
14
|
+
Object.hasOwnProperty.call(HTMLTemplateElement.prototype, "shadowRootMode") ||
|
|
15
|
+
Object.hasOwnProperty.call(HTMLTemplateElement.prototype, "shadowRoot");
|
|
16
|
+
|
|
17
|
+
if (!hasNativeDsd) {
|
|
18
|
+
document.body.setAttribute('dsd-pending', 'true');
|
|
19
|
+
}
|
|
20
|
+
}`,
|
|
21
|
+
tagPosition: "bodyOpen"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "@lit-labs/ssr-client/lit-element-hydrate-support.js";
|
|
2
|
-
import { defineNuxtPlugin } from "#imports";
|
|
3
|
-
export default defineNuxtPlugin(() => {
|
|
4
|
-
});
|
|
1
|
+
import "@lit-labs/ssr-client/lit-element-hydrate-support.js";
|
|
2
|
+
import { defineNuxtPlugin } from "#imports";
|
|
3
|
+
export default defineNuxtPlugin(() => {
|
|
4
|
+
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineNuxtPlugin } from "#imports";
|
|
2
|
-
export default defineNuxtPlugin(async () => {
|
|
3
|
-
const hasNativeDsd = Object.hasOwnProperty.call(HTMLTemplateElement.prototype, "shadowRootMode") || Object.hasOwnProperty.call(HTMLTemplateElement.prototype, "shadowRoot");
|
|
4
|
-
if (!hasNativeDsd) {
|
|
5
|
-
const { hydrateShadowRoots } = await import("@webcomponents/template-shadowroot/template-shadowroot.js");
|
|
6
|
-
hydrateShadowRoots(document.body);
|
|
7
|
-
document.body.removeAttribute("dsd-pending");
|
|
8
|
-
}
|
|
9
|
-
});
|
|
1
|
+
import { defineNuxtPlugin } from "#imports";
|
|
2
|
+
export default defineNuxtPlugin(async () => {
|
|
3
|
+
const hasNativeDsd = Object.hasOwnProperty.call(HTMLTemplateElement.prototype, "shadowRootMode") || Object.hasOwnProperty.call(HTMLTemplateElement.prototype, "shadowRoot");
|
|
4
|
+
if (!hasNativeDsd) {
|
|
5
|
+
const { hydrateShadowRoots } = await import("@webcomponents/template-shadowroot/template-shadowroot.js");
|
|
6
|
+
hydrateShadowRoots(document.body);
|
|
7
|
+
document.body.removeAttribute("dsd-pending");
|
|
8
|
+
}
|
|
9
|
+
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export function isCustomElementTag(name) {
|
|
2
|
-
return typeof name === "string" && /-/.test(name);
|
|
3
|
-
}
|
|
4
|
-
export function getCustomElementConstructor(name) {
|
|
5
|
-
if (typeof customElements !== "undefined" && isCustomElementTag(name)) {
|
|
6
|
-
return customElements.get(name) || null;
|
|
7
|
-
} else if (typeof name === "function") {
|
|
8
|
-
return name;
|
|
9
|
-
}
|
|
10
|
-
return null;
|
|
11
|
-
}
|
|
1
|
+
export function isCustomElementTag(name) {
|
|
2
|
+
return typeof name === "string" && /-/.test(name);
|
|
3
|
+
}
|
|
4
|
+
export function getCustomElementConstructor(name) {
|
|
5
|
+
if (typeof customElements !== "undefined" && isCustomElementTag(name)) {
|
|
6
|
+
return customElements.get(name) || null;
|
|
7
|
+
} else if (typeof name === "function") {
|
|
8
|
+
return name;
|
|
9
|
+
}
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { LitElementRenderer } from "@lit-labs/ssr/lib/lit-element-renderer.js";
|
|
2
|
-
import { getCustomElementConstructor, isCustomElementTag } from "./customElements.js";
|
|
3
|
-
export function createLitElementRenderer(tagName, props) {
|
|
4
|
-
if (!isCustomElementTag(tagName)) {
|
|
5
|
-
return null;
|
|
6
|
-
}
|
|
7
|
-
const renderer = new LitElementRenderer(tagName);
|
|
8
|
-
attachPropsToRenderer(renderer, props);
|
|
9
|
-
return renderer;
|
|
10
|
-
}
|
|
11
|
-
function attachPropsToRenderer(renderer, props) {
|
|
12
|
-
const customElementConstructor = getCustomElementConstructor(renderer.tagName);
|
|
13
|
-
if (props) {
|
|
14
|
-
for (const [key, value] of Object.entries(props)) {
|
|
15
|
-
if (customElementConstructor !== null && typeof customElementConstructor !== "string" && key in customElementConstructor.prototype) {
|
|
16
|
-
const isBooleanProp = customElementConstructor.elementProperties.get(key)?.type === Boolean;
|
|
17
|
-
if (isBooleanProp && value === "") {
|
|
18
|
-
renderer.setProperty(key, true);
|
|
19
|
-
} else {
|
|
20
|
-
renderer.setProperty(key, value);
|
|
21
|
-
}
|
|
22
|
-
} else {
|
|
23
|
-
renderer.setAttribute(key, value);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return renderer;
|
|
28
|
-
}
|
|
1
|
+
import { LitElementRenderer } from "@lit-labs/ssr/lib/lit-element-renderer.js";
|
|
2
|
+
import { getCustomElementConstructor, isCustomElementTag } from "./customElements.js";
|
|
3
|
+
export function createLitElementRenderer(tagName, props) {
|
|
4
|
+
if (!isCustomElementTag(tagName)) {
|
|
5
|
+
return null;
|
|
6
|
+
}
|
|
7
|
+
const renderer = new LitElementRenderer(tagName);
|
|
8
|
+
attachPropsToRenderer(renderer, props);
|
|
9
|
+
return renderer;
|
|
10
|
+
}
|
|
11
|
+
function attachPropsToRenderer(renderer, props) {
|
|
12
|
+
const customElementConstructor = getCustomElementConstructor(renderer.tagName);
|
|
13
|
+
if (props) {
|
|
14
|
+
for (const [key, value] of Object.entries(props)) {
|
|
15
|
+
if (customElementConstructor !== null && typeof customElementConstructor !== "string" && key in customElementConstructor.prototype) {
|
|
16
|
+
const isBooleanProp = customElementConstructor.elementProperties.get(key)?.type === Boolean;
|
|
17
|
+
if (isBooleanProp && value === "") {
|
|
18
|
+
renderer.setProperty(key, true);
|
|
19
|
+
} else {
|
|
20
|
+
renderer.setProperty(key, value);
|
|
21
|
+
}
|
|
22
|
+
} else {
|
|
23
|
+
renderer.setAttribute(key, value);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return renderer;
|
|
28
|
+
}
|
|
@@ -20353,4 +20353,4 @@ function toExcelStyle(style) {
|
|
|
20353
20353
|
}
|
|
20354
20354
|
|
|
20355
20355
|
//#endregion
|
|
20356
|
-
export { flattenInline as a, escapeCellText as c,
|
|
20356
|
+
export { flattenInline as a, escapeCellText as c, __exportAll as d, __toESM as f, toExcelStyle as i, stripDirectives as l, combineStyles as n, parseMarkdown as o, mergeStyles as r, encodeDirective as s, DEFAULT_STYLES as t, __commonJSMin as u };
|