@c8y/login 1022.3.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/.browserslistrc +16 -0
- package/cumulocity.config.ts +27 -0
- package/jest.config.js +18 -0
- package/package.json +23 -0
- package/public/favicon.ico +0 -0
- package/public/platform-animation.svg +2533 -0
- package/src/app/app.config.ts +11 -0
- package/src/app/bootstrap-login/bootstrap-login.component.html +3 -0
- package/src/app/bootstrap-login/bootstrap-login.component.ts +16 -0
- package/src/app/login/change-password/change-password.component.html +97 -0
- package/src/app/login/change-password/change-password.component.ts +101 -0
- package/src/app/login/credentials/credentials.component.html +141 -0
- package/src/app/login/credentials/credentials.component.ts +148 -0
- package/src/app/login/credentials-component-params.ts +4 -0
- package/src/app/login/credentials-from-query-params.service.ts +86 -0
- package/src/app/login/index.ts +9 -0
- package/src/app/login/login.component.html +128 -0
- package/src/app/login/login.component.less +136 -0
- package/src/app/login/login.component.ts +238 -0
- package/src/app/login/login.model.ts +36 -0
- package/src/app/login/login.service.ts +651 -0
- package/src/app/login/missing-application-access/missing-application-access.component.html +2 -0
- package/src/app/login/missing-application-access/missing-application-access.component.ts +21 -0
- package/src/app/login/password-strength-validator.directive.ts +26 -0
- package/src/app/login/provide-phone-number/provide-phone-number.component.html +39 -0
- package/src/app/login/provide-phone-number/provide-phone-number.component.ts +73 -0
- package/src/app/login/recover-password/recover-password.component.html +53 -0
- package/src/app/login/recover-password/recover-password.component.ts +59 -0
- package/src/app/login/sms-challenge/sms-challenge.component.html +50 -0
- package/src/app/login/sms-challenge/sms-challenge.component.ts +134 -0
- package/src/app/login/strength-validator-service.ts +18 -0
- package/src/app/login/tenant-id-setup/tenant-id-setup.component.html +28 -0
- package/src/app/login/tenant-id-setup/tenant-id-setup.component.ts +94 -0
- package/src/app/login/totp-auth/totp-auth.component.html +18 -0
- package/src/app/login/totp-auth/totp-auth.component.ts +72 -0
- package/src/bootstrap.ts +19 -0
- package/src/i18n.ts +18 -0
- package/src/main.ts +25 -0
- package/src/polyfills.ts +33 -0
- package/tsconfig.app.json +20 -0
package/.browserslistrc
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
|
|
2
|
+
# For additional information regarding the format and rule options, please see:
|
|
3
|
+
# https://github.com/browserslist/browserslist#queries
|
|
4
|
+
|
|
5
|
+
# For the full list of supported browsers by the Angular framework, please see:
|
|
6
|
+
# https://angular.io/guide/browser-support
|
|
7
|
+
|
|
8
|
+
# You can see what browsers were selected by your queries by running:
|
|
9
|
+
# npx browserslist
|
|
10
|
+
|
|
11
|
+
last 2 Chrome versions
|
|
12
|
+
last 1 Firefox version
|
|
13
|
+
last 2 Edge major versions
|
|
14
|
+
last 2 Safari major versions
|
|
15
|
+
last 2 iOS major versions
|
|
16
|
+
Firefox ESR
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ConfigurationOptions } from '@c8y/devkit';
|
|
2
|
+
import { version, description, license } from './package.json';
|
|
3
|
+
import { gettext } from '@c8y/ngx-components/gettext';
|
|
4
|
+
|
|
5
|
+
const defaultDescription = gettext(
|
|
6
|
+
'The Login application provides functionalities for login and password reset.'
|
|
7
|
+
);
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
runTime: {
|
|
11
|
+
version,
|
|
12
|
+
name: 'Login',
|
|
13
|
+
description: description || defaultDescription,
|
|
14
|
+
dynamicOptionsUrl: true,
|
|
15
|
+
icon: {
|
|
16
|
+
class: 'cloud-user'
|
|
17
|
+
},
|
|
18
|
+
noAppSwitcher: true,
|
|
19
|
+
noLogin: true,
|
|
20
|
+
availability: 'MARKET',
|
|
21
|
+
license
|
|
22
|
+
},
|
|
23
|
+
buildTime: {
|
|
24
|
+
federation: 'none',
|
|
25
|
+
skipMonacoPlugin: true
|
|
26
|
+
}
|
|
27
|
+
} as const satisfies ConfigurationOptions;
|
package/jest.config.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
collectCoverageFrom: ['<rootDir>/**/*.{ts}', '!<rootDir>/**/*.{d.ts}'],
|
|
3
|
+
coveragePathIgnorePatterns: ['<rootDir>/protocol-opcua/*'],
|
|
4
|
+
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
|
|
5
|
+
moduleNameMapper: {
|
|
6
|
+
'\\.(css|less|scss|sass)$': '<rootDir>/test/__mocks__/style-mock.js',
|
|
7
|
+
'^lodash-es$': 'lodash'
|
|
8
|
+
},
|
|
9
|
+
testPathIgnorePatterns: ['bulk-operation-stepper.testing.module.spec.ts'],
|
|
10
|
+
modulePathIgnorePatterns: ['yarn-cache', 'npm-cache', '.npm', 'dist'],
|
|
11
|
+
preset: 'jest-preset-angular',
|
|
12
|
+
setupFilesAfterEnv: [
|
|
13
|
+
'../ngx-components/test/setup-jest.ts',
|
|
14
|
+
'../ngx-components/test/fail-on-console-error-configuration.ts'
|
|
15
|
+
],
|
|
16
|
+
testRunner: 'jest-jasmine2',
|
|
17
|
+
transformIgnorePatterns: ['/!node_modules\\/lodash-es/', 'node_modules/(?!.*\\.mjs$)']
|
|
18
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@c8y/login",
|
|
3
|
+
"version": "1022.3.2",
|
|
4
|
+
"description": "This package is used to scaffold a login application for Cumulocity IoT.",
|
|
5
|
+
"dependencies": {
|
|
6
|
+
"@c8y/style": "1022.3.2",
|
|
7
|
+
"@c8y/ngx-components": "1022.3.2",
|
|
8
|
+
"@c8y/client": "1022.3.2",
|
|
9
|
+
"@c8y/bootstrap": "1022.3.2",
|
|
10
|
+
"@angular/cdk": "^19.2.18",
|
|
11
|
+
"ngx-bootstrap": "19.0.2",
|
|
12
|
+
"rxjs": "7.8.1"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"@c8y/options": "1022.3.2",
|
|
16
|
+
"@c8y/devkit": "1022.3.2"
|
|
17
|
+
},
|
|
18
|
+
"peerDependencies": {
|
|
19
|
+
"@angular/common": ">=19 <20"
|
|
20
|
+
},
|
|
21
|
+
"author": "Cumulocity GmbH",
|
|
22
|
+
"license": "Apache-2.0"
|
|
23
|
+
}
|
|
Binary file
|