@ethlete/cdk 5.0.0-next.49 → 5.0.0-next.50

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.
@@ -159,6 +159,7 @@ export const COMPONENTS_CLASSES = [
159
159
  'et-carousel-dots',
160
160
  'et-carousel-item',
161
161
  'et-carousel-play-toggle',
162
+ 'et-carousel-play-toggle-corner',
162
163
  'et-carousel-play-toggle-icon',
163
164
  'et-carousel-slide-content',
164
165
  'et-carousel-track',
@@ -239,6 +240,8 @@ export const COMPONENTS_CLASSES = [
239
240
  'et-choice-field-control',
240
241
  'et-choice-field-control-slot',
241
242
  'et-choice-field-label-area',
243
+ 'et-collapse',
244
+ 'et-collapse-clip',
242
245
  'et-color-input-swatch',
243
246
  'et-color-input-trigger',
244
247
  'et-color-input-value',
@@ -301,7 +304,17 @@ export const COMPONENTS_CLASSES = [
301
304
  'et-description-list',
302
305
  'et-divider',
303
306
  'et-dropzone-area',
307
+ 'et-dropzone-crop',
308
+ 'et-dropzone-crop-actions',
309
+ 'et-dropzone-crop-handle',
310
+ 'et-dropzone-crop-image',
311
+ 'et-dropzone-crop-rect',
312
+ 'et-dropzone-crop-shade',
313
+ 'et-dropzone-crop-stage',
314
+ 'et-dropzone-crop-viewport',
304
315
  'et-dropzone-empty',
316
+ 'et-dropzone-entry-error',
317
+ 'et-dropzone-entry-meta',
305
318
  'et-dropzone-entry-name',
306
319
  'et-dropzone-entry-progress',
307
320
  'et-dropzone-entry-progress-inner',
@@ -350,6 +363,7 @@ export const COMPONENTS_CLASSES = [
350
363
  'et-form-field-label-area',
351
364
  'et-form-field-label-area--floating',
352
365
  'et-form-field-label-area--inline',
366
+ 'et-form-field-label-area--start',
353
367
  'et-form-field-prefix',
354
368
  'et-form-field-shell',
355
369
  'et-form-field-suffix',
@@ -485,6 +499,7 @@ export const COMPONENTS_CLASSES = [
485
499
  'et-menu-item-check',
486
500
  'et-menu-item-content',
487
501
  'et-menu-item-icon',
502
+ 'et-menu-item-loader',
488
503
  'et-menu-item-shortcut',
489
504
  'et-menu-item-submenu-icon',
490
505
  'et-menu-item-trailing',
@@ -643,6 +658,7 @@ export const COMPONENTS_CLASSES = [
643
658
  'et-pip-window__title-bar-spacer',
644
659
  'et-progress-bar',
645
660
  'et-progress-bar--indeterminate',
661
+ 'et-progress-bar--rounded-end',
646
662
  'et-progress-bar--themed',
647
663
  'et-progress-bar__bar',
648
664
  'et-progress-bar__bar--primary',
@@ -951,6 +967,11 @@ export const COMPONENTS_CLASSES = [
951
967
  'et-standings',
952
968
  'et-standings-cell',
953
969
  'et-standings-content',
970
+ 'et-standings-detail',
971
+ 'et-standings-detail--enter',
972
+ 'et-standings-detail--leave',
973
+ 'et-standings-expand-chevron',
974
+ 'et-standings-expand-toggle',
954
975
  'et-standings-form',
955
976
  'et-standings-form-result',
956
977
  'et-standings-head-row',
@@ -10,6 +10,7 @@ export const createEmptyReport = () => ({
10
10
  gatedSymbols: new Map(),
11
11
  unknownStyleClasses: new Map(),
12
12
  reactiveFormControls: new Map(),
13
+ cdkTableColumnDirectives: [],
13
14
  });
14
15
  export const isReportEmpty = (report) => report.picturesWithoutAlt.length === 0 &&
15
16
  report.pictureClassInputs.length === 0 &&
@@ -18,7 +19,8 @@ export const isReportEmpty = (report) => report.picturesWithoutAlt.length === 0
18
19
  report.judgmentSymbols.size === 0 &&
19
20
  report.gatedSymbols.size === 0 &&
20
21
  report.unknownStyleClasses.size === 0 &&
21
- report.reactiveFormControls.size === 0;
22
+ report.reactiveFormControls.size === 0 &&
23
+ report.cdkTableColumnDirectives.length === 0;
22
24
  const FORM_CONTROL_TAGS = [
23
25
  'et-checkbox',
24
26
  'et-checkbox-group',
@@ -41,6 +43,16 @@ const FORM_CONTROL_TAGS = [
41
43
  'et-textarea-input',
42
44
  'et-time-input',
43
45
  ];
46
+ const CDK_TABLE_DIRECTIVES = [
47
+ 'etColumnDef',
48
+ 'etHeaderCellDef',
49
+ 'etCellDef',
50
+ 'etFooterCellDef',
51
+ 'etHeaderRowDef',
52
+ 'etRowDef',
53
+ 'etFooterRowDef',
54
+ ];
55
+ const CDK_TABLE_DIRECTIVE = new RegExp(`[\\s*\\[](${CDK_TABLE_DIRECTIVES.join('|')})(?=[\\s=\\]/>])`, 'g');
44
56
  const REACTIVE_FORM_BINDING = /\s\[?(formControl|formControlName|formGroup)\]?(?=[\s=/>])/;
45
57
  const PICTURE_CLASS_INPUTS = ['imgClass', 'figureClass', 'pictureClass', 'figcaptionClass'];
46
58
  const VARIANT_PREFIX = /^([\w-]+:)+/;
@@ -139,6 +151,9 @@ export const scanTemplate = (report, template, { file, startLine }) => {
139
151
  report.reactiveFormControls.set(tagName, sites);
140
152
  });
141
153
  }
154
+ for (const match of template.matchAll(CDK_TABLE_DIRECTIVE)) {
155
+ report.cdkTableColumnDirectives.push({ file, line: lineAt(match.index), detail: `\`${match[1]}\`` });
156
+ }
142
157
  for (const tagName of [SPINNER_TAG, LEGACY_SPINNER_TAG]) {
143
158
  forEachOpeningTag(template, tagName, (tag, index) => {
144
159
  if (/\s\[mode\]\s*=/.test(tag) && !/\s\[mode\]\s*=\s*(["'])'(in)?determinate'\1/.test(tag)) {
@@ -358,6 +373,18 @@ export const renderReport = (report, context) => {
358
373
  ]),
359
374
  ]
360
375
  : []),
376
+ ...(report.cdkTableColumnDirectives.length > 0
377
+ ? [
378
+ '## cdk table column markup',
379
+ '',
380
+ 'The cdk column directives compile inside `<et-table>` but render nothing. Declare the columns as one typed',
381
+ '`TableColumns<Row>` bound to `[columns]` instead; a custom cell is an `etTableCell` template and a custom',
382
+ `header an \`etTableHeaderCell\` template. See ${DOCS_BASE_URL}/cdk/migration#table-column-markup.`,
383
+ '',
384
+ ...renderSites(report.cdkTableColumnDirectives),
385
+ '',
386
+ ]
387
+ : []),
361
388
  ...(report.unknownStyleClasses.size > 0
362
389
  ? [
363
390
  '## Stylesheet selectors no components class matches',
@@ -2551,7 +2551,7 @@
2551
2551
  "SkeletonComponent": {
2552
2552
  "docs": "/components/skeleton",
2553
2553
  "kind": "move",
2554
- "note": "loadingAllyText and animated carry over; colors come from the surface tokens and et-skeleton-text renders a paragraph of lines",
2554
+ "note": "loadingAllyText becomes labels; animated carries over; colors come from the surface tokens and et-skeleton-text renders a paragraph of lines",
2555
2555
  "package": "@ethlete/components",
2556
2556
  "to": "SkeletonComponent"
2557
2557
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/cdk",
3
- "version": "5.0.0-next.49",
3
+ "version": "5.0.0-next.50",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/ethlete-io/ethdk",
@@ -4441,6 +4441,12 @@ export declare class NewBracketComponent<TRoundData = unknown, TMatchData = unkn
4441
4441
  columnGap: import("@angular/core").InputSignalWithTransform<number, unknown>;
4442
4442
  rowGap: import("@angular/core").InputSignalWithTransform<number, unknown>;
4443
4443
  rowRoundGap: import("@angular/core").InputSignalWithTransform<number, unknown>;
4444
+ /**
4445
+ * Single elimination only. How far below the top of the final's card the third place match sits, in px.
4446
+ * The third place then shares the final's column. `null` gives it a column of its own, except in a
4447
+ * mirrored layout, which always folds it one `rowGap` below the final's card.
4448
+ */
4449
+ thirdPlaceTopOffset: import("@angular/core").InputSignalWithTransform<number | null, string | number | null | undefined>;
4444
4450
  lineStartingCurveAmount: import("@angular/core").InputSignalWithTransform<number, unknown>;
4445
4451
  lineEndingCurveAmount: import("@angular/core").InputSignalWithTransform<number, unknown>;
4446
4452
  lineWidth: import("@angular/core").InputSignalWithTransform<number, unknown>;
@@ -4519,6 +4525,11 @@ export declare class NewBracketComponent<TRoundData = unknown, TMatchData = unkn
4519
4525
  "required": false;
4520
4526
  "isSignal": true;
4521
4527
  };
4528
+ "thirdPlaceTopOffset": {
4529
+ "alias": "thirdPlaceTopOffset";
4530
+ "required": false;
4531
+ "isSignal": true;
4532
+ };
4522
4533
  "lineStartingCurveAmount": {
4523
4534
  "alias": "lineStartingCurveAmount";
4524
4535
  "required": false;
@@ -4650,6 +4661,8 @@ export type NewBracketConfig<TRoundData = any, TMatchData = any> = {
4650
4661
  columnGap?: number;
4651
4662
  rowGap?: number;
4652
4663
  rowRoundGap?: number;
4664
+ /** See the `thirdPlaceTopOffset` input of `et-new-bracket`. */
4665
+ thirdPlaceTopOffset?: number | null;
4653
4666
  lineStartingCurveAmount?: number;
4654
4667
  lineEndingCurveAmount?: number;
4655
4668
  lineWidth?: number;