sky-ui-kit 0.1.2 → 0.1.4

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.
package/components.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "package": "sky-ui-kit",
4
- "version": "0.1.2",
4
+ "version": "0.1.4",
5
5
  "elementPlusVersion": "2.14.7",
6
6
  "setup": {
7
7
  "cssOnce": [
@@ -2148,6 +2148,12 @@
2148
2148
  "kind": "project-component",
2149
2149
  "importFrom": "sky-ui-kit",
2150
2150
  "props": [
2151
+ {
2152
+ "name": "flat",
2153
+ "type": "boolean",
2154
+ "required": false,
2155
+ "defaultExpression": "false"
2156
+ },
2151
2157
  {
2152
2158
  "name": "title",
2153
2159
  "type": "string",
@@ -2160,6 +2166,18 @@
2160
2166
  "required": false,
2161
2167
  "defaultExpression": "'rain'"
2162
2168
  },
2169
+ {
2170
+ "name": "multiple",
2171
+ "type": "boolean",
2172
+ "required": false,
2173
+ "defaultExpression": "false"
2174
+ },
2175
+ {
2176
+ "name": "activeKeys",
2177
+ "type": "string[]",
2178
+ "required": false,
2179
+ "defaultExpression": "() => []"
2180
+ },
2163
2181
  {
2164
2182
  "name": "dark",
2165
2183
  "type": "boolean",
@@ -2185,6 +2203,16 @@
2185
2203
  "type": "[key: string]",
2186
2204
  "required": true
2187
2205
  },
2206
+ {
2207
+ "name": "update:activeKeys",
2208
+ "type": "[keys: string[]]",
2209
+ "required": true
2210
+ },
2211
+ {
2212
+ "name": "change",
2213
+ "type": "[keys: string[]]",
2214
+ "required": true
2215
+ },
2188
2216
  {
2189
2217
  "name": "update:compact",
2190
2218
  "type": "[value: boolean]",
@@ -2224,6 +2252,12 @@
2224
2252
  "type": "Record<string, Component>",
2225
2253
  "required": false,
2226
2254
  "defaultExpression": "() => ({})"
2255
+ },
2256
+ {
2257
+ "name": "items",
2258
+ "type": "MapToolItem[]",
2259
+ "required": false,
2260
+ "defaultExpression": null
2227
2261
  }
2228
2262
  ],
2229
2263
  "events": [
@@ -2244,7 +2278,9 @@
2244
2278
  }
2245
2279
  ],
2246
2280
  "slots": [],
2247
- "types": [],
2281
+ "types": [
2282
+ "export interface MapToolItem { key: string; label: string; icon?: Component }"
2283
+ ],
2248
2284
  "source": "src/components/MapTools.vue"
2249
2285
  },
2250
2286
  {
@@ -2340,6 +2376,247 @@
2340
2376
  "types": [],
2341
2377
  "source": "src/components/ProcessDataTable.vue"
2342
2378
  },
