@ditojs/admin 0.274.0 → 1.0.0-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.
Files changed (91) hide show
  1. package/README.md +1 -1
  2. package/dist/dito-admin.es.js +6 -0
  3. package/dist/dito-admin.umd.js +5 -17942
  4. package/dist/style.css +1 -0
  5. package/package.json +21 -32
  6. package/src/DitoAdmin.js +13 -13
  7. package/src/DitoComponent.js +3 -3
  8. package/src/DitoContext.js +1 -1
  9. package/src/TypeComponent.js +3 -3
  10. package/src/components/DitoAccount.vue +2 -2
  11. package/src/components/DitoButtons.vue +2 -2
  12. package/src/components/DitoClipboard.vue +3 -3
  13. package/src/components/DitoContainer.vue +5 -5
  14. package/src/components/DitoCreateButton.vue +3 -3
  15. package/src/components/DitoDialog.vue +3 -3
  16. package/src/components/DitoEditButtons.vue +1 -1
  17. package/src/components/DitoElement.vue +1 -1
  18. package/src/components/DitoErrors.vue +1 -1
  19. package/src/components/DitoForm.vue +5 -5
  20. package/src/components/DitoFormNested.vue +1 -1
  21. package/src/components/DitoHeader.vue +4 -2
  22. package/src/components/DitoLabel.vue +5 -5
  23. package/src/components/DitoMenu.vue +1 -1
  24. package/src/components/DitoPagination.vue +1 -1
  25. package/src/components/DitoPane.vue +3 -3
  26. package/src/components/DitoPanel.vue +4 -4
  27. package/src/components/DitoPanels.vue +1 -1
  28. package/src/components/DitoRoot.vue +7 -7
  29. package/src/components/DitoSchema.vue +7 -7
  30. package/src/components/DitoSchemaInlined.vue +2 -2
  31. package/src/components/DitoScopes.vue +1 -1
  32. package/src/components/DitoTableCell.vue +3 -3
  33. package/src/components/DitoTableHead.vue +2 -2
  34. package/src/components/DitoTabs.vue +1 -1
  35. package/src/components/DitoTreeItem.vue +5 -5
  36. package/src/components/DitoVNode.vue +1 -1
  37. package/src/components/DitoView.vue +4 -4
  38. package/src/components/index.js +28 -28
  39. package/src/index.js +1 -1
  40. package/src/mixins/DataMixin.js +1 -1
  41. package/src/mixins/DitoMixin.js +7 -7
  42. package/src/mixins/ItemMixin.js +3 -3
  43. package/src/mixins/NumberMixin.js +1 -1
  44. package/src/mixins/OptionsMixin.js +4 -4
  45. package/src/mixins/OrderedMixin.js +1 -1
  46. package/src/mixins/PulldownMixin.js +1 -1
  47. package/src/mixins/ResourceMixin.js +5 -5
  48. package/src/mixins/RouteMixin.js +1 -1
  49. package/src/mixins/SourceMixin.js +9 -7
  50. package/src/mixins/TypeMixin.js +5 -5
  51. package/src/mixins/ValidationMixin.js +1 -1
  52. package/src/mixins/ValidatorMixin.js +1 -1
  53. package/src/styles/_imports.sass +1 -1
  54. package/src/styles/_vendors.sass +1 -0
  55. package/src/styles/{dito.sass → style.sass} +2 -1
  56. package/src/types/TypeButton.vue +3 -3
  57. package/src/types/TypeCheckbox.vue +1 -1
  58. package/src/types/TypeCheckboxes.vue +2 -2
  59. package/src/types/TypeCode.vue +2 -2
  60. package/src/types/TypeColor.vue +2 -2
  61. package/src/types/TypeComponent.vue +1 -1
  62. package/src/types/TypeComputed.vue +3 -3
  63. package/src/types/TypeDate.vue +2 -2
  64. package/src/types/TypeLabel.vue +1 -1
  65. package/src/types/TypeList.vue +7 -7
  66. package/src/types/TypeMarkup.vue +3 -3
  67. package/src/types/TypeMultiselect.vue +5 -5
  68. package/src/types/TypeNumber.vue +2 -2
  69. package/src/types/TypeObject.vue +3 -3
  70. package/src/types/TypePanel.vue +1 -1
  71. package/src/types/TypeProgress.vue +2 -2
  72. package/src/types/TypeRadio.vue +2 -2
  73. package/src/types/TypeSection.vue +7 -2
  74. package/src/types/TypeSelect.vue +2 -2
  75. package/src/types/TypeSlider.vue +3 -3
  76. package/src/types/TypeSwitch.vue +1 -1
  77. package/src/types/TypeText.vue +1 -1
  78. package/src/types/TypeTextarea.vue +2 -2
  79. package/src/types/TypeTreeList.vue +3 -3
  80. package/src/types/TypeUpload.vue +6 -6
  81. package/src/types/index.js +25 -25
  82. package/src/utils/SchemaGraph.js +1 -1
  83. package/src/utils/schema.js +65 -40
  84. package/src/validations/index.js +12 -12
  85. package/dist/demo.html +0 -8
  86. package/dist/dito-admin.common.js +0 -17933
  87. package/dist/dito-admin.common.js.map +0 -1
  88. package/dist/dito-admin.umd.js.map +0 -1
  89. package/dist/dito-admin.umd.min.js +0 -5
  90. package/dist/dito-admin.umd.min.js.map +0 -1
  91. package/static/.gitkeep +0 -0
package/README.md CHANGED
@@ -35,7 +35,7 @@ An admin of a model consists of two parts, the view and the form. The view repre
35
35
  In order to add a new model to the admin create a new folder in dito-admin/src/schemas. The name of the folder is irrelevant however the convention is to use the hyphenated model name. Also export the new folder in the index.js file in the schemas folder like this:
36
36
 
37
37
  ```js
38
- export * from './folder-name'
38
+ export * from './folder-name/index.js'
39
39
  ```
40
40
 
41
41
  Within the folder create a new index.js file. Within this file the View is exported. An empty view looks like this: