-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core/slider): add slider component (#723)
- Loading branch information
1 parent
ab24285
commit 6a7f3cb
Showing
50 changed files
with
1,836 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
packages/angular-test-app/src/preview-examples/slider-error.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<ix-slider trace trace-reference="50" [marker]="[0, 25, 50, 75, 100]" error> | ||
<span slot="label-start">0</span> | ||
<span slot="label-end">100</span> | ||
</ix-slider> | ||
|
||
<ix-slider | ||
min="0" | ||
max="50" | ||
step="10" | ||
value="20" | ||
trace | ||
trace-reference="50" | ||
[marker]="[0, 10, 20, 30, 40, 50]" | ||
error="Error message" | ||
> | ||
<span slot="label-start">0</span> | ||
<span slot="label-end">100</span> | ||
</ix-slider> |
16 changes: 16 additions & 0 deletions
16
packages/angular-test-app/src/preview-examples/slider-error.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2023 Siemens AG | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-example', | ||
templateUrl: './slider-error.html', | ||
}) | ||
export default class SliderError {} |
15 changes: 15 additions & 0 deletions
15
packages/angular-test-app/src/preview-examples/slider-marker.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<ix-slider value="25" [marker]="[0, 25, 50, 75, 100]"> | ||
<span slot="label-start">0</span> | ||
<span slot="label-end">100</span> | ||
</ix-slider> | ||
|
||
<ix-slider | ||
min="0" | ||
max="50" | ||
step="10" | ||
value="10" | ||
marker="[0, 10, 20, 30, 40, 50]" | ||
> | ||
<span slot="label-start">0</span> | ||
<span slot="label-end">100</span> | ||
</ix-slider> |
16 changes: 16 additions & 0 deletions
16
packages/angular-test-app/src/preview-examples/slider-marker.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2023 Siemens AG | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-example', | ||
templateUrl: './slider-marker.html', | ||
}) | ||
export default class SliderMarker {} |
22 changes: 22 additions & 0 deletions
22
packages/angular-test-app/src/preview-examples/slider-trace.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<ix-slider | ||
trace | ||
trace-reference="50" | ||
[marker]="[0, 25, 50, 75, 100]" | ||
value="25" | ||
> | ||
<span slot="label-start">0</span> | ||
<span slot="label-end">100</span> | ||
</ix-slider> | ||
|
||
<ix-slider | ||
min="0" | ||
max="50" | ||
value="20" | ||
step="10" | ||
trace | ||
trace-reference="10" | ||
[marker]="[0, 10, 20, 30, 40, 50]" | ||
> | ||
<span slot="label-start">0</span> | ||
<span slot="label-end">100</span> | ||
</ix-slider> |
16 changes: 16 additions & 0 deletions
16
packages/angular-test-app/src/preview-examples/slider-trace.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2023 Siemens AG | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-example', | ||
templateUrl: './slider-trace.html', | ||
}) | ||
export default class SliderTrace {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<ix-slider value="25"> | ||
<span slot="label-start">0</span> | ||
<span slot="label-end">100</span> | ||
</ix-slider> | ||
|
||
<ix-slider min="0" max="50" step="10" value="10"> | ||
<span slot="label-start">0</span> | ||
<span slot="label-end">100</span> | ||
</ix-slider> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2023 Siemens AG | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-example', | ||
templateUrl: './slider.html', | ||
}) | ||
export default class Slider {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.