@odx/foundation 1.0.0-beta.257 → 1.0.0-beta.259

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/CHANGELOG.md ADDED
@@ -0,0 +1,13 @@
1
+ ## 1.0.0-beta.259
2
+
3
+ ### Minor Changes
4
+
5
+ - Bump `@odx/design-tokens` dependency to `^3.1.0`
6
+ - Replace object and math utilities by `es-toolkit/*` equivalents
7
+ - Bump `@odx/icons` dependency to `^4.2.0`
8
+ - Use `font-size` property instead of `--size` custom property for icon sizing
9
+
10
+ ### Bug Fixes
11
+
12
+ - Fix checkbox control updated hook not calling parent hook
13
+ - Ensure context API is always used in a root context
@@ -1,3 +1,4 @@
1
+ import { SignalWatcher } from '@lit-labs/signals';
1
2
  import { CustomElement } from '../../main.js';
2
3
  import { PropertyValues, TemplateResult } from 'lit';
3
4
  import { OdxNavigationItem } from '../navigation-item/navigation-item.js';
@@ -6,10 +7,10 @@ declare global {
6
7
  'odx-anchor-navigation': OdxAnchorNavigation;
7
8
  }
8
9
  }
9
- declare const OdxAnchorNavigation_base: typeof CustomElement;
10
+ declare const OdxAnchorNavigation_base: typeof CustomElement & typeof SignalWatcher;
10
11
  export declare class OdxAnchorNavigation extends OdxAnchorNavigation_base {
11
12
  #private;
12
- readonly activeItem: import('@preact/signals-core').ReadonlySignal<OdxNavigationItem | undefined>;
13
+ readonly activeItem: import('../../main.js').ReadonlySignal<OdxNavigationItem | undefined>;
13
14
  root: Document | HTMLElement;
14
15
  rootMargin?: string;
15
16
  threshold: number;
@@ -31,6 +31,7 @@ export declare class OdxCheckbox extends OdxCheckbox_base {
31
31
  protected render(): TemplateResult;
32
32
  protected renderIndicator(icon?: OdxIconName): TemplateResult;
33
33
  protected firstUpdated(props: PropertyValues<this>): void;
34
+ protected willUpdate(props: PropertyValues<this>): void;
34
35
  protected updated(props: PropertyValues<this>): void;
35
36
  }
36
37
  export {};
@@ -32,8 +32,9 @@ export declare class OdxHighlight extends OdxHighlight_base {
32
32
  selector?: string;
33
33
  minlength: number;
34
34
  variant: HighlightVariant;
35
- protected updated(props: PropertyValues<this>): void;
35
+ observeContent: boolean;
36
36
  disconnectedCallback(): void;
37
+ protected updated(props: PropertyValues<this>): void;
37
38
  private static updateGlobalHighlights;
38
39
  }
39
40
  export {};
@@ -9,6 +9,8 @@ export * from './main-menu-button.js';
9
9
  export declare class OdxMainMenu extends CustomElement {
10
10
  #private;
11
11
  static observeSlots: boolean;
12
+ controlled: boolean;
13
+ constructor();
12
14
  protected render(): TemplateResult;
13
15
  }
14
16
  //# sourceMappingURL=main-menu.d.ts.map
@@ -9,7 +9,6 @@ declare global {
9
9
  export declare class OdxOption extends ControlElement implements OptionControl {
10
10
  #private;
11
11
  role: 'option' | 'gridcell' | 'row' | 'tab' | null;
12
- hideIndicator: boolean;
13
12
  set label(value: string);
14
13
  get label(): string;
15
14
  readonly: boolean;
@@ -1,4 +1,5 @@
1
1
  import { ListboxControl } from '../../main.js';
2
+ import { IsLocalized } from '../../i18n/main.js';
2
3
  import { PropertyValues, TemplateResult } from 'lit';
3
4
  import { OdxDropdown } from '../dropdown/dropdown.js';
4
5
  import { OdxOption } from '../option/option.js';
@@ -7,7 +8,8 @@ declare global {
7
8
  'odx-select': OdxSelect;
8
9
  }
9
10
  }
10
- export declare class OdxSelect extends ListboxControl<OdxOption> {
11
+ declare const OdxSelect_base: import('../../utils/main.js').Constructor<IsLocalized> & typeof ListboxControl<OdxOption>;
12
+ export declare class OdxSelect extends OdxSelect_base {
11
13
  #private;
12
14
  static shadowRootOptions: ShadowRootInit;
13
15
  private dropdownOpen;
@@ -21,4 +23,5 @@ export declare class OdxSelect extends ListboxControl<OdxOption> {
21
23
  protected canSelect(option: OdxOption): boolean;
22
24
  protected render(): TemplateResult;
23
25
  }
26
+ export {};
24
27
  //# sourceMappingURL=select.d.ts.map