@luzmo/ngx-analytics-components-kit 1.0.3-beta.11
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 +40 -0
- package/esm/components/ai-chat-empty-state.d.ts +39 -0
- package/esm/components/ai-chat-empty-state.js +99 -0
- package/esm/components/ai-chat.d.ts +121 -0
- package/esm/components/ai-chat.js +369 -0
- package/esm/components/ai-interaction-textarea.d.ts +110 -0
- package/esm/components/ai-interaction-textarea.js +297 -0
- package/esm/components/data-field-level.d.ts +42 -0
- package/esm/components/data-field-level.js +115 -0
- package/esm/components/data-field-panel.d.ts +84 -0
- package/esm/components/data-field-panel.js +260 -0
- package/esm/components/data-field.d.ts +41 -0
- package/esm/components/data-field.js +108 -0
- package/esm/components/data-fields-select.d.ts +70 -0
- package/esm/components/data-fields-select.js +187 -0
- package/esm/components/dataset-icon.d.ts +34 -0
- package/esm/components/dataset-icon.js +86 -0
- package/esm/components/dataset-selector-list.d.ts +53 -0
- package/esm/components/dataset-selector-list.js +147 -0
- package/esm/components/dataset-selector-row.d.ts +56 -0
- package/esm/components/dataset-selector-row.js +153 -0
- package/esm/components/display-settings-binning.d.ts +32 -0
- package/esm/components/display-settings-binning.js +74 -0
- package/esm/components/display-settings-datetime.d.ts +36 -0
- package/esm/components/display-settings-datetime.js +89 -0
- package/esm/components/display-settings-grand-totals.d.ts +33 -0
- package/esm/components/display-settings-grand-totals.js +75 -0
- package/esm/components/display-settings-numeric.d.ts +41 -0
- package/esm/components/display-settings-numeric.js +99 -0
- package/esm/components/display-settings-period-over-period.d.ts +38 -0
- package/esm/components/display-settings-period-over-period.js +89 -0
- package/esm/components/display-settings.d.ts +69 -0
- package/esm/components/display-settings.js +182 -0
- package/esm/components/filter-expression-picker.d.ts +54 -0
- package/esm/components/filter-expression-picker.js +146 -0
- package/esm/components/filter-item.d.ts +44 -0
- package/esm/components/filter-item.js +130 -0
- package/esm/components/filter-parameter-picker.d.ts +31 -0
- package/esm/components/filter-parameter-picker.js +78 -0
- package/esm/components/filter-value-picker-datetime.d.ts +34 -0
- package/esm/components/filter-value-picker-datetime.js +90 -0
- package/esm/components/filter-value-picker-hierarchy.d.ts +40 -0
- package/esm/components/filter-value-picker-hierarchy.js +114 -0
- package/esm/components/filter-value-picker-numeric.d.ts +40 -0
- package/esm/components/filter-value-picker-numeric.js +114 -0
- package/esm/components/filter-value-picker.d.ts +44 -0
- package/esm/components/filter-value-picker.js +130 -0
- package/esm/components/filters.d.ts +49 -0
- package/esm/components/filters.js +139 -0
- package/esm/components/formula-editor.d.ts +39 -0
- package/esm/components/formula-editor.js +95 -0
- package/esm/components/formula-field.d.ts +31 -0
- package/esm/components/formula-field.js +69 -0
- package/esm/components/formula.d.ts +31 -0
- package/esm/components/formula.js +75 -0
- package/esm/components/item-grid-item-actions-menu.d.ts +34 -0
- package/esm/components/item-grid-item-actions-menu.js +82 -0
- package/esm/components/item-grid.d.ts +80 -0
- package/esm/components/item-grid.js +245 -0
- package/esm/components/item-option-action-button-group.d.ts +30 -0
- package/esm/components/item-option-action-button-group.js +63 -0
- package/esm/components/item-option-color-palette-picker.d.ts +30 -0
- package/esm/components/item-option-color-palette-picker.js +63 -0
- package/esm/components/item-option-color-picker.d.ts +35 -0
- package/esm/components/item-option-color-picker.js +102 -0
- package/esm/components/item-option-color-range.d.ts +30 -0
- package/esm/components/item-option-color-range.js +63 -0
- package/esm/components/item-option-multi-language-field.d.ts +31 -0
- package/esm/components/item-option-multi-language-field.js +74 -0
- package/esm/components/item-option-number-field.d.ts +32 -0
- package/esm/components/item-option-number-field.js +81 -0
- package/esm/components/item-option-panel.d.ts +54 -0
- package/esm/components/item-option-panel.js +155 -0
- package/esm/components/item-option-picker.d.ts +30 -0
- package/esm/components/item-option-picker.js +63 -0
- package/esm/components/item-option-position-picker.d.ts +30 -0
- package/esm/components/item-option-position-picker.js +63 -0
- package/esm/components/item-option-positions-number-field.d.ts +32 -0
- package/esm/components/item-option-positions-number-field.js +81 -0
- package/esm/components/item-option-radio-button-group.d.ts +31 -0
- package/esm/components/item-option-radio-button-group.js +74 -0
- package/esm/components/item-option-slider.d.ts +36 -0
- package/esm/components/item-option-slider.js +109 -0
- package/esm/components/item-option-switch.d.ts +34 -0
- package/esm/components/item-option-switch.js +81 -0
- package/esm/components/item-option-text-field.d.ts +31 -0
- package/esm/components/item-option-text-field.js +74 -0
- package/esm/components/item-option.d.ts +48 -0
- package/esm/components/item-option.js +161 -0
- package/esm/components/item-slot-drop-panel.d.ts +78 -0
- package/esm/components/item-slot-drop-panel.js +233 -0
- package/esm/components/item-slot-drop.d.ts +63 -0
- package/esm/components/item-slot-drop.js +201 -0
- package/esm/components/item-slot-picker-panel.d.ts +95 -0
- package/esm/components/item-slot-picker-panel.js +301 -0
- package/esm/components/item-slot-picker.d.ts +80 -0
- package/esm/components/item-slot-picker.js +235 -0
- package/esm/components/slot-menu-list.d.ts +37 -0
- package/esm/components/slot-menu-list.js +97 -0
- package/esm/components/slot-menu.d.ts +85 -0
- package/esm/components/slot-menu.js +271 -0
- package/esm/components/viz-item-menu.d.ts +40 -0
- package/esm/components/viz-item-menu.js +103 -0
- package/esm/index.d.ts +105 -0
- package/esm/index.js +209 -0
- package/package.json +40 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, output, Renderer2 } from '@angular/core';
|
|
2
|
+
import '@luzmo/analytics-components-kit/formula-field';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
const _c0 = ["*"];
|
|
5
|
+
/**
|
|
6
|
+
* Angular wrapper component for <luzmo-formula-field>
|
|
7
|
+
*/
|
|
8
|
+
export class LuzmoFormulaField {
|
|
9
|
+
elementRef = inject(ElementRef);
|
|
10
|
+
renderer = inject(Renderer2);
|
|
11
|
+
destroyRef = inject(DestroyRef);
|
|
12
|
+
host = this.elementRef.nativeElement;
|
|
13
|
+
listenerCleanup = [];
|
|
14
|
+
/** The underlying custom element instance. Use to call imperative methods. */
|
|
15
|
+
get nativeElement() {
|
|
16
|
+
return this.host;
|
|
17
|
+
}
|
|
18
|
+
/** Fired (debounced) when the expression changes (only when not readonly). */
|
|
19
|
+
luzmoExpressionChanged = output({ alias: 'luzmoExpressionChanged' });
|
|
20
|
+
/** Fired when fetching datasets by id fails. */
|
|
21
|
+
luzmoDatasetsError = output({ alias: 'luzmoDatasetsError' });
|
|
22
|
+
constructor() {
|
|
23
|
+
this.bindEvents();
|
|
24
|
+
this.destroyRef.onDestroy(() => {
|
|
25
|
+
for (const cleanup of this.listenerCleanup) {
|
|
26
|
+
cleanup();
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
ngOnChanges(changes) {
|
|
31
|
+
// No mapped inputs for this wrapper.
|
|
32
|
+
void changes;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
36
|
+
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
37
|
+
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
38
|
+
* undefined / null by clearing their bindings.
|
|
39
|
+
*/
|
|
40
|
+
setHostProperty(key, value) {
|
|
41
|
+
this.renderer.setProperty(this.host, key, value);
|
|
42
|
+
}
|
|
43
|
+
bindEvents() {
|
|
44
|
+
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-expression-changed', (event) => {
|
|
45
|
+
const typed = event;
|
|
46
|
+
this.luzmoExpressionChanged.emit(typed);
|
|
47
|
+
}));
|
|
48
|
+
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-datasets-error', (event) => {
|
|
49
|
+
const typed = event;
|
|
50
|
+
this.luzmoDatasetsError.emit(typed);
|
|
51
|
+
}));
|
|
52
|
+
}
|
|
53
|
+
static ɵfac = function LuzmoFormulaField_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoFormulaField)(); };
|
|
54
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoFormulaField, selectors: [["luzmo-formula-field"]], outputs: { luzmoExpressionChanged: "luzmoExpressionChanged", luzmoDatasetsError: "luzmoDatasetsError" }, exportAs: ["luzmoFormulaField"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoFormulaField_Template(rf, ctx) { if (rf & 1) {
|
|
55
|
+
i0.ɵɵprojectionDef();
|
|
56
|
+
i0.ɵɵprojection(0);
|
|
57
|
+
} }, encapsulation: 2, changeDetection: 0 });
|
|
58
|
+
}
|
|
59
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoFormulaField, [{
|
|
60
|
+
type: Component,
|
|
61
|
+
args: [{
|
|
62
|
+
selector: 'luzmo-formula-field',
|
|
63
|
+
exportAs: 'luzmoFormulaField',
|
|
64
|
+
standalone: true,
|
|
65
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
66
|
+
template: '<ng-content />'
|
|
67
|
+
}]
|
|
68
|
+
}], () => [], { luzmoExpressionChanged: [{ type: i0.Output, args: ["luzmoExpressionChanged"] }], luzmoDatasetsError: [{ type: i0.Output, args: ["luzmoDatasetsError"] }] }); })();
|
|
69
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoFormulaField, { className: "LuzmoFormulaField", filePath: "components/formula-field.ts", lineNumber: 15 }); })();
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import '@luzmo/analytics-components-kit/formula';
|
|
3
|
+
import type { LuzmoFormula as LuzmoFormulaHostElement } from '@luzmo/analytics-components-kit/formula';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class LuzmoFormula implements OnChanges {
|
|
6
|
+
private readonly elementRef;
|
|
7
|
+
private readonly renderer;
|
|
8
|
+
private readonly destroyRef;
|
|
9
|
+
private readonly host;
|
|
10
|
+
private readonly listenerCleanup;
|
|
11
|
+
/** The underlying custom element instance. Use to call imperative methods. */
|
|
12
|
+
get nativeElement(): LuzmoFormulaHostElement;
|
|
13
|
+
/** Rendering mode. `rich` (default) renders read-only column / aggregation pills; `text` renders plain text with an inline type icon per column. Both are always read-only. */
|
|
14
|
+
display?: 'rich' | 'text';
|
|
15
|
+
/** Fired when fetching datasets by id fails. */
|
|
16
|
+
readonly luzmoDatasetsError: import("@angular/core").OutputEmitterRef<unknown>;
|
|
17
|
+
constructor();
|
|
18
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
19
|
+
/**
|
|
20
|
+
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
21
|
+
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
22
|
+
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
23
|
+
* undefined / null by clearing their bindings.
|
|
24
|
+
*/
|
|
25
|
+
private setHostProperty;
|
|
26
|
+
private bindEvents;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoFormula, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoFormula, "luzmo-formula", ["luzmoFormula"], { "display": { "alias": "display"; "required": false; }; }, { "luzmoDatasetsError": "luzmoDatasetsError"; }, never, ["*"], true, never>;
|
|
29
|
+
}
|
|
30
|
+
/** The underlying custom element type for LuzmoFormula */
|
|
31
|
+
export type LuzmoFormulaElement = LuzmoFormulaHostElement;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
|
|
2
|
+
import '@luzmo/analytics-components-kit/formula';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
const _c0 = ["*"];
|
|
5
|
+
/**
|
|
6
|
+
* Angular wrapper component for <luzmo-formula>
|
|
7
|
+
*/
|
|
8
|
+
export class LuzmoFormula {
|
|
9
|
+
elementRef = inject(ElementRef);
|
|
10
|
+
renderer = inject(Renderer2);
|
|
11
|
+
destroyRef = inject(DestroyRef);
|
|
12
|
+
host = this.elementRef.nativeElement;
|
|
13
|
+
listenerCleanup = [];
|
|
14
|
+
/** The underlying custom element instance. Use to call imperative methods. */
|
|
15
|
+
get nativeElement() {
|
|
16
|
+
return this.host;
|
|
17
|
+
}
|
|
18
|
+
/** Rendering mode. `rich` (default) renders read-only column / aggregation pills; `text` renders plain text with an inline type icon per column. Both are always read-only. */
|
|
19
|
+
display;
|
|
20
|
+
/** Fired when fetching datasets by id fails. */
|
|
21
|
+
luzmoDatasetsError = output({ alias: 'luzmoDatasetsError' });
|
|
22
|
+
constructor() {
|
|
23
|
+
this.bindEvents();
|
|
24
|
+
this.destroyRef.onDestroy(() => {
|
|
25
|
+
for (const cleanup of this.listenerCleanup) {
|
|
26
|
+
cleanup();
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
ngOnChanges(changes) {
|
|
31
|
+
for (const key of Object.keys(changes)) {
|
|
32
|
+
switch (key) {
|
|
33
|
+
case 'display':
|
|
34
|
+
this.setHostProperty('display', changes['display'].currentValue);
|
|
35
|
+
break;
|
|
36
|
+
default:
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
43
|
+
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
44
|
+
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
45
|
+
* undefined / null by clearing their bindings.
|
|
46
|
+
*/
|
|
47
|
+
setHostProperty(key, value) {
|
|
48
|
+
this.renderer.setProperty(this.host, key, value);
|
|
49
|
+
}
|
|
50
|
+
bindEvents() {
|
|
51
|
+
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-datasets-error', (event) => {
|
|
52
|
+
const typed = event;
|
|
53
|
+
this.luzmoDatasetsError.emit(typed);
|
|
54
|
+
}));
|
|
55
|
+
}
|
|
56
|
+
static ɵfac = function LuzmoFormula_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoFormula)(); };
|
|
57
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoFormula, selectors: [["luzmo-formula"]], inputs: { display: "display" }, outputs: { luzmoDatasetsError: "luzmoDatasetsError" }, exportAs: ["luzmoFormula"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoFormula_Template(rf, ctx) { if (rf & 1) {
|
|
58
|
+
i0.ɵɵprojectionDef();
|
|
59
|
+
i0.ɵɵprojection(0);
|
|
60
|
+
} }, encapsulation: 2, changeDetection: 0 });
|
|
61
|
+
}
|
|
62
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoFormula, [{
|
|
63
|
+
type: Component,
|
|
64
|
+
args: [{
|
|
65
|
+
selector: 'luzmo-formula',
|
|
66
|
+
exportAs: 'luzmoFormula',
|
|
67
|
+
standalone: true,
|
|
68
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
69
|
+
template: '<ng-content />'
|
|
70
|
+
}]
|
|
71
|
+
}], () => [], { display: [{
|
|
72
|
+
type: Input,
|
|
73
|
+
args: [{ alias: 'display' }]
|
|
74
|
+
}], luzmoDatasetsError: [{ type: i0.Output, args: ["luzmoDatasetsError"] }] }); })();
|
|
75
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoFormula, { className: "LuzmoFormula", filePath: "components/formula.ts", lineNumber: 15 }); })();
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import '@luzmo/analytics-components-kit/item-grid';
|
|
3
|
+
import type { LuzmoItemGridItemActionsMenu as LuzmoItemGridItemActionsMenuHostElement, ActionGroup } from '@luzmo/analytics-components-kit/item-grid';
|
|
4
|
+
import type { Placement } from '@luzmo/lucero';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export type { Action, ActionGroup, AddGridItemInput, ClonedItemPositioning, DefaultActionType, GridItemActionEventDetail, GridItemData, GridItemPatch, GridItemPosition, GridItemPositionPatch, GridItemRenderer, GridItemSizePatch, GridItemStatesChangedEventDetail, GridLifecycleEventDetail, InputActionGroup, ItemStates } from '@luzmo/analytics-components-kit/item-grid';
|
|
7
|
+
export declare class LuzmoItemGridItemActionsMenu implements OnChanges {
|
|
8
|
+
private readonly elementRef;
|
|
9
|
+
private readonly renderer;
|
|
10
|
+
private readonly destroyRef;
|
|
11
|
+
private readonly host;
|
|
12
|
+
private readonly listenerCleanup;
|
|
13
|
+
/** The underlying custom element instance. Use to call imperative methods. */
|
|
14
|
+
get nativeElement(): LuzmoItemGridItemActionsMenuHostElement;
|
|
15
|
+
/** The preferred placement of the menu */
|
|
16
|
+
placement?: Placement;
|
|
17
|
+
/** The Actions to display in the menu */
|
|
18
|
+
actions?: ActionGroup[];
|
|
19
|
+
readonly luzmoItemGridItemAction: import("@angular/core").OutputEmitterRef<CustomEvent<unknown>>;
|
|
20
|
+
constructor();
|
|
21
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
22
|
+
/**
|
|
23
|
+
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
24
|
+
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
25
|
+
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
26
|
+
* undefined / null by clearing their bindings.
|
|
27
|
+
*/
|
|
28
|
+
private setHostProperty;
|
|
29
|
+
private bindEvents;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemGridItemActionsMenu, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemGridItemActionsMenu, "luzmo-item-grid-item-actions-menu", ["luzmoItemGridItemActionsMenu"], { "placement": { "alias": "placement"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; }, { "luzmoItemGridItemAction": "luzmoItemGridItemAction"; }, never, ["*"], true, never>;
|
|
32
|
+
}
|
|
33
|
+
/** The underlying custom element type for LuzmoItemGridItemActionsMenu */
|
|
34
|
+
export type LuzmoItemGridItemActionsMenuElement = LuzmoItemGridItemActionsMenuHostElement;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
|
|
2
|
+
import '@luzmo/analytics-components-kit/item-grid';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
const _c0 = ["*"];
|
|
5
|
+
/**
|
|
6
|
+
* Angular wrapper component for <luzmo-item-grid-item-actions-menu>
|
|
7
|
+
*/
|
|
8
|
+
export class LuzmoItemGridItemActionsMenu {
|
|
9
|
+
elementRef = inject(ElementRef);
|
|
10
|
+
renderer = inject(Renderer2);
|
|
11
|
+
destroyRef = inject(DestroyRef);
|
|
12
|
+
host = this.elementRef.nativeElement;
|
|
13
|
+
listenerCleanup = [];
|
|
14
|
+
/** The underlying custom element instance. Use to call imperative methods. */
|
|
15
|
+
get nativeElement() {
|
|
16
|
+
return this.host;
|
|
17
|
+
}
|
|
18
|
+
/** The preferred placement of the menu */
|
|
19
|
+
placement;
|
|
20
|
+
/** The Actions to display in the menu */
|
|
21
|
+
actions;
|
|
22
|
+
luzmoItemGridItemAction = output({ alias: 'luzmoItemGridItemAction' });
|
|
23
|
+
constructor() {
|
|
24
|
+
this.bindEvents();
|
|
25
|
+
this.destroyRef.onDestroy(() => {
|
|
26
|
+
for (const cleanup of this.listenerCleanup) {
|
|
27
|
+
cleanup();
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
ngOnChanges(changes) {
|
|
32
|
+
for (const key of Object.keys(changes)) {
|
|
33
|
+
switch (key) {
|
|
34
|
+
case 'placement':
|
|
35
|
+
this.setHostProperty('placement', changes['placement'].currentValue);
|
|
36
|
+
break;
|
|
37
|
+
case 'actions':
|
|
38
|
+
this.setHostProperty('actions', changes['actions'].currentValue);
|
|
39
|
+
break;
|
|
40
|
+
default:
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
47
|
+
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
48
|
+
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
49
|
+
* undefined / null by clearing their bindings.
|
|
50
|
+
*/
|
|
51
|
+
setHostProperty(key, value) {
|
|
52
|
+
this.renderer.setProperty(this.host, key, value);
|
|
53
|
+
}
|
|
54
|
+
bindEvents() {
|
|
55
|
+
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-item-grid-item-action', (event) => {
|
|
56
|
+
const typed = event;
|
|
57
|
+
this.luzmoItemGridItemAction.emit(typed);
|
|
58
|
+
}));
|
|
59
|
+
}
|
|
60
|
+
static ɵfac = function LuzmoItemGridItemActionsMenu_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemGridItemActionsMenu)(); };
|
|
61
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemGridItemActionsMenu, selectors: [["luzmo-item-grid-item-actions-menu"]], inputs: { placement: "placement", actions: "actions" }, outputs: { luzmoItemGridItemAction: "luzmoItemGridItemAction" }, exportAs: ["luzmoItemGridItemActionsMenu"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemGridItemActionsMenu_Template(rf, ctx) { if (rf & 1) {
|
|
62
|
+
i0.ɵɵprojectionDef();
|
|
63
|
+
i0.ɵɵprojection(0);
|
|
64
|
+
} }, encapsulation: 2, changeDetection: 0 });
|
|
65
|
+
}
|
|
66
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoItemGridItemActionsMenu, [{
|
|
67
|
+
type: Component,
|
|
68
|
+
args: [{
|
|
69
|
+
selector: 'luzmo-item-grid-item-actions-menu',
|
|
70
|
+
exportAs: 'luzmoItemGridItemActionsMenu',
|
|
71
|
+
standalone: true,
|
|
72
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
73
|
+
template: '<ng-content />'
|
|
74
|
+
}]
|
|
75
|
+
}], () => [], { placement: [{
|
|
76
|
+
type: Input,
|
|
77
|
+
args: [{ alias: 'placement' }]
|
|
78
|
+
}], actions: [{
|
|
79
|
+
type: Input,
|
|
80
|
+
args: [{ alias: 'actions' }]
|
|
81
|
+
}], luzmoItemGridItemAction: [{ type: i0.Output, args: ["luzmoItemGridItemAction"] }] }); })();
|
|
82
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoItemGridItemActionsMenu, { className: "LuzmoItemGridItemActionsMenu", filePath: "components/item-grid-item-actions-menu.ts", lineNumber: 17 }); })();
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import '@luzmo/analytics-components-kit/item-grid';
|
|
3
|
+
import type { LuzmoItemGrid as LuzmoItemGridHostElement, ClonedItemPositioning, GridItemActionEventDetail, GridItemData, GridItemRenderer, GridItemStatesChangedEventDetail, GridLifecycleEventDetail, InputActionGroup, ItemStates } from '@luzmo/analytics-components-kit/item-grid';
|
|
4
|
+
import type { ThemeConfig } from '@luzmo/dashboard-contents-types';
|
|
5
|
+
import type { Placement } from '@luzmo/lucero';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export type { Action, ActionGroup, AddGridItemInput, ClonedItemPositioning, DefaultActionType, GridItemActionEventDetail, GridItemData, GridItemPatch, GridItemPosition, GridItemPositionPatch, GridItemRenderer, GridItemSizePatch, GridItemStatesChangedEventDetail, GridLifecycleEventDetail, InputActionGroup, ItemStates } from '@luzmo/analytics-components-kit/item-grid';
|
|
8
|
+
export declare class LuzmoItemGrid implements OnChanges {
|
|
9
|
+
private readonly elementRef;
|
|
10
|
+
private readonly renderer;
|
|
11
|
+
private readonly destroyRef;
|
|
12
|
+
private readonly host;
|
|
13
|
+
private readonly listenerCleanup;
|
|
14
|
+
/** The underlying custom element instance. Use to call imperative methods. */
|
|
15
|
+
get nativeElement(): LuzmoItemGridHostElement;
|
|
16
|
+
/** The URL of the app server */
|
|
17
|
+
appServer?: string;
|
|
18
|
+
/** The API Host of the databroker */
|
|
19
|
+
apiHost?: string;
|
|
20
|
+
/** The auth key of the databroker */
|
|
21
|
+
authKey?: string;
|
|
22
|
+
/** The auth token of the databroker */
|
|
23
|
+
authToken?: string;
|
|
24
|
+
/** The cache time of the databroker */
|
|
25
|
+
cacheTime?: number;
|
|
26
|
+
/** The language of the settings interface */
|
|
27
|
+
language?: string;
|
|
28
|
+
/** The language to use for locale-aware formatting and labels */
|
|
29
|
+
contentLanguage?: string;
|
|
30
|
+
/** The number of columns in the grid. */
|
|
31
|
+
columns?: number;
|
|
32
|
+
/** The height of each row in pixels in the grid. */
|
|
33
|
+
rowHeight?: number;
|
|
34
|
+
/** Whether the grid is in view mode. When true, dragging, resizing and action buttons are disabled. */
|
|
35
|
+
viewMode?: boolean;
|
|
36
|
+
/** When true (default), the item actions menu uses the Document Popover API (`popover="manual"`), which paints in the top layer. Set to false when embedding the grid next to another UI that also uses a document popover (e.g. an analyst side pane) so the actions menu stays in normal stacking with `position: fixed` + Floating UI instead. */
|
|
37
|
+
itemActionsDocumentPopover?: boolean;
|
|
38
|
+
/** The placement of the item actions menu. */
|
|
39
|
+
placementItemActionsMenu?: Placement;
|
|
40
|
+
/** The default item actions menu. */
|
|
41
|
+
defaultItemActionsMenu?: InputActionGroup[];
|
|
42
|
+
/** Where to position a cloned item in the grid. - `'below-item'` (default): places the clone directly below the original item, shifting other items down. - `'auto-position'`: lets the grid engine find the first available space (row-major scan, then compact upward). */
|
|
43
|
+
clonedItemPositioning?: ClonedItemPositioning;
|
|
44
|
+
/** Grid options configuration */
|
|
45
|
+
theme?: ThemeConfig;
|
|
46
|
+
/** Items to add to the grid. The array is cloned on set so the component never mutates the caller's data. */
|
|
47
|
+
items?: GridItemData[];
|
|
48
|
+
/** Seed value for uncontrolled items mode. The component manages item changes internally from this starting point. Ignored when `items` is set. */
|
|
49
|
+
initialItems?: GridItemData[];
|
|
50
|
+
/** Custom renderers for different item types */
|
|
51
|
+
renderers?: Record<string, GridItemRenderer>;
|
|
52
|
+
/** Controlled item states. When set, the component becomes controlled: it only reflects what the parent provides and does not update internal state on user interaction. */
|
|
53
|
+
itemStates?: ItemStates;
|
|
54
|
+
/** Seed value for uncontrolled mode. The component manages state internally from this starting point. Ignored if `itemStates` is set. Only one item with one active action is supported. If multiple items or actions are provided, a warning is emitted and only the first item with its first action is applied. Use controlled mode (`itemStates`) for multiple simultaneous active items. */
|
|
55
|
+
initialItemStates?: ItemStates;
|
|
56
|
+
/** Fired when an item action is performed */
|
|
57
|
+
readonly luzmoItemGridItemAction: import("@angular/core").OutputEmitterRef<CustomEvent<GridItemActionEventDetail>>;
|
|
58
|
+
/** Fired when the grid layout is changed */
|
|
59
|
+
readonly luzmoItemGridLayoutChanged: import("@angular/core").OutputEmitterRef<CustomEvent<GridLifecycleEventDetail>>;
|
|
60
|
+
/** Fired when the grid is ready */
|
|
61
|
+
readonly luzmoItemGridReady: import("@angular/core").OutputEmitterRef<CustomEvent<GridLifecycleEventDetail>>;
|
|
62
|
+
/** Fired when item states change (controlled and uncontrolled mode) */
|
|
63
|
+
readonly luzmoItemGridItemStatesChanged: import("@angular/core").OutputEmitterRef<CustomEvent<GridItemStatesChangedEventDetail>>;
|
|
64
|
+
constructor();
|
|
65
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
66
|
+
/**
|
|
67
|
+
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
68
|
+
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
69
|
+
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
70
|
+
* undefined / null by clearing their bindings.
|
|
71
|
+
*/
|
|
72
|
+
private setHostProperty;
|
|
73
|
+
private bindEvents;
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemGrid, never>;
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemGrid, "luzmo-item-grid", ["luzmoItemGrid"], { "appServer": { "alias": "appServer"; "required": false; }; "apiHost": { "alias": "apiHost"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "cacheTime": { "alias": "cacheTime"; "required": false; }; "language": { "alias": "language"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "rowHeight": { "alias": "rowHeight"; "required": false; }; "viewMode": { "alias": "viewMode"; "required": false; }; "itemActionsDocumentPopover": { "alias": "itemActionsDocumentPopover"; "required": false; }; "placementItemActionsMenu": { "alias": "placementItemActionsMenu"; "required": false; }; "defaultItemActionsMenu": { "alias": "defaultItemActionsMenu"; "required": false; }; "clonedItemPositioning": { "alias": "clonedItemPositioning"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "items": { "alias": "items"; "required": false; }; "initialItems": { "alias": "initialItems"; "required": false; }; "renderers": { "alias": "renderers"; "required": false; }; "itemStates": { "alias": "itemStates"; "required": false; }; "initialItemStates": { "alias": "initialItemStates"; "required": false; }; }, { "luzmoItemGridItemAction": "luzmoItemGridItemAction"; "luzmoItemGridLayoutChanged": "luzmoItemGridLayoutChanged"; "luzmoItemGridReady": "luzmoItemGridReady"; "luzmoItemGridItemStatesChanged": "luzmoItemGridItemStatesChanged"; }, never, ["*"], true, never>;
|
|
76
|
+
static ngAcceptInputType_viewMode: unknown;
|
|
77
|
+
static ngAcceptInputType_itemActionsDocumentPopover: unknown;
|
|
78
|
+
}
|
|
79
|
+
/** The underlying custom element type for LuzmoItemGrid */
|
|
80
|
+
export type LuzmoItemGridElement = LuzmoItemGridHostElement;
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
|
|
2
|
+
import '@luzmo/analytics-components-kit/item-grid';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
const _c0 = ["*"];
|
|
5
|
+
/**
|
|
6
|
+
* Angular wrapper component for <luzmo-item-grid>
|
|
7
|
+
*/
|
|
8
|
+
export class LuzmoItemGrid {
|
|
9
|
+
elementRef = inject(ElementRef);
|
|
10
|
+
renderer = inject(Renderer2);
|
|
11
|
+
destroyRef = inject(DestroyRef);
|
|
12
|
+
host = this.elementRef.nativeElement;
|
|
13
|
+
listenerCleanup = [];
|
|
14
|
+
/** The underlying custom element instance. Use to call imperative methods. */
|
|
15
|
+
get nativeElement() {
|
|
16
|
+
return this.host;
|
|
17
|
+
}
|
|
18
|
+
/** The URL of the app server */
|
|
19
|
+
appServer;
|
|
20
|
+
/** The API Host of the databroker */
|
|
21
|
+
apiHost;
|
|
22
|
+
/** The auth key of the databroker */
|
|
23
|
+
authKey;
|
|
24
|
+
/** The auth token of the databroker */
|
|
25
|
+
authToken;
|
|
26
|
+
/** The cache time of the databroker */
|
|
27
|
+
cacheTime;
|
|
28
|
+
/** The language of the settings interface */
|
|
29
|
+
language;
|
|
30
|
+
/** The language to use for locale-aware formatting and labels */
|
|
31
|
+
contentLanguage;
|
|
32
|
+
/** The number of columns in the grid. */
|
|
33
|
+
columns;
|
|
34
|
+
/** The height of each row in pixels in the grid. */
|
|
35
|
+
rowHeight;
|
|
36
|
+
/** Whether the grid is in view mode. When true, dragging, resizing and action buttons are disabled. */
|
|
37
|
+
viewMode;
|
|
38
|
+
/** When true (default), the item actions menu uses the Document Popover API (`popover="manual"`), which paints in the top layer. Set to false when embedding the grid next to another UI that also uses a document popover (e.g. an analyst side pane) so the actions menu stays in normal stacking with `position: fixed` + Floating UI instead. */
|
|
39
|
+
itemActionsDocumentPopover;
|
|
40
|
+
/** The placement of the item actions menu. */
|
|
41
|
+
placementItemActionsMenu;
|
|
42
|
+
/** The default item actions menu. */
|
|
43
|
+
defaultItemActionsMenu;
|
|
44
|
+
/** Where to position a cloned item in the grid. - `'below-item'` (default): places the clone directly below the original item, shifting other items down. - `'auto-position'`: lets the grid engine find the first available space (row-major scan, then compact upward). */
|
|
45
|
+
clonedItemPositioning;
|
|
46
|
+
/** Grid options configuration */
|
|
47
|
+
theme;
|
|
48
|
+
/** Items to add to the grid. The array is cloned on set so the component never mutates the caller's data. */
|
|
49
|
+
items;
|
|
50
|
+
/** Seed value for uncontrolled items mode. The component manages item changes internally from this starting point. Ignored when `items` is set. */
|
|
51
|
+
initialItems;
|
|
52
|
+
/** Custom renderers for different item types */
|
|
53
|
+
renderers;
|
|
54
|
+
/** Controlled item states. When set, the component becomes controlled: it only reflects what the parent provides and does not update internal state on user interaction. */
|
|
55
|
+
itemStates;
|
|
56
|
+
/** Seed value for uncontrolled mode. The component manages state internally from this starting point. Ignored if `itemStates` is set. Only one item with one active action is supported. If multiple items or actions are provided, a warning is emitted and only the first item with its first action is applied. Use controlled mode (`itemStates`) for multiple simultaneous active items. */
|
|
57
|
+
initialItemStates;
|
|
58
|
+
/** Fired when an item action is performed */
|
|
59
|
+
luzmoItemGridItemAction = output({ alias: 'luzmoItemGridItemAction' });
|
|
60
|
+
/** Fired when the grid layout is changed */
|
|
61
|
+
luzmoItemGridLayoutChanged = output({ alias: 'luzmoItemGridLayoutChanged' });
|
|
62
|
+
/** Fired when the grid is ready */
|
|
63
|
+
luzmoItemGridReady = output({ alias: 'luzmoItemGridReady' });
|
|
64
|
+
/** Fired when item states change (controlled and uncontrolled mode) */
|
|
65
|
+
luzmoItemGridItemStatesChanged = output({ alias: 'luzmoItemGridItemStatesChanged' });
|
|
66
|
+
constructor() {
|
|
67
|
+
this.bindEvents();
|
|
68
|
+
this.destroyRef.onDestroy(() => {
|
|
69
|
+
for (const cleanup of this.listenerCleanup) {
|
|
70
|
+
cleanup();
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
ngOnChanges(changes) {
|
|
75
|
+
for (const key of Object.keys(changes)) {
|
|
76
|
+
switch (key) {
|
|
77
|
+
case 'appServer':
|
|
78
|
+
this.setHostProperty('appServer', changes['appServer'].currentValue);
|
|
79
|
+
break;
|
|
80
|
+
case 'apiHost':
|
|
81
|
+
this.setHostProperty('apiHost', changes['apiHost'].currentValue);
|
|
82
|
+
break;
|
|
83
|
+
case 'authKey':
|
|
84
|
+
this.setHostProperty('authKey', changes['authKey'].currentValue);
|
|
85
|
+
break;
|
|
86
|
+
case 'authToken':
|
|
87
|
+
this.setHostProperty('authToken', changes['authToken'].currentValue);
|
|
88
|
+
break;
|
|
89
|
+
case 'cacheTime':
|
|
90
|
+
this.setHostProperty('cacheTime', changes['cacheTime'].currentValue);
|
|
91
|
+
break;
|
|
92
|
+
case 'language':
|
|
93
|
+
this.setHostProperty('language', changes['language'].currentValue);
|
|
94
|
+
break;
|
|
95
|
+
case 'contentLanguage':
|
|
96
|
+
this.setHostProperty('contentLanguage', changes['contentLanguage'].currentValue);
|
|
97
|
+
break;
|
|
98
|
+
case 'columns':
|
|
99
|
+
this.setHostProperty('columns', changes['columns'].currentValue);
|
|
100
|
+
break;
|
|
101
|
+
case 'rowHeight':
|
|
102
|
+
this.setHostProperty('rowHeight', changes['rowHeight'].currentValue);
|
|
103
|
+
break;
|
|
104
|
+
case 'viewMode':
|
|
105
|
+
this.setHostProperty('viewMode', changes['viewMode'].currentValue);
|
|
106
|
+
break;
|
|
107
|
+
case 'itemActionsDocumentPopover':
|
|
108
|
+
this.setHostProperty('itemActionsDocumentPopover', changes['itemActionsDocumentPopover'].currentValue);
|
|
109
|
+
break;
|
|
110
|
+
case 'placementItemActionsMenu':
|
|
111
|
+
this.setHostProperty('placementItemActionsMenu', changes['placementItemActionsMenu'].currentValue);
|
|
112
|
+
break;
|
|
113
|
+
case 'defaultItemActionsMenu':
|
|
114
|
+
this.setHostProperty('defaultItemActionsMenu', changes['defaultItemActionsMenu'].currentValue);
|
|
115
|
+
break;
|
|
116
|
+
case 'clonedItemPositioning':
|
|
117
|
+
this.setHostProperty('clonedItemPositioning', changes['clonedItemPositioning'].currentValue);
|
|
118
|
+
break;
|
|
119
|
+
case 'theme':
|
|
120
|
+
this.setHostProperty('theme', changes['theme'].currentValue);
|
|
121
|
+
break;
|
|
122
|
+
case 'items':
|
|
123
|
+
this.setHostProperty('items', changes['items'].currentValue);
|
|
124
|
+
break;
|
|
125
|
+
case 'initialItems':
|
|
126
|
+
this.setHostProperty('initialItems', changes['initialItems'].currentValue);
|
|
127
|
+
break;
|
|
128
|
+
case 'renderers':
|
|
129
|
+
this.setHostProperty('renderers', changes['renderers'].currentValue);
|
|
130
|
+
break;
|
|
131
|
+
case 'itemStates':
|
|
132
|
+
this.setHostProperty('itemStates', changes['itemStates'].currentValue);
|
|
133
|
+
break;
|
|
134
|
+
case 'initialItemStates':
|
|
135
|
+
this.setHostProperty('initialItemStates', changes['initialItemStates'].currentValue);
|
|
136
|
+
break;
|
|
137
|
+
default:
|
|
138
|
+
break;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
144
|
+
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
145
|
+
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
146
|
+
* undefined / null by clearing their bindings.
|
|
147
|
+
*/
|
|
148
|
+
setHostProperty(key, value) {
|
|
149
|
+
this.renderer.setProperty(this.host, key, value);
|
|
150
|
+
}
|
|
151
|
+
bindEvents() {
|
|
152
|
+
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-item-grid-item-action', (event) => {
|
|
153
|
+
const typed = event;
|
|
154
|
+
this.luzmoItemGridItemAction.emit(typed);
|
|
155
|
+
}));
|
|
156
|
+
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-item-grid-layout-changed', (event) => {
|
|
157
|
+
const typed = event;
|
|
158
|
+
this.luzmoItemGridLayoutChanged.emit(typed);
|
|
159
|
+
}));
|
|
160
|
+
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-item-grid-ready', (event) => {
|
|
161
|
+
const typed = event;
|
|
162
|
+
this.luzmoItemGridReady.emit(typed);
|
|
163
|
+
}));
|
|
164
|
+
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-item-grid-item-states-changed', (event) => {
|
|
165
|
+
const typed = event;
|
|
166
|
+
this.luzmoItemGridItemStatesChanged.emit(typed);
|
|
167
|
+
}));
|
|
168
|
+
}
|
|
169
|
+
static ɵfac = function LuzmoItemGrid_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemGrid)(); };
|
|
170
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemGrid, selectors: [["luzmo-item-grid"]], inputs: { appServer: "appServer", apiHost: "apiHost", authKey: "authKey", authToken: "authToken", cacheTime: "cacheTime", language: "language", contentLanguage: "contentLanguage", columns: "columns", rowHeight: "rowHeight", viewMode: [2, "viewMode", "viewMode", booleanAttribute], itemActionsDocumentPopover: [2, "itemActionsDocumentPopover", "itemActionsDocumentPopover", booleanAttribute], placementItemActionsMenu: "placementItemActionsMenu", defaultItemActionsMenu: "defaultItemActionsMenu", clonedItemPositioning: "clonedItemPositioning", theme: "theme", items: "items", initialItems: "initialItems", renderers: "renderers", itemStates: "itemStates", initialItemStates: "initialItemStates" }, outputs: { luzmoItemGridItemAction: "luzmoItemGridItemAction", luzmoItemGridLayoutChanged: "luzmoItemGridLayoutChanged", luzmoItemGridReady: "luzmoItemGridReady", luzmoItemGridItemStatesChanged: "luzmoItemGridItemStatesChanged" }, exportAs: ["luzmoItemGrid"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemGrid_Template(rf, ctx) { if (rf & 1) {
|
|
171
|
+
i0.ɵɵprojectionDef();
|
|
172
|
+
i0.ɵɵprojection(0);
|
|
173
|
+
} }, encapsulation: 2, changeDetection: 0 });
|
|
174
|
+
}
|
|
175
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoItemGrid, [{
|
|
176
|
+
type: Component,
|
|
177
|
+
args: [{
|
|
178
|
+
selector: 'luzmo-item-grid',
|
|
179
|
+
exportAs: 'luzmoItemGrid',
|
|
180
|
+
standalone: true,
|
|
181
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
182
|
+
template: '<ng-content />'
|
|
183
|
+
}]
|
|
184
|
+
}], () => [], { appServer: [{
|
|
185
|
+
type: Input,
|
|
186
|
+
args: [{ alias: 'appServer' }]
|
|
187
|
+
}], apiHost: [{
|
|
188
|
+
type: Input,
|
|
189
|
+
args: [{ alias: 'apiHost' }]
|
|
190
|
+
}], authKey: [{
|
|
191
|
+
type: Input,
|
|
192
|
+
args: [{ alias: 'authKey' }]
|
|
193
|
+
}], authToken: [{
|
|
194
|
+
type: Input,
|
|
195
|
+
args: [{ alias: 'authToken' }]
|
|
196
|
+
}], cacheTime: [{
|
|
197
|
+
type: Input,
|
|
198
|
+
args: [{ alias: 'cacheTime' }]
|
|
199
|
+
}], language: [{
|
|
200
|
+
type: Input,
|
|
201
|
+
args: [{ alias: 'language' }]
|
|
202
|
+
}], contentLanguage: [{
|
|
203
|
+
type: Input,
|
|
204
|
+
args: [{ alias: 'contentLanguage' }]
|
|
205
|
+
}], columns: [{
|
|
206
|
+
type: Input,
|
|
207
|
+
args: [{ alias: 'columns' }]
|
|
208
|
+
}], rowHeight: [{
|
|
209
|
+
type: Input,
|
|
210
|
+
args: [{ alias: 'rowHeight' }]
|
|
211
|
+
}], viewMode: [{
|
|
212
|
+
type: Input,
|
|
213
|
+
args: [{ alias: 'viewMode', transform: booleanAttribute }]
|
|
214
|
+
}], itemActionsDocumentPopover: [{
|
|
215
|
+
type: Input,
|
|
216
|
+
args: [{ alias: 'itemActionsDocumentPopover', transform: booleanAttribute }]
|
|
217
|
+
}], placementItemActionsMenu: [{
|
|
218
|
+
type: Input,
|
|
219
|
+
args: [{ alias: 'placementItemActionsMenu' }]
|
|
220
|
+
}], defaultItemActionsMenu: [{
|
|
221
|
+
type: Input,
|
|
222
|
+
args: [{ alias: 'defaultItemActionsMenu' }]
|
|
223
|
+
}], clonedItemPositioning: [{
|
|
224
|
+
type: Input,
|
|
225
|
+
args: [{ alias: 'clonedItemPositioning' }]
|
|
226
|
+
}], theme: [{
|
|
227
|
+
type: Input,
|
|
228
|
+
args: [{ alias: 'theme' }]
|
|
229
|
+
}], items: [{
|
|
230
|
+
type: Input,
|
|
231
|
+
args: [{ alias: 'items' }]
|
|
232
|
+
}], initialItems: [{
|
|
233
|
+
type: Input,
|
|
234
|
+
args: [{ alias: 'initialItems' }]
|
|
235
|
+
}], renderers: [{
|
|
236
|
+
type: Input,
|
|
237
|
+
args: [{ alias: 'renderers' }]
|
|
238
|
+
}], itemStates: [{
|
|
239
|
+
type: Input,
|
|
240
|
+
args: [{ alias: 'itemStates' }]
|
|
241
|
+
}], initialItemStates: [{
|
|
242
|
+
type: Input,
|
|
243
|
+
args: [{ alias: 'initialItemStates' }]
|
|
244
|
+
}], luzmoItemGridItemAction: [{ type: i0.Output, args: ["luzmoItemGridItemAction"] }], luzmoItemGridLayoutChanged: [{ type: i0.Output, args: ["luzmoItemGridLayoutChanged"] }], luzmoItemGridReady: [{ type: i0.Output, args: ["luzmoItemGridReady"] }], luzmoItemGridItemStatesChanged: [{ type: i0.Output, args: ["luzmoItemGridItemStatesChanged"] }] }); })();
|
|
245
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoItemGrid, { className: "LuzmoItemGrid", filePath: "components/item-grid.ts", lineNumber: 18 }); })();
|