@xy-planning-network/trees 0.4.0-rc-5 → 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 (72) 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 +4 -4
  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/{types/lib-components → lib-components}/index.d.ts +37 -31
  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 +1 -9
  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/types/nav.d.ts +0 -7
  42. package/dist/types/types/table.d.ts +0 -32
  43. package/dist/types/types/users.d.ts +0 -9
  44. package/src/lib-components/forms/BaseInput.vue +0 -83
  45. package/src/lib-components/forms/Checkbox.vue +0 -46
  46. package/src/lib-components/forms/DateRangePicker.vue +0 -65
  47. package/src/lib-components/forms/InputHelp.vue +0 -24
  48. package/src/lib-components/forms/InputLabel.vue +0 -23
  49. package/src/lib-components/forms/MultiCheckboxes.vue +0 -55
  50. package/src/lib-components/forms/Radio.vue +0 -58
  51. package/src/lib-components/forms/Select.vue +0 -65
  52. package/src/lib-components/forms/TextArea.vue +0 -50
  53. package/src/lib-components/forms/Toggle.vue +0 -25
  54. package/src/lib-components/forms/YesOrNoRadio.vue +0 -70
  55. package/src/lib-components/layout/DateFilter.vue +0 -56
  56. package/src/lib-components/layout/SidebarLayout.vue +0 -239
  57. package/src/lib-components/layout/StackedLayout.vue +0 -171
  58. package/src/lib-components/lists/Cards.vue +0 -33
  59. package/src/lib-components/lists/DetailList.vue +0 -114
  60. package/src/lib-components/lists/DownloadCell.vue +0 -12
  61. package/src/lib-components/lists/StaticTable.vue +0 -83
  62. package/src/lib-components/lists/Table.vue +0 -291
  63. package/src/lib-components/navigation/ActionsDropdown.vue +0 -78
  64. package/src/lib-components/navigation/Paginator.vue +0 -123
  65. package/src/lib-components/navigation/Steps.vue +0 -83
  66. package/src/lib-components/navigation/Tabs.vue +0 -92
  67. package/src/lib-components/overlays/ContentModal.vue +0 -95
  68. package/src/lib-components/overlays/Flash.vue +0 -136
  69. package/src/lib-components/overlays/Modal.vue +0 -133
  70. package/src/lib-components/overlays/Slideover.vue +0 -87
  71. package/src/lib-components/overlays/Spinner.vue +0 -149
  72. 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;
@@ -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 | undefined;
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;
@@ -29,36 +29,42 @@ import { default as YesOrNoRadio } from "./forms/YesOrNoRadio.vue";
29
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
30
  /**
31
31
  * declare global component types for App.use(Trees)
32
- */
32
+ *
33
+ * apply to project with the following
34
+ import { TreesComponents } from "@xy-planning-network/trees"
35
+
33
36
  declare module "@vue/runtime-core" {
34
- interface GlobalComponents {
35
- ActionsDropdown: typeof ActionsDropdown;
36
- Cards: typeof Cards;
37
- ContentModal: typeof ContentModal;
38
- DateFilter: typeof DateFilter;
39
- DetailList: typeof DetailList;
40
- DownloadCell: typeof DownloadCell;
41
- Flash: typeof Flash;
42
- Modal: typeof Modal;
43
- SidebarLayout: typeof SidebarLayout;
44
- Slideover: typeof Slideover;
45
- StackedLayout: typeof StackedLayout;
46
- Paginator: typeof Paginator;
47
- Spinner: typeof Spinner;
48
- StaticTable: typeof StaticTable;
49
- Steps: typeof Steps;
50
- Table: typeof Table;
51
- Tabs: typeof Tabs;
52
- Toggle: typeof Toggle;
53
- BaseInput: typeof BaseInput;
54
- Checkbox: typeof Checkbox;
55
- DateRangePicker: typeof DateRangePicker;
56
- InputHelp: typeof InputHelp;
57
- InputLabel: typeof InputLabel;
58
- MultiCheckboxes: typeof MultiCheckboxes;
59
- Radio: typeof Radio;
60
- Select: typeof Select;
61
- TextArea: typeof TextArea;
62
- YesOrNoRadio: typeof YesOrNoRadio;
63
- }
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;
64
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++) {
@@ -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 };