@maropost-ui/liquidsky-ui 0.1.46 → 0.1.48

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.
@@ -0,0 +1,67 @@
1
+ import type { AppDropdownProps } from './AppDropdownProps';
2
+ export interface TreeDropdownItem {
3
+ [key: string]: unknown;
4
+ children?: TreeDropdownItem[];
5
+ disabled?: boolean;
6
+ selectable?: boolean;
7
+ }
8
+ export interface TreeDropdownProps<T = TreeDropdownItem> extends AppDropdownProps<T> {
9
+ /**
10
+ * Static hierarchical items. When provided, the tree renders without an initial fetch.
11
+ */
12
+ items?: T[];
13
+ /**
14
+ * When the data source is flat, builds a tree using this parent reference field.
15
+ * Ignored when items already contain nested children.
16
+ */
17
+ parentIdKey?: string;
18
+ /**
19
+ * Restrict selection to nodes without children (or nodes with `selectable: false` on parents).
20
+ */
21
+ leafOnly?: boolean;
22
+ /**
23
+ * Lazy-load child nodes for a branch (passed through to VTreeview `load-children`).
24
+ */
25
+ loadChildren?: (item: T) => Promise<void>;
26
+ /**
27
+ * Expand all branches while searching.
28
+ */
29
+ openAllOnSearch?: boolean;
30
+ /**
31
+ * Show the full ancestor path in chips and single selection display.
32
+ */
33
+ showPathInSelection?: boolean;
34
+ /**
35
+ * VTreeview select strategy for multiple mode.
36
+ * - `independent` — select parent and children separately
37
+ * - `all` — selecting a parent selects the parent and all descendants; deselecting any child deselects the parent
38
+ * - `classic` — same cascade UI as `all`, but the model only stores leaf nodes (Vuetify default)
39
+ */
40
+ selectStrategy?: 'classic' | 'independent' | 'all' | 'leaf' | 'single-leaf' | 'single-independent' | 'trunk';
41
+ /** v-autocomplete: enable multiple selection */
42
+ multiple?: boolean;
43
+ /** v-autocomplete: show selection as chips (requires multiple) */
44
+ chips?: boolean;
45
+ /** v-autocomplete: chips can be closed/removed */
46
+ closableChips?: boolean;
47
+ /** v-autocomplete: v-model stores full item objects */
48
+ returnObject?: boolean;
49
+ /** v-autocomplete: show clear button */
50
+ clearable?: boolean;
51
+ /** v-autocomplete / field label */
52
+ label?: string;
53
+ /** Key used for item display text */
54
+ itemTitle?: string | ((item: T) => string);
55
+ /** Key used as the item value */
56
+ itemValue?: string;
57
+ /** Key used for nested children */
58
+ itemChildren?: string;
59
+ /**
60
+ * How Select All updates selection when `allowSelectAll` is true.
61
+ * - `false` (default) — uses `v-model:select-all` with `{ select_all, ids }` for
62
+ * “all selected” with optional exclusions (shows “All Selected” chip when applicable).
63
+ * - `true` — Select All puts every selectable value in `v-model`; Deselect All clears `v-model`.
64
+ */
65
+ selectAllInModel?: boolean;
66
+ }
67
+ //# sourceMappingURL=TreeDropdownProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TreeDropdownProps.d.ts","sourceRoot":"","sources":["../../src/types/TreeDropdownProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,MAAM,WAAW,gBAAgB;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC,GAAG,gBAAgB,CAAE,SAAQ,gBAAgB,CAAC,CAAC,CAAC;IAClF;;OAEG;IACH,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC;IACZ;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;;OAKG;IACH,cAAc,CAAC,EACX,SAAS,GACT,aAAa,GACb,KAAK,GACL,MAAM,GACN,aAAa,GACb,oBAAoB,GACpB,OAAO,CAAC;IACZ,gDAAgD;IAChD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kEAAkE;IAClE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,kDAAkD;IAClD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,uDAAuD;IACvD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,wCAAwC;IACxC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,CAAC,CAAC;IAC3C,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B"}
@@ -4,4 +4,5 @@ export * from './TheTimezoneProps';
4
4
  export * from './AlertModalProps';
5
5
  export * from './unitTypes';
6
6
  export * from './SlVueTreeNextProps';
7
+ export * from './TreeDropdownProps';
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maropost-ui/liquidsky-ui",
3
- "version": "0.1.46",
3
+ "version": "0.1.48",
4
4
  "description": "Shared UI components, composables, and utils for Vue + Vuetify",
5
5
  "main": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",