Browse Source

Components reorganized.

pull/271/head
Sebastian Stehle 9 years ago
parent
commit
9e95e061e3
  1. 114
      src/Squidex/app/features/administration/pages/event-consumers/event-consumers-page.component.html
  2. 85
      src/Squidex/app/features/administration/pages/users/user-page.component.html
  3. 180
      src/Squidex/app/features/administration/pages/users/users-page.component.html
  4. 2
      src/Squidex/app/features/rules/pages/rules/rules-page.component.html
  5. 2
      src/Squidex/app/features/schemas/pages/schema/schema-page.component.html
  6. 4
      src/Squidex/app/features/schemas/pages/schemas/schemas-page.component.html
  7. 8
      src/Squidex/app/features/schemas/state/schemas.state.ts
  8. 0
      src/Squidex/app/framework/angular/forms/autocomplete.component.html
  9. 0
      src/Squidex/app/framework/angular/forms/autocomplete.component.scss
  10. 0
      src/Squidex/app/framework/angular/forms/autocomplete.component.ts
  11. 0
      src/Squidex/app/framework/angular/forms/confirm-click.directive.ts
  12. 0
      src/Squidex/app/framework/angular/forms/control-errors.component.html
  13. 0
      src/Squidex/app/framework/angular/forms/control-errors.component.scss
  14. 0
      src/Squidex/app/framework/angular/forms/control-errors.component.ts
  15. 0
      src/Squidex/app/framework/angular/forms/copy.directive.ts
  16. 0
      src/Squidex/app/framework/angular/forms/date-time-editor.component.html
  17. 0
      src/Squidex/app/framework/angular/forms/date-time-editor.component.scss
  18. 0
      src/Squidex/app/framework/angular/forms/date-time-editor.component.ts
  19. 0
      src/Squidex/app/framework/angular/forms/dropdown.component.html
  20. 0
      src/Squidex/app/framework/angular/forms/dropdown.component.scss
  21. 0
      src/Squidex/app/framework/angular/forms/dropdown.component.ts
  22. 0
      src/Squidex/app/framework/angular/forms/file-drop.directive.ts
  23. 0
      src/Squidex/app/framework/angular/forms/focus-on-init.directive.spec.ts
  24. 0
      src/Squidex/app/framework/angular/forms/focus-on-init.directive.ts
  25. 0
      src/Squidex/app/framework/angular/forms/indeterminate-value.directive.ts
  26. 0
      src/Squidex/app/framework/angular/forms/jscript-editor.component.html
  27. 0
      src/Squidex/app/framework/angular/forms/jscript-editor.component.scss
  28. 0
      src/Squidex/app/framework/angular/forms/jscript-editor.component.ts
  29. 0
      src/Squidex/app/framework/angular/forms/json-editor.component.html
  30. 0
      src/Squidex/app/framework/angular/forms/json-editor.component.scss
  31. 0
      src/Squidex/app/framework/angular/forms/json-editor.component.ts
  32. 0
      src/Squidex/app/framework/angular/forms/lowercase-input.directive.ts
  33. 0
      src/Squidex/app/framework/angular/forms/progress-bar.component.ts
  34. 0
      src/Squidex/app/framework/angular/forms/slider.component.html
  35. 0
      src/Squidex/app/framework/angular/forms/slider.component.scss
  36. 0
      src/Squidex/app/framework/angular/forms/slider.component.ts
  37. 0
      src/Squidex/app/framework/angular/forms/slugify-input.directive.ts
  38. 0
      src/Squidex/app/framework/angular/forms/stars.component.html
  39. 0
      src/Squidex/app/framework/angular/forms/stars.component.scss
  40. 0
      src/Squidex/app/framework/angular/forms/stars.component.ts
  41. 0
      src/Squidex/app/framework/angular/forms/tag-editor.component.html
  42. 0
      src/Squidex/app/framework/angular/forms/tag-editor.component.scss
  43. 0
      src/Squidex/app/framework/angular/forms/tag-editor.component.ts
  44. 0
      src/Squidex/app/framework/angular/forms/toggle.component.html
  45. 0
      src/Squidex/app/framework/angular/forms/toggle.component.scss
  46. 0
      src/Squidex/app/framework/angular/forms/toggle.component.ts
  47. 0
      src/Squidex/app/framework/angular/forms/validators.spec.ts
  48. 0
      src/Squidex/app/framework/angular/forms/validators.ts
  49. 0
      src/Squidex/app/framework/angular/http/http-extensions-impl.ts
  50. 0
      src/Squidex/app/framework/angular/http/http-extensions.ts
  51. 0
      src/Squidex/app/framework/angular/modals/dialog-renderer.component.html
  52. 0
      src/Squidex/app/framework/angular/modals/dialog-renderer.component.scss
  53. 0
      src/Squidex/app/framework/angular/modals/dialog-renderer.component.ts
  54. 0
      src/Squidex/app/framework/angular/modals/modal-target.directive.ts
  55. 0
      src/Squidex/app/framework/angular/modals/modal-view.directive.ts
  56. 0
      src/Squidex/app/framework/angular/modals/onboarding-tooltip.component.html
  57. 0
      src/Squidex/app/framework/angular/modals/onboarding-tooltip.component.scss
  58. 0
      src/Squidex/app/framework/angular/modals/onboarding-tooltip.component.ts
  59. 0
      src/Squidex/app/framework/angular/modals/root-view.component.ts
  60. 0
      src/Squidex/app/framework/angular/modals/tooltip.component.scss
  61. 0
      src/Squidex/app/framework/angular/modals/tooltip.component.ts
  62. 29
      src/Squidex/app/framework/angular/panel.component.html
  63. 2
      src/Squidex/app/framework/angular/panel.component.scss
  64. 23
      src/Squidex/app/framework/angular/panel.component.ts
  65. 0
      src/Squidex/app/framework/angular/pipes/date-time.pipes.spec.ts
  66. 0
      src/Squidex/app/framework/angular/pipes/date-time.pipes.ts
  67. 0
      src/Squidex/app/framework/angular/pipes/keys.pipe.spec.ts
  68. 0
      src/Squidex/app/framework/angular/pipes/keys.pipe.ts
  69. 0
      src/Squidex/app/framework/angular/pipes/money.pipe.spec.ts
  70. 0
      src/Squidex/app/framework/angular/pipes/money.pipe.ts
  71. 0
      src/Squidex/app/framework/angular/pipes/name.pipe.spec.ts
  72. 0
      src/Squidex/app/framework/angular/pipes/name.pipe.ts
  73. 0
      src/Squidex/app/framework/angular/pipes/numbers.pipes.spec.ts
  74. 0
      src/Squidex/app/framework/angular/pipes/numbers.pipes.ts
  75. 0
      src/Squidex/app/framework/angular/routers/can-deactivate.guard.spec.ts
  76. 0
      src/Squidex/app/framework/angular/routers/can-deactivate.guard.ts
  77. 0
      src/Squidex/app/framework/angular/routers/router-utils.spec.ts
  78. 0
      src/Squidex/app/framework/angular/routers/router-utils.ts
  79. 77
      src/Squidex/app/framework/declarations.ts
  80. 13139
      src/Squidex/package-lock.json

