scb-wc 0.1.113 → 0.1.114

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 (50) hide show
  1. package/README.md +41 -22
  2. package/all.js +0 -5
  3. package/icons.json +178 -178
  4. package/index.js +89 -94
  5. package/mvc/components/all.js +0 -5
  6. package/mvc/components/scb-accordion/scb-accordion-item.js +1 -1
  7. package/mvc/components/scb-button/scb-button.js +3 -3
  8. package/mvc/components/scb-calendar/scb-calendar.js +1 -1
  9. package/mvc/components/scb-calendar-card/scb-calendar-card.js +4 -4
  10. package/mvc/components/scb-card/scb-card.js +2 -2
  11. package/mvc/components/scb-dropdown/scb-dropdown.js +1 -1
  12. package/mvc/components/scb-header/scb-header.js +2 -2
  13. package/mvc/components/scb-horizontal-scroller/scb-horizontal-scroller.js +6 -6
  14. package/mvc/components/scb-icon-button/scb-icon-button.js +5 -5
  15. package/mvc/components/scb-keyfigure-card/scb-keyfigure-card.js +6 -6
  16. package/mvc/components/scb-list/scb-list-item.js +2 -2
  17. package/mvc/components/scb-menu/scb-menu-item.js +1 -1
  18. package/mvc/components/scb-nav/scb-nav.js +2 -2
  19. package/mvc/components/scb-options-menu/scb-options-menu-item.js +1 -1
  20. package/mvc/components/scb-progress-stepper/scb-progress-step.js +2 -2
  21. package/mvc/components/scb-search/scb-search.js +1 -1
  22. package/mvc/components/scb-segmented-button/scb-segmented-item.js +1 -1
  23. package/mvc/components/scb-select/scb-select-option.js +1 -1
  24. package/mvc/components/scb-select/scb-select.js +1 -1
  25. package/mvc/components/scb-stepper/scb-step.js +1 -1
  26. package/mvc/components/scb-textfield/scb-textfield.js +150 -33
  27. package/mvc/components/scb-toc/scb-toc-item.js +1 -1
  28. package/mvc/scb-logo.svg +20 -20
  29. package/mvc/scb.svg +13 -13
  30. package/mvc/vendor/lazy-focus-ring.js +2 -0
  31. package/mvc/vendor/lazy-ripple.js +2 -0
  32. package/mvc/{components/scb-chevron → vendor}/scb-chevron.js +1 -1
  33. package/mvc/vendor/scb-icon-svg.js +11 -0
  34. package/package.json +2 -2
  35. package/scb-chevron/scb-chevron.js +0 -1
  36. package/scb-datepicker/scb-datepicker.js +0 -1
  37. package/scb-wc-public-entry/index.d.ts +98 -0
  38. package/scb-wc.bundle.js +847 -847
  39. package/scb-wc.d.ts +196 -206
  40. package/shared/scb-icon-svg.js +2 -5
  41. package/mvc/components/scb-datepicker/scb-datepicker.js +0 -118
  42. package/mvc/components/shared/lazy-focus-ring.js +0 -2
  43. package/mvc/components/shared/lazy-ripple.js +0 -2
  44. package/mvc/components/shared/scb-icon-svg.js +0 -11
  45. package/scb-components/index.d.ts +0 -103
  46. package/scb-components/scb-chevron/scb-chevron.d.ts +0 -11
  47. package/scb-components/scb-datepicker/scb-datepicker.d.ts +0 -41
  48. package/scb-components/shared/lazy-focus-ring.d.ts +0 -4
  49. package/scb-components/shared/lazy-ripple.d.ts +0 -9
  50. package/scb-components/shared/scb-icon-svg.d.ts +0 -3
