Skip to content

Commit

Permalink
Merge pull request #74 from gjovanovicst/main
Browse files Browse the repository at this point in the history
Implemented showcase doc for dropdown component
  • Loading branch information
gjovanovicst authored Nov 4, 2023
2 parents e6a21ab + de1dddb commit 57a8c86
Show file tree
Hide file tree
Showing 66 changed files with 13,091 additions and 7,452 deletions.
15,656 changes: 9,034 additions & 6,622 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"install-all": "lerna exec npm install",
"start": "lerna run start --scope=@anywhere-ui/core --stream",
"build": "npm run build.core && npm run build.framework-bindings",
"build-preview": "npm run build && grunt buildnumber && grunt release:build:auto && node packages/core/scripts/update-template-version.js",
"build-doc-json": "lerna run build-doc-json --scope=@anywhere-ui/core --stream",
"build.watch": "lerna run build.watch --scope=@anywhere-ui/core --stream",
"build.core": "lerna run build --scope=@anywhere-ui/core --stream",
Expand All @@ -20,10 +21,10 @@
"grunt-build-number": "^1.0.0",
"grunt-bumpup": "^0.6.3",
"grunt-semver": "^0.1.9",
"lerna": "^6.4.1"
"lerna": "^7.4.1"
},
"homepage": "https://adaleks.github.io/anywhere-ui-showcase",
"dependencies": {
"semver": "^7.3.8"
"semver": "^7.5.4"
}
}
4 changes: 2 additions & 2 deletions packages/angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@anywhere-ui/angular",
"version": "0.4.0+19",
"version": "0.4.0+20",
"license": "MIT",
"keywords": [
"anywhere-ui",
Expand Down Expand Up @@ -66,5 +66,5 @@
"tslint": "~6.1.3",
"typescript": "4.9.5"
},
"buildnum": "19"
"buildnum": "20"
}
4 changes: 2 additions & 2 deletions packages/angular/projects/anywhere-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@anywhere-ui/angular",
"version": "0.4.0+19",
"version": "0.4.0+20",
"license": "MIT",
"keywords": [
"anywhere-ui",
Expand Down Expand Up @@ -33,5 +33,5 @@
"@anywhere-ui/core": "^0.3.0",
"@anywhere-ui/flex": "^1.0.2"
},
"buildnum": "19"
"buildnum": "20"
}
126 changes: 118 additions & 8 deletions packages/angular/projects/anywhere-ui/src/lib/directives/proxies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,35 +147,35 @@ export class AnyDropdown {

export declare interface AnyDropdown extends Components.AnyDropdown {
/**
* Callback to invoke when value of dropdown changes
* Callback to invoke when value of dropdown changes.
*/
valueChange: EventEmitter<CustomEvent<any>>;
/**
* Callback to invoke when dropdown overlay gets visible
* Callback to invoke when dropdown overlay gets visible.
*/
aOnPanelShow: EventEmitter<CustomEvent<any>>;
/**
* Callback to invoke when dropdown overlay before gets visible
* Callback to invoke when dropdown overlay before gets visible.
*/
aOnPanelShowStart: EventEmitter<CustomEvent<any>>;
/**
* Callback to invoke when dropdown overlay gets hidden
* Callback to invoke when dropdown overlay gets hidden.
*/
aOnPanelHide: EventEmitter<CustomEvent<any>>;
/**
* Callback to invoke when dropdown overlay before gets hidden
* Callback to invoke when dropdown overlay before gets hidden.
*/
aOnPanelHideStart: EventEmitter<CustomEvent<any>>;
/**
* Callback to invoke when dropdown gets focus
* Callback to invoke when dropdown gets focus.
*/
aOnFocus: EventEmitter<CustomEvent<any>>;
/**
* Callback to invoke when dropdown loses focus
* Callback to invoke when dropdown loses focus.
*/
aOnBlur: EventEmitter<CustomEvent<any>>;
/**
* Callback to invoke when component is clicked
* Callback to invoke when component is clicked.
*/
aOnClick: EventEmitter<CustomEvent<any>>;
}
Expand Down Expand Up @@ -972,3 +972,113 @@ export declare interface CheckboxReadonly extends Components.CheckboxReadonly {
}


@ProxyCmp({
inputs: ['textId', 'textTitle']
})
@Component({
selector: 'dropdown-basic',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
inputs: ['textId', 'textTitle'],
})
export class DropdownBasic {
protected el: HTMLElement;
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
c.detach();
this.el = r.nativeElement;
}
}


export declare interface DropdownBasic extends Components.DropdownBasic {}


@ProxyCmp({
inputs: ['textId', 'textTitle']
})
@Component({
selector: 'dropdown-disabled',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
inputs: ['textId', 'textTitle'],
})
export class DropdownDisabled {
protected el: HTMLElement;
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
c.detach();
this.el = r.nativeElement;
}
}


export declare interface DropdownDisabled extends Components.DropdownDisabled {}


@ProxyCmp({
inputs: ['textId', 'textTitle']
})
@Component({
selector: 'dropdown-filter',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
inputs: ['textId', 'textTitle'],
})
export class DropdownFilter {
protected el: HTMLElement;
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
c.detach();
this.el = r.nativeElement;
}
}


export declare interface DropdownFilter extends Components.DropdownFilter {}


@ProxyCmp({
inputs: ['textId', 'textTitle']
})
@Component({
selector: 'dropdown-template',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
inputs: ['textId', 'textTitle'],
})
export class DropdownTemplate {
protected el: HTMLElement;
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
c.detach();
this.el = r.nativeElement;
}
}


export declare interface DropdownTemplate extends Components.DropdownTemplate {}


@ProxyCmp({
inputs: ['textId', 'textTitle']
})
@Component({
selector: 'dropdown-virtual-scroll',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
inputs: ['textId', 'textTitle'],
})
export class DropdownVirtualScroll {
protected el: HTMLElement;
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
c.detach();
this.el = r.nativeElement;
}
}


export declare interface DropdownVirtualScroll extends Components.DropdownVirtualScroll {}


Loading

0 comments on commit 57a8c86

Please sign in to comment.