@humandialog/forms.svelte 1.7.8 → 1.7.9
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.
|
@@ -19,7 +19,7 @@ import Icon from "../../icon.svelte";
|
|
|
19
19
|
import Spinner from "../../delayed.spinner.svelte";
|
|
20
20
|
import { rList_definition, rList_property_type } from "../List";
|
|
21
21
|
import { push, link } from "svelte-spa-router";
|
|
22
|
-
import { FaExternalLinkAlt,
|
|
22
|
+
import { FaExternalLinkAlt, FaRegCircle, FaRegCheckCircle } from "svelte-icons/fa/";
|
|
23
23
|
import Tags from "../../tags.svelte";
|
|
24
24
|
import { ext } from "../../../i18n";
|
|
25
25
|
export let item;
|
|
@@ -299,7 +299,7 @@ async function onDownloadFile(e) {
|
|
|
299
299
|
bind:this={rootElement}> <!-- on:contextmenu={on_contextmenu} -->
|
|
300
300
|
|
|
301
301
|
{#if multiselect}
|
|
302
|
-
{@const icon=is_row_active ?
|
|
302
|
+
{@const icon=is_row_active ? FaRegCheckCircle : FaRegCircle}
|
|
303
303
|
<Icon component={icon}
|
|
304
304
|
class="flex-none h-4 w-4 text-stone-500 dark:text-stone-400 cursor-pointer mt-1 ml-2 mr-3 "
|
|
305
305
|
on:click={onToggleMultiSelect}/>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { data_tick_store, contextItemsStore, contextTypesStore } from "../../stores";
|
|
3
3
|
import { activateItem, getActive, clearActiveItem, parseWidthDirective, getPrev, getNext, swapElements, getLast, insertAfter, getActiveCount, addActiveItem } from "../../utils";
|
|
4
4
|
import Icon from "../icon.svelte";
|
|
5
|
-
import {
|
|
5
|
+
import { FaRegCircle, FaRegCheckCircle } from "svelte-icons/fa/";
|
|
6
6
|
import { rList_definition } from "./List";
|
|
7
7
|
import List_element from "./internal/list.element.svelte";
|
|
8
8
|
import Inserter from "./internal/list.inserter.svelte";
|
|
@@ -348,7 +348,7 @@ export function toggleSelectAll(e) {
|
|
|
348
348
|
|
|
349
349
|
{#if items && items.length > 0 }
|
|
350
350
|
{#if false && multiselect}
|
|
351
|
-
{@const icon = (multiselectionMode == SELECT_ALL) ?
|
|
351
|
+
{@const icon = (multiselectionMode == SELECT_ALL) ? FaRegCircle : FaRegCheckCircle}
|
|
352
352
|
<Icon component={icon} class="h-5 w-5 sm:h-4 sm:w-4 text-stone-500 dark:text-stone-400 cursor-pointer mt-2 sm:mt-1.5 ml-2 mr-3"
|
|
353
353
|
on:click={toggleSelectAll}/>
|
|
354
354
|
{/if}
|
package/operations.svelte
CHANGED
|
@@ -31,16 +31,19 @@ function update(...args) {
|
|
|
31
31
|
let AOperations = [];
|
|
32
32
|
let BOperations = [];
|
|
33
33
|
let COperations = [];
|
|
34
|
+
let DOperations = [];
|
|
34
35
|
if (opVer == 1) {
|
|
35
36
|
operations.forEach((group) => {
|
|
36
37
|
if (group.operations && group.operations.length > 0) {
|
|
37
38
|
AOperations = [...AOperations, ...group.operations.filter((o) => o.tbr == "A")];
|
|
38
39
|
BOperations = [...BOperations, ...group.operations.filter((o) => o.tbr == "B")];
|
|
39
40
|
COperations = [...COperations, ...group.operations.filter((o) => o.tbr == "C")];
|
|
41
|
+
DOperations = [...DOperations, ...group.operations.filter((o) => o.tbr == "D")];
|
|
40
42
|
}
|
|
41
43
|
});
|
|
42
44
|
leftOperations = [...AOperations, ...BOperations];
|
|
43
45
|
rightOperations = COperations.toReversed();
|
|
46
|
+
rightOperations = [...rightOperations, ...DOperations.toReversed()];
|
|
44
47
|
} else if (opVer == 2) {
|
|
45
48
|
if (operationsRoot && operationsRoot.tbr) {
|
|
46
49
|
let allFlatOperations = [];
|
|
@@ -70,6 +73,9 @@ function update(...args) {
|
|
|
70
73
|
case "C":
|
|
71
74
|
COperations.push(allOperationsMenu);
|
|
72
75
|
break;
|
|
76
|
+
case "D":
|
|
77
|
+
DOperations.push(allOperationsMenu);
|
|
78
|
+
break;
|
|
73
79
|
}
|
|
74
80
|
}
|
|
75
81
|
operations.forEach((group) => {
|
|
@@ -91,6 +97,9 @@ function update(...args) {
|
|
|
91
97
|
case "C":
|
|
92
98
|
COperations.push(expandOperation);
|
|
93
99
|
break;
|
|
100
|
+
case "D":
|
|
101
|
+
DOperations.push(expandOperation);
|
|
102
|
+
break;
|
|
94
103
|
}
|
|
95
104
|
}
|
|
96
105
|
group.operations.forEach((op) => {
|
|
@@ -110,12 +119,16 @@ function update(...args) {
|
|
|
110
119
|
case "C":
|
|
111
120
|
COperations.push(tbrOperation);
|
|
112
121
|
break;
|
|
122
|
+
case "D":
|
|
123
|
+
DOperations.push(tbrOperation);
|
|
124
|
+
break;
|
|
113
125
|
}
|
|
114
126
|
}
|
|
115
127
|
});
|
|
116
128
|
});
|
|
117
129
|
leftOperations = [...AOperations, ...BOperations];
|
|
118
130
|
rightOperations = COperations.toReversed();
|
|
131
|
+
rightOperations = [...rightOperations, ...DOperations.toReversed()];
|
|
119
132
|
} else {
|
|
120
133
|
leftOperations = operations.filter((o) => !o.right);
|
|
121
134
|
rightOperations = operations.filter((o) => o.right == true);
|