diff --git a/nae.json b/nae.json index 29df04537f..2a486c4b0f 100644 --- a/nae.json +++ b/nae.json @@ -321,6 +321,34 @@ "routing": { "path": "breadcrumbs" } + }, + "double-menu-tabbed-views": { + "component": { + "class": "TabbedViewsExampleComponent", + "from": "./doc/tabbed-case-view/tabbed-views-example.component" + }, + "access": "private", + "navigation": { + "title": "Custom Tabbed View", + "icon": "tab" + }, + "routing": { + "path": "double-menu-tabbed-views" + }, + "children": { + "custom-redirect": { + "component": { + "class": "TabbedViewsExampleComponent", + "from": "./doc/tabbed-case-view/tabbed-views-example.component" + }, + "access": "private", + "navigation": false, + "routing": { + "path": "**" + } + } + }, + "processUri": "/" } } }, diff --git a/projects/nae-example-app/src/app/doc/double-drawer-example/double-drawer-example.component.html b/projects/nae-example-app/src/app/doc/double-drawer-example/double-drawer-example.component.html index 8f2dcbaa1c..bcab3fc0f4 100644 --- a/projects/nae-example-app/src/app/doc/double-drawer-example/double-drawer-example.component.html +++ b/projects/nae-example-app/src/app/doc/double-drawer-example/double-drawer-example.component.html @@ -1,3 +1,3 @@ - + diff --git a/projects/nae-example-app/src/app/doc/tabbed-case-view/tabbed-case-view/tabbed-case-view.component.ts b/projects/nae-example-app/src/app/doc/tabbed-case-view/tabbed-case-view/tabbed-case-view.component.ts index a6e30285d2..7a38cd7754 100644 --- a/projects/nae-example-app/src/app/doc/tabbed-case-view/tabbed-case-view/tabbed-case-view.component.ts +++ b/projects/nae-example-app/src/app/doc/tabbed-case-view/tabbed-case-view/tabbed-case-view.component.ts @@ -78,7 +78,11 @@ export class TabbedCaseViewComponent extends AbstractTabbedCaseViewComponent imp @Inject(NAE_TAB_DATA) injectedTabData: InjectedTabbedCaseViewData) { super(caseViewService, loggerService, injectedTabData, overflowService, undefined, undefined, { enableCaseTitle: true, - isCaseTitleRequired: true + isCaseTitleRequired: true, + newCaseButtonConfig: { + createCaseButtonTitle: 'My custom create case button', + createCaseButtonIcon: 'home' + } }); } diff --git a/projects/nae-example-app/src/app/doc/tabbed-case-view/tabbed-task-view/tabbed-task-view.component.scss b/projects/nae-example-app/src/app/doc/tabbed-case-view/tabbed-task-view/tabbed-task-view.component.scss index f9b1dec43f..ae796da831 100644 --- a/projects/nae-example-app/src/app/doc/tabbed-case-view/tabbed-task-view/tabbed-task-view.component.scss +++ b/projects/nae-example-app/src/app/doc/tabbed-case-view/tabbed-task-view/tabbed-task-view.component.scss @@ -7,7 +7,7 @@ .search-panel { margin-top: 16px; - padding: 8px 16px; + margin-bottom: 2px; } .content-margin { diff --git a/projects/nae-example-app/src/assets/img/netgrif_full_black.svg b/projects/nae-example-app/src/assets/img/netgrif_full_black.svg new file mode 100644 index 0000000000..31df685b01 --- /dev/null +++ b/projects/nae-example-app/src/assets/img/netgrif_full_black.svg @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + + diff --git a/projects/netgrif-components/nae-theme.scss b/projects/netgrif-components/nae-theme.scss index 367bb45d44..5ec1a58659 100644 --- a/projects/netgrif-components/nae-theme.scss +++ b/projects/netgrif-components/nae-theme.scss @@ -45,3 +45,7 @@ margin-top: 0 !important; margin-bottom: 0 !important; } + +.mat-paginator { + background: transparent !important; +} diff --git a/projects/netgrif-components/src/lib/data-fields/button-field/button-default-field/button-default-field.component.scss b/projects/netgrif-components/src/lib/data-fields/button-field/button-default-field/button-default-field.component.scss index 27cea47505..f6983fb197 100644 --- a/projects/netgrif-components/src/lib/data-fields/button-field/button-default-field/button-default-field.component.scss +++ b/projects/netgrif-components/src/lib/data-fields/button-field/button-default-field/button-default-field.component.scss @@ -36,7 +36,7 @@ } .padding-bottom { - padding-bottom: 6px; + padding-bottom: 12px; } .no-shadow { box-shadow: unset !important; diff --git a/projects/netgrif-components/src/lib/data-fields/data-field.theme.scss b/projects/netgrif-components/src/lib/data-fields/data-field.theme.scss index 9ee0fa25ed..8f597a3f7f 100644 --- a/projects/netgrif-components/src/lib/data-fields/data-field.theme.scss +++ b/projects/netgrif-components/src/lib/data-fields/data-field.theme.scss @@ -15,6 +15,10 @@ $color-text-enabled: #64748B; $color-outline-enabled: #64748B; + .mat-form-field-label { + color: $color-text-enabled !important; + } + .editor-preview > h1 { border-bottom: 1px solid #ddd; } @@ -70,13 +74,13 @@ } .invalid-form-input { - border: solid 2px mat.get-color-from-palette($primary) !important; + border: solid 2px mat.get-color-from-palette($warn) !important; padding: 1px !important; } - .invalid-form-label { - color: mat.get-color-from-palette($primary) !important; - } + //.invalid-form-label { + // color: mat.get-color-from-palette($primary) !important; + //} .netgrif-input { @@ -216,7 +220,7 @@ } .mat-form-field-appearance-outline .mat-form-field-wrapper { - margin: 0.25px 0 0; + margin: 0.25px 0 2px; } // DISABLED @@ -323,6 +327,17 @@ } } + .netgrif-chip-button-fix { + &.mat-form-field .mat-form-field-prefix { + top: 0.33em !important; + padding-right: 4px !important; + } + + .netgrif-label { + font-weight: 400 !important; + } + } + .mat-select-trigger { height: unset; min-height: 1.125em; diff --git a/projects/netgrif-components/src/lib/data-fields/i18n-field/i18n-text-field/i18n-text-field.component.html b/projects/netgrif-components/src/lib/data-fields/i18n-field/i18n-text-field/i18n-text-field.component.html index 9a55b0c9a9..93f2d7669e 100644 --- a/projects/netgrif-components/src/lib/data-fields/i18n-field/i18n-text-field/i18n-text-field.component.html +++ b/projects/netgrif-components/src/lib/data-fields/i18n-field/i18n-text-field/i18n-text-field.component.html @@ -23,7 +23,7 @@ -
+
{{dataField.title}} @@ -75,8 +75,10 @@
- {{dataField.description}} - {{getErrorMessage()}} +
+ {{dataField.description}} + {{getErrorMessage()}} +
diff --git a/projects/netgrif-components/src/lib/data-fields/i18n-field/i18n-text-field/i18n-text-field.component.scss b/projects/netgrif-components/src/lib/data-fields/i18n-field/i18n-text-field/i18n-text-field.component.scss index 63556224be..edd1fb2c7a 100644 --- a/projects/netgrif-components/src/lib/data-fields/i18n-field/i18n-text-field/i18n-text-field.component.scss +++ b/projects/netgrif-components/src/lib/data-fields/i18n-field/i18n-text-field/i18n-text-field.component.scss @@ -49,6 +49,7 @@ padding: 0 1em; font-size: 75%; width: auto !important; + display: block; } .language-svg-wrapper { @@ -149,3 +150,12 @@ .i18n-bold-text { font-weight: bold; } + +.padding-bottom-fix { + padding-bottom: 1em; +} + +.i18n-hint-wrapper { + height: 18px; + margin-top: -3px; +} diff --git a/projects/netgrif-components/src/lib/data-fields/string-collection-field/string-collection-default-field/string-collection-default-field.component.html b/projects/netgrif-components/src/lib/data-fields/string-collection-field/string-collection-default-field/string-collection-default-field.component.html index 45de84c6ad..39da3f0efc 100644 --- a/projects/netgrif-components/src/lib/data-fields/string-collection-field/string-collection-default-field/string-collection-default-field.component.html +++ b/projects/netgrif-components/src/lib/data-fields/string-collection-field/string-collection-default-field/string-collection-default-field.component.html @@ -1,4 +1,4 @@ - + {{dataField.title}} {{ dataField.title }} @@ -30,6 +30,7 @@ aria-label="Autocomplete" matInput #input + disabled="true" [placeholder]="dataField.placeholder" [required]="dataField.behavior.required" [matChipInputFor]="chipList"> diff --git a/projects/netgrif-components/src/lib/navigation/breadcrumbs/breadcrumbs.component.scss b/projects/netgrif-components/src/lib/navigation/breadcrumbs/breadcrumbs.component.scss index fc527d4a49..230372a901 100644 --- a/projects/netgrif-components/src/lib/navigation/breadcrumbs/breadcrumbs.component.scss +++ b/projects/netgrif-components/src/lib/navigation/breadcrumbs/breadcrumbs.component.scss @@ -1,5 +1,5 @@ .breadcrumbs { - margin: 4px; + margin: 4px 0; -webkit-box-align: center; align-items: center; align-self: center; diff --git a/projects/netgrif-components/src/lib/navigation/group-navigation-component-resolver/default-components/refs/default-case-ref-list-view/default-case-ref-list-view.component.scss b/projects/netgrif-components/src/lib/navigation/group-navigation-component-resolver/default-components/refs/default-case-ref-list-view/default-case-ref-list-view.component.scss index c82aaa003d..7794a7b857 100644 --- a/projects/netgrif-components/src/lib/navigation/group-navigation-component-resolver/default-components/refs/default-case-ref-list-view/default-case-ref-list-view.component.scss +++ b/projects/netgrif-components/src/lib/navigation/group-navigation-component-resolver/default-components/refs/default-case-ref-list-view/default-case-ref-list-view.component.scss @@ -1,5 +1,5 @@ .case-view-container { - margin: 16px 24px; + //margin: 16px 24px; height: calc(100% - 32px); overflow: auto } diff --git a/projects/netgrif-components/src/lib/navigation/group-navigation-component-resolver/default-components/refs/default-task-view/default-task-view.component.scss b/projects/netgrif-components/src/lib/navigation/group-navigation-component-resolver/default-components/refs/default-task-view/default-task-view.component.scss index f9b1dec43f..312efbf93c 100644 --- a/projects/netgrif-components/src/lib/navigation/group-navigation-component-resolver/default-components/refs/default-task-view/default-task-view.component.scss +++ b/projects/netgrif-components/src/lib/navigation/group-navigation-component-resolver/default-components/refs/default-task-view/default-task-view.component.scss @@ -7,11 +7,11 @@ .search-panel { margin-top: 16px; - padding: 8px 16px; + padding: 8px 0; } .content-margin { - margin: 8px 24px 0; + //margin: 8px 24px 0; } @media screen and (max-width: 599.99px) { diff --git a/projects/netgrif-components/src/lib/navigation/navigation-double-drawer/navigation-double-drawer.component.html b/projects/netgrif-components/src/lib/navigation/navigation-double-drawer/navigation-double-drawer.component.html index f6dacd6429..1c7eff1a48 100644 --- a/projects/netgrif-components/src/lib/navigation/navigation-double-drawer/navigation-double-drawer.component.html +++ b/projects/netgrif-components/src/lib/navigation/navigation-double-drawer/navigation-double-drawer.component.html @@ -1,4 +1,4 @@ -
@@ -165,14 +165,14 @@
-
-
- -
+
+ + + + + + +
diff --git a/projects/netgrif-components/src/lib/navigation/navigation-double-drawer/navigation-double-drawer.component.scss b/projects/netgrif-components/src/lib/navigation/navigation-double-drawer/navigation-double-drawer.component.scss index 5e58cc40dd..28cd9ea893 100644 --- a/projects/netgrif-components/src/lib/navigation/navigation-double-drawer/navigation-double-drawer.component.scss +++ b/projects/netgrif-components/src/lib/navigation/navigation-double-drawer/navigation-double-drawer.component.scss @@ -23,8 +23,8 @@ box-shadow: 0px 2px 4px rgba(13, 45, 60, 0.16), 0px 4px 8px rgba(84, 110, 122, 0.16); } -.height-60 { - height: 60px; +.height-48 { + height: 48px; } .drawer-control { @@ -42,14 +42,15 @@ .border-bottom { border-bottom: 1px solid #E2E8F0; + box-sizing: content-box !important; } .logo { - height: 60px; + height: 48px; } .logo-closed { - width: 60px !important; + width: 48px !important; } .logoimg { diff --git a/projects/netgrif-components/src/lib/navigation/navigation.theme.scss b/projects/netgrif-components/src/lib/navigation/navigation.theme.scss index 73565b89e3..dffa6badb7 100644 --- a/projects/netgrif-components/src/lib/navigation/navigation.theme.scss +++ b/projects/netgrif-components/src/lib/navigation/navigation.theme.scss @@ -38,6 +38,7 @@ .active-tree-node { color: mat.get-color-from-palette($primary) !important; + background-color: rgba(mat.get-color-from-palette($primary), 0.25); } .tree-node { diff --git a/projects/netgrif-components/src/lib/panel/panel.theme.scss b/projects/netgrif-components/src/lib/panel/panel.theme.scss index a8e113cc59..2ec86c2b6a 100644 --- a/projects/netgrif-components/src/lib/panel/panel.theme.scss +++ b/projects/netgrif-components/src/lib/panel/panel.theme.scss @@ -73,7 +73,7 @@ .panel-body { .mat-expansion-panel-body { padding: 0 !important; - background-color: #F8FAFC; + background-color: #ffffff; } } diff --git a/projects/netgrif-components/src/lib/tabs/tabs.theme.scss b/projects/netgrif-components/src/lib/tabs/tabs.theme.scss index 2347fd64bb..9ffc545d66 100644 --- a/projects/netgrif-components/src/lib/tabs/tabs.theme.scss +++ b/projects/netgrif-components/src/lib/tabs/tabs.theme.scss @@ -19,7 +19,7 @@ } .mat-tab-header { - border-bottom: 2px solid #E2E8F0; + border-bottom: 1px solid #E2E8F0; } .icon-tab-color { diff --git a/projects/netgrif-components/src/lib/view/case-view/components/case-list-paginator/case-list-paginator.component.html b/projects/netgrif-components/src/lib/view/case-view/components/case-list-paginator/case-list-paginator.component.html index 29b0d71c26..3a158fcfaf 100644 --- a/projects/netgrif-components/src/lib/view/case-view/components/case-list-paginator/case-list-paginator.component.html +++ b/projects/netgrif-components/src/lib/view/case-view/components/case-list-paginator/case-list-paginator.component.html @@ -3,7 +3,7 @@
- storage + storage {{ 'view-list.noCasesSatisfyingThisFilter' | translate}}
diff --git a/projects/netgrif-components/src/lib/view/case-view/components/case-list/case-list.component.html b/projects/netgrif-components/src/lib/view/case-view/components/case-list/case-list.component.html index 3a211e5383..5b06f3ea54 100644 --- a/projects/netgrif-components/src/lib/view/case-view/components/case-list/case-list.component.html +++ b/projects/netgrif-components/src/lib/view/case-view/components/case-list/case-list.component.html @@ -3,7 +3,7 @@
- storage + storage {{ 'view-list.noCasesSatisfyingThisFilter' | translate}}
diff --git a/projects/netgrif-components/src/lib/view/case-view/components/create-case-button/create-case-button.component.scss b/projects/netgrif-components/src/lib/view/case-view/components/create-case-button/create-case-button.component.scss index 0eb87cee3d..96e9836b5e 100644 --- a/projects/netgrif-components/src/lib/view/case-view/components/create-case-button/create-case-button.component.scss +++ b/projects/netgrif-components/src/lib/view/case-view/components/create-case-button/create-case-button.component.scss @@ -5,6 +5,7 @@ .height-44 { height: 44px; + margin-right: 8px !important; } .create-case-mat-mini-fab {