@rankingcoach/vanguard 1.12.2-testare.0 → 1.12.2
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/index-DateInput.js +4 -4
- package/dist/index-DateRange.js +1 -1
- package/dist/index-Drawer.js +24 -18
- package/dist/index-DrawerRoot.js +33 -29
- package/dist/index-DropdownMenu.js +36 -36
- package/dist/index-InputRangeField.js +1 -1
- package/dist/index-LexicalToolkit2.js +1 -1
- package/dist/index-ModalContext.js +9 -9
- package/dist/index-ModalService.js +130 -178
- package/dist/index-Month.js +2 -2
- package/dist/index-OverlayStackingService.js +46 -0
- package/dist/index-Parser2.js +2 -3
- package/dist/index-_virtual10.js +3 -2
- package/dist/index-_virtual6.js +1 -1
- package/dist/index-_virtual69.js +2 -2
- package/dist/index-_virtual70.js +2 -4
- package/dist/index-_virtual71.js +4 -2
- package/dist/index-_virtual72.js +2 -4
- package/dist/index-_virtual73.js +1 -1
- package/dist/index-_virtual74.js +1 -1
- package/dist/index-_virtual75.js +4 -2
- package/dist/index-_virtual76.js +2 -2
- package/dist/index-_virtual9.js +2 -3
- package/dist/index-accessibility.js +1 -1
- package/dist/index-dist2.js +20 -78
- package/dist/index-dist3.js +78 -20
- package/dist/types/core/Drawer/Drawer.d.ts +6 -0
- package/dist/types/core/Modal/ModalService.d.ts +0 -28
- package/dist/types/core/OverlayStacking/OverlayStackingService.d.ts +35 -0
- package/dist/types/core/OverlayStacking/stories/DrawerOverFullscreenModal.story.d.ts +2 -0
- package/dist/types/core/OverlayStacking/stories/FullscreenModalDrawerModal.story.d.ts +2 -0
- package/dist/types/core/OverlayStacking/stories/FullscreenModalDrawerModalPopover.story.d.ts +2 -0
- package/dist/types/core/OverlayStacking/stories/ModalOverDrawer.story.d.ts +2 -0
- package/dist/types/core/OverlayStacking/stories/_OverlayStacking.default.d.ts +15 -0
- package/dist/vanguard-asset-analysis.json +1 -1
- package/dist-wordpress/index.js +6355 -6365
- package/dist-wordpress/vanguard.css +1 -1
- package/package.json +4 -4
package/dist/index-dist2.js
CHANGED
|
@@ -1,81 +1,23 @@
|
|
|
1
|
-
import { __exports as
|
|
2
|
-
import { __require as
|
|
3
|
-
import { __require as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
function z() {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
Object.defineProperty(e, "useLexicalToolbar", { enumerable: !0, get: function() {
|
|
21
|
-
return i.useLexicalToolbar;
|
|
22
|
-
} });
|
|
23
|
-
var l = b();
|
|
24
|
-
Object.defineProperty(e, "useHyperlinkEditor", { enumerable: !0, get: function() {
|
|
25
|
-
return l.useHyperlinkEditor;
|
|
26
|
-
} });
|
|
27
|
-
var r = O();
|
|
28
|
-
Object.defineProperty(e, "KeywordNode", { enumerable: !0, get: function() {
|
|
29
|
-
return r.KeywordNode;
|
|
30
|
-
} }), Object.defineProperty(e, "$createKeywordNode", { enumerable: !0, get: function() {
|
|
31
|
-
return r.$createKeywordNode;
|
|
32
|
-
} }), Object.defineProperty(e, "$isKeywordNode", { enumerable: !0, get: function() {
|
|
33
|
-
return r.$isKeywordNode;
|
|
34
|
-
} });
|
|
35
|
-
var o = q();
|
|
36
|
-
Object.defineProperty(e, "ControlledValuePlugin", { enumerable: !0, get: function() {
|
|
37
|
-
return o.ControlledValuePlugin;
|
|
38
|
-
} });
|
|
39
|
-
var a = v();
|
|
40
|
-
Object.defineProperty(e, "DefaultValuePlugin", { enumerable: !0, get: function() {
|
|
41
|
-
return a.DefaultValuePlugin;
|
|
42
|
-
} });
|
|
43
|
-
var d = N();
|
|
44
|
-
Object.defineProperty(e, "HyperlinkPlugin", { enumerable: !0, get: function() {
|
|
45
|
-
return d.HyperlinkPlugin;
|
|
46
|
-
} });
|
|
47
|
-
var g = j();
|
|
48
|
-
Object.defineProperty(e, "KeywordPlugin", { enumerable: !0, get: function() {
|
|
49
|
-
return g.KeywordPlugin;
|
|
50
|
-
} });
|
|
51
|
-
var c = w();
|
|
52
|
-
Object.defineProperty(e, "OnChangeContentPlugin", { enumerable: !0, get: function() {
|
|
53
|
-
return c.OnChangeContentPlugin;
|
|
54
|
-
} });
|
|
55
|
-
var f = C();
|
|
56
|
-
Object.defineProperty(e, "OnFocusOnBlurPlugin", { enumerable: !0, get: function() {
|
|
57
|
-
return f.OnFocusOnBlurPlugin;
|
|
58
|
-
} });
|
|
59
|
-
var m = K();
|
|
60
|
-
Object.defineProperty(e, "getSelectedNode", { enumerable: !0, get: function() {
|
|
61
|
-
return m.getSelectedNode;
|
|
62
|
-
} });
|
|
63
|
-
var u = s();
|
|
64
|
-
Object.defineProperty(e, "sanitizeUrl", { enumerable: !0, get: function() {
|
|
65
|
-
return u.sanitizeUrl;
|
|
66
|
-
} }), Object.defineProperty(e, "validateUrl", { enumerable: !0, get: function() {
|
|
67
|
-
return u.validateUrl;
|
|
68
|
-
} });
|
|
69
|
-
var P = H();
|
|
70
|
-
Object.defineProperty(e, "convertHtmlToNodes", { enumerable: !0, get: function() {
|
|
71
|
-
return P.convertHtmlToNodes;
|
|
72
|
-
} });
|
|
73
|
-
var _ = D();
|
|
74
|
-
Object.defineProperty(e, "getDOMRangeRect", { enumerable: !0, get: function() {
|
|
75
|
-
return _.getDOMRangeRect;
|
|
76
|
-
} });
|
|
77
|
-
})(n), n);
|
|
1
|
+
import { __exports as t } from "./index-_virtual9.js";
|
|
2
|
+
import { __require as c } from "./index-normalizeText.js";
|
|
3
|
+
import { __require as i } from "./index-impl.js";
|
|
4
|
+
var a;
|
|
5
|
+
function d() {
|
|
6
|
+
return a ? t : (a = 1, (function(u) {
|
|
7
|
+
u.__esModule = !0, u.default = _, u.fuzzyMatch = z;
|
|
8
|
+
var f = n(c());
|
|
9
|
+
u.normalizeText = f.default;
|
|
10
|
+
function n(e) {
|
|
11
|
+
return e && e.__esModule ? e : { default: e };
|
|
12
|
+
}
|
|
13
|
+
function _(e, r) {
|
|
14
|
+
return r === void 0 && (r = {}), i().createFuzzySearchImpl(e, r);
|
|
15
|
+
}
|
|
16
|
+
function z(e, r) {
|
|
17
|
+
return i().fuzzyMatchImpl(e, r);
|
|
18
|
+
}
|
|
19
|
+
})(t), t);
|
|
78
20
|
}
|
|
79
21
|
export {
|
|
80
|
-
|
|
22
|
+
d as __require
|
|
81
23
|
};
|
package/dist/index-dist3.js
CHANGED
|
@@ -1,23 +1,81 @@
|
|
|
1
|
-
import { __exports as
|
|
2
|
-
import { __require as
|
|
3
|
-
import { __require as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
1
|
+
import { __exports as n } from "./index-_virtual14.js";
|
|
2
|
+
import { __require as y } from "./index-useLexicalToolbar.js";
|
|
3
|
+
import { __require as b } from "./index-useHyperlinkEditor.js";
|
|
4
|
+
import { __require as O } from "./index-KeywordNode.js";
|
|
5
|
+
import { __require as q } from "./index-ControlledValuePlugin.js";
|
|
6
|
+
import { __require as v } from "./index-DefaultValuePlugin.js";
|
|
7
|
+
import { __require as N } from "./index-HyperlinkPlugin.js";
|
|
8
|
+
import { __require as j } from "./index-KeywordPlugin.js";
|
|
9
|
+
import { __require as w } from "./index-OnChangeContentPlugin.js";
|
|
10
|
+
import { __require as C } from "./index-OnFocusOnBlurPlugin.js";
|
|
11
|
+
import { __require as K } from "./index-getSelectedNode.js";
|
|
12
|
+
import { __require as s } from "./index-url.js";
|
|
13
|
+
import { __require as H } from "./index-convertHtmlToNodes.js";
|
|
14
|
+
import { __require as D } from "./index-getDOMRangeRect.js";
|
|
15
|
+
var t;
|
|
16
|
+
function z() {
|
|
17
|
+
return t ? n : (t = 1, (function(e) {
|
|
18
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.getDOMRangeRect = e.convertHtmlToNodes = e.validateUrl = e.sanitizeUrl = e.getSelectedNode = e.OnFocusOnBlurPlugin = e.OnChangeContentPlugin = e.KeywordPlugin = e.HyperlinkPlugin = e.DefaultValuePlugin = e.ControlledValuePlugin = e.$isKeywordNode = e.$createKeywordNode = e.KeywordNode = e.useHyperlinkEditor = e.useLexicalToolbar = void 0;
|
|
19
|
+
var i = y();
|
|
20
|
+
Object.defineProperty(e, "useLexicalToolbar", { enumerable: !0, get: function() {
|
|
21
|
+
return i.useLexicalToolbar;
|
|
22
|
+
} });
|
|
23
|
+
var l = b();
|
|
24
|
+
Object.defineProperty(e, "useHyperlinkEditor", { enumerable: !0, get: function() {
|
|
25
|
+
return l.useHyperlinkEditor;
|
|
26
|
+
} });
|
|
27
|
+
var r = O();
|
|
28
|
+
Object.defineProperty(e, "KeywordNode", { enumerable: !0, get: function() {
|
|
29
|
+
return r.KeywordNode;
|
|
30
|
+
} }), Object.defineProperty(e, "$createKeywordNode", { enumerable: !0, get: function() {
|
|
31
|
+
return r.$createKeywordNode;
|
|
32
|
+
} }), Object.defineProperty(e, "$isKeywordNode", { enumerable: !0, get: function() {
|
|
33
|
+
return r.$isKeywordNode;
|
|
34
|
+
} });
|
|
35
|
+
var o = q();
|
|
36
|
+
Object.defineProperty(e, "ControlledValuePlugin", { enumerable: !0, get: function() {
|
|
37
|
+
return o.ControlledValuePlugin;
|
|
38
|
+
} });
|
|
39
|
+
var a = v();
|
|
40
|
+
Object.defineProperty(e, "DefaultValuePlugin", { enumerable: !0, get: function() {
|
|
41
|
+
return a.DefaultValuePlugin;
|
|
42
|
+
} });
|
|
43
|
+
var d = N();
|
|
44
|
+
Object.defineProperty(e, "HyperlinkPlugin", { enumerable: !0, get: function() {
|
|
45
|
+
return d.HyperlinkPlugin;
|
|
46
|
+
} });
|
|
47
|
+
var g = j();
|
|
48
|
+
Object.defineProperty(e, "KeywordPlugin", { enumerable: !0, get: function() {
|
|
49
|
+
return g.KeywordPlugin;
|
|
50
|
+
} });
|
|
51
|
+
var c = w();
|
|
52
|
+
Object.defineProperty(e, "OnChangeContentPlugin", { enumerable: !0, get: function() {
|
|
53
|
+
return c.OnChangeContentPlugin;
|
|
54
|
+
} });
|
|
55
|
+
var f = C();
|
|
56
|
+
Object.defineProperty(e, "OnFocusOnBlurPlugin", { enumerable: !0, get: function() {
|
|
57
|
+
return f.OnFocusOnBlurPlugin;
|
|
58
|
+
} });
|
|
59
|
+
var m = K();
|
|
60
|
+
Object.defineProperty(e, "getSelectedNode", { enumerable: !0, get: function() {
|
|
61
|
+
return m.getSelectedNode;
|
|
62
|
+
} });
|
|
63
|
+
var u = s();
|
|
64
|
+
Object.defineProperty(e, "sanitizeUrl", { enumerable: !0, get: function() {
|
|
65
|
+
return u.sanitizeUrl;
|
|
66
|
+
} }), Object.defineProperty(e, "validateUrl", { enumerable: !0, get: function() {
|
|
67
|
+
return u.validateUrl;
|
|
68
|
+
} });
|
|
69
|
+
var P = H();
|
|
70
|
+
Object.defineProperty(e, "convertHtmlToNodes", { enumerable: !0, get: function() {
|
|
71
|
+
return P.convertHtmlToNodes;
|
|
72
|
+
} });
|
|
73
|
+
var _ = D();
|
|
74
|
+
Object.defineProperty(e, "getDOMRangeRect", { enumerable: !0, get: function() {
|
|
75
|
+
return _.getDOMRangeRect;
|
|
76
|
+
} });
|
|
77
|
+
})(n), n);
|
|
20
78
|
}
|
|
21
79
|
export {
|
|
22
|
-
|
|
80
|
+
z as __require
|
|
23
81
|
};
|
|
@@ -19,6 +19,12 @@ export interface DrawerProps extends AllowedDrawerProps {
|
|
|
19
19
|
isHeaderSticky?: boolean;
|
|
20
20
|
outOfTheWay?: number | false;
|
|
21
21
|
onClose?: (e?: ModalResponse<DrawerCloseResponse>) => void;
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated Layering is managed by OverlayStackingService — drawers
|
|
24
|
+
* auto-stack against modals and popovers through a shared ledger. Passing
|
|
25
|
+
* a fixed value here forces the drawer onto a static layer and breaks the
|
|
26
|
+
* stacking guarantees. Leave it unset.
|
|
27
|
+
*/
|
|
22
28
|
zIndex?: number;
|
|
23
29
|
}
|
|
24
30
|
export declare const Drawer: (props: PropsWithChildren<DrawerProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -58,15 +58,12 @@ export interface OpenLoadingModalOptions {
|
|
|
58
58
|
* Modal Service Class
|
|
59
59
|
* ---------------------------------------------------------------------------------------------------------------------
|
|
60
60
|
*/
|
|
61
|
-
export declare const MODAL_BASE_Z_INDEX = 1100;
|
|
62
61
|
declare class ModalServiceClass {
|
|
63
62
|
private loadingModalId;
|
|
64
63
|
private confirmModalId;
|
|
65
64
|
private errorModalId;
|
|
66
65
|
private modalCloseListeners;
|
|
67
66
|
private modalComponents;
|
|
68
|
-
private modalOrder;
|
|
69
|
-
private popoverOrder;
|
|
70
67
|
constructor();
|
|
71
68
|
on(event: any, callback: (details: any) => any): void;
|
|
72
69
|
onModalClose<T = any, U = any>(id: string, cb?: (resp: ModalResponse<T>) => void, data?: U): void;
|
|
@@ -96,31 +93,6 @@ declare class ModalServiceClass {
|
|
|
96
93
|
}) => void;
|
|
97
94
|
closeErrorModal(): void;
|
|
98
95
|
closeAllModals(): void;
|
|
99
|
-
/**
|
|
100
|
-
* Highest order across modals AND popovers — used internally when assigning
|
|
101
|
-
* the next slot so modals/popovers never tie or interleave wrongly.
|
|
102
|
-
*/
|
|
103
|
-
private getCurrentMaxOrder;
|
|
104
|
-
private getMaxModalOrder;
|
|
105
|
-
/**
|
|
106
|
-
* Z-index of the topmost mounted modal, or MODAL_BASE_Z_INDEX (the stacking
|
|
107
|
-
* floor) when no modal is open. Popovers are excluded — this reports modal
|
|
108
|
-
* stacking only. Mirrors ModalTransition's formula: BASE + order.
|
|
109
|
-
*/
|
|
110
|
-
getTopmostModalZIndex(): number;
|
|
111
|
-
/**
|
|
112
|
-
* Single source of truth for a modal's stack order. ModalContext delegates
|
|
113
|
-
* to this so the dropdown and ModalTransition cannot drift apart.
|
|
114
|
-
*/
|
|
115
|
-
getModalOrder(id: string): number;
|
|
116
|
-
/**
|
|
117
|
-
* Register a popover (e.g. DropdownMenu) into the shared stacking ledger.
|
|
118
|
-
* Returns its z-index so the caller can position itself. Modals opened
|
|
119
|
-
* after this call will land above the popover; closing the popover with
|
|
120
|
-
* `unregisterPopover` frees the slot.
|
|
121
|
-
*/
|
|
122
|
-
registerPopover(id: string): number;
|
|
123
|
-
unregisterPopover(id: string): void;
|
|
124
96
|
/** Test-only: wipe internal state. Not for production code paths. */
|
|
125
97
|
__resetForTests(): void;
|
|
126
98
|
open<ResponseModel>(component: ComponentWithId, opts?: ModalOpts): string;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single source of truth for overlay z-index allocation.
|
|
3
|
+
*
|
|
4
|
+
* Every surface that paints into the shared stacking context — modals,
|
|
5
|
+
* popovers, drawers — claims a slot here on open and releases it on close.
|
|
6
|
+
* Slots are dense integers starting at 1; z-index is `OVERLAY_BASE_Z_INDEX +
|
|
7
|
+
* order`. Freed slots compact naturally because we always assign
|
|
8
|
+
* `max(orders) + 1`, so once the stack drains the counter returns to 1.
|
|
9
|
+
*
|
|
10
|
+
* Kinds are tracked so callers can ask "what's the topmost <kind>" without
|
|
11
|
+
* having to keep their own parallel maps.
|
|
12
|
+
*/
|
|
13
|
+
export declare const OVERLAY_BASE_Z_INDEX = 1100;
|
|
14
|
+
export type OverlayKind = 'modal' | 'popover' | 'drawer';
|
|
15
|
+
declare class OverlayStackingServiceClass {
|
|
16
|
+
private order;
|
|
17
|
+
private kind;
|
|
18
|
+
/** Assign the next slot above all currently-mounted overlays and return its z-index. */
|
|
19
|
+
register(id: string, kind: OverlayKind): number;
|
|
20
|
+
/** Free the slot. The next opener will reuse the now-vacated topmost order. */
|
|
21
|
+
unregister(id: string): void;
|
|
22
|
+
/** Slot order for an id, or 0 if not registered. */
|
|
23
|
+
getOrder(id: string): number;
|
|
24
|
+
/**
|
|
25
|
+
* Topmost z-index across all overlays, or — when `kind` is supplied — the
|
|
26
|
+
* topmost z within that kind only. Returns `OVERLAY_BASE_Z_INDEX` (the
|
|
27
|
+
* stacking floor) when nothing of the requested kind is registered.
|
|
28
|
+
*/
|
|
29
|
+
getTopmostZIndex(kind?: OverlayKind): number;
|
|
30
|
+
/** Test-only: wipe internal state. Not for production code paths. */
|
|
31
|
+
__resetForTests(): void;
|
|
32
|
+
private getMaxOrder;
|
|
33
|
+
}
|
|
34
|
+
export declare const OverlayStackingService: OverlayStackingServiceClass;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
export type Story = StoryObj<any>;
|
|
3
|
+
/**
|
|
4
|
+
* Tear down every overlay surface — drawer + tracked modals + ad-hoc modals.
|
|
5
|
+
* Used before/after each play test so stories don't leak state into each other.
|
|
6
|
+
*/
|
|
7
|
+
export declare const closeAllOverlays: () => Promise<void>;
|
|
8
|
+
/**
|
|
9
|
+
* Locate the MUI Drawer root element. The Drawer mounts under a portal so we
|
|
10
|
+
* cannot scope to the story canvas — we resolve it from `document` instead.
|
|
11
|
+
*/
|
|
12
|
+
export declare const getDrawerLayer: () => HTMLElement;
|
|
13
|
+
export declare const readZ: (el: HTMLElement) => number;
|
|
14
|
+
/** Pick whichever element paints at the centre of `el`'s bounding rect. */
|
|
15
|
+
export declare const topmostElAt: (el: HTMLElement) => HTMLElement | null;
|