Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nebular 11 #3

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
1962013
docs(datepicker): move showcases with format in separate module (#3128)
sashaqred Oct 26, 2022
7af5a8d
feat(timepicker): add disabled state (#3127)
sashaqred Oct 26, 2022
7ce24c0
feat(menu component): improve accessibility (#3136)
azaiko-akveo Nov 15, 2022
5df8d50
release: 9.1.0-rc.8 (#3138)
denStrigo Nov 17, 2022
dd0fe00
feat: resolving merge conflicts
Ashwin-op Nov 19, 2022
ee7d33b
chore: update package name
Ashwin-op Nov 24, 2022
8824f37
refactor: package names
Ashwin-op Nov 25, 2022
275edf3
feat: update to Angular 14.2.x (#3143)
denStrigo Dec 1, 2022
f3f05ce
fix(bootstrap): remove bootstrap, ng-bootstrap doesn't support Angula…
denStrigo Dec 1, 2022
5b6edcd
release: 10.0.0 (#3147)
denStrigo Dec 2, 2022
73597dd
fix: ng2 smart table selectors
Ashwin-op Dec 14, 2022
954f598
Merge branch 'master' of https://github.com/akveo/nebular
Ashwin-op Dec 14, 2022
0fda28d
fix: package versions
Ashwin-op Dec 14, 2022
a693caf
fix(autocomplete): fix show options for the autocomplete (#3152)
katebatura Jan 18, 2023
f3098ea
feat: update to Angular 15 (#3163)
denStrigo Mar 29, 2023
b711f1d
fix(docs): remove bootstrap from docs (#3164)
denStrigo Mar 29, 2023
28d61b4
release: 11.0.0 (#3165)
denStrigo Mar 29, 2023
4c4d846
chore: update README.md (#3166)
denStrigo Mar 29, 2023
8792f84
feat(select-with-autocomplete): add search when multi (#3204)
sashaqred Sep 5, 2023
976deb3
release: 11.0.1 (#3205)
denStrigo Sep 6, 2023
53625a7
Merge from akveo/master
Ashwin-op Sep 7, 2023
65fafe7
chore: update packages
Ashwin-op Sep 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 0 additions & 17 deletions .browserslistrc

This file was deleted.

2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"**/*.js.map": true,

// exclude @nebular build folders
// exclude @commudle build folders
"**/dist": true
}
}
144 changes: 85 additions & 59 deletions CHANGELOG.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ That's it! Thank you for your contribution!
- playground - independent module with runnable examples for each feature
- backend - Small backend example
- framework - Framework itself, divided into npm packages
- theme - `@nebular/theme` npm package, main framework package
- auth - `@nebular/auth` npm package, auth package (login, register, etc)
- security - `@nebular/security` npm package, security framework package
- theme - `@commudle/theme` npm package, main framework package
- auth - `@commudle/auth` npm package, auth package (login, register, etc)
- security - `@commudle/security` npm package, security framework package

## <a name="rules"></a> Coding Rules

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Nebular [<img src="https://i.imgur.com/oMcxwZ0.png" alt="Eva Design System" height="20px" />](https://eva.design?utm_campaign=eva_design%20-%20home%20-%20nebular%20github%20readme&utm_source=nebular&utm_medium=referral&utm_content=github_readme_hero_pic) [![npm](https://img.shields.io/npm/l/@nebular/theme.svg)]() [![npm](https://img.shields.io/npm/dt/@nebular/theme.svg)](https://www.npmjs.com/package/@nebular/theme) [![Codecov](https://img.shields.io/codecov/c/github/akveo/nebular/master.svg?style=flat-square)](https://codecov.io/gh/akveo/nebular/branch/master)
# Nebular [<img src="https://i.imgur.com/oMcxwZ0.png" alt="Eva Design System" height="20px" />](https://eva.design?utm_campaign=eva_design%20-%20home%20-%20nebular%20github%20readme&utm_source=nebular&utm_medium=referral&utm_content=github_readme_hero_pic) [![npm](https://img.shields.io/npm/l/@commudle/theme.svg)]() [![npm](https://img.shields.io/npm/dt/@commudle/theme.svg)](https://www.npmjs.com/package/@commudle/theme) [![Codecov](https://img.shields.io/codecov/c/github/akveo/nebular/master.svg?style=flat-square)](https://codecov.io/gh/akveo/nebular/branch/master)

[Documentation](https://akveo.github.io/nebular/docs/getting-started/what-is-nebular?utm_campaign=nebular%20-%20home%20-%20nebular%20github%20readme&utm_source=nebular&utm_medium=referral&utm_content=documentation) | [Stackblitz Template](https://stackblitz.com/github/akveo/nebular-seed) | [UI Bakery](https://uibakery.io?utm_campaign=ui_bakery%20-%20home%20-%20nebular%20readme&utm_source=nebular&utm_medium=referral&utm_content=angular_ui_builder) - Angular UI Builder | [Angular templates](https://www.akveo.com/templates?utm_campaign=services%20-%20github%20-%20templates&utm_source=nebular&utm_medium=referral&utm_content=github%20readme%20top%20angular%20templates%20link)

Nebular is a customizable Angular 10 UI Library with a focus on beautiful design and ability to adapt it to your brand easily. It comes with 4 stunning visual themes, a powerful theming engine with runtime theme switching and support of custom css properties mode. Nebular is based on Eva Design System specifications.
Nebular is a customizable Angular UI Library with a focus on beautiful design and ability to adapt it to your brand easily. It comes with 4 stunning visual themes, a powerful theming engine with runtime theme switching and support of custom css properties mode. Nebular is based on Eva Design System specifications.

<a href="https://akveo.github.io/nebular/?utm_campaign=nebular%20-%20home%20-%20nebular%20github%20readme&utm_source=nebular&utm_medium=referral&utm_content=nebular_readme_pic"><img src="https://i.imgur.com/vu5Ro3A.jpg"></a>

Expand All @@ -20,7 +20,7 @@ Nebular is a customizable Angular 10 UI Library with a focus on beautiful design
You can install Nebular with Angular CLI:

```bash
ng add @nebular/theme
ng add @commudle/theme
```

Configuration will be done automatically.
Expand Down
11 changes: 9 additions & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@
],
"styles": [
"node_modules/pace-js/templates/pace-theme-flash.tmpl.css",
"node_modules/bootstrap/dist/css/bootstrap.css",
{
"inject": true,
"bundleName": "algolia",
Expand All @@ -221,7 +220,9 @@
"node_modules/pace-js/pace.min.js",
"node_modules/docsearch.js/dist/cdn/docsearch.min.js"
],
"allowedCommonJsDependencies": ["highlight.js"]
"allowedCommonJsDependencies": [
"highlight.js"
]
},
"configurations": {
"production": {
Expand Down Expand Up @@ -613,6 +614,12 @@
},
"@schematics/angular:application": {
"strict": true
},
"@angular-eslint/schematics:application": {
"setParserOptionsProject": true
},
"@angular-eslint/schematics:library": {
"setParserOptionsProject": true
}
},
"cli": {
Expand Down
17 changes: 0 additions & 17 deletions docs/.browserslistrc

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import { ChangeDetectionStrategy, Component } from '@angular/core';
import { NbDialogService } from '@nebular/theme';
import { NbDialogService } from '@commudle/theme';

import { NgdHubspotFormDialogComponent } from '../hubspot-form-dialog/hubspot-form-dialog.component';

Expand Down Expand Up @@ -42,8 +42,7 @@ export class NgdForBusinessComponent {
'The review of your project.',
];

constructor(private dialogService: NbDialogService) {
}
constructor(private dialogService: NbDialogService) {}

openDialog(): void {
const context = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Directive, ElementRef, Inject, Input, OnDestroy, OnInit, PLATFORM_ID, R
import { ActivatedRoute, Router } from '@angular/router';
import { timer, Subject } from 'rxjs';
import { takeUntil, publish, refCount, filter, tap, debounce } from 'rxjs/operators';
import { NB_WINDOW, NbLayoutScrollService } from '@nebular/theme';
import { NB_WINDOW, NbLayoutScrollService } from '@commudle/theme';
import { NgdVisibilityService } from '../../../@theme/services';

const OBSERVER_OPTIONS = { rootMargin: '-100px 0px 0px' };
Expand All @@ -11,7 +11,6 @@ const OBSERVER_OPTIONS = { rootMargin: '-100px 0px 0px' };
selector: '[ngdFragment]',
})
export class NgdFragmentTargetDirective implements OnInit, OnDestroy {

private readonly marginFromTop = 120;
private isCurrentlyViewed: boolean = false;
private isScrolling: boolean = false;
Expand Down Expand Up @@ -48,7 +47,8 @@ export class NgdFragmentTargetDirective implements OnInit, OnDestroy {
}
});

this.visibilityService.isTopmostVisible(this.el.nativeElement, OBSERVER_OPTIONS)
this.visibilityService
.isTopmostVisible(this.el.nativeElement, OBSERVER_OPTIONS)
.pipe(takeUntil(this.destroy$))
.subscribe((isTopmost: boolean) => {
this.isCurrentlyViewed = isTopmost;
Expand All @@ -57,13 +57,14 @@ export class NgdFragmentTargetDirective implements OnInit, OnDestroy {
}
});

this.scrollService.onScroll()
this.scrollService
.onScroll()
.pipe(
tap(() => this.isScrolling = true),
tap(() => (this.isScrolling = true)),
debounce(() => timer(100)),
takeUntil(this.destroy$),
)
.subscribe(() => this.isScrolling = false);
.subscribe(() => (this.isScrolling = false));
}

selectFragment() {
Expand Down
36 changes: 18 additions & 18 deletions docs/app/@theme/components/header/header.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ChangeDetectionStrategy, Component, HostBinding, Inject, Input, OnInit } from '@angular/core';
import { NB_WINDOW, NbMenuItem, NbSidebarService } from '@nebular/theme';
import { NB_WINDOW, NbMenuItem, NbSidebarService } from '@commudle/theme';
import { Observable } from 'rxjs';
import { map, startWith } from 'rxjs/operators';

Expand All @@ -15,35 +15,36 @@ import { NgdVersionService, Version } from '../../services';
</button>
<div class="logo">
<a routerLink="/">Nebular</a>
<span class="version" *ngIf="currentVersionName$ | async">
v{{ currentVersionName$ | async }}
</span>
<span class="version" *ngIf="currentVersionName$ | async"> v{{ currentVersionName$ | async }} </span>
</div>
</div>
<div class="section middle">
<nb-menu [items]="mainMenu"></nb-menu>
<ngd-search *ngIf="showSearch"></ngd-search>
<nb-select class="version-select"
*ngIf="(showVersionSelect$ | async)"
[selected]="currentVersion$ | async"
(selectedChange)="redirectToVersion($event)">
<nb-select
class="version-select"
*ngIf="showVersionSelect$ | async"
[selected]="currentVersion$ | async"
(selectedChange)="redirectToVersion($event)"
>
<nb-option *ngFor="let version of supportedVersions$ | async" [value]="version">
{{ version.name }}
</nb-option>
</nb-select>
</div>
<div class="section right">
<iframe class="stars"
src="https://ghbtns.com/github-btn.html?user=akveo&repo=nebular&type=star&count=true"
frameborder="0"
scrolling="0">
<iframe
class="stars"
src="https://ghbtns.com/github-btn.html?user=akveo&repo=nebular&type=star&count=true"
frameborder="0"
scrolling="0"
>
</iframe>
</div>
`,
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class NgdHeaderComponent implements OnInit {

@Input() showSearch = true;
@HostBinding('class.docs-page') @Input() isDocs = false;

Expand Down Expand Up @@ -91,11 +92,10 @@ export class NgdHeaderComponent implements OnInit {
this.currentVersionName$ = this.currentVersion$.pipe(map((version: Version) => version.name));
this.supportedVersions$ = this.versionService.getSupportedVersions();

this.showVersionSelect$ = this.supportedVersions$
.pipe(
map((versions: Version[]) => versions.length > 0),
startWith(false),
);
this.showVersionSelect$ = this.supportedVersions$.pipe(
map((versions: Version[]) => versions.length > 0),
startWith(false),
);

if (!this.isDocs) {
this.mainMenu.push({
Expand Down
52 changes: 19 additions & 33 deletions docs/app/@theme/components/hero/hero.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import { ChangeDetectionStrategy, Component } from '@angular/core';
import { NbDialogService } from '@nebular/theme';
import { NbDialogService } from '@commudle/theme';

import { NgdHubspotFormDialogComponent } from '../hubspot-form-dialog/hubspot-form-dialog.component';

Expand All @@ -16,63 +16,49 @@ import { NgdHubspotFormDialogComponent } from '../hubspot-form-dialog/hubspot-fo
<div class="block">
<h1>Nebular: Customizable Angular UI Kit</h1>
<p class="hero-promo">
Nebular is a customizable Angular UI library that contains 40+ UI components, four visual themes, and Auth and Security modules.
Recognized at the prestigious AngularConnect 2018, this Angular framework allows focusing on beautiful designs to adapt them to your brand.
Nebular is free of charge and open-source.
Nebular is a customizable Angular UI library that contains 40+ UI components, four visual themes, and Auth and
Security modules. Recognized at the prestigious AngularConnect 2018, this Angular framework allows focusing on
beautiful designs to adapt them to your brand. Nebular is free of charge and open-source.
</p>
<div class="btns-wrapper">
<a class="btn get-started" routerLink="docs">Get Started</a>
<a class="btn" href="https://www.akveo.com/ngx-admin?utm_campaign=ngx_admin%20-%20website%20-%20nebular%20landing%20-%20traffic&utm_source=nebular&utm_medium=referral&utm_content=nebular_docs_home_hero"
target="_blank">Demo</a>
<a
class="btn"
href="https://www.akveo.com/ngx-admin?utm_campaign=ngx_admin%20-%20website%20-%20nebular%20landing%20-%20traffic&utm_source=nebular&utm_medium=referral&utm_content=nebular_docs_home_hero"
target="_blank"
>Demo</a
>
<button (click)="showDownloadDialog()" class="btn download">Download</button>
</div>
<div class="hero-features">
<div class="hero-feature">
<div class="feature-key">
40+
</div>
<h3 class="feature-title">
Angular Components
</h3>
<div class="feature-key">40+</div>
<h3 class="feature-title">Angular Components</h3>
</div>
<div class="hero-feature">
<div class="feature-key">
4
</div>
<h3 class="feature-title">
Visual themes
</h3>
<div class="feature-key">4</div>
<h3 class="feature-title">Visual themes</h3>
</div>
<div class="hero-feature">
<div class="feature-key">
3
</div>
<h3 class="feature-title">
Auth strategies
</h3>
<div class="feature-key">3</div>
<h3 class="feature-title">Auth strategies</h3>
</div>
<div class="hero-feature">
<div class="feature-key">
<nb-icon icon="lock"></nb-icon>
</div>
<h3 class="feature-title">
Security
</h3>
<h3 class="feature-title">Security</h3>
</div>
</div>
</div>
<div class="right-block">
<div class="hero-components">
</div>
<div class="hero-components"></div>
</div>
`,
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class NgdHeroComponent {

constructor(
private dialogService: NbDialogService,
) {}
constructor(private dialogService: NbDialogService) {}

showDownloadDialog(): void {
const context = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
import { Component, ElementRef, Inject, Input, OnInit, ViewChild } from '@angular/core';
import { NB_DOCUMENT, NB_WINDOW } from '@nebular/theme';
import { NB_DOCUMENT, NB_WINDOW } from '@commudle/theme';

@Component({
selector: 'ngd-akveo-services-banner',
template: `
<span #wrapper class="hs-cta-wrapper" id="hs-cta-wrapper-{{ctaId}}">
<span class="hs-cta-node hs-cta-{{ctaId}}" id="hs-cta-{{ctaId}}">
<a href="https://cta-redirect.hubspot.com/cta/redirect/2452262/{{ctaId}}" target="_blank">
<img class="hs-cta-img"
id="hs-cta-img-{{ctaId}}"
[height]="height"
[width]="width"
src="https://no-cache.hubspot.com/cta/default/2452262/{{ctaId}}.png"
alt="Services on Angular"/>
<span #wrapper class="hs-cta-wrapper" id="hs-cta-wrapper-{{ ctaId }}">
<span class="hs-cta-node hs-cta-{{ ctaId }}" id="hs-cta-{{ ctaId }}">
<a href="https://cta-redirect.hubspot.com/cta/redirect/2452262/{{ ctaId }}" target="_blank">
<img
class="hs-cta-img"
id="hs-cta-img-{{ ctaId }}"
[height]="height"
[width]="width"
src="https://no-cache.hubspot.com/cta/default/2452262/{{ ctaId }}.png"
alt="Services on Angular"
/>
</a>
</span>
</span>
`,
styleUrls: ['akveo-services-banner.component.scss'],
})

export class AkveoServicesBanner implements OnInit {
@Input() ctaId: string;

Expand All @@ -29,10 +30,7 @@ export class AkveoServicesBanner implements OnInit {

@ViewChild('wrapper', { static: true }) wrapper: ElementRef;

constructor(private host: ElementRef,
@Inject(NB_DOCUMENT) private document,
@Inject(NB_WINDOW) private window) {
}
constructor(private host: ElementRef, @Inject(NB_DOCUMENT) private document, @Inject(NB_WINDOW) private window) {}

ngOnInit() {
if (this.window?.hbspt?.cta?.load) {
Expand All @@ -48,9 +46,9 @@ export class AkveoServicesBanner implements OnInit {

private loadHubSpotCtaScript() {
this.wrapper.nativeElement.appendChild(
this.document.createRange().createContextualFragment(
`<script type="text/javascript" src="https://js.hscta.net/cta/current.js"></script>`
)
this.document
.createRange()
.createContextualFragment(`<script type="text/javascript" src="https://js.hscta.net/cta/current.js"></script>`),
);
this.wrapper.nativeElement.querySelector('script').onload = this.loadCta.bind(this);
}
Expand Down
Loading