@golemui/gui-lit 0.17.0 → 1.0.0-rc.1
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 +32 -0
- package/{abstract-calendar-s67Qu3Nt.js → abstract-calendar-BoqKPRmS.js} +21 -4
- 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-DoQmGWze.js → button.element-3a7rRHbA.js} +0 -1
- package/{calendar-aXb9yz-6.js → calendar-DTYKVYc3.js} +2 -2
- package/{calendar.element-D7OF4QVV.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-5Heujc5X.js → date-input-BeQvyfln.js} +1 -2
- package/{date-picker.element-DStQrD4x.js → date-picker.element-DabW_-0-.js} +2 -3
- package/{date.element-DymfLrlq.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 +1244 -1211
- package/index.umd.cjs +78 -52
- 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 +1 -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-BiAglcXP.js → markdown.element-CNp4wbg9.js} +0 -1
- package/{number.element-DlpxcOBs.js → number.element-B6TsvHMK.js} +10 -3
- 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/{radiogroup.element-tdHrN9V5.js → radiogroup.element-CeQn623u.js} +5 -6
- package/{range-calendar-DUoIqmOA.js → range-calendar-9skwbwlB.js} +2 -3
- package/{range-calendar.element-D6FO7HpL.js → range-calendar.element-QTE6vGNP.js} +1 -2
- package/{range-date-input-CoFG7Qem.js → range-date-input-Uy8134vi.js} +1 -2
- package/{range-date-input.element-Cjl1vZfr.js → range-date-input.element-Dj29D_OQ.js} +1 -2
- package/{range-date-picker.element-DqjOBKoT.js → range-date-picker.element-CuKIBkIO.js} +3 -4
- 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-Y9i1tsl-.js → select.element-jcDF1h-g.js} +7 -8
- package/{tabs.element-VLrtF1j5.js → tabs.element-BvAyI71N.js} +0 -1
- package/{tags.element-B3JP4m0z.js → tags.element-CX3vQL8L.js} +0 -1
- 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 {
|
|
@@ -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) => {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { InputWidgetAdapter as S, formContext as V, inputContext as T } from "@golemui/lit";
|
|
2
|
-
import "@golemui/gui-shared";
|
|
3
2
|
import { LitElement as L, html as u, nothing as $ } from "lit";
|
|
4
3
|
import { property as l, state as A, customElement as C } from "lit/decorators.js";
|
|
5
4
|
import { classMap as y } from "lit/directives/class-map.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { InputWidgetAdapter as v, formContext as y, inputContext as g } from "@golemui/lit";
|
|
2
|
-
import "@golemui/gui-shared";
|
|
3
2
|
import { LitElement as m, nothing as h, html as c } from "lit";
|
|
4
3
|
import { property as s, customElement as b } from "lit/decorators.js";
|
|
5
4
|
import { G as f, b as w, c as $ } from "./templates-Dk1jxLwS.js";
|
|
@@ -82,8 +81,16 @@ let a = class extends m {
|
|
|
82
81
|
@blur=${this.onBlur}
|
|
83
82
|
/>
|
|
84
83
|
<span class="gui-number__decoration">
|
|
85
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 256 256"
|
|
86
|
-
|
|
84
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 256 256">
|
|
85
|
+
<path
|
|
86
|
+
d="M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z"
|
|
87
|
+
></path>
|
|
88
|
+
</svg>
|
|
89
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 256 256">
|
|
90
|
+
<path
|
|
91
|
+
d="M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"
|
|
92
|
+
></path>
|
|
93
|
+
</svg>
|
|
87
94
|
</span>
|
|
88
95
|
</div>
|
|
89
96
|
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import "@golemui/core";
|
|
2
|
+
import "./index.js";
|
|
3
|
+
const i = (e) => e !== null && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "label") && Object.prototype.hasOwnProperty.call(e, "value");
|
|
4
|
+
function s(e) {
|
|
3
5
|
const r = typeof e;
|
|
4
6
|
return r === "string" || r === "number";
|
|
5
7
|
}
|
|
6
8
|
function b(e, r) {
|
|
7
9
|
return r.find((t) => t.value.toString() === e)?.value;
|
|
8
10
|
}
|
|
9
|
-
const
|
|
10
|
-
if (Array.isArray(e) && e.length > 0 && !
|
|
11
|
-
if (
|
|
11
|
+
const O = (e, r) => {
|
|
12
|
+
if (Array.isArray(e) && e.length > 0 && !i(e[0])) {
|
|
13
|
+
if (s(e[0]))
|
|
12
14
|
return e.map((t) => ({
|
|
13
15
|
label: t.toString(),
|
|
14
16
|
value: t
|
|
@@ -32,17 +34,17 @@ function f(e, { labelField: r, valueField: t }) {
|
|
|
32
34
|
const n = e, o = r && Object.prototype.hasOwnProperty.call(n, r) ? r : void 0, a = t && Object.prototype.hasOwnProperty.call(n, t) ? t : void 0;
|
|
33
35
|
if (!o && !a)
|
|
34
36
|
throw new Error("Neither labelField nor valueField exists on the object");
|
|
35
|
-
return (
|
|
36
|
-
if (
|
|
37
|
+
return (l) => {
|
|
38
|
+
if (l === null || typeof l != "object")
|
|
37
39
|
throw new Error("Item is not an object");
|
|
38
|
-
const
|
|
40
|
+
const c = l;
|
|
39
41
|
return {
|
|
40
|
-
label: o ?
|
|
41
|
-
value: a ?
|
|
42
|
+
label: o ? c[o] : "",
|
|
43
|
+
value: a ? c[a] : ""
|
|
42
44
|
};
|
|
43
45
|
};
|
|
44
46
|
}
|
|
45
47
|
export {
|
|
46
48
|
b as i,
|
|
47
|
-
|
|
49
|
+
O as u
|
|
48
50
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemui/gui-lit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-rc.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.umd.cjs",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"*.md"
|
|
22
22
|
],
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@golemui/lit": "0.
|
|
25
|
-
"@golemui/core": "0.
|
|
26
|
-
"@golemui/gui-components": "0.
|
|
27
|
-
"@golemui/gui-shared": "0.
|
|
28
|
-
"@golemui/gui-validators": "0.
|
|
24
|
+
"@golemui/lit": "1.0.0-rc.1",
|
|
25
|
+
"@golemui/core": "1.0.0-rc.1",
|
|
26
|
+
"@golemui/gui-components": "1.0.0-rc.1",
|
|
27
|
+
"@golemui/gui-shared": "1.0.0-rc.1",
|
|
28
|
+
"@golemui/gui-validators": "1.0.0-rc.1",
|
|
29
29
|
"@lit/context": "^1.1.6",
|
|
30
30
|
"lit-html": "^3.3.1",
|
|
31
31
|
"lit": "^3.3.1",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { InputWidgetAdapter as m, formContext as y, inputContext as P } from "@golemui/lit";
|
|
2
|
-
import "@golemui/gui-shared";
|
|
3
2
|
import { LitElement as w, nothing as n, html as u } from "lit";
|
|
4
3
|
import { property as o, state as g, customElement as b } from "lit/decorators.js";
|
|
5
4
|
import { classMap as v } from "lit/directives/class-map.js";
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { InputWidgetAdapter as
|
|
2
|
-
import "@golemui/gui-shared";
|
|
1
|
+
import { InputWidgetAdapter as m, formContext as y, inputContext as $ } from "@golemui/lit";
|
|
3
2
|
import { LitElement as b, html as p, nothing as c } from "lit";
|
|
4
3
|
import { repeat as f } from "lit-html/directives/repeat.js";
|
|
5
4
|
import { property as s, customElement as g } from "lit/decorators.js";
|
|
6
5
|
import { G as C, b as D, c as _ } from "./templates-Dk1jxLwS.js";
|
|
7
|
-
import { u as F, i as O } from "./one-of-
|
|
6
|
+
import { u as F, i as O } from "./one-of-C0ur6b_n.js";
|
|
8
7
|
import { consume as w, provide as E } from "@lit/context";
|
|
9
8
|
import "rxjs";
|
|
10
9
|
var S = Object.defineProperty, q = Object.getOwnPropertyDescriptor, o = (t, i, d, a) => {
|
|
@@ -63,11 +62,11 @@ let r = class extends b {
|
|
|
63
62
|
this.options || [],
|
|
64
63
|
(a) => a?.value,
|
|
65
64
|
(a, e) => {
|
|
66
|
-
const l = this.hasMatchingValue && a.value === t.value, n = !this.hasMatchingValue && e === 0,
|
|
65
|
+
const l = this.hasMatchingValue && a.value === t.value, n = !this.hasMatchingValue && e === 0, v = l || n;
|
|
67
66
|
return p`<label for=${`${this.uid}_${e}`}>
|
|
68
67
|
<input
|
|
69
68
|
type="radio"
|
|
70
|
-
tabindex=${
|
|
69
|
+
tabindex=${v ? "0" : "-1"}
|
|
71
70
|
id=${`${this.uid}_${e}`}
|
|
72
71
|
data-cy=${`${this.uid}_radiogroup_${e}`}
|
|
73
72
|
name=${this.uid}
|
|
@@ -173,7 +172,7 @@ var x = Object.defineProperty, P = Object.getOwnPropertyDescriptor, h = (t, i, d
|
|
|
173
172
|
};
|
|
174
173
|
let u = class extends b {
|
|
175
174
|
constructor() {
|
|
176
|
-
super(...arguments), this.adapter = new
|
|
175
|
+
super(...arguments), this.adapter = new m(), this.subscriptions = [];
|
|
177
176
|
}
|
|
178
177
|
createRenderRoot() {
|
|
179
178
|
return this;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { html as v, nothing as b } from "lit";
|
|
2
2
|
import { property as D, state as f, customElement as $ } from "lit/decorators.js";
|
|
3
3
|
import { classMap as w } from "lit/directives/class-map.js";
|
|
4
|
-
import { i as g, a as S, b as m, g as M, m as O, c as p } from "./date-
|
|
5
|
-
import { A } from "./abstract-calendar-
|
|
4
|
+
import { i as g, a as S, b as m, g as M, m as O, c as p } from "./date-DTYg8sog.js";
|
|
5
|
+
import { A } from "./abstract-calendar-BoqKPRmS.js";
|
|
6
6
|
import "./pills-B66qz_KX.js";
|
|
7
|
-
import "@golemui/gui-shared";
|
|
8
7
|
var E = Object.defineProperty, P = Object.getOwnPropertyDescriptor, u = (e, i, s, n) => {
|
|
9
8
|
for (var a = n > 1 ? void 0 : n ? P(i, s) : i, t = e.length - 1, r; t >= 0; t--)
|
|
10
9
|
(r = e[t]) && (a = (n ? r(i, s, a) : r(a)) || a);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { InputWidgetAdapter as d, formContext as o, inputContext as h } from "@golemui/lit";
|
|
2
|
-
import "
|
|
3
|
-
import "./range-calendar-DUoIqmOA.js";
|
|
2
|
+
import "./range-calendar-9skwbwlB.js";
|
|
4
3
|
import { consume as m, provide as u } from "@lit/context";
|
|
5
4
|
import { LitElement as c, html as b } from "lit";
|
|
6
5
|
import { property as D, customElement as $ } from "lit/decorators.js";
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import "@golemui/gui-shared";
|
|
2
1
|
import { LitElement as v, nothing as g, html as c } from "lit";
|
|
3
2
|
import { repeat as D } from "lit-html/directives/repeat.js";
|
|
4
3
|
import { property as h, state as f, customElement as b } from "lit/decorators.js";
|
|
5
4
|
import { classMap as _ } from "lit/directives/class-map.js";
|
|
6
5
|
import { live as $ } from "lit/directives/live.js";
|
|
7
6
|
import { G as I, b as A, c as w } from "./templates-Dk1jxLwS.js";
|
|
8
|
-
import { t as m, m as P } from "./date-
|
|
7
|
+
import { t as m, m as P } from "./date-DTYg8sog.js";
|
|
9
8
|
import "./pills-B66qz_KX.js";
|
|
10
9
|
import { styleMap as E } from "lit-html/directives/style-map.js";
|
|
11
10
|
var S = Object.defineProperty, M = Object.getOwnPropertyDescriptor, d = (t, e, s, a) => {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { InputWidgetAdapter as n, formContext as o, inputContext as u } from "@golemui/lit";
|
|
2
|
-
import "
|
|
3
|
-
import "./range-date-input-CoFG7Qem.js";
|
|
2
|
+
import "./range-date-input-Uy8134vi.js";
|
|
4
3
|
import { consume as h, provide as m } from "@lit/context";
|
|
5
4
|
import { LitElement as c, html as b } from "lit";
|
|
6
5
|
import { property as D, customElement as g } from "lit/decorators.js";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { InputWidgetAdapter as c, formContext as u, inputContext as m } from "@golemui/lit";
|
|
2
2
|
import { a as g, b as D, c as C } from "./templates-Dk1jxLwS.js";
|
|
3
|
-
import "
|
|
4
|
-
import "./range-
|
|
5
|
-
import "./range-date-input-CoFG7Qem.js";
|
|
3
|
+
import "./range-calendar-9skwbwlB.js";
|
|
4
|
+
import "./range-date-input-Uy8134vi.js";
|
|
6
5
|
import { consume as $, provide as f } from "@lit/context";
|
|
7
6
|
import { LitElement as v, html as d, nothing as b } from "lit";
|
|
8
7
|
import { property as w, query as p, state as h, customElement as y } from "lit/decorators.js";
|
|
@@ -144,7 +143,7 @@ let r = class extends v {
|
|
|
144
143
|
a || i ? this.openCalendar() : this.isCalendarOpen ? this.closeCalendar() : this.openCalendar();
|
|
145
144
|
}
|
|
146
145
|
openCalendar() {
|
|
147
|
-
|
|
146
|
+
this.querySelector(".gui-pills__dropdown") && (this._ignoreNextFocusOut = !0), this.closePillsDropdown(), this.isCalendarOpen || (this.isCalendarOpen = !0, this.requestUpdate());
|
|
148
147
|
}
|
|
149
148
|
closeCalendar() {
|
|
150
149
|
this.isCalendarOpen = !1, this.requestUpdate();
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DisplayWidgetAdapter as d, formContext as c, displayWidgetContext as l } from "@golemui/lit";
|
|
2
|
-
import "@golemui/gui-shared";
|
|
3
2
|
import { consume as u, provide as m } from "@lit/context";
|
|
4
3
|
import { LitElement as h, html as f } from "lit";
|
|
5
4
|
import { property as b, customElement as g } from "lit/decorators.js";
|