@golemui/gui-lit 0.16.2 → 1.0.0-rc.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.
- package/CHANGELOG.md +20 -0
- package/{abstract-calendar-YDgwwbqe.js → abstract-calendar-BoqKPRmS.js} +51 -34
- package/{accordion.element-ChLmV6QT.js → accordion.element-BIgxl5e9.js} +0 -1
- package/{alert.element-9QFlqjj9.js → alert.element-DPWq9-0F.js} +3 -4
- package/{button.element-DxwYDdu6.js → button.element-3a7rRHbA.js} +42 -38
- package/{calendar-P9DzVryu.js → calendar-DTYKVYc3.js} +2 -2
- package/{calendar.element-O2of7VBr.js → calendar.element-MubSE1bx.js} +11 -12
- package/{checkbox.element-DMmer4Jw.js → checkbox.element-CVskoXEc.js} +0 -1
- package/{currency.element-ybKzwXEh.js → currency.element-YyL4TeL0.js} +0 -1
- package/{date-CG1562vW.js → date-DTYg8sog.js} +12 -13
- package/{date-input-D_Swskk4.js → date-input-BeQvyfln.js} +5 -3
- package/{date-picker.element-CP2_u_ZE.js → date-picker.element-DabW_-0-.js} +14 -9
- package/{date.element-p6aB6OGd.js → date.element-BtVJSIRk.js} +1 -2
- package/{dropdown.element-sbd3T145.js → dropdown.element-DqzC6aXR.js} +1 -2
- package/{flex.element-B0sG0YT1.js → flex.element-DG4Uaj_X.js} +0 -1
- package/{grid.element-Bf5aEjkj.js → grid.element-DCZsh-3J.js} +0 -1
- package/index.js +1243 -1210
- package/index.umd.cjs +136 -116
- package/lib/components/accordion.element.d.ts +1 -1
- package/lib/components/alert.element.d.ts +1 -1
- package/lib/components/button.element.d.ts +1 -1
- package/lib/components/calendar.element.d.ts +1 -1
- package/lib/components/checkbox.element.d.ts +1 -1
- package/lib/components/currency.element.d.ts +1 -1
- package/lib/components/date-picker.element.d.ts +2 -1
- package/lib/components/date.element.d.ts +1 -1
- package/lib/components/dropdown.element.d.ts +1 -1
- package/lib/components/flex.element.d.ts +1 -1
- package/lib/components/grid.element.d.ts +1 -1
- package/lib/components/list.element.d.ts +1 -1
- package/lib/components/markdown-text.element.d.ts +1 -1
- package/lib/components/markdown.element.d.ts +1 -1
- package/lib/components/number.element.d.ts +1 -1
- package/lib/components/password.element.d.ts +1 -1
- package/lib/components/radiogroup.element.d.ts +1 -1
- package/lib/components/range-calendar.element.d.ts +1 -1
- package/lib/components/range-date-input.element.d.ts +1 -1
- package/lib/components/range-date-picker.element.d.ts +1 -1
- package/lib/components/renderer.element.d.ts +1 -1
- package/lib/components/repeater.element.d.ts +1 -1
- package/lib/components/select.element.d.ts +1 -1
- package/lib/components/tabs.element.d.ts +1 -1
- package/lib/components/tags.element.d.ts +1 -1
- package/lib/components/textarea.element.d.ts +1 -1
- package/lib/components/textinput.element.d.ts +1 -1
- package/lib/components/toggle.element.d.ts +1 -1
- package/lib/widget.loaders.d.ts +1 -1
- package/{list-CVDHuXKS.js → list-D1oKnH89.js} +2 -3
- package/{list.element-Bgnx2CN_.js → list.element-Co3V3Cn5.js} +9 -10
- package/{markdown-text.element-C_1OqrGa.js → markdown-text.element-B8TfVLIO.js} +0 -1
- package/{markdown.element-1IF3G5KX.js → markdown.element-CNp4wbg9.js} +109 -106
- package/{number.element-zgd4L5hn.js → number.element-B6TsvHMK.js} +31 -40
- package/{one-of-DifUsEYY.js → one-of-C0ur6b_n.js} +13 -11
- package/package.json +6 -6
- package/{password.element-BT65mDsp.js → password.element-n-R9RbkB.js} +0 -1
- package/{pills-D0yyi-op.js → pills-B66qz_KX.js} +6 -6
- package/{radiogroup.element-DzHLgRh1.js → radiogroup.element-CeQn623u.js} +6 -7
- package/{range-calendar-CZGBBOzO.js → range-calendar-9skwbwlB.js} +4 -7
- package/{range-calendar.element-DQZXvd-L.js → range-calendar.element-QTE6vGNP.js} +1 -2
- package/{range-date-input-CcPYH7P3.js → range-date-input-Uy8134vi.js} +3 -6
- package/{range-date-input.element-v71P-oUp.js → range-date-input.element-Dj29D_OQ.js} +1 -2
- package/{range-date-picker.element-CA-KcQhA.js → range-date-picker.element-BUUKtKkz.js} +2 -3
- package/{renderer.element-DMsheQGi.js → renderer.element-CNyMn2Lu.js} +0 -1
- package/{repeater.element-Ry8HyMfW.js → repeater.element-CtNgB4F5.js} +0 -1
- package/{select.element-CjWqp9dd.js → select.element-jcDF1h-g.js} +10 -11
- package/{tabs.element-VLrtF1j5.js → tabs.element-BvAyI71N.js} +0 -1
- package/{tags.element-ed1_51GA.js → tags.element-CX3vQL8L.js} +2 -5
- package/{textarea.element-BTJLqnnI.js → textarea.element-Cu9ZW3K4.js} +0 -1
- package/{textinput.element-zI0iG-Cq.js → textinput.element-CkXNzMUg.js} +0 -1
- package/{toggle.element-NXRrhALB.js → toggle.element-C1kCw5H8.js} +9 -10
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FormWidget, LayoutWidget, WithWidget } from '@golemui/core';
|
|
2
2
|
import { LayoutWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
3
|
-
import { AccordionProps } from '@golemui/gui-shared';
|
|
3
|
+
import { AccordionProps } from '@golemui/gui-shared/internals';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
export declare class AccordionElement extends LitElement implements WithWidget {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
import { DisplayWidget, WithWidget } from '@golemui/core';
|
|
3
3
|
import { DisplayWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
4
|
-
import { AlertProps } from '@golemui/gui-shared';
|
|
4
|
+
import { AlertProps } from '@golemui/gui-shared/internals';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
export declare class AlertElement extends LitElement implements WithWidget {
|
|
7
7
|
widget: DisplayWidget;
|
|
@@ -2,7 +2,7 @@ import { ActionWidget, WithWidget } from '@golemui/core';
|
|
|
2
2
|
import { ActionWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
3
3
|
import { LitElement } from 'lit';
|
|
4
4
|
import { Subscription } from 'rxjs';
|
|
5
|
-
import { ButtonProps } from '@golemui/gui-shared';
|
|
5
|
+
import { ButtonProps } from '@golemui/gui-shared/internals';
|
|
6
6
|
export declare class ButtonElement extends LitElement implements WithWidget {
|
|
7
7
|
widget: ActionWidget;
|
|
8
8
|
formContext: LitFormContext<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputWidget, WithWidget } from '@golemui/core';
|
|
2
2
|
import { InputWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
3
|
-
import { CalendarProps } from '@golemui/gui-shared';
|
|
3
|
+
import { CalendarProps } from '@golemui/gui-shared/internals';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
export declare class CalendarElement extends LitElement implements WithWidget {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputWidget, WithWidget } from '@golemui/core';
|
|
2
2
|
import { InputWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
3
|
-
import { CheckboxProps } from '@golemui/gui-shared';
|
|
3
|
+
import { CheckboxProps } from '@golemui/gui-shared/internals';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
export declare class CheckboxElement extends LitElement implements WithWidget {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputWidget, WithWidget } from '@golemui/core';
|
|
2
2
|
import { InputWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
3
|
-
import { CurrencyProps } from '@golemui/gui-shared';
|
|
3
|
+
import { CurrencyProps } from '@golemui/gui-shared/internals';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
export declare class CurrencyElement extends LitElement implements WithWidget {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputWidget, WithWidget } from '@golemui/core';
|
|
2
2
|
import { InputWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
3
|
-
import { DatePickerProps } from '@golemui/gui-shared';
|
|
3
|
+
import { DatePickerProps } from '@golemui/gui-shared/internals';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
export declare class DatePickerElement extends LitElement implements WithWidget {
|
|
@@ -18,6 +18,7 @@ export declare class DatePickerElement extends LitElement implements WithWidget
|
|
|
18
18
|
connectedCallback(): void;
|
|
19
19
|
render(): import('lit-html').TemplateResult<1>;
|
|
20
20
|
valueChanged(event: CustomEvent): void;
|
|
21
|
+
onCalendarChange(event: CustomEvent): void;
|
|
21
22
|
onBlurCalendar(): void;
|
|
22
23
|
onInputError(event: CustomEvent): void;
|
|
23
24
|
onKeyUp(event: Event): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputWidget, WithWidget } from '@golemui/core';
|
|
2
2
|
import { InputWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
3
|
-
import { DatePickerProps } from '@golemui/gui-shared';
|
|
3
|
+
import { DatePickerProps } from '@golemui/gui-shared/internals';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
export declare class DateElement extends LitElement implements WithWidget {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputWidget, WithWidget } from '@golemui/core';
|
|
2
2
|
import { InputWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
3
|
-
import { DropdownProps } from '@golemui/gui-shared';
|
|
3
|
+
import { DropdownProps } from '@golemui/gui-shared/internals';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
5
|
import { Subject, Subscription } from 'rxjs';
|
|
6
6
|
export declare class DropdownElement extends LitElement implements WithWidget {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LayoutWidget, WithWidget } from '@golemui/core';
|
|
2
2
|
import { LayoutWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
3
|
-
import { FlexProps } from '@golemui/gui-shared';
|
|
3
|
+
import { FlexProps } from '@golemui/gui-shared/internals';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
export declare class FlexElement extends LitElement implements WithWidget {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LayoutWidget, WithWidget } from '@golemui/core';
|
|
2
2
|
import { LayoutWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
3
|
-
import { GridProps } from '@golemui/gui-shared';
|
|
3
|
+
import { GridProps } from '@golemui/gui-shared/internals';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
export declare class GridElement extends LitElement implements WithWidget {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputWidget, WithWidget } from '@golemui/core';
|
|
2
2
|
import { InputWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
3
|
-
import { ListProps } from '@golemui/gui-shared';
|
|
3
|
+
import { ListProps } from '@golemui/gui-shared/internals';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
export declare class ListElement extends LitElement implements WithWidget {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
import { DisplayWidget, WithWidget } from '@golemui/core';
|
|
3
3
|
import { DisplayWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
4
|
-
import { MarkdownTextProps } from '@golemui/gui-shared';
|
|
4
|
+
import { MarkdownTextProps } from '@golemui/gui-shared/internals';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
export declare class MarkdownTextElement extends LitElement implements WithWidget {
|
|
7
7
|
widget: DisplayWidget;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputWidget, WithWidget } from '@golemui/core';
|
|
2
2
|
import { InputWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
3
|
-
import { MarkdownProps } from '@golemui/gui-shared';
|
|
3
|
+
import { MarkdownProps } from '@golemui/gui-shared/internals';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
export declare class MarkdownElement extends LitElement implements WithWidget {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputWidget, WithWidget } from '@golemui/core';
|
|
2
2
|
import { InputWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
3
|
-
import { NumberinputProps } from '@golemui/gui-shared';
|
|
3
|
+
import { NumberinputProps } from '@golemui/gui-shared/internals';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
export declare class NumberElement extends LitElement implements WithWidget {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputWidget, WithWidget } from '@golemui/core';
|
|
2
2
|
import { InputWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
3
|
-
import { PasswordProps } from '@golemui/gui-shared';
|
|
3
|
+
import { PasswordProps } from '@golemui/gui-shared/internals';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
export declare class PasswordElement extends LitElement implements WithWidget {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputWidget, WithWidget } from '@golemui/core';
|
|
2
2
|
import { InputWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
3
|
-
import { RadiogroupProps } from '@golemui/gui-shared';
|
|
3
|
+
import { RadiogroupProps } from '@golemui/gui-shared/internals';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
export declare class RadiogroupElement extends LitElement implements WithWidget {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputWidget, WithWidget } from '@golemui/core';
|
|
2
2
|
import { InputWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
3
|
-
import { DateRange, RangeCalendarProps } from '@golemui/gui-shared';
|
|
3
|
+
import { DateRange, RangeCalendarProps } from '@golemui/gui-shared/internals';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
export declare class RangeCalendarElement extends LitElement implements WithWidget {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputWidget, WithWidget } from '@golemui/core';
|
|
2
2
|
import { InputWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
3
|
-
import { DateRange, RangeDateInputProps } from '@golemui/gui-shared';
|
|
3
|
+
import { DateRange, RangeDateInputProps } from '@golemui/gui-shared/internals';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
export declare class RangeDateInputElement extends LitElement implements WithWidget {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputWidget, WithWidget } from '@golemui/core';
|
|
2
2
|
import { InputWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
3
|
-
import { DateRange, RangeDatePickerProps } from '@golemui/gui-shared';
|
|
3
|
+
import { DateRange, RangeDatePickerProps } from '@golemui/gui-shared/internals';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
export declare class RangeDatePickerElement extends LitElement implements WithWidget {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DisplayWidget, WithWidget } from '@golemui/core';
|
|
2
2
|
import { DisplayWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
3
|
-
import { RendererProps } from '@golemui/gui-shared';
|
|
3
|
+
import { RendererProps } from '@golemui/gui-shared/internals';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
export declare class RendererElement extends LitElement implements WithWidget {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputWidget, WithWidget } from '@golemui/core';
|
|
2
|
-
import { RepeaterProps } from '@golemui/gui-shared';
|
|
2
|
+
import { RepeaterProps } from '@golemui/gui-shared/internals';
|
|
3
3
|
import { InputWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputWidget, WithWidget } from '@golemui/core';
|
|
2
2
|
import { InputWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
3
|
-
import { SelectProps } from '@golemui/gui-shared';
|
|
3
|
+
import { SelectProps } from '@golemui/gui-shared/internals';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
export declare class SelectElement extends LitElement implements WithWidget {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LayoutWidget, WithWidget } from '@golemui/core';
|
|
2
2
|
import { LayoutWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
3
|
-
import { TabsProps } from '@golemui/gui-shared';
|
|
3
|
+
import { TabsProps } from '@golemui/gui-shared/internals';
|
|
4
4
|
import { LitElement, PropertyValues } from 'lit';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
export declare class TabsElement extends LitElement implements WithWidget {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputWidget, WithWidget } from '@golemui/core';
|
|
2
2
|
import { InputWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
3
|
-
import { TagsProps } from '@golemui/gui-shared';
|
|
3
|
+
import { TagsProps } from '@golemui/gui-shared/internals';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
export declare class TagsElement extends LitElement implements WithWidget {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputWidget, WithWidget } from '@golemui/core';
|
|
2
2
|
import { InputWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
3
|
-
import { TextareaProps } from '@golemui/gui-shared';
|
|
3
|
+
import { TextareaProps } from '@golemui/gui-shared/internals';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
export declare class TextareaElement extends LitElement implements WithWidget {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputWidget, WithWidget } from '@golemui/core';
|
|
2
2
|
import { InputWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
3
|
-
import { TextinputProps } from '@golemui/gui-shared';
|
|
3
|
+
import { TextinputProps } from '@golemui/gui-shared/internals';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
export declare class TextinputElement extends LitElement implements WithWidget {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputWidget, WithWidget } from '@golemui/core';
|
|
2
2
|
import { InputWidgetAdapter, LitFormContext } from '@golemui/lit';
|
|
3
|
-
import { ToggleProps } from '@golemui/gui-shared';
|
|
3
|
+
import { ToggleProps } from '@golemui/gui-shared/internals';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
export declare class ToggleElement extends LitElement implements WithWidget {
|
package/lib/widget.loaders.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { WidgetLoaders, WithWidget } from '@golemui/core';
|
|
2
|
-
import { GolemWidget } from '@golemui/gui-shared';
|
|
2
|
+
import { GolemWidget } from '@golemui/gui-shared/internals';
|
|
3
3
|
import { Type } from '@golemui/lit';
|
|
4
4
|
export declare const widgetLoaders: WidgetLoaders<Type<WithWidget>, GolemWidget>;
|
|
@@ -2,8 +2,7 @@ import { html as c, LitElement as p, nothing as u } from "lit";
|
|
|
2
2
|
import { classMap as m } from "lit/directives/class-map.js";
|
|
3
3
|
import "@golemui/core";
|
|
4
4
|
import { property as a, state as d, query as f, customElement as v } from "lit/decorators.js";
|
|
5
|
-
|
|
6
|
-
const F = (e) => {
|
|
5
|
+
const T = (e) => {
|
|
7
6
|
const t = {
|
|
8
7
|
"gui-list__item": !0,
|
|
9
8
|
"gui-list__item-selected": !!e.selected,
|
|
@@ -280,5 +279,5 @@ r = l([
|
|
|
280
279
|
], r);
|
|
281
280
|
typeof customElements < "u" && !customElements.get("gui-list") && customElements.define("gui-list", r);
|
|
282
281
|
export {
|
|
283
|
-
|
|
282
|
+
T as d
|
|
284
283
|
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { InputWidgetAdapter as f, formContext as _, inputContext as b } from "@golemui/lit";
|
|
2
|
-
import "@golemui/gui-shared";
|
|
3
2
|
import { consume as $, provide as v } from "@lit/context";
|
|
4
|
-
import { LitElement as I, nothing as
|
|
3
|
+
import { LitElement as I, nothing as o, html as u } from "lit";
|
|
5
4
|
import { property as x, state as h, query as y, customElement as C } from "lit/decorators.js";
|
|
6
5
|
import "rxjs";
|
|
7
|
-
import { d as R } from "./list-
|
|
6
|
+
import { d as R } from "./list-D1oKnH89.js";
|
|
8
7
|
import "./errors-QjKhr6mA.js";
|
|
9
8
|
var w = Object.defineProperty, D = Object.getOwnPropertyDescriptor, r = (e, i, l, d) => {
|
|
10
|
-
for (var t = d > 1 ? void 0 : d ? D(i, l) : i,
|
|
11
|
-
(s = e[
|
|
9
|
+
for (var t = d > 1 ? void 0 : d ? D(i, l) : i, n = e.length - 1, s; n >= 0; n--)
|
|
10
|
+
(s = e[n]) && (t = (d ? s(i, l, t) : s(t)) || t);
|
|
12
11
|
return d && t && w(i, l, t), t;
|
|
13
12
|
};
|
|
14
13
|
let a = class extends I {
|
|
@@ -63,16 +62,16 @@ let a = class extends I {
|
|
|
63
62
|
?touched=${e.touched}
|
|
64
63
|
?disabled=${e.disabled}
|
|
65
64
|
?readonly=${e.readonly}
|
|
66
|
-
aria-labelledby=${e.label ? `${this.widget.uid}_label` :
|
|
67
|
-
aria-describedby=${e.hint ? `${this.widget.uid}_hint` :
|
|
65
|
+
aria-labelledby=${e.label ? `${this.widget.uid}_label` : o}
|
|
66
|
+
aria-describedby=${e.hint ? `${this.widget.uid}_hint` : o}
|
|
68
67
|
@gui-range-change=${this._onRangeChange}
|
|
69
68
|
@gui-update-items=${this._onUpdateItems}
|
|
70
69
|
@gui-focus-change=${this._onFocusChange}
|
|
71
70
|
@blur=${() => this.adapter.onBlur()}
|
|
72
71
|
@change=${this._valueChanged}
|
|
73
72
|
>
|
|
74
|
-
${l.map((t,
|
|
75
|
-
const s = this._range.start +
|
|
73
|
+
${l.map((t, n) => {
|
|
74
|
+
const s = this._range.start + n, p = e.value === t.value, g = this._focusedIndex === s, c = e.labelField ?? "label", m = t.template !== null && typeof t.template == "object" && c && !e.itemRenderer ? t.template[c] : t.template;
|
|
76
75
|
return u`
|
|
77
76
|
<div
|
|
78
77
|
role="option"
|
|
@@ -102,7 +101,7 @@ let a = class extends I {
|
|
|
102
101
|
.uid=${this.widget.uid}
|
|
103
102
|
.errors=${e.errors}
|
|
104
103
|
.touched=${e.touched}
|
|
105
|
-
></gui-errors>` :
|
|
104
|
+
></gui-errors>` : o}
|
|
106
105
|
`;
|
|
107
106
|
}
|
|
108
107
|
_onRangeChange(e) {
|
|
@@ -2,7 +2,6 @@ import { LitElement as n, html as c } from "lit";
|
|
|
2
2
|
import { property as l, customElement as m } from "lit/decorators.js";
|
|
3
3
|
import { consume as u, provide as h } from "@lit/context";
|
|
4
4
|
import { DisplayWidgetAdapter as f, formContext as x, displayWidgetContext as b } from "@golemui/lit";
|
|
5
|
-
import "@golemui/gui-shared";
|
|
6
5
|
import "./markdown-text-X-BRJT6K.js";
|
|
7
6
|
import "rxjs";
|
|
8
7
|
var g = Object.defineProperty, w = Object.getOwnPropertyDescriptor, d = (r, t, a, s) => {
|