@indice/ng-components 0.2.138-beta → 0.2.139
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/CHANGELOG.md +1 -0
- package/README.md +4 -4
- package/karma.conf.js +44 -0
- package/ng-package.json +10 -0
- package/package.json +18 -9
- package/scripts/css-bundle.ts +33 -0
- package/src/_styles.css +36 -0
- package/src/_tests/utilities.service.spec.ts +16 -0
- package/src/assets/styles/avatar-initials.css +37 -0
- package/src/assets/styles/base.css +46 -0
- package/src/assets/styles/cards.css +71 -0
- package/src/assets/styles/collapsible-panel.css +25 -0
- package/src/assets/styles/components.css +34 -0
- package/src/assets/styles/date-picker.component.css +0 -0
- package/src/assets/styles/drop-down-menu.css +50 -0
- package/src/assets/styles/form-layout.css +49 -0
- package/{_styles.css → src/assets/styles/indice-ng-icons-inline.css} +2286 -3504
- package/src/assets/styles/list-view-empty-state.css +0 -0
- package/src/assets/styles/list-view.css +64 -0
- package/{modal.css → src/assets/styles/modal.css} +157 -157
- package/src/assets/styles/model-view-layout.css +45 -0
- package/src/assets/styles/nav-links.css +35 -0
- package/src/assets/styles/notifications-indicator.component.css +43 -0
- package/src/assets/styles/pager.css +29 -0
- package/src/assets/styles/shell-layout.css +232 -0
- package/src/assets/styles/side-pane.css +46 -0
- package/src/assets/styles/side-view-layout.css +58 -0
- package/src/assets/styles/toast.css +72 -0
- package/src/assets/styles/toggle.css +26 -0
- package/src/assets/styles/view-layout.css +58 -0
- package/src/lib/controls/avatar-initials/avatar-initials.component.html +3 -0
- package/src/lib/controls/avatar-initials/avatar-initials.component.ts +47 -0
- package/src/lib/controls/collapsible-panel/collapsible-panel.component.html +15 -0
- package/src/lib/controls/collapsible-panel/collapsible-panel.component.ts +16 -0
- package/src/lib/controls/date-picker/date-picker.component.html +133 -0
- package/src/lib/controls/date-picker/date-picker.component.ts +258 -0
- package/src/lib/controls/drop-down-menu/drop-down-menu.component.html +61 -0
- package/src/lib/controls/drop-down-menu/drop-down-menu.component.ts +59 -0
- package/src/lib/controls/kpi-tile/kpi-tile.component.html +18 -0
- package/src/lib/controls/kpi-tile/kpi-tile.component.ts +26 -0
- package/src/lib/controls/list-view/list-column.component.ts +10 -0
- package/src/lib/controls/list-view/list-details-section.component.ts +8 -0
- package/src/lib/controls/list-view/list-tile.component.ts +8 -0
- package/src/lib/controls/list-view/list-view-empty-state.component.html +20 -0
- package/src/lib/controls/list-view/list-view-empty-state.component.ts +19 -0
- package/src/lib/controls/list-view/list-view.component.html +151 -0
- package/src/lib/controls/list-view/list-view.component.ts +146 -0
- package/src/lib/controls/nav-links-list/nav-links-list.component.html +27 -0
- package/src/lib/controls/nav-links-list/nav-links-list.component.ts +25 -0
- package/src/lib/controls/notifications-indicator/notifications-indicator.component.html +78 -0
- package/src/lib/controls/notifications-indicator/notifications-indicator.component.ts +75 -0
- package/src/lib/controls/pager/pager.component.html +33 -0
- package/src/lib/controls/pager/pager.component.ts +106 -0
- package/src/lib/controls/side-pane/side-pane.component.html +10 -0
- package/src/lib/controls/side-pane/side-pane.component.ts +59 -0
- package/src/lib/controls/skeleton-loader/skeleton-loader.component.html +112 -0
- package/src/lib/controls/skeleton-loader/skeleton-loader.component.ts +20 -0
- package/src/lib/controls/toaster/toaster-container.component.html +1 -0
- package/src/lib/controls/toaster/toaster-container.component.ts +27 -0
- package/src/lib/controls/toaster/toaster.component.html +103 -0
- package/src/lib/controls/toaster/toaster.component.ts +26 -0
- package/src/lib/controls/toggle/toggle.component.html +15 -0
- package/src/lib/controls/toggle/toggle.component.ts +58 -0
- package/src/lib/directives/click-outside.directive.ts +196 -0
- package/src/lib/directives/dynamic-component-host.directive.ts +7 -0
- package/src/lib/directives/screen-size.directive.ts +67 -0
- package/src/lib/helpers/base-list.component.ts +204 -0
- package/src/lib/icons.ts +39 -0
- package/src/lib/layouts/shell/shell-footer/shell-footer.component.html +71 -0
- package/src/lib/layouts/shell/shell-footer/shell-footer.component.ts +14 -0
- package/src/lib/layouts/shell/shell-header/shell-header.component.html +199 -0
- package/src/lib/layouts/shell/shell-header/shell-header.component.ts +111 -0
- package/src/lib/layouts/shell/shell-layout/shell-layout.component.html +36 -0
- package/src/lib/layouts/shell/shell-layout/shell-layout.component.ts +91 -0
- package/src/lib/layouts/views/form-layout/form-layout.component.html +67 -0
- package/src/lib/layouts/views/form-layout/form-layout.component.ts +66 -0
- package/src/lib/layouts/views/model-view-layout/model-view-layout.component.html +43 -0
- package/src/lib/layouts/views/model-view-layout/model-view-layout.component.ts +37 -0
- package/src/lib/layouts/views/side-view-layout/side-view-layout.component.html +36 -0
- package/src/lib/layouts/views/side-view-layout/side-view-layout.component.ts +67 -0
- package/src/lib/layouts/views/view-layout/view-layout.component.html +68 -0
- package/src/lib/layouts/views/view-layout/view-layout.component.ts +82 -0
- package/src/lib/ng-components.module.ts +135 -0
- package/src/lib/pages/auth/auth-callback/auth-callback.component.html +1 -0
- package/src/lib/pages/auth/auth-callback/auth-callback.component.ts +22 -0
- package/src/lib/pages/auth/auth-renew/auth-renew.component.ts +20 -0
- package/src/lib/pages/auth/logged-out/logged-out.component.html +1 -0
- package/src/lib/pages/auth/logged-out/logged-out.component.ts +22 -0
- package/src/lib/pages/http-status/error/error.component.html +13 -0
- package/src/lib/pages/http-status/error/error.component.ts +13 -0
- package/src/lib/pages/http-status/page-not-found/page-not-found.component.html +14 -0
- package/src/lib/pages/http-status/page-not-found/page-not-found.component.ts +14 -0
- package/src/lib/pages/http-status/unauthorized/unauthorized.component.html +15 -0
- package/src/lib/pages/http-status/unauthorized/unauthorized.component.ts +11 -0
- package/src/lib/pipes/address.pipe.ts +17 -0
- package/src/lib/pipes/duration-format.pipe.ts +67 -0
- package/src/lib/services/component-loader/component-loader-options.class.ts +31 -0
- package/src/lib/services/component-loader/component-loader.class.ts +226 -0
- package/src/lib/services/component-loader/component-loader.factory.ts +27 -0
- package/src/lib/services/component-loader/content-ref.class.ts +10 -0
- package/src/lib/services/interceptors/bad-request.interceptor.ts +34 -0
- package/src/lib/services/modal-service/modal-backdrop-component.ts +40 -0
- package/src/lib/services/modal-service/modal-container-component.ts +125 -0
- package/src/lib/services/modal-service/modal-options.class.ts +92 -0
- package/src/lib/services/modal-service/modal-service.ts +237 -0
- package/src/lib/services/modal-service/modal-styles.class.ts +11 -0
- package/src/lib/services/modal-service/modal.class.ts +45 -0
- package/src/lib/services/shell-state-service.service.ts +10 -0
- package/src/lib/services/toaster.service.ts +23 -0
- package/src/lib/services/utilities.service.ts +40 -0
- package/src/lib/tokens.ts +6 -0
- package/src/lib/types.ts +210 -0
- package/{public-api.d.ts → src/public-api.ts} +60 -43
- package/src/test.ts +28 -0
- package/tsconfig.lib.json +26 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/tslint.json +17 -0
- package/webpack.config.js +36 -0
- package/bundles/indice-ng-components.umd.js +0 -3784
- package/bundles/indice-ng-components.umd.js.map +0 -1
- package/esm2015/indice-ng-components.js +0 -5
- package/esm2015/lib/controls/avatar-initials/avatar-initials.component.js +0 -51
- package/esm2015/lib/controls/collapsible-panel/collapsible-panel.component.js +0 -23
- package/esm2015/lib/controls/date-picker/date-picker.component.js +0 -269
- package/esm2015/lib/controls/drop-down-menu/drop-down-menu.component.js +0 -72
- package/esm2015/lib/controls/kpi-tile/kpi-tile.component.js +0 -39
- package/esm2015/lib/controls/list-view/list-column.component.js +0 -25
- package/esm2015/lib/controls/list-view/list-details-section.component.js +0 -17
- package/esm2015/lib/controls/list-view/list-tile.component.js +0 -17
- package/esm2015/lib/controls/list-view/list-view-empty-state.component.js +0 -32
- package/esm2015/lib/controls/list-view/list-view.component.js +0 -186
- package/esm2015/lib/controls/pager/pager.component.js +0 -133
- package/esm2015/lib/controls/side-pane/side-pane.component.js +0 -76
- package/esm2015/lib/controls/skeleton-loader/skeleton-loader.component.js +0 -29
- package/esm2015/lib/controls/toaster/toaster-container.component.js +0 -31
- package/esm2015/lib/controls/toaster/toaster.component.js +0 -34
- package/esm2015/lib/controls/toggle/toggle.component.js +0 -68
- package/esm2015/lib/directives/click-outside.directive.js +0 -189
- package/esm2015/lib/directives/dynamic-component-host.directive.js +0 -17
- package/esm2015/lib/helpers/base-list.component.js +0 -182
- package/esm2015/lib/icons.js +0 -32
- package/esm2015/lib/layouts/shell/shell-footer/shell-footer.component.js +0 -22
- package/esm2015/lib/layouts/shell/shell-header/shell-header.component.js +0 -142
- package/esm2015/lib/layouts/shell/shell-layout/shell-layout.component.js +0 -101
- package/esm2015/lib/layouts/views/form-layout/form-layout.component.js +0 -86
- package/esm2015/lib/layouts/views/model-view-layout/model-view-layout.component.js +0 -55
- package/esm2015/lib/layouts/views/side-view-layout/side-view-layout.component.js +0 -101
- package/esm2015/lib/layouts/views/view-layout/view-layout.component.js +0 -110
- package/esm2015/lib/ng-components.module.js +0 -220
- package/esm2015/lib/pages/auth/auth-callback/auth-callback.component.js +0 -34
- package/esm2015/lib/pages/auth/auth-renew/auth-renew.component.js +0 -31
- package/esm2015/lib/pages/auth/logged-out/logged-out.component.js +0 -32
- package/esm2015/lib/pages/http-status/error/error.component.js +0 -20
- package/esm2015/lib/pages/http-status/page-not-found/page-not-found.component.js +0 -18
- package/esm2015/lib/pages/http-status/unauthorized/unauthorized.component.js +0 -17
- package/esm2015/lib/pipes/address.pipe.js +0 -21
- package/esm2015/lib/pipes/duration-format.pipe.js +0 -64
- package/esm2015/lib/pipes/obs-with-status.pipe.js +0 -26
- package/esm2015/lib/services/component-loader/component-loader-options.class.js +0 -8
- package/esm2015/lib/services/component-loader/component-loader.class.js +0 -192
- package/esm2015/lib/services/component-loader/component-loader.factory.js +0 -32
- package/esm2015/lib/services/component-loader/content-ref.class.js +0 -13
- package/esm2015/lib/services/modal-service/modal-backdrop-component.js +0 -44
- package/esm2015/lib/services/modal-service/modal-container-component.js +0 -128
- package/esm2015/lib/services/modal-service/modal-options.class.js +0 -35
- package/esm2015/lib/services/modal-service/modal-service.js +0 -220
- package/esm2015/lib/services/modal-service/modal-styles.class.js +0 -11
- package/esm2015/lib/services/modal-service/modal.class.js +0 -27
- package/esm2015/lib/services/toaster.service.js +0 -24
- package/esm2015/lib/tokens.js +0 -4
- package/esm2015/lib/types.js +0 -114
- package/esm2015/public-api.js +0 -53
- package/fesm2015/indice-ng-components.js +0 -3247
- package/fesm2015/indice-ng-components.js.map +0 -1
- package/indice-ng-components.d.ts +0 -5
- package/lib/controls/avatar-initials/avatar-initials.component.d.ts +0 -14
- package/lib/controls/collapsible-panel/collapsible-panel.component.d.ts +0 -10
- package/lib/controls/date-picker/date-picker.component.d.ts +0 -48
- package/lib/controls/drop-down-menu/drop-down-menu.component.d.ts +0 -25
- package/lib/controls/kpi-tile/kpi-tile.component.d.ts +0 -13
- package/lib/controls/list-view/list-column.component.d.ts +0 -9
- package/lib/controls/list-view/list-details-section.component.d.ts +0 -7
- package/lib/controls/list-view/list-tile.component.d.ts +0 -7
- package/lib/controls/list-view/list-view-empty-state.component.d.ts +0 -11
- package/lib/controls/list-view/list-view.component.d.ts +0 -55
- package/lib/controls/pager/pager.component.d.ts +0 -36
- package/lib/controls/side-pane/side-pane.component.d.ts +0 -18
- package/lib/controls/skeleton-loader/skeleton-loader.component.d.ts +0 -11
- package/lib/controls/toaster/toaster-container.component.d.ts +0 -13
- package/lib/controls/toaster/toaster.component.d.ts +0 -15
- package/lib/controls/toggle/toggle.component.d.ts +0 -19
- package/lib/directives/click-outside.directive.d.ts +0 -40
- package/lib/directives/dynamic-component-host.directive.d.ts +0 -9
- package/lib/helpers/base-list.component.d.ts +0 -42
- package/lib/icons.d.ts +0 -30
- package/lib/layouts/shell/shell-footer/shell-footer.component.d.ts +0 -8
- package/lib/layouts/shell/shell-header/shell-header.component.d.ts +0 -45
- package/lib/layouts/shell/shell-layout/shell-layout.component.d.ts +0 -27
- package/lib/layouts/views/form-layout/form-layout.component.d.ts +0 -25
- package/lib/layouts/views/model-view-layout/model-view-layout.component.d.ts +0 -25
- package/lib/layouts/views/side-view-layout/side-view-layout.component.d.ts +0 -28
- package/lib/layouts/views/view-layout/view-layout.component.d.ts +0 -31
- package/lib/ng-components.module.d.ts +0 -45
- package/lib/pages/auth/auth-callback/auth-callback.component.d.ts +0 -13
- package/lib/pages/auth/auth-renew/auth-renew.component.d.ts +0 -12
- package/lib/pages/auth/logged-out/logged-out.component.d.ts +0 -12
- package/lib/pages/http-status/error/error.component.d.ts +0 -8
- package/lib/pages/http-status/page-not-found/page-not-found.component.d.ts +0 -8
- package/lib/pages/http-status/unauthorized/unauthorized.component.d.ts +0 -8
- package/lib/pipes/address.pipe.d.ts +0 -8
- package/lib/pipes/duration-format.pipe.d.ts +0 -8
- package/lib/pipes/obs-with-status.pipe.d.ts +0 -13
- package/lib/services/component-loader/component-loader-options.class.d.ts +0 -30
- package/lib/services/component-loader/component-loader.class.d.ts +0 -92
- package/lib/services/component-loader/component-loader.factory.d.ts +0 -24
- package/lib/services/component-loader/content-ref.class.d.ts +0 -12
- package/lib/services/modal-service/modal-backdrop-component.d.ts +0 -20
- package/lib/services/modal-service/modal-container-component.d.ts +0 -33
- package/lib/services/modal-service/modal-options.class.d.ts +0 -81
- package/lib/services/modal-service/modal-service.d.ts +0 -58
- package/lib/services/modal-service/modal-styles.class.d.ts +0 -10
- package/lib/services/modal-service/modal.class.d.ts +0 -43
- package/lib/services/toaster.service.d.ts +0 -11
- package/lib/tokens.d.ts +0 -4
- package/lib/types.d.ts +0 -135
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# INDICE ANGULAR Components Change log
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# INDICE ANGULAR Components
|
|
2
|
-
|
|
3
|
-
Indice common components for Angular 2+
|
|
4
|
-
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.2.14.
|
|
1
|
+
# INDICE ANGULAR Components
|
|
2
|
+
|
|
3
|
+
Indice common components for Angular 2+
|
|
4
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.2.14.
|
package/karma.conf.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Karma configuration file, see link for more information
|
|
2
|
+
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
3
|
+
|
|
4
|
+
module.exports = function (config) {
|
|
5
|
+
config.set({
|
|
6
|
+
basePath: '',
|
|
7
|
+
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
|
8
|
+
plugins: [
|
|
9
|
+
require('karma-jasmine'),
|
|
10
|
+
require('karma-chrome-launcher'),
|
|
11
|
+
require('karma-jasmine-html-reporter'),
|
|
12
|
+
require('karma-coverage'),
|
|
13
|
+
require('@angular-devkit/build-angular/plugins/karma')
|
|
14
|
+
],
|
|
15
|
+
client: {
|
|
16
|
+
jasmine: {
|
|
17
|
+
// you can add configuration options for Jasmine here
|
|
18
|
+
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
|
|
19
|
+
// for example, you can disable the random execution with `random: false`
|
|
20
|
+
// or set a specific seed with `seed: 4321`
|
|
21
|
+
},
|
|
22
|
+
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
|
23
|
+
},
|
|
24
|
+
jasmineHtmlReporter: {
|
|
25
|
+
suppressAll: true // removes the duplicated traces
|
|
26
|
+
},
|
|
27
|
+
coverageReporter: {
|
|
28
|
+
dir: require('path').join(__dirname, '../../coverage/ng-components'),
|
|
29
|
+
subdir: '.',
|
|
30
|
+
reporters: [
|
|
31
|
+
{ type: 'html' },
|
|
32
|
+
{ type: 'text-summary' }
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
reporters: ['progress', 'kjhtml'],
|
|
36
|
+
port: 9876,
|
|
37
|
+
colors: true,
|
|
38
|
+
logLevel: config.LOG_INFO,
|
|
39
|
+
autoWatch: true,
|
|
40
|
+
browsers: ['Chrome'],
|
|
41
|
+
singleRun: false,
|
|
42
|
+
restartOnFileChange: true
|
|
43
|
+
});
|
|
44
|
+
};
|
package/ng-package.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indice/ng-components",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.139",
|
|
4
4
|
"description": "Indice common components for Angular v12",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,11 +36,20 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"tslib": "^2.0.0"
|
|
38
38
|
},
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@angular/common": "12.0.1",
|
|
41
|
+
"@angular/core": "12.0.1",
|
|
42
|
+
"@angular/router": "^12.0.1",
|
|
43
|
+
"@indice/ng-auth": "^0.1.4",
|
|
44
|
+
"oidc-client": "^1.11.5",
|
|
45
|
+
"@tailwindcss/aspect-ratio": "^0.2.0",
|
|
46
|
+
"@tailwindcss/forms": "^0.3.2",
|
|
47
|
+
"@tailwindcss/line-clamp": "^0.2.0",
|
|
48
|
+
"@tailwindcss/typography": "^0.4.0",
|
|
49
|
+
"rxjs": "^6.6.7",
|
|
50
|
+
"patch-package": "^6.4.7",
|
|
51
|
+
"postcss": "^8.4.12",
|
|
52
|
+
"scss-bundle": "^3.1.2",
|
|
53
|
+
"tailwindcss": "^2.1.2"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const pathLib = require('path');
|
|
2
|
+
const scssBundler = require('scss-bundle');
|
|
3
|
+
const fs = require('fs-extra');
|
|
4
|
+
|
|
5
|
+
/** Bundles all SCSS files into a single file */
|
|
6
|
+
async function bundleScss(): Promise<void> {
|
|
7
|
+
console.log('running bundleScss');
|
|
8
|
+
const isolatedStyles = ['modal.css'];
|
|
9
|
+
const bundler = new scssBundler.Bundler();
|
|
10
|
+
const sourcePath = './projects/ng-components/src/_styles.css';
|
|
11
|
+
const { found, bundledContent, imports } = await bundler.bundle(sourcePath, ['./src/**/*.css', './src/**/*.scss']);
|
|
12
|
+
if (imports) {
|
|
13
|
+
console.log('running bundleScss - imports found');
|
|
14
|
+
const cwd = process.cwd();
|
|
15
|
+
|
|
16
|
+
const filesNotFound = imports.filter((x: any) => !x.found).map((x: any) => pathLib.relative(cwd, x.filePath));
|
|
17
|
+
|
|
18
|
+
if (filesNotFound.length) {
|
|
19
|
+
console.error(`SCSS imports failed \n\n${filesNotFound.join('\n - ')}\n`);
|
|
20
|
+
throw new Error('One or more SCSS imports failed');
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
if (found) {
|
|
25
|
+
await fs.writeFile('./dist/ng-components/_styles.css', bundledContent);
|
|
26
|
+
isolatedStyles.forEach((f) => {
|
|
27
|
+
fs.copy(`./projects/ng-components/src/assets/styles/${f}`, `./dist/ng-components/${f}`);
|
|
28
|
+
});
|
|
29
|
+
console.log('running bundleScss - finidshed file');
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
bundleScss();
|
package/src/_styles.css
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@import './assets/styles/base.css';
|
|
2
|
+
@import './assets/styles/components.css';
|
|
3
|
+
@import './assets/styles/nav-links.css';
|
|
4
|
+
|
|
5
|
+
@import './assets/styles/shell-layout.css';
|
|
6
|
+
@import './assets/styles/view-layout.css';
|
|
7
|
+
@import './assets/styles/model-view-layout.css';
|
|
8
|
+
@import './assets/styles/form-layout.css';
|
|
9
|
+
@import './assets/styles/side-view-layout.css';
|
|
10
|
+
|
|
11
|
+
@import './assets/styles/side-pane.css';
|
|
12
|
+
@import './assets/styles/cards.css';
|
|
13
|
+
@import './assets/styles/pager.css';
|
|
14
|
+
@import './assets/styles/drop-down-menu.css';
|
|
15
|
+
@import './assets/styles/collapsible-panel.css';
|
|
16
|
+
@import './assets/styles/list-view.css';
|
|
17
|
+
@import './assets/styles/date-picker.component.css';
|
|
18
|
+
@import './assets/styles/toast.css';
|
|
19
|
+
@import './assets/styles/avatar-initials.css';
|
|
20
|
+
@import './assets/styles/toggle.css';
|
|
21
|
+
@import './assets/styles/modal.css';
|
|
22
|
+
|
|
23
|
+
@import './assets/styles/notifications-indicator.component.css';
|
|
24
|
+
@import './assets/styles/indice-ng-icons-inline.css';
|
|
25
|
+
|
|
26
|
+
.modal-active {
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
button:active {
|
|
31
|
+
transform: translateY(2px);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
a:active {
|
|
35
|
+
transform: translateY(2px);
|
|
36
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { UtilitiesService } from '../lib/services/utilities.service';
|
|
4
|
+
|
|
5
|
+
describe('UtilitiesService', () => {
|
|
6
|
+
let service: UtilitiesService;
|
|
7
|
+
|
|
8
|
+
beforeEach(() => {
|
|
9
|
+
TestBed.configureTestingModule({});
|
|
10
|
+
service = TestBed.inject(UtilitiesService);
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
it('should be created', () => {
|
|
14
|
+
expect(service).toBeTruthy();
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
|
|
3
|
+
.avatar-container {
|
|
4
|
+
@apply inline-flex items-center justify-center h-8 w-8 rounded-full bg-gray-800;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.avatar-container-large {
|
|
8
|
+
@apply inline-flex items-center justify-center h-12 w-12 rounded-full bg-gray-500;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.avatar-text {
|
|
12
|
+
@apply text-sm font-medium leading-none text-blue-300;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.avatar-text-large {
|
|
16
|
+
@apply text-xl font-medium leading-none text-white;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.circle {
|
|
21
|
+
display: flex;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
align-items: center;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.circle img {
|
|
27
|
+
border-radius: 50%;
|
|
28
|
+
width: 60px;
|
|
29
|
+
height: 60px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.circle .initials {
|
|
33
|
+
color: #FFFFFF;
|
|
34
|
+
font-size: 20px;
|
|
35
|
+
line-height: 19px;
|
|
36
|
+
letter-spacing: 0.2625px;
|
|
37
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@import 'tailwindcss/base';
|
|
2
|
+
@import 'tailwindcss/components';
|
|
3
|
+
@import 'tailwindcss/utilities';
|
|
4
|
+
|
|
5
|
+
@layer base {
|
|
6
|
+
h1 {
|
|
7
|
+
@apply text-2xl;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
h2 {
|
|
11
|
+
@apply text-xl;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
h3 {
|
|
15
|
+
@apply text-lg;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
a {
|
|
19
|
+
@apply text-gray-600;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
select {
|
|
23
|
+
@apply max-w-lg block focus:ring-gray-300 ring-opacity-25 focus:border-gray-300 w-full shadow-sm sm:max-w-xs sm:text-sm border-gray-200 rounded-sm;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
input[type=text] {
|
|
27
|
+
@apply focus:ring-gray-500 focus:border-gray-300 ring-opacity-25 flex-1 block w-full rounded-none sm:text-sm border-gray-200;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
input[type=password] {
|
|
31
|
+
@apply focus:ring-gray-500 focus:border-gray-300 ring-opacity-25 flex-1 block w-full rounded-none sm:text-sm border-gray-200;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
input[type=email] {
|
|
35
|
+
@apply focus:ring-gray-500 focus:border-gray-300 ring-opacity-25 flex-1 block w-full rounded-none sm:text-sm border-gray-200;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
input[type=number] {
|
|
39
|
+
@apply focus:ring-gray-500 focus:border-gray-300 ring-opacity-25 flex-1 block w-full rounded-none sm:text-sm border-gray-200;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
textarea {
|
|
43
|
+
@apply shadow-sm focus:ring-gray-500 focus:border-gray-500 mt-1 block w-full sm:text-sm border-gray-300 rounded-sm;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.card-deck-busy{
|
|
3
|
+
@apply animate-pulse;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.cards-deck-1 {
|
|
7
|
+
@apply grid grid-cols-1 gap-0 sm:grid-cols-1 lg:grid-cols-1;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.cards-deck-2 {
|
|
11
|
+
@apply grid grid-cols-1 gap-5 sm:grid-cols-1 lg:grid-cols-2;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.cards-deck-3 {
|
|
15
|
+
@apply grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-3;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.cards-deck-4 {
|
|
19
|
+
@apply grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-4;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.card {
|
|
23
|
+
@apply relative h-full border border-gray-200 bg-white shadow-sm rounded-sm overflow-hidden;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.card-body {
|
|
27
|
+
@apply pt-2 px-4 pb-12 sm:pt-6 sm:px-6;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.card-img-top {
|
|
31
|
+
@apply object-cover w-full h-48;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.card-header {
|
|
35
|
+
@apply inset-x-0 bg-gray-50 px-4 py-4 sm:px-6 border-b border-gray-200;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.card-footer {
|
|
39
|
+
@apply absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6 border-t border-gray-200;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.kpi-tile-title-container {
|
|
43
|
+
@apply uppercase mb-2 overflow-ellipsis overflow-hidden;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.kpi-tile-action {
|
|
47
|
+
@apply hover:text-gray-500;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.kpi-tile-value {
|
|
51
|
+
@apply text-6xl font-thin my-6;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.gallery-deck-1 {
|
|
55
|
+
@apply grid grid-cols-1 p-4 gap-x-6 sm:grid-cols-2;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.gallery-deck-2 {
|
|
59
|
+
@apply grid grid-cols-1 gap-x-4 gap-y-8 sm:grid-cols-2 sm:gap-x-6 p-4;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
.gallery-deck-3 {
|
|
64
|
+
@apply grid grid-cols-1 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-6 p-4;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
.gallery-deck-4 {
|
|
69
|
+
@apply grid grid-cols-1 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-6 lg:grid-cols-4 xl:gap-x-8 p-4;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.collapsible-panel-container {
|
|
3
|
+
@apply bg-white border border-gray-200 mb-2;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.collapsible-panel-container-shadow {
|
|
7
|
+
@apply shadow-sm;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.collapsible-panel-container-inner {
|
|
11
|
+
@apply relative border-b border-gray-200;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.collapsible-panel-button {
|
|
15
|
+
@apply w-full px-8 py-6 text-left;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.collapsible-panel-button-content-container {
|
|
19
|
+
@apply flex items-center justify-between;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.collapsible-panel-content-container {
|
|
23
|
+
@apply relative overflow-hidden transition-all duration-700;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
|
|
3
|
+
.md-visible {
|
|
4
|
+
@apply hidden md:block;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.btn-outline {
|
|
8
|
+
@apply focus:outline-none bg-transparent text-gray-700 text-sm hover:text-gray-800 px-2.5 py-1.5 border border-gray-500 hover:border-gray-600 rounded-sm;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.btn-outline:disabled {
|
|
12
|
+
@apply focus:outline-none bg-transparent text-gray-400 text-sm px-2.5 py-1.5 border border-gray-300 rounded-sm cursor-not-allowed;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
.btn-view-header {
|
|
17
|
+
@apply text-base focus:outline-none inline-flex items-center justify-center w-10 h-10 text-white transition-colors duration-150 rounded-md hover:shadow-sm hover:bg-gray-900;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
.btn-form-view-header {
|
|
22
|
+
@apply text-base focus:outline-none inline-flex items-center justify-center w-10 h-10 text-gray-700 transition-colors duration-150 rounded-sm hover:shadow-sm hover:bg-gray-50;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.btn-form-view-header-search {
|
|
26
|
+
@apply rounded-l-none text-base focus:outline-none inline-flex items-center justify-center w-10 h-10 text-gray-700 transition-colors duration-150 rounded-sm hover:shadow-sm hover:bg-gray-50;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.selected-view-indicator {
|
|
30
|
+
@apply absolute top-0 right-0 block ml-2 h-1.5 w-1.5 rounded-full ring-1 ring-white bg-blue-300;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
}
|
|
34
|
+
|
|
File without changes
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.dropdown-container {
|
|
3
|
+
@apply relative w-auto;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.dropdown-button {
|
|
7
|
+
@apply bg-white relative w-full border border-gray-300 rounded-sm shadow-sm pl-3 pr-10 py-2 text-left cursor-default
|
|
8
|
+
focus:outline-none focus:border-gray-500 sm:text-sm;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.dropdown-selected-text {
|
|
12
|
+
@apply block truncate;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.dropdown-button-icon {
|
|
16
|
+
@apply absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.dropdown-arrow {
|
|
20
|
+
@apply h-5 w-5 text-gray-400;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.dropdown-ul {
|
|
24
|
+
@apply absolute z-50 mt-1 w-auto bg-white shadow-lg max-h-60 rounded-sm py-1 text-base ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm overflow-x-hidden;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.dropdown-li {
|
|
28
|
+
@apply text-gray-900 cursor-default select-none relative py-2 pl-3 pr-9 hover:bg-gray-100 min-w-max;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.dropdown-li-selected {
|
|
32
|
+
@apply text-gray-900 cursor-default select-none relative py-2 pl-3 pr-9 min-w-max;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.dropdown-li-text {
|
|
36
|
+
@apply font-normal block truncate;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.dropdown-li-selected-text {
|
|
40
|
+
@apply font-semibold block truncate;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.dropdown-li-selected-indicator-container {
|
|
44
|
+
@apply text-gray-600 absolute inset-y-0 right-0 flex items-center pr-4;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.dropdown-li-selected-indicator {
|
|
48
|
+
@apply h-5 w-5;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.form-layout-container {
|
|
3
|
+
@apply bg-white shadow-sm border border-gray-200 rounded-sm;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.form-header {
|
|
7
|
+
@apply px-4 py-5 sm:px-6 bg-gray-50 sm:flex sm:items-center sm:justify-between;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.form-header-inner {
|
|
11
|
+
@apply flex-1 min-w-0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.form-title {
|
|
15
|
+
@apply text-lg leading-6 font-medium text-gray-900;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.form-subtitle {
|
|
19
|
+
@apply mt-1 max-w-2xl text-sm text-gray-500;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.form-header-actions {
|
|
23
|
+
@apply mt-4 flex md:mt-0 md:ml-4;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.form-content-container {
|
|
27
|
+
@apply border-t border-gray-200 px-4 py-5 sm:p-0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.form-content-container-inner {
|
|
31
|
+
@apply flex flex-col pt-4;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.form-header-search-input {
|
|
35
|
+
@apply block w-60 bg-gray-50 rounded-sm text-sm text-gray-900 placeholder-gray-500 outline-none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.field-label {
|
|
39
|
+
@apply block text-sm py-2 font-medium text-gray-500;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.field-info {
|
|
43
|
+
@apply mt-2 text-xs text-gray-400 py-2;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.form-actions {
|
|
47
|
+
@apply px-4 py-3 bg-gray-100 text-gray-700 text-right sm:px-6 flex justify-end;
|
|
48
|
+
}
|
|
49
|
+
}
|