@kong-ui-public/forms 4.10.11 → 4.11.1-pr.1993.e54ada17d.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.
Files changed (36) hide show
  1. package/dist/forms.es.js +2730 -2173
  2. package/dist/forms.umd.js +2 -2
  3. package/dist/style.css +1 -1
  4. package/dist/types/components/FormGenerator.vue.d.ts +142 -2
  5. package/dist/types/components/FormGenerator.vue.d.ts.map +1 -1
  6. package/dist/types/components/FormRedis.vue.d.ts +99 -0
  7. package/dist/types/components/FormRedis.vue.d.ts.map +1 -0
  8. package/dist/types/components/RedisConfigCard.vue.d.ts +54 -0
  9. package/dist/types/components/RedisConfigCard.vue.d.ts.map +1 -0
  10. package/dist/types/components/RedisConfigSelect.vue.d.ts +87 -0
  11. package/dist/types/components/RedisConfigSelect.vue.d.ts.map +1 -0
  12. package/dist/types/components/fields/FieldArray.vue.d.ts +2 -2
  13. package/dist/types/components/fields/FieldAutoSuggest.vue.d.ts +2 -2
  14. package/dist/types/components/fields/FieldSelectionGroup.vue.d.ts +1 -1
  15. package/dist/types/components/forms/OIDCForm.vue.d.ts +168 -2
  16. package/dist/types/components/forms/RLAForm.vue.d.ts +6 -0
  17. package/dist/types/components/forms/RLAForm.vue.d.ts.map +1 -1
  18. package/dist/types/components/forms/__tests__/OIDCSchema.d.ts +2452 -0
  19. package/dist/types/components/forms/__tests__/OIDCSchema.d.ts.map +1 -0
  20. package/dist/types/components/forms/__tests__/RLASchema.d.ts +1132 -0
  21. package/dist/types/components/forms/__tests__/RLASchema.d.ts.map +1 -0
  22. package/dist/types/composables/index.d.ts +4 -0
  23. package/dist/types/composables/index.d.ts.map +1 -1
  24. package/dist/types/composables/useRedisNonStandardFields.d.ts +9 -0
  25. package/dist/types/composables/useRedisNonStandardFields.d.ts.map +1 -0
  26. package/dist/types/composables/useRedisPartial.d.ts +23 -0
  27. package/dist/types/composables/useRedisPartial.d.ts.map +1 -0
  28. package/dist/types/const.d.ts +2 -0
  29. package/dist/types/const.d.ts.map +1 -1
  30. package/dist/types/types/form-redis-partial.d.ts +88 -0
  31. package/dist/types/types/form-redis-partial.d.ts.map +1 -0
  32. package/dist/types/types/index.d.ts +1 -0
  33. package/dist/types/types/index.d.ts.map +1 -1
  34. package/dist/types/utils/redisPartial.d.ts +15 -0
  35. package/dist/types/utils/redisPartial.d.ts.map +1 -0
  36. package/package.json +3 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RLASchema.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/__tests__/RLASchema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAk1BrB,CAAA;AAED,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwDpB,CAAA"}
@@ -1,6 +1,10 @@
1
1
  import useAbstractFields from './useAbstractFields';
2
+ import useRedisPartial from './useRedisPartial';
3
+ import useRedisNonStandardFields from './useRedisNonStandardFields';
2
4
  declare const _default: {
3
5
  useAbstractFields: typeof useAbstractFields;
6
+ useRedisPartial: typeof useRedisPartial;
7
+ useRedisNonStandardFields: typeof useRedisNonStandardFields;
4
8
  };
5
9
  export default _default;
