@dativa-lv/lx-builders 2.0.9
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/LICENSE +18 -0
- package/README.md +3 -0
- package/dist/imgs/cover.png +0 -0
- package/dist/src/components/AppendableListSimple.vue.d.ts +29 -0
- package/dist/src/components/FilterBuilder.vue.d.ts +12 -0
- package/dist/src/components/FormBuilder.vue.d.ts +19 -0
- package/dist/src/components/FormBuilderItem.vue.d.ts +31 -0
- package/dist/src/components/FormBuilderListItem.vue.d.ts +14 -0
- package/dist/src/components/ViewBuilder.vue.d.ts +17 -0
- package/dist/src/components/ViewLayout.vue.d.ts +23 -0
- package/dist/src/components/formBuilderOtherSelect.d.ts +6 -0
- package/dist/src/components/index.d.ts +3 -0
- package/dist/src/constants.d.ts +0 -0
- package/dist/src/hooks/useLx.d.ts +25 -0
- package/dist/src/lib.d.ts +14 -0
- package/dist/src/main.d.ts +1 -0
- package/dist/src/utils/generalUtils.d.ts +11 -0
- package/dist/src/utils/global.d.ts +2 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/styles/lx-builders.css +0 -0
- package/dist/tests/filterBuilder.test.d.ts +1 -0
- package/dist/tests/formBuilder.test.d.ts +1 -0
- package/dist/wntr-lx-ui.d.ts +1 -0
- package/dist/wntr-lx-ui.esm.js +5965 -0
- package/dist/wntr-lx-ui.umd.js +1 -0
- package/package.json +81 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 lx
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
|
6
|
+
associated documentation files (the "Software"), to deal in the Software without restriction, including
|
|
7
|
+
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
|
|
9
|
+
following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial
|
|
12
|
+
portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
|
15
|
+
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
|
|
16
|
+
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
17
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
18
|
+
USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
Binary file
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<{}, {
|
|
3
|
+
$emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
4
|
+
readOnly: boolean;
|
|
5
|
+
columnCount: number;
|
|
6
|
+
kind: string;
|
|
7
|
+
requiredMode: string;
|
|
8
|
+
canAddItems: boolean;
|
|
9
|
+
texts: Record<string, any>;
|
|
10
|
+
modelValue?: unknown[];
|
|
11
|
+
$props: {
|
|
12
|
+
readonly readOnly?: boolean;
|
|
13
|
+
readonly columnCount?: number;
|
|
14
|
+
readonly kind?: string;
|
|
15
|
+
readonly requiredMode?: string;
|
|
16
|
+
readonly canAddItems?: boolean;
|
|
17
|
+
readonly texts?: Record<string, any>;
|
|
18
|
+
readonly modelValue?: unknown[];
|
|
19
|
+
};
|
|
20
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
21
|
+
customItem?(_: {
|
|
22
|
+
item: unknown;
|
|
23
|
+
index: number;
|
|
24
|
+
}): any;
|
|
25
|
+
}>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
28
|
+
$slots: S;
|
|
29
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {
|
|
3
|
+
validateModel: typeof validateModel;
|
|
4
|
+
clearValidations: typeof clearValidations;
|
|
5
|
+
$emit: (event: "filter" | "update:modelValue" | "rowActionClick" | "resetFilters" | "fastFilterClick" | "update:expanded", ...args: any[]) => void;
|
|
6
|
+
$props: {
|
|
7
|
+
readonly [x: string]: any;
|
|
8
|
+
};
|
|
9
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export default _default;
|
|
11
|
+
declare function validateModel(): any;
|
|
12
|
+
declare function clearValidations(): void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {
|
|
3
|
+
validateModel: typeof validateModel;
|
|
4
|
+
clearValidations: typeof clearValidations;
|
|
5
|
+
componentSelect: typeof componentSelect;
|
|
6
|
+
$emit: (event: "emit" | "update:modelValue" | "rowActionClick" | "filterBuilderFilter", ...args: any[]) => void;
|
|
7
|
+
$props: {
|
|
8
|
+
readonly [x: string]: any;
|
|
9
|
+
};
|
|
10
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Validates the model based on the provided rules in schema prop.
|
|
14
|
+
*
|
|
15
|
+
* @return {Array} An array of validation errors, if any.
|
|
16
|
+
*/
|
|
17
|
+
declare function validateModel(): any[];
|
|
18
|
+
declare function clearValidations(): void;
|
|
19
|
+
declare function componentSelect(row: any, name: any): string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {
|
|
3
|
+
$emit: (event: "emit" | "update:modelValue" | "rowActionClick" | "filterBuilderFilter", ...args: any[]) => void;
|
|
4
|
+
readOnly: boolean;
|
|
5
|
+
texts: Record<string, any>;
|
|
6
|
+
orderedObject: Record<string, any>;
|
|
7
|
+
name?: string;
|
|
8
|
+
modelValue?: Record<string, any>;
|
|
9
|
+
id?: string;
|
|
10
|
+
displaySchema?: Record<string, any>;
|
|
11
|
+
schema?: Record<string, any>;
|
|
12
|
+
row?: Record<string, any>;
|
|
13
|
+
vv?: Record<string, any>;
|
|
14
|
+
parentName?: string;
|
|
15
|
+
validations?: Record<string, any>;
|
|
16
|
+
$props: {
|
|
17
|
+
readonly readOnly?: boolean;
|
|
18
|
+
readonly texts?: Record<string, any>;
|
|
19
|
+
readonly orderedObject?: Record<string, any>;
|
|
20
|
+
readonly name?: string;
|
|
21
|
+
readonly modelValue?: Record<string, any>;
|
|
22
|
+
readonly id?: string;
|
|
23
|
+
readonly displaySchema?: Record<string, any>;
|
|
24
|
+
readonly schema?: Record<string, any>;
|
|
25
|
+
readonly row?: Record<string, any>;
|
|
26
|
+
readonly vv?: Record<string, any>;
|
|
27
|
+
readonly parentName?: string;
|
|
28
|
+
readonly validations?: Record<string, any>;
|
|
29
|
+
};
|
|
30
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
31
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {
|
|
3
|
+
item: Record<string, any>;
|
|
4
|
+
itemValue: Record<string, any>;
|
|
5
|
+
itemName: string;
|
|
6
|
+
useStyles: boolean;
|
|
7
|
+
$props: {
|
|
8
|
+
readonly item?: Record<string, any>;
|
|
9
|
+
readonly itemValue?: Record<string, any>;
|
|
10
|
+
readonly itemName?: string;
|
|
11
|
+
readonly useStyles?: boolean;
|
|
12
|
+
};
|
|
13
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {
|
|
3
|
+
validateModel: typeof validateModel;
|
|
4
|
+
clearValidations: typeof clearValidations;
|
|
5
|
+
$emit: (event: "emit" | "update:modelValue" | "rowActionClick", ...args: any[]) => void;
|
|
6
|
+
$props: {
|
|
7
|
+
readonly [x: string]: any;
|
|
8
|
+
};
|
|
9
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export default _default;
|
|
11
|
+
/**
|
|
12
|
+
* Validates the model based on the provided rules in schema prop.
|
|
13
|
+
*
|
|
14
|
+
* @return {Array} An array of validation errors, if any.
|
|
15
|
+
*/
|
|
16
|
+
declare function validateModel(): any[];
|
|
17
|
+
declare function clearValidations(): void;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<{}, {
|
|
3
|
+
$emit: (event: "actionClick", ...args: any[]) => void;
|
|
4
|
+
kind: string;
|
|
5
|
+
actionDefinitions: unknown[];
|
|
6
|
+
customClass: string;
|
|
7
|
+
layout: string;
|
|
8
|
+
$props: {
|
|
9
|
+
readonly kind?: string;
|
|
10
|
+
readonly actionDefinitions?: unknown[];
|
|
11
|
+
readonly customClass?: string;
|
|
12
|
+
readonly layout?: string;
|
|
13
|
+
};
|
|
14
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
15
|
+
filters?(_: {}): any;
|
|
16
|
+
default?(_: {}): any;
|
|
17
|
+
aside?(_: {}): any;
|
|
18
|
+
footer?(_: {}): any;
|
|
19
|
+
}>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
22
|
+
$slots: S;
|
|
23
|
+
});
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare function _default(): {
|
|
2
|
+
getGlobals: () => {
|
|
3
|
+
/**
|
|
4
|
+
* - The current environment
|
|
5
|
+
*/
|
|
6
|
+
environment?: string;
|
|
7
|
+
/**
|
|
8
|
+
* - The current icon set
|
|
9
|
+
*/
|
|
10
|
+
iconSet?: string;
|
|
11
|
+
/**
|
|
12
|
+
* - The current date format
|
|
13
|
+
*/
|
|
14
|
+
dateFormat?: string;
|
|
15
|
+
/**
|
|
16
|
+
* - The current date time format
|
|
17
|
+
*/
|
|
18
|
+
dateTimeFormat?: string;
|
|
19
|
+
/**
|
|
20
|
+
* - The current date time full format
|
|
21
|
+
*/
|
|
22
|
+
dateTimeFullFormat?: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
export function createLxBuilders(options: any): {
|
|
3
|
+
install(app: any): Promise<void>;
|
|
4
|
+
};
|
|
5
|
+
export { plugin as lxBuildersPlugin };
|
|
6
|
+
export * from './components';
|
|
7
|
+
export * from './utils';
|
|
8
|
+
declare namespace plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @param {import('vue').App} app
|
|
11
|
+
* @param {object} [options]
|
|
12
|
+
*/
|
|
13
|
+
function install(app: App<any>, options?: any): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export function focusNextFocusableElement(startElement: any, forward?: boolean): void;
|
|
2
|
+
export function getDisplayTexts(textsPassed: any, textsDefault: any, noCopy: any): any;
|
|
3
|
+
export function secondsToMinutesAndSeconds(seconds: any): {
|
|
4
|
+
minutes: number;
|
|
5
|
+
seconds: number;
|
|
6
|
+
};
|
|
7
|
+
export function sessionEndsInText(secondsToLive: any, texts: any): any;
|
|
8
|
+
export function isNil(v: any): boolean;
|
|
9
|
+
export function isDefined(v: any): boolean;
|
|
10
|
+
export function isEmpty(v: any): boolean;
|
|
11
|
+
export function isBoolean(v: any): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './global';
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/lib.js'
|