2379
+ {
2380
+ "name": "WorkbenchShell",
2381
+ "kind": "project-component",
2382
+ "importFrom": "sky-ui-kit",
2383
+ "props": [
2384
+ {
2385
+ "name": "collapsed",
2386
+ "type": "boolean",
2387
+ "required": false,
2388
+ "defaultExpression": "false"
2389
+ }
2390
+ ],
2391
+ "events": [],
2392
+ "slots": [
2393
+ "default"
2394
+ ],
2395
+ "types": [],
2396
+ "source": "src/components/WorkbenchShell.vue"
2397
+ },
2398
+ {
2399
+ "name": "WorkbenchPanel",
2400
+ "kind": "project-component",
2401
+ "importFrom": "sky-ui-kit",
2402
+ "props": [
2403
+ {
2404
+ "name": "as",
2405
+ "type": "'section' | 'aside' | 'div'",
2406
+ "required": false,
2407
+ "defaultExpression": "'section'"
2408
+ },
2409
+ {
2410
+ "name": "floating",
2411
+ "type": "boolean",
2412
+ "required": false,
2413
+ "defaultExpression": "true"
2414
+ }
2415
+ ],
2416
+ "events": [],
2417
+ "slots": [
2418
+ "default"
2419
+ ],
2420
+ "types": [],
2421
+ "source": "src/components/WorkbenchPanel.vue"
2422
+ },
2423
+ {
2424
+ "name": "MetricCard",
2425
+ "kind": "project-component",
2426
+ "importFrom": "sky-ui-kit",
2427
+ "props": [
2428
+ {
2429
+ "name": "label",
2430
+ "type": "string",
2431
+ "required": true,
2432
+ "defaultExpression": null
2433
+ },
2434
+ {
2435
+ "name": "value",
2436
+ "type": "string | number",
2437
+ "required": false,
2438
+ "defaultExpression": "'—'"
2439
+ },
2440
+ {
2441
+ "name": "unit",
2442
+ "type": "string",
2443
+ "required": false,
2444
+ "defaultExpression": "''"
2445
+ },
2446
+ {
2447
+ "name": "tone",
2448
+ "type": "'blue' | 'cyan' | 'green' | 'purple'",
2449
+ "required": false,
2450
+ "defaultExpression": "'blue'"
2451
+ },
2452
+ {
2453
+ "name": "compact",
2454
+ "type": "boolean",
2455
+ "required": false,
2456
+ "defaultExpression": "false"
2457
+ }
2458
+ ],
2459
+ "events": [],
2460
+ "slots": [
2461
+ "icon"
2462
+ ],
2463
+ "types": [],
2464
+ "source": "src/components/MetricCard.vue"
2465
+ },
2466
+ {
2467
+ "name": "ProcessChart",
2468
+ "kind": "project-component",
2469
+ "importFrom": "sky-ui-kit",
2470
+ "props": [
2471
+ {
2472
+ "name": "rows",
2473
+ "type": "ProcessChartRow[]",
2474
+ "required": true,
2475
+ "defaultExpression": null
2476
+ },
2477
+ {
2478
+ "name": "engine",
2479
+ "type": "ProcessChartEngine",
2480
+ "required": true,
2481
+ "defaultExpression": null
2482
+ },
2483
+ {
2484
+ "name": "kind",
2485
+ "type": "'rain' | 'flow' | 'line'",
2486
+ "required": false,
2487
+ "defaultExpression": "'rain'"
2488
+ },
2489
+ {
2490
+ "name": "unit",
2491
+ "type": "string",
2492
+ "required": false,
2493
+ "defaultExpression": "''"
2494
+ },
2495
+ {
2496
+ "name": "label",
2497
+ "type": "string",
2498
+ "required": false,
2499
+ "defaultExpression": null
2500
+ }
2501
+ ],
2502
+ "events": [],
2503
+ "slots": [],
2504
+ "types": [
2505
+ "export interface ProcessChartRow { time: string; value: number | null }",
2506
+ "export interface ProcessChartInstance { setOption: (option: Record<string, unknown>, notMerge?: boolean) => void; resize: () => void; dispose: () => void }",
2507
+ "export interface ProcessChartEngine { init: (element: HTMLElement) => ProcessChartInstance }"
2508
+ ],
2509
+ "source": "src/components/ProcessChart.vue"
2510
+ },
2511
+ {
2512
+ "name": "MapLayerControl",
2513
+ "kind": "project-component",
2514
+ "importFrom": "sky-ui-kit",
2515
+ "props": [
2516
+ {
2517
+ "name": "nodes",
2518
+ "type": "MapLayerNode[]",
2519
+ "required": true,
2520
+ "defaultExpression": null
2521
+ },
2522
+ {
2523
+ "name": "basemap",
2524
+ "type": "string",
2525
+ "required": false,
2526
+ "defaultExpression": "'imagery'"
2527
+ },
2528
+ {
2529
+ "name": "annotation",
2530
+ "type": "boolean",
2531
+ "required": false,
2532
+ "defaultExpression": "true"
2533
+ }
2534
+ ],
2535
+ "events": [
2536
+ {
2537
+ "name": "update:basemap",
2538
+ "type": "[value: string]",
2539
+ "required": true
2540
+ },
2541
+ {
2542
+ "name": "update:annotation",
2543
+ "type": "[value: boolean]",
2544
+ "required": true
2545
+ },
2546
+ {
2547
+ "name": "visibility",
2548
+ "type": "[node: MapLayerNode, visible: boolean]",
2549
+ "required": true
2550
+ },
2551
+ {
2552
+ "name": "opacity",
2553
+ "type": "[node: MapLayerNode, value: number]",
2554
+ "required": true
2555
+ },
2556
+ {
2557
+ "name": "move",
2558
+ "type": "[dragId: string, targetId: string, position: string]",
2559
+ "required": true
2560
+ },
2561
+ {
2562
+ "name": "remove",
2563
+ "type": "[node: MapLayerNode]",
2564
+ "required": true
2565
+ },
2566
+ {
2567
+ "name": "locate",
2568
+ "type": "[node: MapLayerNode]",
2569
+ "required": true
2570
+ },
2571
+ {
2572
+ "name": "close",
2573
+ "type": "[]",
2574
+ "required": true
2575
+ }
2576
+ ],
2577
+ "slots": [],
2578
+ "types": [
2579
+ "export interface MapLayerNode { id: string; name: string; visible?: boolean; opacity?: number; disabled?: boolean; removable?: boolean; children?: MapLayerNode[] }"
2580
+ ],
2581
+ "source": "src/components/MapLayerControl.vue"
2582
+ },
2583
+ {
2584
+ "name": "TemplateLayout",
2585
+ "kind": "project-component",
2586
+ "importFrom": "sky-ui-kit",
2587
+ "props": [
2588
+ {
2589
+ "name": "rightOpen",
2590
+ "type": "boolean",
2591
+ "required": false,
2592
+ "defaultExpression": "false"
2593
+ },
2594
+ {
2595
+ "name": "rightPanelEnabled",
2596
+ "type": "boolean",
2597
+ "required": false,
2598
+ "defaultExpression": "true"
2599
+ },
2600
+ {
2601
+ "name": "rightPanelWidth",
2602
+ "type": "string",
2603
+ "required": false,
2604
+ "defaultExpression": "''"
2605
+ }
2606
+ ],
2607
+ "events": [],
2608
+ "slots": [
2609
+ "top",
2610
+ "toolbar",
2611
+ "right",
2612
+ "legend",
2613
+ "timeline",
2614
+ "content",
2615
+ "default"
2616
+ ],
2617
+ "types": [],
2618
+ "source": "src/components/TemplateLayout.vue"
2619
+ },
2343
2620
  {
2344
2621
  "name": "UiAffix",
2345
2622
  "kind": "element-plus-component",
@@ -0,0 +1,38 @@
1
+ export interface MapLayerNode {
2
+ id: string;
3
+ name: string;
4
+ visible?: boolean;
5
+ opacity?: number;
6
+ disabled?: boolean;
7
+ removable?: boolean;
8
+ children?: MapLayerNode[];
9
+ }
10
+ type __VLS_Props = {
11
+ nodes: MapLayerNode[];
12
+ basemap?: string;
13
+ annotation?: boolean;
14
+ };
15
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ close: () => any;
17
+ remove: (node: MapLayerNode) => any;
18
+ opacity: (node: MapLayerNode, value: number) => any;
19
+ visibility: (node: MapLayerNode, visible: boolean) => any;
20
+ move: (dragId: string, targetId: string, position: string) => any;
21
+ locate: (node: MapLayerNode) => any;
22
+ "update:basemap": (value: string) => any;
23
+ "update:annotation": (value: boolean) => any;
24
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ onClose?: (() => any) | undefined;
26
+ onRemove?: ((node: MapLayerNode) => any) | undefined;
27
+ onOpacity?: ((node: MapLayerNode, value: number) => any) | undefined;
28
+ onVisibility?: ((node: MapLayerNode, visible: boolean) => any) | undefined;
29
+ onMove?: ((dragId: string, targetId: string, position: string) => any) | undefined;
30
+ onLocate?: ((node: MapLayerNode) => any) | undefined;
31
+ "onUpdate:basemap"?: ((value: string) => any) | undefined;
32
+ "onUpdate:annotation"?: ((value: boolean) => any) | undefined;
33
+ }>, {
34
+ annotation: boolean;
35
+ basemap: string;
36
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
37
+ declare const _default: typeof __VLS_export;
38
+ export default _default;
@@ -5,25 +5,35 @@ export interface MapMenuItem {
5
5
  icon?: Component;
6
6
  }
7
7
  type __VLS_Props = {
8
+ flat?: boolean;
8
9
  title?: string;
9
10
  active?: string;
11
+ multiple?: boolean;
12
+ activeKeys?: string[];
10
13
  dark?: boolean;
11
14
  compact?: boolean;
12
15
  items?: MapMenuItem[];
13
16
  };
14
17
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
18
  select: (item: MapMenuItem) => any;
19
+ change: (keys: string[]) => any;
16
20
  "update:active": (key: string) => any;
21
+ "update:activeKeys": (keys: string[]) => any;
17
22
  "update:compact": (value: boolean) => any;
18
23
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
19
24
  onSelect?: ((item: MapMenuItem) => any) | undefined;
25
+ onChange?: ((keys: string[]) => any) | undefined;
20
26
  "onUpdate:active"?: ((key: string) => any) | undefined;
27
+ "onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
21
28
  "onUpdate:compact"?: ((value: boolean) => any) | undefined;
22
29
  }>, {
30
+ flat: boolean;
23
31
  title: string;
24
32
  dark: boolean;
33
+ multiple: boolean;
25
34
  active: string;
26
35
  items: MapMenuItem[];
36
+ activeKeys: string[];
27
37
  compact: boolean;
28
38
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
39
  declare const _default: typeof __VLS_export;
@@ -1,8 +1,14 @@
1
1
  import { type Component } from 'vue';
2
+ export interface MapToolItem {
3
+ key: string;
4
+ label: string;
5
+ icon?: Component;
6
+ }
2
7
  type __VLS_Props = {
3
8
  active?: string;
4
9
  horizontal?: boolean;
5
10
  icons?: Record<string, Component>;
11
+ items?: MapToolItem[];
6
12
  };
7
13
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
14
  "update:active": (key: string) => any;
@@ -0,0 +1,25 @@
1
+ type __VLS_Props = {
2
+ label: string;
3
+ value?: string | number;
4
+ unit?: string;
5
+ tone?: 'blue' | 'cyan' | 'green' | 'purple';
6
+ compact?: boolean;
7
+ };
8
+ declare var __VLS_1: {};
9
+ type __VLS_Slots = {} & {
10
+ icon?: (props: typeof __VLS_1) => any;
11
+ };
12
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
13
+ value: string | number;
14
+ unit: string;
15
+ compact: boolean;
16
+ tone: "blue" | "cyan" | "green" | "purple";
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,25 @@
1
+ export interface ProcessChartRow {
2
+ time: string;
3
+ value: number | null;
4
+ }
5
+ export interface ProcessChartInstance {
6
+ setOption: (option: Record<string, unknown>, notMerge?: boolean) => void;
7
+ resize: () => void;
8
+ dispose: () => void;
9
+ }
10
+ export interface ProcessChartEngine {
11
+ init: (element: HTMLElement) => ProcessChartInstance;
12
+ }
13
+ type __VLS_Props = {
14
+ rows: ProcessChartRow[];
15
+ engine: ProcessChartEngine;
16
+ kind?: 'rain' | 'flow' | 'line';
17
+ unit?: string;
18
+ label?: string;
19
+ };
20
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
21
+ unit: string;
22
+ kind: "line" | "rain" | "flow";
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
@@ -0,0 +1,34 @@
1
+ type __VLS_Props = {
2
+ rightOpen?: boolean;
3
+ rightPanelEnabled?: boolean;
4
+ rightPanelWidth?: string;
5
+ };
6
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {};
7
+ type __VLS_Slots = {} & {
8
+ top?: (props: typeof __VLS_1) => any;
9
+ } & {
10
+ toolbar?: (props: typeof __VLS_3) => any;
11
+ } & {
12
+ right?: (props: typeof __VLS_5) => any;
13
+ } & {
14
+ legend?: (props: typeof __VLS_7) => any;
15
+ } & {
16
+ timeline?: (props: typeof __VLS_9) => any;
17
+ } & {
18
+ content?: (props: typeof __VLS_11) => any;
19
+ } & {
20
+ default?: (props: typeof __VLS_13) => any;
21
+ };
22
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
23
+ rightOpen: boolean;
24
+ rightPanelEnabled: boolean;
25
+ rightPanelWidth: string;
26
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
30
+ type __VLS_WithSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -0,0 +1,20 @@
1
+ type __VLS_Props = {
2
+ as?: 'section' | 'aside' | 'div';
3
+ floating?: boolean;
4
+ };
5
+ declare var __VLS_7: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_7) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
10
+ as: "div" | "aside" | "section";
11
+ floating: boolean;
12
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,18 @@
1
+ type __VLS_Props = {
2
+ collapsed?: boolean;
3
+ };
4
+ declare var __VLS_1: {};
5
+ type __VLS_Slots = {} & {
6
+ default?: (props: typeof __VLS_1) => any;
7
+ };
8
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
+ collapsed: boolean;
10
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };