@kong-ui-public/entities-plugins 9.271.4 → 9.272.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 (76) hide show
  1. package/dist/entities-plugins.es.js +10444 -10014
  2. package/dist/entities-plugins.umd.js +141 -141
  3. package/dist/filler/cypress/index.js +146 -127
  4. package/dist/filler/{field-walker-DX9YG0uo.js → field-walker-SzWGNejv.js} +4472 -4434
  5. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/create-filler.d.ts.map +1 -1
  6. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/expression.d.ts +9 -0
  7. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/expression.d.ts.map +1 -0
  8. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/index.d.ts +3 -0
  9. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/index.d.ts.map +1 -1
  10. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/create-filler.d.ts.map +1 -1
  11. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/expression.d.ts +9 -0
  12. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/expression.d.ts.map +1 -0
  13. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/index.d.ts +3 -0
  14. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/index.d.ts.map +1 -1
  15. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/shared/field-walker.d.ts +1 -1
  16. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/shared/field-walker.d.ts.map +1 -1
  17. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/shared/selectors.d.ts +3 -0
  18. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/shared/selectors.d.ts.map +1 -1
  19. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/shared/composables/expression-paths.d.ts +55 -0
  20. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/shared/composables/expression-paths.d.ts.map +1 -0
  21. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/shared/composables/expression.d.ts +28 -0
  22. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/shared/composables/expression.d.ts.map +1 -0
  23. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/shared/composables/form-context.d.ts.map +1 -1
  24. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/shared/composables/index.d.ts +2 -0
  25. package/dist/filler/packages/entities/entities-plugins/src/components/free-form/shared/composables/index.d.ts.map +1 -1
  26. package/dist/filler/packages/entities/entities-plugins/src/types/plugins/form-schema.d.ts +35 -1
  27. package/dist/filler/packages/entities/entities-plugins/src/types/plugins/form-schema.d.ts.map +1 -1
  28. package/dist/filler/packages/entities/entities-plugins/src/types/plugins/free-form.d.ts +5 -0
  29. package/dist/filler/packages/entities/entities-plugins/src/types/plugins/free-form.d.ts.map +1 -1
  30. package/dist/filler/playwright/index.js +146 -131
  31. package/dist/freeform/index.js +1336 -1094
  32. package/dist/freeform/style.css +1 -1
  33. package/dist/style.css +1 -1
  34. package/dist/types/components/PluginForm.vue.d.ts.map +1 -1
  35. package/dist/types/components/free-form/plugins/_shared/use-expression-mode.d.ts +18 -0
  36. package/dist/types/components/free-form/plugins/_shared/use-expression-mode.d.ts.map +1 -0
  37. package/dist/types/components/free-form/plugins/rate-limiting/ConfigForm.vue.d.ts +4 -0
  38. package/dist/types/components/free-form/plugins/rate-limiting/ConfigForm.vue.d.ts.map +1 -0
  39. package/dist/types/components/free-form/plugins/rate-limiting/RateLimitingForm.vue.d.ts +16 -0
  40. package/dist/types/components/free-form/plugins/rate-limiting/RateLimitingForm.vue.d.ts.map +1 -0
  41. package/dist/types/components/free-form/plugins/rate-limiting/index.d.ts +3 -0
  42. package/dist/types/components/free-form/plugins/rate-limiting/index.d.ts.map +1 -0
  43. package/dist/types/components/free-form/plugins/rate-limiting-advanced/ConfigForm.vue.d.ts.map +1 -1
  44. package/dist/types/components/free-form/plugins/rate-limiting-advanced/CustomKeyField.vue.d.ts +5 -0
  45. package/dist/types/components/free-form/plugins/rate-limiting-advanced/CustomKeyField.vue.d.ts.map +1 -0
  46. package/dist/types/components/free-form/plugins/rate-limiting-advanced/RateLimitingAdvancedForm.vue.d.ts.map +1 -1
  47. package/dist/types/components/free-form/plugins/rate-limiting-advanced/RequestLimitsForm.vue.d.ts.map +1 -1
  48. package/dist/types/components/free-form/shared/ExpressionEditor.vue.d.ts +34 -0
  49. package/dist/types/components/free-form/shared/ExpressionEditor.vue.d.ts.map +1 -0
  50. package/dist/types/components/free-form/shared/ExpressionField.vue.d.ts +19 -0
  51. package/dist/types/components/free-form/shared/ExpressionField.vue.d.ts.map +1 -0
  52. package/dist/types/components/free-form/shared/Field.vue.d.ts.map +1 -1
  53. package/dist/types/components/free-form/shared/Form.vue.d.ts.map +1 -1
  54. package/dist/types/components/free-form/shared/RadioField.vue.d.ts +10 -1
  55. package/dist/types/components/free-form/shared/RadioField.vue.d.ts.map +1 -1
  56. package/dist/types/components/free-form/shared/composables/expression-paths.d.ts +55 -0
  57. package/dist/types/components/free-form/shared/composables/expression-paths.d.ts.map +1 -0
  58. package/dist/types/components/free-form/shared/composables/expression.d.ts +28 -0
  59. package/dist/types/components/free-form/shared/composables/expression.d.ts.map +1 -0
  60. package/dist/types/components/free-form/shared/composables/form-context.d.ts.map +1 -1
  61. package/dist/types/components/free-form/shared/composables/index.d.ts +2 -0
  62. package/dist/types/components/free-form/shared/composables/index.d.ts.map +1 -1
  63. package/dist/types/components/free-form/shared/field-dispatch.d.ts +14 -0
  64. package/dist/types/components/free-form/shared/field-dispatch.d.ts.map +1 -0
  65. package/dist/types/components/free-form/shared/layout/StandardLayout.vue.d.ts.map +1 -1
  66. package/dist/types/composables/useFreeformI18n.d.ts +68 -0
  67. package/dist/types/composables/useFreeformI18n.d.ts.map +1 -1
  68. package/dist/types/freeform.d.ts +3 -1
  69. package/dist/types/freeform.d.ts.map +1 -1
  70. package/dist/types/types/plugins/form-schema.d.ts +35 -1
  71. package/dist/types/types/plugins/form-schema.d.ts.map +1 -1
  72. package/dist/types/types/plugins/free-form.d.ts +5 -0
  73. package/dist/types/types/plugins/free-form.d.ts.map +1 -1
  74. package/package.json +1 -1
  75. package/dist/types/components/free-form/plugins/rate-limiting.d.ts +0 -3
  76. package/dist/types/components/free-form/plugins/rate-limiting.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"PluginForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/PluginForm.vue"],"names":[],"mappings":"AAstDA,OAAO,gDAAgD,CAAA;AAEvD,OAAO,EAAgB,KAAK,UAAU,EAAsB,MAAM,OAAO,CAAA;AAGzE,OAAO,EAA0D,KAAK,QAAQ,EAAU,MAAM,KAAK,CAAA;AAOnG,OAAO,EAML,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAO5B,KAAK,iBAAiB,EACvB,MAAM,UAAU,CAAA;AAUjB,KAAK,kBAAkB,GAAG,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,gBAAgB,CAAA;AAC7E,KAAK,WAAW,GAAG,aAAa,GAAG,SAAS,GAAG,WAAW,CAAA;AAC1D,KAAK,sBAAsB,GAAG,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAA;AACnE,KAAK,yBAAyB,GAAG,OAAO,CAAC,MAAM,CAAC,kBAAkB,EAAE,sBAAsB,CAAC,CAAC,CAAA;AA4+D5F,QAAA,MAAM,YAAY;IAGhB,oHAAoH;;cAElG,QAAQ,CAAC,uBAAuB,GAAG,2BAA2B,CAAC;;4BAE3D,uBAAuB,GAAG,2BAA2B,KAAG,OAAO;;IAOrF;;OAEG;;;;;IAKH,kIAAkI;;cAEhH,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC;;;IAIzC,2FAA2F;;;;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;OAEG;;cAEe,QAAQ,CAAC,KAAK,GAAG,UAAU,CAAC;;;;;;;;;;;eA3lEnC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;cACpB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;0BACP,MAAM;;;;;;;IAs+D5B,oHAAoH;;cAElG,QAAQ,CAAC,uBAAuB,GAAG,2BAA2B,CAAC;;4BAE3D,uBAAuB,GAAG,2BAA2B,KAAG,OAAO;;IAOrF;;OAEG;;;;;IAKH,kIAAkI;;cAEhH,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC;;;IAIzC,2FAA2F;;;;;IAM3F,8EAA8E;;;;;IAM9E,sBAAsB;;;;;IAMtB,yCAAyC;;;;;IAMzC,mFAAmF;;;;;IAMnF;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH,sHAAsH;;;;;IAMtH;;OAEG;;cAEe,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;IAG/C;;OAEG;;;;;;cAMe,QAAQ,CAAC,yBAAyB,CAAC;;;IAIrD;;OAEG;;cAEe,QAAQ,CAAC,KAAK,GAAG,UAAU,CAAC;;;;;;;;;;;eA3lEnC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;cACpB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;0BACP,MAAM;;;;;;;;;;;;;;;;;;;;;;4EA8lE5B,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,18 @@
