@fkui/vue 5.41.0 → 5.43.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.
@@ -86,6 +86,16 @@ inverted: boolean;
86
86
 
87
87
  declare const __VLS_component_2: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
88
88
 
89
+ declare const __VLS_component_3: DefineComponent<IPopupListboxProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
90
+ close: () => any;
91
+ }, string, PublicProps, Readonly<IPopupListboxProps> & Readonly<{
92
+ onClose?: (() => any) | undefined;
93
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
94
+ popup: HTMLDivElement;
95
+ wrapper: HTMLDivElement;
96
+ content: HTMLDivElement;
97
+ }, any>;
98
+
89
99
  declare function __VLS_template(): {
90
100
  attrs: Partial<{}>;
91
101
  slots: {
@@ -108,10 +118,25 @@ declare function __VLS_template_2(): {
108
118
  rootEl: HTMLDivElement;
109
119
  };
110
120
 
121
+ declare function __VLS_template_3(): {
122
+ attrs: Partial<{}>;
123
+ slots: {
124
+ default?(_: {}): any;
125
+ };
126
+ refs: {
127
+ popup: HTMLDivElement;
128
+ wrapper: HTMLDivElement;
129
+ content: HTMLDivElement;
130
+ };
131
+ rootEl: any;
132
+ };
133
+
111
134
  declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
112
135
 
113
136
  declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
114
137
 
138
+ declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
139
+
115
140
  declare type __VLS_WithTemplateSlots<T, S> = T & {
116
141
  new (): {
117
142
  $slots: S;
@@ -124,6 +149,12 @@ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
124
149
  };
125
150
  };
126
151
 
152
+ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
153
+ new (): {
154
+ $slots: S;
155
+ };
156
+ };
157
+
127
158
  /* Excluded from this release type: actionFromKeyboardEvent */
128
159
 
129
160
  /**
@@ -2767,6 +2798,17 @@ type: PropType<FModalButtonDescriptor[]>;
2767
2798
  required: false;
2768
2799
  default: () => FModalButtonDescriptor[];
2769
2800
  };
2801
+ /**
2802
+ * Default behavior is that the modal will restore focus to previous element once closed.
2803
+ * - "on" (default) - component will set focus both when opened and closed
2804
+ * - "off" - focus strategy disabled
2805
+ * - "open" - focus will only be applied once modal is opened
2806
+ */
2807
+ focus: {
2808
+ type: PropType<"on" | "off" | "open">;
2809
+ default: string;
2810
+ validator(value: string): boolean;
2811
+ };
2770
2812
  }>, {}, {}, {
2771
2813
  preparedButtons(): FModalButton[];
2772
2814
  }, {
@@ -2829,9 +2871,21 @@ type: PropType<FModalButtonDescriptor[]>;
2829
2871
  required: false;
2830
2872
  default: () => FModalButtonDescriptor[];
2831
2873
  };
2874
+ /**
2875
+ * Default behavior is that the modal will restore focus to previous element once closed.
2876
+ * - "on" (default) - component will set focus both when opened and closed
2877
+ * - "off" - focus strategy disabled
2878
+ * - "open" - focus will only be applied once modal is opened
2879
+ */
2880
+ focus: {
2881
+ type: PropType<"on" | "off" | "open">;
2882
+ default: string;
2883
+ validator(value: string): boolean;
2884
+ };
2832
2885
  }>> & Readonly<{
2833
2886
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
2834
2887
  }>, {
2888
+ focus: "on" | "off" | "open";
2835
2889
  size: string;
2836
2890
  content: string;
2837
2891
  isOpen: boolean;
@@ -2871,6 +2925,11 @@ type: StringConstructor;
2871
2925
  default: string;
2872
2926
  validator(value: string): boolean;
2873
2927
  };
2928
+ focus: {
2929
+ type: PropType<"on" | "off" | "open">;
2930
+ default: string;
2931
+ validator(value: string): boolean;
2932
+ };
2874
2933
  }>, {}, FModalData, {
2875
2934
  modalClass(): string[];
2876
2935
  containerClasses(): string[];
@@ -2913,9 +2972,15 @@ type: StringConstructor;
2913
2972
  default: string;
2914
2973
  validator(value: string): boolean;
2915
2974
  };
2975
+ focus: {
2976
+ type: PropType<"on" | "off" | "open">;
2977
+ default: string;
2978
+ validator(value: string): boolean;
2979
+ };
2916
2980
  }>> & Readonly<{
2917
2981
  onClose?: ((...args: any[]) => any) | undefined;
2918
2982
  }>, {
2983
+ focus: "on" | "off" | "open";
2919
2984
  type: "" | "warning" | "error" | "information";
2920
2985
  size: string;
2921
2986
  isOpen: boolean;
@@ -3701,6 +3766,11 @@ type: StringConstructor;
3701
3766
  default: string;
3702
3767
  validator(value: string): boolean;
3703
3768
  };
