@ditojs/admin 0.273.0 → 1.0.0-rc.0
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 +1 -1
- package/dist/dito-admin.es.js +6 -0
- package/dist/dito-admin.umd.js +5 -17942
- package/dist/style.css +1 -0
- package/package.json +22 -33
- package/src/DitoAdmin.js +13 -13
- package/src/DitoComponent.js +3 -3
- package/src/DitoContext.js +1 -1
- package/src/TypeComponent.js +3 -3
- package/src/components/DitoAccount.vue +2 -2
- package/src/components/DitoButtons.vue +2 -2
- package/src/components/DitoClipboard.vue +3 -3
- package/src/components/DitoContainer.vue +5 -5
- package/src/components/DitoCreateButton.vue +3 -3
- package/src/components/DitoDialog.vue +3 -3
- package/src/components/DitoEditButtons.vue +1 -1
- package/src/components/DitoElement.vue +1 -1
- package/src/components/DitoErrors.vue +1 -1
- package/src/components/DitoForm.vue +5 -5
- package/src/components/DitoFormNested.vue +1 -1
- package/src/components/DitoHeader.vue +4 -2
- package/src/components/DitoLabel.vue +5 -5
- package/src/components/DitoMenu.vue +1 -1
- package/src/components/DitoPagination.vue +1 -1
- package/src/components/DitoPane.vue +3 -3
- package/src/components/DitoPanel.vue +4 -4
- package/src/components/DitoPanels.vue +2 -2
- package/src/components/DitoRoot.vue +7 -7
- package/src/components/DitoSchema.vue +7 -7
- package/src/components/DitoSchemaInlined.vue +2 -2
- package/src/components/DitoScopes.vue +1 -1
- package/src/components/DitoTableCell.vue +3 -3
- package/src/components/DitoTableHead.vue +2 -2
- package/src/components/DitoTabs.vue +1 -1
- package/src/components/DitoTreeItem.vue +5 -5
- package/src/components/DitoVNode.vue +1 -1
- package/src/components/DitoView.vue +4 -4
- package/src/components/index.js +28 -28
- package/src/index.js +1 -1
- package/src/mixins/DataMixin.js +1 -1
- package/src/mixins/DitoMixin.js +7 -7
- package/src/mixins/ItemMixin.js +3 -3
- package/src/mixins/NumberMixin.js +1 -1
- package/src/mixins/OptionsMixin.js +4 -4
- package/src/mixins/OrderedMixin.js +1 -1
- package/src/mixins/PulldownMixin.js +1 -1
- package/src/mixins/ResourceMixin.js +5 -5
- package/src/mixins/RouteMixin.js +1 -1
- package/src/mixins/SourceMixin.js +9 -7
- package/src/mixins/TypeMixin.js +5 -5
- package/src/mixins/ValidationMixin.js +1 -1
- package/src/mixins/ValidatorMixin.js +1 -1
- package/src/styles/_button.sass +1 -1
- package/src/styles/_imports.sass +1 -1
- package/src/styles/_settings.sass +4 -4
- package/src/styles/_vendors.sass +1 -0
- package/src/styles/{dito.sass → style.sass} +2 -1
- package/src/types/TypeButton.vue +3 -3
- package/src/types/TypeCheckbox.vue +1 -1
- package/src/types/TypeCheckboxes.vue +2 -2
- package/src/types/TypeCode.vue +2 -2
- package/src/types/TypeColor.vue +2 -2
- package/src/types/TypeComponent.vue +1 -1
- package/src/types/TypeComputed.vue +3 -3
- package/src/types/TypeDate.vue +2 -2
- package/src/types/TypeLabel.vue +1 -1
- package/src/types/TypeList.vue +7 -7
- package/src/types/TypeMarkup.vue +3 -3
- package/src/types/TypeMultiselect.vue +7 -7
- package/src/types/TypeNumber.vue +2 -2
- package/src/types/TypeObject.vue +3 -3
- package/src/types/TypePanel.vue +1 -1
- package/src/types/TypeProgress.vue +2 -2
- package/src/types/TypeRadio.vue +2 -2
- package/src/types/TypeSection.vue +2 -2
- package/src/types/TypeSelect.vue +3 -3
- package/src/types/TypeSlider.vue +3 -3
- package/src/types/TypeSwitch.vue +1 -1
- package/src/types/TypeText.vue +1 -1
- package/src/types/TypeTextarea.vue +2 -2
- package/src/types/TypeTreeList.vue +3 -3
- package/src/types/TypeUpload.vue +6 -6
- package/src/types/index.js +25 -25
- package/src/utils/SchemaGraph.js +1 -1
- package/src/utils/schema.js +65 -40
- package/src/validations/index.js +12 -12
- package/dist/demo.html +0 -8
- package/dist/dito-admin.common.js +0 -17933
- package/dist/dito-admin.common.js.map +0 -1
- package/dist/dito-admin.umd.js.map +0 -1
- package/dist/dito-admin.umd.min.js +0 -5
- package/dist/dito-admin.umd.min.js.map +0 -1
- 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:
|