6
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,qBAAqB,CAAA;;;;AAGnD,wBAEC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,qBAAqB,CAAA;AACnD,OAAO,eAAe,MAAM,mBAAmB,CAAA;AAC/C,OAAO,yBAAyB,MAAM,6BAA6B,CAAA;;;;;;AAGnE,wBAIC"}
@@ -0,0 +1,9 @@
1
+ import type { FlattendRedisConfigurationFields } from '../types';
2
+ import type { Field } from './useRedisPartial';
3
+ export default function useRedisNonstandardFields(partialFields: FlattendRedisConfigurationFields, redisFields: Field[]): {
4
+ label: string;
5
+ key: string;
6
+ value: string;
7
+ type: string;
8
+ }[];
9
+ //# sourceMappingURL=useRedisNonStandardFields.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRedisNonStandardFields.d.ts","sourceRoot":"","sources":["../../../src/composables/useRedisNonStandardFields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAA;AAChE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAC9C,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,aAAa,EAAE,gCAAgC,EAAE,WAAW,EAAE,KAAK,EAAE;;;;;IAgBtH"}
@@ -0,0 +1,23 @@
1
+ export interface Field {
2
+ label: string;
3
+ model: string;
4
+ type?: string;
5
+ default?: any;
6
+ disabled?: boolean;
7
+ help?: string;
8
+ inputType?: string;
9
+ order?: number;
10
+ required?: boolean;
11
+ valueType?: string;
12
+ }
13
+ export default function useRedisPartial(formSchema: any): {
14
+ redis: {
15
+ id: string;
16
+ fields: Field[];
17
+ model: string;
18
+ redisType: any;
19
+ redisPath: any;
20
+ };
21
+ redisModels: string[];
22
+ };
23
+ //# sourceMappingURL=useRedisPartial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRedisPartial.d.ts","sourceRoot":"","sources":["../../../src/composables/useRedisPartial.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,GAAG,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,UAAU,EAAE,GAAG;;;;;;;;;EA0BtD"}
@@ -1,4 +1,6 @@
1
1
  export declare const FORMS_API_KEY = "kong-ui-forms-api";
2
+ export declare const FORMS_CONFIG = "kong-ui-forms-config";
3
+ export declare const REDIS_PARTIAL_FETCHER_KEY = "redis-partial-list-fetcher-key";
2
4
  /** Used by `template` and `slot` */
3
5
  export declare const AUTOFILL_SLOT_NAME = "autofill";
4
6
  /** Used by `provide` and `inject` */
