From 8edf4b6eb3885089ce950e3a2d19dbe7b0ef78d5 Mon Sep 17 00:00:00 2001
From: Enlcxx
Date: Mon, 17 Aug 2020 15:03:26 -0500
Subject: [PATCH 01/10] Support for Angular 9
From 002fdd76c1d32b213506b689f044d57cba514f30 Mon Sep 17 00:00:00 2001
From: Enlcxx
Date: Sun, 30 Aug 2020 14:49:47 -0500
Subject: [PATCH 02/10] =?UTF-8?q?=C2=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
From 4a68dd94fe23bc947d6ee5698ad368f671055480 Mon Sep 17 00:00:00 2001
From: Enlcxx
Date: Sun, 30 Aug 2020 16:09:24 -0500
Subject: [PATCH 03/10] =?UTF-8?q?=C2=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.gitignore | 1 +
src/api/docs/components/field.html | 8 +
src/api/docs/components/tabs.html | 4 +-
src/api/docs/customization/color.html | 18 +-
src/api/docs/customization/theming.html | 16 +-
.../demos/basic-field.component.html.html | 2 +-
.../docs/demos/basic-tabs.component.html.html | 6 +-
.../docs/demos/basic-tabs.component.ts.html | 14 +-
.../demos/complex-checkbox.component.ts.html | 2 +-
.../demos/dialog-responsive.component.ts.html | 6 +-
.../demos/dialog-with-select-dialog.html.html | 2 +-
.../demos/dialog-with-select-dialog.ts.html | 2 +-
...ield-with-display-with.component.html.html | 9 +
.../field-with-display-with.component.ts.html | 12 +
.../field-with-display-with.module.ts.html | 19 +
...with-prefix-and-suffix.component.html.html | 40 ++
...d-with-prefix-and-suffix.component.ts.html | 9 +
...ield-with-prefix-and-suffix.module.ts.html | 25 ++
src/api/docs/demos/field.lazy.module.ts.html | 12 +-
.../demos/simple-form.component.html.html | 20 +-
.../demos/tabs-placement.component.html.html | 6 +-
.../demos/tabs-placement.component.ts.html | 15 +-
...h-asynchronously-loading.component.ts.html | 2 +-
...tabs-with-lazy-loading.component.html.html | 6 +-
.../tabs-with-lazy-loading.component.ts.html | 12 +-
.../docs/getting-started/installation.html | 5 +-
src/app/app.module.ts | 14 +-
src/app/demo-view/view/view.component.html | 1 +
src/app/demo-view/view/view.component.ts | 6 +-
.../complex-checkbox.component.ts | 2 +-
.../dialog-with-select-dialog.html | 2 +-
.../dialog-with-select-dialog.ts | 2 +-
.../basic-field/basic-field.component.html | 2 +-
.../field-with-display-with.component.html | 9 +
.../field-with-display-with.component.spec.ts | 25 ++
.../field-with-display-with.component.ts | 11 +
.../field-with-display-with.module.ts | 18 +
...ield-with-prefix-and-suffix.component.html | 40 ++
...d-with-prefix-and-suffix.component.spec.ts | 25 ++
.../field-with-prefix-and-suffix.component.ts | 8 +
.../field-with-prefix-and-suffix.module.ts | 24 ++
.../field-demo/field.lazy.module.ts | 12 +-
src/app/docs/components/field-demo/field.md | 13 +
.../simple-form/simple-form.component.html | 20 +-
src/app/docs/getting-started/installation.md | 5 +-
.../basic-tabs/basic-tabs.component.html | 6 +-
.../basic-tabs/basic-tabs.component.ts | 14 +-
.../tabs-placement.component.html | 6 +-
.../tabs-placement.component.ts | 15 +-
...s-with-asynchronously-loading.component.ts | 2 +-
.../tabs-with-lazy-loading.component.html | 6 +-
.../tabs-with-lazy-loading.component.ts | 12 +-
src/app/docs/layout/tabs-demo/tabs.md | 4 +-
src/browserslist | 9 -
src/index.html | 6 +-
src/lib/card/card.directive.ts | 26 +-
src/lib/checkbox/checkbox.ts | 4 +-
src/lib/expansion/accordion.ts | 2 +-
src/lib/field/display-with.ts | 22 ++
src/lib/field/field-control-base.ts | 2 +
src/lib/field/field.html | 28 +-
src/lib/field/field.module.ts | 18 +-
src/lib/field/field.ts | 182 +++++----
src/lib/menu/menu.ts | 70 ++--
src/lib/select/select.ts | 8 +-
src/lib/slider/slider.ts | 152 ++++----
src/lib/src/focus-state/focus-state.ts | 2 +-
src/lib/src/minimal/component-destroyed.ts | 2 +-
src/lib/src/minimal/renderer-style.ts | 10 +-
src/lib/src/position/position.ts | 4 +-
src/lib/src/style-utils.ts | 4 +-
src/lib/src/theme/common.module.ts | 6 +-
src/lib/src/theme/style.directive.ts | 106 +-----
src/lib/src/theme/theme2.service.ts | 20 +-
src/lib/tabs/tabs.html | 21 +-
src/lib/tabs/tabs.module.ts | 9 +-
src/lib/tabs/tabs.ts | 353 +++++++++++-------
src/lib/themes/minima/base.ts | 108 +++---
src/lib/tooltip/tooltip.ts | 10 +-
src/lib/typography/typography.directive.ts | 10 +-
80 files changed, 1044 insertions(+), 727 deletions(-)
create mode 100644 src/api/docs/demos/field-with-display-with.component.html.html
create mode 100644 src/api/docs/demos/field-with-display-with.component.ts.html
create mode 100644 src/api/docs/demos/field-with-display-with.module.ts.html
create mode 100644 src/api/docs/demos/field-with-prefix-and-suffix.component.html.html
create mode 100644 src/api/docs/demos/field-with-prefix-and-suffix.component.ts.html
create mode 100644 src/api/docs/demos/field-with-prefix-and-suffix.module.ts.html
create mode 100644 src/app/docs/components/field-demo/field-with-display-with/field-with-display-with.component.html
create mode 100644 src/app/docs/components/field-demo/field-with-display-with/field-with-display-with.component.spec.ts
create mode 100644 src/app/docs/components/field-demo/field-with-display-with/field-with-display-with.component.ts
create mode 100644 src/app/docs/components/field-demo/field-with-display-with/field-with-display-with.module.ts
create mode 100644 src/app/docs/components/field-demo/field-with-prefix-and-suffix/field-with-prefix-and-suffix.component.html
create mode 100644 src/app/docs/components/field-demo/field-with-prefix-and-suffix/field-with-prefix-and-suffix.component.spec.ts
create mode 100644 src/app/docs/components/field-demo/field-with-prefix-and-suffix/field-with-prefix-and-suffix.component.ts
create mode 100644 src/app/docs/components/field-demo/field-with-prefix-and-suffix/field-with-prefix-and-suffix.module.ts
delete mode 100644 src/browserslist
create mode 100644 src/lib/field/display-with.ts
diff --git a/.gitignore b/.gitignore
index ea6081020..3450d388a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -60,3 +60,4 @@ firebase-debug.log
#others
publish.sh
/others
+sync-config.json
\ No newline at end of file
diff --git a/src/api/docs/components/field.html b/src/api/docs/components/field.html
index fc00b4ac6..67c12eb97 100644
--- a/src/api/docs/components/field.html
+++ b/src/api/docs/components/field.html
@@ -13,6 +13,14 @@ Automatically resizing a
+
+
+
+
+Field with prefix & suffix
+
+
+
Field Playground
diff --git a/src/api/docs/components/tabs.html b/src/api/docs/components/tabs.html
index adcfc0cf4..91768c3f5 100644
--- a/src/api/docs/components/tabs.html
+++ b/src/api/docs/components/tabs.html
@@ -32,6 +32,6 @@ Placement
Limitations
-When using keepContent
attribute with headerPlacement="before"
or headerPlacement="after"
you must explicitly set a height to ly-tabs
for it to work properly.
-headerPlacement="before"
or headerPlacement="after"
does not work with dynamicHeight
.
+When using keepContent
attribute with headerPlacement="before"
or headerPlacement="after"
you must explicitly set a height to ly-tabs
for it to work properly.
+headerPlacement="before"
or headerPlacement="after"
does not work with dynamicHeight
.
\ No newline at end of file
diff --git a/src/api/docs/customization/color.html b/src/api/docs/customization/color.html
index b7e8c9ef1..7680ac843 100644
--- a/src/api/docs/customization/color.html
+++ b/src/api/docs/customization/color.html
@@ -5,24 +5,24 @@ Color
Supported values
import { color } from '@alyle/ui/color' ;
-const Yellow = color ( 255 , 255 , 0 ) ; // rgb
-const Black = color ( 0 ) ; // number
-const White = color ( 0xffffff ) ; // hex
-const Text = color ( 0 , 0 , 0 , .87 ) ; // rgba
+const Yellow = color ( 255 , 255 , 0 ) ; // rgb
+const Black = color ( 0 ) ; // number
+const White = color ( 0xffffff ) ; // hex
+const Text = color ( 0 , 0 , 0 , .87 ) ; // rgba
Note that a 6-digit hexadecimal is different from a 3-digit hexadecimal.
-color ( 0xffffff ) . css ( ) !== color ( 0xfff ) . css ( ) ; // true
+color ( 0xffffff ) . css ( ) !== color ( 0xfff ) . css ( ) ; // true
How to use color
color
and the previously mentioned methods returns an immutable Color
.
import { color } from '@alyle/ui/color' ;
-const Yellow = color ( 255 , 255 , 0 ) ;
+const Yellow = color ( 255 , 255 , 0 ) ;
Using methods:
-const Yellow = color ( 255 , 255 , 0 ) ;
+const Yellow = color ( 255 , 255 , 0 ) ;
Yellow. darken ( 2 ) . alpha ( .94 ) . css ( ) ; // --> rgba(145,156,0,0.94)
-color ( 0xffffff ) . luminance ( ) ; // --> 1
-color ( 0xffffff ) . luminance ( 0.5 ) ; // --> rgb(194,194,0)
+color ( 0xffffff ) . luminance ( ) ; // --> 1
+color ( 0xffffff ) . luminance ( 0.5 ) ; // --> rgb(194,194,0)
\ No newline at end of file
diff --git a/src/api/docs/customization/theming.html b/src/api/docs/customization/theming.html
index cbe722cd7..065512269 100644
--- a/src/api/docs/customization/theming.html
+++ b/src/api/docs/customization/theming.html
@@ -25,12 +25,12 @@ Overwriting the variables of a the
export class CustomMinimaLight implements PartialThemeVariables {
name = 'minima-light' ;
primary = {
- default : color ( 0x2196f3 ) ,
- contrast: color ( 0xffffff )
+ default : color ( 0x2196f3 ) ,
+ contrast: color ( 0xffffff )
} ;
accent = {
- default : color ( 0xe91e63 ) ,
- contrast: color ( 0xffffff )
+ default : color ( 0xe91e63 ) ,
+ contrast: color ( 0xffffff )
} ;
}
@@ -41,12 +41,12 @@ Overwriting the variables of a the
export class CustomMinimaDark implements PartialThemeVariables {
name = 'minima-dark' ;
primary = {
- default : color ( 0x9c27b0 ) ,
- contrast: color ( 0xffffff )
+ default : color ( 0x9c27b0 ) ,
+ contrast: color ( 0xffffff )
} ;
accent = {
- default : color ( 0x69f0ae ) ,
- contrast: color ( 0x202020 )
+ default : color ( 0x69f0ae ) ,
+ contrast: color ( 0x202020 )
} ;
}
diff --git a/src/api/docs/demos/basic-field.component.html.html b/src/api/docs/demos/basic-field.component.html.html
index 253be6702..0edd4e3e7 100644
--- a/src/api/docs/demos/basic-field.component.html.html
+++ b/src/api/docs/demos/basic-field.component.html.html
@@ -1,6 +1,6 @@
< ly-field>
+ < ly-label> Label</ ly-label>
< input lyNativeControl
- placeholder = " Label"
value = " Hi!"
>
</ ly-field>
diff --git a/src/api/docs/demos/basic-tabs.component.html.html b/src/api/docs/demos/basic-tabs.component.html.html
index 70357fffa..2af511be7 100644
--- a/src/api/docs/demos/basic-tabs.component.html.html
+++ b/src/api/docs/demos/basic-tabs.component.html.html
@@ -2,17 +2,17 @@
< ly-tabs [selectedIndex] = " 1" >
< ly-tab>
< button ly-tab-label > Item One</ button>
- < div [withClass] = " classes.content" lyTyp = " body1" > Item One</ div>
+ < div [lyP] = " 4" lyTyp = " body1" > Item One</ div>
</ ly-tab>
< ly-tab>
< button ly-tab-label > Item Two</ button>
- < div [withClass] = " classes.content" lyTyp = " body1" >
+ < div [lyP] = " 4" lyTyp = " body1" >
Lorem ipsum dolor sit amet consectetur adipisicing elit. Obcaecati unde dignissimos quia fuga? Saepe laudantium cupiditate iusto, delectus voluptatum omnis, exercitationem necessitatibus fuga deleniti incidunt beatae magni eos natus architecto!
</ div>
</ ly-tab>
< ly-tab>
< button ly-tab-label > Item Three</ button>
- < div [withClass] = " classes.content" lyTyp = " body1" > Item Three</ div>
+ < div [lyP] = " 4" lyTyp = " body1" > Item Three</ div>
</ ly-tab>
</ ly-tabs>
</ div>
diff --git a/src/api/docs/demos/basic-tabs.component.ts.html b/src/api/docs/demos/basic-tabs.component.ts.html
index 027262624..27f00eaa3 100644
--- a/src/api/docs/demos/basic-tabs.component.ts.html
+++ b/src/api/docs/demos/basic-tabs.component.ts.html
@@ -1,21 +1,9 @@
import { Component, ChangeDetectionStrategy } from '@angular/core' ;
-import { LyTheme2 } from '@alyle/ui' ;
-
-const styles = ( {
- content: {
- padding: '2em'
- }
-} ) ;
@Component ( {
selector: 'aui-basic-tabs' ,
templateUrl: './basic-tabs.component.html' ,
changeDetection: ChangeDetectionStrategy. OnPush
} )
-export class BasicTabsComponent {
- classes = this . theme. addStyleSheet ( styles) ;
- constructor (
- private theme: LyTheme2
- ) { }
-}
+export class BasicTabsComponent { }
\ No newline at end of file
diff --git a/src/api/docs/demos/complex-checkbox.component.ts.html b/src/api/docs/demos/complex-checkbox.component.ts.html
index 79f20d791..3586a7908 100644
--- a/src/api/docs/demos/complex-checkbox.component.ts.html
+++ b/src/api/docs/demos/complex-checkbox.component.ts.html
@@ -40,7 +40,7 @@
} ) )
)
} ) ;
- fruitsAbstractControlArray: AbstractControl[ ] = ( < FormArray> this . form. get ( 'fruits' ) ) . controls;
+ fruitsAbstractControlArray: AbstractControl[ ] = ( this . form. get ( 'fruits' ) as FormArray) . controls;
get selectedFruits ( ) {
const fruits = this . fruits. filter ( _ => ! _. disabled) ;
diff --git a/src/api/docs/demos/dialog-responsive.component.ts.html b/src/api/docs/demos/dialog-responsive.component.ts.html
index 91f79923c..5591451c2 100644
--- a/src/api/docs/demos/dialog-responsive.component.ts.html
+++ b/src/api/docs/demos/dialog-responsive.component.ts.html
@@ -5,8 +5,10 @@
const STYLES = ( theme: ThemeVariables ) => {
return {
dialog: lyl ` {
- @media ${ theme. breakpoints[ 'Small' ] } ,
- ${ theme. breakpoints[ 'XSmall' ] } {
+ @media ${ [
+ theme. breakpoints[ 'Small' ] ,
+ theme. breakpoints[ 'XSmall' ]
+ ] . join ( ) } {
border-radius: 0
}
} `
diff --git a/src/api/docs/demos/dialog-with-select-dialog.html.html b/src/api/docs/demos/dialog-with-select-dialog.html.html
index 147be4572..cfcdb871c 100644
--- a/src/api/docs/demos/dialog-with-select-dialog.html.html
+++ b/src/api/docs/demos/dialog-with-select-dialog.html.html
@@ -11,7 +11,7 @@
>
< ly-hint> Hint</ ly-hint>
< ly-error *ngIf = " username.hasError('minlength')" > Min 5 characters</ ly-error>
- < ly-error *ngIf = " username.hasError('maxlength')" > Max 16 characters</ ly-error>
+ < ly-error *ngIf = " username.hasError('maxlength')" > Max 32 characters</ ly-error>
< ly-error *ngIf = " username.hasError('required')" > Required</ ly-error>
< ly-hint [align] = " ' after'" > {{ username.value?.length || 0 }}/32</ ly-hint>
</ ly-field>
diff --git a/src/api/docs/demos/dialog-with-select-dialog.ts.html b/src/api/docs/demos/dialog-with-select-dialog.ts.html
index cecc5bf1d..cec2592a6 100644
--- a/src/api/docs/demos/dialog-with-select-dialog.ts.html
+++ b/src/api/docs/demos/dialog-with-select-dialog.ts.html
@@ -12,7 +12,7 @@
username: new FormControl ( '' , [
Validators. required,
Validators. minLength ( 5 ) ,
- Validators. maxLength ( 16 )
+ Validators. maxLength ( 32 )
] ) ,
option: new FormControl ( '' , Validators. required)
} ) ;
diff --git a/src/api/docs/demos/field-with-display-with.component.html.html b/src/api/docs/demos/field-with-display-with.component.html.html
new file mode 100644
index 000000000..7522360c5
--- /dev/null
+++ b/src/api/docs/demos/field-with-display-with.component.html.html
@@ -0,0 +1,9 @@
+< ly-field appearance = " filled" >
+ < input lyNativeControl
+ type = " number"
+ [formControl] = " price"
+ >
+ < ly-label> Price</ ly-label>
+ < ly-display-with> {{ price.value | currency }}</ ly-display-with>
+ < ly-hint> Hint</ ly-hint>
+</ ly-field>
\ No newline at end of file
diff --git a/src/api/docs/demos/field-with-display-with.component.ts.html b/src/api/docs/demos/field-with-display-with.component.ts.html
new file mode 100644
index 000000000..64db8fb37
--- /dev/null
+++ b/src/api/docs/demos/field-with-display-with.component.ts.html
@@ -0,0 +1,12 @@
+import { Component, ChangeDetectionStrategy } from '@angular/core' ;
+import { FormControl } from '@angular/forms' ;
+
+@Component ( {
+ selector: 'aui-field-with-display-with' ,
+ templateUrl: './field-with-display-with.component.html' ,
+ changeDetection: ChangeDetectionStrategy. OnPush
+} )
+export class FieldWithDisplayWithComponent {
+ readonly price = new FormControl ( 14000 ) ;
+}
+
\ No newline at end of file
diff --git a/src/api/docs/demos/field-with-display-with.module.ts.html b/src/api/docs/demos/field-with-display-with.module.ts.html
new file mode 100644
index 000000000..6dbb0162e
--- /dev/null
+++ b/src/api/docs/demos/field-with-display-with.module.ts.html
@@ -0,0 +1,19 @@
+import { NgModule } from '@angular/core' ;
+import { CommonModule } from '@angular/common' ;
+import { ReactiveFormsModule } from '@angular/forms' ;
+import { LyFieldModule } from '@alyle/ui/field' ;
+
+import { FieldWithDisplayWithComponent } from './field-with-display-with.component' ;
+
+
+
+@NgModule ( {
+ declarations: [ FieldWithDisplayWithComponent] ,
+ imports: [
+ CommonModule,
+ ReactiveFormsModule,
+ LyFieldModule,
+ ]
+} )
+export class FieldWithDisplayWithModule { }
+
\ No newline at end of file
diff --git a/src/api/docs/demos/field-with-prefix-and-suffix.component.html.html b/src/api/docs/demos/field-with-prefix-and-suffix.component.html.html
new file mode 100644
index 000000000..ba7dc81fd
--- /dev/null
+++ b/src/api/docs/demos/field-with-prefix-and-suffix.component.html.html
@@ -0,0 +1,40 @@
+< ly-grid container [spacing] = " 16" >
+ < ly-grid item col = " 4 6@XSmall@Small" >
+ < ly-field appearance = " outlined" [lyWidth] = " 1" >
+ < span lySuffix > Kg</ span>
+ < input lyNativeControl
+ type = " number"
+ value = " 10"
+ >
+ < ly-label> Weight</ ly-label>
+ < ly-hint> Hint</ ly-hint>
+ </ ly-field>
+ </ ly-grid>
+ < ly-grid item col = " 4 6@XSmall@Small" >
+ < ly-field appearance = " outlined" [lyWidth] = " 1" >
+ < input lyNativeControl
+ type = " string"
+ value = " example"
+ >
+ < span lySuffix > @gmail.com</ span>
+ < ly-label> Email</ ly-label>
+ < ly-hint> Hint</ ly-hint>
+ </ ly-field>
+ </ ly-grid>
+ < ly-grid item col = " 4 6@XSmall@Small" >
+ < ly-field appearance = " outlined" [lyWidth] = " 1" >
+ < input lyNativeControl
+ type = " string"
+ value = " example"
+ >
+ < button ly-button appearance = " icon" lyPrefix [lyMf] = " ' 0.25em'" >
+ < ly-icon> add_circle</ ly-icon>
+ </ button>
+ < button ly-button appearance = " icon" lySuffix >
+ < ly-icon> mic</ ly-icon>
+ </ button>
+ < ly-label> Label</ ly-label>
+ < ly-hint> Hint</ ly-hint>
+ </ ly-field>
+ </ ly-grid>
+</ ly-grid>
\ No newline at end of file
diff --git a/src/api/docs/demos/field-with-prefix-and-suffix.component.ts.html b/src/api/docs/demos/field-with-prefix-and-suffix.component.ts.html
new file mode 100644
index 000000000..ecee04ac9
--- /dev/null
+++ b/src/api/docs/demos/field-with-prefix-and-suffix.component.ts.html
@@ -0,0 +1,9 @@
+import { Component, ChangeDetectionStrategy } from '@angular/core' ;
+
+@Component ( {
+ selector: 'aui-field-with-prefix-and-suffix' ,
+ templateUrl: './field-with-prefix-and-suffix.component.html' ,
+ changeDetection: ChangeDetectionStrategy. OnPush
+} )
+export class FieldWithPrefixAndSuffixComponent { }
+
\ No newline at end of file
diff --git a/src/api/docs/demos/field-with-prefix-and-suffix.module.ts.html b/src/api/docs/demos/field-with-prefix-and-suffix.module.ts.html
new file mode 100644
index 000000000..e76ab3580
--- /dev/null
+++ b/src/api/docs/demos/field-with-prefix-and-suffix.module.ts.html
@@ -0,0 +1,25 @@
+import { NgModule } from '@angular/core' ;
+import { CommonModule } from '@angular/common' ;
+import { ReactiveFormsModule } from '@angular/forms' ;
+import { LyFieldModule } from '@alyle/ui/field' ;
+import { LyGridModule } from '@alyle/ui/grid' ;
+import { LyButtonModule } from '@alyle/ui/button' ;
+import { LyIconModule } from '@alyle/ui/icon' ;
+
+import { FieldWithPrefixAndSuffixComponent } from './field-with-prefix-and-suffix.component' ;
+
+
+
+@NgModule ( {
+ declarations: [ FieldWithPrefixAndSuffixComponent] ,
+ imports: [
+ CommonModule,
+ ReactiveFormsModule,
+ LyFieldModule,
+ LyGridModule,
+ LyButtonModule,
+ LyIconModule
+ ]
+} )
+export class FieldWithPrefixAndSuffixModule { }
+
\ No newline at end of file
diff --git a/src/api/docs/demos/field.lazy.module.ts.html b/src/api/docs/demos/field.lazy.module.ts.html
index 499830ca4..f036c3296 100644
--- a/src/api/docs/demos/field.lazy.module.ts.html
+++ b/src/api/docs/demos/field.lazy.module.ts.html
@@ -8,12 +8,18 @@
import { SimpleFormModule } from './simple-form/simple-form.module' ;
import { FieldWithCdkAutosizeModule } from './field-with-cdk-autosize/field-with-cdk-autosize.module' ;
import { FieldWithCdkAutosizeComponent } from './field-with-cdk-autosize/field-with-cdk-autosize.component' ;
+import { FieldWithPrefixAndSuffixComponent } from './field-with-prefix-and-suffix/field-with-prefix-and-suffix.component' ;
+import { FieldWithPrefixAndSuffixModule } from './field-with-prefix-and-suffix/field-with-prefix-and-suffix.module' ;
+import { FieldWithDisplayWithModule } from './field-with-display-with/field-with-display-with.module' ;
+import { FieldWithDisplayWithComponent } from './field-with-display-with/field-with-display-with.component' ;
const elements = [
BasicFieldComponent,
FieldPlaygroundComponent,
SimpleFormComponent,
- FieldWithCdkAutosizeComponent
+ FieldWithCdkAutosizeComponent,
+ FieldWithPrefixAndSuffixComponent,
+ FieldWithDisplayWithComponent
] ;
@NgModule ( {
@@ -21,7 +27,9 @@
BasicFieldModule,
FieldPlaygroundModule,
SimpleFormModule,
- FieldWithCdkAutosizeModule
+ FieldWithCdkAutosizeModule,
+ FieldWithPrefixAndSuffixModule,
+ FieldWithDisplayWithModule
] ,
entryComponents: elements
} )
diff --git a/src/api/docs/demos/simple-form.component.html.html b/src/api/docs/demos/simple-form.component.html.html
index ad76e8829..3ec64d509 100644
--- a/src/api/docs/demos/simple-form.component.html.html
+++ b/src/api/docs/demos/simple-form.component.html.html
@@ -2,20 +2,19 @@
(ngSubmit) = " onSubmit()"
[className] = " classes.container"
>
- < ly-field appearance = " filled" fullWidth >
+ < ly-field appearance = " filled" [lyWidth] = " 1" [persistentHint] = " true" >
< input lyNativeControl
type = " text"
- placeholder = " Username"
formControlName = " username"
>
- < ly-hint> Hint</ ly-hint>
+ < ly-label> Username</ ly-label>
< ly-error *ngIf = " username.hasError('minlength')" > Min 5 characters</ ly-error>
< ly-error *ngIf = " username.hasError('maxlength')" > Max 16 characters</ ly-error>
< ly-error *ngIf = " username.hasError('required')" > Required</ ly-error>
< ly-hint [align] = " ' after'" > {{ username.value?.length || 0 }}/16</ ly-hint>
</ ly-field>
- < ly-field appearance = " filled" fullWidth >
+ < ly-field appearance = " filled" [lyWidth] = " 1" >
< textarea lyNativeControl formControlName = " bio" > </ textarea>
< ly-label> Bio < ly-icon> favorite</ ly-icon> </ ly-label>
< ly-hint> Hint</ ly-hint>
@@ -24,28 +23,29 @@
< ly-error *ngIf = " bio.hasError('maxlength')" > Max 256 characters</ ly-error>
</ ly-field>
- < ly-field appearance = " filled" fullWidth >
+ < ly-field appearance = " filled" [lyWidth] = " 1" >
+ < ly-label> Phone number</ ly-label>
< input lyNativeControl
type = " number"
- placeholder = " Phone number"
formControlName = " phone"
>
< ly-hint> Hint</ ly-hint>
< ly-error> Required</ ly-error>
</ ly-field>
- < ly-field appearance = " filled" fullWidth >
+ < ly-field appearance = " filled" [lyWidth] = " 1" >
+ < ly-label> Email address</ ly-label>
< input lyNativeControl
type = " text"
- placeholder = " Email address"
formControlName = " email"
>
< ly-hint> Hint</ ly-hint>
< ly-error> Required</ ly-error>
</ ly-field>
- < ly-field appearance = " filled" fullWidth >
- < ly-select placeholder = " Select something"
+ < ly-field appearance = " filled" [lyWidth] = " 1" >
+ < ly-label> Select something</ ly-label>
+ < ly-select
formControlName = " option"
>
< ly-option value = " opt-1" > Item 1</ ly-option>
diff --git a/src/api/docs/demos/tabs-placement.component.html.html b/src/api/docs/demos/tabs-placement.component.html.html
index 0ca8a08ee..5a95397fd 100644
--- a/src/api/docs/demos/tabs-placement.component.html.html
+++ b/src/api/docs/demos/tabs-placement.component.html.html
@@ -8,16 +8,16 @@
</ p>
< ly-paper>
- < ly-tabs [headerPlacement] = " _placement.value" [alignTabs] = " ' center'" >
+ < ly-tabs [headerPlacement] = " _placement.value" >
< ly-tab>
< button ly-tab-label > Item One</ button>
- < div [className] = " classes.content" lyTyp = " body1" >
+ < div [lyP] = " 4" lyTyp = " body1" >
Lorem ipsum dolor sit amet consectetur adipisicing elit. Ullam dolorem saepe iusto, voluptates labore praesentium, earum voluptatibus, eaque atque itaque aut magnam quo voluptatem nobis voluptate incidunt. Porro, consequatur minus!
</ div>
</ ly-tab>
< ly-tab>
< button ly-tab-label > Item Two</ button>
- < div [className] = " classes.content" lyTyp = " body1" > Item Two</ div>
+ < div [lyP] = " 4" lyTyp = " body1" > Item Two</ div>
</ ly-tab>
</ ly-tabs>
</ ly-paper>
\ No newline at end of file
diff --git a/src/api/docs/demos/tabs-placement.component.ts.html b/src/api/docs/demos/tabs-placement.component.ts.html
index 4578c1702..e4f5e7f82 100644
--- a/src/api/docs/demos/tabs-placement.component.ts.html
+++ b/src/api/docs/demos/tabs-placement.component.ts.html
@@ -1,21 +1,8 @@
import { Component } from '@angular/core' ;
-import { LyTheme2 } from '@alyle/ui' ;
-
-const styles = ( {
- content: {
- padding: '2em'
- }
-} ) ;
@Component ( {
selector: 'aui-tabs-placement' ,
templateUrl: './tabs-placement.component.html'
} )
-export class TabsPlacementComponent {
- readonly classes = this . theme. addStyleSheet ( styles) ;
- constructor (
- private theme: LyTheme2
- ) { }
-
-}
+export class TabsPlacementComponent { }
\ No newline at end of file
diff --git a/src/api/docs/demos/tabs-with-asynchronously-loading.component.ts.html b/src/api/docs/demos/tabs-with-asynchronously-loading.component.ts.html
index 457620a88..fae18fc3d 100644
--- a/src/api/docs/demos/tabs-with-asynchronously-loading.component.ts.html
+++ b/src/api/docs/demos/tabs-with-asynchronously-loading.component.ts.html
@@ -18,7 +18,7 @@
constructor (
platform: Platform
) {
- this . asyncTabs = Observable. create ( ( observer: Observer< ExampleTab[ ] > ) => {
+ this . asyncTabs = new Observable ( ( observer: Observer< ExampleTab[ ] > ) => {
if ( platform. isBrowser) {
setTimeout ( ( ) => {
observer. next ( [
diff --git a/src/api/docs/demos/tabs-with-lazy-loading.component.html.html b/src/api/docs/demos/tabs-with-lazy-loading.component.html.html
index 7d4521c29..dc5d851e0 100644
--- a/src/api/docs/demos/tabs-with-lazy-loading.component.html.html
+++ b/src/api/docs/demos/tabs-with-lazy-loading.component.html.html
@@ -3,7 +3,7 @@
< ly-tab>
< button ly-tab-label > Home</ button>
< ng-template ly-tab-content >
- < p lyTyp = " body1" [withClass] = " classes.content" >
+ < p lyTyp = " body1" [lyP] = " 4" >
Home content - loaded: {{ getTime(1) | date:'EEEE, h:mm:ss a' }}
</ p>
</ ng-template>
@@ -11,7 +11,7 @@
< ly-tab>
< button ly-tab-label > Pages</ button>
< ng-template ly-tab-content >
- < p lyTyp = " body1" [withClass] = " classes.content" >
+ < p lyTyp = " body1" [lyP] = " 4" >
Pages content - loaded: {{ getTime(2) | date:'EEEE, h:mm:ss a' }}
</ p>
</ ng-template>
@@ -19,7 +19,7 @@
< ly-tab>
< button ly-tab-label > Post</ button>
< ng-template ly-tab-content >
- < p lyTyp = " body1" [withClass] = " classes.content" >
+ < p lyTyp = " body1" [lyP] = " 4" >
Post content - loaded: {{ getTime(3) | date:'EEEE, h:mm:ss a' }}
</ p>
</ ng-template>
diff --git a/src/api/docs/demos/tabs-with-lazy-loading.component.ts.html b/src/api/docs/demos/tabs-with-lazy-loading.component.ts.html
index 1c4ca0767..97a6e40b9 100644
--- a/src/api/docs/demos/tabs-with-lazy-loading.component.ts.html
+++ b/src/api/docs/demos/tabs-with-lazy-loading.component.ts.html
@@ -1,11 +1,4 @@
import { Component, ChangeDetectionStrategy } from '@angular/core' ;
-import { LyTheme2 } from '@alyle/ui' ;
-
-const styles = ( {
- content: {
- padding: '2em'
- }
-} ) ;
@Component ( {
selector: 'aui-tabs-with-lazy-loading' ,
@@ -13,12 +6,9 @@
changeDetection: ChangeDetectionStrategy. OnPush
} )
export class TabsWithLazyLoadingComponent {
- readonly classes = this . theme. addStyleSheet ( styles) ;
tabLoadTimes: Date[ ] = [ ] ;
- constructor (
- private theme: LyTheme2
- ) { }
+ constructor ( ) { }
getTime ( index: number ) {
if ( ! this . tabLoadTimes[ index] ) {
diff --git a/src/api/docs/getting-started/installation.html b/src/api/docs/getting-started/installation.html
index 5e516b8fe..4298c639a 100644
--- a/src/api/docs/getting-started/installation.html
+++ b/src/api/docs/getting-started/installation.html
@@ -7,7 +7,7 @@ Installation
href="https://cli.angular.io/">Angular CLI and for an existing one follow the next steps.
- Currently the latest version of Alyle UI supports Angular 9, if your project uses Angular 8, you can use version @alyle/ui@8.0.1
.
+ Currently the latest version of Alyle UI supports Angular 10, if your project uses Angular 9, you can use Alyle UI 9.
Angular CLI
Using with the Angular CLI command will update your Angular project so that it is ready to be used.
@@ -58,7 +58,8 @@ Step 2: Import Alyle UI in AppModul
// Add components
LyButtonModule,
LyToolbarModule,
- LyImageCropperModule
+ LyImageCropperModule,
+ // ...
// Gestures
HammerModule
] ,
diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index 2dfb6e1e7..b3a2e1727 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -9,8 +9,17 @@ import { ServiceWorkerModule } from '@angular/service-worker';
import { LyDrawerModule } from '@alyle/ui/drawer';
import { LyToolbarModule } from '@alyle/ui/toolbar';
import { LyMenuModule } from '@alyle/ui/menu';
-import { LyCommonModule, LY_THEME, LY_THEME_GLOBAL_VARIABLES, RecursivePartial, LY_THEME_NAME, LyTheme2, lyl, StyleRenderer, LyHammerGestureConfig } from '@alyle/ui';
-import { ResponsiveModule } from '@alyle/ui/responsive';
+import {
+ LyCommonModule,
+ LY_THEME,
+ LY_THEME_GLOBAL_VARIABLES,
+ RecursivePartial,
+ LY_THEME_NAME,
+ LyTheme2,
+ lyl,
+ StyleRenderer,
+ LyHammerGestureConfig
+} from '@alyle/ui';
import { LyButtonModule } from '@alyle/ui/button';
import { AppComponent } from './app.component';
@@ -143,7 +152,6 @@ export function themeNameProviderFactory() {
BrowserAnimationsModule,
RouterModule,
// LyThemeModule.setTheme('minima-light'),
- ResponsiveModule,
LyCommonModule,
LyButtonModule,
LyDrawerModule,
diff --git a/src/app/demo-view/view/view.component.html b/src/app/demo-view/view/view.component.html
index 0264018fb..869b90835 100644
--- a/src/app/demo-view/view/view.component.html
+++ b/src/app/demo-view/view/view.component.html
@@ -31,6 +31,7 @@
[elevation]="8"
[shadowColor]="'demoBg'"
scrollable
+ [animationDuration]="0"
>
{{ file.label }}
diff --git a/src/app/demo-view/view/view.component.ts b/src/app/demo-view/view/view.component.ts
index 1f431ae84..d71ad3c57 100644
--- a/src/app/demo-view/view/view.component.ts
+++ b/src/app/demo-view/view/view.component.ts
@@ -303,9 +303,9 @@ export class GlobalVariables {
'@angular/platform-browser-dynamic': VERSION.full,
'core-js': '^2.6.1',
'zone.js': '^0.9.1',
- 'rxjs': '^6.4.0',
- 'hammerjs': '2.0.8',
- 'tslib': '^1.10.0',
+ rxjs: '^6.4.0',
+ hammerjs: '2.0.8',
+ tslib: '^1.10.0',
'web-animations-js': 'latest'
},
settings: {
diff --git a/src/app/docs/components/checkbox-demo/complex-checkbox/complex-checkbox.component.ts b/src/app/docs/components/checkbox-demo/complex-checkbox/complex-checkbox.component.ts
index 901a6e383..db6f5a6e1 100644
--- a/src/app/docs/components/checkbox-demo/complex-checkbox/complex-checkbox.component.ts
+++ b/src/app/docs/components/checkbox-demo/complex-checkbox/complex-checkbox.component.ts
@@ -40,7 +40,7 @@ export class ComplexCheckboxComponent {
}))
)
});
- fruitsAbstractControlArray: AbstractControl[] = (this.form.get('fruits')).controls;
+ fruitsAbstractControlArray: AbstractControl[] = (this.form.get('fruits') as FormArray).controls;
get selectedFruits() {
const fruits = this.fruits.filter(_ => !_.disabled);
diff --git a/src/app/docs/components/dialog-demo/dialog-with-select/dialog-with-select-dialog.html b/src/app/docs/components/dialog-demo/dialog-with-select/dialog-with-select-dialog.html
index f73552745..4d7851b4e 100644
--- a/src/app/docs/components/dialog-demo/dialog-with-select/dialog-with-select-dialog.html
+++ b/src/app/docs/components/dialog-demo/dialog-with-select/dialog-with-select-dialog.html
@@ -11,7 +11,7 @@ Hi!
>
Hint
Min 5 characters
- Max 16 characters
+ Max 32 characters
Required
{{ username.value?.length || 0 }}/32
diff --git a/src/app/docs/components/dialog-demo/dialog-with-select/dialog-with-select-dialog.ts b/src/app/docs/components/dialog-demo/dialog-with-select/dialog-with-select-dialog.ts
index f79a64c57..74e11eb44 100644
--- a/src/app/docs/components/dialog-demo/dialog-with-select/dialog-with-select-dialog.ts
+++ b/src/app/docs/components/dialog-demo/dialog-with-select/dialog-with-select-dialog.ts
@@ -12,7 +12,7 @@ export class DialogWithSelectDialog {
username: new FormControl('', [
Validators.required,
Validators.minLength(5),
- Validators.maxLength(16)
+ Validators.maxLength(32)
]),
option: new FormControl('', Validators.required)
});
diff --git a/src/app/docs/components/field-demo/basic-field/basic-field.component.html b/src/app/docs/components/field-demo/basic-field/basic-field.component.html
index 3aee05dab..c92ef9e62 100644
--- a/src/app/docs/components/field-demo/basic-field/basic-field.component.html
+++ b/src/app/docs/components/field-demo/basic-field/basic-field.component.html
@@ -1,6 +1,6 @@
+ Label
diff --git a/src/app/docs/components/field-demo/field-with-display-with/field-with-display-with.component.html b/src/app/docs/components/field-demo/field-with-display-with/field-with-display-with.component.html
new file mode 100644
index 000000000..3c7029e28
--- /dev/null
+++ b/src/app/docs/components/field-demo/field-with-display-with/field-with-display-with.component.html
@@ -0,0 +1,9 @@
+
+
+ Price
+ {{ price.value | currency }}
+ Hint
+
\ No newline at end of file
diff --git a/src/app/docs/components/field-demo/field-with-display-with/field-with-display-with.component.spec.ts b/src/app/docs/components/field-demo/field-with-display-with/field-with-display-with.component.spec.ts
new file mode 100644
index 000000000..096533aff
--- /dev/null
+++ b/src/app/docs/components/field-demo/field-with-display-with/field-with-display-with.component.spec.ts
@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { FieldWithDisplayWithComponent } from './field-with-display-with.component';
+
+describe('FieldWithDisplayWithComponent', () => {
+ let component: FieldWithDisplayWithComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async(() => {
+ TestBed.configureTestingModule({
+ declarations: [ FieldWithDisplayWithComponent ]
+ })
+ .compileComponents();
+ }));
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(FieldWithDisplayWithComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/app/docs/components/field-demo/field-with-display-with/field-with-display-with.component.ts b/src/app/docs/components/field-demo/field-with-display-with/field-with-display-with.component.ts
new file mode 100644
index 000000000..0a6548974
--- /dev/null
+++ b/src/app/docs/components/field-demo/field-with-display-with/field-with-display-with.component.ts
@@ -0,0 +1,11 @@
+import { Component, ChangeDetectionStrategy } from '@angular/core';
+import { FormControl } from '@angular/forms';
+
+@Component({
+ selector: 'aui-field-with-display-with',
+ templateUrl: './field-with-display-with.component.html',
+ changeDetection: ChangeDetectionStrategy.OnPush
+})
+export class FieldWithDisplayWithComponent {
+ readonly price = new FormControl(14000);
+}
diff --git a/src/app/docs/components/field-demo/field-with-display-with/field-with-display-with.module.ts b/src/app/docs/components/field-demo/field-with-display-with/field-with-display-with.module.ts
new file mode 100644
index 000000000..b835f45c2
--- /dev/null
+++ b/src/app/docs/components/field-demo/field-with-display-with/field-with-display-with.module.ts
@@ -0,0 +1,18 @@
+import { NgModule } from '@angular/core';
+import { CommonModule } from '@angular/common';
+import { ReactiveFormsModule } from '@angular/forms';
+import { LyFieldModule } from '@alyle/ui/field';
+
+import { FieldWithDisplayWithComponent } from './field-with-display-with.component';
+
+
+
+@NgModule({
+ declarations: [FieldWithDisplayWithComponent],
+ imports: [
+ CommonModule,
+ ReactiveFormsModule,
+ LyFieldModule,
+ ]
+})
+export class FieldWithDisplayWithModule { }
diff --git a/src/app/docs/components/field-demo/field-with-prefix-and-suffix/field-with-prefix-and-suffix.component.html b/src/app/docs/components/field-demo/field-with-prefix-and-suffix/field-with-prefix-and-suffix.component.html
new file mode 100644
index 000000000..f2f62da8a
--- /dev/null
+++ b/src/app/docs/components/field-demo/field-with-prefix-and-suffix/field-with-prefix-and-suffix.component.html
@@ -0,0 +1,40 @@
+
+
+
+ Kg
+
+ Weight
+ Hint
+
+
+
+
+
+ @gmail.com
+ Email
+ Hint
+
+
+
+
+
+
+ add_circle
+
+
+ mic
+
+ Label
+ Hint
+
+
+
\ No newline at end of file
diff --git a/src/app/docs/components/field-demo/field-with-prefix-and-suffix/field-with-prefix-and-suffix.component.spec.ts b/src/app/docs/components/field-demo/field-with-prefix-and-suffix/field-with-prefix-and-suffix.component.spec.ts
new file mode 100644
index 000000000..79196de86
--- /dev/null
+++ b/src/app/docs/components/field-demo/field-with-prefix-and-suffix/field-with-prefix-and-suffix.component.spec.ts
@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { FieldWithPrefixAndSuffixComponent } from './field-with-prefix-and-suffix.component';
+
+describe('FieldWithPrefixAndSuffixComponent', () => {
+ let component: FieldWithPrefixAndSuffixComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async(() => {
+ TestBed.configureTestingModule({
+ declarations: [ FieldWithPrefixAndSuffixComponent ]
+ })
+ .compileComponents();
+ }));
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(FieldWithPrefixAndSuffixComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/app/docs/components/field-demo/field-with-prefix-and-suffix/field-with-prefix-and-suffix.component.ts b/src/app/docs/components/field-demo/field-with-prefix-and-suffix/field-with-prefix-and-suffix.component.ts
new file mode 100644
index 000000000..d20bb593d
--- /dev/null
+++ b/src/app/docs/components/field-demo/field-with-prefix-and-suffix/field-with-prefix-and-suffix.component.ts
@@ -0,0 +1,8 @@
+import { Component, ChangeDetectionStrategy } from '@angular/core';
+
+@Component({
+ selector: 'aui-field-with-prefix-and-suffix',
+ templateUrl: './field-with-prefix-and-suffix.component.html',
+ changeDetection: ChangeDetectionStrategy.OnPush
+})
+export class FieldWithPrefixAndSuffixComponent { }
diff --git a/src/app/docs/components/field-demo/field-with-prefix-and-suffix/field-with-prefix-and-suffix.module.ts b/src/app/docs/components/field-demo/field-with-prefix-and-suffix/field-with-prefix-and-suffix.module.ts
new file mode 100644
index 000000000..5004d9440
--- /dev/null
+++ b/src/app/docs/components/field-demo/field-with-prefix-and-suffix/field-with-prefix-and-suffix.module.ts
@@ -0,0 +1,24 @@
+import { NgModule } from '@angular/core';
+import { CommonModule } from '@angular/common';
+import { ReactiveFormsModule } from '@angular/forms';
+import { LyFieldModule } from '@alyle/ui/field';
+import { LyGridModule } from '@alyle/ui/grid';
+import { LyButtonModule } from '@alyle/ui/button';
+import { LyIconModule } from '@alyle/ui/icon';
+
+import { FieldWithPrefixAndSuffixComponent } from './field-with-prefix-and-suffix.component';
+
+
+
+@NgModule({
+ declarations: [FieldWithPrefixAndSuffixComponent],
+ imports: [
+ CommonModule,
+ ReactiveFormsModule,
+ LyFieldModule,
+ LyGridModule,
+ LyButtonModule,
+ LyIconModule
+ ]
+})
+export class FieldWithPrefixAndSuffixModule { }
diff --git a/src/app/docs/components/field-demo/field.lazy.module.ts b/src/app/docs/components/field-demo/field.lazy.module.ts
index 8730b3b5f..754ee23c3 100644
--- a/src/app/docs/components/field-demo/field.lazy.module.ts
+++ b/src/app/docs/components/field-demo/field.lazy.module.ts
@@ -8,12 +8,18 @@ import { FieldPlaygroundModule } from './field-playground/field-playground.modul
import { SimpleFormModule } from './simple-form/simple-form.module';
import { FieldWithCdkAutosizeModule } from './field-with-cdk-autosize/field-with-cdk-autosize.module';
import { FieldWithCdkAutosizeComponent } from './field-with-cdk-autosize/field-with-cdk-autosize.component';
+import { FieldWithPrefixAndSuffixComponent } from './field-with-prefix-and-suffix/field-with-prefix-and-suffix.component';
+import { FieldWithPrefixAndSuffixModule } from './field-with-prefix-and-suffix/field-with-prefix-and-suffix.module';
+import { FieldWithDisplayWithModule } from './field-with-display-with/field-with-display-with.module';
+import { FieldWithDisplayWithComponent } from './field-with-display-with/field-with-display-with.component';
const elements = [
BasicFieldComponent,
FieldPlaygroundComponent,
SimpleFormComponent,
- FieldWithCdkAutosizeComponent
+ FieldWithCdkAutosizeComponent,
+ FieldWithPrefixAndSuffixComponent,
+ FieldWithDisplayWithComponent
];
@NgModule({
@@ -21,7 +27,9 @@ const elements = [
BasicFieldModule,
FieldPlaygroundModule,
SimpleFormModule,
- FieldWithCdkAutosizeModule
+ FieldWithCdkAutosizeModule,
+ FieldWithPrefixAndSuffixModule,
+ FieldWithDisplayWithModule
],
entryComponents: elements
})
diff --git a/src/app/docs/components/field-demo/field.md b/src/app/docs/components/field-demo/field.md
index 71c63a41d..280793d18 100644
--- a/src/app/docs/components/field-demo/field.md
+++ b/src/app/docs/components/field-demo/field.md
@@ -18,7 +18,20 @@ Text fields let users enter and edit text.
+## Format values on blur
+
+
+
+
+
+## Field with prefix & suffix
+
+
+
+
+
## Field Playground
+
diff --git a/src/app/docs/components/field-demo/simple-form/simple-form.component.html b/src/app/docs/components/field-demo/simple-form/simple-form.component.html
index fc5dc8a65..9ba1365e4 100644
--- a/src/app/docs/components/field-demo/simple-form/simple-form.component.html
+++ b/src/app/docs/components/field-demo/simple-form/simple-form.component.html
@@ -2,20 +2,19 @@
(ngSubmit)="onSubmit()"
[className]="classes.container"
>
-
+
- Hint
+ Username
Min 5 characters
Max 16 characters
Required
{{ username.value?.length || 0 }}/16
-
+
Bio favorite
Hint
@@ -24,28 +23,29 @@
Max 256 characters
-
+
+ Phone number
Hint
Required
-
+
+ Email address
Hint
Required
-
-
+ Select something
+
Item 1
diff --git a/src/app/docs/getting-started/installation.md b/src/app/docs/getting-started/installation.md
index e4904fd5d..ad7f4d784 100644
--- a/src/app/docs/getting-started/installation.md
+++ b/src/app/docs/getting-started/installation.md
@@ -7,7 +7,7 @@
href="https://cli.angular.io/">Angular CLI and for an existing one follow the next steps.
-> Currently the latest version of Alyle UI supports Angular 9, if your project uses Angular 8, you can use version `@alyle/ui@8.0.1`.
+> Currently the latest version of Alyle UI supports Angular 10, if your project uses Angular 9, you can use Alyle UI 9.
## Angular CLI
@@ -71,7 +71,8 @@ import { MinimaLight, MinimaDark } from '@alyle/ui/themes/minima';
// Add components
LyButtonModule,
LyToolbarModule,
- LyImageCropperModule
+ LyImageCropperModule,
+ // ...
// Gestures
HammerModule
],
diff --git a/src/app/docs/layout/tabs-demo/basic-tabs/basic-tabs.component.html b/src/app/docs/layout/tabs-demo/basic-tabs/basic-tabs.component.html
index b8ce08724..baf497e46 100644
--- a/src/app/docs/layout/tabs-demo/basic-tabs/basic-tabs.component.html
+++ b/src/app/docs/layout/tabs-demo/basic-tabs/basic-tabs.component.html
@@ -2,17 +2,17 @@
Item One
- Item One
+ Item One
Item Two
-
+
Lorem ipsum dolor sit amet consectetur adipisicing elit. Obcaecati unde dignissimos quia fuga? Saepe laudantium cupiditate iusto, delectus voluptatum omnis, exercitationem necessitatibus fuga deleniti incidunt beatae magni eos natus architecto!
Item Three
- Item Three
+ Item Three
diff --git a/src/app/docs/layout/tabs-demo/basic-tabs/basic-tabs.component.ts b/src/app/docs/layout/tabs-demo/basic-tabs/basic-tabs.component.ts
index cf341fa28..ec88cb15b 100644
--- a/src/app/docs/layout/tabs-demo/basic-tabs/basic-tabs.component.ts
+++ b/src/app/docs/layout/tabs-demo/basic-tabs/basic-tabs.component.ts
@@ -1,20 +1,8 @@
import { Component, ChangeDetectionStrategy } from '@angular/core';
-import { LyTheme2 } from '@alyle/ui';
-
-const styles = ({
- content: {
- padding: '2em'
- }
-});
@Component({
selector: 'aui-basic-tabs',
templateUrl: './basic-tabs.component.html',
changeDetection: ChangeDetectionStrategy.OnPush
})
-export class BasicTabsComponent {
- classes = this.theme.addStyleSheet(styles);
- constructor(
- private theme: LyTheme2
- ) { }
-}
+export class BasicTabsComponent { }
diff --git a/src/app/docs/layout/tabs-demo/tabs-placement/tabs-placement.component.html b/src/app/docs/layout/tabs-demo/tabs-placement/tabs-placement.component.html
index c7b3d1c14..9e5238a3f 100644
--- a/src/app/docs/layout/tabs-demo/tabs-placement/tabs-placement.component.html
+++ b/src/app/docs/layout/tabs-demo/tabs-placement/tabs-placement.component.html
@@ -8,16 +8,16 @@
-
+
Item One
-
+
Lorem ipsum dolor sit amet consectetur adipisicing elit. Ullam dolorem saepe iusto, voluptates labore praesentium, earum voluptatibus, eaque atque itaque aut magnam quo voluptatem nobis voluptate incidunt. Porro, consequatur minus!
Item Two
- Item Two
+ Item Two
\ No newline at end of file
diff --git a/src/app/docs/layout/tabs-demo/tabs-placement/tabs-placement.component.ts b/src/app/docs/layout/tabs-demo/tabs-placement/tabs-placement.component.ts
index 925731e1f..bce9b2ce8 100644
--- a/src/app/docs/layout/tabs-demo/tabs-placement/tabs-placement.component.ts
+++ b/src/app/docs/layout/tabs-demo/tabs-placement/tabs-placement.component.ts
@@ -1,20 +1,7 @@
import { Component } from '@angular/core';
-import { LyTheme2 } from '@alyle/ui';
-
-const styles = ({
- content: {
- padding: '2em'
- }
-});
@Component({
selector: 'aui-tabs-placement',
templateUrl: './tabs-placement.component.html'
})
-export class TabsPlacementComponent {
- readonly classes = this.theme.addStyleSheet(styles);
- constructor(
- private theme: LyTheme2
- ) { }
-
-}
+export class TabsPlacementComponent { }
diff --git a/src/app/docs/layout/tabs-demo/tabs-with-asynchronously-loading/tabs-with-asynchronously-loading.component.ts b/src/app/docs/layout/tabs-demo/tabs-with-asynchronously-loading/tabs-with-asynchronously-loading.component.ts
index 9f423a827..59f227284 100644
--- a/src/app/docs/layout/tabs-demo/tabs-with-asynchronously-loading/tabs-with-asynchronously-loading.component.ts
+++ b/src/app/docs/layout/tabs-demo/tabs-with-asynchronously-loading/tabs-with-asynchronously-loading.component.ts
@@ -18,7 +18,7 @@ export class TabsWithAsynchronouslyLoadingComponent {
constructor(
platform: Platform
) {
- this.asyncTabs = Observable.create((observer: Observer
) => {
+ this.asyncTabs = new Observable((observer: Observer) => {
if (platform.isBrowser) {
setTimeout(() => {
observer.next([
diff --git a/src/app/docs/layout/tabs-demo/tabs-with-lazy-loading/tabs-with-lazy-loading.component.html b/src/app/docs/layout/tabs-demo/tabs-with-lazy-loading/tabs-with-lazy-loading.component.html
index 310724526..1933c7413 100644
--- a/src/app/docs/layout/tabs-demo/tabs-with-lazy-loading/tabs-with-lazy-loading.component.html
+++ b/src/app/docs/layout/tabs-demo/tabs-with-lazy-loading/tabs-with-lazy-loading.component.html
@@ -3,7 +3,7 @@
Home
-
+
Home content - loaded: {{ getTime(1) | date:'EEEE, h:mm:ss a' }}
@@ -11,7 +11,7 @@
Pages
-
+
Pages content - loaded: {{ getTime(2) | date:'EEEE, h:mm:ss a' }}
@@ -19,7 +19,7 @@
Post
-
+
Post content - loaded: {{ getTime(3) | date:'EEEE, h:mm:ss a' }}
diff --git a/src/app/docs/layout/tabs-demo/tabs-with-lazy-loading/tabs-with-lazy-loading.component.ts b/src/app/docs/layout/tabs-demo/tabs-with-lazy-loading/tabs-with-lazy-loading.component.ts
index b894b6104..4ad514b55 100644
--- a/src/app/docs/layout/tabs-demo/tabs-with-lazy-loading/tabs-with-lazy-loading.component.ts
+++ b/src/app/docs/layout/tabs-demo/tabs-with-lazy-loading/tabs-with-lazy-loading.component.ts
@@ -1,11 +1,4 @@
import { Component, ChangeDetectionStrategy } from '@angular/core';
-import { LyTheme2 } from '@alyle/ui';
-
-const styles = ({
- content: {
- padding: '2em'
- }
-});
@Component({
selector: 'aui-tabs-with-lazy-loading',
@@ -13,12 +6,9 @@ const styles = ({
changeDetection: ChangeDetectionStrategy.OnPush
})
export class TabsWithLazyLoadingComponent {
- readonly classes = this.theme.addStyleSheet(styles);
tabLoadTimes: Date[] = [];
- constructor(
- private theme: LyTheme2
- ) { }
+ constructor() { }
getTime(index: number) {
if (!this.tabLoadTimes[index]) {
diff --git a/src/app/docs/layout/tabs-demo/tabs.md b/src/app/docs/layout/tabs-demo/tabs.md
index abdf49aba..1e88c0c7a 100644
--- a/src/app/docs/layout/tabs-demo/tabs.md
+++ b/src/app/docs/layout/tabs-demo/tabs.md
@@ -46,8 +46,8 @@ The tab content will animate its height according to the height of the active ta
## Limitations
-* When using `keepContent` attribute with `headerPlacement="before"` or `headerPlacement="after"` you must explicitly set a height to `ly-tabs` for it to work properly.
+* ~~When using `keepContent` attribute with `headerPlacement="before"` or `headerPlacement="after"` you must explicitly set a height to `ly-tabs` for it to work properly.~~
-* `headerPlacement="before"` or `headerPlacement="after"` does not work with `dynamicHeight`.
+* ~~`headerPlacement="before"` or `headerPlacement="after"` does not work with `dynamicHeight`.~~
diff --git a/src/browserslist b/src/browserslist
deleted file mode 100644
index 2e82330ff..000000000
--- a/src/browserslist
+++ /dev/null
@@ -1,9 +0,0 @@
-# This file is currently used by autoprefixer to adjust CSS to support the below specified browsers
-# For additional information regarding the format and rule options, please see:
-# https://github.com/browserslist/browserslist#queries
-# For IE 9-11 support, please uncomment the last line of the file and adjust as needed
-> 0.5%
-last 4 versions
-Firefox ESR
-not dead
-IE 9-11
\ No newline at end of file
diff --git a/src/index.html b/src/index.html
index 94aa50025..d67647318 100644
--- a/src/index.html
+++ b/src/index.html
@@ -9,9 +9,6 @@
-
-
-
+
+
+