@xy-planning-network/trees 0.4.0-rc-2 → 0.4.0-rc-6

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 (73) hide show
  1. package/dist/{types/api → api}/base.d.ts +0 -0
  2. package/dist/{types/entry.d.ts → entry.d.ts} +1 -3
  3. package/dist/{types/helpers → helpers}/Uniques.d.ts +0 -0
  4. package/dist/{types/lib-components → lib-components}/forms/BaseInput.vue.d.ts +2 -2
  5. package/dist/{types/lib-components → lib-components}/forms/Checkbox.vue.d.ts +1 -1
  6. package/dist/{types/lib-components → lib-components}/forms/DateRangePicker.vue.d.ts +2 -2
  7. package/dist/{types/lib-components → lib-components}/forms/InputHelp.vue.d.ts +2 -2
  8. package/dist/{types/lib-components → lib-components}/forms/InputLabel.vue.d.ts +0 -0
  9. package/dist/{types/lib-components → lib-components}/forms/MultiCheckboxes.vue.d.ts +2 -2
  10. package/dist/{types/lib-components → lib-components}/forms/Radio.vue.d.ts +3 -3
  11. package/dist/{types/lib-components → lib-components}/forms/Select.vue.d.ts +5 -5
  12. package/dist/{types/lib-components → lib-components}/forms/TextArea.vue.d.ts +2 -2
  13. package/dist/{types/lib-components → lib-components}/forms/Toggle.vue.d.ts +0 -0
  14. package/dist/{types/lib-components → lib-components}/forms/YesOrNoRadio.vue.d.ts +3 -3
  15. package/dist/lib-components/index.d.ts +70 -0
  16. package/dist/{types/lib-components → lib-components}/layout/DateFilter.vue.d.ts +0 -0
  17. package/dist/{types/lib-components → lib-components}/layout/SidebarLayout.vue.d.ts +0 -0
  18. package/dist/{types/lib-components → lib-components}/layout/StackedLayout.vue.d.ts +0 -0
  19. package/dist/{types/lib-components → lib-components}/lists/Cards.vue.d.ts +0 -0
  20. package/dist/{types/lib-components → lib-components}/lists/DetailList.vue.d.ts +1 -1
  21. package/dist/{types/lib-components → lib-components}/lists/DownloadCell.vue.d.ts +0 -0
  22. package/dist/{types/lib-components → lib-components}/lists/StaticTable.vue.d.ts +0 -0
  23. package/dist/{types/lib-components → lib-components}/lists/Table.vue.d.ts +0 -0
  24. package/dist/{types/lib-components → lib-components}/navigation/ActionsDropdown.vue.d.ts +0 -0
  25. package/dist/{types/lib-components → lib-components}/navigation/Paginator.vue.d.ts +0 -0
  26. package/dist/{types/lib-components → lib-components}/navigation/Steps.vue.d.ts +2 -2
  27. package/dist/{types/lib-components → lib-components}/navigation/Tabs.vue.d.ts +0 -0
  28. package/dist/{types/lib-components → lib-components}/overlays/ContentModal.vue.d.ts +1 -1
  29. package/dist/{types/lib-components → lib-components}/overlays/Flash.vue.d.ts +0 -0
  30. package/dist/{types/lib-components → lib-components}/overlays/Modal.vue.d.ts +3 -3
  31. package/dist/{types/lib-components → lib-components}/overlays/Slideover.vue.d.ts +1 -1
  32. package/dist/{types/lib-components → lib-components}/overlays/Spinner.vue.d.ts +0 -0
  33. package/dist/trees.es.js +2 -10
  34. package/dist/trees.umd.js +5 -5
  35. package/dist/types/components.d.ts +6 -0
  36. package/{src → dist}/types/global.d.ts +0 -0
  37. package/dist/types/nav.d.ts +8 -0
  38. package/dist/types/table.d.ts +36 -0
  39. package/dist/types/users.d.ts +10 -0
  40. package/package.json +6 -6
  41. package/dist/types/lib-components/index.d.ts +0 -93
  42. package/dist/types/types/nav.d.ts +0 -7
  43. package/dist/types/types/table.d.ts +0 -32
  44. package/dist/types/types/users.d.ts +0 -9
  45. package/src/lib-components/forms/BaseInput.vue +0 -83
  46. package/src/lib-components/forms/Checkbox.vue +0 -46
  47. package/src/lib-components/forms/DateRangePicker.vue +0 -65
  48. package/src/lib-components/forms/InputHelp.vue +0 -24
  49. package/src/lib-components/forms/InputLabel.vue +0 -23
  50. package/src/lib-components/forms/MultiCheckboxes.vue +0 -55
  51. package/src/lib-components/forms/Radio.vue +0 -58
  52. package/src/lib-components/forms/Select.vue +0 -65
  53. package/src/lib-components/forms/TextArea.vue +0 -50
  54. package/src/lib-components/forms/Toggle.vue +0 -25
  55. package/src/lib-components/forms/YesOrNoRadio.vue +0 -70
  56. package/src/lib-components/layout/DateFilter.vue +0 -56
  57. package/src/lib-components/layout/SidebarLayout.vue +0 -239
  58. package/src/lib-components/layout/StackedLayout.vue +0 -171
  59. package/src/lib-components/lists/Cards.vue +0 -33
  60. package/src/lib-components/lists/DetailList.vue +0 -114
  61. package/src/lib-components/lists/DownloadCell.vue +0 -12
  62. package/src/lib-components/lists/StaticTable.vue +0 -83
  63. package/src/lib-components/lists/Table.vue +0 -291
  64. package/src/lib-components/navigation/ActionsDropdown.vue +0 -78
  65. package/src/lib-components/navigation/Paginator.vue +0 -123
  66. package/src/lib-components/navigation/Steps.vue +0 -83
  67. package/src/lib-components/navigation/Tabs.vue +0 -92
  68. package/src/lib-components/overlays/ContentModal.vue +0 -95
  69. package/src/lib-components/overlays/Flash.vue +0 -136
  70. package/src/lib-components/overlays/Modal.vue +0 -133
  71. package/src/lib-components/overlays/Slideover.vue +0 -87
  72. package/src/lib-components/overlays/Spinner.vue +0 -149
  73. package/src/types/env.d.ts +0 -18
