@kong-ui-public/entities-plugins 9.55.0 → 9.56.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 (21) hide show
  1. package/dist/entities-plugins.es.js +8907 -8655
  2. package/dist/entities-plugins.umd.js +35 -35
  3. package/dist/style.css +1 -1
  4. package/dist/types/components/free-form/Datakit/flow-editor/node-forms/InputsField.vue.d.ts +8 -8
  5. package/dist/types/components/free-form/Datakit/flow-editor/node-forms/InputsField.vue.d.ts.map +1 -1
  6. package/dist/types/components/free-form/Datakit/flow-editor/node-forms/InputsMapField.vue.d.ts +15 -2
  7. package/dist/types/components/free-form/Datakit/flow-editor/node-forms/InputsMapField.vue.d.ts.map +1 -1
  8. package/dist/types/components/free-form/Datakit/flow-editor/node-forms/NodeFormCall.vue.d.ts +1 -1
  9. package/dist/types/components/free-form/Datakit/flow-editor/node-forms/NodeFormExit.vue.d.ts +1 -1
  10. package/dist/types/components/free-form/Datakit/flow-editor/node-forms/NodeFormJq.vue.d.ts +10 -1
  11. package/dist/types/components/free-form/Datakit/flow-editor/node-forms/NodeFormJq.vue.d.ts.map +1 -1
  12. package/dist/types/components/free-form/Datakit/flow-editor/node-forms/NodeFormProperty.vue.d.ts +1 -1
  13. package/dist/types/components/free-form/Datakit/flow-editor/node-forms/OutputValueField.vue.d.ts +2 -2
  14. package/dist/types/components/free-form/Datakit/flow-editor/node-forms/composables.d.ts +7 -7
  15. package/dist/types/components/free-form/Datakit/flow-editor/node-forms/composables.d.ts.map +1 -1
  16. package/dist/types/components/free-form/shared/KeyValueField.vue.d.ts +2 -2
  17. package/dist/types/components/free-form/shared/composables.d.ts +3 -3
  18. package/dist/types/components/free-form/shared/composables.d.ts.map +1 -1
  19. package/dist/types/components/free-form/shared/headless/useKeyValueField.d.ts +14 -22
  20. package/dist/types/components/free-form/shared/headless/useKeyValueField.d.ts.map +1 -1
  21. package/package.json +6 -6
@@ -1,45 +1,37 @@
1
1
  import type { LabelAttributes } from '@kong/kongponents';
