@signature.digital/catalog 1.7.0 → 1.8.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/.smartconfig.json +19 -6
- package/dist_bundle/bundle.js +297 -293
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/sdig-signbox/sdig-signbox.d.ts +1 -0
- package/dist_ts_web/elements/sdig-signbox/sdig-signbox.js +23 -9
- package/dist_ts_web/elements/sdig-signpad/sdig-signpad.d.ts +5 -2
- package/dist_ts_web/elements/sdig-signpad/sdig-signpad.js +12 -4
- package/dist_ts_web/elements/sdig-workspace/sdig-workspace-compose.d.ts +1 -0
- package/dist_ts_web/elements/sdig-workspace/sdig-workspace-compose.js +15 -3
- package/dist_ts_web/elements/sdig-workspace/sdig-workspace-inbox.js +3 -2
- package/dist_ts_web/elements/sdig-workspace/sdig-workspace-sign.d.ts +3 -0
- package/dist_ts_web/elements/sdig-workspace/sdig-workspace-sign.js +55 -18
- package/dist_ts_web/elements/sdig-workspace/sdig-workspace.shared.js +11 -10
- package/dist_ts_web/plugins.d.ts +3 -3
- package/dist_ts_web/plugins.js +3 -4
- package/package.json +13 -12
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/sdig-signbox/sdig-signbox.ts +21 -8
- package/ts_web/elements/sdig-signpad/sdig-signpad.ts +15 -5
- package/ts_web/elements/sdig-workspace/sdig-workspace-compose.ts +13 -2
- package/ts_web/elements/sdig-workspace/sdig-workspace-inbox.ts +2 -1
- package/ts_web/elements/sdig-workspace/sdig-workspace-sign.ts +53 -17
- package/ts_web/elements/sdig-workspace/sdig-workspace.shared.ts +11 -9
- package/ts_web/plugins.ts +3 -4
|
@@ -84,6 +84,7 @@ export const workspaceBaseStyles = css`
|
|
|
84
84
|
* { box-sizing: border-box; }
|
|
85
85
|
button, input, textarea { font: inherit; }
|
|
86
86
|
button { border: 0; cursor: pointer; }
|
|
87
|
+
button:disabled { cursor: not-allowed; opacity: 0.52; }
|
|
87
88
|
dees-icon { flex-shrink: 0; }
|
|
88
89
|
|
|
89
90
|
.mono {
|
|
@@ -341,23 +342,24 @@ export const workspaceBaseStyles = css`
|
|
|
341
342
|
`;
|
|
342
343
|
|
|
343
344
|
export function icon(name: string, size = 14): TemplateResult {
|
|
344
|
-
const iconMap: Record<string, string> = {
|
|
345
|
-
inbox: 'lucide:Inbox', plus: 'lucide:Plus', folder: 'lucide:Folder', shield: 'lucide:Shield', code: 'lucide:Code2',
|
|
346
|
-
user: 'lucide:User', settings: 'lucide:Settings', upload: 'lucide:Upload', file: 'lucide:FileText', sign: 'lucide:PenTool',
|
|
347
|
-
clock: 'lucide:Clock', search: 'lucide:Search', more: 'lucide:MoreHorizontal', send: 'lucide:Send', check: 'lucide:Check',
|
|
348
|
-
eye: 'lucide:Eye', calendar: 'lucide:Calendar', type: 'lucide:Type', download: 'lucide:Download', hash: 'lucide:Hash',
|
|
349
|
-
github: 'lucide:GitBranch', git: 'lucide:GitBranch', server: 'lucide:Server', star: 'lucide:Star', sparkle: 'lucide:Sparkles',
|
|
350
|
-
chevronRight: 'lucide:ChevronRight', chevronDown: 'lucide:ChevronDown', x: 'lucide:X', activity: 'lucide:Activity',
|
|
351
|
-
};
|
|
352
345
|
return html`<dees-icon .icon=${iconMap[name] || iconMap.file} style="font-size: ${size}px;"></dees-icon>`;
|
|
353
346
|
}
|
|
354
347
|
|
|
348
|
+
const iconMap: Record<string, string> = {
|
|
349
|
+
inbox: 'lucide:Inbox', plus: 'lucide:Plus', folder: 'lucide:Folder', shield: 'lucide:Shield', code: 'lucide:Code2',
|
|
350
|
+
user: 'lucide:User', settings: 'lucide:Settings', upload: 'lucide:Upload', file: 'lucide:FileText', sign: 'lucide:PenTool',
|
|
351
|
+
clock: 'lucide:Clock', search: 'lucide:Search', more: 'lucide:MoreHorizontal', send: 'lucide:Send', check: 'lucide:Check',
|
|
352
|
+
eye: 'lucide:Eye', calendar: 'lucide:Calendar', type: 'lucide:Type', download: 'lucide:Download', hash: 'lucide:Hash',
|
|
353
|
+
github: 'lucide:GitBranch', git: 'lucide:GitBranch', server: 'lucide:Server', star: 'lucide:Star', sparkle: 'lucide:Sparkles',
|
|
354
|
+
chevronRight: 'lucide:ChevronRight', chevronDown: 'lucide:ChevronDown', x: 'lucide:X', activity: 'lucide:Activity',
|
|
355
|
+
};
|
|
356
|
+
|
|
355
357
|
export function pill(label: string, tone: 'default' | 'success' | 'warning' | 'error' | 'info' = 'default', dot = false): TemplateResult {
|
|
356
358
|
return html`<span class="pill ${tone} ${dot ? 'dot' : ''}">${label}</span>`;
|
|
357
359
|
}
|
|
358
360
|
|
|
359
361
|
export function actionButton(label: string, variant: 'primary' | 'outline' | 'ghost' = 'outline', iconName?: string, onClick?: () => void): TemplateResult {
|
|
360
|
-
return html`<button class="btn ${variant}"
|
|
362
|
+
return html`<button class="btn ${variant}" ?disabled=${!onClick} title=${onClick ? '' : 'This action must be wired by the host application.'} @click=${onClick}>${iconName ? icon(iconName, 13) : ''}${label}</button>`;
|
|
361
363
|
}
|
|
362
364
|
|
|
363
365
|
export function topBar(config: { breadcrumb: string[]; title: string; subtitle?: TemplateResult; actions?: TemplateResult }): TemplateResult {
|
package/ts_web/plugins.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// third party
|
|
2
|
-
import
|
|
3
|
-
type
|
|
4
|
-
const signaturePad = signaturePadMod as any as signaturePadType;
|
|
2
|
+
import SignaturePad from 'signature_pad';
|
|
3
|
+
export type { PointGroup as TSignaturePadPointGroup } from 'signature_pad';
|
|
5
4
|
|
|
6
5
|
export {
|
|
7
|
-
signaturePad,
|
|
6
|
+
SignaturePad as signaturePad,
|
|
8
7
|
}
|