Browse Source

Imports improved.

pull/271/head
Sebastian Stehle 8 years ago
parent
commit
194ebcc835
  1. 5
      src/Squidex/app-config/webpack.config.js
  2. 2
      src/Squidex/app/features/administration/guards/user-must-exist.guard.ts
  3. 2
      src/Squidex/app/features/administration/module.ts
  4. 2
      src/Squidex/app/features/administration/pages/event-consumers/event-consumers-page.component.ts
  5. 2
      src/Squidex/app/features/administration/pages/users/user-page.component.ts
  6. 2
      src/Squidex/app/features/administration/pages/users/users-page.component.ts
  7. 2
      src/Squidex/app/features/administration/services/event-consumers.service.spec.ts
  8. 4
      src/Squidex/app/features/administration/services/event-consumers.service.ts
  9. 2
      src/Squidex/app/features/administration/services/users.service.spec.ts
  10. 4
      src/Squidex/app/features/administration/services/users.service.ts
  11. 4
      src/Squidex/app/features/administration/state/users.state.ts
  12. 2
      src/Squidex/app/features/api/api-area.component.ts
  13. 2
      src/Squidex/app/features/api/module.ts
  14. 2
      src/Squidex/app/features/api/pages/graphql/graphql-page.component.ts
  15. 2
      src/Squidex/app/features/apps/module.ts
  16. 2
      src/Squidex/app/features/apps/pages/apps-page.component.ts
  17. 2
      src/Squidex/app/features/apps/pages/onboarding-dialog.component.ts
  18. 2
      src/Squidex/app/features/assets/module.ts
  19. 2
      src/Squidex/app/features/assets/pages/assets-page.component.ts
  20. 2
      src/Squidex/app/features/content/module.ts
  21. 2
      src/Squidex/app/features/content/pages/content/content-field.component.ts
  22. 2
      src/Squidex/app/features/content/pages/content/content-history.component.ts
  23. 2
      src/Squidex/app/features/content/pages/content/content-page.component.ts
  24. 2
      src/Squidex/app/features/content/pages/contents/contents-page.component.ts
  25. 2
      src/Squidex/app/features/content/pages/messages.ts
  26. 2
      src/Squidex/app/features/content/pages/schemas/schemas-page.component.ts
  27. 2
      src/Squidex/app/features/content/shared/assets-editor.component.ts
  28. 2
      src/Squidex/app/features/content/shared/content-item.component.ts
  29. 2
      src/Squidex/app/features/content/shared/references-editor.component.ts
  30. 2
      src/Squidex/app/features/dashboard/module.ts
  31. 2
      src/Squidex/app/features/dashboard/pages/dashboard-page.component.ts
  32. 2
      src/Squidex/app/features/rules/module.ts
  33. 2
      src/Squidex/app/features/rules/pages/events/rule-events-page.component.ts
  34. 2
      src/Squidex/app/features/rules/pages/rules/actions/azure-queue-action.component.ts
  35. 2
      src/Squidex/app/features/rules/pages/rules/rule-wizard.component.ts
  36. 2
      src/Squidex/app/features/rules/pages/rules/rules-page.component.ts
  37. 2
      src/Squidex/app/features/rules/pages/rules/triggers/content-changed-trigger.component.ts
  38. 2
      src/Squidex/app/features/schemas/guards/schema-must-exist.guard.ts
  39. 2
      src/Squidex/app/features/schemas/module.ts
  40. 2
      src/Squidex/app/features/schemas/pages/schema/field-wizard.component.ts
  41. 2
      src/Squidex/app/features/schemas/pages/schema/field.component.ts
  42. 2
      src/Squidex/app/features/schemas/pages/schema/forms/field-form-common.component.ts
  43. 2
      src/Squidex/app/features/schemas/pages/schema/forms/field-form-ui.component.ts
  44. 2
      src/Squidex/app/features/schemas/pages/schema/forms/field-form-validation.component.ts
  45. 2
      src/Squidex/app/features/schemas/pages/schema/schema-edit-form.component.ts
  46. 2
      src/Squidex/app/features/schemas/pages/schema/schema-page.component.ts
  47. 2
      src/Squidex/app/features/schemas/pages/schema/schema-scripts-form.component.ts
  48. 2
      src/Squidex/app/features/schemas/pages/schema/types/assets-ui.component.ts
  49. 2
      src/Squidex/app/features/schemas/pages/schema/types/assets-validation.component.ts
  50. 2
      src/Squidex/app/features/schemas/pages/schema/types/boolean-ui.component.ts
  51. 2
      src/Squidex/app/features/schemas/pages/schema/types/boolean-validation.component.ts
  52. 2
      src/Squidex/app/features/schemas/pages/schema/types/date-time-ui.component.ts
  53. 2
      src/Squidex/app/features/schemas/pages/schema/types/date-time-validation.component.ts
  54. 2
      src/Squidex/app/features/schemas/pages/schema/types/geolocation-ui.component.ts
  55. 2
      src/Squidex/app/features/schemas/pages/schema/types/geolocation-validation.component.ts
  56. 2
      src/Squidex/app/features/schemas/pages/schema/types/json-ui.component.ts
  57. 2
      src/Squidex/app/features/schemas/pages/schema/types/json-validation.component.ts
  58. 2
      src/Squidex/app/features/schemas/pages/schema/types/number-ui.component.ts
  59. 2
      src/Squidex/app/features/schemas/pages/schema/types/number-validation.component.ts
  60. 2
      src/Squidex/app/features/schemas/pages/schema/types/references-ui.component.ts
  61. 2
      src/Squidex/app/features/schemas/pages/schema/types/references-validation.component.ts
  62. 2
      src/Squidex/app/features/schemas/pages/schema/types/string-ui.component.ts
  63. 2
      src/Squidex/app/features/schemas/pages/schema/types/string-validation.component.ts
  64. 2
      src/Squidex/app/features/schemas/pages/schema/types/tags-ui.component.ts
  65. 2
      src/Squidex/app/features/schemas/pages/schema/types/tags-validation.component.ts
  66. 2
      src/Squidex/app/features/schemas/pages/schemas/schema-form.component.ts
  67. 2
      src/Squidex/app/features/schemas/pages/schemas/schemas-page.component.ts
  68. 4
      src/Squidex/app/features/schemas/state/schemas.state.ts
  69. 2
      src/Squidex/app/features/settings/module.ts
  70. 2
      src/Squidex/app/features/settings/pages/backups/backups-page.component.ts
  71. 2
      src/Squidex/app/features/settings/pages/clients/client.component.ts
  72. 2
      src/Squidex/app/features/settings/pages/clients/clients-page.component.ts
  73. 2
      src/Squidex/app/features/settings/pages/contributors/contributors-page.component.ts
  74. 2
      src/Squidex/app/features/settings/pages/languages/language.component.ts
  75. 2
      src/Squidex/app/features/settings/pages/languages/languages-page.component.ts
  76. 2
      src/Squidex/app/features/settings/pages/more/more-page.component.ts
  77. 2
      src/Squidex/app/features/settings/pages/patterns/pattern.component.ts
  78. 2
      src/Squidex/app/features/settings/pages/patterns/patterns-page.component.ts
  79. 2
      src/Squidex/app/features/settings/pages/plans/plans-page.component.ts
  80. 2
      src/Squidex/app/features/settings/settings-area.component.ts
  81. 2
      src/Squidex/app/framework/angular/forms/confirm-click.directive.ts
  82. 2
      src/Squidex/app/framework/angular/forms/control-errors.component.ts
  83. 7
      src/Squidex/app/framework/angular/forms/copy.directive.ts
  84. 2
      src/Squidex/app/framework/angular/forms/date-time-editor.component.ts
  85. 2
      src/Squidex/app/framework/angular/forms/dropdown.component.ts
  86. 2
      src/Squidex/app/framework/angular/forms/indeterminate-value.directive.ts
  87. 4
      src/Squidex/app/framework/angular/forms/jscript-editor.component.ts
  88. 2
      src/Squidex/app/framework/angular/forms/json-editor.component.ts
  89. 2
      src/Squidex/app/framework/angular/forms/lowercase-input.directive.ts
  90. 2
      src/Squidex/app/framework/angular/forms/slider.component.ts
  91. 2
      src/Squidex/app/framework/angular/forms/slugify-input.directive.ts
  92. 2
      src/Squidex/app/framework/angular/forms/stars.component.ts
  93. 2
      src/Squidex/app/framework/angular/forms/tag-editor.component.ts
  94. 2
      src/Squidex/app/framework/angular/forms/toggle.component.ts
  95. 5
      src/Squidex/app/framework/angular/forms/validators.spec.ts
  96. 11
      src/Squidex/app/framework/angular/forms/validators.ts
  97. 4
      src/Squidex/app/framework/angular/http/http-extensions-impl.ts
  98. 8
      src/Squidex/app/framework/angular/modals/dialog-renderer.component.ts
  99. 2
      src/Squidex/app/framework/angular/modals/modal-view.directive.ts
  100. 12
      src/Squidex/app/framework/angular/modals/onboarding-tooltip.component.ts

