@sincpro/mobile-ui 3.0.1 → 3.2.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/dist/Actions/Actions.Button.d.ts +6 -6
- package/dist/Actions/Actions.Button.js +650 -180
- package/dist/Actions/Actions.Dock.d.ts +1 -1
- package/dist/Actions/Actions.Dock.js +297 -18
- package/dist/Actions/Actions.FAB.js +100 -12
- package/dist/Actions/Actions.FilterButton.d.ts +17 -0
- package/dist/Actions/Actions.FilterButton.js +263 -33
- package/dist/Actions/Actions.IconButton.d.ts +1 -0
- package/dist/Actions/Actions.IconButton.js +196 -33
- package/dist/Actions/index.js +13 -13
- package/dist/Dialog/Confirmation.context.js +82 -16
- package/dist/Dialog/Dialog.ActionSheet.js +200 -41
- package/dist/Dialog/Dialog.Confirmation.js +168 -31
- package/dist/Dialog/Dialog.EditValue.js +437 -62
- package/dist/Dialog/Dialog.Sheet.d.ts +7 -3
- package/dist/Dialog/Dialog.Sheet.js +267 -15
- package/dist/Dialog/OverlayHost.d.ts +24 -0
- package/dist/Dialog/OverlayHost.js +230 -0
- package/dist/Dialog/SheetSurface.d.ts +43 -0
- package/dist/Dialog/SheetSurface.js +495 -0
- package/dist/Dialog/dialog-actions.d.ts +17 -0
- package/dist/Dialog/dialog-actions.js +59 -0
- package/dist/Dialog/index.d.ts +4 -1
- package/dist/Dialog/index.js +8 -7
- package/dist/Dialog/overlay.store.d.ts +24 -0
- package/dist/Dialog/overlay.store.js +59 -0
- package/dist/Dialog/requestConfirmation.js +20 -10
- package/dist/Display/Display.Accordion.js +185 -13
- package/dist/Display/Display.AmountSummary.js +206 -15
- package/dist/Display/Display.Avatar.js +93 -31
- package/dist/Display/Display.AvatarGroup.js +132 -17
- package/dist/Display/Display.Badge.d.ts +18 -2
- package/dist/Display/Display.Badge.js +117 -49
- package/dist/Display/Display.Card.js +163 -26
- package/dist/Display/Display.Carousel.js +459 -105
- package/dist/Display/Display.Chip.d.ts +4 -1
- package/dist/Display/Display.Chip.js +165 -31
- package/dist/Display/Display.CircleButton.d.ts +1 -0
- package/dist/Display/Display.CircleButton.js +86 -27
- package/dist/Display/Display.CopyableText.js +289 -66
- package/dist/Display/Display.CountRecords.js +60 -3
- package/dist/Display/Display.DataTable.js +123 -13
- package/dist/Display/Display.Date.js +243 -33
- package/dist/Display/Display.Divider.d.ts +10 -10
- package/dist/Display/Display.Divider.js +67 -20
- package/dist/Display/Display.ExpoImage.js +97 -8
- package/dist/Display/Display.GradientSurface.d.ts +9 -4
- package/dist/Display/Display.GradientSurface.js +196 -46
- package/dist/Display/Display.Icon.js +129 -15
- package/dist/Display/Display.IconBadge.js +95 -25
- package/dist/Display/Display.Image.d.ts +7 -1
- package/dist/Display/Display.Image.js +344 -39
- package/dist/Display/Display.KeyValue.js +90 -5
- package/dist/Display/Display.ListGroup.js +181 -9
- package/dist/Display/Display.ListItem.js +324 -28
- package/dist/Display/Display.Logo.js +84 -29
- package/dist/Display/Display.MediaCard.js +125 -4
- package/dist/Display/Display.MediaEmbed.d.ts +0 -5
- package/dist/Display/Display.MediaEmbed.js +170 -26
- package/dist/Display/Display.MenuButton.d.ts +2 -2
- package/dist/Display/Display.MenuButton.js +380 -94
- package/dist/Display/Display.MenuCard.js +122 -18
- package/dist/Display/Display.MenuGrid.js +43 -3
- package/dist/Display/Display.Monetary.js +90 -5
- package/dist/Display/Display.Pattern.js +306 -47
- package/dist/Display/Display.PriceTag.js +117 -14
- package/dist/Display/Display.ProductCard.js +154 -4
- package/dist/Display/Display.Rating.js +92 -11
- package/dist/Display/Display.SearchHistory.js +132 -6
- package/dist/Display/Display.SectionHeader.d.ts +5 -1
- package/dist/Display/Display.SectionHeader.js +125 -12
- package/dist/Display/Display.Stat.js +62 -3
- package/dist/Display/Display.StatCard.js +131 -7
- package/dist/Display/Display.StatusBadge.d.ts +29 -0
- package/dist/Display/Display.StatusBadge.js +68 -0
- package/dist/Display/Display.StatusDot.js +93 -18
- package/dist/Display/Display.Story.js +285 -35
- package/dist/Display/Display.StoryTray.js +354 -34
- package/dist/Display/Display.StoryViewer.js +571 -72
- package/dist/Display/Display.SwipeableRow.js +148 -20
- package/dist/Display/Display.Tag.d.ts +4 -1
- package/dist/Display/Display.Tag.js +66 -4
- package/dist/Display/Display.Timeline.js +102 -13
- package/dist/Display/Display.Tooltip.js +122 -26
- package/dist/Display/chevron.d.ts +6 -0
- package/dist/Display/chevron.js +32 -0
- package/dist/Display/count-badge.d.ts +21 -0
- package/dist/Display/count-badge.js +124 -0
- package/dist/Display/group-title.d.ts +10 -0
- package/dist/Display/group-title.js +53 -0
- package/dist/Display/icon-font.d.ts +3 -0
- package/dist/Display/icon-font.ios.d.ts +3 -0
- package/dist/Display/icon-font.ios.js +4 -0
- package/dist/Display/icon-font.js +7 -0
- package/dist/Display/icon-glyphs.d.ts +2 -0
- package/dist/Display/icon-glyphs.js +87 -0
- package/dist/Display/icon-map.d.ts +15 -11
- package/dist/Display/icon-map.js +344 -84
- package/dist/Display/icon-registry.d.ts +21 -0
- package/dist/Display/icon-registry.js +21 -0
- package/dist/Display/index.d.ts +6 -1
- package/dist/Display/index.js +53 -48
- package/dist/Display/pill.d.ts +16 -0
- package/dist/Display/pill.js +47 -0
- package/dist/Feedback/ErrorBoundary.js +35 -23
- package/dist/Feedback/Feedback.Banner.js +202 -24
- package/dist/Feedback/Feedback.DomainSplashScreen.js +246 -70
- package/dist/Feedback/Feedback.Empty.js +54 -3
- package/dist/Feedback/Feedback.EmptyState.js +114 -5
- package/dist/Feedback/Feedback.Error.d.ts +1 -1
- package/dist/Feedback/Feedback.Error.js +130 -5
- package/dist/Feedback/Feedback.Loading.d.ts +1 -1
- package/dist/Feedback/Feedback.Loading.js +70 -3
- package/dist/Feedback/Feedback.PermissionCard.js +161 -5
- package/dist/Feedback/Feedback.Progress.js +199 -41
- package/dist/Feedback/Feedback.ProgressCircle.js +184 -12
- package/dist/Feedback/Feedback.Skeleton.js +149 -36
- package/dist/Feedback/Feedback.Spinner.js +407 -79
- package/dist/Feedback/Feedback.Splash.js +240 -33
- package/dist/Feedback/Feedback.State.d.ts +17 -0
- package/dist/Feedback/Feedback.State.js +104 -0
- package/dist/Feedback/Toast.context.js +883 -167
- package/dist/Feedback/index.d.ts +3 -0
- package/dist/Feedback/index.js +15 -13
- package/dist/Form/Form.Checkbox.js +212 -22
- package/dist/Form/Form.ControlledCheckbox.d.ts +1 -1
- package/dist/Form/Form.ControlledCheckbox.js +46 -4
- package/dist/Form/Form.ControlledDropdown.d.ts +1 -1
- package/dist/Form/Form.ControlledDropdown.js +62 -4
- package/dist/Form/Form.ControlledInput.d.ts +4 -3
- package/dist/Form/Form.ControlledInput.js +72 -4
- package/dist/Form/Form.ControlledMonetaryInput.d.ts +6 -3
- package/dist/Form/Form.ControlledMonetaryInput.js +50 -4
- package/dist/Form/Form.ControlledRadioButton.d.ts +2 -2
- package/dist/Form/Form.ControlledRadioButton.js +45 -4
- package/dist/Form/Form.DatePicker.js +507 -107
- package/dist/Form/Form.Dropdown.js +303 -52
- package/dist/Form/Form.ErrorSummary.js +236 -44
- package/dist/Form/Form.Field.d.ts +24 -0
- package/dist/Form/Form.Field.js +55 -0
- package/dist/Form/Form.FractionalQuantityInput.js +508 -96
- package/dist/Form/Form.Input.d.ts +17 -3
- package/dist/Form/Form.Input.js +497 -29
- package/dist/Form/Form.KeyboardForm.d.ts +22 -8
- package/dist/Form/Form.KeyboardForm.js +83 -8
- package/dist/Form/Form.KeyboardToolbarHost.d.ts +14 -0
- package/dist/Form/Form.KeyboardToolbarHost.js +223 -0
- package/dist/Form/Form.MonetaryInput.js +164 -17
- package/dist/Form/Form.PickerField.d.ts +31 -0
- package/dist/Form/Form.PickerField.js +539 -0
- package/dist/Form/Form.PinInput.js +150 -15
- package/dist/Form/Form.QuantitySelector.js +229 -25
- package/dist/Form/Form.RadioButton.d.ts +1 -0
- package/dist/Form/Form.RadioButton.js +26 -29
- package/dist/Form/Form.Select.d.ts +2 -1
- package/dist/Form/Form.Select.js +388 -60
- package/dist/Form/Form.Slider.js +133 -10
- package/dist/Form/Form.Switch.js +99 -4
- package/dist/Form/choice-row.d.ts +15 -0
- package/dist/Form/choice-row.js +236 -0
- package/dist/Form/index.d.ts +11 -6
- package/dist/Form/index.js +26 -27
- package/dist/Form/input-text.d.ts +7 -0
- package/dist/Form/input-text.js +18 -0
- package/dist/Navigation/Navigation.AppBar.d.ts +3 -4
- package/dist/Navigation/Navigation.AppBar.js +535 -99
- package/dist/Navigation/Navigation.BottomNav.js +363 -98
- package/dist/Navigation/Navigation.CollapsingHeader.d.ts +28 -13
- package/dist/Navigation/Navigation.CollapsingHeader.js +369 -36
- package/dist/Navigation/Navigation.FloatingBar.js +71 -11
- package/dist/Navigation/Navigation.Menu.js +309 -95
- package/dist/Navigation/Navigation.MenuSection.js +80 -11
- package/dist/Navigation/Navigation.RowItem.d.ts +4 -2
- package/dist/Navigation/Navigation.RowItem.js +93 -8
- package/dist/Navigation/Navigation.Search.js +241 -27
- package/dist/Navigation/Navigation.SearchBar.d.ts +7 -1
- package/dist/Navigation/Navigation.SearchBar.js +218 -29
- package/dist/Navigation/Navigation.SearchSuggestions.js +77 -3
- package/dist/Navigation/Navigation.SegmentedControl.js +152 -14
- package/dist/Navigation/Navigation.Steps.js +105 -11
- package/dist/Navigation/Navigation.Tabs.js +449 -41
- package/dist/Navigation/index.d.ts +9 -4
- package/dist/Navigation/index.js +13 -13
- package/dist/Typography/Typography.Heading.js +33 -3
- package/dist/Typography/Typography.SelectableText.js +95 -7
- package/dist/Typography/Typography.Text.d.ts +4 -2
- package/dist/Typography/Typography.Text.js +217 -7
- package/dist/Typography/index.js +3 -3
- package/dist/branding.js +29 -13
- package/dist/icons/AddItemIcon.js +76 -2
- package/dist/icons/ArrangeCircle.js +82 -2
- package/dist/icons/ArrowDownIcon.js +63 -3
- package/dist/icons/ArrowUpIcon.js +63 -3
- package/dist/icons/BoxIcon.js +64 -2
- package/dist/icons/BoxTimeIcon.js +63 -2
- package/dist/icons/CalendarIcon.js +145 -2
- package/dist/icons/CardIcon.js +80 -2
- package/dist/icons/CashierIcon.js +39 -2
- package/dist/icons/CreditIcon.js +76 -3
- package/dist/icons/DuoIcon.js +75 -2
- package/dist/icons/HomeIcon.js +39 -2
- package/dist/icons/HomeIconOutlined.js +53 -2
- package/dist/icons/LogoIcon.js +87 -2
- package/dist/icons/MoneyReceiveIcon.js +86 -2
- package/dist/icons/PinIcon.js +39 -2
- package/dist/icons/ProfileIcon.js +47 -2
- package/dist/icons/SettingsIcon.js +114 -2
- package/dist/icons/SinpeIcon.js +60 -2
- package/dist/icons/ToggleOffIcon.js +53 -2
- package/dist/icons/WalletMoneyIcon.js +81 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -2
- package/dist/layouts/AuthContainer.d.ts +4 -5
- package/dist/layouts/AuthContainer.js +231 -7
- package/dist/layouts/BottomInset.js +4 -1
- package/dist/layouts/Container.d.ts +2 -2
- package/dist/layouts/Container.js +45 -3
- package/dist/layouts/GradientContainer.js +37 -5
- package/dist/layouts/PlainLayout.js +19 -3
- package/dist/layouts/ScrollContainer.d.ts +14 -9
- package/dist/layouts/ScrollContainer.js +125 -4
- package/dist/layouts/edges.d.ts +2 -0
- package/dist/layouts/edges.js +1 -0
- package/dist/primitives/AspectRatio.js +75 -3
- package/dist/primitives/Box.js +45 -3
- package/dist/primitives/Pressable.js +95 -5
- package/dist/primitives/Row.js +84 -13
- package/dist/primitives/Spacer.js +42 -5
- package/dist/primitives/Stack.js +66 -7
- package/dist/primitives/index.js +1 -1
- package/dist/theme/active.d.ts +2 -0
- package/dist/theme/active.js +33 -18
- package/dist/theme/build.js +118 -87
- package/dist/theme/color.js +87 -87
- package/dist/theme/components/ThemedActivityIndicator.d.ts +2 -15
- package/dist/theme/components/ThemedActivityIndicator.js +35 -3
- package/dist/theme/components/index.js +1 -0
- package/dist/theme/contrast.js +32 -33
- package/dist/theme/css-vars.js +71 -75
- package/dist/theme/dark.js +116 -97
- package/dist/theme/default.js +116 -97
- package/dist/theme/define.js +16 -12
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/index.js +7 -6
- package/dist/theme/on-dark-surface.d.ts +12 -0
- package/dist/theme/on-dark-surface.js +13 -0
- package/dist/theme/theme.js +1 -0
- package/dist/theme/tw.js +3 -1
- package/dist/theme/types.js +0 -18
- package/dist/theme/typography.d.ts +1 -1
- package/dist/theme/typography.js +337 -303
- package/dist/theme/useTheme.d.ts +4 -0
- package/dist/theme/useTheme.js +7 -3
- package/dist/theme/useThemeVars.d.ts +9 -0
- package/dist/theme/useThemeVars.js +23 -0
- package/dist/theme/validate.js +175 -166
- package/dist/tokens/index.js +1 -1
- package/dist/tokens/motion.js +30 -13
- package/dist/utils/async.d.ts +14 -0
- package/dist/utils/async.js +22 -0
- package/dist/utils/criteria.js +66 -85
- package/dist/utils/date.d.ts +8 -2
- package/dist/utils/date.js +63 -50
- package/dist/utils/image.js +8 -8
- package/dist/utils/intl.d.ts +1 -0
- package/dist/utils/intl.js +13 -0
- package/dist/utils/keys.js +3 -5
- package/dist/utils/monetary.d.ts +1 -0
- package/dist/utils/monetary.js +28 -24
- package/dist/utils/progress.js +2 -3
- package/dist/utils/quantity.js +25 -26
- package/dist/utils/reorder.js +11 -20
- package/dist/utils/search.d.ts +4 -0
- package/dist/utils/search.js +12 -0
- package/dist/utils/serializer.js +38 -38
- package/dist/utils/useReducedMotion.js +32 -30
- package/dist/views/AppSplashView.js +117 -3
- package/dist/views/AuthFormView.d.ts +4 -5
- package/dist/views/AuthFormView.js +119 -11
- package/dist/views/FormViewV2.context.js +75 -23
- package/dist/views/FormViewV2.d.ts +4 -5
- package/dist/views/FormViewV2.js +658 -92
- package/dist/views/ListViewV2.context.js +91 -47
- package/dist/views/ListViewV2.d.ts +84 -43
- package/dist/views/ListViewV2.js +1350 -200
- package/dist/views/Wizard/Wizard.context.js +248 -84
- package/dist/views/Wizard/Wizard.js +260 -67
- package/dist/views/types/IListView.js +34 -31
- package/dist/widgets/CollectionOptions.js +557 -138
- package/dist/widgets/FilterBar.js +159 -7
- package/dist/widgets/FilterBuilder.js +375 -102
- package/dist/widgets/JSONViewer.js +275 -129
- package/dist/widgets/PromoBanner.js +336 -42
- package/dist/widgets/PromoModal.d.ts +2 -2
- package/dist/widgets/PromoModal.js +389 -62
- package/dist/widgets/QueryChoice.js +150 -8
- package/dist/widgets/QuickActions.js +120 -31
- package/dist/widgets/ReorderableList.js +399 -128
- package/dist/widgets/TimeZoneSelectorModal.js +458 -51
- package/dist/widgets/index.js +3 -3
- package/package.json +6 -1
- package/tailwind.preset.js +7 -5
- package/dist/Form/Form.InputField.d.ts +0 -10
- package/dist/Form/Form.InputField.js +0 -38
- package/dist/Form/Form.KeyboardToolbar.d.ts +0 -22
- package/dist/Form/Form.KeyboardToolbar.js +0 -66
- package/dist/Form/Form.PasswordInput.d.ts +0 -9
- package/dist/Form/Form.PasswordInput.js +0 -17
- package/dist/Form/Form.TextInput.d.ts +0 -8
- package/dist/Form/Form.TextInput.js +0 -8
- package/dist/primitives/BaseButton.d.ts +0 -150
- package/dist/primitives/BaseButton.js +0 -229
- package/dist/utils/useSheetTranslation.d.ts +0 -5
- package/dist/utils/useSheetTranslation.js +0 -23
|
@@ -1,14 +1,166 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FilterButton, FilterButtonGroup
|
|
1
|
+
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import { FilterButton, FilterButtonGroup } from "../Actions/Actions.FilterButton.js";
|
|
3
3
|
import IconButton from "../Actions/Actions.IconButton.js";
|
|
4
4
|
import SearchBar from "../Navigation/Navigation.SearchBar.js";
|
|
5
5
|
import Pressable from "../primitives/Pressable.js";
|
|
6
6
|
import { cn } from "../theme/tw.js";
|
|
7
7
|
import { Typography } from "../Typography/index.js";
|
|
8
8
|
import { useWindowDimensions, View } from "react-native";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "nativewind/jsx-runtime";
|
|
10
|
+
export function FilterBar(t0) {
|
|
11
|
+
const $ = _c(30);
|
|
12
|
+
const {
|
|
13
|
+
filters,
|
|
14
|
+
onFilterPress,
|
|
15
|
+
search,
|
|
16
|
+
onOpenFilters,
|
|
17
|
+
filtersLabel: t1,
|
|
18
|
+
onClearFilters,
|
|
19
|
+
clearLabel: t2,
|
|
20
|
+
resultsLabel,
|
|
21
|
+
layout: t3,
|
|
22
|
+
className,
|
|
23
|
+
testID
|
|
24
|
+
} = t0;
|
|
25
|
+
const filtersLabel = t1 === undefined ? "M\xE1s filtros" : t1;
|
|
26
|
+
const clearLabel = t2 === undefined ? "Limpiar filtros" : t2;
|
|
27
|
+
const layout = t3 === undefined ? "auto" : t3;
|
|
28
|
+
const {
|
|
29
|
+
fontScale
|
|
30
|
+
} = useWindowDimensions();
|
|
31
|
+
let t4;
|
|
32
|
+
if ($[0] !== filters) {
|
|
33
|
+
t4 = filters.filter(_temp);
|
|
34
|
+
$[0] = filters;
|
|
35
|
+
$[1] = t4;
|
|
36
|
+
} else {
|
|
37
|
+
t4 = $[1];
|
|
38
|
+
}
|
|
39
|
+
const selectedCount = t4.length;
|
|
40
|
+
const filterLayout = layout === "auto" ? fontScale > 1.3 ? "wrap" : "scroll" : layout;
|
|
41
|
+
let t5;
|
|
42
|
+
if ($[2] !== className) {
|
|
43
|
+
t5 = cn("gap-2", className);
|
|
44
|
+
$[2] = className;
|
|
45
|
+
$[3] = t5;
|
|
46
|
+
} else {
|
|
47
|
+
t5 = $[3];
|
|
48
|
+
}
|
|
49
|
+
let t6;
|
|
50
|
+
if ($[4] !== filtersLabel || $[5] !== onOpenFilters || $[6] !== search) {
|
|
51
|
+
t6 = search || onOpenFilters ? _jsxs(View, {
|
|
52
|
+
className: "flex-row items-center gap-2",
|
|
53
|
+
children: [search ? _jsx(View, {
|
|
54
|
+
className: "flex-1 min-w-0",
|
|
55
|
+
children: _jsx(SearchBar, {
|
|
56
|
+
...search
|
|
57
|
+
})
|
|
58
|
+
}) : null, onOpenFilters ? _jsx(IconButton, {
|
|
59
|
+
accessibilityLabel: filtersLabel,
|
|
60
|
+
icon: "filter",
|
|
61
|
+
onPress: onOpenFilters
|
|
62
|
+
}) : null]
|
|
63
|
+
}) : null;
|
|
64
|
+
$[4] = filtersLabel;
|
|
65
|
+
$[5] = onOpenFilters;
|
|
66
|
+
$[6] = search;
|
|
67
|
+
$[7] = t6;
|
|
68
|
+
} else {
|
|
69
|
+
t6 = $[7];
|
|
70
|
+
}
|
|
71
|
+
const t7 = testID ? `${testID}-options` : undefined;
|
|
72
|
+
let t8;
|
|
73
|
+
if ($[8] !== filters || $[9] !== onFilterPress || $[10] !== testID) {
|
|
74
|
+
let t9;
|
|
75
|
+
if ($[12] !== onFilterPress || $[13] !== testID) {
|
|
76
|
+
t9 = filter_0 => _jsx(FilterButton, {
|
|
77
|
+
active: filter_0.selected,
|
|
78
|
+
disabled: filter_0.disabled,
|
|
79
|
+
onPress: () => onFilterPress(filter_0.id),
|
|
80
|
+
testID: testID ? `${testID}-${filter_0.id}` : undefined,
|
|
81
|
+
title: filter_0.label,
|
|
82
|
+
variant: "mobile"
|
|
83
|
+
}, filter_0.id);
|
|
84
|
+
$[12] = onFilterPress;
|
|
85
|
+
$[13] = testID;
|
|
86
|
+
$[14] = t9;
|
|
87
|
+
} else {
|
|
88
|
+
t9 = $[14];
|
|
89
|
+
}
|
|
90
|
+
t8 = filters.map(t9);
|
|
91
|
+
$[8] = filters;
|
|
92
|
+
$[9] = onFilterPress;
|
|
93
|
+
$[10] = testID;
|
|
94
|
+
$[11] = t8;
|
|
95
|
+
} else {
|
|
96
|
+
t8 = $[11];
|
|
97
|
+
}
|
|
98
|
+
let t9;
|
|
99
|
+
if ($[15] !== filterLayout || $[16] !== t7 || $[17] !== t8) {
|
|
100
|
+
t9 = _jsx(FilterButtonGroup, {
|
|
101
|
+
className: "p-0",
|
|
102
|
+
layout: filterLayout,
|
|
103
|
+
testID: t7,
|
|
104
|
+
children: t8
|
|
105
|
+
});
|
|
106
|
+
$[15] = filterLayout;
|
|
107
|
+
$[16] = t7;
|
|
108
|
+
$[17] = t8;
|
|
109
|
+
$[18] = t9;
|
|
110
|
+
} else {
|
|
111
|
+
t9 = $[18];
|
|
112
|
+
}
|
|
113
|
+
let t10;
|
|
114
|
+
if ($[19] !== clearLabel || $[20] !== onClearFilters || $[21] !== resultsLabel || $[22] !== selectedCount) {
|
|
115
|
+
t10 = resultsLabel || selectedCount > 0 && onClearFilters ? _jsxs(View, {
|
|
116
|
+
className: "flex-row flex-wrap items-center justify-between gap-x-3",
|
|
117
|
+
children: [resultsLabel ? _jsx(Typography.Text, {
|
|
118
|
+
accessibilityLiveRegion: "polite",
|
|
119
|
+
className: "text-text-secondary",
|
|
120
|
+
variant: "bodyLarge",
|
|
121
|
+
children: resultsLabel
|
|
122
|
+
}) : null, selectedCount > 0 && onClearFilters ? _jsx(Pressable, {
|
|
123
|
+
accessibilityLabel: clearLabel,
|
|
124
|
+
accessibilityRole: "button",
|
|
125
|
+
onPress: onClearFilters,
|
|
126
|
+
style: {
|
|
127
|
+
minHeight: 48,
|
|
128
|
+
minWidth: 48,
|
|
129
|
+
justifyContent: "center"
|
|
130
|
+
},
|
|
131
|
+
children: _jsx(Typography.Text, {
|
|
132
|
+
className: "text-text-accent",
|
|
133
|
+
variant: "bodyLarge",
|
|
134
|
+
children: clearLabel
|
|
135
|
+
})
|
|
136
|
+
}) : null]
|
|
137
|
+
}) : null;
|
|
138
|
+
$[19] = clearLabel;
|
|
139
|
+
$[20] = onClearFilters;
|
|
140
|
+
$[21] = resultsLabel;
|
|
141
|
+
$[22] = selectedCount;
|
|
142
|
+
$[23] = t10;
|
|
143
|
+
} else {
|
|
144
|
+
t10 = $[23];
|
|
145
|
+
}
|
|
146
|
+
let t11;
|
|
147
|
+
if ($[24] !== t10 || $[25] !== t5 || $[26] !== t6 || $[27] !== t9 || $[28] !== testID) {
|
|
148
|
+
t11 = _jsxs(View, {
|
|
149
|
+
className: t5,
|
|
150
|
+
testID: testID,
|
|
151
|
+
children: [t6, t9, t10]
|
|
152
|
+
});
|
|
153
|
+
$[24] = t10;
|
|
154
|
+
$[25] = t5;
|
|
155
|
+
$[26] = t6;
|
|
156
|
+
$[27] = t9;
|
|
157
|
+
$[28] = testID;
|
|
158
|
+
$[29] = t11;
|
|
159
|
+
} else {
|
|
160
|
+
t11 = $[29];
|
|
161
|
+
}
|
|
162
|
+
return t11;
|
|
163
|
+
}
|
|
164
|
+
function _temp(filter) {
|
|
165
|
+
return filter.selected;
|
|
14
166
|
}
|
|
@@ -1,115 +1,388 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as _c } from "react/compiler-runtime";
|
|
2
2
|
import Button from "../Actions/Actions.Button.js";
|
|
3
3
|
import DatePicker from "../Form/Form.DatePicker.js";
|
|
4
4
|
import Input from "../Form/Form.Input.js";
|
|
5
5
|
import { Typography } from "../Typography/index.js";
|
|
6
|
-
import { describeCriteria, parseCriteriaDate, replaceCriteria, validateCondition
|
|
6
|
+
import { describeCriteria, parseCriteriaDate, replaceCriteria, validateCondition } from "../utils/criteria.js";
|
|
7
7
|
import QueryChoice from "./QueryChoice.js";
|
|
8
8
|
import { useEffect, useState } from "react";
|
|
9
9
|
import { View } from "react-native";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "nativewind/jsx-runtime";
|
|
11
|
+
export default function FilterBuilder(t0) {
|
|
12
|
+
const $ = _c(34);
|
|
13
|
+
const {
|
|
14
|
+
fields,
|
|
15
|
+
value,
|
|
16
|
+
onChange,
|
|
17
|
+
onEditingChange,
|
|
18
|
+
className,
|
|
19
|
+
testID
|
|
20
|
+
} = t0;
|
|
21
|
+
let t1;
|
|
22
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
23
|
+
t1 = [];
|
|
24
|
+
$[0] = t1;
|
|
25
|
+
} else {
|
|
26
|
+
t1 = $[0];
|
|
27
|
+
}
|
|
28
|
+
const [path, setPath] = useState(t1);
|
|
29
|
+
const [editing, setEditing] = useState(null);
|
|
30
|
+
const [error, setError] = useState();
|
|
31
|
+
const isEditing = editing !== null;
|
|
32
|
+
let t2;
|
|
33
|
+
let t3;
|
|
34
|
+
if ($[1] !== isEditing || $[2] !== onEditingChange) {
|
|
35
|
+
t2 = () => {
|
|
36
|
+
onEditingChange?.(isEditing);
|
|
37
|
+
return () => onEditingChange?.(false);
|
|
38
|
+
};
|
|
39
|
+
t3 = [isEditing, onEditingChange];
|
|
40
|
+
$[1] = isEditing;
|
|
41
|
+
$[2] = onEditingChange;
|
|
42
|
+
$[3] = t2;
|
|
43
|
+
$[4] = t3;
|
|
44
|
+
} else {
|
|
45
|
+
t2 = $[3];
|
|
46
|
+
t3 = $[4];
|
|
47
|
+
}
|
|
48
|
+
useEffect(t2, t3);
|
|
49
|
+
let current = value;
|
|
50
|
+
for (const index of path) {
|
|
51
|
+
current = current?.kind === "group" ? current.children[index] : undefined;
|
|
52
|
+
}
|
|
53
|
+
if (current?.kind !== "group") {
|
|
54
|
+
let t4;
|
|
55
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
56
|
+
t4 = _jsx(Typography.Text, {
|
|
57
|
+
accessibilityLiveRegion: "polite",
|
|
58
|
+
children: "Este grupo ya no est\xE1 disponible. La configuraci\xF3n cambi\xF3."
|
|
59
|
+
});
|
|
60
|
+
$[5] = t4;
|
|
61
|
+
} else {
|
|
62
|
+
t4 = $[5];
|
|
63
|
+
}
|
|
64
|
+
let t5;
|
|
65
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
66
|
+
t5 = _jsx(Button, {
|
|
67
|
+
onPress: () => {
|
|
68
|
+
setPath([]);
|
|
69
|
+
setEditing(null);
|
|
70
|
+
},
|
|
71
|
+
title: "Volver a condiciones",
|
|
72
|
+
variant: "secondary"
|
|
73
|
+
});
|
|
74
|
+
$[6] = t5;
|
|
75
|
+
} else {
|
|
76
|
+
t5 = $[6];
|
|
77
|
+
}
|
|
78
|
+
let t6;
|
|
79
|
+
if ($[7] !== className || $[8] !== testID) {
|
|
80
|
+
t6 = _jsxs(View, {
|
|
81
|
+
className: className,
|
|
82
|
+
testID: testID,
|
|
83
|
+
children: [t4, t5]
|
|
84
|
+
});
|
|
85
|
+
$[7] = className;
|
|
86
|
+
$[8] = testID;
|
|
87
|
+
$[9] = t6;
|
|
88
|
+
} else {
|
|
89
|
+
t6 = $[9];
|
|
22
90
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
91
|
+
return t6;
|
|
92
|
+
}
|
|
93
|
+
const group = current;
|
|
94
|
+
let t4;
|
|
95
|
+
if ($[10] !== onChange || $[11] !== path || $[12] !== value) {
|
|
96
|
+
t4 = next => onChange(replaceCriteria(value, path, next));
|
|
97
|
+
$[10] = onChange;
|
|
98
|
+
$[11] = path;
|
|
99
|
+
$[12] = value;
|
|
100
|
+
$[13] = t4;
|
|
101
|
+
} else {
|
|
102
|
+
t4 = $[13];
|
|
103
|
+
}
|
|
104
|
+
const changeGroup = t4;
|
|
105
|
+
const condition = editing?.condition;
|
|
106
|
+
let t5;
|
|
107
|
+
if ($[14] !== changeGroup || $[15] !== className || $[16] !== condition || $[17] !== editing || $[18] !== error || $[19] !== fields || $[20] !== group || $[21] !== path || $[22] !== testID) {
|
|
108
|
+
let t6;
|
|
109
|
+
if ($[24] !== condition?.field) {
|
|
110
|
+
t6 = item => item.id === condition?.field;
|
|
111
|
+
$[24] = condition?.field;
|
|
112
|
+
$[25] = t6;
|
|
113
|
+
} else {
|
|
114
|
+
t6 = $[25];
|
|
115
|
+
}
|
|
116
|
+
const field = fields.find(t6);
|
|
117
|
+
const operator = field?.operators.find(item_0 => item_0.id === condition?.operator);
|
|
118
|
+
let t7;
|
|
119
|
+
if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
|
|
120
|
+
t7 = next_0 => {
|
|
34
121
|
setError(undefined);
|
|
35
|
-
setEditing(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
122
|
+
setEditing(current_0 => current_0 ? {
|
|
123
|
+
...current_0,
|
|
124
|
+
condition: next_0
|
|
125
|
+
} : null);
|
|
126
|
+
};
|
|
127
|
+
$[26] = t7;
|
|
128
|
+
} else {
|
|
129
|
+
t7 = $[26];
|
|
130
|
+
}
|
|
131
|
+
const changeCondition = t7;
|
|
132
|
+
let t8;
|
|
133
|
+
if ($[27] !== fields) {
|
|
134
|
+
t8 = () => {
|
|
135
|
+
const first = fields.find(_temp);
|
|
136
|
+
if (!first) {
|
|
137
|
+
throw new Error("No configurable filter fields");
|
|
138
|
+
}
|
|
41
139
|
setError(undefined);
|
|
42
140
|
setEditing({
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
141
|
+
index: null,
|
|
142
|
+
condition: {
|
|
143
|
+
kind: "condition",
|
|
144
|
+
field: first.id,
|
|
145
|
+
operator: first.operators[0].id,
|
|
146
|
+
values: []
|
|
147
|
+
}
|
|
50
148
|
});
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
149
|
+
};
|
|
150
|
+
$[27] = fields;
|
|
151
|
+
$[28] = t8;
|
|
152
|
+
} else {
|
|
153
|
+
t8 = $[28];
|
|
154
|
+
}
|
|
155
|
+
const addCondition = t8;
|
|
156
|
+
let t9;
|
|
157
|
+
if ($[29] === Symbol.for("react.memo_cache_sentinel")) {
|
|
158
|
+
t9 = {
|
|
159
|
+
gap: 16
|
|
160
|
+
};
|
|
161
|
+
$[29] = t9;
|
|
162
|
+
} else {
|
|
163
|
+
t9 = $[29];
|
|
164
|
+
}
|
|
165
|
+
let t10;
|
|
166
|
+
if ($[30] !== path) {
|
|
167
|
+
t10 = path.length ? `Grupo ${path.map(_temp2).join(" \u203A ")}` : "Condiciones";
|
|
168
|
+
$[30] = path;
|
|
169
|
+
$[31] = t10;
|
|
170
|
+
} else {
|
|
171
|
+
t10 = $[31];
|
|
172
|
+
}
|
|
173
|
+
let t11;
|
|
174
|
+
if ($[32] !== t10) {
|
|
175
|
+
t11 = _jsx(Typography.Text, {
|
|
176
|
+
accessibilityRole: "header",
|
|
177
|
+
semibold: true,
|
|
178
|
+
variant: "body",
|
|
179
|
+
children: t10
|
|
180
|
+
});
|
|
181
|
+
$[32] = t10;
|
|
182
|
+
$[33] = t11;
|
|
183
|
+
} else {
|
|
184
|
+
t11 = $[33];
|
|
185
|
+
}
|
|
186
|
+
t5 = _jsxs(View, {
|
|
187
|
+
className: className,
|
|
188
|
+
style: t9,
|
|
189
|
+
testID: testID,
|
|
190
|
+
children: [t11, editing && condition ? _jsxs(_Fragment, {
|
|
191
|
+
children: [_jsx(QueryChoice, {
|
|
192
|
+
label: "Campo",
|
|
193
|
+
onChange: id => {
|
|
194
|
+
const next_1 = fields.find(item_2 => item_2.id === id);
|
|
195
|
+
if (!next_1?.operators.length) {
|
|
196
|
+
throw new Error("Field has no operators");
|
|
197
|
+
}
|
|
198
|
+
changeCondition({
|
|
199
|
+
...condition,
|
|
200
|
+
field: id,
|
|
201
|
+
operator: next_1.operators[0].id,
|
|
202
|
+
values: []
|
|
203
|
+
});
|
|
204
|
+
},
|
|
205
|
+
options: fields.filter(_temp3).map(_temp4),
|
|
206
|
+
value: condition.field
|
|
207
|
+
}), _jsx(QueryChoice, {
|
|
208
|
+
label: "Comparaci\xF3n",
|
|
209
|
+
onChange: id_0 => changeCondition({
|
|
210
|
+
...condition,
|
|
211
|
+
operator: id_0,
|
|
212
|
+
values: []
|
|
213
|
+
}),
|
|
214
|
+
options: (field?.operators ?? []).map(_temp5),
|
|
215
|
+
value: condition.operator
|
|
216
|
+
}), Array.from({
|
|
217
|
+
length: operator?.arity === "range" ? 2 : operator?.arity === "one" ? 1 : 0
|
|
218
|
+
}, (_, index_1) => {
|
|
219
|
+
const label = operator?.arity === "range" ? index_1 === 0 ? "Desde" : "Hasta" : "Valor";
|
|
220
|
+
const update = next_2 => {
|
|
221
|
+
const values = [...condition.values];
|
|
222
|
+
values[index_1] = next_2;
|
|
223
|
+
changeCondition({
|
|
224
|
+
...condition,
|
|
225
|
+
values
|
|
226
|
+
});
|
|
227
|
+
};
|
|
228
|
+
return field?.type === "choice" ? _jsx(QueryChoice, {
|
|
229
|
+
label: label,
|
|
230
|
+
onChange: update,
|
|
231
|
+
options: field.options ?? [],
|
|
232
|
+
value: condition.values[index_1]
|
|
233
|
+
}, index_1) : field?.type === "date" ? _jsx(DatePicker, {
|
|
234
|
+
label: label,
|
|
235
|
+
onChange: date => update(`${String(date.getFullYear()).padStart(4, "0")}-${String(date.getMonth() + 1).padStart(2, "0")}-${String(date.getDate()).padStart(2, "0")}`),
|
|
236
|
+
value: parseCriteriaDate(condition.values[index_1])
|
|
237
|
+
}, index_1) : _jsx(Input, {
|
|
238
|
+
keyboardType: field?.type === "number" ? "numbers-and-punctuation" : "default",
|
|
239
|
+
label: label,
|
|
240
|
+
onChangeText: update,
|
|
241
|
+
testID: `criteria-value-${index_1}`,
|
|
242
|
+
value: condition.values[index_1] === undefined || Number.isNaN(condition.values[index_1]) ? "" : String(condition.values[index_1])
|
|
243
|
+
}, index_1);
|
|
244
|
+
}), error ? _jsx(Typography.Text, {
|
|
245
|
+
accessibilityLiveRegion: "polite",
|
|
246
|
+
className: "text-danger",
|
|
247
|
+
children: error
|
|
248
|
+
}) : null, _jsx(Button, {
|
|
249
|
+
onPress: () => {
|
|
250
|
+
const next_3 = {
|
|
251
|
+
...condition,
|
|
252
|
+
values: field?.type === "number" ? Array.from(condition.values, _temp6) : condition.values
|
|
253
|
+
};
|
|
254
|
+
const problem = validateCondition(next_3, fields);
|
|
255
|
+
if (problem) {
|
|
256
|
+
setError(problem);
|
|
257
|
+
return;
|
|
258
|
+
}
|
|
259
|
+
const children = [...group.children];
|
|
260
|
+
if (editing.index === null) {
|
|
261
|
+
children.push(next_3);
|
|
262
|
+
} else {
|
|
263
|
+
children[editing.index] = next_3;
|
|
264
|
+
}
|
|
265
|
+
changeGroup({
|
|
266
|
+
...group,
|
|
267
|
+
children
|
|
268
|
+
});
|
|
269
|
+
setEditing(null);
|
|
270
|
+
},
|
|
271
|
+
title: "Guardar condici\xF3n"
|
|
272
|
+
}), _jsx(Button, {
|
|
273
|
+
onPress: () => setEditing(null),
|
|
274
|
+
title: "Cancelar condici\xF3n",
|
|
275
|
+
variant: "secondary"
|
|
276
|
+
})]
|
|
277
|
+
}) : _jsxs(_Fragment, {
|
|
278
|
+
children: [path.length ? _jsx(Button, {
|
|
279
|
+
onPress: () => setPath(path.slice(0, -1)),
|
|
280
|
+
title: "Volver al grupo anterior",
|
|
281
|
+
variant: "link"
|
|
282
|
+
}) : null, _jsx(QueryChoice, {
|
|
283
|
+
label: "Coinciden",
|
|
284
|
+
onChange: join => changeGroup({
|
|
285
|
+
...group,
|
|
286
|
+
join
|
|
287
|
+
}),
|
|
288
|
+
options: [{
|
|
289
|
+
label: "Todas las condiciones",
|
|
290
|
+
value: "all"
|
|
291
|
+
}, {
|
|
292
|
+
label: "Cualquiera de las condiciones",
|
|
293
|
+
value: "any"
|
|
294
|
+
}, {
|
|
295
|
+
label: "Ninguna de las condiciones",
|
|
296
|
+
value: "none"
|
|
297
|
+
}],
|
|
298
|
+
value: group.join
|
|
299
|
+
}), !group.children.length ? _jsx(Typography.Text, {
|
|
300
|
+
className: "text-text-secondary",
|
|
301
|
+
children: "Sin condiciones en este grupo."
|
|
302
|
+
}) : null, group.children.map((child, index_2) => _jsxs(View, {
|
|
303
|
+
className: "border-b border-border-light pb-3 gap-2",
|
|
304
|
+
children: [_jsx(Typography.Text, {
|
|
305
|
+
variant: "body",
|
|
306
|
+
children: describeCriteria(child, fields)
|
|
307
|
+
}), _jsxs(View, {
|
|
308
|
+
className: "flex-row flex-wrap gap-2",
|
|
309
|
+
children: [_jsx(Button, {
|
|
310
|
+
onPress: () => child.kind === "group" ? setPath([...path, index_2]) : (setError(undefined), setEditing({
|
|
311
|
+
index: index_2,
|
|
312
|
+
condition: child
|
|
313
|
+
})),
|
|
314
|
+
title: child.kind === "group" ? `Abrir grupo ${index_2 + 1}` : `Editar condición ${index_2 + 1}`,
|
|
315
|
+
variant: "secondary"
|
|
316
|
+
}), _jsx(Button, {
|
|
317
|
+
onPress: () => changeGroup({
|
|
318
|
+
...group,
|
|
319
|
+
children: group.children.filter((__0, position) => position !== index_2)
|
|
320
|
+
}),
|
|
321
|
+
title: `Eliminar ${child.kind === "group" ? "grupo" : "condici\xF3n"} ${index_2 + 1}`,
|
|
322
|
+
variant: "link"
|
|
323
|
+
})]
|
|
324
|
+
})]
|
|
325
|
+
}, index_2)), _jsx(Button, {
|
|
326
|
+
disabled: !fields.some(_temp7),
|
|
327
|
+
onPress: addCondition,
|
|
328
|
+
title: "A\xF1adir condici\xF3n",
|
|
329
|
+
variant: "secondary"
|
|
330
|
+
}), _jsx(Button, {
|
|
331
|
+
onPress: () => {
|
|
332
|
+
changeGroup({
|
|
333
|
+
...group,
|
|
334
|
+
children: [...group.children, {
|
|
335
|
+
kind: "group",
|
|
336
|
+
join: "any",
|
|
337
|
+
children: []
|
|
338
|
+
}]
|
|
339
|
+
});
|
|
340
|
+
setPath([...path, group.children.length]);
|
|
341
|
+
},
|
|
342
|
+
title: "A\xF1adir grupo",
|
|
343
|
+
variant: "secondary"
|
|
344
|
+
})]
|
|
345
|
+
})]
|
|
346
|
+
});
|
|
347
|
+
$[14] = changeGroup;
|
|
348
|
+
$[15] = className;
|
|
349
|
+
$[16] = condition;
|
|
350
|
+
$[17] = editing;
|
|
351
|
+
$[18] = error;
|
|
352
|
+
$[19] = fields;
|
|
353
|
+
$[20] = group;
|
|
354
|
+
$[21] = path;
|
|
355
|
+
$[22] = testID;
|
|
356
|
+
$[23] = t5;
|
|
357
|
+
} else {
|
|
358
|
+
t5 = $[23];
|
|
359
|
+
}
|
|
360
|
+
return t5;
|
|
361
|
+
}
|
|
362
|
+
function _temp7(item_6) {
|
|
363
|
+
return item_6.operators.length;
|
|
364
|
+
}
|
|
365
|
+
function _temp6(value_0) {
|
|
366
|
+
return typeof value_0 === "string" && !value_0.trim() ? NaN : Number(value_0);
|
|
367
|
+
}
|
|
368
|
+
function _temp5(item_5) {
|
|
369
|
+
return {
|
|
370
|
+
label: item_5.label,
|
|
371
|
+
value: item_5.id
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
function _temp4(item_4) {
|
|
375
|
+
return {
|
|
376
|
+
label: item_4.label,
|
|
377
|
+
value: item_4.id
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
function _temp3(item_3) {
|
|
381
|
+
return item_3.operators.length;
|
|
382
|
+
}
|
|
383
|
+
function _temp2(index_0) {
|
|
384
|
+
return index_0 + 1;
|
|
385
|
+
}
|
|
386
|
+
function _temp(item_1) {
|
|
387
|
+
return item_1.operators.length;
|
|
115
388
|
}
|