@ethlete/cdk 5.0.0-next.36 → 5.0.0-next.38

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.
@@ -1,3 +1,4 @@
1
+ import { COMPONENTS_CLASSES } from './components-classes.js';
1
2
  import { LEGACY_SPINNER_COLOR_VARIABLE, LEGACY_SPINNER_TAG, lineOfIndex, PICTURE_TAG, SPINNER_TAG, } from './templates.js';
2
3
  export const DOCS_BASE_URL = 'https://ethlete-sdk-docs.web.app';
3
4
  export const createEmptyReport = () => ({
@@ -7,13 +8,40 @@ export const createEmptyReport = () => ({
7
8
  spinnerModeBindings: [],
8
9
  judgmentSymbols: new Map(),
9
10
  gatedSymbols: new Map(),
11
+ unknownStyleClasses: new Map(),
12
+ reactiveFormControls: new Map(),
10
13
  });
11
14
  export const isReportEmpty = (report) => report.picturesWithoutAlt.length === 0 &&
12
15
  report.pictureClassInputs.length === 0 &&
13
16
  report.themedSpinners.length === 0 &&
14
17
  report.spinnerModeBindings.length === 0 &&
15
18
  report.judgmentSymbols.size === 0 &&
16
- report.gatedSymbols.size === 0;
19
+ report.gatedSymbols.size === 0 &&
20
+ report.unknownStyleClasses.size === 0 &&
21
+ report.reactiveFormControls.size === 0;
22
+ const FORM_CONTROL_TAGS = [
23
+ 'et-checkbox',
24
+ 'et-checkbox-group',
25
+ 'et-color-input',
26
+ 'et-combobox',
27
+ 'et-date-input',
28
+ 'et-date-time-input',
29
+ 'et-email-input',
30
+ 'et-native-select',
31
+ 'et-number-input',
32
+ 'et-password-input',
33
+ 'et-radio-group',
34
+ 'et-search-input',
35
+ 'et-segmented-button-group',
36
+ 'et-select',
37
+ 'et-slide-toggle',
38
+ 'et-slider',
39
+ 'et-tel-input',
40
+ 'et-text-input',
41
+ 'et-textarea-input',
42
+ 'et-time-input',
43
+ ];
44
+ const REACTIVE_FORM_BINDING = /\s\[?(formControl|formControlName|formGroup)\]?(?=[\s=/>])/;
17
45
  const PICTURE_CLASS_INPUTS = ['imgClass', 'figureClass', 'pictureClass', 'figcaptionClass'];
18
46
  const VARIANT_PREFIX = /^([\w-]+:)+/;
19
47
  const INDEFINITE_SIZES = new Set(['auto', 'min', 'max', 'fit']);
@@ -101,6 +129,16 @@ export const scanTemplate = (report, template, { file, startLine }) => {
101
129
  match = attributePattern.exec(tag);
102
130
  }
103
131
  });
