Skip to content

Commit

Permalink
docs: fix opening examples in stackblitz (#1299)
Browse files Browse the repository at this point in the history
  • Loading branch information
vt-allianz authored and GitHub Enterprise committed Aug 26, 2024
1 parent 5595eaf commit ea96a78
Show file tree
Hide file tree
Showing 25 changed files with 70 additions and 68 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import {
NxErrorComponent,
],
})
export class ComparisonTableErrorExample {
export class ComparisonTableErrorExampleComponent {
constructor() {}
control = new FormControl(null);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { BreakdownTableExpertExampleComponent } from './breakdown-table-expert/b
import { ComparisonTableExampleComponent } from './comparison-table/comparison-table-example';
import { ComparisonTableDisabledColumnsExampleComponent } from './comparison-table-disabled-columns/comparison-table-disabled-columns-example';
import { ComparisonTableDynamicExampleComponent } from './comparison-table-dynamic/comparison-table-dynamic-example';
import { ComparisonTableErrorExample } from './comparison-table-error/comparison-table-error-example';
import { ComparisonTableErrorExampleComponent } from './comparison-table-error/comparison-table-error-example';
import { ComparisonTableExpandableAreaExampleComponent } from './comparison-table-expandable-area/comparison-table-expandable-area-example';
import { ComparisonTableFormElementsExampleComponent } from './comparison-table-form-elements/comparison-table-form-elements-example';
import { ComparisonTableHiddenColumnsExampleComponent } from './comparison-table-hidden-columns/comparison-table-hidden-columns-example';
Expand All @@ -33,7 +33,7 @@ import { RecommendationTableExampleComponent } from './recommendation-table/reco
import { RecommendationTableExpertExampleComponent } from './recommendation-table-expert/recommendation-table-expert-example';

const EXAMPLES = [
ComparisonTableErrorExample,
ComparisonTableErrorExampleComponent,
ComparisonTableExampleComponent,
ComparisonTableStaticExampleComponent,
ComparisonTableDisabledColumnsExampleComponent,
Expand Down Expand Up @@ -75,7 +75,7 @@ const EXAMPLES = [
export class ComparisonExamplesModule {
static components() {
return {
'comparison-table-error': ComparisonTableErrorExample,
'comparison-table-error': ComparisonTableErrorExampleComponent,
'comparison-table': ComparisonTableExampleComponent,
'comparison-table-static': ComparisonTableStaticExampleComponent,
'comparison-table-disabled-columns':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { DatefieldMinMaxExampleComponent } from './datefield-min-max/datefield-m
import { DatefieldParsingExampleComponent } from './datefield-parsing/datefield-parsing-example';
import { DatefieldRangeExampleComponent } from './datefield-range/datefield-range-example';
import { DatefieldReactiveExampleComponent } from './datefield-reactive/datefield-reactive-example';
import { DatefieldReadonlyExample } from './datefield-readonly/datefield-readonly-example';
import { DatefieldReadonlyExampleComponent } from './datefield-readonly/datefield-readonly-example';
import { DatefieldScrollStrategyProviderExampleComponent } from './datefield-scroll-strategy-provider/datefield-scroll-strategy-provider-example';
import { DatefieldStartviewExampleComponent } from './datefield-startview/datefield-startview-example';
import { DatefieldToggleFocusExampleComponent } from './datefield-toggle-focus/datefield-toggle-focus-example';
Expand All @@ -43,7 +43,7 @@ const EXAMPLES = [
DatefieldStartviewExampleComponent,
DatefieldToggleFocusExampleComponent,
DatefieldScrollStrategyProviderExampleComponent,
DatefieldReadonlyExample,
DatefieldReadonlyExampleComponent,
];

@NgModule({
Expand Down Expand Up @@ -81,7 +81,7 @@ export class DatefieldExamplesModule {
'datefield-toggle-focus': DatefieldToggleFocusExampleComponent,
'datefield-scroll-strategy-provider':
DatefieldScrollStrategyProviderExampleComponent,
'datefield-readonly': DatefieldReadonlyExample,
'datefield-readonly': DatefieldReadonlyExampleComponent,
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { NxInputModule } from '@aposin/ng-aquila/input';
NxInputModule,
],
})
export class DatefieldReadonlyExample {
export class DatefieldReadonlyExampleComponent {
adapter = inject(NxDateAdapter);
currentDate = this.adapter.today();
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import {
NxCheckboxComponent,
],
})
export class LicencePlateDisabledExample {
export class LicencePlateDisabledExampleComponent {
disabled = true;
value = '';
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import { NxInputModule } from '@aposin/ng-aquila/input';
import { NxLicencePlateModule } from '@aposin/ng-aquila/licence-plate';

import { ExamplesSharedModule } from '../examples-shared.module';
import { LicencePlateDisabledExample } from './licence-plate-disabled/licence-plate-disabled-example';
import { LicencePlateDisabledExampleComponent } from './licence-plate-disabled/licence-plate-disabled-example';
import { LicencePlateEuroExampleComponent } from './licence-plate-euro/licence-plate-euro-example';
import { LicencePlateExpertExample } from './licence-plate-expert/licence-plate-expert-example';
import { LicencePlateExpertStatesExample } from './licence-plate-expert-states/licence-plate-expert-states-example';
import { LicencePlateNgmodelExample } from './licence-plate-ngmodel/licence-plate-ngmodel-example';
import { LicencePlateExpertExampleComponent } from './licence-plate-expert/licence-plate-expert-example';
import { LicencePlateExpertStatesExampleComponent } from './licence-plate-expert-states/licence-plate-expert-states-example';
import { LicencePlateNgmodelExampleComponent } from './licence-plate-ngmodel/licence-plate-ngmodel-example';
import { LicencePlateOtherExampleComponent } from './licence-plate-other/licence-plate-other-example';
import { LicencePlateReactiveExample } from './licence-plate-reactive/licence-plate-reactive-example';
import { LicencePlateReactiveExampleComponent } from './licence-plate-reactive/licence-plate-reactive-example';
import { LicencePlateSeasonalExampleComponent } from './licence-plate-seasonal/licence-plate-seasonal-example';
import { LicencePlateSpecialExampleComponent } from './licence-plate-special/licence-plate-special-example';
import { LicencePlateStandardExampleComponent } from './licence-plate-standard/licence-plate-standard-example';
Expand All @@ -25,11 +25,11 @@ const EXAMPLES = [
LicencePlateSpecialExampleComponent,
LicencePlateOtherExampleComponent,
LicencePlateEuroExampleComponent,
LicencePlateNgmodelExample,
LicencePlateReactiveExample,
LicencePlateExpertStatesExample,
LicencePlateDisabledExample,
LicencePlateExpertExample,
LicencePlateNgmodelExampleComponent,
LicencePlateReactiveExampleComponent,
LicencePlateExpertStatesExampleComponent,
LicencePlateDisabledExampleComponent,
LicencePlateExpertExampleComponent,
];

@NgModule({
Expand All @@ -55,11 +55,12 @@ export class LicencePlateExamplesModule {
'licence-plate-special': LicencePlateSpecialExampleComponent,
'licence-plate-other': LicencePlateOtherExampleComponent,
'licence-plate-euro': LicencePlateEuroExampleComponent,
'licence-plate-ngmodel': LicencePlateNgmodelExample,
'licence-plate-reactive': LicencePlateReactiveExample,
'licence-plate-expert': LicencePlateExpertExample,
'licence-plate-expert-states': LicencePlateExpertStatesExample,
'licence-plate-disabled': LicencePlateDisabledExample,
'licence-plate-ngmodel': LicencePlateNgmodelExampleComponent,
'licence-plate-reactive': LicencePlateReactiveExampleComponent,
'licence-plate-expert': LicencePlateExpertExampleComponent,
'licence-plate-expert-states':
LicencePlateExpertStatesExampleComponent,
'licence-plate-disabled': LicencePlateDisabledExampleComponent,
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import {
NxCheckboxComponent,
],
})
export class LicencePlateExpertStatesExample {
export class LicencePlateExpertStatesExampleComponent {
disabled = false;
readonly = false;
value = '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ import {
JsonPipe,
],
})
export class LicencePlateExpertExample {
export class LicencePlateExpertExampleComponent {
licencePlateModel: {
type: NxLicencePlateType;
country: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ import {
NxFormfieldErrorDirective,
],
})
export class LicencePlateNgmodelExample {
export class LicencePlateNgmodelExampleComponent {
model = '';
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import {
JsonPipe,
],
})
export class LicencePlateReactiveExample {
export class LicencePlateReactiveExampleComponent {
licencePlateForm: FormGroup;

constructor() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ import { ModalDataInjectionExampleComponent } from './modal-data-injection/modal
import { ModalFixedWidthExampleComponent } from './modal-fixed-width/modal-fixed-width-example';
import { ModalFullscreenExampleComponent } from './modal-fullscreen/modal-fullscreen-example';
import { ModalOpeningExampleComponent } from './modal-opening/modal-opening-example';
import { ModalStatusExample } from './modal-status/modal-status-example';
import { ModalStatusExampleComponent } from './modal-status/modal-status-example';
import { ModalUnsavedExampleComponent } from './modal-unsaved/modal-unsaved-example';
import { ModalWithDirectionExampleComponent } from './modal-with-direction/modal-with-direction-example';

const EXAMPLES = [
ModalStatusExample,
ModalStatusExampleComponent,
ModalUnsavedExampleComponent,
ModalBasicExampleComponent,
ModalClosingExampleComponent,
Expand Down Expand Up @@ -55,7 +55,7 @@ const EXAMPLES = [
export class ModalExamplesModule {
static components() {
return {
'modal-status': ModalStatusExample,
'modal-status': ModalStatusExampleComponent,
'modal-unsaved': ModalUnsavedExampleComponent,
'modal-basic': ModalBasicExampleComponent,
'modal-closing': ModalClosingExampleComponent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
NxModalActionsDirective,
],
})
export class ModalStatusExample {
export class ModalStatusExampleComponent {
dialogRef?: NxModalRef<any>;

status!: NxStatusIconType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ import { NumberStepperFormattingExampleComponent } from './number-stepper-format
import { NumberStepperLocalizeExampleComponent } from './number-stepper-localize/number-stepper-localize-example';
import { NumberStepperNegativeExampleComponent } from './number-stepper-negative/number-stepper-negative-example';
import { NumberStepperReactiveExampleComponent } from './number-stepper-reactive/number-stepper-reactive-example';
import { NumberStepperReadonlyInputExample } from './number-stepper-readonly-input/number-stepper-readonly-input-example';
import { NumberStepperReadonlyInputExampleComponent } from './number-stepper-readonly-input/number-stepper-readonly-input-example';
import { NumberStepperSimpleBindingExampleComponent } from './number-stepper-simple-binding/number-stepper-simple-binding-example';
import { NumberStepperSizesExampleComponent } from './number-stepper-sizes/number-stepper-sizes-example';
import { NumberStepperStandaloneExampleComponent } from './number-stepper-standalone/number-stepper-standalone-example';
import { NumberStepperTemplateDrivenExampleComponent } from './number-stepper-template-driven/number-stepper-template-driven-example';
import { NumberStepperValidationExampleComponent } from './number-stepper-validation/number-stepper-validation-example';

const EXAMPLES = [
NumberStepperReadonlyInputExample,
NumberStepperReadonlyInputExampleComponent,
NumberStepperAccessibilityExampleComponent,
NumberStepperAdditionsExampleComponent,
NumberStepperAutoResizingExampleComponent,
Expand Down Expand Up @@ -59,7 +59,8 @@ const EXAMPLES = [
export class NumberExamplesModule {
static components() {
return {
'number-stepper-readonly-input': NumberStepperReadonlyInputExample,
'number-stepper-readonly-input':
NumberStepperReadonlyInputExampleComponent,
'number-stepper-a11y': NumberStepperAccessibilityExampleComponent,
'number-stepper-additions': NumberStepperAdditionsExampleComponent,
'number-stepper-auto-resizing':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ import { NxNumberStepperComponent } from '@aposin/ng-aquila/number-stepper';
standalone: true,
imports: [NxNumberStepperComponent],
})
export class NumberStepperReadonlyInputExample {}
export class NumberStepperReadonlyInputExampleComponent {}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { NxProgressbarComponent } from '@aposin/ng-aquila/progressbar';
imports: [NxProgressbarComponent],
standalone: true,
})
export class ProgressbarCustomRangeExample implements OnInit {
export class ProgressbarCustomRangeExampleComponent implements OnInit {
value = 15;
min = 5;
max = 80;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { NxProgressbarModule } from '@aposin/ng-aquila/progressbar';

import { ProgressbarExampleComponent } from './progressbar/progressbar-example';
import { ProgressbarBasicExampleComponent } from './progressbar-basic/progressbar-basic-example';
import { ProgressbarCustomRangeExample } from './progressbar-custom-range/progressbar-custom-range-example';
import { ProgressbarCustomRangeExampleComponent } from './progressbar-custom-range/progressbar-custom-range-example';

const EXAMPLES = [
ProgressbarExampleComponent,
ProgressbarBasicExampleComponent,
ProgressbarCustomRangeExample,
ProgressbarCustomRangeExampleComponent,
];

@NgModule({
Expand All @@ -20,7 +20,7 @@ export class ProgressbarExamplesModule {
return {
progressbar: ProgressbarExampleComponent,
'progressbar-basic': ProgressbarBasicExampleComponent,
'progressbar-custom-range': ProgressbarCustomRangeExample,
'progressbar-custom-range': ProgressbarCustomRangeExampleComponent,
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { NxRadioModule } from '@aposin/ng-aquila/radio-button';
NxButtonComponent,
],
})
export class RadioButtonErrorRetailExample {
export class RadioButtonErrorRetailExampleComponent {
readonly testForm = this.fb.group({
radioTestReactive: [null, Validators.required],
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { NxRadioModule } from '@aposin/ng-aquila/radio-button';
import { ExamplesSharedModule } from '../examples-shared.module';
import { RadioButtonExampleComponent } from './radio-button/radio-button-example';
import { RadioButtonDisabledExampleComponent } from './radio-button-disabled/radio-button-disabled-example';
import { RadioButtonErrorRetailExample } from './radio-button-error-retail/radio-button-error-retail-example';
import { RadioButtonErrorRetailExampleComponent } from './radio-button-error-retail/radio-button-error-retail-example';
import { RadioButtonEventExampleComponent } from './radio-button-event/radio-button-event-example';
import { RadioButtonFormExampleComponent } from './radio-button-form/radio-button-form-example';
import { RadioButtonGroupExampleComponent } from './radio-button-group/radio-button-group-example';
Expand All @@ -18,7 +18,7 @@ import { RadioButtonSampleExampleComponent } from './radio-button-sample/radio-b
import { RadioButtonSizesExampleComponent } from './radio-button-sizes/radio-button-sizes-example';

const EXAMPLES = [
RadioButtonErrorRetailExample,
RadioButtonErrorRetailExampleComponent,
RadioButtonExampleComponent,
RadioButtonDisabledExampleComponent,
RadioButtonEventExampleComponent,
Expand All @@ -40,7 +40,7 @@ const EXAMPLES = [
export class RadioExamplesModule {
static components() {
return {
'radio-button-error-retail': RadioButtonErrorRetailExample,
'radio-button-error-retail': RadioButtonErrorRetailExampleComponent,
'radio-button': RadioButtonExampleComponent,
'radio-button-disabled': RadioButtonDisabledExampleComponent,
'radio-button-event': RadioButtonEventExampleComponent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<thead>
<tr nxTableRow>
@for (option of options; track option) { @if
(selected?.includes(option.value)) {
(selected.includes(option.value)) {
<th nxHeaderCell>{{option.label}}</th>
} }
<!-- <th
Expand All @@ -47,27 +47,27 @@
<tbody>
@for (item of tableElements; track item) {
<tr nxTableRow>
@if (selected?.includes('product')) {
@if (selected.includes('product')) {
<td nxTableCell>{{item.product}}</td>
} @if (selected?.includes('contractNumber')) {
} @if (selected.includes('contractNumber')) {
<td nxTableCell>{{item.contractNumber}}</td>
} @if (selected?.includes('desc')) {
} @if (selected.includes('desc')) {
<td nxTableCell>{{item.desc}}</td>
} @if (selected?.includes('website')) {
} @if (selected.includes('website')) {
<td nxTableCell>
<nx-link><a routerLink="#">{{item.website}}</a></nx-link>
</td>
} @if (selected?.includes('endingAt')) {
} @if (selected.includes('endingAt')) {
<td nxTableCell>{{item.endingAt}}</td>
} @if (selected?.includes('statusText')) {
} @if (selected.includes('statusText')) {
<td nxTableCell>
<nx-badge [type]="item.status">
{{item.statusText}}
</nx-badge>
</td>
}
</tr>
} @if (!selected?.length) {
} @if (!selected.length) {
<tr nxTableRow>
<td nxTableCell style="text-align: center">
All table columns are currently hidden.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import { NxTableModule } from '@aposin/ng-aquila/table';
NxContextMenuModule,
],
})
export class TableCoumnHidingExampleComponent {
export class TableColumnHidingExampleComponent {
constructor(private readonly _cdr: ChangeDetectorRef) {}
tableElements = [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {
NxTableCellComponent,
],
})
export class TableColumnReorderExample {
export class TableColumnReorderExampleComponent {
header = [
{ title: 'ID', field: 'id' },
{ title: 'Product', field: 'product' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
NxBadgeComponent,
],
})
export class TableColumnResizeExample {
export class TableColumnResizeExampleComponent {
tableElements = [
{
product: 'Car',
Expand Down
Loading

0 comments on commit ea96a78

Please sign in to comment.