-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into release-3.0.0
- Loading branch information
Showing
5 changed files
with
123 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
"@siemens/ix-angular": patch | ||
'@siemens/ix-angular': patch | ||
--- | ||
|
||
update selector in value-accessor for ix-number-input | ||
Use `ix-number-input` selector in text-value-accessor for **ix-number-input** |
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,5 @@ | ||
--- | ||
'@siemens/ix': patch | ||
--- | ||
|
||
Hide clear button in **ix-select** for disabled and readonly states. |
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
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,56 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2024 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 type { Components } from '@siemens/ix/components'; | ||
import type { ArgTypes, Meta, StoryObj } from '@storybook/web-components'; | ||
import { genericRender, makeArgTypes } from './utils/generic-render'; | ||
import { html } from 'lit'; | ||
|
||
type Element = Components.IxSelect; | ||
|
||
const meta = { | ||
title: 'Example/Select', | ||
tags: [], | ||
render: (args) => genericRender('ix-select', args), | ||
argTypes: makeArgTypes<Partial<ArgTypes<Element>>>('ix-select'), | ||
parameters: { | ||
design: { | ||
type: 'figma', | ||
url: 'https://www.figma.com/design/r2nqdNNXXZtPmWuVjIlM1Q/iX-Components---Brand-Dark?node-id=42365-175539&m=dev', | ||
}, | ||
}, | ||
} satisfies Meta<Element>; | ||
|
||
export default meta; | ||
type Story = StoryObj<Element>; | ||
|
||
export const Default: Story = { | ||
args: {}, | ||
}; | ||
|
||
export const editableSelect: Story = { | ||
render: ({ value, editable, allowClear, disabled }) => { | ||
return html` <ix-select | ||
value=${value} | ||
?editable=${editable} | ||
?allow-clear=${allowClear} | ||
disabled=${disabled} | ||
> | ||
<ix-select-item label="Item 1" value="1"></ix-select-item> | ||
<ix-select-item label="Item 2" value="2"></ix-select-item> | ||
<ix-select-item label="Item 3" value="3"></ix-select-item> | ||
<ix-select-item label="Item 4" value="4"></ix-select-item> | ||
</ix-select>`; | ||
}, | ||
args: { | ||
value: 'Administrator', | ||
editable: true, | ||
allowClear: true, | ||
disabled: false, | ||
}, | ||
}; |