@dcodegroup-au/dsg-vue 0.1.37 → 0.1.39

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.
@@ -6,10 +6,15 @@ import { Placement as FloatingVuePlacement, TriggerEvent as FloatingVueTriggerEv
6
6
  */
7
7
  export type DsgTooltipTrigger = FloatingVueTriggerEvent;
8
8
  export type DsgTooltipPosition = FloatingVuePlacement;
9
- export type DsgTooltipTheme = 'light' | 'dark';
9
+ export type DsgTooltipTheme = "light" | "dark";
10
10
  export interface DsgTooltipProps {
11
11
  label?: string;
12
12
  supportingText?: string;
13
+ supportingTextHtml?: boolean;
14
+ width?: string;
15
+ maxWidth?: string;
16
+ titleClass?: string;
17
+ supportingTextClass?: string;
13
18
  position?: DsgTooltipPosition;
14
19
  triggers?: DsgTooltipTrigger[];
15
20
  autoHide?: boolean;
@@ -30,7 +35,7 @@ export interface DsgTooltipProps {
30
35
  theme?: DsgTooltipTheme;
31
36
  boundary?: HTMLElement | null | undefined;
32
37
  container?: HTMLElement | null | undefined;
33
- strategy?: 'fixed' | 'absolute';
38
+ strategy?: "fixed" | "absolute";
34
39
  }
35
40
  declare function __VLS_template(): {
36
41
  attrs: Partial<{}>;
@@ -1,4 +1,5 @@
1
1
  import { DsgBadgeProps } from '../Elements/DsgBadge.vue';
2
+ import { DsgTooltipProps } from '../Elements/DsgTooltip.vue';
2
3
  /**
3
4
  * -------------------------------------------------
4
5
  * # Setup: Props/Variables/Models
@@ -10,7 +11,8 @@ export interface DsgTabLink {
10
11
  href?: string;
11
12
  current: boolean;
12
13
  badge?: DsgBadgeProps;
13
- [key: string]: any;
14
+ tooltip?: DsgTooltipProps | null;
15
+ [key: string]: unknown;
14
16
  }
15
17
  export interface DsgTabProps {
16
18
  tabs: DsgTabLink[];
@@ -0,0 +1,31 @@
1
+ /**
2
+ * --------------------------------------------------------------------------
3
+ * DSG Vue - Table Composables / Helpers
4
+ * --------------------------------------------------------------------------
5
+ */
6
+ export interface ScoreSortRefine {
7
+ label: string;
8
+ selected: boolean;
9
+ visible: boolean;
10
+ searchScore?: number;
11
+ [key: string]: unknown;
12
+ }
13
+ export interface ScoreSortOptions {
14
+ moveSelectedToTop?: boolean;
15
+ limit?: number;
16
+ }
17
+ /**
18
+ * Score-based filter+sort for non-API facet search.
19
+ *
20
+ * Scoring:
21
+ * - 1000 exact label match
22
+ * - 500 label contains the full search term
23
+ * - 1-100 share of space-delimited parts matched (rounded percent)
24
+ *
25
+ * Ordering: score desc, label asc as tie-break. When `moveSelectedToTop` is on
26
+ * and visible results exceed `limit`, selected refines are pinned above the rest
27
+ * (each group is still ordered by score → label).
28
+ *
29
+ * Mutates `visible` and `searchScore` on the input refines.
30
+ */
31
+ export declare const scoreSortRefines: <T extends ScoreSortRefine>(refines: T[], searchTerm: string, options?: ScoreSortOptions) => T[];