Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

Releases: xsoulspace/vuefer

v0.6.4

14 Feb 12:25
Compare
Choose a tag to compare

perf: Navigation
perf: Examples completely converted to tsx files

v0.6.3

14 Feb 11:19
Compare
Choose a tag to compare

chore: vue to 3.0.5
perf: Dialog attached again to #app

v0.6.2

14 Feb 10:07
Compare
Choose a tag to compare

fix: relative paths

v0.6.1

14 Feb 09:47
Compare
Choose a tag to compare

fix: attach dialog to body

v0.6.0

13 Feb 20:44
Compare
Choose a tag to compare

0.6.0

feat: Provider

Uses provide/inject under the hood

Usage

Let's suppose we have a model:

export class Hero {
  constructor(public name: string) {}
}
export class HeroesModel {
  heroes = reactive<Maybe<Hero>[]>([])
  add(hero: Hero) {
    this.heroes.push(hero)
  }
  get count() {
    return this.heroes.length
  }
}

Create Provider on top of tree

MultiProvider.create({
  models: [HeroesModel],
  child: wrapperApp(),
})

And somewhere in tree just call

const heroModel = MultiProvider.get<HeroesModel>(HeroesModel)

feat: Dialog

Popup functionality with support via Navigation

Usage

First - get NavigationController in setup

Be sure that you have Navigation widget on top of tree

const navigationController = MultiProvider.get<NavigationController>(
  NavigationController
)

Second call a function from for example Button.onTap:

ElevatedButton({
  child: Text({
    text: ref('Show dialog'),
  }),
  onTap: () => {
    showDialog({
      builder: Dialog({
        child: Text({ text: ref('Hello World') }),
      }),
      navigationController,
    })
  },
}),

To close, just use navigationController.pop()

feat: Navigator

Used to manage:

  • Popup (with background) functionality
  • Fullscreen functionality routes (not tested yet)

feat: a little explanation for GridView

v0.5.8

11 Feb 20:01
Compare
Choose a tag to compare

chore: removed vueuse
feat: v-click-outside from jgerigmeyer gist

v0.5.7

11 Feb 19:06
Compare
Choose a tag to compare

possible fix for dropdwn button

v0.5.6

11 Feb 16:57
Compare
Choose a tag to compare

temporary disabled v-click-outside

v0.5.5

11 Feb 16:45
Compare
Choose a tag to compare

fix: callable function

v0.5.4

11 Feb 16:20
Compare
Choose a tag to compare

Update: npm modules