@xy-planning-network/trees 0.12.4 → 0.12.6-dev

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.
Files changed (70) hide show
  1. package/dist/trees.es.js +3421 -3360
  2. package/dist/trees.umd.js +14 -14
  3. package/package.json +2 -2
  4. package/types/api/base.d.ts +0 -0
  5. package/types/api/client.d.ts +0 -0
  6. package/types/components.d.ts +1 -1
  7. package/types/composables/date.d.ts +0 -0
  8. package/types/composables/forms.d.ts +0 -0
  9. package/types/composables/index.d.ts +0 -0
  10. package/types/composables/list.d.ts +0 -0
  11. package/types/composables/nav.d.ts +0 -0
  12. package/types/composables/overlay.d.ts +0 -0
  13. package/types/composables/table.d.ts +1 -1
  14. package/types/composables/useActionItems.d.ts +0 -0
  15. package/types/composables/useBaseAPI.d.ts +0 -0
  16. package/types/composables/useBulkTable.d.ts +0 -0
  17. package/types/composables/useFlashes.d.ts +0 -0
  18. package/types/composables/useSpinner.d.ts +0 -0
  19. package/types/composables/useTable.d.ts +0 -0
  20. package/types/composables/user.d.ts +0 -0
  21. package/types/entry.d.ts +8 -8
  22. package/types/helpers/Debounce.d.ts +0 -0
  23. package/types/helpers/Throttle.d.ts +0 -0
  24. package/types/helpers/Uniques.d.ts +0 -0
  25. package/types/lib-components/forms/BaseInput.vue.d.ts +1 -1
  26. package/types/lib-components/forms/Checkbox.vue.d.ts +1 -1
  27. package/types/lib-components/forms/DateRangePicker.vue.d.ts +1 -1
  28. package/types/lib-components/forms/DateTimeInput.vue.d.ts +1 -1
  29. package/types/lib-components/forms/FieldsetLegend.vue.d.ts +0 -0
  30. package/types/lib-components/forms/InputError.vue.d.ts +0 -0
  31. package/types/lib-components/forms/InputHelp.vue.d.ts +0 -0
  32. package/types/lib-components/forms/InputLabel.vue.d.ts +0 -0
  33. package/types/lib-components/forms/MultiCheckboxes.vue.d.ts +1 -1
  34. package/types/lib-components/forms/NumberInput.vue.d.ts +1 -1
  35. package/types/lib-components/forms/Radio.vue.d.ts +1 -1
  36. package/types/lib-components/forms/RadioCards.vue.d.ts +1 -1
  37. package/types/lib-components/forms/Select.vue.d.ts +1 -1
  38. package/types/lib-components/forms/TextArea.vue.d.ts +1 -1
  39. package/types/lib-components/forms/Toggle.vue.d.ts +0 -0
  40. package/types/lib-components/forms/YesOrNoRadio.vue.d.ts +1 -1
  41. package/types/lib-components/index.d.ts +0 -0
  42. package/types/lib-components/indicators/AppIcon.vue.d.ts +24 -0
  43. package/types/lib-components/indicators/InlineAlert.vue.d.ts +0 -0
  44. package/types/lib-components/indicators/ProgressCircles.vue.d.ts +0 -0
  45. package/types/lib-components/indicators/ProgressCirclesLabeled.vue.d.ts +0 -0
  46. package/types/lib-components/indicators/XYSpinner.vue.d.ts +0 -0
  47. package/types/lib-components/layout/DateFilter.vue.d.ts +2 -2
  48. package/types/lib-components/layout/SidebarLayout.vue.d.ts +1 -1
  49. package/types/lib-components/layout/StackedLayout.vue.d.ts +2 -2
  50. package/types/lib-components/layout/UserMenu.vue.d.ts +8 -0
  51. package/types/lib-components/lists/Cards.vue.d.ts +0 -0
  52. package/types/lib-components/lists/DataTable.vue.d.ts +1 -1
  53. package/types/lib-components/lists/DetailList.vue.d.ts +1 -1
  54. package/types/lib-components/lists/DownloadCell.vue.d.ts +0 -0
  55. package/types/lib-components/lists/DynamicTable.vue.d.ts +1 -1
  56. package/types/lib-components/lists/TableActionButtons.vue.d.ts +2 -2
  57. package/types/lib-components/navigation/ActionsDropdown.vue.d.ts +1 -1
  58. package/types/lib-components/navigation/Paginator.vue.d.ts +1 -1
  59. package/types/lib-components/navigation/Steps.vue.d.ts +0 -0
  60. package/types/lib-components/navigation/TablePaginator.vue.d.ts +1 -1
  61. package/types/lib-components/navigation/Tabs.vue.d.ts +0 -0
  62. package/types/lib-components/overlays/ContentModal.vue.d.ts +0 -0
  63. package/types/lib-components/overlays/Flash.vue.d.ts +0 -0
  64. package/types/lib-components/overlays/Modal.vue.d.ts +0 -0
  65. package/types/lib-components/overlays/Popover/Popover.vue.d.ts +0 -0
  66. package/types/lib-components/overlays/Popover/PopoverContent.vue.d.ts +0 -0
  67. package/types/lib-components/overlays/Slideover.vue.d.ts +0 -0
  68. package/types/lib-components/overlays/Spinner.vue.d.ts +0 -0
  69. package/types/lib-components/overlays/Tooltip.vue.d.ts +0 -0
  70. package/types/lib-components/overlays/TooltipWrapper.vue.d.ts +18 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xy-planning-network/trees",
