@logosphere-ui/core 0.0.0-alpha.5 → 0.0.0-alpha.50
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/AGENTS.md +1204 -0
- package/dist/AGENTS.md +1204 -0
- package/dist/accordion-CYuCj7nB.cjs +21 -0
- package/dist/accordion-cDabqwu6.js +96 -0
- package/dist/accordion.cjs +1 -0
- package/dist/accordion.js +4 -0
- package/dist/atoms/Badge/badge.d.ts +1 -1
- package/dist/atoms/Button/button.d.ts +5 -3
- package/dist/atoms/Checkbox/checkbox.d.ts +13 -3
- package/dist/atoms/FormField/formfield.d.ts +12 -0
- package/dist/atoms/Slider/index.d.ts +1 -0
- package/dist/atoms/Slider/slider.d.ts +54 -0
- package/dist/badge-BhINg1p5.js +72 -0
- package/dist/badge-CKSG_MyA.cjs +13 -0
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/breadcrumb-BOuCLUJh.cjs +12 -0
- package/dist/breadcrumb-BeJqq-5C.js +41 -0
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.js +1 -1
- package/dist/button-CVkIa7M0.js +58 -0
- package/dist/button-vdNReBMi.cjs +10 -0
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/calendar-C71sj3Ki.js +652 -0
- package/dist/calendar-DZJM5Tyu.cjs +88 -0
- package/dist/calendar.cjs +1 -0
- package/dist/calendar.js +4 -0
- package/dist/{card-CUhlTJyJ.js → card-C7xXMV3h.js} +26 -25
- package/dist/card-DmQRNKtk.cjs +43 -0
- package/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/chatbot-BAou4THb.cjs +183 -0
- package/dist/chatbot-BRfqXYYt.js +564 -0
- package/dist/chatbot.cjs +1 -1
- package/dist/chatbot.js +2 -2
- package/dist/checkbox-BAbPDN6x.cjs +53 -0
- package/dist/checkbox-CTfbav6M.js +152 -0
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/chip-group-D4DwnC37.cjs +26 -0
- package/dist/chip-group-DzfOd6Vw.js +89 -0
- package/dist/chip-group.cjs +1 -0
- package/dist/chip-group.js +4 -0
- package/dist/collapse-CbRE8ABx.cjs +47 -0
- package/dist/collapse-DY6SJ9jS.js +141 -0
- package/dist/collapse.cjs +1 -0
- package/dist/collapse.js +4 -0
- package/dist/combobox-BAa3UAQs.cjs +113 -0
- package/dist/combobox-BR05Tgfd.js +460 -0
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.js +1 -1
- package/dist/datepicker-BFYWQRrJ.js +382 -0
- package/dist/datepicker-BWE4qDJM.cjs +85 -0
- package/dist/datepicker.cjs +1 -1
- package/dist/datepicker.js +2 -2
- package/dist/{download-manager-A4fOxGWJ.js → download-manager-BPg-6Qfg.js} +4 -4
- package/dist/download-manager-DDeTYRPs.cjs +97 -0
- package/dist/download-manager.cjs +1 -1
- package/dist/download-manager.js +1 -1
- package/dist/drawer-CRu4G2zu.cjs +32 -0
- package/dist/drawer-DhuBPWHP.js +114 -0
- package/dist/drawer.cjs +1 -0
- package/dist/drawer.js +4 -0
- package/dist/formfield-JXiv9mvJ.cjs +33 -0
- package/dist/formfield-ss2mFweu.js +161 -0
- package/dist/formfield.cjs +1 -1
- package/dist/formfield.js +1 -1
- package/dist/icon.cjs +1 -0
- package/dist/icon.js +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +15 -0
- package/dist/index.js +65 -32
- package/dist/index.umd.js +1613 -521
- package/dist/input-DyLKo7h6.cjs +60 -0
- package/dist/input-N3Z8D7q1.js +278 -0
- package/dist/input-group-C6sA1lzj.cjs +5 -0
- package/dist/input-group-DUPlrpug.js +66 -0
- package/dist/input-group.cjs +1 -0
- package/dist/input-group.js +4 -0
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/left-menu.cjs +1 -0
- package/dist/left-menu.js +5 -0
- package/dist/leftmenu-DiKo8iud.cjs +120 -0
- package/dist/leftmenu-DlU_G4Sj.js +373 -0
- package/dist/modal-g3KbWncV.cjs +84 -0
- package/dist/modal-vSjEpYrG.js +250 -0
- package/dist/modal.cjs +1 -1
- package/dist/modal.js +1 -1
- package/dist/molecules/Accordion/accordion.d.ts +42 -0
- package/dist/molecules/Accordion/index.d.ts +2 -0
- package/dist/molecules/Chip/chip-group.d.ts +29 -0
- package/dist/molecules/Chip/index.d.ts +2 -0
- package/dist/molecules/Collapse/collapse.d.ts +42 -0
- package/dist/molecules/Collapse/index.d.ts +2 -0
- package/dist/molecules/Input/input.d.ts +24 -1
- package/dist/molecules/InputGroup/index.d.ts +1 -0
- package/dist/molecules/InputGroup/input-group.d.ts +40 -0
- package/dist/molecules/Pagination/index.d.ts +1 -0
- package/dist/molecules/Pagination/pagination.d.ts +60 -0
- package/dist/molecules/Popover/popover.d.ts +5 -0
- package/dist/molecules/SplitButton/index.d.ts +2 -0
- package/dist/molecules/SplitButton/split-button.d.ts +53 -0
- package/dist/molecules/Stepper/index.d.ts +2 -0
- package/dist/molecules/Stepper/stepper.d.ts +34 -0
- package/dist/molecules/Textarea/text-area.d.ts +5 -2
- package/dist/molecules/TimePicker/index.d.ts +2 -0
- package/dist/molecules/TimePicker/timepicker.d.ts +62 -0
- package/dist/organisms/Calendar/calendar.d.ts +54 -0
- package/dist/organisms/Calendar/index.d.ts +1 -0
- package/dist/organisms/Calendar/shared.d.ts +9 -0
- package/dist/organisms/Chatbot/chatbot.d.ts +10 -1
- package/dist/organisms/Chatbot/index.d.ts +1 -1
- package/dist/organisms/Combobox/combobox.d.ts +39 -0
- package/dist/organisms/DatePicker/datepicker.d.ts +35 -33
- package/dist/organisms/Drawer/drawer.d.ts +30 -0
- package/dist/organisms/Drawer/index.d.ts +1 -0
- package/dist/organisms/LeftMenu/index.d.ts +2 -0
- package/dist/organisms/LeftMenu/leftmenu-types.d.ts +24 -0
- package/dist/organisms/LeftMenu/leftmenu.d.ts +60 -0
- package/dist/organisms/Modal/modal.d.ts +29 -4
- package/dist/organisms/Tab/tab.d.ts +13 -1
- package/dist/organisms/Toast/index.d.ts +2 -0
- package/dist/organisms/Toast/toast-container.d.ts +42 -0
- package/dist/organisms/Toast/toast.d.ts +48 -0
- package/dist/organisms/TreeMenu/index.d.ts +1 -0
- package/dist/organisms/TreeMenu/tree-menu.d.ts +59 -0
- package/dist/pagination-CjXvpE2j.js +360 -0
- package/dist/pagination-Nnzacqdo.cjs +169 -0
- package/dist/pagination.cjs +1 -0
- package/dist/pagination.js +4 -0
- package/dist/popover-CrXUbUR-.cjs +30 -0
- package/dist/popover-M5ZcS5rj.js +161 -0
- package/dist/popover.cjs +1 -1
- package/dist/popover.js +1 -1
- package/dist/shared/icons/index.d.ts +1 -0
- package/dist/shared/types/button.types.d.ts +7 -0
- package/dist/slider-DSRs5uhl.cjs +108 -0
- package/dist/slider-ntLRajQa.js +280 -0
- package/dist/slider.cjs +1 -0
- package/dist/slider.js +4 -0
- package/dist/split-button-BdBweoip.js +177 -0
- package/dist/split-button-BpffPlVg.cjs +63 -0
- package/dist/split-button.cjs +1 -0
- package/dist/split-button.js +4 -0
- package/dist/stepper-CZhwgLNp.js +122 -0
- package/dist/stepper-ZOMaU6aZ.cjs +52 -0
- package/dist/stepper.cjs +1 -0
- package/dist/stepper.js +4 -0
- package/dist/styles/main.css +186 -182
- package/dist/switch-Do6SCkPJ.cjs +17 -0
- package/dist/switch-uYVuohJ-.js +68 -0
- package/dist/switch.cjs +1 -1
- package/dist/switch.js +1 -1
- package/dist/tab-BvRVHpWs.cjs +41 -0
- package/dist/tab-Byh4UgFB.js +204 -0
- package/dist/tab.cjs +1 -1
- package/dist/tab.js +1 -1
- package/dist/text-area-1rALZ0iy.js +239 -0
- package/dist/text-area-D_TYL4_q.cjs +51 -0
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timepicker-B9l6HN-d.js +320 -0
- package/dist/timepicker-Bpf2d4Nn.cjs +119 -0
- package/dist/timepicker.cjs +1 -0
- package/dist/timepicker.js +4 -0
- package/dist/toast-container-C5qYjInG.js +274 -0
- package/dist/toast-container-D2dyP20J.cjs +64 -0
- package/dist/toast.cjs +1 -0
- package/dist/toast.js +6 -0
- package/dist/tree-menu-BZ7aBC7R.js +237 -0
- package/dist/tree-menu-DDQ_DYl7.cjs +78 -0
- package/dist/tree-menu.cjs +1 -0
- package/dist/tree-menu.js +4 -0
- package/dist/ui-icon-BeR-PaPg.js +75 -0
- package/dist/ui-icon-DWl7I5BQ.cjs +22 -0
- package/package.json +104 -15
- package/dist/badge-BbhaO73N.cjs +0 -13
- package/dist/badge-DE7Tgd8Z.js +0 -71
- package/dist/breadcrumb-B-4yqoJZ.js +0 -41
- package/dist/breadcrumb-Cop-B1J7.cjs +0 -12
- package/dist/button-C1EwOosO.js +0 -58
- package/dist/button-CDRccsk9.cjs +0 -10
- package/dist/card-n8ka8Zk-.cjs +0 -43
- package/dist/chatbot-Da_itUdJ.cjs +0 -160
- package/dist/chatbot-zkxngMRH.js +0 -481
- package/dist/checkbox-7Rb3WKGx.js +0 -119
- package/dist/checkbox-CdDTRdKV.cjs +0 -37
- package/dist/combobox-BJbI-Tgi.js +0 -268
- package/dist/combobox-pmE7bgEL.cjs +0 -99
- package/dist/datepicker-DFJx45C-.js +0 -750
- package/dist/datepicker-b9JGTTMx.cjs +0 -115
- package/dist/download-manager-BSIMTGaK.cjs +0 -97
- package/dist/formfield-D_7NFFoe.cjs +0 -27
- package/dist/formfield-d8fp9FTV.js +0 -118
- package/dist/input-BcnI1w3_.cjs +0 -46
- package/dist/input-Bj_7u8Iv.js +0 -192
- package/dist/modal-Bfc6WQSL.js +0 -110
- package/dist/modal-DQ8VFL-P.cjs +0 -39
- package/dist/popover-B7tCqk3R.js +0 -140
- package/dist/popover-C2p5Pmts.cjs +0 -30
- package/dist/switch-Cpl53nRW.js +0 -64
- package/dist/switch-Rnnn10bn.cjs +0 -17
- package/dist/tab-BKdN4xAz.js +0 -176
- package/dist/tab-DcjAlXzU.cjs +0 -40
- package/dist/text-area-BkHdLnZj.cjs +0 -44
- package/dist/text-area-CC24lj8v.js +0 -204
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import "../../shared/icons/ui-icon";
|
|
3
|
+
export type StepState = "completed" | "current" | "upcoming" | "disabled";
|
|
4
|
+
export type StepperOrientation = "horizontal" | "vertical";
|
|
5
|
+
export interface StepItem {
|
|
6
|
+
title: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
state?: StepState;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare class Stepper extends LitElement {
|
|
12
|
+
static styles: import("lit").CSSResult[];
|
|
13
|
+
/** Array of step definitions */
|
|
14
|
+
steps: StepItem[];
|
|
15
|
+
/** Index of the currently active step (0-based). Used when steps have no explicit state. */
|
|
16
|
+
activeStep: number;
|
|
17
|
+
/** Layout direction */
|
|
18
|
+
orientation: StepperOrientation;
|
|
19
|
+
/** Allow clicking on steps to navigate */
|
|
20
|
+
clickable: boolean;
|
|
21
|
+
private _resolveState;
|
|
22
|
+
private _onStepClick;
|
|
23
|
+
private _onStepKeydown;
|
|
24
|
+
private _focusStep;
|
|
25
|
+
private _renderIndicator;
|
|
26
|
+
private _renderConnector;
|
|
27
|
+
private _renderStep;
|
|
28
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
29
|
+
}
|
|
30
|
+
declare global {
|
|
31
|
+
interface HTMLElementTagNameMap {
|
|
32
|
+
"logosphere-stepper": Stepper;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -15,13 +15,13 @@ export declare class TextArea extends LitElement {
|
|
|
15
15
|
minlength?: number;
|
|
16
16
|
maxlength?: number;
|
|
17
17
|
rows: number;
|
|
18
|
+
maxRows: number;
|
|
18
19
|
cols?: number;
|
|
19
20
|
wrap: "soft" | "hard";
|
|
20
21
|
resize: TextareaResize;
|
|
21
22
|
autoResize: boolean;
|
|
22
23
|
size: TextareaSize;
|
|
23
24
|
variant: TextareaVariant;
|
|
24
|
-
showClear: boolean;
|
|
25
25
|
label: string;
|
|
26
26
|
helper: string;
|
|
27
27
|
error: string;
|
|
@@ -29,6 +29,7 @@ export declare class TextArea extends LitElement {
|
|
|
29
29
|
disabled: boolean;
|
|
30
30
|
readonly: boolean;
|
|
31
31
|
private _internalError;
|
|
32
|
+
private _charCount;
|
|
32
33
|
get textareaElement(): HTMLTextAreaElement;
|
|
33
34
|
focus(): void;
|
|
34
35
|
blur(): void;
|
|
@@ -43,7 +44,9 @@ export declare class TextArea extends LitElement {
|
|
|
43
44
|
private handleKeyDown;
|
|
44
45
|
private handleKeyUp;
|
|
45
46
|
private handleClear;
|
|
46
|
-
updated(changedProperties: PropertyValues): void;
|
|
47
47
|
private getResizeClass;
|
|
48
|
+
firstUpdated(): void;
|
|
49
|
+
updated(changedProperties: PropertyValues): void;
|
|
50
|
+
private getWrapClass;
|
|
48
51
|
render(): import("lit-html").TemplateResult<1>;
|
|
49
52
|
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import "../Input/input.js";
|
|
3
|
+
import "../../shared/icons/ui-icon.js";
|
|
4
|
+
export type TimePickerSize = "default" | "large";
|
|
5
|
+
export type TimePickerVariant = "default" | "subtle";
|
|
6
|
+
export declare class TimePicker extends LitElement {
|
|
7
|
+
static styles: import("lit").CSSResult[];
|
|
8
|
+
/** Current value in "HH:MM" format */
|
|
9
|
+
value: string;
|
|
10
|
+
label: string;
|
|
11
|
+
helper: string;
|
|
12
|
+
error: string;
|
|
13
|
+
placeholder: string;
|
|
14
|
+
required: boolean;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
readonly: boolean;
|
|
17
|
+
size: TimePickerSize;
|
|
18
|
+
variant: TimePickerVariant;
|
|
19
|
+
/** Callback fired when the value changes */
|
|
20
|
+
onChange?: (value: string) => void;
|
|
21
|
+
private _isOpen;
|
|
22
|
+
/** Working copies — modified in popup, committed to `value` on confirm */
|
|
23
|
+
private _hour;
|
|
24
|
+
private _minute;
|
|
25
|
+
private _referenceEl?;
|
|
26
|
+
private _popupEl?;
|
|
27
|
+
private _popperInstance?;
|
|
28
|
+
connectedCallback(): void;
|
|
29
|
+
disconnectedCallback(): void;
|
|
30
|
+
willUpdate(changed: Map<string, unknown>): void;
|
|
31
|
+
updated(changed: Map<string, unknown>): void;
|
|
32
|
+
private _parseValue;
|
|
33
|
+
private _pad;
|
|
34
|
+
private _updatePopper;
|
|
35
|
+
private _destroyPopper;
|
|
36
|
+
private _showPopover;
|
|
37
|
+
private _hidePopover;
|
|
38
|
+
private _handleOutsideClick;
|
|
39
|
+
private _togglePopup;
|
|
40
|
+
private _clearValue;
|
|
41
|
+
private _setNow;
|
|
42
|
+
private _emit;
|
|
43
|
+
/** Handles typing inside the masked logosphere-input */
|
|
44
|
+
private _handleInputChange;
|
|
45
|
+
/** Handles the clear button click from the internal logosphere-input */
|
|
46
|
+
private _handleInputClear;
|
|
47
|
+
private _incrementHour;
|
|
48
|
+
private _decrementHour;
|
|
49
|
+
private _incrementMinute;
|
|
50
|
+
private _decrementMinute;
|
|
51
|
+
private _syncValue;
|
|
52
|
+
private _spinInterval?;
|
|
53
|
+
private _startSpin;
|
|
54
|
+
private _stopSpin;
|
|
55
|
+
private _renderPopup;
|
|
56
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
57
|
+
}
|
|
58
|
+
declare global {
|
|
59
|
+
interface HTMLElementTagNameMap {
|
|
60
|
+
"logosphere-timepicker": TimePicker;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import "../../shared/icons/ui-icon";
|
|
3
|
+
export declare class LogosphereCalendar extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult[];
|
|
5
|
+
value: string | null;
|
|
6
|
+
min: string | null;
|
|
7
|
+
max: string | null;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
rangeMode: boolean;
|
|
10
|
+
disabledDays: number[];
|
|
11
|
+
rangeStart: string | null;
|
|
12
|
+
rangeEnd: string | null;
|
|
13
|
+
closable: boolean;
|
|
14
|
+
onChange?: (value: string | null) => void;
|
|
15
|
+
onRangeChange?: (range: {
|
|
16
|
+
start: string;
|
|
17
|
+
end: string;
|
|
18
|
+
}) => void;
|
|
19
|
+
private _cursor;
|
|
20
|
+
private _rangeStart;
|
|
21
|
+
private _rangeEnd;
|
|
22
|
+
private _hoverDate;
|
|
23
|
+
private _viewMode;
|
|
24
|
+
protected willUpdate(changed: Map<string, unknown>): void;
|
|
25
|
+
focusGrid(): void;
|
|
26
|
+
private _emitStateChange;
|
|
27
|
+
private _emitChange;
|
|
28
|
+
private _emitRangeChange;
|
|
29
|
+
private _withinBounds;
|
|
30
|
+
private _getYears;
|
|
31
|
+
private _getHeaderLabel;
|
|
32
|
+
private _daysInGrid;
|
|
33
|
+
private _isInRange;
|
|
34
|
+
private _getHoverPreview;
|
|
35
|
+
private _getDayClasses;
|
|
36
|
+
private _select;
|
|
37
|
+
private _clear;
|
|
38
|
+
private _today;
|
|
39
|
+
private _navigatePrevious;
|
|
40
|
+
private _navigateNext;
|
|
41
|
+
private _handleHeaderClick;
|
|
42
|
+
private _selectMonth;
|
|
43
|
+
private _selectYear;
|
|
44
|
+
private _keydownGrid;
|
|
45
|
+
private _renderCalendar;
|
|
46
|
+
private _renderMonthGrid;
|
|
47
|
+
private _renderYearGrid;
|
|
48
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
49
|
+
}
|
|
50
|
+
declare global {
|
|
51
|
+
interface HTMLElementTagNameMap {
|
|
52
|
+
"logosphere-calendar": LogosphereCalendar;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./calendar";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import dayjs from "dayjs";
|
|
2
|
+
import type { Dayjs } from "dayjs";
|
|
3
|
+
import "dayjs/locale/tr";
|
|
4
|
+
export { dayjs };
|
|
5
|
+
export type { Dayjs };
|
|
6
|
+
export declare const DATE_FORMATS: string[];
|
|
7
|
+
export declare const MONTHS: string[];
|
|
8
|
+
export declare const WEEKDAYS: string[];
|
|
9
|
+
export declare function safeDay(value?: string | null): Dayjs | null;
|
|
@@ -5,8 +5,9 @@ import "../../shared/icons/ui-icon";
|
|
|
5
5
|
type Product = {
|
|
6
6
|
id: string;
|
|
7
7
|
name: string;
|
|
8
|
+
selected?: boolean;
|
|
8
9
|
};
|
|
9
|
-
export declare class
|
|
10
|
+
export declare class LogosphereChatBot extends LitElement {
|
|
10
11
|
static styles: import("lit").CSSResult[];
|
|
11
12
|
private static readonly ICONS;
|
|
12
13
|
returnUri: string;
|
|
@@ -30,6 +31,8 @@ export declare class LedsUiChatbot extends LitElement {
|
|
|
30
31
|
private position;
|
|
31
32
|
private isDragging;
|
|
32
33
|
private screenWidth;
|
|
34
|
+
private userAtBottom;
|
|
35
|
+
private showScrollDown;
|
|
33
36
|
private dragStartPos;
|
|
34
37
|
private initialPosition;
|
|
35
38
|
private isResizing;
|
|
@@ -43,6 +46,7 @@ export declare class LedsUiChatbot extends LitElement {
|
|
|
43
46
|
disconnectedCallback(): void;
|
|
44
47
|
firstUpdated(): Promise<void>;
|
|
45
48
|
updated(changed: PropertyValues): void;
|
|
49
|
+
private _resolveInitialProduct;
|
|
46
50
|
private handleProductUpdate;
|
|
47
51
|
private updateComboboxItems;
|
|
48
52
|
private onProductChange;
|
|
@@ -60,7 +64,12 @@ export declare class LedsUiChatbot extends LitElement {
|
|
|
60
64
|
private addMessage;
|
|
61
65
|
private handleKeyDown;
|
|
62
66
|
private onInput;
|
|
67
|
+
private isNearBottom;
|
|
68
|
+
private onChatScroll;
|
|
63
69
|
private scrollToBottom;
|
|
70
|
+
private onScrollToBottomClick;
|
|
71
|
+
private rateMessage;
|
|
72
|
+
private onRate;
|
|
64
73
|
private onCopyMessage;
|
|
65
74
|
private formatContent;
|
|
66
75
|
render(): import("lit-html").TemplateResult<1>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { LogosphereChatBot } from './chatbot';
|
|
@@ -1,26 +1,54 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
+
import "../../atoms/Badge/badge";
|
|
2
3
|
import "../../atoms/Checkbox";
|
|
4
|
+
import "../../atoms/FormField/formfield";
|
|
3
5
|
import "../../shared/icons/ui-icon";
|
|
4
6
|
type ComboboxItem = Record<string, unknown>;
|
|
7
|
+
type ComboboxItemRenderer = (item: ComboboxItem, context: {
|
|
8
|
+
index: number;
|
|
9
|
+
selected: boolean;
|
|
10
|
+
focused: boolean;
|
|
11
|
+
multiple: boolean;
|
|
12
|
+
}) => unknown;
|
|
5
13
|
export declare class Combobox extends LitElement {
|
|
6
14
|
static styles: import("lit").CSSResult[];
|
|
7
15
|
readonly inputId: string;
|
|
8
16
|
label: string;
|
|
17
|
+
helper: string;
|
|
18
|
+
error: string;
|
|
9
19
|
placeholder: string;
|
|
10
20
|
required: boolean;
|
|
21
|
+
disabled: boolean;
|
|
11
22
|
readOnly: boolean;
|
|
23
|
+
variant: "default" | "subtle";
|
|
12
24
|
multiple: boolean;
|
|
13
25
|
filterable: boolean;
|
|
14
26
|
optionLabel: string;
|
|
15
27
|
optionValue: string;
|
|
16
28
|
emptyMessage: string;
|
|
17
29
|
items: ComboboxItem[];
|
|
30
|
+
itemRenderer?: ComboboxItemRenderer;
|
|
18
31
|
size: "default" | "large";
|
|
32
|
+
clearable: boolean;
|
|
19
33
|
private selected;
|
|
20
34
|
private inputValue;
|
|
35
|
+
private _pendingValue;
|
|
36
|
+
/**
|
|
37
|
+
* Primitive seçim değeri — `optionValue` alanı üzerinden items içinde
|
|
38
|
+
* eşleştirilir; `multiple`'da dizi. `items` henüz yüklenmemişse atama
|
|
39
|
+
* bekletilir, items gelince uygulanır. Programatik atama event yayınlamaz.
|
|
40
|
+
*/
|
|
41
|
+
get value(): unknown;
|
|
42
|
+
set value(v: unknown);
|
|
43
|
+
private _applyPendingValue;
|
|
21
44
|
private isOpen;
|
|
22
45
|
private focusedIndex;
|
|
46
|
+
private _referenceElement?;
|
|
47
|
+
private _formFieldElement?;
|
|
48
|
+
private _dropdownElement?;
|
|
23
49
|
private _filteredItems;
|
|
50
|
+
private _filteredGroups;
|
|
51
|
+
private _popperInstance?;
|
|
24
52
|
willUpdate(changed: Map<string, unknown>): void;
|
|
25
53
|
updated(changed: Map<string, unknown>): void;
|
|
26
54
|
private _handleOutsideClick;
|
|
@@ -30,6 +58,8 @@ export declare class Combobox extends LitElement {
|
|
|
30
58
|
private get _filterDisplayValue();
|
|
31
59
|
private _focusFilterInput;
|
|
32
60
|
private _scrollFocusedIntoView;
|
|
61
|
+
private _getGroupItems;
|
|
62
|
+
private _getGroupLabel;
|
|
33
63
|
private _handleKeydown;
|
|
34
64
|
selectedItems(): ComboboxItem[];
|
|
35
65
|
isSelected(item: ComboboxItem): boolean;
|
|
@@ -41,9 +71,18 @@ export declare class Combobox extends LitElement {
|
|
|
41
71
|
private _onFilterInput;
|
|
42
72
|
private _stopPropagation;
|
|
43
73
|
private _onTriggerClick;
|
|
74
|
+
private _onFieldClick;
|
|
75
|
+
private _onChevronClick;
|
|
44
76
|
private _renderTagList;
|
|
77
|
+
private _renderItemContent;
|
|
45
78
|
private _renderTriggerContent;
|
|
46
79
|
private _renderDropdown;
|
|
80
|
+
private _getPopperModifiers;
|
|
81
|
+
private _getPopperReferenceElement;
|
|
82
|
+
private _updatePopper;
|
|
83
|
+
private _destroyPopper;
|
|
84
|
+
private _showPopover;
|
|
85
|
+
private _hidePopover;
|
|
47
86
|
render(): import("lit-html").TemplateResult<1>;
|
|
48
87
|
}
|
|
49
88
|
export {};
|
|
@@ -1,79 +1,81 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
-
import "
|
|
2
|
+
import "../../atoms/FormField/formfield.js";
|
|
3
|
+
import "../Calendar/index";
|
|
3
4
|
import "../../shared/icons/ui-icon";
|
|
4
|
-
export
|
|
5
|
+
export type DatePickerSize = "default" | "large";
|
|
6
|
+
export type DatePickerVariant = "default" | "subtle";
|
|
7
|
+
export declare class LogosphereDatePicker extends LitElement {
|
|
5
8
|
static styles: import("lit").CSSResult[];
|
|
6
9
|
value: string | null;
|
|
7
10
|
min: string | null;
|
|
8
11
|
max: string | null;
|
|
9
12
|
required: boolean;
|
|
10
13
|
disabled: boolean;
|
|
14
|
+
readonly: boolean;
|
|
11
15
|
expandFactor: number;
|
|
12
16
|
placeholder: string;
|
|
13
|
-
/**
|
|
17
|
+
/** Alanın görünüm formatı (dayjs format string'i). Parse'da da öncelikli denenir. */
|
|
18
|
+
displayFormat: string;
|
|
19
|
+
label: string;
|
|
20
|
+
helper: string;
|
|
21
|
+
error: string;
|
|
22
|
+
size: DatePickerSize;
|
|
23
|
+
variant: DatePickerVariant;
|
|
14
24
|
rangeMode: boolean;
|
|
15
25
|
disabledDays: number[];
|
|
16
|
-
/** Pre-selected range start date (YYYY-MM-DD). Only used when rangeMode=true. */
|
|
17
26
|
rangeStart: string | null;
|
|
18
|
-
/** Pre-selected range end date (YYYY-MM-DD). Only used when rangeMode=true. */
|
|
19
27
|
rangeEnd: string | null;
|
|
20
|
-
/** Callback fired when a single date is selected or cleared. Receives ISO string or null. */
|
|
21
28
|
onChange?: (value: string | null) => void;
|
|
22
|
-
/** Callback fired when a complete range is selected. */
|
|
23
29
|
onRangeChange?: (range: {
|
|
24
30
|
start: string;
|
|
25
31
|
end: string;
|
|
26
32
|
}) => void;
|
|
27
33
|
private _open;
|
|
28
|
-
private _cursor;
|
|
29
|
-
private _popupPos;
|
|
30
34
|
private _rangeStart;
|
|
31
35
|
private _rangeEnd;
|
|
32
|
-
private _hoverDate;
|
|
33
|
-
private _viewMode;
|
|
34
36
|
private _hasError;
|
|
35
37
|
private _errorMsg;
|
|
38
|
+
private _inputDraft;
|
|
39
|
+
private _referenceElement?;
|
|
40
|
+
private _popupElement?;
|
|
41
|
+
private _inputElement?;
|
|
42
|
+
private _popperInstance?;
|
|
36
43
|
private _errorTimer;
|
|
37
44
|
readonly inputId: string;
|
|
38
45
|
protected willUpdate(changed: Map<string, unknown>): void;
|
|
39
|
-
private _outsideClick;
|
|
40
|
-
private _onScrollOrResize;
|
|
41
46
|
connectedCallback(): void;
|
|
42
47
|
disconnectedCallback(): void;
|
|
48
|
+
updated(changed: Map<string, unknown>): void;
|
|
49
|
+
private _outsideClick;
|
|
43
50
|
private _safeDay;
|
|
51
|
+
private _isInputFocused;
|
|
44
52
|
private _withinBounds;
|
|
45
53
|
private _displayValue;
|
|
46
|
-
private
|
|
47
|
-
private _getHeaderLabel;
|
|
48
|
-
private _daysInGrid;
|
|
49
|
-
private _isInRange;
|
|
50
|
-
private _getHoverPreview;
|
|
51
|
-
private _getDayClasses;
|
|
54
|
+
private _inputValue;
|
|
52
55
|
private _emitChange;
|
|
53
56
|
private _emitRangeChange;
|
|
54
57
|
private _showInputError;
|
|
55
58
|
private _clearInputError;
|
|
56
59
|
private _toggleOpen;
|
|
60
|
+
private _openDropdown;
|
|
57
61
|
private _onInput;
|
|
62
|
+
private _parseSingleDate;
|
|
63
|
+
private _parseRangeInput;
|
|
58
64
|
private _onKeydown;
|
|
65
|
+
private _onBlur;
|
|
59
66
|
private _parseAndSetDate;
|
|
60
|
-
private
|
|
61
|
-
private
|
|
62
|
-
private
|
|
63
|
-
private
|
|
64
|
-
private
|
|
65
|
-
private
|
|
66
|
-
private
|
|
67
|
-
private
|
|
68
|
-
private _keydownGrid;
|
|
69
|
-
private _recalcPopupPos;
|
|
70
|
-
private _renderCalendar;
|
|
71
|
-
private _renderMonthGrid;
|
|
72
|
-
private _renderYearGrid;
|
|
67
|
+
private _updatePopper;
|
|
68
|
+
private _getPopperModifiers;
|
|
69
|
+
private _destroyPopper;
|
|
70
|
+
private _handleCalendarChange;
|
|
71
|
+
private _handleCalendarRangeChange;
|
|
72
|
+
private _handleCalendarStateChange;
|
|
73
|
+
private _handleSuffixClick;
|
|
74
|
+
private _handleClearClick;
|
|
73
75
|
render(): import("lit-html").TemplateResult<1>;
|
|
74
76
|
}
|
|
75
77
|
declare global {
|
|
76
78
|
interface HTMLElementTagNameMap {
|
|
77
|
-
"logosphere-datepicker":
|
|
79
|
+
"logosphere-datepicker": LogosphereDatePicker;
|
|
78
80
|
}
|
|
79
81
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import "../../atoms/Button/button";
|
|
3
|
+
import "../../shared/icons/ui-icon";
|
|
4
|
+
export declare class Drawer extends LitElement {
|
|
5
|
+
static styles: import("lit").CSSResult[];
|
|
6
|
+
open: boolean;
|
|
7
|
+
title: string;
|
|
8
|
+
position: "left" | "right";
|
|
9
|
+
width: number;
|
|
10
|
+
closeOnEsc: boolean;
|
|
11
|
+
containerSelector: string;
|
|
12
|
+
private _frameStyle;
|
|
13
|
+
connectedCallback(): void;
|
|
14
|
+
disconnectedCallback(): void;
|
|
15
|
+
protected updated(changed: Map<string, unknown>): void;
|
|
16
|
+
openDrawer(): void;
|
|
17
|
+
closeDrawer(): void;
|
|
18
|
+
private _setOpen;
|
|
19
|
+
private _onKeyDown;
|
|
20
|
+
private _onTriggerClick;
|
|
21
|
+
private _onCloseClick;
|
|
22
|
+
private _resolveContainer;
|
|
23
|
+
private _syncFrame;
|
|
24
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
25
|
+
}
|
|
26
|
+
declare global {
|
|
27
|
+
interface HTMLElementTagNameMap {
|
|
28
|
+
"logosphere-drawer": Drawer;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./drawer";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { BadgeSize, BadgeVariant } from "../../atoms/Badge/badge";
|
|
2
|
+
export interface MenuBadge {
|
|
3
|
+
text: string;
|
|
4
|
+
variant?: BadgeVariant;
|
|
5
|
+
size?: BadgeSize;
|
|
6
|
+
isRound?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface LeftMenuItem {
|
|
9
|
+
id: string;
|
|
10
|
+
label: string;
|
|
11
|
+
iconName?: string;
|
|
12
|
+
badges?: MenuBadge[];
|
|
13
|
+
active?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
children?: LeftMenuItem[];
|
|
16
|
+
data?: unknown;
|
|
17
|
+
}
|
|
18
|
+
export interface LeftMenuGroup {
|
|
19
|
+
id: string;
|
|
20
|
+
label?: string;
|
|
21
|
+
items: LeftMenuItem[];
|
|
22
|
+
}
|
|
23
|
+
export type LeftMenuEntry = LeftMenuItem | LeftMenuGroup;
|
|
24
|
+
export declare function isLeftMenuGroup(entry: LeftMenuEntry): entry is LeftMenuGroup;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import "../../atoms/Button/button";
|
|
3
|
+
import "../../molecules/Input/input";
|
|
4
|
+
import "../../molecules/Popover/popover";
|
|
5
|
+
import "../../shared/icons/ui-icon";
|
|
6
|
+
import "../TreeMenu/tree-menu";
|
|
7
|
+
import { type LeftMenuEntry } from "./leftmenu-types";
|
|
8
|
+
export type { LeftMenuEntry, LeftMenuGroup, LeftMenuItem, MenuBadge } from "./leftmenu-types";
|
|
9
|
+
export declare class LeftMenu extends LitElement {
|
|
10
|
+
static styles: import("lit").CSSResult[];
|
|
11
|
+
open: boolean;
|
|
12
|
+
openWidth: number;
|
|
13
|
+
storageKey: string;
|
|
14
|
+
items: LeftMenuEntry[];
|
|
15
|
+
defaultExpandedIds: string[];
|
|
16
|
+
leading: boolean;
|
|
17
|
+
private _expandedIds;
|
|
18
|
+
private _search;
|
|
19
|
+
private _searchExpandedIds;
|
|
20
|
+
private _hasCustomOpen;
|
|
21
|
+
private _hasCustomClosed;
|
|
22
|
+
private _closedToggleHover;
|
|
23
|
+
private _currentOpenWidth;
|
|
24
|
+
private _resizing;
|
|
25
|
+
private _isHydratingState;
|
|
26
|
+
private _resizeStartX;
|
|
27
|
+
private _resizeStartWidth;
|
|
28
|
+
connectedCallback(): void;
|
|
29
|
+
disconnectedCallback(): void;
|
|
30
|
+
protected updated(changed: Map<string, unknown>): void;
|
|
31
|
+
private _loadPersistedState;
|
|
32
|
+
private _persistState;
|
|
33
|
+
private _syncIconSlots;
|
|
34
|
+
private _onCustomOpenSlotChange;
|
|
35
|
+
private _onCustomClosedSlotChange;
|
|
36
|
+
private _allItems;
|
|
37
|
+
private _renderGroups;
|
|
38
|
+
private _setSearch;
|
|
39
|
+
private _handleSearchInput;
|
|
40
|
+
private _filterItems;
|
|
41
|
+
private _toggleOpen;
|
|
42
|
+
private _clampOpenWidth;
|
|
43
|
+
private _handleClosedToggleMouseEnter;
|
|
44
|
+
private _handleClosedToggleMouseLeave;
|
|
45
|
+
private _handleResizePointerDown;
|
|
46
|
+
private _handleResizePointerMove;
|
|
47
|
+
private _handleResizePointerUp;
|
|
48
|
+
private _removeResizeListeners;
|
|
49
|
+
private _collapseAll;
|
|
50
|
+
private _effectiveExpandedIds;
|
|
51
|
+
private _handleTreeToggle;
|
|
52
|
+
private _handleTreeNodeClick;
|
|
53
|
+
private _handleTreeItemClick;
|
|
54
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
55
|
+
}
|
|
56
|
+
declare global {
|
|
57
|
+
interface HTMLElementTagNameMap {
|
|
58
|
+
"logosphere-leftmenu": LeftMenu;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -1,21 +1,46 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
1
|
+
import { LitElement, nothing } from "lit";
|
|
2
|
+
import "../../shared/icons/ui-icon";
|
|
3
|
+
import "../../atoms/Button/button";
|
|
4
|
+
export type ModalSize = "sm" | "md" | "lg" | "xl" | "full";
|
|
2
5
|
export declare class Modal extends LitElement {
|
|
3
6
|
static styles: import("lit").CSSResult[];
|
|
4
7
|
open: boolean;
|
|
5
8
|
title: string;
|
|
9
|
+
size: ModalSize;
|
|
6
10
|
closeOnEsc: boolean;
|
|
7
11
|
closeOnBackdrop: boolean;
|
|
8
12
|
showBack: boolean;
|
|
9
13
|
showClose: boolean;
|
|
10
|
-
|
|
14
|
+
showIcon: boolean;
|
|
15
|
+
footer: boolean;
|
|
16
|
+
okLabel: string;
|
|
17
|
+
cancelLabel: string;
|
|
18
|
+
showCancel: boolean;
|
|
19
|
+
onOk?: () => void;
|
|
20
|
+
onCancel?: () => void;
|
|
21
|
+
private hasFooterSlot;
|
|
22
|
+
private hasHeaderSlot;
|
|
23
|
+
private dialogElement;
|
|
24
|
+
private previousActiveElement;
|
|
25
|
+
private focusableElements;
|
|
11
26
|
connectedCallback(): void;
|
|
12
27
|
disconnectedCallback(): void;
|
|
13
28
|
openModal(): void;
|
|
14
29
|
closeModal(): void;
|
|
15
30
|
private setOpen;
|
|
31
|
+
private lockBodyScroll;
|
|
32
|
+
private unlockBodyScroll;
|
|
33
|
+
private trapFocus;
|
|
16
34
|
private onKeyDown;
|
|
35
|
+
private handleTabKey;
|
|
17
36
|
private onBackdropClick;
|
|
18
|
-
private
|
|
37
|
+
private checkSlotContent;
|
|
38
|
+
private handleOk;
|
|
39
|
+
private handleCancel;
|
|
19
40
|
updated(changedProperties: Map<string | number | symbol, unknown>): void;
|
|
20
|
-
|
|
41
|
+
private get modalId();
|
|
42
|
+
private get sizeClass();
|
|
43
|
+
private get showHeader();
|
|
44
|
+
render(): import("lit-html").TemplateResult<1> | typeof nothing;
|
|
45
|
+
private renderFooter;
|
|
21
46
|
}
|
|
@@ -13,14 +13,26 @@ export declare class LogosphereTab extends LitElement {
|
|
|
13
13
|
tabs: TabItem[];
|
|
14
14
|
activeTab: string;
|
|
15
15
|
lazy: boolean;
|
|
16
|
-
variant: "default" | "card";
|
|
16
|
+
variant: "default" | "card" | "segmented";
|
|
17
17
|
private _focusedIndex;
|
|
18
18
|
private _renderedTabs;
|
|
19
19
|
private tablist?;
|
|
20
|
+
private _pillInitialized;
|
|
21
|
+
private _pillResizeObserver?;
|
|
20
22
|
connectedCallback(): void;
|
|
23
|
+
disconnectedCallback(): void;
|
|
21
24
|
protected willUpdate(changedProperties: PropertyValues): void;
|
|
22
25
|
private handleTabClick;
|
|
23
26
|
private handleKeyDown;
|
|
27
|
+
protected updated(changedProperties: PropertyValues): void;
|
|
28
|
+
/**
|
|
29
|
+
* Observe the tablist so the pill is repositioned whenever the list gains or
|
|
30
|
+
* changes size — this covers the cases where the first render happens while
|
|
31
|
+
* the tab is hidden (nested/lazy panels) or before web fonts load, when
|
|
32
|
+
* layout measurements would otherwise be 0 / stale.
|
|
33
|
+
*/
|
|
34
|
+
private _ensurePillObserver;
|
|
35
|
+
private _updateSegmentPill;
|
|
24
36
|
private scrollTabIntoView;
|
|
25
37
|
private renderTabButton;
|
|
26
38
|
private renderTabPanel;
|