@@ -1,11 +0,0 @@
1
- import{_ as l,g as o}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";(function(){try{var a=typeof globalThis<"u"?globalThis:window;if(!a.__scb_ce_guard_installed__){a.__scb_ce_guard_installed__=!0;var h=customElements.define.bind(customElements);customElements.define=function(e,n,v){try{customElements.get(e)||h(e,n,v)}catch(t){var r=String(t||"");if(r.indexOf("already been used")===-1&&r.indexOf("NotSupportedError")===-1)throw t}}}}catch{}})();var c=new Map([["arrow_forward","M12 4l-1.41 1.41L15.17 10H4v2h11.17l-4.58 4.59L12 18l8-8-8-8Z"],["chevron_left","M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59Z"],["chevron_right","M8.59 16.59 10 18l6-6-6-6-1.41 1.41L13.17 12l-4.58 4.59Z"],["close","M18.3 5.71 16.89 4.3 12 9.17 7.11 4.3 5.7 5.71 10.59 10.6 5.7 15.49 7.11 16.9 12 12.01l4.89 4.89 1.41-1.41-4.89-4.89 4.89-4.89Z"],["menu","M3 6h18v2H3V6Zm0 5h18v2H3v-2Zm0 5h18v2H3v-2Z"],["open_in_new","M14 3h7v7h-2V6.41l-9.83 9.83-1.41-1.41L17.59 5H14V3ZM5 5h6v2H7v10h10v-4h2v6H5V5Z"],["payments","M3 6h18v12H3V6Zm2 2v8h14V8H5Zm7 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM7 9h2v2H7V9Zm8 4h2v2h-2v-2Z"],["person_4","M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm-8 8c0-3.31 3.58-6 8-6s8 2.69 8 6v1H4v-1Z"],["price_change","M12 2 3 6v6c0 5 3.84 9.74 9 10 5.16-.26 9-5 9-10V6l-9-4Zm1 15h-2v-2h2v2Zm0-4h-2V7h2v6Zm-7 6.5V15h2v2.6a9.1 9.1 0 0 1-2-3.1Zm12-1.9V15h2a9.1 9.1 0 0 1-2 3.1Z"],["search","M9.5 3a6.5 6.5 0 0 1 5.17 10.44l5.45 5.44-1.42 1.42-5.44-5.45A6.5 6.5 0 1 1 9.5 3Zm0 2a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"],["trending_up","M16 6h5v5h-2V9.41l-6.17 6.17-4-4L3.41 17 2 15.59l6.83-6.83 4 4L17.59 8H16V6Z"],["volume_up","M3 9v6h4l5 5V4L7 9H3Zm13.5 3a4.5 4.5 0 0 0-2.5-4.03v8.06A4.5 4.5 0 0 0 16.5 12Zm-2.5-8.7v2.06A7 7 0 0 1 18 12a7 7 0 0 1-4 6.64v2.06A9 9 0 0 0 20 12a9 9 0 0 0-6-8.7Z"],["work","M10 4h4a2 2 0 0 1 2 2v2h4a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h4V6a2 2 0 0 1 2-2Zm0 4h4V6h-4v2Zm-6 2v8h16v-8H4Zm6 3h4v2h-4v-2Z"]]);function s(a,h="material-icon",e){const n=(a||"").trim(),v=c.get(n);return v?l`
2
- <svg
3
- class=${`${h} scb-svg-icon`}
4
- part=${e||o}
5
- aria-hidden="true"
6
- viewBox="0 0 24 24"
7
- focusable="false"
8
- >
9
- <path d=${v}></path>
10
- </svg>
11
- `:o}export{s as renderScbIcon};
@@ -1,103 +0,0 @@
1
- export * from './scb-accordion/scb-accordion-item';
2
- export * from './scb-accordion/scb-accordion';
3
- export * from './scb-action-card/scb-action-card';
4
- export * from './scb-app-bar/scb-app-bar';
5
- export * from './scb-avatar/scb-avatar';
6
- export * from './scb-badge/scb-badge';
7
- export * from './scb-breadcrumb/scb-breadcrumb-item';
8
- export * from './scb-breadcrumb/scb-breadcrumb';
9
- export * from './scb-button/scb-button';
10
- export * from './scb-calendar/scb-calendar-event';
11
- export * from './scb-calendar/scb-calendar';
12
- export * from './scb-calendar-card/scb-calendar-card';
13
- export * from './scb-card/scb-action-card';
14
- export * from './scb-card/scb-card';
15
- export * from './scb-card/scb-container-card';
16
- export * from './scb-card/scb-link-card';
17
- export * from './scb-card/scb-list-card';
18
- export * from './scb-card/scb-social-card';
19
- export * from './scb-checkbox/scb-checkbox-group';
20
- export * from './scb-checkbox/scb-checkbox';
21
- export * from './scb-chevron/scb-chevron';
22
- export * from './scb-chip/scb-chip';
23
- export * from './scb-collapse/scb-collapse';
24
- export * from './scb-container-card/scb-container-card';
25
- export * from './scb-cookies-consent/scb-cookies-consent';
26
- export * from './scb-datepicker/scb-datepicker';
27
- export * from './scb-dialog/scb-dialog';
28
- export * from './scb-divider/scb-divider';
29
- export * from './scb-drawer/scb-drawer';
30
- export * from './scb-drop-zone/scb-drop-zone';
31
- export * from './scb-dropdown/scb-dropdown';
32
- export * from './scb-fab/scb-fab';
33
- export * from './scb-fact-card/scb-fact-card-content';
34
- export * from './scb-fact-card/scb-fact-card';
35
- export * from './scb-footer/scb-footer-section';
36
- export * from './scb-footer/scb-footer';
37
- export * from './scb-gallery-grid/scb-gallery-grid';
38
- export * from './scb-grid/scb-grid-item';
39
- export * from './scb-grid/scb-grid';
40
- export * from './scb-grid/scb-stack';
41
- export * from './scb-header/scb-header-menu-group';
42
- export * from './scb-header/scb-header-menu-item';
43
- export * from './scb-header/scb-header-tab';
44
- export * from './scb-header/scb-header-utility';
45
- export * from './scb-header/scb-header';
46
- export * from './scb-horizontal-scroller/scb-horizontal-scroller';
47
- export * from './scb-icon/scb-icon';
48
- export * from './scb-icon-button/scb-icon-button';
49
- export * from './scb-keyfigure-card/scb-keyfigure-card';
50
- export * from './scb-link/scb-link';
51
- export * from './scb-link-card/scb-link-card';
52
- export * from './scb-list/scb-list-item';
53
- export * from './scb-list/scb-list';
54
- export * from './scb-list-card/scb-list-card';
55
- export * from './scb-menu/scb-menu-item';
56
- export * from './scb-menu/scb-menu-section';
57
- export * from './scb-menu/scb-menu';
58
- export * from './scb-menu/scb-sub-menu';
59
- export * from './scb-nav/scb-nav-item';
60
- export * from './scb-nav/scb-nav';
61
- export * from './scb-notification-card/scb-notification-card';
62
- export * from './scb-options-menu/scb-options-menu-item';
63
- export * from './scb-options-menu/scb-options-menu';
64
- export * from './scb-options-menu/scb-options-sub-menu';
65
- export * from './scb-overlay/scb-overlay';
66
- export * from './scb-pagination/scb-pagination';
67
- export * from './scb-progress-indicator/scb-progress-indicator';
68
- export * from './scb-progress-stepper/scb-progress-step';
69
- export * from './scb-progress-stepper/scb-progress-stepper';
70
- export * from './scb-radio-button/scb-radio-button';
71
- export * from './scb-radio-button/scb-radio-group';
72
- export * from './scb-scrollspy/scb-scrollspy';
73
- export * from './scb-search/scb-search';
74
- export * from './scb-segmented-button/scb-segmented-button';
75
- export * from './scb-segmented-button/scb-segmented-item';
76
- export * from './scb-select/scb-select-option';
77
- export * from './scb-select/scb-select';
78
- export * from './scb-skeleton/scb-skeleton';
79
- export * from './scb-slider/scb-slider';
80
- export * from './scb-snackbar/scb-snackbar';
81
- export * from './scb-social-card/scb-social-card';
82
- export * from './scb-status-pill/scb-status-pill';
83
- export * from './scb-stepper/scb-step';
84
- export * from './scb-stepper/scb-stepper';
85
- export * from './scb-switch/scb-switch';
86
- export * from './scb-table/scb-table';
87
- export * from './scb-table-advanced/scb-table-advanced';
88
- export * from './scb-tabs/scb-primary-tab';
89
- export * from './scb-tabs/scb-secondary-tab';
90
- export * from './scb-tabs/scb-tabs';
91
- export * from './scb-textfield/scb-textfield';
92
- export * from './scb-toc/scb-toc-item';
93
- export * from './scb-toc/scb-toc';
94
- export * from './scb-tooltip/scb-tooltip';
95
- export * from './scb-viz/scb-viz-actions-runtime';
96
- export * from './scb-viz/scb-viz-print-runtime';
97
- export * from './scb-viz/scb-viz-series-differentiation-registry';
98
- export * from './scb-viz/scb-viz-series-differentiation-runtime';
99
- export * from './scb-viz/scb-viz-table-runtime';
100
- export * from './scb-viz/scb-viz';
101
- export * from './shared/lazy-focus-ring';
102
- export * from './shared/lazy-ripple';
103
- export * from './shared/scb-icon-svg';
@@ -1,11 +0,0 @@
1
- import { LitElement } from 'lit';
2
- export declare class ScbChevron extends LitElement {
3
- open: boolean;
4
- static styles: import('lit').CSSResult;
5
- render(): import('lit-html').TemplateResult<1>;
6
- }
7
- declare global {
8
- interface HTMLElementTagNameMap {
9
- 'scb-chevron': ScbChevron;
10
- }
11
- }
@@ -1,41 +0,0 @@
1
- import { LitElement, PropertyValues, TemplateResult } from 'lit';
2
- export declare class ScbDatepicker extends LitElement {
3
- private _currentDate;
4
- private _selectedDate;
5
- private _showMonthDropdown;
6
- private _showYearDropdown;
7
- variant: 'datetime-local' | 'date';
8
- lang: 'sv' | 'en';
9
- selectedValue: string;
10
- open: boolean;
11
- private _selectedHour;
12
- private _selectedMinute;
13
- private readonly _viewportMargin;
14
- private readonly _popupOffset;
15
- private _removeLazyFocusRingListeners?;
16
- private _onWindowReposition;
17
- private _isRenderedInsideDialog;
18
- connectedCallback(): void;
19
- private _positionPopupWithinViewport;
20
- static styles: import('lit').CSSResult[];
21
- updated(changed: PropertyValues): void;
22
- disconnectedCallback(): void;
23
- private _monthNames;
24
- render(): TemplateResult;
25
- private _getMonthDays;
26
- private _outsideClickHandler;
27
- private _toggleMonthDropdown;
28
- private _toggleYearDropdown;
29
- private _onMonthChangeCustom;
30
- private _onYearChangeCustom;
31
- private _prevMonth;
32
- private _prevYear;
33
- private _nextMonth;
34
- private _nextYear;
35
- private _isToday;
36
- private _isSelected;
37
- private _selectDate;
38
- private _fireDateTimeChange;
39
- private _onTimeChange;
40
- private _close;
41
- }
@@ -1,4 +0,0 @@
1
- export declare const ensureFocusRingReady: () => void;
2
- export declare const ensureFocusRingOnFocusVisible: (event: Event) => void;
3
- export declare const ensureFocusRingOnTab: (event: KeyboardEvent) => void;
4
- export declare const addLazyFocusRingListeners: (...targets: EventTarget[]) => (() => void);
@@ -1,9 +0,0 @@
1
- export type LazyRippleElement = HTMLElement & {
2
- control?: HTMLElement | null;
3
- hovered?: boolean;
4
- handlePointerenter?: (event: PointerEvent) => void;
5
- handlePointerdown?: (event: PointerEvent) => void | Promise<void>;
6
- handleClick?: () => void;
7
- };
8
- export declare const ensureRippleReady: () => Promise<void>;
9
- export declare const syncRippleToControl: (ripple: LazyRippleElement | null | undefined, control: HTMLElement | null | undefined, event?: PointerEvent, click?: boolean) => Promise<void>;
@@ -1,3 +0,0 @@
1
- import { nothing } from 'lit';
2
- export declare function hasScbSvgIcon(name: string | undefined | null): boolean;
3
- export declare function renderScbIcon(name: string | undefined | null, className?: string, part?: string): typeof nothing | import('lit-html').TemplateResult<2>;