132
+ for (const tagName of FORM_CONTROL_TAGS) {
133
+ forEachOpeningTag(template, tagName, (tag, index) => {
134
+ const binding = REACTIVE_FORM_BINDING.exec(tag);
135
+ if (!binding)
136
+ return;
137
+ const sites = report.reactiveFormControls.get(tagName) ?? [];
138
+ sites.push({ file, line: lineAt(index), detail: `\`${binding[1]}\`` });
139
+ report.reactiveFormControls.set(tagName, sites);
140
+ });
141
+ }
104
142
  for (const tagName of [SPINNER_TAG, LEGACY_SPINNER_TAG]) {
105
143
  forEachOpeningTag(template, tagName, (tag, index) => {
106
144
  if (/\s\[mode\]\s*=/.test(tag) && !/\s\[mode\]\s*=\s*(["'])'(in)?determinate'\1/.test(tag)) {
@@ -109,8 +147,28 @@ export const scanTemplate = (report, template, { file, startLine }) => {
109
147
  });
110
148
  }
111
149
  };
150
+ const blankOut = (match) => match.replace(/[^\n]/g, ' ');
151
+ export const collectEtClasses = (styles) => {
152
+ const code = styles.replace(/\/\*[\s\S]*?\*\/|\/\/[^\n]*|"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'/g, blankOut);
153
+ const pattern = /(?<![\w-])\.(et-[\w-]+)/g;
154
+ const classes = [];
155
+ let match = pattern.exec(code);
156
+ while (match) {
157
+ classes.push({ name: match[1], index: match.index });
158
+ match = pattern.exec(code);
159
+ }
160
+ return classes;
161
+ };
162
+ const KNOWN_COMPONENTS_CLASSES = new Set(COMPONENTS_CLASSES);
112
163
  export const scanStyleSheet = (report, styles, { file, startLine }) => {
113
164
  const lineAt = (index) => startLine + lineOfIndex(styles, index) - 1;
165
+ for (const { name, index } of collectEtClasses(styles)) {
166
+ if (KNOWN_COMPONENTS_CLASSES.has(name))
167
+ continue;
168
+ const sites = report.unknownStyleClasses.get(name) ?? [];
169
+ sites.push({ file, line: lineAt(index) });
170
+ report.unknownStyleClasses.set(name, sites);
171
+ }
114
172
  const variablePattern = new RegExp(`${LEGACY_SPINNER_COLOR_VARIABLE}(-\\d+)?`, 'g');
115
173
  let variableMatch = variablePattern.exec(styles);
116
174
  while (variableMatch) {
@@ -168,6 +226,16 @@ const renderPictureClassGroup = (sites, heading, guidance) => {
168
226
  '',
169
227
  ];
170
228
  };
229
+ const styleClassGroup = (name) => name.replace(/^et-/, '').split(/-/)[0] ?? name;
230
+ const renderUnknownStyleClasses = (classes) => {
231
+ const groups = new Map();
232
+ for (const name of [...classes.keys()].sort()) {
233
+ const group = styleClassGroup(name);
234
+ const sites = classes.get(name).map((site) => `\`${site.file}:${site.line}\``);
235
+ groups.set(group, [...(groups.get(group) ?? []), `- \`.${name}\` - ${sites.join(', ')}`]);
236
+ }
237
+ return [...groups.entries()].flatMap(([group, lines]) => [`### \`et-${group}\``, '', ...lines, '']);
238
+ };
171
239
  export const renderReport = (report, context) => {
172
240
  const pictureClassSites = report.pictureClassInputs;
173
241
  const fitSites = pictureClassSites.filter((site) => site.input === 'imgClass' && site.mode === 'fit');
@@ -214,8 +282,8 @@ export const renderReport = (report, context) => {
214
282
  ? [
215
283
  '## Spinner `[mode]` bindings',
216
284
  '',
217
- 'A bound `mode` cannot be rewritten mechanically. `mode` split into the `determinate` boolean, so',
218
- '`[mode]="expr"` becomes `[determinate]="expr === \'determinate\'"` (or whatever the expression meant).',
285
+ 'A bound `mode` cannot be rewritten mechanically. The spinner is determinate while `value` is bound, so',
286
+ '`[mode]="expr" [value]="v"` becomes `[value]="expr === \'determinate\' ? v : undefined"`.',
219
287
  '',
220
288
  ...renderSites(report.spinnerModeBindings),
221
289
  '',
@@ -274,6 +342,33 @@ export const renderReport = (report, context) => {
274
342
  }),
275
343
  ]
276
344
  : []),
345
+ ...(report.reactiveFormControls.size > 0
346
+ ? [
347
+ '## Form controls that need signal forms first',
348
+ '',
349
+ 'The components form controls bind through signal forms (`[formField]`) and have no ControlValueAccessor,',
350
+ 'so these cdk controls, still bound through reactive forms, stay on `@ethlete/cdk` until their form moves',
351
+ `to signal forms. See ${DOCS_BASE_URL}/cdk/migration.`,
352
+ '',
353
+ ...[...report.reactiveFormControls.entries()].flatMap(([tagName, sites]) => [
354
+ `### \`<${tagName}>\``,
355
+ '',
356
+ ...renderSites(sites),
357
+ '',
358
+ ]),
359
+ ]
360
+ : []),
361
+ ...(report.unknownStyleClasses.size > 0
362
+ ? [
363
+ '## Stylesheet selectors no components class matches',
364
+ '',
365
+ 'These `.et-*` selectors restyle a cdk class that no `@ethlete/components` stylesheet defines, so after the',
366
+ "move they match nothing. Restyle through the successor's tokens and CSS variables instead (each component",
367
+ `guide has a Theming section). See ${DOCS_BASE_URL}/cdk/migration#your-cdk-styles.`,
368
+ '',
369
+ ...renderUnknownStyleClasses(report.unknownStyleClasses),
370
+ ]
371
+ : []),
277
372
  ].join('\n');
278
373
  };
279
374
  //# sourceMappingURL=report.js.map
@@ -65,11 +65,10 @@ const rewriteSkeletonItems = (template) => mapOpeningTags(template, SKELETON_ITE
65
65
  const rewriteSpinnerTags = (template) => template
66
66
  .replace(new RegExp(`<${LEGACY_SPINNER_TAG}(?=[\\s/>])`, 'g'), `<${SPINNER_TAG}`)
67
67
  .replace(new RegExp(`</${LEGACY_SPINNER_TAG}\\s*>`, 'g'), `</${SPINNER_TAG}>`);
68
- const rewriteSpinnerAttributes = (template) => mapOpeningTags(template, SPINNER_TAG, (tag) => tag
69
- .replace(/\smode\s*=\s*(["'])indeterminate\1/g, '')
70
- .replace(/\s\[mode\]\s*=\s*(["'])'indeterminate'\1/g, '')
71
- .replace(/\smode\s*=\s*(["'])determinate\1/g, ' [determinate]="true"')
72
- .replace(/\s\[mode\]\s*=\s*(["'])'determinate'\1/g, ' [determinate]="true"')
68
+ const INDETERMINATE_MODE = /\s(?:mode\s*=\s*(["'])indeterminate\1|\[mode\]\s*=\s*(["'])'indeterminate'\2)/;
69
+ const rewriteSpinnerAttributes = (template) => mapOpeningTags(template, SPINNER_TAG, (tag) => (INDETERMINATE_MODE.test(tag) ? tag.replace(/\s(?:\[value\]|bind-value|value)\s*=\s*("[^"]*"|'[^']*')/g, '') : tag)
70
+ .replace(/\smode\s*=\s*(["'])(in)?determinate\1/g, '')
71
+ .replace(/\s\[mode\]\s*=\s*(["'])'(in)?determinate'\1/g, '')
73
72
  .replace(/(\s)\[renderBackground\]/g, '$1[track]')
74
73
  .replace(/(\s)renderBackground(?=[\s=/>])/g, '$1track')
75
74
  .replace(/\s\[?multiColor\]?\s*=\s*("[^"]*"|'[^']*')/g, '')
@@ -642,7 +642,7 @@
642
642
  },
643
643
  "ConnectedMatches": {
644
644
  "kind": "removed",
645
- "note": "internal to the legacy renderer’s connector drawing"
645
+ "note": "internal to the legacy renderer\u2019s connector drawing"
646
646
  },
647
647
  "CreateFormChangesTrackerConfig": {
648
648
  "docs": "/core/utilities",
@@ -692,9 +692,9 @@
692
692
  },
693
693
  "DATE_TIME_INPUT_FORMAT_TOKEN": {
694
694
  "docs": "/components/date-time-inputs",
695
- "kind": "replaced-by",
695
+ "kind": "rename",
696
696
  "package": "@ethlete/components",
697
- "to": "DATE_FORMAT"
697
+ "to": "DATE_TIME_FORMAT"
698
698
  },
699
699
  "DATE_TIME_INPUT_TOKEN": {
700
700
  "kind": "removed",
@@ -702,11 +702,11 @@
702
702
  },
703
703
  "DEFAULT_DATE_INPUT_FORMAT": {
704
704
  "kind": "removed",
705
- "note": "the DATE_FORMAT token defaults to the same ISO format"
705
+ "note": "the DATE_FORMAT token defaults to yyyy-MM-dd"
706
706
  },
707
707
  "DEFAULT_DATE_TIME_INPUT_FORMAT": {
708
708
  "kind": "removed",
709
- "note": "the DATE_FORMAT token defaults to the same ISO format"
709
+ "note": "the DATE_TIME_FORMAT token defaults to the same ISO format"
710
710
  },
711
711
  "DEFAULT_TIME_INPUT_FORMAT": {
712
712
  "kind": "removed",
@@ -804,7 +804,7 @@
804
804
  },
805
805
  "EXPOSE_INPUT_VARS_TOKEN": {
806
806
  "kind": "removed",
807
- "note": "read the control state from the field’s own signals"
807
+ "note": "read the control state from the field\u2019s own signals"
808
808
  },
809
809
  "EmailInputComponent": {
810
810
  "docs": "/components/text-inputs",
@@ -829,11 +829,11 @@
829
829
  },
830
830
  "ExposeInputVarsContext": {
831
831
  "kind": "removed",
832
- "note": "read the control state from the field’s own signals"
832
+ "note": "read the control state from the field\u2019s own signals"
833
833
  },
834
834
  "ExposeInputVarsDirective": {
835
835
  "kind": "removed",
836
- "note": "read the control state from the field’s own signals"
836
+ "note": "read the control state from the field\u2019s own signals"
837
837
  },
838
838
  "FILTER_OVERLAY_CONFIG": {
839
839
  "docs": "/components/filter-overlay",
@@ -874,7 +874,7 @@
874
874
  },
875
875
  "FocusElementRegistryEntry": {
876
876
  "kind": "removed",
877
- "note": "the overlay runtime restores focus itself; @ethlete/core’s setupFocusTrap / applyInitialFocus cover manual cases"
877
+ "note": "the overlay runtime restores focus itself; @ethlete/core\u2019s setupFocusTrap / applyInitialFocus cover manual cases"
878
878
  },
879
879
  "FooterCellDefDirective": {
880
880
  "docs": "/components/table",
@@ -917,16 +917,12 @@
917
917
  "note": "signal forms hold group state in the schema"
918
918
  },
919
919
  "FullscreenAnimationDeps": {
920
- "docs": "/components/overlays",
921
- "kind": "move",
922
- "package": "@ethlete/components",
923
- "to": "FullscreenAnimationDeps"
920
+ "kind": "removed",
921
+ "note": "internal to the full-screen overlay strategy, no longer exported from @ethlete/components"
924
922
  },
925
923
  "FullscreenAnimationState": {
926
- "docs": "/components/overlays",
927
- "kind": "move",
928
- "package": "@ethlete/components",
929
- "to": "FullscreenAnimationState"
924
+ "kind": "removed",
925
+ "note": "internal to the full-screen overlay strategy, no longer exported from @ethlete/components"
930
926
  },
931
927
  "HeaderCellDefDirective": {
932
928
  "docs": "/components/table",
@@ -1003,11 +999,11 @@
1003
999
  },
1004
1000
  "IfInputEmptyDirective": {
1005
1001
  "kind": "removed",
1006
- "note": "bind on the control’s own signals"
1002
+ "note": "bind on the control\u2019s own signals"
1007
1003
  },
1008
1004
  "IfInputFilledDirective": {
1009
1005
  "kind": "removed",
1010
- "note": "bind on the control’s own signals"
1006
+ "note": "bind on the control\u2019s own signals"
1011
1007
  },
1012
1008
  "IfSupportsShowPickerDirective": {
1013
1009
  "kind": "removed",
@@ -1606,7 +1602,7 @@
1606
1602
  "OverlayConfig": {
1607
1603
  "docs": "/components/overlays",
1608
1604
  "kind": "reshape",
1609
- "note": "config merges definition → opener → open",
1605
+ "note": "config merges definition \u2192 opener \u2192 open",
1610
1606
  "package": "@ethlete/components",
1611
1607
  "to": "OverlayConfig"
1612
1608
  },
@@ -1958,7 +1954,7 @@
1958
1954
  "ProgressSpinnerComponent": {
1959
1955
  "docs": "/components/loader",
1960
1956
  "kind": "rename+reshape",
1961
- "note": "the mode input splits into a determinate boolean, renderBackground becomes track, multiColor is gone, and the default color is currentColor - set color for a theme",
1957
+ "note": "the mode input is gone - a bound value makes it determinate, an unbound one indeterminate; renderBackground becomes track, multiColor is gone, and the default color is currentColor - set color for a theme",
1962
1958
  "package": "@ethlete/components",
1963
1959
  "since": "1.0.0-next.34",
1964
1960
  "to": "SpinnerComponent"
@@ -1969,7 +1965,7 @@
1969
1965
  },
1970
1966
  "ProgressSpinnerMode": {
1971
1967
  "kind": "removed",
1972
- "note": "determinate is a boolean input"
1968
+ "note": "a bound value makes the spinner determinate"
1973
1969
  },
1974
1970
  "QUERY_ERROR_TOKEN": {
1975
1971
  "docs": "/components/query-error",
@@ -1978,18 +1974,18 @@
1978
1974
  "to": "QUERY_ERROR_TOKEN"
1979
1975
  },
1980
1976
  "QueryButtonComponent": {
1981
- "docs": "/components/button",
1977
+ "docs": "/components/button#query-button",
1982
1978
  "kind": "replaced-by",
1983
- "note": "bind the query state to the button’s loading input; no one-second success/failure flash",
1979
+ "note": "[etQueryButton] on an et-button; loading and progress only, no one-second success/failure flash; wrap a legacy query or collection with queryButtonSourceFromV2Query(query), which needs an injection context (a field initializer or the constructor)",
1984
1980
  "package": "@ethlete/components",
1985
- "to": "ButtonComponent"
1981
+ "to": "QueryButtonDirective"
1986
1982
  },
1987
1983
  "QueryButtonDirective": {
1988
- "docs": "/components/button",
1984
+ "docs": "/components/button#query-button",
1989
1985
  "kind": "replaced-by",
1990
- "note": "bind the query state to the button’s loading input; no one-second success/failure flash",
1986
+ "note": "[etQueryButton] on a button; loading and progress only, no one-second success/failure flash; queryButtonSourceFromV2Query for a legacy query",
1991
1987
  "package": "@ethlete/components",
1992
- "to": "ButtonDirective"
1988
+ "to": "QueryButtonDirective"
1993
1989
  },
1994
1990
  "QueryErrorComponent": {
1995
1991
  "docs": "/components/query-error",
@@ -2817,14 +2813,14 @@
2817
2813
  "TableBusyDirective": {
2818
2814
  "docs": "/components/table",
2819
2815
  "kind": "replaced-by",
2820
- "note": "[loading] / [error] take a query’s signals, with placeholder rows and a refetch bar",
2816
+ "note": "[loading] / [error] take a query\u2019s signals, with placeholder rows and a refetch bar",
2821
2817
  "package": "@ethlete/components",
2822
2818
  "to": "TableComponent"
2823
2819
  },
2824
2820
  "TableBusyOutletDirective": {
2825
2821
  "docs": "/components/table",
2826
2822
  "kind": "replaced-by",
2827
- "note": "[loading] / [error] take a query’s signals, with placeholder rows and a refetch bar",
2823
+ "note": "[loading] / [error] take a query\u2019s signals, with placeholder rows and a refetch bar",
2828
2824
  "package": "@ethlete/components",
2829
2825
  "to": "TableComponent"
2830
2826
  },
@@ -2838,7 +2834,7 @@
2838
2834
  "TableDataSource": {
2839
2835
  "docs": "/components/table",
2840
2836
  "kind": "replaced-by",
2841
- "note": "the table’s own client mode, the exported sortRows() helper and the opt-in filter menus",
2837
+ "note": "the table\u2019s own client mode, the exported sortRows() helper and the opt-in filter menus",
2842
2838
  "package": "@ethlete/components",
2843
2839
  "to": "TableComponent"
2844
2840
  },
@@ -2993,10 +2989,8 @@
2993
2989
  "note": "validation errors come from the signal-forms schema"
2994
2990
  },
2995
2991
  "ViewportTransformData": {
2996
- "docs": "/components/overlays",
2997
- "kind": "move",
2998
- "package": "@ethlete/components",
2999
- "to": "ViewportTransformData"
2992
+ "kind": "removed",
2993
+ "note": "internal to the full-screen overlay strategy, no longer exported from @ethlete/components"
3000
2994
  },
3001
2995
  "WRITEABLE_INPUT_TOKEN": {
3002
2996
  "kind": "removed",
@@ -3023,10 +3017,8 @@
3023
3017
  "note": "internal to the cdk underline implementation"
3024
3018
  },
3025
3019
  "abortFullscreenAnimation": {
3026
- "docs": "/components/overlays",
3027
- "kind": "move",
3028
- "package": "@ethlete/components",
3029
- "to": "abortFullscreenAnimation"
3020
+ "kind": "removed",
3021
+ "note": "internal to the full-screen overlay strategy, no longer exported from @ethlete/components"
3030
3022
  },
3031
3023
  "anchoredDialogOverlayStrategy": {
3032
3024
  "docs": "/components/overlays",
@@ -3041,16 +3033,12 @@
3041
3033
  "to": "bottomSheetOverlayStrategy"
3042
3034
  },
3043
3035
  "cleanupFullscreenAnimation": {
3044
- "docs": "/components/overlays",
3045
- "kind": "move",
3046
- "package": "@ethlete/components",
3047
- "to": "cleanupFullscreenAnimation"
3036
+ "kind": "removed",
3037
+ "note": "internal to the full-screen overlay strategy, no longer exported from @ethlete/components"
3048
3038
  },
3049
3039
  "cleanupFullscreenAnimationStyles": {
3050
- "docs": "/components/overlays",
3051
- "kind": "move",
3052
- "package": "@ethlete/components",
3053
- "to": "cleanupFullscreenAnimationStyles"
3040
+ "kind": "removed",
3041
+ "note": "internal to the full-screen overlay strategy, no longer exported from @ethlete/components"
3054
3042
  },
3055
3043
  "createBracketConfig": {
3056
3044
  "kind": "removed",
@@ -3084,14 +3072,14 @@
3084
3072
  "createOverlayHandler": {
3085
3073
  "docs": "/components/overlay-openers",
3086
3074
  "kind": "rename+reshape",
3087
- "note": "no longer a factory returning a factory; config merges definition → opener → open",
3075
+ "note": "no longer a factory returning a factory; config merges definition \u2192 opener \u2192 open",
3088
3076
  "package": "@ethlete/components",
3089
3077
  "to": "defineOverlay"
3090
3078
  },
3091
3079
  "createOverlayHandlerWithQueryParamLifecycle": {
3092
3080
  "docs": "/components/overlay-openers",
3093
3081
  "kind": "rename+reshape",
3094
- "note": "no longer a factory returning a factory; config merges definition → opener → open",
3082
+ "note": "no longer a factory returning a factory; config merges definition \u2192 opener \u2192 open",
3095
3083
  "package": "@ethlete/components",
3096
3084
  "to": "defineQueryParamOverlay"
3097
3085
  },
@@ -3206,7 +3194,7 @@
3206
3194
  },
3207
3195
  "injectFocusRegistry": {
3208
3196
  "kind": "removed",
3209
- "note": "the overlay runtime restores focus itself; @ethlete/core’s setupFocusTrap / applyInitialFocus cover manual cases"
3197
+ "note": "the overlay runtime restores focus itself; @ethlete/core\u2019s setupFocusTrap / applyInitialFocus cover manual cases"
3210
3198
  },
3211
3199
  "injectFullscreenDialogStrategy": {
3212
3200
  "docs": "/components/overlays",
@@ -3420,10 +3408,10 @@
3420
3408
  },
3421
3409
  "provideDateTimeFormat": {
3422
3410
  "docs": "/components/date-time-inputs",
3423
- "kind": "replaced-by",
3424
- "note": "date-time controls read the DATE_FORMAT wire format",
3411
+ "kind": "move",
3425
3412
  "package": "@ethlete/components",
3426
- "to": "provideDateFormat"
3413
+ "signatureUnchanged": true,
3414
+ "to": "provideDateTimeFormat"
3427
3415
  },
3428
3416
  "provideDialogStrategy": {
3429
3417
  "docs": "/components/overlays",
@@ -3445,7 +3433,7 @@
3445
3433
  },
3446
3434
  "provideFocusRegistry": {
3447
3435
  "kind": "removed",
3448
- "note": "the overlay runtime restores focus itself; @ethlete/core’s setupFocusTrap / applyInitialFocus cover manual cases"
3436
+ "note": "the overlay runtime restores focus itself; @ethlete/core\u2019s setupFocusTrap / applyInitialFocus cover manual cases"
3449
3437
  },
3450
3438
  "provideFullscreenDialogStrategy": {
3451
3439
  "docs": "/components/overlays",
@@ -3585,16 +3573,12 @@
3585
3573
  "to": "FloatingActionState"
3586
3574
  },
3587
3575
  "startFullscreenEnterAnimation": {
3588
- "docs": "/components/overlays",
3589
- "kind": "move",
3590
- "package": "@ethlete/components",
3591
- "to": "startFullscreenEnterAnimation"
3576
+ "kind": "removed",
3577
+ "note": "internal to the full-screen overlay strategy, no longer exported from @ethlete/components"
3592
3578
  },
3593
3579
  "startFullscreenLeaveAnimation": {
3594
- "docs": "/components/overlays",
3595
- "kind": "move",
3596
- "package": "@ethlete/components",
3597
- "to": "startFullscreenLeaveAnimation"
3580
+ "kind": "removed",
3581
+ "note": "internal to the full-screen overlay strategy, no longer exported from @ethlete/components"
3598
3582
  },
3599
3583
  "subsetMatchOptions": {
3600
3584
  "kind": "removed",
package/migrations.json CHANGED
@@ -4,6 +4,7 @@
4
4
  "name": "to-v5",
5
5
  "version": "5.0.0-beta.12",
6
6
  "kind": "auto",
7
+ "level": "required",
7
8
  "description": "Rewrite the v4 cdk API into its v5 shape.",
8
9
  "generator": "@ethlete/cdk:migrate-to-v5",
9
10
  "docs": "/cdk/migration"
@@ -12,6 +13,7 @@
12
13
  "name": "from-cdk",
13
14
  "version": "5.0.0-next.25",
14
15
  "kind": "auto",
16
+ "level": "optional",
15
17
  "description": "Rewrite the mechanical part of the move off @ethlete/cdk, and write migrate-from-cdk-tasks.md for the rest.",
16
18
  "generator": "@ethlete/cdk:migrate-from-cdk",
17
19
  "docs": "/cdk/migration"
@@ -20,6 +22,7 @@
20
22
  "name": "from-cdk-decisions",
21
23
  "version": "5.0.0-next.25",
22
24
  "kind": "assisted",
25
+ "level": "optional",
23
26
  "description": "Work through migrate-from-cdk-tasks.md: the call sites whose successor API behaves differently.",
24
27
  "instructions": "./migrations/from-cdk-decisions.md",
25
28
  "docs": "/cdk/migration"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/cdk",
3
- "version": "5.0.0-next.36",
3
+ "version": "5.0.0-next.38",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -17,35 +17,27 @@
17
17
  }
18
18
  },
19
19
  "peerDependencies": {
20
- "@analogjs/vite-plugin-angular": "2.6.3",
21
- "@angular/cdk": "22.1.6",
22
- "@angular/common": "22.1.6",
23
- "@angular/core": "22.1.6",
24
- "@angular/forms": "22.1.6",
25
- "@angular/platform-browser": "22.1.6",
26
- "@angular/router": "22.1.6",
20
+ "@angular/cdk": "^22.1.0",
21
+ "@angular/common": "^22.1.0",
22
+ "@angular/core": "^22.1.0",
23
+ "@angular/forms": "^22.1.0",
24
+ "@angular/platform-browser": "^22.1.0",
25
+ "@angular/router": "^22.1.0",
27
26
  "@ethlete/core": "^5.0.0-beta.11",
28
27
  "@ethlete/query": "^6.0.0-beta.8",
29
28
  "@ethlete/types": "^2.0.0-beta.4",
30
- "@floating-ui/dom": "1.8.0",
31
- "@nx/devkit": "23.1.0",
32
- "date-fns": "4.4.0",
33
- "rxjs": "7.8.2",
34
- "typescript": "6.0.3",
35
- "vite": "8.1.5"
29
+ "@floating-ui/dom": "^1.6.0",
30
+ "@nx/devkit": "^23.0.0",
31
+ "date-fns": "^4.0.0",
32
+ "rxjs": "^7.8.0",
33
+ "typescript": "^6.0.0"
36
34
  },
37
35
  "peerDependenciesMeta": {
38
- "@analogjs/vite-plugin-angular": {
39
- "optional": true
40
- },
41
36
  "@nx/devkit": {
42
37
  "optional": true
43
38
  },
44
39
  "typescript": {
45
40
  "optional": true
46
- },
47
- "vite": {
48
- "optional": true
49
41
  }
50
42
  },
51
43
  "ethlete": {
@@ -8728,7 +8728,7 @@ type OverlayConfig<D = unknown> = {
8728
8728
  restoreFocus?: boolean;
8729
8729
  /**
8730
8730
  * Whether to wait for the opening animation to finish before trapping focus.
8731
- * @default true
8731
+ * @default false
8732
8732
  */
8733
8733
  delayFocusTrap?: boolean;
8734
8734
  /**
@@ -9461,7 +9461,7 @@ type ToggletipConfig = {
9461
9461
  /**
9462
9462
  * The offset of the toggletip.
9463
9463
  * @see https://popper.js.org/docs/v2/modifiers/offset/#offset-1
9464
- * @default { mainAxis: 8, crossAxis: 8 }
9464
+ * @default 8
9465
9465
  */
9466
9466
  offset: OffsetOptions | null;
9467
9467
  /**
@@ -10448,7 +10448,7 @@ type SortHeaderArrowPosition = 'before' | 'after';
10448
10448
  type Sortable = {
10449
10449
  id: string;
10450
10450
  start: SortDirection;
10451
- disableClear: boolean;
10451
+ disableClear?: boolean;
10452
10452
  };
10453
10453
  /**
10454
10454
  * @deprecated `@ethlete/cdk` is in maintenance mode. Use the `@ethlete/components` equivalent instead - see https://ethlete-sdk-docs.web.app/cdk/migration, and run `nx g @ethlete/cdk:migrate-from-cdk` to rewrite the mechanical parts. Intent to remove in v6.
@@ -10479,7 +10479,7 @@ declare class SortDirective implements OnChanges, OnDestroy, OnInit {
10479
10479
  get direction(): SortDirection;
10480
10480
  set direction(direction: SortDirection);
10481
10481
  private _direction;
10482
- disableClear: boolean;
10482
+ disableClear?: boolean;
10483
10483
  sortControl?: FormControl<Sort | null>;
10484
10484
  sortByControl?: FormControl<string | null>;
10485
10485
  sortDirectionControl?: FormControl<SortDirection | null>;
@@ -10541,7 +10541,7 @@ declare class SortHeaderComponent implements Sortable, OnDestroy, OnInit, AfterV
10541
10541
  get sortActionDescription(): string;
10542
10542
  set sortActionDescription(value: string);
10543
10543
  private _sortActionDescription;
10544
- disableClear: boolean;
10544
+ disableClear?: boolean;
10545
10545
  get _isSorted(): boolean;
10546
10546
  get _getArrowDirectionState(): string;
10547
10547
  get _getArrowViewState(): string;