114
src/Squidex/app/features/administration/pages/event-consumers/event-consumers-page.component.html

@ -1,72 +1,64 @@
<sqx-title message="Event Consumers"></sqx-title> <sqx-title message="Event Consumers"></sqx-title>
<sqx-panel theme="light" desiredWidth="50rem"> <sqx-panel theme="light" desiredWidth="50rem">
<div class="panel-header"> <ng-container title>
<div class="panel-title-row"> Consumers
<div class="float-right"> </ng-container>
<button class="btn btn-link btn-secondary" (click)="load(true)" title="Refresh Event Consumers (CTRL + SHIFT + R)">
<i class="icon-reset"></i> Refresh
</button>
<sqx-shortcut keys="ctrl+shift+r" (trigger)="load(true)"></sqx-shortcut> <ng-container menu>
</div> <button class="btn btn-link btn-secondary" (click)="load(true)" title="Refresh Event Consumers (CTRL + SHIFT + R)">
<i class="icon-reset"></i> Refresh
</button>
<h3 class="panel-title">Event Consumers</h3> <sqx-shortcut keys="ctrl+shift+r" (trigger)="load(true)"></sqx-shortcut>
</div> </ng-container>
<a class="panel-close" sqxParentLink isLazyLoaded="true"> <ng-container content>
<i class="icon-close"></i> <table class="table table-items table-fixed">
</a> <thead>
</div> <tr>
<th class="cell-auto">
Name
</th>
<th class="cell-auto-right">
Position
</th>
<th class="cell-actions-lg">
Actions
</th>
</tr>
</thead>
<div class="panel-main"> <tbody>
<div class="panel-content panel-content-scroll"> <ng-template ngFor let-eventConsumer [ngForOf]="eventConsumers">
<table class="table table-items table-fixed"> <tr [class.faulted]="eventConsumer.error && eventConsumer.error.length > 0">
<thead> <td class="auto-auto">
<tr> <span class="truncate">
<th class="cell-auto"> <i class="faulted-icon icon icon-bug" (click)="showError(eventConsumer)" [class.hidden]="!eventConsumer.error || eventConsumer.error.length === 0"></i>
Name
</th>
<th class="cell-auto-right">
Position
</th>
<th class="cell-actions-lg">
Actions
</th>
</tr>
</thead>
<tbody> {{eventConsumer.name}}
<ng-template ngFor let-eventConsumer [ngForOf]="eventConsumers"> </span>
<tr [class.faulted]="eventConsumer.error && eventConsumer.error.length > 0"> </td>
<td class="auto-auto"> <td class="cell-auto-right">
<span class="truncate"> <span>{{eventConsumer.position}}</span>
<i class="faulted-icon icon icon-bug" (click)="showError(eventConsumer)" [class.hidden]="!eventConsumer.error || eventConsumer.error.length === 0"></i> </td>
<td class="cell-actions-lg">
{{eventConsumer.name}} <button class="btn btn-link" (click)="reset(eventConsumer)" *ngIf="!eventConsumer.isResetting" title="Reset Event Consumer">
</span> <i class="icon icon-reset"></i>
</td> </button>
<td class="cell-auto-right"> <button class="btn btn-link" (click)="start(eventConsumer)" *ngIf="eventConsumer.isStopped" title="Start Event Consumer">
<span>{{eventConsumer.position}}</span> <i class="icon icon-play"></i>
</td> </button>
<td class="cell-actions-lg"> <button class="btn btn-link" (click)="stop(eventConsumer)" *ngIf="!eventConsumer.isStopped" title="Stop Event Consumer">
<button class="btn btn-link" (click)="reset(eventConsumer)" *ngIf="!eventConsumer.isResetting" title="Reset Event Consumer"> <i class="icon icon-pause"></i>
<i class="icon icon-reset"></i> </button>
</button> </td>
<button class="btn btn-link" (click)="start(eventConsumer)" *ngIf="eventConsumer.isStopped" title="Start Event Consumer"> </tr>
<i class="icon icon-play"></i> <tr class="spacer"></tr>
</button> </ng-template>
<button class="btn btn-link" (click)="stop(eventConsumer)" *ngIf="!eventConsumer.isStopped" title="Stop Event Consumer"> </tbody>
<i class="icon icon-pause"></i> </table>
</button> </ng-container>
</td>
</tr>
<tr class="spacer"></tr>
</ng-template>
</tbody>
</table>
</div>
</div>
</sqx-panel> </sqx-panel>
<div class="modal" *sqxModalView="eventConsumerErrorDialog;onRoot:true" @fade> <div class="modal" *sqxModalView="eventConsumerErrorDialog;onRoot:true" @fade>

