@maropost-ui/liquidsky-ui 0.1.58 → 0.1.60

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/README.md CHANGED
@@ -271,6 +271,21 @@ npm run storybook:build
271
271
 
272
272
  Default URL: http://localhost:6006
273
273
 
274
+ ### Development standards
275
+
276
+ Linting, type checking, tests, and git hooks are documented in [CONTRIBUTING.md](./CONTRIBUTING.md).
277
+
278
+ Quick reference:
279
+
280
+ ```bash
281
+ npm run lint # ESLint
282
+ npm run typecheck # vue-tsc
283
+ npm run test # Vitest unit tests (tests/)
284
+ npm run test:storybook # Vitest story tests in browser (Storybook addon)
285
+ npm run storybook # UI with testing widget + pass/fail on stories
286
+ npm run generate-test -- src/components/MyComponent.vue
287
+ ```
288
+
274
289
  ### 📂 Story Organization
275
290
 
276
291
  ```
@@ -0,0 +1,13 @@
1
+ import { type ComputedRef, type Ref } from 'vue';
2
+ export default function useDropdownSelectAll<T = any>(allowSelectAll: boolean, selectAllInModel: boolean, model: Ref<T | T[] | undefined>, modelSelectAll: Ref<{
3
+ select_all: boolean;
4
+ ids: T[];
5
+ }>, allItems: ComputedRef<T[]>, attrs: Record<string, unknown>): {
6
+ isMultiple: ComputedRef<boolean>;
7
+ selectableItems: ComputedRef<T[]>;
8
+ isSelectAll: ComputedRef<boolean>;
9
+ onToggleSelectAll: (value: boolean) => void;
10
+ updateCheckOnLoad: (value: boolean) => void;
11
+ syncSelectionOnLoadMore: () => void;
12
+ initSelectAllFromModel: () => void;
13
+ };
@@ -5,7 +5,7 @@ import { type Ref } from "vue";
5
5
  export default function useDropdownSelection<T = any>(model: Ref<T | T[] | undefined>, attrs?: Record<string, any>, defaultItems?: Ref<T[]>, search?: Ref<string>, modelSelectAll?: Ref<{
6
6
  select_all: boolean;
7
7
  ids: T[];
8
- }>, totalItems?: Ref<number>, maxVisibleChips?: number): {
8
+ }>, totalItems?: Ref<number>, maxVisibleChips?: number, selectAllInModel?: boolean): {
9
9
  chipCollapsableText: import("vue").ComputedRef<string>;
10
10
  removeItem: (itemIndex: number) => void;
11
11
  isItemSelected: (item: T) => boolean;
@@ -44,12 +44,11 @@
44
44
  * - Automatically trims history to respect `capacity`.
45
45
  * - Skips tracking during undo/redo to prevent recursive updates.
46
46
  */
47
- import { type Ref } from 'vue';
48
47
  export default function useRefHistory(source: any, options?: any): {
49
- history: Ref<never[], never[]>;
50
- pointer: Ref<number, number>;
51
- canUndo: Ref<boolean, boolean>;
52
- canRedo: Ref<boolean, boolean>;
48
+ history: import("vue").Ref<never[], never[]>;
49
+ pointer: import("vue").Ref<number, number>;
50
+ canUndo: import("vue").Ref<boolean, boolean>;
51
+ canRedo: import("vue").Ref<boolean, boolean>;
53
52
  undo: () => void;
54
53
  redo: () => void;
55
54
  };