5
src/Squidex/app-config/webpack.config.js

@ -2,6 +2,7 @@
path = require('path'), path = require('path'),
HtmlWebpackPlugin = require('html-webpack-plugin'), HtmlWebpackPlugin = require('html-webpack-plugin'),
ExtractTextPlugin = require('extract-text-webpack-plugin'), ExtractTextPlugin = require('extract-text-webpack-plugin'),
TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin'),
helpers = require('./helpers'); helpers = require('./helpers');
module.exports = { module.exports = {
@ -23,6 +24,10 @@ module.exports = {
helpers.root('app-libs'), helpers.root('app-libs'),
helpers.root('node_modules') helpers.root('node_modules')
], ],
plugins: [
new TsconfigPathsPlugin()
]
}, },
/* /*

2
src/Squidex/app/features/administration/guards/user-must-exist.guard.ts

@ -9,7 +9,7 @@ import { Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot } from '@angular/router'; import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot } from '@angular/router';
import { Observable } from 'rxjs'; import { Observable } from 'rxjs';
import { allParams } from 'framework'; import { allParams } from '@app/framework';
import { UsersState } from './../state/users.state'; import { UsersState } from './../state/users.state';

2
src/Squidex/app/features/administration/module.ts

@ -11,7 +11,7 @@ import { RouterModule, Routes } from '@angular/router';
import { import {
SqxSharedModule, SqxSharedModule,
SqxFrameworkModule SqxFrameworkModule
} from 'shared'; } from '@app/shared';
import { import {
AdministrationAreaComponent, AdministrationAreaComponent,

2
src/Squidex/app/features/administration/pages/event-consumers/event-consumers-page.component.ts

@ -13,7 +13,7 @@ import {
DialogService, DialogService,
ImmutableArray, ImmutableArray,
ModalView ModalView
} from 'shared'; } from '@app/shared';
import { EventConsumerDto, EventConsumersService } from './../../services/event-consumers.service'; import { EventConsumerDto, EventConsumersService } from './../../services/event-consumers.service';

2
src/Squidex/app/features/administration/pages/users/user-page.component.ts

@ -10,7 +10,7 @@ import { FormBuilder, Validators } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router'; import { ActivatedRoute, Router } from '@angular/router';
import { Subscription } from 'rxjs'; import { Subscription } from 'rxjs';
import { AuthService, ValidatorsEx } from 'shared'; import { AuthService, ValidatorsEx } from '@app/shared';
import { UserDto } from './../../services/users.service'; import { UserDto } from './../../services/users.service';
import { UsersState } from './../../state/users.state'; import { UsersState } from './../../state/users.state';

2
src/Squidex/app/features/administration/pages/users/users-page.component.ts

@ -8,7 +8,7 @@
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import { FormControl } from '@angular/forms'; import { FormControl } from '@angular/forms';
import { AuthService, DialogService } from 'shared'; import { AuthService, DialogService } from '@app/shared';
import { UserDto } from './../../services/users.service'; import { UserDto } from './../../services/users.service';
import { UsersState } from './../../state/users.state'; import { UsersState } from './../../state/users.state';

2
src/Squidex/app/features/administration/services/event-consumers.service.spec.ts

@ -8,7 +8,7 @@
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing'; import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { inject, TestBed } from '@angular/core/testing'; import { inject, TestBed } from '@angular/core/testing';
import { ApiUrlConfig } from 'framework'; import { ApiUrlConfig } from '@app/framework';
import { EventConsumerDto, EventConsumersService } from './event-consumers.service'; import { EventConsumerDto, EventConsumersService } from './event-consumers.service';

4
src/Squidex/app/features/administration/services/event-consumers.service.ts

@ -9,9 +9,9 @@ import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import { Observable } from 'rxjs'; import { Observable } from 'rxjs';
import 'framework/angular/http-extensions'; import '@app/framework/angular/http/http-extensions';
import { ApiUrlConfig, HTTP } from 'framework'; import { ApiUrlConfig, HTTP } from '@app/framework';
export class EventConsumerDto { export class EventConsumerDto {
constructor( constructor(

2
src/Squidex/app/features/administration/services/users.service.spec.ts

@ -8,7 +8,7 @@
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing'; import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { inject, TestBed } from '@angular/core/testing'; import { inject, TestBed } from '@angular/core/testing';
import { ApiUrlConfig } from 'framework'; import { ApiUrlConfig } from '@app/framework';
import { import {
CreateUserDto, CreateUserDto,

4
src/Squidex/app/features/administration/services/users.service.ts

@ -9,9 +9,9 @@ import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import { Observable } from 'rxjs'; import { Observable } from 'rxjs';
import 'framework/angular/http-extensions'; import '@app/framework/angular/http/http-extensions';
import { ApiUrlConfig, HTTP } from 'framework'; import { ApiUrlConfig, HTTP } from '@app/framework';
export class UsersDto { export class UsersDto {
constructor( constructor(

4
src/Squidex/app/features/administration/state/users.state.ts

@ -8,13 +8,13 @@
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import { BehaviorSubject, Observable } from 'rxjs'; import { BehaviorSubject, Observable } from 'rxjs';
import 'framework/utils/rxjs-extensions'; import '@app/framework/utils/rxjs-extensions';
import { import {
DialogService, DialogService,
ImmutableArray, ImmutableArray,
Pager Pager
} from 'shared'; } from '@app/shared';
import { import {
CreateUserDto, CreateUserDto,

2
src/Squidex/app/features/api/api-area.component.ts

@ -7,7 +7,7 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
import { AppsState } from 'shared'; import { AppsState } from '@app/shared';
@Component({ @Component({
selector: 'sqx-api-area', selector: 'sqx-api-area',

2
src/Squidex/app/features/api/module.ts

@ -12,7 +12,7 @@ import { DndModule } from 'ng2-dnd';
import { import {
SqxFrameworkModule, SqxFrameworkModule,
SqxSharedModule SqxSharedModule
} from 'shared'; } from '@app/shared';
import { import {
ApiAreaComponent, ApiAreaComponent,

2
src/Squidex/app/features/api/pages/graphql/graphql-page.component.ts

@ -19,7 +19,7 @@ import {
AppsState, AppsState,
GraphQlService, GraphQlService,
LocalStoreService LocalStoreService
} from 'shared'; } from '@app/shared';
@Component({ @Component({
selector: 'sqx-graphql-page', selector: 'sqx-graphql-page',

2
src/Squidex/app/features/apps/module.ts

@ -8,7 +8,7 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router'; import { RouterModule, Routes } from '@angular/router';
import { SqxFrameworkModule, SqxSharedModule } from 'shared'; import { SqxFrameworkModule, SqxSharedModule } from '@app/shared';
import { import {
AppsPageComponent, AppsPageComponent,

2
src/Squidex/app/features/apps/pages/apps-page.component.ts

@ -16,7 +16,7 @@ import {
ImmutableArray, ImmutableArray,
ModalView, ModalView,
OnboardingService OnboardingService
} from 'shared'; } from '@app/shared';
@Component({ @Component({
selector: 'sqx-apps-page', selector: 'sqx-apps-page',

2
src/Squidex/app/features/apps/pages/onboarding-dialog.component.ts

@ -11,7 +11,7 @@ import {
fadeAnimation, fadeAnimation,
ModalView, ModalView,
slideAnimation slideAnimation
} from 'framework'; } from '@app/framework';
@Component({ @Component({
selector: 'sqx-onboarding-dialog', selector: 'sqx-onboarding-dialog',

2
src/Squidex/app/features/assets/module.ts

@ -9,7 +9,7 @@ import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router'; import { RouterModule, Routes } from '@angular/router';
import { DndModule } from 'ng2-dnd'; import { DndModule } from 'ng2-dnd';
import { SqxFrameworkModule, SqxSharedModule } from 'shared'; import { SqxFrameworkModule, SqxSharedModule } from '@app/shared';
import { import {
AssetsPageComponent AssetsPageComponent

2
src/Squidex/app/features/assets/pages/assets-page.component.ts

@ -18,7 +18,7 @@ import {
AssetUpdated, AssetUpdated,
ImmutableArray, ImmutableArray,
Pager Pager
} from 'shared'; } from '@app/shared';
@Component({ @Component({
selector: 'sqx-assets-page', selector: 'sqx-assets-page',

2
src/Squidex/app/features/content/module.ts

@ -16,7 +16,7 @@ import {
ResolvePublishedSchemaGuard, ResolvePublishedSchemaGuard,
SqxFrameworkModule, SqxFrameworkModule,
SqxSharedModule SqxSharedModule
} from 'shared'; } from '@app/shared';
import { import {
AssetsEditorComponent, AssetsEditorComponent,

2
src/Squidex/app/features/content/pages/content/content-field.component.ts

@ -13,7 +13,7 @@ import {
AppLanguageDto, AppLanguageDto,
FieldDto, FieldDto,
fieldInvariant fieldInvariant
} from 'shared'; } from '@app/shared';
@Component({ @Component({
selector: 'sqx-content-field', selector: 'sqx-content-field',

2
src/Squidex/app/features/content/pages/content/content-history.component.ts

@ -16,7 +16,7 @@ import {
HistoryEventDto, HistoryEventDto,
HistoryService, HistoryService,
UsersProviderService UsersProviderService
} from 'shared'; } from '@app/shared';
import { ContentVersionSelected } from './../messages'; import { ContentVersionSelected } from './../messages';

2
src/Squidex/app/features/content/pages/content/content-page.component.ts

@ -28,7 +28,7 @@ import {
fieldInvariant, fieldInvariant,
SchemaDetailsDto, SchemaDetailsDto,
Version Version
} from 'shared'; } from '@app/shared';
@Component({ @Component({
selector: 'sqx-content-page', selector: 'sqx-content-page',

2
src/Squidex/app/features/content/pages/contents/contents-page.component.ts

@ -29,7 +29,7 @@ import {
Pager, Pager,
SchemaDetailsDto, SchemaDetailsDto,
Versioned Versioned
} from 'shared'; } from '@app/shared';
@Component({ @Component({
selector: 'sqx-contents-page', selector: 'sqx-contents-page',

2
src/Squidex/app/features/content/pages/messages.ts

@ -5,7 +5,7 @@
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
*/ */
import { ContentDto } from 'shared'; import { ContentDto } from '@app/shared';
export class ContentCreated { export class ContentCreated {
constructor( constructor(

2
src/Squidex/app/features/content/pages/schemas/schemas-page.component.ts

@ -13,7 +13,7 @@ import {
AppContext, AppContext,
SchemaDto, SchemaDto,
SchemasService SchemasService
} from 'shared'; } from '@app/shared';
@Component({ @Component({
selector: 'sqx-schemas-page', selector: 'sqx-schemas-page',

2
src/Squidex/app/features/content/shared/assets-editor.component.ts

@ -18,7 +18,7 @@ import {
AssetUpdated, AssetUpdated,
ImmutableArray, ImmutableArray,
Types Types
} from 'shared'; } from '@app/shared';
export const SQX_ASSETS_EDITOR_CONTROL_VALUE_ACCESSOR: any = { export const SQX_ASSETS_EDITOR_CONTROL_VALUE_ACCESSOR: any = {
provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => AssetsEditorComponent), multi: true provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => AssetsEditorComponent), multi: true

2
src/Squidex/app/features/content/shared/content-item.component.ts

@ -20,7 +20,7 @@ import {
SchemaDto, SchemaDto,
Types, Types,
Versioned Versioned
} from 'shared'; } from '@app/shared';
/* tslint:disable:component-selector */ /* tslint:disable:component-selector */

2
src/Squidex/app/features/content/shared/references-editor.component.ts

@ -21,7 +21,7 @@ import {
SchemaDetailsDto, SchemaDetailsDto,
SchemasService, SchemasService,
Types Types
} from 'shared'; } from '@app/shared';
export const SQX_REFERENCES_EDITOR_CONTROL_VALUE_ACCESSOR: any = { export const SQX_REFERENCES_EDITOR_CONTROL_VALUE_ACCESSOR: any = {
provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => ReferencesEditorComponent), multi: true provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => ReferencesEditorComponent), multi: true

2
src/Squidex/app/features/dashboard/module.ts

@ -9,7 +9,7 @@ import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router'; import { RouterModule, Routes } from '@angular/router';
import { ChartModule } from 'angular2-chartjs'; import { ChartModule } from 'angular2-chartjs';
import { SqxFrameworkModule, SqxSharedModule } from 'shared'; import { SqxFrameworkModule, SqxSharedModule } from '@app/shared';
import { import {
DashboardPageComponent DashboardPageComponent

2
src/Squidex/app/features/dashboard/pages/dashboard-page.component.ts

@ -18,7 +18,7 @@ import {
HistoryService, HistoryService,
UsagesService, UsagesService,
UsersProviderService UsersProviderService
} from 'shared'; } from '@app/shared';
declare var _urq: any; declare var _urq: any;

2
src/Squidex/app/features/rules/module.ts

@ -12,7 +12,7 @@ import {
HelpComponent, HelpComponent,
SqxFrameworkModule, SqxFrameworkModule,
SqxSharedModule SqxSharedModule
} from 'shared'; } from '@app/shared';
import { import {
AlgoliaActionComponent, AlgoliaActionComponent,

2
src/Squidex/app/features/rules/pages/events/rule-events-page.component.ts

@ -13,7 +13,7 @@ import {
Pager, Pager,
RuleEventDto, RuleEventDto,
RulesService RulesService
} from 'shared'; } from '@app/shared';
@Component({ @Component({
selector: 'sqx-rule-events-page', selector: 'sqx-rule-events-page',

2
src/Squidex/app/features/rules/pages/rules/actions/azure-queue-action.component.ts

@ -8,7 +8,7 @@
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { FormBuilder, Validators } from '@angular/forms'; import { FormBuilder, Validators } from '@angular/forms';
import { ValidatorsEx } from 'shared'; import { ValidatorsEx } from '@app/shared';
@Component({ @Component({
selector: 'sqx-azure-queue-action', selector: 'sqx-azure-queue-action',

2
src/Squidex/app/features/rules/pages/rules/rule-wizard.component.ts

@ -18,7 +18,7 @@ import {
RulesService, RulesService,
SchemaDto, SchemaDto,
UpdateRuleDto UpdateRuleDto
} from 'shared'; } from '@app/shared';
export const MODE_WIZARD = 'Wizard'; export const MODE_WIZARD = 'Wizard';
export const MODE_EDIT_TRIGGER = 'EditTrigger'; export const MODE_EDIT_TRIGGER = 'EditTrigger';

2
src/Squidex/app/features/rules/pages/rules/rules-page.component.ts

@ -19,7 +19,7 @@ import {
RulesService, RulesService,
SchemaDto, SchemaDto,
SchemasService SchemasService
} from 'shared'; } from '@app/shared';
@Component({ @Component({
selector: 'sqx-rules-page', selector: 'sqx-rules-page',

2
src/Squidex/app/features/rules/pages/rules/triggers/content-changed-trigger.component.ts

@ -11,7 +11,7 @@ import {
ImmutableArray, ImmutableArray,
SchemaDto, SchemaDto,
Types Types
} from 'shared'; } from '@app/shared';
export interface TriggerSchemaForm { export interface TriggerSchemaForm {
schema: SchemaDto; schema: SchemaDto;

2
src/Squidex/app/features/schemas/guards/schema-must-exist.guard.ts

@ -9,7 +9,7 @@ import { Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot } from '@angular/router'; import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot } from '@angular/router';
import { Observable } from 'rxjs'; import { Observable } from 'rxjs';
import { allParams } from 'framework'; import { allParams } from '@app/framework';
import { SchemasState } from './../state/schemas.state'; import { SchemasState } from './../state/schemas.state';

2
src/Squidex/app/features/schemas/module.ts

@ -12,7 +12,7 @@ import { DndModule } from 'ng2-dnd';
import { import {
SqxFrameworkModule, SqxFrameworkModule,
SqxSharedModule SqxSharedModule
} from 'shared'; } from '@app/shared';
import { import {
FieldComponent, FieldComponent,

2
src/Squidex/app/features/schemas/pages/schema/field-wizard.component.ts

@ -17,7 +17,7 @@ import {
SchemaDetailsDto, SchemaDetailsDto,
UpdateFieldDto, UpdateFieldDto,
ValidatorsEx ValidatorsEx
} from 'shared'; } from '@app/shared';
import { SchemasState } from './../../state/schemas.state'; import { SchemasState } from './../../state/schemas.state';

2
src/Squidex/app/features/schemas/pages/schema/field.component.ts

@ -15,7 +15,7 @@ import {
ModalView, ModalView,
SchemaDetailsDto, SchemaDetailsDto,
UpdateFieldDto UpdateFieldDto
} from 'shared'; } from '@app/shared';
import { SchemasState } from './../../state/schemas.state'; import { SchemasState } from './../../state/schemas.state';

2
src/Squidex/app/features/schemas/pages/schema/forms/field-form-common.component.ts

@ -8,7 +8,7 @@
import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core'; import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms'; import { FormControl, FormGroup, Validators } from '@angular/forms';
import { FieldDto } from 'shared'; import { FieldDto } from '@app/shared';
@Component({ @Component({
selector: 'sqx-field-form-common', selector: 'sqx-field-form-common',

2
src/Squidex/app/features/schemas/pages/schema/forms/field-form-ui.component.ts

@ -8,7 +8,7 @@
import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { FormGroup } from '@angular/forms'; import { FormGroup } from '@angular/forms';
import { FieldDto } from 'shared'; import { FieldDto } from '@app/shared';
@Component({ @Component({
selector: 'sqx-field-form-ui', selector: 'sqx-field-form-ui',

2
src/Squidex/app/features/schemas/pages/schema/forms/field-form-validation.component.ts

@ -8,7 +8,7 @@
import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { FormGroup } from '@angular/forms'; import { FormGroup } from '@angular/forms';
import { FieldDto } from 'shared'; import { FieldDto } from '@app/shared';
@Component({ @Component({
selector: 'sqx-field-form-validation', selector: 'sqx-field-form-validation',

2
src/Squidex/app/features/schemas/pages/schema/schema-edit-form.component.ts

@ -8,7 +8,7 @@
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { FormBuilder, Validators } from '@angular/forms'; import { FormBuilder, Validators } from '@angular/forms';
import { SchemaDetailsDto, UpdateSchemaDto } from 'shared'; import { SchemaDetailsDto, UpdateSchemaDto } from '@app/shared';
import { SchemasState } from './../../state/schemas.state'; import { SchemasState } from './../../state/schemas.state';

2
src/Squidex/app/features/schemas/pages/schema/schema-page.component.ts

@ -17,7 +17,7 @@ import {
MessageBus, MessageBus,
ModalView, ModalView,
SchemaDetailsDto SchemaDetailsDto
} from 'shared'; } from '@app/shared';
import { import {
SchemaCloning SchemaCloning

2
src/Squidex/app/features/schemas/pages/schema/schema-scripts-form.component.ts

@ -8,7 +8,7 @@
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { FormBuilder } from '@angular/forms'; import { FormBuilder } from '@angular/forms';
import { SchemaDetailsDto, UpdateSchemaScriptsDto } from 'shared'; import { SchemaDetailsDto, UpdateSchemaScriptsDto } from '@app/shared';
import { SchemasState } from './../../state/schemas.state'; import { SchemasState } from './../../state/schemas.state';

2
src/Squidex/app/features/schemas/pages/schema/types/assets-ui.component.ts

@ -8,7 +8,7 @@
import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { FormGroup } from '@angular/forms'; import { FormGroup } from '@angular/forms';
import { AssetsFieldPropertiesDto } from 'shared'; import { AssetsFieldPropertiesDto } from '@app/shared';
@Component({ @Component({
selector: 'sqx-assets-ui', selector: 'sqx-assets-ui',

2
src/Squidex/app/features/schemas/pages/schema/types/assets-validation.component.ts

@ -8,7 +8,7 @@
import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core'; import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';
import { FormControl, FormGroup } from '@angular/forms'; import { FormControl, FormGroup } from '@angular/forms';
import { AssetsFieldPropertiesDto } from 'shared'; import { AssetsFieldPropertiesDto } from '@app/shared';
@Component({ @Component({
selector: 'sqx-assets-validation', selector: 'sqx-assets-validation',

2
src/Squidex/app/features/schemas/pages/schema/types/boolean-ui.component.ts

@ -8,7 +8,7 @@
import { Component, Input, OnInit } from '@angular/core'; import { Component, Input, OnInit } from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms'; import { FormControl, FormGroup, Validators } from '@angular/forms';
import { BooleanFieldPropertiesDto } from 'shared'; import { BooleanFieldPropertiesDto } from '@app/shared';
@Component({ @Component({
selector: 'sqx-boolean-ui', selector: 'sqx-boolean-ui',

2
src/Squidex/app/features/schemas/pages/schema/types/boolean-validation.component.ts

@ -9,7 +9,7 @@ import { Component, Input, OnInit } from '@angular/core';
import { FormControl, FormGroup } from '@angular/forms'; import { FormControl, FormGroup } from '@angular/forms';
import { Observable } from 'rxjs'; import { Observable } from 'rxjs';
import { BooleanFieldPropertiesDto } from 'shared'; import { BooleanFieldPropertiesDto } from '@app/shared';
@Component({ @Component({
selector: 'sqx-boolean-validation', selector: 'sqx-boolean-validation',

2
src/Squidex/app/features/schemas/pages/schema/types/date-time-ui.component.ts

@ -9,7 +9,7 @@ import { Component, Input, OnInit } from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms'; import { FormControl, FormGroup, Validators } from '@angular/forms';
import { Observable } from 'rxjs'; import { Observable } from 'rxjs';
import { FloatConverter, NumberFieldPropertiesDto } from 'shared'; import { FloatConverter, NumberFieldPropertiesDto } from '@app/shared';
@Component({ @Component({
selector: 'sqx-date-time-ui', selector: 'sqx-date-time-ui',

2
src/Squidex/app/features/schemas/pages/schema/types/date-time-validation.component.ts

@ -9,7 +9,7 @@ import { Component, Input, OnInit } from '@angular/core';
import { FormControl, FormGroup } from '@angular/forms'; import { FormControl, FormGroup } from '@angular/forms';
import { Observable } from 'rxjs'; import { Observable } from 'rxjs';
import { DateTimeFieldPropertiesDto, ValidatorsEx } from 'shared'; import { DateTimeFieldPropertiesDto, ValidatorsEx } from '@app/shared';
@Component({ @Component({
selector: 'sqx-date-time-validation', selector: 'sqx-date-time-validation',

2
src/Squidex/app/features/schemas/pages/schema/types/geolocation-ui.component.ts

@ -8,7 +8,7 @@
import { Component, Input, OnInit } from '@angular/core'; import { Component, Input, OnInit } from '@angular/core';
import { FormGroup, FormControl, Validators } from '@angular/forms'; import { FormGroup, FormControl, Validators } from '@angular/forms';
import { GeolocationFieldPropertiesDto } from 'shared'; import { GeolocationFieldPropertiesDto } from '@app/shared';
@Component({ @Component({
selector: 'sqx-geolocation-ui', selector: 'sqx-geolocation-ui',

2
src/Squidex/app/features/schemas/pages/schema/types/geolocation-validation.component.ts

@ -8,7 +8,7 @@
import { Component, Input } from '@angular/core'; import { Component, Input } from '@angular/core';
import { FormGroup } from '@angular/forms'; import { FormGroup } from '@angular/forms';
import { GeolocationFieldPropertiesDto } from 'shared'; import { GeolocationFieldPropertiesDto } from '@app/shared';
@Component({ @Component({
selector: 'sqx-geolocation-validation', selector: 'sqx-geolocation-validation',

2
src/Squidex/app/features/schemas/pages/schema/types/json-ui.component.ts

@ -8,7 +8,7 @@
import { Component, Input } from '@angular/core'; import { Component, Input } from '@angular/core';
import { FormGroup } from '@angular/forms'; import { FormGroup } from '@angular/forms';
import { JsonFieldPropertiesDto } from 'shared'; import { JsonFieldPropertiesDto } from '@app/shared';
@Component({ @Component({
selector: 'sqx-json-ui', selector: 'sqx-json-ui',

2
src/Squidex/app/features/schemas/pages/schema/types/json-validation.component.ts

@ -8,7 +8,7 @@
import { Component, Input } from '@angular/core'; import { Component, Input } from '@angular/core';
import { FormGroup } from '@angular/forms'; import { FormGroup } from '@angular/forms';
import { JsonFieldPropertiesDto } from 'shared'; import { JsonFieldPropertiesDto } from '@app/shared';
@Component({ @Component({
selector: 'sqx-json-validation', selector: 'sqx-json-validation',

2
src/Squidex/app/features/schemas/pages/schema/types/number-ui.component.ts

@ -9,7 +9,7 @@ import { Component, Input, OnDestroy, OnInit } from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms'; import { FormControl, FormGroup, Validators } from '@angular/forms';
import { Observable, Subscription } from 'rxjs'; import { Observable, Subscription } from 'rxjs';
import { FloatConverter, NumberFieldPropertiesDto } from 'shared'; import { FloatConverter, NumberFieldPropertiesDto } from '@app/shared';
@Component({ @Component({
selector: 'sqx-number-ui', selector: 'sqx-number-ui',

2
src/Squidex/app/features/schemas/pages/schema/types/number-validation.component.ts

@ -9,7 +9,7 @@ import { Component, Input, OnInit } from '@angular/core';
import { FormControl, FormGroup } from '@angular/forms'; import { FormControl, FormGroup } from '@angular/forms';
import { Observable } from 'rxjs'; import { Observable } from 'rxjs';
import { NumberFieldPropertiesDto } from 'shared'; import { NumberFieldPropertiesDto } from '@app/shared';
@Component({ @Component({
selector: 'sqx-number-validation', selector: 'sqx-number-validation',

2
src/Squidex/app/features/schemas/pages/schema/types/references-ui.component.ts

@ -8,7 +8,7 @@
import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { FormGroup } from '@angular/forms'; import { FormGroup } from '@angular/forms';
import { ReferencesFieldPropertiesDto } from 'shared'; import { ReferencesFieldPropertiesDto } from '@app/shared';
@Component({ @Component({
selector: 'sqx-references-ui', selector: 'sqx-references-ui',

2
src/Squidex/app/features/schemas/pages/schema/types/references-validation.component.ts

@ -8,7 +8,7 @@
import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core'; import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms'; import { FormControl, FormGroup, Validators } from '@angular/forms';
import { ReferencesFieldPropertiesDto } from 'shared'; import { ReferencesFieldPropertiesDto } from '@app/shared';
import { SchemasState } from './../../../state/schemas.state'; import { SchemasState } from './../../../state/schemas.state';

2
src/Squidex/app/features/schemas/pages/schema/types/string-ui.component.ts

@ -9,7 +9,7 @@ import { Component, Input, OnDestroy, OnInit } from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms'; import { FormControl, FormGroup, Validators } from '@angular/forms';
import { Observable, Subscription } from 'rxjs'; import { Observable, Subscription } from 'rxjs';
import { StringFieldPropertiesDto } from 'shared'; import { StringFieldPropertiesDto } from '@app/shared';
@Component({ @Component({
selector: 'sqx-string-ui', selector: 'sqx-string-ui',

2
src/Squidex/app/features/schemas/pages/schema/types/string-validation.component.ts

@ -13,7 +13,7 @@ import {
AppPatternDto, AppPatternDto,
ModalView, ModalView,
StringFieldPropertiesDto StringFieldPropertiesDto
} from 'shared'; } from '@app/shared';
@Component({ @Component({
selector: 'sqx-string-validation', selector: 'sqx-string-validation',

2
src/Squidex/app/features/schemas/pages/schema/types/tags-ui.component.ts

@ -8,7 +8,7 @@
import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { FormGroup } from '@angular/forms'; import { FormGroup } from '@angular/forms';
import { AssetsFieldPropertiesDto } from 'shared'; import { AssetsFieldPropertiesDto } from '@app/shared';
@Component({ @Component({
selector: 'sqx-tags-ui', selector: 'sqx-tags-ui',

2
src/Squidex/app/features/schemas/pages/schema/types/tags-validation.component.ts

@ -8,7 +8,7 @@
import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core'; import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';
import { FormControl, FormGroup } from '@angular/forms'; import { FormControl, FormGroup } from '@angular/forms';
import { AssetsFieldPropertiesDto } from 'shared'; import { AssetsFieldPropertiesDto } from '@app/shared';
@Component({ @Component({
selector: 'sqx-tags-validation', selector: 'sqx-tags-validation',

2
src/Squidex/app/features/schemas/pages/schemas/schema-form.component.ts

@ -12,7 +12,7 @@ import {
ApiUrlConfig, ApiUrlConfig,
AppsState, AppsState,
ValidatorsEx ValidatorsEx
} from 'shared'; } from '@app/shared';
import { SchemasState } from './../../state/schemas.state'; import { SchemasState } from './../../state/schemas.state';

2
src/Squidex/app/features/schemas/pages/schemas/schemas-page.component.ts

@ -15,7 +15,7 @@ import {
fadeAnimation, fadeAnimation,
MessageBus, MessageBus,
ModalView ModalView
} from 'shared'; } from '@app/shared';
import { SchemaCloning } from './../messages'; import { SchemaCloning } from './../messages';

4
src/Squidex/app/features/schemas/state/schemas.state.ts

@ -8,7 +8,7 @@
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import { BehaviorSubject, Observable } from 'rxjs'; import { BehaviorSubject, Observable } from 'rxjs';
import 'framework/utils/rxjs-extensions'; import '@app/framework/utils/rxjs-extensions';
import { import {
AddFieldDto, AddFieldDto,
@ -25,7 +25,7 @@ import {
UpdateFieldDto, UpdateFieldDto,
UpdateSchemaScriptsDto, UpdateSchemaScriptsDto,
UpdateSchemaDto UpdateSchemaDto
} from 'shared'; } from '@app/shared';
@Injectable() @Injectable()
export class SchemasState { export class SchemasState {

2
src/Squidex/app/features/settings/module.ts

@ -14,7 +14,7 @@ import {
HistoryComponent, HistoryComponent,
SqxFrameworkModule, SqxFrameworkModule,
SqxSharedModule SqxSharedModule
} from 'shared'; } from '@app/shared';
import { import {
BackupsPageComponent, BackupsPageComponent,

2
src/Squidex/app/features/settings/pages/backups/backups-page.component.ts

@ -15,7 +15,7 @@ import {
BackupsService, BackupsService,
Duration, Duration,
ImmutableArray ImmutableArray
} from 'shared'; } from '@app/shared';
@Component({ @Component({
selector: 'sqx-backups-page', selector: 'sqx-backups-page',

2
src/Squidex/app/features/settings/pages/clients/client.component.ts

@ -15,7 +15,7 @@ import {
AppClientsService, AppClientsService,
fadeAnimation, fadeAnimation,
ModalView ModalView
} from 'shared'; } from '@app/shared';
const ESCAPE_KEY = 27; const ESCAPE_KEY = 27;

2
src/Squidex/app/features/settings/pages/clients/clients-page.component.ts

@ -17,7 +17,7 @@ import {
HistoryChannelUpdated, HistoryChannelUpdated,
UpdateAppClientDto, UpdateAppClientDto,
ValidatorsEx ValidatorsEx
} from 'shared'; } from '@app/shared';
@Component({ @Component({
selector: 'sqx-clients-page', selector: 'sqx-clients-page',

2
src/Squidex/app/features/settings/pages/contributors/contributors-page.component.ts

@ -17,7 +17,7 @@ import {
AutocompleteSource, AutocompleteSource,
HistoryChannelUpdated, HistoryChannelUpdated,
UsersService UsersService
} from 'shared'; } from '@app/shared';
export class UsersDataSource implements AutocompleteSource { export class UsersDataSource implements AutocompleteSource {
constructor( constructor(

2
src/Squidex/app/features/settings/pages/languages/language.component.ts

@ -9,7 +9,7 @@ import { Component, EventEmitter, Input, OnChanges, OnDestroy, Output, OnInit }
import { FormBuilder } from '@angular/forms'; import { FormBuilder } from '@angular/forms';
import { Subscription } from 'rxjs'; import { Subscription } from 'rxjs';
import { AppLanguageDto, fadeAnimation } from 'shared'; import { AppLanguageDto, fadeAnimation } from '@app/shared';
@Component({ @Component({
selector: 'sqx-language', selector: 'sqx-language',

2
src/Squidex/app/features/settings/pages/languages/languages-page.component.ts

@ -18,7 +18,7 @@ import {
ImmutableArray, ImmutableArray,
LanguageDto, LanguageDto,
LanguagesService LanguagesService
} from 'shared'; } from '@app/shared';
@Component({ @Component({
selector: 'sqx-languages-page', selector: 'sqx-languages-page',

2
src/Squidex/app/features/settings/pages/more/more-page.component.ts

@ -8,7 +8,7 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
import { Router } from '@angular/router'; import { Router } from '@angular/router';
import { AppContext } from 'shared'; import { AppContext } from '@app/shared';
@Component({ @Component({
selector: 'sqx-more-page', selector: 'sqx-more-page',

2
src/Squidex/app/features/settings/pages/patterns/pattern.component.ts

@ -13,7 +13,7 @@ import {
fadeAnimation, fadeAnimation,
ValidatorsEx, ValidatorsEx,
UpdatePatternDto UpdatePatternDto
} from 'shared'; } from '@app/shared';
@Component({ @Component({
selector: 'sqx-pattern', selector: 'sqx-pattern',

2
src/Squidex/app/features/settings/pages/patterns/patterns-page.component.ts

@ -14,7 +14,7 @@ import {
AppPatternsService, AppPatternsService,
HistoryChannelUpdated, HistoryChannelUpdated,
UpdatePatternDto UpdatePatternDto
} from 'shared'; } from '@app/shared';
@Component({ @Component({
selector: 'sqx-patterns-page', selector: 'sqx-patterns-page',

2
src/Squidex/app/features/settings/pages/plans/plans-page.component.ts

@ -14,7 +14,7 @@ import {
AppPlansDto, AppPlansDto,
ChangePlanDto, ChangePlanDto,
PlansService PlansService
} from 'shared'; } from '@app/shared';
@Component({ @Component({
selector: 'sqx-plans-page', selector: 'sqx-plans-page',

2
src/Squidex/app/features/settings/settings-area.component.ts

@ -7,7 +7,7 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
import { AppContext } from 'shared'; import { AppContext } from '@app/shared';
@Component({ @Component({
selector: 'sqx-settings-area', selector: 'sqx-settings-area',

2
src/Squidex/app/framework/angular/forms/confirm-click.directive.ts

@ -7,7 +7,7 @@
import { Directive, EventEmitter, HostListener, Input, OnDestroy, Output } from '@angular/core'; import { Directive, EventEmitter, HostListener, Input, OnDestroy, Output } from '@angular/core';
import { DialogService } from './../services/dialog.service'; import { DialogService } from '@app/framework/internal';
class DelayEventEmitter<T> extends EventEmitter<T> { class DelayEventEmitter<T> extends EventEmitter<T> {
private delayedNexts: any[] | null = []; private delayedNexts: any[] | null = [];

2
src/Squidex/app/framework/angular/forms/control-errors.component.ts

@ -9,7 +9,7 @@ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Host, Input, OnC
import { AbstractControl, FormGroupDirective } from '@angular/forms'; import { AbstractControl, FormGroupDirective } from '@angular/forms';
import { Observable, Subscription } from 'rxjs'; import { Observable, Subscription } from 'rxjs';
import { fadeAnimation } from './animations'; import { fadeAnimation } from '@app/framework/internal';
const DEFAULT_ERRORS: { [key: string]: string } = { const DEFAULT_ERRORS: { [key: string]: string } = {
required: '{field} is required.', required: '{field} is required.',

7
src/Squidex/app/framework/angular/forms/copy.directive.ts

@ -7,8 +7,11 @@
import { Directive, HostListener, Input } from '@angular/core'; import { Directive, HostListener, Input } from '@angular/core';
import { Types } from './../utils/types'; import {
import { DialogService, Notification } from './../services/dialog.service'; DialogService,
Notification,
Types
} from '@app/framework/internal';
@Directive({ @Directive({
selector: '[sqxCopy]' selector: '[sqxCopy]'

2
src/Squidex/app/framework/angular/forms/date-time-editor.component.ts

@ -10,7 +10,7 @@ import { ControlValueAccessor, FormControl, NG_VALUE_ACCESSOR } from '@angular/f
import { Subscription } from 'rxjs'; import { Subscription } from 'rxjs';
import * as moment from 'moment'; import * as moment from 'moment';
import { Types } from './../utils/types'; import { Types } from '@app/framework/internal';
let Pikaday = require('pikaday/pikaday'); let Pikaday = require('pikaday/pikaday');

2
src/Squidex/app/framework/angular/forms/dropdown.component.ts

@ -13,7 +13,7 @@ const KEY_ESCAPE = 27;
const KEY_UP = 38; const KEY_UP = 38;
const KEY_DOWN = 40; const KEY_DOWN = 40;
import { ModalView } from './../utils/modal-view'; import { ModalView } from '@app/framework/internal';
export const SQX_DROPDOWN_CONTROL_VALUE_ACCESSOR: any = { export const SQX_DROPDOWN_CONTROL_VALUE_ACCESSOR: any = {
provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => DropdownComponent), multi: true provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => DropdownComponent), multi: true

2
src/Squidex/app/framework/angular/forms/indeterminate-value.directive.ts

@ -8,7 +8,7 @@
import { Directive, forwardRef, ElementRef, HostListener, Renderer } from '@angular/core'; import { Directive, forwardRef, ElementRef, HostListener, Renderer } from '@angular/core';
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
import { Types } from './../utils/types'; import { Types } from '@app/framework/internal';
export const SQX_INDETERMINATE_VALUE_CONTROL_VALUE_ACCESSOR: any = { export const SQX_INDETERMINATE_VALUE_CONTROL_VALUE_ACCESSOR: any = {
provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => IndeterminateValueDirective), multi: true provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => IndeterminateValueDirective), multi: true

4
src/Squidex/app/framework/angular/forms/jscript-editor.component.ts

@ -9,9 +9,7 @@ import { AfterViewInit, Component, forwardRef, ElementRef, ViewChild } from '@an
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
import { Subject } from 'rxjs'; import { Subject } from 'rxjs';
import { Types } from './../utils/types'; import { ResourceLoaderService, Types } from '@app/framework/internal';
import { ResourceLoaderService } from './../services/resource-loader.service';
declare var ace: any; declare var ace: any;

2
src/Squidex/app/framework/angular/forms/json-editor.component.ts

@ -9,7 +9,7 @@ import { AfterViewInit, Component, forwardRef, ElementRef, ViewChild } from '@an
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
import { Subject } from 'rxjs'; import { Subject } from 'rxjs';
import { ResourceLoaderService } from './../services/resource-loader.service'; import { ResourceLoaderService } from '@app/framework/internal';
declare var ace: any; declare var ace: any;

2
src/Squidex/app/framework/angular/forms/lowercase-input.directive.ts

@ -8,7 +8,7 @@
import { Directive, forwardRef, ElementRef, HostListener, Renderer } from '@angular/core'; import { Directive, forwardRef, ElementRef, HostListener, Renderer } from '@angular/core';
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
import { Types } from './../utils/types'; import { Types } from '@app/framework/internal';
export const SQX_LOWERCASE_INPUT_VALUE_ACCESSOR: any = { export const SQX_LOWERCASE_INPUT_VALUE_ACCESSOR: any = {
provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => LowerCaseInputDirective), multi: true provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => LowerCaseInputDirective), multi: true

2
src/Squidex/app/framework/angular/forms/slider.component.ts

@ -8,7 +8,7 @@
import { Component, ElementRef, forwardRef, Input, Renderer, ViewChild } from '@angular/core'; import { Component, ElementRef, forwardRef, Input, Renderer, ViewChild } from '@angular/core';
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
import { Types } from './../utils/types'; import { Types } from '@app/framework/internal';
export const SQX_SLIDER_CONTROL_VALUE_ACCESSOR: any = { export const SQX_SLIDER_CONTROL_VALUE_ACCESSOR: any = {
provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SliderComponent), multi: true provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SliderComponent), multi: true

2
src/Squidex/app/framework/angular/forms/slugify-input.directive.ts

@ -10,7 +10,7 @@ import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
import slugify from 'slugify'; import slugify from 'slugify';
import { Types } from './../utils/types'; import { Types } from '@app/framework/internal';
export const SQX_SLUGIFY_INPUT_VALUE_ACCESSOR: any = { export const SQX_SLUGIFY_INPUT_VALUE_ACCESSOR: any = {
provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SlugifyInputDirective), multi: true provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SlugifyInputDirective), multi: true

2
src/Squidex/app/framework/angular/forms/stars.component.ts

@ -8,7 +8,7 @@
import { Component, forwardRef, Input } from '@angular/core'; import { Component, forwardRef, Input } from '@angular/core';
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
import { Types } from './../utils/types'; import { Types } from '@app/framework/internal';
export const SQX_STARS_CONTROL_VALUE_ACCESSOR: any = { export const SQX_STARS_CONTROL_VALUE_ACCESSOR: any = {
provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => StarsComponent), multi: true provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => StarsComponent), multi: true

2
src/Squidex/app/framework/angular/forms/tag-editor.component.ts

@ -8,7 +8,7 @@
import { Component, forwardRef, Input } from '@angular/core'; import { Component, forwardRef, Input } from '@angular/core';
import { ControlValueAccessor, FormControl, NG_VALUE_ACCESSOR } from '@angular/forms'; import { ControlValueAccessor, FormControl, NG_VALUE_ACCESSOR } from '@angular/forms';
import { Types } from './../utils/types'; import { Types } from '@app/framework/internal';
const KEY_ENTER = 13; const KEY_ENTER = 13;

2
src/Squidex/app/framework/angular/forms/toggle.component.ts

@ -8,7 +8,7 @@
import { Component, forwardRef } from '@angular/core'; import { Component, forwardRef } from '@angular/core';
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
import { Types } from './../utils/types'; import { Types } from '@app/framework/internal';
export const SQX_TOGGLE_CONTROL_VALUE_ACCESSOR: any = { export const SQX_TOGGLE_CONTROL_VALUE_ACCESSOR: any = {
provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => ToggleComponent), multi: true provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => ToggleComponent), multi: true

5
src/Squidex/app/framework/angular/forms/validators.spec.ts

@ -7,8 +7,9 @@
import { FormControl, FormGroup, Validators } from '@angular/forms'; import { FormControl, FormGroup, Validators } from '@angular/forms';
import { DateTime } from './../utils/date-time'; import { DateTime } from './../../utils/date-time';
import { ValidatorsEx } from './../';
import { ValidatorsEx } from './validators';
describe('ValidatorsEx.between', () => { describe('ValidatorsEx.between', () => {
it('should return null validator if no min value or max value', () => { it('should return null validator if no min value or max value', () => {

11
src/Squidex/app/framework/angular/forms/validators.ts

@ -5,14 +5,9 @@
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
*/ */
import { import { AbstractControl, ValidatorFn, Validators } from '@angular/forms';
AbstractControl,
ValidatorFn, import { DateTime, Types } from '@app/framework/internal';
Validators
} from '@angular/forms';
import { DateTime } from './../utils/date-time';
import { Types } from './../utils/types';
export module ValidatorsEx { export module ValidatorsEx {
export function pattern(regex: string | RegExp, message?: string): ValidatorFn { export function pattern(regex: string | RegExp, message?: string): ValidatorFn {

4
src/Squidex/app/framework/angular/http/http-extensions-impl.ts

@ -8,9 +8,9 @@
import { HttpClient, HttpErrorResponse, HttpHeaders, HttpResponse } from '@angular/common/http'; import { HttpClient, HttpErrorResponse, HttpHeaders, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs'; import { Observable } from 'rxjs';
import { ErrorDto } from './../utils/error'; import { ErrorDto } from './../../utils/error';
import { Version, Versioned } from './../utils/version'; import { Version, Versioned } from './../../utils/version';
export module HTTP { export module HTTP {
export function getVersioned<T>(http: HttpClient, url: string, version?: Version): Observable<Versioned<HttpResponse<T>>> { export function getVersioned<T>(http: HttpClient, url: string, version?: Version): Observable<Versioned<HttpResponse<T>>> {

8
src/Squidex/app/framework/angular/modals/dialog-renderer.component.ts

@ -8,15 +8,13 @@
import { Component, Input, OnDestroy, OnInit } from '@angular/core'; import { Component, Input, OnDestroy, OnInit } from '@angular/core';
import { Subscription } from 'rxjs'; import { Subscription } from 'rxjs';
import { fadeAnimation } from './animations';
import { import {
DialogRequest, DialogRequest,
DialogService, DialogService,
fadeAnimation,
ModalView,
Notification Notification
} from './../services/dialog.service'; } from '@app/framework/internal';
import { ModalView } from './../utils/modal-view';
@Component({ @Component({
selector: 'sqx-dialog-renderer', selector: 'sqx-dialog-renderer',

2
src/Squidex/app/framework/angular/modals/modal-view.directive.ts

@ -8,7 +8,7 @@
import { Directive, EmbeddedViewRef, Input, OnChanges, OnDestroy, Renderer, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core'; import { Directive, EmbeddedViewRef, Input, OnChanges, OnDestroy, Renderer, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
import { Subscription } from 'rxjs'; import { Subscription } from 'rxjs';
import { ModalView } from './../utils/modal-view'; import { ModalView } from '@app/framework/internal';
import { RootViewComponent } from './root-view.component'; import { RootViewComponent } from './root-view.component';

12
src/Squidex/app/framework/angular/modals/onboarding-tooltip.component.ts

@ -7,12 +7,12 @@
import { Component, Input, OnDestroy, OnInit, Renderer } from '@angular/core'; import { Component, Input, OnDestroy, OnInit, Renderer } from '@angular/core';
import { ModalView } from './../utils/modal-view'; import {
import { Types } from './../utils/types'; fadeAnimation,
ModalView,
import { OnboardingService } from './../services/onboarding.service'; OnboardingService,
Types
import { fadeAnimation } from './animations'; } from '@app/framework/internal';
@Component({ @Component({
selector: 'sqx-onboarding-tooltip', selector: 'sqx-onboarding-tooltip',

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save