85
src/Squidex/app/features/administration/pages/users/user-page.component.html

@ -3,71 +3,56 @@
<form [formGroup]="userForm" (ngSubmit)="save()"> <form [formGroup]="userForm" (ngSubmit)="save()">
<input style="display:none" type="password" name="foilautofill"/> <input style="display:none" type="password" name="foilautofill"/>
<sqx-panel desiredWidth="26rem"> <sqx-panel desiredWidth="26rem" isBlank="true">
<div class="panel-header"> <ng-container title>
<div class="panel-title-row"> {{user ? 'Edit User' : 'New User'}}
<div class="float-right"> </ng-container>
<button type="submit" class="btn btn-primary" title="CTRL + S">
Save <ng-container menu>
</button> <button type="submit" class="btn btn-primary" title="CTRL + S">
</div> Save
</button>
<sqx-shortcut keys="ctrl+s" (trigger)="save()"></sqx-shortcut>
<sqx-shortcut keys="ctrl+s" (trigger)="save()"></sqx-shortcut>
</ng-container>
<h3 class="panel-title" *ngIf="!user"> <ng-container content>
New User <div *ngIf="userFormError">
</h3> <div class="form-alert form-alert-error" [innerHTML]="userFormError"></div>
<h3 class="panel-title" *ngIf="user">
Edit User
</h3>
</div> </div>
<sqx-shortcut keys="ctrl+s" (trigger)="save()"></sqx-shortcut>
<a class="panel-close" sqxParentLink> <div class="form-group">
<i class="icon-close"></i> <label for="email">Email</label>
</a>
</div>
<div class="panel-main"> <sqx-control-errors for="email" [submitted]="userFormSubmitted"></sqx-control-errors>
<div class="panel-content panel-content-blank">
<div *ngIf="userFormError">
<div class="form-alert form-alert-error" [innerHTML]="userFormError"></div>
</div>
<div class="form-group"> <input type="email" class="form-control" id="email" maxlength="100" formControlName="email" autocomplete="false" />
<label for="email">Email</label> </div>
<div class="form-group">
<label for="displayName">Display Name</label>
<sqx-control-errors for="email" [submitted]="userFormSubmitted"></sqx-control-errors> <sqx-control-errors for="displayName" [submitted]="userFormSubmitted"></sqx-control-errors>
<input type="email" class="form-control" id="email" maxlength="100" formControlName="email" autocomplete="false" /> <input type="text" class="form-control" id="displayName" maxlength="100" formControlName="displayName" autocomplete="false" />
</div> </div>
<div class="form-group form-group-password" [class.hidden]="isCurrentUser">
<div class="form-group"> <div class="form-group">
<label for="displayName">Display Name</label> <label for="password">Password</label>
<sqx-control-errors for="displayName" [submitted]="userFormSubmitted"></sqx-control-errors> <sqx-control-errors for="password" [submitted]="userFormSubmitted"></sqx-control-errors>
<input type="text" class="form-control" id="displayName" maxlength="100" formControlName="displayName" autocomplete="false" /> <input type="password" class="form-control" id="password" maxlength="100" formControlName="password" autocomplete="false" />
</div> </div>
<div class="form-group form-group-password" [class.hidden]="isCurrentUser"> <div class="form-group">
<div class="form-group"> <label for="password">Confirm Password</label>
<label for="password">Password</label>
<sqx-control-errors for="password" [submitted]="userFormSubmitted"></sqx-control-errors>
<input type="password" class="form-control" id="password" maxlength="100" formControlName="password" autocomplete="false" />
</div>
<div class="form-group">
<label for="password">Confirm Password</label>
<sqx-control-errors for="passwordConfirm" [submitted]="userFormSubmitted"></sqx-control-errors> <sqx-control-errors for="passwordConfirm" [submitted]="userFormSubmitted"></sqx-control-errors>
<input type="password" class="form-control" id="passwordConfirm" maxlength="100" formControlName="passwordConfirm" autocomplete="false" /> <input type="password" class="form-control" id="passwordConfirm" maxlength="100" formControlName="passwordConfirm" autocomplete="false" />
</div>
</div> </div>
</div> </div>
</div> </ng-container>
</sqx-panel> </sqx-panel>
</form> </form>