@@ -1 +1 @@
1
- {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../src/const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,sBAAsB,CAAA;AAEhD,oCAAoC;AACpC,eAAO,MAAM,kBAAkB,aAAa,CAAA;AAE5C,qCAAqC;AACrC,eAAO,MAAM,aAAa,iBAAiB,CAAA"}
1
+ {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../src/const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,sBAAsB,CAAA;AAEhD,eAAO,MAAM,YAAY,yBAAyB,CAAA;AAElD,eAAO,MAAM,yBAAyB,mCAAmC,CAAA;AAEzE,oCAAoC;AACpC,eAAO,MAAM,kBAAkB,aAAa,CAAA;AAE5C,qCAAqC;AACrC,eAAO,MAAM,aAAa,iBAAiB,CAAA"}
@@ -0,0 +1,88 @@
1
+ type Identifiable<T> = T & {
2
+ id: string;
3
+ };
4
+ export declare enum PartialType {
5
+ REDIS_CE = "redis-ce",
6
+ REDIS_EE = "redis-ee"
7
+ }
8
+ export type SentinelNode = {
9
+ host: string;
10
+ port: number;
11
+ };
12
+ export type ClusterNode = {
13
+ ip: string;
14
+ port: number;
15
+ };
16
+ export interface RedisConfigurationFields {
17
+ name: string;
18
+ type: PartialType;
19
+ config: {
20
+ cluster_max_redirections: number;
21
+ cluster_nodes: Identifiable<ClusterNode>[];
22
+ connect_timeout: number;
23
+ connection_is_proxied: boolean;
24
+ database: number;
25
+ host: string;
26
+ keepalive_backlog: number;
27
+ keepalive_pool_size: number;
28
+ password: string;
29
+ port: number;
30
+ read_timeout: number;
31
+ send_timeout: number;
32
+ sentinel_master?: string;
33
+ sentinel_nodes: Identifiable<SentinelNode>[];
34
+ sentinel_password: string;
35
+ sentinel_role?: 'master' | 'slave' | 'any';
36
+ sentinel_username: string;
37
+ server_name?: string;
38
+ ssl_verify: boolean;
39
+ ssl: boolean;
40
+ timeout?: number;
41
+ username: string;
42
+ };
43
+ }
44
+ export interface FlattendRedisConfigurationFields {
45
+ name: string;
46
+ type: PartialType;
47
+ cluster_max_redirections: number;
48
+ cluster_nodes: Identifiable<ClusterNode>[];
49
+ connect_timeout: number;
50
+ connection_is_proxied: boolean;
51
+ database: number;
52
+ host: string;
53
+ keepalive_backlog: number;
54
+ keepalive_pool_size: number;
55
+ password: string;
56
+ port: number;
57
+ read_timeout: number;
58
+ send_timeout: number;
59
+ sentinel_master?: string;
60
+ sentinel_nodes: Identifiable<SentinelNode>[];
61
+ sentinel_password: string;
62
+ sentinel_role?: 'master' | 'slave' | 'any';
63
+ sentinel_username: string;
64
+ server_name?: string;
65
+ ssl_verify: boolean;
66
+ ssl: boolean;
67
+ timeout?: number;
68
+ username: string;
69
+ }
70
+ export interface Field {
71
+ label: string;
72
+ model: string;
73
+ type?: string;
74
+ default?: any;
75
+ disabled?: boolean;
76
+ help?: string;
77
+ inputType?: string;
78
+ order?: number;
79
+ required?: boolean;
80
+ valueType?: string;
81
+ }
82
+ export interface FormRedisFields {
83
+ redisType: string;
84
+ pluginType: string;
85
+ fields: Field[];
86
+ }
87
+ export {};
88
+ //# sourceMappingURL=form-redis-partial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-redis-partial.d.ts","sour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MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,KAAK,EAAE,CAAA;CAChB"}
@@ -1,3 +1,4 @@
1
1
  export * from './form-generator';
2
2
  export * from './form-fields';
3
+ export * from './form-redis-partial';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,sBAAsB,CAAA"}
@@ -0,0 +1,15 @@
1
+ import type { RedisConfigurationFields } from '../types/form-redis-partial';
2
+ import { PartialType } from '../types/form-redis-partial';
3
+ export declare enum RedisTypeDisplay {
4
+ HOST_PORT_CE = "Host/Port",
5
+ HOST_PORT_EE = "Host/Port",
6
+ SENTINEL = "Sentinel",
7
+ CLUSTER = "Cluster"
8
+ }
9
+ export declare const getRedisType: (fields: RedisConfigurationFields) => RedisTypeDisplay;
10
+ export declare const partialTypeDisplay: {
11
+ "redis-ce": string;
12
+ "redis-ee": string;
13
+ };
14
+ export declare const getPartialTypeDisplay: (type: PartialType) => string;
15
+ //# sourceMappingURL=redisPartial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redisPartial.d.ts","sourceRoot":"","sources":["../../../src/utils/redisPartial.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAEzD,oBAAY,gBAAgB;IAC1B,YAAY,cAAc;IAE1B,YAAY,cAAc;IAC1B,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED,eAAO,MAAM,YAAY,WAAY,wBAAwB,KAAG,gBAc/D,CAAA;AAED,eAAO,MAAM,kBAAkB;;;CAG9B,CAAA;AAED,eAAO,MAAM,qBAAqB,SAAU,WAAW,KAAG,MAEzD,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/forms",
3
- "version": "4.10.11",
3
+ "version": "4.11.1-pr.1993.e54ada17d.0",
4
4
  "type": "module",
5
5
  "main": "./dist/forms.umd.js",
6
6
  "module": "./dist/forms.es.js",
@@ -39,6 +39,7 @@
39
39
  "peerDependencies": {
40
40
  "@kong/kongponents": "^9.21.6",
41
41
  "vue": "^3.5.12",
42
+ "@kong-ui-public/entities-shared": "^3.19.0",
42
43
  "@kong-ui-public/i18n": "^2.2.10"
43
44
  },
44
45
  "devDependencies": {
@@ -46,6 +47,7 @@
46
47
  "@kong/kongponents": "9.21.6",
47
48
  "@types/lodash-es": "^4.17.12",
48
49
  "pug": "^3.0.3",
50
+ "@kong-ui-public/entities-shared": "^3.19.0",
49
51
  "@kong-ui-public/i18n": "^2.2.10"
50
52
  },
51
53
  "distSizeChecker": {