3769
+ focus: {
3770
+ type: PropType<"on" | "off" | "open">;
3771
+ default: string;
3772
+ validator(value: string): boolean;
3773
+ };
3704
3774
  }>, {}, FModalData, {
3705
3775
  modalClass(): string[];
3706
3776
  containerClasses(): string[];
@@ -3743,9 +3813,15 @@ type: StringConstructor;
3743
3813
  default: string;
3744
3814
  validator(value: string): boolean;
3745
3815
  };
3816
+ focus: {
3817
+ type: PropType<"on" | "off" | "open">;
3818
+ default: string;
3819
+ validator(value: string): boolean;
3820
+ };
3746
3821
  }>> & Readonly<{
3747
3822
  onClose?: ((...args: any[]) => any) | undefined;
3748
3823
  }>, {
3824
+ focus: "on" | "off" | "open";
3749
3825
  type: "" | "warning" | "error" | "information";
3750
3826
  size: string;
3751
3827
  isOpen: boolean;
@@ -4138,6 +4214,11 @@ type: PropType<FModalButtonDescriptor[]>;
4138
4214
  required: false;
4139
4215
  default: () => FModalButtonDescriptor[];
4140
4216
  };
4217
+ focus: {
4218
+ type: PropType<"on" | "off" | "open">;
4219
+ default: string;
4220
+ validator(value: string): boolean;
4221
+ };
4141
4222
  }>, {}, {}, {
4142
4223
  preparedButtons(): FModalButton[];
4143
4224
  }, {
@@ -4179,9 +4260,15 @@ type: PropType<FModalButtonDescriptor[]>;
4179
4260
  required: false;
4180
4261
  default: () => FModalButtonDescriptor[];
4181
4262
  };
4263
+ focus: {
4264
+ type: PropType<"on" | "off" | "open">;
4265
+ default: string;
4266
+ validator(value: string): boolean;
4267
+ };
4182
4268
  }>> & Readonly<{
4183
4269
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
4184
4270
  }>, {
4271
+ focus: "on" | "off" | "open";
4185
4272
  size: string;
4186
4273
  content: string;
4187
4274
  isOpen: boolean;
@@ -4221,6 +4308,11 @@ type: StringConstructor;
4221
4308
  default: string;
4222
4309
  validator(value: string): boolean;
4223
4310
  };
4311
+ focus: {
4312
+ type: PropType<"on" | "off" | "open">;
4313
+ default: string;
4314
+ validator(value: string): boolean;
4315
+ };
4224
4316
  }>, {}, FModalData, {
4225
4317
  modalClass(): string[];
4226
4318
  containerClasses(): string[];
@@ -4263,9 +4355,15 @@ type: StringConstructor;
4263
4355
  default: string;
4264
4356
  validator(value: string): boolean;
4265
4357
  };
4358
+ focus: {
4359
+ type: PropType<"on" | "off" | "open">;
4360
+ default: string;
4361
+ validator(value: string): boolean;
4362
+ };
4266
4363
  }>> & Readonly<{
4267
4364
  onClose?: ((...args: any[]) => any) | undefined;
4268
4365
  }>, {
4366
+ focus: "on" | "off" | "open";
4269
4367
  type: "" | "warning" | "error" | "information";
4270
4368
  size: string;
4271
4369
  isOpen: boolean;
@@ -8433,6 +8531,11 @@ type: StringConstructor;
8433
8531
  default: string;
8434
8532
  validator(value: string): boolean;
8435
8533
  };
8534
+ focus: {
8535
+ type: PropType<"on" | "off" | "open">;
8536
+ default: string;
8537
+ validator(value: string): boolean;
8538
+ };
8436
8539
  }>, {}, FModalData, {
8437
8540
  modalClass(): string[];
8438
8541
  containerClasses(): string[];
@@ -8475,9 +8578,15 @@ type: StringConstructor;
8475
8578
  default: string;
8476
8579
  validator(value: string): boolean;
8477
8580
  };
8581
+ focus: {
8582
+ type: PropType<"on" | "off" | "open">;
8583
+ default: string;
8584
+ validator(value: string): boolean;
8585
+ };
8478
8586
  }>> & Readonly<{
8479
8587
  onClose?: ((...args: any[]) => any) | undefined;
8480
8588
  }>, {
8589
+ focus: "on" | "off" | "open";
8481
8590
  type: "" | "warning" | "error" | "information";
8482
8591
  size: string;
8483
8592
  isOpen: boolean;
@@ -10794,6 +10903,17 @@ type: StringConstructor;
10794
10903
  default: string;
10795
10904
  validator(value: string): boolean;
10796
10905
  };
