@invopop/popui 0.1.4-beta.40 → 0.1.4-beta.41
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.
|
@@ -93,6 +93,16 @@
|
|
|
93
93
|
value = val
|
|
94
94
|
onSelect?.(value)
|
|
95
95
|
}
|
|
96
|
+
|
|
97
|
+
export const open = () => {
|
|
98
|
+
if (!isOpen) {
|
|
99
|
+
selectDropdown?.toggle()
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export const toggle = () => {
|
|
104
|
+
selectDropdown?.toggle()
|
|
105
|
+
}
|
|
96
106
|
</script>
|
|
97
107
|
|
|
98
108
|
{#snippet label()}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import type { DropdownSelectProps } from './types.ts';
|
|
2
|
-
declare const DropdownSelect: import("svelte").Component<DropdownSelectProps, {
|
|
2
|
+
declare const DropdownSelect: import("svelte").Component<DropdownSelectProps, {
|
|
3
|
+
open: () => void;
|
|
4
|
+
toggle: () => void;
|
|
5
|
+
}, "value">;
|
|
3
6
|
type DropdownSelect = ReturnType<typeof DropdownSelect>;
|
|
4
7
|
export default DropdownSelect;
|
|
@@ -5,11 +5,13 @@
|
|
|
5
5
|
let { value, config }: { value: string; config?: UuidCellConfig } = $props()
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
<div class="relative z-0">
|
|
9
|
+
<ButtonUuidCopy
|
|
10
|
+
uuid={value}
|
|
11
|
+
prefixLength={config?.prefixLength}
|
|
12
|
+
suffixLength={config?.suffixLength}
|
|
13
|
+
full={config?.full}
|
|
14
|
+
disabled={config?.disabled}
|
|
15
|
+
oncopied={config?.onCopy}
|
|
16
|
+
/>
|
|
17
|
+
</div>
|
|
@@ -15,6 +15,7 @@ export function createColumns(columns) {
|
|
|
15
15
|
enableSorting: col.enableSorting ?? true,
|
|
16
16
|
enableHiding: col.enableHiding ?? true,
|
|
17
17
|
enableResizing: col.enableResizing ?? true,
|
|
18
|
+
disableColumnFilter: col.disableColumnFilter ?? false,
|
|
18
19
|
size: col.size,
|
|
19
20
|
minSize: col.minSize,
|
|
20
21
|
maxSize: col.maxSize,
|
package/dist/types.d.ts
CHANGED
|
@@ -662,3 +662,4 @@ export interface UuidCopyProps {
|
|
|
662
662
|
onCopied?: (uuid: string) => void;
|
|
663
663
|
onLinkClick?: (uuid: string) => void;
|
|
664
664
|
}
|
|
665
|
+
export type { DataTableColumn, DataTableProps, CellType, TextCellConfig, BooleanCellConfig, TagCellConfig, DateCellConfig, CurrencyCellConfig, CellConfig } from './data-table/data-table-types.js';
|