1
+ import type { FormSchema } from '../../../../types/plugins/form-schema';
2
+ /**
3
+ * Gates expression mode on a plugin's expressible fields behind the 3.16
4
+ * feature flag.
5
+ *
6
+ * Shadows the `expressible` marker rather than removing anything: the fields,
7
+ * their values and the `expressions` record all stay exactly as the Gateway
8
+ * sent them, so every field still renders and its data still round-trips — only
9
+ * the expression editor beside it goes away. Turning the flag on restores it
10
+ * with nothing else changed.
11
+ *
12
+ * @param schema The plugin's raw schema, from `PluginFormLayoutProps`.
13
+ */
14
+ export declare function useExpressionMode(schema: () => FormSchema): {
15
+ expressionModeEnabled: boolean;
16
+ gatedSchema: import("vue").ComputedRef<FormSchema>;
17
+ };
18
+ //# sourceMappingURL=use-expression-mode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-expression-mode.d.ts","sourceRoot":"","sources":["../../../../../../src/components/free-form/plugins/_shared/use-expression-mode.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAuC,MAAM,uCAAuC,CAAA;AAE5G;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,UAAU;;;EAezD"}
@@ -0,0 +1,4 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
4
+ //# sourceMappingURL=ConfigForm.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfigForm.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/free-form/plugins/rate-limiting/ConfigForm.vue"],"names":[],"mappings":"AA6MA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,16 @@
1
+ import { AUTOFILL_SLOT_NAME } from '@kong-ui-public/forms';
2
+ import type { PluginFormLayoutProps as Props } from '../../shared/layout/provider';
3
+ type __VLS_Props = Props;
4
+ type __VLS_Slots = {
5
+ [K in typeof AUTOFILL_SLOT_NAME]: () => any;
6
+ };
7
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
11
+ type __VLS_WithSlots<T, S> = T & {
12
+ new (): {
13
+ $slots: S;
14
+ };
15
+ };
16
+ //# sourceMappingURL=RateLimitingForm.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RateLimitingForm.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/free-form/plugins/rate-limiting/RateLimitingForm.vue"],"names":[],"mappings":"AA2DA,OAAO,EAAiB,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAQzE,OAAO,KAAK,EAAE,qBAAqB,IAAI,KAAK,EAAE,MAAM,8BAA8B,CAAA;AAGlF,KAAK,WAAW,GAAG,KAAK,CAAC;AAoBzB,KAAK,WAAW,GAAG;KAChB,CAAC,IAAI,OAAO,kBAAkB,GAAG,MAAM,GAAG;CAC5C,CAAC;AA+EF,QAAA,MAAM,UAAU,kSAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("../../shared/types.ts").PluginFormConfig;
2
+ export default _default;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/free-form/plugins/rate-limiting/index.ts"],"names":[],"mappings":";AAGA,wBAGE"}
@@ -1 +1 @@
1
- {"version":3,"file":"ConfigForm.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/free-form/plugins/rate-limiting-advanced/ConfigForm.vue"],"names":[],"mappings":"AA+PA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"ConfigForm.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/free-form/plugins/rate-limiting-advanced/ConfigForm.vue"],"names":[],"mappings":"AAmRA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,5 @@
1
+ import type { BaseFieldProps } from '../../shared/types';
2
+ declare const __VLS_export: import("vue").DefineComponent<BaseFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BaseFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
+ declare const _default: typeof __VLS_export;
4
+ export default _default;
5
+ //# sourceMappingURL=CustomKeyField.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomKeyField.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/free-form/plugins/rate-limiting-advanced/CustomKeyField.vue"],"names":[],"mappings":"AAiDA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAgGxD,QAAA,MAAM,YAAY,wSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RateLimitingAdvancedForm.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/free-form/plugins/rate-limiting-advanced/RateLimitingAdvancedForm.vue"],"names":[],"mappings":"AAwCA,OAAO,EAAiB,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAKzE,OAAO,KAAK,EAAE,qBAAqB,IAAI,KAAK,EAAE,MAAM,8BAA8B,CAAA;AAGlF,KAAK,WAAW,GAAG,KAAK,CAAC;AAGzB,KAAK,WAAW,GAAG;KAChB,CAAC,IAAI,OAAO,kBAAkB,GAAG,MAAM,GAAG;CAC5C,CAAC;AA0DF,QAAA,MAAM,UAAU,kSAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"RateLimitingAdvancedForm.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/free-form/plugins/rate-limiting-advanced/RateLimitingAdvancedForm.vue"],"names":[],"mappings":"AA0DA,OAAO,EAAiB,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAQzE,OAAO,KAAK,EAAE,qBAAqB,IAAI,KAAK,EAAE,MAAM,8BAA8B,CAAA;AAGlF,KAAK,WAAW,GAAG,KAAK,CAAC;AAOzB,KAAK,WAAW,GAAG;KAChB,CAAC,IAAI,OAAO,kBAAkB,GAAG,MAAM,GAAG;CAC5C,CAAC;AA2FF,QAAA,MAAM,UAAU,kSAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RequestLimitsForm.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/free-form/plugins/rate-limiting-advanced/RequestLimitsForm.vue"],"names":[],"mappings":"AAw0BA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"RequestLimitsForm.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/free-form/plugins/rate-limiting-advanced/RequestLimitsForm.vue"],"names":[],"mappings":"AAokCA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,34 @@
1
+ type __VLS_Props = {
2
+ /**
3
+ * Path of the **source** field this expression can override, not the path of
4
+ * the expression itself — the twin path is derived from it. Accepts the same
5
+ * absolute or parent-relative form as any other field component's `name`.
6
+ *
7
+ * Renders nothing when that field has no twin in the schema.
8
+ */
9
+ name: string;
10
+ /**
11
+ * Example expression to show while the field is empty. There is no default,
12
+ * on purpose — a useful example is specific to the plugin and the field it
13
+ * overrides, so a shared one would be wrong for most of them.
14
+ *
15
+ * Left unset the field shows nothing rather than falling through to
16
+ * `useFieldAttrs`, whose fallback would offer the field's own default value
17
+ * as the placeholder — misleading here, since an expression is not a value.
18
+ */
19
+ placeholder?: string;
20
+ };
21
+ type __VLS_Slots = {
22
+ /** Replaces the default help text under the textarea. */
23
+ help?: () => any;
24
+ };
25
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
27
+ declare const _default: typeof __VLS_export;
28
+ export default _default;
29
+ type __VLS_WithSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
34
+ //# sourceMappingURL=ExpressionEditor.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpressionEditor.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/shared/ExpressionEditor.vue"],"names":[],"mappings":"AA+NA,KAAK,WAAW,GAAG;IACjB;;;;;;OAMG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAC;AAIF,KAAK,WAAW,GAAG;IACjB,yDAAyD;IACzD,IAAI,CAAC,EAAE,MAAM,GAAG,CAAA;CACjB,CAAC;AAwRF,QAAA,MAAM,UAAU,kSAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { BaseFieldProps } from './types';
2
+ type __VLS_Props = BaseFieldProps & {
3
+ /** Overrides the editor's default placeholder. */
4
+ placeholder?: string;
5
+ };
6
+ type __VLS_Slots = {
7
+ /** Replaces the default help text under the expression textarea. */
8
+ help?: () => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
19
+ //# sourceMappingURL=ExpressionField.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpressionField.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/shared/ExpressionField.vue"],"names":[],"mappings":"AA6GA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAc7C,KAAK,WAAW,GAAG,cAAc,GAAG;IAClC,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAC;AAIF,KAAK,WAAW,GAAG;IACjB,oEAAoE;IACpE,IAAI,CAAC,EAAE,MAAM,GAAG,CAAA;CACjB,CAAC;AAoFF,QAAA,MAAM,UAAU,kSAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Field.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/shared/Field.vue"],"names":[],"mappings":"AA2GA,OAAO,EAAmB,KAAK,IAAI,EAAE,MAAM,KAAK,CAAA;AAChD,OAAO,EAAY,eAAe,EAAE,MAAM,eAAe,CAAA;AAazD,OAAO,KAAK,EAAgB,cAAc,EAAE,MAAM,SAAS,CAAA;AAY3D,KAAK,WAAW,GAAG;IACf,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,CAAA;CACzC,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC;AAoI3C,QAAA,MAAM,UAAU;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Field.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/shared/Field.vue"],"names":[],"mappings":"AAmFA,OAAO,EAAmB,KAAK,IAAI,EAAE,MAAM,KAAK,CAAA;AAChD,OAAO,EAAgC,eAAe,EAAE,MAAM,eAAe,CAAA;AAK7E,OAAO,KAAK,EAAgB,cAAc,EAAE,MAAM,SAAS,CAAA;AAY3D,KAAK,WAAW,GAAG;IACf,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,CAAA;CACzC,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC;AAoH3C,QAAA,MAAM,UAAU;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Form.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/shared/Form.vue"],"names":[],"mappings":"AAAA,OAuFO,EAAY,KAAK,IAAI,EAA0B,MAAM,KAAK,CAAA;AAEjE,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAA;AAEtF,OAAO,KAAK,EAAE,UAAU,EAAgB,WAAW,EAAE,MAAM,SAAS,CAAA;AAIpE,MAAM,MAAM,KAAK,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI;IACvE,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,UAAU,GAAG,gBAAgB,CAAA;IACrC,IAAI,CAAC,EAAE,CAAC,CAAA;IACR,MAAM,CAAC,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AK,EAAE,WAAW,GAAG,mBAAmB,CAAC;;;KAAmC,CAAC,GAAG,CAAC,OAAO,UAAU,SAAS;QAAE,oBAAoB,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,CAAC,GAAG,EAAE,CAAC;YAC5J,CAAC,OAAO,EAAE,OAAO,KAAK,EAAE,gBAAgB;;;;;MAAsB,KAAK,IAAI;WACxE,GAAG;;kBA/HG,IAAI;2CACM,IAAI,CAAC;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC;;cACJ,MAAM;;;EAiI5C,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAA;CAAI,CAAC;AACzF,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
@@ -1,10 +1,19 @@
1
1
  import { type LabelAttributes, type SelectItem } from '@kong/kongponents';
2
2
  import type { BaseFieldProps } from './types';
3
+ /** A `description` only renders in `card` mode, where KRadio has room for it. */
4
+ interface RadioFieldItem extends SelectItem {
5
+ description?: string;
6
+ }
3
7
  interface EnumFieldProps extends BaseFieldProps {
4
8
  labelAttributes?: LabelAttributes;
5
9
  multiple?: boolean;
6
- items?: SelectItem[];
10
+ items?: RadioFieldItem[];
7
11
  label?: string;
12
+ /**
13
+ * Render each option as a selectable card. Use for a small set of choices that
14
+ * need a description to tell them apart; plain radios otherwise.
15
+ */
16
+ card?: boolean;
8
17
  }
9
18
  declare const __VLS_export: import("vue").DefineComponent<EnumFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
19
  "update:modelValue": (value: string | number) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"RadioField.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/shared/RadioField.vue"],"names":[],"mappings":"AA6FA,OAAO,EAAU,KAAK,eAAe,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEjF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAI7C,UAAU,cAAe,SAAQ,cAAc;IAC7C,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,UAAU,EAAE,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AA6ID,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"RadioField.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/shared/RadioField.vue"],"names":[],"mappings":"AAgHA,OAAO,EAAU,KAAK,eAAe,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEjF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAI7C,iFAAiF;AACjF,UAAU,cAAe,SAAQ,UAAU;IACzC,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,UAAU,cAAe,SAAQ,cAAc;IAC7C,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,cAAc,EAAE,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAuJD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,55 @@
