@kubex/zinc 1.0.4 → 1.0.6
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/custom-elements.json +1278 -191
- package/dist/vscode.html-custom-data.json +93 -16
- package/dist/web-types.json +235 -25
- package/dist/zn.d.ts +1313 -941
- package/dist/zn.min.css +1 -1
- package/dist/zn.min.js +2049 -931
- package/docs/_includes/default.njk +1 -0
- package/docs/assets/scripts/docs.js +4 -5
- package/docs/assets/scripts/search.js +0 -9
- package/docs/assets/styles/docs.css +3 -3
- package/docs/data/data-table.json +79 -0
- package/docs/data/products-table.json +36 -0
- package/docs/eleventy.config.cjs +3 -0
- package/docs/pages/components/data-select.md +10 -0
- package/docs/pages/components/data-table.md +84 -45
- package/docs/pages/components/dialog.md +1 -1
- package/docs/pages/components/editor.md +1 -3
- package/docs/pages/components/filter-wrapper.md +20 -0
- package/docs/pages/components/icon.md +2 -0
- package/docs/pages/components/item.md +2 -2
- package/docs/pages/components/menu-item.md +12 -3
- package/docs/pages/components/panel.md +17 -0
- package/docs/pages/components/progress-tile.md +17 -1
- package/docs/pages/components/settings-container.md +137 -0
- package/docs/pages/components/textarea.md +1 -1
- package/package.json +3 -1
- package/scss/_root.scss +26 -0
- package/scss/boot.scss +27 -1
- package/scss/mixins/index.scss +30 -1
- package/scss/shared/_base.scss +1 -1
- package/scss/shared/_button.scss +1 -1
- package/scss/shared/layout.scss +7 -0
- package/scss/themes/_dark.scss +5 -5
- package/scss/themes/_light.scss +6 -5
- package/scss/variables/index.scss +9 -0
- package/src/components/alert/alert.component.ts +1 -1
- package/src/components/alert/alert.scss +18 -4
- package/src/components/bulk-actions/bulk-actions.component.ts +152 -84
- package/src/components/bulk-actions/bulk-actions.scss +2 -0
- package/src/components/button/button.component.ts +6 -2
- package/src/components/button/button.scss +16 -1
- package/src/components/button-menu/button-menu.component.ts +23 -15
- package/src/components/button-menu/button-menu.scss +4 -4
- package/src/components/chart/chart.component.ts +14 -12
- package/src/components/checkbox/checkbox.component.ts +5 -1
- package/src/components/checkbox/checkbox.scss +1 -1
- package/src/components/chip/chip.component.ts +7 -3
- package/src/components/chip/chip.scss +9 -1
- package/src/components/collapsible/collapsible.component.ts +48 -2
- package/src/components/cols/cols.component.ts +7 -3
- package/src/components/cols/cols.scss +22 -14
- package/src/components/confirm/confirm.component.ts +1 -2
- package/src/components/content-block/content-block.component.ts +104 -14
- package/src/components/content-block/content-block.scss +8 -0
- package/src/components/data-select/data-select.component.ts +1 -1
- package/src/components/data-table/data-table.component.ts +394 -430
- package/src/components/data-table/data-table.scss +6 -1
- package/src/components/datepicker/datepicker.scss +1 -1
- package/src/components/dialog/dialog.component.ts +52 -33
- package/src/components/dialog/dialog.scss +15 -1
- package/src/components/dropdown/dropdown.component.ts +1 -1
- package/src/components/editor/editor.component.ts +196 -158
- package/src/components/editor/editor.scss +25 -5
- package/src/components/editor/modules/ai/index.ts +281 -0
- package/src/components/editor/modules/ai/panel/ai-panel.component.ts +102 -0
- package/src/components/editor/modules/ai/panel/ai-panel.scss +83 -0
- package/src/components/editor/modules/ai/tooltip/ai-tooltip.component.ts +30 -0
- package/src/components/editor/modules/ai/tooltip/ai-tooltip.scss +28 -0
- package/src/components/editor/modules/{attachment-module.ts → attachment/attachment.ts} +7 -7
- package/src/components/editor/modules/context-menu/context-menu-component.ts +115 -0
- package/src/components/editor/modules/context-menu/context-menu.scss +49 -0
- package/src/components/editor/modules/context-menu/context-menu.ts +296 -0
- package/src/components/editor/modules/context-menu/quick-action/index.ts +12 -0
- package/src/components/editor/modules/context-menu/quick-action/quick-action.component.ts +18 -0
- package/src/components/editor/modules/date-picker/date-picker.ts +77 -0
- package/src/components/editor/modules/dialog/dialog.component.ts +115 -0
- package/src/components/editor/modules/dialog/dialog.scss +43 -0
- package/src/components/editor/modules/dialog/dialog.ts +46 -0
- package/src/components/editor/modules/{drag-drop-module.ts → drag-drop/drag-drop.ts} +6 -6
- package/src/components/editor/modules/emoji/emoji.ts +106 -0
- package/src/components/editor/modules/emoji/headless/headless-emoji.component.ts +122 -0
- package/src/components/editor/modules/emoji/headless/headless-emoji.scss +52 -0
- package/src/components/editor/modules/emoji/headless/headless-emoji.ts +223 -0
- package/src/components/editor/modules/{image-resize-module/image-resize-module.ts → image-resize/image-resize.ts} +5 -5
- package/src/components/editor/modules/{time-tracking-module.ts → time-tracking/time-tracking.ts} +5 -5
- package/src/components/editor/modules/toolbar/tool/index.ts +12 -0
- package/src/components/editor/modules/toolbar/tool/tool.component.ts +30 -0
- package/src/components/editor/modules/toolbar/tool/tool.scss +5 -0
- package/src/components/editor/modules/toolbar/toolbar.component.ts +738 -0
- package/src/components/editor/modules/toolbar/toolbar.scss +98 -0
- package/src/components/editor/modules/toolbar/toolbar.ts +328 -0
- package/src/components/expanding-action/expanding-action.component.ts +2 -2
- package/src/components/expanding-action/expanding-action.scss +2 -2
- package/src/components/filter-wrapper/filter-wrapper.component.ts +91 -0
- package/src/components/filter-wrapper/filter-wrapper.scss +11 -0
- package/src/components/filter-wrapper/filter-wrapper.test.ts +10 -0
- package/src/components/filter-wrapper/index.ts +12 -0
- package/src/components/header/header.component.ts +1 -1
- package/src/components/header/header.scss +8 -1
- package/src/components/hover-container/hover-container.scss +39 -36
- package/src/components/icon/icon.component.ts +11 -5
- package/src/components/icon/icon.scss +15 -2
- package/src/components/inline-edit/inline-edit.component.ts +52 -6
- package/src/components/inline-edit/inline-edit.scss +15 -2
- package/src/components/input/input.scss +1 -1
- package/src/components/item/item.component.ts +30 -19
- package/src/components/item/item.scss +57 -23
- package/src/components/linked-select/linked-select.component.ts +5 -1
- package/src/components/menu/menu.component.ts +1 -0
- package/src/components/menu/menu.scss +1 -1
- package/src/components/menu-item/menu-item.component.ts +22 -4
- package/src/components/menu-item/menu-item.scss +54 -7
- package/src/components/navbar/navbar.component.ts +7 -1
- package/src/components/navbar/navbar.scss +26 -16
- package/src/components/option/option.component.ts +4 -1
- package/src/components/option/option.scss +9 -0
- package/src/components/page-nav/page-nav.component.ts +2 -2
- package/src/components/page-nav/page-nav.scss +4 -4
- package/src/components/panel/panel.component.ts +20 -9
- package/src/components/panel/panel.scss +5 -1
- package/src/components/popup/popup.component.ts +16 -2
- package/src/components/progress-tile/progress-tile.component.ts +10 -4
- package/src/components/progress-tile/progress-tile.scss +7 -4
- package/src/components/query-builder/query-builder.component.ts +1 -1
- package/src/components/radio/radio.scss +1 -1
- package/src/components/scroll-container/scroll-container.component.ts +56 -9
- package/src/components/scroll-container/scroll-container.scss +37 -2
- package/src/components/select/select.component.ts +3 -0
- package/src/components/select/select.scss +1 -1
- package/src/components/settings-container/index.ts +12 -0
- package/src/components/settings-container/settings-container.component.ts +226 -0
- package/src/components/settings-container/settings-container.scss +99 -0
- package/src/components/settings-container/settings-container.test.ts +10 -0
- package/src/components/skeleton/skeleton.scss +5 -4
- package/src/components/sp/sp.component.ts +2 -0
- package/src/components/sp/sp.scss +2 -0
- package/src/components/split-button/split-button.component.ts +24 -18
- package/src/components/split-pane/split-pane.component.ts +5 -5
- package/src/components/stat/stat.component.ts +5 -1
- package/src/components/stat/stat.scss +24 -1
- package/src/components/style/style.component.ts +25 -1
- package/src/components/tabs/tabs.component.ts +12 -1
- package/src/components/textarea/textarea.component.ts +3 -1
- package/src/components/textarea/textarea.scss +21 -2
- package/src/components/vertical-stepper/vertical-stepper.scss +1 -1
- package/src/internal/form.ts +3 -1
- package/src/internal/slot.ts +29 -3
- package/src/utilities/on.ts +7 -8
- package/src/utilities/query.ts +5 -1
- package/src/wc.scss +7 -0
- package/src/zinc.ts +5 -0
- package/src/components/editor/modules/dialog-module/dialog-module.component.ts +0 -289
- package/src/components/editor/modules/dialog-module/dialog-module.scss +0 -115
- package/src/components/editor/modules/dialog-module/dialog-module.ts +0 -99
- package/src/components/editor/modules/events/zn-show-canned-response-dialog.ts +0 -15
- package/src/components/editor/modules/menu-module/menu-module.component.ts +0 -149
- package/src/components/editor/modules/menu-module/menu-module.scss +0 -17
- package/src/components/editor/modules/menu-module/menu-module.ts +0 -203
package/dist/zn.d.ts
CHANGED
|
@@ -199,6 +199,7 @@ declare module "internal/slot" {
|
|
|
199
199
|
hostConnected(): void;
|
|
200
200
|
hostDisconnected(): void;
|
|
201
201
|
getSlot(slotName: string): Element;
|
|
202
|
+
getDefaultSlot(): HTMLElement[];
|
|
202
203
|
getSlots(slotName: string): NodeListOf<HTMLElement>;
|
|
203
204
|
private handleSlotChange;
|
|
204
205
|
}
|
|
@@ -475,7 +476,7 @@ declare module "utilities/md5" {
|
|
|
475
476
|
declare module "components/icon/icon.component" {
|
|
476
477
|
import { type CSSResultGroup } from 'lit';
|
|
477
478
|
import ZincElement from "internal/zinc-element";
|
|
478
|
-
type IconLibrary = "material" | "material-outlined" | "material-round" | "material-sharp" | "material-two-tone" | "material-symbols-outlined" | "gravatar" | "libravatar" | "avatar" | "brands" | "line";
|
|
479
|
+
type IconLibrary = "src" | "material" | "material-outlined" | "material-round" | "material-sharp" | "material-two-tone" | "material-symbols-outlined" | "gravatar" | "libravatar" | "avatar" | "brands" | "line";
|
|
479
480
|
export type IconColor = "default" | "primary" | "accent" | "info" | "warning" | "error" | "success" | "white" | "disabled" | "red" | "blue" | "green" | "orange" | "yellow" | "indigo" | "violet" | "pink" | "grey";
|
|
480
481
|
/**
|
|
481
482
|
* @summary Short summary of the component's intended use.
|
|
@@ -502,6 +503,8 @@ declare module "components/icon/icon.component" {
|
|
|
502
503
|
round: boolean;
|
|
503
504
|
library: IconLibrary;
|
|
504
505
|
color: IconColor;
|
|
506
|
+
padded: boolean;
|
|
507
|
+
squared: boolean;
|
|
505
508
|
gravatarOptions: string;
|
|
506
509
|
defaultLibrary: IconLibrary;
|
|
507
510
|
convertToLibrary(input: string): IconLibrary;
|
|
@@ -557,12 +560,14 @@ declare module "components/menu-item/menu-item.component" {
|
|
|
557
560
|
type: 'normal' | 'checkbox';
|
|
558
561
|
/** Draws the item in a checked state. */
|
|
559
562
|
checked: boolean;
|
|
563
|
+
checkedPosition: 'left' | 'right';
|
|
560
564
|
/** A unique value to store in the menu item. This can be used as a way to identify menu items when selected. */
|
|
561
565
|
value: string;
|
|
562
566
|
/** Draws the menu item in a loading state. */
|
|
563
567
|
loading: boolean;
|
|
564
568
|
/** Draws the menu item in a disabled state, preventing selection. */
|
|
565
569
|
disabled: boolean;
|
|
570
|
+
color: string;
|
|
566
571
|
href: string;
|
|
567
572
|
dataPath: string;
|
|
568
573
|
target: '_self' | '_blank' | '_parent' | '_top' | string;
|
|
@@ -608,6 +613,9 @@ declare module "events/zn-select" {
|
|
|
608
613
|
}
|
|
609
614
|
}
|
|
610
615
|
}
|
|
616
|
+
declare module "utilities/query" {
|
|
617
|
+
export function deepQuerySelectorAll(selector: string, element: Element, stopSelector: string): Element[];
|
|
618
|
+
}
|
|
611
619
|
declare module "internal/offset" {
|
|
612
620
|
/**
|
|
613
621
|
* Returns an element's offset relative to its parent. Similar to element.offsetTop and element.offsetLeft, except the
|
|
@@ -700,6 +708,7 @@ declare module "components/dialog/dialog.component" {
|
|
|
700
708
|
* `no-header`, as it is required for proper accessibility. If you need to display HTML, use the `label` slot instead.
|
|
701
709
|
*/
|
|
702
710
|
label: string;
|
|
711
|
+
cosmic: boolean;
|
|
703
712
|
/**
|
|
704
713
|
* Disables the header. This will also remove the default close button, so please ensure you provide an easy,
|
|
705
714
|
* accessible way to close the dialog.
|
|
@@ -734,9 +743,6 @@ declare module "components/dialog/index" {
|
|
|
734
743
|
}
|
|
735
744
|
}
|
|
736
745
|
}
|
|
737
|
-
declare module "utilities/query" {
|
|
738
|
-
export function deepQuerySelectorAll(selector: string, element: Element, stopSelector: string): Element[];
|
|
739
|
-
}
|
|
740
746
|
declare module "components/confirm/confirm.component" {
|
|
741
747
|
import { type CSSResultGroup, type PropertyValues } from 'lit';
|
|
742
748
|
import ZincElement from "internal/zinc-element";
|
|
@@ -1077,6 +1083,7 @@ declare module "components/button/button.component" {
|
|
|
1077
1083
|
square: boolean;
|
|
1078
1084
|
dropdownCloser: boolean;
|
|
1079
1085
|
notification: number;
|
|
1086
|
+
mutedNotifications: boolean;
|
|
1080
1087
|
verticalAlign: 'start' | 'center' | 'end';
|
|
1081
1088
|
content: string;
|
|
1082
1089
|
icon: string;
|
|
@@ -1189,15 +1196,22 @@ declare module "components/collapsible/collapsible.component" {
|
|
|
1189
1196
|
caption: string;
|
|
1190
1197
|
description: string;
|
|
1191
1198
|
label: string;
|
|
1199
|
+
showNumber: boolean;
|
|
1200
|
+
countElement: string;
|
|
1192
1201
|
expanded: boolean;
|
|
1193
1202
|
defaultState: 'open' | 'closed';
|
|
1194
1203
|
localStorage: boolean;
|
|
1195
1204
|
storeKey: string;
|
|
1196
1205
|
storeTtl: number;
|
|
1197
1206
|
flush: boolean;
|
|
1207
|
+
numberOfItems: number;
|
|
1198
1208
|
protected _store: Store;
|
|
1209
|
+
private readonly hasSlotController;
|
|
1210
|
+
private observer;
|
|
1199
1211
|
connectedCallback(): void;
|
|
1212
|
+
disconnectedCallback(): void;
|
|
1200
1213
|
handleCollapse: (e: MouseEvent) => void;
|
|
1214
|
+
recalculateNumberOfItems: () => void;
|
|
1201
1215
|
render(): import("lit").TemplateResult<1>;
|
|
1202
1216
|
}
|
|
1203
1217
|
}
|
|
@@ -1236,7 +1250,7 @@ declare module "components/alert/alert.component" {
|
|
|
1236
1250
|
icon: string;
|
|
1237
1251
|
caption: string;
|
|
1238
1252
|
collapse: boolean;
|
|
1239
|
-
level: 'primary' | 'error' | 'info' | 'success' | 'warning' | 'note';
|
|
1253
|
+
level: 'primary' | 'error' | 'info' | 'success' | 'warning' | 'note' | 'cosmic';
|
|
1240
1254
|
size: 'small' | 'medium' | 'large';
|
|
1241
1255
|
render(): import("lit").TemplateResult<1>;
|
|
1242
1256
|
hideAlert(): void;
|
|
@@ -1608,6 +1622,83 @@ declare module "components/skeleton/index" {
|
|
|
1608
1622
|
}
|
|
1609
1623
|
}
|
|
1610
1624
|
}
|
|
1625
|
+
declare module "components/style/style.component" {
|
|
1626
|
+
import { type CSSResultGroup } from 'lit';
|
|
1627
|
+
import ZincElement from "internal/zinc-element";
|
|
1628
|
+
export default class ZnStyle extends ZincElement {
|
|
1629
|
+
static styles: CSSResultGroup;
|
|
1630
|
+
private readonly localize;
|
|
1631
|
+
color: string;
|
|
1632
|
+
border: boolean;
|
|
1633
|
+
error: boolean;
|
|
1634
|
+
success: boolean;
|
|
1635
|
+
info: boolean;
|
|
1636
|
+
warning: boolean;
|
|
1637
|
+
primary: boolean;
|
|
1638
|
+
accent: boolean;
|
|
1639
|
+
center: boolean;
|
|
1640
|
+
font: string;
|
|
1641
|
+
width: string;
|
|
1642
|
+
height: string;
|
|
1643
|
+
pad: string;
|
|
1644
|
+
margin: string;
|
|
1645
|
+
autoMargin: string;
|
|
1646
|
+
connectedCallback(): void;
|
|
1647
|
+
createRenderRoot(): this;
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
declare module "components/style/index" {
|
|
1651
|
+
import ZnStyle from "components/style/style.component";
|
|
1652
|
+
export * from "components/style/style.component";
|
|
1653
|
+
export default ZnStyle;
|
|
1654
|
+
global {
|
|
1655
|
+
interface HTMLElementTagNameMap {
|
|
1656
|
+
'zn-style': ZnStyle;
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
declare module "components/data-select/providers/country-data-provider" {
|
|
1661
|
+
import type { DataProviderOption, LocalDataProvider } from "components/data-select/providers/provider";
|
|
1662
|
+
export const countryDataProvider: LocalDataProvider<DataProviderOption>;
|
|
1663
|
+
}
|
|
1664
|
+
declare module "components/data-select/providers/currency-data-provider" {
|
|
1665
|
+
import type { DataProviderOption, LocalDataProvider } from "components/data-select/providers/provider";
|
|
1666
|
+
export const currencyDataProvider: LocalDataProvider<DataProviderOption>;
|
|
1667
|
+
}
|
|
1668
|
+
declare module "components/data-select/providers/color-data-provider" {
|
|
1669
|
+
import type { DataProviderOption, LocalDataProvider } from "components/data-select/providers/provider";
|
|
1670
|
+
export const colors: string[];
|
|
1671
|
+
export const colorDataProvider: LocalDataProvider<DataProviderOption>;
|
|
1672
|
+
}
|
|
1673
|
+
declare module "components/data-select/providers/country-code-data-provider" {
|
|
1674
|
+
import type { DataProviderOption, LocalDataProvider } from "components/data-select/providers/provider";
|
|
1675
|
+
export const countryDialPrefixDataProvider: LocalDataProvider<DataProviderOption>;
|
|
1676
|
+
}
|
|
1677
|
+
declare module "components/data-select/providers/provider" {
|
|
1678
|
+
import type { HTMLTemplateResult } from "lit";
|
|
1679
|
+
/**
|
|
1680
|
+
* Providers are what the data select component uses to get data. They are
|
|
1681
|
+
* responsible for defining the data.
|
|
1682
|
+
*/
|
|
1683
|
+
export interface LocalDataProvider<T> {
|
|
1684
|
+
getName: string;
|
|
1685
|
+
getData: T[];
|
|
1686
|
+
}
|
|
1687
|
+
export interface RemoteDataProvider<T> {
|
|
1688
|
+
getName: string;
|
|
1689
|
+
getData: () => Promise<T[]>;
|
|
1690
|
+
}
|
|
1691
|
+
export interface DataProviderOption {
|
|
1692
|
+
key: string;
|
|
1693
|
+
value: string;
|
|
1694
|
+
prefix?: string | HTMLTemplateResult;
|
|
1695
|
+
}
|
|
1696
|
+
export const emptyDataProvider: LocalDataProvider<DataProviderOption>;
|
|
1697
|
+
export * from "components/data-select/providers/country-data-provider";
|
|
1698
|
+
export * from "components/data-select/providers/currency-data-provider";
|
|
1699
|
+
export * from "components/data-select/providers/color-data-provider";
|
|
1700
|
+
export * from "components/data-select/providers/country-code-data-provider";
|
|
1701
|
+
}
|
|
1611
1702
|
declare module "internal/animate" {
|
|
1612
1703
|
/**
|
|
1613
1704
|
* Animates an element using keyframes. Returns a promise that resolves after the animation completes or gets canceled.
|
|
@@ -1695,6 +1786,7 @@ declare module "components/option/option.component" {
|
|
|
1695
1786
|
};
|
|
1696
1787
|
private cachedTextLabel;
|
|
1697
1788
|
private readonly localize;
|
|
1789
|
+
multiple: boolean;
|
|
1698
1790
|
defaultSlot: HTMLSlotElement;
|
|
1699
1791
|
current: boolean;
|
|
1700
1792
|
selected: boolean;
|
|
@@ -1938,119 +2030,20 @@ declare module "components/select/index" {
|
|
|
1938
2030
|
}
|
|
1939
2031
|
}
|
|
1940
2032
|
}
|
|
1941
|
-
declare module "components/data-
|
|
1942
|
-
import { type
|
|
1943
|
-
import {
|
|
2033
|
+
declare module "components/data-select/data-select.component" {
|
|
2034
|
+
import { type DataProviderOption, type LocalDataProvider } from "components/data-select/providers/provider";
|
|
2035
|
+
import { FormControlController } from "internal/form";
|
|
1944
2036
|
import ZincElement from "internal/zinc-element";
|
|
1945
|
-
import
|
|
1946
|
-
import
|
|
1947
|
-
import
|
|
1948
|
-
import ZnConfirm from "components/confirm/index";
|
|
1949
|
-
import ZnDropdown from "components/dropdown/index";
|
|
1950
|
-
import ZnEmptyState from "components/empty-state/index";
|
|
1951
|
-
import ZnHoverContainer from "components/hover-container/index";
|
|
1952
|
-
import ZnMenu from "components/menu/index";
|
|
1953
|
-
import ZnMenuItem from "components/menu-item/index";
|
|
1954
|
-
import ZnSkeleton from "components/skeleton/index";
|
|
1955
|
-
interface TableData {
|
|
1956
|
-
page: number;
|
|
1957
|
-
per_page: number;
|
|
1958
|
-
total: number;
|
|
1959
|
-
total_pages: number;
|
|
1960
|
-
data: any[];
|
|
1961
|
-
}
|
|
1962
|
-
export enum ActionSlots {
|
|
1963
|
-
delete = "delete-action",
|
|
1964
|
-
modify = "modify-action",
|
|
1965
|
-
create = "create-action",
|
|
1966
|
-
filter = "filter",
|
|
1967
|
-
sort = "sort"
|
|
1968
|
-
}
|
|
1969
|
-
interface RenderDataValue {
|
|
1970
|
-
value: string | number;
|
|
1971
|
-
type: string;
|
|
1972
|
-
tag: string;
|
|
1973
|
-
url: string;
|
|
1974
|
-
target: string;
|
|
1975
|
-
gaid?: string;
|
|
1976
|
-
html?: string;
|
|
1977
|
-
color?: string;
|
|
1978
|
-
caption: CaptionConfig;
|
|
1979
|
-
buttons: ButtonConfig[];
|
|
1980
|
-
menu: MenuConfig[];
|
|
1981
|
-
icon: IconConfig;
|
|
1982
|
-
hover: HoverContainerConfig;
|
|
1983
|
-
}
|
|
1984
|
-
interface CaptionConfig {
|
|
1985
|
-
title: string;
|
|
1986
|
-
summary: string;
|
|
1987
|
-
uri: string;
|
|
1988
|
-
target: string;
|
|
1989
|
-
gaid: string;
|
|
1990
|
-
icon: IconConfig;
|
|
1991
|
-
}
|
|
1992
|
-
interface IconConfig {
|
|
1993
|
-
src: string;
|
|
1994
|
-
size: number;
|
|
1995
|
-
color: string;
|
|
1996
|
-
}
|
|
1997
|
-
interface HoverContainerConfig {
|
|
1998
|
-
label: string;
|
|
1999
|
-
content: string;
|
|
2000
|
-
anchor: string;
|
|
2001
|
-
placement: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
|
|
2002
|
-
icon: IconConfig;
|
|
2003
|
-
}
|
|
2004
|
-
interface ButtonConfig {
|
|
2005
|
-
id: string;
|
|
2006
|
-
href: string;
|
|
2007
|
-
gaid: string;
|
|
2008
|
-
uri: string;
|
|
2009
|
-
size: string;
|
|
2010
|
-
color: string;
|
|
2011
|
-
icon: string;
|
|
2012
|
-
iconSize: string;
|
|
2013
|
-
tooltip: string;
|
|
2014
|
-
target: string;
|
|
2015
|
-
label: string;
|
|
2016
|
-
outline: boolean;
|
|
2017
|
-
confirm: ConfirmConfig;
|
|
2018
|
-
}
|
|
2019
|
-
interface MenuConfig {
|
|
2020
|
-
id: string;
|
|
2021
|
-
href: string;
|
|
2022
|
-
gaid: string;
|
|
2023
|
-
target: string;
|
|
2024
|
-
label: string;
|
|
2025
|
-
}
|
|
2026
|
-
interface ConfirmConfig {
|
|
2027
|
-
type: string;
|
|
2028
|
-
trigger: string;
|
|
2029
|
-
fid: string;
|
|
2030
|
-
caption: string;
|
|
2031
|
-
content: string;
|
|
2032
|
-
action: string;
|
|
2033
|
-
}
|
|
2034
|
-
interface HeaderConfig {
|
|
2035
|
-
title: string;
|
|
2036
|
-
position: string;
|
|
2037
|
-
}
|
|
2037
|
+
import type { CSSResultGroup } from 'lit';
|
|
2038
|
+
import type { ZincFormControl } from "internal/zinc-element";
|
|
2039
|
+
import type ZnSelect from "components/select/index";
|
|
2038
2040
|
/**
|
|
2039
2041
|
* @summary Short summary of the component's intended use.
|
|
2040
|
-
* @documentation https://zinc.style/components/data-
|
|
2042
|
+
* @documentation https://zinc.style/components/data-select
|
|
2041
2043
|
* @status experimental
|
|
2042
2044
|
* @since 1.0
|
|
2043
2045
|
*
|
|
2044
|
-
* @dependency zn-
|
|
2045
|
-
* @dependency zn-empty-state
|
|
2046
|
-
* @dependency zn-chip
|
|
2047
|
-
* @dependency zn-hover-container
|
|
2048
|
-
* @dependency zn-dropdown
|
|
2049
|
-
* @dependency zn-menu
|
|
2050
|
-
* @dependency zn-menu-item
|
|
2051
|
-
* @dependency zn-button-group
|
|
2052
|
-
* @dependency zn-confirm
|
|
2053
|
-
* @dependency zn-skeleton
|
|
2046
|
+
* @dependency zn-example
|
|
2054
2047
|
*
|
|
2055
2048
|
* @event zn-event-name - Emitted as an example.
|
|
2056
2049
|
*
|
|
@@ -2061,134 +2054,66 @@ declare module "components/data-table/data-table.component" {
|
|
|
2061
2054
|
*
|
|
2062
2055
|
* @cssproperty --example - An example CSS custom property.
|
|
2063
2056
|
*/
|
|
2064
|
-
export default class
|
|
2057
|
+
export default class ZnDataSelect extends ZincElement implements ZincFormControl {
|
|
2065
2058
|
static styles: CSSResultGroup;
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
private _rows;
|
|
2102
|
-
private _filteredRows;
|
|
2103
|
-
private numberOfRowsSelected;
|
|
2104
|
-
private selectedRows;
|
|
2105
|
-
private tableContainer;
|
|
2106
|
-
private hasSlotController;
|
|
2107
|
-
private _dataTask;
|
|
2108
|
-
render(): TemplateResult<1>;
|
|
2059
|
+
select: ZnSelect;
|
|
2060
|
+
selectPrefix: HTMLElement;
|
|
2061
|
+
/** The name of the select. Used for form submission. */
|
|
2062
|
+
name: string;
|
|
2063
|
+
/** The value of the select. Used for form submission. */
|
|
2064
|
+
value: string;
|
|
2065
|
+
/** The provider of the select. */
|
|
2066
|
+
provider: 'color' | 'currency' | 'country' | 'phone';
|
|
2067
|
+
iconPosition: 'start' | 'end' | 'none';
|
|
2068
|
+
/** An array of keys to use for filtering the options in the selected provider. */
|
|
2069
|
+
filter: string[];
|
|
2070
|
+
/** The selects size. */
|
|
2071
|
+
size: 'small' | 'medium' | 'large';
|
|
2072
|
+
/** Should we show the clear button */
|
|
2073
|
+
clearable: boolean;
|
|
2074
|
+
/** Include an "All" option at the top. */
|
|
2075
|
+
allowAll: boolean;
|
|
2076
|
+
/** The selects label. If you need to display HTML, use the `label` slot instead. */
|
|
2077
|
+
label: string;
|
|
2078
|
+
/** Text that appears in a tooltip next to the label. If you need to display HTML in the tooltip, use the `label-tooltip` slot instead. */
|
|
2079
|
+
labelTooltip: string;
|
|
2080
|
+
/** Text that appears above the input, on the right, to add additional context. If you need to display HTML in this text, use the `context-note` slot instead. */
|
|
2081
|
+
contextNote: string;
|
|
2082
|
+
/**
|
|
2083
|
+
* The preferred placement of the selects menu. Note that the actual placement may vary as needed to keep the listbox
|
|
2084
|
+
* inside the viewport.
|
|
2085
|
+
*/
|
|
2086
|
+
placement: 'top' | 'bottom';
|
|
2087
|
+
/** The selects help text. If you need to display HTML, use the `help-text` slot instead. */
|
|
2088
|
+
helpText: string;
|
|
2089
|
+
/** The selects required attribute. */
|
|
2090
|
+
required: boolean;
|
|
2091
|
+
protected readonly formControlController: FormControlController;
|
|
2092
|
+
get validationMessage(): string;
|
|
2093
|
+
get validity(): ValidityState;
|
|
2109
2094
|
connectedCallback(): void;
|
|
2110
2095
|
disconnectedCallback(): void;
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
updateRowsPerPage(event: Event): void;
|
|
2124
|
-
selectAll(event: Event): void;
|
|
2125
|
-
private updateActionKeys;
|
|
2126
|
-
selectRow(e: PointerEvent): void;
|
|
2127
|
-
clearSelectedRows(event: Event): void;
|
|
2128
|
-
updateSort(key: string): () => void;
|
|
2129
|
-
renderData(data: RenderDataValue): TemplateResult;
|
|
2130
|
-
private getTableSortIcon;
|
|
2131
|
-
private renderCellHeader;
|
|
2132
|
-
private renderCellBody;
|
|
2133
|
-
private hasHeaderPosition;
|
|
2134
|
-
private getRows;
|
|
2135
|
-
private getSelectedKeys;
|
|
2136
|
-
private updateKeys;
|
|
2137
|
-
private updateModifyKeys;
|
|
2138
|
-
private updateDeleteKeys;
|
|
2139
|
-
private sortData;
|
|
2140
|
-
private loadingTable;
|
|
2141
|
-
}
|
|
2142
|
-
}
|
|
2143
|
-
declare module "components/data-table/index" {
|
|
2144
|
-
import ZnDataTable from "components/data-table/data-table.component";
|
|
2145
|
-
export * from "components/data-table/data-table.component";
|
|
2146
|
-
export default ZnDataTable;
|
|
2147
|
-
global {
|
|
2148
|
-
interface HTMLElementTagNameMap {
|
|
2149
|
-
'zn-data-table': ZnDataTable;
|
|
2150
|
-
}
|
|
2151
|
-
}
|
|
2152
|
-
}
|
|
2153
|
-
declare module "components/cols/cols.component" {
|
|
2154
|
-
import { type CSSResultGroup } from 'lit';
|
|
2155
|
-
import ZincElement from "internal/zinc-element";
|
|
2156
|
-
/**
|
|
2157
|
-
* @summary Short summary of the component's intended use.
|
|
2158
|
-
* @documentation https://zinc.style/components/columns
|
|
2159
|
-
* @status experimental
|
|
2160
|
-
* @since 1.0
|
|
2161
|
-
*
|
|
2162
|
-
* @dependency zn-example
|
|
2163
|
-
*
|
|
2164
|
-
* @event zn-event-name - Emitted as an example.
|
|
2165
|
-
*
|
|
2166
|
-
* @slot - The default slot.
|
|
2167
|
-
* @slot example - An example slot.
|
|
2168
|
-
*
|
|
2169
|
-
* @csspart base - The component's base wrapper.
|
|
2170
|
-
*
|
|
2171
|
-
* @cssproperty --example - An example CSS custom property.
|
|
2172
|
-
*/
|
|
2173
|
-
export default class ZnCols extends ZincElement {
|
|
2174
|
-
static styles: CSSResultGroup;
|
|
2175
|
-
layout: string;
|
|
2176
|
-
maxColumns: number;
|
|
2177
|
-
noGap: boolean;
|
|
2178
|
-
border: boolean;
|
|
2179
|
-
pad: boolean;
|
|
2180
|
-
padX: boolean;
|
|
2181
|
-
padY: boolean;
|
|
2182
|
-
render(): import("lit").TemplateResult<1>;
|
|
2096
|
+
checkValidity(): boolean;
|
|
2097
|
+
getForm(): HTMLFormElement | null;
|
|
2098
|
+
reportValidity(): boolean;
|
|
2099
|
+
setCustomValidity(message: string): void;
|
|
2100
|
+
closeOnTab: (e: KeyboardEvent) => void;
|
|
2101
|
+
handleValueChange(): Promise<void>;
|
|
2102
|
+
handleInput: (e: Event) => void;
|
|
2103
|
+
handleClear: () => void;
|
|
2104
|
+
getLocalProvider(name: string): LocalDataProvider<DataProviderOption>;
|
|
2105
|
+
blur: () => void;
|
|
2106
|
+
protected render(): import("lit").TemplateResult<1>;
|
|
2107
|
+
private _updatePrefix;
|
|
2183
2108
|
}
|
|
2184
2109
|
}
|
|
2185
|
-
declare module "components/
|
|
2186
|
-
import
|
|
2187
|
-
export * from "components/
|
|
2188
|
-
export default
|
|
2110
|
+
declare module "components/data-select/index" {
|
|
2111
|
+
import ZnDataSelect from "components/data-select/data-select.component";
|
|
2112
|
+
export * from "components/data-select/data-select.component";
|
|
2113
|
+
export default ZnDataSelect;
|
|
2189
2114
|
global {
|
|
2190
2115
|
interface HTMLElementTagNameMap {
|
|
2191
|
-
'zn-
|
|
2116
|
+
'zn-data-select': ZnDataSelect;
|
|
2192
2117
|
}
|
|
2193
2118
|
}
|
|
2194
2119
|
}
|
|
@@ -2406,111 +2331,462 @@ declare module "components/input/index" {
|
|
|
2406
2331
|
}
|
|
2407
2332
|
}
|
|
2408
2333
|
}
|
|
2409
|
-
declare module "
|
|
2410
|
-
import { type
|
|
2334
|
+
declare module "utilities/lit-to-html" {
|
|
2335
|
+
import { type TemplateResult } from "lit";
|
|
2336
|
+
export function litToHTML<T extends HTMLElement>(templateResult: TemplateResult): T | null;
|
|
2337
|
+
}
|
|
2338
|
+
declare module "events/zn-change" {
|
|
2339
|
+
export type ZnChangeEvent = CustomEvent<Record<PropertyKey, never>>;
|
|
2340
|
+
global {
|
|
2341
|
+
interface GlobalEventHandlersEventMap {
|
|
2342
|
+
'zn-change': ZnChangeEvent;
|
|
2343
|
+
}
|
|
2344
|
+
}
|
|
2345
|
+
}
|
|
2346
|
+
declare module "events/zn-input" {
|
|
2347
|
+
export type ZnInputEvent = CustomEvent<Record<PropertyKey, never>>;
|
|
2348
|
+
global {
|
|
2349
|
+
interface GlobalEventHandlersEventMap {
|
|
2350
|
+
'zn-input': ZnInputEvent;
|
|
2351
|
+
}
|
|
2352
|
+
}
|
|
2353
|
+
}
|
|
2354
|
+
declare module "components/query-builder/query-builder.component" {
|
|
2355
|
+
import { type CSSResultGroup, type PropertyValues } from 'lit';
|
|
2411
2356
|
import ZincElement from "internal/zinc-element";
|
|
2357
|
+
import ZnButton from "components/button/index";
|
|
2358
|
+
import ZnInput from "components/input/index";
|
|
2359
|
+
import ZnOption from "components/option/index";
|
|
2360
|
+
import ZnSelect from "components/select/index";
|
|
2412
2361
|
import type { ZincFormControl } from "internal/zinc-element";
|
|
2413
|
-
|
|
2414
|
-
|
|
2362
|
+
export type QueryBuilderData = QueryBuilderItem[];
|
|
2363
|
+
export interface QueryBuilderItem {
|
|
2364
|
+
id: string;
|
|
2365
|
+
name: string;
|
|
2366
|
+
type?: QueryBuilderType;
|
|
2367
|
+
options?: QueryBuilderOptions;
|
|
2368
|
+
operators: QueryBuilderOperators[];
|
|
2369
|
+
maxOptionsVisible?: string;
|
|
2370
|
+
}
|
|
2371
|
+
export type QueryBuilderType = 'bool' | 'boolean' | 'date' | 'number';
|
|
2372
|
+
export interface QueryBuilderOptions {
|
|
2373
|
+
[key: string | number]: string | number;
|
|
2374
|
+
}
|
|
2375
|
+
export enum QueryBuilderOperators {
|
|
2376
|
+
Eq = "eq",
|
|
2377
|
+
Neq = "neq",
|
|
2378
|
+
Eqi = "eqi",
|
|
2379
|
+
Neqi = "neqi",
|
|
2380
|
+
Before = "before",
|
|
2381
|
+
After = "after",
|
|
2382
|
+
In = "in",
|
|
2383
|
+
Nin = "nin",
|
|
2384
|
+
MatchPhrasePre = "matchphrasepre",
|
|
2385
|
+
NMatchPhrasePre = "nmatchphrasepre",
|
|
2386
|
+
MatchPhrase = "matchphrase",
|
|
2387
|
+
NMatchPhrase = "nmatchphrase",
|
|
2388
|
+
Match = "match",
|
|
2389
|
+
NMatch = "nmatch",
|
|
2390
|
+
Contains = "contains",
|
|
2391
|
+
DoesNotContain = "doesnotcontain",
|
|
2392
|
+
Starts = "starts",
|
|
2393
|
+
NStarts = "nstarts",
|
|
2394
|
+
Ends = "ends",
|
|
2395
|
+
NEnds = "nends",
|
|
2396
|
+
Wild = "wild",
|
|
2397
|
+
NWild = "nwild",
|
|
2398
|
+
Like = "like",
|
|
2399
|
+
NLike = "nlike",
|
|
2400
|
+
Fuzzy = "fuzzy",
|
|
2401
|
+
NFuzzy = "nfuzzy",
|
|
2402
|
+
Gte = "gte",
|
|
2403
|
+
Gt = "gt",
|
|
2404
|
+
Lt = "lt",
|
|
2405
|
+
Lte = "lte"
|
|
2406
|
+
}
|
|
2407
|
+
export interface CreatedRule {
|
|
2408
|
+
id: string;
|
|
2409
|
+
name: string;
|
|
2410
|
+
operator: string;
|
|
2411
|
+
value: string;
|
|
2412
|
+
}
|
|
2415
2413
|
/**
|
|
2416
|
-
* @summary
|
|
2417
|
-
*
|
|
2418
|
-
* @documentation https://zinc.style/components/defined-label
|
|
2414
|
+
* @summary Short summary of the component's intended use.
|
|
2415
|
+
* @documentation https://zinc.style/components/query-builder
|
|
2419
2416
|
* @status experimental
|
|
2420
2417
|
* @since 1.0
|
|
2421
2418
|
*
|
|
2422
2419
|
* @dependency zn-button
|
|
2423
|
-
* @dependency zn-dropdown
|
|
2424
2420
|
* @dependency zn-input
|
|
2425
2421
|
* @dependency zn-option
|
|
2426
|
-
* @dependency zn-panel
|
|
2427
2422
|
* @dependency zn-select
|
|
2428
|
-
* @dependency zn-sp
|
|
2429
2423
|
*
|
|
2430
|
-
* @
|
|
2431
|
-
* @
|
|
2424
|
+
* @slot - The default slot.
|
|
2425
|
+
* @slot example - An example slot.
|
|
2426
|
+
*
|
|
2427
|
+
* @csspart base - The component's base wrapper.
|
|
2428
|
+
*
|
|
2429
|
+
* @cssproperty --example - An example CSS custom property.
|
|
2432
2430
|
*/
|
|
2433
|
-
export default class
|
|
2431
|
+
export default class ZnQueryBuilder extends ZincElement implements ZincFormControl {
|
|
2434
2432
|
static styles: CSSResultGroup;
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2433
|
+
static dependencies: {
|
|
2434
|
+
'zn-button': typeof ZnButton;
|
|
2435
|
+
'zn-input': typeof ZnInput;
|
|
2436
|
+
'zn-option': typeof ZnOption;
|
|
2437
|
+
'zn-select': typeof ZnSelect;
|
|
2438
|
+
};
|
|
2439
|
+
private _selectedRules;
|
|
2440
|
+
private _formController;
|
|
2441
|
+
private _previousOperator;
|
|
2442
|
+
container: HTMLDivElement;
|
|
2443
|
+
addRule: ZnSelect;
|
|
2444
|
+
input: HTMLInputElement;
|
|
2445
|
+
filters: QueryBuilderData;
|
|
2446
|
+
dropdown: boolean;
|
|
2441
2447
|
name: string;
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
allowCustom: boolean;
|
|
2445
|
-
predefinedLabels: never[];
|
|
2448
|
+
value: PropertyKey;
|
|
2449
|
+
showValues: string[];
|
|
2446
2450
|
get validationMessage(): string;
|
|
2447
2451
|
get validity(): ValidityState;
|
|
2452
|
+
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
2453
|
+
render(): import("lit").TemplateResult<1>;
|
|
2454
|
+
private _handleChange;
|
|
2455
|
+
private _addRule;
|
|
2456
|
+
private _createInput;
|
|
2457
|
+
private _changeValueInput;
|
|
2458
|
+
private _createBooleanInput;
|
|
2459
|
+
private _createNumberInput;
|
|
2460
|
+
private _createDateInput;
|
|
2461
|
+
private _createSelectInput;
|
|
2462
|
+
private _createDefaultInput;
|
|
2463
|
+
private _updateOperatorValue;
|
|
2464
|
+
private _updateDateValue;
|
|
2465
|
+
private _updateValue;
|
|
2466
|
+
private updateInValue;
|
|
2467
|
+
private _changeRule;
|
|
2468
|
+
private _getRulePosition;
|
|
2469
|
+
private _removeRule;
|
|
2470
|
+
clear(): void;
|
|
2471
|
+
reset(): void;
|
|
2448
2472
|
checkValidity(): boolean;
|
|
2449
2473
|
getForm(): HTMLFormElement | null;
|
|
2450
2474
|
reportValidity(): boolean;
|
|
2451
2475
|
setCustomValidity(message: string): void;
|
|
2452
|
-
handleValueChange(): Promise<void>;
|
|
2453
|
-
protected firstUpdated(changedProperties: PropertyValues): void;
|
|
2454
|
-
private handleChange;
|
|
2455
|
-
private handleInput;
|
|
2456
|
-
private handleClick;
|
|
2457
|
-
private handleInputValueChange;
|
|
2458
|
-
private handleInputValueInput;
|
|
2459
|
-
private handleFormSubmit;
|
|
2460
|
-
render(): TemplateResult<1>;
|
|
2461
2476
|
}
|
|
2462
2477
|
}
|
|
2463
|
-
declare module "components/
|
|
2464
|
-
import
|
|
2465
|
-
export * from "components/
|
|
2466
|
-
export default
|
|
2478
|
+
declare module "components/query-builder/index" {
|
|
2479
|
+
import ZnQueryBuilder from "components/query-builder/query-builder.component";
|
|
2480
|
+
export * from "components/query-builder/query-builder.component";
|
|
2481
|
+
export default ZnQueryBuilder;
|
|
2467
2482
|
global {
|
|
2468
2483
|
interface HTMLElementTagNameMap {
|
|
2469
|
-
'zn-
|
|
2484
|
+
'zn-query-builder': ZnQueryBuilder;
|
|
2470
2485
|
}
|
|
2471
2486
|
}
|
|
2472
2487
|
}
|
|
2473
|
-
declare module "components/data-
|
|
2474
|
-
import type
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
import
|
|
2479
|
-
|
|
2488
|
+
declare module "components/data-table/data-table.component" {
|
|
2489
|
+
import { type CSSResultGroup, type TemplateResult } from 'lit';
|
|
2490
|
+
import { type ZnFilterChangeEvent } from "events/zn-filter-change";
|
|
2491
|
+
import ZincElement from "internal/zinc-element";
|
|
2492
|
+
import ZnButton from "components/button/index";
|
|
2493
|
+
import ZnButtonGroup from "components/button-group/index";
|
|
2494
|
+
import ZnChip from "components/chip/index";
|
|
2495
|
+
import ZnConfirm from "components/confirm/index";
|
|
2496
|
+
import ZnDropdown from "components/dropdown/index";
|
|
2497
|
+
import ZnEmptyState from "components/empty-state/index";
|
|
2498
|
+
import ZnHoverContainer from "components/hover-container/index";
|
|
2499
|
+
import ZnMenu from "components/menu/index";
|
|
2500
|
+
import ZnMenuItem from "components/menu-item/index";
|
|
2501
|
+
import ZnSkeleton from "components/skeleton/index";
|
|
2502
|
+
import ZnStyle from "components/style/index";
|
|
2503
|
+
interface Cell {
|
|
2504
|
+
text: string;
|
|
2505
|
+
column: string;
|
|
2506
|
+
color?: string;
|
|
2507
|
+
style?: string;
|
|
2508
|
+
iconSrc?: string;
|
|
2509
|
+
iconColor?: string;
|
|
2510
|
+
hoverContent?: string;
|
|
2511
|
+
hoverPlacement?: string;
|
|
2512
|
+
chipColor?: string;
|
|
2513
|
+
gaid?: string;
|
|
2514
|
+
sortValue?: string;
|
|
2515
|
+
uri?: string;
|
|
2516
|
+
target?: string;
|
|
2517
|
+
}
|
|
2518
|
+
interface Row {
|
|
2519
|
+
id: string;
|
|
2520
|
+
uri?: string;
|
|
2521
|
+
target?: string;
|
|
2522
|
+
actions?: ActionConfig[];
|
|
2523
|
+
cells: Cell[];
|
|
2524
|
+
}
|
|
2525
|
+
interface Response {
|
|
2526
|
+
rows: Row[];
|
|
2527
|
+
perPage: number;
|
|
2528
|
+
total: number;
|
|
2529
|
+
page: number;
|
|
2530
|
+
}
|
|
2531
|
+
export enum ActionSlots {
|
|
2532
|
+
delete = "delete-action",
|
|
2533
|
+
modify = "modify-action",
|
|
2534
|
+
create = "create-action",
|
|
2535
|
+
filter = "filter",
|
|
2536
|
+
filter_top = "filter-top",
|
|
2537
|
+
sort = "sort",
|
|
2538
|
+
inputs = "inputs"
|
|
2539
|
+
}
|
|
2540
|
+
interface ActionConfig {
|
|
2541
|
+
text: string;
|
|
2542
|
+
uri: string;
|
|
2543
|
+
target: string;
|
|
2544
|
+
gaid: string;
|
|
2545
|
+
confirmType: string;
|
|
2546
|
+
confirmTitle: string;
|
|
2547
|
+
confirmContent: string;
|
|
2548
|
+
icon: string;
|
|
2549
|
+
type: string;
|
|
2550
|
+
}
|
|
2551
|
+
interface HeaderConfig {
|
|
2552
|
+
key: string;
|
|
2553
|
+
label: string;
|
|
2554
|
+
required?: boolean;
|
|
2555
|
+
default?: boolean;
|
|
2556
|
+
sortable?: boolean;
|
|
2557
|
+
filterable?: boolean;
|
|
2558
|
+
}
|
|
2559
|
+
/**
|
|
2560
|
+
* @summary Short summary of the component's intended use.
|
|
2561
|
+
* @documentation https://zinc.style/components/data-table
|
|
2562
|
+
* @status experimental
|
|
2563
|
+
* @since 1.0
|
|
2564
|
+
*
|
|
2565
|
+
* @dependency zn-button
|
|
2566
|
+
* @dependency zn-empty-state
|
|
2567
|
+
* @dependency zn-chip
|
|
2568
|
+
* @dependency zn-hover-container
|
|
2569
|
+
* @dependency zn-dropdown
|
|
2570
|
+
* @dependency zn-menu
|
|
2571
|
+
* @dependency zn-menu-item
|
|
2572
|
+
* @dependency zn-button-group
|
|
2573
|
+
* @dependency zn-confirm
|
|
2574
|
+
* @dependency zn-skeleton
|
|
2575
|
+
*
|
|
2576
|
+
* @event zn-event-name - Emitted as an example.
|
|
2577
|
+
*
|
|
2578
|
+
* @slot - The default slot.
|
|
2579
|
+
* @slot example - An example slot.
|
|
2580
|
+
*
|
|
2581
|
+
* @csspart base - The component's base wrapper.
|
|
2582
|
+
*
|
|
2583
|
+
* @cssproperty --example - An example CSS custom property.
|
|
2584
|
+
*/
|
|
2585
|
+
export default class ZnDataTable extends ZincElement {
|
|
2586
|
+
static styles: CSSResultGroup;
|
|
2587
|
+
static dependencies: {
|
|
2588
|
+
'zn-button': typeof ZnButton;
|
|
2589
|
+
'zn-empty-state': typeof ZnEmptyState;
|
|
2590
|
+
'zn-chip': typeof ZnChip;
|
|
2591
|
+
'zn-hover-container': typeof ZnHoverContainer;
|
|
2592
|
+
'zn-dropdown': typeof ZnDropdown;
|
|
2593
|
+
'zn-menu': typeof ZnMenu;
|
|
2594
|
+
'zn-menu-item': typeof ZnMenuItem;
|
|
2595
|
+
'zn-button-group': typeof ZnButtonGroup;
|
|
2596
|
+
'zn-confirm': typeof ZnConfirm;
|
|
2597
|
+
'zn-skeleton': typeof ZnSkeleton;
|
|
2598
|
+
'zn-style': typeof ZnStyle;
|
|
2599
|
+
};
|
|
2600
|
+
dataUri: string;
|
|
2601
|
+
data: any;
|
|
2602
|
+
sortColumn: string;
|
|
2603
|
+
sortDirection: string;
|
|
2604
|
+
filter: string;
|
|
2605
|
+
wideColumn: string;
|
|
2606
|
+
key: string;
|
|
2607
|
+
headers: Record<string, HeaderConfig>;
|
|
2608
|
+
hiddenHeaders: string;
|
|
2609
|
+
hiddenColumns: string;
|
|
2610
|
+
unsortableHeaders: string;
|
|
2611
|
+
unsortable: boolean;
|
|
2612
|
+
hidePagination: boolean;
|
|
2613
|
+
standalone: boolean;
|
|
2614
|
+
caption: string;
|
|
2615
|
+
emptyStateCaption: string;
|
|
2616
|
+
emptyStateIcon: string;
|
|
2617
|
+
hideCheckboxes: boolean;
|
|
2618
|
+
filters: [];
|
|
2619
|
+
method: 'GET' | 'POST';
|
|
2620
|
+
noInitialLoad: boolean;
|
|
2621
|
+
private _initialLoad;
|
|
2622
|
+
private _lastTableContent;
|
|
2623
|
+
private resizeObserver;
|
|
2624
|
+
private itemsPerPage;
|
|
2625
|
+
private page;
|
|
2626
|
+
private totalPages;
|
|
2627
|
+
private _rows;
|
|
2628
|
+
private numberOfRowsSelected;
|
|
2629
|
+
private selectedRows;
|
|
2630
|
+
private tableContainer;
|
|
2631
|
+
private hasSlotController;
|
|
2632
|
+
private _dataTask;
|
|
2633
|
+
private rowHasActions;
|
|
2634
|
+
requestParams: Record<string, any>;
|
|
2635
|
+
builtinRequestParams: Record<string, any>;
|
|
2636
|
+
refresh(): void;
|
|
2637
|
+
render(): TemplateResult<1>;
|
|
2638
|
+
connectedCallback(): void;
|
|
2639
|
+
disconnectedCallback(): void;
|
|
2640
|
+
changeEventListener: (e: ZnFilterChangeEvent) => void;
|
|
2641
|
+
emptyState(): TemplateResult<1>;
|
|
2642
|
+
renderTable(data: Response): TemplateResult<1>;
|
|
2643
|
+
getTableHeader(): TemplateResult<1>;
|
|
2644
|
+
getTableFooter(): TemplateResult<1>;
|
|
2645
|
+
getRowsSelected(): TemplateResult<1> | null;
|
|
2646
|
+
getPagination(): TemplateResult<1> | null;
|
|
2647
|
+
getActions(): TemplateResult<1>[];
|
|
2648
|
+
goToPage(page: number): void;
|
|
2649
|
+
goToFirstPage(): void;
|
|
2650
|
+
goToPreviousPage(): void;
|
|
2651
|
+
goToNextPage(): void;
|
|
2652
|
+
goToLastPage(): void;
|
|
2653
|
+
updateRowsPerPage(event: Event): void;
|
|
2654
|
+
selectAll(event: Event): void;
|
|
2655
|
+
selectRow(e: Event): void;
|
|
2656
|
+
clearSelectedRows(event: Event): void;
|
|
2657
|
+
updateSort(key: string): () => void;
|
|
2658
|
+
renderCell(data: Cell): TemplateResult;
|
|
2659
|
+
private updateActionKeys;
|
|
2660
|
+
private getTableSortIcon;
|
|
2661
|
+
private renderCellHeader;
|
|
2662
|
+
private renderCellBody;
|
|
2663
|
+
private getRows;
|
|
2664
|
+
private getSelectedKeys;
|
|
2665
|
+
private updateKeys;
|
|
2666
|
+
private updateModifyKeys;
|
|
2667
|
+
private updateDeleteKeys;
|
|
2668
|
+
private extractComparable;
|
|
2669
|
+
private sortData;
|
|
2670
|
+
private loadingTable;
|
|
2671
|
+
private renderActions;
|
|
2672
|
+
}
|
|
2480
2673
|
}
|
|
2481
|
-
declare module "components/data-
|
|
2482
|
-
import
|
|
2483
|
-
export
|
|
2674
|
+
declare module "components/data-table/index" {
|
|
2675
|
+
import ZnDataTable from "components/data-table/data-table.component";
|
|
2676
|
+
export * from "components/data-table/data-table.component";
|
|
2677
|
+
export default ZnDataTable;
|
|
2678
|
+
global {
|
|
2679
|
+
interface HTMLElementTagNameMap {
|
|
2680
|
+
'zn-data-table': ZnDataTable;
|
|
2681
|
+
}
|
|
2682
|
+
}
|
|
2484
2683
|
}
|
|
2485
|
-
declare module "components/
|
|
2486
|
-
import type
|
|
2684
|
+
declare module "components/cols/cols.component" {
|
|
2685
|
+
import { type CSSResultGroup } from 'lit';
|
|
2686
|
+
import ZincElement from "internal/zinc-element";
|
|
2487
2687
|
/**
|
|
2488
|
-
*
|
|
2489
|
-
*
|
|
2688
|
+
* @summary Short summary of the component's intended use.
|
|
2689
|
+
* @documentation https://zinc.style/components/columns
|
|
2690
|
+
* @status experimental
|
|
2691
|
+
* @since 1.0
|
|
2692
|
+
*
|
|
2693
|
+
* @dependency zn-example
|
|
2694
|
+
*
|
|
2695
|
+
* @event zn-event-name - Emitted as an example.
|
|
2696
|
+
*
|
|
2697
|
+
* @slot - The default slot.
|
|
2698
|
+
* @slot example - An example slot.
|
|
2699
|
+
*
|
|
2700
|
+
* @csspart base - The component's base wrapper.
|
|
2701
|
+
*
|
|
2702
|
+
* @cssproperty --example - An example CSS custom property.
|
|
2490
2703
|
*/
|
|
2491
|
-
export
|
|
2492
|
-
|
|
2493
|
-
|
|
2704
|
+
export default class ZnCols extends ZincElement {
|
|
2705
|
+
static styles: CSSResultGroup;
|
|
2706
|
+
layout: string;
|
|
2707
|
+
maxColumns: number;
|
|
2708
|
+
noGap: boolean;
|
|
2709
|
+
border: boolean;
|
|
2710
|
+
pad: boolean;
|
|
2711
|
+
divide: boolean;
|
|
2712
|
+
padX: boolean;
|
|
2713
|
+
padY: boolean;
|
|
2714
|
+
render(): import("lit").TemplateResult<1>;
|
|
2494
2715
|
}
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2716
|
+
}
|
|
2717
|
+
declare module "components/cols/index" {
|
|
2718
|
+
import ZnCols from "components/cols/cols.component";
|
|
2719
|
+
export * from "components/cols/cols.component";
|
|
2720
|
+
export default ZnCols;
|
|
2721
|
+
global {
|
|
2722
|
+
interface HTMLElementTagNameMap {
|
|
2723
|
+
'zn-cols': ZnCols;
|
|
2724
|
+
}
|
|
2498
2725
|
}
|
|
2499
|
-
|
|
2500
|
-
|
|
2726
|
+
}
|
|
2727
|
+
declare module "components/defined-label/defined-label.component" {
|
|
2728
|
+
import { type CSSResultGroup, type PropertyValues, type TemplateResult } from 'lit';
|
|
2729
|
+
import ZincElement from "internal/zinc-element";
|
|
2730
|
+
import type { ZincFormControl } from "internal/zinc-element";
|
|
2731
|
+
import type ZnDropdown from "components/dropdown/index";
|
|
2732
|
+
import type ZnInput from "components/input/index";
|
|
2733
|
+
/**
|
|
2734
|
+
* @summary This component provides a labeled input with support for predefined and custom labels,
|
|
2735
|
+
* allowing users to select or enter label-value pairs within a dropdown interface.
|
|
2736
|
+
* @documentation https://zinc.style/components/defined-label
|
|
2737
|
+
* @status experimental
|
|
2738
|
+
* @since 1.0
|
|
2739
|
+
*
|
|
2740
|
+
* @dependency zn-button
|
|
2741
|
+
* @dependency zn-dropdown
|
|
2742
|
+
* @dependency zn-input
|
|
2743
|
+
* @dependency zn-option
|
|
2744
|
+
* @dependency zn-panel
|
|
2745
|
+
* @dependency zn-select
|
|
2746
|
+
* @dependency zn-sp
|
|
2747
|
+
*
|
|
2748
|
+
* @csspart input - The component's main input.
|
|
2749
|
+
* @csspart input-value - The label's value inputs.
|
|
2750
|
+
*/
|
|
2751
|
+
export default class ZnDefinedLabel extends ZincElement implements ZincFormControl {
|
|
2752
|
+
static styles: CSSResultGroup;
|
|
2753
|
+
private readonly formControlController;
|
|
2754
|
+
input: ZnInput;
|
|
2755
|
+
dropdown: ZnDropdown;
|
|
2501
2756
|
value: string;
|
|
2502
|
-
|
|
2757
|
+
inputValue: string;
|
|
2758
|
+
inputSize: 'x-small' | 'small' | 'medium' | 'large';
|
|
2759
|
+
name: string;
|
|
2760
|
+
title: string;
|
|
2761
|
+
disabled: boolean;
|
|
2762
|
+
allowCustom: boolean;
|
|
2763
|
+
predefinedLabels: never[];
|
|
2764
|
+
get validationMessage(): string;
|
|
2765
|
+
get validity(): ValidityState;
|
|
2766
|
+
checkValidity(): boolean;
|
|
2767
|
+
getForm(): HTMLFormElement | null;
|
|
2768
|
+
reportValidity(): boolean;
|
|
2769
|
+
setCustomValidity(message: string): void;
|
|
2770
|
+
handleValueChange(): Promise<void>;
|
|
2771
|
+
protected firstUpdated(changedProperties: PropertyValues): void;
|
|
2772
|
+
private handleChange;
|
|
2773
|
+
private handleInput;
|
|
2774
|
+
private handleClick;
|
|
2775
|
+
private handleInputValueChange;
|
|
2776
|
+
private handleInputValueInput;
|
|
2777
|
+
private handleFormSubmit;
|
|
2778
|
+
render(): TemplateResult<1>;
|
|
2503
2779
|
}
|
|
2504
|
-
export const emptyDataProvider: LocalDataProvider<DataProviderOption>;
|
|
2505
|
-
export * from "components/data-select/providers/country-data-provider";
|
|
2506
|
-
export * from "components/data-select/providers/currency-data-provider";
|
|
2507
|
-
export * from "components/data-select/providers/color-data-provider";
|
|
2508
|
-
export * from "components/data-select/providers/country-code-data-provider";
|
|
2509
2780
|
}
|
|
2510
|
-
declare module "components/
|
|
2511
|
-
import
|
|
2512
|
-
export
|
|
2513
|
-
export
|
|
2781
|
+
declare module "components/defined-label/index" {
|
|
2782
|
+
import ZnDefinedLabel from "components/defined-label/defined-label.component";
|
|
2783
|
+
export * from "components/defined-label/defined-label.component";
|
|
2784
|
+
export default ZnDefinedLabel;
|
|
2785
|
+
global {
|
|
2786
|
+
interface HTMLElementTagNameMap {
|
|
2787
|
+
'zn-defined-label': ZnDefinedLabel;
|
|
2788
|
+
}
|
|
2789
|
+
}
|
|
2514
2790
|
}
|
|
2515
2791
|
declare module "components/note/note.component" {
|
|
2516
2792
|
import { type colors } from "components/data-select/providers/color-data-provider";
|
|
@@ -2665,6 +2941,7 @@ declare module "components/chart/chart.component" {
|
|
|
2665
2941
|
categories: string | string[];
|
|
2666
2942
|
xAxis: string;
|
|
2667
2943
|
datapointSize: number;
|
|
2944
|
+
stacked: boolean;
|
|
2668
2945
|
live: boolean;
|
|
2669
2946
|
dataUrl: string;
|
|
2670
2947
|
liveInterval: number;
|
|
@@ -2768,10 +3045,13 @@ declare module "components/navbar/navbar.component" {
|
|
|
2768
3045
|
navigation: never[];
|
|
2769
3046
|
fullWidth: boolean;
|
|
2770
3047
|
iconBar: boolean;
|
|
3048
|
+
slim: boolean;
|
|
3049
|
+
border: boolean;
|
|
2771
3050
|
hideOne: boolean;
|
|
2772
3051
|
flush: boolean;
|
|
2773
3052
|
stacked: boolean;
|
|
2774
3053
|
dropdown: never[];
|
|
3054
|
+
noPad: false;
|
|
2775
3055
|
private _preItems;
|
|
2776
3056
|
private _postItems;
|
|
2777
3057
|
private _appended;
|
|
@@ -2858,9 +3138,9 @@ declare module "components/header/index" {
|
|
|
2858
3138
|
}
|
|
2859
3139
|
declare module "components/inline-edit/inline-edit.component" {
|
|
2860
3140
|
import { type CSSResultGroup, type HTMLTemplateResult } from 'lit';
|
|
2861
|
-
import type { ZincFormControl } from "internal/zinc-element";
|
|
2862
3141
|
import ZincElement from "internal/zinc-element";
|
|
2863
3142
|
import ZnSelect from "components/select/index";
|
|
3143
|
+
import type { ZincFormControl } from "internal/zinc-element";
|
|
2864
3144
|
import type ZnInput from "components/input/index";
|
|
2865
3145
|
/**
|
|
2866
3146
|
* @summary Short summary of the component's intended use.
|
|
@@ -2915,8 +3195,12 @@ declare module "components/inline-edit/inline-edit.component" {
|
|
|
2915
3195
|
firstUpdated(): Promise<void>;
|
|
2916
3196
|
handleValueChange(): Promise<void>;
|
|
2917
3197
|
handleIsEditingChange(): Promise<void>;
|
|
3198
|
+
mouseEventHandler: (e: MouseEvent) => void;
|
|
2918
3199
|
escKeyHandler: (e: KeyboardEvent) => void;
|
|
2919
|
-
|
|
3200
|
+
submitKeyHandler: (e: KeyboardEvent) => void;
|
|
3201
|
+
captureMouseDown: (e: MouseEvent) => void;
|
|
3202
|
+
captureKeyDown: (e: KeyboardEvent) => void;
|
|
3203
|
+
handleEditClick: (e: MouseEvent) => void;
|
|
2920
3204
|
handleSubmitClick: (e: MouseEvent) => void;
|
|
2921
3205
|
handleCancelClick: (e: MouseEvent) => void;
|
|
2922
3206
|
handleBlur: () => void;
|
|
@@ -3093,6 +3377,7 @@ declare module "components/tabs/tabs.component" {
|
|
|
3093
3377
|
protected _activeClicks: number;
|
|
3094
3378
|
private _panel;
|
|
3095
3379
|
private _panels;
|
|
3380
|
+
private _activeTab;
|
|
3096
3381
|
private _tabs;
|
|
3097
3382
|
private _actions;
|
|
3098
3383
|
private _knownUri;
|
|
@@ -3158,11 +3443,13 @@ declare module "components/panel/panel.component" {
|
|
|
3158
3443
|
caption: string;
|
|
3159
3444
|
description: string;
|
|
3160
3445
|
tabbed: boolean;
|
|
3446
|
+
cosmic: boolean;
|
|
3161
3447
|
flush: boolean;
|
|
3162
3448
|
flushX: boolean;
|
|
3163
3449
|
flushY: boolean;
|
|
3164
3450
|
transparent: boolean;
|
|
3165
3451
|
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
3452
|
+
connectedCallback(): void;
|
|
3166
3453
|
protected render(): unknown;
|
|
3167
3454
|
}
|
|
3168
3455
|
}
|
|
@@ -3267,7 +3554,7 @@ declare module "components/pane/index" {
|
|
|
3267
3554
|
}
|
|
3268
3555
|
}
|
|
3269
3556
|
declare module "utilities/on" {
|
|
3270
|
-
type OnEvent = Event & {
|
|
3557
|
+
export type OnEvent = Event & {
|
|
3271
3558
|
selectedTarget: EventTarget;
|
|
3272
3559
|
path: EventTarget[];
|
|
3273
3560
|
};
|
|
@@ -3278,8 +3565,8 @@ declare module "utilities/on" {
|
|
|
3278
3565
|
}
|
|
3279
3566
|
declare module "components/split-pane/split-pane.component" {
|
|
3280
3567
|
import { type CSSResultGroup } from 'lit';
|
|
3281
|
-
import ZincElement from "internal/zinc-element";
|
|
3282
3568
|
import { Store } from "internal/storage";
|
|
3569
|
+
import ZincElement from "internal/zinc-element";
|
|
3283
3570
|
/**
|
|
3284
3571
|
* @summary Short summary of the component's intended use.
|
|
3285
3572
|
* @documentation https://zinc.style/components/split-pane
|
|
@@ -3433,6 +3720,7 @@ declare module "components/sp/sp.component" {
|
|
|
3433
3720
|
flushL: boolean;
|
|
3434
3721
|
flushR: boolean;
|
|
3435
3722
|
widthContainer: boolean;
|
|
3723
|
+
formContainer: boolean;
|
|
3436
3724
|
connectedCallback(): void;
|
|
3437
3725
|
protected render(): unknown;
|
|
3438
3726
|
}
|
|
@@ -3516,6 +3804,7 @@ declare module "components/stat/stat.component" {
|
|
|
3516
3804
|
previous: string;
|
|
3517
3805
|
currency: string;
|
|
3518
3806
|
showDelta: boolean;
|
|
3807
|
+
color: 'primary' | 'error' | 'info' | 'warning' | 'success' | 'neutral';
|
|
3519
3808
|
calcPercentageDifference(): number;
|
|
3520
3809
|
getCurrentAmount(): string;
|
|
3521
3810
|
private getDisplayAmount;
|
|
@@ -3534,7 +3823,7 @@ declare module "components/stat/index" {
|
|
|
3534
3823
|
}
|
|
3535
3824
|
}
|
|
3536
3825
|
declare module "components/scroll-container/scroll-container.component" {
|
|
3537
|
-
import { type CSSResultGroup } from 'lit';
|
|
3826
|
+
import { type CSSResultGroup, PropertyValues } from 'lit';
|
|
3538
3827
|
import ZincElement from "internal/zinc-element";
|
|
3539
3828
|
/**
|
|
3540
3829
|
* @summary Short summary of the component's intended use.
|
|
@@ -3542,184 +3831,37 @@ declare module "components/scroll-container/scroll-container.component" {
|
|
|
3542
3831
|
* @status experimental
|
|
3543
3832
|
* @since 1.0
|
|
3544
3833
|
*
|
|
3545
|
-
* @dependency zn-example
|
|
3546
|
-
*
|
|
3547
|
-
* @event zn-event-name - Emitted as an example.
|
|
3548
|
-
*
|
|
3549
|
-
* @slot - The default slot.
|
|
3550
|
-
* @slot example - An example slot.
|
|
3551
|
-
*
|
|
3552
|
-
* @csspart base - The component's base wrapper.
|
|
3553
|
-
*
|
|
3554
|
-
* @cssproperty --example - An example CSS custom property.
|
|
3555
|
-
*/
|
|
3556
|
-
export default class ZnScrollContainer extends ZincElement {
|
|
3557
|
-
static styles: CSSResultGroup;
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
}
|
|
3562
|
-
declare module "components/scroll-container/index" {
|
|
3563
|
-
import ZnScrollContainer from "components/scroll-container/scroll-container.component";
|
|
3564
|
-
export * from "components/scroll-container/scroll-container.component";
|
|
3565
|
-
export default ZnScrollContainer;
|
|
3566
|
-
global {
|
|
3567
|
-
interface HTMLElementTagNameMap {
|
|
3568
|
-
'zn-scroll-container': ZnScrollContainer;
|
|
3569
|
-
}
|
|
3570
|
-
}
|
|
3571
|
-
}
|
|
3572
|
-
declare module "utilities/lit-to-html" {
|
|
3573
|
-
import { type TemplateResult } from "lit";
|
|
3574
|
-
export function litToHTML<T extends HTMLElement>(templateResult: TemplateResult): T | null;
|
|
3575
|
-
}
|
|
3576
|
-
declare module "events/zn-change" {
|
|
3577
|
-
export type ZnChangeEvent = CustomEvent<Record<PropertyKey, never>>;
|
|
3578
|
-
global {
|
|
3579
|
-
interface GlobalEventHandlersEventMap {
|
|
3580
|
-
'zn-change': ZnChangeEvent;
|
|
3581
|
-
}
|
|
3582
|
-
}
|
|
3583
|
-
}
|
|
3584
|
-
declare module "events/zn-input" {
|
|
3585
|
-
export type ZnInputEvent = CustomEvent<Record<PropertyKey, never>>;
|
|
3586
|
-
global {
|
|
3587
|
-
interface GlobalEventHandlersEventMap {
|
|
3588
|
-
'zn-input': ZnInputEvent;
|
|
3589
|
-
}
|
|
3590
|
-
}
|
|
3591
|
-
}
|
|
3592
|
-
declare module "components/query-builder/query-builder.component" {
|
|
3593
|
-
import { type CSSResultGroup, type PropertyValues } from 'lit';
|
|
3594
|
-
import ZincElement from "internal/zinc-element";
|
|
3595
|
-
import ZnButton from "components/button/index";
|
|
3596
|
-
import ZnInput from "components/input/index";
|
|
3597
|
-
import ZnOption from "components/option/index";
|
|
3598
|
-
import ZnSelect from "components/select/index";
|
|
3599
|
-
import type { ZincFormControl } from "internal/zinc-element";
|
|
3600
|
-
export type QueryBuilderData = QueryBuilderItem[];
|
|
3601
|
-
export interface QueryBuilderItem {
|
|
3602
|
-
id: string;
|
|
3603
|
-
name: string;
|
|
3604
|
-
type?: QueryBuilderType;
|
|
3605
|
-
options?: QueryBuilderOptions;
|
|
3606
|
-
operators: QueryBuilderOperators[];
|
|
3607
|
-
maxOptionsVisible?: string;
|
|
3608
|
-
}
|
|
3609
|
-
export type QueryBuilderType = 'bool' | 'boolean' | 'date' | 'number';
|
|
3610
|
-
export interface QueryBuilderOptions {
|
|
3611
|
-
[key: string | number]: string | number;
|
|
3612
|
-
}
|
|
3613
|
-
export enum QueryBuilderOperators {
|
|
3614
|
-
Eq = "eq",
|
|
3615
|
-
Neq = "neq",
|
|
3616
|
-
Eqi = "eqi",
|
|
3617
|
-
Neqi = "neqi",
|
|
3618
|
-
Before = "before",
|
|
3619
|
-
After = "after",
|
|
3620
|
-
In = "in",
|
|
3621
|
-
Nin = "nin",
|
|
3622
|
-
MatchPhrasePre = "matchphrasepre",
|
|
3623
|
-
NMatchPhrasePre = "nmatchphrasepre",
|
|
3624
|
-
MatchPhrase = "matchphrase",
|
|
3625
|
-
NMatchPhrase = "nmatchphrase",
|
|
3626
|
-
Match = "match",
|
|
3627
|
-
NMatch = "nmatch",
|
|
3628
|
-
Contains = "contains",
|
|
3629
|
-
DoesNotContain = "doesnotcontain",
|
|
3630
|
-
Starts = "starts",
|
|
3631
|
-
NStarts = "nstarts",
|
|
3632
|
-
Ends = "ends",
|
|
3633
|
-
NEnds = "nends",
|
|
3634
|
-
Wild = "wild",
|
|
3635
|
-
NWild = "nwild",
|
|
3636
|
-
Like = "like",
|
|
3637
|
-
NLike = "nlike",
|
|
3638
|
-
Fuzzy = "fuzzy",
|
|
3639
|
-
NFuzzy = "nfuzzy",
|
|
3640
|
-
Gte = "gte",
|
|
3641
|
-
Gt = "gt",
|
|
3642
|
-
Lt = "lt",
|
|
3643
|
-
Lte = "lte"
|
|
3644
|
-
}
|
|
3645
|
-
export interface CreatedRule {
|
|
3646
|
-
id: string;
|
|
3647
|
-
name: string;
|
|
3648
|
-
operator: string;
|
|
3649
|
-
value: string;
|
|
3650
|
-
}
|
|
3651
|
-
/**
|
|
3652
|
-
* @summary Short summary of the component's intended use.
|
|
3653
|
-
* @documentation https://zinc.style/components/query-builder
|
|
3654
|
-
* @status experimental
|
|
3655
|
-
* @since 1.0
|
|
3656
|
-
*
|
|
3657
|
-
* @dependency zn-button
|
|
3658
|
-
* @dependency zn-input
|
|
3659
|
-
* @dependency zn-option
|
|
3660
|
-
* @dependency zn-select
|
|
3661
|
-
*
|
|
3662
|
-
* @slot - The default slot.
|
|
3663
|
-
* @slot example - An example slot.
|
|
3664
|
-
*
|
|
3665
|
-
* @csspart base - The component's base wrapper.
|
|
3666
|
-
*
|
|
3667
|
-
* @cssproperty --example - An example CSS custom property.
|
|
3668
|
-
*/
|
|
3669
|
-
export default class ZnQueryBuilder extends ZincElement implements ZincFormControl {
|
|
3670
|
-
static styles: CSSResultGroup;
|
|
3671
|
-
static dependencies: {
|
|
3672
|
-
'zn-button': typeof ZnButton;
|
|
3673
|
-
'zn-input': typeof ZnInput;
|
|
3674
|
-
'zn-option': typeof ZnOption;
|
|
3675
|
-
'zn-select': typeof ZnSelect;
|
|
3676
|
-
};
|
|
3677
|
-
private _selectedRules;
|
|
3678
|
-
private _formController;
|
|
3679
|
-
private _previousOperator;
|
|
3680
|
-
container: HTMLDivElement;
|
|
3681
|
-
addRule: ZnSelect;
|
|
3682
|
-
input: HTMLInputElement;
|
|
3683
|
-
filters: QueryBuilderData;
|
|
3684
|
-
dropdown: boolean;
|
|
3685
|
-
name: string;
|
|
3686
|
-
value: PropertyKey;
|
|
3687
|
-
showValues: string[];
|
|
3688
|
-
get validationMessage(): string;
|
|
3689
|
-
get validity(): ValidityState;
|
|
3834
|
+
* @dependency zn-example
|
|
3835
|
+
*
|
|
3836
|
+
* @event zn-event-name - Emitted as an example.
|
|
3837
|
+
*
|
|
3838
|
+
* @slot - The default slot.
|
|
3839
|
+
* @slot example - An example slot.
|
|
3840
|
+
*
|
|
3841
|
+
* @csspart base - The component's base wrapper.
|
|
3842
|
+
*
|
|
3843
|
+
* @cssproperty --example - An example CSS custom property.
|
|
3844
|
+
*/
|
|
3845
|
+
export default class ZnScrollContainer extends ZincElement {
|
|
3846
|
+
static styles: CSSResultGroup;
|
|
3847
|
+
startScrolled: boolean;
|
|
3848
|
+
private container;
|
|
3849
|
+
private footer;
|
|
3690
3850
|
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
3851
|
+
scrollEnd(): void;
|
|
3852
|
+
private _footerResizeObserver?;
|
|
3853
|
+
connectedCallback(): void;
|
|
3854
|
+
disconnectedCallback(): void;
|
|
3691
3855
|
render(): import("lit").TemplateResult<1>;
|
|
3692
|
-
private _handleChange;
|
|
3693
|
-
private _addRule;
|
|
3694
|
-
private _createInput;
|
|
3695
|
-
private _changeValueInput;
|
|
3696
|
-
private _createBooleanInput;
|
|
3697
|
-
private _createNumberInput;
|
|
3698
|
-
private _createDateInput;
|
|
3699
|
-
private _createSelectInput;
|
|
3700
|
-
private _createDefaultInput;
|
|
3701
|
-
private _updateOperatorValue;
|
|
3702
|
-
private _updateDateValue;
|
|
3703
|
-
private _updateValue;
|
|
3704
|
-
private updateInValue;
|
|
3705
|
-
private _changeRule;
|
|
3706
|
-
private _getRulePosition;
|
|
3707
|
-
private _removeRule;
|
|
3708
|
-
clear(): void;
|
|
3709
|
-
reset(): void;
|
|
3710
|
-
checkValidity(): boolean;
|
|
3711
|
-
getForm(): HTMLFormElement | null;
|
|
3712
|
-
reportValidity(): boolean;
|
|
3713
|
-
setCustomValidity(message: string): void;
|
|
3714
3856
|
}
|
|
3715
3857
|
}
|
|
3716
|
-
declare module "components/
|
|
3717
|
-
import
|
|
3718
|
-
export * from "components/
|
|
3719
|
-
export default
|
|
3858
|
+
declare module "components/scroll-container/index" {
|
|
3859
|
+
import ZnScrollContainer from "components/scroll-container/scroll-container.component";
|
|
3860
|
+
export * from "components/scroll-container/scroll-container.component";
|
|
3861
|
+
export default ZnScrollContainer;
|
|
3720
3862
|
global {
|
|
3721
3863
|
interface HTMLElementTagNameMap {
|
|
3722
|
-
'zn-
|
|
3864
|
+
'zn-scroll-container': ZnScrollContainer;
|
|
3723
3865
|
}
|
|
3724
3866
|
}
|
|
3725
3867
|
}
|
|
@@ -3861,6 +4003,10 @@ declare module "components/order-table/index" {
|
|
|
3861
4003
|
declare module "components/bulk-actions/bulk-actions.component" {
|
|
3862
4004
|
import { type CSSResultGroup, type PropertyValues } from 'lit';
|
|
3863
4005
|
import ZincElement from "internal/zinc-element";
|
|
4006
|
+
import ZnButton from "components/button/index";
|
|
4007
|
+
import ZnInput from "components/input/index";
|
|
4008
|
+
import ZnOption from "components/option/index";
|
|
4009
|
+
import ZnSelect from "components/select/index";
|
|
3864
4010
|
export interface CreatedRule {
|
|
3865
4011
|
id: string;
|
|
3866
4012
|
name: string;
|
|
@@ -3881,7 +4027,10 @@ declare module "components/bulk-actions/bulk-actions.component" {
|
|
|
3881
4027
|
* @status experimental
|
|
3882
4028
|
* @since 1.0
|
|
3883
4029
|
*
|
|
3884
|
-
* @dependency zn-
|
|
4030
|
+
* @dependency zn-button
|
|
4031
|
+
* @dependency zn-input
|
|
4032
|
+
* @dependency zn-option
|
|
4033
|
+
* @dependency zn-select
|
|
3885
4034
|
*
|
|
3886
4035
|
* @event zn-event-name - Emitted as an example.
|
|
3887
4036
|
*
|
|
@@ -3894,8 +4043,14 @@ declare module "components/bulk-actions/bulk-actions.component" {
|
|
|
3894
4043
|
*/
|
|
3895
4044
|
export default class ZnBulkActions extends ZincElement {
|
|
3896
4045
|
static styles: CSSResultGroup;
|
|
4046
|
+
static dependencies: {
|
|
4047
|
+
'zn-button': typeof ZnButton;
|
|
4048
|
+
'zn-input': typeof ZnInput;
|
|
4049
|
+
'zn-option': typeof ZnOption;
|
|
4050
|
+
'zn-select': typeof ZnSelect;
|
|
4051
|
+
};
|
|
3897
4052
|
container: HTMLDivElement;
|
|
3898
|
-
addRule:
|
|
4053
|
+
addRule: ZnSelect;
|
|
3899
4054
|
input: HTMLInputElement;
|
|
3900
4055
|
name: string;
|
|
3901
4056
|
value: PropertyKey;
|
|
@@ -3908,7 +4063,9 @@ declare module "components/bulk-actions/bulk-actions.component" {
|
|
|
3908
4063
|
render(): import("lit").TemplateResult<1>;
|
|
3909
4064
|
private _handleChange;
|
|
3910
4065
|
private _addRule;
|
|
4066
|
+
private _createInput;
|
|
3911
4067
|
private _updateValue;
|
|
4068
|
+
private _getRulePosition;
|
|
3912
4069
|
private _changeRule;
|
|
3913
4070
|
private _removeRule;
|
|
3914
4071
|
checkValidity(): boolean;
|
|
@@ -3927,9 +4084,150 @@ declare module "components/bulk-actions/index" {
|
|
|
3927
4084
|
}
|
|
3928
4085
|
}
|
|
3929
4086
|
}
|
|
3930
|
-
declare module "components/editor/modules/
|
|
4087
|
+
declare module "components/editor/modules/toolbar/tool/tool.component" {
|
|
4088
|
+
import { type CSSResultGroup } from "lit";
|
|
4089
|
+
import ZincElement from "internal/zinc-element";
|
|
4090
|
+
export default class ZnEditorTool extends ZincElement {
|
|
4091
|
+
static styles: CSSResultGroup;
|
|
4092
|
+
uri: string;
|
|
4093
|
+
label: string;
|
|
4094
|
+
key: string;
|
|
4095
|
+
icon: string;
|
|
4096
|
+
handler: string;
|
|
4097
|
+
render(): import("lit").TemplateResult<1>;
|
|
4098
|
+
}
|
|
4099
|
+
}
|
|
4100
|
+
declare module "components/editor/modules/toolbar/tool/index" {
|
|
4101
|
+
import ZnEditorTool from "components/editor/modules/toolbar/tool/tool.component";
|
|
4102
|
+
export * from "components/editor/modules/toolbar/tool/tool.component";
|
|
4103
|
+
export default ZnEditorTool;
|
|
4104
|
+
global {
|
|
4105
|
+
interface HTMLElementTagNameMap {
|
|
4106
|
+
'zn-editor-tool': ZnEditorTool;
|
|
4107
|
+
}
|
|
4108
|
+
}
|
|
4109
|
+
}
|
|
4110
|
+
declare module "components/editor/modules/toolbar/toolbar.component" {
|
|
4111
|
+
import { type CSSResultGroup, type PropertyValues } from "lit";
|
|
4112
|
+
import ZincElement from "internal/zinc-element";
|
|
4113
|
+
export default class ToolbarComponent extends ZincElement {
|
|
4114
|
+
static styles: CSSResultGroup;
|
|
4115
|
+
containerWidth: number;
|
|
4116
|
+
private _toolbarEl;
|
|
4117
|
+
private _groups;
|
|
4118
|
+
private _overflowMenu;
|
|
4119
|
+
private _overflowGroup;
|
|
4120
|
+
private _resizeObserver;
|
|
4121
|
+
private _resizeId;
|
|
4122
|
+
private _movedContent;
|
|
4123
|
+
connectedCallback(): void;
|
|
4124
|
+
disconnectedCallback(): void;
|
|
4125
|
+
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
4126
|
+
handleResize: () => void;
|
|
4127
|
+
private getToolbarWidth;
|
|
4128
|
+
private getOverflowGroupWidth;
|
|
4129
|
+
private restoreMovedContent;
|
|
4130
|
+
private moveContentTo;
|
|
4131
|
+
private isGroupEmpty;
|
|
4132
|
+
private updateEmptyGroups;
|
|
4133
|
+
private _updateDividerClasses;
|
|
4134
|
+
private calculateOverflow;
|
|
4135
|
+
private _dispatchOverflowEvent;
|
|
4136
|
+
private populateOverflowMenu;
|
|
4137
|
+
render(): import("lit").TemplateResult<1>;
|
|
4138
|
+
private _textOptions;
|
|
4139
|
+
private _formatOptions;
|
|
4140
|
+
private _commonFormatOptions;
|
|
4141
|
+
private _historyOptions;
|
|
4142
|
+
private _colorOptions;
|
|
4143
|
+
private _listOptions;
|
|
4144
|
+
private _insertOptions;
|
|
4145
|
+
private _emojiOptions;
|
|
4146
|
+
private _dateOption;
|
|
4147
|
+
}
|
|
4148
|
+
}
|
|
4149
|
+
declare module "components/editor/modules/dialog/dialog.component" {
|
|
4150
|
+
import { type CSSResultGroup, type PropertyValues } from "lit";
|
|
4151
|
+
import ZincElement from "internal/zinc-element";
|
|
4152
|
+
export default class DialogComponent extends ZincElement {
|
|
4153
|
+
static styles: CSSResultGroup;
|
|
4154
|
+
private hasFocus;
|
|
4155
|
+
dialogEl: HTMLDialogElement;
|
|
4156
|
+
open: boolean;
|
|
4157
|
+
uri: string;
|
|
4158
|
+
private closeWatcher;
|
|
4159
|
+
private _editorId;
|
|
4160
|
+
set editorId(value: string);
|
|
4161
|
+
connectedCallback(): void;
|
|
4162
|
+
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
4163
|
+
setContent(content: string): void;
|
|
4164
|
+
handleOpenChange(): void;
|
|
4165
|
+
private addOpenListeners;
|
|
4166
|
+
private removeOpenListeners;
|
|
4167
|
+
private requestClose;
|
|
4168
|
+
private _getLoadingState;
|
|
4169
|
+
render(): import("lit").TemplateResult<1>;
|
|
4170
|
+
}
|
|
4171
|
+
}
|
|
4172
|
+
declare module "components/editor/modules/emoji/emoji" {
|
|
3931
4173
|
import Quill from 'quill';
|
|
3932
|
-
|
|
4174
|
+
export interface EmojiResult {
|
|
4175
|
+
native?: string;
|
|
4176
|
+
skins?: {
|
|
4177
|
+
native?: string;
|
|
4178
|
+
}[];
|
|
4179
|
+
id?: string;
|
|
4180
|
+
shortcodes?: string;
|
|
4181
|
+
}
|
|
4182
|
+
class Emoji {
|
|
4183
|
+
private readonly _quill;
|
|
4184
|
+
private _mo;
|
|
4185
|
+
constructor(quill: Quill);
|
|
4186
|
+
private getHostEditor;
|
|
4187
|
+
private getToolbarEmojiContainer;
|
|
4188
|
+
private getTheme;
|
|
4189
|
+
initPicker(): void;
|
|
4190
|
+
private onEmojiSelect;
|
|
4191
|
+
}
|
|
4192
|
+
export default Emoji;
|
|
4193
|
+
}
|
|
4194
|
+
declare module "components/editor/modules/toolbar/toolbar" {
|
|
4195
|
+
import "components/editor/modules/toolbar/toolbar.component";
|
|
4196
|
+
import Quill from "quill";
|
|
4197
|
+
import QuillToolbar from "quill/modules/toolbar";
|
|
4198
|
+
import type ToolbarComponent from "components/editor/modules/toolbar/toolbar.component";
|
|
4199
|
+
class Toolbar extends QuillToolbar {
|
|
4200
|
+
private readonly _quill;
|
|
4201
|
+
private readonly _component;
|
|
4202
|
+
private _lastDialogUri?;
|
|
4203
|
+
private _formatters;
|
|
4204
|
+
constructor(quill: Quill, options: {
|
|
4205
|
+
container: ToolbarComponent;
|
|
4206
|
+
handlers?: Record<string, (value?: any) => void>;
|
|
4207
|
+
});
|
|
4208
|
+
callFormat(key: string, value?: string | boolean | undefined): void;
|
|
4209
|
+
trigger(key: string): void;
|
|
4210
|
+
private _attachToolbarHandlers;
|
|
4211
|
+
private _onToolbarClick;
|
|
4212
|
+
private _syncToolbarState;
|
|
4213
|
+
private _updateHeadingFormatMenu;
|
|
4214
|
+
private _updateListFormatMenu;
|
|
4215
|
+
private _updateTextFormatMenu;
|
|
4216
|
+
private _updateColorFormatMenu;
|
|
4217
|
+
private _getTextFormats;
|
|
4218
|
+
private _updateMenuCheckedState;
|
|
4219
|
+
private _updateDropdownTrigger;
|
|
4220
|
+
private _syncButtonState;
|
|
4221
|
+
private _insertDivider;
|
|
4222
|
+
private _openDatePicker;
|
|
4223
|
+
private _openDialog;
|
|
4224
|
+
private _handleOverflowUpdate;
|
|
4225
|
+
}
|
|
4226
|
+
export default Toolbar;
|
|
4227
|
+
}
|
|
4228
|
+
declare module "components/editor/modules/attachment/attachment" {
|
|
4229
|
+
import type Quill from 'quill';
|
|
4230
|
+
interface AttachmentOptions {
|
|
3933
4231
|
upload: (file: File) => Promise<{
|
|
3934
4232
|
path: any;
|
|
3935
4233
|
url: any;
|
|
@@ -3939,12 +4237,12 @@ declare module "components/editor/modules/attachment-module" {
|
|
|
3939
4237
|
url: string;
|
|
3940
4238
|
}) => void;
|
|
3941
4239
|
attachmentInput?: HTMLInputElement;
|
|
3942
|
-
}
|
|
3943
|
-
export default class
|
|
4240
|
+
}
|
|
4241
|
+
export default class Attachment {
|
|
3944
4242
|
private _quill;
|
|
3945
4243
|
private _options;
|
|
3946
4244
|
private _fileHolder;
|
|
3947
|
-
constructor(quill: Quill, options:
|
|
4245
|
+
constructor(quill: Quill, options: AttachmentOptions);
|
|
3948
4246
|
private _selectLocalImage;
|
|
3949
4247
|
private _fileChanged;
|
|
3950
4248
|
private _attachmentContainer;
|
|
@@ -3956,339 +4254,225 @@ declare module "components/editor/modules/attachment-module" {
|
|
|
3956
4254
|
private _uploadAttachment;
|
|
3957
4255
|
}
|
|
3958
4256
|
}
|
|
3959
|
-
declare module "components/editor/modules/
|
|
3960
|
-
import { type CSSResultGroup, type PropertyValues
|
|
4257
|
+
declare module "components/editor/modules/context-menu/context-menu-component" {
|
|
4258
|
+
import { type CSSResultGroup, type PropertyValues } from 'lit';
|
|
3961
4259
|
import ZincElement from "internal/zinc-element";
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
4260
|
+
export interface ResultItem {
|
|
4261
|
+
icon: string;
|
|
4262
|
+
label: string;
|
|
4263
|
+
format?: string;
|
|
4264
|
+
key?: string;
|
|
4265
|
+
value?: string | boolean;
|
|
4266
|
+
}
|
|
4267
|
+
export default class ContextMenuComponent extends ZincElement {
|
|
3966
4268
|
static styles: CSSResultGroup;
|
|
3967
|
-
private hasFocus;
|
|
3968
|
-
private isSearching;
|
|
3969
|
-
dialogEl: HTMLDialogElement;
|
|
3970
|
-
searchInput: ZnInput;
|
|
3971
|
-
commandList: HTMLElement;
|
|
3972
|
-
dialogModule: HTMLElement;
|
|
3973
|
-
allCommands: CannedResponse[];
|
|
3974
|
-
commands: CannedResponse[];
|
|
3975
4269
|
open: boolean;
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
private removeOpenListeners;
|
|
3988
|
-
private requestClose;
|
|
3989
|
-
private handleClick;
|
|
3990
|
-
private _createCommand;
|
|
3991
|
-
private isFuzzyMatch;
|
|
3992
|
-
handleSearch(event: ZnInputEvent): void;
|
|
3993
|
-
render(): TemplateResult<1>;
|
|
4270
|
+
query: string;
|
|
4271
|
+
results: ResultItem[];
|
|
4272
|
+
private _activeIndex;
|
|
4273
|
+
show(): void;
|
|
4274
|
+
hide(): void;
|
|
4275
|
+
setPosition(left: number, top: number): void;
|
|
4276
|
+
setActiveIndex(index: number): void;
|
|
4277
|
+
getActiveIndex(): number;
|
|
4278
|
+
private _onClickItem;
|
|
4279
|
+
protected willUpdate(changed: PropertyValues): void;
|
|
4280
|
+
render(): import("lit").TemplateResult<1>;
|
|
3994
4281
|
}
|
|
3995
4282
|
}
|
|
3996
|
-
declare module "components/editor/modules/
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4283
|
+
declare module "components/editor/modules/context-menu/quick-action/quick-action.component" {
|
|
4284
|
+
import ZincElement from "internal/zinc-element";
|
|
4285
|
+
export default class ZnEditorQuickAction extends ZincElement {
|
|
4286
|
+
uri: string;
|
|
4287
|
+
label: string;
|
|
4288
|
+
content: string;
|
|
4289
|
+
key: string;
|
|
4290
|
+
icon: string;
|
|
4291
|
+
render(): import("lit").TemplateResult<1>;
|
|
4292
|
+
}
|
|
4293
|
+
}
|
|
4294
|
+
declare module "components/editor/modules/context-menu/quick-action/index" {
|
|
4295
|
+
import ZnEditorQuickAction from "components/editor/modules/context-menu/quick-action/quick-action.component";
|
|
4296
|
+
export * from "components/editor/modules/context-menu/quick-action/quick-action.component";
|
|
4297
|
+
export default ZnEditorQuickAction;
|
|
4000
4298
|
global {
|
|
4001
|
-
interface
|
|
4002
|
-
'zn-
|
|
4299
|
+
interface HTMLElementTagNameMap {
|
|
4300
|
+
'zn-editor-quick-action': ZnEditorQuickAction;
|
|
4003
4301
|
}
|
|
4004
4302
|
}
|
|
4005
4303
|
}
|
|
4006
|
-
declare module "components/editor/modules/
|
|
4007
|
-
import "components/editor/modules/
|
|
4008
|
-
import
|
|
4009
|
-
|
|
4010
|
-
class DialogModule {
|
|
4304
|
+
declare module "components/editor/modules/context-menu/context-menu" {
|
|
4305
|
+
import "components/editor/modules/context-menu/context-menu-component";
|
|
4306
|
+
import Quill from "quill";
|
|
4307
|
+
class ContextMenu {
|
|
4011
4308
|
private _quill;
|
|
4012
|
-
private
|
|
4013
|
-
private
|
|
4309
|
+
private readonly _toolbarModule;
|
|
4310
|
+
private _component;
|
|
4311
|
+
private _startIndex;
|
|
4312
|
+
private _keydownHandler;
|
|
4313
|
+
private _docClickHandler;
|
|
4014
4314
|
constructor(quill: Quill);
|
|
4015
|
-
|
|
4016
|
-
private _open;
|
|
4017
|
-
private _close;
|
|
4018
|
-
private initDialog;
|
|
4315
|
+
private initComponent;
|
|
4019
4316
|
private attachEvents;
|
|
4020
|
-
private
|
|
4021
|
-
private
|
|
4022
|
-
private
|
|
4023
|
-
private
|
|
4024
|
-
private
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4317
|
+
private createComponent;
|
|
4318
|
+
private onDocumentClick;
|
|
4319
|
+
private updateFromEditor;
|
|
4320
|
+
private positionComponent;
|
|
4321
|
+
private getToolbarQuery;
|
|
4322
|
+
private onKeydown;
|
|
4323
|
+
private onToolbarSelect;
|
|
4324
|
+
private _clickToolbarItem;
|
|
4325
|
+
private _applySelectedFormat;
|
|
4326
|
+
private deleteLastIndex;
|
|
4327
|
+
private _getOptions;
|
|
4328
|
+
private show;
|
|
4329
|
+
private hide;
|
|
4330
|
+
isOpen(): boolean;
|
|
4331
|
+
}
|
|
4332
|
+
export default ContextMenu;
|
|
4333
|
+
}
|
|
4334
|
+
declare module "components/editor/modules/date-picker/date-picker" {
|
|
4335
|
+
import Quill from "quill";
|
|
4336
|
+
class DatePicker {
|
|
4337
|
+
private readonly _quill;
|
|
4338
|
+
constructor(quill: Quill);
|
|
4339
|
+
private _initPicker;
|
|
4340
|
+
private getToolbarDateContainer;
|
|
4341
|
+
private _onDateSelect;
|
|
4342
|
+
}
|
|
4343
|
+
export default DatePicker;
|
|
4344
|
+
}
|
|
4345
|
+
declare module "components/editor/modules/dialog/dialog" {
|
|
4346
|
+
import type Quill from "quill";
|
|
4347
|
+
class Dialog {
|
|
4348
|
+
private readonly _quill;
|
|
4349
|
+
private readonly _editorId;
|
|
4350
|
+
private readonly _document;
|
|
4351
|
+
private _component;
|
|
4352
|
+
constructor(quill: Quill, options: {
|
|
4353
|
+
editorId: string;
|
|
4354
|
+
});
|
|
4355
|
+
private _initDialog;
|
|
4356
|
+
private createComponent;
|
|
4357
|
+
isOpen(): boolean;
|
|
4358
|
+
close(): void;
|
|
4359
|
+
}
|
|
4360
|
+
export default Dialog;
|
|
4361
|
+
}
|
|
4362
|
+
declare module "components/editor/modules/drag-drop/drag-drop" {
|
|
4363
|
+
import type Quill from 'quill';
|
|
4364
|
+
interface DragAndDropOptions {
|
|
4031
4365
|
onDrop: (file: File, options: object) => void;
|
|
4032
4366
|
draggableContentTypePattern: string;
|
|
4033
4367
|
draggables: [];
|
|
4034
4368
|
}
|
|
4035
|
-
export default class
|
|
4369
|
+
export default class DragAndDrop {
|
|
4036
4370
|
private _quill;
|
|
4037
4371
|
private _options;
|
|
4038
4372
|
private _container;
|
|
4039
4373
|
private _draggables;
|
|
4040
|
-
constructor(quill: Quill, options:
|
|
4374
|
+
constructor(quill: Quill, options: DragAndDropOptions);
|
|
4041
4375
|
nullReturner: () => null;
|
|
4042
4376
|
handleDrop: (e: DragEvent) => void;
|
|
4043
4377
|
}
|
|
4044
4378
|
export const getFileDataUrl: (file: any) => Promise<unknown>;
|
|
4045
4379
|
}
|
|
4046
|
-
declare module "components/editor/modules/
|
|
4047
|
-
import Quill, { Module } from "quill";
|
|
4048
|
-
type ImageResizeModuleOptions = {
|
|
4049
|
-
overlayStyles?: Partial<CSSStyleDeclaration>;
|
|
4050
|
-
};
|
|
4051
|
-
class ImageResizeModule extends Module<ImageResizeModuleOptions> {
|
|
4052
|
-
static DEFAULTS: ImageResizeModuleOptions;
|
|
4053
|
-
private _focusedImage;
|
|
4054
|
-
private _overlay;
|
|
4055
|
-
constructor(quill: Quill, options: ImageResizeModuleOptions);
|
|
4056
|
-
handleClick: (e: MouseEvent) => void;
|
|
4057
|
-
handleScroll: () => void;
|
|
4058
|
-
show: (image: HTMLImageElement) => void;
|
|
4059
|
-
hide: () => void;
|
|
4060
|
-
showOverlay: () => void;
|
|
4061
|
-
hideOverlay: () => void;
|
|
4062
|
-
repositionElements: () => void;
|
|
4063
|
-
setUserSelect: (value: string) => void;
|
|
4064
|
-
checkImage: (e: KeyboardEvent) => void;
|
|
4065
|
-
}
|
|
4066
|
-
export default ImageResizeModule;
|
|
4067
|
-
}
|
|
4068
|
-
declare module "components/editor/modules/menu-module/menu-module.component" {
|
|
4069
|
-
import { type CSSResultGroup, type TemplateResult } from "lit";
|
|
4070
|
-
import ZincElement from "internal/zinc-element";
|
|
4071
|
-
import type { CannedResponse } from "components/editor/editor.component";
|
|
4072
|
-
import type ZnMenu from "components/menu/index";
|
|
4073
|
-
export default class MenuModuleComponent extends ZincElement {
|
|
4074
|
-
static styles: CSSResultGroup;
|
|
4075
|
-
private hasFocus;
|
|
4076
|
-
menuEl: ZnMenu;
|
|
4077
|
-
commandList: HTMLElement;
|
|
4078
|
-
menuModule: HTMLElement;
|
|
4079
|
-
commands: CannedResponse[];
|
|
4080
|
-
open: boolean;
|
|
4081
|
-
private closeWatcher;
|
|
4082
|
-
connectedCallback(): void;
|
|
4083
|
-
disconnectedCallback(): void;
|
|
4084
|
-
focus(): void;
|
|
4085
|
-
show(): void;
|
|
4086
|
-
hide(): void;
|
|
4087
|
-
handleOpenChange(): void;
|
|
4088
|
-
private addOpenListeners;
|
|
4089
|
-
private removeOpenListeners;
|
|
4090
|
-
private requestClose;
|
|
4091
|
-
private showDialog;
|
|
4092
|
-
private handleClick;
|
|
4093
|
-
private _createCommand;
|
|
4094
|
-
render(): TemplateResult<1>;
|
|
4095
|
-
}
|
|
4096
|
-
}
|
|
4097
|
-
declare module "components/editor/modules/menu-module/menu-module" {
|
|
4098
|
-
import "components/editor/modules/menu-module/menu-module.component";
|
|
4099
|
-
import Quill from 'quill';
|
|
4100
|
-
import type { CannedResponse } from "components/editor/editor.component";
|
|
4101
|
-
interface MenuModuleOptions {
|
|
4102
|
-
cannedResponses: CannedResponse[];
|
|
4103
|
-
cannedResponsesUri: string;
|
|
4104
|
-
}
|
|
4105
|
-
export let menuOpen: boolean;
|
|
4106
|
-
class MenuModule {
|
|
4107
|
-
private _quill;
|
|
4108
|
-
private _menu;
|
|
4109
|
-
private readonly _cannedResponsesUri;
|
|
4110
|
-
private _commands;
|
|
4111
|
-
constructor(quill: Quill, options: MenuModuleOptions);
|
|
4112
|
-
private initMenu;
|
|
4113
|
-
private attachEvents;
|
|
4114
|
-
private detachEvents;
|
|
4115
|
-
private onTextChange;
|
|
4116
|
-
private onCommandSelect;
|
|
4117
|
-
private onDocumentClick;
|
|
4118
|
-
private updateMenuPosition;
|
|
4119
|
-
private _openMenu;
|
|
4120
|
-
private _closeMenu;
|
|
4121
|
-
private createMenu;
|
|
4122
|
-
private addCommands;
|
|
4123
|
-
private triggerCommand;
|
|
4124
|
-
private fetchCannedResponses;
|
|
4125
|
-
}
|
|
4126
|
-
export default MenuModule;
|
|
4127
|
-
}
|
|
4128
|
-
declare module "components/editor/modules/time-tracking-module" {
|
|
4129
|
-
import Quill from 'quill';
|
|
4130
|
-
type TimeTrackingModuleOptions = {
|
|
4131
|
-
startTimeInput?: HTMLInputElement;
|
|
4132
|
-
openTimeInput?: HTMLInputElement;
|
|
4133
|
-
};
|
|
4134
|
-
export default class TimeTrackingModule {
|
|
4135
|
-
private _quill;
|
|
4136
|
-
private _options;
|
|
4137
|
-
private _startTime;
|
|
4138
|
-
private _openTime;
|
|
4139
|
-
constructor(quill: Quill, options: TimeTrackingModuleOptions);
|
|
4140
|
-
private _updateOpenTime;
|
|
4141
|
-
private _updateStartTime;
|
|
4142
|
-
}
|
|
4143
|
-
}
|
|
4144
|
-
declare module "components/editor/modules/events/zn-show-canned-response-dialog" {
|
|
4145
|
-
export type ZnShowCannedResponseDialogEvent = CustomEvent<{
|
|
4146
|
-
commands: {
|
|
4147
|
-
title: string;
|
|
4148
|
-
content: string;
|
|
4149
|
-
command: string;
|
|
4150
|
-
count: string;
|
|
4151
|
-
labels?: string[];
|
|
4152
|
-
}[];
|
|
4153
|
-
}>;
|
|
4154
|
-
global {
|
|
4155
|
-
interface GlobalEventHandlersEventMap {
|
|
4156
|
-
'zn-show-canned-response-dialog': ZnShowCannedResponseDialogEvent;
|
|
4157
|
-
}
|
|
4158
|
-
}
|
|
4159
|
-
}
|
|
4160
|
-
declare module "components/editor/editor.component" {
|
|
4161
|
-
import { type CSSResultGroup, type PropertyValues } from 'lit';
|
|
4380
|
+
declare module "components/editor/modules/emoji/headless/headless-emoji.component" {
|
|
4162
4381
|
import ZincElement from "internal/zinc-element";
|
|
4163
|
-
import type {
|
|
4164
|
-
export interface
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
command: string;
|
|
4168
|
-
labels?: string[];
|
|
4169
|
-
count: string;
|
|
4382
|
+
import type { CSSResultGroup, PropertyValues } from 'lit';
|
|
4383
|
+
export interface ResultItem {
|
|
4384
|
+
emojiChar: string;
|
|
4385
|
+
label: string;
|
|
4170
4386
|
}
|
|
4171
|
-
|
|
4172
|
-
* @summary Short summary of the component's intended use.
|
|
4173
|
-
* @documentation https://zinc.style/components/editor
|
|
4174
|
-
* @status experimental
|
|
4175
|
-
* @since 1.0
|
|
4176
|
-
*
|
|
4177
|
-
* @dependency zn-example
|
|
4178
|
-
*
|
|
4179
|
-
* @event zn-event-name - Emitted as an example.
|
|
4180
|
-
*
|
|
4181
|
-
* @slot - The default slot.
|
|
4182
|
-
* @slot example - An example slot.
|
|
4183
|
-
*
|
|
4184
|
-
* @csspart base - The component's base wrapper.
|
|
4185
|
-
*
|
|
4186
|
-
* @cssproperty --example - An example CSS custom property.
|
|
4187
|
-
*/
|
|
4188
|
-
export default class ZnEditor extends ZincElement implements ZincFormControl {
|
|
4387
|
+
export default class HeadlessEmojiComponent extends ZincElement {
|
|
4189
4388
|
static styles: CSSResultGroup;
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
private
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
checkValidity(): boolean;
|
|
4203
|
-
getForm(): HTMLFormElement | null;
|
|
4204
|
-
reportValidity(): boolean;
|
|
4205
|
-
setCustomValidity(message: string): void;
|
|
4206
|
-
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
4207
|
-
private _handleTextChange;
|
|
4208
|
-
private _updateIcons;
|
|
4209
|
-
private _getQuillKeyboardBindings;
|
|
4210
|
-
private _supplyPlaceholderDialog;
|
|
4211
|
-
private _setupTitleAttributes;
|
|
4389
|
+
open: boolean;
|
|
4390
|
+
query: string;
|
|
4391
|
+
results: ResultItem[];
|
|
4392
|
+
private _activeIndex;
|
|
4393
|
+
show(): void;
|
|
4394
|
+
hide(): void;
|
|
4395
|
+
setPosition(left: number, top: number): void;
|
|
4396
|
+
setActiveIndex(index: number): void;
|
|
4397
|
+
getActiveIndex(): number;
|
|
4398
|
+
private onMouseEnterItem;
|
|
4399
|
+
private onClickItem;
|
|
4400
|
+
protected willUpdate(changed: PropertyValues): void;
|
|
4212
4401
|
render(): import("lit").TemplateResult<1>;
|
|
4213
4402
|
}
|
|
4214
4403
|
}
|
|
4215
|
-
declare module "components/editor/
|
|
4216
|
-
import
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4404
|
+
declare module "components/editor/modules/emoji/headless/headless-emoji" {
|
|
4405
|
+
import "components/editor/modules/emoji/headless/headless-emoji.component";
|
|
4406
|
+
import Quill from 'quill';
|
|
4407
|
+
class HeadlessEmoji {
|
|
4408
|
+
private _quill;
|
|
4409
|
+
private _component;
|
|
4410
|
+
private _startIndex;
|
|
4411
|
+
private _keydownHandler;
|
|
4412
|
+
private _docClickHandler;
|
|
4413
|
+
constructor(quill: Quill);
|
|
4414
|
+
private initComponent;
|
|
4415
|
+
private attachEvents;
|
|
4416
|
+
private createComponent;
|
|
4417
|
+
private onDocumentClick;
|
|
4418
|
+
private updateFromEditor;
|
|
4419
|
+
private positionComponent;
|
|
4420
|
+
private getEmojiQuery;
|
|
4421
|
+
private onKeydown;
|
|
4422
|
+
private onEmojiSelect;
|
|
4423
|
+
private replaceAtQuery;
|
|
4424
|
+
private show;
|
|
4425
|
+
private hide;
|
|
4426
|
+
isOpen(): boolean;
|
|
4427
|
+
}
|
|
4428
|
+
export default HeadlessEmoji;
|
|
4429
|
+
}
|
|
4430
|
+
declare module "components/editor/modules/image-resize/image-resize" {
|
|
4431
|
+
import Quill, { Module } from "quill";
|
|
4432
|
+
interface ImageResizeOptions {
|
|
4433
|
+
overlayStyles?: Partial<CSSStyleDeclaration>;
|
|
4434
|
+
}
|
|
4435
|
+
class ImageResize extends Module<ImageResizeOptions> {
|
|
4436
|
+
static DEFAULTS: ImageResizeOptions;
|
|
4437
|
+
private _focusedImage;
|
|
4438
|
+
private _overlay;
|
|
4439
|
+
constructor(quill: Quill, options: ImageResizeOptions);
|
|
4440
|
+
handleClick: (e: MouseEvent) => void;
|
|
4441
|
+
handleScroll: () => void;
|
|
4442
|
+
show: (image: HTMLImageElement) => void;
|
|
4443
|
+
hide: () => void;
|
|
4444
|
+
showOverlay: () => void;
|
|
4445
|
+
hideOverlay: () => void;
|
|
4446
|
+
repositionElements: () => void;
|
|
4447
|
+
setUserSelect: (value: string) => void;
|
|
4448
|
+
checkImage: (e: KeyboardEvent) => void;
|
|
4223
4449
|
}
|
|
4450
|
+
export default ImageResize;
|
|
4224
4451
|
}
|
|
4225
|
-
declare module "components/
|
|
4226
|
-
import
|
|
4227
|
-
import
|
|
4228
|
-
|
|
4229
|
-
* @summary Short summary of the component's intended use.
|
|
4230
|
-
* @documentation https://zinc.style/components/toggle
|
|
4231
|
-
* @status experimental
|
|
4232
|
-
* @since 1.0
|
|
4233
|
-
*
|
|
4234
|
-
* @dependency zn-example
|
|
4235
|
-
*
|
|
4236
|
-
* @event zn-event-name - Emitted as an example.
|
|
4237
|
-
*
|
|
4238
|
-
* @slot - The default slot.
|
|
4239
|
-
* @slot example - An example slot.
|
|
4240
|
-
*
|
|
4241
|
-
* @csspart base - The component's base wrapper.
|
|
4242
|
-
*
|
|
4243
|
-
* @cssproperty --example - An example CSS custom property.
|
|
4244
|
-
*/
|
|
4245
|
-
export default class ZnToggle extends ZincElement implements ZincFormControl {
|
|
4452
|
+
declare module "components/editor/modules/ai/panel/ai-panel.component" {
|
|
4453
|
+
import ZincElement from "internal/zinc-element";
|
|
4454
|
+
import type { CSSResultGroup } from "lit";
|
|
4455
|
+
export default class AIPanelComponent extends ZincElement {
|
|
4246
4456
|
static styles: CSSResultGroup;
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
size: 'small' | 'medium' | 'large';
|
|
4255
|
-
disabled: boolean;
|
|
4256
|
-
checked: boolean;
|
|
4257
|
-
defaultChecked: boolean;
|
|
4258
|
-
form: string;
|
|
4259
|
-
required: boolean;
|
|
4260
|
-
helpText: string;
|
|
4261
|
-
triggerSubmit: boolean;
|
|
4262
|
-
onText: string;
|
|
4263
|
-
offText: string;
|
|
4264
|
-
label: string;
|
|
4265
|
-
get validity(): ValidityState;
|
|
4266
|
-
get validationMessage(): string;
|
|
4267
|
-
firstUpdated(_changedProperties: PropertyValues): void;
|
|
4268
|
-
private handleBlur;
|
|
4269
|
-
private handleInvalid;
|
|
4270
|
-
private handleInput;
|
|
4271
|
-
private handleClick;
|
|
4272
|
-
private handleFocus;
|
|
4273
|
-
private handleKeyDown;
|
|
4274
|
-
click(): void;
|
|
4275
|
-
focus(options?: FocusOptions): void;
|
|
4276
|
-
blur(): void;
|
|
4277
|
-
checkValidity(): boolean;
|
|
4278
|
-
getForm(): HTMLFormElement | null;
|
|
4279
|
-
reportValidity(): boolean;
|
|
4280
|
-
setCustomValidity(message: string): void;
|
|
4457
|
+
promptInput: HTMLTextAreaElement;
|
|
4458
|
+
open: boolean;
|
|
4459
|
+
refine?: (prompt: string) => void;
|
|
4460
|
+
refineBuiltIn?: (e: Event) => void;
|
|
4461
|
+
show(): void;
|
|
4462
|
+
hide(): void;
|
|
4463
|
+
private handleTriggerKeyDown;
|
|
4281
4464
|
render(): import("lit").TemplateResult<1>;
|
|
4282
4465
|
}
|
|
4283
4466
|
}
|
|
4284
|
-
declare module "components/
|
|
4285
|
-
import
|
|
4286
|
-
|
|
4287
|
-
export default
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4467
|
+
declare module "components/editor/modules/ai/tooltip/ai-tooltip.component" {
|
|
4468
|
+
import ZincElement from "internal/zinc-element";
|
|
4469
|
+
import type { CSSResultGroup } from "lit";
|
|
4470
|
+
export default class AITooltipComponent extends ZincElement {
|
|
4471
|
+
static styles: CSSResultGroup;
|
|
4472
|
+
open: boolean;
|
|
4473
|
+
show(): void;
|
|
4474
|
+
hide(): void;
|
|
4475
|
+
render(): import("lit").TemplateResult<1>;
|
|
4292
4476
|
}
|
|
4293
4477
|
}
|
|
4294
4478
|
declare module "components/textarea/textarea.component" {
|
|
@@ -4385,66 +4569,249 @@ declare module "components/textarea/textarea.component" {
|
|
|
4385
4569
|
inputmode: 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';
|
|
4386
4570
|
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
4387
4571
|
defaultValue: string;
|
|
4572
|
+
transparent: boolean;
|
|
4388
4573
|
/** Gets the validity state object */
|
|
4389
4574
|
get validity(): ValidityState;
|
|
4390
|
-
/** Gets the validation message */
|
|
4575
|
+
/** Gets the validation message */
|
|
4576
|
+
get validationMessage(): string;
|
|
4577
|
+
connectedCallback(): void;
|
|
4578
|
+
firstUpdated(): void;
|
|
4579
|
+
disconnectedCallback(): void;
|
|
4580
|
+
private handleBlur;
|
|
4581
|
+
private handleChange;
|
|
4582
|
+
private handleFocus;
|
|
4583
|
+
private handleInput;
|
|
4584
|
+
private handleInvalid;
|
|
4585
|
+
private setTextareaHeight;
|
|
4586
|
+
handleDisabledChange(): void;
|
|
4587
|
+
handleRowsChange(): void;
|
|
4588
|
+
handleValueChange(): Promise<void>;
|
|
4589
|
+
/** Sets focus on the textarea. */
|
|
4590
|
+
focus(options?: FocusOptions): void;
|
|
4591
|
+
/** Removes focus from the textarea. */
|
|
4592
|
+
blur(): void;
|
|
4593
|
+
/** Selects all the text in the textarea. */
|
|
4594
|
+
select(): void;
|
|
4595
|
+
/** Gets or sets the textarea scroll position. */
|
|
4596
|
+
scrollPosition(position?: {
|
|
4597
|
+
top?: number;
|
|
4598
|
+
left?: number;
|
|
4599
|
+
}): {
|
|
4600
|
+
top: number;
|
|
4601
|
+
left: number;
|
|
4602
|
+
} | undefined;
|
|
4603
|
+
/** Sets the start and end positions of the text selection (0-based). */
|
|
4604
|
+
setSelectionRange(selectionStart: number, selectionEnd: number, selectionDirection?: 'forward' | 'backward' | 'none'): void;
|
|
4605
|
+
/** Replaces a range of text with a new string. */
|
|
4606
|
+
setRangeText(replacement: string, start?: number, end?: number, selectMode?: 'select' | 'start' | 'end' | 'preserve'): void;
|
|
4607
|
+
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
4608
|
+
checkValidity(): boolean;
|
|
4609
|
+
/** Gets the associated form, if one exists. */
|
|
4610
|
+
getForm(): HTMLFormElement | null;
|
|
4611
|
+
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
4612
|
+
reportValidity(): boolean;
|
|
4613
|
+
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
|
4614
|
+
setCustomValidity(message: string): void;
|
|
4615
|
+
render(): import("lit").TemplateResult<1>;
|
|
4616
|
+
}
|
|
4617
|
+
}
|
|
4618
|
+
declare module "components/textarea/index" {
|
|
4619
|
+
import ZnTextarea from "components/textarea/textarea.component";
|
|
4620
|
+
export * from "components/textarea/textarea.component";
|
|
4621
|
+
export default ZnTextarea;
|
|
4622
|
+
global {
|
|
4623
|
+
interface HTMLElementTagNameMap {
|
|
4624
|
+
'zn-textarea': ZnTextarea;
|
|
4625
|
+
}
|
|
4626
|
+
}
|
|
4627
|
+
}
|
|
4628
|
+
declare module "components/editor/modules/ai/index" {
|
|
4629
|
+
import Quill from "quill";
|
|
4630
|
+
class QuillAI {
|
|
4631
|
+
private _quill;
|
|
4632
|
+
private readonly _path;
|
|
4633
|
+
private _component;
|
|
4634
|
+
private _selectedText;
|
|
4635
|
+
private _prompt;
|
|
4636
|
+
private _aiResponseContent;
|
|
4637
|
+
constructor(quill: Quill, options: {
|
|
4638
|
+
path: string;
|
|
4639
|
+
});
|
|
4640
|
+
private _initComponent;
|
|
4641
|
+
private _attachEvents;
|
|
4642
|
+
private _latestContent;
|
|
4643
|
+
processAIRequest(): Promise<void>;
|
|
4644
|
+
private _createTooltipComponent;
|
|
4645
|
+
private _createPanelComponent;
|
|
4646
|
+
private _replaceTooltip;
|
|
4647
|
+
private _onDocumentClick;
|
|
4648
|
+
private _updateFromEditor;
|
|
4649
|
+
private _positionComponent;
|
|
4650
|
+
private _setPanelPosition;
|
|
4651
|
+
resetComponent(): void;
|
|
4652
|
+
private _show;
|
|
4653
|
+
private _hide;
|
|
4654
|
+
private _onEscapeKey;
|
|
4655
|
+
private _attachPanelEvents;
|
|
4656
|
+
private _clickPreDefinedEvent;
|
|
4657
|
+
private _enterCustomPrompt;
|
|
4658
|
+
}
|
|
4659
|
+
export default QuillAI;
|
|
4660
|
+
}
|
|
4661
|
+
declare module "components/editor/modules/time-tracking/time-tracking" {
|
|
4662
|
+
import type Quill from 'quill';
|
|
4663
|
+
interface TimeTrackingOptions {
|
|
4664
|
+
startTimeInput?: HTMLInputElement;
|
|
4665
|
+
openTimeInput?: HTMLInputElement;
|
|
4666
|
+
}
|
|
4667
|
+
export default class TimeTracking {
|
|
4668
|
+
private _quill;
|
|
4669
|
+
private _options;
|
|
4670
|
+
private _startTime;
|
|
4671
|
+
private _openTime;
|
|
4672
|
+
constructor(quill: Quill, options: TimeTrackingOptions);
|
|
4673
|
+
private _updateOpenTime;
|
|
4674
|
+
private _updateStartTime;
|
|
4675
|
+
}
|
|
4676
|
+
}
|
|
4677
|
+
declare module "components/editor/editor.component" {
|
|
4678
|
+
import { type CSSResultGroup, type PropertyValues } from 'lit';
|
|
4679
|
+
import ZincElement from "internal/zinc-element";
|
|
4680
|
+
import type { ZincFormControl } from "internal/zinc-element";
|
|
4681
|
+
/**
|
|
4682
|
+
* @summary Short summary of the component's intended use.
|
|
4683
|
+
* @documentation https://zinc.style/components/editor
|
|
4684
|
+
* @status experimental
|
|
4685
|
+
* @since 1.0
|
|
4686
|
+
*
|
|
4687
|
+
* @dependency zn-example
|
|
4688
|
+
*
|
|
4689
|
+
* @event zn-event-name - Emitted as an example.
|
|
4690
|
+
*
|
|
4691
|
+
* @slot - The default slot.
|
|
4692
|
+
* @slot example - An example slot.
|
|
4693
|
+
*
|
|
4694
|
+
* @csspart base - The component's base wrapper.
|
|
4695
|
+
*
|
|
4696
|
+
* @cssproperty --example - An example CSS custom property.
|
|
4697
|
+
*/
|
|
4698
|
+
export default class ZnEditor extends ZincElement implements ZincFormControl {
|
|
4699
|
+
static styles: CSSResultGroup;
|
|
4700
|
+
private formControlController;
|
|
4701
|
+
private editor;
|
|
4702
|
+
private editorHtml;
|
|
4703
|
+
private toolbar;
|
|
4704
|
+
id: string;
|
|
4705
|
+
name: string;
|
|
4706
|
+
value: string;
|
|
4707
|
+
interactionType: 'ticket' | 'chat';
|
|
4708
|
+
uploadAttachmentUrl: string;
|
|
4709
|
+
aiPath: string;
|
|
4710
|
+
private quillElement;
|
|
4711
|
+
private _content;
|
|
4712
|
+
private _selectionRange;
|
|
4713
|
+
get validity(): ValidityState;
|
|
4714
|
+
get validationMessage(): string;
|
|
4715
|
+
checkValidity(): boolean;
|
|
4716
|
+
getForm(): HTMLFormElement | null;
|
|
4717
|
+
reportValidity(): boolean;
|
|
4718
|
+
setCustomValidity(message: string): void;
|
|
4719
|
+
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
4720
|
+
private _handleTextChange;
|
|
4721
|
+
private _getQuillKeyboardBindings;
|
|
4722
|
+
private _handleEditorChange;
|
|
4723
|
+
private _replaceTextAtSelection;
|
|
4724
|
+
private _insertTextAtSelection;
|
|
4725
|
+
private _closePopups;
|
|
4726
|
+
private _closeAiPanel;
|
|
4727
|
+
private _closeDialog;
|
|
4728
|
+
render(): import("lit").TemplateResult<1>;
|
|
4729
|
+
}
|
|
4730
|
+
}
|
|
4731
|
+
declare module "components/editor/index" {
|
|
4732
|
+
import ZnEditor from "components/editor/editor.component";
|
|
4733
|
+
export * from "components/editor/editor.component";
|
|
4734
|
+
export default ZnEditor;
|
|
4735
|
+
global {
|
|
4736
|
+
interface HTMLElementTagNameMap {
|
|
4737
|
+
'zn-editor': ZnEditor;
|
|
4738
|
+
}
|
|
4739
|
+
}
|
|
4740
|
+
}
|
|
4741
|
+
declare module "components/toggle/toggle.component" {
|
|
4742
|
+
import { type CSSResultGroup, type PropertyValues } from 'lit';
|
|
4743
|
+
import ZincElement, { type ZincFormControl } from "internal/zinc-element";
|
|
4744
|
+
/**
|
|
4745
|
+
* @summary Short summary of the component's intended use.
|
|
4746
|
+
* @documentation https://zinc.style/components/toggle
|
|
4747
|
+
* @status experimental
|
|
4748
|
+
* @since 1.0
|
|
4749
|
+
*
|
|
4750
|
+
* @dependency zn-example
|
|
4751
|
+
*
|
|
4752
|
+
* @event zn-event-name - Emitted as an example.
|
|
4753
|
+
*
|
|
4754
|
+
* @slot - The default slot.
|
|
4755
|
+
* @slot example - An example slot.
|
|
4756
|
+
*
|
|
4757
|
+
* @csspart base - The component's base wrapper.
|
|
4758
|
+
*
|
|
4759
|
+
* @cssproperty --example - An example CSS custom property.
|
|
4760
|
+
*/
|
|
4761
|
+
export default class ZnToggle extends ZincElement implements ZincFormControl {
|
|
4762
|
+
static styles: CSSResultGroup;
|
|
4763
|
+
private readonly formControlController;
|
|
4764
|
+
input: HTMLInputElement;
|
|
4765
|
+
hasFocus: boolean;
|
|
4766
|
+
title: string;
|
|
4767
|
+
name: string;
|
|
4768
|
+
value: string;
|
|
4769
|
+
fallbackValue: string;
|
|
4770
|
+
size: 'small' | 'medium' | 'large';
|
|
4771
|
+
disabled: boolean;
|
|
4772
|
+
checked: boolean;
|
|
4773
|
+
defaultChecked: boolean;
|
|
4774
|
+
form: string;
|
|
4775
|
+
required: boolean;
|
|
4776
|
+
helpText: string;
|
|
4777
|
+
triggerSubmit: boolean;
|
|
4778
|
+
onText: string;
|
|
4779
|
+
offText: string;
|
|
4780
|
+
label: string;
|
|
4781
|
+
get validity(): ValidityState;
|
|
4391
4782
|
get validationMessage(): string;
|
|
4392
|
-
|
|
4393
|
-
firstUpdated(): void;
|
|
4394
|
-
disconnectedCallback(): void;
|
|
4783
|
+
firstUpdated(_changedProperties: PropertyValues): void;
|
|
4395
4784
|
private handleBlur;
|
|
4396
|
-
private handleChange;
|
|
4397
|
-
private handleFocus;
|
|
4398
|
-
private handleInput;
|
|
4399
4785
|
private handleInvalid;
|
|
4400
|
-
private
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4786
|
+
private handleInput;
|
|
4787
|
+
private handleClick;
|
|
4788
|
+
private handleFocus;
|
|
4789
|
+
private handleKeyDown;
|
|
4790
|
+
click(): void;
|
|
4405
4791
|
focus(options?: FocusOptions): void;
|
|
4406
|
-
/** Removes focus from the textarea. */
|
|
4407
4792
|
blur(): void;
|
|
4408
|
-
/** Selects all the text in the textarea. */
|
|
4409
|
-
select(): void;
|
|
4410
|
-
/** Gets or sets the textarea scroll position. */
|
|
4411
|
-
scrollPosition(position?: {
|
|
4412
|
-
top?: number;
|
|
4413
|
-
left?: number;
|
|
4414
|
-
}): {
|
|
4415
|
-
top: number;
|
|
4416
|
-
left: number;
|
|
4417
|
-
} | undefined;
|
|
4418
|
-
/** Sets the start and end positions of the text selection (0-based). */
|
|
4419
|
-
setSelectionRange(selectionStart: number, selectionEnd: number, selectionDirection?: 'forward' | 'backward' | 'none'): void;
|
|
4420
|
-
/** Replaces a range of text with a new string. */
|
|
4421
|
-
setRangeText(replacement: string, start?: number, end?: number, selectMode?: 'select' | 'start' | 'end' | 'preserve'): void;
|
|
4422
|
-
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
4423
4793
|
checkValidity(): boolean;
|
|
4424
|
-
/** Gets the associated form, if one exists. */
|
|
4425
4794
|
getForm(): HTMLFormElement | null;
|
|
4426
|
-
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
4427
4795
|
reportValidity(): boolean;
|
|
4428
|
-
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
|
4429
4796
|
setCustomValidity(message: string): void;
|
|
4430
4797
|
render(): import("lit").TemplateResult<1>;
|
|
4431
4798
|
}
|
|
4432
4799
|
}
|
|
4433
|
-
declare module "components/
|
|
4434
|
-
import
|
|
4435
|
-
export * from "components/
|
|
4436
|
-
export default
|
|
4800
|
+
declare module "components/toggle/index" {
|
|
4801
|
+
import ZnToggle from "components/toggle/toggle.component";
|
|
4802
|
+
export * from "components/toggle/toggle.component";
|
|
4803
|
+
export default ZnToggle;
|
|
4437
4804
|
global {
|
|
4438
4805
|
interface HTMLElementTagNameMap {
|
|
4439
|
-
'zn-
|
|
4806
|
+
'zn-toggle': ZnToggle;
|
|
4440
4807
|
}
|
|
4441
4808
|
}
|
|
4442
4809
|
}
|
|
4443
4810
|
declare module "components/checkbox/checkbox.component" {
|
|
4444
4811
|
import { type CSSResultGroup } from 'lit';
|
|
4812
|
+
import type { ZincFormControl } from "internal/zinc-element";
|
|
4445
4813
|
import ZincElement from "internal/zinc-element";
|
|
4446
4814
|
import ZnIcon from "components/icon/index";
|
|
4447
|
-
import type { ZincFormControl } from "internal/zinc-element";
|
|
4448
4815
|
/**
|
|
4449
4816
|
* @summary Short summary of the component's intended use.
|
|
4450
4817
|
* @documentation https://zinc.style/components/checkbox
|
|
@@ -4518,6 +4885,7 @@ declare module "components/checkbox/checkbox.component" {
|
|
|
4518
4885
|
labelTooltip: string;
|
|
4519
4886
|
/** Gets the validity state object */
|
|
4520
4887
|
get validity(): ValidityState;
|
|
4888
|
+
get isChecked(): boolean;
|
|
4521
4889
|
/** Gets the validation message */
|
|
4522
4890
|
get validationMessage(): string;
|
|
4523
4891
|
firstUpdated(): void;
|
|
@@ -4712,6 +5080,7 @@ declare module "components/form-group/index" {
|
|
|
4712
5080
|
declare module "components/linked-select/linked-select.component" {
|
|
4713
5081
|
import { type CSSResultGroup, type PropertyValues } from 'lit';
|
|
4714
5082
|
import ZincElement from "internal/zinc-element";
|
|
5083
|
+
import ZnSelect from "components/select/index";
|
|
4715
5084
|
import type { ZincFormControl } from "internal/zinc-element";
|
|
4716
5085
|
import type { ZnSelectEvent } from "events/zn-select";
|
|
4717
5086
|
interface linkedSelectOption {
|
|
@@ -4746,9 +5115,10 @@ declare module "components/linked-select/linked-select.component" {
|
|
|
4746
5115
|
linkedSelect: string;
|
|
4747
5116
|
cacheKey: string;
|
|
4748
5117
|
label: string;
|
|
4749
|
-
input:
|
|
5118
|
+
input: ZnSelect;
|
|
4750
5119
|
private linkedSelectElement;
|
|
4751
5120
|
private readonly formControlController;
|
|
5121
|
+
get displayLabel(): string;
|
|
4752
5122
|
get validity(): ValidityState;
|
|
4753
5123
|
get validationMessage(): string;
|
|
4754
5124
|
connectedCallback(): void;
|
|
@@ -5389,6 +5759,7 @@ declare module "components/item/item.component" {
|
|
|
5389
5759
|
};
|
|
5390
5760
|
static styles: CSSResultGroup;
|
|
5391
5761
|
caption: string;
|
|
5762
|
+
description: string;
|
|
5392
5763
|
stacked: boolean;
|
|
5393
5764
|
size: 'small' | 'medium' | 'large';
|
|
5394
5765
|
editOnHover: boolean;
|
|
@@ -5397,6 +5768,7 @@ declare module "components/item/item.component" {
|
|
|
5397
5768
|
inline: boolean;
|
|
5398
5769
|
grid: boolean;
|
|
5399
5770
|
noPadding: boolean;
|
|
5771
|
+
alignEnd: boolean;
|
|
5400
5772
|
connectedCallback(): void;
|
|
5401
5773
|
protected updated(_changedProperties: PropertyValues): void;
|
|
5402
5774
|
render(): import("lit").TemplateResult<1>;
|
|
@@ -5412,93 +5784,6 @@ declare module "components/item/index" {
|
|
|
5412
5784
|
}
|
|
5413
5785
|
}
|
|
5414
5786
|
}
|
|
5415
|
-
declare module "components/data-select/data-select.component" {
|
|
5416
|
-
import { type DataProviderOption, type LocalDataProvider } from "components/data-select/providers/provider";
|
|
5417
|
-
import { FormControlController } from "internal/form";
|
|
5418
|
-
import ZincElement from "internal/zinc-element";
|
|
5419
|
-
import type { CSSResultGroup } from 'lit';
|
|
5420
|
-
import type { ZincFormControl } from "internal/zinc-element";
|
|
5421
|
-
import type ZnSelect from "components/select/index";
|
|
5422
|
-
/**
|
|
5423
|
-
* @summary Short summary of the component's intended use.
|
|
5424
|
-
* @documentation https://zinc.style/components/data-select
|
|
5425
|
-
* @status experimental
|
|
5426
|
-
* @since 1.0
|
|
5427
|
-
*
|
|
5428
|
-
* @dependency zn-example
|
|
5429
|
-
*
|
|
5430
|
-
* @event zn-event-name - Emitted as an example.
|
|
5431
|
-
*
|
|
5432
|
-
* @slot - The default slot.
|
|
5433
|
-
* @slot example - An example slot.
|
|
5434
|
-
*
|
|
5435
|
-
* @csspart base - The component's base wrapper.
|
|
5436
|
-
*
|
|
5437
|
-
* @cssproperty --example - An example CSS custom property.
|
|
5438
|
-
*/
|
|
5439
|
-
export default class ZnDataSelect extends ZincElement implements ZincFormControl {
|
|
5440
|
-
static styles: CSSResultGroup;
|
|
5441
|
-
select: ZnSelect;
|
|
5442
|
-
selectPrefix: HTMLElement;
|
|
5443
|
-
/** The name of the select. Used for form submission. */
|
|
5444
|
-
name: string;
|
|
5445
|
-
/** The value of the select. Used for form submission. */
|
|
5446
|
-
value: string;
|
|
5447
|
-
/** The provider of the select. */
|
|
5448
|
-
provider: 'color' | 'currency' | 'country' | 'phone';
|
|
5449
|
-
iconPosition: 'start' | 'end' | 'none';
|
|
5450
|
-
/** An array of keys to use for filtering the options in the selected provider. */
|
|
5451
|
-
filter: string[];
|
|
5452
|
-
/** The selects size. */
|
|
5453
|
-
size: 'small' | 'medium' | 'large';
|
|
5454
|
-
/** Should we show the clear button */
|
|
5455
|
-
clearable: boolean;
|
|
5456
|
-
/** Include an "All" option at the top. */
|
|
5457
|
-
allowAll: boolean;
|
|
5458
|
-
/** The selects label. If you need to display HTML, use the `label` slot instead. */
|
|
5459
|
-
label: string;
|
|
5460
|
-
/** Text that appears in a tooltip next to the label. If you need to display HTML in the tooltip, use the `label-tooltip` slot instead. */
|
|
5461
|
-
labelTooltip: string;
|
|
5462
|
-
/** Text that appears above the input, on the right, to add additional context. If you need to display HTML in this text, use the `context-note` slot instead. */
|
|
5463
|
-
contextNote: string;
|
|
5464
|
-
/**
|
|
5465
|
-
* The preferred placement of the selects menu. Note that the actual placement may vary as needed to keep the listbox
|
|
5466
|
-
* inside the viewport.
|
|
5467
|
-
*/
|
|
5468
|
-
placement: 'top' | 'bottom';
|
|
5469
|
-
/** The selects help text. If you need to display HTML, use the `help-text` slot instead. */
|
|
5470
|
-
helpText: string;
|
|
5471
|
-
/** The selects required attribute. */
|
|
5472
|
-
required: boolean;
|
|
5473
|
-
protected readonly formControlController: FormControlController;
|
|
5474
|
-
get validationMessage(): string;
|
|
5475
|
-
get validity(): ValidityState;
|
|
5476
|
-
connectedCallback(): void;
|
|
5477
|
-
disconnectedCallback(): void;
|
|
5478
|
-
checkValidity(): boolean;
|
|
5479
|
-
getForm(): HTMLFormElement | null;
|
|
5480
|
-
reportValidity(): boolean;
|
|
5481
|
-
setCustomValidity(message: string): void;
|
|
5482
|
-
closeOnTab: (e: KeyboardEvent) => void;
|
|
5483
|
-
handleValueChange(): Promise<void>;
|
|
5484
|
-
handleInput: (e: Event) => void;
|
|
5485
|
-
handleClear: () => void;
|
|
5486
|
-
getLocalProvider(name: string): LocalDataProvider<DataProviderOption>;
|
|
5487
|
-
blur: () => void;
|
|
5488
|
-
protected render(): import("lit").TemplateResult<1>;
|
|
5489
|
-
private _updatePrefix;
|
|
5490
|
-
}
|
|
5491
|
-
}
|
|
5492
|
-
declare module "components/data-select/index" {
|
|
5493
|
-
import ZnDataSelect from "components/data-select/data-select.component";
|
|
5494
|
-
export * from "components/data-select/data-select.component";
|
|
5495
|
-
export default ZnDataSelect;
|
|
5496
|
-
global {
|
|
5497
|
-
interface HTMLElementTagNameMap {
|
|
5498
|
-
'zn-data-select': ZnDataSelect;
|
|
5499
|
-
}
|
|
5500
|
-
}
|
|
5501
|
-
}
|
|
5502
5787
|
declare module "components/button-menu/button-menu.component" {
|
|
5503
5788
|
import { type CSSResultGroup, type PropertyValues } from 'lit';
|
|
5504
5789
|
import ZincElement from "internal/zinc-element";
|
|
@@ -5523,6 +5808,7 @@ declare module "components/button-menu/button-menu.component" {
|
|
|
5523
5808
|
limit: number;
|
|
5524
5809
|
maxLevel: number;
|
|
5525
5810
|
size: 'content' | 'x-small' | 'small' | 'medium' | 'large';
|
|
5811
|
+
iconSize: number;
|
|
5526
5812
|
noGap: boolean;
|
|
5527
5813
|
noPadding: boolean;
|
|
5528
5814
|
private _buttons;
|
|
@@ -5786,7 +6072,7 @@ declare module "components/page-nav/page-nav.component" {
|
|
|
5786
6072
|
items: PageNavigationItem[];
|
|
5787
6073
|
}
|
|
5788
6074
|
interface PageNavigationItem {
|
|
5789
|
-
icon
|
|
6075
|
+
icon?: string;
|
|
5790
6076
|
label: string;
|
|
5791
6077
|
uri: string;
|
|
5792
6078
|
}
|
|
@@ -5854,8 +6140,8 @@ declare module "components/status-indicator/index" {
|
|
|
5854
6140
|
}
|
|
5855
6141
|
declare module "components/split-button/split-button.component" {
|
|
5856
6142
|
import { type CSSResultGroup } from 'lit';
|
|
5857
|
-
import type { ZincFormControl } from "internal/zinc-element";
|
|
5858
6143
|
import ZincElement from "internal/zinc-element";
|
|
6144
|
+
import type { ZincFormControl } from "internal/zinc-element";
|
|
5859
6145
|
import type { ZnMenuSelectEvent } from "events/zn-menu-select";
|
|
5860
6146
|
import type ZnButton from "components/button/index";
|
|
5861
6147
|
import type ZnDropdown from "components/dropdown/index";
|
|
@@ -5890,9 +6176,9 @@ declare module "components/split-button/split-button.component" {
|
|
|
5890
6176
|
connectedCallback(): void;
|
|
5891
6177
|
disconnectedCallback(): void;
|
|
5892
6178
|
handleMenuItemClick(e: ZnMenuSelectEvent): void;
|
|
5893
|
-
handleClick(e: MouseEvent): void;
|
|
5894
6179
|
handleTriggerClick(): void;
|
|
5895
6180
|
render(): import("lit").TemplateResult<1>;
|
|
6181
|
+
private renderTriggerSlot;
|
|
5896
6182
|
checkValidity(): boolean;
|
|
5897
6183
|
getForm(): HTMLFormElement | null;
|
|
5898
6184
|
reportValidity(): boolean;
|
|
@@ -5912,37 +6198,6 @@ declare module "components/split-button/index" {
|
|
|
5912
6198
|
}
|
|
5913
6199
|
}
|
|
5914
6200
|
}
|
|
5915
|
-
declare module "components/style/style.component" {
|
|
5916
|
-
import { type CSSResultGroup } from 'lit';
|
|
5917
|
-
import ZincElement from "internal/zinc-element";
|
|
5918
|
-
export default class ZnStyle extends ZincElement {
|
|
5919
|
-
static styles: CSSResultGroup;
|
|
5920
|
-
private readonly localize;
|
|
5921
|
-
color: string;
|
|
5922
|
-
border: boolean;
|
|
5923
|
-
error: boolean;
|
|
5924
|
-
success: boolean;
|
|
5925
|
-
info: boolean;
|
|
5926
|
-
warning: boolean;
|
|
5927
|
-
primary: boolean;
|
|
5928
|
-
accent: boolean;
|
|
5929
|
-
pad: string;
|
|
5930
|
-
margin: string;
|
|
5931
|
-
autoMargin: string;
|
|
5932
|
-
connectedCallback(): void;
|
|
5933
|
-
createRenderRoot(): this;
|
|
5934
|
-
}
|
|
5935
|
-
}
|
|
5936
|
-
declare module "components/style/index" {
|
|
5937
|
-
import ZnStyle from "components/style/style.component";
|
|
5938
|
-
export * from "components/style/style.component";
|
|
5939
|
-
export default ZnStyle;
|
|
5940
|
-
global {
|
|
5941
|
-
interface HTMLElementTagNameMap {
|
|
5942
|
-
'zn-style': ZnStyle;
|
|
5943
|
-
}
|
|
5944
|
-
}
|
|
5945
|
-
}
|
|
5946
6201
|
declare module "components/content-block/content-block.component" {
|
|
5947
6202
|
import ZincElement from "internal/zinc-element";
|
|
5948
6203
|
import type { PropertyValues } from 'lit';
|
|
@@ -5963,11 +6218,14 @@ declare module "components/content-block/content-block.component" {
|
|
|
5963
6218
|
avatar: string;
|
|
5964
6219
|
outbound: boolean;
|
|
5965
6220
|
short: boolean;
|
|
6221
|
+
defaultDisplay: 'text' | 'html';
|
|
5966
6222
|
htmlNodes: Node[];
|
|
5967
6223
|
iframe: Promise<HTMLIFrameElement>;
|
|
5968
6224
|
private readonly hasSlotController;
|
|
5969
6225
|
private _textRows;
|
|
6226
|
+
private _themeChangeObserver?;
|
|
5970
6227
|
connectedCallback(): void;
|
|
6228
|
+
disconnectedCallback(): void;
|
|
5971
6229
|
private _collapseContent;
|
|
5972
6230
|
private _toggleText;
|
|
5973
6231
|
private _toggleHtml;
|
|
@@ -5975,6 +6233,7 @@ declare module "components/content-block/content-block.component" {
|
|
|
5975
6233
|
protected render(): import("lit").TemplateResult<1>;
|
|
5976
6234
|
protected truncateText(): string;
|
|
5977
6235
|
protected getTextSections(): TextRow[];
|
|
6236
|
+
private transformLineForImages;
|
|
5978
6237
|
showReply(e: MouseEvent): void;
|
|
5979
6238
|
}
|
|
5980
6239
|
}
|
|
@@ -5988,6 +6247,104 @@ declare module "components/content-block/index" {
|
|
|
5988
6247
|
}
|
|
5989
6248
|
}
|
|
5990
6249
|
}
|
|
6250
|
+
declare module "components/filter-wrapper/filter-wrapper.component" {
|
|
6251
|
+
import { type CSSResultGroup } from 'lit';
|
|
6252
|
+
import ZincElement from "internal/zinc-element";
|
|
6253
|
+
/**
|
|
6254
|
+
* @summary Short summary of the component's intended use.
|
|
6255
|
+
* @documentation https://zinc.style/components/filter-wrapper
|
|
6256
|
+
* @status experimental
|
|
6257
|
+
* @since 1.0
|
|
6258
|
+
*
|
|
6259
|
+
* @dependency zn-example
|
|
6260
|
+
*
|
|
6261
|
+
* @event zn-event-name - Emitted as an example.
|
|
6262
|
+
*
|
|
6263
|
+
* @slot - The default slot.
|
|
6264
|
+
* @slot example - An example slot.
|
|
6265
|
+
*
|
|
6266
|
+
* @csspart base - The component's base wrapper.
|
|
6267
|
+
*
|
|
6268
|
+
* @cssproperty --example - An example CSS custom property.
|
|
6269
|
+
*/
|
|
6270
|
+
export default class ZnFilterWrapper extends ZincElement {
|
|
6271
|
+
static styles: CSSResultGroup;
|
|
6272
|
+
button: string;
|
|
6273
|
+
private hasSubmitButton;
|
|
6274
|
+
handleSubmit: (event: Event) => void;
|
|
6275
|
+
connectedCallback(): void;
|
|
6276
|
+
private renderDefaultButton;
|
|
6277
|
+
render(): import("lit").TemplateResult<1>;
|
|
6278
|
+
}
|
|
6279
|
+
}
|
|
6280
|
+
declare module "components/filter-wrapper/index" {
|
|
6281
|
+
import ZnFilterWrapper from "components/filter-wrapper/filter-wrapper.component";
|
|
6282
|
+
export * from "components/filter-wrapper/filter-wrapper.component";
|
|
6283
|
+
export default ZnFilterWrapper;
|
|
6284
|
+
global {
|
|
6285
|
+
interface HTMLElementTagNameMap {
|
|
6286
|
+
'zn-filter-wrapper': ZnFilterWrapper;
|
|
6287
|
+
}
|
|
6288
|
+
}
|
|
6289
|
+
}
|
|
6290
|
+
declare module "components/settings-container/settings-container.component" {
|
|
6291
|
+
import { type CSSResultGroup } from 'lit';
|
|
6292
|
+
import { type ZnChangeEvent } from "events/zn-change";
|
|
6293
|
+
import ZincElement from "internal/zinc-element";
|
|
6294
|
+
interface SettingsContainerFilter {
|
|
6295
|
+
attribute: string;
|
|
6296
|
+
checked: boolean;
|
|
6297
|
+
label: string;
|
|
6298
|
+
itemSelector?: string;
|
|
6299
|
+
}
|
|
6300
|
+
/**
|
|
6301
|
+
* @summary Short summary of the component's intended use.
|
|
6302
|
+
* @documentation https://zinc.style/components/settings-container
|
|
6303
|
+
* @status experimental
|
|
6304
|
+
* @since 1.0
|
|
6305
|
+
*
|
|
6306
|
+
* @dependency zn-example
|
|
6307
|
+
*
|
|
6308
|
+
* @event zn-event-name - Emitted as an example.
|
|
6309
|
+
*
|
|
6310
|
+
* @slot - The default slot.
|
|
6311
|
+
* @slot example - An example slot.
|
|
6312
|
+
*
|
|
6313
|
+
* @csspart base - The component's base wrapper.
|
|
6314
|
+
*
|
|
6315
|
+
* @cssproperty --example - An example CSS custom property.
|
|
6316
|
+
*/
|
|
6317
|
+
export default class ZnSettingsContainer extends ZincElement {
|
|
6318
|
+
static styles: CSSResultGroup;
|
|
6319
|
+
filters: SettingsContainerFilter[];
|
|
6320
|
+
position: 'top-end' | 'top-start' | 'bottom-end' | 'bottom-start';
|
|
6321
|
+
storeKey: string;
|
|
6322
|
+
noScroll: boolean;
|
|
6323
|
+
private _mutationObserver;
|
|
6324
|
+
private _updateFiltersScheduled;
|
|
6325
|
+
private _store;
|
|
6326
|
+
private _hiddenElements;
|
|
6327
|
+
connectedCallback(): void;
|
|
6328
|
+
disconnectedCallback(): void;
|
|
6329
|
+
private scheduleUpdateFilters;
|
|
6330
|
+
private handleContentSlotChange;
|
|
6331
|
+
private handleFiltersSlotChange;
|
|
6332
|
+
private recomputeFiltersFromSlot;
|
|
6333
|
+
updateFilters(): void;
|
|
6334
|
+
updateFilter(e: ZnChangeEvent): void;
|
|
6335
|
+
render(): import("lit").TemplateResult<1>;
|
|
6336
|
+
}
|
|
6337
|
+
}
|
|
6338
|
+
declare module "components/settings-container/index" {
|
|
6339
|
+
import ZnSettingsContainer from "components/settings-container/settings-container.component";
|
|
6340
|
+
export * from "components/settings-container/settings-container.component";
|
|
6341
|
+
export default ZnSettingsContainer;
|
|
6342
|
+
global {
|
|
6343
|
+
interface HTMLElementTagNameMap {
|
|
6344
|
+
'zn-settings-container': ZnSettingsContainer;
|
|
6345
|
+
}
|
|
6346
|
+
}
|
|
6347
|
+
}
|
|
5991
6348
|
declare module "events/zn-after-hide" {
|
|
5992
6349
|
export type ZnAfterHideEvent = CustomEvent<Record<PropertyKey, never>>;
|
|
5993
6350
|
global {
|
|
@@ -6093,6 +6450,9 @@ declare module "zinc" {
|
|
|
6093
6450
|
export { default as OrderTable } from "components/order-table/index";
|
|
6094
6451
|
export { default as BulkActions } from "components/bulk-actions/index";
|
|
6095
6452
|
export { default as Editor } from "components/editor/index";
|
|
6453
|
+
export { default as EditorTool } from "components/editor/modules/toolbar/tool/index";
|
|
6454
|
+
export { default as EditorQuickAction } from "components/editor/modules/context-menu/quick-action/index";
|
|
6455
|
+
export { default as EditorDialog } from "components/editor/modules/dialog/dialog.component";
|
|
6096
6456
|
export { default as Toggle } from "components/toggle/index";
|
|
6097
6457
|
export { default as Input } from "components/input/index";
|
|
6098
6458
|
export { default as Select } from "components/select/index";
|
|
@@ -6122,8 +6482,20 @@ declare module "zinc" {
|
|
|
6122
6482
|
export { default as Skeleton } from "components/skeleton/index";
|
|
6123
6483
|
export { default as Style } from "components/style/index";
|
|
6124
6484
|
export { default as ContentBlock } from "components/content-block/index";
|
|
6485
|
+
export { default as FilterWrapper } from "components/filter-wrapper/index";
|
|
6486
|
+
export { default as SettingsContainer } from "components/settings-container/index";
|
|
6125
6487
|
export * from "events/events";
|
|
6126
6488
|
}
|
|
6489
|
+
declare module "components/editor/modules/events/zn-command-select" {
|
|
6490
|
+
export type ZnCommandSelectEvent = CustomEvent<{
|
|
6491
|
+
item: HTMLElement;
|
|
6492
|
+
}>;
|
|
6493
|
+
global {
|
|
6494
|
+
interface GlobalEventHandlersEventMap {
|
|
6495
|
+
'zn-command-select': ZnCommandSelectEvent;
|
|
6496
|
+
}
|
|
6497
|
+
}
|
|
6498
|
+
}
|
|
6127
6499
|
declare module "components/editor/modules/events/zn-editor-update" {
|
|
6128
6500
|
export type ZnEditorUpdateEvent = CustomEvent<Record<PropertyKey, never>>;
|
|
6129
6501
|
global {
|