MOBILE-4616 chore: Make deprecated components standalone
parent
69dcf04b44
commit
55b8a74d88
|
@ -48,7 +48,6 @@ import { CoreSendMessageFormComponent } from './send-message-form/send-message-f
|
||||||
import { CoreShowPasswordComponent } from './show-password/show-password';
|
import { CoreShowPasswordComponent } from './show-password/show-password';
|
||||||
import { CoreSitePickerComponent } from './site-picker/site-picker';
|
import { CoreSitePickerComponent } from './site-picker/site-picker';
|
||||||
import { CoreSplitViewComponent } from './split-view/split-view';
|
import { CoreSplitViewComponent } from './split-view/split-view';
|
||||||
import { CoreStyleComponent } from './style/style';
|
|
||||||
import { CoreTabComponent } from './tabs/tab';
|
import { CoreTabComponent } from './tabs/tab';
|
||||||
import { CoreTabsComponent } from './tabs/tabs';
|
import { CoreTabsComponent } from './tabs/tabs';
|
||||||
import { CoreTabsOutletComponent } from './tabs-outlet/tabs-outlet';
|
import { CoreTabsOutletComponent } from './tabs-outlet/tabs-outlet';
|
||||||
|
@ -100,8 +99,6 @@ import { CoreSitesListComponent } from './sites-list/sites-list';
|
||||||
CoreShowPasswordComponent, // eslint-disable-line deprecation/deprecation
|
CoreShowPasswordComponent, // eslint-disable-line deprecation/deprecation
|
||||||
CoreSitePickerComponent,
|
CoreSitePickerComponent,
|
||||||
CoreSplitViewComponent,
|
CoreSplitViewComponent,
|
||||||
// eslint-disable-next-line deprecation/deprecation
|
|
||||||
CoreStyleComponent,
|
|
||||||
CoreSwipeSlidesComponent,
|
CoreSwipeSlidesComponent,
|
||||||
CoreTabComponent,
|
CoreTabComponent,
|
||||||
CoreTabsComponent,
|
CoreTabsComponent,
|
||||||
|
@ -156,8 +153,6 @@ import { CoreSitesListComponent } from './sites-list/sites-list';
|
||||||
CoreShowPasswordComponent, // eslint-disable-line deprecation/deprecation
|
CoreShowPasswordComponent, // eslint-disable-line deprecation/deprecation
|
||||||
CoreSitePickerComponent,
|
CoreSitePickerComponent,
|
||||||
CoreSplitViewComponent,
|
CoreSplitViewComponent,
|
||||||
// eslint-disable-next-line deprecation/deprecation
|
|
||||||
CoreStyleComponent,
|
|
||||||
CoreSwipeSlidesComponent,
|
CoreSwipeSlidesComponent,
|
||||||
CoreTabComponent,
|
CoreTabComponent,
|
||||||
CoreTabsComponent,
|
CoreTabsComponent,
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
import { CoreSharedModule } from '@/core/shared.module';
|
||||||
import { Component, ElementRef, Input, OnChanges } from '@angular/core';
|
import { Component, ElementRef, Input, OnChanges } from '@angular/core';
|
||||||
import { CoreDom } from '@singletons/dom';
|
import { CoreDom } from '@singletons/dom';
|
||||||
|
|
||||||
|
@ -24,11 +25,15 @@ import { CoreDom } from '@singletons/dom';
|
||||||
* Example:
|
* Example:
|
||||||
*
|
*
|
||||||
* <core-style [css]="'p { color: red; }'" prefix=".custom-rules"></core-style>
|
* <core-style [css]="'p { color: red; }'" prefix=".custom-rules"></core-style>
|
||||||
* @deprecated since 4.5.0. Not needed anymore, core-compile-html accepts now CSS code.
|
* @deprecated since 4.5. Not needed anymore, core-compile-html accepts now CSS code.
|
||||||
*/
|
*/
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'core-style',
|
selector: 'core-style',
|
||||||
template: '',
|
template: '',
|
||||||
|
standalone: true,
|
||||||
|
imports: [
|
||||||
|
CoreSharedModule,
|
||||||
|
],
|
||||||
})
|
})
|
||||||
export class CoreStyleComponent implements OnChanges {
|
export class CoreStyleComponent implements OnChanges {
|
||||||
|
|
||||||
|
|
|
@ -19,13 +19,11 @@ import { CoreBlockComponentsModule } from '@features/block/components/components
|
||||||
import { CoreCourseFormatComponent } from './course-format/course-format';
|
import { CoreCourseFormatComponent } from './course-format/course-format';
|
||||||
import { CoreCourseModuleComponent } from './module/module';
|
import { CoreCourseModuleComponent } from './module/module';
|
||||||
import { CoreCourseModuleCompletionComponent } from './module-completion/module-completion';
|
import { CoreCourseModuleCompletionComponent } from './module-completion/module-completion';
|
||||||
import { CoreCourseModuleDescriptionComponent } from './module-description/module-description';
|
|
||||||
import { CoreCourseCourseIndexComponent } from './course-index/course-index';
|
import { CoreCourseCourseIndexComponent } from './course-index/course-index';
|
||||||
import { CoreCourseTagAreaComponent } from './tag-area/tag-area';
|
import { CoreCourseTagAreaComponent } from './tag-area/tag-area';
|
||||||
import { CoreCourseUnsupportedModuleComponent } from './unsupported-module/unsupported-module';
|
import { CoreCourseUnsupportedModuleComponent } from './unsupported-module/unsupported-module';
|
||||||
import { CoreCourseModuleCompletionLegacyComponent } from './module-completion-legacy/module-completion-legacy';
|
import { CoreCourseModuleCompletionLegacyComponent } from './module-completion-legacy/module-completion-legacy';
|
||||||
import { CoreCourseModuleInfoComponent } from './module-info/module-info';
|
import { CoreCourseModuleInfoComponent } from './module-info/module-info';
|
||||||
import { CoreCourseModuleManualCompletionComponent } from './module-manual-completion/module-manual-completion';
|
|
||||||
import { CoreCourseModuleNavigationComponent } from './module-navigation/module-navigation';
|
import { CoreCourseModuleNavigationComponent } from './module-navigation/module-navigation';
|
||||||
import { CoreCourseModuleSummaryComponent } from './module-summary/module-summary';
|
import { CoreCourseModuleSummaryComponent } from './module-summary/module-summary';
|
||||||
import { CoreCourseCourseIndexTourComponent } from './course-index-tour/course-index-tour';
|
import { CoreCourseCourseIndexTourComponent } from './course-index-tour/course-index-tour';
|
||||||
|
@ -38,11 +36,7 @@ import { CoreCourseModuleCompletionDetailsComponent } from './module-completion-
|
||||||
CoreCourseModuleComponent,
|
CoreCourseModuleComponent,
|
||||||
CoreCourseModuleCompletionComponent,
|
CoreCourseModuleCompletionComponent,
|
||||||
CoreCourseModuleCompletionLegacyComponent,
|
CoreCourseModuleCompletionLegacyComponent,
|
||||||
// eslint-disable-next-line deprecation/deprecation
|
|
||||||
CoreCourseModuleDescriptionComponent,
|
|
||||||
CoreCourseModuleInfoComponent,
|
CoreCourseModuleInfoComponent,
|
||||||
// eslint-disable-next-line deprecation/deprecation
|
|
||||||
CoreCourseModuleManualCompletionComponent,
|
|
||||||
CoreCourseCourseIndexComponent,
|
CoreCourseCourseIndexComponent,
|
||||||
CoreCourseCourseIndexTourComponent,
|
CoreCourseCourseIndexTourComponent,
|
||||||
CoreCourseTagAreaComponent,
|
CoreCourseTagAreaComponent,
|
||||||
|
@ -61,11 +55,7 @@ import { CoreCourseModuleCompletionDetailsComponent } from './module-completion-
|
||||||
CoreCourseModuleComponent,
|
CoreCourseModuleComponent,
|
||||||
CoreCourseModuleCompletionComponent,
|
CoreCourseModuleCompletionComponent,
|
||||||
CoreCourseModuleCompletionLegacyComponent,
|
CoreCourseModuleCompletionLegacyComponent,
|
||||||
// eslint-disable-next-line deprecation/deprecation
|
|
||||||
CoreCourseModuleDescriptionComponent,
|
|
||||||
CoreCourseModuleInfoComponent,
|
CoreCourseModuleInfoComponent,
|
||||||
// eslint-disable-next-line deprecation/deprecation
|
|
||||||
CoreCourseModuleManualCompletionComponent,
|
|
||||||
CoreCourseCourseIndexComponent,
|
CoreCourseCourseIndexComponent,
|
||||||
CoreCourseCourseIndexTourComponent,
|
CoreCourseCourseIndexTourComponent,
|
||||||
CoreCourseTagAreaComponent,
|
CoreCourseTagAreaComponent,
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
import { ContextLevel } from '@/core/constants';
|
import { ContextLevel } from '@/core/constants';
|
||||||
|
import { CoreSharedModule } from '@/core/shared.module';
|
||||||
import { Component, HostBinding, Input } from '@angular/core';
|
import { Component, HostBinding, Input } from '@angular/core';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -37,6 +38,10 @@ import { Component, HostBinding, Input } from '@angular/core';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'core-course-module-description',
|
selector: 'core-course-module-description',
|
||||||
templateUrl: 'core-course-module-description.html',
|
templateUrl: 'core-course-module-description.html',
|
||||||
|
standalone: true,
|
||||||
|
imports: [
|
||||||
|
CoreSharedModule,
|
||||||
|
],
|
||||||
})
|
})
|
||||||
export class CoreCourseModuleDescriptionComponent {
|
export class CoreCourseModuleDescriptionComponent {
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
import { CoreSharedModule } from '@/core/shared.module';
|
||||||
import { Component, EventEmitter, Input, OnChanges, OnDestroy, OnInit, Output, SimpleChange } from '@angular/core';
|
import { Component, EventEmitter, Input, OnChanges, OnDestroy, OnInit, Output, SimpleChange } from '@angular/core';
|
||||||
import { CoreCourseHelper, CoreCourseModuleCompletionData } from '@features/course/services/course-helper';
|
import { CoreCourseHelper, CoreCourseModuleCompletionData } from '@features/course/services/course-helper';
|
||||||
import { CoreUser } from '@features/user/services/user';
|
import { CoreUser } from '@features/user/services/user';
|
||||||
|
@ -26,6 +27,10 @@ import { CoreEventObserver, CoreEvents } from '@singletons/events';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'core-course-module-manual-completion',
|
selector: 'core-course-module-manual-completion',
|
||||||
templateUrl: 'core-course-module-manual-completion.html',
|
templateUrl: 'core-course-module-manual-completion.html',
|
||||||
|
standalone: true,
|
||||||
|
imports: [
|
||||||
|
CoreSharedModule,
|
||||||
|
],
|
||||||
})
|
})
|
||||||
export class CoreCourseModuleManualCompletionComponent implements OnInit, OnChanges, OnDestroy {
|
export class CoreCourseModuleManualCompletionComponent implements OnInit, OnChanges, OnDestroy {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue