@webitel/ui-sdk 26.8.139 → 26.8.140

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 (27) hide show
  1. package/dist/{clients-Bk3DA6vL.js → clients-B87Nx03m.js} +10 -7
  2. package/dist/{components-Bzxyigqb.js → components-peYTVwLb.js} +1235 -1153
  3. package/dist/ui-sdk.css +1 -1
  4. package/dist/ui-sdk.js +1 -1
  5. package/dist/ui-sdk.umd.cjs +524 -524
  6. package/dist/{wt-chat-emoji-DqLArBt8.js → wt-chat-emoji-D72hYTJU.js} +1 -1
  7. package/dist/{wt-display-chip-items-CYABNzDH.js → wt-display-chip-items-DwdzIwJH.js} +1 -1
  8. package/dist/{wt-send-message-popup-B6VaAW53.js → wt-send-message-popup-D3KQ6fqe.js} +2 -2
  9. package/dist/{wt-type-extension-value-input-DAPDUmhp.js → wt-type-extension-value-input-BQjSYAdt.js} +2 -2
  10. package/dist/{wt-vidstack-player-DSgFPUrJ.js → wt-vidstack-player-DwS6IkZJ.js} +1 -1
  11. package/package.json +1 -1
  12. package/src/components/index.js +3 -0
  13. package/src/components/wt-navigation-rail/__tests__/WtNavigationRail.spec.js +90 -0
  14. package/src/components/wt-navigation-rail/_internals/navigation-rail-button.vue +79 -0
  15. package/src/components/wt-navigation-rail/_variables.css +45 -0
  16. package/src/components/wt-navigation-rail/types/WtNavigationRail.ts +19 -0
  17. package/src/components/wt-navigation-rail/wt-navigation-rail.vue +108 -0
  18. package/src/components/wt-page/__tests__/WtPage.spec.js +60 -1
  19. package/src/components/wt-page/wt-page.vue +40 -3
  20. package/src/css/components-variables.css +1 -0
  21. package/types/.tsbuildinfo +1 -1
  22. package/types/components/index.d.ts +3 -1
  23. package/types/components/wt-navigation-rail/__tests__/WtNavigationRail.spec.d.ts +1 -0
  24. package/types/components/wt-navigation-rail/_internals/navigation-rail-button.vue.d.ts +12 -0
  25. package/types/components/wt-navigation-rail/types/WtNavigationRail.d.ts +17 -0
  26. package/types/components/wt-navigation-rail/wt-navigation-rail.vue.d.ts +25 -0
  27. package/types/components/wt-page/wt-page.vue.d.ts +20 -1
@@ -70,6 +70,7 @@ import WtMultiSelect from './wt-multi-select/wt-multi-select.vue';
70
70
  import WtNavigationBar from './wt-navigation-bar/wt-navigation-bar.vue';
71
71
  /** @type {typeof import('./on-demand/wt-navigation-menu/components/wt-navigation-menu.vue').default} */
72
72
  export const WtNavigationMenu: typeof import("./on-demand/wt-navigation-menu/components/wt-navigation-menu.vue").default;
73
+ import WtNavigationRail from './wt-navigation-rail/wt-navigation-rail.vue';
73
74
  /** @type {typeof import('./wt-notifications-bar/wt-notifications-bar.vue').default} */
74
75
  export const WtNotificationsBar: typeof import("./wt-notifications-bar/wt-notifications-bar.vue").default;
75
76
  import WtPage from './wt-page/wt-page.vue';
@@ -186,6 +187,7 @@ declare namespace Components {
186
187
  export { WtHeaderActions };
187
188
  export { WtErrorPage };
188
189
  export { WtNotificationsBar };
190
+ export { WtNavigationRail };
189
191
  export { WtPage };
190
192
  export { WtPageWrapper };
191
193
  export { WtDualPanel };
@@ -226,4 +228,4 @@ declare namespace Components {
226
228
  export { WtCallMediaMetric };
227
229
  export { WtSendMessagePopup };
228
230
  }
229
- export { WtAppHeader, WtAppNavigator, WtAvatar, WtBadge, WtBadgeNew, WtBreadcrumb, WtButton, WtCallMediaMetric, WtCard, WtCheckbox, WtChip, WtContentWrapper, WtDatetimeText, WtDivider, WtEmpty, WtHeaderActions, WtHeadline, WtHint, WtIcon, WtIconAction, WtIconBtn, WtImage, WtIndicator, WtInputNumber, WtInputText, WtIntersectionObserver, WtItemLink, WtLabel, WtLayout, WtLoadBar, WtLoader, WtLogo, WtMessage, WtMultiSelect, WtNavigationBar, WtPage, WtPageWrapper, WtPassword, WtPopup, WtProgressBar, WtRadio, WtReplaceTransition, WtRoundedAction, WtSingleSelect, WtSwitcher, WtTextarea, WtToast, WtTooltip };
231
+ export { WtAppHeader, WtAppNavigator, WtAvatar, WtBadge, WtBadgeNew, WtBreadcrumb, WtButton, WtCallMediaMetric, WtCard, WtCheckbox, WtChip, WtContentWrapper, WtDatetimeText, WtDivider, WtEmpty, WtHeaderActions, WtHeadline, WtHint, WtIcon, WtIconAction, WtIconBtn, WtImage, WtIndicator, WtInputNumber, WtInputText, WtIntersectionObserver, WtItemLink, WtLabel, WtLayout, WtLoadBar, WtLoader, WtLogo, WtMessage, WtMultiSelect, WtNavigationBar, WtNavigationRail, WtPage, WtPageWrapper, WtPassword, WtPopup, WtProgressBar, WtRadio, WtReplaceTransition, WtRoundedAction, WtSingleSelect, WtSwitcher, WtTextarea, WtToast, WtTooltip };
@@ -0,0 +1,12 @@
1
+ import type { NavigationRailItem } from '../types/WtNavigationRail';
2
+ type __VLS_Props = {
3
+ item: NavigationRailItem;
4
+ active?: boolean;
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ select: (item: NavigationRailItem) => any;
8
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ onSelect?: ((item: NavigationRailItem) => any) | undefined;
10
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import type { BadgeSeverity } from '../../wt-badge-new/types/WtBadge';
2
+ export interface NavigationRailBadge {
3
+ value: string | number;
4
+ /** @default 'success' */
5
+ severity?: BadgeSeverity;
6
+ }
7
+ export interface NavigationRailItem {
8
+ /** Unique id, emitted on select and matched against `active` */
9
+ id: string;
10
+ /** Icon name from icons repository */
11
+ icon: string;
12
+ /** Accessible label (aria-label + tooltip) */
13
+ label?: string;
14
+ disabled?: boolean;
15
+ /** Renders badge over the button when set */
16
+ badge?: NavigationRailBadge | null;
17
+ }
@@ -0,0 +1,25 @@
1
+ import type { NavigationRailItem } from './types/WtNavigationRail';
2
+ /**
3
+ * Vertical app navigation. Holds no routing logic: emits `select`,
4
+ * host application decides what to do (navigate, open panel, etc.).
5
+ * Lists are data-driven by props. Renders nothing while both lists are empty.
6
+ */
7
+ type __VLS_Props = {
8
+ /** Buttons pinned to the top */
9
+ topItems?: NavigationRailItem[];
10
+ /** Buttons pinned to the bottom */
11
+ bottomItems?: NavigationRailItem[];
12
+ /** Id of the active item */
13
+ activeItemId?: string;
14
+ };
15
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ select: (item: NavigationRailItem) => any;
17
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ onSelect?: ((item: NavigationRailItem) => any) | undefined;
19
+ }>, {
20
+ topItems: NavigationRailItem[];
21
+ bottomItems: NavigationRailItem[];
22
+ activeItemId: string;
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
@@ -1,8 +1,27 @@
1
+ import type { NavigationRailItem } from '../wt-navigation-rail/types/WtNavigationRail';
2
+ /**
3
+ * Top structural level of the interface: header + body, where the body
4
+ * distributes its width between one or more `wt-layout`s.
5
+ * Optional navigation rail is shown at the left of the body and
6
+ * is hidden while both of its lists are empty.
7
+ */
8
+ type __VLS_Props = {
9
+ /** Navigation rail config, rail is not rendered when omitted */
10
+ navigationRail?: {
11
+ topItems?: NavigationRailItem[];
12
+ bottomItems?: NavigationRailItem[];
13
+ activeItemId?: string;
14
+ };
15
+ };
1
16
  type __VLS_Slots = {
2
17
  header?: () => unknown;
3
18
  default?: () => unknown;
4
19
  };
5
- declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
20
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ "navigation-select": (item: NavigationRailItem) => any;
22
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
23
+ "onNavigation-select"?: ((item: NavigationRailItem) => any) | undefined;
24
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
25
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
26
  declare const _default: typeof __VLS_export;
8
27
  export default _default;