@leanix/components 0.4.939 → 0.4.941

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 { unsafeRegisterIcon } from '@ui5/webcomponents-base/dist/asset-registries/Icons.js';
18
+ import { registerIcon } 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,30 +1187,44 @@ 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
- 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', {
1190
+ registerIcon('sort', {
1191
+ pathData: '',
1195
1192
  ltr: false,
1196
1193
  collection: 'lx-th-icons',
1197
1194
  packageName: '@leanix/components',
1198
1195
  viewBox: '0 0 16 16',
1199
- customTemplateAsString: `<path d="${SORT_UP_PATH}" fill="${INACTIVE}"/><path d="${SORT_DOWN_PATH}" fill="${INACTIVE}"/>`
1196
+ customTemplate: () => ({
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
+ })
1200
1202
  });
1201
- unsafeRegisterIcon('sort-desc', {
1203
+ registerIcon('sort-desc', {
1204
+ pathData: '',
1202
1205
  ltr: false,
1203
1206
  collection: 'lx-th-icons',
1204
1207
  packageName: '@leanix/components',
1205
1208
  viewBox: '0 0 16 16',
1206
- customTemplateAsString: `<path d="${SORT_UP_PATH}" fill="${INACTIVE}"/><path d="${SORT_DOWN_PATH}" fill="${ACTIVE}"/>`
1209
+ customTemplate: () => ({
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
+ })
1207
1215
  });
1208
- unsafeRegisterIcon('sort-asc', {
1216
+ registerIcon('sort-asc', {
1217
+ pathData: '',
1209
1218
  ltr: false,
1210
1219
  collection: 'lx-th-icons',
1211
1220
  packageName: '@leanix/components',
1212
1221
  viewBox: '0 0 16 16',
1213
- customTemplateAsString: `<path d="${SORT_UP_PATH}" fill="${ACTIVE}"/><path d="${SORT_DOWN_PATH}" fill="${INACTIVE}"/>`
1222
+ customTemplate: () => ({
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
+ })
1214
1228
  });
1215
1229
  /**
1216
1230
  * The `lx-th` can be used in combination with `lx-table` to implement sortable `<table>` elements.