Skip to content

Commit f61792a

Browse files
authored
Merge branch 'master' into mpopov/progressbar/refactor-progressbar
2 parents ac35619 + e1114a1 commit f61792a

File tree

10 files changed

+236
-179
lines changed

10 files changed

+236
-179
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7-
## Unreleased
7+
## [5.2.1] - 2025-01-23
88
### Added
99
- #### Dialog
1010
- A new `message` slot that renders text content inside the dialog component has been added. The enhancement was introduced to align the design behavior between Ignite UI for WC and Ignite UI for Angular, ensuring a consistent user experience across products. The newly added `message' slot comes with additional styling with a max-width of 40 characters. The default slot is also still available for rendering content inside the dialog without limiting the component's width.
1111

1212
### Fixed
13+
- #### List
14+
- CSS variables are correctly consumed from internal schemas [#1538](https://github.com/IgniteUI/igniteui-webcomponents/pull/1538)
1315
- #### Rating
1416
- Inaccurate value calculation on selection when step is set to 1 [#1548](https://github.com/IgniteUI/igniteui-webcomponents/issues/1548)
1517

@@ -670,6 +672,7 @@ Initial release of Ignite UI Web Components
670672
- Ripple component
671673
- Switch component
672674

675+
[5.2.1]: https://github.com/IgniteUI/igniteui-webcomponents/compare/5.2.0...5.2.1
673676
[5.2.0]: https://github.com/IgniteUI/igniteui-webcomponents/compare/5.1.2...5.2.0
674677
[5.1.2]: https://github.com/IgniteUI/igniteui-webcomponents/compare/5.1.1...5.1.2
675678
[5.1.1]: https://github.com/IgniteUI/igniteui-webcomponents/compare/5.1.0...5.1.1

package-lock.json

Lines changed: 173 additions & 163 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@
6060
"@custom-elements-manifest/analyzer": "^0.10.4",
6161
"@igniteui/material-icons-extended": "^3.1.0",
6262
"@open-wc/testing": "^4.0.0",
63-
"@storybook/addon-a11y": "^8.5.0",
64-
"@storybook/addon-actions": "^8.5.0",
65-
"@storybook/addon-essentials": "^8.5.0",
66-
"@storybook/addon-links": "^8.5.0",
67-
"@storybook/web-components": "^8.5.0",
68-
"@storybook/web-components-vite": "^8.5.0",
63+
"@storybook/addon-a11y": "^8.5.1",
64+
"@storybook/addon-actions": "^8.5.1",
65+
"@storybook/addon-essentials": "^8.5.1",
66+
"@storybook/addon-links": "^8.5.1",
67+
"@storybook/web-components": "^8.5.1",
68+
"@storybook/web-components-vite": "^8.5.1",
6969
"@types/mocha": "^10.0.10",
7070
"@web/dev-server-esbuild": "^1.0.3",
7171
"@web/test-runner": "^0.19.0",
@@ -81,17 +81,17 @@
8181
"ig-typedoc-theme": "^6.0.0",
8282
"igniteui-theming": "^14.3.1",
8383
"keep-a-changelog": "^2.5.3",
84-
"lint-staged": "^15.4.1",
84+
"lint-staged": "^15.4.2",
8585
"lit-analyzer": "^2.0.3",
8686
"madge": "^8.0.0",
8787
"node-watch": "^0.7.4",
88-
"playwright": "^1.49.1",
88+
"playwright": "^1.50.0",
8989
"postcss": "^8.5.1",
9090
"prettier": "^3.4.2",
9191
"rimraf": "^5.0.10",
9292
"sass-embedded": "^1.78.0",
9393
"sinon": "^19.0.2",
94-
"storybook": "^8.5.0",
94+
"storybook": "^8.5.1",
9595
"stylelint": "^16.13.2",
9696
"stylelint-config-standard-scss": "^14.0.0",
9797
"stylelint-prettier": "^5.0.2",
@@ -101,7 +101,7 @@
101101
"typedoc": "^0.27.6",
102102
"typedoc-plugin-localization": "^3.0.6",
103103
"typescript": "^5.7.3",
104-
"vite": "^6.0.10"
104+
"vite": "^6.0.11"
105105
},
106106
"browserslist": [
107107
"defaults"

src/components/combo/combo.spec.ts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,6 +1431,45 @@ describe('Combo', () => {
14311431
});
14321432
});
14331433

1434+
describe('Form integration with delayed data', () => {
1435+
const spec = createFormAssociatedTestBed<IgcComboComponent<City>>(html`
1436+
<igc-combo name="combo" value-key="id" display-key="name"></igc-combo>
1437+
`);
1438+
1439+
function initDataDefaultValue(single = false) {
1440+
spec.element.singleSelect = single;
1441+
// assign data after init to simulate async data
1442+
spec.element.data = cities;
1443+
spec.element.defaultValue = value;
1444+
}
1445+
1446+
beforeEach(async () => {
1447+
await spec.setup(IgcComboComponent.tagName);
1448+
});
1449+
1450+
it('correct initial state (single)', () => {
1451+
initDataDefaultValue(true);
1452+
spec.assertIsPristine();
1453+
expect(spec.element.value).to.eql([first(value)]);
1454+
});
1455+
1456+
it('correct initial state (multiple)', () => {
1457+
initDataDefaultValue();
1458+
spec.assertIsPristine();
1459+
expect(spec.element.value).to.eql(value);
1460+
});
1461+
1462+
it('is correctly submitted (single)', () => {
1463+
initDataDefaultValue(true);
1464+
spec.assertSubmitHasValue(first(value));
1465+
});
1466+
1467+
it('is correctly submitted (multiple)', () => {
1468+
initDataDefaultValue();
1469+
spec.assertSubmitHasValues(value);
1470+
});
1471+
});
1472+
14341473
describe('Validation', () => {
14351474
const spec = createFormAssociatedTestBed<IgcComboComponent<City>>(html`
14361475
<igc-combo