180
src/Squidex/app/features/administration/pages/users/users-page.component.html

@ -1,109 +1,101 @@
<sqx-title message="User Management"></sqx-title> <sqx-title message="User Management"></sqx-title>
<sqx-panel desiredWidth="50rem"> <sqx-panel desiredWidth="50rem" contentClass="grid">
<div class="panel-header"> <ng-container title>
<div class="panel-title-row"> Users
<div class="float-right"> </ng-container>
<button class="btn btn-link btn-secondary" (click)="load(true)" title="Refresh Users (CTRL + SHIFT + R)">
<i class="icon-reset"></i> Refresh
</button>
<sqx-shortcut keys="ctrl+shift+r" (trigger)="load(true)"></sqx-shortcut> <ng-container menu>
<sqx-shortcut keys="ctrl+shift+f" (trigger)="inputFind.focus()"></sqx-shortcut> <button class="btn btn-link btn-secondary" (click)="load(true)" title="Refresh Users (CTRL + SHIFT + R)">
<sqx-shortcut keys="ctrl+shift+n" (trigger)="buttonNew.click()"></sqx-shortcut> <i class="icon-reset"></i> Refresh
</button>
<form class="form-inline" (ngSubmit)="search()"> <sqx-shortcut keys="ctrl+shift+r" (trigger)="load(true)"></sqx-shortcut>
<input class="form-control" #inputFind [formControl]="usersFilter" placeholder="Search for user" /> <sqx-shortcut keys="ctrl+shift+f" (trigger)="inputFind.focus()"></sqx-shortcut>
</form> <sqx-shortcut keys="ctrl+shift+n" (trigger)="buttonNew.click()"></sqx-shortcut>
<button class="btn btn-success" #buttonNew routerLink="new" title="New User (CTRL + N)"> <form class="form-inline" (ngSubmit)="search()">
<i class="icon-plus"></i> New <input class="form-control" #inputFind [formControl]="usersFilter" placeholder="Search for user" />
</button> </form>
</div>
<h3 class="panel-title">Users</h3>
</div>
<a class="panel-close" sqxParentLink isLazyLoaded="true"> <button class="btn btn-success" #buttonNew routerLink="new" title="New User (CTRL + N)">
<i class="icon-close"></i> <i class="icon-plus"></i> New
</a> </button>
</div> </ng-container>
<div class="panel-main"> <ng-container content>
<div class="panel-content grid"> <div class="grid-header">
<div class="grid-header"> <table class="table table-items table-fixed">
<thead>
<tr>
<th class="cell-user">
&nbsp;
</th>
<th class="cell-auto">
Name
</th>
<th class="cell-auto">
Email
</th>
<th class="cell-actions">
Actions
</th>
</tr>
</thead>
</table>
</div>
<div class="grid-content">
<div sqxIgnoreScrollbar>
<table class="table table-items table-fixed"> <table class="table table-items table-fixed">
<thead> <tbody>
<tr> <ng-template ngFor let-user [ngForOf]="usersState.users | async" [ngForTrackBy]="usersState.trackByUser">
<th class="cell-user"> <tr [routerLink]="user.id" routerLinkActive="active">
&nbsp; <td class="cell-user">
</th> <img class="user-picture" [attr.title]="user.name" [attr.src]="user | sqxUserDtoPicture" />
<th class="cell-auto"> </td>
Name <td class="cell-auto">
</th> <span class="user-name table-cell">{{user.displayName}}</span>
<th class="cell-auto"> </td>
Email <td class="cell-auto">
</th> <span class="user-email table-cell">{{user.email}}</span>
<th class="cell-actions"> </td>
Actions <td class="cell-actions">
</th> <span *ngIf="user.id !== authState.user?.id">
</tr> <button class="btn btn-link" (click)="lock(user); $event.stopPropagation();" *ngIf="!user.isLocked" title="Lock User">
</thead> <i class="icon icon-unlocked"></i>
</table>
</div>
<div class="grid-content">
<div sqxIgnoreScrollbar>
<table class="table table-items table-fixed">
<tbody>
<ng-template ngFor let-user [ngForOf]="usersState.users | async" [ngForTrackBy]="usersState.trackByUser">
<tr [routerLink]="user.id" routerLinkActive="active">
<td class="cell-user">
<img class="user-picture" [attr.title]="user.name" [attr.src]="user | sqxUserDtoPicture" />
</td>
<td class="cell-auto">
<span class="user-name table-cell">{{user.displayName}}</span>
</td>
<td class="cell-auto">
<span class="user-email table-cell">{{user.email}}</span>
</td>
<td class="cell-actions">
<span *ngIf="user.id !== authState.user.id">
<button class="btn btn-link" (click)="lock(user); $event.stopPropagation();" *ngIf="!user.isLocked" title="Lock User">
<i class="icon icon-unlocked"></i>
</button>
<button class="btn btn-link" (click)="unlock(user); $event.stopPropagation();" *ngIf="user.isLocked" title="Unlock User">
<i class="icon icon-lock"></i>
</button>
</span>
<button *ngIf="user.id === authState.user?.id" class="btn btn-link invisible">
&nbsp;
</button> </button>
</td> <button class="btn btn-link" (click)="unlock(user); $event.stopPropagation();" *ngIf="user.isLocked" title="Unlock User">
</tr> <i class="icon icon-lock"></i>
<tr class="spacer"></tr> </button>
</ng-template> </span>
</tbody> <button *ngIf="user.id === authState.user?.id" class="btn btn-link invisible">
</table> &nbsp;
</div> </button>
</td>
</tr>
<tr class="spacer"></tr>
</ng-template>
</tbody>
</table>
</div> </div>
</div>
<ng-container *ngIf="usersState.usersPager | async as pager"> <ng-container *ngIf="usersState.usersPager | async as pager">
<div class="grid-footer clearfix" *ngIf="pager.numberOfItems > 0"> <div class="grid-footer clearfix" *ngIf="pager.numberOfItems > 0">
<div class="float-right pagination"> <div class="float-right pagination">
<span class="pagination-text">{{pager.itemFirst}}-{{pager.itemLast}} of {{pager.numberOfItems}}</span> <span class="pagination-text">{{pager.itemFirst}}-{{pager.itemLast}} of {{pager.numberOfItems}}</span>
<button class="btn btn-link btn-secondary pagination-button" [disabled]="!pager.canGoPrev" (click)="goPrev()"> <button class="btn btn-link btn-secondary pagination-button" [disabled]="!pager.canGoPrev" (click)="goPrev()">
<i class="icon-angle-left"></i> <i class="icon-angle-left"></i>
</button> </button>
<button class="btn btn-link btn-secondary pagination-button" [disabled]="!pager.canGoNext" (click)="goNext()"> <button class="btn btn-link btn-secondary pagination-button" [disabled]="!pager.canGoNext" (click)="goNext()">
<i class="icon-angle-right"></i> <i class="icon-angle-right"></i>
</button> </button>
</div>
</div> </div>
</ng-container> </div>
</div> </ng-container>
</div> </ng-container>
</sqx-panel> </sqx-panel>
<router-outlet></router-outlet> <router-outlet></router-outlet>

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