3
- "version": "0.12.4",
3
+ "version": "0.12.6-dev",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "repository": "github:xy-planning-network/trees",
@@ -63,7 +63,7 @@
63
63
  "@maskito/core": "^3.5.0",
64
64
  "@maskito/kit": "^3.5.0",
65
65
  "@maskito/vue": "^3.5.0",
66
- "axios": "^1.5.0",
66
+ "axios": "^1.12.2",
67
67
  "flatpickr": "^4.6.9"
68
68
  },
69
69
  "peerDependencies": {
File without changes
File without changes
@@ -1,4 +1,4 @@
1
- import { TreesComponents } from "./lib-components"
1
+ import { TreesComponents } from "@/lib-components"
2
2
 
3
3
  /**
4
4
  * When using App.use(Trees) include a
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  import { VNodeChild, type ComputedRef } from "vue";
2
- import { ActionItem } from "../composables/nav";
2
+ import { ActionItem } from "@/composables/nav";
3
3
  import { DateRangeProps } from "./date";
4
4
  export interface DynamicTableOptions {
5
5
  dateSearch?: boolean | DateRangeProps;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/types/entry.d.ts CHANGED
@@ -1,15 +1,15 @@
1
1
  import { Plugin } from "vue";
2
- import BaseAPI, { isHttpCancel, isHttpError, setBaseAPIDefaults } from "./api/base";
3
- import type { HttpPromise, HttpError, QueryParams, ReqOptions, ReqPayload, TrailsPromise, TrailsPromisePaged, TrailsResp, TrailsRespPaged } from "./api/client";
4
- import { emailPattern, looseToNumber, numericInputTypes, phonePattern, urlPattern, textInputTypes, useInputField } from "./composables/forms";
5
- import { debounce as debounceFn, debounceLeading } from "./helpers/Debounce";
6
- import { throttle as throttleFn } from "./helpers/Throttle";
2
+ import BaseAPI, { isHttpCancel, isHttpError, setBaseAPIDefaults } from "@/api/base";
3
+ import type { HttpPromise, HttpError, QueryParams, ReqOptions, ReqPayload, TrailsPromise, TrailsPromisePaged, TrailsResp, TrailsRespPaged } from "@/api/client";
4
+ import { emailPattern, looseToNumber, numericInputTypes, phonePattern, urlPattern, textInputTypes, useInputField } from "@/composables/forms";
5
+ import { debounce as debounceFn, debounceLeading } from "@/helpers/Debounce";
6
+ import { throttle as throttleFn } from "@/helpers/Throttle";
7
7
  declare const install: Exclude<Plugin["install"], undefined>;
8
8
  export default install;
9
- export * from "./composables/index";
10
- export * from "./lib-components/index";
9
+ export * from "@/composables/index";
10
+ export * from "@/lib-components/index";
11
11
  export { BaseAPI, isHttpCancel, isHttpError, setBaseAPIDefaults };
12
12
  export type { HttpPromise, HttpError, QueryParams, ReqOptions, ReqPayload, TrailsPromise, TrailsPromisePaged, TrailsResp, TrailsRespPaged, };
13
- export type * from "./composables/forms";
13
+ export type * from "@/composables/forms";
14
14
  export { emailPattern, looseToNumber, phonePattern, urlPattern, numericInputTypes, textInputTypes, useInputField, };
15
15
  export { debounceFn, debounceLeading, throttleFn };
File without changes
File without changes
File without changes
@@ -1,4 +1,4 @@
1
- import type { TextLikeInput } from "../../composables/forms";
1
+ import type { TextLikeInput } from "@/composables/forms";
2
2
  type __VLS_Props = TextLikeInput;
3
3
  type __VLS_PublicProps = {
4
4
  modelValue?: TextLikeInput["modelValue"];
@@ -1,4 +1,4 @@
1
- import type { BooleanInput } from "../../composables/forms";
1
+ import type { BooleanInput } from "@/composables/forms";
2
2
  type __VLS_Props = BooleanInput;
3
3
  type __VLS_PublicProps = {
4
4
  modelValue?: BooleanInput["modelValue"];
@@ -1,5 +1,5 @@
1
1
  import "flatpickr/dist/flatpickr.min.css";
2
- import type { DateRangeInput } from "../../composables/forms";
2
+ import type { DateRangeInput } from "@/composables/forms";
3
3
  type __VLS_Props = DateRangeInput;
4
4
  type __VLS_PublicProps = {
5
5
  modelValue?: DateRangeInput["modelValue"];
@@ -1,4 +1,4 @@
1
- import type { DateTimeInput } from "../../composables/forms";
1
+ import type { DateTimeInput } from "@/composables/forms";
2
2
  type __VLS_Props = DateTimeInput;
3
3
  type __VLS_PublicProps = {
4
4
  modelValue?: DateTimeInput["modelValue"];
File without changes
File without changes
File without changes
@@ -1,4 +1,4 @@
1
- import { MultiChoiceInput, ColumnedInput } from "../../composables/forms";
1
+ import { MultiChoiceInput, ColumnedInput } from "@/composables/forms";
2
2
  type __VLS_Props = MultiChoiceInput & ColumnedInput;
3
3
  type __VLS_PublicProps = {
4
4
  modelValue?: MultiChoiceInput["modelValue"];
@@ -1,4 +1,4 @@
1
- import type { NumericInput } from "../../composables/forms";
1
+ import type { NumericInput } from "@/composables/forms";
2
2
  type __VLS_Props = NumericInput;
3
3
  type __VLS_PublicProps = {
4
4
  modelValue?: NumericInput["modelValue"];
@@ -1,4 +1,4 @@
1
- import type { OptionsInput, ColumnedInput } from "../../composables/forms";
1
+ import type { OptionsInput, ColumnedInput } from "@/composables/forms";
2
2
  type __VLS_Props = OptionsInput & ColumnedInput;
3
3
  type __VLS_PublicProps = {
4
4
  modelValue?: OptionsInput["modelValue"];
@@ -1,4 +1,4 @@
1
- import type { InputOption } from "../../composables/forms";
1
+ import type { InputOption } from "@/composables/forms";
2
2
  declare const _default: <T extends InputOption>(__VLS_props: {
3
3
  readonly "onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
4
4
  modelValue?: string | number | null | undefined;
@@ -1,4 +1,4 @@
1
- import type { OptionsInput } from "../../composables/forms";
1
+ import type { OptionsInput } from "@/composables/forms";
2
2
  type __VLS_Props = OptionsInput;
3
3
  type __VLS_PublicProps = {
4
4
  modelValue?: OptionsInput["modelValue"];
@@ -1,4 +1,4 @@
1
- import type { TextareaInput } from "../../composables/forms";
1
+ import type { TextareaInput } from "@/composables/forms";
2
2
  type __VLS_Props = TextareaInput;
3
3
  type __VLS_PublicProps = {
4
4
  modelValue?: TextareaInput["modelValue"];
File without changes
@@ -1,4 +1,4 @@
1
- import type { BooleanInput } from "../../composables/forms";
1
+ import type { BooleanInput } from "@/composables/forms";
2
2
  type __VLS_Props = BooleanInput;
3
3
  type __VLS_PublicProps = {
4
4
  modelValue?: BooleanInput["modelValue"];
File without changes
@@ -0,0 +1,24 @@
1
+ import type { Component, FunctionalComponent, RenderFunction } from "vue";
2
+ type __VLS_Props = {
3
+ bgColor?: `bg-${string}`;
4
+ iconColor?: `text-${string}`;
5
+ icon: FunctionalComponent | Component | RenderFunction;
6
+ indicator?: string | number | boolean;
7
+ size?: "xs" | "sm" | "base" | "lg" | "xl";
8
+ type?: "circle" | "square";
9
+ };
10
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
11
+ type: "circle" | "square";
12
+ size: "base" | "xs" | "sm" | "lg" | "xl";
13
+ bgColor: `bg-${string}`;
14
+ iconColor: `text-${string}`;
15
+ indicator: string | number | boolean;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>, {
17
+ default?(_: {}): any;
18
+ }>;
19
+ export default _default;
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -1,5 +1,5 @@
1
- import { DateRange } from "../../composables/date";
2
- import { SortDir } from "../../composables/list";
1
+ import { DateRange } from "@/composables/date";
2
+ import { SortDir } from "@/composables/list";
3
3
  type __VLS_Props = {
4
4
  dateRange: DateRange;
5
5
  sortDir: SortDir;
@@ -1,4 +1,4 @@
1
- import type { NavItem } from "../../composables/nav";
1
+ import type { NavItem } from "@/composables/nav";
2
2
  type __VLS_Props = {
3
3
  activeUrl?: string;
4
4
  iconUrl: string;
@@ -1,5 +1,5 @@
1
- import type { NavItem } from "../../composables/nav";
2
- import User from "../../composables/user";
1
+ import type { NavItem } from "@/composables/nav";
2
+ import User from "@/composables/user";
3
3
  type __VLS_Props = {
4
4
  activeUrl?: string;
5
5
  currentUser: User;
@@ -0,0 +1,8 @@
1
+ import { UserMenuItem } from "../../composables/nav";
2
+ type __VLS_Props = {
3
+ menu?: UserMenuItem[];
4
+ };
5
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
6
+ menu: UserMenuItem[];
7
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ export default _default;
File without changes
@@ -1,4 +1,4 @@
1
- import type { TableActions, TableColumns, TableRowsData } from "../../composables/table";
1
+ import type { TableActions, TableColumns, TableRowsData } from "@/composables/table";
2
2
  type __VLS_Props = {
3
3
  tableActions?: TableActions<any>;
4
4
  tableColumns: TableColumns<any>;
@@ -1,4 +1,4 @@
1
- import { SortDir } from "../../composables/list";
1
+ import { SortDir } from "@/composables/list";
2
2
  type __VLS_Props = {
3
3
  /**
4
4
  * borderless removes the default border styling applied around list items.
File without changes
@@ -1,4 +1,4 @@
1
- import type { DynamicTableOptions, TableActions, TableBulkActions, TableColumns, TableRowData } from "../../composables/table";
1
+ import type { DynamicTableOptions, TableActions, TableBulkActions, TableColumns, TableRowData } from "@/composables/table";
2
2
  type __VLS_Props = {
3
3
  tableActions?: TableActions<any>;
4
4
  tableBulkActions?: TableBulkActions<any>;
@@ -1,8 +1,8 @@
1
- import { TableActionItem } from "../../composables";
1
+ import { TableActionItem } from "@/composables";
2
2
  type __VLS_Props = {
3
3
  actions?: TableActionItem[];
4
4
  };
5
5
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
6
- actions: TableActionItem<import("../../composables").TableRowData>[];
6
+ actions: TableActionItem<import("@/composables").TableRowData>[];
7
7
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
8
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { ActionItem } from "../../composables/nav";
1
+ import type { ActionItem } from "@/composables/nav";
2
2
  import type { Placement } from "@floating-ui/vue";
3
3
  type __VLS_Props = {
4
4
  actions?: ActionItem[];
@@ -1,4 +1,4 @@
1
- import { Pagination } from "../../composables/nav";
1
+ import { Pagination } from "@/composables/nav";
2
2
  type __VLS_PublicProps = {
3
3
  modelValue: Pagination;
4
4
  };
File without changes
@@ -1,4 +1,4 @@
1
- import { Pagination } from "../../composables/nav";
1
+ import { Pagination } from "@/composables/nav";
2
2
  type __VLS_Props = {
3
3
  pageOptions?: {
4
4
  label: string;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,18 @@
1
+ import { type Placement } from "@floating-ui/vue";
2
+ type __VLS_Props = {
3
+ as?: string;
4
+ position?: Placement | "auto";
5
+ tooltip: string;
6
+ };
7
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
8
+ as: string;
9
+ position: Placement | "auto";
10
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
11
+ default?(_: {}): any;
12
+ }>;
13
+ export default _default;
14
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };