@xy-planning-network/trees 0.4.0-rc-4 → 0.4.0-rc-8
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 +16 -26
- package/dist/trees.es.js +2 -10
- package/dist/trees.umd.js +5 -5
- package/package.json +11 -10
- package/{dist/types → types}/api/base.d.ts +0 -0
- package/types/components.d.ts +12 -0
- package/types/composables/date.d.ts +4 -0
- package/types/composables/nav.d.ts +13 -0
- package/types/composables/overlay.d.ts +4 -0
- package/{dist/types/types → types/composables}/table.d.ts +1 -1
- package/{dist/types/types/users.d.ts → types/composables/user.d.ts} +0 -0
- package/{dist/types → types}/entry.d.ts +1 -3
- package/types/global.d.ts +13 -0
- package/{dist/types → types}/helpers/Uniques.d.ts +0 -0
- package/{dist/types → types}/lib-components/forms/BaseInput.vue.d.ts +2 -2
- package/{dist/types → types}/lib-components/forms/Checkbox.vue.d.ts +1 -1
- package/{dist/types → types}/lib-components/forms/DateRangePicker.vue.d.ts +2 -2
- package/{dist/types → types}/lib-components/forms/InputHelp.vue.d.ts +2 -2
- package/{dist/types → types}/lib-components/forms/InputLabel.vue.d.ts +0 -0
- package/{dist/types → types}/lib-components/forms/MultiCheckboxes.vue.d.ts +2 -2
- package/{dist/types → types}/lib-components/forms/Radio.vue.d.ts +3 -3
- package/{dist/types → types}/lib-components/forms/Select.vue.d.ts +4 -4
- package/{dist/types → types}/lib-components/forms/TextArea.vue.d.ts +2 -2
- package/{dist/types → types}/lib-components/forms/Toggle.vue.d.ts +0 -0
- package/{dist/types → types}/lib-components/forms/YesOrNoRadio.vue.d.ts +3 -3
- package/{dist/types → types}/lib-components/index.d.ts +29 -31
- package/{dist/types → types}/lib-components/layout/DateFilter.vue.d.ts +1 -4
- package/{dist/types → types}/lib-components/layout/SidebarLayout.vue.d.ts +1 -1
- package/{dist/types → types}/lib-components/layout/StackedLayout.vue.d.ts +2 -2
- package/{dist/types → types}/lib-components/lists/Cards.vue.d.ts +0 -0
- package/{dist/types → types}/lib-components/lists/DetailList.vue.d.ts +1 -1
- package/{dist/types → types}/lib-components/lists/DownloadCell.vue.d.ts +0 -0
- package/{dist/types → types}/lib-components/lists/StaticTable.vue.d.ts +1 -1
- package/{dist/types → types}/lib-components/lists/Table.vue.d.ts +1 -1
- package/{dist/types → types}/lib-components/navigation/ActionsDropdown.vue.d.ts +2 -2
- package/{dist/types → types}/lib-components/navigation/Paginator.vue.d.ts +1 -6
- package/{dist/types → types}/lib-components/navigation/Steps.vue.d.ts +2 -2
- package/{dist/types → types}/lib-components/navigation/Tabs.vue.d.ts +0 -0
- package/{dist/types → types}/lib-components/overlays/ContentModal.vue.d.ts +1 -1
- package/{dist/types/lib-components/overlays/Spinner.vue.d.ts → types/lib-components/overlays/Flash.vue.d.ts} +0 -0
- package/{dist/types → types}/lib-components/overlays/Modal.vue.d.ts +3 -3
- package/{dist/types → types}/lib-components/overlays/Slideover.vue.d.ts +1 -1
- package/{dist/types/lib-components/overlays/Flash.vue.d.ts → types/lib-components/overlays/Spinner.vue.d.ts} +0 -4
- package/dist/types/types/nav.d.ts +0 -7
- package/src/lib-components/forms/BaseInput.vue +0 -83
- package/src/lib-components/forms/Checkbox.vue +0 -46
- package/src/lib-components/forms/DateRangePicker.vue +0 -65
- package/src/lib-components/forms/InputHelp.vue +0 -24
- package/src/lib-components/forms/InputLabel.vue +0 -23
- package/src/lib-components/forms/MultiCheckboxes.vue +0 -55
- package/src/lib-components/forms/Radio.vue +0 -58
- package/src/lib-components/forms/Select.vue +0 -65
- package/src/lib-components/forms/TextArea.vue +0 -50
- package/src/lib-components/forms/Toggle.vue +0 -25
- package/src/lib-components/forms/YesOrNoRadio.vue +0 -70
- package/src/lib-components/layout/DateFilter.vue +0 -56
- package/src/lib-components/layout/SidebarLayout.vue +0 -239
- package/src/lib-components/layout/StackedLayout.vue +0 -171
- package/src/lib-components/lists/Cards.vue +0 -33
- package/src/lib-components/lists/DetailList.vue +0 -114
- package/src/lib-components/lists/DownloadCell.vue +0 -12
- package/src/lib-components/lists/StaticTable.vue +0 -83
- package/src/lib-components/lists/Table.vue +0 -291
- package/src/lib-components/navigation/ActionsDropdown.vue +0 -78
- package/src/lib-components/navigation/Paginator.vue +0 -123
- package/src/lib-components/navigation/Steps.vue +0 -83
- package/src/lib-components/navigation/Tabs.vue +0 -92
- package/src/lib-components/overlays/ContentModal.vue +0 -95
- package/src/lib-components/overlays/Flash.vue +0 -136
- package/src/lib-components/overlays/Modal.vue +0 -133
- package/src/lib-components/overlays/Slideover.vue +0 -87
- package/src/lib-components/overlays/Spinner.vue +0 -149
- package/src/types/env.d.ts +0 -18
- package/src/types/global.d.ts +0 -10
package/README.md
CHANGED
|
@@ -59,44 +59,34 @@ npm i @xy-planning-network/trees mitt
|
|
|
59
59
|
|
|
60
60
|
This example installs all components of Trees, which may not be necessary for all projects. Assumes you have a vue 3 project with tailwind created.
|
|
61
61
|
|
|
62
|
-
**Establish global types for VueBus and Flashes in global.d.ts**
|
|
63
|
-
|
|
64
|
-
```ts
|
|
65
|
-
// global.d.ts
|
|
66
|
-
|
|
67
|
-
import { Emitter } from "mitt";
|
|
68
|
-
|
|
69
|
-
declare global {
|
|
70
|
-
interface Window {
|
|
71
|
-
Flashes: Array<{ message: string }>;
|
|
72
|
-
VueBus: Emitter;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
```
|
|
76
|
-
|
|
77
62
|
**Initialize trees components in main.ts**
|
|
78
63
|
|
|
79
64
|
```ts
|
|
80
65
|
// main.ts
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
66
|
+
|
|
67
|
+
// include the type interfaces for Window and GlobalComponents
|
|
68
|
+
/// <reference types="@xy-planning-network/trees/types/global" />
|
|
69
|
+
/// <reference types="@xy-planning-network/trees/types/components" />
|
|
70
|
+
|
|
71
|
+
import Vue, { createApp } from "vue"
|
|
72
|
+
import Mitt from "mitt"
|
|
73
|
+
import Trees from "@xy-planning-network/trees"
|
|
74
|
+
import HelloWorld from "@/components/HelloWorld.vue"
|
|
85
75
|
|
|
86
76
|
// import your project's main stylesheet
|
|
87
|
-
import "@/main.css"
|
|
77
|
+
import "@/main.css"
|
|
88
78
|
|
|
89
79
|
// initialize the app
|
|
90
|
-
const app = createApp(HelloWorld)
|
|
80
|
+
const app = createApp(HelloWorld)
|
|
91
81
|
|
|
92
82
|
// initialize mitt on VueBus
|
|
93
|
-
window.VueBus = mitt()
|
|
83
|
+
window.VueBus = mitt()
|
|
94
84
|
|
|
95
85
|
// use all of Trees as a vue plugin
|
|
96
|
-
app.use(Trees)
|
|
86
|
+
app.use(Trees)
|
|
97
87
|
|
|
98
88
|
// mount the application
|
|
99
|
-
app.mount("#vue-app")
|
|
89
|
+
app.mount("#vue-app")
|
|
100
90
|
```
|
|
101
91
|
|
|
102
92
|
**Initialize styles in main.css**
|
|
@@ -129,10 +119,10 @@ Note you may need a deep merge utility depending on the depth of properties you
|
|
|
129
119
|
|
|
130
120
|
```js
|
|
131
121
|
/* eslint-disable */
|
|
132
|
-
const treesConfig = require("@xy-planning-network/trees/config/tailwind.config")
|
|
122
|
+
const treesConfig = require("@xy-planning-network/trees/config/tailwind.config")
|
|
133
123
|
module.exports = {
|
|
134
124
|
...treesConfig,
|
|
135
125
|
mode: "jit", // Optional
|
|
136
126
|
purge: [...treesConfig.purge, ...["./src/**/*.vue"]],
|
|
137
|
-
}
|
|
127
|
+
}
|
|
138
128
|
```
|
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(
|
|
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,
|
|
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 };
|