2
- import type { EmitFn } from 'vue';
3
- export interface KeyValueFieldProps {
2
+ import type { EmitFn, Ref } from 'vue';
3
+ export interface KeyValueFieldProps<TKey extends string = string, TValue extends string = string> {
4
4
  name: string;
5
- initialValue?: Record<string, string> | null;
5
+ initialValue?: Record<TKey, TValue> | null;
6
6
  label?: string;
7
7
  keyPlaceholder?: string;
8
8
  valuePlaceholder?: string;
9
- defaultKey?: string;
10
- defaultValue?: string;
9
+ defaultKey?: TKey;
10
+ defaultValue?: TValue;
11
11
  labelAttributes?: LabelAttributes;
12
12
  showVaultSecretPicker?: boolean;
13
13
  }
14
- export interface KeyValueFieldEmits {
15
- change: [Record<string, string>];
14
+ export interface KeyValueFieldEmits<TKey extends string = string, TValue extends string = string> {
15
+ change: [Record<TKey, TValue>];
16
16
  }
17
- export interface KVEntry {
17
+ export interface KVEntry<TKey extends string = string, TValue extends string = string> {
18
18
  id: string;
19
- key: string;
20
- value: string;
19
+ key: TKey;
20
+ value: TValue;
21
21
  }
22
22
  /**
23
23
  * Headless composable for implementing a key-value field.
24
24
  */
25
- export declare function useKeyValueField(props: KeyValueFieldProps, emit: EmitFn<KeyValueFieldEmits>): {
25
+ export declare function useKeyValueField<TKey extends string = string, TValue extends string = string>(props: KeyValueFieldProps<TKey, TValue>, emit: EmitFn<KeyValueFieldEmits>): {
26
26
  /**
27
27
  * The list of key-value entries.
28
28
  * Use `v-for` to iterate over this in the template.
29
29
  */
30
- entries: import("vue").Ref<{
31
- id: string;
32
- key: string;
33
- value: string;
34
- }[], KVEntry[] | {
35
- id: string;
36
- key: string;
37
- value: string;
38
- }[]>;
30
+ entries: Ref<KVEntry<TKey, TValue>[], KVEntry<TKey, TValue>[]>;
39
31
  /**
40
32
  * Add a empty key-value entry.
41
33
  */
42
- addEntry: () => void;
34
+ addEntry: () => KVEntry<TKey, TValue>;
43
35
  /**
44
36
  * Remove a key-value entry by its ID.
45
37
  */
@@ -51,7 +43,7 @@ export declare function useKeyValueField(props: KeyValueFieldProps, emit: EmitFn
51
43
  /**
52
44
  * Set the entries to a specific key-value object.
53
45
  */
54
- setValue: (value: Record<string, string>) => void;
46
+ setValue: (value: Record<TKey, TValue>) => void;
55
47
  /**
56
48
  * The props for KLabel.
57
49
  */
@@ -1 +1 @@
1
- {"version":3,"file":"useKeyValueField.d.ts","sourceRoot":"","sources":["../../../../../../src/components/free-form/shared/headless/useKeyValueField.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,KAAK,CAAA;AAEjC,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAA;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAChC;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;CACjC;AAED,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,kBAAkB,EACzB,IAAI,EAAE,MAAM,CAAC,kBAAkB,CAAC;IAmD9B;;;OAGG;;YAhED,MAAM;aACL,MAAM;eACJ,MAAM;;YAFT,MAAM;aACL,MAAM;eACJ,MAAM;;IAgEX;;OAEG;;IAEH;;OAEG;sBAnCoB,MAAM;IAqC7B;;OAEG;;IAEH;;OAEG;sBA1BoB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IA4B7C;;OAEG;;;;;;;;IAEH;;OAEG;;;;;;;;;;;;;;;;EAGN"}
1
+ {"version":3,"file":"useKeyValueField.d.ts","sourceRoot":"","sources":["../../../../../../src/components/free-form/shared/headless/useKeyValueField.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAEtC,MAAM,WAAW,kBAAkB,CAAC,IAAI,SAAS,MAAM,GAAG,MAAM,EAAE,MAAM,SAAS,MAAM,GAAG,MAAM;IAC9F,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,IAAI,CAAA;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,UAAU,CAAC,EAAE,IAAI,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAChC;AAED,MAAM,WAAW,kBAAkB,CAAC,IAAI,SAAS,MAAM,GAAG,MAAM,EAAE,MAAM,SAAS,MAAM,GAAG,MAAM;IAC9F,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAA;CAC/B;AAED,MAAM,WAAW,OAAO,CAAC,IAAI,SAAS,MAAM,GAAG,MAAM,EAAE,MAAM,SAAS,MAAM,GAAG,MAAM;IACnF,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,IAAI,CAAA;IACT,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,SAAS,MAAM,GAAG,MAAM,EAC5B,MAAM,SAAS,MAAM,GAAG,MAAM,EAE9B,KAAK,EAAE,kBAAkB,CAAC,IAAI,EAAE,MAAM,CAAC,EACvC,IAAI,EAAE,MAAM,CAAC,kBAAkB,CAAC;IAmE9B;;;OAGG;;IAEH;;OAEG;oBAnDgB,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;IAqDxC;;OAEG;sBA7CoB,MAAM;IA+C7B;;OAEG;;IAEH;;OAEG;sBA1CoB,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC;IA4C3C;;OAEG;;;;;;;;IAEH;;OAEG;;;;;;;;;;;;;;;;EAGN"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/entities-plugins",
3
- "version": "9.55.0",
3
+ "version": "9.56.0",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-plugins.umd.js",
6
6
  "module": "./dist/entities-plugins.es.js",
@@ -32,8 +32,8 @@
32
32
  "axios": "^1.11.0",
33
33
  "vue": "^3.5.13",
34
34
  "vue-router": "^4.4.5",
35
- "@kong-ui-public/entities-plugins-icon": "^1.2.0",
36
35
  "@kong-ui-public/entities-shared": "^3.27.0",
36
+ "@kong-ui-public/entities-plugins-icon": "^1.2.0",
37
37
  "@kong-ui-public/i18n": "^2.4.0"
38
38
  },
39
39
  "devDependencies": {
@@ -72,14 +72,14 @@
72
72
  "focus-trap": "^7.6.0",
73
73
  "marked": "^14.1.3",
74
74
  "monaco-editor": "0.52.2",
75
+ "@kong-ui-public/entities-consumer-groups": "^4.1.0",
76
+ "@kong-ui-public/entities-consumers": "^4.1.0",
75
77
  "@kong-ui-public/entities-gateway-services": "^3.12.1",
76
78
  "@kong-ui-public/entities-plugins-metadata": "^1.6.0",
77
- "@kong-ui-public/entities-consumers": "^4.1.0",
78
- "@kong-ui-public/entities-redis-configurations": "^1.3.0",
79
79
  "@kong-ui-public/entities-routes": "^3.15.0",
80
- "@kong-ui-public/forms": "^4.15.0",
80
+ "@kong-ui-public/entities-redis-configurations": "^1.3.0",
81
81
  "@kong-ui-public/entities-vaults": "^3.23.0",
82
- "@kong-ui-public/entities-consumer-groups": "^4.1.0"
82
+ "@kong-ui-public/forms": "^4.15.0"
83
83
  },
84
84
  "scripts": {
85
85
  "dev": "cross-env USE_SANDBOX=true vite",