sky-ui-kit 0.1.4 → 0.1.5

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.
@@ -214,3 +214,10 @@ WorkbenchShell 添加 management-layout 样式变体:顶部栏、侧栏、滚
214
214
  ## 2026-10-14 · 0.1.4 发布准备
215
215
 
216
216
  汇集当前工作区地图布局 TemplateLayout、工作台与管理样式、图层控制、过程图 line/label 以及菜单修订。重新生成 API 与 AI 文档,发布状态以 npm 注册表为准。
217
+
218
+
219
+ 2026-10-14 / dev.20:一体机雨量站按参考平台 /atlas/elments/rain 原源码迁移,保留 RainfallRankingTable、RainfallProcessChart、MapValueLegend 的 DOM、CSS、分级与交互,主题变量仅映射到既有 userssite 命名。公开 RainfallRankingTable、RainfallProcessChart、MapValueLegend、AtlasRankingPanel、AtlasProcessPanel、AtlasProcessChart、StationComparisonPanel、MapOperationPanel、SpaceAnalysisPanel;MapTools 新增 before/after/panel 插槽。TemplateLayout 增加 variant=atlas,采用原页面右栏贴右、工具栏右栏左侧、右下图例与底部过程面板的避让几何,workbench 默认行为保留。图表通过 provide('sky-chart-engine', engine) 注入,无业务请求或地图实例进入组件库。MapOperationPanel 接受 tools 和 drawTools;SpaceAnalysisPanel 接受 selectionStore 与 provider,绘制、GIS、空间分析业务由消费方注入。消费项目新雨量页通过平台地图单例绘制非聚合圆点,多数据源各自独立图层,原七级雨量颜色和缩放半径;复用原时间范围、数据源差量请求与批量过程接口。未构建、未打包、未浏览器验证、未发布 npm。需用户发布含新出口版本后更新消费包;当前项目保留旧包兼容显示,避免缺少新出口导致白屏。
220
+
221
+ 2026-10-14:TemplateLayout 新增 contentTop(布局相对地图容器的顶部避让)和 edge(右栏与工具栏共用边距)。工具栏默认顶部跟随右栏,移除186独立偏移;toolbar插槽内MapTools/map-toolbar取消再次绝对定位,避免偏移叠加。当前仅源码修改,发布时必须重新构建产物,再升级版本发布;消费项目仍安装0.1.4,尚未获得此修复。
222
+
223
+ 0.1.5 / 2026-10-14:右侧插槽容器采用flex并限制内部溢出,AtlasRankingPanel铺满容器;图例默认底部与右侧面板共用 --template-right-bottom,过程图展开时才额外避让。contentTop/edge控制顶部工作区和共同间距,toolbar插槽的工具栏取消重复绝对定位。修复雨量分级与虚拟行局部CSS变量命名、过程图tooltip参数类型。移除误加的本地消费项目file依赖,库不能依赖使用它的业务项目。打包和类型检查通过;地图页面已检查工具栏/右面板顶部76px、面板/图例底部874px对齐。
@@ -249,7 +249,7 @@ export interface MapMenuItem { key: string; label: string; icon?: Component }
249
249
  - `tool-click` — `[key: string]`
250
250
  - `context-change` — `[enabled: boolean]`
251
251
 
252
- Slots: No declared content slots.
252
+ Slots: before, after, panel
253
253
 
