Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reflect button properties to 'date-dropdown' and 'expanded-search' #1635

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
7 changes: 7 additions & 0 deletions .changeset/small-pants-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@siemens/ix-angular': minor
'@siemens/ix': minor
'@siemens/ix-vue': minor
---

Add additional button properties to **ix-date-dropdown** and **ix-expanding-search**.
8 changes: 4 additions & 4 deletions packages/angular/src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -568,15 +568,15 @@ export declare interface IxCustomField extends Components.IxCustomField {}


@ProxyCmp({
inputs: ['customRangeAllowed', 'dateRangeId', 'dateRangeOptions', 'disabled', 'format', 'from', 'i18nCustomItem', 'i18nDone', 'i18nNoRange', 'locale', 'maxDate', 'minDate', 'range', 'to', 'weekStartIndex'],
inputs: ['customRangeAllowed', 'dateRangeId', 'dateRangeOptions', 'disabled', 'format', 'from', 'ghost', 'i18nCustomItem', 'i18nDone', 'i18nNoRange', 'loading', 'locale', 'maxDate', 'minDate', 'outline', 'range', 'to', 'variant', 'weekStartIndex'],
methods: ['getDateRange']
})
@Component({
selector: 'ix-date-dropdown',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
inputs: ['customRangeAllowed', 'dateRangeId', 'dateRangeOptions', 'disabled', 'format', 'from', 'i18nCustomItem', 'i18nDone', 'i18nNoRange', 'locale', 'maxDate', 'minDate', 'range', 'to', 'weekStartIndex'],
inputs: ['customRangeAllowed', 'dateRangeId', 'dateRangeOptions', 'disabled', 'format', 'from', 'ghost', 'i18nCustomItem', 'i18nDone', 'i18nNoRange', 'loading', 'locale', 'maxDate', 'minDate', 'outline', 'range', 'to', 'variant', 'weekStartIndex'],
})
export class IxDateDropdown {
protected el: HTMLElement;
Expand Down Expand Up @@ -976,14 +976,14 @@ export declare interface IxEventListItem extends Components.IxEventListItem {


@ProxyCmp({
inputs: ['fullWidth', 'icon', 'placeholder', 'value']
inputs: ['fullWidth', 'ghost', 'icon', 'outline', 'placeholder', 'value', 'variant']
})
@Component({
selector: 'ix-expanding-search',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
inputs: ['fullWidth', 'icon', 'placeholder', 'value'],
inputs: ['fullWidth', 'ghost', 'icon', 'outline', 'placeholder', 'value', 'variant'],
})
export class IxExpandingSearch {
protected el: HTMLElement;
Expand Down
184 changes: 184 additions & 0 deletions packages/core/component-doc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4183,6 +4183,28 @@
"optional": false,
"required": false
},
{
"name": "ghost",
"type": "boolean",
"complexType": {
"original": "boolean",
"resolved": "boolean",
"references": {}
},
"mutable": false,
"attr": "ghost",
"reflectToAttr": false,
"docs": "Button with no background or outline",
"docsTags": [],
"default": "false",
"values": [
{
"type": "boolean"
}
],
"optional": false,
"required": false
},
{
"name": "i18nCustomItem",
"type": "string",
Expand Down Expand Up @@ -4249,6 +4271,28 @@
"optional": false,
"required": false
},
{
"name": "loading",
"type": "boolean",
"complexType": {
"original": "boolean",
"resolved": "boolean",
"references": {}
},
"mutable": false,
"attr": "loading",
"reflectToAttr": false,
"docs": "Loading button",
"docsTags": [],
"default": "false",
"values": [
{
"type": "boolean"
}
],
"optional": false,
"required": false
},
{
"name": "locale",
"type": "string",
Expand Down Expand Up @@ -4319,6 +4363,28 @@
"optional": false,
"required": false
},
{
"name": "outline",
"type": "boolean",
"complexType": {
"original": "boolean",
"resolved": "boolean",
"references": {}
},
"mutable": false,
"attr": "outline",
"reflectToAttr": false,
"docs": "Outline button",
"docsTags": [],
"default": "false",
"values": [
{
"type": "boolean"
}
],
"optional": false,
"required": false
},
{
"name": "range",
"type": "boolean",
Expand Down Expand Up @@ -4363,6 +4429,43 @@
"optional": false,
"required": false
},
{
"name": "variant",
"type": "\"danger\" | \"primary\" | \"secondary\"",
"complexType": {
"original": "ButtonVariant",
"resolved": "\"danger\" | \"primary\" | \"secondary\"",
"references": {
"ButtonVariant": {
"location": "import",
"path": "../button/button",
"id": "src/components/button/button.tsx::ButtonVariant"
}
}
},
"mutable": false,
"attr": "variant",
"reflectToAttr": false,
"docs": "Button variant",
"docsTags": [],
"default": "'primary'",
"values": [
{
"value": "danger",
"type": "string"
},
{
"value": "primary",
"type": "string"
},
{
"value": "secondary",
"type": "string"
}
],
"optional": false,
"required": false
},
{
"name": "weekStartIndex",
"type": "number",
Expand Down Expand Up @@ -7849,6 +7952,28 @@
"optional": false,
"required": false
},
{
"name": "ghost",
"type": "boolean",
"complexType": {
"original": "boolean",
"resolved": "boolean",
"references": {}
},
"mutable": false,
"attr": "ghost",
"reflectToAttr": false,
"docs": "Button with no background or outline",
"docsTags": [],
"default": "true",
"values": [
{
"type": "boolean"
}
],
"optional": false,
"required": false
},
{
"name": "icon",
"type": "string",
Expand All @@ -7871,6 +7996,28 @@
"optional": false,
"required": false
},
{
"name": "outline",
"type": "boolean",
"complexType": {
"original": "boolean",
"resolved": "boolean",
"references": {}
},
"mutable": false,
"attr": "outline",
"reflectToAttr": false,
"docs": "Outline button",
"docsTags": [],
"default": "false",
"values": [
{
"type": "boolean"
}
],
"optional": false,
"required": false
},
{
"name": "placeholder",
"type": "string",
Expand Down Expand Up @@ -7914,6 +8061,43 @@
],
"optional": false,
"required": false
},
{
"name": "variant",
"type": "\"danger\" | \"primary\" | \"secondary\"",
"complexType": {
"original": "ButtonVariant",
"resolved": "\"danger\" | \"primary\" | \"secondary\"",
"references": {
"ButtonVariant": {
"location": "import",
"path": "../button/button",
"id": "src/components/button/button.tsx::ButtonVariant"
}
}
},
"mutable": false,
"attr": "variant",
"reflectToAttr": false,
"docs": "button variant",
"docsTags": [],
"default": "'primary'",
"values": [
{
"value": "danger",
"type": "string"
},
{
"value": "primary",
"type": "string"
},
{
"value": "secondary",
"type": "string"
}
],
"optional": false,
"required": false
}
],
"methods": [],
Expand Down
Loading
Loading