@xy-planning-network/trees 0.6.5 → 0.6.6-rc-1
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 +0 -22
- package/dist/trees.es.js +2539 -2498
- package/dist/trees.umd.js +9 -9
- package/package.json +1 -2
- package/src/lib-components/lists/DataTable.vue +99 -0
- package/src/lib-components/lists/DownloadCell.vue +5 -3
- package/src/lib-components/lists/{Table.vue → DynamicTable.vue} +87 -61
- package/src/lib-components/navigation/ActionsDropdown.vue +22 -32
- package/types/composables/nav.d.ts +12 -0
- package/types/composables/table.d.ts +52 -22
- package/types/composables/useFlashes.d.ts +5 -0
- package/types/composables/useTable.d.ts +42 -0
- package/types/lib-components/index.d.ts +5 -5
- package/types/lib-components/lists/DataTable.vue.d.ts +33 -0
- package/types/lib-components/lists/DownloadCell.vue.d.ts +0 -3
- package/types/lib-components/lists/DynamicTable.vue.d.ts +54 -0
- package/types/lib-components/lists/StaticTable.vue.d.ts +7 -4
- package/types/lib-components/lists/StaticTableActionSlot.vue.d.ts +27 -0
- package/types/lib-components/navigation/ActionsDropdown.vue.d.ts +3 -11
- package/types/lib-components/navigation/ActionsDropdownCallback.vue.d.ts +18 -0
- package/types/lib-components/navigation/ActionsDropdownEmit.vue.d.ts +22 -0
- package/src/lib-components/lists/StaticTable.vue +0 -83
package/README.md
CHANGED
|
@@ -125,20 +125,12 @@ This is the best option when tree shaking and final bundle size is important to
|
|
|
125
125
|
|
|
126
126
|
```ts
|
|
127
127
|
// main.ts
|
|
128
|
-
|
|
129
|
-
// include the type interface for the Window global - includes Window.VueBus and Window.Flashes
|
|
130
|
-
/// <reference types="@xy-planning-network/trees/types/global" />
|
|
131
|
-
|
|
132
128
|
import Vue, { createApp } from "vue"
|
|
133
|
-
import Mitt from "mitt"
|
|
134
129
|
import App from "./App.vue"
|
|
135
130
|
|
|
136
131
|
// import your project's main stylesheet
|
|
137
132
|
import "@/main.css"
|
|
138
133
|
|
|
139
|
-
// initialize mitt on VueBus for Flashes
|
|
140
|
-
window.VueBus = Mitt()
|
|
141
|
-
|
|
142
134
|
// initialize the app
|
|
143
135
|
const app = createApp(App)
|
|
144
136
|
app.mount("#vue-app")
|
|
@@ -173,23 +165,16 @@ This example installs all components of Trees globally so you don't need to impo
|
|
|
173
165
|
|
|
174
166
|
```ts
|
|
175
167
|
// main.ts
|
|
176
|
-
|
|
177
|
-
// include the type interface for the Window global - includes Window.VueBus and Window.Flashes
|
|
178
|
-
/// <reference types="@xy-planning-network/trees/types/global" />
|
|
179
168
|
// include the type interfaces for Trees components installed globally on the Vue instance
|
|
180
169
|
/// <reference types="@xy-planning-network/trees/types/components" />
|
|
181
170
|
|
|
182
171
|
import Vue, { createApp } from "vue"
|
|
183
|
-
import Mitt from "mitt"
|
|
184
172
|
import Trees from "@xy-planning-network/trees"
|
|
185
173
|
import App from "./App.vue"
|
|
186
174
|
|
|
187
175
|
// import your project's main stylesheet
|
|
188
176
|
import "@/main.css"
|
|
189
177
|
|
|
190
|
-
// initialize mitt on VueBus for flashes support
|
|
191
|
-
window.VueBus = Mitt()
|
|
192
|
-
|
|
193
178
|
// initialize the app
|
|
194
179
|
const app = createApp(App)
|
|
195
180
|
|
|
@@ -285,20 +270,13 @@ export default {
|
|
|
285
270
|
```ts
|
|
286
271
|
// main.ts
|
|
287
272
|
|
|
288
|
-
// include the type interface for the Window global - includes Window.VueBus and Window.Flashes
|
|
289
|
-
/// <reference types="@xy-planning-network/trees/types/global" />
|
|
290
|
-
|
|
291
273
|
import Vue, { createApp } from "vue"
|
|
292
|
-
import Mitt from "mitt"
|
|
293
274
|
import App from "./App.vue"
|
|
294
275
|
import TreesFormComponents from "./plugins/trees"
|
|
295
276
|
|
|
296
277
|
// import your project's main stylesheet
|
|
297
278
|
import "@/main.css"
|
|
298
279
|
|
|
299
|
-
// initialize mitt on VueBus for event support
|
|
300
|
-
window.VueBus = Mitt()
|
|
301
|
-
|
|
302
280
|
// initialize the app
|
|
303
281
|
const app = createApp(App)
|
|
304
282
|
|