254
254
  ```ts
255
255
  export interface MapToolItem { key: string; label: string; icon?: Component }
@@ -410,6 +410,10 @@ export interface MapLayerNode { id: string; name: string; visible?: boolean; opa
410
410
  | rightOpen | boolean | false | false |
411
411
  | rightPanelEnabled | boolean | false | true |
412
412
  | rightPanelWidth | string | false | '' |
413
+ | toolbarTop | string | false | '' |
414
+ | contentTop | string | false | '' |
415
+ | edge | string | false | '' |
416
+ | variant | 'workbench' | 'atlas' | false | 'workbench' |
413
417
 
414
418
  ### Events
415
419
 
@@ -417,6 +421,262 @@ No declared events.
417
421
 
418
422
  Slots: top, toolbar, right, legend, timeline, content, default
419
423
 
424
+ ## RainfallRankingTable
425
+
426
+ ### Props
427
+
428
+ | Name | Type | Required | Default expression |
429
+ |---|---|---|---|
430
+ | rows | RainfallRankingRow[] | false | () => [] |
431
+ | period | string | false | '24h' |
432
+ | unit | string | false | 'mm' |
433
+ | dataSource | string[] | false | () => [] |
434
+ | dataSourceOptions | DataSourceOption[] | false | () => [] |
435
+ | dataSourceLoading | boolean | false | false |
436
+ | rainfallLevels | RainfallLevelOption[] | false | () => [
437
+ { key: 'extremeStorm', label: '≥250', min: 250, color: 'rgba(129, 0, 64, 1)', textColor: '#ffffff' },
438
+ { key: 'hardStorm', label: '100~250', min: 100, color: 'rgba(244, 5, 237, 1)', textColor: '#ffffff' },
439
+ { key: 'storm', label: '50~100', min: 50, color: 'rgba(2, 1, 252, 1)', textColor: '#ffffff' },
440
+ { key: 'heavy', label: '25~50', min: 25, color: 'rgba(100, 184, 245, 1)', textColor: '#ffffff' },
441
+ { key: 'moderate', label: '10~25', min: 10, color: 'rgba(61, 185, 63, 1)', textColor: '#ffffff' },
442
+ { key: 'light', label: '0.5~10', min: 0.5, color: 'rgba(164, 243, 143, 1)', textColor: '#1f2937' },
443
+ { key: 'none', label: '0~0.5', min: 0, color: '#ffffff', textColor: '#334155' }
444
+ ] |
445
+ | visibleLevelKeys | RainfallLevelKey[] | false | () => ['none', 'light', 'moderate', 'heavy', 'storm', 'hardStorm', 'extremeStorm'] |
446
+ | loading | boolean | false | false |
447
+
448
+ ### Events
449
+
450
+ - `close` — `[]`
451
+ - `locate` — `[row: RainfallRankingRow]`
452
+ - `rangeChange` — `[payload: { label: string, range: DateRangeValue }]`
453
+ - `sourceChange` — `[value: string[], payload: DataSourceChangePayload]`
454
+ - `levelVisibilityChange` — `[key: RainfallLevelKey, visible: boolean]`
455
+
456
+ Slots: No declared content slots.
457
+
458
+ ```ts
459
+ type SortDirection = 'asc' | 'desc'
460
+ export type RainfallLevelKey = 'none' | 'light' | 'moderate' | 'heavy' | 'storm' | 'hardStorm' | 'extremeStorm'
461
+ type RangeShortcutKey = 'current' | '1h' | '24h' | '3d' | '7d' | '1m'
462
+ type DateRangeValue = [string, string]
463
+ type RangeShortcut = {
464
+ key: RangeShortcutKey
465
+ label: string
466
+ amount: number
467
+ unit: 'current' | 'hour' | 'day' | 'month',
468
+ type: '1' | '2' // 1是显示日期 2是显示文字
469
+ }
470
+ export type DataSourceOption = {
471
+ label: string
472
+ value: string
473
+ }
474
+ export type DataSourceChangePayload = {
475
+ selectedSources: string[]
476
+ addedSources: string[]
477
+ removedSources: string[]
478
+ }
479
+ export type RainfallLevelOption = {
480
+ key: RainfallLevelKey
481
+ label: string
482
+ min: number
483
+ color: string
484
+ textColor: string
485
+ }
486
+ export type RainfallRankingRow = {
487
+ id?: string | number
488
+ stationName: string
489
+ rainfall: number
490
+ region?: string
491
+ longitude?: number
492
+ latitude?: number
493
+ elevation?: number | null
494
+ dataSource?: string
495
+ dataSourceName?: string
496
+ sourceCode?: string | number
497
+ }
498
+ ```
499
+
500
+ ## RainfallProcessChart
501
+
502
+ ### Props
503
+
504
+ | Name | Type | Required | Default expression |
505
+ |---|---|---|---|
506
+ | stations | RainfallRankingRow[] | false | () => [] |
507
+ | selectedStations | RainfallRankingRow[] | false | () => [] |
508
+ | rowsByStation | Record<string, RainHourlyPrecipitation[]> | false | () => ({}) |
509
+ | range | [string, string] | true | undefined / no declared default |
510
+ | loading | boolean | false | false |
511
+
512
+ ### Events
513
+
514
+ - `close` — `[]`
515
+ - `query` — `[payload: { stationIds: StationId[], range: [string, string], quickKey?: QuickRangeKey }]`
516
+
517
+ Slots: No declared content slots.
518
+
519
+ ```ts
520
+ type EChartsOption = Record<string, any>
521
+ type RainHourlyPrecipitation = { dt: string; drp?: number | null; [key: string]: number | string | null | undefined }
522
+ type StationId = string
523
+ type ProcessSeries = {
524
+ station: RainfallRankingRow
525
+ rainfallName: string
526
+ totalName: string
527
+ rainfallData: Array<number | null>
528
+ totalData: number[]
529
+ latestTotal: number
530
+ }
531
+ type QuickRangeKey = 'current' | '24h' | '7d' | '1m' | '3m'
532
+ ```
533
+
534
+ ## MapValueLegend
535
+
536
+ ### Props
537
+
538
+ | Name | Type | Required | Default expression |
539
+ |---|---|---|---|
540
+ | title | string | true | undefined / no declared default |
541
+ | layerName | string | false | '' |
542
+ | unit | string | false | '' |
543
+ | variant | MapValueLegendVariant | false | 'list' |
544
+ | items | MapValueLegendItem[] | false | () => [] |
545
+ | gradientStops | MapValueLegendGradientStop[] | false | () => [] |
546
+ | tickLabels | string[] | false | () => [] |
547
+ | allVisible | boolean | false | true |
548
+ | toggleable | boolean | false | true |
549
+
550
+ ### Events
551
+
552
+ - `toggle` — `[key: string, visible: boolean, layerName: string]`
553
+ - `toggleAll` — `[visible: boolean, layerName: string]`
554
+
555
+ Slots: No declared content slots.
556
+
557
+ ```ts
558
+ type MapValueLegendVariant = 'list' | 'gradient'
559
+ export type MapValueLegendItem = {
560
+ key: string
561
+ label: string
562
+ color: string
563
+ count?: number
564
+ visible?: boolean
565
+ empty?: boolean
566
+ }
567
+ export type MapValueLegendGradientStop = {
568
+ offset: number
569
+ color: string
570
+ }
571
+ ```
572
+
573
+ ## AtlasRankingPanel
574
+
575
+ ### Props
576
+
577
+ | Name | Type | Required | Default expression |
578
+ |---|---|---|---|
579
+
580
+ ### Events
581
+
582
+ No declared events.
583
+
584
+ Slots: default
585
+
586
+ ## AtlasProcessPanel
587
+
588
+ ### Props
589
+
590
+ | Name | Type | Required | Default expression |
591
+ |---|---|---|---|
592
+
593
+ ### Events
594
+
595
+ No declared events.
596
+
597
+ Slots: default
598
+
599
+ ## AtlasProcessChart
600
+
601
+ ### Props
602
+
603
+ | Name | Type | Required | Default expression |
604
+ |---|---|---|---|
605
+ | option | EChartsOption &#124; null | false | null |
606
+ | loading | boolean | false | false |
607
+ | empty | boolean | false | false |
608
+ | loadingText | string | false | '加载中...' |
609
+ | emptyText | string | false | '暂无过程线数据' |
610
+
611
+ ### Events
612
+
613
+ No declared events.
614
+
615
+ Slots: No declared content slots.
616
+
617
+ ```ts
618
+ type EChartsOption = Record<string, any>
619
+ ```
620
+
621
+ ## StationComparisonPanel
622
+
623
+ ### Props
624
+
625
+ | Name | Type | Required | Default expression |
626
+ |---|---|---|---|
627
+ | rows | { id: string; label: string }[] | true | undefined / no declared default |
628
+ | selected | string[] | true | undefined / no declared default |
629
+
630
+ ### Events
631
+
632
+ - `update:selected` — `[ids: string[]]`
633
+ - `compare` — `[]`
634
+ - `locate` — `[id: string]`
635
+ - `close` — `[]`
636
+
637
+ Slots: No declared content slots.
638
+
639
+ ## MapOperationPanel
640
+
641
+ ### Props
642
+
643
+ | Name | Type | Required | Default expression |
644
+ |---|---|---|---|
645
+ | tools | any | true | undefined / no declared default |
646
+ | drawTools | { mode: string; label: string; iconPath: string }[] | true | undefined / no declared default |
647
+
648
+ ### Events
649
+
650
+ No declared events.
651
+
652
+ Slots: No declared content slots.
653
+
654
+ ```ts
655
+ type MapDrawMode = string
656
+ type MapMeasureMode = string
657
+ type MapOperationSnapshot = any
658
+ ```
659
+
660
+ ## SpaceAnalysisPanel
661
+
662
+ ### Props
663
+
664
+ | Name | Type | Required | Default expression |
665
+ |---|---|---|---|
666
+ | selectionStore | any | true | undefined / no declared default |
667
+ | provider | any | true | undefined / no declared default |
668
+
669
+ ### Events
670
+
671
+ No declared events.
672
+
673
+ Slots: No declared content slots.
674
+
675
+ ```ts
676
+ type GisSelectionRecord = any
677
+ type SpaceAnalysisAction = any
678
+ ```
679
+
420
680
  ## UiAffix
421
681
 
422
682
  固钉 · 导航组件. Original: ElAffix. Import from: sky-ui-kit. [API](https://element-plus.org/zh-CN/component/affix.html). See dist/components/element-plus.d.ts.
package/docs/CONSUMERS.md CHANGED
@@ -84,3 +84,10 @@ D:/dev/TasksBot 已从本地 tgz 切换为 npm sky-ui-kit@0.1.3。安装包多
84
84
 
85
85
 
86
86
  2026-10-14 / dev.19:公开 TemplateLayout 地图叠加布局。提供 top、toolbar、right、legend、timeline、content 与默认插槽;rightOpen 为受控右栏状态,rightPanelEnabled 默认 true,rightPanelWidth 可覆盖响应式宽度。工具栏、图例、时间轴随右栏自动避让;空白区域透传地图事件。布局不初始化地图、不依赖业务 store,不内置业务工具;消费方将 MapTools 和 MapLayerControl 放到 toolbar,将业务面板放到 right。
87
+
88
+
89
+ 2026-10-14 / dev.20:一体机雨量站按参考平台 /atlas/elments/rain 原源码迁移,保留 RainfallRankingTable、RainfallProcessChart、MapValueLegend 的 DOM、CSS、分级与交互,主题变量仅映射到既有 userssite 命名。公开 RainfallRankingTable、RainfallProcessChart、MapValueLegend、AtlasRankingPanel、AtlasProcessPanel、AtlasProcessChart、StationComparisonPanel、MapOperationPanel、SpaceAnalysisPanel;MapTools 新增 before/after/panel 插槽。TemplateLayout 增加 variant=atlas,采用原页面右栏贴右、工具栏右栏左侧、右下图例与底部过程面板的避让几何,workbench 默认行为保留。图表通过 provide('sky-chart-engine', engine) 注入,无业务请求或地图实例进入组件库。MapOperationPanel 接受 tools 和 drawTools;SpaceAnalysisPanel 接受 selectionStore 与 provider,绘制、GIS、空间分析业务由消费方注入。消费项目新雨量页通过平台地图单例绘制非聚合圆点,多数据源各自独立图层,原七级雨量颜色和缩放半径;复用原时间范围、数据源差量请求与批量过程接口。未构建、未打包、未浏览器验证、未发布 npm。需用户发布含新出口版本后更新消费包;当前项目保留旧包兼容显示,避免缺少新出口导致白屏。
90
+
91
+ 2026-10-14:TemplateLayout 新增 contentTop(布局相对地图容器的顶部避让)和 edge(右栏与工具栏共用边距)。工具栏默认顶部跟随右栏,移除186独立偏移;toolbar插槽内MapTools/map-toolbar取消再次绝对定位,避免偏移叠加。当前仅源码修改,发布时必须重新构建产物,再升级版本发布;消费项目仍安装0.1.4,尚未获得此修复。
92
+
93
+ 0.1.5 / 2026-10-14:右侧插槽容器采用flex并限制内部溢出,AtlasRankingPanel铺满容器;图例默认底部与右侧面板共用 --template-right-bottom,过程图展开时才额外避让。contentTop/edge控制顶部工作区和共同间距,toolbar插槽的工具栏取消重复绝对定位。修复雨量分级与虚拟行局部CSS变量命名、过程图tooltip参数类型。移除误加的本地消费项目file依赖,库不能依赖使用它的业务项目。打包和类型检查通过;地图页面已检查工具栏/右面板顶部76px、面板/图例底部874px对齐。
package/docs/CSS-THEME.md CHANGED
@@ -126,3 +126,10 @@ business-embed:management.css 提供工作台业务 iframe 布局,保留顶
126
126
 
127
127
 
128
128
  2026-10-14 / dev.19:公开 TemplateLayout 地图叠加布局。提供 top、toolbar、right、legend、timeline、content 与默认插槽;rightOpen 为受控右栏状态,rightPanelEnabled 默认 true,rightPanelWidth 可覆盖响应式宽度。工具栏、图例、时间轴随右栏自动避让;空白区域透传地图事件。布局不初始化地图、不依赖业务 store,不内置业务工具;消费方将 MapTools 和 MapLayerControl 放到 toolbar,将业务面板放到 right。
129
+
130
+
131
+ 2026-10-14 / dev.20:一体机雨量站按参考平台 /atlas/elments/rain 原源码迁移,保留 RainfallRankingTable、RainfallProcessChart、MapValueLegend 的 DOM、CSS、分级与交互,主题变量仅映射到既有 userssite 命名。公开 RainfallRankingTable、RainfallProcessChart、MapValueLegend、AtlasRankingPanel、AtlasProcessPanel、AtlasProcessChart、StationComparisonPanel、MapOperationPanel、SpaceAnalysisPanel;MapTools 新增 before/after/panel 插槽。TemplateLayout 增加 variant=atlas,采用原页面右栏贴右、工具栏右栏左侧、右下图例与底部过程面板的避让几何,workbench 默认行为保留。图表通过 provide('sky-chart-engine', engine) 注入,无业务请求或地图实例进入组件库。MapOperationPanel 接受 tools 和 drawTools;SpaceAnalysisPanel 接受 selectionStore 与 provider,绘制、GIS、空间分析业务由消费方注入。消费项目新雨量页通过平台地图单例绘制非聚合圆点,多数据源各自独立图层,原七级雨量颜色和缩放半径;复用原时间范围、数据源差量请求与批量过程接口。未构建、未打包、未浏览器验证、未发布 npm。需用户发布含新出口版本后更新消费包;当前项目保留旧包兼容显示,避免缺少新出口导致白屏。
132
+
133
+ 2026-10-14:TemplateLayout 新增 contentTop(布局相对地图容器的顶部避让)和 edge(右栏与工具栏共用边距)。工具栏默认顶部跟随右栏,移除186独立偏移;toolbar插槽内MapTools/map-toolbar取消再次绝对定位,避免偏移叠加。当前仅源码修改,发布时必须重新构建产物,再升级版本发布;消费项目仍安装0.1.4,尚未获得此修复。
134
+
135
+ 0.1.5 / 2026-10-14:右侧插槽容器采用flex并限制内部溢出,AtlasRankingPanel铺满容器;图例默认底部与右侧面板共用 --template-right-bottom,过程图展开时才额外避让。contentTop/edge控制顶部工作区和共同间距,toolbar插槽的工具栏取消重复绝对定位。修复雨量分级与虚拟行局部CSS变量命名、过程图tooltip参数类型。移除误加的本地消费项目file依赖,库不能依赖使用它的业务项目。打包和类型检查通过;地图页面已检查工具栏/右面板顶部76px、面板/图例底部874px对齐。
@@ -1,6 +1,6 @@
1
1
  # Element Plus 完整组件目录
2
2
 
3
- 基准版本:2.14.7。共 111 个主 / 子组件、4 个服务出口、3 个指令出口。另保留 17 个项目特色组件。
3
+ 基准版本:2.14.7。共 111 个主 / 子组件、4 个服务出口、3 个指令出口。另保留 26 个项目特色组件。
4
4
 
5
5
  清单覆盖官方组件注册表及服务 / 指令,不包含内部工具函数。出口覆盖不代表所有组件的交互、独立示例和视觉状态均已验证。网站每项均提供导入和官方 API 索引,新增组合示例见 AI-GUIDE.md。
6
6
 
@@ -138,3 +138,10 @@ MapLayerControl 参考平台 LayerControl/LayerTreeNode,提供底图选择、
138
138
  ## 地图胶囊选中修复(0.1.3-dev.11)
139
139
 
140
140
  flat 模式按钮此前错误使用 child 类而内部图标、文字使用 parent 类,导致 active 样式不匹配。统一按钮及内容层级类,保留现有单选、多选及事件逻辑。
141
+
142
+
143
+ 2026-10-14 / dev.20:一体机雨量站按参考平台 /atlas/elments/rain 原源码迁移,保留 RainfallRankingTable、RainfallProcessChart、MapValueLegend 的 DOM、CSS、分级与交互,主题变量仅映射到既有 userssite 命名。公开 RainfallRankingTable、RainfallProcessChart、MapValueLegend、AtlasRankingPanel、AtlasProcessPanel、AtlasProcessChart、StationComparisonPanel、MapOperationPanel、SpaceAnalysisPanel;MapTools 新增 before/after/panel 插槽。TemplateLayout 增加 variant=atlas,采用原页面右栏贴右、工具栏右栏左侧、右下图例与底部过程面板的避让几何,workbench 默认行为保留。图表通过 provide('sky-chart-engine', engine) 注入,无业务请求或地图实例进入组件库。MapOperationPanel 接受 tools 和 drawTools;SpaceAnalysisPanel 接受 selectionStore 与 provider,绘制、GIS、空间分析业务由消费方注入。消费项目新雨量页通过平台地图单例绘制非聚合圆点,多数据源各自独立图层,原七级雨量颜色和缩放半径;复用原时间范围、数据源差量请求与批量过程接口。未构建、未打包、未浏览器验证、未发布 npm。需用户发布含新出口版本后更新消费包;当前项目保留旧包兼容显示,避免缺少新出口导致白屏。
144
+
145
+ 2026-10-14:TemplateLayout 新增 contentTop(布局相对地图容器的顶部避让)和 edge(右栏与工具栏共用边距)。工具栏默认顶部跟随右栏,移除186独立偏移;toolbar插槽内MapTools/map-toolbar取消再次绝对定位,避免偏移叠加。当前仅源码修改,发布时必须重新构建产物,再升级版本发布;消费项目仍安装0.1.4,尚未获得此修复。
146
+
147
+ 0.1.5 / 2026-10-14:右侧插槽容器采用flex并限制内部溢出,AtlasRankingPanel铺满容器;图例默认底部与右侧面板共用 --template-right-bottom,过程图展开时才额外避让。contentTop/edge控制顶部工作区和共同间距,toolbar插槽的工具栏取消重复绝对定位。修复雨量分级与虚拟行局部CSS变量命名、过程图tooltip参数类型。移除误加的本地消费项目file依赖,库不能依赖使用它的业务项目。打包和类型检查通过;地图页面已检查工具栏/右面板顶部76px、面板/图例底部874px对齐。