src/components/combo/combo.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,13 @@ export default class IgcComboComponent<
181181
/* treatAsRef */
182182
@property({ attribute: false })
183183
public set data(value: T[]) {
184+
if (this._data === value) {
185+
return;
186+
}
184187
this._data = asArray(value);
188+
const pristine = this._pristine;
185189
this.value = asArray(this.value);
190+
this._pristine = pristine;
186191
this._state.runPipeline();
187192
}
188193

src/components/combo/themes/shared/combo.material.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $dropdown-theme: dropdown-theme.$material;
1616

1717
margin-block-start: rem(4px);
1818
grid-auto-rows: minmax(rem(18px), auto);
19-
padding-inline-start: pad-inline(rem(12px), rem(14px), rem(16px));
19+
padding-inline: pad-inline(rem(14px), rem(16px), rem(18px));
2020
}
2121

2222
::slotted([slot='prefix']),

src/components/date-picker/themes/shared/date-picker.common.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ $input-theme: input-theme.$material;
5757
color: var-get($theme, 'helper-text-color');
5858
grid-auto-rows: minmax(rem(18px), auto);
5959
margin-block-start: rem(4px);
60-
padding-inline-start: pad-inline(rem(12px), rem(14px), rem(16px));
60+
padding-inline: pad-inline(rem(14px), rem(16px), rem(18px));
6161
}
6262
}
6363

src/components/input/themes/shared/input.material.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ $fs: rem(16px) !default;
3939
color: var-get($theme, 'helper-text-color');
4040
margin-block-start: rem(4px);
4141
grid-auto-rows: minmax(rem(18px), auto);
42-
padding-inline: pad-inline(rem(12px), rem(14px), rem(16px));
42+
padding-inline: pad-inline(rem(14px), rem(16px), rem(18px));
4343
}
4444
}
4545

src/components/select/themes/shared/select.material.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $active-border-width: rem(2px) !default;
2424
@include type-style('caption');
2525

2626
margin-block-start: rem(4px);
27-
padding-inline: pad-inline(rem(12px), rem(14px), rem(16px));
27+
padding-inline: pad-inline(rem(14px), rem(16px), rem(18px));
2828
grid-auto-rows: minmax(rem(18px), auto);
2929
}
3030
}

src/components/textarea/themes/shared/textarea.material.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $input-bottom-padding: rem(6px);
1717
color: var-get($theme, 'helper-text-color');
1818
grid-auto-rows: minmax(rem(18px), auto);
1919
margin-block-start: rem(4px);
20-
padding-inline-start: pad-inline(rem(12px), rem(14px), rem(16px));
20+
padding-inline: pad-inline(rem(14px), rem(16px), rem(18px));
2121
}
2222
}
2323

0 commit comments

Comments
 (0)