@luzmo/analytics-components-kit 1.0.1-alpha.25 → 1.0.1-alpha.27
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/components/{button-base-B7v4eeRh-BKKUK3x0.cjs → button-base-DSHx7XO8-Cixrr9aG.cjs} +3 -3
- package/components/{button-base-B7v4eeRh-D3-GH03o.js → button-base-DSHx7XO8-VB_BBSqq.js} +27 -27
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +7 -7
- package/components/display-settings-binning/index.cjs +1 -1
- package/components/display-settings-binning/index.js +5 -5
- package/components/display-settings-datetime/index.cjs +1 -1
- package/components/display-settings-datetime/index.js +8 -8
- package/components/display-settings-grand-totals/index.cjs +1 -1
- package/components/display-settings-grand-totals/index.js +4 -4
- package/components/display-settings-numeric/index.cjs +1 -1
- package/components/display-settings-numeric/index.js +9 -9
- package/components/display-settings-period-over-period/index.cjs +2 -2
- package/components/display-settings-period-over-period/index.js +7 -7
- package/components/draggable-data-item-level/index.cjs +4 -4
- package/components/draggable-data-item-level/index.js +4 -4
- package/components/droppable-slot/droppable-slot.d.ts +2 -2
- package/components/droppable-slot/index.cjs +1 -1
- package/components/droppable-slot/index.js +2 -2
- package/components/edit-item/edit-item.d.ts +1 -0
- package/components/edit-item/index.cjs +5 -4
- package/components/edit-item/index.js +26 -12
- package/components/edit-option-action-button-group/index.cjs +1 -1
- package/components/edit-option-action-button-group/index.js +5 -5
- package/components/{edit-option-base-qePiIQWd.js → edit-option-base-CPLI5-oZ.js} +2 -2
- package/components/{edit-option-base-Boz7TNRZ.cjs → edit-option-base-ChZvMFLr.cjs} +1 -1
- package/components/edit-option-color-picker/index.cjs +10 -10
- package/components/edit-option-color-picker/index.js +16 -16
- package/components/edit-option-multi-language-field/index.cjs +1 -1
- package/components/edit-option-multi-language-field/index.js +2 -2
- package/components/edit-option-number-field/index.cjs +1 -1
- package/components/edit-option-number-field/index.js +2 -2
- package/components/edit-option-picker/index.cjs +1 -1
- package/components/edit-option-picker/index.js +3 -3
- package/components/edit-option-position-picker/index.cjs +1 -1
- package/components/edit-option-position-picker/index.js +2 -2
- package/components/edit-option-positions-number-field/index.cjs +1 -1
- package/components/edit-option-positions-number-field/index.js +3 -3
- package/components/edit-option-radio-button-group/index.cjs +1 -1
- package/components/edit-option-radio-button-group/index.js +3 -3
- package/components/edit-option-slider/index.cjs +2 -2
- package/components/edit-option-slider/index.js +2 -2
- package/components/edit-option-switch/index.cjs +2 -2
- package/components/edit-option-switch/index.js +3 -3
- package/components/edit-option-text-field/index.cjs +1 -1
- package/components/edit-option-text-field/index.js +2 -2
- package/components/filter-data-item-picker/filter-data-item-picker.d.ts +80 -0
- package/components/filter-data-item-picker/index.d.ts +7 -0
- package/components/filter-expression-picker/filter-expression-picker.d.ts +60 -0
- package/components/filter-expression-picker/index.d.ts +7 -0
- package/components/filter-group/filter-group.d.ts +39 -0
- package/components/filter-group/index.d.ts +7 -0
- package/components/filter-item/filter-item.d.ts +64 -0
- package/components/filter-item/index.d.ts +7 -0
- package/components/filter-item/stories/dataset-data-items.const.d.ts +15 -0
- package/components/filter-parameter-picker/filter-parameter-picker.d.ts +26 -0
- package/components/filter-parameter-picker/index.d.ts +7 -0
- package/components/filter-value-picker/filter-value-picker.d.ts +65 -0
- package/components/filter-value-picker/index.d.ts +7 -0
- package/components/filter-value-picker-datetime/filter-value-picker-datetime.d.ts +43 -0
- package/components/filter-value-picker-datetime/index.d.ts +7 -0
- package/components/filter-value-picker-hierarchy/filter-value-picker-hierarchy.d.ts +71 -0
- package/components/filter-value-picker-hierarchy/index.d.ts +7 -0
- package/components/filter-value-picker-numeric/filter-value-picker-numeric.d.ts +72 -0
- package/components/filter-value-picker-numeric/index.d.ts +7 -0
- package/components/index-B6Os866t.cjs +127 -0
- package/components/index-BgR4fBCA.cjs +42 -0
- package/components/{index-CdUTqQ3L.cjs → index-BnOOdgQZ.cjs} +3 -3
- package/components/{index-BH9W0QLt-DBxyzKWK.js → index-Brne8JKA.js} +84 -51
- package/components/{index-CXIT0cYY.js → index-Bsn3jtgt.js} +2 -2
- package/components/index-CAG4u31N.cjs +117 -0
- package/components/{index-DUO13KGl.cjs → index-CDUZyVS8.cjs} +1 -1
- package/components/{index-BYfDERr7.js → index-CJtXD_RI.js} +1 -1
- package/components/{index-Dc9c_dq-.cjs → index-CMvCwUvn.cjs} +1 -1
- package/components/{index-ymMEPngt.js → index-CPdcj1Bo.js} +22 -22
- package/components/{index-ByjLd3bT.cjs → index-CT2P9cSY.cjs} +2 -2
- package/components/{index-BUSWsm5N.js → index-CTxrSfyd.js} +4 -4
- package/components/{index-B3ve6cAj.js → index-CX0ynTHR.js} +135 -101
- package/components/{index-i8GaIN7i.cjs → index-CY1zprJk.cjs} +1 -1
- package/components/{index-CfEn3fIT.js → index-CdZDTZcN.js} +1 -1
- package/components/{index-aYcu00GB.js → index-DDm8p09D.js} +1 -1
- package/components/{index-h9T5DPIm.cjs → index-DFt-aKCN.cjs} +2 -2
- package/components/{index-C8IL2IZ6.js → index-DOnHTKUs.js} +2 -2
- package/components/{index-86cIx1Ql.cjs → index-DULisWB3.cjs} +2 -2
- package/components/index-DW3LXQ5Z.js +779 -0
- package/components/{index-CdCtJpK9.js → index-Dk2zOgvd.js} +4 -4
- package/components/index-DoZEESMk.cjs +217 -0
- package/components/{index-BVX_ozT9.js → index-Dpt_Qqgy.js} +1 -1
- package/components/{index-Bt5nP_6w.cjs → index-Dv1aV79F.cjs} +1 -1
- package/components/{index-BJVxTeoi.cjs → index-E6HaIK_Z.cjs} +2 -2
- package/components/{index-DEVOZNSc.cjs → index-NFKXlEm1.cjs} +1 -1
- package/components/{index-Bee1uunR.js → index-OuAMpMdS.js} +1 -1
- package/components/{index-DVAsMiOm.js → index-nP-SGD7o.js} +3 -3
- package/components/index.cjs +1 -1
- package/components/index.js +457 -54
- package/components/{language-resolution-8yZa5r_P-FqQChUDW.cjs → language-resolution-8yZa5r_P-CYK1IIrs.cjs} +2 -2
- package/components/{language-resolution-8yZa5r_P-Bn0bYosv.js → language-resolution-8yZa5r_P-Chn3SFme.js} +7 -7
- package/components/{luzmo-icons-BE2T8vWu.js → luzmo-icons-DxZo8BWX.js} +15 -15
- package/components/slot-menu/index.cjs +1 -1
- package/components/slot-menu/index.js +2 -2
- package/components/slot-menu-list/index.js +1 -1
- package/components/text-field-BTnBJoP9-Cwm3XQ88.cjs +147 -0
- package/components/text-field-BTnBJoP9-jo797Hka.js +430 -0
- package/components/utils.cjs +1 -1
- package/components/utils.js +472 -54
- package/custom-elements.json +4 -4
- package/index.d.ts +1 -0
- package/item-definitions/marker-map/marker-map-options.config.d.ts +1 -1
- package/package.json +1 -1
- package/utils/data-broker/index.d.ts +173 -0
- package/utils/data-item-types/calculate-data-item-icon.d.ts +3 -0
- package/utils/expressions/index.d.ts +13 -0
- package/utils/index.d.ts +1 -0
- package/utils/themes/index.d.ts +507 -0
- package/components/index-BH9W0QLt-Cy2sUVJ_.cjs +0 -95
- package/components/index-D5LI0odG.js +0 -44
- package/components/index-DM_2d78G.js +0 -744
- package/components/index-DrLPC6eG.cjs +0 -185
- package/components/index-iYpAy-Kg.cjs +0 -95
- package/components/index-w3j1USKK.cjs +0 -36
- package/components/index-zuArOtOt.cjs +0 -42
- package/components/text-field-CvKSS59x-Dn0_1HO7.js +0 -412
- package/components/text-field-CvKSS59x-E9LQElL4.cjs +0 -131
@@ -0,0 +1,80 @@
|
|
1
|
+
import '@luzmo/lucero/field-label';
|
2
|
+
import '@luzmo/lucero/icon';
|
3
|
+
import '@luzmo/lucero/menu';
|
4
|
+
import '@luzmo/lucero/picker';
|
5
|
+
import { CSSResultArray, PropertyValues, TemplateResult } from 'lit';
|
6
|
+
import { LuzmoElement } from '@luzmo/lucero/utils';
|
7
|
+
declare const LuzmoFilterDataItemPicker_base: typeof LuzmoElement & {
|
8
|
+
new (...args: any[]): import("@luzmo/lucero").SizedElementInterface;
|
9
|
+
prototype: import("@luzmo/lucero").SizedElementInterface;
|
10
|
+
};
|
11
|
+
/**
|
12
|
+
* @element luzmo-filter-data-item-picker
|
13
|
+
*/
|
14
|
+
export declare class LuzmoFilterDataItemPicker extends LuzmoFilterDataItemPicker_base {
|
15
|
+
static get styles(): CSSResultArray;
|
16
|
+
/**
|
17
|
+
* The language of the settings interface
|
18
|
+
*/
|
19
|
+
language: string;
|
20
|
+
/**
|
21
|
+
* The language to use for locale-aware formatting and labels
|
22
|
+
*/
|
23
|
+
contentLanguage: string;
|
24
|
+
/**
|
25
|
+
* Whether the picker has a label
|
26
|
+
*/
|
27
|
+
hasLabel: boolean;
|
28
|
+
/**
|
29
|
+
* The label for the picker, if hasLabel is true
|
30
|
+
*/
|
31
|
+
label?: string;
|
32
|
+
/**
|
33
|
+
* Where to show icons
|
34
|
+
*/
|
35
|
+
icons?: 'none' | 'only-menu' | 'all';
|
36
|
+
/**
|
37
|
+
* Allow no selection. If true, the picker will not show a value when no item is selected. Else if no value is provided it will pick the first item.
|
38
|
+
*/
|
39
|
+
allowEmpty: boolean;
|
40
|
+
/**
|
41
|
+
* The placeholder text for the picker is no value selected. If allowEmpty is true, this will be used as the label.
|
42
|
+
*/
|
43
|
+
placeholder: string;
|
44
|
+
/**
|
45
|
+
* The dataItemId to display in the picker. If not provided, the first item will be displayed.
|
46
|
+
*/
|
47
|
+
dataItemId: string;
|
48
|
+
/**
|
49
|
+
* The datasets and their dataItems to display
|
50
|
+
*/
|
51
|
+
datasetsDataItems: {
|
52
|
+
id: string;
|
53
|
+
name: {
|
54
|
+
[key: string]: string;
|
55
|
+
};
|
56
|
+
columns: {
|
57
|
+
id: string;
|
58
|
+
name?: {
|
59
|
+
[key: string]: string;
|
60
|
+
};
|
61
|
+
format?: string;
|
62
|
+
type?: string;
|
63
|
+
subtype?: string;
|
64
|
+
description?: {
|
65
|
+
[key: string]: string;
|
66
|
+
};
|
67
|
+
}[];
|
68
|
+
formulas: any[];
|
69
|
+
}[];
|
70
|
+
/**
|
71
|
+
* The datasetId to filter on
|
72
|
+
*/
|
73
|
+
filterOnDatasetId?: string;
|
74
|
+
private _dataItemSelected;
|
75
|
+
private _sendChangeEvent;
|
76
|
+
setDataItem(event: CustomEvent): void;
|
77
|
+
protected willUpdate(changedProperties: PropertyValues): void;
|
78
|
+
protected render(): TemplateResult;
|
79
|
+
}
|
80
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { LuzmoFilterDataItemPicker } from './filter-data-item-picker';
|
2
|
+
declare global {
|
3
|
+
interface HTMLElementTagNameMap {
|
4
|
+
'luzmo-filter-data-item-picker': LuzmoFilterDataItemPicker;
|
5
|
+
}
|
6
|
+
}
|
7
|
+
export { LuzmoFilterDataItemPicker } from './filter-data-item-picker';
|
@@ -0,0 +1,60 @@
|
|
1
|
+
import '@luzmo/lucero/field-label';
|
2
|
+
import '@luzmo/lucero/menu';
|
3
|
+
import '@luzmo/lucero/picker';
|
4
|
+
import { CSSResultArray, PropertyValues, TemplateResult } from 'lit';
|
5
|
+
import { ColumnSubtype, ColumnType } from '@luzmo/dashboard-contents-types';
|
6
|
+
import { LuzmoElement } from '@luzmo/lucero/utils';
|
7
|
+
import { FilterExpressionKey } from './../../utils/expressions';
|
8
|
+
declare const LuzmoFilterExpressionPicker_base: typeof LuzmoElement & {
|
9
|
+
new (...args: any[]): import("@luzmo/lucero").SizedElementInterface;
|
10
|
+
prototype: import("@luzmo/lucero").SizedElementInterface;
|
11
|
+
};
|
12
|
+
/**
|
13
|
+
* @element luzmo-filter-expression-picker
|
14
|
+
*/
|
15
|
+
export declare class LuzmoFilterExpressionPicker extends LuzmoFilterExpressionPicker_base {
|
16
|
+
static get styles(): CSSResultArray;
|
17
|
+
/**
|
18
|
+
* The language of the settings interface
|
19
|
+
*/
|
20
|
+
language: string;
|
21
|
+
/**
|
22
|
+
* The language of the settings interface
|
23
|
+
*/
|
24
|
+
expression?: FilterExpressionKey;
|
25
|
+
/**
|
26
|
+
* Whether the picker has a label
|
27
|
+
*/
|
28
|
+
hasLabel: boolean;
|
29
|
+
/**
|
30
|
+
* The label for the picker, if hasLabel is true
|
31
|
+
*/
|
32
|
+
label?: string;
|
33
|
+
/**
|
34
|
+
* Allow no selection. If true, the picker will not show a value when no item is selected. Else if no value is provided it will pick the first item.
|
35
|
+
*/
|
36
|
+
allowEmpty: boolean;
|
37
|
+
/**
|
38
|
+
* The placeholder text for the picker is no value selected. If allowEmpty is true, this will be used as the label.
|
39
|
+
*/
|
40
|
+
placeholder: string;
|
41
|
+
/**
|
42
|
+
* The type of the column
|
43
|
+
*/
|
44
|
+
type?: ColumnType;
|
45
|
+
/**
|
46
|
+
* The subtype of the column
|
47
|
+
*/
|
48
|
+
subtype?: ColumnSubtype;
|
49
|
+
/**
|
50
|
+
* Whether the column is a formula
|
51
|
+
*/
|
52
|
+
isFormula: boolean;
|
53
|
+
private _sendChangeEvent;
|
54
|
+
setExpression(event: CustomEvent): void;
|
55
|
+
protected willUpdate(changedProperties: PropertyValues): void;
|
56
|
+
private calculateShownExpression;
|
57
|
+
private renderExpressionItems;
|
58
|
+
protected render(): TemplateResult;
|
59
|
+
}
|
60
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { LuzmoFilterExpressionPicker } from './filter-expression-picker';
|
2
|
+
declare global {
|
3
|
+
interface HTMLElementTagNameMap {
|
4
|
+
'luzmo-filter-expression-picker': LuzmoFilterExpressionPicker;
|
5
|
+
}
|
6
|
+
}
|
7
|
+
export { LuzmoFilterExpressionPicker } from './filter-expression-picker';
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { LuzmoElement } from '@luzmo/lucero/utils';
|
2
|
+
import { CSSResultArray, PropertyValues, TemplateResult } from 'lit';
|
3
|
+
declare const LuzmoFilterGroup_base: typeof LuzmoElement & {
|
4
|
+
new (...args: any[]): import("@luzmo/lucero").SizedElementInterface;
|
5
|
+
prototype: import("@luzmo/lucero").SizedElementInterface;
|
6
|
+
};
|
7
|
+
/**
|
8
|
+
* @element luzmo-filter-group
|
9
|
+
*/
|
10
|
+
export declare class LuzmoFilterGroup extends LuzmoFilterGroup_base {
|
11
|
+
static get styles(): CSSResultArray;
|
12
|
+
/**
|
13
|
+
* The language of the settings interface
|
14
|
+
*/
|
15
|
+
language: string;
|
16
|
+
/**
|
17
|
+
* The language to use for locale-aware formatting and labels
|
18
|
+
*/
|
19
|
+
contentLanguage: string;
|
20
|
+
/**
|
21
|
+
* The filters to display in the group
|
22
|
+
*/
|
23
|
+
filters: any[];
|
24
|
+
private _sendChangeEvent;
|
25
|
+
private generateNewGroup;
|
26
|
+
private generateNewFilter;
|
27
|
+
private toggleCondition;
|
28
|
+
private addFilter;
|
29
|
+
private removeFilter;
|
30
|
+
private updateFilter;
|
31
|
+
private addSuperGroup;
|
32
|
+
private addGroup;
|
33
|
+
private addSubGroup;
|
34
|
+
private removeSubGroup;
|
35
|
+
private updateSubGroup;
|
36
|
+
protected willUpdate(changedProperties: PropertyValues): void;
|
37
|
+
protected render(): TemplateResult;
|
38
|
+
}
|
39
|
+
export {};
|
@@ -0,0 +1,64 @@
|
|
1
|
+
import { CSSResultArray, PropertyValues, TemplateResult } from 'lit';
|
2
|
+
import { LuzmoElement } from '@luzmo/lucero/utils';
|
3
|
+
import './../filter-data-item-picker';
|
4
|
+
import './../filter-expression-picker';
|
5
|
+
import './../filter-value-picker';
|
6
|
+
declare const LuzmoFilterItem_base: typeof LuzmoElement & {
|
7
|
+
new (...args: any[]): import("@luzmo/lucero").SizedElementInterface;
|
8
|
+
prototype: import("@luzmo/lucero").SizedElementInterface;
|
9
|
+
};
|
10
|
+
/**
|
11
|
+
* @element luzmo-filter-item
|
12
|
+
*/
|
13
|
+
export declare class LuzmoFilterItem extends LuzmoFilterItem_base {
|
14
|
+
static get styles(): CSSResultArray;
|
15
|
+
/**
|
16
|
+
* The API URL of the databroker
|
17
|
+
* @default https://api.luzmo.com
|
18
|
+
* @description The URL of the databroker API
|
19
|
+
*/
|
20
|
+
apiUrl?: string;
|
21
|
+
/**
|
22
|
+
* The auth key of the databroker
|
23
|
+
*/
|
24
|
+
authKey?: string;
|
25
|
+
/**
|
26
|
+
* The auth token of the databroker
|
27
|
+
*/
|
28
|
+
authToken?: string;
|
29
|
+
/**
|
30
|
+
* The cache time of the databroker
|
31
|
+
* @default 30000
|
32
|
+
* @description The time to cache the data in milliseconds
|
33
|
+
*/
|
34
|
+
cacheTime?: number;
|
35
|
+
/**
|
36
|
+
* The language of the settings interface
|
37
|
+
*/
|
38
|
+
language: string;
|
39
|
+
/**
|
40
|
+
* The language of the content
|
41
|
+
*/
|
42
|
+
contentLanguage: string;
|
43
|
+
/**
|
44
|
+
* The time zone to use for the date picker
|
45
|
+
*/
|
46
|
+
timeZone?: string;
|
47
|
+
/**
|
48
|
+
* The filter to display
|
49
|
+
*/
|
50
|
+
filter?: any;
|
51
|
+
private _type?;
|
52
|
+
private _subType?;
|
53
|
+
private _isFormula?;
|
54
|
+
protected willUpdate(changedProperties: PropertyValues): void;
|
55
|
+
private _sendChangeEvent;
|
56
|
+
private setFilterDataItem;
|
57
|
+
private setFilterExpression;
|
58
|
+
private setFilterValue;
|
59
|
+
protected renderDataItemPicker(): TemplateResult<1>;
|
60
|
+
protected renderExpressionPicker(): TemplateResult<1>;
|
61
|
+
protected renderValuePicker(): TemplateResult<1>;
|
62
|
+
protected render(): TemplateResult;
|
63
|
+
}
|
64
|
+
export {};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export declare const ExampleFilter: {
|
2
|
+
expression: string;
|
3
|
+
parameters: (string | {
|
4
|
+
column_id: string;
|
5
|
+
dataset_id: string;
|
6
|
+
})[];
|
7
|
+
};
|
8
|
+
export declare const ExampleDatasetsDataItems: {
|
9
|
+
id: string;
|
10
|
+
name: {
|
11
|
+
en: string;
|
12
|
+
};
|
13
|
+
columns?: any[];
|
14
|
+
formulas?: any[];
|
15
|
+
}[];
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import '@luzmo/lucero/picker';
|
2
|
+
import { CSSResultArray, PropertyValues, TemplateResult } from 'lit';
|
3
|
+
import { LuzmoElement } from '@luzmo/lucero/utils';
|
4
|
+
declare const LuzmoFilterParameterPicker_base: typeof LuzmoElement & {
|
5
|
+
new (...args: any[]): import("@luzmo/lucero").SizedElementInterface;
|
6
|
+
prototype: import("@luzmo/lucero").SizedElementInterface;
|
7
|
+
};
|
8
|
+
/**
|
9
|
+
* @element luzmo-filter-parameter-picker
|
10
|
+
*/
|
11
|
+
export declare class LuzmoFilterParameterPicker extends LuzmoFilterParameterPicker_base {
|
12
|
+
static get styles(): CSSResultArray;
|
13
|
+
/**
|
14
|
+
* The language of the settings interface
|
15
|
+
*/
|
16
|
+
language: string;
|
17
|
+
/**
|
18
|
+
* The language to use for locale-aware formatting and labels
|
19
|
+
*/
|
20
|
+
contentLanguage: string;
|
21
|
+
_expressionSelected: any;
|
22
|
+
private _sendChangeEvent;
|
23
|
+
protected willUpdate(changedProperties: PropertyValues): void;
|
24
|
+
protected render(): TemplateResult;
|
25
|
+
}
|
26
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { LuzmoFilterParameterPicker } from './filter-parameter-picker';
|
2
|
+
declare global {
|
3
|
+
interface HTMLElementTagNameMap {
|
4
|
+
'luzmo-filter-parameter-picker': LuzmoFilterParameterPicker;
|
5
|
+
}
|
6
|
+
}
|
7
|
+
export { LuzmoFilterParameterPicker } from './filter-parameter-picker';
|
@@ -0,0 +1,65 @@
|
|
1
|
+
import '@luzmo/lucero/picker';
|
2
|
+
import { CSSResultArray, PropertyValues, TemplateResult } from 'lit';
|
3
|
+
import { LuzmoElement } from '@luzmo/lucero/utils';
|
4
|
+
import './../filter-value-picker-datetime';
|
5
|
+
import './../filter-value-picker-hierarchy';
|
6
|
+
import './../filter-value-picker-numeric';
|
7
|
+
declare const LuzmoFilterValuePicker_base: typeof LuzmoElement & {
|
8
|
+
new (...args: any[]): import("@luzmo/lucero").SizedElementInterface;
|
9
|
+
prototype: import("@luzmo/lucero").SizedElementInterface;
|
10
|
+
};
|
11
|
+
/**
|
12
|
+
* @element luzmo-filter-value-picker
|
13
|
+
*/
|
14
|
+
export declare class LuzmoFilterValuePicker extends LuzmoFilterValuePicker_base {
|
15
|
+
static get styles(): CSSResultArray;
|
16
|
+
/**
|
17
|
+
* The API URL of the databroker
|
18
|
+
* @default https://api.luzmo.com
|
19
|
+
* @description The URL of the databroker API
|
20
|
+
*/
|
21
|
+
apiUrl?: string;
|
22
|
+
/**
|
23
|
+
* The auth key of the databroker
|
24
|
+
*/
|
25
|
+
authKey?: string;
|
26
|
+
/**
|
27
|
+
* The auth token of the databroker
|
28
|
+
*/
|
29
|
+
authToken?: string;
|
30
|
+
/**
|
31
|
+
* The cache time of the databroker
|
32
|
+
* @default 30000
|
33
|
+
* @description The time to cache the data in milliseconds
|
34
|
+
*/
|
35
|
+
cacheTime?: number;
|
36
|
+
/**
|
37
|
+
* The language of the settings interface
|
38
|
+
*/
|
39
|
+
language: string;
|
40
|
+
/**
|
41
|
+
* The language to use for locale-aware formatting and labels
|
42
|
+
*/
|
43
|
+
contentLanguage: string;
|
44
|
+
/**
|
45
|
+
* The time zone to use for the date picker
|
46
|
+
*/
|
47
|
+
timeZone?: string;
|
48
|
+
/**
|
49
|
+
* The type value picker to render
|
50
|
+
*/
|
51
|
+
valueType?: 'hierarchy' | 'numeric' | 'datetime';
|
52
|
+
/**
|
53
|
+
* The language to use for locale-aware formatting and labels
|
54
|
+
*/
|
55
|
+
filter?: any;
|
56
|
+
private _expressionsWithoutValuePicker;
|
57
|
+
private _sendChangeEvent;
|
58
|
+
private setFilterValue;
|
59
|
+
private renderNumericValuePicker;
|
60
|
+
private renderHierarchyValuePicker;
|
61
|
+
private renderDateTimeValuePicker;
|
62
|
+
protected willUpdate(changedProperties: PropertyValues): void;
|
63
|
+
protected render(): TemplateResult;
|
64
|
+
}
|
65
|
+
export {};
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import '@luzmo/lucero/date-time-picker';
|
2
|
+
import '@luzmo/lucero/number-field';
|
3
|
+
import '@luzmo/lucero/picker';
|
4
|
+
import '@luzmo/lucero/text-field';
|
5
|
+
import { CSSResultArray, PropertyValues, TemplateResult } from 'lit';
|
6
|
+
import { LuzmoElement } from '@luzmo/lucero/utils';
|
7
|
+
declare const LuzmoFilterValuePickerDatetime_base: typeof LuzmoElement & {
|
8
|
+
new (...args: any[]): import("@luzmo/lucero").SizedElementInterface;
|
9
|
+
prototype: import("@luzmo/lucero").SizedElementInterface;
|
10
|
+
};
|
11
|
+
/**
|
12
|
+
* @element luzmo-filter-value-picker-datetime
|
13
|
+
*/
|
14
|
+
export declare class LuzmoFilterValuePickerDatetime extends LuzmoFilterValuePickerDatetime_base {
|
15
|
+
static get styles(): CSSResultArray;
|
16
|
+
/**
|
17
|
+
* The language of the settings interface
|
18
|
+
*/
|
19
|
+
language: string;
|
20
|
+
/**
|
21
|
+
* The language to use for locale-aware formatting and column/formula labels
|
22
|
+
*/
|
23
|
+
contentLanguage: string;
|
24
|
+
/**
|
25
|
+
* The time zone to use for the date picker
|
26
|
+
*/
|
27
|
+
timeZone?: string;
|
28
|
+
/**
|
29
|
+
* The filter used to retrieve the value
|
30
|
+
*/
|
31
|
+
filter?: any;
|
32
|
+
private _value;
|
33
|
+
protected willUpdate(changedProperties: PropertyValues): void;
|
34
|
+
private _sendChangeEvent;
|
35
|
+
setDate(event: CustomEvent): void;
|
36
|
+
setUnit(event: CustomEvent): void;
|
37
|
+
setQuantity(event: CustomEvent): void;
|
38
|
+
private renderDatePicker;
|
39
|
+
private renderQuantityField;
|
40
|
+
private renderUnitPicker;
|
41
|
+
protected render(): TemplateResult;
|
42
|
+
}
|
43
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { LuzmoFilterValuePickerDatetime } from './filter-value-picker-datetime';
|
2
|
+
declare global {
|
3
|
+
interface HTMLElementTagNameMap {
|
4
|
+
'luzmo-filter-value-picker-datetime': LuzmoFilterValuePickerDatetime;
|
5
|
+
}
|
6
|
+
}
|
7
|
+
export { LuzmoFilterValuePickerDatetime } from './filter-value-picker-datetime';
|
@@ -0,0 +1,71 @@
|
|
1
|
+
import '@luzmo/lucero/multi-picker';
|
2
|
+
import '@luzmo/lucero/text-field';
|
3
|
+
import { CSSResultArray, PropertyValues, TemplateResult } from 'lit';
|
4
|
+
import { LuzmoElement } from '@luzmo/lucero/utils';
|
5
|
+
declare const LuzmoFilterValuePickerHierarchy_base: typeof LuzmoElement & {
|
6
|
+
new (...args: any[]): import("@luzmo/lucero").SizedElementInterface;
|
7
|
+
prototype: import("@luzmo/lucero").SizedElementInterface;
|
8
|
+
};
|
9
|
+
/**
|
10
|
+
* @element luzmo-filter-value-picker-hierarchy
|
11
|
+
*/
|
12
|
+
export declare class LuzmoFilterValuePickerHierarchy extends LuzmoFilterValuePickerHierarchy_base {
|
13
|
+
static get styles(): CSSResultArray;
|
14
|
+
/**
|
15
|
+
* The API URL of the databroker
|
16
|
+
* @default https://api.luzmo.com
|
17
|
+
* @description The URL of the databroker API
|
18
|
+
*/
|
19
|
+
apiUrl?: string;
|
20
|
+
/**
|
21
|
+
* The auth key of the databroker
|
22
|
+
*/
|
23
|
+
authKey?: string;
|
24
|
+
/**
|
25
|
+
* The auth token of the databroker
|
26
|
+
*/
|
27
|
+
authToken?: string;
|
28
|
+
/**
|
29
|
+
* The cache time of the databroker
|
30
|
+
* @default 30000
|
31
|
+
* @description The time to cache the data in milliseconds
|
32
|
+
*/
|
33
|
+
cacheTime?: number;
|
34
|
+
/**
|
35
|
+
* The language of the settings interface
|
36
|
+
*/
|
37
|
+
language: string;
|
38
|
+
/**
|
39
|
+
* The language to use for locale-aware formatting and labels
|
40
|
+
*/
|
41
|
+
contentLanguage: string;
|
42
|
+
/**
|
43
|
+
* The filter used to retrieve the value
|
44
|
+
*/
|
45
|
+
filter?: any;
|
46
|
+
/**
|
47
|
+
* Stores the hierarchy values fetched from the databroker
|
48
|
+
*/
|
49
|
+
private _hierarchyValues;
|
50
|
+
/**
|
51
|
+
* Loading state for hierarchy values
|
52
|
+
*/
|
53
|
+
private _loading;
|
54
|
+
/**
|
55
|
+
* Error state for hierarchy values fetching
|
56
|
+
*/
|
57
|
+
private _error;
|
58
|
+
private _value;
|
59
|
+
connectedCallback(): void;
|
60
|
+
protected willUpdate(changedProperties: PropertyValues): void;
|
61
|
+
/**
|
62
|
+
* Fetches hierarchy values from the databroker
|
63
|
+
*/
|
64
|
+
private _fetchHierarchyValues;
|
65
|
+
private _sendChangeEvent;
|
66
|
+
private setHierarchy;
|
67
|
+
private renderTextField;
|
68
|
+
private renderHierarchyPicker;
|
69
|
+
protected render(): TemplateResult;
|
70
|
+
}
|
71
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { LuzmoFilterValuePickerHierarchy } from './filter-value-picker-hierarchy';
|
2
|
+
declare global {
|
3
|
+
interface HTMLElementTagNameMap {
|
4
|
+
'luzmo-filter-value-picker-hierarchy': LuzmoFilterValuePickerHierarchy;
|
5
|
+
}
|
6
|
+
}
|
7
|
+
export { LuzmoFilterValuePickerHierarchy } from './filter-value-picker-hierarchy';
|
@@ -0,0 +1,72 @@
|
|
1
|
+
import '@luzmo/lucero/number-field';
|
2
|
+
import '@luzmo/lucero/picker';
|
3
|
+
import { CSSResultArray, PropertyValues, TemplateResult } from 'lit';
|
4
|
+
import { LuzmoElement } from '@luzmo/lucero/utils';
|
5
|
+
declare const LuzmoFilterValuePickerNumeric_base: typeof LuzmoElement & {
|
6
|
+
new (...args: any[]): import("@luzmo/lucero").SizedElementInterface;
|
7
|
+
prototype: import("@luzmo/lucero").SizedElementInterface;
|
8
|
+
};
|
9
|
+
/**
|
10
|
+
* @element luzmo-filter-value-picker-numeric
|
11
|
+
*/
|
12
|
+
export declare class LuzmoFilterValuePickerNumeric extends LuzmoFilterValuePickerNumeric_base {
|
13
|
+
static get styles(): CSSResultArray;
|
14
|
+
/**
|
15
|
+
* The API URL of the databroker
|
16
|
+
* @default https://api.luzmo.com
|
17
|
+
* @description The URL of the databroker API
|
18
|
+
*/
|
19
|
+
apiUrl?: string;
|
20
|
+
/**
|
21
|
+
* The auth key of the databroker
|
22
|
+
*/
|
23
|
+
authKey?: string;
|
24
|
+
/**
|
25
|
+
* The auth token of the databroker
|
26
|
+
*/
|
27
|
+
authToken?: string;
|
28
|
+
/**
|
29
|
+
* The cache time of the databroker
|
30
|
+
* @default 30000
|
31
|
+
* @description The time to cache the data in milliseconds
|
32
|
+
*/
|
33
|
+
cacheTime?: number;
|
34
|
+
/**
|
35
|
+
* The language of the settings interface
|
36
|
+
*/
|
37
|
+
language: string;
|
38
|
+
/**
|
39
|
+
* The language to use for locale-aware formatting and labels
|
40
|
+
*/
|
41
|
+
contentLanguage: string;
|
42
|
+
/**
|
43
|
+
* The filter used to retrieve the value
|
44
|
+
*/
|
45
|
+
filter?: any;
|
46
|
+
/**
|
47
|
+
* Stores the hierarchy values fetched from the databroker
|
48
|
+
*/
|
49
|
+
private _numericValues;
|
50
|
+
/**
|
51
|
+
* Loading state for hierarchy values
|
52
|
+
*/
|
53
|
+
private _loading;
|
54
|
+
/**
|
55
|
+
* Error state for hierarchy values fetching
|
56
|
+
*/
|
57
|
+
private _error;
|
58
|
+
private _value;
|
59
|
+
connectedCallback(): void;
|
60
|
+
protected willUpdate(changedProperties: PropertyValues): void;
|
61
|
+
/**
|
62
|
+
* Fetches numeric values from the databroker
|
63
|
+
*/
|
64
|
+
private _fetchNumericValues;
|
65
|
+
private _sendChangeEvent;
|
66
|
+
private setValue;
|
67
|
+
private selectValue;
|
68
|
+
private renderNumberField;
|
69
|
+
private renderValuePicker;
|
70
|
+
protected render(): TemplateResult;
|
71
|
+
}
|
72
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { LuzmoFilterValuePickerNumeric } from './filter-value-picker-numeric';
|
2
|
+
declare global {
|
3
|
+
interface HTMLElementTagNameMap {
|
4
|
+
'luzmo-filter-value-picker-numeric': LuzmoFilterValuePickerNumeric;
|
5
|
+
}
|
6
|
+
}
|
7
|
+
export { LuzmoFilterValuePickerNumeric } from './filter-value-picker-numeric';
|