-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #419 from 3YOURMIND/add-source-links-to-documentation
Add source links to documentation
- Loading branch information
Showing
60 changed files
with
384 additions
and
301 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
packages/kotti-ui/source/kotti-form-controller-list/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
import { Kotti } from '../types' | ||
import { attachMeta, makeInstallable } from '../utilities' | ||
|
||
import KtFormControllerListVue from './KtFormControllerList.vue' | ||
|
||
export const sharedHeaderFooterScope: Kotti.Meta['slots'][string]['scope'] = { | ||
addAfter: { | ||
description: 'append an item to the list', | ||
type: 'function', | ||
}, | ||
addBefore: { | ||
description: 'prepend an item to the list', | ||
type: 'function', | ||
}, | ||
setValues: { | ||
description: 'replace the list', | ||
type: 'function', | ||
}, | ||
values: { | ||
description: 'all items in the list', | ||
type: 'object', | ||
}, | ||
} | ||
|
||
export const KtFormControllerList = attachMeta( | ||
makeInstallable(KtFormControllerListVue), | ||
{ | ||
addedVersion: '2.0.0', | ||
deprecated: null, | ||
designs: null, | ||
slots: { | ||
default: { | ||
description: null, | ||
scope: { | ||
addAfter: { | ||
description: null, | ||
type: 'function', | ||
}, | ||
addBefore: { | ||
description: null, | ||
type: 'function', | ||
}, | ||
deleteSelf: { | ||
description: null, | ||
type: 'function', | ||
}, | ||
index: { | ||
description: null, | ||
type: 'integer', | ||
}, | ||
setValues: { | ||
description: null, | ||
type: 'function', | ||
}, | ||
values: { | ||
description: null, | ||
type: 'object', | ||
}, | ||
}, | ||
}, | ||
footer: { | ||
description: 'inserted below the list, exposes list utilities', | ||
scope: sharedHeaderFooterScope, | ||
}, | ||
header: { | ||
description: 'inserted above the list, exposes list utilities', | ||
scope: sharedHeaderFooterScope, | ||
}, | ||
}, | ||
typeScript: { | ||
namespace: 'Kotti.FormControllerList', | ||
}, | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 2 additions & 9 deletions
11
...ui/source/kotti-form/controllers/types.ts → ...ource/kotti-form-controller-list/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.