@scania/tegel 1.25.0-tooltip-beta.0 → 1.26.0-onTdsChange-gets-triggered-unexpectedly-beta.0

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.
Files changed (131) hide show
  1. package/dist/cjs/index-ca8040ad.js +0 -4
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/tds-checkbox.cjs.entry.js +10 -3
  4. package/dist/cjs/tds-chip.cjs.entry.js +7 -2
  5. package/dist/cjs/tds-dropdown_2.cjs.entry.js +23 -16
  6. package/dist/cjs/tds-folder-tab.cjs.entry.js +21 -2
  7. package/dist/cjs/tds-folder-tabs.cjs.entry.js +4 -2
  8. package/dist/cjs/tds-icon.cjs.entry.js +1 -1
  9. package/dist/cjs/tds-inline-tab.cjs.entry.js +21 -2
  10. package/dist/cjs/tds-inline-tabs.cjs.entry.js +4 -2
  11. package/dist/cjs/tds-link.cjs.entry.js +17 -3
  12. package/dist/cjs/tds-navigation-tab.cjs.entry.js +21 -2
  13. package/dist/cjs/tds-navigation-tabs.cjs.entry.js +6 -4
  14. package/dist/cjs/tegel.cjs.js +1 -1
  15. package/dist/collection/collection-manifest.json +1 -2
  16. package/dist/collection/components/banner/banner.js +1 -1
  17. package/dist/collection/components/checkbox/checkbox.js +44 -3
  18. package/dist/collection/components/chip/chip.js +24 -2
  19. package/dist/collection/components/dropdown/dropdown.js +23 -16
  20. package/dist/collection/components/icon/icon.js +1 -1
  21. package/dist/collection/components/icon/iconsArray.js +96 -1
  22. package/dist/collection/components/link/link.js +17 -3
  23. package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +21 -2
  24. package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +40 -2
  25. package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +21 -2
  26. package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +40 -2
  27. package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +21 -2
  28. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +42 -4
  29. package/dist/collection/utils/axeHelpers.js +1 -1
  30. package/dist/components/{p-c65351ab.js → p-14ab9663.js} +12 -3
  31. package/dist/components/{p-4c1e3344.js → p-363184d0.js} +1 -1
  32. package/dist/components/{p-2a43e410.js → p-5028a7ae.js} +2 -2
  33. package/dist/components/p-64019792.js +65 -0
  34. package/dist/components/{p-a64dc22e.js → p-bac1d6b1.js} +24 -17
  35. package/dist/components/tds-accordion-item.js +1 -1
  36. package/dist/components/tds-banner.js +1 -1
  37. package/dist/components/tds-checkbox.js +1 -1
  38. package/dist/components/tds-chip.js +9 -3
  39. package/dist/components/tds-datetime.js +1 -1
  40. package/dist/components/tds-dropdown-option.js +1 -1
  41. package/dist/components/tds-dropdown.js +1 -1
  42. package/dist/components/tds-folder-tab.js +21 -2
  43. package/dist/components/tds-folder-tabs.js +7 -3
  44. package/dist/components/tds-footer-group.js +1 -1
  45. package/dist/components/tds-header-cell.js +1 -1
  46. package/dist/components/tds-header-dropdown.js +1 -1
  47. package/dist/components/tds-header-hamburger.js +1 -1
  48. package/dist/components/tds-header-launcher-button.js +1 -1
  49. package/dist/components/tds-header-launcher.js +2 -2
  50. package/dist/components/tds-icon.js +1 -1
  51. package/dist/components/tds-inline-tab.js +21 -2
  52. package/dist/components/tds-inline-tabs.js +7 -3
  53. package/dist/components/tds-link.js +17 -3
  54. package/dist/components/tds-message.js +1 -1
  55. package/dist/components/tds-modal.js +1 -1
  56. package/dist/components/tds-navigation-tab.js +21 -2
  57. package/dist/components/tds-navigation-tabs.js +9 -5
  58. package/dist/components/tds-side-menu-close-button.js +1 -1
  59. package/dist/components/tds-side-menu-dropdown.js +1 -1
  60. package/dist/components/tds-slider.js +1 -1
  61. package/dist/components/tds-step.js +1 -1
  62. package/dist/components/tds-table-body-input-wrapper.js +1 -1
  63. package/dist/components/tds-table-body-row.js +1 -1
  64. package/dist/components/tds-table-footer.js +4 -4
  65. package/dist/components/tds-table-header-input-wrapper.js +1 -1
  66. package/dist/components/tds-table-header.js +1 -1
  67. package/dist/components/tds-table-toolbar.js +1 -1
  68. package/dist/components/tds-text-field.js +1 -1
  69. package/dist/components/tds-textarea.js +1 -1
  70. package/dist/components/tds-toast.js +1 -1
  71. package/dist/esm/index-51d04e39.js +0 -4
  72. package/dist/esm/loader.js +1 -1
  73. package/dist/esm/tds-checkbox.entry.js +10 -3
  74. package/dist/esm/tds-chip.entry.js +7 -2
  75. package/dist/esm/tds-dropdown_2.entry.js +23 -16
  76. package/dist/esm/tds-folder-tab.entry.js +22 -3
  77. package/dist/esm/tds-folder-tabs.entry.js +4 -2
  78. package/dist/esm/tds-icon.entry.js +1 -1
  79. package/dist/esm/tds-inline-tab.entry.js +22 -3
  80. package/dist/esm/tds-inline-tabs.entry.js +4 -2
  81. package/dist/esm/tds-link.entry.js +17 -3
  82. package/dist/esm/tds-navigation-tab.entry.js +22 -3
  83. package/dist/esm/tds-navigation-tabs.entry.js +6 -4
  84. package/dist/esm/tegel.js +1 -1
  85. package/dist/tegel/p-0f2c9507.entry.js +1 -0
  86. package/dist/tegel/p-668b7662.entry.js +1 -0
  87. package/dist/tegel/p-a21250b8.entry.js +1 -0
  88. package/dist/tegel/p-aadb2553.entry.js +1 -0
  89. package/dist/tegel/p-ab8beb0f.entry.js +1 -0
  90. package/dist/tegel/p-b08886e3.entry.js +1 -0
  91. package/dist/tegel/p-c3607f10.entry.js +1 -0
  92. package/dist/tegel/p-cf302187.entry.js +1 -0
  93. package/dist/tegel/p-ddda64eb.entry.js +1 -0
  94. package/dist/tegel/p-eaa279dd.entry.js +1 -0
  95. package/dist/tegel/p-ee960089.entry.js +1 -0
  96. package/dist/tegel/tegel.esm.js +1 -1
  97. package/dist/types/components/checkbox/checkbox.d.ts +5 -0
  98. package/dist/types/components/chip/chip.d.ts +3 -0
  99. package/dist/types/components/dropdown/dropdown.d.ts +2 -0
  100. package/dist/types/components/tabs/folder-tabs/folder-tab/folder-tab.d.ts +2 -0
  101. package/dist/types/components/tabs/folder-tabs/folder-tabs.d.ts +4 -0
  102. package/dist/types/components/tabs/inline-tabs/inline-tab/inline-tab.d.ts +2 -0
  103. package/dist/types/components/tabs/inline-tabs/inline-tabs.d.ts +4 -0
  104. package/dist/types/components/tabs/navigation-tabs/navigation-tab/navigation-tab.d.ts +2 -0
  105. package/dist/types/components/tabs/navigation-tabs/navigation-tabs.d.ts +4 -0
  106. package/dist/types/components.d.ts +72 -35
  107. package/dist/types/types/Icons.d.ts +1 -1
  108. package/dist/types/utils/axeHelpers.d.ts +1 -2
  109. package/package.json +1 -1
  110. package/dist/cjs/tds-tooltip-beta.cjs.entry.js +0 -123
  111. package/dist/collection/components/tooltip-beta/tooltip-beta.css +0 -40
  112. package/dist/collection/components/tooltip-beta/tooltip-beta.js +0 -319
  113. package/dist/collection/types/Tooltip.js +0 -1
  114. package/dist/components/p-a2b7bdef.js +0 -65
  115. package/dist/components/tds-tooltip-beta.d.ts +0 -11
  116. package/dist/components/tds-tooltip-beta.js +0 -149
  117. package/dist/esm/tds-tooltip-beta.entry.js +0 -119
  118. package/dist/tegel/p-0c1e632d.entry.js +0 -1
  119. package/dist/tegel/p-19eb4ae1.entry.js +0 -1
  120. package/dist/tegel/p-4e33cbda.entry.js +0 -1
  121. package/dist/tegel/p-4ee344e5.entry.js +0 -1
  122. package/dist/tegel/p-64c80f14.entry.js +0 -1
  123. package/dist/tegel/p-72fd0083.entry.js +0 -1
  124. package/dist/tegel/p-93a4bd11.entry.js +0 -1
  125. package/dist/tegel/p-9e0b31a1.entry.js +0 -1
  126. package/dist/tegel/p-a0fc0cc2.entry.js +0 -1
  127. package/dist/tegel/p-b6526302.entry.js +0 -1
  128. package/dist/tegel/p-dcbc35af.entry.js +0 -1
  129. package/dist/tegel/p-ef3671d8.entry.js +0 -1
  130. package/dist/types/components/tooltip-beta/tooltip-beta.d.ts +0 -28
  131. package/dist/types/types/Tooltip.d.ts +0 -4
