1.7.4 • Published 7 months ago

@tony-nz/vue-form-generator v1.7.4

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

Vue Form Generator Screen Shot

Installation

  1. Install npm
     npm install @tony-nz/vue-form-generator
  2. Install the following:
  1. Edit main.js or main.ts

    import { createApp } from "vue";
    import { initPrimeVue } from "@/plugins/primevue";
    import { VueFormGeneratorPlugin } from "@tony-nz/vue-form-generator";
    
    import App from "./App.vue";
    import "./assets/tailwind.css";
    
    const app = createApp(App);
    
    /**
     * Initialize PrimeVue
     */
    initPrimeVue(app);
    
    /**
     * Initialize VueFormGenerator
     */
    app.use(VueFormGeneratorPlugin, {});
    
    app.mount("#app");
    
    export default app;
  2. Create plugins/primevue.ts

    import { App } from "vue";
    import PrimeVue from "primevue/config";
    import ConfirmationService from "primevue/confirmationservice";
    import ToastService from "primevue/toastservice";
    
    // directives
    import Tooltip from "primevue/tooltip";
    
    // components
    import Accordion from "primevue/accordion";
    import AccordionTab from "primevue/accordiontab";
    import Button from "primevue/button";
    import Calendar from "primevue/calendar";
    import Checkbox from "primevue/checkbox";
    import Column from "primevue/column";
    import ConfirmDialog from "primevue/confirmdialog";
    import ConfirmPopup from "primevue/confirmpopup";
    import ContextMenu from "primevue/contextmenu";
    import Dialog from "primevue/dialog";
    import Dropdown from "primevue/dropdown";
    import Editor from "primevue/editor";
    import FileUpload from "primevue/fileupload";
    import InputMask from "primevue/inputmask";
    import InputNumber from "primevue/inputnumber";
    import InputText from "primevue/inputtext";
    import InputSwitch from "primevue/inputswitch";
    import Menu from "primevue/menu";
    import Menubar from "primevue/menubar";
    import MultiSelect from "primevue/multiselect";
    import PanelMenu from "primevue/panelmenu";
    import ProgressBar from "primevue/progressbar";
    import RadioButton from "primevue/radiobutton";
    import SelectButton from "primevue/selectbutton";
    import Sidebar from "primevue/sidebar";
    import TabPanel from "primevue/tabpanel";
    import TabView from "primevue/tabview";
    import Textarea from "primevue/textarea";
    import Tree from "primevue/tree";
    
    // styling
    import "primevue/resources/themes/tailwind-light/theme.css";
    // import "../../assets/tailwind-light/theme.css";
    import "primevue/resources/primevue.min.css";
    import "primeicons/primeicons.css";
    
    /**
     * Initialize PrimeVUE component
     * @param app vue instance
     */
    export function initPrimeVue(app: App<Element>) {
      app.use(PrimeVue);
      app.use(ToastService);
      app.use(ConfirmationService);
      app.directive("tooltip", Tooltip);
    
      // register components
      app.component("Accordion", Accordion);
      app.component("AccordionTab", AccordionTab);
      app.component("Button", Button);
      app.component("Calendar", Calendar);
      app.component("Chart", Chart);
      app.component("Checkbox", Checkbox);
      app.component("Column", Column);
      app.component("ConfirmDialog", ConfirmDialog);
      app.component("ConfirmPopup", ConfirmPopup);
      app.component("ContextMenu", ContextMenu);
      app.component("Dialog", Dialog);
      app.component("Dropdown", Dropdown);
      app.component("Editor", Editor);
      app.component("FileUpload", FileUpload);
      app.component("InputMask", InputMask);
      app.component("InputNumber", InputNumber);
      app.component("InputText", InputText);
      app.component("InputSwitch", InputSwitch);
      app.component("Menu", Menu);
      app.component("Menubar", Menubar);
      app.component("MultiSelect", MultiSelect);
      app.component("PanelMenu", PanelMenu);
      app.component("ProgressBar", ProgressBar);
      app.component("RadioButton", RadioButton);
      app.component("SelectButton", SelectButton);
      app.component("Slider", Slider);
      app.component("Sidebar", Sidebar);
      app.component("TabPanel", TabPanel);
      app.component("TabView", TabView);
      app.component("Textarea", Textarea);
      app.component("Tree", Tree);
    }
  3. Edit tailwind.config.js

     content: [
       "./index.html",
       "./src/**/*.{vue,js,ts,jsx,tsx}",
       "./node_modules/@tony-nz/vue-form-generator/**/*.{vue,js,ts,jsx,tsx}",
     ],

License

Distributed under the MIT License.

Acknowledgments

1.7.4

7 months ago

1.7.3

7 months ago

1.7.2

8 months ago

1.7.1

9 months ago

1.6.9

9 months ago

1.7.0

9 months ago

1.6.4

11 months ago

1.6.3

1 year ago

1.6.2

1 year ago

1.6.1

1 year ago

1.6.0

1 year ago

1.5.5

1 year ago

1.5.4

1 year ago

1.6.8

10 months ago

1.6.7

10 months ago

1.6.6

10 months ago

1.6.5

11 months ago

1.5.9

1 year ago

1.5.8

1 year ago

1.5.7

1 year ago

1.5.6

1 year ago

1.5.3

1 year ago

1.5.2

1 year ago

1.5.1

1 year ago

1.5.0

1 year ago

1.4.9

1 year ago

1.4.8

1 year ago

1.4.7

1 year ago

1.4.6

1 year ago

1.4.5

1 year ago

1.4.4

1 year ago

1.4.3

1 year ago

1.4.2

1 year ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.9

2 years ago

1.3.8

2 years ago

1.3.7

2 years ago

1.3.6

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.9

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.0

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.9

2 years ago

1.0.62

2 years ago

1.0.61

2 years ago

1.0.60

2 years ago

1.0.63

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.0.44

2 years ago

1.0.43

2 years ago

1.0.42

2 years ago

1.0.48

2 years ago

1.0.47

2 years ago

1.0.46

2 years ago

1.0.45

2 years ago

1.0.49

2 years ago

1.0.51

2 years ago

1.0.50

2 years ago

1.0.55

2 years ago

1.0.54

2 years ago

1.0.53

2 years ago

1.0.52

2 years ago

1.0.59

2 years ago

1.0.58

2 years ago

1.0.57

2 years ago

1.0.41

2 years ago

1.0.40

2 years ago

1.0.38

2 years ago

1.0.37

2 years ago

1.0.35

2 years ago

1.0.34

2 years ago

1.0.33

2 years ago

1.0.31

2 years ago

1.0.30

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.19

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago