@orangelogic/design-system 2.172.0 → 2.173.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library/chunks/{asset-link-format.BATKDRgD.js → asset-link-format.COCtAbj0.js} +7 -5
- package/library/chunks/{color-swatch-group.CQlgq_I5.js → color-swatch-group.DCw6mJkM.js} +526 -508
- package/library/chunks/{folder-select.C6Sv4jtu.js → folder-select.BgWvY0t0.js} +346 -320
- package/library/components/asset-link-format.js +1 -1
- package/library/components/color-swatch-group.js +1 -1
- package/library/components/dynamic-select.js +143 -127
- package/library/components/folder-select.js +1 -1
- package/library/components/molecules.js +1 -1
- package/library/components/organisms.js +2 -2
- package/library/components/types.js +7 -7
- package/library/package.json +1 -1
- package/library/packages/hybrid/table-core/src/table/components/table-toolbar/table-dropdown-filter.d.ts +13 -1
- package/library/packages/hybrid/table-core/src/table/components/table-toolbar/table-toolbar.d.ts +3 -0
- package/library/packages/molecules/src/dynamic-select/dynamic-select.d.ts +14 -0
- package/library/packages/molecules/src/faceted-filter/faceted-filter.d.ts +1 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +16 -0
- package/library/packages/molecules/src/folder-select/folder-select.d.ts +18 -5
- package/library/react-web-component.d.ts +6 -1
- package/package.json +1 -1
|
@@ -1364,16 +1364,18 @@ let v = class extends B {
|
|
|
1364
1364
|
return this.lastAppliedSetting[this.unit].width === this.width && this.lastAppliedSetting[this.unit].height === this.height;
|
|
1365
1365
|
}
|
|
1366
1366
|
async handleCropModeChange() {
|
|
1367
|
+
const t = Number.isFinite(this.maxWidth) && Number.isFinite(this.maxHeight) && this.maxWidth > 0 && this.maxHeight > 0;
|
|
1367
1368
|
if (this.keepAspectRatio) {
|
|
1368
|
-
if (this.unit === o.
|
|
1369
|
-
this.aspectRatio = this.width / this.height;
|
|
1370
|
-
return;
|
|
1371
|
-
} else if (this.unit === o.AspectRatio && this.ratioWidth && this.ratioHeight) {
|
|
1369
|
+
if (this.unit === o.AspectRatio && this.ratioWidth && this.ratioHeight) {
|
|
1372
1370
|
this.aspectRatio = this.ratioWidth / this.ratioHeight;
|
|
1373
1371
|
return;
|
|
1374
1372
|
}
|
|
1373
|
+
if (this.unit === o.Pixel && !t && this.width && this.height) {
|
|
1374
|
+
this.aspectRatio = this.width / this.height;
|
|
1375
|
+
return;
|
|
1376
|
+
}
|
|
1375
1377
|
}
|
|
1376
|
-
if (
|
|
1378
|
+
if (t) {
|
|
1377
1379
|
this.aspectRatio = this.maxWidth / this.maxHeight;
|
|
1378
1380
|
return;
|
|
1379
1381
|
}
|