@g9tm/lynxcontrols-projects 2.5.9 → 2.5.10
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/README.md +5 -0
- package/catalog/cards/G9ActivityFeed.md +17 -0
- package/catalog/cards/G9FileBrowser.md +17 -0
- package/catalog/cards/G9FormBuilder.md +15 -0
- package/catalog/cards/G9OrgChart.md +17 -0
- package/catalog/cards/G9QuestionField.md +17 -0
- package/catalog/cards/G9Timeline.md +3 -3
- package/catalog/catalog.json +2090 -18
- package/catalog/index.md +6 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/activity.css +105 -0
- package/dist/activity.css.map +1 -0
- package/dist/activity.d.ts +49 -0
- package/dist/activity.d.ts.map +1 -0
- package/dist/activity.jsx +129 -0
- package/dist/files.css +264 -0
- package/dist/files.css.map +1 -0
- package/dist/files.d.ts +86 -0
- package/dist/files.d.ts.map +1 -0
- package/dist/files.jsx +318 -0
- package/dist/forms.css +144 -0
- package/dist/forms.css.map +1 -0
- package/dist/forms.d.ts +89 -0
- package/dist/forms.d.ts.map +1 -0
- package/dist/forms.jsx +359 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.jsx +4 -0
- package/dist/org-chart.css +127 -0
- package/dist/org-chart.css.map +1 -0
- package/dist/org-chart.d.ts +73 -0
- package/dist/org-chart.d.ts.map +1 -0
- package/dist/org-chart.jsx +388 -0
- package/dist/projects.css +49 -0
- package/dist/projects.css.map +1 -1
- package/dist/rule-builder.d.ts +6 -0
- package/dist/rule-builder.d.ts.map +1 -1
- package/dist/rule-builder.jsx +24 -3
- package/dist/timeline.d.ts +28 -0
- package/dist/timeline.d.ts.map +1 -1
- package/dist/timeline.jsx +150 -14
- package/package.json +3 -3
package/dist/files.jsx
ADDED
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import { g9IdProps } from "@g9tm/lynxcontrols/base";
|
|
2
|
+
import { G9Button, G9IconButton } from "@g9tm/lynxcontrols/button";
|
|
3
|
+
import { G9Art, G9Icon } from "@g9tm/lynxcontrols/icon";
|
|
4
|
+
import { G9Menu } from "@g9tm/lynxcontrols/popover";
|
|
5
|
+
import { useG9Culture, useG9Direction } from "@g9tm/lynxcontrols/provider";
|
|
6
|
+
import { G9Segmented } from "@g9tm/lynxcontrols/toggle";
|
|
7
|
+
import { formatNumber, searchKey, toNativeDigits } from "@g9tm/lynxcontrols-foundation";
|
|
8
|
+
import { useState } from "@lynx-js/react";
|
|
9
|
+
import "./files.css";
|
|
10
|
+
const EXT = {
|
|
11
|
+
png: 'image',
|
|
12
|
+
jpg: 'image',
|
|
13
|
+
jpeg: 'image',
|
|
14
|
+
gif: 'image',
|
|
15
|
+
webp: 'image',
|
|
16
|
+
heic: 'image',
|
|
17
|
+
svg: 'image',
|
|
18
|
+
mp4: 'video',
|
|
19
|
+
mov: 'video',
|
|
20
|
+
webm: 'video',
|
|
21
|
+
mkv: 'video',
|
|
22
|
+
mp3: 'audio',
|
|
23
|
+
wav: 'audio',
|
|
24
|
+
ogg: 'audio',
|
|
25
|
+
m4a: 'audio',
|
|
26
|
+
flac: 'audio',
|
|
27
|
+
zip: 'archive',
|
|
28
|
+
rar: 'archive',
|
|
29
|
+
'7z': 'archive',
|
|
30
|
+
tar: 'archive',
|
|
31
|
+
gz: 'archive',
|
|
32
|
+
xls: 'sheet',
|
|
33
|
+
xlsx: 'sheet',
|
|
34
|
+
csv: 'sheet',
|
|
35
|
+
ods: 'sheet',
|
|
36
|
+
pdf: 'doc',
|
|
37
|
+
doc: 'doc',
|
|
38
|
+
docx: 'doc',
|
|
39
|
+
txt: 'doc',
|
|
40
|
+
md: 'doc',
|
|
41
|
+
ppt: 'doc',
|
|
42
|
+
pptx: 'doc',
|
|
43
|
+
odt: 'doc'
|
|
44
|
+
};
|
|
45
|
+
function g9FileEntryKind(name) {
|
|
46
|
+
var _ref, _EXT_ext;
|
|
47
|
+
var _exec;
|
|
48
|
+
const ext = (null != (_ref = null == (_exec = /\.([a-z0-9]{1,5})$/i.exec(name)) ? void 0 : _exec[1]) ? _ref : '').toLowerCase();
|
|
49
|
+
return null != (_EXT_ext = EXT[ext]) ? _EXT_ext : 'other';
|
|
50
|
+
}
|
|
51
|
+
const FA_ORDER = 'آابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی';
|
|
52
|
+
const rank = (ch)=>{
|
|
53
|
+
const i = FA_ORDER.indexOf(ch);
|
|
54
|
+
return i >= 0 ? 0x110000 + i : ch.codePointAt(0);
|
|
55
|
+
};
|
|
56
|
+
function compareNames(a, b) {
|
|
57
|
+
const x = Array.from(searchKey(a));
|
|
58
|
+
const y = Array.from(searchKey(b));
|
|
59
|
+
for(let i = 0; i < Math.min(x.length, y.length); i++){
|
|
60
|
+
const d = rank(x[i]) - rank(y[i]);
|
|
61
|
+
if (0 !== d) return d;
|
|
62
|
+
}
|
|
63
|
+
return x.length - y.length || (a < b ? -1 : a > b ? 1 : 0);
|
|
64
|
+
}
|
|
65
|
+
function g9SortFiles(items, key, dir) {
|
|
66
|
+
const sign = 'asc' === dir ? 1 : -1;
|
|
67
|
+
const folder = (e)=>{
|
|
68
|
+
var _e_kind;
|
|
69
|
+
return (null != (_e_kind = e.kind) ? _e_kind : g9FileEntryKind(e.name)) === 'folder';
|
|
70
|
+
};
|
|
71
|
+
return [
|
|
72
|
+
...items
|
|
73
|
+
].sort((a, b)=>{
|
|
74
|
+
var _a_size, _b_size, _a_modified, _b_modified;
|
|
75
|
+
const fa = folder(a);
|
|
76
|
+
const fb = folder(b);
|
|
77
|
+
if (fa !== fb) return fa ? -1 : 1;
|
|
78
|
+
const by = 'name' === key ? compareNames(a.name, b.name) : 'size' === key ? (null != (_a_size = a.size) ? _a_size : 0) - (null != (_b_size = b.size) ? _b_size : 0) : (null != (_a_modified = a.modified) ? _a_modified : 0) - (null != (_b_modified = b.modified) ? _b_modified : 0);
|
|
79
|
+
return 0 === by ? compareNames(a.name, b.name) : by * sign;
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
const icon = (body)=>`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${body}</svg>`;
|
|
83
|
+
const PAGE = '<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><path d="M14 2v6h6"/>';
|
|
84
|
+
const g9FileKindIcons = Object.freeze({
|
|
85
|
+
folder: icon('<path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2z"/>'),
|
|
86
|
+
image: icon('<rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="9" cy="9" r="2"/><path d="M21 15l-3.1-3.1a2 2 0 0 0-2.8 0L6 21"/>'),
|
|
87
|
+
video: icon('<rect x="2" y="6" width="14" height="12" rx="2"/><path d="M16 10.5L22 7v10l-6-3.5z"/>'),
|
|
88
|
+
audio: icon('<path d="M9 18V5l12-2v13"/><circle cx="6" cy="18" r="3"/><circle cx="18" cy="16" r="3"/>'),
|
|
89
|
+
archive: icon(`${PAGE}<path d="M10 6h1"/><path d="M10 10h1"/><path d="M10 14h1"/>`),
|
|
90
|
+
sheet: icon(`${PAGE}<path d="M8 13h8"/><path d="M8 17h8"/><path d="M12 11v8"/>`),
|
|
91
|
+
doc: icon(`${PAGE}<path d="M8 13h8"/><path d="M8 17h5"/>`),
|
|
92
|
+
other: icon(PAGE)
|
|
93
|
+
});
|
|
94
|
+
const CRUMB_RIGHT = icon('<path d="M9 6l6 6-6 6"/>');
|
|
95
|
+
const CRUMB_LEFT = icon('<path d="M15 6l-6 6 6 6"/>');
|
|
96
|
+
function G9FileBrowser(props) {
|
|
97
|
+
var _props_words, _props_view, _props_selected, _props_sort, _props_rootLabel, _props_path, _w_grid, _w_list, _w_upload, _w_clear;
|
|
98
|
+
const rtl = 'rtl' === useG9Direction();
|
|
99
|
+
const culture = useG9Culture();
|
|
100
|
+
const w = null != (_props_words = props.words) ? _props_words : {};
|
|
101
|
+
const view1 = null != (_props_view = props.view) ? _props_view : 'grid';
|
|
102
|
+
const selected = null != (_props_selected = props.selected) ? _props_selected : [];
|
|
103
|
+
const selecting = selected.length > 0;
|
|
104
|
+
const [menuFor, setMenuFor] = useState(null);
|
|
105
|
+
const sort = null != (_props_sort = props.sort) ? _props_sort : {
|
|
106
|
+
key: 'name',
|
|
107
|
+
dir: 'asc'
|
|
108
|
+
};
|
|
109
|
+
const items = g9SortFiles(props.items, sort.key, sort.dir);
|
|
110
|
+
const row = {
|
|
111
|
+
flexDirection: rtl ? 'row-reverse' : 'row',
|
|
112
|
+
direction: 'ltr'
|
|
113
|
+
};
|
|
114
|
+
const align = {
|
|
115
|
+
textAlign: rtl ? 'right' : 'left'
|
|
116
|
+
};
|
|
117
|
+
const id = (part)=>props.id ? `${props.id}_${part}` : void 0;
|
|
118
|
+
const size = (b)=>{
|
|
119
|
+
if (props.formatSize) return props.formatSize(b);
|
|
120
|
+
const n = (v)=>formatNumber(v, {
|
|
121
|
+
numberingSystem: culture.numberingSystem
|
|
122
|
+
});
|
|
123
|
+
if (b >= 1073741824) return `${n(Math.round(b / 1073741824 * 10) / 10)} GB`;
|
|
124
|
+
if (b >= 1048576) return `${n(Math.round(b / 1048576 * 10) / 10)} MB`;
|
|
125
|
+
if (b >= 1024) return `${n(Math.round(b / 1024))} KB`;
|
|
126
|
+
return `${n(b)} B`;
|
|
127
|
+
};
|
|
128
|
+
const toggle = (it)=>{
|
|
129
|
+
var _props_onSelectionChange;
|
|
130
|
+
const next = selected.includes(it.id) ? selected.filter((x)=>x !== it.id) : [
|
|
131
|
+
...selected,
|
|
132
|
+
it.id
|
|
133
|
+
];
|
|
134
|
+
null == (_props_onSelectionChange = props.onSelectionChange) || _props_onSelectionChange.call(props, next);
|
|
135
|
+
};
|
|
136
|
+
const press = (it)=>{
|
|
137
|
+
var _props_onOpen;
|
|
138
|
+
if (selecting && props.onSelectionChange) toggle(it);
|
|
139
|
+
else null == (_props_onOpen = props.onOpen) || _props_onOpen.call(props, it);
|
|
140
|
+
};
|
|
141
|
+
const kindOf = (it)=>{
|
|
142
|
+
var _it_kind;
|
|
143
|
+
return null != (_it_kind = it.kind) ? _it_kind : g9FileEntryKind(it.name);
|
|
144
|
+
};
|
|
145
|
+
const line = (it)=>[
|
|
146
|
+
void 0 !== it.size && 'folder' !== kindOf(it) ? size(it.size) : void 0,
|
|
147
|
+
it.modifiedLabel
|
|
148
|
+
].filter(Boolean).join(' · ');
|
|
149
|
+
const menuButton = (it)=>{
|
|
150
|
+
var _w_more;
|
|
151
|
+
return props.menuFor && props.onMenu && !selecting ? <view className="g9-files__menu" {...g9IdProps(id(`${it.id}_Menu`))}>
|
|
152
|
+
<G9IconButton icon="menu" isGhost size="sm" accessibilityText={null != (_w_more = w.more) ? _w_more : '⋯'} onPress={()=>setMenuFor(it)}/>
|
|
153
|
+
</view> : null;
|
|
154
|
+
};
|
|
155
|
+
const progress = (it)=>void 0 !== it.progress && it.progress < 1 ? <view className="g9-files__progress">
|
|
156
|
+
<view className="g9-files__progress-fill" style={{
|
|
157
|
+
width: `${Math.round(100 * Math.max(0, it.progress))}%`,
|
|
158
|
+
[rtl ? 'right' : 'left']: '0px'
|
|
159
|
+
}}/>
|
|
160
|
+
</view> : null;
|
|
161
|
+
const check = (it, inline = false)=>selecting ? <view className={`g9-files__check${inline ? ' g9-files__check--inline' : ''}${selected.includes(it.id) ? ' g9-files__check--on' : ''}`}>
|
|
162
|
+
{selected.includes(it.id) ? <G9Icon icon="check" size={12} color="var(--g9-on-primary)"/> : null}
|
|
163
|
+
</view> : null;
|
|
164
|
+
const common = (it)=>({
|
|
165
|
+
...g9IdProps(id(it.id)),
|
|
166
|
+
bindtap: ()=>press(it),
|
|
167
|
+
...props.onSelectionChange ? {
|
|
168
|
+
bindlongpress: ()=>toggle(it)
|
|
169
|
+
} : {},
|
|
170
|
+
'accessibility-element': true,
|
|
171
|
+
'accessibility-traits': 'button',
|
|
172
|
+
'accessibility-label': [
|
|
173
|
+
it.name,
|
|
174
|
+
line(it)
|
|
175
|
+
].filter(Boolean).join(', '),
|
|
176
|
+
...selected.includes(it.id) ? {
|
|
177
|
+
'accessibility-value': '✓'
|
|
178
|
+
} : {}
|
|
179
|
+
});
|
|
180
|
+
const content = <view className="g9-files" {...g9IdProps(props.id)}>
|
|
181
|
+
<view className="g9-files__top" style={row}>
|
|
182
|
+
<view className="g9-files__crumbs">
|
|
183
|
+
<view className="g9-files__crumb-row" style={row}>
|
|
184
|
+
{[
|
|
185
|
+
{
|
|
186
|
+
id: '',
|
|
187
|
+
name: null != (_props_rootLabel = props.rootLabel) ? _props_rootLabel : '/'
|
|
188
|
+
},
|
|
189
|
+
...null != (_props_path = props.path) ? _props_path : []
|
|
190
|
+
].map((c, i, all)=><view key={c.id || '~'} className="g9-files__crumb-step" style={row}>
|
|
191
|
+
{i > 0 ? <G9Art svg={rtl ? CRUMB_LEFT : CRUMB_RIGHT} height={14} color="var(--g9-text-tertiary)"/> : null}
|
|
192
|
+
<view className="g9-files__crumb" {...g9IdProps(id(`Crumb${i}`))} {...i < all.length - 1 && props.onNavigate ? {
|
|
193
|
+
bindtap: ()=>{
|
|
194
|
+
var _props_onNavigate;
|
|
195
|
+
return null == (_props_onNavigate = props.onNavigate) ? void 0 : _props_onNavigate.call(props, c.id || null);
|
|
196
|
+
}
|
|
197
|
+
} : {}} accessibility-element={true} accessibility-traits={i < all.length - 1 ? 'button' : 'header'} accessibility-label={c.name}>
|
|
198
|
+
<text className={`g9-files__crumb-text${i === all.length - 1 ? ' g9-files__crumb-text--here' : ''}`}>
|
|
199
|
+
{c.name}
|
|
200
|
+
</text>
|
|
201
|
+
</view>
|
|
202
|
+
</view>)}
|
|
203
|
+
</view>
|
|
204
|
+
</view>
|
|
205
|
+
{props.onViewChange ? <G9Segmented {...id('View') ? {
|
|
206
|
+
id: id('View')
|
|
207
|
+
} : {}} size="sm" fit="content" value={view1} onChange={(v)=>{
|
|
208
|
+
var _props_onViewChange;
|
|
209
|
+
return null == (_props_onViewChange = props.onViewChange) ? void 0 : _props_onViewChange.call(props, v);
|
|
210
|
+
}} items={[
|
|
211
|
+
{
|
|
212
|
+
key: 'grid',
|
|
213
|
+
label: null != (_w_grid = w.grid) ? _w_grid : '▦'
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
key: 'list',
|
|
217
|
+
label: null != (_w_list = w.list) ? _w_list : '☰'
|
|
218
|
+
}
|
|
219
|
+
]}/> : null}
|
|
220
|
+
{props.onUpload ? <G9Button {...id('Upload') ? {
|
|
221
|
+
id: id('Upload')
|
|
222
|
+
} : {}} text={null != (_w_upload = w.upload) ? _w_upload : '+'} variant="tonal" size="small" onPress={()=>{
|
|
223
|
+
var _props_onUpload;
|
|
224
|
+
return null == (_props_onUpload = props.onUpload) ? void 0 : _props_onUpload.call(props);
|
|
225
|
+
}}/> : null}
|
|
226
|
+
</view>
|
|
227
|
+
{props.onSortChange ? <view className="g9-files__sort" style={row}>
|
|
228
|
+
{[
|
|
229
|
+
'name',
|
|
230
|
+
'modified',
|
|
231
|
+
'size'
|
|
232
|
+
].map((k)=>{
|
|
233
|
+
var _w_k, _w_k1;
|
|
234
|
+
return <view key={k} className={`g9-files__sort-key${sort.key === k ? ' g9-files__sort-key--on' : ''}`} {...g9IdProps(id(`Sort_${k}`))} style={row} bindtap={()=>{
|
|
235
|
+
var _props_onSortChange;
|
|
236
|
+
return null == (_props_onSortChange = props.onSortChange) ? void 0 : _props_onSortChange.call(props, sort.key === k ? {
|
|
237
|
+
key: k,
|
|
238
|
+
dir: 'asc' === sort.dir ? 'desc' : 'asc'
|
|
239
|
+
} : {
|
|
240
|
+
key: k,
|
|
241
|
+
dir: 'name' === k ? 'asc' : 'desc'
|
|
242
|
+
});
|
|
243
|
+
}} accessibility-element={true} accessibility-traits="button" accessibility-label={null != (_w_k = w[k]) ? _w_k : k}>
|
|
244
|
+
<text className={`g9-files__sort-text${sort.key === k ? ' g9-files__sort-text--on' : ''}`}>
|
|
245
|
+
{null != (_w_k1 = w[k]) ? _w_k1 : k}
|
|
246
|
+
</text>
|
|
247
|
+
{sort.key === k ? <G9Icon icon={'asc' === sort.dir ? 'chevronUp' : 'chevronDown'} size={12} color="var(--g9-primary)"/> : null}
|
|
248
|
+
</view>;
|
|
249
|
+
})}
|
|
250
|
+
</view> : null}
|
|
251
|
+
{selecting ? <view className="g9-files__selection" style={row}>
|
|
252
|
+
<text className="g9-files__selection-text">
|
|
253
|
+
{w.selected ? w.selected(selected.length) : toNativeDigits(String(selected.length), culture.numberingSystem)}
|
|
254
|
+
</text>
|
|
255
|
+
<view className="g9-files__selection-actions" style={row}>
|
|
256
|
+
{props.selectionActions}
|
|
257
|
+
{props.onSelectionChange ? <G9Button {...id('Clear') ? {
|
|
258
|
+
id: id('Clear')
|
|
259
|
+
} : {}} text={null != (_w_clear = w.clear) ? _w_clear : '×'} variant="ghost" size="small" onPress={()=>{
|
|
260
|
+
var _props_onSelectionChange;
|
|
261
|
+
return null == (_props_onSelectionChange = props.onSelectionChange) ? void 0 : _props_onSelectionChange.call(props, []);
|
|
262
|
+
}}/> : null}
|
|
263
|
+
</view>
|
|
264
|
+
</view> : null}
|
|
265
|
+
{0 === items.length ? <view className="g9-files__empty">
|
|
266
|
+
<G9Art svg={g9FileKindIcons.folder} height={40} color="var(--g9-text-tertiary)"/>
|
|
267
|
+
{w.empty ? <text className="g9-files__empty-text">{w.empty}</text> : null}
|
|
268
|
+
{w.emptyHint ? <text className="g9-files__empty-hint">{w.emptyHint}</text> : null}
|
|
269
|
+
</view> : 'grid' === view1 ? <view className="g9-files__grid" style={row}>
|
|
270
|
+
{items.map((it)=>{
|
|
271
|
+
var _props_columns;
|
|
272
|
+
return <view key={it.id} className="g9-files__cell" style={{
|
|
273
|
+
width: `${100 / (null != (_props_columns = props.columns) ? _props_columns : 3)}%`
|
|
274
|
+
}}>
|
|
275
|
+
<view className={`g9-files__tile${selected.includes(it.id) ? ' g9-files__tile--on' : ''}`} {...common(it)}>
|
|
276
|
+
<view className="g9-files__preview">
|
|
277
|
+
{it.thumb ? <image className="g9-files__thumb" src={it.thumb} mode="aspectFill"/> : <G9Art svg={g9FileKindIcons[kindOf(it)]} height={32} color={'folder' === kindOf(it) ? 'var(--g9-primary)' : 'var(--g9-text-secondary)'}/>}
|
|
278
|
+
{check(it)}
|
|
279
|
+
{progress(it)}
|
|
280
|
+
</view>
|
|
281
|
+
<view className="g9-files__tile-foot" style={row}>
|
|
282
|
+
<text className="g9-files__name" text-maxline="2" style={align}>
|
|
283
|
+
{it.name}
|
|
284
|
+
</text>
|
|
285
|
+
{menuButton(it)}
|
|
286
|
+
</view>
|
|
287
|
+
</view>
|
|
288
|
+
</view>;
|
|
289
|
+
})}
|
|
290
|
+
</view> : <view className="g9-files__list">
|
|
291
|
+
{items.map((it)=><view key={it.id} className={`g9-files__row${selected.includes(it.id) ? ' g9-files__row--on' : ''}`} style={row} {...common(it)}>
|
|
292
|
+
{check(it, true)}
|
|
293
|
+
<view className="g9-files__row-icon">
|
|
294
|
+
{it.thumb ? <image className="g9-files__row-thumb" src={it.thumb} mode="aspectFill"/> : <G9Art svg={g9FileKindIcons[kindOf(it)]} height={22} color={'folder' === kindOf(it) ? 'var(--g9-primary)' : 'var(--g9-text-secondary)'}/>}
|
|
295
|
+
</view>
|
|
296
|
+
<view className="g9-files__row-texts">
|
|
297
|
+
<text className="g9-files__name" text-maxline="1" style={align}>
|
|
298
|
+
{it.name}
|
|
299
|
+
</text>
|
|
300
|
+
{line(it) ? <text className="g9-files__meta" style={align}>
|
|
301
|
+
{line(it)}
|
|
302
|
+
</text> : null}
|
|
303
|
+
{progress(it)}
|
|
304
|
+
</view>
|
|
305
|
+
{menuButton(it)}
|
|
306
|
+
</view>)}
|
|
307
|
+
</view>}
|
|
308
|
+
{props.menuFor && props.onMenu ? <G9Menu open={null !== menuFor} onClose={()=>setMenuFor(null)} items={menuFor ? props.menuFor(menuFor) : []} {...props.id && menuFor ? {
|
|
309
|
+
id: `${props.id}_ItemMenu`,
|
|
310
|
+
anchorId: `${props.id}_${menuFor.id}_Menu`
|
|
311
|
+
} : {}} onSelect={(key)=>{
|
|
312
|
+
var _props_onMenu;
|
|
313
|
+
if (menuFor) null == (_props_onMenu = props.onMenu) || _props_onMenu.call(props, key, menuFor);
|
|
314
|
+
}}/> : null}
|
|
315
|
+
</view>;
|
|
316
|
+
return props.wrapDrop ? props.wrapDrop(content) : content;
|
|
317
|
+
}
|
|
318
|
+
export { G9FileBrowser, g9FileEntryKind, g9FileKindIcons, g9SortFiles };
|
package/dist/forms.css
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
.g9-q {
|
|
2
|
+
flex-direction: column;
|
|
3
|
+
row-gap: 6px;
|
|
4
|
+
display: flex;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.g9-q__title {
|
|
8
|
+
font-size: 14px;
|
|
9
|
+
font-weight: 600;
|
|
10
|
+
font-family: var(--g9-font-text-600);
|
|
11
|
+
color: var(--g9-text-primary);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.g9-q__required {
|
|
15
|
+
color: var(--g9-error);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.g9-q__help {
|
|
19
|
+
font-size: 12px;
|
|
20
|
+
font-family: var(--g9-font-text);
|
|
21
|
+
color: var(--g9-text-secondary);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.g9-q__problem {
|
|
25
|
+
font-size: 12px;
|
|
26
|
+
font-family: var(--g9-font-text);
|
|
27
|
+
color: var(--g9-error);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.g9-q__checks {
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
row-gap: 4px;
|
|
33
|
+
display: flex;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.g9-q__files {
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
row-gap: 6px;
|
|
39
|
+
display: flex;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.g9-q__file {
|
|
43
|
+
background-color: var(--g9-surface-container);
|
|
44
|
+
border-radius: 8px;
|
|
45
|
+
align-items: center;
|
|
46
|
+
column-gap: 6px;
|
|
47
|
+
padding: 4px 8px;
|
|
48
|
+
display: flex;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.g9-q__file-name {
|
|
52
|
+
min-width: 0;
|
|
53
|
+
font-size: 13px;
|
|
54
|
+
font-family: var(--g9-font-text);
|
|
55
|
+
color: var(--g9-text-primary);
|
|
56
|
+
flex: 1;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.g9-q__file-progress {
|
|
60
|
+
font-size: 11px;
|
|
61
|
+
font-family: var(--g9-font-text);
|
|
62
|
+
color: var(--g9-text-tertiary);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.g9-fb {
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
row-gap: 10px;
|
|
68
|
+
display: flex;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.g9-fb__empty {
|
|
72
|
+
font-size: 13px;
|
|
73
|
+
font-family: var(--g9-font-text);
|
|
74
|
+
text-align: center;
|
|
75
|
+
color: var(--g9-text-secondary);
|
|
76
|
+
padding: 16px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.g9-fb__card {
|
|
80
|
+
border-style: solid;
|
|
81
|
+
border-width: 1px;
|
|
82
|
+
border-color: var(--g9-outline-variant);
|
|
83
|
+
background-color: var(--g9-surface-container);
|
|
84
|
+
border-radius: 14px;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
row-gap: 8px;
|
|
87
|
+
margin-bottom: 10px;
|
|
88
|
+
padding: 10px 12px;
|
|
89
|
+
display: flex;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.g9-fb__card--dragging {
|
|
93
|
+
border-color: var(--g9-primary);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.g9-fb__head {
|
|
97
|
+
align-items: center;
|
|
98
|
+
column-gap: 4px;
|
|
99
|
+
display: flex;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.g9-fb__kind {
|
|
103
|
+
display: flex;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.g9-fb__spacer {
|
|
107
|
+
flex: 1;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.g9-fb__options {
|
|
111
|
+
flex-direction: column;
|
|
112
|
+
row-gap: 4px;
|
|
113
|
+
display: flex;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.g9-fb__option {
|
|
117
|
+
align-items: center;
|
|
118
|
+
column-gap: 4px;
|
|
119
|
+
display: flex;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.g9-fb__option-field {
|
|
123
|
+
flex: 1;
|
|
124
|
+
min-width: 0;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.g9-fb__required {
|
|
128
|
+
justify-content: space-between;
|
|
129
|
+
align-items: center;
|
|
130
|
+
display: flex;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.g9-fb__required-text {
|
|
134
|
+
font-size: 13px;
|
|
135
|
+
font-family: var(--g9-font-text);
|
|
136
|
+
color: var(--g9-text-secondary);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.g9-fb__add {
|
|
140
|
+
display: flex;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
/*# sourceMappingURL=forms.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["webpack://./src/forms.css"],"names":[],"mappings":"AACA;EAAE,sBAAsB;EACtB,YAAY;EACZ,aAAa;AACf;;AAGA;EAAE,eAAe;EACf,gBAAgB;EAChB,oCAAoC;EACpC,6BAA6B;AAC/B;;AAGA;EAAE,sBAAsB;AACxB;;AAGA;EAAE,eAAe;EACf,gCAAgC;EAChC,+BAA+B;AACjC;;AAGA;EAAE,eAAe;EACf,gCAAgC;EAChC,sBAAsB;AACxB;;AAGA;EAAE,sBAAsB;EACtB,YAAY;EACZ,aAAa;AACf;;AAGA;EAAE,sBAAsB;EACtB,YAAY;EACZ,aAAa;AACf;;AAGA;EAAE,6CAA6C;EAC7C,kBAAkB;EAClB,mBAAmB;EACnB,eAAe;EACf,gBAAgB;EAChB,aAAa;AACf;;AAGA;EAAE,YAAY;EACZ,eAAe;EACf,gCAAgC;EAChC,6BAA6B;EAC7B,OAAO;AACT;;AAGA;EAAE,eAAe;EACf,gCAAgC;EAChC,8BAA8B;AAChC;;AAGA;EAAE,sBAAsB;EACtB,aAAa;EACb,aAAa;AACf;;AAGA;EAAE,eAAe;EACf,gCAAgC;EAChC,kBAAkB;EAClB,+BAA+B;EAC/B,aAAa;AACf;;AAGA;EAAE,mBAAmB;EACnB,iBAAiB;EACjB,uCAAuC;EACvC,6CAA6C;EAC7C,mBAAmB;EACnB,sBAAsB;EACtB,YAAY;EACZ,mBAAmB;EACnB,kBAAkB;EAClB,aAAa;AACf;;AAGA;EAAE,+BAA+B;AACjC;;AAGA;EAAE,mBAAmB;EACnB,eAAe;EACf,aAAa;AACf;;AAGA;EAAE,aAAa;AACf;;AAGA;EAAE,OAAO;AACT;;AAGA;EAAE,sBAAsB;EACtB,YAAY;EACZ,aAAa;AACf;;AAGA;EAAE,mBAAmB;EACnB,eAAe;EACf,aAAa;AACf;;AAGA;EAAE,OAAO;EACP,YAAY;AACd;;AAGA;EAAE,8BAA8B;EAC9B,mBAAmB;EACnB,aAAa;AACf;;AAGA;EAAE,eAAe;EACf,gCAAgC;EAChC,+BAA+B;AACjC;;AAGA;EAAE,aAAa;AACf","sourcesContent":["/* G9QuestionField and G9FormBuilder (2.5.10). */\n.g9-q {\n display: flex;\n flex-direction: column;\n row-gap: 6px;\n}\n\n.g9-q__title {\n font-size: 14px;\n font-weight: 600;\n font-family: var(--g9-font-text-600);\n color: var(--g9-text-primary);\n}\n\n.g9-q__required {\n color: var(--g9-error);\n}\n\n.g9-q__help {\n font-size: 12px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-secondary);\n}\n\n.g9-q__problem {\n font-size: 12px;\n font-family: var(--g9-font-text);\n color: var(--g9-error);\n}\n\n.g9-q__checks {\n display: flex;\n flex-direction: column;\n row-gap: 4px;\n}\n\n.g9-q__files {\n display: flex;\n flex-direction: column;\n row-gap: 6px;\n}\n\n.g9-q__file {\n display: flex;\n align-items: center;\n column-gap: 6px;\n padding: 4px 8px;\n border-radius: 8px;\n background-color: var(--g9-surface-container);\n}\n\n.g9-q__file-name {\n flex: 1;\n min-width: 0px;\n font-size: 13px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-primary);\n}\n\n.g9-q__file-progress {\n font-size: 11px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-tertiary);\n}\n\n.g9-fb {\n display: flex;\n flex-direction: column;\n row-gap: 10px;\n}\n\n.g9-fb__empty {\n padding: 16px;\n font-size: 13px;\n font-family: var(--g9-font-text);\n text-align: center;\n color: var(--g9-text-secondary);\n}\n\n.g9-fb__card {\n display: flex;\n flex-direction: column;\n row-gap: 8px;\n margin-bottom: 10px;\n padding: 10px 12px;\n border-radius: 14px;\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n background-color: var(--g9-surface-container);\n}\n\n.g9-fb__card--dragging {\n border-color: var(--g9-primary);\n}\n\n.g9-fb__head {\n display: flex;\n align-items: center;\n column-gap: 4px;\n}\n\n.g9-fb__kind {\n display: flex;\n}\n\n.g9-fb__spacer {\n flex: 1;\n}\n\n.g9-fb__options {\n display: flex;\n flex-direction: column;\n row-gap: 4px;\n}\n\n.g9-fb__option {\n display: flex;\n align-items: center;\n column-gap: 4px;\n}\n\n.g9-fb__option-field {\n flex: 1;\n min-width: 0px;\n}\n\n.g9-fb__required {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.g9-fb__required-text {\n font-size: 13px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-secondary);\n}\n\n.g9-fb__add {\n display: flex;\n}\n"],"sourceRoot":""}
|
package/dist/forms.d.ts
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { G9LocalDate } from '@g9tm/lynxcontrols-foundation';
|
|
2
|
+
import { type ReactNode } from '@lynx-js/react';
|
|
3
|
+
import './forms.css';
|
|
4
|
+
/** A question's kind. */
|
|
5
|
+
export type G9QuestionKind = 'text' | 'longText' | 'single' | 'multi' | 'dropdown' | 'rating' | 'scale' | 'date' | 'number' | 'file';
|
|
6
|
+
/** The kinds with options. */
|
|
7
|
+
export declare const g9ChoiceKinds: readonly G9QuestionKind[];
|
|
8
|
+
/** One question of a form. */
|
|
9
|
+
export interface G9FormQuestion {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
readonly kind: G9QuestionKind;
|
|
12
|
+
readonly title: string;
|
|
13
|
+
readonly help?: string;
|
|
14
|
+
readonly required?: boolean;
|
|
15
|
+
/** single / multi / dropdown. */
|
|
16
|
+
readonly options?: readonly {
|
|
17
|
+
readonly id: string;
|
|
18
|
+
readonly label: string;
|
|
19
|
+
}[];
|
|
20
|
+
readonly placeholder?: string;
|
|
21
|
+
/** number: the bounds; scale: 0–10 by default. */
|
|
22
|
+
readonly min?: number;
|
|
23
|
+
readonly max?: number;
|
|
24
|
+
/** scale: the words at its ends. */
|
|
25
|
+
readonly endLabels?: readonly [string, string];
|
|
26
|
+
}
|
|
27
|
+
/** A file attached to an answer. */
|
|
28
|
+
export interface G9AnswerFile {
|
|
29
|
+
readonly id: string;
|
|
30
|
+
readonly name: string;
|
|
31
|
+
/** Uploading: 0–1. */
|
|
32
|
+
readonly progress?: number;
|
|
33
|
+
}
|
|
34
|
+
/** An answer: text, the chosen option ids, a number (stars, the scale, a number), a date, files. */
|
|
35
|
+
export type G9FormAnswer = string | readonly string[] | number | G9LocalDate | readonly G9AnswerFile[] | null;
|
|
36
|
+
/** Whether an answer is empty (a required question's check). */
|
|
37
|
+
export declare function g9AnswerEmpty(answer: G9FormAnswer | undefined): boolean;
|
|
38
|
+
/** Props of {@link G9QuestionField}. */
|
|
39
|
+
export interface G9QuestionFieldProps {
|
|
40
|
+
readonly id?: string;
|
|
41
|
+
readonly question: G9FormQuestion;
|
|
42
|
+
readonly value: G9FormAnswer | undefined;
|
|
43
|
+
readonly onChange: (answer: G9FormAnswer) => void;
|
|
44
|
+
/** Under the field in the error colour. */
|
|
45
|
+
readonly problem?: string | null;
|
|
46
|
+
/** file: the app's picker (it uploads and passes the files back in `value`). */
|
|
47
|
+
readonly onPickFiles?: () => void;
|
|
48
|
+
readonly onRemoveFile?: (fileId: string) => void;
|
|
49
|
+
readonly words?: {
|
|
50
|
+
readonly required?: string;
|
|
51
|
+
readonly addFile?: string;
|
|
52
|
+
readonly remove?: string;
|
|
53
|
+
readonly choose?: string;
|
|
54
|
+
};
|
|
55
|
+
readonly disabled?: boolean;
|
|
56
|
+
}
|
|
57
|
+
/** One question answered: its title (with the required mark), the help, the field of its kind, the problem. */
|
|
58
|
+
export declare function G9QuestionField(props: G9QuestionFieldProps): ReactNode;
|
|
59
|
+
/** The builder's words. */
|
|
60
|
+
export interface G9FormBuilderWords {
|
|
61
|
+
readonly kinds: Readonly<Record<G9QuestionKind, string>>;
|
|
62
|
+
readonly title: string;
|
|
63
|
+
readonly help: string;
|
|
64
|
+
readonly option: (n: number) => string;
|
|
65
|
+
readonly addOption: string;
|
|
66
|
+
readonly addQuestion: string;
|
|
67
|
+
readonly required: string;
|
|
68
|
+
readonly remove: string;
|
|
69
|
+
readonly duplicate?: string;
|
|
70
|
+
readonly kind: string;
|
|
71
|
+
readonly drag?: string;
|
|
72
|
+
readonly empty?: string;
|
|
73
|
+
}
|
|
74
|
+
/** Props of {@link G9FormBuilder}. */
|
|
75
|
+
export interface G9FormBuilderProps {
|
|
76
|
+
readonly id?: string;
|
|
77
|
+
readonly questions: readonly G9FormQuestion[];
|
|
78
|
+
readonly onChange: (questions: readonly G9FormQuestion[]) => void;
|
|
79
|
+
readonly words: G9FormBuilderWords;
|
|
80
|
+
/** New ids (default `q` + a counter). */
|
|
81
|
+
readonly newId?: () => string;
|
|
82
|
+
/** The kinds offered (default all). */
|
|
83
|
+
readonly kinds?: readonly G9QuestionKind[];
|
|
84
|
+
/** The card's height while dragging (dp). Default 220. */
|
|
85
|
+
readonly rowHeight?: number;
|
|
86
|
+
}
|
|
87
|
+
/** A form's questions edited: cards dragged to reorder, a kind menu, the options, required, duplicate, delete. */
|
|
88
|
+
export declare function G9FormBuilder(props: G9FormBuilderProps): ReactNode;
|
|
89
|
+
//# sourceMappingURL=forms.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forms.d.ts","sourceRoot":"","sources":["../src/forms.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,gBAAgB,CAAC;AAC1D,OAAO,aAAa,CAAC;AAErB,yBAAyB;AACzB,MAAM,MAAM,cAAc,GACtB,MAAM,GACN,UAAU,GACV,QAAQ,GACR,OAAO,GACP,UAAU,GACV,QAAQ,GACR,OAAO,GACP,MAAM,GACN,QAAQ,GACR,MAAM,CAAC;AAEX,8BAA8B;AAC9B,eAAO,MAAM,aAAa,EAAE,SAAS,cAAc,EAAoC,CAAC;AAExF,8BAA8B;AAC9B,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,iCAAiC;IACjC,QAAQ,CAAC,OAAO,CAAC,EAAE,SA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