10906
+ /**
10907
+ * Default behavior is that the modal will restore focus to previous element once closed.
10908
+ * - "on" (default) - component will set focus both when opened and closed
10909
+ * - "off" - focus strategy disabled
10910
+ * - "open" - focus will only be applied once modal is opened
10911
+ */
10912
+ focus: {
10913
+ type: PropType<"on" | "off" | "open">;
10914
+ default: string;
10915
+ validator(value: string): boolean;
10916
+ };
10797
10917
  }>, {}, FModalData, {
10798
10918
  modalClass(): string[];
10799
10919
  containerClasses(): string[];
@@ -10863,9 +10983,21 @@ type: StringConstructor;
10863
10983
  default: string;
10864
10984
  validator(value: string): boolean;
10865
10985
  };
10986
+ /**
10987
+ * Default behavior is that the modal will restore focus to previous element once closed.
10988
+ * - "on" (default) - component will set focus both when opened and closed
10989
+ * - "off" - focus strategy disabled
10990
+ * - "open" - focus will only be applied once modal is opened
10991
+ */
10992
+ focus: {
10993
+ type: PropType<"on" | "off" | "open">;
10994
+ default: string;
10995
+ validator(value: string): boolean;
10996
+ };
10866
10997
  }>> & Readonly<{
10867
10998
  onClose?: ((...args: any[]) => any) | undefined;
10868
10999
  }>, {
11000
+ focus: "on" | "off" | "open";
10869
11001
  type: "" | "warning" | "error" | "information";
10870
11002
  size: string;
10871
11003
  isOpen: boolean;
@@ -17009,9 +17141,9 @@ validator(value: string): value is FTableColumnType;
17009
17141
  type: "text" | "date" | "action" | "numeric";
17010
17142
  description: string;
17011
17143
  shrink: boolean;
17144
+ expand: boolean;
17012
17145
  visible: boolean;
17013
17146
  rowHeader: boolean;
17014
- expand: boolean;
17015
17147
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
17016
17148
 
17017
17149
  /**
@@ -18438,8 +18570,8 @@ default(): AnimationCallback;
18438
18570
  };
18439
18571
  }>> & Readonly<{}>, {
18440
18572
  animate: boolean;
18441
- expanded: string | number | boolean;
18442
18573
  useVShow: boolean;
18574
+ expanded: string | number | boolean;
18443
18575
  opacity: boolean;
18444
18576
  beforeAnimation: AnimationCallback;
18445
18577
  afterAnimation: AnimationCallback;
@@ -19157,8 +19289,8 @@ default(): AnimationCallback;
19157
19289
  };
19158
19290
  }>> & Readonly<{}>, {
19159
19291
  animate: boolean;
19160
- expanded: string | number | boolean;
19161
19292
  useVShow: boolean;
19293
+ expanded: string | number | boolean;
19162
19294
  opacity: boolean;
19163
19295
  beforeAnimation: AnimationCallback;
19164
19296
  afterAnimation: AnimationCallback;
@@ -19962,6 +20094,15 @@ export declare interface IPopupErrorData {
19962
20094
  arrowOffset: number;
19963
20095
  }
19964
20096
 
20097
+ export declare const IPopupListbox: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
20098
+
20099
+ declare interface IPopupListboxProps {
20100
+ isOpen: boolean;
20101
+ anchor: HTMLElement | null;
20102
+ numOfItems: number;
20103
+ itemHeight?: number;
20104
+ }
20105
+
19965
20106
  export declare const IPopupMenu: DefineComponent<ExtractPropTypes< {
19966
20107
  /**
19967
20108
  * Key of the currently selected and highlighted item.
@@ -228,4 +228,26 @@ module.exports = defineMetadata({
228
228
  },
229
229
  },
230
230
  },
231
+
232
+ "i-popup-listbox": {
233
+ flow: true,
234
+ interactive: true,
235
+ permittedContent: ["@flow"],
236
+ permittedDescendants: [{ exclude: ["@interactive"] }],
237
+ attributes: {
238
+ "is-open": {
239
+ boolean: true,
240
+ required: true,
241
+ },
242
+ anchor: {
243
+ required: true,
244
+ },
245
+ numOfItems: {
246
+ required: true,
247
+ },
248
+ itemHeight: {
249
+ required: false,
250
+ },
251
+ },
252
+ },
231
253
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fkui/vue",
3
- "version": "5.41.0",
3
+ "version": "5.43.0",
4
4
  "description": "Vue implementation of FKUI components",
5
5
  "keywords": [
6
6
  "fkui",
@@ -79,5 +79,5 @@
79
79
  "node": ">= 20",
80
80
  "npm": ">= 7"
81
81
  },
82
- "gitHead": "41ad991a815606ff0f0b7ebd4c9ecc4789ca32f1"
82
+ "gitHead": "ba47827ac97cfa01defc879b00bb07c5b01ca5b0"
83
83
  }