@keyfunc/keybricks-ds 1.0.2 → 1.0.3
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/INTEGRATION.md +18 -0
- package/components/_shared/src-buttons.js +1 -1
- package/components/_shared/src-data.js +1 -1
- package/components/_shared/src-display.js +1 -1
- package/components/_shared/src-feedback.js +1 -1
- package/components/_shared/src-forms.js +1 -1
- package/components/_shared/src-navigation.js +1 -1
- package/components/_shared/src-pipeline.js +1 -1
- package/components/_shared/src-tabs.js +1 -1
- package/components/_vue/index.mjs +21 -0
- package/components/buttons/Button.vue +0 -20
- package/components/buttons/ButtonGroup.vue +16 -0
- package/components/data/KeyValue.vue +0 -16
- package/components/data/KeyValueList.vue +12 -0
- package/components/data/ListRow.vue +1 -1
- package/components/display/AreaChart.vue +14 -0
- package/components/display/Avatar.vue +0 -17
- package/components/display/AvatarGroup.vue +13 -0
- package/components/display/Badge.vue +0 -34
- package/components/display/Card.vue +0 -15
- package/components/display/Donut.vue +17 -0
- package/components/display/IconTile.vue +13 -0
- package/components/display/MiniBars.vue +11 -0
- package/components/display/ProgressBar.vue +0 -54
- package/components/display/StatCard.vue +11 -0
- package/components/display/StatusBadge.vue +11 -0
- package/components/feedback/ActivityItem.vue +1 -32
- package/components/feedback/Alert.vue +0 -36
- package/components/feedback/DotActivity.vue +15 -0
- package/components/feedback/EmptyState.vue +12 -0
- package/components/feedback/LogViewer.vue +8 -0
- package/components/feedback/Modal.vue +0 -45
- package/components/feedback/Skeleton.vue +6 -0
- package/components/feedback/Spinner.vue +6 -0
- package/components/feedback/Toast.vue +19 -0
- package/components/forms/Combobox.vue +1 -1
- package/components/forms/DatePicker.vue +1 -1
- package/components/forms/Input.jsx +2 -1
- package/components/forms/Input.vue +2 -24
- package/components/forms/Textarea.vue +20 -0
- package/components/forms/input-base.js +3 -0
- package/components/navigation/Breadcrumb.vue +0 -22
- package/components/navigation/PageHeading.vue +9 -0
- package/components/navigation/PageToolbar.vue +15 -0
- package/components/navigation/ThemeToggle.vue +18 -0
- package/components/navigation/TopBar.vue +0 -32
- package/components/pipeline/NodeCard.vue +2 -1
- package/components/pipeline/PaletteItem.vue +1 -1
- package/components/pipeline/PalettePanel.jsx +2 -8
- package/components/pipeline/PalettePanel.vue +1 -8
- package/components/pipeline/pipeline-catalog.js +8 -0
- package/components/tabs/PanelTabs.vue +10 -0
- package/components/tabs/PillTabs.vue +10 -0
- package/components/tabs/Tabs.vue +0 -28
- package/package.json +1 -1
- package/readme.md +1 -0
- package/tokens/tokens.json +1 -1
|
@@ -2,6 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { Icon } from "../icons/Icon.jsx";
|
|
3
3
|
import { IconTile } from "../display/Badge.jsx";
|
|
4
4
|
import { ViewToggle } from "../tabs/ViewToggle.jsx";
|
|
5
|
+
import { PIPELINE_CATALOG } from "./pipeline-catalog.js";
|
|
5
6
|
|
|
6
7
|
/** Palette grid tile — 40px tinted icon + 10px two-line label. */
|
|
7
8
|
export function PaletteItem({ icon, hue, label, onClick, style }) {
|
|
@@ -27,14 +28,7 @@ export function PaletteListItem({ icon, hue, label, onClick, style }) {
|
|
|
27
28
|
);
|
|
28
29
|
}
|
|
29
30
|
|
|
30
|
-
|
|
31
|
-
export const PIPELINE_CATALOG = [
|
|
32
|
-
{ label: "Data Source", icon: "table", hue: "source", items: [{ label: "Detail Sheet", icon: "table" }, { label: "Model", icon: "layers" }, { label: "Dimension", icon: "grid-3x3" }] },
|
|
33
|
-
{ label: "Data Join", icon: "text-search", hue: "join", items: [{ label: "Lookup Data", icon: "text-search" }, { label: "Association Match", icon: "shuffle" }] },
|
|
34
|
-
{ label: "Data Transformation", icon: "sliders-horizontal", hue: "transform", items: [{ label: "Field Value Calculation", icon: "sliders-horizontal" }, { label: "Field Split", icon: "split" }, { label: "Row to Column", icon: "arrow-right-left" }, { label: "Column to Row", icon: "menu" }, { label: "Multi-Condition Judge", icon: "funnel" }, { label: "Regional Calculation", icon: "chart-no-axes-column" }, { label: "Advanced Transformation", icon: "trending-up" }, { label: "JS Enhanced Processing", icon: "code" }] },
|
|
35
|
-
{ label: "Data Merge", icon: "database", hue: "merge", items: [{ label: "Group Calculation", icon: "database" }, { label: "Concat Merge", icon: "merge" }] },
|
|
36
|
-
{ label: "Data Output", icon: "table", hue: "output", items: [{ label: "Detail Sheet", icon: "table" }, { label: "Model", icon: "layers" }, { label: "Dimension", icon: "grid-3x3" }] },
|
|
37
|
-
];
|
|
31
|
+
export { PIPELINE_CATALOG };
|
|
38
32
|
|
|
39
33
|
/** 240px "Components" palette panel with list/grid toggle and collapsible hued categories. */
|
|
40
34
|
export function PalettePanel({ catalog = PIPELINE_CATALOG, height = "100%", onPick, style }) {
|
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { ref } from 'vue'
|
|
3
3
|
import Icon from '../icons/Icon.vue'
|
|
4
|
-
import {
|
|
4
|
+
import { PIPELINE_CATALOG } from './pipeline-catalog.js'
|
|
5
5
|
import ViewToggle from '../tabs/ViewToggle.vue'
|
|
6
6
|
import PaletteItem from './PaletteItem.vue'
|
|
7
7
|
import PaletteListItem from './PaletteListItem.vue'
|
|
8
8
|
|
|
9
|
-
export const PIPELINE_CATALOG = [
|
|
10
|
-
{ label: 'Data Source', icon: 'table', hue: 'source', items: [{ label: 'Detail Sheet', icon: 'table' }, { label: 'Model', icon: 'layers' }, { label: 'Dimension', icon: 'grid-3x3' }] },
|
|
11
|
-
{ label: 'Data Join', icon: 'text-search', hue: 'join', items: [{ label: 'Lookup Data', icon: 'text-search' }, { label: 'Association Match', icon: 'shuffle' }] },
|
|
12
|
-
{ label: 'Data Transformation', icon: 'sliders-horizontal', hue: 'transform', items: [{ label: 'Field Value Calculation', icon: 'sliders-horizontal' }, { label: 'Field Split', icon: 'split' }, { label: 'Row to Column', icon: 'arrow-right-left' }, { label: 'Column to Row', icon: 'menu' }, { label: 'Multi-Condition Judge', icon: 'funnel' }, { label: 'Regional Calculation', icon: 'chart-no-axes-column' }, { label: 'Advanced Transformation', icon: 'trending-up' }, { label: 'JS Enhanced Processing', icon: 'code' }] },
|
|
13
|
-
{ label: 'Data Merge', icon: 'database', hue: 'merge', items: [{ label: 'Group Calculation', icon: 'database' }, { label: 'Concat Merge', icon: 'merge' }] },
|
|
14
|
-
{ label: 'Data Output', icon: 'table', hue: 'output', items: [{ label: 'Detail Sheet', icon: 'table' }, { label: 'Model', icon: 'layers' }, { label: 'Dimension', icon: 'grid-3x3' }] },
|
|
15
|
-
]
|
|
16
9
|
// 240px "Components" palette panel with list/grid toggle and collapsible hued categories.
|
|
17
10
|
const props = defineProps({ catalog: { type: Array, default: () => PIPELINE_CATALOG }, height: { type: [String, Number], default: '100%' }, style: Object })
|
|
18
11
|
const emit = defineEmits(['pick'])
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// The full component set of the pipeline editor, verbatim from the file. Shared by PalettePanel.vue; also re-exported by PalettePanel.jsx.
|
|
2
|
+
export const PIPELINE_CATALOG = [
|
|
3
|
+
{ label: 'Data Source', icon: 'table', hue: 'source', items: [{ label: 'Detail Sheet', icon: 'table' }, { label: 'Model', icon: 'layers' }, { label: 'Dimension', icon: 'grid-3x3' }] },
|
|
4
|
+
{ label: 'Data Join', icon: 'text-search', hue: 'join', items: [{ label: 'Lookup Data', icon: 'text-search' }, { label: 'Association Match', icon: 'shuffle' }] },
|
|
5
|
+
{ label: 'Data Transformation', icon: 'sliders-horizontal', hue: 'transform', items: [{ label: 'Field Value Calculation', icon: 'sliders-horizontal' }, { label: 'Field Split', icon: 'split' }, { label: 'Row to Column', icon: 'arrow-right-left' }, { label: 'Column to Row', icon: 'menu' }, { label: 'Multi-Condition Judge', icon: 'funnel' }, { label: 'Regional Calculation', icon: 'chart-no-axes-column' }, { label: 'Advanced Transformation', icon: 'trending-up' }, { label: 'JS Enhanced Processing', icon: 'code' }] },
|
|
6
|
+
{ label: 'Data Merge', icon: 'database', hue: 'merge', items: [{ label: 'Group Calculation', icon: 'database' }, { label: 'Concat Merge', icon: 'merge' }] },
|
|
7
|
+
{ label: 'Data Output', icon: 'table', hue: 'output', items: [{ label: 'Detail Sheet', icon: 'table' }, { label: 'Model', icon: 'layers' }, { label: 'Dimension', icon: 'grid-3x3' }] },
|
|
8
|
+
]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
defineProps({ tabs: { type: Array, default: () => [] }, active: String, style: Object })
|
|
3
|
+
const emit = defineEmits(['change'])
|
|
4
|
+
</script>
|
|
5
|
+
<template>
|
|
6
|
+
<div :style="{ display: 'flex', borderBottom: '1px solid var(--border-subtle)', ...style }">
|
|
7
|
+
<button v-for="t in tabs" :key="t" type="button" @click="emit('change', t)"
|
|
8
|
+
:style="{ background: 'transparent', border: 'none', cursor: 'pointer', padding: '8px 12px', marginBottom: -1, borderBottom: t === active ? '2px solid var(--action-primary)' : '2px solid transparent', fontFamily: 'var(--font-sans)', fontSize: 'var(--text-sm)', lineHeight: 'var(--leading-sm)', color: t === active ? 'var(--action-primary)' : 'var(--text-secondary)' }">{{ t }}</button>
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
defineProps({ tabs: { type: Array, default: () => [] }, active: String, style: Object })
|
|
3
|
+
const emit = defineEmits(['change'])
|
|
4
|
+
</script>
|
|
5
|
+
<template>
|
|
6
|
+
<div :style="{ display: 'flex', gap: 8, ...style }">
|
|
7
|
+
<button v-for="t in tabs" :key="t" type="button" @click="emit('change', t)"
|
|
8
|
+
:style="{ background: t === active ? 'var(--bg-active)' : 'transparent', border: 'none', cursor: 'pointer', height: 28, padding: '0 11px', borderRadius: 'var(--radius-md)', fontFamily: 'var(--font-sans)', fontWeight: 'var(--weight-medium)', fontSize: 'var(--text-sm)', lineHeight: 'var(--leading-sm)', color: t === active ? 'var(--text-heading)' : 'var(--text-secondary)' }">{{ t }}</button>
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
package/components/tabs/Tabs.vue
CHANGED
|
@@ -9,31 +9,3 @@ const emit = defineEmits(['change'])
|
|
|
9
9
|
:style="{ background: 'transparent', border: 'none', cursor: 'pointer', padding: '9px 16px', marginBottom: -1, borderBottom: t === active ? '2px solid var(--action-primary)' : '2px solid transparent', fontFamily: 'var(--font-sans)', fontWeight: 'var(--weight-medium)', fontSize: 'var(--text-base)', lineHeight: 'var(--leading-base)', letterSpacing: 'var(--tracking-base)', color: t === active ? 'var(--action-primary)' : 'var(--text-body)' }">{{ t }}</button>
|
|
10
10
|
</div>
|
|
11
11
|
</template>
|
|
12
|
-
|
|
13
|
-
<!-- PanelTabs — compact panel tabs (Node Info · Calc Rules · Output Fields · SQL Preview), 12px. -->
|
|
14
|
-
<!--
|
|
15
|
-
<script setup name="PanelTabs">
|
|
16
|
-
defineProps({ tabs: { type: Array, default: () => [] }, active: String, style: Object })
|
|
17
|
-
const emit = defineEmits(['change'])
|
|
18
|
-
</script>
|
|
19
|
-
<template>
|
|
20
|
-
<div :style="{ display: 'flex', borderBottom: '1px solid var(--border-subtle)', ...style }">
|
|
21
|
-
<button v-for="t in tabs" :key="t" type="button" @click="emit('change', t)"
|
|
22
|
-
:style="{ background: 'transparent', border: 'none', cursor: 'pointer', padding: '8px 12px', marginBottom: -1, borderBottom: t === active ? '2px solid var(--action-primary)' : '2px solid transparent', fontFamily: 'var(--font-sans)', fontSize: 'var(--text-sm)', lineHeight: 'var(--leading-sm)', color: t === active ? 'var(--action-primary)' : 'var(--text-secondary)' }">{{ t }}</button>
|
|
23
|
-
</div>
|
|
24
|
-
</template>
|
|
25
|
-
-->
|
|
26
|
-
|
|
27
|
-
<!-- PillTabs — text pill filter tabs (For Review · To be Submitted · For Approval). Active = filled pill. -->
|
|
28
|
-
<!--
|
|
29
|
-
<script setup name="PillTabs">
|
|
30
|
-
defineProps({ tabs: { type: Array, default: () => [] }, active: String, style: Object })
|
|
31
|
-
const emit = defineEmits(['change'])
|
|
32
|
-
</script>
|
|
33
|
-
<template>
|
|
34
|
-
<div :style="{ display: 'flex', gap: 8, ...style }">
|
|
35
|
-
<button v-for="t in tabs" :key="t" type="button" @click="emit('change', t)"
|
|
36
|
-
:style="{ background: t === active ? 'var(--bg-active)' : 'transparent', border: 'none', cursor: 'pointer', height: 28, padding: '0 11px', borderRadius: 'var(--radius-md)', fontFamily: 'var(--font-sans)', fontWeight: 'var(--weight-medium)', fontSize: 'var(--text-sm)', lineHeight: 'var(--leading-sm)', color: t === active ? 'var(--text-heading)' : 'var(--text-secondary)' }">{{ t }}</button>
|
|
37
|
-
</div>
|
|
38
|
-
</template>
|
|
39
|
-
-->
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -148,3 +148,4 @@ These extend the original inventory — each is a standard need this product cle
|
|
|
148
148
|
- `ZoomControls` — 管道画布的缩放控件;源文件隐含平移/缩放交互,但未给出对应控件。
|
|
149
149
|
- `StatCard`/`Donut`/`ProgressBar`/`AreaChart`/`MiniBars` 内置的图表小工具,免去引入图表库。
|
|
150
150
|
- Token 补充:`tokens/motion.css`、层级(z-index)体系。
|
|
151
|
+
cicd test
|