1
+ import type { ExpressionFieldSchema, FormSchema, UnionFieldSchema } from '../../../../types/plugins/form-schema';
2
+ /**
3
+ * Name of the root record holding the expression twins of `expressible` fields.
4
+ */
5
+ export declare const EXPRESSIONS_FIELD = "expressions";
6
+ /**
7
+ * What a slot with no expression holds inside a twin *array*.
8
+ *
9
+ * The Gateway pairs a twin array with its source array by position — it pads a
10
+ * short one with `''` and re-orders both together when it sorts the source — so
11
+ * a slot has to keep its place. An empty string does that; the form's null
12
+ * sentinel does not, and the array's string element schema has nowhere to put
13
+ * it. Only for array elements: a scalar twin is unset with the usual sentinel.
14
+ */
15
+ export declare const EXPRESSION_ARRAY_EMPTY = "";
16
+ /**
17
+ * Maps a field path to the path of its expression twin.
18
+ *
19
+ * The `expressions` record mirrors the structure of the top-level record its
20
+ * expressible fields live in (`config`, for every plugin schema today), so the
21
+ * twin path is the field path with its first segment swapped:
22
+ *
23
+ * @example
24
+ * toExpressionPath('config.minute') // => 'expressions.minute'
25
+ * toExpressionPath('config.limit.0') // => 'expressions.limit.0'
26
+ * toExpressionPath('minute') // => undefined — a root field has no twin
27
+ */
28
+ export declare function toExpressionPath(path: string): string | undefined;
29
+ /**
30
+ * Inverse of {@link toExpressionPath}: maps a twin's path back to the field it
31
+ * overrides. Needs the source record's name, which the twin path cannot carry —
32
+ * {@link findExpressionSourceRecord} recovers it from the schema.
33
+ *
34
+ * @example
35
+ * toSourcePath('expressions.minute', 'config') // => 'config.minute'
36
+ * toSourcePath('config.minute', 'config') // => undefined — not a twin
37
+ */
38
+ export declare function toSourcePath(path: string, sourceRecord: string): string | undefined;
39
+ /**
40
+ * Name of the root record whose fields the `expressions` record mirrors — the
41
+ * one declaring `expressible` fields. `config` for every plugin schema today,
42
+ * read from the schema rather than assumed.
43
+ */
44
+ export declare function findExpressionSourceRecord(schema: FormSchema | UnionFieldSchema | undefined): string | undefined;
45
+ /**
46
+ * Whether a schema is the expression twin of an `expressible` field.
47
+ *
48
+ * `expressible_kong_type` is the marker rather than the source field's
49
+ * `expressible` flag, because the two do not always sit at the same path: for an
50
+ * expressible *array* (rate-limiting-advanced's `config.limit`) the flag is on
51
+ * the array while the twins are per element, so only the twin marks every path
52
+ * that actually takes an expression.
53
+ */
54
+ export declare function isExpressionFieldSchema(schema: UnionFieldSchema | undefined): schema is ExpressionFieldSchema;
55
+ //# sourceMappingURL=expression-paths.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expression-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/components/free-form/shared/composables/expression-paths.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,UAAU,EAAqB,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AAUnI;;GAEG;AACH,eAAO,MAAM,iBAAiB,gBAAgB,CAAA;AAE9C;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,KAAK,CAAA;AAExC;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAIjE;AAED;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAInF;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,UAAU,GAAG,gBAAgB,GAAG,SAAS,GAChD,MAAM,GAAG,SAAS,CAiBpB;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,gBAAgB,GAAG,SAAS,GACnC,MAAM,IAAI,qBAAqB,CAEjC"}
@@ -0,0 +1,28 @@
1
+ import type { MaybeRefOrGetter } from 'vue';
2
+ import type { ExpressionFieldSchema, FieldSchemaType } from '../../../../types/plugins/form-schema';
3
+ import type { EmptyValue } from '../types';
4
+ /**
5
+ * State for the optional expression that can override a field's plain value.
6
+ *
7
+ * Reads and writes `formData` at the twin path directly rather than going
8
+ * through `useFieldPath`/`useFormData`: those provide their own field path to
9
+ * descendants, and this composable is called from `Field.vue` alongside the
10
+ * field's own `useField`, where overriding that provide would break relative
11
+ * path resolution for everything the field renders.
12
+ *
13
+ * @param configPath The **resolved** path of the expressible field, with or
14
+ * without the `$.` root prefix (e.g. `Field.vue` passes `field.path`).
15
+ */
16
+ export declare function useExpressionField(configPath: MaybeRefOrGetter<string>): {
17
+ available: import("vue").ComputedRef<boolean>;
18
+ expressionPath: import("vue").ComputedRef<string | undefined>;
19
+ schema: import("vue").ComputedRef<ExpressionFieldSchema | undefined>;
20
+ value: import("vue").WritableComputedRef<string | EmptyValue, string | EmptyValue>;
21
+ hasExpression: import("vue").ComputedRef<boolean>;
22
+ kongType: import("vue").ComputedRef<FieldSchemaType | undefined>;
23
+ hide: import("vue").ComputedRef<boolean>;
24
+ isArrayElement: import("vue").ComputedRef<boolean>;
25
+ emptyValue: import("vue").ComputedRef<string | EmptyValue>;
26
+ clear: () => void;
27
+ };
28
+ //# sourceMappingURL=expression.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expression.d.ts","sourceRoot":"","sources":["../../../../../../src/components/free-form/shared/composables/expression.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AACnG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAE1C;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,gBAAgB,CAAC,MAAM,CAAC;;;;;;;;;;;EA2ItE"}
@@ -1 +1 @@
1
- {"version":3,"file":"form-context.d.ts","sourceRoot":"","sources":["../../../../../../src/components/free-form/shared/composables/form-context.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAA;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAC7E,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AAEzF,eAAO,MAAO,iBAAiB;YAEnB,UAAU,GAAG,gBAAgB;;;uBAGlB,gBAAgB,CAAC,WAAW,GAAG,SAAS,CAAC;kDACjC,IAAI;;;;;;;;;;;;;;;;;;;;;wBAgIJ,MAAM;wBAIN,CAAC,mBAAmB,MAAM;;;;;;;;;;IAKnD;;OAEG;;;;;;;;;aAiC2iR,CAAC;qBAA6D,CAAC;;;;GAlLllR,qBAAqB;;;;;;;;;;;;;;;;;;;;wBAsIvB,MAAM;wBAIN,CAAC,mBAAmB,MAAM;;;;;;;;;;IAKnD;;OAEG;;;;;;;;;aAiC2iR,CAAC;qBAA6D,CAAC;;;;aAflnR,CAAA;AAED,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAM/D,UAAU,CAAC,OAAO,qBAAqB,CAAC,GAAG;IACzD,QAAQ,EAAE,CAAC,CAAA;IACX,MAAM,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA;IAClC,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,IAAI,CAAA;IAC/B,QAAQ,EAAE,MAAM,CAAC,CAAA;CAClB,CACF"}
1
+ {"version":3,"file":"form-context.d.ts","sourceRoot":"","sources":["../../../../../../src/components/free-form/shared/composables/form-context.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAA;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAC7E,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AAEzF,eAAO,MAAO,iBAAiB;YAEnB,UAAU,GAAG,gBAAgB;;;uBAGlB,gBAAgB,CAAC,WAAW,GAAG,SAAS,CAAC;kDACjC,IAAI;;;;;;;;;;;;;;;;;;;;;wBAmJJ,MAAM;wBAIN,CAAC,mBAAmB,MAAM;;;;;;;;;;IAKnD;;OAEG;;;;;;;;;aAiCirP,CAAC;qBAA6D,CAAC;;;;GArMxtP,qBAAqB;;;;;;;;;;;;;;;;;;;;wBAyJvB,MAAM;wBAIN,CAAC,mBAAmB,MAAM;;;;;;;;;;IAKnD;;OAEG;;;;;;;;;aAiCirP,CAAC;qBAA6D,CAAC;;;;aAfxvP,CAAA;AAED,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAM/D,UAAU,CAAC,OAAO,qBAAqB,CAAC,GAAG;IACzD,QAAQ,EAAE,CAAC,CAAA;IACX,MAAM,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA;IAClC,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,IAAI,CAAA;IAC/B,QAAQ,EAAE,MAAM,CAAC,CAAA;CAClB,CACF"}
@@ -1,5 +1,7 @@
1
1
  export * from './ancestors';
2
2
  export * from './constants';
3
+ export * from './expression';
4
+ export * from './expression-paths';
3
5
  export * from './field-path';
4
6
  export * from './field';
5
7
  export * from './form-context';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/free-form/shared/composables/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/free-form/shared/composables/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA"}
@@ -0,0 +1,14 @@
1
+ import type { Component } from 'vue';
2
+ import type { UnionFieldSchema } from '../../../types/plugins/form-schema';
3
+ /**
4
+ * Resolves the component that renders a field's plain value, from its schema
5
+ * type alone.
6
+ *
7
+ * Lives here rather than inside `Field.vue` because `ExpressionField` needs the
8
+ * same mapping to render the value half of an expressible field, and importing
9
+ * `Field.vue` for it would be circular.
10
+ *
11
+ * Returns `undefined` for a type with no renderer yet; callers surface that.
12
+ */
13
+ export declare function resolveFieldComponent(schema: UnionFieldSchema | undefined): Component | undefined;
14
+ //# sourceMappingURL=field-dispatch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field-dispatch.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/shared/field-dispatch.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AACpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAA;AA4B1E;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,gBAAgB,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAMjG"}
@@ -1 +1 @@
1
- {"version":3,"file":"StandardLayout.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/free-form/shared/layout/StandardLayout.vue"],"names":[],"mappings":"AA8nBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AAS7E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAIv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ACtB,GAAG;;mDA1zBkC,GAAG;iBAVrC,MAAM,GAAG;wBACF,MAAM,GAAG;+BACF,MAAM,GAAG;qCACH,MAAM,GAAG;+BACf,MAAM,GAAG;gCACR,MAAM,GAAG;sCACH,MAAM,GAAG;gCACf,MAAM,GAAG;4BACb,MAAM,GAAG;;;EAg0B3B,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAA;CAAI,CAAC;AACzF,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
@@ -18,6 +18,23 @@ export default function useFreeformI18n(): {
18
18
  vault_picker: {
19
19
  component_error: string;
20
20
  };
21
+ expression: {
22
+ add: string;
23
+ remove: string;
24
+ label: string;
25
+ info: string;
26
+ help: {
27
+ text: string;
28
+ learn: string;
29
+ };
30
+ returns: {
31
+ string: string;
32
+ number: string;
33
+ integer: string;
34
+ boolean: string;
35
+ unknown: string;
36
+ };
37
+ };
21
38
  };
22
39
  };
23
40
  }>;
