@getcortexlabs/mavis 0.1.0-alpha.8 → 0.1.0-alpha.9

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 (73) hide show
  1. package/README.md +4 -2
  2. package/dist/date-format.android.d.ts +5 -0
  3. package/dist/date-format.android.d.ts.map +1 -0
  4. package/dist/date-format.android.js +39 -0
  5. package/dist/date-format.android.js.map +1 -0
  6. package/dist/date-format.d.ts +3 -0
  7. package/dist/date-format.d.ts.map +1 -0
  8. package/dist/date-format.ios.d.ts +5 -0
  9. package/dist/date-format.ios.d.ts.map +1 -0
  10. package/dist/date-format.ios.js +29 -0
  11. package/dist/date-format.ios.js.map +1 -0
  12. package/dist/date-format.js +2 -0
  13. package/dist/date-format.js.map +1 -0
  14. package/dist/native/date-format.android.d.ts +5 -0
  15. package/dist/native/date-format.android.d.ts.map +1 -0
  16. package/dist/native/date-format.android.js +39 -0
  17. package/dist/native/date-format.android.js.map +1 -0
  18. package/dist/native/date-format.d.ts +6 -0
  19. package/dist/native/date-format.d.ts.map +1 -0
  20. package/dist/native/date-format.ios.d.ts +5 -0
  21. package/dist/native/date-format.ios.d.ts.map +1 -0
  22. package/dist/native/date-format.ios.js +29 -0
  23. package/dist/native/date-format.ios.js.map +1 -0
  24. package/dist/native/date-format.js +8 -0
  25. package/dist/native/date-format.js.map +1 -0
  26. package/dist/vue/components/DateCalendar.d.ts +1 -1
  27. package/dist/vue/components/MButton.d.ts.map +1 -1
  28. package/dist/vue/components/MButton.js +4 -3
  29. package/dist/vue/components/MButton.js.map +1 -1
  30. package/dist/vue/components/MCard.d.ts.map +1 -1
  31. package/dist/vue/components/MCard.js +4 -3
  32. package/dist/vue/components/MCard.js.map +1 -1
  33. package/dist/vue/components/MDatePicker.d.ts +56 -8
  34. package/dist/vue/components/MDatePicker.d.ts.map +1 -1
  35. package/dist/vue/components/MDatePicker.js +4 -14
  36. package/dist/vue/components/MDatePicker.js.map +1 -1
  37. package/dist/vue/components/MGrid.d.ts +165 -0
  38. package/dist/vue/components/MGrid.d.ts.map +1 -0
  39. package/dist/vue/components/MGrid.js +52 -0
  40. package/dist/vue/components/MGrid.js.map +1 -0
  41. package/dist/vue/components/MImage.d.ts +45 -0
  42. package/dist/vue/components/MImage.d.ts.map +1 -1
  43. package/dist/vue/components/MInput.d.ts +2 -2
  44. package/dist/vue/components/MInput.d.ts.map +1 -1
  45. package/dist/vue/components/MInput.js +15 -0
  46. package/dist/vue/components/MInput.js.map +1 -1
  47. package/dist/vue/components/MLink.d.ts.map +1 -1
  48. package/dist/vue/components/MLink.js +6 -11
  49. package/dist/vue/components/MLink.js.map +1 -1
  50. package/dist/vue/components/MSheet.d.ts +9 -0
  51. package/dist/vue/components/MSheet.d.ts.map +1 -1
  52. package/dist/vue/components/configurator.d.ts +3 -3
  53. package/dist/vue/index.d.ts +11 -11
  54. package/dist/vue/index.d.ts.map +1 -1
  55. package/dist/vue/index.js +12 -12
  56. package/dist/vue/index.js.map +1 -1
  57. package/dist/vue/services.d.ts +16 -0
  58. package/dist/vue/services.d.ts.map +1 -0
  59. package/dist/vue/services.js +18 -0
  60. package/dist/vue/services.js.map +1 -0
  61. package/package.json +14 -3
  62. package/src/date-format.ts +2 -0
  63. package/src/native/date-format.android.ts +72 -0
  64. package/src/native/date-format.ios.ts +54 -0
  65. package/src/native/date-format.ts +17 -0
  66. package/src/vue/components/MButton.ts +4 -2
  67. package/src/vue/components/MCard.ts +4 -2
  68. package/src/vue/components/MDatePicker.ts +3 -11
  69. package/src/vue/components/MGrid.ts +86 -0
  70. package/src/vue/components/MInput.ts +14 -3
  71. package/src/vue/components/MLink.ts +12 -9
  72. package/src/vue/index.ts +63 -69
  73. package/src/vue/services.ts +32 -0
