@fkui/vue 6.1.0 → 6.2.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.
@@ -129,7 +129,9 @@ id: string;
129
129
  focusRef: HTMLElement | null;
130
130
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
131
131
 
132
- declare const __VLS_component_3: DefineComponent<IPopupListboxProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
132
+ declare const __VLS_component_3: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
133
+
134
+ declare const __VLS_component_4: DefineComponent<IPopupListboxProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
133
135
  close: () => any;
134
136
  }, string, PublicProps, Readonly<IPopupListboxProps> & Readonly<{
135
137
  onClose?: (() => any) | undefined;
@@ -160,6 +162,10 @@ declare type __VLS_PrettifyLocal_5<T> = {
160
162
  } & {};
161
163
 
162
164
  declare type __VLS_Props = {
165
+ layout: string;
166
+ };
167
+
168
+ declare type __VLS_Props_2 = {
163
169
  id: string;
164
170
  isOpen: boolean;
165
171
  options: string[];
@@ -198,6 +204,13 @@ declare function __VLS_template_2(): {
198
204
  };
199
205
 
200
206
  declare function __VLS_template_3(): {
207
+ attrs: Partial<{}>;
208
+ slots: Partial<Record<string, (_: {}) => any>>;
209
+ refs: {};
210
+ rootEl: any;
211
+ };
212
+
213
+ declare function __VLS_template_4(): {
201
214
  attrs: Partial<{}>;
202
215
  slots: {
203
216
  default?(_: {}): any;
@@ -216,6 +229,8 @@ declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
216
229
 
217
230
  declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
218
231
 
232
+ declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
233
+
219
234
  declare type __VLS_WithTemplateSlots<T, S> = T & {
220
235
  new (): {
221
236
  $slots: S;
@@ -234,6 +249,12 @@ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
234
249
  };
235
250
  };
236
251
 
252
+ declare type __VLS_WithTemplateSlots_4<T, S> = T & {
253
+ new (): {
254
+ $slots: S;
255
+ };
256
+ };
257
+
237
258
  /* Excluded from this release type: actionFromKeyboardEvent */
238
259
 
239
260
  /**
@@ -10445,6 +10466,8 @@ href: string;
10445
10466
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
10446
10467
  }, {}, string, ComponentProvideOptions, true, {}, any>;
10447
10468
 
10469
+ export declare const FPageLayout: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
10470
+
10448
10471
  export declare const FPercentTextField: DefineComponent<ExtractPropTypes< {
10449
10472
  /**
10450
10473
  * The number of decimals to format number as.
@@ -16682,10 +16705,10 @@ rotate: string;
16682
16705
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
16683
16706
  }, {}, string, ComponentProvideOptions, true, {}, any>;
16684
16707
 
16685
- export declare const IComboboxDropdown: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
16708
+ export declare const IComboboxDropdown: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
16686
16709
  close: () => any;
16687
16710
  select: (option: string) => any;
16688
- }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
16711
+ }, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{
16689
16712
  onClose?: (() => any) | undefined;
16690
16713
  onSelect?: ((option: string) => any) | undefined;
16691
16714
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
@@ -17180,7 +17203,7 @@ export declare interface IPopupErrorData {
17180
17203
  arrowOffset: number;
17181
17204
  }
17182
17205
 
17183
- export declare const IPopupListbox: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
17206
+ export declare const IPopupListbox: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
17184
17207
 
17185
17208
  declare interface IPopupListboxProps {
17186
17209
  isOpen: boolean;
@@ -17514,6 +17537,38 @@ href: string;
17514
17537
  */
17515
17538
  export declare function itemEquals<T extends object, K extends keyof T>(item1: T | undefined, item2: T | undefined, compareAttribute: K): boolean;
17516
17539
 
17540
+ /**
17541
+ * @public
17542
+ */
17543
+ export declare type LayoutAreaAttachPanel = "none" | "left" | "right" | "top" | "bottom";
17544
+
17545
+ /**
17546
+ * @public
17547
+ */
17548
+ export declare interface LayoutAreaDefinition {
17549
+ /** Where panels will attach to */
17550
+ attachPanel: LayoutAreaAttachPanel;
17551
+ /** What direction content of the area will appear (mapped to `flex-direction`) */
17552
+ direction: LayoutAreaDirection;
17553
+ /** If the content of the area is scrollable (in direction given by `direction`), default `false`. */
17554
+ scroll?: boolean;
17555
+ }
17556
+
17557
+ /**
17558
+ * @public
17559
+ */
17560
+ export declare type LayoutAreaDirection = "column" | "row";
17561
+
17562
+ /**
17563
+ * A definition of a layout for {@link FPageLayout}.
17564
+ *
17565
+ * @public
17566
+ */
17567
+ export declare interface LayoutDefinition {
17568
+ name: string;
17569
+ areas: Record<string, LayoutAreaDefinition>;
17570
+ }
17571
+
17517
17572
  /**
17518
17573
  * Represents an array of items in a list-based component (FList, FTable, etc).
17519
17574
  *
@@ -17811,6 +17866,13 @@ export declare function refIsVue(value: unknown): value is ComponentPublicInstan
17811
17866
  */
17812
17867
  export declare function refIsVueArray(value: unknown): value is ComponentPublicInstance[];
17813
17868
 
17869
+ /**
17870
+ * Register a new layout for usage with {@link FPageLayout}.
17871
+ *
17872
+ * @public
17873
+ */
17874
+ export declare function registerLayout<T extends LayoutDefinition>(definition: T): void;
17875
+
17814
17876
  /**
17815
17877
  * @public
17816
17878
  */
@@ -17964,6 +18026,25 @@ export declare const UNHANDLED_ERROR_EVENT: "unhandled-error";
17964
18026
  */
17965
18027
  export declare type UnknownItem = Record<string, unknown>;
17966
18028
 
18029
+ /**
18030
+ * @public
18031
+ */
18032
+ export declare interface UseAreaData {
18033
+ /** Name of layout area */
18034
+ readonly area: Readonly<Ref<string | null>>;
18035
+ /** Panel attachment */
18036
+ readonly attachPanel: Readonly<Ref<LayoutAreaAttachPanel | null>>;
18037
+ /** Direction area content flows */
18038
+ readonly direction: Readonly<Ref<LayoutAreaDirection | null>>;
18039
+ }
18040
+
18041
+ /**
18042
+ * Fetch information about the layout area given element belongs to.
18043
+ *
18044
+ * @public
18045
+ */
18046
+ export declare function useAreaData(element: Readonly<ShallowRef<HTMLElement | null | undefined>>): UseAreaData;
18047
+
17967
18048
  /**
17968
18049
  * @public
17969
18050
  */
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.50.0"
8
+ "packageVersion": "7.50.1"
9
9
  }
10
10
  ]
11
11
  }
@@ -430,6 +430,15 @@ module.exports = defineMetadata({
430
430
  inherit: "f-label#description",
431
431
  },
432
432
 
433
+ "f-page-layout": {
434
+ flow: true,
435
+ attributes: {
436
+ layout: {
437
+ required: true,
438
+ },
439
+ },
440
+ },
441
+
433
442
  "f-progressbar": {
434
443
  flow: true,
435
444
  requiredAttributes: ["aria-label"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fkui/vue",
3
- "version": "6.1.0",
3
+ "version": "6.2.0",
4
4
  "description": "Vue implementation of FKUI components",
5
5
  "keywords": [
6
6
  "fkui",
@@ -24,7 +24,8 @@
24
24
  },
25
25
  "./cypress": {
26
26
  "types": "./dist/types/cypress.d.ts",
27
- "default": "./dist/cjs/cypress.js"
27
+ "require": "./dist/cjs/cypress.cjs.js",
28
+ "import": "./dist/esm/cypress.esm.js"
28
29
  },
29
30
  "./htmlvalidate": "./htmlvalidate/index.cjs",
30
31
  "./htmlvalidate/cypress": "./htmlvalidate/cypress.js",
@@ -48,7 +49,7 @@
48
49
  "build:api": "fk-api-extractor --patch-augmentations api-extractor.*.json",
49
50
  "build:dts": "vue-tsc -b",
50
51
  "build:lib": "fk-build-vue-lib",
51
- "build:pageobjects": "esbuild --bundle --platform=node --target=node12.0 --sourcemap --outfile=dist/cjs/cypress.js ./src/cypress/index.ts",
52
+ "build:pageobjects": "node build-pageobjects.mjs",
52
53
  "clean": "rimraf -g .jest-cache *.tsbuildinfo coverage dist public temp test-results",
53
54
  "prepack": "release-prepack --bundle --retain-scripts",
54
55
  "postpack": "release-postpack",
@@ -59,9 +60,9 @@
59
60
  "unit:watch": "jest --watch"
60
61
  },
61
62
  "peerDependencies": {
62
- "@fkui/date": "^6.1.0",
63
- "@fkui/design": "^6.1.0",
64
- "@fkui/logic": "^6.1.0",
63
+ "@fkui/date": "^6.2.0",
64
+ "@fkui/design": "^6.2.0",
65
+ "@fkui/logic": "^6.2.0",
65
66
  "fk-icons": "^4.30.1",
66
67
  "html-validate": ">= 7.9.0",
67
68
  "vue": "^3.5.0"
@@ -78,5 +79,5 @@
78
79
  "node": ">= 20",
79
80
  "npm": ">= 7"
80
81
  },
81
- "gitHead": "70fde379fb579f9a90ed58afef5d91e5b2d2bb0d"
82
+ "gitHead": "b75730a2c2bee0c0fe8243d2de511b77c88dcbee"
82
83
  }