dgrcorrientes-modulos 1.0.2 → 1.0.4
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/README.md +12 -21
- package/components.js +31576 -0
- package/components.umd.cjs +311 -0
- package/index.d.ts +1 -0
- package/package.json +1 -60
- package/style.css +5 -0
- package/.nvmrc +0 -1
- package/.prettierrc.cjs +0 -8
- package/.storybook/main.cjs +0 -11
- package/.storybook/manager-head.html +0 -2
- package/.storybook/manager.cjs +0 -6
- package/.storybook/preview-head.html +0 -3
- package/.storybook/preview.cjs +0 -11
- package/.storybook/themes.cjs +0 -14
- package/StoryBook.txt +0 -19
- package/dist-config.cjs +0 -57
- package/index.html +0 -13
- package/src/App.scss +0 -36
- package/src/App.tsx +0 -34
- package/src/assets/react.svg +0 -1
- package/src/index.js +0 -70
- package/src/index.scss +0 -63
- package/src/index.ts +0 -108
- package/src/main.tsx +0 -11
- package/src/sass/base/_base.scss +0 -50
- package/src/sass/base/_controls.scss +0 -90
- package/src/sass/base/_datepicker.scss +0 -114
- package/src/sass/base/_typo.scss +0 -71
- package/src/sass/base/fonts/SFUIText-Bold.ttf +0 -0
- package/src/sass/base/fonts/SFUIText-BoldItalic.ttf +0 -0
- package/src/sass/base/fonts/SFUIText-Heavy.ttf +0 -0
- package/src/sass/base/fonts/SFUIText-HeavyItalic.ttf +0 -0
- package/src/sass/base/fonts/SFUIText-Light.ttf +0 -0
- package/src/sass/base/fonts/SFUIText-LightItalic.ttf +0 -0
- package/src/sass/base/fonts/SFUIText-Medium.ttf +0 -0
- package/src/sass/base/fonts/SFUIText-MediumItalic.ttf +0 -0
- package/src/sass/base/fonts/SFUIText-Regular.ttf +0 -0
- package/src/sass/base/fonts/SFUIText-RegularItalic.ttf +0 -0
- package/src/sass/base/fonts/SFUIText-Semibold.ttf +0 -0
- package/src/sass/base/fonts/SFUIText-SemiboldItalic.ttf +0 -0
- package/src/sass/bulma/bulma-changes.scss +0 -19
- package/src/sass/bulma/extensions/extensions.sass +0 -1
- package/src/sass/bulma/extensions/steps/bulma-steps.sass +0 -3
- package/src/sass/bulma/extensions/steps/index.sass +0 -421
- package/src/sass/bulma/variables/_variables-bulma.sass +0 -16
- package/src/sass/bulma/variables/components/card.sass +0 -20
- package/src/sass/bulma/variables/components/navbar.sass +0 -50
- package/src/sass/bulma/variables/components/tabs.sass +0 -28
- package/src/sass/bulma/variables/elements/button.sass +0 -46
- package/src/sass/bulma/variables/elements/notification.sass +0 -8
- package/src/sass/bulma/variables/elements/title.sass +0 -20
- package/src/sass/bulma/variables/grid/column.sass +0 -2
- package/src/sass/main.sass +0 -16
- package/src/sass/utilities/_bulma-variables.sass +0 -20
- package/src/sass/utilities/_derived-variables.scss +0 -68
- package/src/sass/utilities/_helpers.scss +0 -70
- package/src/sass/utilities/_variables.scss +0 -147
- package/src/stories/Changelog.stories.tsx +0 -73
- package/src/stories/Components/AssistanceDiary/AssistanceDiary.scss +0 -19
- package/src/stories/Components/AssistanceDiary/AssistanceDiary.stories.tsx +0 -25
- package/src/stories/Components/AssistanceDiary/AssistanceDiary.tsx +0 -57
- package/src/stories/Components/AverageAttended/AverageAttended.scss +0 -39
- package/src/stories/Components/AverageAttended/AverageAttended.stories.tsx +0 -71
- package/src/stories/Components/AverageAttended/AverageAttended.tsx +0 -311
- package/src/stories/Components/Breadcrumb/Breadcrumb.stories.tsx +0 -45
- package/src/stories/Components/Breadcrumb/Breadcrumb.tsx +0 -68
- package/src/stories/Components/Breadcrumb/breadcrumb.scss +0 -82
- package/src/stories/Components/CTA/CTA.scss +0 -76
- package/src/stories/Components/CTA/CTA.stories.tsx +0 -46
- package/src/stories/Components/CTA/CTA.tsx +0 -70
- package/src/stories/Components/Cards/Card CTA/CardCta.stories.tsx +0 -34
- package/src/stories/Components/Cards/Card CTA/CardCta.tsx +0 -81
- package/src/stories/Components/Cards/Card CTA/cardCta.scss +0 -71
- package/src/stories/Components/Cards/Card Expiration/cardExpiration.scss +0 -105
- package/src/stories/Components/Cards/Card Expiration/cardExpiration.stories.tsx +0 -40
- package/src/stories/Components/Cards/Card Expiration/cardExpiration.tsx +0 -95
- package/src/stories/Components/Cards/Card Vertical/CardVertical.stories.tsx +0 -43
- package/src/stories/Components/Cards/Card Vertical/CardVertical.tsx +0 -106
- package/src/stories/Components/Cards/Card Vertical/cardVertical.scss +0 -130
- package/src/stories/Components/Cards/CardActivity/cardActivity.scss +0 -31
- package/src/stories/Components/Cards/CardActivity/cardActivity.stories.tsx +0 -20
- package/src/stories/Components/Cards/CardActivity/cardActivity.tsx +0 -48
- package/src/stories/Components/Cards/CardHorizontal/CardHorizontal.stories.tsx +0 -96
- package/src/stories/Components/Cards/CardHorizontal/CardHorizontal.tsx +0 -94
- package/src/stories/Components/Cards/CardHorizontal/cardHorizontal.scss +0 -65
- package/src/stories/Components/Cards/CardUser/CardUser.stories.tsx +0 -135
- package/src/stories/Components/Cards/CardUser/CardUser.tsx +0 -122
- package/src/stories/Components/Cards/CardUser/cardUser.scss +0 -115
- package/src/stories/Components/Cart/Cart.scss +0 -279
- package/src/stories/Components/Cart/Cart.stories.tsx +0 -350
- package/src/stories/Components/Cart/Cart.tsx +0 -277
- package/src/stories/Components/Collapse/Collapse.scss +0 -339
- package/src/stories/Components/Collapse/Collapse.stories.tsx +0 -766
- package/src/stories/Components/Collapse/Collapse.tsx +0 -451
- package/src/stories/Components/CollapseEdit/CollapseEdit.scss +0 -128
- package/src/stories/Components/CollapseEdit/CollapseEdit.stories.tsx +0 -29
- package/src/stories/Components/CollapseEdit/CollapseEdit.tsx +0 -185
- package/src/stories/Components/CompleteDiary/CompleteDiary.scss +0 -165
- package/src/stories/Components/CompleteDiary/CompleteDiary.stories.tsx +0 -219
- package/src/stories/Components/CompleteDiary/CompleteDiary.tsx +0 -394
- package/src/stories/Components/Dropdown/Dropdown.scss +0 -60
- package/src/stories/Components/Dropdown/Dropdown.stories.tsx +0 -19
- package/src/stories/Components/Dropdown/Dropdown.tsx +0 -99
- package/src/stories/Components/EmptyState/EmptyState.stories.tsx +0 -46
- package/src/stories/Components/EmptyState/EmptyState.tsx +0 -44
- package/src/stories/Components/EmptyState/emptyState.scss +0 -75
- package/src/stories/Components/ErrorPage/ErrorPage.scss +0 -65
- package/src/stories/Components/ErrorPage/ErrorPage.stories.tsx +0 -164
- package/src/stories/Components/ErrorPage/ErrorPage.tsx +0 -107
- package/src/stories/Components/IncomingCall/IncomingCall.scss +0 -27
- package/src/stories/Components/IncomingCall/IncomingCall.stories.tsx +0 -43
- package/src/stories/Components/IncomingCall/IncomingCall.tsx +0 -76
- package/src/stories/Components/ModalConfirm/ModalConfirm.scss +0 -30
- package/src/stories/Components/ModalConfirm/ModalConfirm.stories.tsx +0 -21
- package/src/stories/Components/ModalConfirm/ModalConfirm.tsx +0 -118
- package/src/stories/Components/Pagination/Pagination.scss +0 -42
- package/src/stories/Components/Pagination/Pagination.stories.tsx +0 -25
- package/src/stories/Components/Pagination/Pagination.tsx +0 -143
- package/src/stories/Components/PerformanceAssessment/PerformanceAssessment.scss +0 -26
- package/src/stories/Components/PerformanceAssessment/PerformanceAssessment.stories.tsx +0 -27
- package/src/stories/Components/PerformanceAssessment/PerformanceAssessment.tsx +0 -108
- package/src/stories/Components/ShiftDiary/ShiftDiary.scss +0 -45
- package/src/stories/Components/ShiftDiary/ShiftDiary.stories.tsx +0 -32
- package/src/stories/Components/ShiftDiary/ShiftDiary.tsx +0 -92
- package/src/stories/Components/Stepper/Stepper.stories.tsx +0 -26
- package/src/stories/Components/Stepper/Stepper.tsx +0 -102
- package/src/stories/Components/Stepper/stepper.scss +0 -59
- package/src/stories/Components/Tabs/Tabs.stories.tsx +0 -76
- package/src/stories/Components/Tabs/Tabs.tsx +0 -111
- package/src/stories/Components/Tabs/tabs.scss +0 -118
- package/src/stories/Components/Tooltip/Tooltip.scss +0 -235
- package/src/stories/Components/Tooltip/Tooltip.stories.tsx +0 -125
- package/src/stories/Components/Tooltip/Tooltip.tsx +0 -222
- package/src/stories/Elements/Alert/Alert.stories.tsx +0 -65
- package/src/stories/Elements/Alert/Alert.tsx +0 -49
- package/src/stories/Elements/Alert/alert.scss +0 -189
- package/src/stories/Elements/Badge/Badge.stories.tsx +0 -15
- package/src/stories/Elements/Badge/Badge.tsx +0 -21
- package/src/stories/Elements/Badge/badge.scss +0 -24
- package/src/stories/Elements/Button/Button.stories.tsx +0 -54
- package/src/stories/Elements/Button/Button.tsx +0 -118
- package/src/stories/Elements/Button/button.scss +0 -102
- package/src/stories/Elements/Icon/Icon.stories.tsx +0 -33
- package/src/stories/Elements/Icon/Icon.tsx +0 -57
- package/src/stories/Elements/Icon/icon.scss +0 -15
- package/src/stories/Elements/Icon/icono.svg +0 -1
- package/src/stories/Elements/ProgressBar/ProgressBar.scss +0 -26
- package/src/stories/Elements/ProgressBar/ProgressBar.stories.tsx +0 -19
- package/src/stories/Elements/ProgressBar/ProgressBar.tsx +0 -35
- package/src/stories/Form/Autocomplete/Autocomplete.stories.tsx +0 -55
- package/src/stories/Form/Autocomplete/Autocomplete.tsx +0 -160
- package/src/stories/Form/Autocomplete/autocomplete.scss +0 -311
- package/src/stories/Form/Autocomplete-Prueba/Autocomplete.stories.tsx +0 -50
- package/src/stories/Form/Autocomplete-Prueba/AutocompletePrueba.tsx +0 -83
- package/src/stories/Form/Checkbox/Checkbox.stories.tsx +0 -26
- package/src/stories/Form/Checkbox/Checkbox.tsx +0 -89
- package/src/stories/Form/Checkbox/checkbox.scss +0 -41
- package/src/stories/Form/DatePicker/DatePickerExample.stories.tsx +0 -27
- package/src/stories/Form/DatePicker/DatePickerExample.tsx +0 -65
- package/src/stories/Form/DatePickerComponent/DatePickerComponent.scss +0 -116
- package/src/stories/Form/DatePickerComponent/DatePickerComponent.stories.tsx +0 -37
- package/src/stories/Form/DatePickerComponent/DatePickerComponent.tsx +0 -97
- package/src/stories/Form/Filters/Filters.stories.tsx +0 -84
- package/src/stories/Form/Filters/Filters.tsx +0 -230
- package/src/stories/Form/Filters/filters.scss +0 -261
- package/src/stories/Form/Input/Input.stories.tsx +0 -25
- package/src/stories/Form/Input/Input.tsx +0 -86
- package/src/stories/Form/Input/InputVar.sass +0 -26
- package/src/stories/Form/Input/input.scss +0 -19
- package/src/stories/Form/InputFormControl/Input-form-control.stories.tsx +0 -26
- package/src/stories/Form/InputFormControl/Input-form-control.tsx +0 -48
- package/src/stories/Form/InputFormControl/input-form-control.scss +0 -34
- package/src/stories/Form/Radio/Radio.stories.tsx +0 -19
- package/src/stories/Form/Radio/Radio.tsx +0 -84
- package/src/stories/Form/Radio/radio.scss +0 -19
- package/src/stories/Form/Search/Search.scss +0 -50
- package/src/stories/Form/Search/Search.stories.tsx +0 -26
- package/src/stories/Form/Search/Search.tsx +0 -84
- package/src/stories/Form/Select/Select.stories.tsx +0 -55
- package/src/stories/Form/Select/Select.tsx +0 -121
- package/src/stories/Form/Select/select.scss +0 -303
- package/src/stories/Form/Switch/Switch.stories.tsx +0 -17
- package/src/stories/Form/Switch/Switch.tsx +0 -36
- package/src/stories/Form/Switch/switch.scss +0 -123
- package/src/stories/Form/Textarea/Textarea.stories.tsx +0 -19
- package/src/stories/Form/Textarea/Textarea.tsx +0 -52
- package/src/stories/Form/Textarea/textarea.scss +0 -25
- package/src/stories/Form/UploadFileItem/UploadFileItem.scss +0 -49
- package/src/stories/Form/UploadFileItem/UploadFileItem.stories.tsx +0 -18
- package/src/stories/Form/UploadFileItem/UploadFileItem.tsx +0 -89
- package/src/stories/Form/UploadFiles/UploadFiles.scss +0 -17
- package/src/stories/Form/UploadFiles/UploadFiles.stories.tsx +0 -32
- package/src/stories/Form/UploadFiles/UploadFiles.tsx +0 -177
- package/src/stories/Layout/Footer/Footer.scss +0 -129
- package/src/stories/Layout/Footer/Footer.stories.tsx +0 -101
- package/src/stories/Layout/Footer/Footer.tsx +0 -81
- package/src/stories/Layout/Header/Header.scss +0 -190
- package/src/stories/Layout/Header/Header.stories.tsx +0 -223
- package/src/stories/Layout/Header/Header.tsx +0 -278
- package/src/stories/Layout/HeaderTable/HeaderTable.scss +0 -21
- package/src/stories/Layout/HeaderTable/HeaderTable.stories.tsx +0 -112
- package/src/stories/Layout/HeaderTable/HeaderTable.tsx +0 -72
- package/src/stories/Layout/Sidebar/Sidebar.scss +0 -50
- package/src/stories/Layout/Sidebar/Sidebar.stories.tsx +0 -744
- package/src/stories/Layout/Sidebar/Sidebar.tsx +0 -129
- package/src/stories/Layout/SidebarEmpty/SidebarEmpty.scss +0 -64
- package/src/stories/Layout/SidebarEmpty/SidebarEmpty.stories.tsx +0 -26
- package/src/stories/Layout/SidebarEmpty/SidebarEmpty.tsx +0 -100
- package/src/stories/Layout/Subtitle/Subtitle.scss +0 -88
- package/src/stories/Layout/Subtitle/Subtitle.stories.tsx +0 -46
- package/src/stories/Layout/Subtitle/Subtitle.tsx +0 -108
- package/src/stories/Layout/Title/Title.scss +0 -79
- package/src/stories/Layout/Title/Title.stories.tsx +0 -86
- package/src/stories/Layout/Title/Title.tsx +0 -96
- package/src/stories/Welcome.stories.tsx +0 -111
- package/src/stories/assets/404 Page Not Found _Two Color (1).png +0 -0
- package/src/stories/assets/404 Page Not Found _Two Color.png +0 -0
- package/src/stories/assets/Empty Inbox _Two Color.png +0 -0
- package/src/stories/assets/Loading _Two Color.png +0 -0
- package/src/stories/assets/Notifications_Two Color 1.png +0 -0
- package/src/stories/assets/Online protection_Two Color.png +0 -0
- package/src/stories/assets/Under Constructions _Two Color.png +0 -0
- package/src/stories/assets/bulma.png +0 -0
- package/src/stories/assets/burger.svg +0 -5
- package/src/stories/assets/code-brackets.svg +0 -1
- package/src/stories/assets/colors.svg +0 -1
- package/src/stories/assets/comments.svg +0 -1
- package/src/stories/assets/decor-bg.png +0 -0
- package/src/stories/assets/direction.svg +0 -1
- package/src/stories/assets/e-isologo.svg +0 -4
- package/src/stories/assets/e-isotype.svg +0 -4
- package/src/stories/assets/e-logo_negative.svg +0 -14
- package/src/stories/assets/e-logotype.svg +0 -14
- package/src/stories/assets/flow.svg +0 -1
- package/src/stories/assets/logo_gobierno_corrientes.svg +0 -9
- package/src/stories/assets/logo_rentas_corrientes.svg +0 -10
- package/src/stories/assets/logo_rentas_corrientes_compacto.svg +0 -10
- package/src/stories/assets/plugin.svg +0 -1
- package/src/stories/assets/repo.svg +0 -1
- package/src/stories/assets/stackalt.svg +0 -1
- package/src/stories/assets/storybook.svg +0 -13
- package/src/stories/assets/thumbnail-black.jpg +0 -0
- package/src/stories/assets/thumbnail-black[2].jpg +0 -0
- package/src/stories/assets/thumbnail.jpg +0 -0
- package/src/stories/assets/thumbnail[2].jpg +0 -0
- package/src/stories/changelog.ts +0 -389
- package/src/utils/functions.ts +0 -57
- package/src/vite-env.d.ts +0 -2
- package/static/e-isologo-192.jpg +0 -0
- package/static/e-isologo.svg +0 -4
- package/static/e-logotype.svg +0 -14
- package/static/favicon.ico +0 -0
- package/tsconfig.json +0 -22
- package/tsconfig.node.json +0 -9
- package/vite.config.ts +0 -22
- /package/{public/elevation.ico → elevation.ico} +0 -0
- /package/{public/elevationImage.png → elevationImage.png} +0 -0
- /package/{public/vite.svg → vite.svg} +0 -0
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import './CollapseEdit.scss';
|
|
2
|
-
import {Checkbox, ICheckbox} from '../../Form/Checkbox/Checkbox';
|
|
3
|
-
import {IInput, Input} from '../../Form/Input/Input';
|
|
4
|
-
import {Button, IButton} from '../../Elements/Button/Button';
|
|
5
|
-
import {StrictMode, useState} from 'react';
|
|
6
|
-
|
|
7
|
-
export interface ICollapseEdit extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
8
|
-
// BASE
|
|
9
|
-
labelDescription: string;
|
|
10
|
-
checkbox?: ICheckbox;
|
|
11
|
-
input?: IInput;
|
|
12
|
-
inputAmount?: IInput;
|
|
13
|
-
buttonRecalculate?: IButton;
|
|
14
|
-
buttonCancel?: IButton;
|
|
15
|
-
buttonSave?: IButton;
|
|
16
|
-
priceTopEdit?: {labelImpost?: string; labelNumberI?: number};
|
|
17
|
-
priceBottomEdit?: {labelAliquot?: string; labelNumberA?: number};
|
|
18
|
-
|
|
19
|
-
// IS-OPTIONS
|
|
20
|
-
showAmountinEdit?: boolean;
|
|
21
|
-
|
|
22
|
-
// EVENTS
|
|
23
|
-
onCantidadChange?: (newValue: string) => void;
|
|
24
|
-
onSaveData?: (Data: IDataPrice) => void;
|
|
25
|
-
// GENERIC
|
|
26
|
-
className?: string;
|
|
27
|
-
}
|
|
28
|
-
export interface IDataPrice {
|
|
29
|
-
calculatedtax: number;
|
|
30
|
-
aliquot: number;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export const CollapseEdit = ({
|
|
34
|
-
labelDescription,
|
|
35
|
-
checkbox,
|
|
36
|
-
input,
|
|
37
|
-
inputAmount,
|
|
38
|
-
buttonRecalculate,
|
|
39
|
-
buttonCancel,
|
|
40
|
-
className,
|
|
41
|
-
priceTopEdit,
|
|
42
|
-
priceBottomEdit,
|
|
43
|
-
onCantidadChange,
|
|
44
|
-
onSaveData,
|
|
45
|
-
showAmountinEdit,
|
|
46
|
-
...props
|
|
47
|
-
}: ICollapseEdit) => {
|
|
48
|
-
const [quantity, setquantity] = useState(0);
|
|
49
|
-
const [taxableamount, settaxableamount] = useState(0);
|
|
50
|
-
const [isChecked, setIsChecked] = useState(true);
|
|
51
|
-
const [tax, setTax] = useState(priceTopEdit?.labelNumberI);
|
|
52
|
-
|
|
53
|
-
const handleCheckboxChange = () => {
|
|
54
|
-
setIsChecked(!isChecked);
|
|
55
|
-
};
|
|
56
|
-
const submitData = () => {
|
|
57
|
-
if (showAmountinEdit) {
|
|
58
|
-
onSaveData &&
|
|
59
|
-
onSaveData({
|
|
60
|
-
calculatedtax:
|
|
61
|
-
quantity && taxableamount && priceBottomEdit?.labelNumberA ? quantity * taxableamount * priceBottomEdit?.labelNumberA : 0,
|
|
62
|
-
|
|
63
|
-
aliquot: priceBottomEdit?.labelNumberA ? priceBottomEdit.labelNumberA : 0,
|
|
64
|
-
});
|
|
65
|
-
} else {
|
|
66
|
-
onSaveData &&
|
|
67
|
-
onSaveData({
|
|
68
|
-
calculatedtax: taxableamount && priceBottomEdit?.labelNumberA ? taxableamount * priceBottomEdit?.labelNumberA : 0,
|
|
69
|
-
|
|
70
|
-
aliquot: priceBottomEdit?.labelNumberA ? priceBottomEdit.labelNumberA : 0,
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
return (
|
|
76
|
-
<div className="elv-component elv-collapsedit" {...props}>
|
|
77
|
-
<div
|
|
78
|
-
className={[
|
|
79
|
-
'collapsedit box is-flex is-align-items-center px-4 py-2 has-background-white',
|
|
80
|
-
`${className ? ' ' + className : ''}`,
|
|
81
|
-
].join('')}
|
|
82
|
-
>
|
|
83
|
-
<div className="collapsedit__breakpoint4 is-flex is-align-items-center justify-content-space-between is-fullw ">
|
|
84
|
-
<div className="collapsedit__breakpoint3 is-align-items-center is-flex is-fullw ">
|
|
85
|
-
<div className="collapsedit__breakpoint2 is-flex is-align-items-center is-gap-4">
|
|
86
|
-
<div className="collapsedit__breakpoint1 is-flex is-align-items-center is-gap-4">
|
|
87
|
-
<div className="collapsedit__desc-cont is-flex is-gap-4 mr-4 is-align-items-center">
|
|
88
|
-
<div className="collapsedit__desc has-text-grey-dark is-size-14px">{labelDescription}</div>
|
|
89
|
-
<div className="collapsedit__check is-size-14px">
|
|
90
|
-
{checkbox && <Checkbox {...checkbox} onCheck={handleCheckboxChange} className="" />}
|
|
91
|
-
</div>
|
|
92
|
-
</div>
|
|
93
|
-
|
|
94
|
-
<div className="collapsedit__input">
|
|
95
|
-
{showAmountinEdit && (
|
|
96
|
-
<>
|
|
97
|
-
{input && (
|
|
98
|
-
<Input
|
|
99
|
-
{...input}
|
|
100
|
-
isDisabled={!isChecked}
|
|
101
|
-
className=""
|
|
102
|
-
onChangeInput={e => {
|
|
103
|
-
setquantity(Number.parseInt(e.target.value));
|
|
104
|
-
}}
|
|
105
|
-
/>
|
|
106
|
-
)}
|
|
107
|
-
</>
|
|
108
|
-
)}
|
|
109
|
-
</div>
|
|
110
|
-
</div>
|
|
111
|
-
|
|
112
|
-
<div className="collapsedit__inputAmount mr-4 ">
|
|
113
|
-
{inputAmount && (
|
|
114
|
-
<Input
|
|
115
|
-
{...inputAmount}
|
|
116
|
-
isDisabled={!isChecked}
|
|
117
|
-
onChangeInput={e => {
|
|
118
|
-
settaxableamount(Number.parseInt(e.target.value));
|
|
119
|
-
}}
|
|
120
|
-
/>
|
|
121
|
-
)}
|
|
122
|
-
</div>
|
|
123
|
-
</div>
|
|
124
|
-
|
|
125
|
-
<div className="collapsedit__taxes is-flex is-gap-4">
|
|
126
|
-
{priceBottomEdit && (
|
|
127
|
-
<div className="collapsedit__bottom is-flex is-flex-direction-column is-align-items-flex-end">
|
|
128
|
-
<div className="is-size-14px has-text-grey-dark">{priceBottomEdit.labelNumberA}</div>
|
|
129
|
-
<div className="is-size-10px has-text-grey-light">{priceBottomEdit.labelAliquot}</div>
|
|
130
|
-
</div>
|
|
131
|
-
)}
|
|
132
|
-
|
|
133
|
-
{priceTopEdit && (
|
|
134
|
-
<div className="collapsedit__top is-flex is-flex-direction-column is-align-items-flex-end">
|
|
135
|
-
<div className="is-size-14px has-text-grey-dark">$ {tax}</div>
|
|
136
|
-
<div className="is-size-10px has-text-grey-light">{priceTopEdit.labelImpost}</div>
|
|
137
|
-
</div>
|
|
138
|
-
)}
|
|
139
|
-
</div>
|
|
140
|
-
</div>
|
|
141
|
-
|
|
142
|
-
<div className="collapsedit__buttonCont is-flex is-gap-3 is-align-items-center">
|
|
143
|
-
<div className="">
|
|
144
|
-
{buttonRecalculate && (
|
|
145
|
-
<Button
|
|
146
|
-
{...buttonRecalculate}
|
|
147
|
-
className="collapsedit__buttonRec is-size-14px"
|
|
148
|
-
onClick={() => {
|
|
149
|
-
if (showAmountinEdit) {
|
|
150
|
-
setTax(
|
|
151
|
-
quantity && taxableamount && priceBottomEdit?.labelNumberA
|
|
152
|
-
? quantity * taxableamount * priceBottomEdit?.labelNumberA
|
|
153
|
-
: 0,
|
|
154
|
-
);
|
|
155
|
-
} else {
|
|
156
|
-
setTax(taxableamount && priceBottomEdit?.labelNumberA ? taxableamount * priceBottomEdit?.labelNumberA : 0);
|
|
157
|
-
}
|
|
158
|
-
}}
|
|
159
|
-
/>
|
|
160
|
-
)}
|
|
161
|
-
</div>
|
|
162
|
-
<div className="collapsedit__button is-flex is-gap-4 is-align-items-center ">
|
|
163
|
-
<div className="button-cancel ml-4">
|
|
164
|
-
{buttonCancel && <Button {...buttonCancel} isFullWidth={true} className="has-text-danger is-full-tablet is-size-14px" />}
|
|
165
|
-
</div>
|
|
166
|
-
<div className="button-save">
|
|
167
|
-
<Button
|
|
168
|
-
fill={'solid'}
|
|
169
|
-
color={'primary'}
|
|
170
|
-
size={'normal'}
|
|
171
|
-
label={'Guardar'}
|
|
172
|
-
className="button-save- is-size-14px"
|
|
173
|
-
isFullWidth={true}
|
|
174
|
-
onClick={() => {
|
|
175
|
-
submitData();
|
|
176
|
-
}}
|
|
177
|
-
/>
|
|
178
|
-
</div>
|
|
179
|
-
</div>
|
|
180
|
-
</div>
|
|
181
|
-
</div>
|
|
182
|
-
</div>
|
|
183
|
-
</div>
|
|
184
|
-
);
|
|
185
|
-
};
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
@import '/src/sass/utilities/variables';
|
|
2
|
-
|
|
3
|
-
.elv-completediary{
|
|
4
|
-
.completediary__head{
|
|
5
|
-
|
|
6
|
-
.datePickerStyles{
|
|
7
|
-
cursor: pointer;
|
|
8
|
-
border: 1px solid $truegray-400;
|
|
9
|
-
padding: 2px 15px;
|
|
10
|
-
border-radius: 4px;
|
|
11
|
-
}
|
|
12
|
-
.rotateIcon{
|
|
13
|
-
rotate: 180deg;
|
|
14
|
-
}
|
|
15
|
-
&__filters{
|
|
16
|
-
color: $truegray-600;
|
|
17
|
-
flex-wrap: wrap;
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
&__filter{
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
padding: 0px 12px;
|
|
23
|
-
box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15), 0px 1px 2px 0px rgba(0, 0, 0, 0.30);
|
|
24
|
-
border-radius: 100px;
|
|
25
|
-
|
|
26
|
-
@media (max-width: 750px){
|
|
27
|
-
flex: 1 1 40%; /* Ocupa la mitad del ancho disponible (2 elementos por fila) */
|
|
28
|
-
text-align: center;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
.filter{
|
|
32
|
-
background-color: $truegray-600;
|
|
33
|
-
color: $white;
|
|
34
|
-
}
|
|
35
|
-
&--breakpoint{
|
|
36
|
-
@media (max-width: 750px){
|
|
37
|
-
flex-direction: column;
|
|
38
|
-
gap: 24px;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.completediary{
|
|
44
|
-
border-radius: 16px;
|
|
45
|
-
gap: 30px;
|
|
46
|
-
|
|
47
|
-
@media (max-width: 880px){
|
|
48
|
-
padding: 16px 0px 16px 0px !important;
|
|
49
|
-
gap: 0px;
|
|
50
|
-
box-shadow: none;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&__item{
|
|
54
|
-
border-radius: 4px;
|
|
55
|
-
border-left: 4px solid $primary-600;
|
|
56
|
-
box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15), 0px 1px 2px 0px rgba(0, 0, 0, 0.30);
|
|
57
|
-
@media (max-width: 750px){
|
|
58
|
-
padding: 12px !important;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&__status{
|
|
63
|
-
height: 22px;
|
|
64
|
-
max-width: 75px;
|
|
65
|
-
min-width: 75px;
|
|
66
|
-
border-radius: 100px;
|
|
67
|
-
padding: 1px 10px;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&__buttons{
|
|
71
|
-
@media (max-width: 650px){
|
|
72
|
-
gap: 10px !important;
|
|
73
|
-
flex-direction: column;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&__dropComponent{
|
|
78
|
-
right: -10px;
|
|
79
|
-
bottom: -105px;
|
|
80
|
-
z-index: 100;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.iconState{
|
|
84
|
-
color: $truegray-500;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.icon_ellipsis{
|
|
88
|
-
cursor: pointer;
|
|
89
|
-
color: $truegray-600;
|
|
90
|
-
@media (max-width: 650px){
|
|
91
|
-
rotate: 90deg;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.container {
|
|
96
|
-
flex-wrap: wrap;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
.info {
|
|
101
|
-
flex: 1 1 calc(33.33% - 0px); /* Tres columnas con espacio entre ellas */
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
&__tooltip{
|
|
105
|
-
right: -10px;
|
|
106
|
-
bottom: -105px;
|
|
107
|
-
z-index: 100;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&__icontooltip{
|
|
111
|
-
cursor: pointer;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
&__item{
|
|
115
|
-
padding: 19px;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
@media (max-width: 880px) {
|
|
120
|
-
&__label{
|
|
121
|
-
display: none;
|
|
122
|
-
}
|
|
123
|
-
&__statu{
|
|
124
|
-
display: none;
|
|
125
|
-
}
|
|
126
|
-
.info {
|
|
127
|
-
flex: 1 1 100%; /* Una columna en resoluciones pequeñas */
|
|
128
|
-
margin-left: 0px;
|
|
129
|
-
margin-bottom: 10px;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.time-label {
|
|
134
|
-
flex: 1;
|
|
135
|
-
@media (max-width: 750px){
|
|
136
|
-
gap: 0px !important;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
.time{
|
|
140
|
-
min-width: 45px;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.current-time {
|
|
144
|
-
left: 0;
|
|
145
|
-
right: 0;
|
|
146
|
-
height: 2px;
|
|
147
|
-
background-color: $black;
|
|
148
|
-
z-index: 2;
|
|
149
|
-
pointer-events: none;
|
|
150
|
-
color: $black;
|
|
151
|
-
font-weight: bold;
|
|
152
|
-
|
|
153
|
-
@media (max-width: 880px){
|
|
154
|
-
display: none !important;
|
|
155
|
-
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.icon-time{
|
|
160
|
-
top: 1;
|
|
161
|
-
left: 0;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
}
|
|
165
|
-
}
|
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
import {ComponentStory, ComponentMeta} from '@storybook/react';
|
|
2
|
-
import {CompleteDiary} from './CompleteDiary';
|
|
3
|
-
import {Tooltip} from '../Tooltip/Tooltip';
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: 'Components/CompleteDiary',
|
|
7
|
-
component: CompleteDiary,
|
|
8
|
-
args: {
|
|
9
|
-
title: 'Agenda',
|
|
10
|
-
labelName: 'Nombre',
|
|
11
|
-
labelCuit: 'CUIT',
|
|
12
|
-
labelStatus: 'Estado',
|
|
13
|
-
iconText: 'Usá esta Base Imponible para tu declaración de Bienes Personales 2023',
|
|
14
|
-
changeDate: 'Cambiar la fecha',
|
|
15
|
-
labelAll: 'Todos',
|
|
16
|
-
labelPresent: 'Presentes',
|
|
17
|
-
labelMissing: 'Ausentes',
|
|
18
|
-
labelCatered: 'Atendidos',
|
|
19
|
-
showDiary: true,
|
|
20
|
-
// turnosEnHorarioActual: [
|
|
21
|
-
// {
|
|
22
|
-
// hour: 9,
|
|
23
|
-
// minute: '30',
|
|
24
|
-
// turno: {
|
|
25
|
-
// name: 'Gallardo, Teresa',
|
|
26
|
-
// cuit: '20-33753951-8',
|
|
27
|
-
// status: 'Atendido',
|
|
28
|
-
// colorBackgroundState: '#059669',
|
|
29
|
-
// iconColor: '#34D399',
|
|
30
|
-
// colorBackground: ' #EEE',
|
|
31
|
-
// },
|
|
32
|
-
// },
|
|
33
|
-
|
|
34
|
-
// {
|
|
35
|
-
// //hour: 10,
|
|
36
|
-
// //minute: '30',
|
|
37
|
-
// turno: {
|
|
38
|
-
// name: 'Gallardo, Teresa',
|
|
39
|
-
// cuit: '20-33753951-8',
|
|
40
|
-
// status: 'Atendido',
|
|
41
|
-
// colorBackgroundState: '#059669',
|
|
42
|
-
// iconColor: '#34D399',
|
|
43
|
-
// colorBackground: ' #EEE',
|
|
44
|
-
// },
|
|
45
|
-
// },
|
|
46
|
-
// ],
|
|
47
|
-
shifts: [
|
|
48
|
-
{
|
|
49
|
-
name: 'Gallardo, Teresa',
|
|
50
|
-
cuit: '20-33753951-8',
|
|
51
|
-
status: 'Atendido',
|
|
52
|
-
colorBackgroundState: '#059669',
|
|
53
|
-
iconColor: '#34D399',
|
|
54
|
-
colorBackground: ' #EEE',
|
|
55
|
-
hour: 8,
|
|
56
|
-
minute: '00',
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
name: 'López, Damián',
|
|
60
|
-
cuit: '20-33753951-8',
|
|
61
|
-
status: 'Atendido',
|
|
62
|
-
colorBackgroundState: '#059669',
|
|
63
|
-
iconColor: '#34D399',
|
|
64
|
-
colorBackground: ' #EEE',
|
|
65
|
-
hour: 8,
|
|
66
|
-
minute: '30',
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
name: 'Rosas, Juan Manuel',
|
|
70
|
-
cuit: '20-33753951-8',
|
|
71
|
-
status: 'Ausente',
|
|
72
|
-
colorBackgroundState: '#EA580C',
|
|
73
|
-
iconColor: '#FFF7ED',
|
|
74
|
-
colorBackground: ' #EEE',
|
|
75
|
-
hour: 9,
|
|
76
|
-
minute: '00',
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
name: 'Castro, Julieta',
|
|
80
|
-
cuit: '20-33753951-8',
|
|
81
|
-
status: 'Presente',
|
|
82
|
-
colorBackgroundState: '#124596',
|
|
83
|
-
iconColor: '#FFF7ED',
|
|
84
|
-
showButton: true,
|
|
85
|
-
colorBackground: '#FFF',
|
|
86
|
-
menuDropComponent: (
|
|
87
|
-
<Tooltip
|
|
88
|
-
active
|
|
89
|
-
contentType="text"
|
|
90
|
-
text="Usá esta Base Imponible para tu declaración de Bienes Personales 2023"
|
|
91
|
-
trianglePos="none"
|
|
92
|
-
/>
|
|
93
|
-
),
|
|
94
|
-
hour: 10,
|
|
95
|
-
minute: '00',
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
name: 'Gallardo, Teresa',
|
|
99
|
-
cuit: '20-33753951-8',
|
|
100
|
-
status: 'Presente',
|
|
101
|
-
colorBackgroundState: '#059669',
|
|
102
|
-
iconColor: '#34D399',
|
|
103
|
-
colorBackground: ' #EEE',
|
|
104
|
-
hour: 10,
|
|
105
|
-
minute: '30',
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
name: 'Gallardo, Teresa',
|
|
109
|
-
cuit: '20-33753951-8',
|
|
110
|
-
status: 'Presente',
|
|
111
|
-
colorBackgroundState: '#059669',
|
|
112
|
-
iconColor: '#34D399',
|
|
113
|
-
colorBackground: ' #EEE',
|
|
114
|
-
hour: 10,
|
|
115
|
-
minute: '30',
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
name: 'Gallardo, Teresa',
|
|
119
|
-
cuit: '20-33753951-8',
|
|
120
|
-
status: 'Presente',
|
|
121
|
-
colorBackgroundState: '#059669',
|
|
122
|
-
iconColor: '#34D399',
|
|
123
|
-
colorBackground: ' #EEE',
|
|
124
|
-
hour: 11,
|
|
125
|
-
minute: '00',
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
name: 'Gallardo, Teresa',
|
|
129
|
-
cuit: '20-33753951-8',
|
|
130
|
-
status: 'Presente',
|
|
131
|
-
colorBackgroundState: '#059669',
|
|
132
|
-
iconColor: '#34D399',
|
|
133
|
-
colorBackground: ' #EEE',
|
|
134
|
-
hour: 11,
|
|
135
|
-
minute: '30',
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
name: 'Gallardo, Teresa',
|
|
139
|
-
cuit: '20-33753951-8',
|
|
140
|
-
status: 'Presente',
|
|
141
|
-
colorBackgroundState: '#059669',
|
|
142
|
-
iconColor: '#34D399',
|
|
143
|
-
colorBackground: ' #EEE',
|
|
144
|
-
hour: 12,
|
|
145
|
-
minute: '00',
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
name: 'Gallardo, Teresa',
|
|
149
|
-
cuit: '20-33753951-8',
|
|
150
|
-
status: 'Presente',
|
|
151
|
-
colorBackgroundState: '#059669',
|
|
152
|
-
iconColor: '#34D399',
|
|
153
|
-
colorBackground: ' #EEE',
|
|
154
|
-
hour: 12,
|
|
155
|
-
minute: '30',
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
name: 'Gallardo, Teresa',
|
|
159
|
-
cuit: '20-33753951-8',
|
|
160
|
-
status: 'Presente',
|
|
161
|
-
colorBackgroundState: '#059669',
|
|
162
|
-
iconColor: '#34D399',
|
|
163
|
-
colorBackground: ' #EEE',
|
|
164
|
-
hour: 13,
|
|
165
|
-
minute: '00',
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
name: 'Gallardo, Teresa',
|
|
169
|
-
cuit: '20-33753951-8',
|
|
170
|
-
status: 'Presente',
|
|
171
|
-
colorBackgroundState: '#059669',
|
|
172
|
-
iconColor: '#34D399',
|
|
173
|
-
colorBackground: ' #EEE',
|
|
174
|
-
hour: 13,
|
|
175
|
-
minute: '30',
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
name: 'Gallardo, Teresa',
|
|
179
|
-
cuit: '20-33753951-8',
|
|
180
|
-
status: 'Presente',
|
|
181
|
-
colorBackgroundState: '#059669',
|
|
182
|
-
iconColor: '#34D399',
|
|
183
|
-
colorBackground: ' #EEE',
|
|
184
|
-
hour: 14,
|
|
185
|
-
minute: '00',
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
name: 'Gallardo, Teresa',
|
|
189
|
-
cuit: '20-33753951-8',
|
|
190
|
-
status: 'Presente',
|
|
191
|
-
colorBackgroundState: '#059669',
|
|
192
|
-
iconColor: '#34D399',
|
|
193
|
-
colorBackground: ' #EEE',
|
|
194
|
-
hour: 14,
|
|
195
|
-
minute: '30',
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
name: 'Gallardo, Teresa',
|
|
199
|
-
cuit: '20-33753951-8',
|
|
200
|
-
status: 'Presente',
|
|
201
|
-
colorBackgroundState: '#059669',
|
|
202
|
-
iconColor: '#34D399',
|
|
203
|
-
colorBackground: ' #EEE',
|
|
204
|
-
hour: 15,
|
|
205
|
-
minute: '00',
|
|
206
|
-
},
|
|
207
|
-
],
|
|
208
|
-
onCancel: () => console.log('clicked button cancel'),
|
|
209
|
-
onAttend: () => console.log('clicked button Attend'),
|
|
210
|
-
onEllipse: () => console.log('clicked button Ellipse'),
|
|
211
|
-
onDate: data => console.log(data),
|
|
212
|
-
scheduleRest: {start: new Date('2023-12-12T13:00:00'), end: new Date('2023-12-12T14:30:00')},
|
|
213
|
-
},
|
|
214
|
-
} as ComponentMeta<typeof CompleteDiary>;
|
|
215
|
-
|
|
216
|
-
const Template: ComponentStory<typeof CompleteDiary> = args => <CompleteDiary {...args} />;
|
|
217
|
-
|
|
218
|
-
export const Standard = Template.bind({});
|
|
219
|
-
Standard.args = {};
|