@leanix/components 0.4.943 → 0.4.944
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.
|
@@ -15,7 +15,7 @@ import { skipWhile, map, switchMap, startWith, pairwise, filter, take, debounceT
|
|
|
15
15
|
import * as i1$8 from '@angular/router';
|
|
16
16
|
import { RouterLink, RouterLinkActive } from '@angular/router';
|
|
17
17
|
import { CdkStepper, CdkStepperModule } from '@angular/cdk/stepper';
|
|
18
|
-
import {
|
|
18
|
+
import { unsafeRegisterIcon } from '@ui5/webcomponents-base/dist/asset-registries/Icons.js';
|
|
19
19
|
import Color from 'color';
|
|
20
20
|
import { isValid, format, formatDistance, startOfDay } from 'date-fns';
|
|
21
21
|
import DOMPurify from 'dompurify';
|
|
@@ -1187,44 +1187,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
1187
1187
|
}]
|
|
1188
1188
|
}], propDecorators: { isSortable: [{ type: i0.Input, args: [{ isSignal: true, alias: "isSortable", required: false }] }], sort: [{ type: i0.Input, args: [{ isSignal: true, alias: "sort", required: false }] }, { type: i0.Output, args: ["sortChange"] }] } });
|
|
1189
1189
|
|
|
1190
|
-
|
|
1191
|
-
|
|
1190
|
+
const SORT_UP_PATH = 'M8.00278 2C8.19778 2 8.37778 2.09 8.49028 2.2475L10.8903 5.5475C11.0253 5.7275 11.0403 5.975 10.9428 6.17C10.8378 6.3725 10.6353 6.5 10.4103 6.5L5.61028 6.5C5.38528 6.5 5.17528 6.3725 5.07778 6.17C4.97278 5.9675 4.99528 5.7275 5.13028 5.5475L7.53028 2.2475C7.64278 2.09 7.82278 2 8.01778 2H8.00278Z';
|
|
1191
|
+
const SORT_DOWN_PATH = 'M8.00278 14.455C7.80778 14.455 7.62778 14.365 7.51528 14.2075L5.11528 10.9075C4.98028 10.7275 4.96528 10.48 5.06278 10.285C5.16778 10.0825 5.37028 9.95496 5.59528 9.95496H10.3953C10.6203 9.95496 10.8303 10.0825 10.9278 10.285C11.0328 10.4875 11.0103 10.7275 10.8753 10.9075L8.47528 14.2075C8.36278 14.365 8.18278 14.455 7.98778 14.455H8.00278Z';
|
|
1192
|
+
const INACTIVE = '#99A5BB';
|
|
1193
|
+
const ACTIVE = '#2A303D';
|
|
1194
|
+
unsafeRegisterIcon('sort', {
|
|
1192
1195
|
ltr: false,
|
|
1193
1196
|
collection: 'lx-th-icons',
|
|
1194
1197
|
packageName: '@leanix/components',
|
|
1195
1198
|
viewBox: '0 0 16 16',
|
|
1196
|
-
|
|
1197
|
-
strings: [
|
|
1198
|
-
'<path d="M8.00278 2C8.19778 2 8.37778 2.09 8.49028 2.2475L10.8903 5.5475C11.0253 5.7275 11.0403 5.975 10.9428 6.17C10.8378 6.3725 10.6353 6.5 10.4103 6.5L5.61028 6.5C5.38528 6.5 5.17528 6.3725 5.07778 6.17C4.97278 5.9675 4.99528 5.7275 5.13028 5.5475L7.53028 2.2475C7.64278 2.09 7.82278 2 8.01778 2H8.00278Z" fill="#99A5BB"/>',
|
|
1199
|
-
'<path d="M8.00278 14.455C7.80778 14.455 7.62778 14.365 7.51528 14.2075L5.11528 10.9075C4.98028 10.7275 4.96528 10.48 5.06278 10.285C5.16778 10.0825 5.37028 9.95496 5.59528 9.95496H10.3953C10.6203 9.95496 10.8303 10.0825 10.9278 10.285C11.0328 10.4875 11.0103 10.7275 10.8753 10.9075L8.47528 14.2075C8.36278 14.365 8.18278 14.455 7.98778 14.455H8.00278Z" fill="#99A5BB"/>'
|
|
1200
|
-
]
|
|
1201
|
-
})
|
|
1199
|
+
customTemplateAsString: `<path d="${SORT_UP_PATH}" fill="${INACTIVE}"/><path d="${SORT_DOWN_PATH}" fill="${INACTIVE}"/>`
|
|
1202
1200
|
});
|
|
1203
|
-
|
|
1204
|
-
pathData: '',
|
|
1201
|
+
unsafeRegisterIcon('sort-desc', {
|
|
1205
1202
|
ltr: false,
|
|
1206
1203
|
collection: 'lx-th-icons',
|
|
1207
1204
|
packageName: '@leanix/components',
|
|
1208
1205
|
viewBox: '0 0 16 16',
|
|
1209
|
-
|
|
1210
|
-
strings: [
|
|
1211
|
-
'<path d="M8.00278 2C8.19778 2 8.37778 2.09 8.49028 2.2475L10.8903 5.5475C11.0253 5.7275 11.0403 5.975 10.9428 6.17C10.8378 6.3725 10.6353 6.5 10.4103 6.5L5.61028 6.5C5.38528 6.5 5.17528 6.3725 5.07778 6.17C4.97278 5.9675 4.99528 5.7275 5.13028 5.5475L7.53028 2.2475C7.64278 2.09 7.82278 2 8.01778 2H8.00278Z" fill="#99A5BB"/>',
|
|
1212
|
-
'<path d="M8.00278 14.455C7.80778 14.455 7.62778 14.365 7.51528 14.2075L5.11528 10.9075C4.98028 10.7275 4.96528 10.48 5.06278 10.285C5.16778 10.0825 5.37028 9.95496 5.59528 9.95496H10.3953C10.6203 9.95496 10.8303 10.0825 10.9278 10.285C11.0328 10.4875 11.0103 10.7275 10.8753 10.9075L8.47528 14.2075C8.36278 14.365 8.18278 14.455 7.98778 14.455H8.00278Z" fill="#2A303D"/>'
|
|
1213
|
-
]
|
|
1214
|
-
})
|
|
1206
|
+
customTemplateAsString: `<path d="${SORT_UP_PATH}" fill="${INACTIVE}"/><path d="${SORT_DOWN_PATH}" fill="${ACTIVE}"/>`
|
|
1215
1207
|
});
|
|
1216
|
-
|
|
1217
|
-
pathData: '',
|
|
1208
|
+
unsafeRegisterIcon('sort-asc', {
|
|
1218
1209
|
ltr: false,
|
|
1219
1210
|
collection: 'lx-th-icons',
|
|
1220
1211
|
packageName: '@leanix/components',
|
|
1221
1212
|
viewBox: '0 0 16 16',
|
|
1222
|
-
|
|
1223
|
-
strings: [
|
|
1224
|
-
'<path d="M8.00278 2C8.19778 2 8.37778 2.09 8.49028 2.2475L10.8903 5.5475C11.0253 5.7275 11.0403 5.975 10.9428 6.17C10.8378 6.3725 10.6353 6.5 10.4103 6.5L5.61028 6.5C5.38528 6.5 5.17528 6.3725 5.07778 6.17C4.97278 5.9675 4.99528 5.7275 5.13028 5.5475L7.53028 2.2475C7.64278 2.09 7.82278 2 8.01778 2H8.00278Z" fill="#2A303D"/>',
|
|
1225
|
-
'<path d="M8.00278 14.455C7.80778 14.455 7.62778 14.365 7.51528 14.2075L5.11528 10.9075C4.98028 10.7275 4.96528 10.48 5.06278 10.285C5.16778 10.0825 5.37028 9.95496 5.59528 9.95496H10.3953C10.6203 9.95496 10.8303 10.0825 10.9278 10.285C11.0328 10.4875 11.0103 10.7275 10.8753 10.9075L8.47528 14.2075C8.36278 14.365 8.18278 14.455 7.98778 14.455H8.00278Z" fill="#99A5BB"/>'
|
|
1226
|
-
]
|
|
1227
|
-
})
|
|
1213
|
+
customTemplateAsString: `<path d="${SORT_UP_PATH}" fill="${ACTIVE}"/><path d="${SORT_DOWN_PATH}" fill="${INACTIVE}"/>`
|
|
1228
1214
|
});
|
|
1229
1215
|
/**
|
|
1230
1216
|
* The `lx-th` can be used in combination with `lx-table` to implement sortable `<table>` elements.
|