-
Notifications
You must be signed in to change notification settings - Fork 0
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 #38 from HSG-Library/develop
Release v2024.04.11, Sprint 1/24 und 2/24
- Loading branch information
Showing
20 changed files
with
496 additions
and
21 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
11 changes: 11 additions & 0 deletions
11
js/modules/prm-citation-after/hsg-citation-after.module.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,11 @@ | ||
import { slspCitationSelectModule } from './slsp-citation-select/slsp-citation-select.module' | ||
|
||
export const hsgCitationAfterModule = angular | ||
.module('hsgCitationAfterModule', []) | ||
.component('prmCitationAfter', { | ||
bindings: { parentCtrl: '<' }, | ||
template: ` | ||
<slsp-citation-select-component after-ctrl="$ctrl"></slsp-citation-select-component>` | ||
}) | ||
|
||
hsgCitationAfterModule.requires.push(slspCitationSelectModule.name) |
24 changes: 24 additions & 0 deletions
24
js/modules/prm-citation-after/slsp-citation-select/slsp-citation-select.controller.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,24 @@ | ||
export class slspCitationSelectController { | ||
|
||
constructor($scope, $timeout, $compile) { | ||
this.$scope = $scope | ||
this.$timeout = $timeout | ||
this.$compile = $compile | ||
} | ||
|
||
$onInit() { | ||
this.$timeout(() => { | ||
this.parentCtrl = this.afterCtrl.parentCtrl | ||
|
||
let citationSelectRadio = '<div class="md-container slsp-citation-select"><div class="md-off"></div><div class="md-on"></div></div>' | ||
|
||
let citationSelectList = document.querySelectorAll('prm-citation ul li button') | ||
|
||
angular.forEach(citationSelectList, (citationSelect) => { | ||
angular.element(citationSelect).append(this.$compile(citationSelectRadio)(this.$scope)).addClass('slsp-citation-select-radio') | ||
}) | ||
}, 0) | ||
} | ||
} | ||
|
||
slspCitationSelectController.$inject = ['$scope', '$timeout', '$compile'] |
9 changes: 9 additions & 0 deletions
9
js/modules/prm-citation-after/slsp-citation-select/slsp-citation-select.module.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,9 @@ | ||
import { slspCitationSelectController } from './slsp-citation-select.controller' | ||
|
||
export const slspCitationSelectModule = angular | ||
.module('slspCitationSelectModule', []) | ||
.controller('slspCitationSelectController', slspCitationSelectController) | ||
.component('slspCitationSelectComponent', { | ||
bindings: { afterCtrl: '<' }, | ||
controller: 'slspCitationSelectController', | ||
}) |
Oops, something went wrong.