0.2.2 • Published 2 months ago

@dopt/semantic-data-layer-checklist v0.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

@dopt/semantic-data-layer-checklist

An interface definition for Dopt's checklist and checklist item components.

export interface Checklist {
  id: string;

  title: string | null | undefined;
  body: RichText | null | undefined;

  items: ChecklistItem[];

  active: boolean;

  completed: boolean;
  dismissed: boolean;

  complete: () => void;
  dismiss: () => void;

  size: number;

  filter(on: FilterableField): ChecklistItem[];
  count(where: CountableField): number;
}

export interface ChecklistItem {
  id: string;

  index: number | null | undefined;

  title: string | null | undefined;
  body: RichText | null | undefined;

  completeLabel: string | null | undefined;

  done: boolean;

  active: boolean;

  skipped: boolean;
  completed: boolean;

  complete: () => void;
  skip: () => void;
}
0.2.2

2 months ago

0.2.1

3 months ago

0.1.0

8 months ago

0.0.1

10 months ago

0.0.3

10 months ago

0.2.0

7 months ago

0.1.1

8 months ago

0.0.2

10 months ago

0.0.8

9 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.0

11 months ago