@@ -2,10 +2,12 @@
2
2
  * @slot <default> - <b>Unnamed slot.</b> For the tab link or button.
3
3
  */
4
4
  export declare class TdsNavigationTab {
5
+ host: HTMLElement;
5
6
  /** Disables the Tab. */
6
7
  disabled: boolean;
7
8
  selected: boolean;
8
9
  /** @internal Method to set the Tab as selected. Used by the <tds-navigation-tabs> */
9
10
  setSelected(selected: boolean): Promise<void>;
11
+ connectedCallback(): void;
10
12
  render(): any;
11
13
  }
@@ -13,6 +13,10 @@ export declare class TdsNavigationTabs {
13
13
  selectedIndex: number;
14
14
  /** Custom left padding value for the wrapper element. */
15
15
  leftPadding: number;
16
+ /** Defines aria-label on left scroll button */
17
+ tdsScrollLeftAriaLabel: string;
18
+ /** Defines aria-label on right scroll button */
19
+ tdsScrollRightAriaLabel: string;
16
20
  showLeftScroll: boolean;
17
21
  showRightScroll: boolean;
18
22
  private navWrapperElement;
@@ -11,14 +11,12 @@ import { CollapseEvent, InternalTdsSideMenuPropChange } from "./components/side-
11
11
  import { CollapseEvent as CollapseEvent1 } from "./components/side-menu/side-menu";
12
12
  import { InternalTdsStepperPropChange } from "./components/stepper/stepper";
13
13
  import { InternalTdsTablePropChange } from "./components/table/table/table";
14
- import { Placement as Placement1 } from "./types/Tooltip";
15
14
  export { IconNames } from "./types/Icons";
16
15
  export { Placement } from "@popperjs/core";
17
16
  export { CollapseEvent, InternalTdsSideMenuPropChange } from "./components/side-menu/side-menu";
18
17
  export { CollapseEvent as CollapseEvent1 } from "./components/side-menu/side-menu";
19
18
  export { InternalTdsStepperPropChange } from "./components/stepper/stepper";
20
19
  export { InternalTdsTablePropChange } from "./components/table/table/table";
21
- export { Placement as Placement1 } from "./types/Tooltip";
22
20
  export namespace Components {
23
21
  interface TdsAccordion {
24
22
  /**
@@ -270,6 +268,14 @@ export namespace Components {
270
268
  * Make the Checkbox required
271
269
  */
272
270
  "required": boolean;
271
+ /**
272
+ * Value to be used for the aria-describedby attribute
273
+ */
274
+ "tdsAriaDescribedby": string;
275
+ /**
276
+ * Value to be used for the aria-label attribute
277
+ */
278
+ "tdsAriaLabel": string;
273
279
  /**
274
280
  * Toggles the checked value of the component.
275
281
  */
@@ -300,6 +306,10 @@ export namespace Components {
300
306
  * Size of the Chip component
301
307
  */
302
308
  "size": 'sm' | 'lg';
309
+ /**
310
+ * Value to be used for the aria-label attribute
311
+ */
312
+ "tdsAriaLabel": string;
303
313
  /**
304
314
  * Type of Chip, depends on usage
305
315
  */
@@ -505,6 +515,14 @@ export namespace Components {
505
515
  * Sets the selected Tab. If this is set, all Tab changes need to be handled by the user.
506
516
  */
507
517
  "selectedIndex": number;
518
+ /**
519
+ * Defines aria-label on left scroll button
520
+ */
521
+ "tdsScrollLeftAriaLabel": string;
522
+ /**
523
+ * Defines aria-label on right scroll button
524
+ */
525
+ "tdsScrollRightAriaLabel": string;
508
526
  }
509
527
  interface TdsFooter {
510
528
  /**
@@ -682,6 +700,14 @@ export namespace Components {
682
700
  * Sets the selected Tab. If this is set, all Tab changes need to be handled by the user.
683
701
  */
684
702
  "selectedIndex": number;
703
+ /**
704
+ * Defines aria-label on left scroll button
705
+ */
706
+ "tdsScrollLeftAriaLabel": string;
707
+ /**
708
+ * Defines aria-label on right scroll button
709
+ */
710
+ "tdsScrollRightAriaLabel": string;
685
711
  }
686
712
  interface TdsLink {
687
713
  /**
@@ -801,6 +827,14 @@ export namespace Components {
801
827
  * Sets the selected Tab. If this is set, all Tab changes need to be handled by the user.
802
828
  */
803
829
  "selectedIndex": number;
830
+ /**
831
+ * Defines aria-label on left scroll button
832
+ */
833
+ "tdsScrollLeftAriaLabel": string;
834
+ /**
835
+ * Defines aria-label on right scroll button
836
+ */
837
+ "tdsScrollRightAriaLabel": string;
804
838
  }
805
839
  interface TdsPopoverCanvas {
806
840
  /**
@@ -1591,18 +1625,6 @@ export namespace Components {
1591
1625
  */
1592
1626
  "trigger": 'click' | 'hover';
1593
1627
  }
1594
- interface TdsTooltipBeta {
1595
- "defaultShow": boolean;
1596
- "mouseOverTooltip": boolean;
1597
- "offsetDistance": number;
1598
- "offsetSkidding": number;
1599
- "placement": Placement1;
1600
- "referenceEl"?: HTMLElement | null;
1601
- "selector": string;
1602
- "show": boolean;
1603
- "text": string;
1604
- "trigger": 'click' | 'hover';
1605
- }
1606
1628
  }
1607
1629
  export interface TdsAccordionItemCustomEvent<T> extends CustomEvent<T> {
1608
1630
  detail: T;
@@ -2643,12 +2665,6 @@ declare global {
2643
2665
  prototype: HTMLTdsTooltipElement;
2644
2666
  new (): HTMLTdsTooltipElement;
2645
2667
  };
2646
- interface HTMLTdsTooltipBetaElement extends Components.TdsTooltipBeta, HTMLStencilElement {
2647
- }
2648
- var HTMLTdsTooltipBetaElement: {
2649
- prototype: HTMLTdsTooltipBetaElement;
2650
- new (): HTMLTdsTooltipBetaElement;
2651
- };
2652
2668
  interface HTMLElementTagNameMap {
2653
2669
  "tds-accordion": HTMLTdsAccordionElement;
2654
2670
  "tds-accordion-item": HTMLTdsAccordionItemElement;
@@ -2732,7 +2748,6 @@ declare global {
2732
2748
  "tds-toast": HTMLTdsToastElement;
2733
2749
  "tds-toggle": HTMLTdsToggleElement;
2734
2750
  "tds-tooltip": HTMLTdsTooltipElement;
2735
- "tds-tooltip-beta": HTMLTdsTooltipBetaElement;
2736
2751
  }
2737
2752
  }
2738
2753
  declare namespace LocalJSX {
@@ -3009,6 +3024,14 @@ declare namespace LocalJSX {
3009
3024
  * Make the Checkbox required
3010
3025
  */
3011
3026
  "required"?: boolean;
3027
+ /**
3028
+ * Value to be used for the aria-describedby attribute
3029
+ */
3030
+ "tdsAriaDescribedby"?: string;
3031
+ /**
3032
+ * Value to be used for the aria-label attribute
3033
+ */
3034
+ "tdsAriaLabel"?: string;
3012
3035
  /**
3013
3036
  * Value for the Checkbox
3014
3037
  */
@@ -3049,6 +3072,10 @@ declare namespace LocalJSX {
3049
3072
  * Size of the Chip component
3050
3073
  */
3051
3074
  "size"?: 'sm' | 'lg';
3075
+ /**
3076
+ * Value to be used for the aria-label attribute
3077
+ */
3078
+ "tdsAriaLabel"?: string;
3052
3079
  /**
3053
3080
  * Type of Chip, depends on usage
3054
3081
  */
@@ -3276,6 +3303,14 @@ declare namespace LocalJSX {
3276
3303
  * Sets the selected Tab. If this is set, all Tab changes need to be handled by the user.
3277
3304
  */
3278
3305
  "selectedIndex"?: number;
3306
+ /**
3307
+ * Defines aria-label on left scroll button
3308
+ */
3309
+ "tdsScrollLeftAriaLabel"?: string;
3310
+ /**
3311
+ * Defines aria-label on right scroll button
3312
+ */
3313
+ "tdsScrollRightAriaLabel"?: string;
3279
3314
  }
3280
3315
  interface TdsFooter {
3281
3316
  /**
@@ -3458,6 +3493,14 @@ declare namespace LocalJSX {
3458
3493
  * Sets the selected Tab. If this is set, all Tab changes need to be handled by the user.
3459
3494
  */
3460
3495
  "selectedIndex"?: number;
3496
+ /**
3497
+ * Defines aria-label on left scroll button
3498
+ */
3499
+ "tdsScrollLeftAriaLabel"?: string;
3500
+ /**
3501
+ * Defines aria-label on right scroll button
3502
+ */
3503
+ "tdsScrollRightAriaLabel"?: string;
3461
3504
  }
3462
3505
  interface TdsLink {
3463
3506
  /**
@@ -3562,6 +3605,14 @@ declare namespace LocalJSX {
3562
3605
  * Sets the selected Tab. If this is set, all Tab changes need to be handled by the user.
3563
3606
  */
3564
3607
  "selectedIndex"?: number;
3608
+ /**
3609
+ * Defines aria-label on left scroll button
3610
+ */
3611
+ "tdsScrollLeftAriaLabel"?: string;
3612
+ /**
3613
+ * Defines aria-label on right scroll button
3614
+ */
3615
+ "tdsScrollRightAriaLabel"?: string;
3565
3616
  }
3566
3617
  interface TdsPopoverCanvas {
3567
3618
  /**
@@ -4427,18 +4478,6 @@ declare namespace LocalJSX {
4427
4478
  */
4428
4479
  "trigger"?: 'click' | 'hover';
4429
4480
  }
4430
- interface TdsTooltipBeta {
4431
- "defaultShow"?: boolean;
4432
- "mouseOverTooltip"?: boolean;
4433
- "offsetDistance"?: number;
4434
- "offsetSkidding"?: number;
4435
- "placement"?: Placement1;
4436
- "referenceEl"?: HTMLElement | null;
4437
- "selector"?: string;
4438
- "show"?: boolean;
4439
- "text"?: string;
4440
- "trigger"?: 'click' | 'hover';
4441
- }
4442
4481
  interface IntrinsicElements {
4443
4482
  "tds-accordion": TdsAccordion;
4444
4483
  "tds-accordion-item": TdsAccordionItem;
@@ -4522,7 +4561,6 @@ declare namespace LocalJSX {
4522
4561
  "tds-toast": TdsToast;
4523
4562
  "tds-toggle": TdsToggle;
4524
4563
  "tds-tooltip": TdsTooltip;
4525
- "tds-tooltip-beta": TdsTooltipBeta;
4526
4564
  }
4527
4565
  }
4528
4566
  export { LocalJSX as JSX };
@@ -4616,7 +4654,6 @@ declare module "@stencil/core" {
4616
4654
  "tds-toast": LocalJSX.TdsToast & JSXBase.HTMLAttributes<HTMLTdsToastElement>;
4617
4655
  "tds-toggle": LocalJSX.TdsToggle & JSXBase.HTMLAttributes<HTMLTdsToggleElement>;
4618
4656
  "tds-tooltip": LocalJSX.TdsTooltip & JSXBase.HTMLAttributes<HTMLTdsTooltipElement>;
4619
- "tds-tooltip-beta": LocalJSX.TdsTooltipBeta & JSXBase.HTMLAttributes<HTMLTdsTooltipBetaElement>;
4620
4657
  }
4621
4658
  }
4622
4659
  }
@@ -1 +1 @@
1
- export type IconNames = '24v_battery_inactive' | '24v_battery' | 'arrow_diagonal' | 'arrow_down' | 'arrow_left' | 'arrow_right' | 'arrow_up' | 'audio_inactive' | 'back' | 'backward_inactive' | 'backward' | 'bento' | 'burger' | 'calendar_inactive' | 'calendar' | 'card' | 'cart' | 'charging_speed_inactive' | 'charging_speed' | 'charging_stopped' | 'chevron_down' | 'chevron_left' | 'chevron_right' | 'chevron_up' | 'clock_inactive' | 'clock' | 'contact_inactive' | 'contact' | 'copy' | 'cross' | 'dashboard' | 'document_check' | 'document_doc' | 'document_eye' | 'document_pdf' | 'document_ppt' | 'document_tool' | 'document_wrong' | 'document_xls' | 'document' | 'dollar' | 'doner' | 'double_kebab' | 'download' | 'edit_inactive' | 'edit' | 'email' | 'error' | 'expand' | 'export_inactive' | 'export' | 'eye_inactive' | 'eye' | 'face_dissatisfied' | 'face_neutral' | 'face_satisfied' | 'filters_inactive' | 'filters' | 'flash' | 'folder' | 'forward_inactive' | 'fuel_gauge_inactive' | 'fuel_gauge' | 'global' | 'hatch_open_inactive' | 'heart_inactive' | 'heart' | 'heating_inactive_screen' | 'history_inactive' | 'history' | 'home_inactive' | 'home' | 'image_add' | 'image_inactive' | 'image_set' | 'image' | 'info' | 'insights' | 'kebab' | 'link_broken' | 'link' | 'lock_inactive' | 'lock' | 'maximize_fullscreen' | 'meatballs' | 'message_inactive' | 'message' | 'mileage_inactive' | 'mileage' | 'minimize_fullscreen' | 'minus' | 'notification_inactive' | 'notification' | 'pause_inactive' | 'pause' | 'phone_inactive' | 'phone' | 'pie_chart' | 'pin_inactive' | 'pin' | 'plus' | 'print_inactive' | 'print' | 'profile_inactive' | 'profile' | 'proportions_inactive' | 'proportions' | 'range_inactive' | 'range' | 'redirect' | 'refresh_inactive' | 'refresh' | 'reload_inactive' | 'reload' | 'report_inactive' | 'report' | 'save_inactive' | 'save' | 'search' | 'send_inactive' | 'send' | 'settings' | 'share' | 'skip_backwards' | 'skip_forward' | 'smartphone_inactive' | 'smartphone' | 'sorting' | 'speedometer_inactive' | 'speedometer' | 'star' | 'support' | 'target_inactive' | 'target' | 'text_inactive' | 'tick' | 'timer' | 'tool_inactive' | 'tool' | 'trailer' | 'trash_inactive' | 'trash' | 'truck' | 'upload' | 'wallet' | 'warning' | 'wifi_inactive' | 'wifi';
1
+ export type IconNames = '24v_battery_inactive' | '24v_battery' | 'acceleration_inactive' | 'acceleration' | 'adblue_inactive' | 'adblue' | 'arrow_diagonal' | 'arrow_down' | 'arrow_left' | 'arrow_right' | 'arrow_up' | 'audio_inactive' | 'audio' | 'award' | 'back' | 'backward_inactive' | 'backward' | 'bento' | 'bug_inactive' | 'bug' | 'burger' | 'bus_inactive' | 'bus' | 'calendar_inactive' | 'calendar' | 'camera_inactive' | 'camera' | 'card' | 'cart' | 'charging_complete' | 'charging_failed' | 'charging_speed_inactive' | 'charging_speed' | 'charging_stopped' | 'chevron_down' | 'chevron_left' | 'chevron_right' | 'chevron_up' | 'clock_inactive' | 'clock' | 'contact_inactive' | 'contact' | 'cookie_inactive' | 'cookie' | 'coolant_level_inactive' | 'coolant_level' | 'copy' | 'cross' | 'cup_inactive' | 'cup' | 'dashboard' | 'department_inactive' | 'department' | 'departure_scheduling_inactive' | 'departure_scheduling' | 'diamond_inactive' | 'diamond' | 'document_check' | 'document_doc' | 'document_eye' | 'document_pdf' | 'document_plus_inactive' | 'document_plus' | 'document_ppt' | 'document_tool' | 'document_wrong' | 'document_xls' | 'document' | 'dollar' | 'doner' | 'double_kebab' | 'download' | 'driving_licence_inactive' | 'driving_licence' | 'drop_inactive' | 'drop' | 'edit_inactive' | 'edit' | 'email' | 'engine_inactive' | 'engine' | 'environment_inactive' | 'environment' | 'error' | 'exit' | 'expand_inactive' | 'expand' | 'export_inactive' | 'export' | 'eye_inactive' | 'eye' | 'face_dissatisfied' | 'face_neutral' | 'face_satisfied' | 'factory_inactive' | 'factory' | 'ferry_inactive' | 'ferry' | 'filters_inactive' | 'filters' | 'flash_inactive' | 'flash' | 'folder' | 'forward_inactive' | 'forward' | 'fuel_gauge_inactive' | 'fuel_gauge' | 'fuel_inactive' | 'fuel' | 'gift inactive' | 'gift' | 'global' | 'guided_tour_inactive' | 'guided_tour' | 'hatch_open_1' | 'hatch_open_2' | 'hatch_open_inactive' | 'hatch_open' | 'heart_inactive' | 'heart' | 'heating_inactive_screen' | 'history_inactive' | 'history' | 'home_inactive' | 'home' | 'idea_inactive' | 'idea' | 'image_add' | 'image_inactive' | 'image_set' | 'image' | 'info' | 'insights' | 'kebab' | 'key_inactive' | 'key' | 'layer_inactive' | 'layer' | 'link_broken' | 'link' | 'list_inactive' | 'list' | 'lock_inactive' | 'lock' | 'map_cursor_inactive' | 'map_cursor' | 'maximize_fullscreen' | 'meatballs' | 'merge_inactive' | 'merge' | 'message_inactive' | 'message' | 'mileage_inactive' | 'mileage' | 'minimize_fullscreen' | 'minus' | 'navigate_inactive' | 'navigate' | 'notification_inactive' | 'notification' | 'oil_level_inactive' | 'oil_level' | 'pause_inactive' | 'pause' | 'phone_inactive' | 'phone' | 'pie_chart' | 'pin_inactive' | 'pin' | 'placeholder' | 'play_inactive' | 'play' | 'plus' | 'powerplug_inactive' | 'powerplug' | 'print_inactive' | 'print' | 'privacy_inactive' | 'privacy' | 'profile_inactive' | 'profile' | 'proportions_inactive' | 'proportions' | 'range_inactive' | 'range' | 'redirect' | 'refresh_inactive' | 'refresh' | 'reload_inactive' | 'reload' | 'repeat' | 'report_inactive' | 'report' | 'route_inactive' | 'route' | 'save_inactive' | 'save' | 'search' | 'send_inactive' | 'send' | 'settings' | 'share' | 'skip_backwards' | 'skip_forward' | 'smartphone_inactive' | 'smartphone' | 'sorting' | 'speedometer_inactive' | 'speedometer' | 'star' | 'support' | 'target_inactive' | 'target' | 'temperature_inactive' | 'temperature' | 'text_inactive' | 'text' | 'thumbs_down' | 'thumbs_up' | 'tick' | 'timer' | 'tool_inactive' | 'tool' | 'trailer_inactive' | 'trailer' | 'trash_inactive' | 'trash' | 'truck_inactive' | 'truck' | 'undo_inactive' | 'undo' | 'unlock' | 'upload' | 'video_inactive' | 'video' | 'wallet' | 'warning' | 'weight_inactive' | 'weight' | 'wifi_inactive' | 'wifi' | 'windscreen_heating_inactive' | 'windscreen_heating';
@@ -1,2 +1 @@
1
- import type { Page } from '@playwright/test';
2
- export declare const tegelAnalyze: (page: Page) => Promise<import("axe-core").AxeResults>;
1
+ export declare const tegelAnalyze: (page: any) => Promise<import("axe-core").AxeResults>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scania/tegel",
3
- "version": "1.25.0-tooltip-beta.0",
3
+ "version": "1.26.0-onTdsChange-gets-triggered-unexpectedly-beta.0",
4
4
  "description": "Tegel Design System",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -1,123 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-ca8040ad.js');
6
-
7
- const tooltipBetaCss = ".sc-tds-tooltip-beta-h{position:absolute}.tds-tooltip.sc-tds-tooltip-beta{box-sizing:border-box;font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);color:var(--tds-tooltip-color);background-color:var(--tds-tooltip-background);border-radius:4px;padding:8px;word-wrap:break-word;white-space:normal;max-width:192px;z-index:900;opacity:0;visibility:hidden;transition:opacity 200ms ease-in, visibility 200ms ease-in}.tds-tooltip.sc-tds-tooltip-beta *.sc-tds-tooltip-beta{box-sizing:border-box}.tds-tooltip.tds-tooltip-top-left.sc-tds-tooltip-beta{border-radius:0 4px 4px}.tds-tooltip.tds-tooltip-top-right.sc-tds-tooltip-beta{border-radius:4px 0 4px 4px}.tds-tooltip.tds-tooltip-bottom-right.sc-tds-tooltip-beta{border-radius:4px 4px 0}.tds-tooltip.tds-tooltip-bottom-left.sc-tds-tooltip-beta{border-radius:4px 4px 4px 0}.tds-tooltip-show.sc-tds-tooltip-beta{opacity:1;visibility:visible}";
8
- const TdsTooltipBetaStyle0 = tooltipBetaCss;
9
-
10
- const TdsTooltipBeta = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- this.debounce = (func, delay) => (...args) => {
14
- let debounceTimer;
15
- clearTimeout(debounceTimer);
16
- debounceTimer = setTimeout(() => func.apply(this, args), delay);
17
- };
18
- this.showTooltip = this.debounce(() => {
19
- this.isVisible = true;
20
- this.updateTooltipPosition();
21
- }, 100);
22
- this.hideTooltip = this.debounce(() => {
23
- this.isVisible = false;
24
- }, 100);
25
- this.toggleTooltip = () => {
26
- this.isVisible = !this.isVisible;
27
- this.updateTooltipPosition();
28
- };
29
- this.setTooltipRef = (element) => {
30
- this.tooltipEl = element;
31
- };
32
- this.text = '';
33
- this.selector = undefined;
34
- this.referenceEl = undefined;
35
- this.defaultShow = false;
36
- this.mouseOverTooltip = false;
37
- this.trigger = 'hover';
38
- this.show = null;
39
- this.placement = 'bottom';
40
- this.offsetSkidding = 0;
41
- this.offsetDistance = 8;
42
- this.isVisible = this.defaultShow;
43
- }
44
- componentDidLoad() {
45
- if (!this.referenceEl && this.selector) {
46
- this.referenceEl = document.querySelector(this.selector);
47
- }
48
- if (this.referenceEl) {
49
- this.bindEvents();
50
- }
51
- }
52
- connectedCallback() {
53
- this.resizeObserver = new ResizeObserver(() => this.updateTooltipPosition());
54
- if (this.referenceEl) {
55
- this.resizeObserver.observe(this.referenceEl);
56
- }
57
- window.addEventListener('resize', this.updateTooltipPosition);
58
- }
59
- disconnectedCallback() {
60
- this.resizeObserver.disconnect();
61
- window.removeEventListener('resize', this.updateTooltipPosition);
62
- }
63
- bindEvents() {
64
- var _a, _b;
65
- if (this.trigger === 'hover') {
66
- this.referenceEl.addEventListener('mouseenter', this.showTooltip);
67
- this.referenceEl.addEventListener('mouseleave', this.hideTooltip);
68
- if (this.mouseOverTooltip) {
69
- (_a = this.tooltipEl) === null || _a === void 0 ? void 0 : _a.addEventListener('mouseenter', this.showTooltip);
70
- (_b = this.tooltipEl) === null || _b === void 0 ? void 0 : _b.addEventListener('mouseleave', this.hideTooltip);
71
- }
72
- }
73
- else if (this.trigger === 'click') {
74
- this.referenceEl.addEventListener('click', this.toggleTooltip);
75
- }
76
- }
77
- updateTooltipPosition() {
78
- if (!this.tooltipEl || !this.referenceEl)
79
- return;
80
- requestAnimationFrame(() => {
81
- const rect = this.referenceEl.getBoundingClientRect();
82
- const { height, width, bottom } = rect;
83
- let { top, left } = rect;
84
- switch (this.placement) {
85
- case 'top':
86
- top -= this.tooltipEl.offsetHeight + this.offsetDistance;
87
- left += width / 2 - this.tooltipEl.offsetWidth / 2;
88
- break;
89
- case 'bottom':
90
- top += height + this.offsetDistance;
91
- left += width / 2 - this.tooltipEl.offsetWidth / 2;
92
- break;
93
- case 'left':
94
- top += height / 2 - this.tooltipEl.offsetHeight / 2;
95
- left -= this.tooltipEl.offsetWidth + this.offsetDistance;
96
- break;
97
- case 'right':
98
- top += height / 2 - this.tooltipEl.offsetHeight / 2;
99
- left += width + this.offsetDistance;
100
- break;
101
- // Handle more complex placements like 'top-start', 'bottom-end', etc.
102
- default:
103
- top = bottom + this.offsetDistance;
104
- left = left + width / 2 - this.tooltipEl.offsetWidth / 2;
105
- break;
106
- }
107
- // Additional offsets
108
- left += this.offsetSkidding;
109
- this.tooltipEl.style.top = `${top}px`;
110
- this.tooltipEl.style.left = `${left}px`;
111
- });
112
- }
113
- render() {
114
- return (index.h(index.Host, { key: 'ccab2630363c007e8d4719d22ab140e80547251b' }, index.h("div", { key: '3c64224e0620e60f42089205e3ca8d0766df90cc', class: {
115
- 'tds-tooltip': true,
116
- 'tds-tooltip-show': this.isVisible,
117
- }, ref: this.setTooltipRef }, this.text, index.h("slot", { key: '4674e18dbf5bfe563ca3c01757280ccd660c5049' }))));
118
- }
119
- get host() { return index.getElement(this); }
120
- };
121
- TdsTooltipBeta.style = TdsTooltipBetaStyle0;
122
-
123
- exports.tds_tooltip_beta = TdsTooltipBeta;
@@ -1,40 +0,0 @@
1
- :host {
2
- position: absolute;
3
- }
4
-
5
- .tds-tooltip {
6
- box-sizing: border-box;
7
- font: var(--tds-detail-05);
8
- letter-spacing: var(--tds-detail-05-ls);
9
- color: var(--tds-tooltip-color);
10
- background-color: var(--tds-tooltip-background);
11
- border-radius: 4px;
12
- padding: 8px;
13
- word-wrap: break-word;
14
- white-space: normal;
15
- max-width: 192px;
16
- z-index: 900;
17
- opacity: 0;
18
- visibility: hidden;
19
- transition: opacity 200ms ease-in, visibility 200ms ease-in;
20
- }
21
- .tds-tooltip * {
22
- box-sizing: border-box;
23
- }
24
- .tds-tooltip.tds-tooltip-top-left {
25
- border-radius: 0 4px 4px;
26
- }
27
- .tds-tooltip.tds-tooltip-top-right {
28
- border-radius: 4px 0 4px 4px;
29
- }
30
- .tds-tooltip.tds-tooltip-bottom-right {
31
- border-radius: 4px 4px 0;
32
- }
33
- .tds-tooltip.tds-tooltip-bottom-left {
34
- border-radius: 4px 4px 4px 0;
35
- }
36
-
37
- .tds-tooltip-show {
38
- opacity: 1;
39
- visibility: visible;
40
- }