@ -16,7 +16,7 @@
</button> </button>
</div> </div>
<h3 class="panel-title">Rules</h3> <h3 class="panel-title"><i class="icon-rules"></i> Rules</h3>
</div> </div>
<a class="panel-close" sqxParentLink isLazyLoaded="true"> <a class="panel-close" sqxParentLink isLazyLoaded="true">

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

@ -1,4 +1,4 @@
<sqx-title message="{app} | {schema}" parameter1="app" [value1]="appsState.appName" parameter2="schema" [value2]="schema?.displayName"></sqx-title> <sqx-title message="{app} | {schema}" parameter1="app" [value1]="appsState.appName" parameter2="schema" [value2]="schemasState.schemaName"></sqx-title>
<sqx-panel desiredWidth="56rem"> <sqx-panel desiredWidth="56rem">
<div class="panel-header"> <div class="panel-header">

4
src/Squidex/app/features/schemas/pages/schemas/schemas-page.component.html

@ -1,9 +1,9 @@
<sqx-title message="{app} | Schemas" parameter1="app" [value1]="appsState.selectedApp.value.name"></sqx-title> <sqx-title message="{app} | Schemas" parameter1="app" [value1]="appsState.appName"></sqx-title>
<sqx-panel theme="dark" desiredWidth="30rem"> <sqx-panel theme="dark" desiredWidth="30rem">
<div class="panel-header"> <div class="panel-header">
<div class="panel-title-row"> <div class="panel-title-row">
<h3 class="panel-title">Schemas</h3> <h3 class="panel-title"><i class="icon-schemas"></i> Schemas</h3>
</div> </div>
<a class="panel-close" sqxParentLink isLazyLoaded="true"> <a class="panel-close" sqxParentLink isLazyLoaded="true">

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

