Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Merge remote-tracking branch 'origin/dev' into feature/spot-form-field

Oliver Günthere76ad458bc59
diff --cc frontend/src/app/features/invite-user-modal/principal/principal.component.html
index b467b7af43b,d07c17dc105..4b42630c9be
--- a/frontend/src/app/features/invite-user-modal/principal/principal.component.html
+++ b/frontend/src/app/features/invite-user-modal/principal/principal.component.html
@@@ -46,12 -46,12 +46,12 @@@
<div
slot="errors"
- class="op-form-field--error"
+ class="spot-form-field--error"
- *ngIf="principalControl?.touched && principalControl?.invalid"
+ *ngIf="principalControl?.invalid"
>
- {{ text.required[type] }}
+ {{ text.principal.required[type] }}
</div>
- </op-form-field>
+ </spot-form-field>
<op-dynamic-form
*ngIf="isNewPrincipal && type === PrincipalType.User && userDynamicFieldConfig.schema"
@@@ -60,10 -60,50 +60,50 @@@
[formUrl]="apiV3Service.users.form.path"
[handleSubmit]="false"
></op-dynamic-form>
+
- <op-form-field
++ <spot-form-field
+ [label]="text.role.label()"
+ required
+ >
+ <op-ium-role-search
- [opFormBinding]="roleControl"
++ [spotFormBinding]="roleControl"
+ slot="input"
+ ></op-ium-role-search>
+ <p
+ class="op-form-field--description"
+ slot="help-text"
+ [innerHtml]="text.role.description()"
+ ></p>
-
++
+ <div
+ slot="errors"
+ class="op-form-field--error"
+ *ngIf="roleControl?.invalid"
+ >
+ {{ text.role.required }}
+ </div>
- </op-form-field>
++ </spot-form-field>
+
- <op-form-field
++ <op-form-field
+ [label]="text.message.label"
+ *ngIf="type !== PrincipalType.Placeholder"
+ >
-
++
+ <textarea
+ class="op-input op-ium-invite-message-field"
+ [formControl]="messageControl"
+ slot="input"
+ #input>
+ </textarea>
+
+ <p class="op-form-field--description" slot="help-text">
+ {{ text.message.description() }}
+ </p>
+ </op-form-field>
</div>
- <div class="spot-modal--footer spot-action-bar">
- <div class="spot-action-bar--right">
+ <div class="spot-action-bar">
+ <div class="spot-action-bar--left">
<button
type="button"
class="button button_no-margin spot-action-bar--action"
diff --cc frontend/src/app/features/invite-user-modal/project-selection/project-selection.component.html
index c1ce75d75f6,4feedfdff11..f904891afb9
--- a/frontend/src/app/features/invite-user-modal/project-selection/project-selection.component.html
+++ b/frontend/src/app/features/invite-user-modal/project-selection/project-selection.component.html
@@@ -59,12 -59,18 +59,18 @@@
{{ text.type.required }}
</div>
</div>
- </op-form-field>
+ </spot-form-field>
</div>
- <div class="spot-modal--footer spot-action-bar">
+ <div class="spot-action-bar">
<div class="spot-action-bar--right">
+ <button
+ type="button"
+ class="button button_no-margin spot-action-bar--action"
+ (click)="close.emit()"> {{ text.cancelButton }}
+ </button>
<button class="button button_no-margin -highlight spot-action-bar--action">{{ text.nextButton }}</button>
+
</div>
</div>
</form>
diff --cc frontend/src/app/features/invite-user-modal/summary/summary.component.html
index ff3884c0d1f,0f7be49800d..1e3963203bb
--- a/frontend/src/app/features/invite-user-modal/summary/summary.component.html
+++ b/frontend/src/app/features/invite-user-modal/summary/summary.component.html
@@@ -24,11 -24,11 +24,11 @@@
*ngIf="type !== PrincipalType.Placeholder && message"
>
<p slot="input" class="op-ium-summary-message">{{ message }}</p>
- </op-form-field>
+ </spot-form-field>
</div>
- <div class="spot-modal--footer spot-action-bar">
- <div class="spot-action-bar--right">
+ <div class="spot-action-bar">
+ <div class="spot-action-bar--left">
<button
type="button"
class="button button_no-margin spot-action-bar--action"
diff --cc frontend/src/app/shared/shared.module.ts
index 3ba454bf60f,44049a236e6..59e6c5e8483
--- a/frontend/src/app/shared/shared.module.ts
+++ b/frontend/src/app/shared/shared.module.ts
@@@ -76,8 -76,10 +76,7 @@@ import { AddSectionDropdownComponent }
import { HideSectionLinkComponent } from './components/hide-section/hide-section-link/hide-section-link.component';
import { RemoteFieldUpdaterComponent } from './components/remote-field-updater/remote-field-updater.component';
import { ShowSectionDropdownComponent } from './components/hide-section/show-section-dropdown.component';
- import { SlideToggleComponent } from './components/slide-toggle/slide-toggle.component';
import { DynamicBootstrapModule } from './components/dynamic-bootstrap/dynamic-bootstrap.module';
-import { OpCheckboxFieldComponent } from './components/forms/checkbox-field/checkbox-field.component';
-import { OpFormFieldComponent } from './components/forms/form-field/form-field.component';
-import { OpFormBindingDirective } from './components/forms/form-field/form-binding.directive';
import { OpOptionListComponent } from './components/option-list/option-list.component';
import { OpSidemenuComponent } from './components/sidemenu/sidemenu.component';
import { OpProjectIncludeComponent } from './components/project-include/project-include.component';
@@@ -186,10 -188,9 +185,6 @@@ export function bootstrapModule(injecto
DynamicModule,
- // filter
-
- SlideToggleComponent,
-
- OpCheckboxFieldComponent,
- OpFormFieldComponent,
- OpFormBindingDirective,
OpOptionListComponent,
OpSidemenuComponent,
OpProjectIncludeComponent,
@@@ -245,9 -246,9 +240,6 @@@
HomescreenNewFeaturesBlockComponent,
- // filter
- SlideToggleComponent,
-
- OpCheckboxFieldComponent,
- OpFormFieldComponent,
- OpFormBindingDirective,
OpOptionListComponent,
OpSidemenuComponent,
OpProjectIncludeComponent,
diff --cc frontend/src/app/spot/spot.module.ts
index 965fec6e8ce,32a8044ea50..1a469454944
--- a/frontend/src/app/spot/spot.module.ts
+++ b/frontend/src/app/spot/spot.module.ts
@@@ -1,8 -1,6 +1,7 @@@
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
+import { ReactiveFormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
- import { A11yModule } from '@angular/cdk/a11y';
import { UIRouterModule } from '@uirouter/angular';
import { I18nService } from 'core-app/core/i18n/i18n.service';
import { SPOT_DOCS_ROUTES } from './spot.routes';
@@@ -22,9 -18,9 +22,10 @@@ import { SpotSelectorFieldComponent } f
// Routes for /spot-docs
UIRouterModule.forChild({ states: SPOT_DOCS_ROUTES }),
FormsModule,
+ ReactiveFormsModule,
CommonModule,
],
+
providers: [
I18nService,
],
@@@ -36,13 -34,12 +39,15 @@@
SpotTextFieldComponent,
SpotFilterChipComponent,
SpotDropModalComponent,
+ SpotFormFieldComponent,
+ SpotFormBindingDirective,
SpotTooltipComponent,
+ SpotSelectorFieldComponent,
],
+
exports: [
SpotCheckboxComponent,
+ SpotSwitchComponent,
SpotToggleComponent,
SpotTextFieldComponent,
SpotFilterChipComponent,