@fctc/edu-logic-lib 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1076 -23
- package/dist/index.d.ts +1076 -23
- package/dist/index.js +4 -618
- package/dist/index.mjs +3 -572
- package/package.json +1 -1
- package/dist/base-model-type-DvO53Lwi.d.mts +0 -7
- package/dist/base-model-type-DvO53Lwi.d.ts +0 -7
- package/dist/config.d.mts +0 -15
- package/dist/config.d.ts +0 -15
- package/dist/config.js +0 -262
- package/dist/config.mjs +0 -256
- package/dist/constants.d.mts +0 -120
- package/dist/constants.d.ts +0 -120
- package/dist/constants.js +0 -154
- package/dist/constants.mjs +0 -141
- package/dist/context-type-D5XefoL-.d.mts +0 -8
- package/dist/context-type-D5XefoL-.d.ts +0 -8
- package/dist/environment.d.mts +0 -37
- package/dist/environment.d.ts +0 -37
- package/dist/environment.js +0 -849
- package/dist/environment.mjs +0 -841
- package/dist/hooks.d.mts +0 -218
- package/dist/hooks.d.ts +0 -218
- package/dist/hooks.js +0 -4865
- package/dist/hooks.mjs +0 -4814
- package/dist/index-C_nK1Mii.d.mts +0 -19
- package/dist/index-C_nK1Mii.d.ts +0 -19
- package/dist/models.d.mts +0 -35
- package/dist/models.d.ts +0 -35
- package/dist/models.js +0 -3225
- package/dist/models.mjs +0 -3217
- package/dist/provider.d.mts +0 -16
- package/dist/provider.d.ts +0 -16
- package/dist/provider.js +0 -3232
- package/dist/provider.mjs +0 -3224
- package/dist/services.d.mts +0 -160
- package/dist/services.d.ts +0 -160
- package/dist/services.js +0 -4045
- package/dist/services.mjs +0 -4032
- package/dist/store.d.mts +0 -505
- package/dist/store.d.ts +0 -505
- package/dist/store.js +0 -582
- package/dist/store.mjs +0 -519
- package/dist/types.d.mts +0 -12
- package/dist/types.d.ts +0 -12
- package/dist/types.js +0 -2
- package/dist/types.mjs +0 -1
- package/dist/use-get-selection-DFh6sc49.d.mts +0 -26
- package/dist/use-get-selection-DFh6sc49.d.ts +0 -26
- package/dist/utils.d.mts +0 -52
- package/dist/utils.d.ts +0 -52
- package/dist/utils.js +0 -2360
- package/dist/utils.mjs +0 -2344
- package/dist/view-type-BTzRpkT7.d.mts +0 -106
- package/dist/view-type-BTzRpkT7.d.ts +0 -106
package/dist/utils.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { C as Context } from './context-type-D5XefoL-.js';
|
|
2
|
-
|
|
3
|
-
type AST = {
|
|
4
|
-
type: number;
|
|
5
|
-
value: any;
|
|
6
|
-
};
|
|
7
|
-
type Condition = [string | 0 | 1, string, any];
|
|
8
|
-
type DomainListRepr = ('&' | '|' | '!' | Condition)[];
|
|
9
|
-
type DomainRepr = DomainListRepr | string | Domain;
|
|
10
|
-
declare class Domain {
|
|
11
|
-
ast: AST;
|
|
12
|
-
static TRUE: Domain;
|
|
13
|
-
static FALSE: Domain;
|
|
14
|
-
static combine(domains: DomainRepr[], operator: 'AND' | 'OR'): Domain;
|
|
15
|
-
static and(domains: DomainRepr[]): Domain;
|
|
16
|
-
static or(domains: DomainRepr[]): Domain;
|
|
17
|
-
static not(domain: DomainRepr): Domain;
|
|
18
|
-
static removeDomainLeaves(domain: DomainRepr, keysToRemove: string[]): Domain;
|
|
19
|
-
constructor(descr?: DomainRepr);
|
|
20
|
-
contains(record: any): boolean;
|
|
21
|
-
toString(): string;
|
|
22
|
-
toList(context: Record<string, any>): DomainListRepr;
|
|
23
|
-
toJson(): DomainListRepr | string;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
declare const evalJSONContext: (_context: any, context?: {}) => Context | null;
|
|
27
|
-
declare const evalJSONDomain: (domain: any, context: any) => any;
|
|
28
|
-
declare const formatSortingString: (input: string | null | undefined) => string | null;
|
|
29
|
-
declare const domainHelper: {
|
|
30
|
-
checkDomain: (context: any, domain: any) => boolean;
|
|
31
|
-
matchDomains: (context: any, domains: any) => boolean;
|
|
32
|
-
Domain: typeof Domain;
|
|
33
|
-
};
|
|
34
|
-
declare const toQueryString: (params: Record<string, string | number | boolean>) => string;
|
|
35
|
-
declare const stringToColor: (name: string, id: number) => string;
|
|
36
|
-
declare const getFieldsOnChange: (fields: any) => any;
|
|
37
|
-
declare const formatUrlPath: ({ viewType, aid, model, id, actionPath, }: {
|
|
38
|
-
viewType: "list" | "form" | "kanban" | any;
|
|
39
|
-
actionPath: string;
|
|
40
|
-
aid: string | number;
|
|
41
|
-
model: string;
|
|
42
|
-
id?: string | number;
|
|
43
|
-
}) => string;
|
|
44
|
-
declare const removeUndefinedFields: <T extends Record<string, any>>(obj: T) => Partial<T>;
|
|
45
|
-
declare const useTabModel: (viewData: any, onchangeData: any) => any;
|
|
46
|
-
declare const isBase64File: (str: any) => boolean;
|
|
47
|
-
declare const isBase64Image: (str: any) => boolean;
|
|
48
|
-
declare const checkIsImageLink: (url: any) => boolean;
|
|
49
|
-
declare const formatFileSize: (size: any) => string;
|
|
50
|
-
declare const getSubdomain: (url?: string) => string | null;
|
|
51
|
-
|
|
52
|
-
export { checkIsImageLink, domainHelper, evalJSONContext, evalJSONDomain, formatFileSize, formatSortingString, formatUrlPath, getFieldsOnChange, getSubdomain, isBase64File, isBase64Image, removeUndefinedFields, stringToColor, toQueryString, useTabModel };
|