@lavalogic/scoria 0.38.12 → 0.38.13
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/dist/Components/AccordionGroup.svelte +46 -46
- package/dist/Components/AccordionGroupButton.svelte +76 -76
- package/dist/Components/Action.svelte +136 -136
- package/dist/Components/AppointmentCalendar/AppointmentCalendar.svelte +712 -702
- package/dist/Components/Base/BaseModal.svelte +125 -125
- package/dist/Components/Base/ContextWrapper.svelte +72 -72
- package/dist/Components/Base/Pagination.svelte +198 -198
- package/dist/Components/Base/Snippets.svelte +36 -36
- package/dist/Components/BigRadioSet.svelte +38 -38
- package/dist/Components/Bubble.svelte +101 -101
- package/dist/Components/Button.svelte +209 -209
- package/dist/Components/Checkbox.svelte +86 -86
- package/dist/Components/Contexts/ContextMenu.svelte +164 -164
- package/dist/Components/Contexts/ContextMenuDivider.svelte +15 -15
- package/dist/Components/Contexts/ContextMenuOption.svelte +60 -60
- package/dist/Components/Contexts/ToastContainer.svelte +65 -65
- package/dist/Components/Contexts/Tooltip.svelte +37 -37
- package/dist/Components/DataMatrixIcon.svelte +112 -112
- package/dist/Components/DateInput.svelte +148 -148
- package/dist/Components/DatePicker.svelte +300 -300
- package/dist/Components/DesktopModal.svelte +90 -90
- package/dist/Components/Dial.svelte +204 -204
- package/dist/Components/DimensionInput.svelte +170 -170
- package/dist/Components/DragMenu/DragMenuHolder.svelte +119 -119
- package/dist/Components/DragMenu/DraggableCard.svelte +77 -77
- package/dist/Components/FileCard.svelte +24 -24
- package/dist/Components/FileUpload.svelte +236 -236
- package/dist/Components/GridInputSet.svelte +29 -29
- package/dist/Components/HorizontalTabGroup.svelte +82 -82
- package/dist/Components/HorizontalTabGroupButton.svelte +44 -44
- package/dist/Components/Icon.svelte +128 -128
- package/dist/Components/Icons.js +357 -357
- package/dist/Components/LoadingAnimation.svelte +29 -29
- package/dist/Components/LoadingModal.svelte +45 -45
- package/dist/Components/LoadingOverlay.svelte +25 -25
- package/dist/Components/Modal.svelte +258 -258
- package/dist/Components/MultiSelect.svelte +220 -220
- package/dist/Components/Nav/NavServiceMenuList.svelte +43 -43
- package/dist/Components/Nav/NavTab.svelte +62 -62
- package/dist/Components/Nav/ServicesNav.svelte +80 -80
- package/dist/Components/NumberInput.svelte +157 -157
- package/dist/Components/PageHeading.svelte +25 -25
- package/dist/Components/PasswordInput.svelte +88 -88
- package/dist/Components/Portal.svelte +36 -36
- package/dist/Components/QuerySelect.svelte +366 -366
- package/dist/Components/SingleSelect.svelte +250 -250
- package/dist/Components/StepButton.svelte +70 -70
- package/dist/Components/StepForm.svelte +140 -140
- package/dist/Components/Switch.svelte +69 -69
- package/dist/Components/Table/Body/Rows/ColumnHighlight.svelte +51 -51
- package/dist/Components/Table/Body/Rows/ColumnList.svelte +59 -59
- package/dist/Components/Table/Body/Rows/Columns/AccessorComponent.svelte +79 -79
- package/dist/Components/Table/Body/Rows/Columns/ExpandCell.svelte +120 -120
- package/dist/Components/Table/Body/Rows/Columns/ProgressCell.svelte +105 -105
- package/dist/Components/Table/Body/Rows/Columns/TableAction.svelte +87 -87
- package/dist/Components/Table/Body/Rows/Columns/TableCheckbox.svelte +126 -126
- package/dist/Components/Table/Body/Rows/Columns/TableColumn.svelte +159 -159
- package/dist/Components/Table/Body/Rows/Columns/TableDatePicker.svelte +246 -246
- package/dist/Components/Table/Body/Rows/Columns/TableNumberInput.svelte +216 -216
- package/dist/Components/Table/Body/Rows/Columns/TableRowSelectionCheckbox.svelte +179 -179
- package/dist/Components/Table/Body/Rows/Columns/TableTextInput.svelte +197 -197
- package/dist/Components/Table/Body/Rows/Columns/ValidityCell.svelte +190 -190
- package/dist/Components/Table/Body/Rows/TableRow.svelte +290 -290
- package/dist/Components/Table/Headers/HighlightAllHeader.svelte +41 -41
- package/dist/Components/Table/Headers/SelectAllHeader.svelte +30 -30
- package/dist/Components/Table/Misc/SidePanel.svelte +35 -35
- package/dist/Components/Table/Misc/ToolboxPanel.svelte +100 -100
- package/dist/Components/Table/Misc/ToolboxPanelModal.svelte +107 -107
- package/dist/Components/TextArea.svelte +130 -130
- package/dist/Components/TextInput.svelte +176 -176
- package/dist/Components/ThreeStateRadio.svelte +131 -131
- package/dist/Components/Touch/BoolCard.svelte +45 -45
- package/dist/Components/Touch/DateModal.svelte +209 -209
- package/dist/Components/Touch/EditCard.svelte +59 -59
- package/dist/Components/Touch/InfoCard.svelte +31 -31
- package/dist/Components/Touch/InfoTextCard.svelte +28 -28
- package/dist/Components/Touch/ModalExplanation.svelte +17 -17
- package/dist/Components/Touch/NumberKeyboard.svelte +225 -225
- package/dist/Components/Touch/NumberModal.svelte +79 -79
- package/dist/Components/Touch/PlusMinusCard.svelte +46 -46
- package/dist/Components/Touch/SummaryCard.svelte +93 -93
- package/dist/Components/Touch/TextAreaModal.svelte +95 -95
- package/dist/Components/Touch/TextModal.svelte +106 -106
- package/dist/Components/Touch/TouchCard.svelte +33 -33
- package/dist/Components/Touch/TouchModal.svelte +274 -274
- package/dist/Components/Touch/UtilityButton.svelte +109 -109
- package/dist/Components/VerticalTabGroup.svelte +79 -79
- package/dist/Components/VerticalTabGroupButton.svelte +58 -58
- package/dist/Helpers/Datamatrix.d.ts +19 -19
- package/dist/Helpers/Datamatrix.js +291 -291
- package/dist/Types/Examples/ExampleModal.svelte +35 -35
- package/dist/scss/_motion.scss +57 -57
- package/dist/scss/_sizing.scss +85 -85
- package/package.json +30 -30
|
@@ -1,181 +1,181 @@
|
|
|
1
|
-
<svelte:options runes />
|
|
2
|
-
|
|
3
|
-
<script
|
|
4
|
-
lang="ts"
|
|
5
|
-
module
|
|
6
|
-
>
|
|
7
|
-
import type { RowSelectionDef } from '../../../Types/Columns/Definitions/RowSelection/RowSelectionDef.svelte.js';
|
|
8
|
-
import { TableContext } from '../../../Types/Context/TableContext.svelte.js';
|
|
9
|
-
import { type Primitive } from '../../../Types/Context/TableInitOptions.js';
|
|
10
|
-
import type { TableFocusDetails } from '../../../Types/Focus/TableFocusDetails.svelte.js';
|
|
11
|
-
import { devCatch, isValidityTuple } from '../../../../../Helpers/Helpers.svelte.js';
|
|
12
|
-
import { Validity } from '../../../../../Types/Internal/Validity.js';
|
|
13
|
-
import { getContext, tick, untrack } from 'svelte';
|
|
14
|
-
import type { ChangeEventHandler } from 'svelte/elements';
|
|
15
|
-
import type { TableRowSelectionCheckboxProps } from './TableRowSelectionCheckboxProps.js';
|
|
16
|
-
</script>
|
|
17
|
-
|
|
18
|
-
<script
|
|
19
|
-
lang="ts"
|
|
20
|
-
generics="T extends object, RowIdType extends Primitive"
|
|
21
|
-
>
|
|
22
|
-
const { cell }: TableRowSelectionCheckboxProps<T> = $props();
|
|
23
|
-
|
|
24
|
-
const tableContext = getContext<TableContext<T, RowIdType>>(TableContext.identifier);
|
|
25
|
-
|
|
26
|
-
const focusDetails: TableFocusDetails<T, RowIdType> = $derived(
|
|
27
|
-
tableContext._focus.getFocusDetailsFor(cell)
|
|
28
|
-
);
|
|
29
|
-
|
|
30
|
-
const keyOrPromise: RowIdType | Promise<RowIdType> = $derived(
|
|
31
|
-
tableContext.selectionExtractor(cell.row.original)
|
|
32
|
-
);
|
|
33
|
-
const isSelectableMaybePromise = $derived(
|
|
34
|
-
(cell.column.columnDef as RowSelectionDef<T>).isSelectable(
|
|
35
|
-
cell.row.original,
|
|
36
|
-
cell.row.originalIndex
|
|
37
|
-
)
|
|
38
|
-
);
|
|
39
|
-
|
|
40
|
-
let isSelectable = $state(false);
|
|
41
|
-
|
|
42
|
-
$effect(() => {
|
|
43
|
-
if (isSelectableMaybePromise instanceof Promise) {
|
|
44
|
-
isSelectableMaybePromise
|
|
45
|
-
.then((it) => {
|
|
46
|
-
isSelectable = it;
|
|
47
|
-
})
|
|
48
|
-
.catch(devCatch);
|
|
49
|
-
} else {
|
|
50
|
-
isSelectable = isSelectableMaybePromise;
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
// Sync path (common): uses selectedItems.has(key) for per-key reactive tracking -
|
|
55
|
-
// only this row's checkbox re-runs when its specific key changes.
|
|
56
|
-
// Async path (rare): returns null and defers to _isSelectedAsync updated by the $effect below.
|
|
57
|
-
const isSelected: boolean | null = $derived.by(() => {
|
|
58
|
-
const k = keyOrPromise;
|
|
59
|
-
if (k instanceof Promise) {
|
|
60
|
-
void tableContext.selectedItems.size; // async fallback: re-run when any selection changes
|
|
61
|
-
return null;
|
|
62
|
-
}
|
|
63
|
-
return tableContext.selectedItems.has(k);
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
let _isSelectedAsync: boolean = $state(false);
|
|
67
|
-
$effect(() => {
|
|
68
|
-
const k = keyOrPromise;
|
|
69
|
-
if (!(k instanceof Promise)) {
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
void tableContext.selectedItems.size; // re-run when selection changes
|
|
73
|
-
k.then((key) => {
|
|
74
|
-
_isSelectedAsync = tableContext.selectedItems.has(key);
|
|
75
|
-
}).catch(devCatch);
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
let previousValidity: Validity = $state(Validity.Valid);
|
|
79
|
-
let validity: Validity = $state(Validity.Valid);
|
|
80
|
-
$effect(() => {
|
|
81
|
-
const validityPromise = focusDetails.validity;
|
|
82
|
-
|
|
83
|
-
validityPromise
|
|
84
|
-
.then((v) => {
|
|
85
|
-
if (!v) {
|
|
86
|
-
validity = Validity.Neutral;
|
|
87
|
-
} else if (isValidityTuple(v)) {
|
|
88
|
-
validity = v.value;
|
|
89
|
-
} else {
|
|
90
|
-
validity = v;
|
|
91
|
-
}
|
|
92
|
-
})
|
|
93
|
-
.catch(devCatch);
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
$effect(() => {
|
|
97
|
-
if (validity != previousValidity) {
|
|
98
|
-
untrack(() => {
|
|
99
|
-
tick()
|
|
100
|
-
.then(() => {
|
|
101
|
-
const x: void | Promise<void> =
|
|
102
|
-
validity === Validity.Invalid
|
|
103
|
-
? tableContext.addInvalidValue(cell.row.original)
|
|
104
|
-
: tableContext.removeInvalidValue(cell.row.original);
|
|
105
|
-
|
|
106
|
-
previousValidity = validity;
|
|
107
|
-
return x;
|
|
108
|
-
})
|
|
109
|
-
.catch(devCatch);
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
const onchange: ChangeEventHandler<HTMLInputElement> = () => {
|
|
115
|
-
tableContext.toggleSelected(cell.row.original)?.catch(devCatch);
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
let inputRef: HTMLInputElement | undefined = $state();
|
|
119
|
-
</script>
|
|
120
|
-
|
|
121
|
-
<!-- svelte-ignore a11y_mouse_events_have_key_events -->
|
|
122
|
-
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
|
123
|
-
<div
|
|
124
|
-
class="checkbox-cell"
|
|
125
|
-
class:info={validity == Validity.Info}
|
|
126
|
-
class:success={validity == Validity.Valid}
|
|
127
|
-
class:warning={validity == Validity.Warning}
|
|
128
|
-
class:error={validity == Validity.Invalid}
|
|
129
|
-
onmousedown={(e) => {
|
|
130
|
-
// start focus only on left click
|
|
131
|
-
if (e.button === 0) {
|
|
132
|
-
if (e.shiftKey) {
|
|
133
|
-
e.preventDefault();
|
|
134
|
-
tableContext.setFocusEnd(focusDetails.coordinates);
|
|
135
|
-
} else {
|
|
136
|
-
tableContext.startFocus(focusDetails.coordinates);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}}
|
|
140
|
-
onkeydown={(e) => {
|
|
141
|
-
if (e.key === 'Enter') {
|
|
142
|
-
e.stopPropagation();
|
|
143
|
-
}
|
|
144
|
-
}}
|
|
145
|
-
onkeyup={(e) => {
|
|
146
|
-
if (e.key === 'Enter') {
|
|
147
|
-
e.stopPropagation();
|
|
148
|
-
|
|
149
|
-
tableContext.toggleSelected(cell.row.original)?.catch(devCatch);
|
|
150
|
-
|
|
151
|
-
inputRef?.dispatchEvent(new InputEvent('change'));
|
|
152
|
-
}
|
|
153
|
-
}}
|
|
154
|
-
onmouseover={() => {
|
|
155
|
-
if (tableContext.isMousingDown) {
|
|
156
|
-
tableContext.setFocusEnd(focusDetails.coordinates);
|
|
157
|
-
}
|
|
158
|
-
}}
|
|
159
|
-
onmouseup={() => {
|
|
160
|
-
tableContext.endFocus(focusDetails.coordinates);
|
|
161
|
-
}}
|
|
162
|
-
>
|
|
163
|
-
<label
|
|
164
|
-
class:multifocus={focusDetails.isMultiFocused}
|
|
165
|
-
class:multifocus-start={focusDetails.isMultiFocusStart}
|
|
166
|
-
style={focusDetails.outline}
|
|
167
|
-
>
|
|
168
|
-
<input
|
|
169
|
-
id={`${tableContext.tableName}-cell-${cell.row.visibleIndex}-${cell.column.id}`}
|
|
170
|
-
bind:this={inputRef}
|
|
171
|
-
{onchange}
|
|
172
|
-
type="checkbox"
|
|
173
|
-
checked={isSelected ?? _isSelectedAsync}
|
|
174
|
-
disabled={!isSelectable || tableContext.showSelectedOnly}
|
|
175
|
-
/>
|
|
176
|
-
</label>
|
|
177
|
-
</div>
|
|
178
|
-
|
|
1
|
+
<svelte:options runes />
|
|
2
|
+
|
|
3
|
+
<script
|
|
4
|
+
lang="ts"
|
|
5
|
+
module
|
|
6
|
+
>
|
|
7
|
+
import type { RowSelectionDef } from '../../../Types/Columns/Definitions/RowSelection/RowSelectionDef.svelte.js';
|
|
8
|
+
import { TableContext } from '../../../Types/Context/TableContext.svelte.js';
|
|
9
|
+
import { type Primitive } from '../../../Types/Context/TableInitOptions.js';
|
|
10
|
+
import type { TableFocusDetails } from '../../../Types/Focus/TableFocusDetails.svelte.js';
|
|
11
|
+
import { devCatch, isValidityTuple } from '../../../../../Helpers/Helpers.svelte.js';
|
|
12
|
+
import { Validity } from '../../../../../Types/Internal/Validity.js';
|
|
13
|
+
import { getContext, tick, untrack } from 'svelte';
|
|
14
|
+
import type { ChangeEventHandler } from 'svelte/elements';
|
|
15
|
+
import type { TableRowSelectionCheckboxProps } from './TableRowSelectionCheckboxProps.js';
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<script
|
|
19
|
+
lang="ts"
|
|
20
|
+
generics="T extends object, RowIdType extends Primitive"
|
|
21
|
+
>
|
|
22
|
+
const { cell }: TableRowSelectionCheckboxProps<T> = $props();
|
|
23
|
+
|
|
24
|
+
const tableContext = getContext<TableContext<T, RowIdType>>(TableContext.identifier);
|
|
25
|
+
|
|
26
|
+
const focusDetails: TableFocusDetails<T, RowIdType> = $derived(
|
|
27
|
+
tableContext._focus.getFocusDetailsFor(cell)
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
const keyOrPromise: RowIdType | Promise<RowIdType> = $derived(
|
|
31
|
+
tableContext.selectionExtractor(cell.row.original)
|
|
32
|
+
);
|
|
33
|
+
const isSelectableMaybePromise = $derived(
|
|
34
|
+
(cell.column.columnDef as RowSelectionDef<T>).isSelectable(
|
|
35
|
+
cell.row.original,
|
|
36
|
+
cell.row.originalIndex
|
|
37
|
+
)
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
let isSelectable = $state(false);
|
|
41
|
+
|
|
42
|
+
$effect(() => {
|
|
43
|
+
if (isSelectableMaybePromise instanceof Promise) {
|
|
44
|
+
isSelectableMaybePromise
|
|
45
|
+
.then((it) => {
|
|
46
|
+
isSelectable = it;
|
|
47
|
+
})
|
|
48
|
+
.catch(devCatch);
|
|
49
|
+
} else {
|
|
50
|
+
isSelectable = isSelectableMaybePromise;
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
// Sync path (common): uses selectedItems.has(key) for per-key reactive tracking -
|
|
55
|
+
// only this row's checkbox re-runs when its specific key changes.
|
|
56
|
+
// Async path (rare): returns null and defers to _isSelectedAsync updated by the $effect below.
|
|
57
|
+
const isSelected: boolean | null = $derived.by(() => {
|
|
58
|
+
const k = keyOrPromise;
|
|
59
|
+
if (k instanceof Promise) {
|
|
60
|
+
void tableContext.selectedItems.size; // async fallback: re-run when any selection changes
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
return tableContext.selectedItems.has(k);
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
let _isSelectedAsync: boolean = $state(false);
|
|
67
|
+
$effect(() => {
|
|
68
|
+
const k = keyOrPromise;
|
|
69
|
+
if (!(k instanceof Promise)) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
void tableContext.selectedItems.size; // re-run when selection changes
|
|
73
|
+
k.then((key) => {
|
|
74
|
+
_isSelectedAsync = tableContext.selectedItems.has(key);
|
|
75
|
+
}).catch(devCatch);
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
let previousValidity: Validity = $state(Validity.Valid);
|
|
79
|
+
let validity: Validity = $state(Validity.Valid);
|
|
80
|
+
$effect(() => {
|
|
81
|
+
const validityPromise = focusDetails.validity;
|
|
82
|
+
|
|
83
|
+
validityPromise
|
|
84
|
+
.then((v) => {
|
|
85
|
+
if (!v) {
|
|
86
|
+
validity = Validity.Neutral;
|
|
87
|
+
} else if (isValidityTuple(v)) {
|
|
88
|
+
validity = v.value;
|
|
89
|
+
} else {
|
|
90
|
+
validity = v;
|
|
91
|
+
}
|
|
92
|
+
})
|
|
93
|
+
.catch(devCatch);
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
$effect(() => {
|
|
97
|
+
if (validity != previousValidity) {
|
|
98
|
+
untrack(() => {
|
|
99
|
+
tick()
|
|
100
|
+
.then(() => {
|
|
101
|
+
const x: void | Promise<void> =
|
|
102
|
+
validity === Validity.Invalid
|
|
103
|
+
? tableContext.addInvalidValue(cell.row.original)
|
|
104
|
+
: tableContext.removeInvalidValue(cell.row.original);
|
|
105
|
+
|
|
106
|
+
previousValidity = validity;
|
|
107
|
+
return x;
|
|
108
|
+
})
|
|
109
|
+
.catch(devCatch);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
const onchange: ChangeEventHandler<HTMLInputElement> = () => {
|
|
115
|
+
tableContext.toggleSelected(cell.row.original)?.catch(devCatch);
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
let inputRef: HTMLInputElement | undefined = $state();
|
|
119
|
+
</script>
|
|
120
|
+
|
|
121
|
+
<!-- svelte-ignore a11y_mouse_events_have_key_events -->
|
|
122
|
+
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
|
123
|
+
<div
|
|
124
|
+
class="checkbox-cell"
|
|
125
|
+
class:info={validity == Validity.Info}
|
|
126
|
+
class:success={validity == Validity.Valid}
|
|
127
|
+
class:warning={validity == Validity.Warning}
|
|
128
|
+
class:error={validity == Validity.Invalid}
|
|
129
|
+
onmousedown={(e) => {
|
|
130
|
+
// start focus only on left click
|
|
131
|
+
if (e.button === 0) {
|
|
132
|
+
if (e.shiftKey) {
|
|
133
|
+
e.preventDefault();
|
|
134
|
+
tableContext.setFocusEnd(focusDetails.coordinates);
|
|
135
|
+
} else {
|
|
136
|
+
tableContext.startFocus(focusDetails.coordinates);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}}
|
|
140
|
+
onkeydown={(e) => {
|
|
141
|
+
if (e.key === 'Enter') {
|
|
142
|
+
e.stopPropagation();
|
|
143
|
+
}
|
|
144
|
+
}}
|
|
145
|
+
onkeyup={(e) => {
|
|
146
|
+
if (e.key === 'Enter') {
|
|
147
|
+
e.stopPropagation();
|
|
148
|
+
|
|
149
|
+
tableContext.toggleSelected(cell.row.original)?.catch(devCatch);
|
|
150
|
+
|
|
151
|
+
inputRef?.dispatchEvent(new InputEvent('change'));
|
|
152
|
+
}
|
|
153
|
+
}}
|
|
154
|
+
onmouseover={() => {
|
|
155
|
+
if (tableContext.isMousingDown) {
|
|
156
|
+
tableContext.setFocusEnd(focusDetails.coordinates);
|
|
157
|
+
}
|
|
158
|
+
}}
|
|
159
|
+
onmouseup={() => {
|
|
160
|
+
tableContext.endFocus(focusDetails.coordinates);
|
|
161
|
+
}}
|
|
162
|
+
>
|
|
163
|
+
<label
|
|
164
|
+
class:multifocus={focusDetails.isMultiFocused}
|
|
165
|
+
class:multifocus-start={focusDetails.isMultiFocusStart}
|
|
166
|
+
style={focusDetails.outline}
|
|
167
|
+
>
|
|
168
|
+
<input
|
|
169
|
+
id={`${tableContext.tableName}-cell-${cell.row.visibleIndex}-${cell.column.id}`}
|
|
170
|
+
bind:this={inputRef}
|
|
171
|
+
{onchange}
|
|
172
|
+
type="checkbox"
|
|
173
|
+
checked={isSelected ?? _isSelectedAsync}
|
|
174
|
+
disabled={!isSelectable || tableContext.showSelectedOnly}
|
|
175
|
+
/>
|
|
176
|
+
</label>
|
|
177
|
+
</div>
|
|
178
|
+
|
|
179
179
|
<style>.focusable,
|
|
180
180
|
.checkbox-cell,
|
|
181
181
|
.input-cell,
|
|
@@ -251,4 +251,4 @@ label.multifocus.multifocus-start {
|
|
|
251
251
|
.input-cell.error,
|
|
252
252
|
.select-cell.error {
|
|
253
253
|
background-color: #f9e9e9;
|
|
254
|
-
}</style>
|
|
254
|
+
}</style>
|