@annalib/anna-core 3.2.0 → 3.3.0
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/karma.conf.js +44 -0
- package/ng-package.json +14 -0
- package/package.json +18 -38
- package/src/lib/anna-common-scss/_application-spacing.scss +6 -0
- package/src/lib/anna-common-scss/_mixins.scss +187 -0
- package/src/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.html +22 -0
- package/src/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.scss +0 -0
- package/src/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.spec.ts +25 -0
- package/src/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.ts +16 -0
- package/src/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.html +33 -0
- package/src/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.scss +0 -0
- package/src/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.spec.ts +25 -0
- package/src/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.ts +28 -0
- package/src/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.html +20 -0
- package/src/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.scss +0 -0
- package/src/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.spec.ts +25 -0
- package/src/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.ts +16 -0
- package/src/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.html +3 -0
- package/src/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.scss +17 -0
- package/src/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.spec.ts +24 -0
- package/src/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.ts +20 -0
- package/src/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.html +23 -0
- package/src/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.scss +0 -0
- package/src/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.spec.ts +25 -0
- package/src/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.ts +16 -0
- package/src/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.html +15 -0
- package/src/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.scss +0 -0
- package/src/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.spec.ts +25 -0
- package/src/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.ts +19 -0
- package/src/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.html +14 -0
- package/src/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.scss +0 -0
- package/src/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.spec.ts +25 -0
- package/src/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.ts +16 -0
- package/src/lib/anna-core-shared-lib/constants/shared.constant.ts +34 -0
- package/src/lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive.ts +19 -0
- package/src/lib/anna-core-shared-lib/models/anna-generic-data-type.model.ts +15 -0
- package/{lib/anna-core-shared-lib/models/anna-global-dropdown-config.model.d.ts → src/lib/anna-core-shared-lib/models/anna-global-dropdown-config.model.ts} +21 -9
- package/{lib/anna-core-shared-lib/models/anna-non-editable-gt-models.d.ts → src/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.ts} +27 -17
- package/src/lib/anna-core-shared-lib/models/anna-sort.model.ts +7 -0
- package/src/lib/anna-core-shared-lib/models/anna-tooltip.model.ts +44 -0
- package/src/lib/anna-core-shared-lib/pipes/annaFilterSearchedText.pipe.ts +26 -0
- package/src/lib/anna-core-shared-lib/services/anna-date-time-format.service.ts +202 -0
- package/src/lib/anna-core-shared-lib/services/anna-filter.service.ts +507 -0
- package/src/lib/anna-core-shared-lib/services/anna-generic-table.service.ts +44 -0
- package/src/lib/anna-core-shared-lib/services/anna-global-config.service.ts +170 -0
- package/src/lib/anna-core-shared-lib/services/anna-sort.service.ts +179 -0
- package/src/lib/anna-core.module.ts +99 -0
- package/src/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.html +46 -0
- package/src/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.scss +153 -0
- package/src/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.spec.ts +24 -0
- package/src/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.ts +106 -0
- package/src/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.html +129 -0
- package/src/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.scss +275 -0
- package/src/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.spec.ts +24 -0
- package/src/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.ts +412 -0
- package/src/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.html +920 -0
- package/src/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.scss +596 -0
- package/src/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.spec.ts +25 -0
- package/src/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.ts +2012 -0
- package/src/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.html +10 -0
- package/src/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.scss +1 -0
- package/src/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.spec.ts +24 -0
- package/src/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.ts +70 -0
- package/src/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.html +13 -0
- package/src/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.scss +88 -0
- package/src/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.spec.ts +25 -0
- package/src/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.ts +460 -0
- package/src/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/anna-fixed-row-size-table-virtual-scroll-strategy.directive.ts +237 -0
- package/{lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/index.d.ts → src/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/index.ts} +0 -0
- package/src/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.ts +204 -0
- package/{lib/anna-generic-table-lib/directives/anna-virtual-table/index.d.ts → src/lib/anna-generic-table-lib/directives/anna-virtual-table/index.ts} +0 -0
- package/{public-api.d.ts → src/public-api.ts} +28 -0
- package/src/test.ts +27 -0
- package/tsconfig.lib.json +19 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/annalib-anna-core.d.ts +0 -5
- package/esm2020/annalib-anna-core.mjs +0 -5
- package/esm2020/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.mjs +0 -15
- package/esm2020/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.mjs +0 -35
- package/esm2020/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.mjs +0 -15
- package/esm2020/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.mjs +0 -22
- package/esm2020/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.mjs +0 -15
- package/esm2020/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.mjs +0 -21
- package/esm2020/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.mjs +0 -15
- package/esm2020/lib/anna-core-shared-lib/constants/shared.constant.mjs +0 -34
- package/esm2020/lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive.mjs +0 -27
- package/esm2020/lib/anna-core-shared-lib/models/anna-generic-data-type.model.mjs +0 -2
- package/esm2020/lib/anna-core-shared-lib/models/anna-global-dropdown-config.model.mjs +0 -2
- package/esm2020/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.mjs +0 -3
- package/esm2020/lib/anna-core-shared-lib/models/anna-sort.model.mjs +0 -2
- package/esm2020/lib/anna-core-shared-lib/models/anna-tooltip.model.mjs +0 -30
- package/esm2020/lib/anna-core-shared-lib/pipes/annaFilterSearchedText.pipe.mjs +0 -31
- package/esm2020/lib/anna-core-shared-lib/services/anna-date-time-format.service.mjs +0 -190
- package/esm2020/lib/anna-core-shared-lib/services/anna-filter.service.mjs +0 -419
- package/esm2020/lib/anna-core-shared-lib/services/anna-generic-table.service.mjs +0 -48
- package/esm2020/lib/anna-core-shared-lib/services/anna-global-config.service.mjs +0 -133
- package/esm2020/lib/anna-core-shared-lib/services/anna-sort.service.mjs +0 -147
- package/esm2020/lib/anna-core.module.mjs +0 -156
- package/esm2020/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.mjs +0 -100
- package/esm2020/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.mjs +0 -362
- package/esm2020/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +0 -1687
- package/esm2020/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.mjs +0 -67
- package/esm2020/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.mjs +0 -357
- package/esm2020/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/anna-fixed-row-size-table-virtual-scroll-strategy.directive.mjs +0 -189
- package/esm2020/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/index.mjs +0 -2
- package/esm2020/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.mjs +0 -178
- package/esm2020/lib/anna-generic-table-lib/directives/anna-virtual-table/index.mjs +0 -2
- package/esm2020/public-api.mjs +0 -44
- package/fesm2015/annalib-anna-core.mjs +0 -4162
- package/fesm2015/annalib-anna-core.mjs.map +0 -1
- package/fesm2020/annalib-anna-core.mjs +0 -4159
- package/fesm2020/annalib-anna-core.mjs.map +0 -1
- package/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.d.ts +0 -8
- package/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.d.ts +0 -16
- package/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.d.ts +0 -8
- package/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.d.ts +0 -11
- package/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.d.ts +0 -8
- package/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.d.ts +0 -11
- package/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.d.ts +0 -8
- package/lib/anna-core-shared-lib/constants/shared.constant.d.ts +0 -32
- package/lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive.d.ts +0 -9
- package/lib/anna-core-shared-lib/models/anna-generic-data-type.model.d.ts +0 -12
- package/lib/anna-core-shared-lib/models/anna-sort.model.d.ts +0 -6
- package/lib/anna-core-shared-lib/models/anna-tooltip.model.d.ts +0 -25
- package/lib/anna-core-shared-lib/pipes/annaFilterSearchedText.pipe.d.ts +0 -9
- package/lib/anna-core-shared-lib/services/anna-date-time-format.service.d.ts +0 -26
- package/lib/anna-core-shared-lib/services/anna-filter.service.d.ts +0 -73
- package/lib/anna-core-shared-lib/services/anna-generic-table.service.d.ts +0 -14
- package/lib/anna-core-shared-lib/services/anna-global-config.service.d.ts +0 -21
- package/lib/anna-core-shared-lib/services/anna-sort.service.d.ts +0 -16
- package/lib/anna-core.module.d.ts +0 -32
- package/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.d.ts +0 -34
- package/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.d.ts +0 -70
- package/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +0 -268
- package/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.d.ts +0 -17
- package/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.d.ts +0 -141
- package/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/anna-fixed-row-size-table-virtual-scroll-strategy.directive.d.ts +0 -89
- package/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.d.ts +0 -45
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 1 Chrome version
|
|
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
|
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/anna-core'),
|
|
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
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
|
|
3
|
+
"dest": "../../dist/anna-core",
|
|
4
|
+
"lib": {
|
|
5
|
+
"entryFile": "src/public-api.ts",
|
|
6
|
+
"styleIncludePaths": [
|
|
7
|
+
"src/lib/anna-common-scss"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
"assets": [
|
|
11
|
+
"src/lib/anna-common-scss",
|
|
12
|
+
"src/lib/anna-assets"
|
|
13
|
+
]
|
|
14
|
+
}
|
package/package.json
CHANGED
|
@@ -1,38 +1,18 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@annalib/anna-core",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"peerDependencies": {
|
|
5
|
-
"@angular-slider/ngx-slider": "2.0.3",
|
|
6
|
-
"@angular/common": "^13.2.0",
|
|
7
|
-
"@angular/core": "^13.2.0",
|
|
8
|
-
"@angular/material": "^13.2.6",
|
|
9
|
-
"@ng-bootstrap/ng-bootstrap": "^9.0.1",
|
|
10
|
-
"lodash-es": "^4.17.21",
|
|
11
|
-
"moment": "^2.24.0",
|
|
12
|
-
"ngx-skeleton-loader": "^2.10.1",
|
|
13
|
-
"ng-circle-progress": "^1.6.0"
|
|
14
|
-
},
|
|
15
|
-
"dependencies": {
|
|
16
|
-
"tslib": "^2.3.0"
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
"es2020": "fesm2020/annalib-anna-core.mjs",
|
|
20
|
-
"esm2020": "esm2020/annalib-anna-core.mjs",
|
|
21
|
-
"fesm2020": "fesm2020/annalib-anna-core.mjs",
|
|
22
|
-
"fesm2015": "fesm2015/annalib-anna-core.mjs",
|
|
23
|
-
"typings": "annalib-anna-core.d.ts",
|
|
24
|
-
"exports": {
|
|
25
|
-
"./package.json": {
|
|
26
|
-
"default": "./package.json"
|
|
27
|
-
},
|
|
28
|
-
".": {
|
|
29
|
-
"types": "./annalib-anna-core.d.ts",
|
|
30
|
-
"esm2020": "./esm2020/annalib-anna-core.mjs",
|
|
31
|
-
"es2020": "./fesm2020/annalib-anna-core.mjs",
|
|
32
|
-
"es2015": "./fesm2015/annalib-anna-core.mjs",
|
|
33
|
-
"node": "./fesm2015/annalib-anna-core.mjs",
|
|
34
|
-
"default": "./fesm2020/annalib-anna-core.mjs"
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"sideEffects": false
|
|
38
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@annalib/anna-core",
|
|
3
|
+
"version": "3.3.0",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular-slider/ngx-slider": "2.0.3",
|
|
6
|
+
"@angular/common": "^13.2.0",
|
|
7
|
+
"@angular/core": "^13.2.0",
|
|
8
|
+
"@angular/material": "^13.2.6",
|
|
9
|
+
"@ng-bootstrap/ng-bootstrap": "^9.0.1",
|
|
10
|
+
"lodash-es": "^4.17.21",
|
|
11
|
+
"moment": "^2.24.0",
|
|
12
|
+
"ngx-skeleton-loader": "^2.10.1",
|
|
13
|
+
"ng-circle-progress": "^1.6.0"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"tslib": "^2.3.0"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
@mixin button-social-size($padding-y, $padding-x, $font-size, $line-height, $border-radius) {
|
|
2
|
+
padding: $padding-y $padding-x;
|
|
3
|
+
font-size: $font-size;
|
|
4
|
+
line-height: $line-height;
|
|
5
|
+
border: 0;
|
|
6
|
+
@include border-radius($border-radius);
|
|
7
|
+
|
|
8
|
+
&::before {
|
|
9
|
+
width: ($padding-y * 2) + ($font-size * $line-height);
|
|
10
|
+
height: ($padding-y * 2) + ($font-size * $line-height);
|
|
11
|
+
padding: $padding-y 0;
|
|
12
|
+
font-size: $font-size;
|
|
13
|
+
line-height: $line-height;
|
|
14
|
+
@include border-radius($border-radius);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
span {
|
|
18
|
+
margin-left: ($padding-y * 2) + ($font-size * $line-height);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.icon {
|
|
22
|
+
width: ($padding-y * 2) + ($font-size * $line-height);
|
|
23
|
+
height: ($padding-y * 2) + ($font-size * $line-height);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@mixin avatar($width, $status-width) {
|
|
28
|
+
position: relative;
|
|
29
|
+
display: inline-block;
|
|
30
|
+
width: $width;
|
|
31
|
+
|
|
32
|
+
.img-avatar {
|
|
33
|
+
width: $width;
|
|
34
|
+
height: $width;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.avatar-status {
|
|
38
|
+
position: absolute;
|
|
39
|
+
right: 0;
|
|
40
|
+
bottom: 0;
|
|
41
|
+
display: block;
|
|
42
|
+
width: $status-width;
|
|
43
|
+
height: $status-width;
|
|
44
|
+
border: 1px solid #fff;
|
|
45
|
+
border-radius: 50em;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@mixin borders($borders) {
|
|
50
|
+
@each $border in $borders {
|
|
51
|
+
$direction: nth($border, 1);
|
|
52
|
+
@if $direction == "all" {
|
|
53
|
+
$size: map-get(map-get($borders, $direction), size);
|
|
54
|
+
$style: map-get(map-get($borders, $direction), style);
|
|
55
|
+
$color: map-get(map-get($borders, $direction), color);
|
|
56
|
+
border: $size $style $color;
|
|
57
|
+
} @else if $direction == "top" {
|
|
58
|
+
$size: map-get(map-get($borders, $direction), size);
|
|
59
|
+
$style: map-get(map-get($borders, $direction), style);
|
|
60
|
+
$color: map-get(map-get($borders, $direction), color);
|
|
61
|
+
border-top: $size $style $color;
|
|
62
|
+
} @else if $direction == "right" {
|
|
63
|
+
$size: map-get(map-get($borders, $direction), size);
|
|
64
|
+
$style: map-get(map-get($borders, $direction), style);
|
|
65
|
+
$color: map-get(map-get($borders, $direction), color);
|
|
66
|
+
border-right: $size $style $color;
|
|
67
|
+
} @else if $direction == "bottom" {
|
|
68
|
+
$size: map-get(map-get($borders, $direction), size);
|
|
69
|
+
$style: map-get(map-get($borders, $direction), style);
|
|
70
|
+
$color: map-get(map-get($borders, $direction), color);
|
|
71
|
+
border-bottom: $size $style $color;
|
|
72
|
+
} @else if $direction == "left" {
|
|
73
|
+
$size: map-get(map-get($borders, $direction), size);
|
|
74
|
+
$style: map-get(map-get($borders, $direction), style);
|
|
75
|
+
$color: map-get(map-get($borders, $direction), color);
|
|
76
|
+
border-left: $size $style $color;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@mixin sidebar-width($borders, $width) {
|
|
82
|
+
$sidebar-width: $width;
|
|
83
|
+
|
|
84
|
+
@each $border in $borders {
|
|
85
|
+
$direction: nth($border, 1);
|
|
86
|
+
@if $direction == "all" {
|
|
87
|
+
$size: map-get(map-get($borders, $direction), size);
|
|
88
|
+
$sidebar-width: ($sidebar-width - (2 * $size));
|
|
89
|
+
} @else if $direction == "right" {
|
|
90
|
+
$size: map-get(map-get($borders, $direction), size);
|
|
91
|
+
$sidebar-width: $sidebar-width - $size;
|
|
92
|
+
} @else if $direction == "left" {
|
|
93
|
+
$size: map-get(map-get($borders, $direction), size);
|
|
94
|
+
$sidebar-width: $sidebar-width - $size;
|
|
95
|
+
}
|
|
96
|
+
width: $sidebar-width;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@mixin bg-variant($parent, $color) {
|
|
101
|
+
#{"" + $parent} {
|
|
102
|
+
@include border-radius(
|
|
103
|
+
$card-border-radius-inner $card-border-radius-inner $card-border-radius-inner $card-border-radius-inner
|
|
104
|
+
);
|
|
105
|
+
color: #fff !important;
|
|
106
|
+
background-color: $color !important;
|
|
107
|
+
}
|
|
108
|
+
a#{"" + $parent} {
|
|
109
|
+
@include hover-focus {
|
|
110
|
+
background-color: darken($color, 10%);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@mixin card-accent-variant($color) {
|
|
116
|
+
border-top-width: 2px;
|
|
117
|
+
border-top-color: $color;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@mixin tabs-style($color) {
|
|
121
|
+
display: inline-block;
|
|
122
|
+
margin-right: 20px;
|
|
123
|
+
font-size: 16px;
|
|
124
|
+
color: $color;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@mixin fit-content() {
|
|
128
|
+
width: fit-content !important;
|
|
129
|
+
width: -moz-max-content !important;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@mixin fit-content-height() {
|
|
133
|
+
height: fit-content !important;
|
|
134
|
+
height: -moz-max-content !important;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@mixin label($fontSize, $fontWeight, $fontStyle, $letterSpacing, $color) {
|
|
138
|
+
font-family: Roboto;
|
|
139
|
+
font-size: $fontSize;
|
|
140
|
+
font-weight: normal;
|
|
141
|
+
font-stretch: normal;
|
|
142
|
+
font-style: $fontStyle;
|
|
143
|
+
line-height: normal;
|
|
144
|
+
letter-spacing: $letterSpacing;
|
|
145
|
+
color: $color;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
@mixin modal-btn($background-color) {
|
|
149
|
+
width: 100%;
|
|
150
|
+
background-color: $background-color;
|
|
151
|
+
color: white;
|
|
152
|
+
border-radius: initial;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
@mixin OrderListingTableStyling {
|
|
156
|
+
width: 100%;
|
|
157
|
+
tr {
|
|
158
|
+
border: 1px solid #d4d4d4;
|
|
159
|
+
border-top: none;
|
|
160
|
+
th {
|
|
161
|
+
color: #4a4a4a;
|
|
162
|
+
font-size: 11px;
|
|
163
|
+
font-weight: 500;
|
|
164
|
+
letter-spacing: 0.3px;
|
|
165
|
+
vertical-align: middle;
|
|
166
|
+
text-align: left;
|
|
167
|
+
// position: sticky;
|
|
168
|
+
// // z-index: 101 !important;
|
|
169
|
+
// top: 0px;
|
|
170
|
+
padding: unset;
|
|
171
|
+
height: 30px;
|
|
172
|
+
// line-height: 30px;
|
|
173
|
+
border-top: 1px solid #d4d4d4;
|
|
174
|
+
}
|
|
175
|
+
&.header-row th {
|
|
176
|
+
background-color: #ededed;
|
|
177
|
+
}
|
|
178
|
+
td {
|
|
179
|
+
font-size: 12px;
|
|
180
|
+
padding: 2px 0px 3px;
|
|
181
|
+
vertical-align: middle;
|
|
182
|
+
text-align: left;
|
|
183
|
+
color: #000000;
|
|
184
|
+
letter-spacing: 0px;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<ng-container [ngTemplateOutlet]="buyerApprovalIcon"></ng-container>
|
|
2
|
+
|
|
3
|
+
<ng-template #buyerApprovalIcon>
|
|
4
|
+
<svg width="15px" height="15px" viewBox="0 0 20 20">
|
|
5
|
+
<g id="Awaiting-Buyer-Approval-icon" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
6
|
+
<g id="time-left" transform="translate(3.000000, 2.000000)" fill="#4A4A4A" fill-rule="nonzero">
|
|
7
|
+
<path
|
|
8
|
+
d="M6.23157622,14.1696467 C5.70535057,14.0721422 5.2005579,13.9061054 4.72188769,13.6745242 C4.71622258,13.6714711 4.71115545,13.6679958 4.70520709,13.6652025 C4.59240848,13.6104091 4.47979871,13.551718 4.37065094,13.4903961 C4.37027327,13.4899414 4.36958087,13.4896491 4.36898288,13.4893893 C4.16872129,13.37558 3.97327504,13.2496557 3.78339947,13.1117139 C1.01467199,11.0989392 0.348958764,7.13679055 2.29945571,4.27950803 C2.72358352,3.65842885 3.23684237,3.14027823 3.80904983,2.72960334 C3.81609974,2.72453649 3.82314965,2.71950212 3.83013662,2.71440279 C5.84650619,1.28061347 8.58442178,1.183986 10.7254867,2.65733574 L10.2656372,3.34301728 C10.1377946,3.53386873 10.2164452,3.67294733 10.4402485,3.65216024 L12.4377343,3.46760989 C12.6618209,3.4468228 12.7958322,3.24677957 12.7355617,3.0234483 L12.1991703,1.02899228 C12.1391202,0.805401178 11.9853754,0.778637804 11.8574069,0.969456765 L11.3964873,1.6567623 C9.82523796,0.568265989 7.94067659,0.153206329 6.0701521,0.487943386 C5.88175576,0.521592483 5.69600314,0.562776899 5.51279981,0.610717118 C5.51138354,0.610976957 5.51025052,0.611139356 5.50911749,0.611399194 C5.50203611,0.613185585 5.4948603,0.615556612 5.48796775,0.617537881 C3.8749854,1.04500483 2.46767797,2.01585923 1.46347449,3.40105873 C1.4550083,3.41141979 1.44629033,3.4215535 1.43829623,3.432824 C1.40490356,3.47923766 1.37176268,3.52672316 1.33931419,3.57420867 C1.28625101,3.65203032 1.23394317,3.73180077 1.18390138,3.81157121 C1.17763828,3.82118524 1.17285441,3.83096167 1.16737814,3.84067314 C0.338698623,5.1658824 -0.0610062726,6.69795566 0.00754154337,8.25770173 C0.00769890751,8.26283354 0.00741565207,8.26799784 0.00754154337,8.27325957 C0.0141823097,8.42562242 0.0258902012,8.58009646 0.0417839785,8.73216699 C0.0426337448,8.7419759 0.0447424242,8.75126512 0.0463475384,8.76107403 C0.0627763537,8.91398904 0.0833910551,9.06726132 0.109230246,9.22050113 C0.371839509,10.7840149 1.08652445,12.1909434 2.15745032,13.2856758 C2.15993667,13.2882417 2.16251744,13.291035 2.16503527,13.2936983 C2.16591651,13.2947052 2.16689216,13.2952249 2.16774193,13.2961668 C2.45546651,13.5890373 2.7684323,13.8599191 3.10541185,14.1048494 C3.98728044,14.7461311 4.9692641,15.1700252 6.02385557,15.3653264 C6.3438398,15.424667 6.64950389,15.2048436 6.70691032,14.8747836 C6.76428528,14.5444963 6.55146603,14.2287924 6.23157622,14.1696467 Z"
|
|
9
|
+
id="Path"
|
|
10
|
+
></path>
|
|
11
|
+
<path
|
|
12
|
+
d="M9.22237925,14.6588011 C9.29073073,14.9263505 9.1292489,15.198652 8.86169949,15.2670034 C8.51639563,15.355219 8.1641424,15.4188128 7.8069689,15.4570516 C7.53239558,15.4864472 7.28598003,15.2876915 7.25658436,15.0131182 C7.22718869,14.7385449 7.42594445,14.4921293 7.70051776,14.4627336 C8.01004537,14.4295958 8.31515603,14.3745129 8.61417689,14.2981213 C8.8817263,14.2297698 9.15402777,14.3912517 9.22237925,14.6588011 Z M12.5552524,12.2886551 C12.7611952,12.4726175 12.7790139,12.7886982 12.5950515,12.994641 C12.3569806,13.2611574 12.1001968,13.5104915 11.8267859,13.7406023 C11.6155121,13.9184167 11.3000937,13.8912925 11.1222793,13.6800187 C10.9444648,13.4687448 10.9715891,13.1533264 11.1828629,12.975512 C11.4200152,12.7759175 11.6427598,12.5596351 11.8492666,12.3284542 C12.033229,12.1225114 12.3493096,12.1046927 12.5552524,12.2886551 Z M13.9945063,8.57622811 C14.2674538,8.61811209 14.4547678,8.87333344 14.4128838,9.14628095 C14.3584322,9.50112883 14.2787427,9.85020038 14.1746496,10.1914009 C14.0940709,10.4555252 13.8146338,10.6043183 13.5505094,10.5237395 C13.2863851,10.4431608 13.137592,10.1637237 13.2181708,9.89959931 C13.3082912,9.6041989 13.3772907,9.30195366 13.4244534,8.99460564 C13.4663374,8.72165813 13.7215588,8.53434413 13.9945063,8.57622811 Z M13.8741743,4.99628976 C14.0173723,5.32357494 14.1370467,5.66111195 14.2320931,6.00667963 C14.305325,6.27293459 14.1488489,6.54814305 13.8825939,6.62137492 C13.6163389,6.6946068 13.3411305,6.53813067 13.2678986,6.27187571 C13.1856167,5.97271686 13.0820133,5.68050756 12.958028,5.39713383 C12.847338,5.14414702 12.9626923,4.84932868 13.2156791,4.73863865 C13.4686659,4.62794862 13.7634843,4.74330295 13.8741743,4.99628976 Z"
|
|
13
|
+
id="Combined-Shape"
|
|
14
|
+
></path>
|
|
15
|
+
<path
|
|
16
|
+
d="M6.49684035,4 C6.22234237,4 6,4.21290493 6,4.47514225 L6,9.20888548 L10.5252942,11.4469308 C10.5981282,11.4830116 10.6761155,11.5 10.7528554,11.5 C10.9325937,11.5 11.106194,11.4063595 11.1944548,11.2429754 C11.3203307,11.0097848 11.2250786,10.7233052 10.9813357,10.6028789 L6.9931227,8.63027395 L6.9931227,4.47514225 C6.99308988,4.21290493 6.77101009,4 6.49684035,4 Z"
|
|
17
|
+
id="Path"
|
|
18
|
+
></path>
|
|
19
|
+
</g>
|
|
20
|
+
</g>
|
|
21
|
+
</svg>
|
|
22
|
+
</ng-template>
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { AnnaBuyerApprovalIconTemplateComponent } from './anna-buyer-approval-icon-template.component';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
describe('AnnaBuyerApprovalIconTemplateComponent', () => {
|
|
6
|
+
let component: AnnaBuyerApprovalIconTemplateComponent;
|
|
7
|
+
let fixture: ComponentFixture<AnnaBuyerApprovalIconTemplateComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ AnnaBuyerApprovalIconTemplateComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(AnnaBuyerApprovalIconTemplateComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'anna-buyer-approval-icon-template',
|
|
5
|
+
templateUrl: './anna-buyer-approval-icon-template.component.html',
|
|
6
|
+
styleUrls: ['./anna-buyer-approval-icon-template.component.scss'],
|
|
7
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
8
|
+
})
|
|
9
|
+
export class AnnaBuyerApprovalIconTemplateComponent implements OnInit {
|
|
10
|
+
|
|
11
|
+
constructor() { }
|
|
12
|
+
|
|
13
|
+
ngOnInit(): void {
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
package/src/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.html
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<ng-container *ngIf="componentName == 'ORDER_LISTING_INFLIGHT'">
|
|
2
|
+
<span
|
|
3
|
+
*ngIf="dataObject.payForPerformance && dataObject.orderCategory == 'TV Revenue' && objectKey == 'payForPerformance'"
|
|
4
|
+
class="cursor-not-allowed"
|
|
5
|
+
(click)="$event.stopPropagation()"
|
|
6
|
+
>
|
|
7
|
+
<anna-pay-for-performance-icon-template
|
|
8
|
+
[color]="PfpIconActiveColor"
|
|
9
|
+
[width]="'15px'"
|
|
10
|
+
[height]="'15px'"
|
|
11
|
+
>
|
|
12
|
+
</anna-pay-for-performance-icon-template>
|
|
13
|
+
</span>
|
|
14
|
+
<span
|
|
15
|
+
*ngIf="dataObject.orderStatus == 'UPCOMING' && dataObject.orderCategory == 'TV Revenue' && !dataObject.payForPerformance && objectKey == 'payForPerformance'"
|
|
16
|
+
(click)="svgIconClicked(dataObject,'payForPerformance')"
|
|
17
|
+
>
|
|
18
|
+
<anna-pay-for-performance-icon-template
|
|
19
|
+
[color]="PfpIconDisableColor"
|
|
20
|
+
[width]="'15px'"
|
|
21
|
+
[height]="'15px'"
|
|
22
|
+
>
|
|
23
|
+
</anna-pay-for-performance-icon-template>
|
|
24
|
+
</span>
|
|
25
|
+
|
|
26
|
+
<anna-live-icon-template *ngIf="dataObject.orderStatus == 'LIVE' && objectKey == 'orderStatus' "></anna-live-icon-template>
|
|
27
|
+
</ng-container>
|
|
28
|
+
|
|
29
|
+
<ng-container *ngIf="objectKey == 'bizRuleStatus'">
|
|
30
|
+
<anna-rejected-icon-template *ngIf="dataObject.bizRuleStatus == 'REJECTED'"></anna-rejected-icon-template>
|
|
31
|
+
<anna-notify-icon-template *ngIf="dataObject.bizRuleStatus == 'NOTIFY'"></anna-notify-icon-template>
|
|
32
|
+
<anna-buyer-approval-icon-template *ngIf="dataObject.bizRuleStatus == 'AWAITING_APPROVAL'"></anna-buyer-approval-icon-template>
|
|
33
|
+
</ng-container>
|
package/src/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.scss
ADDED
|
File without changes
|
package/src/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.spec.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { AnnaIconColumnComponent } from './anna-icon-column.component';
|
|
4
|
+
|
|
5
|
+
describe('AnnaIconColumnComponent', () => {
|
|
6
|
+
let component: AnnaIconColumnComponent;
|
|
7
|
+
let fixture: ComponentFixture<AnnaIconColumnComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ AnnaIconColumnComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(AnnaIconColumnComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
package/src/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
|
2
|
+
import { GtColumnIconEmittedData } from '../../models/anna-generic-data-type.model';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'anna-core-anna-icon-column',
|
|
6
|
+
templateUrl: './anna-icon-column.component.html',
|
|
7
|
+
styleUrls: ['./anna-icon-column.component.scss'],
|
|
8
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
9
|
+
})
|
|
10
|
+
export class AnnaIconColumnComponent implements OnInit {
|
|
11
|
+
|
|
12
|
+
@Input() componentName: string;
|
|
13
|
+
@Input() objectKey: string;
|
|
14
|
+
@Input() dataObject: any;
|
|
15
|
+
PfpIconActiveColor = "#9B1B93"
|
|
16
|
+
PfpIconDisableColor = "rgba(189,189,189,0.5)";
|
|
17
|
+
@Output() onColumnIconClicked = new EventEmitter<GtColumnIconEmittedData>();
|
|
18
|
+
|
|
19
|
+
constructor() { }
|
|
20
|
+
|
|
21
|
+
ngOnInit(): void {
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
svgIconClicked(rowData: any,key: string){
|
|
25
|
+
this.onColumnIconClicked.emit({data: rowData,key: key});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<ng-container [ngTemplateOutlet]="liveIcon"></ng-container>
|
|
2
|
+
<ng-template #liveIcon>
|
|
3
|
+
<svg width="15px" height="15px" viewBox="0 0 20 20">
|
|
4
|
+
<g id="Live-Icon" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="next" transform="translate(2.000000, 2.000000)" fill-rule="nonzero">
|
|
6
|
+
<path
|
|
7
|
+
d="M8,0 C3.58171139,0 0,3.58171139 0,8 C0,12.4182886 3.58171139,16 8,16 C12.4182886,16 16,12.4182886 16,8 C15.9950435,3.58379835 12.4162343,0.00498913721 8,0 Z"
|
|
8
|
+
id="Path"
|
|
9
|
+
fill="#C2E361"
|
|
10
|
+
></path>
|
|
11
|
+
<path
|
|
12
|
+
d="M8,16 C3.58171139,16 0,12.4182633 0,7.9999837 C0,3.58170409 3.58171139,0 8,0 C12.4182886,0 16,3.58170409 16,7.9999837 C15.9950435,12.416209 12.4162343,15.9950109 8,16 Z M8,0.695640832 C3.96590756,0.695640832 0.69564225,3.96589948 0.69564225,7.9999837 C0.69564225,12.0340679 3.96590756,15.3043266 8,15.3043266 C12.0340924,15.3043266 15.3043578,12.0340679 15.3043578,7.9999837 C15.2997599,3.96782339 12.0322011,0.700238655 8,0.695640832 Z"
|
|
13
|
+
id="Shape"
|
|
14
|
+
fill="#8BAC2A"
|
|
15
|
+
></path>
|
|
16
|
+
<circle id="Oval" fill="#8BAC2A" cx="8" cy="8" r="4"></circle>
|
|
17
|
+
</g>
|
|
18
|
+
</g>
|
|
19
|
+
</svg>
|
|
20
|
+
</ng-template>
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { AnnaLiveIconTemplateComponent } from './anna-live-icon-template.component';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
describe('LiveIconTemplateComponent', () => {
|
|
6
|
+
let component: AnnaLiveIconTemplateComponent;
|
|
7
|
+
let fixture: ComponentFixture<AnnaLiveIconTemplateComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ AnnaLiveIconTemplateComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(AnnaLiveIconTemplateComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'anna-live-icon-template',
|
|
5
|
+
templateUrl: './anna-live-icon-template.component.html',
|
|
6
|
+
styleUrls: ['./anna-live-icon-template.component.scss'],
|
|
7
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
8
|
+
})
|
|
9
|
+
export class AnnaLiveIconTemplateComponent implements OnInit {
|
|
10
|
+
|
|
11
|
+
constructor() { }
|
|
12
|
+
|
|
13
|
+
ngOnInit(): void {
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
div {
|
|
2
|
+
right: 0;
|
|
3
|
+
margin-left: auto;
|
|
4
|
+
margin-right: auto;
|
|
5
|
+
position: absolute;
|
|
6
|
+
width: 46%;
|
|
7
|
+
margin: 20px;
|
|
8
|
+
z-index: 400;
|
|
9
|
+
label {
|
|
10
|
+
margin: 0;
|
|
11
|
+
width: auto;
|
|
12
|
+
font-weight: 500;
|
|
13
|
+
background-color: lightgray;
|
|
14
|
+
padding: 5px 18px;
|
|
15
|
+
border-radius: 4px;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed, waitForAsync } from "@angular/core/testing";
|
|
2
|
+
|
|
3
|
+
import { AnnaNoDataComponent } from "./anna-no-data.component";
|
|
4
|
+
|
|
5
|
+
describe("AnnaNoDataComponent", () => {
|
|
6
|
+
let component: AnnaNoDataComponent;
|
|
7
|
+
let fixture: ComponentFixture<AnnaNoDataComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(waitForAsync(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [AnnaNoDataComponent],
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
}));
|
|
14
|
+
|
|
15
|
+
beforeEach(() => {
|
|
16
|
+
fixture = TestBed.createComponent(AnnaNoDataComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it("should create", () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input, OnInit } from "@angular/core";
|
|
2
|
+
@Component({
|
|
3
|
+
selector: "anna-core-no-data-lib",
|
|
4
|
+
templateUrl: "./anna-no-data.component.html",
|
|
5
|
+
styleUrls: ["./anna-no-data.component.scss"],
|
|
6
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
7
|
+
})
|
|
8
|
+
export class AnnaNoDataComponent implements OnInit {
|
|
9
|
+
@Input() width;
|
|
10
|
+
@Input() marginTop;
|
|
11
|
+
message: string;
|
|
12
|
+
constructor() {
|
|
13
|
+
this.width = "46%";
|
|
14
|
+
this.marginTop = "1.25rem";
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
ngOnInit() {
|
|
18
|
+
this.message = "No data to display";
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<ng-container [ngTemplateOutlet]="notifyIcon"></ng-container>
|
|
2
|
+
|
|
3
|
+
<ng-template #notifyIcon>
|
|
4
|
+
<svg width="15px" height="15px" viewBox="0 0 20 20">
|
|
5
|
+
<g id="Notify-buyer-icon" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
6
|
+
<g id="notification" transform="translate(3.000000, 1.000000)" fill="#4A4A4A" fill-rule="nonzero">
|
|
7
|
+
<path
|
|
8
|
+
d="M12.6666669,8.66366455 L12.6666669,7.08618164 C12.6666669,4.78491943 11.1196383,2.8344397 9.0000114,2.19737549 L9.0000114,1.4831543 C9.0000114,0.665343018 8.32711346,8.52651283e-13 7.50001599,8.52651283e-13 C6.67291852,8.52651283e-13 6.00002058,0.665343018 6.00002058,1.4831543 L6.00002058,2.19737549 C3.8803604,2.8344397 2.33336513,4.78488647 2.33336513,7.08618164 L2.33336513,8.66366455 C2.33336513,10.685105 1.55410085,12.6018677 0.139138508,14.060896 C0.000472265053,14.2038721 -0.0384942824,14.4148425 0.0401054772,14.5970398 C0.118705237,14.7792371 0.299704683,14.8974609 0.500037404,14.8974609 L5.05032349,14.8974609 C5.28258944,16.0243945 6.29271969,16.875 7.50001599,16.875 C8.70734563,16.875 9.71740921,16.0243945 9.9497085,14.8974609 L14.5,14.8974609 C14.7003273,14.8974609 14.8812934,14.7792371 14.9598932,14.5970398 C15.0384929,14.4148425 14.9995264,14.2038721 14.8608935,14.060896 C13.4459311,12.6018677 12.6666669,10.685072 12.6666669,8.66366455 Z M7.00001752,1.4831543 C7.00001752,1.21055054 7.22431684,0.988769531 7.50001752,0.988769531 C7.77571515,0.988769531 8.00001752,1.21055054 8.00001752,1.4831543 L8.00001752,2.0015332 C7.8354483,1.98584473 7.66868214,1.97753906 7.50001752,1.97753906 C7.33134984,1.97753906 7.16458369,1.98584473 7.00001752,2.0015332 L7.00001752,1.4831543 Z M7.50001599,15.8862305 C6.84818465,15.8862305 6.29241969,15.4728918 6.08602032,14.8974609 L8.91401167,14.8974609 C8.7076123,15.4728918 8.15184733,15.8862305 7.50001599,15.8862305 L7.50001599,15.8862305 Z M1.57770077,13.9086914 C2.71639729,12.3994336 3.33336207,10.5729785 3.33336207,8.66366455 L3.33336207,7.08618164 C3.33336207,4.81448364 5.20252302,2.96630859 7.50001599,2.96630859 C9.79750897,2.96630859 11.6666699,4.81448364 11.6666699,7.08618164 L11.6666699,8.66366455 C11.6666699,10.5729785 12.2836347,12.3994336 13.4223645,13.9086914"
|
|
9
|
+
id="Shape"
|
|
10
|
+
></path>
|
|
11
|
+
<path
|
|
12
|
+
d="M13.7705926,7.02729272 C13.7705926,7.28835319 14.0458159,7.5 14.3852963,7.5 C14.7247767,7.5 15,7.28835319 15,7.02729272 C15,5.13331221 14.0408983,3.3526869 12.2993607,2.01344415 C12.0593394,1.82886771 11.670109,1.82883619 11.4300467,2.01344415 C11.1899844,2.1980521 11.1899844,2.49733883 11.4300467,2.68194678 C12.9393902,3.84263224 13.7705926,5.38583244 13.7705926,7.02729272 L13.7705926,7.02729272 Z"
|
|
13
|
+
id="Path"
|
|
14
|
+
></path>
|
|
15
|
+
<path
|
|
16
|
+
d="M0.614703713,7.5 C0.954184083,7.5 1.22940743,7.28835245 1.22940743,7.02729106 C1.22940743,5.38585655 2.06065077,3.84265095 3.56995328,2.68196143 C3.81001557,2.49735283 3.81001557,2.19806504 3.56995328,2.01345645 C3.32993197,1.82884785 2.94070158,1.82884785 2.70063929,2.01345645 C0.959101713,3.3527039 0,5.13330392 0,7.02729106 C0,7.28835245 0.275223342,7.5 0.614703713,7.5 Z"
|
|
17
|
+
id="Path"
|
|
18
|
+
></path>
|
|
19
|
+
</g>
|
|
20
|
+
</g>
|
|
21
|
+
</svg>
|
|
22
|
+
</ng-template>
|
|
23
|
+
|