@eui/cli 15.4.1 → 15.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.version.properties +1 -1
- package/LICENSE +296 -296
- package/README.md +26 -26
- package/bin/eui-cli.js +70 -70
- package/lib/build.js +153 -153
- package/lib/cli.js +111 -111
- package/lib/config.js +54 -54
- package/lib/generators.js +64 -64
- package/lib/install.js +54 -54
- package/lib/maven-build/build.xml +115 -115
- package/lib/maven-build/pom.xml +64 -64
- package/lib/post-build.js +33 -33
- package/lib/skeletons/_angular/base/.browserslistrc +16 -16
- package/lib/skeletons/_angular/base/.editorconfig +16 -16
- package/lib/skeletons/_angular/base/.euirc.json +8 -8
- package/lib/skeletons/_angular/base/.stylelintrc +24 -24
- package/lib/skeletons/_angular/base/README.md +26 -26
- package/lib/skeletons/_angular/base/angular.json +176 -176
- package/lib/skeletons/_angular/base/gitignore_TO_REPLACE +50 -50
- package/lib/skeletons/_angular/base/mock/app/models/user.js +8 -8
- package/lib/skeletons/_angular/base/mock/app/routes/index.js +5 -5
- package/lib/skeletons/_angular/base/mock/app/routes/user_routes.js +24 -24
- package/lib/skeletons/_angular/base/mock/db/db.json +12 -12
- package/lib/skeletons/_angular/base/mock/server.js +21 -21
- package/lib/skeletons/_angular/base/package.json +24 -24
- package/lib/skeletons/_angular/base/proxy-mock.conf.json +6 -6
- package/lib/skeletons/_angular/base/proxy.conf.json +6 -6
- package/lib/skeletons/_angular/base/src/.eslintrc.json +118 -118
- package/lib/skeletons/_angular/base/src/app/app-routing.module.ts +17 -17
- package/lib/skeletons/_angular/base/src/app/app-starter.service.ts +66 -66
- package/lib/skeletons/_angular/base/src/app/app.component.html +29 -29
- package/lib/skeletons/_angular/base/src/app/app.component.ts +51 -51
- package/lib/skeletons/_angular/base/src/app/app.module.ts +35 -35
- package/lib/skeletons/_angular/base/src/app/core/core.module.ts +87 -87
- package/lib/skeletons/_angular/base/src/app/core/reducers/index.ts +31 -31
- package/lib/skeletons/_angular/base/src/app/features/home/home-routing.module.ts +15 -15
- package/lib/skeletons/_angular/base/src/app/features/home/home.component.html +39 -39
- package/lib/skeletons/_angular/base/src/app/features/home/home.component.ts +11 -11
- package/lib/skeletons/_angular/base/src/app/features/home/home.module.ts +18 -18
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page1/page1.component.html +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page1/page1.component.ts +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page2/page2.component.html +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page2/page2.component.ts +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module1/module1-routing.module.ts +18 -18
- package/lib/skeletons/_angular/base/src/app/features/module1/module1.component.html +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module1/module1.component.ts +8 -8
- package/lib/skeletons/_angular/base/src/app/features/module1/module1.module.ts +21 -21
- package/lib/skeletons/_angular/base/src/app/features/module2/module2-routing.module.ts +16 -16
- package/lib/skeletons/_angular/base/src/app/features/module2/module2.component.html +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module2/module2.component.ts +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module2/module2.module.ts +17 -17
- package/lib/skeletons/_angular/base/src/app/shared/shared.module.ts +45 -45
- package/lib/skeletons/_angular/base/src/app/shared/testing/router.mock.ts +18 -18
- package/lib/skeletons/_angular/base/src/assets/config/env-json-config-dev.json +8 -8
- package/lib/skeletons/_angular/base/src/assets/config/env-json-config-prod.json +8 -8
- package/lib/skeletons/_angular/base/src/assets/config/env-json-config.json +7 -7
- package/lib/skeletons/_angular/base/src/assets/i18n/en.json +6 -6
- package/lib/skeletons/_angular/base/src/assets/i18n/fr.json +6 -6
- package/lib/skeletons/_angular/base/src/config/global.ts +20 -20
- package/lib/skeletons/_angular/base/src/config/index.ts +8 -8
- package/lib/skeletons/_angular/base/src/config/modules.ts +7 -7
- package/lib/skeletons/_angular/base/src/dummy.spec.ts +6 -6
- package/lib/skeletons/_angular/base/src/environments/environment.prod.ts +11 -11
- package/lib/skeletons/_angular/base/src/environments/environment.ts +11 -11
- package/lib/skeletons/_angular/base/src/index.html +21 -21
- package/lib/skeletons/_angular/base/src/karma.conf.js +7 -7
- package/lib/skeletons/_angular/base/src/main.ts +14 -14
- package/lib/skeletons/_angular/base/src/polyfills.ts +89 -89
- package/lib/skeletons/_angular/base/src/styles.scss +1 -1
- package/lib/skeletons/_angular/base/src/tsconfig.app.json +18 -18
- package/lib/skeletons/_angular/base/src/tsconfig.spec.json +14 -14
- package/lib/skeletons/_angular/base/tsconfig.json +27 -27
- package/lib/skeletons/_angular/base-mobile/angular.json +160 -160
- package/lib/skeletons/_angular/base-mobile/ionic.config.json +5 -5
- package/lib/skeletons/_angular/base-mobile/ngsw-config.json +33 -33
- package/lib/skeletons/_angular/base-mobile/package.json +28 -28
- package/lib/skeletons/_angular/base-mobile/src/app/app-routing.module.ts +17 -17
- package/lib/skeletons/_angular/base-mobile/src/app/app-starter.service.ts +73 -73
- package/lib/skeletons/_angular/base-mobile/src/app/app.component.html +27 -27
- package/lib/skeletons/_angular/base-mobile/src/app/app.component.ts +55 -55
- package/lib/skeletons/_angular/base-mobile/src/app/app.module.ts +44 -44
- package/lib/skeletons/_angular/base-mobile/src/app/core/core.module.ts +89 -89
- package/lib/skeletons/_angular/base-mobile/src/app/core/reducers/index.ts +31 -31
- package/lib/skeletons/_angular/base-mobile/src/app/features/home/home-routing.module.ts +15 -15
- package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.component.html +14 -14
- package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.component.ts +11 -11
- package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.module.ts +18 -18
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page1/page1.component.html +11 -11
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page1/page1.component.ts +7 -7
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page2/page2.component.html +11 -11
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page2/page2.component.ts +7 -7
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1-routing.module.ts +18 -18
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.component.html +15 -15
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.component.ts +17 -17
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.module.ts +21 -21
- package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2-routing.module.ts +16 -16
- package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.component.html +11 -11
- package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.component.ts +7 -7
- package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.module.ts +17 -17
- package/lib/skeletons/_angular/base-mobile/src/app/shared/shared.module.ts +16 -16
- package/lib/skeletons/_angular/base-mobile/src/app/shared/testing/router.mock.ts +18 -18
- package/lib/skeletons/_angular/base-mobile/src/index.html +27 -27
- package/lib/skeletons/_angular/base-mobile/src/manifest.webmanifest +51 -51
- package/lib/skeletons/_angular/base-mobile/src/tsconfig.app.json +19 -19
- package/lib/skeletons/_angular/options/ecl/angular.json +193 -193
- package/lib/skeletons/_angular/options/ecl/src/app/app.component.html +262 -262
- package/lib/skeletons/_angular/options/ecl/src/app/app.component.ts +59 -59
- package/lib/skeletons/_angular/options/ecl/src/app/features/home/home.component.html +70 -70
- package/lib/skeletons/_angular/options/ecl/src/app/features/module1/components/page1/page1.component.html +1 -1
- package/lib/skeletons/_angular/options/ecl/src/app/features/module1/components/page2/page2.component.html +1 -1
- package/lib/skeletons/_angular/options/ecl/src/app/features/module1/module1.component.html +1 -1
- package/lib/skeletons/_angular/options/ecl/src/app/features/module2/module2.component.html +1 -1
- package/lib/skeletons/_angular/options/ecl/src/app/shared/shared.module.ts +19 -19
- package/lib/skeletons/_angular/options/ecl/src/config/global.ts +20 -20
- package/lib/skeletons/_angular/options/openid-jwt/package.json +22 -22
- package/lib/skeletons/_angular/options/openid-jwt/src/app/core/core.module.ts +94 -94
- package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-dev.json +24 -24
- package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-local-mock.json +10 -10
- package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-local.json +23 -23
- package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-prod.json +23 -23
- package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config.json +10 -10
- package/lib/skeletons/_angular/options/openid-jwt/src/environments/environment.prod.ts +11 -11
- package/lib/skeletons/_angular/options/openid-jwt/src/environments/environment.ts +11 -11
- package/lib/skeletons/_angular/options/openid-jwt/src/index.html +21 -21
- package/lib/skeletons/web-maven/package.json +17 -17
- package/lib/skeletons/web-maven/pom.xml +55 -55
- package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/servlet/SpringWebApplicationInitializer.java +22 -22
- package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/spring/SpringRestConfiguration.java +24 -24
- package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/spring/rest/UserDetailsResource.java +23 -23
- package/lib/skeletons/web-maven/src/main/resources/ecas-config-application-name.xml +7 -7
- package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/dispatcher-servlet.xml +10 -10
- package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/web.xml +38 -38
- package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/weblogic.xml +15 -15
- package/lib/skeletons/web-maven/src/main/webapp/index.jsp +29 -29
- package/lib/skeletons/web-spring-boot/myapp-web/pom.xml +77 -77
- package/lib/skeletons/web-spring-boot/myapp-web-rest/pom.xml +84 -84
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/MyappApplication.java +46 -46
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/domain/Address.java +65 -65
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/domain/Building.java +44 -44
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/repositories/BuildingRepository.java +10 -10
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/BuildingResource.java +26 -26
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/SwaggerConfig.java +20 -20
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/HateoasPageableHandlerMethodArgumentResolver.java +45 -45
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/HypermediaSupport.java +25 -25
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/PageJsonSerializer.java +17 -17
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/CachingPreventionFilter.java +29 -29
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/CsrfPreventionFilter.java +35 -35
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/FakeAuthenticationFilter.java +372 -372
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/SecurityConfig.java +47 -47
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingSearchCriteria.java +25 -25
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingService.java +9 -9
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingServiceImpl.java +25 -25
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/resources/data.sql +10 -10
- package/lib/skeletons/web-spring-boot/pom.xml +30 -30
- package/lib/skeletons/web-symfony/myapp-web/angular.json +170 -170
- package/lib/skeletons/web-symfony/myapp-web/package.json +23 -23
- package/lib/skeletons/web-symfony/myapp-web/src/app/app-routing.module.ts +18 -18
- package/lib/skeletons/web-symfony/myapp-web/src/app/app.component.ts +77 -77
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/components/products.component.html +160 -160
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/components/products.component.ts +104 -104
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/models/product.model.ts +6 -6
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/products-routing.module.ts +16 -16
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/products.module.ts +16 -16
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/services/products.service.ts +29 -29
- package/lib/skeletons/web-symfony/myapp-web/src/environments/environment.ts +17 -17
- package/lib/skeletons/web-symfony/myapp-web-rest/.env +28 -28
- package/lib/skeletons/web-symfony/myapp-web-rest/bin/console +42 -42
- package/lib/skeletons/web-symfony/myapp-web-rest/composer.json +67 -67
- package/lib/skeletons/web-symfony/myapp-web-rest/composer.lock +3572 -3572
- package/lib/skeletons/web-symfony/myapp-web-rest/config/bootstrap.php +21 -21
- package/lib/skeletons/web-symfony/myapp-web-rest/config/bundles.php +12 -12
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/cache.yaml +19 -19
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/dev/routing.yaml +3 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/doctrine.yaml +29 -29
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/doctrine_migrations.yaml +5 -5
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/framework.yaml +17 -17
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/prod/doctrine.yaml +32 -32
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/routing.yaml +4 -4
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/sensio_framework_extra.yaml +3 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/test/framework.yaml +4 -4
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/test/routing.yaml +3 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/twig.yaml +4 -4
- package/lib/skeletons/web-symfony/myapp-web-rest/config/routes/annotations.yaml +3 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/routes/dev/twig.yaml +3 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/routes.yaml +3 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/services.yaml +27 -27
- package/lib/skeletons/web-symfony/myapp-web-rest/public/index.php +27 -27
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Controller/ProductController.php +196 -196
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Entity/Product.php +99 -99
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Kernel.php +53 -53
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Migrations/Version20190604101623.php +31 -31
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Migrations/Version20190604101638.php +35 -35
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Repository/ProductRepository.php +51 -51
- package/lib/skeletons/web-symfony/myapp-web-rest/symfony.lock +274 -274
- package/lib/skeletons/web-symfony/myapp-web-rest/templates/base.html.twig +12 -12
- package/lib/skeletons/web-symfony/myapp-web-rest/templates/product/index.html.twig +20 -20
- package/lib/utils.js +17 -17
- package/package.json +3 -3
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "eui-angular-app",
|
|
3
|
-
"version": "15.4.
|
|
4
|
-
"license": "EUPL-1.1",
|
|
5
|
-
"description": "eUI JEE Symfony app scripts",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"ng": "ng",
|
|
8
|
-
"e2e": "ng e2e",
|
|
9
|
-
"stylelint": "stylelint \"src/**/*.scss\"",
|
|
10
|
-
"tslint": "tslint \"src/**/*.ts\"",
|
|
11
|
-
"clean": "rimraf out-tsc dist packages/**/dist/** packages/**/out-tsc/** packages/**/src/lib/**/*.js packages/**/src/lib/**/*.js.map",
|
|
12
|
-
"start-symfony": "eui-scripts start-symfony --configuration=dev",
|
|
13
|
-
"start-serve": "eui-scripts serve-app --configuration=proxy-mock",
|
|
14
|
-
"start": "npm run clean && npm-run-all --parallel start-symfony start-serve",
|
|
15
|
-
"start-mean": "npm run clean && npm-run-all --parallel start-mock-server-mean start-serve",
|
|
16
|
-
"start-proxy": "npm run clean && eui-scripts serve-app --configuration=proxy",
|
|
17
|
-
"start-openid": "npm run clean && eui-scripts serve-app --configuration=local-openid",
|
|
18
|
-
"generate-changelog": "eui-scripts generate-changelog"
|
|
19
|
-
},
|
|
20
|
-
"private": true,
|
|
21
|
-
"dependencies": {
|
|
22
|
-
"@eui/deps-base": "15.4.
|
|
23
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "eui-angular-app",
|
|
3
|
+
"version": "15.4.2",
|
|
4
|
+
"license": "EUPL-1.1",
|
|
5
|
+
"description": "eUI JEE Symfony app scripts",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"ng": "ng",
|
|
8
|
+
"e2e": "ng e2e",
|
|
9
|
+
"stylelint": "stylelint \"src/**/*.scss\"",
|
|
10
|
+
"tslint": "tslint \"src/**/*.ts\"",
|
|
11
|
+
"clean": "rimraf out-tsc dist packages/**/dist/** packages/**/out-tsc/** packages/**/src/lib/**/*.js packages/**/src/lib/**/*.js.map",
|
|
12
|
+
"start-symfony": "eui-scripts start-symfony --configuration=dev",
|
|
13
|
+
"start-serve": "eui-scripts serve-app --configuration=proxy-mock",
|
|
14
|
+
"start": "npm run clean && npm-run-all --parallel start-symfony start-serve",
|
|
15
|
+
"start-mean": "npm run clean && npm-run-all --parallel start-mock-server-mean start-serve",
|
|
16
|
+
"start-proxy": "npm run clean && eui-scripts serve-app --configuration=proxy",
|
|
17
|
+
"start-openid": "npm run clean && eui-scripts serve-app --configuration=local-openid",
|
|
18
|
+
"generate-changelog": "eui-scripts generate-changelog"
|
|
19
|
+
},
|
|
20
|
+
"private": true,
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@eui/deps-base": "15.4.2"
|
|
23
|
+
}
|
|
24
24
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { RouterModule, Routes } from '@angular/router';
|
|
3
|
-
|
|
4
|
-
const routes: Routes = [
|
|
5
|
-
{ path: '', redirectTo: 'screen/home', pathMatch: 'full' },
|
|
6
|
-
{ path: 'index.jsp', redirectTo: 'screen/home' },
|
|
7
|
-
{ path: 'screen/home', loadChildren: './features/home/home.module#Module' },
|
|
8
|
-
{ path: 'screen/products', loadChildren: './features/products/products.module#ProductsModule' },
|
|
9
|
-
{ path: 'screen/module1', loadChildren: './features/module1/module1.module#Module' },
|
|
10
|
-
{ path: 'screen/module2', loadChildren: './features/module2/module2.module#Module' }
|
|
11
|
-
];
|
|
12
|
-
|
|
13
|
-
@NgModule({
|
|
14
|
-
imports: [
|
|
15
|
-
RouterModule.forRoot(routes),
|
|
16
|
-
],
|
|
17
|
-
})
|
|
18
|
-
export class AppRoutingModule {}
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { RouterModule, Routes } from '@angular/router';
|
|
3
|
+
|
|
4
|
+
const routes: Routes = [
|
|
5
|
+
{ path: '', redirectTo: 'screen/home', pathMatch: 'full' },
|
|
6
|
+
{ path: 'index.jsp', redirectTo: 'screen/home' },
|
|
7
|
+
{ path: 'screen/home', loadChildren: './features/home/home.module#Module' },
|
|
8
|
+
{ path: 'screen/products', loadChildren: './features/products/products.module#ProductsModule' },
|
|
9
|
+
{ path: 'screen/module1', loadChildren: './features/module1/module1.module#Module' },
|
|
10
|
+
{ path: 'screen/module2', loadChildren: './features/module2/module2.module#Module' }
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
@NgModule({
|
|
14
|
+
imports: [
|
|
15
|
+
RouterModule.forRoot(routes),
|
|
16
|
+
],
|
|
17
|
+
})
|
|
18
|
+
export class AppRoutingModule {}
|
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
import { Component, OnInit } from '@angular/core';
|
|
2
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
-
import { Observable } from 'rxjs/Observable';
|
|
4
|
-
import { Store } from '@ngrx/store';
|
|
5
|
-
|
|
6
|
-
import { UserState, getUserState, UxLink, UxLanguage } from '@eui/core';
|
|
7
|
-
|
|
8
|
-
@Component({
|
|
9
|
-
selector: 'app-root',
|
|
10
|
-
templateUrl: './app.component.html'
|
|
11
|
-
})
|
|
12
|
-
export class AppComponent implements OnInit {
|
|
13
|
-
userState: Observable<UserState>;
|
|
14
|
-
|
|
15
|
-
menuLinks: UxLink[] = [];
|
|
16
|
-
notificationLinks: UxLink[] = [];
|
|
17
|
-
|
|
18
|
-
constructor(
|
|
19
|
-
private translateService: TranslateService,
|
|
20
|
-
private store: Store<any>,
|
|
21
|
-
) {
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
ngOnInit() {
|
|
25
|
-
this.userState = <any>this.store.select(getUserState);
|
|
26
|
-
|
|
27
|
-
this._createMenuLinks();
|
|
28
|
-
this._createNotifications();
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
onLanguageChanged(language: UxLanguage) {
|
|
32
|
-
this.translateService.use(language.code);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
private _createMenuLinks() {
|
|
36
|
-
this.menuLinks = [
|
|
37
|
-
new UxLink(
|
|
38
|
-
{
|
|
39
|
-
label: 'HOME', url: '/screen/home', isHome: true
|
|
40
|
-
}
|
|
41
|
-
),
|
|
42
|
-
new UxLink(
|
|
43
|
-
{
|
|
44
|
-
label: 'Module1', url: '/screen/module1', children: [
|
|
45
|
-
new UxLink({ label: 'disabled item', disabled: true }),
|
|
46
|
-
new UxLink({ label: 'Page 1', url: '/screen/module1/page1' }),
|
|
47
|
-
new UxLink({ label: 'Page 2', url: '/screen/module1/page2' })
|
|
48
|
-
]
|
|
49
|
-
}
|
|
50
|
-
),
|
|
51
|
-
new UxLink(
|
|
52
|
-
{
|
|
53
|
-
label: 'Module2', url: '/screen/module2'
|
|
54
|
-
}
|
|
55
|
-
),
|
|
56
|
-
new UxLink(
|
|
57
|
-
{
|
|
58
|
-
label: 'Products', url: '/screen/products'
|
|
59
|
-
}
|
|
60
|
-
)
|
|
61
|
-
];
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
private _createNotifications() {
|
|
65
|
-
this.notificationLinks = [
|
|
66
|
-
new UxLink(
|
|
67
|
-
{ label: 'Notification title', subLabel: 'This is the description of the noficiation' }
|
|
68
|
-
),
|
|
69
|
-
new UxLink(
|
|
70
|
-
{ label: 'Notification title', subLabel: 'This is the description of the noficiation' }
|
|
71
|
-
),
|
|
72
|
-
new UxLink(
|
|
73
|
-
{ label: 'Notification title', subLabel: 'This is the description of the noficiation' }
|
|
74
|
-
),
|
|
75
|
-
];
|
|
76
|
-
}
|
|
77
|
-
}
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { Observable } from 'rxjs/Observable';
|
|
4
|
+
import { Store } from '@ngrx/store';
|
|
5
|
+
|
|
6
|
+
import { UserState, getUserState, UxLink, UxLanguage } from '@eui/core';
|
|
7
|
+
|
|
8
|
+
@Component({
|
|
9
|
+
selector: 'app-root',
|
|
10
|
+
templateUrl: './app.component.html'
|
|
11
|
+
})
|
|
12
|
+
export class AppComponent implements OnInit {
|
|
13
|
+
userState: Observable<UserState>;
|
|
14
|
+
|
|
15
|
+
menuLinks: UxLink[] = [];
|
|
16
|
+
notificationLinks: UxLink[] = [];
|
|
17
|
+
|
|
18
|
+
constructor(
|
|
19
|
+
private translateService: TranslateService,
|
|
20
|
+
private store: Store<any>,
|
|
21
|
+
) {
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
ngOnInit() {
|
|
25
|
+
this.userState = <any>this.store.select(getUserState);
|
|
26
|
+
|
|
27
|
+
this._createMenuLinks();
|
|
28
|
+
this._createNotifications();
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
onLanguageChanged(language: UxLanguage) {
|
|
32
|
+
this.translateService.use(language.code);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
private _createMenuLinks() {
|
|
36
|
+
this.menuLinks = [
|
|
37
|
+
new UxLink(
|
|
38
|
+
{
|
|
39
|
+
label: 'HOME', url: '/screen/home', isHome: true
|
|
40
|
+
}
|
|
41
|
+
),
|
|
42
|
+
new UxLink(
|
|
43
|
+
{
|
|
44
|
+
label: 'Module1', url: '/screen/module1', children: [
|
|
45
|
+
new UxLink({ label: 'disabled item', disabled: true }),
|
|
46
|
+
new UxLink({ label: 'Page 1', url: '/screen/module1/page1' }),
|
|
47
|
+
new UxLink({ label: 'Page 2', url: '/screen/module1/page2' })
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
),
|
|
51
|
+
new UxLink(
|
|
52
|
+
{
|
|
53
|
+
label: 'Module2', url: '/screen/module2'
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
new UxLink(
|
|
57
|
+
{
|
|
58
|
+
label: 'Products', url: '/screen/products'
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
];
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
private _createNotifications() {
|
|
65
|
+
this.notificationLinks = [
|
|
66
|
+
new UxLink(
|
|
67
|
+
{ label: 'Notification title', subLabel: 'This is the description of the noficiation' }
|
|
68
|
+
),
|
|
69
|
+
new UxLink(
|
|
70
|
+
{ label: 'Notification title', subLabel: 'This is the description of the noficiation' }
|
|
71
|
+
),
|
|
72
|
+
new UxLink(
|
|
73
|
+
{ label: 'Notification title', subLabel: 'This is the description of the noficiation' }
|
|
74
|
+
),
|
|
75
|
+
];
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -1,160 +1,160 @@
|
|
|
1
|
-
<div class="page-title">
|
|
2
|
-
List of products
|
|
3
|
-
</div>
|
|
4
|
-
|
|
5
|
-
<div class="row">
|
|
6
|
-
<div class="col-sm-8">
|
|
7
|
-
<ux-panel label="List of Products" [isBlocked]="mode === 'load'" contentHeight="60vh">
|
|
8
|
-
|
|
9
|
-
<uxPanelHeaderRightContent>
|
|
10
|
-
<div class="flex-container">
|
|
11
|
-
<ux-button-group [hasPairedIcon]="true" styleClass="ml-3" (clicked)="addItem()">
|
|
12
|
-
<ux-button-group-item label="Create new product"></ux-button-group-item>
|
|
13
|
-
<ux-button-group-item iconClass="fa fa-plus"></ux-button-group-item>
|
|
14
|
-
</ux-button-group>
|
|
15
|
-
</div>
|
|
16
|
-
</uxPanelHeaderRightContent>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<ng-container *ngIf="products && mode !== 'load'; else loading">
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<p-table [value]="products" [paginator]="true" [rows]="10" [pageLinks]="3" [rowsPerPageOptions]="[5,10,20]" >
|
|
23
|
-
<ng-template pTemplate="header" let-columns>
|
|
24
|
-
<tr>
|
|
25
|
-
<th [pSortableColumn]="'productId'">ID <p-sortIcon [field]="'productId'"></p-sortIcon></th>
|
|
26
|
-
<th [pSortableColumn]="'name'">Name <p-sortIcon [field]="'name'"></p-sortIcon></th>
|
|
27
|
-
<th [pSortableColumn]="'price'">Price <p-sortIcon [field]="'price'"></p-sortIcon></th>
|
|
28
|
-
<th [pSortableColumn]="'description'">Description <p-sortIcon [field]="'description'"></p-sortIcon></th>
|
|
29
|
-
<th class="actionsColumn">ACTIONS</th>
|
|
30
|
-
</tr>
|
|
31
|
-
</ng-template>
|
|
32
|
-
|
|
33
|
-
<ng-template pTemplate="body" let-rowData let-columns="columns" let-rowIndex="rowIndex" >
|
|
34
|
-
<tr [pSelectableRow]="rowData" [pSelectableRowIndex]="rowIndex">
|
|
35
|
-
<td>{{rowData.productId}}</td>
|
|
36
|
-
<td>
|
|
37
|
-
<ux-badge typeClass="default">
|
|
38
|
-
{{ rowData.name }}
|
|
39
|
-
</ux-badge>
|
|
40
|
-
</td>
|
|
41
|
-
<td>{{rowData.price}}</td>
|
|
42
|
-
<td>{{rowData.description}}</td>
|
|
43
|
-
|
|
44
|
-
<td class="actionsColumn">
|
|
45
|
-
<div class="flex-container justify-content-center">
|
|
46
|
-
<ux-button [isFlat]="true" iconClass="fa fa-pencil" typeClass="info" (click)="editProduct(rowData)"></ux-button>
|
|
47
|
-
<ux-button [isFlat]="true" iconClass="fa fa-trash-o" typeClass="danger" (click)="deleteProduct(rowData.productId)"></ux-button>
|
|
48
|
-
</div>
|
|
49
|
-
</td>
|
|
50
|
-
</tr>
|
|
51
|
-
</ng-template>
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
</p-table>
|
|
55
|
-
</ng-container>
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
<ng-template #loading>
|
|
60
|
-
<ng-container *ngIf="! serviceError; else error">
|
|
61
|
-
Loading...
|
|
62
|
-
</ng-container>
|
|
63
|
-
</ng-template>
|
|
64
|
-
|
|
65
|
-
<ng-template #error>
|
|
66
|
-
<ux-alert typeClass="warning">
|
|
67
|
-
Unable to retrieve the list of products; please <a (click)="loadProducts()">try again</a> later.<br/>
|
|
68
|
-
If the problem persists, please contact the administrator.<br/>
|
|
69
|
-
<br/>
|
|
70
|
-
<a (click)="serviceErrorVisible = !serviceErrorVisible">
|
|
71
|
-
<span *ngIf="!serviceErrorVisible">Show technical reason</span>
|
|
72
|
-
<span *ngIf="serviceErrorVisible">Hide technical reason</span>
|
|
73
|
-
</a>
|
|
74
|
-
<pre *ngIf="serviceErrorVisible">{{serviceError.message}}</pre>
|
|
75
|
-
</ux-alert>
|
|
76
|
-
</ng-template>
|
|
77
|
-
</ux-panel>
|
|
78
|
-
</div>
|
|
79
|
-
|
|
80
|
-
<div class="col-sm-4">
|
|
81
|
-
<ux-panel label="Products" [isBlocked]="mode === 'load'" contentHeight="60vh">
|
|
82
|
-
<pre>{{products | json}}</pre>
|
|
83
|
-
</ux-panel>
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
<!-- MODAL EDIT / NEW-->
|
|
90
|
-
<ux-modal id="modal1b" titleLabel="{{actionLabel}}" [isFooterVisible]="false" [isSizeSmall]="true" (onDismiss)="onModalDismiss($event)" (onAccept)="onModalAccept($event)">
|
|
91
|
-
<uxModalBody>
|
|
92
|
-
<form [formGroup]="formInput" *ngIf="ItemSelected">
|
|
93
|
-
<div class="row">
|
|
94
|
-
<div class="col-10">
|
|
95
|
-
<ux-form-group label="Name:" isRequired="true">
|
|
96
|
-
<ux-form-control [(ngModel)]="ItemSelected.name" formControlName="name" placeholderLabel="es: iPad Pro 512GB" ></ux-form-control>
|
|
97
|
-
</ux-form-group>
|
|
98
|
-
|
|
99
|
-
<ux-form-group label="Price:" isRequired="true">
|
|
100
|
-
<ux-form-control [(ngModel)]="ItemSelected.price" [isNumber]="true" formControlName="price" placeholderLabel="price"></ux-form-control>
|
|
101
|
-
</ux-form-group>
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
<ux-form-group label="Description:" isRequired=true>
|
|
105
|
-
<ux-form-control [(ngModel)]="ItemSelected.description" [isTextarea]="true" formControlName="description" placeholderLabel="description"></ux-form-control>
|
|
106
|
-
</ux-form-group>
|
|
107
|
-
|
|
108
|
-
<div class="text-right mt-3">
|
|
109
|
-
<ux-button (click)="onUpdateSubmit(ItemSelected)" class='ml-3' [isDisabled]="!formInput.valid">
|
|
110
|
-
Update Product
|
|
111
|
-
</ux-button>
|
|
112
|
-
</div>
|
|
113
|
-
|
|
114
|
-
</div>
|
|
115
|
-
</div>
|
|
116
|
-
</form>
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
<form [formGroup]="formInput" *ngIf="!ItemSelected">
|
|
120
|
-
<div class="row">
|
|
121
|
-
<div class="col-10">
|
|
122
|
-
<ux-form-group label="Name:" isRequired="true">
|
|
123
|
-
<ux-form-control formControlName="name" placeholderLabel="es: iPad Pro 512GB" ></ux-form-control>
|
|
124
|
-
</ux-form-group>
|
|
125
|
-
|
|
126
|
-
<ux-form-group label="Price:" isRequired="true">
|
|
127
|
-
<ux-form-control [isNumber]="true" formControlName="price" placeholderLabel="price"></ux-form-control>
|
|
128
|
-
</ux-form-group>
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
<ux-form-group label="Description:" isRequired=true>
|
|
132
|
-
<ux-form-control [isTextarea]="true" formControlName="description" placeholderLabel="description"></ux-form-control>
|
|
133
|
-
</ux-form-group>
|
|
134
|
-
|
|
135
|
-
<div class="text-right mt-3">
|
|
136
|
-
<ux-button (click)="onSubmit()" class='ml-3' [isDisabled]="!formInput.valid">
|
|
137
|
-
Save Product
|
|
138
|
-
</ux-button>
|
|
139
|
-
</div>
|
|
140
|
-
|
|
141
|
-
</div>
|
|
142
|
-
</div>
|
|
143
|
-
</form>
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
</uxModalBody>
|
|
149
|
-
</ux-modal>
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
<!-- MODAL DELETE -->
|
|
153
|
-
<ux-modal id="modaldelete" titleLabel="Modal title" [isSizeSmall]="true"
|
|
154
|
-
[isHandleCloseOnDismiss]="false" [isHandleCloseOnAccept]="false" [isHandleCloseOnClose]="false"
|
|
155
|
-
(onDismiss)="onModalDismiss($event)" (onAccept)="onModalAccept($event)" (onClose)="onModalClose($event)">
|
|
156
|
-
<uxModalBody>
|
|
157
|
-
<p>Are you sure to delete it?</p>
|
|
158
|
-
</uxModalBody>
|
|
159
|
-
</ux-modal>
|
|
160
|
-
|
|
1
|
+
<div class="page-title">
|
|
2
|
+
List of products
|
|
3
|
+
</div>
|
|
4
|
+
|
|
5
|
+
<div class="row">
|
|
6
|
+
<div class="col-sm-8">
|
|
7
|
+
<ux-panel label="List of Products" [isBlocked]="mode === 'load'" contentHeight="60vh">
|
|
8
|
+
|
|
9
|
+
<uxPanelHeaderRightContent>
|
|
10
|
+
<div class="flex-container">
|
|
11
|
+
<ux-button-group [hasPairedIcon]="true" styleClass="ml-3" (clicked)="addItem()">
|
|
12
|
+
<ux-button-group-item label="Create new product"></ux-button-group-item>
|
|
13
|
+
<ux-button-group-item iconClass="fa fa-plus"></ux-button-group-item>
|
|
14
|
+
</ux-button-group>
|
|
15
|
+
</div>
|
|
16
|
+
</uxPanelHeaderRightContent>
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
<ng-container *ngIf="products && mode !== 'load'; else loading">
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
<p-table [value]="products" [paginator]="true" [rows]="10" [pageLinks]="3" [rowsPerPageOptions]="[5,10,20]" >
|
|
23
|
+
<ng-template pTemplate="header" let-columns>
|
|
24
|
+
<tr>
|
|
25
|
+
<th [pSortableColumn]="'productId'">ID <p-sortIcon [field]="'productId'"></p-sortIcon></th>
|
|
26
|
+
<th [pSortableColumn]="'name'">Name <p-sortIcon [field]="'name'"></p-sortIcon></th>
|
|
27
|
+
<th [pSortableColumn]="'price'">Price <p-sortIcon [field]="'price'"></p-sortIcon></th>
|
|
28
|
+
<th [pSortableColumn]="'description'">Description <p-sortIcon [field]="'description'"></p-sortIcon></th>
|
|
29
|
+
<th class="actionsColumn">ACTIONS</th>
|
|
30
|
+
</tr>
|
|
31
|
+
</ng-template>
|
|
32
|
+
|
|
33
|
+
<ng-template pTemplate="body" let-rowData let-columns="columns" let-rowIndex="rowIndex" >
|
|
34
|
+
<tr [pSelectableRow]="rowData" [pSelectableRowIndex]="rowIndex">
|
|
35
|
+
<td>{{rowData.productId}}</td>
|
|
36
|
+
<td>
|
|
37
|
+
<ux-badge typeClass="default">
|
|
38
|
+
{{ rowData.name }}
|
|
39
|
+
</ux-badge>
|
|
40
|
+
</td>
|
|
41
|
+
<td>{{rowData.price}}</td>
|
|
42
|
+
<td>{{rowData.description}}</td>
|
|
43
|
+
|
|
44
|
+
<td class="actionsColumn">
|
|
45
|
+
<div class="flex-container justify-content-center">
|
|
46
|
+
<ux-button [isFlat]="true" iconClass="fa fa-pencil" typeClass="info" (click)="editProduct(rowData)"></ux-button>
|
|
47
|
+
<ux-button [isFlat]="true" iconClass="fa fa-trash-o" typeClass="danger" (click)="deleteProduct(rowData.productId)"></ux-button>
|
|
48
|
+
</div>
|
|
49
|
+
</td>
|
|
50
|
+
</tr>
|
|
51
|
+
</ng-template>
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
</p-table>
|
|
55
|
+
</ng-container>
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
<ng-template #loading>
|
|
60
|
+
<ng-container *ngIf="! serviceError; else error">
|
|
61
|
+
Loading...
|
|
62
|
+
</ng-container>
|
|
63
|
+
</ng-template>
|
|
64
|
+
|
|
65
|
+
<ng-template #error>
|
|
66
|
+
<ux-alert typeClass="warning">
|
|
67
|
+
Unable to retrieve the list of products; please <a (click)="loadProducts()">try again</a> later.<br/>
|
|
68
|
+
If the problem persists, please contact the administrator.<br/>
|
|
69
|
+
<br/>
|
|
70
|
+
<a (click)="serviceErrorVisible = !serviceErrorVisible">
|
|
71
|
+
<span *ngIf="!serviceErrorVisible">Show technical reason</span>
|
|
72
|
+
<span *ngIf="serviceErrorVisible">Hide technical reason</span>
|
|
73
|
+
</a>
|
|
74
|
+
<pre *ngIf="serviceErrorVisible">{{serviceError.message}}</pre>
|
|
75
|
+
</ux-alert>
|
|
76
|
+
</ng-template>
|
|
77
|
+
</ux-panel>
|
|
78
|
+
</div>
|
|
79
|
+
|
|
80
|
+
<div class="col-sm-4">
|
|
81
|
+
<ux-panel label="Products" [isBlocked]="mode === 'load'" contentHeight="60vh">
|
|
82
|
+
<pre>{{products | json}}</pre>
|
|
83
|
+
</ux-panel>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
<!-- MODAL EDIT / NEW-->
|
|
90
|
+
<ux-modal id="modal1b" titleLabel="{{actionLabel}}" [isFooterVisible]="false" [isSizeSmall]="true" (onDismiss)="onModalDismiss($event)" (onAccept)="onModalAccept($event)">
|
|
91
|
+
<uxModalBody>
|
|
92
|
+
<form [formGroup]="formInput" *ngIf="ItemSelected">
|
|
93
|
+
<div class="row">
|
|
94
|
+
<div class="col-10">
|
|
95
|
+
<ux-form-group label="Name:" isRequired="true">
|
|
96
|
+
<ux-form-control [(ngModel)]="ItemSelected.name" formControlName="name" placeholderLabel="es: iPad Pro 512GB" ></ux-form-control>
|
|
97
|
+
</ux-form-group>
|
|
98
|
+
|
|
99
|
+
<ux-form-group label="Price:" isRequired="true">
|
|
100
|
+
<ux-form-control [(ngModel)]="ItemSelected.price" [isNumber]="true" formControlName="price" placeholderLabel="price"></ux-form-control>
|
|
101
|
+
</ux-form-group>
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
<ux-form-group label="Description:" isRequired=true>
|
|
105
|
+
<ux-form-control [(ngModel)]="ItemSelected.description" [isTextarea]="true" formControlName="description" placeholderLabel="description"></ux-form-control>
|
|
106
|
+
</ux-form-group>
|
|
107
|
+
|
|
108
|
+
<div class="text-right mt-3">
|
|
109
|
+
<ux-button (click)="onUpdateSubmit(ItemSelected)" class='ml-3' [isDisabled]="!formInput.valid">
|
|
110
|
+
Update Product
|
|
111
|
+
</ux-button>
|
|
112
|
+
</div>
|
|
113
|
+
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
</form>
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
<form [formGroup]="formInput" *ngIf="!ItemSelected">
|
|
120
|
+
<div class="row">
|
|
121
|
+
<div class="col-10">
|
|
122
|
+
<ux-form-group label="Name:" isRequired="true">
|
|
123
|
+
<ux-form-control formControlName="name" placeholderLabel="es: iPad Pro 512GB" ></ux-form-control>
|
|
124
|
+
</ux-form-group>
|
|
125
|
+
|
|
126
|
+
<ux-form-group label="Price:" isRequired="true">
|
|
127
|
+
<ux-form-control [isNumber]="true" formControlName="price" placeholderLabel="price"></ux-form-control>
|
|
128
|
+
</ux-form-group>
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
<ux-form-group label="Description:" isRequired=true>
|
|
132
|
+
<ux-form-control [isTextarea]="true" formControlName="description" placeholderLabel="description"></ux-form-control>
|
|
133
|
+
</ux-form-group>
|
|
134
|
+
|
|
135
|
+
<div class="text-right mt-3">
|
|
136
|
+
<ux-button (click)="onSubmit()" class='ml-3' [isDisabled]="!formInput.valid">
|
|
137
|
+
Save Product
|
|
138
|
+
</ux-button>
|
|
139
|
+
</div>
|
|
140
|
+
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
</form>
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
</uxModalBody>
|
|
149
|
+
</ux-modal>
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
<!-- MODAL DELETE -->
|
|
153
|
+
<ux-modal id="modaldelete" titleLabel="Modal title" [isSizeSmall]="true"
|
|
154
|
+
[isHandleCloseOnDismiss]="false" [isHandleCloseOnAccept]="false" [isHandleCloseOnClose]="false"
|
|
155
|
+
(onDismiss)="onModalDismiss($event)" (onAccept)="onModalAccept($event)" (onClose)="onModalClose($event)">
|
|
156
|
+
<uxModalBody>
|
|
157
|
+
<p>Are you sure to delete it?</p>
|
|
158
|
+
</uxModalBody>
|
|
159
|
+
</ux-modal>
|
|
160
|
+
|