@@ -42,6 +59,23 @@ export default function useFreeformI18n(): {
42
59
  vault_picker: {
43
60
  component_error: string;
44
61
  };
62
+ expression: {
63
+ add: string;
64
+ remove: string;
65
+ label: string;
66
+ info: string;
67
+ help: {
68
+ text: string;
69
+ learn: string;
70
+ };
71
+ returns: {
72
+ string: string;
73
+ number: string;
74
+ integer: string;
75
+ boolean: string;
76
+ unknown: string;
77
+ };
78
+ };
45
79
  };
46
80
  };
47
81
  }>>;
@@ -76,6 +110,23 @@ export default function useFreeformI18n(): {
76
110
  vault_picker: {
77
111
  component_error: string;
78
112
  };
113
+ expression: {
114
+ add: string;
115
+ remove: string;
116
+ label: string;
117
+ info: string;
118
+ help: {
119
+ text: string;
120
+ learn: string;
121
+ };
122
+ returns: {
123
+ string: string;
124
+ number: string;
125
+ integer: string;
126
+ boolean: string;
127
+ unknown: string;
128
+ };
129
+ };
79
130
  };
80
131
  };
81
132
  }>>;
@@ -109,6 +160,23 @@ export default function useFreeformI18n(): {
109
160
  vault_picker: {
110
161
  component_error: string;
111
162
  };
163
+ expression: {
164
+ add: string;
165
+ remove: string;
166
+ label: string;
167
+ info: string;
168
+ help: {
169
+ text: string;
170
+ learn: string;
171
+ };
172
+ returns: {
173
+ string: string;
174
+ number: string;
175
+ integer: string;
176
+ boolean: string;
177
+ unknown: string;
178
+ };
179
+ };
112
180
  };
