@nubisco/ui 1.38.0 → 1.38.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/components/Blueprint.vue.d.ts.map +1 -1
- package/dist/components/blueprint-port-cache.d.ts +37 -0
- package/dist/components/blueprint-port-cache.d.ts.map +1 -0
- package/dist/directives/ToolTip.directive.d.ts +10 -0
- package/dist/directives/ToolTip.directive.d.ts.map +1 -1
- package/dist/directives/index.d.ts +1 -0
- package/dist/directives/index.d.ts.map +1 -1
- package/dist/index.cjs +7 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +10621 -10463
- package/dist/index.mjs.map +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +2 -1
- package/src/styles/directives/_tooltip.scss +66 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Blueprint.vue.d.ts","sourceRoot":"","sources":["../../src/components/Blueprint.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Blueprint.vue.d.ts","sourceRoot":"","sources":["../../src/components/Blueprint.vue"],"names":[],"mappings":"AAwzDA,OAAO,KAAK,EACV,oBAAoB,EACpB,kBAAkB,EAElB,eAAe,EAChB,MAAM,eAAe,CAAA;AAwItB,iBAAS,SAAS,SAQjB;AAED,iBAAS,WAAW,SAGnB;AAglBD,iBAAS,eAAe,CAAC,IAAI,EAAE;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;CACb,QAKA;AA4FD,iBAAS,aAAa,SAErB;AAmDD,iBAAS,aAAa,CAAC,IAAI,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,QAkC5E;AA+JD,iBAAS,UAAU,SAgBlB;AAED,iBAAS,SAAS,CAAC,OAAO,SAAK,QAiC9B;AAED,iBAAS,SAAS,SAIjB;AA8CD,iBAAS,SAAS,SAMjB;AAED,iBAAS,WAAW,SAOnB;AAED,iBAAS,UAAU,SAMlB;AAED,iBAAS,QAAQ,SAMhB;AAED,iBAAS,WAAW,SAOnB;AAED,iBAAS,WAAW,SAMnB;AAED,iBAAS,sBAAsB,SAe9B;AAED,iBAAS,oBAAoB,SAe5B;AAID,iBAAS,UAAU,CAAC,OAAO,CAAC,EAAE;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,QAsGA;AA4UD,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO;;;;;;;;;;;CAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAOnD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAKd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export interface IPortCache {
|
|
2
|
+
/**
|
|
3
|
+
* Look up the HTMLElement for a port. Returns null if no element
|
|
4
|
+
* matches in the container. On a hit it verifies the element is still
|
|
5
|
+
* attached; a detached element is evicted and the lookup retried.
|
|
6
|
+
*/
|
|
7
|
+
get(nodeId: string, portId: string): HTMLElement | null;
|
|
8
|
+
/**
|
|
9
|
+
* Drop every cached entry whose element is no longer connected.
|
|
10
|
+
* Cheap (single iteration of the map). Call after mutations that may
|
|
11
|
+
* have removed cards (e.g. inside a MutationObserver).
|
|
12
|
+
*/
|
|
13
|
+
prune(): void;
|
|
14
|
+
/** Empty the cache. */
|
|
15
|
+
clear(): void;
|
|
16
|
+
/** Current cache size, exposed for tests. */
|
|
17
|
+
size(): number;
|
|
18
|
+
}
|
|
19
|
+
export declare function createPortCache(containerGetter: () => HTMLElement | null | undefined): IPortCache;
|
|
20
|
+
/** Class name of the panned/zoomed canvas div that directly contains
|
|
21
|
+
* the slotted card position wrappers. */
|
|
22
|
+
export declare const BLUEPRINT_CANVAS_CLASS = "nb-blueprint__canvas";
|
|
23
|
+
/**
|
|
24
|
+
* True iff a style mutation on `target` should be treated as a card
|
|
25
|
+
* having moved (and therefore a wire recompute is warranted).
|
|
26
|
+
*
|
|
27
|
+
* Only the card POSITION WRAPPER moves ports: it's a direct child of
|
|
28
|
+
* the canvas (`.nb-blueprint__canvas`), and its left/top is what
|
|
29
|
+
* setCardPosition writes. A style mutation deeper inside a card — a
|
|
30
|
+
* fader writing its fill percentage on every drag tick, a meter bar
|
|
31
|
+
* animating, a knob rotating — changes layout *within* the card but
|
|
32
|
+
* does not move its ports, so it must NOT trigger a wire recompute.
|
|
33
|
+
* Without this filter, interacting with any in-card control re-runs
|
|
34
|
+
* the whole graph's wire geometry every frame.
|
|
35
|
+
*/
|
|
36
|
+
export declare function isCardPositionMutation(target: EventTarget | null): boolean;
|
|
37
|
+
//# sourceMappingURL=blueprint-port-cache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blueprint-port-cache.d.ts","sourceRoot":"","sources":["../../src/components/blueprint-port-cache.ts"],"names":[],"mappings":"AAuBA,MAAM,WAAW,UAAU;IACzB;;;;OAIG;IACH,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CAAA;IACvD;;;;OAIG;IACH,KAAK,IAAI,IAAI,CAAA;IACb,uBAAuB;IACvB,KAAK,IAAI,IAAI,CAAA;IACb,6CAA6C;IAC7C,IAAI,IAAI,MAAM,CAAA;CACf;AAED,wBAAgB,eAAe,CAC7B,eAAe,EAAE,MAAM,WAAW,GAAG,IAAI,GAAG,SAAS,GACpD,UAAU,CAgCZ;AAED;0CAC0C;AAC1C,eAAO,MAAM,sBAAsB,yBAAyB,CAAA;AAE5D;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,GAAG,OAAO,CAK1E"}
|
|
@@ -13,5 +13,15 @@ export interface ITooltipOptions {
|
|
|
13
13
|
classExtra?: string;
|
|
14
14
|
}
|
|
15
15
|
declare const tooltipDirective: (app: App) => void;
|
|
16
|
+
/** Dismiss every currently-visible tooltip. Useful for view switches
|
|
17
|
+
* in single-page apps where the trigger element gets unmounted by a
|
|
18
|
+
* reactive `v-if` and the cleanup race (show-timer still pending,
|
|
19
|
+
* tooltip element about to be appended) leaves orphan chips behind.
|
|
20
|
+
* Call from the host on route / view change.
|
|
21
|
+
*
|
|
22
|
+
* Exposed via `useTooltip()` (composable) and `Tooltip.dismissAll`
|
|
23
|
+
* (named export) so consumers don't need to dig through registered
|
|
24
|
+
* state directly. */
|
|
25
|
+
export declare function dismissAllTooltips(): void;
|
|
16
26
|
export default tooltipDirective;
|
|
17
27
|
//# sourceMappingURL=ToolTip.directive.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolTip.directive.d.ts","sourceRoot":"","sources":["../../src/directives/ToolTip.directive.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAoB,MAAM,KAAK,CAAA;AAEhD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAehE,MAAM,WAAW,eAAe;I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AU,CAAC,EAAE,MAAM,CAAA;CACpB;AAoFD,QAAA,MAAM,gBAAgB,GAAI,KAAK,GAAG,SA2EjC,CAAA;AA+SD;;;;;;;;sBAQsB;AACtB,wBAAgB,kBAAkB,SASjC;AAED,eAAe,gBAAgB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/directives/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;;iBAOf,GAAG;;AADlB,wBAQC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/directives/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;;iBAOf,GAAG;;AADlB,wBAQC;AAMD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA"}
|