@ -34,6 +34,14 @@ export class SchemasState {
public selectedSchema = new BehaviorSubject<SchemaDetailsDto | null>(null); public selectedSchema = new BehaviorSubject<SchemaDetailsDto | null>(null);
public selectedReferencedSchema = new BehaviorSubject<SchemaDetailsDto | null>(null); public selectedReferencedSchema = new BehaviorSubject<SchemaDetailsDto | null>(null);
public get schemaName() {
return this.selectedSchema.value!.name;
}
public get referencedSchemaName() {
return this.selectedReferencedSchema.value!.name;
}
private get appName() { private get appName() {
return this.appsState.appName; return this.appsState.appName;
} }

0
src/Squidex/app/framework/angular/autocomplete.component.html → src/Squidex/app/framework/angular/forms/autocomplete.component.html

0
src/Squidex/app/framework/angular/autocomplete.component.scss → src/Squidex/app/framework/angular/forms/autocomplete.component.scss

0
src/Squidex/app/framework/angular/autocomplete.component.ts → src/Squidex/app/framework/angular/forms/autocomplete.component.ts

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

0
src/Squidex/app/framework/angular/control-errors.component.html → src/Squidex/app/framework/angular/forms/control-errors.component.html

0
src/Squidex/app/framework/angular/control-errors.component.scss → src/Squidex/app/framework/angular/forms/control-errors.component.scss

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

0
src/Squidex/app/framework/angular/copy.directive.ts → src/Squidex/app/framework/angular/forms/copy.directive.ts

0
src/Squidex/app/framework/angular/date-time-editor.component.html → src/Squidex/app/framework/angular/forms/date-time-editor.component.html

0
src/Squidex/app/framework/angular/date-time-editor.component.scss → src/Squidex/app/framework/angular/forms/date-time-editor.component.scss

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

0
src/Squidex/app/framework/angular/dropdown.component.html → src/Squidex/app/framework/angular/forms/dropdown.component.html

0
src/Squidex/app/framework/angular/dropdown.component.scss → src/Squidex/app/framework/angular/forms/dropdown.component.scss

0
src/Squidex/app/framework/angular/dropdown.component.ts → src/Squidex/app/framework/angular/forms/dropdown.component.ts

0
src/Squidex/app/framework/angular/file-drop.directive.ts → src/Squidex/app/framework/angular/forms/file-drop.directive.ts

0
src/Squidex/app/framework/angular/focus-on-init.directive.spec.ts → src/Squidex/app/framework/angular/forms/focus-on-init.directive.spec.ts

0
src/Squidex/app/framework/angular/focus-on-init.directive.ts → src/Squidex/app/framework/angular/forms/focus-on-init.directive.ts

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

0
src/Squidex/app/framework/angular/jscript-editor.component.html → src/Squidex/app/framework/angular/forms/jscript-editor.component.html

0
src/Squidex/app/framework/angular/jscript-editor.component.scss → src/Squidex/app/framework/angular/forms/jscript-editor.component.scss

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

0
src/Squidex/app/framework/angular/json-editor.component.html → src/Squidex/app/framework/angular/forms/json-editor.component.html

0
src/Squidex/app/framework/angular/json-editor.component.scss → src/Squidex/app/framework/angular/forms/json-editor.component.scss

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

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

0
src/Squidex/app/framework/angular/progress-bar.component.ts → src/Squidex/app/framework/angular/forms/progress-bar.component.ts

0
src/Squidex/app/framework/angular/slider.component.html → src/Squidex/app/framework/angular/forms/slider.component.html

0
src/Squidex/app/framework/angular/slider.component.scss → src/Squidex/app/framework/angular/forms/slider.component.scss

0
src/Squidex/app/framework/angular/slider.component.ts → src/Squidex/app/framework/angular/forms/slider.component.ts

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

0
src/Squidex/app/framework/angular/stars.component.html → src/Squidex/app/framework/angular/forms/stars.component.html

0
src/Squidex/app/framework/angular/stars.component.scss → src/Squidex/app/framework/angular/forms/stars.component.scss

0
src/Squidex/app/framework/angular/stars.component.ts → src/Squidex/app/framework/angular/forms/stars.component.ts

0
src/Squidex/app/framework/angular/tag-editor.component.html → src/Squidex/app/framework/angular/forms/tag-editor.component.html

0
src/Squidex/app/framework/angular/tag-editor.component.scss → src/Squidex/app/framework/angular/forms/tag-editor.component.scss

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

0
src/Squidex/app/framework/angular/toggle.component.html → src/Squidex/app/framework/angular/forms/toggle.component.html

0
src/Squidex/app/framework/angular/toggle.component.scss → src/Squidex/app/framework/angular/forms/toggle.component.scss

0
src/Squidex/app/framework/angular/toggle.component.ts → src/Squidex/app/framework/angular/forms/toggle.component.ts

0
src/Squidex/app/framework/angular/validators.spec.ts → src/Squidex/app/framework/angular/forms/validators.spec.ts

0
src/Squidex/app/framework/angular/validators.ts → src/Squidex/app/framework/angular/forms/validators.ts

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

0
src/Squidex/app/framework/angular/http-extensions.ts → src/Squidex/app/framework/angular/http/http-extensions.ts

0
src/Squidex/app/framework/angular/dialog-renderer.component.html → src/Squidex/app/framework/angular/modals/dialog-renderer.component.html

0
src/Squidex/app/framework/angular/dialog-renderer.component.scss → src/Squidex/app/framework/angular/modals/dialog-renderer.component.scss

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

0
src/Squidex/app/framework/angular/modal-target.directive.ts → src/Squidex/app/framework/angular/modals/modal-target.directive.ts

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

0
src/Squidex/app/framework/angular/onboarding-tooltip.component.html → src/Squidex/app/framework/angular/modals/onboarding-tooltip.component.html

0
src/Squidex/app/framework/angular/onboarding-tooltip.component.scss → src/Squidex/app/framework/angular/modals/onboarding-tooltip.component.scss

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

0
src/Squidex/app/framework/angular/root-view.component.ts → src/Squidex/app/framework/angular/modals/root-view.component.ts

0
src/Squidex/app/framework/angular/tooltip.component.scss → src/Squidex/app/framework/angular/modals/tooltip.component.scss

0
src/Squidex/app/framework/angular/tooltip.component.ts → src/Squidex/app/framework/angular/modals/tooltip.component.ts

29
src/Squidex/app/framework/angular/panel.component.html

@ -0,0 +1,29 @@
<div #panel>
<div class="panel panel-{{theme}}" [@slideRight]>
<div class="panel-header">
<div class="panel-title-row">
<div class="float-right">
<ng-content select=[menu]></ng-content>
</div>
<h3 class="panel-title">
<ng-content select=[title]></ng-content>
</h3>
</div>
<a class="panel-close" sqxParentLink isLazyLoaded="true" *ngIf="showClose">
<i class="icon-close"></i>
</a>
</div>
<div class="panel-main">
<div class="panel-content {{contentClass}} {{showScrollbar ? 'panel-content-scroll' : ''}} {{isBlank ? 'panel-content-blank' : ''}}">
<ng-content select=[content]></ng-content>
</div>
<div class="panel-sidebar" *ngIf="showSidebar">
<ng-content select=[sidebar]></ng-content>>
</div>
</div>
</div>
</div>

2
src/Squidex/app/framework/angular/panel.component.scss

@ -0,0 +1,2 @@
@import '_mixins';
@import '_vars';

23
src/Squidex/app/framework/angular/panel.component.ts

@ -13,12 +13,8 @@ import { PanelContainerDirective } from './panel-container.directive';
@Component({ @Component({
selector: 'sqx-panel', selector: 'sqx-panel',
template: ` styleUrls: ['./panel.component.scss'],
<div #panel> templateUrl: './panel.component.html',
<div class="panel panel-{{theme}}" [@slideRight]>
<ng-content></ng-content>
</div>
</div>`,
animations: [ animations: [
slideRightAnimation slideRightAnimation
] ]
@ -32,6 +28,21 @@ export class PanelComponent implements AfterViewInit, OnDestroy, OnInit {
@Input() @Input()
public desiredWidth = '10rem'; public desiredWidth = '10rem';
@Input()
public isBlank = false;
@Input()
public showScrollbar = false;
@Input()
public showSidebar = false;
@Input()
public showClose = true;
@Input()
public contentClass = '';
@ViewChild('panel') @ViewChild('panel')
public panel: ElementRef; public panel: ElementRef;

0
src/Squidex/app/framework/angular/date-time.pipes.spec.ts → src/Squidex/app/framework/angular/pipes/date-time.pipes.spec.ts

0
src/Squidex/app/framework/angular/date-time.pipes.ts → src/Squidex/app/framework/angular/pipes/date-time.pipes.ts

0
src/Squidex/app/framework/angular/keys.pipe.spec.ts → src/Squidex/app/framework/angular/pipes/keys.pipe.spec.ts

0
src/Squidex/app/framework/angular/keys.pipe.ts → src/Squidex/app/framework/angular/pipes/keys.pipe.ts

0
src/Squidex/app/framework/angular/money.pipe.spec.ts → src/Squidex/app/framework/angular/pipes/money.pipe.spec.ts

0
src/Squidex/app/framework/angular/money.pipe.ts → src/Squidex/app/framework/angular/pipes/money.pipe.ts

0
src/Squidex/app/framework/angular/name.pipe.spec.ts → src/Squidex/app/framework/angular/pipes/name.pipe.spec.ts

0
src/Squidex/app/framework/angular/name.pipe.ts → src/Squidex/app/framework/angular/pipes/name.pipe.ts

0
src/Squidex/app/framework/angular/numbers.pipes.spec.ts → src/Squidex/app/framework/angular/pipes/numbers.pipes.spec.ts

0
src/Squidex/app/framework/angular/numbers.pipes.ts → src/Squidex/app/framework/angular/pipes/numbers.pipes.ts

0
src/Squidex/app/framework/angular/can-deactivate.guard.spec.ts → src/Squidex/app/framework/angular/routers/can-deactivate.guard.spec.ts

0
src/Squidex/app/framework/angular/can-deactivate.guard.ts → src/Squidex/app/framework/angular/routers/can-deactivate.guard.ts

0
src/Squidex/app/framework/angular/router-utils.spec.ts → src/Squidex/app/framework/angular/routers/router-utils.spec.ts

0
src/Squidex/app/framework/angular/router-utils.ts → src/Squidex/app/framework/angular/routers/router-utils.ts

77
src/Squidex/app/framework/declarations.ts

@ -5,53 +5,58 @@
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
*/ */
export * from './angular/forms/autocomplete.component';
export * from './angular/forms/confirm-click.directive';
export * from './angular/forms/control-errors.component';
export * from './angular/forms/copy.directive';
export * from './angular/forms/date-time-editor.component';
export * from './angular/forms/dropdown.component';
export * from './angular/forms/file-drop.directive';
export * from './angular/forms/focus-on-init.directive';
export * from './angular/forms/indeterminate-value.directive';
export * from './angular/forms/jscript-editor.component';
export * from './angular/forms/json-editor.component';
export * from './angular/forms/lowercase-input.directive';
export * from './angular/forms/progress-bar.component';
export * from './angular/forms/slider.component';
export * from './angular/forms/slugify-input.directive';
export * from './angular/forms/stars.component';
export * from './angular/forms/tag-editor.component';
export * from './angular/forms/toggle.component';
export * from './angular/forms/validators';
export * from './angular/http/http-extensions-impl';
export * from './angular/modals/dialog-renderer.component';
export * from './angular/modals/modal-target.directive';
export * from './angular/modals/modal-view.directive';
export * from './angular/modals/onboarding-tooltip.component';
export * from './angular/modals/tooltip.component';
export * from './angular/modals/root-view.component';
export * from './angular/pipes/date-time.pipes';
export * from './angular/pipes/keys.pipe';
export * from './angular/pipes/money.pipe';
export * from './angular/pipes/name.pipe';
export * from './angular/pipes/numbers.pipes';
export * from './angular/routers/can-deactivate.guard';
export * from './angular/routers/router-utils';
export * from './angular/animations'; export * from './angular/animations';
export * from './angular/autocomplete.component';
export * from './angular/can-deactivate.guard';
export * from './angular/confirm-click.directive';
export * from './angular/control-errors.component';
export * from './angular/copy.directive';
export * from './angular/date-time-editor.component';
export * from './angular/date-time.pipes';
export * from './angular/dialog-renderer.component';
export * from './angular/dropdown.component';
export * from './angular/file-drop.directive';
export * from './angular/focus-on-init.directive';
export * from './angular/http-extensions-impl';
export * from './angular/ignore-scrollbar.directive'; export * from './angular/ignore-scrollbar.directive';
export * from './angular/image-source.directive'; export * from './angular/image-source.directive';
export * from './angular/indeterminate-value.directive';
export * from './angular/jscript-editor.component';
export * from './angular/json-editor.component';
export * from './angular/keys.pipe';
export * from './angular/lowercase-input.directive';
export * from './angular/modal-target.directive';
export * from './angular/modal-view.directive';
export * from './angular/money.pipe';
export * from './angular/name.pipe';
export * from './angular/numbers.pipes';
export * from './angular/onboarding-tooltip.component';
export * from './angular/panel.component'; export * from './angular/panel.component';
export * from './angular/panel-container.directive'; export * from './angular/panel-container.directive';
export * from './angular/parent-link.directive'; export * from './angular/parent-link.directive';
export * from './angular/popup-link.directive'; export * from './angular/popup-link.directive';
export * from './angular/progress-bar.component';
export * from './angular/root-view.component';
export * from './angular/router-utils';
export * from './angular/scroll-active.directive'; export * from './angular/scroll-active.directive';
export * from './angular/shortcut.component'; export * from './angular/shortcut.component';
export * from './angular/slider.component';
export * from './angular/slugify-input.directive';
export * from './angular/sorted.directive'; export * from './angular/sorted.directive';
export * from './angular/stars.component';
export * from './angular/tag-editor.component';
export * from './angular/template-wrapper.directive'; export * from './angular/template-wrapper.directive';
export * from './angular/title.component'; export * from './angular/title.component';
export * from './angular/toggle.component';
export * from './angular/tooltip.component';
export * from './angular/user-report.component'; export * from './angular/user-report.component';
export * from './angular/validators';
export * from './configurations';
export * from './services/analytics.service'; export * from './services/analytics.service';
export * from './services/clipboard.service'; export * from './services/clipboard.service';
@ -73,4 +78,6 @@ export * from './utils/modal-view';
export * from './utils/pager'; export * from './utils/pager';
export * from './utils/string-helper'; export * from './utils/string-helper';
export * from './utils/types'; export * from './utils/types';
export * from './utils/version'; export * from './utils/version';
export * from './configurations';

13139
src/Squidex/package-lock.json

File diff suppressed because it is too large
Loading…
Cancel
Save