snice 3.4.1 → 3.6.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.
- package/bin/templates/social/src/styles/global.css +56 -47
- package/dist/components/audio-recorder/snice-audio-recorder.d.ts +14 -4
- package/dist/components/audio-recorder/snice-audio-recorder.js +248 -71
- package/dist/components/audio-recorder/snice-audio-recorder.js.map +1 -1
- package/dist/components/audio-recorder/snice-audio-recorder.types.d.ts +2 -0
- package/dist/components/avatar/snice-avatar.d.ts +2 -2
- package/dist/components/avatar/snice-avatar.js +20 -21
- package/dist/components/avatar/snice-avatar.js.map +1 -1
- package/dist/components/calendar/snice-calendar.d.ts +8 -2
- package/dist/components/calendar/snice-calendar.js +160 -82
- package/dist/components/calendar/snice-calendar.js.map +1 -1
- package/dist/components/chart/snice-chart.js +50 -18
- package/dist/components/chart/snice-chart.js.map +1 -1
- package/dist/components/checkbox/snice-checkbox.d.ts +4 -1
- package/dist/components/checkbox/snice-checkbox.js +46 -17
- package/dist/components/checkbox/snice-checkbox.js.map +1 -1
- package/dist/components/code-block/highlighter.d.ts +5 -0
- package/dist/components/code-block/highlighter.js +137 -0
- package/dist/components/code-block/highlighter.js.map +1 -0
- package/dist/components/code-block/highlighters/highlight.d.ts +64 -0
- package/dist/components/code-block/highlighters/highlight.js +108 -0
- package/dist/components/code-block/highlighters/highlight.js.map +1 -0
- package/dist/components/code-block/highlighters/prism.d.ts +41 -0
- package/dist/components/code-block/highlighters/prism.js +73 -0
- package/dist/components/code-block/highlighters/prism.js.map +1 -0
- package/dist/components/code-block/snice-code-block.d.ts +19 -1
- package/dist/components/code-block/snice-code-block.js +128 -29
- package/dist/components/code-block/snice-code-block.js.map +1 -1
- package/dist/components/code-block/snice-code-block.types.d.ts +15 -1
- package/dist/components/color-picker/snice-color-picker.d.ts +1 -0
- package/dist/components/color-picker/snice-color-picker.js +17 -6
- package/dist/components/color-picker/snice-color-picker.js.map +1 -1
- package/dist/components/date-picker/snice-date-picker.d.ts +1 -0
- package/dist/components/date-picker/snice-date-picker.js +16 -5
- package/dist/components/date-picker/snice-date-picker.js.map +1 -1
- package/dist/components/doc/snice-doc.d.ts +27 -73
- package/dist/components/doc/snice-doc.js +385 -534
- package/dist/components/doc/snice-doc.js.map +1 -1
- package/dist/components/draw/snice-draw.d.ts +4 -0
- package/dist/components/draw/snice-draw.js +134 -14
- package/dist/components/draw/snice-draw.js.map +1 -1
- package/dist/components/draw/snice-draw.types.d.ts +5 -0
- package/dist/components/file-upload/snice-file-upload.js +1 -1
- package/dist/components/input/snice-input.d.ts +2 -0
- package/dist/components/input/snice-input.js +34 -9
- package/dist/components/input/snice-input.js.map +1 -1
- package/dist/components/kanban/snice-kanban.d.ts +13 -1
- package/dist/components/kanban/snice-kanban.js +191 -36
- package/dist/components/kanban/snice-kanban.js.map +1 -1
- package/dist/components/kanban/snice-kanban.types.d.ts +11 -1
- package/dist/components/kpi/snice-kpi.js +5 -1
- package/dist/components/kpi/snice-kpi.js.map +1 -1
- package/dist/components/layout/snice-layout-sidebar.js +1 -1
- package/dist/components/layout/snice-layout-sidebar.js.map +1 -1
- package/dist/components/layout/snice-layout.js +1 -1
- package/dist/components/layout/snice-layout.js.map +1 -1
- package/dist/components/location/snice-location.js +1 -1
- package/dist/components/location/snice-location.js.map +1 -1
- package/dist/components/radio/snice-radio.d.ts +1 -0
- package/dist/components/radio/snice-radio.js +17 -6
- package/dist/components/radio/snice-radio.js.map +1 -1
- package/dist/components/select/snice-select.d.ts +2 -0
- package/dist/components/select/snice-select.js +48 -19
- package/dist/components/select/snice-select.js.map +1 -1
- package/dist/components/slider/snice-slider.d.ts +2 -0
- package/dist/components/slider/snice-slider.js +34 -14
- package/dist/components/slider/snice-slider.js.map +1 -1
- package/dist/components/snice-cell-HZ2iIBIC.js +4 -0
- package/dist/components/snice-cell-HZ2iIBIC.js.map +1 -0
- package/dist/components/split-pane/snice-split-pane.js +1 -1
- package/dist/components/split-pane/snice-split-pane.js.map +1 -1
- package/dist/components/switch/snice-switch.d.ts +1 -0
- package/dist/components/switch/snice-switch.js +16 -6
- package/dist/components/switch/snice-switch.js.map +1 -1
- package/dist/components/table/snice-cell-actions.js +1 -1
- package/dist/components/table/snice-cell-actions.js.map +1 -1
- package/dist/components/table/snice-cell-boolean.js +1 -1
- package/dist/components/table/snice-cell-color.js +1 -1
- package/dist/components/table/snice-cell-color.js.map +1 -1
- package/dist/components/table/snice-cell-currency.js +1 -1
- package/dist/components/table/snice-cell-date.js +1 -1
- package/dist/components/table/snice-cell-duration.js +1 -1
- package/dist/components/table/snice-cell-email.js +1 -1
- package/dist/components/table/snice-cell-email.js.map +1 -1
- package/dist/components/table/snice-cell-filesize.js +1 -1
- package/dist/components/table/snice-cell-image.js +1 -1
- package/dist/components/table/snice-cell-image.js.map +1 -1
- package/dist/components/table/snice-cell-json.js +1 -1
- package/dist/components/table/snice-cell-json.js.map +1 -1
- package/dist/components/table/snice-cell-link.js +1 -1
- package/dist/components/table/snice-cell-link.js.map +1 -1
- package/dist/components/table/snice-cell-location.js +1 -1
- package/dist/components/table/snice-cell-location.js.map +1 -1
- package/dist/components/table/snice-cell-number.js +1 -1
- package/dist/components/table/snice-cell-percentage.js +1 -1
- package/dist/components/table/snice-cell-percentage.js.map +1 -1
- package/dist/components/table/snice-cell-phone.js +1 -1
- package/dist/components/table/snice-cell-phone.js.map +1 -1
- package/dist/components/table/snice-cell-progress.js +3 -3
- package/dist/components/table/snice-cell-progress.js.map +1 -1
- package/dist/components/table/snice-cell-rating.js +2 -2
- package/dist/components/table/snice-cell-rating.js.map +1 -1
- package/dist/components/table/snice-cell-sparkline.js +2 -2
- package/dist/components/table/snice-cell-sparkline.js.map +1 -1
- package/dist/components/table/snice-cell-status.js +1 -1
- package/dist/components/table/snice-cell-status.js.map +1 -1
- package/dist/components/table/snice-cell-tag.js +1 -1
- package/dist/components/table/snice-cell-tag.js.map +1 -1
- package/dist/components/table/snice-cell-text.js +1 -1
- package/dist/components/table/snice-cell.js +15 -10
- package/dist/components/table/snice-cell.js.map +1 -1
- package/dist/components/table/snice-header.js +1 -1
- package/dist/components/table/snice-header.js.map +1 -1
- package/dist/components/table/snice-row.js +2 -2
- package/dist/components/table/snice-row.js.map +1 -1
- package/dist/components/table/snice-table.d.ts +1 -0
- package/dist/components/table/snice-table.js +24 -4
- package/dist/components/table/snice-table.js.map +1 -1
- package/dist/components/terminal/snice-terminal.d.ts +40 -0
- package/dist/components/terminal/snice-terminal.js +371 -0
- package/dist/components/terminal/snice-terminal.js.map +1 -0
- package/dist/components/terminal/snice-terminal.types.d.ts +20 -24
- package/dist/components/textarea/snice-textarea.d.ts +2 -0
- package/dist/components/textarea/snice-textarea.js +25 -6
- package/dist/components/textarea/snice-textarea.js.map +1 -1
- package/dist/components/theme/theme.css +16 -0
- package/dist/components/tree/snice-tree-item.d.ts +18 -4
- package/dist/components/tree/snice-tree-item.js +271 -88
- package/dist/components/tree/snice-tree-item.js.map +1 -1
- package/dist/components/tree/snice-tree-item.types.d.ts +3 -0
- package/dist/components/tree/snice-tree.d.ts +18 -2
- package/dist/components/tree/snice-tree.js +422 -56
- package/dist/components/tree/snice-tree.js.map +1 -1
- package/dist/components/tree/snice-tree.types.d.ts +1 -0
- package/dist/components/virtual-scroller/snice-virtual-scroller.js +4 -2
- package/dist/components/virtual-scroller/snice-virtual-scroller.js.map +1 -1
- package/dist/index.cjs +42 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +42 -23
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +42 -23
- package/dist/index.iife.js.map +1 -1
- package/dist/render-tracker.d.ts +1 -0
- package/dist/symbols.cjs +13 -14
- package/dist/symbols.cjs.map +1 -1
- package/dist/symbols.esm.js +13 -14
- package/dist/symbols.esm.js.map +1 -1
- package/dist/template.d.ts +1 -0
- package/dist/transitions.cjs +1 -1
- package/dist/transitions.esm.js +1 -1
- package/docs/ai/api.md +37 -4
- package/docs/ai/components/doc.md +41 -106
- package/docs/ai/components/kanban.md +31 -9
- package/docs/ai/components/kpi.md +15 -0
- package/docs/ai/components/terminal.md +147 -0
- package/docs/components/doc.md +96 -212
- package/docs/components/kanban.md +119 -4
- package/docs/components/kpi.md +27 -0
- package/docs/components/terminal.md +451 -0
- package/package.json +1 -1
- package/dist/components/actions/snice-actions.d.ts +0 -28
- package/dist/components/actions/snice-actions.js +0 -220
- package/dist/components/actions/snice-actions.js.map +0 -1
- package/dist/components/actions/snice-actions.types.d.ts +0 -27
- package/dist/components/doc/snice-doc.types.d.ts +0 -118
- package/dist/components/gantt/snice-gantt.d.ts +0 -29
- package/dist/components/gantt/snice-gantt.js +0 -268
- package/dist/components/gantt/snice-gantt.js.map +0 -1
- package/dist/components/gantt/snice-gantt.types.d.ts +0 -23
- package/dist/components/snice-cell-C0slgOpe.js +0 -4
- package/dist/components/snice-cell-C0slgOpe.js.map +0 -1
- package/dist/components/stat/snice-stat.d.ts +0 -14
- package/dist/components/stat/snice-stat.js +0 -140
- package/dist/components/stat/snice-stat.js.map +0 -1
- package/dist/components/stat/snice-stat.types.d.ts +0 -12
- package/docs/ai/components/actions.md +0 -81
- package/docs/ai/components/gantt.md +0 -95
- package/docs/ai/components/stat.md +0 -29
- package/docs/components/actions.md +0 -317
- package/docs/components/gantt.md +0 -347
- package/docs/components/stat.md +0 -45
|
@@ -5,10 +5,19 @@
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
body {
|
|
8
|
-
font-family: -
|
|
9
|
-
background: var(--
|
|
10
|
-
color: var(--
|
|
11
|
-
line-height:
|
|
8
|
+
font-family: var(--snice-font-family);
|
|
9
|
+
background: var(--snice-color-background);
|
|
10
|
+
color: var(--snice-color-text);
|
|
11
|
+
line-height: var(--snice-line-height-normal);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* Override component backgrounds to respect dark mode */
|
|
15
|
+
snice-card {
|
|
16
|
+
--card-bg: var(--snice-color-background-element);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
snice-layout-sidebar {
|
|
20
|
+
--sidebar-bg: var(--snice-color-background-secondary);
|
|
12
21
|
}
|
|
13
22
|
|
|
14
23
|
#app {
|
|
@@ -16,14 +25,14 @@ body {
|
|
|
16
25
|
}
|
|
17
26
|
|
|
18
27
|
.post {
|
|
19
|
-
margin-bottom:
|
|
28
|
+
margin-bottom: var(--snice-spacing-md);
|
|
20
29
|
}
|
|
21
30
|
|
|
22
31
|
.post-header {
|
|
23
32
|
display: flex;
|
|
24
33
|
align-items: center;
|
|
25
|
-
gap:
|
|
26
|
-
margin-bottom:
|
|
34
|
+
gap: var(--snice-spacing-md);
|
|
35
|
+
margin-bottom: var(--snice-spacing-md);
|
|
27
36
|
}
|
|
28
37
|
|
|
29
38
|
.post-author {
|
|
@@ -32,65 +41,65 @@ body {
|
|
|
32
41
|
}
|
|
33
42
|
|
|
34
43
|
.post-name {
|
|
35
|
-
font-weight:
|
|
36
|
-
color: var(--
|
|
44
|
+
font-weight: var(--snice-font-weight-semibold);
|
|
45
|
+
color: var(--snice-color-text);
|
|
37
46
|
}
|
|
38
47
|
|
|
39
48
|
.post-time {
|
|
40
|
-
font-size:
|
|
41
|
-
color: var(--text-
|
|
49
|
+
font-size: var(--snice-font-size-sm);
|
|
50
|
+
color: var(--snice-color-text-secondary);
|
|
42
51
|
}
|
|
43
52
|
|
|
44
53
|
.post-content {
|
|
45
|
-
margin-bottom:
|
|
46
|
-
line-height:
|
|
54
|
+
margin-bottom: var(--snice-spacing-md);
|
|
55
|
+
line-height: var(--snice-line-height-loose);
|
|
47
56
|
}
|
|
48
57
|
|
|
49
58
|
.post-actions {
|
|
50
59
|
display: flex;
|
|
51
|
-
gap:
|
|
52
|
-
padding-top:
|
|
53
|
-
border-top: 1px solid var(--
|
|
60
|
+
gap: var(--snice-spacing-md);
|
|
61
|
+
padding-top: var(--snice-spacing-md);
|
|
62
|
+
border-top: 1px solid var(--snice-color-border);
|
|
54
63
|
}
|
|
55
64
|
|
|
56
65
|
.profile-header {
|
|
57
66
|
text-align: center;
|
|
58
|
-
padding:
|
|
59
|
-
background: linear-gradient(135deg, var(--
|
|
60
|
-
color:
|
|
61
|
-
border-radius:
|
|
62
|
-
margin-bottom:
|
|
67
|
+
padding: var(--snice-spacing-2xl);
|
|
68
|
+
background: linear-gradient(135deg, var(--snice-color-primary) 0%, var(--snice-color-primary-hover) 100%);
|
|
69
|
+
color: var(--snice-color-text-inverse);
|
|
70
|
+
border-radius: var(--snice-border-radius-xl) var(--snice-border-radius-xl) 0 0;
|
|
71
|
+
margin-bottom: var(--snice-spacing-2xl);
|
|
63
72
|
}
|
|
64
73
|
|
|
65
74
|
.profile-name {
|
|
66
|
-
font-size:
|
|
67
|
-
font-weight:
|
|
68
|
-
margin-top:
|
|
75
|
+
font-size: var(--snice-font-size-2xl);
|
|
76
|
+
font-weight: var(--snice-font-weight-semibold);
|
|
77
|
+
margin-top: var(--snice-spacing-md);
|
|
69
78
|
}
|
|
70
79
|
|
|
71
80
|
.profile-bio {
|
|
72
|
-
margin-top:
|
|
81
|
+
margin-top: var(--snice-spacing-xs);
|
|
73
82
|
opacity: 0.9;
|
|
74
83
|
}
|
|
75
84
|
|
|
76
85
|
.stats-grid {
|
|
77
86
|
display: grid;
|
|
78
87
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
79
|
-
gap:
|
|
80
|
-
margin-bottom:
|
|
88
|
+
gap: var(--snice-spacing-md);
|
|
89
|
+
margin-bottom: var(--snice-spacing-2xl);
|
|
81
90
|
}
|
|
82
91
|
|
|
83
92
|
.message-item {
|
|
84
93
|
display: flex;
|
|
85
|
-
gap:
|
|
86
|
-
padding:
|
|
87
|
-
border-bottom: 1px solid var(--
|
|
94
|
+
gap: var(--snice-spacing-md);
|
|
95
|
+
padding: var(--snice-spacing-md);
|
|
96
|
+
border-bottom: 1px solid var(--snice-color-border);
|
|
88
97
|
cursor: pointer;
|
|
89
|
-
transition: background
|
|
98
|
+
transition: background var(--snice-transition-fast);
|
|
90
99
|
}
|
|
91
100
|
|
|
92
101
|
.message-item:hover {
|
|
93
|
-
background: var(--background-
|
|
102
|
+
background: var(--snice-color-background-secondary);
|
|
94
103
|
}
|
|
95
104
|
|
|
96
105
|
.message-content {
|
|
@@ -98,50 +107,50 @@ body {
|
|
|
98
107
|
}
|
|
99
108
|
|
|
100
109
|
.message-name {
|
|
101
|
-
font-weight:
|
|
102
|
-
margin-bottom:
|
|
110
|
+
font-weight: var(--snice-font-weight-semibold);
|
|
111
|
+
margin-bottom: var(--snice-spacing-2xs);
|
|
103
112
|
}
|
|
104
113
|
|
|
105
114
|
.message-preview {
|
|
106
|
-
font-size:
|
|
107
|
-
color: var(--text-
|
|
115
|
+
font-size: var(--snice-font-size-sm);
|
|
116
|
+
color: var(--snice-color-text-secondary);
|
|
108
117
|
}
|
|
109
118
|
|
|
110
119
|
.settings-section {
|
|
111
|
-
margin-bottom:
|
|
120
|
+
margin-bottom: var(--snice-spacing-2xl);
|
|
112
121
|
}
|
|
113
122
|
|
|
114
123
|
.settings-section h2 {
|
|
115
|
-
font-size:
|
|
116
|
-
margin-bottom:
|
|
117
|
-
color: var(--
|
|
124
|
+
font-size: var(--snice-font-size-xl);
|
|
125
|
+
margin-bottom: var(--snice-spacing-md);
|
|
126
|
+
color: var(--snice-color-text);
|
|
118
127
|
}
|
|
119
128
|
|
|
120
129
|
.settings-group {
|
|
121
130
|
display: flex;
|
|
122
131
|
flex-direction: column;
|
|
123
|
-
gap:
|
|
132
|
+
gap: var(--snice-spacing-md);
|
|
124
133
|
}
|
|
125
134
|
|
|
126
135
|
.setting-item {
|
|
127
136
|
display: flex;
|
|
128
137
|
justify-content: space-between;
|
|
129
138
|
align-items: center;
|
|
130
|
-
padding:
|
|
131
|
-
border-bottom: 1px solid var(--
|
|
139
|
+
padding: var(--snice-spacing-md) 0;
|
|
140
|
+
border-bottom: 1px solid var(--snice-color-border);
|
|
132
141
|
}
|
|
133
142
|
|
|
134
143
|
.setting-label {
|
|
135
144
|
display: flex;
|
|
136
145
|
flex-direction: column;
|
|
137
|
-
gap:
|
|
146
|
+
gap: var(--snice-spacing-2xs);
|
|
138
147
|
}
|
|
139
148
|
|
|
140
149
|
.setting-title {
|
|
141
|
-
font-weight:
|
|
150
|
+
font-weight: var(--snice-font-weight-medium);
|
|
142
151
|
}
|
|
143
152
|
|
|
144
153
|
.setting-description {
|
|
145
|
-
font-size:
|
|
146
|
-
color: var(--text-
|
|
154
|
+
font-size: var(--snice-font-size-sm);
|
|
155
|
+
color: var(--snice-color-text-secondary);
|
|
147
156
|
}
|
|
@@ -7,6 +7,7 @@ export declare class SniceAudioRecorder extends HTMLElement implements SniceAudi
|
|
|
7
7
|
showVisualizer: boolean;
|
|
8
8
|
maxDuration: number;
|
|
9
9
|
showTimer: boolean;
|
|
10
|
+
showPlayback: boolean;
|
|
10
11
|
private mediaRecorder;
|
|
11
12
|
private stream;
|
|
12
13
|
private audioChunks;
|
|
@@ -20,10 +21,15 @@ export declare class SniceAudioRecorder extends HTMLElement implements SniceAudi
|
|
|
20
21
|
private analyser;
|
|
21
22
|
private visualizerData;
|
|
22
23
|
private animationFrame;
|
|
23
|
-
|
|
24
|
+
recordedUrl: string;
|
|
25
|
+
private isPlaying;
|
|
26
|
+
private playbackTime;
|
|
27
|
+
private audioElement;
|
|
28
|
+
private playbackInterval;
|
|
29
|
+
private timerElement?;
|
|
24
30
|
styles(): import("snice").CSSResult;
|
|
25
|
-
|
|
26
|
-
|
|
31
|
+
init(): void;
|
|
32
|
+
cleanup(): void;
|
|
27
33
|
render(): import("snice").TemplateResult;
|
|
28
34
|
private renderVisualizer;
|
|
29
35
|
private renderControls;
|
|
@@ -39,11 +45,15 @@ export declare class SniceAudioRecorder extends HTMLElement implements SniceAudi
|
|
|
39
45
|
getDuration(): number;
|
|
40
46
|
isRecording(): boolean;
|
|
41
47
|
download(filename?: string): void;
|
|
48
|
+
reset(): void;
|
|
49
|
+
handleTogglePlayback(): void;
|
|
50
|
+
private stopPlayback;
|
|
51
|
+
handleSeek(e: MouseEvent): void;
|
|
42
52
|
private handleRecordingComplete;
|
|
43
53
|
private startTimer;
|
|
44
54
|
private stopTimer;
|
|
45
55
|
private updateVisualizer;
|
|
46
|
-
private
|
|
56
|
+
private cleanupMedia;
|
|
47
57
|
private emitRecorderStart;
|
|
48
58
|
private emitRecorderError;
|
|
49
59
|
private emitRecorderPause;
|