@webx-ui/module-inbox 0.11.5 → 0.12.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.
@@ -0,0 +1,24 @@
1
+ import { FieldOptions, InboxField } from './types';
2
+ /**
3
+ * «Show» of the field dialog (FORM_STEPS §9.2): always, if, or unless some answers above were
4
+ * given. Only choice fields that stand above this one are offered — the site works visibility
5
+ * out in one pass from the top, so a field cannot count on an answer below it.
6
+ *
7
+ * A simple editor on purpose (§4.5): rows joined by "and", answers inside a row by "or". The
8
+ * condition builder of webx-ui#55 takes this same place when it comes.
9
+ */
10
+ type __VLS_Props = {
11
+ /** The options of the field being edited; `when` / `unless` are read from them. */
12
+ options: FieldOptions;
13
+ /** The fields above this one, in their order: what a condition may name. */
14
+ above: InboxField[];
15
+ /** Every field of the form, for the words of a name that is no longer above. */
16
+ fields: InboxField[];
17
+ errors?: string[];
18
+ };
19
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
+ "update:options": (options: FieldOptions) => any;
21
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
22
+ "onUpdate:options"?: ((options: FieldOptions) => any) | undefined;
23
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
24
+ export default _default;
@@ -13,8 +13,14 @@ type __VLS_Props = {
13
13
  form: InboxForm;
14
14
  /** The names the form's other fields answer to. */
15
15
  taken?: string[];
16
+ /** The form's fields in their order: a condition names one of those above this field. */
17
+ fields?: InboxField[];
18
+ /** A new row that starts a step (FORM_STEPS §3.1), not a question. */
19
+ step?: boolean;
16
20
  };
17
21
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
22
+ fields: InboxField[];
23
+ step: boolean;
18
24
  taken: string[];
19
25
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
26
  export default _default;