@luzmo/analytics-components-kit 1.0.1-alpha.140 → 1.0.1-alpha.142
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/README.md +17 -5
- package/angular/components/ai-interaction-textarea.component.ts +2 -0
- package/angular/components/grid.component.ts +2 -2
- package/angular/esm/components/ai-interaction-textarea.component.d.ts +2 -1
- package/angular/esm/components/ai-interaction-textarea.component.js +7 -2
- package/angular/esm/components/grid.component.d.ts +2 -2
- package/angular/esm/types/ai-chat.types.d.ts +1 -0
- package/angular/types/ai-chat.types.ts +1 -0
- package/components/ai-chat/ai-chat.d.ts +21 -1
- package/components/ai-chat/index.cjs +1 -1
- package/components/ai-chat/index.d.ts +1 -0
- package/components/ai-chat/index.js +3 -3
- package/components/ai-chat/request-contract.d.ts +38 -0
- package/components/{ai-chat-Dg2dvhDq.js → ai-chat-DlUYd_Cf.js} +211 -151
- package/components/ai-chat-rok8ar11.cjs +62 -0
- package/components/ai-interaction-textarea/ai-interaction-textarea.d.ts +6 -0
- package/components/ai-interaction-textarea/index.cjs +1 -1
- package/components/ai-interaction-textarea/index.js +1 -1
- package/components/{ai-interaction-textarea-DDVKMfTQ.cjs → ai-interaction-textarea-BGnQbDpJ.cjs} +2 -2
- package/components/{ai-interaction-textarea-ZDQPVgXC.js → ai-interaction-textarea-EdWcPK0w.js} +6 -3
- package/components/grid/grid.d.ts +4 -9
- package/components/grid/helpers/grid-effects.d.ts +1 -0
- package/components/grid/helpers/grid-events.d.ts +50 -0
- package/components/grid/helpers/grid-interactions.d.ts +91 -0
- package/components/grid/helpers/grid-item-management.d.ts +45 -0
- package/components/grid/helpers/grid-item-popover.d.ts +15 -0
- package/components/grid/helpers/grid-items.d.ts +9 -0
- package/components/grid/helpers/grid-keyboard-updates.d.ts +18 -0
- package/components/grid/helpers/grid-keydown-event.d.ts +18 -0
- package/components/grid/helpers/grid-popover-cleanup.d.ts +4 -0
- package/components/grid/helpers/grid-rendering.d.ts +63 -0
- package/components/grid/helpers/grid-stack-lifecycle.d.ts +26 -0
- package/components/grid/helpers/grid-theme.d.ts +16 -0
- package/components/grid/helpers/grid-update-cycle.d.ts +24 -0
- package/components/grid/index.cjs +1 -1
- package/components/grid/index.js +1 -1
- package/components/grid-BNbbl-9p.cjs +316 -0
- package/components/{grid-BW6LPvCu.js → grid-Ca-fxUK1.js} +2341 -1965
- package/components/index.cjs +1 -1
- package/components/index.js +5 -5
- package/components/item-data-picker-panel/index.cjs +1 -1
- package/components/item-data-picker-panel/index.js +1 -1
- package/components/slot-contents-picker/index.cjs +1 -1
- package/components/slot-contents-picker/index.js +1 -1
- package/components/slot-contents-picker/slot-contents-picker.d.ts +4 -2
- package/components/{slot-contents-picker-HRJuZQq5.cjs → slot-contents-picker-BO5lSTDz.cjs} +4 -4
- package/components/{slot-contents-picker-CgACNIVS.js → slot-contents-picker-Bw_G1BwZ.js} +112 -92
- package/custom-elements.json +1558 -17
- package/package.json +2 -2
- package/types/ai-chat.types.d.ts +1 -0
- package/components/ai-chat-CbqvVZDp.cjs +0 -60
- package/components/grid-xtLaTdhb.cjs +0 -316
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ThemeConfig } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
import type { Placement } from '@luzmo/lucero';
|
|
3
|
+
import { type TemplateResult } from 'lit';
|
|
4
|
+
import { repeat } from 'lit/directives/repeat.js';
|
|
5
|
+
import type { GridItemData, InputActionGroup } from '../types';
|
|
6
|
+
interface RenderOverlayContentArgs {
|
|
7
|
+
item?: GridItemData;
|
|
8
|
+
activeAction?: string;
|
|
9
|
+
defaultItemActionsMenu?: InputActionGroup[];
|
|
10
|
+
placementItemActionsMenu: Placement;
|
|
11
|
+
language: string;
|
|
12
|
+
handleAction: (event: CustomEvent) => void;
|
|
13
|
+
}
|
|
14
|
+
interface RenderGridItemArgs {
|
|
15
|
+
item: GridItemData;
|
|
16
|
+
index: number;
|
|
17
|
+
initialized: boolean;
|
|
18
|
+
viewMode: boolean;
|
|
19
|
+
contentLanguage: string;
|
|
20
|
+
fullTheme?: ThemeConfig;
|
|
21
|
+
appServer?: string;
|
|
22
|
+
apiHost?: string;
|
|
23
|
+
authKey?: string;
|
|
24
|
+
authToken?: string;
|
|
25
|
+
handleMouseover: (event: Event) => void;
|
|
26
|
+
handleMouseout: (event: Event) => void;
|
|
27
|
+
handleFocus: (event: FocusEvent) => void;
|
|
28
|
+
handleBlur: (event: FocusEvent) => void;
|
|
29
|
+
}
|
|
30
|
+
interface RenderGridItemsArgs {
|
|
31
|
+
items: GridItemData[];
|
|
32
|
+
initialized: boolean;
|
|
33
|
+
viewMode: boolean;
|
|
34
|
+
contentLanguage: string;
|
|
35
|
+
fullTheme?: ThemeConfig;
|
|
36
|
+
appServer?: string;
|
|
37
|
+
apiHost?: string;
|
|
38
|
+
authKey?: string;
|
|
39
|
+
authToken?: string;
|
|
40
|
+
renderItem: (item: GridItemData, index: number) => TemplateResult;
|
|
41
|
+
}
|
|
42
|
+
interface RenderGridArgs {
|
|
43
|
+
items: GridItemData[];
|
|
44
|
+
initialized: boolean;
|
|
45
|
+
viewMode: boolean;
|
|
46
|
+
contentLanguage: string;
|
|
47
|
+
fullTheme?: ThemeConfig;
|
|
48
|
+
appServer?: string;
|
|
49
|
+
apiHost?: string;
|
|
50
|
+
authKey?: string;
|
|
51
|
+
authToken?: string;
|
|
52
|
+
columns: number;
|
|
53
|
+
ensureGridItemId: (item: GridItemData) => void;
|
|
54
|
+
handleMouseover: (event: Event) => void;
|
|
55
|
+
handleMouseout: (event: Event) => void;
|
|
56
|
+
handleFocus: (event: FocusEvent) => void;
|
|
57
|
+
handleBlur: (event: FocusEvent) => void;
|
|
58
|
+
}
|
|
59
|
+
export declare const renderOverlayContent: ({ item, activeAction, defaultItemActionsMenu, placementItemActionsMenu, language, handleAction }: RenderOverlayContentArgs) => TemplateResult;
|
|
60
|
+
export declare const renderGridItem: ({ item, index, initialized, viewMode, contentLanguage, fullTheme, appServer, apiHost, authKey, authToken, handleMouseover, handleMouseout, handleFocus, handleBlur }: RenderGridItemArgs) => TemplateResult;
|
|
61
|
+
export declare const renderGridItems: ({ items, initialized, viewMode, contentLanguage, fullTheme, appServer, apiHost, authKey, authToken, renderItem }: RenderGridItemsArgs) => ReturnType<typeof repeat>;
|
|
62
|
+
export declare const renderGrid: ({ items, initialized, viewMode, contentLanguage, fullTheme, appServer, apiHost, authKey, authToken, columns, ensureGridItemId, handleMouseover, handleMouseout, handleFocus, handleBlur }: RenderGridArgs) => TemplateResult;
|
|
63
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ThemeConfig } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
import { GridStack, type GridStackNode } from 'gridstack';
|
|
3
|
+
import type { GridItemData } from '../types';
|
|
4
|
+
interface InitializeGridStackArgs {
|
|
5
|
+
gridElement: HTMLElement;
|
|
6
|
+
gridItemElements: NodeListOf<HTMLElement>;
|
|
7
|
+
items: GridItemData[];
|
|
8
|
+
columns: number;
|
|
9
|
+
rowHeight: number;
|
|
10
|
+
viewMode: boolean;
|
|
11
|
+
fullTheme?: ThemeConfig;
|
|
12
|
+
onCreateOrUpdateDimensionsHint: (element: HTMLElement, numberOfColumns: string, numberOfRows: string) => void;
|
|
13
|
+
onRemoveDimensionsHint: (element: HTMLElement) => void;
|
|
14
|
+
onChange: (changedItems: GridStackNode[]) => void;
|
|
15
|
+
}
|
|
16
|
+
interface CreateOrUpdateDimensionsHintArgs {
|
|
17
|
+
element: HTMLElement;
|
|
18
|
+
numberOfColumns: string;
|
|
19
|
+
numberOfRows: string;
|
|
20
|
+
offsetHint: number;
|
|
21
|
+
}
|
|
22
|
+
export declare const initializeGridStack: ({ gridElement, gridItemElements, items, columns, rowHeight, viewMode, fullTheme, onCreateOrUpdateDimensionsHint, onRemoveDimensionsHint, onChange }: InitializeGridStackArgs) => GridStack;
|
|
23
|
+
export declare const applyGridStackChanges: (items: GridItemData[], changedItems: GridStackNode[]) => void;
|
|
24
|
+
export declare const createOrUpdateDimensionsHint: ({ element, numberOfColumns, numberOfRows, offsetHint }: CreateOrUpdateDimensionsHintArgs) => void;
|
|
25
|
+
export declare const removeDimensionsHint: (element: HTMLElement) => void;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ThemeConfig } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
export interface GridThemeResolutionArgs {
|
|
3
|
+
theme?: ThemeConfig;
|
|
4
|
+
currentTheme?: ThemeConfig;
|
|
5
|
+
}
|
|
6
|
+
export declare const resolveGridTheme: ({ theme, currentTheme }: GridThemeResolutionArgs) => Promise<ThemeConfig | undefined>;
|
|
7
|
+
export declare const getGridHalfMargins: (theme?: {
|
|
8
|
+
margins?: number[];
|
|
9
|
+
}) => [number, number];
|
|
10
|
+
export declare const getDimensionsHintOffset: (theme?: {
|
|
11
|
+
margins?: number[];
|
|
12
|
+
}) => number;
|
|
13
|
+
export declare const getGridBoxShadow: (theme?: ThemeConfig) => string;
|
|
14
|
+
export declare const getGridCssVariables: (theme?: ThemeConfig) => ReadonlyMap<string, string | undefined>;
|
|
15
|
+
export declare const isGridDarkBackground: (theme?: ThemeConfig) => boolean;
|
|
16
|
+
export declare const applyThemeProperties: (style: CSSStyleDeclaration, fullTheme?: ThemeConfig) => void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { GridStack } from 'gridstack';
|
|
2
|
+
import type { GridItemData } from '../types';
|
|
3
|
+
interface SyncGridItemsArgs {
|
|
4
|
+
initialized: boolean;
|
|
5
|
+
grid?: GridStack;
|
|
6
|
+
hasItemsChanged: boolean;
|
|
7
|
+
hasItemAdded: boolean;
|
|
8
|
+
gridItemElements: NodeListOf<HTMLElement>;
|
|
9
|
+
items: GridItemData[];
|
|
10
|
+
gridElement: HTMLElement;
|
|
11
|
+
}
|
|
12
|
+
interface ApplyViewModeChangeArgs {
|
|
13
|
+
initialized: boolean;
|
|
14
|
+
grid?: GridStack;
|
|
15
|
+
hasViewModeChanged: boolean;
|
|
16
|
+
viewMode: boolean;
|
|
17
|
+
previousViewMode: unknown;
|
|
18
|
+
activeItemElement?: HTMLElement;
|
|
19
|
+
gridElement: HTMLElement;
|
|
20
|
+
cleanupActiveItem: (item: HTMLElement) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const syncGridItems: ({ initialized, grid, hasItemsChanged, hasItemAdded, gridItemElements, items, gridElement }: SyncGridItemsArgs) => boolean;
|
|
23
|
+
export declare const applyViewModeChange: ({ initialized, grid, hasViewModeChanged, viewMode, previousViewMode, activeItemElement, gridElement, cleanupActiveItem }: ApplyViewModeChangeArgs) => HTMLElement | undefined;
|
|
24
|
+
export {};
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../set-locale-CKjJZRH6.cjs`),require(`../localized-mixin-DTvVLuXW.cjs`);const e=require(`../grid-
|
|
20
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../set-locale-CKjJZRH6.cjs`),require(`../localized-mixin-DTvVLuXW.cjs`);const e=require(`../grid-BNbbl-9p.cjs`);exports.LuzmoGrid=e.t,Object.defineProperty(exports,`LuzmoGridItemActionsMenu`,{enumerable:!0,get:function(){return e.n}});
|
package/components/grid/index.js
CHANGED
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
})();
|
|
26
26
|
import "../set-locale-Uv6F4uSq.js";
|
|
27
27
|
import "../localized-mixin-cLT0UbaF.js";
|
|
28
|
-
import { n as LuzmoGridItemActionsMenu, t as LuzmoGrid } from "../grid-
|
|
28
|
+
import { n as LuzmoGridItemActionsMenu, t as LuzmoGrid } from "../grid-Ca-fxUK1.js";
|
|
29
29
|
export { LuzmoGrid, LuzmoGridItemActionsMenu };
|