113
181
  };
114
182
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"useFreeformI18n.d.ts","sourceRoot":"","sources":["../../../src/composables/useFreeformI18n.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMtC"}
1
+ {"version":3,"file":"useFreeformI18n.d.ts","sourceRoot":"","sources":["../../../src/composables/useFreeformI18n.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMtC"}
@@ -1,6 +1,8 @@
1
1
  export { default as Form } from './components/free-form/shared/Form.vue';
2
2
  export { default as Field } from './components/free-form/shared/Field.vue';
3
3
  export { default as FieldRenderer } from './components/free-form/shared/FieldRenderer.vue';
4
+ export { default as ExpressionField } from './components/free-form/shared/ExpressionField.vue';
5
+ export { default as ExpressionEditor } from './components/free-form/shared/ExpressionEditor.vue';
4
6
  export { default as StringField } from './components/free-form/shared/StringField.vue';
5
7
  export { default as SwitchField } from './components/free-form/shared/SwitchField.vue';
6
8
  export { default as BooleanField } from './components/free-form/shared/BooleanField.vue';
@@ -14,7 +16,7 @@ export { default as ForeignField } from './components/free-form/shared/ForeignFi
14
16
  export { default as MapField } from './components/free-form/shared/MapField.vue';
15
17
  export * from './components/free-form/shared/composables';
16
18
  export { renderRuleExactMatch } from './components/free-form/shared/composables/render-rules';
17
- export type { FormSchema, UnionFieldSchema, NamedFieldSchema } from './types/plugins/form-schema';
19
+ export type { FormSchema, UnionFieldSchema, NamedFieldSchema, ExpressionFieldSchema } from './types/plugins/form-schema';
18
20
  export type { RenderRules, FormConfig } from './components/free-form/shared/types';
19
21
  export { USE_SECRET_INPUT_KEY } from './constants';
20
22
  //# sourceMappingURL=freeform.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"freeform.d.ts","sourceRoot":"","sources":["../../src/freeform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,wCAAwC,CAAA;AACxE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,yCAAyC,CAAA;AAC1E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iDAAiD,CAAA;AAC1F,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,+CAA+C,CAAA;AACtF,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,+CAA+C,CAAA;AACtF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAA;AACxF,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,8CAA8C,CAAA;AACpF,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,+CAA+C,CA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AA;AACxF,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,8CAA8C,CAAA;AACpF,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,+CAA+C,CAAA;AACtF,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,+CAA+C,CAAA;AACtF,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAClF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oDAAoD,CAAA;AAChG,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAClF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAA;AACxF,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,4CAA4C,CAAA;AAChF,cAAc,2CAA2C,CAAA;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wDAAwD,CAAA;AAC7F,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACxH,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAA;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA"}
@@ -38,7 +38,19 @@ export type ConditionalAtLeastOneOfEntityCheck = {
38
38
  then_at_least_one_of: string[];
39
39
  };
40
40
  };