@@ -81,6 +81,10 @@ export declare const MDatePicker: {
81
81
  } & {
82
82
  default: undefined;
83
83
  };
84
+ dateFormat: {
85
+ type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").DateInputFormat>;
86
+ default: "iso";
87
+ };
84
88
  id: {
85
89
  type: import("nativescript-vue").PropType<string>;
86
90
  } & {
@@ -117,6 +121,7 @@ export declare const MDatePicker: {
117
121
  accessibilityHidden: boolean;
118
122
  helperText: string;
119
123
  readonly: boolean;
124
+ locale: import("@getcortexlabs/mavis-core").DateLocale;
120
125
  min: `${number}-${number}-${number}`;
121
126
  max: `${number}-${number}-${number}`;
122
127
  clearable: boolean;
@@ -126,8 +131,8 @@ export declare const MDatePicker: {
126
131
  calendarLabel: string;
127
132
  initialMonth: string;
128
133
  unavailableDates: readonly `${number}-${number}-${number}`[];
129
- locale: import("@getcortexlabs/mavis-core").DateLocale;
130
134
  firstDayOfWeek: number;
135
+ dateFormat: import("@getcortexlabs/mavis-core").DateInputFormat;
131
136
  }, true, {}, {}, import("nativescript-vue").GlobalComponents, import("nativescript-vue").GlobalDirectives, string, {}, any, import("nativescript-vue").ComponentProvideOptions, {
132
137
  P: {};
133
138
  B: {};
@@ -217,6 +222,10 @@ export declare const MDatePicker: {
217
222
  } & {
218
223
  default: undefined;
219
224
  };
225
+ dateFormat: {
226
+ type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").DateInputFormat>;
227
+ default: "iso";
228
+ };
220
229
  id: {
221
230
  type: import("nativescript-vue").PropType<string>;
222
231
  } & {
@@ -247,6 +256,7 @@ export declare const MDatePicker: {
247
256
  accessibilityHidden: boolean;
248
257
  helperText: string;
249
258
  readonly: boolean;
259
+ locale: import("@getcortexlabs/mavis-core").DateLocale;
250
260
  min: `${number}-${number}-${number}`;
251
261
  max: `${number}-${number}-${number}`;
252
262
  clearable: boolean;
@@ -256,8 +266,8 @@ export declare const MDatePicker: {
256
266
  calendarLabel: string;
257
267
  initialMonth: string;
258
268
  unavailableDates: readonly `${number}-${number}-${number}`[];
259
- locale: import("@getcortexlabs/mavis-core").DateLocale;
260
269
  firstDayOfWeek: number;
270
+ dateFormat: import("@getcortexlabs/mavis-core").DateInputFormat;
261
271
  }>;
262
272
  __isFragment?: never;
263
273
  __isTeleport?: never;
@@ -344,6 +354,10 @@ export declare const MDatePicker: {
344
354
  } & {
345
355
  default: undefined;
346
356
  };
357
+ dateFormat: {
358
+ type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").DateInputFormat>;
359
+ default: "iso";
360
+ };
347
361
  id: {
348
362
  type: import("nativescript-vue").PropType<string>;
349
363
  } & {
@@ -380,6 +394,7 @@ export declare const MDatePicker: {
380
394
  accessibilityHidden: boolean;
381
395
  helperText: string;
382
396
  readonly: boolean;
397
+ locale: import("@getcortexlabs/mavis-core").DateLocale;
383
398
  min: `${number}-${number}-${number}`;
384
399
  max: `${number}-${number}-${number}`;
385
400
  clearable: boolean;
@@ -389,8 +404,8 @@ export declare const MDatePicker: {
389
404
  calendarLabel: string;
390
405
  initialMonth: string;
391
406
  unavailableDates: readonly `${number}-${number}-${number}`[];
392
- locale: import("@getcortexlabs/mavis-core").DateLocale;
393
407
  firstDayOfWeek: number;
408
+ dateFormat: import("@getcortexlabs/mavis-core").DateInputFormat;
394
409
  }, {}, string, {}, import("nativescript-vue").GlobalComponents, import("nativescript-vue").GlobalDirectives, string, import("nativescript-vue").ComponentProvideOptions> & import("nativescript-vue").VNodeProps & import("nativescript-vue").AllowedComponentProps & import("nativescript-vue").ComponentCustomProps & (new () => InstanceType<import("nativescript-vue").DefineComponent<import("nativescript-vue").ExtractPropTypes<{
395
410
  draft: {
396
411
  type: StringConstructor;
@@ -473,6 +488,10 @@ export declare const MDatePicker: {
473
488
  } & {
474
489
  default: undefined;
475
490
  };
491
+ dateFormat: {
492
+ type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").DateInputFormat>;
493
+ default: "iso";
494
+ };
476
495
  id: {
477
496
  type: import("nativescript-vue").PropType<string>;
478
497
  } & {
@@ -573,6 +592,10 @@ export declare const MDatePicker: {
573
592
  } & {
574
593
  default: undefined;
575
594
  };
595
+ dateFormat: {
596
+ type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").DateInputFormat>;
597
+ default: "iso";
598
+ };
576
599
  id: {
577
600
  type: import("nativescript-vue").PropType<string>;
578
601
  } & {
@@ -601,6 +624,7 @@ export declare const MDatePicker: {
601
624
  accessibilityHidden: boolean;
602
625
  helperText: string;
603
626
  readonly: boolean;
627
+ locale: import("@getcortexlabs/mavis-core").DateLocale;
604
628
  min: `${number}-${number}-${number}`;
605
629
  max: `${number}-${number}-${number}`;
606
630
  clearable: boolean;
@@ -610,8 +634,8 @@ export declare const MDatePicker: {
610
634
  calendarLabel: string;
611
635
  initialMonth: string;
612
636
  unavailableDates: readonly `${number}-${number}-${number}`[];
613
- locale: import("@getcortexlabs/mavis-core").DateLocale;
614
637
  firstDayOfWeek: number;
638
+ dateFormat: import("@getcortexlabs/mavis-core").DateInputFormat;
615
639
  }, {}, {}, {}, string, import("nativescript-vue").ComponentProvideOptions, true, {}, any>> & import("@getcortexlabs/mavis-core").InputHandle), MDateRangePicker: {
616
640
  new (...args: any[]): import("nativescript-vue").CreateComponentPublicInstanceWithMixins<Readonly<import("nativescript-vue").ExtractPropTypes<{
617
641
  draft: {
@@ -707,6 +731,10 @@ export declare const MDatePicker: {
707
731
  } & {
708
732
  default: undefined;
709
733
  };
734
+ dateFormat: {
735
+ type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").DateInputFormat>;
736
+ default: "iso";
737
+ };
710
738
  id: {
711
739
  type: import("nativescript-vue").PropType<string>;
712
740
  } & {
@@ -742,6 +770,7 @@ export declare const MDatePicker: {
742
770
  accessibilityHidden: boolean;
743
771
  helperText: string;
744
772
  readonly: boolean;
773
+ locale: import("@getcortexlabs/mavis-core").DateLocale;
745
774
  min: `${number}-${number}-${number}`;
746
775
  max: `${number}-${number}-${number}`;
747
776
  clearable: boolean;
@@ -751,8 +780,8 @@ export declare const MDatePicker: {
751
780
  calendarLabel: string;
752
781
  initialMonth: string;
753
782
  unavailableDates: readonly `${number}-${number}-${number}`[];
754
- locale: import("@getcortexlabs/mavis-core").DateLocale;
755
783
  firstDayOfWeek: number;
784
+ dateFormat: import("@getcortexlabs/mavis-core").DateInputFormat;
756
785
  startLabel: string;
757
786
  endLabel: string;
758
787
  startName: string;
@@ -858,6 +887,10 @@ export declare const MDatePicker: {
858
887
  } & {
859
888
  default: undefined;
860
889
  };
890
+ dateFormat: {
891
+ type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").DateInputFormat>;
892
+ default: "iso";
893
+ };
861
894
  id: {
862
895
  type: import("nativescript-vue").PropType<string>;
863
896
  } & {
@@ -887,6 +920,7 @@ export declare const MDatePicker: {
887
920
  accessibilityHidden: boolean;
888
921
  helperText: string;
889
922
  readonly: boolean;
923
+ locale: import("@getcortexlabs/mavis-core").DateLocale;
890
924
  min: `${number}-${number}-${number}`;
891
925
  max: `${number}-${number}-${number}`;
892
926
  clearable: boolean;
@@ -896,8 +930,8 @@ export declare const MDatePicker: {
896
930
  calendarLabel: string;
897
931
  initialMonth: string;
898
932
  unavailableDates: readonly `${number}-${number}-${number}`[];
899
- locale: import("@getcortexlabs/mavis-core").DateLocale;
900
933
  firstDayOfWeek: number;
934
+ dateFormat: import("@getcortexlabs/mavis-core").DateInputFormat;
901
935
  startLabel: string;
902
936
  endLabel: string;
903
937
  startName: string;
@@ -1000,6 +1034,10 @@ export declare const MDatePicker: {
1000
1034
  } & {
1001
1035
  default: undefined;
1002
1036
  };
1037
+ dateFormat: {
1038
+ type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").DateInputFormat>;
1039
+ default: "iso";
1040
+ };
1003
1041
  id: {
1004
1042
  type: import("nativescript-vue").PropType<string>;
1005
1043
  } & {
@@ -1035,6 +1073,7 @@ export declare const MDatePicker: {
1035
1073
  accessibilityHidden: boolean;
1036
1074
  helperText: string;
1037
1075
  readonly: boolean;
1076
+ locale: import("@getcortexlabs/mavis-core").DateLocale;
1038
1077
  min: `${number}-${number}-${number}`;
1039
1078
  max: `${number}-${number}-${number}`;
1040
1079
  clearable: boolean;
@@ -1044,8 +1083,8 @@ export declare const MDatePicker: {
1044
1083
  calendarLabel: string;
1045
1084
  initialMonth: string;
1046
1085
  unavailableDates: readonly `${number}-${number}-${number}`[];
1047
- locale: import("@getcortexlabs/mavis-core").DateLocale;
1048
1086
  firstDayOfWeek: number;
1087
+ dateFormat: import("@getcortexlabs/mavis-core").DateInputFormat;
1049
1088
  startLabel: string;
1050
1089
  endLabel: string;
1051
1090
  startName: string;
@@ -1144,6 +1183,10 @@ export declare const MDatePicker: {
1144
1183
  } & {
1145
1184
  default: undefined;
1146
1185
  };
1186
+ dateFormat: {
1187
+ type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").DateInputFormat>;
1188
+ default: "iso";
1189
+ };
1147
1190
  id: {
1148
1191
  type: import("nativescript-vue").PropType<string>;
1149
1192
  } & {
@@ -1256,6 +1299,10 @@ export declare const MDatePicker: {
1256
1299
  } & {
1257
1300
  default: undefined;
1258
1301
  };
1302
+ dateFormat: {
1303
+ type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").DateInputFormat>;
1304
+ default: "iso";
1305
+ };
1259
1306
  id: {
1260
1307
  type: import("nativescript-vue").PropType<string>;
1261
1308
  } & {
@@ -1283,6 +1330,7 @@ export declare const MDatePicker: {
1283
1330
  accessibilityHidden: boolean;
1284
1331
  helperText: string;
1285
1332
  readonly: boolean;
1333
+ locale: import("@getcortexlabs/mavis-core").DateLocale;
1286
1334
  min: `${number}-${number}-${number}`;
1287
1335
  max: `${number}-${number}-${number}`;
1288
1336
  clearable: boolean;
@@ -1292,8 +1340,8 @@ export declare const MDatePicker: {
1292
1340
  calendarLabel: string;
1293
1341
  initialMonth: string;
1294
1342
  unavailableDates: readonly `${number}-${number}-${number}`[];
1295
- locale: import("@getcortexlabs/mavis-core").DateLocale;
1296
1343
  firstDayOfWeek: number;
1344
+ dateFormat: import("@getcortexlabs/mavis-core").DateInputFormat;
1297
1345
  startLabel: string;
1298
1346
  endLabel: string;
1299
1347
  startName: string;
@@ -1 +1 @@
1
- {"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;;;;;;;;;;;;;;6IAD/3+B,CAAA"}
@@ -1,14 +1,13 @@
1
- import { Utils, isAndroid } from '@nativescript/core';
1
+ import { Utils } from '@nativescript/core';
2
2
  import { createDatePickers } from '@getcortexlabs/mavis-core/vue';
3
3
  import { MInput } from './MInput.js';
4
4
  import { MButton } from './MButton.js';
5
5
  import { MColumn, MRow } from './layout.js';
6
6
  import { MSheet } from './MSheet.js';
7
7
  import { DateCalendar } from './DateCalendar.js';
8
- import { notifyAccessibilityLayout } from '../../native/accessibility-layout';
9
8
  function focusOpener(opener) {
10
- const view = opener?.$el?.nativeView;
11
- view?.focus();
9
+ ;
10
+ opener?.focusAction?.();
12
11
  }
13
12
  export const { MDatePicker, MDateRangePicker } = createDatePickers({
14
13
  Input: MInput,
@@ -21,15 +20,6 @@ export const { MDatePicker, MDateRangePicker } = createDatePickers({
21
20
  Utils.dismissKeyboard();
22
21
  focusOpener(opener);
23
22
  },
24
- afterClose: (opener) => {
25
- const view = opener?.$el?.nativeView;
26
- if (!view?.isLoaded)
27
- return;
28
- view.focus();
29
- if (isAndroid)
30
- view.android.performAccessibilityAction(64, null);
31
- else
32
- notifyAccessibilityLayout(view);
33
- },
23
+ afterClose: focusOpener,
34
24
  });
35
25
  //# sourceMappingURL=MDatePicker.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MDatePicker.js","sourceRoot":"","sources":["../../../src/vue/components/MDatePicker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAa,MAAM,oBAAoB,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,YAA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AI,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAEhD,SAAS,WAAW,CAAC,MAAe;IAClC,CAAC;IAAC,MAAmD,EAAE,WAAW,EAAE,EAAE,CAAA;AACxE,CAAC;AAED,MAAM,CAAC,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,GAAG,iBAAiB,CAAC;IACjE,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,OAAO;IACf,MAAM,EAAE,OAAO;IACf,GAAG,EAAE,IAAI;IACT,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,YAAY;IACtB,UAAU,EAAE,CAAC,MAAM,EAAE,EAAE;QACrB,KAAK,CAAC,eAAe,EAAE,CAAA;QACvB,WAAW,CAAC,MAAM,CAAC,CAAA;IACrB,CAAC;IACD,UAAU,EAAE,WAAW;CACxB,CAAC,CAAA"}
@@ -0,0 +1,165 @@
1
+ import { type VNode } from 'nativescript-vue';
2
+ import './layout.js';
3
+ export declare const MGrid: import("nativescript-vue").DefineComponent<import("nativescript-vue").ExtractPropTypes<{
4
+ columns: {
5
+ type: NumberConstructor;
6
+ default: undefined;
7
+ };
8
+ minColumnWidth: {
9
+ type: NumberConstructor;
10
+ default: undefined;
11
+ };
12
+ gap: {
13
+ type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
14
+ } & {
15
+ default: undefined;
16
+ };
17
+ padding: {
18
+ type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
19
+ } & {
20
+ default: undefined;
21
+ };
22
+ paddingX: {
23
+ type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
24
+ } & {
25
+ default: undefined;
26
+ };
27
+ paddingY: {
28
+ type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
29
+ } & {
30
+ default: undefined;
31
+ };
32
+ radius: {
33
+ type: import("nativescript-vue").PropType<number | import("@getcortexlabs/mavis-core").Radius>;
34
+ } & {
35
+ default: undefined;
36
+ };
37
+ width: {
38
+ type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Dimension>;
39
+ } & {
40
+ default: undefined;
41
+ };
42
+ height: {
43
+ type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Dimension>;
44
+ } & {
45
+ default: undefined;
46
+ };
47
+ backgroundColor: {
48
+ type: import("nativescript-vue").PropType<string>;
49
+ };
50
+ grow: {
51
+ type: import("nativescript-vue").PropType<number>;
52
+ } & {
53
+ default: number;
54
+ };
55
+ shrink: {
56
+ type: import("nativescript-vue").PropType<number>;
57
+ } & {
58
+ default: undefined;
59
+ };
60
+ id: {
61
+ type: import("nativescript-vue").PropType<string>;
62
+ } & {
63
+ default: undefined;
64
+ };
65
+ accessibilityLabel: {
66
+ type: import("nativescript-vue").PropType<string>;
67
+ } & {
68
+ default: undefined;
69
+ };
70
+ accessibilityHidden: {
71
+ type: import("nativescript-vue").PropType<boolean>;
72
+ } & {
73
+ default: undefined;
74
+ };
75
+ }>, () => VNode<import("nativescript-vue").RendererNode, import("nativescript-vue").RendererElement, {
76
+ [key: string]: any;
77
+ }>, {}, {}, {}, import("nativescript-vue").ComponentOptionsMixin, import("nativescript-vue").ComponentOptionsMixin, {}, string, import("nativescript-vue").PublicProps, Readonly<import("nativescript-vue").ExtractPropTypes<{
78
+ columns: {
79
+ type: NumberConstructor;
80
+ default: undefined;
81
+ };
82
+ minColumnWidth: {
83
+ type: NumberConstructor;
84
+ default: undefined;
85
+ };
86
+ gap: {
87
+ type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
88
+ } & {
89
+ default: undefined;
90
+ };
91
+ padding: {
92
+ type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
93
+ } & {
94
+ default: undefined;
95
+ };
96
+ paddingX: {
97
+ type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
98
+ } & {
99
+ default: undefined;
100
+ };
101
+ paddingY: {
102
+ type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Spacing>;
103
+ } & {
104
+ default: undefined;
105
+ };
106
+ radius: {
107
+ type: import("nativescript-vue").PropType<number | import("@getcortexlabs/mavis-core").Radius>;
108
+ } & {
109
+ default: undefined;
110
+ };
111
+ width: {
112
+ type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Dimension>;
113
+ } & {
114
+ default: undefined;
115
+ };
116
+ height: {
117
+ type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Dimension>;
118
+ } & {
119
+ default: undefined;
120
+ };
121
+ backgroundColor: {
122
+ type: import("nativescript-vue").PropType<string>;
123
+ };
124
+ grow: {
125
+ type: import("nativescript-vue").PropType<number>;
126
+ } & {
127
+ default: number;
128
+ };
129
+ shrink: {
130
+ type: import("nativescript-vue").PropType<number>;
131
+ } & {
132
+ default: undefined;
133
+ };
134
+ id: {
135
+ type: import("nativescript-vue").PropType<string>;
136
+ } & {
137
+ default: undefined;
138
+ };
139
+ accessibilityLabel: {
140
+ type: import("nativescript-vue").PropType<string>;
141
+ } & {
142
+ default: undefined;
143
+ };
144
+ accessibilityHidden: {
145
+ type: import("nativescript-vue").PropType<boolean>;
146
+ } & {
147
+ default: undefined;
148
+ };
149
+ }>> & Readonly<{}>, {
150
+ padding: import("@getcortexlabs/mavis-core").Spacing;
151
+ accessibilityHidden: boolean;
152
+ accessibilityLabel: string;
153
+ width: import("@getcortexlabs/mavis-core").Dimension;
154
+ height: import("@getcortexlabs/mavis-core").Dimension;
155
+ id: string;
156
+ radius: number | import("@getcortexlabs/mavis-core").Radius;
157
+ grow: number;
158
+ shrink: number;
159
+ paddingX: import("@getcortexlabs/mavis-core").Spacing;
160
+ paddingY: import("@getcortexlabs/mavis-core").Spacing;
161
+ gap: import("@getcortexlabs/mavis-core").Spacing;
162
+ columns: number;
163
+ minColumnWidth: number;
164
+ }, {}, {}, {}, string, import("nativescript-vue").ComponentProvideOptions, true, {}, any>;
165
+ //# sourceMappingURL=MGrid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MGrid.d.ts","sourceRoot":"","sources":["../../../src/vue/components/MGrid.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,KAAK,EACX,MAAM,kBAAkB,CAAA;AAWzB,OAAO,aAAa,CAAA;AAEpB,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yFA6DhB,CAAA"}
@@ -0,0 +1,52 @@
1
+ import { Comment, Fragment, Text, createVNode, defineComponent, h, mergeProps, provide, shallowRef, } from 'nativescript-vue';
2
+ import { gridColumns, resolveSpace } from '@getcortexlabs/mavis-core';
3
+ import { gridProps, layoutDirection, useLayoutShrink, useMavisTheme, } from '@getcortexlabs/mavis-core/vue';
4
+ import { boxStyle } from '../props.js';
5
+ import { useNativeViewAttrs } from '../accessibility.js';
6
+ import './layout.js';
7
+ export const MGrid = defineComponent({
8
+ name: 'MGrid',
9
+ inheritAttrs: false,
10
+ props: gridProps,
11
+ setup(props, { attrs, slots }) {
12
+ const { theme } = useMavisTheme();
13
+ const shrink = useLayoutShrink();
14
+ const nativeAttrs = useNativeViewAttrs(props);
15
+ provide(layoutDirection, 'column');
16
+ const width = shallowRef();
17
+ return () => {
18
+ const gap = resolveSpace(theme.value, props.gap ?? 'none');
19
+ const count = gridColumns(props.columns, props.minColumnWidth, gap, width.value);
20
+ let index = 0;
21
+ // Keep fragment boundaries so independently keyed slot groups retain their identity.
22
+ const place = (nodes) => nodes.flatMap((child) => {
23
+ if (child.type === Fragment)
24
+ return [
25
+ createVNode(Fragment, { key: child.key ?? undefined }, place(child.children)),
26
+ ];
27
+ if (child.type === Comment || (child.type === Text && !String(child.children).trim()))
28
+ return [];
29
+ const cell = index++;
30
+ return [
31
+ h('MavisBox', {
32
+ key: child.key ?? cell,
33
+ col: (cell % count) * 2,
34
+ row: Math.floor(cell / count) * 2,
35
+ }, [child]),
36
+ ];
37
+ });
38
+ const children = place(slots.default?.() ?? []);
39
+ const rows = Math.ceil(index / count);
40
+ return h('MavisBox', mergeProps({ style: boxStyle(theme.value, props, shrink.value) }, nativeAttrs(), attrs), [
41
+ h('GridLayout', {
42
+ columns: Array.from({ length: count }, () => '*').join(`,${gap},`),
43
+ rows: Array.from({ length: rows }, () => 'auto').join(`,${gap},`),
44
+ onLayoutChanged: (event) => {
45
+ width.value = event.object.getActualSize().width;
46
+ },
47
+ }, children),
48
+ ]);
49
+ };
50
+ },
51
+ });
52
+ //# sourceMappingURL=MGrid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MGrid.js","sourceRoot":"","sources":["../../../src/vue/components/MGrid.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,WAAW,EACX,eAAe,EACf,CAAC,EACD,UAAU,EACV,OAAO,EACP,UAAU,GAEX,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACrE,OAAO,EACL,SAAS,EACT,eAAe,EACf,eAAe,EACf,aAAa,GACd,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AACxD,OAAO,aAAa,CAAA;AAEpB,MAAM,CAAC,MAAM,KAAK,GAAG,eAAe,CAAC;IACnC,IAAI,EAAE,OAAO;IACb,YAAY,EAAE,KAAK;IACnB,KAAK,EAAE,SAAS;IAChB,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;QAC3B,MAA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EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC;qBAClC,EACD,CAAC,KAAK,CAAC,CACR;iBACF,CAAA;YACH,CAAC,CAAC,CAAA;YACJ,MAAM,QAAQ,GAAG,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,CAAA;YAC/C,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,CAAA;YACrC,OAAO,CAAC,CACN,UAAU,EACV,UAAU,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,WAAW,EAAE,EAAE,KAAK,CAAC,EACvF;gBACE,CAAC,CACC,YAAY,EACZ;oBACE,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;oBAClE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;oBACjE,eAAe,EAAE,CAAC,KAAgB,EAAE,EAAE;wBACpC,KAAK,CAAC,KAAK,GAAI,KAAK,CAAC,MAAe,CAAC,aAAa,EAAE,CAAC,KAAK,CAAA;oBAC5D,CAAC;iBACF,EACD,QAAQ,CACT;aACF,CACF,CAAA;QACH,CAAC,CAAA;IACH,CAAC;CACF,CAAC,CAAA"}
@@ -85,6 +85,26 @@ export declare const MImage: import("nativescript-vue").DefineComponent<import("
85
85
  } & {
86
86
  default: undefined;
87
87
  };
88
+ srcset: {
89
+ type: StringConstructor;
90
+ default: undefined;
91
+ };
92
+ sizes: {
93
+ type: StringConstructor;
94
+ default: undefined;
95
+ };
96
+ loading: {
97
+ type: import("nativescript-vue").PropType<"eager" | "lazy">;
98
+ default: undefined;
99
+ };
100
+ decoding: {
101
+ type: import("nativescript-vue").PropType<"async" | "sync" | "auto">;
102
+ default: undefined;
103
+ };
104
+ fetchpriority: {
105
+ type: import("nativescript-vue").PropType<"high" | "low" | "auto">;
106
+ default: undefined;
107
+ };
88
108
  }>, () => import("nativescript-vue").VNode<import("nativescript-vue").RendererNode, import("nativescript-vue").RendererElement, {
89
109
  [key: string]: any;
90
110
  }>, {}, {}, {}, import("nativescript-vue").ComponentOptionsMixin, import("nativescript-vue").ComponentOptionsMixin, {
@@ -178,6 +198,26 @@ export declare const MImage: import("nativescript-vue").DefineComponent<import("
178
198
  } & {
179
199
  default: undefined;
180
200
  };
201
+ srcset: {
202
+ type: StringConstructor;
203
+ default: undefined;
204
+ };
205
+ sizes: {
206
+ type: StringConstructor;
207
+ default: undefined;
208
+ };
209
+ loading: {
210
+ type: import("nativescript-vue").PropType<"eager" | "lazy">;
211
+ default: undefined;
212
+ };
213
+ decoding: {
214
+ type: import("nativescript-vue").PropType<"async" | "sync" | "auto">;
215
+ default: undefined;
216
+ };
217
+ fetchpriority: {
218
+ type: import("nativescript-vue").PropType<"high" | "low" | "auto">;
219
+ default: undefined;
220
+ };
181
221
  }>> & Readonly<{
182
222
  onError?: ((_src: string) => any) | undefined;
183
223
  onLoad?: ((_src: string) => any) | undefined;
@@ -195,9 +235,14 @@ export declare const MImage: import("nativescript-vue").DefineComponent<import("
195
235
  motionSurface: import("@getcortexlabs/mavis-core/experimental").MotionSurface;
196
236
  paddingX: import("@getcortexlabs/mavis-core").Spacing;
197
237
  paddingY: import("@getcortexlabs/mavis-core").Spacing;
238
+ loading: "eager" | "lazy";
198
239
  aspectRatio: number;
199
240
  fit: "cover" | "contain";
200
241
  loadingLabel: string;
201
242
  errorLabel: string;
243
+ srcset: string;
244
+ sizes: string;
245
+ decoding: "auto" | "sync" | "async";
246
+ fetchpriority: "auto" | "high" | "low";
202
247
  }, {}, {}, {}, string, import("nativescript-vue").ComponentProvideOptions, true, {}, any>;
203
248
  //# sourceMappingURL=MImage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MImage.d.ts","sourceRoot":"","sources":["../../../src/vue/components/MImage.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKF,MAAM;kBACL,MAAM;yBACC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yFA0J7B,CAAA"}
1
+ {"version":3,"file":"MImage.d.ts","sourceRoot":"","sources":["../../../src/vue/components/MImage.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKF,MAAM;kBACL,MAAM;yBACC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yFA0J7B,CAAA"}
@@ -1,4 +1,4 @@
1
- import { type InputHandle } from '@getcortexlabs/mavis-core';
1
+ import { type InputActionHandle } from '@getcortexlabs/mavis-core';
2
2
  declare const Input: import("nativescript-vue").DefineComponent<import("nativescript-vue").ExtractPropTypes<{
3
3
  width: {
4
4
  type: import("nativescript-vue").PropType<import("@getcortexlabs/mavis-core").Dimension>;
@@ -314,7 +314,7 @@ declare const Input: import("nativescript-vue").DefineComponent<import("nativesc
314
314
  trailingAction: import("@getcortexlabs/mavis-core").InputAction;
315
315
  }, {}, {}, {}, string, import("nativescript-vue").ComponentProvideOptions, true, {}, any>;
316
316
  export declare const MInput: typeof Input & {
317
- new (): InstanceType<typeof Input> & InputHandle;
317
+ new (): InstanceType<typeof Input> & InputActionHandle;
318
318
  };
319
319
  export {};
320
320
  //# sourceMappingURL=MInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MInput.d.ts","sourceRoot":"","sources":["../../../src/vue/components/MInput.ts"],"names":[],"mappings":"AAmBA,OAAO,EAQL,KAAK,WAAW,EACjB,MAAM,2BAA2B,CAAA;AAclC,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yFA8OT,CAAA;AAGF,eAAO,MAAM,MAAM,EAAY,OAAO,KAAK,GAAG;IAC5C,QAAQ,YAAY,CAAC,OAAO,KAAK,CAAC,GAAG,WAAW,CAAA;CACjD,CAAA"}
1
+ {"version":3,"file":"MInput.d.ts","sourceRoot":"","sources":["../../../src/vue/components/MInput.ts"],"names":[],"mappings":"AAmBA,OAAO,EAQL,KAAK,iBAAiB,EACvB,MAAM,2BAA2B,CAAA;AAelC,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yFAwPT,CAAA;AAGF,eAAO,MAAM,MAAM,EAAY,OAAO,KAAK,GAAG;IAC5C,QAAQ,YAAY,CAAC,OAAO,KAAK,CAAC,GAAG,iBAAiB,CAAA;CACvD,CAAA"}
@@ -9,6 +9,7 @@ import { MIcon } from './MIcon.js';
9
9
  import { MButton } from './MButton.js';
10
10
  import { keepEditingOn } from '../../native/input-action';
11
11
  import { useNativeViewAttrs } from '../accessibility.js';
12
+ import { notifyAccessibilityLayout } from '../../native/accessibility-layout';
12
13
  registerElement('MavisTextField', () => MavisTextField);
13
14
  registerElement('MavisTextView', () => MavisTextView);
14
15
  const Input = defineComponent({
@@ -23,6 +24,7 @@ const Input = defineComponent({
23
24
  provide(layoutDirection, 'column');
24
25
  const nativeAttrs = useNativeViewAttrs(props);
25
26
  const editor = shallowRef();
27
+ const actionButton = shallowRef();
26
28
  const focused = ref(false);
27
29
  let focusFeedback;
28
30
  function cancelFocusFeedback() {
@@ -48,6 +50,18 @@ const Input = defineComponent({
48
50
  blur();
49
51
  });
50
52
  expose({
53
+ focusAction: () => {
54
+ if (props.disabled || props.readonly || props.trailingAction?.disabled)
55
+ return;
56
+ const view = actionButton.value?.$el?.nativeView;
57
+ if (!view?.isLoaded)
58
+ return;
59
+ view.focus();
60
+ if (isAndroid)
61
+ view.android?.performAccessibilityAction(64, null);
62
+ else
63
+ notifyAccessibilityLayout(view);
64
+ },
51
65
  focus: () => {
52
66
  if (!props.disabled && !props.readonly)
53
67
  editor.value?.nativeView.focus();
@@ -199,6 +213,7 @@ const Input = defineComponent({
199
213
  icon(props.trailingIcon, true),
200
214
  action
201
215
  ? h(MButton, {
216
+ ref: actionButton,
202
217
  row: 1,
203
218
  icon: action.icon,
204
219
  accessibilityLabel: action.label,