@omnia/fx 8.0.95-vnext → 8.0.96-vnext

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.
@@ -1,5 +1,5 @@
1
- import { BladeSizes, Func, IIcon } from "@omnia/fx-models";
2
- import { ConfirmDialogOptions, IBladeApi } from "@omnia/fx/ux";
1
+ import { BladeSizes, Func, Guid, GuidValue, IIcon } from "@omnia/fx-models";
2
+ import { ConfirmDialogOptions } from "@omnia/fx/ux";
3
3
  import { VNodeChild, nextTick } from "vue";
4
4
  declare const _default: {
5
5
  new (...args: any[]): {
@@ -10,7 +10,7 @@ declare const _default: {
10
10
  style?: unknown;
11
11
  class?: unknown;
12
12
  key?: string | number | symbol;
13
- readonly id?: string;
13
+ readonly id?: Guid;
14
14
  readonly delete?: boolean;
15
15
  readonly size?: BladeSizes;
16
16
  ref?: import("vue").VNodeRef;
@@ -65,13 +65,12 @@ declare const _default: {
65
65
  readonly loading?: boolean;
66
66
  readonly settings?: boolean;
67
67
  readonly remove?: boolean;
68
- readonly getApi?: (api: IBladeApi) => void;
69
68
  readonly save?: boolean;
70
69
  readonly create?: boolean;
71
70
  readonly ok?: boolean;
72
71
  readonly subTitle?: string;
73
72
  onDoc$?: (description?: string) => any;
74
- "onClick:cancel"?: (id: string) => any;
73
+ "onClick:cancel"?: (id: GuidValue) => any;
75
74
  readonly searchable?: boolean;
76
75
  readonly onOk?: () => boolean | Promise<boolean>;
77
76
  readonly onRemove?: () => boolean | Promise<boolean>;
@@ -79,9 +78,9 @@ declare const _default: {
79
78
  readonly onDelete?: () => boolean | Promise<boolean>;
80
79
  readonly confirmDeleteDialogOption?: unknown;
81
80
  onSearch?: (searchText: string) => any;
82
- "onClick:add"?: (id: string) => any;
83
- "onClick:back"?: (id: string) => any;
84
- "onClick:settings"?: (id: string) => any;
81
+ "onClick:add"?: (id: GuidValue) => any;
82
+ "onClick:back"?: (id: GuidValue) => any;
83
+ "onClick:settings"?: (id: GuidValue) => any;
85
84
  };
86
85
  $attrs: {
87
86
  [x: string]: unknown;
@@ -94,7 +93,7 @@ declare const _default: {
94
93
  }>;
95
94
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
96
95
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
97
- $emit: ((event: "search", searchText: string) => void) & ((event: "doc$", description?: string) => void) & ((event: "click:cancel", id: string) => void) & ((event: "click:add", id: string) => void) & ((event: "click:back", id: string) => void) & ((event: "click:settings", id: string) => void);
96
+ $emit: ((event: "search", searchText: string) => void) & ((event: "doc$", description?: string) => void) & ((event: "click:cancel", id: GuidValue) => void) & ((event: "click:add", id: GuidValue) => void) & ((event: "click:back", id: GuidValue) => void) & ((event: "click:settings", id: GuidValue) => void);
98
97
  $el: any;
99
98
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
100
99
  "v-slots": import("vue").Prop<{
@@ -118,9 +117,6 @@ declare const _default: {
118
117
  onOk: {
119
118
  type: import("vue").PropType<() => boolean | Promise<boolean>>;
120
119
  };
121
- getApi: {
122
- type: import("vue").PropType<(api: IBladeApi) => void>;
123
- };
124
120
  variant: {
125
121
  type: import("vue").PropType<"info" | "new" | "edit">;
126
122
  };
@@ -156,7 +152,7 @@ declare const _default: {
156
152
  required: false;
157
153
  };
158
154
  id: {
159
- type: import("vue").PropType<string>;
155
+ type: import("vue").PropType<Guid>;
160
156
  };
161
157
  subTitle: {
162
158
  type: import("vue").PropType<string>;
@@ -166,20 +162,20 @@ declare const _default: {
166
162
  };
167
163
  }>> & {
168
164
  onDoc$?: (description?: string) => any;
169
- "onClick:cancel"?: (id: string) => any;
165
+ "onClick:cancel"?: (id: GuidValue) => any;
170
166
  onSearch?: (searchText: string) => any;
171
- "onClick:add"?: (id: string) => any;
172
- "onClick:back"?: (id: string) => any;
173
- "onClick:settings"?: (id: string) => any;
167
+ "onClick:add"?: (id: GuidValue) => any;
168
+ "onClick:back"?: (id: GuidValue) => any;
169
+ "onClick:settings"?: (id: GuidValue) => any;
174
170
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
175
171
  search: (searchText: string) => true;
176
172
  doc$(description?: string): {
177
173
  search: (searchText: string) => true;
178
174
  };
179
- "click:settings": (id: string) => true;
180
- "click:cancel": (id: string) => true;
181
- "click:back": (id: string) => true;
182
- "click:add": (id: string) => true;
175
+ "click:settings": (id: GuidValue) => true;
176
+ "click:cancel": (id: GuidValue) => true;
177
+ "click:back": (id: GuidValue) => true;
178
+ "click:add": (id: GuidValue) => true;
183
179
  }, string, {}, {}, string, {}> & {
184
180
  beforeCreate?: (() => void) | (() => void)[];
185
181
  created?: (() => void) | (() => void)[];
@@ -222,9 +218,6 @@ declare const _default: {
222
218
  onOk: {
223
219
  type: import("vue").PropType<() => boolean | Promise<boolean>>;
224
220
  };
225
- getApi: {
226
- type: import("vue").PropType<(api: IBladeApi) => void>;
227
- };
228
221
  variant: {
229
222
  type: import("vue").PropType<"info" | "new" | "edit">;
230
223
  };
@@ -260,7 +253,7 @@ declare const _default: {
260
253
  required: false;
261
254
  };
262
255
  id: {
263
- type: import("vue").PropType<string>;
256
+ type: import("vue").PropType<Guid>;
264
257
  };
265
258
  subTitle: {
266
259
  type: import("vue").PropType<string>;
@@ -270,11 +263,11 @@ declare const _default: {
270
263
  };
271
264
  }>> & {
272
265
  onDoc$?: (description?: string) => any;
273
- "onClick:cancel"?: (id: string) => any;
266
+ "onClick:cancel"?: (id: GuidValue) => any;
274
267
  onSearch?: (searchText: string) => any;
275
- "onClick:add"?: (id: string) => any;
276
- "onClick:back"?: (id: string) => any;
277
- "onClick:settings"?: (id: string) => any;
268
+ "onClick:add"?: (id: GuidValue) => any;
269
+ "onClick:back"?: (id: GuidValue) => any;
270
+ "onClick:settings"?: (id: GuidValue) => any;
278
271
  } & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
279
272
  __isFragment?: never;
280
273
  __isTeleport?: never;
@@ -301,9 +294,6 @@ declare const _default: {
301
294
  onOk: {
302
295
  type: import("vue").PropType<() => boolean | Promise<boolean>>;
303
296
  };
304
- getApi: {
305
- type: import("vue").PropType<(api: IBladeApi) => void>;
306
- };
307
297
  variant: {
308
298
  type: import("vue").PropType<"info" | "new" | "edit">;
309
299
  };
@@ -339,7 +329,7 @@ declare const _default: {
339
329
  required: false;
340
330
  };
341
331
  id: {
342
- type: import("vue").PropType<string>;
332
+ type: import("vue").PropType<Guid>;
343
333
  };
344
334
  subTitle: {
345
335
  type: import("vue").PropType<string>;
@@ -349,24 +339,24 @@ declare const _default: {
349
339
  };
350
340
  }>> & {
351
341
  onDoc$?: (description?: string) => any;
352
- "onClick:cancel"?: (id: string) => any;
342
+ "onClick:cancel"?: (id: GuidValue) => any;
353
343
  onSearch?: (searchText: string) => any;
354
- "onClick:add"?: (id: string) => any;
355
- "onClick:back"?: (id: string) => any;
356
- "onClick:settings"?: (id: string) => any;
344
+ "onClick:add"?: (id: GuidValue) => any;
345
+ "onClick:back"?: (id: GuidValue) => any;
346
+ "onClick:settings"?: (id: GuidValue) => any;
357
347
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
358
348
  search: (searchText: string) => true;
359
349
  doc$(description?: string): {
360
350
  search: (searchText: string) => true;
361
351
  };
362
- "click:settings": (id: string) => true;
363
- "click:cancel": (id: string) => true;
364
- "click:back": (id: string) => true;
365
- "click:add": (id: string) => true;
352
+ "click:settings": (id: GuidValue) => true;
353
+ "click:cancel": (id: GuidValue) => true;
354
+ "click:back": (id: GuidValue) => true;
355
+ "click:add": (id: GuidValue) => true;
366
356
  }, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
367
357
  propsDefinition: Omit<Readonly<{} & {
368
358
  title?: string;
369
- id?: string;
359
+ id?: Guid;
370
360
  delete?: boolean;
371
361
  size?: BladeSizes;
372
362
  icon?: IIcon;
@@ -380,7 +370,6 @@ declare const _default: {
380
370
  loading?: boolean;
381
371
  settings?: boolean;
382
372
  remove?: boolean;
383
- getApi?: (api: IBladeApi) => void;
384
373
  save?: boolean;
385
374
  create?: boolean;
386
375
  ok?: boolean;
@@ -393,11 +382,11 @@ declare const _default: {
393
382
  confirmDeleteDialogOption?: unknown;
394
383
  }>, "onDoc$" | "onClick:cancel" | "onSearch" | "onClick:add" | "onClick:back" | "onClick:settings"> & {
395
384
  onDoc$?: (description?: string) => any;
396
- "onClick:cancel"?: (id: string) => any;
385
+ "onClick:cancel"?: (id: GuidValue) => any;
397
386
  onSearch?: (searchText: string) => any;
398
- "onClick:add"?: (id: string) => any;
399
- "onClick:back"?: (id: string) => any;
400
- "onClick:settings"?: (id: string) => any;
387
+ "onClick:add"?: (id: GuidValue) => any;
388
+ "onClick:back"?: (id: GuidValue) => any;
389
+ "onClick:settings"?: (id: GuidValue) => any;
401
390
  };
402
391
  };
403
392
  export default _default;
@@ -1,4 +1,4 @@
1
- import { IIcon, JourneyMenuItem } from "@omnia/fx-models";
1
+ import { Guid, IIcon, JourneyMenuItem } from "@omnia/fx-models";
2
2
  import { VNode } from "vue";
3
3
  declare const _default: {
4
4
  new (...args: any[]): {
@@ -9,7 +9,7 @@ declare const _default: {
9
9
  style?: unknown;
10
10
  class?: unknown;
11
11
  key?: string | number | symbol;
12
- readonly id?: string;
12
+ readonly id?: Guid;
13
13
  ref?: import("vue").VNodeRef;
14
14
  ref_for?: boolean;
15
15
  ref_key?: string;
@@ -91,7 +91,7 @@ declare const _default: {
91
91
  type: import("vue").PropType<IIcon>;
92
92
  };
93
93
  id: {
94
- type: import("vue").PropType<string>;
94
+ type: import("vue").PropType<Guid>;
95
95
  };
96
96
  title: {
97
97
  type: import("vue").PropType<string>;
@@ -137,7 +137,7 @@ declare const _default: {
137
137
  type: import("vue").PropType<IIcon>;
138
138
  };
139
139
  id: {
140
- type: import("vue").PropType<string>;
140
+ type: import("vue").PropType<Guid>;
141
141
  };
142
142
  title: {
143
143
  type: import("vue").PropType<string>;
@@ -165,7 +165,7 @@ declare const _default: {
165
165
  type: import("vue").PropType<IIcon>;
166
166
  };
167
167
  id: {
168
- type: import("vue").PropType<string>;
168
+ type: import("vue").PropType<Guid>;
169
169
  };
170
170
  title: {
171
171
  type: import("vue").PropType<string>;
@@ -177,7 +177,7 @@ declare const _default: {
177
177
  }, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
178
178
  propsDefinition: Omit<Readonly<{} & {
179
179
  title?: string;
180
- id?: string;
180
+ id?: Guid;
181
181
  icon?: IIcon;
182
182
  "v-slots"?: {
183
183
  default?: import("../../DefineVueTypings").Slot<any[]>;
@@ -1,14 +1,9 @@
1
1
  import { BladeSizes, GuidValue } from "@omnia/fx-models";
2
2
  export interface BladeInstance {
3
- uniqueId: GuidValue;
4
- id: string;
3
+ id: GuidValue;
5
4
  size: BladeSizes;
6
5
  visible?: boolean;
7
6
  active?: boolean;
8
7
  stacked?: boolean;
9
- }
10
- export interface IBladeApi {
11
- moveNext(): void;
12
- movePrev(): void;
13
- travelTo(bladeId: string): void;
8
+ disabledSaveButton?: boolean;
14
9
  }
@@ -1,3 +1,4 @@
1
+ import { GuidValue } from "@omnia/fx-models";
1
2
  import { BladeInstance } from "@omnia/fx/ux";
2
3
  import { useJourneyMenuStore } from "./JourneyMenuStore";
3
4
  export type JourneyStore = ReturnType<typeof useJourneyStore>;
@@ -6,7 +7,6 @@ export declare const useJourneyStore: (newInstanceWithName?: string) => {
6
7
  blades: BladeInstance[];
7
8
  activeIndex: number;
8
9
  nested: boolean;
9
- disabledSave: boolean;
10
10
  journeyMenuStore: {
11
11
  state: {
12
12
  menuItems: import("@omnia/fx-models").JourneyMenuItem[];
@@ -41,21 +41,26 @@ export declare const useJourneyStore: (newInstanceWithName?: string) => {
41
41
  events: { [K in keyof T as `onMutating${Capitalize<string & K>}` | `onMutated${Capitalize<string & K>}`]: import("@omnia/fx").EventHook<T[K]>; };
42
42
  deactivated(): void;
43
43
  }, "state" | "deactivated">;
44
- blade: (id: string) => BladeInstance;
45
- showBackButton: (bladeId: string) => boolean;
44
+ blade: (id: GuidValue) => BladeInstance;
45
+ showBackButton: (bladeId: GuidValue) => boolean;
46
46
  readonly isNested: boolean;
47
47
  };
48
48
  actions: {
49
- createObservableValueToSave: <T_1>(value: T_1) => {
50
- value: T_1;
51
- setValue: (value: T_1) => void;
49
+ getBladeApis: (bladeId: GuidValue) => {
50
+ moveNext(): void;
51
+ movePrev(): void;
52
+ travelTo(toBladeId: string): void;
53
+ createObservableValueToSave<T_1>(value: T_1): {
54
+ value: T_1;
55
+ setValue: (value: T_1) => void;
56
+ };
52
57
  };
53
58
  addBlade: (blade: BladeInstance) => void;
54
59
  removeBlade: (blade: BladeInstance) => void;
55
60
  setActiveIndex: (index: number) => void;
56
- moveNext: (fromBladeId?: string) => void;
57
- movePrev: (fromBladeId?: string) => void;
58
- travelTo: (id: string, fromBladeId?: string) => void;
61
+ moveNext: (fromBladeId: GuidValue) => void;
62
+ movePrev: (fromBladeId: GuidValue) => void;
63
+ travelTo: (fromBladeId: GuidValue, toBladeId: GuidValue) => void;
59
64
  setNested: (menuStore: ReturnType<typeof useJourneyMenuStore>) => void;
60
65
  };
61
66
  events: {
@@ -65,8 +70,6 @@ export declare const useJourneyStore: (newInstanceWithName?: string) => {
65
70
  onMutatedActiveIndex: import("@omnia/fx").EventHook<number>;
66
71
  onMutatingNested: import("@omnia/fx").EventHook<boolean>;
67
72
  onMutatedNested: import("@omnia/fx").EventHook<boolean>;
68
- onMutatingDisabledSave: import("@omnia/fx").EventHook<boolean>;
69
- onMutatedDisabledSave: import("@omnia/fx").EventHook<boolean>;
70
73
  onMutatingJourneyMenuStore: import("@omnia/fx").EventHook<{
71
74
  state: {
72
75
  menuItems: import("@omnia/fx-models").JourneyMenuItem[];
@@ -12,7 +12,7 @@ interface RenderingItem {
12
12
  }
13
13
  type LanguageSlots = {
14
14
  chip?: (item: RenderingItem, index: Number) => VNodeChild;
15
- selection?: (item: RenderingItem, index: Number) => VNodeChild;
15
+ item?: (item: RenderingItem, index: Number) => VNodeChild;
16
16
  };
17
17
  declare const _default: {
18
18
  new (...args: any[]): {
@@ -54,8 +54,8 @@ declare const _default: {
54
54
  readonly color?: string;
55
55
  readonly icon?: IIcon;
56
56
  readonly location?: Position;
57
- readonly "offset-x"?: string | number;
58
57
  readonly "offset-y"?: string | number;
58
+ readonly "offset-x"?: string | number;
59
59
  };
60
60
  $attrs: {
61
61
  [x: string]: unknown;
@@ -189,8 +189,8 @@ declare const _default: {
189
189
  color?: string;
190
190
  icon?: IIcon;
191
191
  location?: Position;
192
- "offset-x"?: string | number;
193
192
  "offset-y"?: string | number;
193
+ "offset-x"?: string | number;
194
194
  }>, never>;
195
195
  };
196
196
  export default _default;