@timlassiter11/yatl-ui 1.0.0 → 1.0.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/dist/index.d.mts +117 -3
- package/dist/index.d.ts +117 -3
- package/dist/index.js +51 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +36 -4
- package/dist/index.mjs.map +1 -1
- package/dist/yatl.min.global.js +35 -35
- package/dist/yatl.min.global.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import * as lit from 'lit';
|
|
|
3
3
|
import { LitElement, PropertyValues, nothing, ComplexAttributeConverter, ReactiveController, ReactiveControllerHost } from 'lit';
|
|
4
4
|
export { html, noChange, nothing, svg } from 'lit';
|
|
5
5
|
import * as _timlassiter11_yatl from '@timlassiter11/yatl';
|
|
6
|
-
import { UnspecifiedRecord, YatlTable, YatlTableController, DisplayColumnOptions } from '@timlassiter11/yatl';
|
|
6
|
+
import { UnspecifiedRecord, YatlTable, YatlTableController, DisplayColumnOptions, YatlEvent, NestedKeyOf } from '@timlassiter11/yatl';
|
|
7
7
|
export { unsafeHTML } from 'lit/directives/unsafe-html.js';
|
|
8
8
|
|
|
9
9
|
declare class YatlBase extends LitElement {
|
|
@@ -257,8 +257,8 @@ declare class YatlToolbar<T extends object = UnspecifiedRecord> extends YatlBase
|
|
|
257
257
|
protected render(): lit_html.TemplateResult<1>;
|
|
258
258
|
protected renderColumnPicker(): lit_html.TemplateResult<1>;
|
|
259
259
|
protected renderColumnVisibilityToggle(column: DisplayColumnOptions<T>): lit_html.TemplateResult<1>;
|
|
260
|
-
private handleDropdownSelect;
|
|
261
260
|
protected renderExportButton(): lit_html.TemplateResult<1>;
|
|
261
|
+
private handleDropdownSelect;
|
|
262
262
|
private onSearchInput;
|
|
263
263
|
private onSearchChange;
|
|
264
264
|
private onExportClick;
|
|
@@ -710,6 +710,120 @@ declare global {
|
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
712
|
|
|
713
|
+
declare const tableContext: {
|
|
714
|
+
__context__: YatlTableController<_timlassiter11_yatl.UnspecifiedRecord>;
|
|
715
|
+
};
|
|
716
|
+
|
|
717
|
+
declare class YatlDialogShowRequest extends YatlEvent {
|
|
718
|
+
static readonly EVENT_NAME = "yatl-dialog-show-request";
|
|
719
|
+
constructor();
|
|
720
|
+
clone(): YatlDialogShowRequest;
|
|
721
|
+
}
|
|
722
|
+
declare class YatlDialogShowEvent extends YatlEvent {
|
|
723
|
+
static readonly EVENT_NAME = "yatl-dialog-show";
|
|
724
|
+
constructor();
|
|
725
|
+
clone(): YatlDialogShowEvent;
|
|
726
|
+
}
|
|
727
|
+
declare class YatlDialogHideRequest extends YatlEvent {
|
|
728
|
+
readonly source: HTMLElement;
|
|
729
|
+
static readonly EVENT_NAME = "yatl-dialog-hide-request";
|
|
730
|
+
constructor(source: HTMLElement);
|
|
731
|
+
clone(): YatlDialogHideRequest;
|
|
732
|
+
}
|
|
733
|
+
declare class YatlDialogHideEvent extends YatlEvent {
|
|
734
|
+
static readonly EVENT_NAME = "yatl-dialog-hide";
|
|
735
|
+
constructor();
|
|
736
|
+
clone(): YatlDialogHideEvent;
|
|
737
|
+
}
|
|
738
|
+
declare global {
|
|
739
|
+
interface HTMLElementEventMap {
|
|
740
|
+
[YatlDialogShowRequest.EVENT_NAME]: YatlDialogShowRequest;
|
|
741
|
+
[YatlDialogShowEvent.EVENT_NAME]: YatlDialogShowEvent;
|
|
742
|
+
[YatlDialogHideRequest.EVENT_NAME]: YatlDialogHideRequest;
|
|
743
|
+
[YatlDialogHideEvent.EVENT_NAME]: YatlDialogHideEvent;
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
declare class YatlDropdownOpenRequest extends YatlEvent {
|
|
748
|
+
static readonly EVENT_NAME = "yatl-dropdown-open-request";
|
|
749
|
+
constructor();
|
|
750
|
+
clone(): YatlDropdownOpenRequest;
|
|
751
|
+
}
|
|
752
|
+
declare class YatlDropdownOpenEvent extends YatlEvent {
|
|
753
|
+
static readonly EVENT_NAME = "yatl-dropdown-open";
|
|
754
|
+
constructor();
|
|
755
|
+
clone(): YatlDropdownOpenEvent;
|
|
756
|
+
}
|
|
757
|
+
declare class YatlDropdownCloseRequest extends YatlEvent {
|
|
758
|
+
static readonly EVENT_NAME = "yatl-dropdown-close-request";
|
|
759
|
+
constructor();
|
|
760
|
+
clone(): YatlDropdownCloseRequest;
|
|
761
|
+
}
|
|
762
|
+
declare class YatlDropdownCloseEvent extends YatlEvent {
|
|
763
|
+
static readonly EVENT_NAME = "yatl-dropdown-close";
|
|
764
|
+
constructor();
|
|
765
|
+
clone(): YatlDropdownCloseEvent;
|
|
766
|
+
}
|
|
767
|
+
declare class YatlDropdownSelectEvent extends YatlEvent {
|
|
768
|
+
readonly item: YatlOption;
|
|
769
|
+
static readonly EVENT_NAME = "yatl-dropdown-select";
|
|
770
|
+
constructor(item: YatlOption);
|
|
771
|
+
clone(): YatlDropdownSelectEvent;
|
|
772
|
+
}
|
|
773
|
+
declare global {
|
|
774
|
+
interface HTMLElementEventMap {
|
|
775
|
+
[YatlDropdownOpenRequest.EVENT_NAME]: YatlDropdownOpenRequest;
|
|
776
|
+
[YatlDropdownOpenEvent.EVENT_NAME]: YatlDropdownOpenEvent;
|
|
777
|
+
[YatlDropdownCloseRequest.EVENT_NAME]: YatlDropdownCloseEvent;
|
|
778
|
+
[YatlDropdownCloseEvent.EVENT_NAME]: YatlDropdownCloseEvent;
|
|
779
|
+
[YatlDropdownSelectEvent.EVENT_NAME]: YatlDropdownSelectEvent;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
declare class YatlToolbarSearchInput extends YatlEvent {
|
|
784
|
+
readonly value: string;
|
|
785
|
+
static readonly EVENT_NAME = "yatl-toolbar-search-input";
|
|
786
|
+
constructor(value: string);
|
|
787
|
+
clone(): YatlToolbarSearchInput;
|
|
788
|
+
}
|
|
789
|
+
declare class YatlToolbarSearchChange extends YatlEvent {
|
|
790
|
+
readonly value: string;
|
|
791
|
+
static readonly EVENT_NAME = "yatl-toolbar-search-change";
|
|
792
|
+
constructor(value: string);
|
|
793
|
+
clone(): YatlToolbarSearchChange;
|
|
794
|
+
}
|
|
795
|
+
declare class YatlToolbarExportClick extends YatlEvent {
|
|
796
|
+
static readonly EVENT_NAME = "yatl-toolbar-export-click";
|
|
797
|
+
constructor();
|
|
798
|
+
clone(): YatlToolbarExportClick;
|
|
799
|
+
}
|
|
800
|
+
declare class YatlColumnToggleRequest<T extends object = UnspecifiedRecord> extends YatlEvent {
|
|
801
|
+
readonly field: NestedKeyOf<T>;
|
|
802
|
+
readonly visibility: boolean;
|
|
803
|
+
static readonly EVENT_NAME = "yatl-column-toggle-request";
|
|
804
|
+
constructor(field: NestedKeyOf<T>, visibility: boolean);
|
|
805
|
+
clone(): YatlColumnToggleRequest<T>;
|
|
806
|
+
}
|
|
807
|
+
declare global {
|
|
808
|
+
interface HTMLElementEventMap {
|
|
809
|
+
[YatlToolbarSearchInput.EVENT_NAME]: YatlToolbarSearchInput;
|
|
810
|
+
[YatlToolbarSearchChange.EVENT_NAME]: YatlToolbarSearchChange;
|
|
811
|
+
[YatlToolbarExportClick.EVENT_NAME]: YatlToolbarExportClick;
|
|
812
|
+
[YatlColumnToggleRequest.EVENT_NAME]: YatlColumnToggleRequest;
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
declare class YatlTagDismissEvent extends YatlEvent {
|
|
817
|
+
static readonly EVENT_NAME = "yatl-tag-dismiss";
|
|
818
|
+
constructor();
|
|
819
|
+
clone(): YatlTagDismissEvent;
|
|
820
|
+
}
|
|
821
|
+
declare global {
|
|
822
|
+
interface HTMLElementEventMap {
|
|
823
|
+
[YatlTagDismissEvent.EVENT_NAME]: YatlTagDismissEvent;
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
|
|
713
827
|
/**
|
|
714
828
|
* Retrieves the flattened list of elements assigned to a slot.
|
|
715
829
|
*
|
|
@@ -765,4 +879,4 @@ declare class HasSlotController implements ReactiveController {
|
|
|
765
879
|
*/
|
|
766
880
|
declare function getInnerHTML(nodes: Iterable<Node>, callback?: (node: Node) => string | undefined): string;
|
|
767
881
|
|
|
768
|
-
export { type FormControl, HasSlotController, YatlBaseFilter, YatlButton, type YatlButtonColor, YatlButtonGroup, type YatlButtonVariant, YatlCard, YatlCheckbox, YatlConfirmationDialog, YatlDateFilter, YatlDateInput, YatlDialog, YatlDropdown, YatlFormControl, YatlIcon, YatlInput, type YatlInputType, YatlNumberInput, YatlOption, YatlRadio, YatlRadioGroup, YatlSearchFilter, YatlSearchSelect, YatlSelect, YatlSelectFilter, YatlSwitch, YatlTableUi, YatlTableView, YatlTag, YatlToolbar, YatlTypeahead, activeElements, animateWithClass, dateConverter, getEffectiveChildren, getInnerHTML };
|
|
882
|
+
export { type FormControl, HasSlotController, YatlBaseFilter, YatlButton, type YatlButtonColor, YatlButtonGroup, type YatlButtonVariant, YatlCard, YatlCheckbox, YatlColumnToggleRequest, YatlConfirmationDialog, YatlDateFilter, YatlDateInput, YatlDialog, YatlDialogHideEvent, YatlDialogHideRequest, YatlDialogShowEvent, YatlDialogShowRequest, YatlDropdown, YatlDropdownCloseEvent, YatlDropdownCloseRequest, YatlDropdownOpenEvent, YatlDropdownOpenRequest, YatlDropdownSelectEvent, YatlFormControl, YatlIcon, YatlInput, type YatlInputType, YatlNumberInput, YatlOption, YatlRadio, YatlRadioGroup, YatlSearchFilter, YatlSearchSelect, YatlSelect, YatlSelectFilter, YatlSwitch, YatlTableUi, YatlTableView, YatlTag, YatlTagDismissEvent, YatlToolbar, YatlToolbarExportClick, YatlToolbarSearchChange, YatlToolbarSearchInput, YatlTypeahead, activeElements, animateWithClass, dateConverter, getEffectiveChildren, getInnerHTML, tableContext };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as lit from 'lit';
|
|
|
3
3
|
import { LitElement, PropertyValues, nothing, ComplexAttributeConverter, ReactiveController, ReactiveControllerHost } from 'lit';
|
|
4
4
|
export { html, noChange, nothing, svg } from 'lit';
|
|
5
5
|
import * as _timlassiter11_yatl from '@timlassiter11/yatl';
|
|
6
|
-
import { UnspecifiedRecord, YatlTable, YatlTableController, DisplayColumnOptions } from '@timlassiter11/yatl';
|
|
6
|
+
import { UnspecifiedRecord, YatlTable, YatlTableController, DisplayColumnOptions, YatlEvent, NestedKeyOf } from '@timlassiter11/yatl';
|
|
7
7
|
export { unsafeHTML } from 'lit/directives/unsafe-html.js';
|
|
8
8
|
|
|
9
9
|
declare class YatlBase extends LitElement {
|
|
@@ -257,8 +257,8 @@ declare class YatlToolbar<T extends object = UnspecifiedRecord> extends YatlBase
|
|
|
257
257
|
protected render(): lit_html.TemplateResult<1>;
|
|
258
258
|
protected renderColumnPicker(): lit_html.TemplateResult<1>;
|
|
259
259
|
protected renderColumnVisibilityToggle(column: DisplayColumnOptions<T>): lit_html.TemplateResult<1>;
|
|
260
|
-
private handleDropdownSelect;
|
|
261
260
|
protected renderExportButton(): lit_html.TemplateResult<1>;
|
|
261
|
+
private handleDropdownSelect;
|
|
262
262
|
private onSearchInput;
|
|
263
263
|
private onSearchChange;
|
|
264
264
|
private onExportClick;
|
|
@@ -710,6 +710,120 @@ declare global {
|
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
712
|
|
|
713
|
+
declare const tableContext: {
|
|
714
|
+
__context__: YatlTableController<_timlassiter11_yatl.UnspecifiedRecord>;
|
|
715
|
+
};
|
|
716
|
+
|
|
717
|
+
declare class YatlDialogShowRequest extends YatlEvent {
|
|
718
|
+
static readonly EVENT_NAME = "yatl-dialog-show-request";
|
|
719
|
+
constructor();
|
|
720
|
+
clone(): YatlDialogShowRequest;
|
|
721
|
+
}
|
|
722
|
+
declare class YatlDialogShowEvent extends YatlEvent {
|
|
723
|
+
static readonly EVENT_NAME = "yatl-dialog-show";
|
|
724
|
+
constructor();
|
|
725
|
+
clone(): YatlDialogShowEvent;
|
|
726
|
+
}
|
|
727
|
+
declare class YatlDialogHideRequest extends YatlEvent {
|
|
728
|
+
readonly source: HTMLElement;
|
|
729
|
+
static readonly EVENT_NAME = "yatl-dialog-hide-request";
|
|
730
|
+
constructor(source: HTMLElement);
|
|
731
|
+
clone(): YatlDialogHideRequest;
|
|
732
|
+
}
|
|
733
|
+
declare class YatlDialogHideEvent extends YatlEvent {
|
|
734
|
+
static readonly EVENT_NAME = "yatl-dialog-hide";
|
|
735
|
+
constructor();
|
|
736
|
+
clone(): YatlDialogHideEvent;
|
|
737
|
+
}
|
|
738
|
+
declare global {
|
|
739
|
+
interface HTMLElementEventMap {
|
|
740
|
+
[YatlDialogShowRequest.EVENT_NAME]: YatlDialogShowRequest;
|
|
741
|
+
[YatlDialogShowEvent.EVENT_NAME]: YatlDialogShowEvent;
|
|
742
|
+
[YatlDialogHideRequest.EVENT_NAME]: YatlDialogHideRequest;
|
|
743
|
+
[YatlDialogHideEvent.EVENT_NAME]: YatlDialogHideEvent;
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
declare class YatlDropdownOpenRequest extends YatlEvent {
|
|
748
|
+
static readonly EVENT_NAME = "yatl-dropdown-open-request";
|
|
749
|
+
constructor();
|
|
750
|
+
clone(): YatlDropdownOpenRequest;
|
|
751
|
+
}
|
|
752
|
+
declare class YatlDropdownOpenEvent extends YatlEvent {
|
|
753
|
+
static readonly EVENT_NAME = "yatl-dropdown-open";
|
|
754
|
+
constructor();
|
|
755
|
+
clone(): YatlDropdownOpenEvent;
|
|
756
|
+
}
|
|
757
|
+
declare class YatlDropdownCloseRequest extends YatlEvent {
|
|
758
|
+
static readonly EVENT_NAME = "yatl-dropdown-close-request";
|
|
759
|
+
constructor();
|
|
760
|
+
clone(): YatlDropdownCloseRequest;
|
|
761
|
+
}
|
|
762
|
+
declare class YatlDropdownCloseEvent extends YatlEvent {
|
|
763
|
+
static readonly EVENT_NAME = "yatl-dropdown-close";
|
|
764
|
+
constructor();
|
|
765
|
+
clone(): YatlDropdownCloseEvent;
|
|
766
|
+
}
|
|
767
|
+
declare class YatlDropdownSelectEvent extends YatlEvent {
|
|
768
|
+
readonly item: YatlOption;
|
|
769
|
+
static readonly EVENT_NAME = "yatl-dropdown-select";
|
|
770
|
+
constructor(item: YatlOption);
|
|
771
|
+
clone(): YatlDropdownSelectEvent;
|
|
772
|
+
}
|
|
773
|
+
declare global {
|
|
774
|
+
interface HTMLElementEventMap {
|
|
775
|
+
[YatlDropdownOpenRequest.EVENT_NAME]: YatlDropdownOpenRequest;
|
|
776
|
+
[YatlDropdownOpenEvent.EVENT_NAME]: YatlDropdownOpenEvent;
|
|
777
|
+
[YatlDropdownCloseRequest.EVENT_NAME]: YatlDropdownCloseEvent;
|
|
778
|
+
[YatlDropdownCloseEvent.EVENT_NAME]: YatlDropdownCloseEvent;
|
|
779
|
+
[YatlDropdownSelectEvent.EVENT_NAME]: YatlDropdownSelectEvent;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
declare class YatlToolbarSearchInput extends YatlEvent {
|
|
784
|
+
readonly value: string;
|
|
785
|
+
static readonly EVENT_NAME = "yatl-toolbar-search-input";
|
|
786
|
+
constructor(value: string);
|
|
787
|
+
clone(): YatlToolbarSearchInput;
|
|
788
|
+
}
|
|
789
|
+
declare class YatlToolbarSearchChange extends YatlEvent {
|
|
790
|
+
readonly value: string;
|
|
791
|
+
static readonly EVENT_NAME = "yatl-toolbar-search-change";
|
|
792
|
+
constructor(value: string);
|
|
793
|
+
clone(): YatlToolbarSearchChange;
|
|
794
|
+
}
|
|
795
|
+
declare class YatlToolbarExportClick extends YatlEvent {
|
|
796
|
+
static readonly EVENT_NAME = "yatl-toolbar-export-click";
|
|
797
|
+
constructor();
|
|
798
|
+
clone(): YatlToolbarExportClick;
|
|
799
|
+
}
|
|
800
|
+
declare class YatlColumnToggleRequest<T extends object = UnspecifiedRecord> extends YatlEvent {
|
|
801
|
+
readonly field: NestedKeyOf<T>;
|
|
802
|
+
readonly visibility: boolean;
|
|
803
|
+
static readonly EVENT_NAME = "yatl-column-toggle-request";
|
|
804
|
+
constructor(field: NestedKeyOf<T>, visibility: boolean);
|
|
805
|
+
clone(): YatlColumnToggleRequest<T>;
|
|
806
|
+
}
|
|
807
|
+
declare global {
|
|
808
|
+
interface HTMLElementEventMap {
|
|
809
|
+
[YatlToolbarSearchInput.EVENT_NAME]: YatlToolbarSearchInput;
|
|
810
|
+
[YatlToolbarSearchChange.EVENT_NAME]: YatlToolbarSearchChange;
|
|
811
|
+
[YatlToolbarExportClick.EVENT_NAME]: YatlToolbarExportClick;
|
|
812
|
+
[YatlColumnToggleRequest.EVENT_NAME]: YatlColumnToggleRequest;
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
declare class YatlTagDismissEvent extends YatlEvent {
|
|
817
|
+
static readonly EVENT_NAME = "yatl-tag-dismiss";
|
|
818
|
+
constructor();
|
|
819
|
+
clone(): YatlTagDismissEvent;
|
|
820
|
+
}
|
|
821
|
+
declare global {
|
|
822
|
+
interface HTMLElementEventMap {
|
|
823
|
+
[YatlTagDismissEvent.EVENT_NAME]: YatlTagDismissEvent;
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
|
|
713
827
|
/**
|
|
714
828
|
* Retrieves the flattened list of elements assigned to a slot.
|
|
715
829
|
*
|
|
@@ -765,4 +879,4 @@ declare class HasSlotController implements ReactiveController {
|
|
|
765
879
|
*/
|
|
766
880
|
declare function getInnerHTML(nodes: Iterable<Node>, callback?: (node: Node) => string | undefined): string;
|
|
767
881
|
|
|
768
|
-
export { type FormControl, HasSlotController, YatlBaseFilter, YatlButton, type YatlButtonColor, YatlButtonGroup, type YatlButtonVariant, YatlCard, YatlCheckbox, YatlConfirmationDialog, YatlDateFilter, YatlDateInput, YatlDialog, YatlDropdown, YatlFormControl, YatlIcon, YatlInput, type YatlInputType, YatlNumberInput, YatlOption, YatlRadio, YatlRadioGroup, YatlSearchFilter, YatlSearchSelect, YatlSelect, YatlSelectFilter, YatlSwitch, YatlTableUi, YatlTableView, YatlTag, YatlToolbar, YatlTypeahead, activeElements, animateWithClass, dateConverter, getEffectiveChildren, getInnerHTML };
|
|
882
|
+
export { type FormControl, HasSlotController, YatlBaseFilter, YatlButton, type YatlButtonColor, YatlButtonGroup, type YatlButtonVariant, YatlCard, YatlCheckbox, YatlColumnToggleRequest, YatlConfirmationDialog, YatlDateFilter, YatlDateInput, YatlDialog, YatlDialogHideEvent, YatlDialogHideRequest, YatlDialogShowEvent, YatlDialogShowRequest, YatlDropdown, YatlDropdownCloseEvent, YatlDropdownCloseRequest, YatlDropdownOpenEvent, YatlDropdownOpenRequest, YatlDropdownSelectEvent, YatlFormControl, YatlIcon, YatlInput, type YatlInputType, YatlNumberInput, YatlOption, YatlRadio, YatlRadioGroup, YatlSearchFilter, YatlSearchSelect, YatlSelect, YatlSelectFilter, YatlSwitch, YatlTableUi, YatlTableView, YatlTag, YatlTagDismissEvent, YatlToolbar, YatlToolbarExportClick, YatlToolbarSearchChange, YatlToolbarSearchInput, YatlTypeahead, activeElements, animateWithClass, dateConverter, getEffectiveChildren, getInnerHTML, tableContext };
|
package/dist/index.js
CHANGED
|
@@ -37,11 +37,21 @@ __export(src_exports, {
|
|
|
37
37
|
YatlButtonGroup: () => YatlButtonGroup,
|
|
38
38
|
YatlCard: () => YatlCard,
|
|
39
39
|
YatlCheckbox: () => YatlCheckbox,
|
|
40
|
+
YatlColumnToggleRequest: () => YatlColumnToggleRequest,
|
|
40
41
|
YatlConfirmationDialog: () => YatlConfirmationDialog,
|
|
41
42
|
YatlDateFilter: () => YatlDateFilter,
|
|
42
43
|
YatlDateInput: () => YatlDateInput,
|
|
43
44
|
YatlDialog: () => YatlDialog,
|
|
45
|
+
YatlDialogHideEvent: () => YatlDialogHideEvent,
|
|
46
|
+
YatlDialogHideRequest: () => YatlDialogHideRequest,
|
|
47
|
+
YatlDialogShowEvent: () => YatlDialogShowEvent,
|
|
48
|
+
YatlDialogShowRequest: () => YatlDialogShowRequest,
|
|
44
49
|
YatlDropdown: () => YatlDropdown,
|
|
50
|
+
YatlDropdownCloseEvent: () => YatlDropdownCloseEvent,
|
|
51
|
+
YatlDropdownCloseRequest: () => YatlDropdownCloseRequest,
|
|
52
|
+
YatlDropdownOpenEvent: () => YatlDropdownOpenEvent,
|
|
53
|
+
YatlDropdownOpenRequest: () => YatlDropdownOpenRequest,
|
|
54
|
+
YatlDropdownSelectEvent: () => YatlDropdownSelectEvent,
|
|
45
55
|
YatlFormControl: () => YatlFormControl,
|
|
46
56
|
YatlIcon: () => YatlIcon,
|
|
47
57
|
YatlInput: () => YatlInput,
|
|
@@ -57,7 +67,11 @@ __export(src_exports, {
|
|
|
57
67
|
YatlTableUi: () => YatlTableUi,
|
|
58
68
|
YatlTableView: () => YatlTableView,
|
|
59
69
|
YatlTag: () => YatlTag,
|
|
70
|
+
YatlTagDismissEvent: () => YatlTagDismissEvent,
|
|
60
71
|
YatlToolbar: () => YatlToolbar,
|
|
72
|
+
YatlToolbarExportClick: () => YatlToolbarExportClick,
|
|
73
|
+
YatlToolbarSearchChange: () => YatlToolbarSearchChange,
|
|
74
|
+
YatlToolbarSearchInput: () => YatlToolbarSearchInput,
|
|
61
75
|
YatlTypeahead: () => YatlTypeahead,
|
|
62
76
|
activeElements: () => activeElements,
|
|
63
77
|
animateWithClass: () => animateWithClass,
|
|
@@ -68,6 +82,7 @@ __export(src_exports, {
|
|
|
68
82
|
noChange: () => import_lit56.noChange,
|
|
69
83
|
nothing: () => import_lit56.nothing,
|
|
70
84
|
svg: () => import_lit56.svg,
|
|
85
|
+
tableContext: () => tableContext,
|
|
71
86
|
unsafeHTML: () => import_unsafe_html.unsafeHTML
|
|
72
87
|
});
|
|
73
88
|
module.exports = __toCommonJS(src_exports);
|
|
@@ -530,6 +545,19 @@ var YatlToolbarExportClick = class _YatlToolbarExportClick extends import_yatl3.
|
|
|
530
545
|
return new _YatlToolbarExportClick();
|
|
531
546
|
}
|
|
532
547
|
};
|
|
548
|
+
var YatlColumnToggleRequest = class _YatlColumnToggleRequest extends import_yatl3.YatlEvent {
|
|
549
|
+
constructor(field, visibility) {
|
|
550
|
+
super(_YatlColumnToggleRequest.EVENT_NAME, { cancelable: true });
|
|
551
|
+
this.field = field;
|
|
552
|
+
this.visibility = visibility;
|
|
553
|
+
}
|
|
554
|
+
static {
|
|
555
|
+
this.EVENT_NAME = "yatl-column-toggle-request";
|
|
556
|
+
}
|
|
557
|
+
clone() {
|
|
558
|
+
return new _YatlColumnToggleRequest(this.field, this.visibility);
|
|
559
|
+
}
|
|
560
|
+
};
|
|
533
561
|
|
|
534
562
|
// src/events/tag.ts
|
|
535
563
|
var import_yatl4 = require("@timlassiter11/yatl");
|
|
@@ -1970,10 +1998,14 @@ var YatlToolbar = class extends YatlBase {
|
|
|
1970
1998
|
this.showExportButton = true;
|
|
1971
1999
|
this.handleDropdownSelect = (event) => {
|
|
1972
2000
|
event.preventDefault();
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
);
|
|
2001
|
+
const field = event.item.value;
|
|
2002
|
+
const visible = event.item.checked;
|
|
2003
|
+
const requestEvent = new YatlColumnToggleRequest(field, visible);
|
|
2004
|
+
this.dispatchEvent(requestEvent);
|
|
2005
|
+
if (requestEvent.defaultPrevented) {
|
|
2006
|
+
return;
|
|
2007
|
+
}
|
|
2008
|
+
this.controller?.toggleColumnVisibility(field, visible);
|
|
1977
2009
|
};
|
|
1978
2010
|
this.onSearchInput = (event) => {
|
|
1979
2011
|
const input = event.currentTarget;
|
|
@@ -4614,11 +4646,21 @@ var import_unsafe_html = require("lit/directives/unsafe-html.js");
|
|
|
4614
4646
|
YatlButtonGroup,
|
|
4615
4647
|
YatlCard,
|
|
4616
4648
|
YatlCheckbox,
|
|
4649
|
+
YatlColumnToggleRequest,
|
|
4617
4650
|
YatlConfirmationDialog,
|
|
4618
4651
|
YatlDateFilter,
|
|
4619
4652
|
YatlDateInput,
|
|
4620
4653
|
YatlDialog,
|
|
4654
|
+
YatlDialogHideEvent,
|
|
4655
|
+
YatlDialogHideRequest,
|
|
4656
|
+
YatlDialogShowEvent,
|
|
4657
|
+
YatlDialogShowRequest,
|
|
4621
4658
|
YatlDropdown,
|
|
4659
|
+
YatlDropdownCloseEvent,
|
|
4660
|
+
YatlDropdownCloseRequest,
|
|
4661
|
+
YatlDropdownOpenEvent,
|
|
4662
|
+
YatlDropdownOpenRequest,
|
|
4663
|
+
YatlDropdownSelectEvent,
|
|
4622
4664
|
YatlFormControl,
|
|
4623
4665
|
YatlIcon,
|
|
4624
4666
|
YatlInput,
|
|
@@ -4634,7 +4676,11 @@ var import_unsafe_html = require("lit/directives/unsafe-html.js");
|
|
|
4634
4676
|
YatlTableUi,
|
|
4635
4677
|
YatlTableView,
|
|
4636
4678
|
YatlTag,
|
|
4679
|
+
YatlTagDismissEvent,
|
|
4637
4680
|
YatlToolbar,
|
|
4681
|
+
YatlToolbarExportClick,
|
|
4682
|
+
YatlToolbarSearchChange,
|
|
4683
|
+
YatlToolbarSearchInput,
|
|
4638
4684
|
YatlTypeahead,
|
|
4639
4685
|
activeElements,
|
|
4640
4686
|
animateWithClass,
|
|
@@ -4645,6 +4691,7 @@ var import_unsafe_html = require("lit/directives/unsafe-html.js");
|
|
|
4645
4691
|
noChange,
|
|
4646
4692
|
nothing,
|
|
4647
4693
|
svg,
|
|
4694
|
+
tableContext,
|
|
4648
4695
|
unsafeHTML
|
|
4649
4696
|
});
|
|
4650
4697
|
//# sourceMappingURL=index.js.map
|