angular-ru / angular-ru-sdk Goto Github PK
View Code? Open in Web Editor NEW๐ ฐ๏ธ ngular-RU Software Development Kit
License: MIT License
๐ ฐ๏ธ ngular-RU Software Development Kit
License: MIT License
// ORIGINAL tslint.json -> "directive-selector": [true, "attribute", "app", "camelCase"],
'@angular-eslint/directive-selector': [
'error',
{ type: 'attribute', prefix: 'hc', style: 'camelCase' },
],
// ORIGINAL tslint.json -> "component-selector": [true, "element", "app", "kebab-case"],
'@angular-eslint/component-selector': [
'error',
{ type: 'element', prefix: 'hc', style: 'kebab-case' },
],
export const enum SlideInOutState {
in = 'in',
out = 'out'
}
Originally posted by splincode May 15, 2021
https://betterprogramming.pub/7-steps-to-dockerize-your-angular-9-app-with-nginx-915f0f5acac
<ngx-context-menu-item
(onClick)="showDisputeCycleByArn()"
[disable]="!$any(item)?.state?.item || table.selection.selectionModel.size > 1">
new behaviour
<ngx-context-menu-item
disable-when-item-is-empty
disable-when-multiple-selected
(onClick)="showDisputeCycleByArn()">
This package has been deprecated. Please use the ng-packagr builder from @angular-devkit/build-angular instead.
Version of angular/core in packages/common/package.json is < 12
Directive that emits event when mouse stayed at the element for some time.
example realization: https://stackblitz.com/edit/angular-mouse-stayed
public send(@RequestBody(SKIP_NULLABLE_FIELDS) _body: Body) {}
protected readonly multiEditModal: ModalHandler<PosShop> = dialog()
.setComponent(MultiEditShopLimitsModalComponent)
.setFullOverlay()
.setWidth('500px');
"@types/jasmine": "3.5.0",
"@types/jasminewd2": "2.0.8",
what do you think about this? microsoft/TypeScript#26223 (comment)
we really get an error if we specify a length greater than 45 in the recursive approach
Originally posted by @StepaZol in #684 (comment)
class Cd {}
@InjectContext()
class IceCream {
@Authowired() cd?: Cd;
}
function Authowired() {
return function(target: Object, key: string | symbol) {
let val = target[key];
Promise.resolve().then(() => {
console.log('emoji', target);
});
const getter = () => {
return val;
};
const setter = (next) => {
val = `๐ฆ ${next} ๐ฆ`;
};
Object.defineProperty(target, key, {
get: getter,
set: setter,
enumerable: true,
configurable: true,
});
};
}
function AuthowireContext(constructor: Function) {
console.log('constructor.prototype', constructor.prototype)
}
Add https://github.com/cartant/eslint-plugin-rxjs to eslint-config
type PropType<T, Path extends string> =
string extends Path ? unknown :
Path extends keyof T ? T[Path] :
Path extends `${infer K}.${infer R}` ? K extends keyof T ? PropType<T[K], R> : unknown :
unknown;
declare function getPropValue<T, P extends string>(obj: T, path: P): PropType<T, P>;
declare const s: string;
const obj = { a: { b: {c: 42, d: 'hello' }}};
getPropValue(obj, 'a'); // { b: {c: number, d: string } }
getPropValue(obj, 'a.b'); // {c: number, d: string }
getPropValue(obj, 'a.b.d'); // string
getPropValue(obj, 'a.b.x'); // unknown
getPropValue(obj, s); // unknown
"tsBuildInfoFile": "./node_modules/.ts-buildcache/tsconfig.buildinfo",
"incremental": true,
"exclude": ["node_modules", "dist/**", "__tests__/**"]
Features or fixes
Features or fixes
Jest@27, ts-jest@27, jest-preset-angular@9
Angular 12
Feature
BREAKING CHANGES
@angular-ru/common
-> move to@angular-ru/cdk
@angular-ru/http
-> move to @angular-ru/cdk/http
@angular-ru/logger
-> move to @angular-ru/cdk/logger
@angular-ru/flex-layout
-> move to @angular-ru/cdk/flex-layout
@angular-ru/stream
-> move to @angular-ru/cdk/stream
@angular-ru/webscoket
-> move to @angular-ru/cdk/websocket
@angular-ru/ng-excel-builder
-> move to @angular-ru/cdk/excel
@angular-ru/tsconfig
-> move to @angular-ru/configs/tsconfig.json
@angular-ru/eslint-config
-> move to @angular-ru/configs/eslint
@angular-ru/renovate-config
-> move to @angular-ru/configs/renovate
@angular-ru/commitlint-config
-> move to @angular-ru/configs/commitlint
@angular-ru/prettier-config
-> move to @angular-ru/configs/prettier
@angular-ru/eslint-plugin
-> move to @angular-ru/eslint-plugin-enterprise
@angular-ru/jest-utils
-> move to @angular-ru/jest-builder
@angular-ru/ng-table-builder
-> move to @angular-ru/table-grid
@angular-ru/build-tools
-> move to @angular-ru/dev-dependencies
CI
@angular-devkit/build-angular
-Documentation
Features or fixes
@angular-ru/ngxs-data-plugin
@angular-ru/cdk/material-extensions
-eslint-plugin-unicorn
- #13@angular-eslint/sort-ngmodule-metadata-arrays
- #523eslint-plugin-rxjs
- #370prefer-template
- #63Coming soon
"importsNotUsedAsValues": "error"
@ModalTitle(MULTI_EDIT)
@Modal(MultiEditModalComponent)
@ModalOptions({ ...FULL_OVERLAY_CONFIG, width: '500px' })
protected readonly multiEditModalRef!: ModalHandler<Model>;
need dynamic calculate max-height
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Error type: Cannot find preset's package (@Angular-RU)
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
instead
public formGroup: FormGroup = this.fb.group({
systemName: new FormControl(null, Validators.required),
fullName: new FormControl(null, Validators.required),
alertTypeId: new FormControl(null, [Validators.required, isIntegerValidator()]),
instructionId: new FormControl(null, [Validators.required, isIntegerValidator()]),
priorityId: new FormControl(null, [
Validators.required,
isIntegerValidator(),
Validators.min(this.minPriority),
Validators.max(this.maxPriority)
]),
onCallTeam: new FormControl(null, Validators.required),
id: new FormControl(null),
parentAlertId: new FormControl(null)
});
@Form()
export class AlertInfo {
@FormField() public id?: number = null!;
@FormField() public systemName: string = null!;
@FormField() public fullName: string = null!;
@FormField() public alertTypeId?: number = null!;
@FormField() public parentAlertId?: number = null!;
@FormField() public instructionId?: number = null!;
@FormField() public priorityId?: number = null!;
@FormField() public onCallTeam?: string = null!;
}
@Component({})
class Component {
@FormGroup(AlertInfo) formGroup!: FormGroup;
}
This issue contains a list of Renovate updates and their statuses.
These branches will be created by Renovate only once you click their checkbox below.
These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, check the box below.
Describe the solution you'd like
Pass the Input into ngx-table-builder and switch this table-thead
inside by this parameter.
Originally posted by renovate[bot] June 19, 2020
This issue contains a list of Renovate updates and their statuses.
These branches will be created by Renovate only once you click their checkbox below.
@types/eslint
, @typescript-eslint/eslint-plugin
, @typescript-eslint/parser
, eslint
, eslint-plugin-sonarjs
)@angular-eslint/eslint-plugin
, @angular-eslint/eslint-plugin-template
, @angular-eslint/template-parser
, eslint-plugin-jsdoc
) 'no-restricted-syntax': [
'error',
{
selector: 'TSEnumDeclaration:not([const=true])',
message: "Don't declare non-const enums"
}
],
Originally posted by splincode May 15, 2021
https://github.com/benorama/mfe-advanced-demo
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.