41
- export type EntityCheck = AtLeastOneOfEntityCheck | MutuallyRequiredEntityCheck | MutuallyExclusiveEntityCheck | ConditionalEntityCheck | ConditionalAtLeastOneOfEntityCheck;
41
+ /**
42
+ * A check the Gateway evaluates with plugin-specific logic across several field
43
+ * sources (e.g. rate-limiting-advanced validating `config` against
44
+ * `expressions`). It names no individual fields, so the form has nothing to
45
+ * render or act on and ignores it — declared here only so real schemas type-check.
46
+ */
47
+ export type CustomEntityCheck = {
48
+ custom_entity_check: {
49
+ field_sources: string[];
50
+ run_with_missing_fields?: boolean;
51
+ };
52
+ };
53
+ export type EntityCheck = AtLeastOneOfEntityCheck | MutuallyRequiredEntityCheck | MutuallyExclusiveEntityCheck | ConditionalEntityCheck | ConditionalAtLeastOneOfEntityCheck | CustomEntityCheck;
42
54
  export interface FieldSchema {
43
55
  type: FieldSchemaType;
44
56
  required?: boolean;
@@ -48,6 +60,13 @@ export interface FieldSchema {
48
60
  one_of?: any[];
49
61
  help?: string;
50
62
  entity_checks?: EntityCheck[];
63
+ /**
64
+ * The Gateway marks a field `expressible` when its value may alternatively be
65
+ * supplied as an expression evaluated on every request, which takes priority
66
+ * over the plain value. The expression itself lives in a twin field under the
67
+ * schema's top-level `expressions` record — see {@link ExpressionFieldSchema}.
68
+ */
69
+ expressible?: boolean;
51
70
  }
52
71
  export interface StringFieldSchema extends FieldSchema {
53
72
  type: 'string';
@@ -72,6 +91,21 @@ export interface StringFieldSchema extends FieldSchema {
72
91
  };
73
92
  pattern?: string;
74
93
  }
94
+ /**
95
+ * The twin of an {@link FieldSchema.expressible} field, found under the
96
+ * top-level `expressions` record at the same relative path — `config.minute`
97
+ * pairs with `expressions.minute`, and the elements of the array `config.limit`
98
+ * pair with the elements of `expressions.limit`.
99
+ *
100
+ * It always holds the expression source as a string. `expressible_kong_type` is
101
+ * the type the expression must evaluate to.
102
+ *
103
+ * Not a member of `UnionFieldSchema`: it is structurally a `string` field and is
104
+ * rendered as one. The extra keys are read through this type where needed.
105
+ */
106
+ export interface ExpressionFieldSchema extends StringFieldSchema {
107
+ expressible_kong_type: FieldSchemaType;
108
+ }
75
109
  export interface NumberLikeFieldSchema extends FieldSchema {
76
110
  type: 'number' | 'integer';
77
111
  one_of?: number[];
@@ -1 +1 @@
1
- {"version":3,"file":"form-schema.d.ts","sourceRoot":"","sources":["../../../../src/types/plugins/form-schema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,QAAQ,GAClC,QAAQ,GACR,SAAS,GACT,SAAS,GACT,SAAS,GACT,OAAO,GACP,KAAK,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gB,EAAE,CAAA;IAE1B,qBAAqB,CAAC,EAAE,gBAAgB,CAAA;IACxC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,yBAAyB,CAAC,EAAE,OAAO,CAAA;CACpC;AAED,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,gBAAgB,EAAE,CAAA;IAC1B,IAAI,EAAE,QAAQ,CAAA;IACd,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAA;CAC9C"}
@@ -1,5 +1,10 @@
1
1
  export type FreeFormPluginData<TConfig extends Record<string, any> = any, TUIData extends Record<string, any> = Record<string, any>> = {
2
2
  config?: TConfig;
3
+ /**
4
+ * Expression twins of the `expressible` fields in `config`, mirroring its
5
+ * structure. A root-level sibling of `config`, not part of it.
6
+ */
7
+ expressions?: Record<string, any> | null;
3
8
  instance_name?: string;
4
9
  condition?: string | null;
5
10
  partials?: Array<{
@@ -1 +1 @@
1
- {"version":3,"file":"free-form.d.ts","sourceRoot":"","sources":["../../../../src/types/plugins/free-form.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,CAC5B,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EACzC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IACvD;IACF,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,IAAI,CAAA;IACtD,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CA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AAQ,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;IAChC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;IAC7B,OAAO,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;IAC/B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;CAChB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/entities-plugins",
3
- "version": "9.271.4",
3
+ "version": "9.272.0",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-plugins.umd.js",
6
6
  "module": "./dist/entities-plugins.es.js",
@@ -1,3 +0,0 @@
1
- declare const _default: import("../shared/types").PluginFormConfig;
2
- export default _default;
3
- //# sourceMappingURL=rate-limiting.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rate-limiting.d.ts","sourceRoot":"","sources":["../../../../../src/components/free-form/plugins/rate-limiting.ts"],"names":[],"mappings":";AAEA,wBAUE"}