File without changes
@@ -1,8 +1,6 @@
1
1
  import { Plugin } from "vue";
2
2
  import BaseAPI from "./api/base";
3
- import * as TableTypes from "./types/table";
4
- import * as NavTypes from "./types/nav";
5
3
  declare const install: Exclude<Plugin["install"], undefined>;
6
4
  export default install;
7
5
  export * from "./lib-components/index";
8
- export { BaseAPI, NavTypes, TableTypes };
6
+ export { BaseAPI };
File without changes
@@ -25,14 +25,14 @@ declare const _default: import("vue").DefineComponent<{
25
25
  modelValue?: unknown;
26
26
  } & {
27
27
  type: string;
28
+ modelValue: string | number;
28
29
  label: string;
29
30
  help: string;
30
- modelValue: string | number;
31
31
  } & {}> & {
32
32
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
33
33
  }, {
34
+ modelValue: string | number;
34
35
  label: string;
35
36
  help: string;
36
- modelValue: string | number;
37
37
  }>;
38
38
  export default _default;
@@ -12,8 +12,8 @@ declare const _default: import("vue").DefineComponent<{
12
12
  label?: unknown;
13
13
  modelValue?: unknown;
14
14
  } & {
15
- label: string;
16
15
  modelValue: boolean;
16
+ label: string;
17
17
  } & {}> & {
18
18
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
19
19
  }, {
@@ -28,12 +28,12 @@ declare const _default: import("vue").DefineComponent<{
28
28
  label?: unknown;
29
29
  help?: unknown;
30
30
  } & {
31
- label: string;
32
- help: string;
33
31
  modelValue: {
34
32
  minDate: number;
35
33
  maxDate: number;
36
34
  };
35
+ label: string;
36
+ help: string;
37
37
  startDate: number;
38
38
  } & {}> & {
39
39
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
@@ -13,10 +13,10 @@ declare const _default: import("vue").DefineComponent<{
13
13
  tag?: unknown;
14
14
  text?: unknown;
15
15
  } & {
16
- text: string;
17
16
  tag: string;
18
- } & {}>, {
19
17
  text: string;
18
+ } & {}>, {
20
19
  tag: string;
20
+ text: string;
21
21
  }>;
22
22
  export default _default;
@@ -20,12 +20,12 @@ declare const _default: import("vue").DefineComponent<{
20
20
  legend?: unknown;
21
21
  modelValue?: unknown;
22
22
  } & {
23
- legend: string;
23
+ modelValue: string[];
24
24
  options: {
25
25
  label: string;
26
26
  value: string;
27
27
  }[];
28
- modelValue: string[];
28
+ legend: string;
29
29
  } & {}> & {
30
30
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
31
31
  }, {
@@ -27,18 +27,18 @@ declare const _default: import("vue").DefineComponent<{
27
27
  modelValue?: unknown;
28
28
  vertical?: unknown;
29
29
  } & {
30
- legend: string;
30
+ modelValue: string;
31
31
  options: {
32
32
  label: string;
33
33
  value: string;
34
34
  }[];
35
+ legend: string;
35
36
  vertical: boolean;
36
- modelValue: string;
37
37
  } & {}> & {
38
38
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
39
39
  }, {
40
+ modelValue: string;
40
41
  legend: string;
41
42
  vertical: boolean;
42
- modelValue: string;
43
43
  }>;
44
44
  export default _default;
@@ -27,7 +27,7 @@ declare const _default: import("vue").DefineComponent<{
27
27
  required: true;
28
28
  };
29
29
  modelValue: {
30
- type: import("vue").PropType<string | number>;
30
+ type: import("vue").PropType<string | number | undefined>;
31
31
  required: true;
32
32
  };
33
33
  }, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
@@ -38,21 +38,21 @@ declare const _default: import("vue").DefineComponent<{
38
38
  options?: unknown;
39
39
  modelValue?: unknown;
40
40
  } & {
41
+ modelValue: string | number | undefined;
41
42
  label: string;
43
+ help: string;
42
44
  options: {
43
45
  label: string;
44
46
  value: string | number;
45
47
  }[];
46
- help: string;
47
- placeholder: string;
48
- modelValue: string | number;
49
48
  design: "standard" | "compressed";
49
+ placeholder: string;
50
50
  } & {}> & {
51
51
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
52
52
  }, {
53
53
  label: string;
54
54
  help: string;
55
- placeholder: string;
56
55
  design: "standard" | "compressed";
56
+ placeholder: string;
57
57
  }>;
58
58
  export default _default;
@@ -19,14 +19,14 @@ declare const _default: import("vue").DefineComponent<{
19
19
  label?: unknown;
20
20
  modelValue?: unknown;
21
21
  } & {
22
+ modelValue: string | number;
22
23
  label: string;
23
24
  help: string;
24
- modelValue: string | number;
25
25
  } & {}> & {
26
26
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
27
27
  }, {
28
+ modelValue: string | number;
28
29
  label: string;
29
30
  help: string;
30
- modelValue: string | number;
31
31
  }>;
32
32
  export default _default;
@@ -19,15 +19,15 @@ declare const _default: import("vue").DefineComponent<{
19
19
  legend?: unknown;
20
20
  name?: unknown;
21
21
  } & {
22
- name: string;
23
22
  legend: string;
23
+ name: string;
24
24
  } & {
25
25
  modelValue?: boolean | undefined;
26
26
  }> & {
27
27
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
28
28
  }, {
29
- name: string;
30
- legend: string;
31
29
  modelValue: boolean;
30
+ legend: string;
31
+ name: string;
32
32
  }>;
33
33
  export default _default;
@@ -0,0 +1,70 @@
1
+ import { default as ActionsDropdown } from "./navigation/ActionsDropdown.vue";
2
+ import { default as Cards } from "./lists/Cards.vue";
3
+ import { default as ContentModal } from "./overlays/ContentModal.vue";
4
+ import { default as DateFilter } from "./layout/DateFilter.vue";
5
+ import { default as DetailList } from "./lists/DetailList.vue";
6
+ import { default as DownloadCell } from "./lists/DownloadCell.vue";
7
+ import { default as Flash } from "./overlays/Flash.vue";
8
+ import { default as Modal } from "./overlays/Modal.vue";
9
+ import { default as SidebarLayout } from "./layout/SidebarLayout.vue";
10
+ import { default as Slideover } from "./overlays/Slideover.vue";
11
+ import { default as StackedLayout } from "./layout/StackedLayout.vue";
12
+ import { default as Paginator } from "./navigation/Paginator.vue";
13
+ import { default as Spinner } from "./overlays/Spinner.vue";
14
+ import { default as StaticTable } from "./lists/StaticTable.vue";
15
+ import { default as Steps } from "./navigation/Steps.vue";
16
+ import { default as Table } from "./lists/Table.vue";
17
+ import { default as Tabs } from "./navigation/Tabs.vue";
18
+ import { default as Toggle } from "./forms/Toggle.vue";
19
+ import { default as BaseInput } from "./forms/BaseInput.vue";
20
+ import { default as Checkbox } from "./forms/Checkbox.vue";
21
+ import { default as DateRangePicker } from "./forms/DateRangePicker.vue";
22
+ import { default as InputHelp } from "./forms/InputHelp.vue";
23
+ import { default as InputLabel } from "./forms/InputLabel.vue";
24
+ import { default as MultiCheckboxes } from "./forms/MultiCheckboxes.vue";
25
+ import { default as Radio } from "./forms/Radio.vue";
26
+ import { default as Select } from "./forms/Select.vue";
27
+ import { default as TextArea } from "./forms/TextArea.vue";
28
+ import { default as YesOrNoRadio } from "./forms/YesOrNoRadio.vue";
29
+ export { ActionsDropdown, Cards, ContentModal, DateFilter, DetailList, DownloadCell, Flash, Modal, SidebarLayout, Slideover, StackedLayout, Paginator, Spinner, StaticTable, Steps, Table, Tabs, Toggle, BaseInput, Checkbox, DateRangePicker, InputHelp, InputLabel, MultiCheckboxes, Radio, Select, TextArea, YesOrNoRadio, };
30
+ /**
31
+ * declare global component types for App.use(Trees)
32
+ *
33
+ * apply to project with the following
34
+ import { TreesComponents } from "@xy-planning-network/trees"
35
+
36
+ declare module "@vue/runtime-core" {
37
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
38
+ interface GlobalComponents extends TreesComponents {}
39
+ }
40
+ */
41
+ export interface TreesComponents {
42
+ ActionsDropdown: typeof ActionsDropdown;
43
+ Cards: typeof Cards;
44
+ ContentModal: typeof ContentModal;
45
+ DateFilter: typeof DateFilter;
46
+ DetailList: typeof DetailList;
47
+ DownloadCell: typeof DownloadCell;
48
+ Flash: typeof Flash;
49
+ Modal: typeof Modal;
50
+ SidebarLayout: typeof SidebarLayout;
51
+ Slideover: typeof Slideover;
52
+ StackedLayout: typeof StackedLayout;
53
+ Paginator: typeof Paginator;
54
+ Spinner: typeof Spinner;
55
+ StaticTable: typeof StaticTable;
56
+ Steps: typeof Steps;
57
+ Table: typeof Table;
58
+ Tabs: typeof Tabs;
59
+ Toggle: typeof Toggle;
60
+ BaseInput: typeof BaseInput;
61
+ Checkbox: typeof Checkbox;
62
+ DateRangePicker: typeof DateRangePicker;
63
+ InputHelp: typeof InputHelp;
64
+ InputLabel: typeof InputLabel;
65
+ MultiCheckboxes: typeof MultiCheckboxes;
66
+ Radio: typeof Radio;
67
+ Select: typeof Select;
68
+ TextArea: typeof TextArea;
69
+ YesOrNoRadio: typeof YesOrNoRadio;
70
+ }
@@ -23,8 +23,8 @@ declare const _default: import("vue").DefineComponent<{
23
23
  title?: unknown;
24
24
  url?: unknown;
25
25
  } & {
26
- url: string;
27
26
  title: string;
27
+ url: string;
28
28
  refreshTrigger: number;
29
29
  reloadTrigger: number;
30
30
  } & {}>, {
@@ -35,12 +35,12 @@ declare const _default: import("vue").DefineComponent<{
35
35
  step?: unknown;
36
36
  total?: unknown;
37
37
  } & {
38
- total: number;
39
- step: number;
40
38
  hideActions: boolean;
41
39
  hidePrevious: boolean;
42
40
  nextText: string;
43
41
  previousText: string;
42
+ step: number;
43
+ total: number;
44
44
  } & {}> & {
45
45
  onNext?: ((...args: any[]) => any) | undefined;
46
46
  onPrevious?: ((...args: any[]) => any) | undefined;
@@ -14,8 +14,8 @@ declare const _default: import("vue").DefineComponent<{
14
14
  modelValue?: unknown;
15
15
  title?: unknown;
16
16
  } & {
17
- title: string;
18
17
  modelValue: boolean;
18
+ title: string;
19
19
  } & {}> & {
20
20
  "onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
21
21
  }, {
@@ -34,17 +34,17 @@ declare const _default: import("vue").DefineComponent<{
34
34
  submitText?: unknown;
35
35
  title?: unknown;
36
36
  } & {
37
- title: string;
38
37
  disabled: boolean;
39
38
  modelValue: boolean;
39
+ title: string;
40
40
  destructive: boolean;
41
41
  submitText: string;
42
42
  } & {}> & {
43
- onSubmit?: (() => any) | undefined;
44
43
  "onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
44
+ onSubmit?: (() => any) | undefined;
45
45
  }, {
46
- title: string;
47
46
  disabled: boolean;
47
+ title: string;
48
48
  destructive: boolean;
49
49
  submitText: string;
50
50
  }>;
@@ -12,8 +12,8 @@ declare const _default: import("vue").DefineComponent<__VLS_DefinePropsToOptions
12
12
  modelValue?: unknown;
13
13
  } & {
14
14
  description: string;
15
- header: string;
16
15
  modelValue: boolean;
16
+ header: string;
17
17
  } & {}> & {
18
18
  "onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
19
19
  onClose?: ((val: boolean) => any) | undefined;
package/dist/trees.es.js CHANGED
@@ -1147,14 +1147,6 @@ const BaseAPI = {
1147
1147
  return this.makeRequest({ url: path, data, method: "PUT" }, opts);
1148
1148
  }
1149
1149
  };
1150
- var table = /* @__PURE__ */ Object.freeze({
1151
- __proto__: null,
1152
- [Symbol.toStringTag]: "Module"
1153
- });
1154
- var nav = /* @__PURE__ */ Object.freeze({
1155
- __proto__: null,
1156
- [Symbol.toStringTag]: "Module"
1157
- });
1158
1150
  function _extends() {
1159
1151
  _extends = Object.assign || function(target) {
1160
1152
  for (var i = 1; i < arguments.length; i++) {
@@ -6948,7 +6940,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
6948
6940
  },
6949
6941
  setup(__props) {
6950
6942
  const props = __props;
6951
- const sidebarOpen = ref(true);
6943
+ const sidebarOpen = ref(false);
6952
6944
  const isActive = (url) => {
6953
6945
  return props.activeURL === url;
6954
6946
  };
@@ -8396,4 +8388,4 @@ const install = function installTrees(app) {
8396
8388
  app.component(componentName, component);
8397
8389
  });
8398
8390
  };
8399
- export { _sfc_main$r as ActionsDropdown, BaseAPI, _sfc_main$m as BaseInput, _sfc_main$q as Cards, _sfc_main$5 as Checkbox, _sfc_main$p as ContentModal, _sfc_main$k as DateFilter, _sfc_main$l as DateRangePicker, _sfc_main$i as DetailList, _sfc_main$h as DownloadCell, _sfc_main$g as Flash, _sfc_main$n as InputHelp, _sfc_main$o as InputLabel, _sfc_main$f as Modal, _sfc_main$4 as MultiCheckboxes, nav as NavTypes, _sfc_main$j as Paginator, _sfc_main$3 as Radio, _sfc_main$2 as Select, _sfc_main$d as SidebarLayout, _sfc_main$c as Slideover, _sfc_main$e as Spinner, _sfc_main$b as StackedLayout, _sfc_main$a as StaticTable, _sfc_main$9 as Steps, _sfc_main$8 as Table, table as TableTypes, _sfc_main$7 as Tabs, _sfc_main$1 as TextArea, _sfc_main$6 as Toggle, _sfc_main as YesOrNoRadio, install as default };
8391
+ export { _sfc_main$r as ActionsDropdown, BaseAPI, _sfc_main$m as BaseInput, _sfc_main$q as Cards, _sfc_main$5 as Checkbox, _sfc_main$p as ContentModal, _sfc_main$k as DateFilter, _sfc_main$l as DateRangePicker, _sfc_main$i as DetailList, _sfc_main$h as DownloadCell, _sfc_main$g as Flash, _sfc_main$n as InputHelp, _sfc_main$o as InputLabel, _sfc_main$f as Modal, _sfc_main$4 as MultiCheckboxes, _sfc_main$j as Paginator, _sfc_main$3 as Radio, _sfc_main$2 as Select, _sfc_main$d as SidebarLayout, _sfc_main$c as Slideover, _sfc_main$e as Spinner, _sfc_main$b as StackedLayout, _sfc_main$a as StaticTable, _sfc_main$9 as Steps, _sfc_main$8 as Table, _sfc_main$7 as Tabs, _sfc_main$1 as TextArea, _sfc_main$6 as Toggle, _sfc_main as YesOrNoRadio, install as default };