@ni/ok-components 1.12.3 → 1.13.0
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/all-components-bundle.js +2379 -1022
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +4708 -4357
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/custom-elements.json +216 -0
- package/dist/custom-elements.md +43 -0
- package/dist/esm/fv/all-fv.d.ts +1 -0
- package/dist/esm/fv/all-fv.js +1 -0
- package/dist/esm/fv/all-fv.js.map +1 -1
- package/dist/esm/fv/filter-bar/index.d.ts +30 -0
- package/dist/esm/fv/filter-bar/index.js +120 -0
- package/dist/esm/fv/filter-bar/index.js.map +1 -0
- package/dist/esm/fv/filter-bar/styles.d.ts +1 -0
- package/dist/esm/fv/filter-bar/styles.js +119 -0
- package/dist/esm/fv/filter-bar/styles.js.map +1 -0
- package/dist/esm/fv/filter-bar/template.d.ts +2 -0
- package/dist/esm/fv/filter-bar/template.js +34 -0
- package/dist/esm/fv/filter-bar/template.js.map +1 -0
- package/dist/esm/fv/filter-bar/types.d.ts +53 -0
- package/dist/esm/fv/filter-bar/types.js +2 -0
- package/dist/esm/fv/filter-bar/types.js.map +1 -0
- package/package.json +5 -5
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/** Query document shape shared with FvQueryBuilder. */
|
|
2
|
+
export interface FvFilterBarPredicate {
|
|
3
|
+
readonly kind: 'predicate';
|
|
4
|
+
readonly fieldId: string;
|
|
5
|
+
readonly operatorId: string;
|
|
6
|
+
readonly value?: unknown;
|
|
7
|
+
}
|
|
8
|
+
export interface FvFilterBarGroup {
|
|
9
|
+
readonly kind: 'group';
|
|
10
|
+
readonly combinator: 'and' | 'or';
|
|
11
|
+
readonly children: readonly FvFilterBarQueryNode[];
|
|
12
|
+
}
|
|
13
|
+
export type FvFilterBarQueryNode = FvFilterBarPredicate | FvFilterBarGroup;
|
|
14
|
+
export interface FvFilterBarQueryDocument {
|
|
15
|
+
readonly version: 1;
|
|
16
|
+
readonly root: FvFilterBarQueryNode | null;
|
|
17
|
+
}
|
|
18
|
+
export interface FvFilterBarDefinition {
|
|
19
|
+
readonly fields: readonly {
|
|
20
|
+
readonly id: string;
|
|
21
|
+
readonly label: string;
|
|
22
|
+
readonly valueSchema?: unknown;
|
|
23
|
+
}[];
|
|
24
|
+
readonly operators: readonly {
|
|
25
|
+
readonly id: string;
|
|
26
|
+
readonly label: string;
|
|
27
|
+
readonly operand?: {
|
|
28
|
+
readonly kind: 'none' | 'field-value';
|
|
29
|
+
} | {
|
|
30
|
+
readonly kind: 'field-value-list';
|
|
31
|
+
readonly minItems?: number;
|
|
32
|
+
} | {
|
|
33
|
+
readonly kind: 'range';
|
|
34
|
+
readonly endpointSchema: unknown;
|
|
35
|
+
} | {
|
|
36
|
+
readonly kind: 'schema';
|
|
37
|
+
readonly schema: unknown;
|
|
38
|
+
};
|
|
39
|
+
}[];
|
|
40
|
+
}
|
|
41
|
+
export interface FvFilterBarEventDetail {
|
|
42
|
+
readonly query: FvFilterBarQueryDocument;
|
|
43
|
+
}
|
|
44
|
+
/** @internal */
|
|
45
|
+
export type FvFilterBarToken = {
|
|
46
|
+
readonly kind: 'predicate';
|
|
47
|
+
readonly field: string;
|
|
48
|
+
readonly operator: string;
|
|
49
|
+
readonly value: string;
|
|
50
|
+
} | {
|
|
51
|
+
readonly kind: 'logic' | 'group';
|
|
52
|
+
readonly text: string;
|
|
53
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/fv/filter-bar/types.ts"],"names":[],"mappings":"","sourcesContent":["/** Query document shape shared with FvQueryBuilder. */\nexport interface FvFilterBarPredicate {\n readonly kind: 'predicate';\n readonly fieldId: string;\n readonly operatorId: string;\n readonly value?: unknown;\n}\n\nexport interface FvFilterBarGroup {\n readonly kind: 'group';\n readonly combinator: 'and' | 'or';\n readonly children: readonly FvFilterBarQueryNode[];\n}\n\nexport type FvFilterBarQueryNode = FvFilterBarPredicate | FvFilterBarGroup;\n\nexport interface FvFilterBarQueryDocument {\n readonly version: 1;\n readonly root: FvFilterBarQueryNode | null;\n}\n\nexport interface FvFilterBarDefinition {\n readonly fields: readonly {\n readonly id: string,\n readonly label: string,\n readonly valueSchema?: unknown\n }[];\n readonly operators: readonly {\n readonly id: string,\n readonly label: string,\n readonly operand?: | { readonly kind: 'none' | 'field-value' }\n | { readonly kind: 'field-value-list', readonly minItems?: number }\n | { readonly kind: 'range', readonly endpointSchema: unknown }\n | { readonly kind: 'schema', readonly schema: unknown }\n }[];\n}\n\nexport interface FvFilterBarEventDetail {\n readonly query: FvFilterBarQueryDocument;\n}\n\n/** @internal */\nexport type FvFilterBarToken = | {\n readonly kind: 'predicate',\n readonly field: string,\n readonly operator: string,\n readonly value: string\n} | {\n readonly kind: 'logic' | 'group',\n readonly text: string\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ni/ok-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "NI Ok Components",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "npm run build:components && npm run build:cem",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"@ni/fast-element": "^10.2.0",
|
|
44
44
|
"@ni/fast-foundation": "^10.3.0",
|
|
45
45
|
"@ni/fast-web-utilities": "^10.1.0",
|
|
46
|
-
"@ni/nimble-components": "^35.17.
|
|
47
|
-
"@ni/spright-components": "^7.1.
|
|
46
|
+
"@ni/nimble-components": "^35.17.3",
|
|
47
|
+
"@ni/spright-components": "^7.1.3",
|
|
48
48
|
"tslib": "^2.2.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@custom-elements-manifest/to-markdown": "^0.1.0",
|
|
53
53
|
"@ni-private/eslint-config-nimble": "*",
|
|
54
54
|
"@ni-private/jasmine-extensions": "^0.0.1",
|
|
55
|
-
"@ni/jasmine-parameterized": "^1.0.
|
|
55
|
+
"@ni/jasmine-parameterized": "^1.0.15",
|
|
56
56
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
57
57
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
58
58
|
"@rollup/plugin-replace": "^6.0.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"karma-spec-reporter": "^0.0.37",
|
|
69
69
|
"karma-vite": "^1.0.5",
|
|
70
70
|
"karma-webkit-launcher": "^2.6.0",
|
|
71
|
-
"playwright": "1.
|
|
71
|
+
"playwright": "1.64.1",
|
|
72
72
|
"rollup": "^4.60.2",
|
|
73
73
|
"rollup-plugin-sourcemaps2": "^0.5.0",
|
|
74
74
|
"typescript": "~5.9.3"
|