core component to vnComponent working
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2020-07-24 17:46:06 +02:00
parent 9d8c64fb92
commit b926f8f8ad
16 changed files with 17 additions and 17 deletions

View File

@ -214,7 +214,7 @@ export default class ArrayModel extends ModelProxy {
} }
ArrayModel.$inject = ['$q', '$filter', '$element', '$scope']; ArrayModel.$inject = ['$q', '$filter', '$element', '$scope'];
ngModule.component('vnArrayModel', { ngModule.vnComponent('vnArrayModel', {
controller: ArrayModel, controller: ArrayModel,
bindings: { bindings: {
orgData: '<?', orgData: '<?',

View File

@ -272,7 +272,7 @@ export default class CrudModel extends ModelProxy {
} }
CrudModel.$inject = ['$q', '$http', '$element', '$scope']; CrudModel.$inject = ['$q', '$http', '$element', '$scope'];
ngModule.component('vnCrudModel', { ngModule.vnComponent('vnCrudModel', {
controller: CrudModel, controller: CrudModel,
bindings: { bindings: {
orgData: '<?', orgData: '<?',

View File

@ -25,7 +25,7 @@ class Icon {
} }
Icon.$inject = ['$attrs']; Icon.$inject = ['$attrs'];
ngModule.component('vnIcon', { ngModule.vnComponent('vnIcon', {
template: '<i class="{{::$ctrl.iconClass}} unselectable">{{::$ctrl.iconContent}}</i>', template: '<i class="{{::$ctrl.iconClass}} unselectable">{{::$ctrl.iconContent}}</i>',
controller: Icon, controller: Icon,
bindings: { bindings: {

View File

@ -30,7 +30,7 @@ export class DataModel extends Component {
clear() {} clear() {}
} }
ngModule.component('vnDataModel', { ngModule.vnComponent('vnDataModel', {
controller: DataModel, controller: DataModel,
bindings: { bindings: {
data: '=?', data: '=?',
@ -269,7 +269,7 @@ export default class ModelProxy extends DataModel {
} }
} }
ngModule.component('vnModelProxy', { ngModule.vnComponent('vnModelProxy', {
controller: ModelProxy, controller: ModelProxy,
bindings: { bindings: {
orgData: '<?', orgData: '<?',

View File

@ -114,7 +114,7 @@ export default class MultiCheck extends FormInput {
} }
} }
ngModule.component('vnMultiCheck', { ngModule.vnComponent('vnMultiCheck', {
template: require('./multi-check.html'), template: require('./multi-check.html'),
controller: MultiCheck, controller: MultiCheck,
bindings: { bindings: {

View File

@ -90,7 +90,7 @@ class Pagination extends Component {
} }
} }
ngModule.component('vnPagination', { ngModule.vnComponent('vnPagination', {
template: require('./pagination.html'), template: require('./pagination.html'),
bindings: { bindings: {
model: '<', model: '<',

View File

@ -22,7 +22,7 @@ export default class Controller extends Component {
Controller.$inject = ['$element', '$scope', '$window']; Controller.$inject = ['$element', '$scope', '$window'];
ngModule.component('vnScrollUp', { ngModule.vnComponent('vnScrollUp', {
template: require('./scroll-up.html'), template: require('./scroll-up.html'),
controller: Controller, controller: Controller,
bindings: { bindings: {

View File

@ -19,7 +19,7 @@ export default class Portal {
} }
Portal.$inject = ['$transclude', 'vnSlotService']; Portal.$inject = ['$transclude', 'vnSlotService'];
ngModule.component('vnPortal', { ngModule.vnComponent('vnPortal', {
controller: Portal, controller: Portal,
transclude: true, transclude: true,
bindings: { bindings: {

View File

@ -144,7 +144,7 @@ export default class Controller extends Component {
} }
} }
ngModule.component('vnSnackbar', { ngModule.vnComponent('vnSnackbar', {
template: require('./snackbar.html'), template: require('./snackbar.html'),
controller: Controller controller: Controller
}); });

View File

@ -54,4 +54,4 @@ export const component = {
}, },
controller: Spinner controller: Spinner
}; };
ngModule.component('vnSpinner', component); ngModule.vnComponent('vnSpinner', component);

View File

@ -74,7 +74,7 @@ export default class StepControl {
StepControl.$inject = ['$state']; StepControl.$inject = ['$state'];
ngModule.component('vnStepControl', { ngModule.vnComponent('vnStepControl', {
template: require('./step-control.html'), template: require('./step-control.html'),
controller: StepControl, controller: StepControl,
bindings: { bindings: {

View File

@ -197,7 +197,7 @@ export default class Tooltip extends Component {
} }
Tooltip.$inject = ['$element', '$scope', '$timeout']; Tooltip.$inject = ['$element', '$scope', '$timeout'];
ngModule.component('vnTooltip', { ngModule.vnComponent('vnTooltip', {
template: require('./tooltip.html'), template: require('./tooltip.html'),
controller: Tooltip, controller: Tooltip,
transclude: true, transclude: true,

View File

@ -49,7 +49,7 @@ class Controller {
} }
Controller.$inject = ['$element', '$scope', '$compile']; Controller.$inject = ['$element', '$scope', '$compile'];
ngModule.component('vnTreeviewChild', { ngModule.vnComponent('vnTreeviewChild', {
template: require('./child.html'), template: require('./child.html'),
controller: Controller, controller: Controller,
bindings: { bindings: {

View File

@ -2,7 +2,7 @@ import ngModule from '../../module';
class Controller {} class Controller {}
ngModule.component('vnTreeviewChilds', { ngModule.vnComponent('vnTreeviewChilds', {
template: require('./childs.html'), template: require('./childs.html'),
controller: Controller, controller: Controller,
bindings: { bindings: {

View File

@ -247,7 +247,7 @@ export default class Treeview extends Component {
Treeview.$inject = ['$element', '$scope', '$transclude', '$window']; Treeview.$inject = ['$element', '$scope', '$transclude', '$window'];
ngModule.component('vnTreeview', { ngModule.vnComponent('vnTreeview', {
template: require('./index.html'), template: require('./index.html'),
controller: Treeview, controller: Treeview,
bindings: { bindings: {

View File

@ -267,7 +267,7 @@ export default class Watcher extends Component {
} }
Watcher.$inject = ['$element', '$scope', '$state', '$stateParams', '$transitions', '$http', 'vnApp', '$translate', '$attrs', '$q']; Watcher.$inject = ['$element', '$scope', '$state', '$stateParams', '$transitions', '$http', 'vnApp', '$translate', '$attrs', '$q'];
ngModule.component('vnWatcher', { ngModule.vnComponent('vnWatcher', {
template: require('./watcher.html'), template: require('./watcher.html'),
bindings: { bindings: {
url: '@?', url: '@?',