-
-
Notifications
You must be signed in to change notification settings - Fork 12
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 #1 from aem-design/develop
Develop
- Loading branch information
Showing
135 changed files
with
3,288 additions
and
362 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
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
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
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
9 changes: 9 additions & 0 deletions
9
.../src/main/content/jcr_root/apps/aemdesign/components/content/contentfragment/.content.xml
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,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" | ||
jcr:primaryType="cq:Component" | ||
jcr:title="Content Fragment" | ||
jcr:description="Component that allows to display a single text element or multiple elements of a content fragment." | ||
cq:isContainer="{Boolean}true" | ||
cq:icon="fileTemplate" | ||
sling:resourceSuperType="core/wcm/extension/components/contentfragment/v1/contentfragment" | ||
componentGroup="AEM.Design - Content"/> |
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
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
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
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
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
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
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
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
5 changes: 5 additions & 0 deletions
5
...ontent/jcr_root/apps/aemdesign/components/details/generic-details/clientlibs/.content.xml
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,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jcr:root xmlns:granite="http://www.adobe.com/jcr/granite/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" | ||
jcr:primaryType="cq:ClientLibraryFolder" | ||
allowProxy="{Boolean}true" | ||
categories="aem.design.components.author.genericdetails"/> |
2 changes: 2 additions & 0 deletions
2
...ain/content/jcr_root/apps/aemdesign/components/details/generic-details/clientlibs/css.txt
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,2 @@ | ||
#base=css | ||
style.css |
Empty file.
3 changes: 3 additions & 0 deletions
3
...main/content/jcr_root/apps/aemdesign/components/details/generic-details/clientlibs/js.txt
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,3 @@ | ||
#base=js | ||
functions.js | ||
behaviour.js |
75 changes: 75 additions & 0 deletions
75
...ent/jcr_root/apps/aemdesign/components/details/generic-details/clientlibs/js/behaviour.js
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,75 @@ | ||
//genericdetails - behaviour | ||
window.AEMDESIGN = window.AEMDESIGN || {}; | ||
window.AEMDESIGN.components = AEMDESIGN.components || {}; | ||
window.AEMDESIGN.components.authoring = AEMDESIGN.components.authoring || {}; | ||
window.AEMDESIGN.components.authoring.genericdetails = AEMDESIGN.components.authoring.genericdetails || {}; | ||
|
||
|
||
(function ($, $document, Coral, ns, window, undefined) { //NOSONAR convention for wrapping all modules | ||
|
||
console.log(["dialog-genericdetails-behaviour","ready"]); | ||
$(document).on('dialog-ready', function () { | ||
console.log(["dialog-genericdetails-behaviour","checking"]); | ||
if ($('#dialog-genericdetails')[0]) { | ||
|
||
console.log(["dialog-genericdetails-behaviour","loading"]); | ||
|
||
// $document.on('change', '.pageMetaProperty, .pageMetaPropertyContent', function (event) { | ||
// | ||
// var element = event.target, | ||
// parentElement = element.closest('.dialog-genericdetails-costomfields'), | ||
// childpageMetaPropertyElement = parentElement.querySelector('.pageMetaProperty'), | ||
// childpageMetaPropertyContentElement = parentElement.querySelector('.pageMetaPropertyContent') | ||
// | ||
// }); | ||
|
||
//load content into field | ||
if ($('#dialog-genericdetails').find('.genericdetails-costomfields')[0]) { | ||
|
||
var $form = $("#dialog-genericdetails").closest('form'); | ||
console.log(['$form', $form]); | ||
var formUrl = $form[0].action; | ||
$.getJSON(formUrl + '.json').done(function (data) { | ||
console.log(data); | ||
var | ||
fieldconfigKey = data.pageMetaProperty, | ||
fieldconfigValue = data.pageMetaPropertyContent; | ||
|
||
|
||
if (fieldconfigKey) { | ||
//turn plain string into array | ||
if (typeof fieldconfigKey === 'string') { | ||
fieldconfigKey = [fieldconfigKey]; | ||
} | ||
//turn plain string into array | ||
if (fieldconfigValue && (typeof fieldconfigValue === 'string')) { | ||
fieldconfigValue = [fieldconfigValue]; | ||
} | ||
|
||
|
||
fieldconfigKey.forEach(function (key, index) { | ||
var curr = $('#dialog-genericdetails').find('.genericdetails-costomfields')[0].items.add(); | ||
Coral.commons.ready(curr, function (readyCurr) { | ||
$(readyCurr).find('[name="./pageMetaProperty"]')[0].value = fieldconfigKey[index]; | ||
$(readyCurr).find('[name="./pageMetaPropertyContent"]')[0].value = fieldconfigValue[index]; | ||
|
||
}); | ||
}); | ||
} | ||
else { | ||
//$('.genericdetails-costomfields')[0].items.add(); | ||
} | ||
|
||
|
||
}); | ||
|
||
} else { | ||
console.log(["dialog-genericdetails-behaviour","genericdetails-costomfields","not found"]); | ||
} | ||
|
||
|
||
} | ||
}); | ||
|
||
|
||
})($, $(document), Coral, AEMDESIGN.components.authoring.genericdetails, this); //pass in additional dependencies |
Oops, something went wrong.