Skip to content

Commit

Permalink
build nanofn
Browse files Browse the repository at this point in the history
  • Loading branch information
LinboLen committed May 11, 2024
1 parent 55849de commit f51e5d9
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 6 deletions.
50 changes: 50 additions & 0 deletions libs/nanofn/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"name": "nanofn",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "library",
"sourceRoot": "libs/nanofn",
"prefix": "",
"targets": {
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"baseBranch": "master",
"releaseAs": "patch",
"postTargets": ["nanofn:build"]
}
},
"build": {
"executor": "@nrwl/angular:package",
"outputs": ["{workspaceRoot}/dist/libs/nanofn"],
"options": {
"project": "libs/nanofn/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "libs/nanofn/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "libs/nanofn/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
},
"test": {
"executor": "@nrwl/jest:jest",
"outputs": ["{workspaceRoot}/coverage/libs/nanofn"],
"options": {
"jestConfig": "libs/nanofn/jest.config.js",
"passWithNoTests": true
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"options": {
"lintFilePatterns": [
"libs/nanofn/src/**/*.ts",
"libs/nanofn/src/**/*.html"
]
}
}
}
}
12 changes: 6 additions & 6 deletions libs/triangle/core/src/option/option-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';
import { ENTER, hasModifierKey, SPACE } from '@angular/cdk/keycodes';
import {
AfterViewChecked, ChangeDetectorRef, Directive, ElementRef, EventEmitter, Input, OnDestroy,
Output, ɵmarkDirty
Output,
} from '@angular/core';
import { Subject } from 'rxjs';
import { _TriOptgroupBase } from './optgroup-base';
Expand Down Expand Up @@ -108,7 +108,7 @@ export class _TriOptionBase implements FocusableOption, AfterViewChecked, OnDest
select(): void {
if (!this._selected) {
this._selected = true;
ɵmarkDirty(this);
this._changeDetectorRef.markForCheck();
this._emitSelectionChangeEvent();
}
}
Expand All @@ -117,7 +117,7 @@ export class _TriOptionBase implements FocusableOption, AfterViewChecked, OnDest
deselect(): void {
if (this._selected) {
this._selected = false;
ɵmarkDirty(this);
this._changeDetectorRef.markForCheck();
this._emitSelectionChangeEvent();
}
}
Expand All @@ -141,7 +141,7 @@ export class _TriOptionBase implements FocusableOption, AfterViewChecked, OnDest
setActiveStyles(): void {
if (!this._active) {
this._active = true;
ɵmarkDirty(this);
this._changeDetectorRef.markForCheck();
}
}

Expand All @@ -153,7 +153,7 @@ export class _TriOptionBase implements FocusableOption, AfterViewChecked, OnDest
setInactiveStyles(): void {
if (this._active) {
this._active = false;
ɵmarkDirty(this);
this._changeDetectorRef.markForCheck();
}
}

Expand All @@ -179,7 +179,7 @@ export class _TriOptionBase implements FocusableOption, AfterViewChecked, OnDest
_selectViaInteraction(): void {
if (!this.disabled) {
this._selected = this.multiple ? !this._selected : true;
ɵmarkDirty(this);
this._changeDetectorRef.markForCheck();
this._emitSelectionChangeEvent(true);
}
}
Expand Down

0 comments on commit f51e5d9

Please sign in to comment.