jornada-ui 0.4.11 → 0.4.12
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 +31 -31
- package/lib/commonjs/common/icons-svg/bluetooth/index.js +45 -27
- package/lib/commonjs/common/icons-svg/bluetooth/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/constants/index.js +7 -5
- package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/index.js +19 -4
- package/lib/commonjs/common/icons-svg/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/plus-container/index.js +42 -0
- package/lib/commonjs/common/icons-svg/plus-container/index.js.map +1 -0
- package/lib/commonjs/common/icons-svg/trash/index.js +41 -0
- package/lib/commonjs/common/icons-svg/trash/index.js.map +1 -0
- package/lib/commonjs/components/activity-step/components/activite-row/index.js +137 -0
- package/lib/commonjs/components/activity-step/components/activite-row/index.js.map +1 -0
- package/lib/commonjs/components/activity-step/index.js +77 -0
- package/lib/commonjs/components/activity-step/index.js.map +1 -0
- package/lib/commonjs/components/activity-step/interface.js +6 -0
- package/lib/commonjs/components/activity-step/interface.js.map +1 -0
- package/lib/commonjs/components/activity-step/styles.js +86 -0
- package/lib/commonjs/components/activity-step/styles.js.map +1 -0
- package/lib/commonjs/components/card-scheduled-journey/index.js +8 -6
- package/lib/commonjs/components/card-scheduled-journey/index.js.map +1 -1
- package/lib/commonjs/components/inputs/input-date-time/index.js +136 -0
- package/lib/commonjs/components/inputs/input-date-time/index.js.map +1 -0
- package/lib/commonjs/components/inputs/input-date-time/interface.d.js +2 -0
- package/lib/commonjs/components/inputs/input-date-time/interface.d.js.map +1 -0
- package/lib/commonjs/components/inputs/input-date-time/styles.js +66 -0
- package/lib/commonjs/components/inputs/input-date-time/styles.js.map +1 -0
- package/lib/commonjs/components/list-devices/helpers/get-icon-by-status.js +25 -0
- package/lib/commonjs/components/list-devices/helpers/get-icon-by-status.js.map +1 -0
- package/lib/commonjs/components/list-devices/index.js +97 -0
- package/lib/commonjs/components/list-devices/index.js.map +1 -0
- package/lib/commonjs/components/list-devices/interface.d.js +2 -0
- package/lib/commonjs/components/list-devices/interface.d.js.map +1 -0
- package/lib/commonjs/components/list-devices/styles.js +60 -0
- package/lib/commonjs/components/list-devices/styles.js.map +1 -0
- package/lib/commonjs/components/list-supplies/index.js +171 -0
- package/lib/commonjs/components/list-supplies/index.js.map +1 -0
- package/lib/commonjs/components/list-supplies/interface.d.js +2 -0
- package/lib/commonjs/components/list-supplies/interface.d.js.map +1 -0
- package/lib/commonjs/components/maintenance-description-input/index.js +3 -0
- package/lib/commonjs/components/maintenance-description-input/index.js.map +1 -1
- package/lib/commonjs/components/maintenance-description-input/styles.js +1 -1
- package/lib/commonjs/components/maintenance-description-input/styles.js.map +1 -1
- package/lib/commonjs/components/modals/modal-activity-reason/index.js +170 -0
- package/lib/commonjs/components/modals/modal-activity-reason/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js +2 -0
- package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js.map +1 -0
- package/lib/commonjs/components/modals/modal-create-activitie/helpers/index.js +27 -0
- package/lib/commonjs/components/modals/modal-create-activitie/helpers/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-create-activitie/index.js +203 -0
- package/lib/commonjs/components/modals/modal-create-activitie/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-create-activitie/interface.js +2 -0
- package/lib/commonjs/components/modals/modal-create-activitie/interface.js.map +1 -0
- package/lib/commonjs/components/modals/modal-create-activitie/styles.js +42 -0
- package/lib/commonjs/components/modals/modal-create-activitie/styles.js.map +1 -0
- package/lib/commonjs/components/modals/modal-exclude-activitie/index.js +2 -0
- package/lib/commonjs/components/modals/modal-exclude-activitie/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-journey-rectification/index.js +242 -0
- package/lib/commonjs/components/modals/modal-journey-rectification/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-journey-rectification/interface.d.js +2 -0
- package/lib/commonjs/components/modals/modal-journey-rectification/interface.d.js.map +1 -0
- package/lib/commonjs/components/modals/modal-to-confimations/index.js +182 -0
- package/lib/commonjs/components/modals/modal-to-confimations/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-to-confimations/interface.js +2 -0
- package/lib/commonjs/components/modals/modal-to-confimations/interface.js.map +1 -0
- package/lib/commonjs/components/selects/select-date-and-hours/index.js +80 -0
- package/lib/commonjs/components/selects/select-date-and-hours/index.js.map +1 -0
- package/lib/commonjs/components/selects/select-date-and-hours/interface.js +6 -0
- package/lib/commonjs/components/selects/select-date-and-hours/interface.js.map +1 -0
- package/lib/commonjs/components/selects/select-date-and-hours/styles.js +34 -0
- package/lib/commonjs/components/selects/select-date-and-hours/styles.js.map +1 -0
- package/lib/commonjs/components/selects/select-option/index.js +4 -2
- package/lib/commonjs/components/selects/select-option/index.js.map +1 -1
- package/lib/commonjs/components/selects/select-option/styles.js +6 -7
- package/lib/commonjs/components/selects/select-option/styles.js.map +1 -1
- package/lib/commonjs/components/supply-error-card/index.js +6 -6
- package/lib/commonjs/components/toast-message/index.js +8 -7
- package/lib/commonjs/components/toast-message/index.js.map +1 -1
- package/lib/commonjs/components/travel-history/index.js +7 -7
- package/lib/commonjs/components/travel-history/index.js.map +1 -1
- package/lib/commonjs/components/trip-details-card/index.js +94 -13
- package/lib/commonjs/components/trip-details-card/index.js.map +1 -1
- package/lib/commonjs/components/typography/index.js +5 -5
- package/lib/commonjs/components/typography/index.js.map +1 -1
- package/lib/commonjs/index.js +53 -4
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/list-devices/list-devices.stories.js +146 -0
- package/lib/commonjs/stories/list-devices/list-devices.stories.js.map +1 -0
- package/lib/commonjs/stories/list-supplies/list-supplies.stories.js +69 -0
- package/lib/commonjs/stories/list-supplies/list-supplies.stories.js.map +1 -0
- package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js +63 -0
- package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -0
- package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js +63 -0
- package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -0
- package/lib/commonjs/stories/supply-error-card/supply-error-card.stories.js +2 -2
- package/lib/commonjs/stories/trip-details-card/trip-details-card.stories.js +39 -6
- package/lib/commonjs/stories/trip-details-card/trip-details-card.stories.js.map +1 -1
- package/lib/commonjs/styles/theme/theme.js +1 -0
- package/lib/commonjs/styles/theme/theme.js.map +1 -1
- package/lib/module/common/icons-svg/bluetooth/index.js +45 -27
- package/lib/module/common/icons-svg/bluetooth/index.js.map +1 -1
- package/lib/module/common/icons-svg/constants/index.js +7 -5
- package/lib/module/common/icons-svg/constants/index.js.map +1 -1
- package/lib/module/common/icons-svg/index.js +19 -4
- package/lib/module/common/icons-svg/index.js.map +1 -1
- package/lib/module/common/icons-svg/plus-container/index.js +36 -0
- package/lib/module/common/icons-svg/plus-container/index.js.map +1 -0
- package/lib/module/common/icons-svg/trash/index.js +34 -0
- package/lib/module/common/icons-svg/trash/index.js.map +1 -0
- package/lib/module/components/activity-step/components/activite-row/index.js +134 -0
- package/lib/module/components/activity-step/components/activite-row/index.js.map +1 -0
- package/lib/module/components/activity-step/index.js +73 -0
- package/lib/module/components/activity-step/index.js.map +1 -0
- package/lib/module/components/activity-step/interface.js +4 -0
- package/lib/module/components/activity-step/interface.js.map +1 -0
- package/lib/module/components/activity-step/styles.js +83 -0
- package/lib/module/components/activity-step/styles.js.map +1 -0
- package/lib/module/components/card-scheduled-journey/index.js +8 -6
- package/lib/module/components/card-scheduled-journey/index.js.map +1 -1
- package/lib/module/components/inputs/input-date-time/index.js +130 -0
- package/lib/module/components/inputs/input-date-time/index.js.map +1 -0
- package/lib/module/components/inputs/input-date-time/interface.d.js +2 -0
- package/lib/module/components/inputs/input-date-time/interface.d.js.map +1 -0
- package/lib/module/components/inputs/input-date-time/styles.js +62 -0
- package/lib/module/components/inputs/input-date-time/styles.js.map +1 -0
- package/lib/module/components/list-devices/helpers/get-icon-by-status.js +21 -0
- package/lib/module/components/list-devices/helpers/get-icon-by-status.js.map +1 -0
- package/lib/module/components/list-devices/index.js +93 -0
- package/lib/module/components/list-devices/index.js.map +1 -0
- package/lib/module/components/list-devices/interface.d.js +2 -0
- package/lib/module/components/list-devices/interface.d.js.map +1 -0
- package/lib/module/components/list-devices/styles.js +56 -0
- package/lib/module/components/list-devices/styles.js.map +1 -0
- package/lib/module/components/list-supplies/index.js +165 -0
- package/lib/module/components/list-supplies/index.js.map +1 -0
- package/lib/module/components/list-supplies/interface.d.js +2 -0
- package/lib/module/components/list-supplies/interface.d.js.map +1 -0
- package/lib/module/components/maintenance-description-input/index.js +3 -0
- package/lib/module/components/maintenance-description-input/index.js.map +1 -1
- package/lib/module/components/maintenance-description-input/styles.js +1 -1
- package/lib/module/components/maintenance-description-input/styles.js.map +1 -1
- package/lib/module/components/modals/modal-activity-reason/index.js +165 -0
- package/lib/module/components/modals/modal-activity-reason/index.js.map +1 -0
- package/lib/module/components/modals/modal-activity-reason/interface.d.js +2 -0
- package/lib/module/components/modals/modal-activity-reason/interface.d.js.map +1 -0
- package/lib/module/components/modals/modal-create-activitie/helpers/index.js +24 -0
- package/lib/module/components/modals/modal-create-activitie/helpers/index.js.map +1 -0
- package/lib/module/components/modals/modal-create-activitie/index.js +196 -0
- package/lib/module/components/modals/modal-create-activitie/index.js.map +1 -0
- package/lib/module/components/modals/modal-create-activitie/interface.js +2 -0
- package/lib/module/components/modals/modal-create-activitie/interface.js.map +1 -0
- package/lib/module/components/modals/modal-create-activitie/styles.js +39 -0
- package/lib/module/components/modals/modal-create-activitie/styles.js.map +1 -0
- package/lib/module/components/modals/modal-exclude-activitie/index.js +2 -0
- package/lib/module/components/modals/modal-exclude-activitie/index.js.map +1 -0
- package/lib/module/components/modals/modal-journey-rectification/index.js +236 -0
- package/lib/module/components/modals/modal-journey-rectification/index.js.map +1 -0
- package/lib/module/components/modals/modal-journey-rectification/interface.d.js +2 -0
- package/lib/module/components/modals/modal-journey-rectification/interface.d.js.map +1 -0
- package/lib/module/components/modals/modal-to-confimations/index.js +179 -0
- package/lib/module/components/modals/modal-to-confimations/index.js.map +1 -0
- package/lib/module/components/modals/modal-to-confimations/interface.js +2 -0
- package/lib/module/components/modals/modal-to-confimations/interface.js.map +1 -0
- package/lib/module/components/selects/select-date-and-hours/index.js +74 -0
- package/lib/module/components/selects/select-date-and-hours/index.js.map +1 -0
- package/lib/module/components/selects/select-date-and-hours/interface.js +4 -0
- package/lib/module/components/selects/select-date-and-hours/interface.js.map +1 -0
- package/lib/module/components/selects/select-date-and-hours/styles.js +31 -0
- package/lib/module/components/selects/select-date-and-hours/styles.js.map +1 -0
- package/lib/module/components/selects/select-option/index.js +4 -2
- package/lib/module/components/selects/select-option/index.js.map +1 -1
- package/lib/module/components/selects/select-option/styles.js +6 -7
- package/lib/module/components/selects/select-option/styles.js.map +1 -1
- package/lib/module/components/supply-error-card/index.js +6 -6
- package/lib/module/components/toast-message/index.js +8 -7
- package/lib/module/components/toast-message/index.js.map +1 -1
- package/lib/module/components/travel-history/index.js +7 -7
- package/lib/module/components/travel-history/index.js.map +1 -1
- package/lib/module/components/trip-details-card/index.js +94 -13
- package/lib/module/components/trip-details-card/index.js.map +1 -1
- package/lib/module/components/typography/index.js +5 -5
- package/lib/module/components/typography/index.js.map +1 -1
- package/lib/module/index.js +7 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/list-devices/list-devices.stories.js +140 -0
- package/lib/module/stories/list-devices/list-devices.stories.js.map +1 -0
- package/lib/module/stories/list-supplies/list-supplies.stories.js +63 -0
- package/lib/module/stories/list-supplies/list-supplies.stories.js.map +1 -0
- package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js +57 -0
- package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -0
- package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js +57 -0
- package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -0
- package/lib/module/stories/supply-error-card/supply-error-card.stories.js +2 -2
- package/lib/module/stories/trip-details-card/trip-details-card.stories.js +39 -6
- package/lib/module/stories/trip-details-card/trip-details-card.stories.js.map +1 -1
- package/lib/module/styles/theme/theme.js +1 -0
- package/lib/module/styles/theme/theme.js.map +1 -1
- package/lib/typescript/commonjs/src/common/icons-svg/bluetooth/index.d.ts +5 -1
- package/lib/typescript/commonjs/src/common/icons-svg/bluetooth/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/common/icons-svg/constants/index.d.ts +2 -0
- package/lib/typescript/commonjs/src/common/icons-svg/constants/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/common/icons-svg/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/common/icons-svg/plus-container/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/common/icons-svg/plus-container/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/common/icons-svg/trash/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/common/icons-svg/trash/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/activity-step/components/activite-row/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/activity-step/components/activite-row/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/activity-step/index.d.ts +17 -0
- package/lib/typescript/commonjs/src/components/activity-step/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/activity-step/interface.d.ts +40 -0
- package/lib/typescript/commonjs/src/components/activity-step/interface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/activity-step/styles.d.ts +75 -0
- package/lib/typescript/commonjs/src/components/activity-step/styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/card-scheduled-journey/index.d.ts +2 -1
- package/lib/typescript/commonjs/src/components/card-scheduled-journey/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/inputs/input-date-time/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/inputs/input-date-time/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/inputs/input-date-time/styles.d.ts +59 -0
- package/lib/typescript/commonjs/src/components/inputs/input-date-time/styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/list-devices/helpers/get-icon-by-status.d.ts +15 -0
- package/lib/typescript/commonjs/src/components/list-devices/helpers/get-icon-by-status.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/list-devices/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/list-devices/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/list-devices/styles.d.ts +57 -0
- package/lib/typescript/commonjs/src/components/list-devices/styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/list-supplies/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/list-supplies/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/maintenance-description-input/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/modals/modal-activity-reason/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/modals/modal-activity-reason/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/helpers/index.d.ts +21 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/helpers/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/interface.d.ts +19 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/interface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/styles.d.ts +33 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-exclude-activitie/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-exclude-activitie/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-journey-rectification/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/modals/modal-journey-rectification/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/interface.d.ts +28 -0
- package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/interface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/index.d.ts +13 -0
- package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/interface.d.ts +22 -0
- package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/interface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/styles.d.ts +26 -0
- package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/selects/select-option/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/components/selects/select-option/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/selects/select-option/styles.d.ts +0 -1
- package/lib/typescript/commonjs/src/components/selects/select-option/styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/supply-error-card/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/toast-message/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/trip-details-card/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +7 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/list-devices/list-devices.stories.d.ts +22 -0
- package/lib/typescript/commonjs/src/stories/list-devices/list-devices.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/list-supplies/list-supplies.stories.d.ts +10 -0
- package/lib/typescript/commonjs/src/stories/list-supplies/list-supplies.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts +10 -0
- package/lib/typescript/commonjs/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +10 -0
- package/lib/typescript/commonjs/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/trip-details-card/trip-details-card.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts +1 -0
- package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/styles/theme/theme.d.ts +1 -0
- package/lib/typescript/commonjs/src/styles/theme/theme.d.ts.map +1 -1
- package/lib/typescript/module/src/common/icons-svg/bluetooth/index.d.ts +5 -1
- package/lib/typescript/module/src/common/icons-svg/bluetooth/index.d.ts.map +1 -1
- package/lib/typescript/module/src/common/icons-svg/constants/index.d.ts +2 -0
- package/lib/typescript/module/src/common/icons-svg/constants/index.d.ts.map +1 -1
- package/lib/typescript/module/src/common/icons-svg/index.d.ts.map +1 -1
- package/lib/typescript/module/src/common/icons-svg/plus-container/index.d.ts +11 -0
- package/lib/typescript/module/src/common/icons-svg/plus-container/index.d.ts.map +1 -0
- package/lib/typescript/module/src/common/icons-svg/trash/index.d.ts +11 -0
- package/lib/typescript/module/src/common/icons-svg/trash/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/activity-step/components/activite-row/index.d.ts +11 -0
- package/lib/typescript/module/src/components/activity-step/components/activite-row/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/activity-step/index.d.ts +17 -0
- package/lib/typescript/module/src/components/activity-step/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/activity-step/interface.d.ts +40 -0
- package/lib/typescript/module/src/components/activity-step/interface.d.ts.map +1 -0
- package/lib/typescript/module/src/components/activity-step/styles.d.ts +75 -0
- package/lib/typescript/module/src/components/activity-step/styles.d.ts.map +1 -0
- package/lib/typescript/module/src/components/card-scheduled-journey/index.d.ts +2 -1
- package/lib/typescript/module/src/components/card-scheduled-journey/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/inputs/input-date-time/index.d.ts +8 -0
- package/lib/typescript/module/src/components/inputs/input-date-time/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/inputs/input-date-time/styles.d.ts +59 -0
- package/lib/typescript/module/src/components/inputs/input-date-time/styles.d.ts.map +1 -0
- package/lib/typescript/module/src/components/list-devices/helpers/get-icon-by-status.d.ts +15 -0
- package/lib/typescript/module/src/components/list-devices/helpers/get-icon-by-status.d.ts.map +1 -0
- package/lib/typescript/module/src/components/list-devices/index.d.ts +11 -0
- package/lib/typescript/module/src/components/list-devices/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/list-devices/styles.d.ts +57 -0
- package/lib/typescript/module/src/components/list-devices/styles.d.ts.map +1 -0
- package/lib/typescript/module/src/components/list-supplies/index.d.ts +8 -0
- package/lib/typescript/module/src/components/list-supplies/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/maintenance-description-input/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/modals/modal-activity-reason/index.d.ts +8 -0
- package/lib/typescript/module/src/components/modals/modal-activity-reason/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/helpers/index.d.ts +21 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/helpers/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/index.d.ts +8 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/interface.d.ts +19 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/interface.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/styles.d.ts +33 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/styles.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-exclude-activitie/index.d.ts +1 -0
- package/lib/typescript/module/src/components/modals/modal-exclude-activitie/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-journey-rectification/index.d.ts +8 -0
- package/lib/typescript/module/src/components/modals/modal-journey-rectification/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-to-confimations/index.d.ts +8 -0
- package/lib/typescript/module/src/components/modals/modal-to-confimations/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-to-confimations/interface.d.ts +28 -0
- package/lib/typescript/module/src/components/modals/modal-to-confimations/interface.d.ts.map +1 -0
- package/lib/typescript/module/src/components/selects/select-date-and-hours/index.d.ts +13 -0
- package/lib/typescript/module/src/components/selects/select-date-and-hours/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/selects/select-date-and-hours/interface.d.ts +22 -0
- package/lib/typescript/module/src/components/selects/select-date-and-hours/interface.d.ts.map +1 -0
- package/lib/typescript/module/src/components/selects/select-date-and-hours/styles.d.ts +26 -0
- package/lib/typescript/module/src/components/selects/select-date-and-hours/styles.d.ts.map +1 -0
- package/lib/typescript/module/src/components/selects/select-option/index.d.ts +1 -0
- package/lib/typescript/module/src/components/selects/select-option/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/selects/select-option/styles.d.ts +0 -1
- package/lib/typescript/module/src/components/selects/select-option/styles.d.ts.map +1 -1
- package/lib/typescript/module/src/components/supply-error-card/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/toast-message/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/trip-details-card/index.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +7 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/list-devices/list-devices.stories.d.ts +22 -0
- package/lib/typescript/module/src/stories/list-devices/list-devices.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/list-supplies/list-supplies.stories.d.ts +10 -0
- package/lib/typescript/module/src/stories/list-supplies/list-supplies.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts +10 -0
- package/lib/typescript/module/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +10 -0
- package/lib/typescript/module/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/trip-details-card/trip-details-card.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/styles/global/theme-provider.d.ts +1 -0
- package/lib/typescript/module/src/styles/global/theme-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/styles/theme/theme.d.ts +1 -0
- package/lib/typescript/module/src/styles/theme/theme.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/common/icons-svg/bluetooth/index.tsx +51 -24
- package/src/common/icons-svg/constants/index.ts +67 -65
- package/src/common/icons-svg/index.tsx +289 -280
- package/src/common/icons-svg/plus-container/index.tsx +32 -0
- package/src/common/icons-svg/trash/index.tsx +31 -0
- package/src/components/activity-step/components/activite-row/index.tsx +141 -0
- package/src/components/activity-step/index.tsx +73 -0
- package/src/components/activity-step/interface.ts +54 -0
- package/src/components/activity-step/styles.ts +72 -0
- package/src/components/card-scheduled-journey/index.tsx +140 -138
- package/src/components/card-scheduled-journey/interface.d.ts +145 -140
- package/src/components/inputs/input-date-time/index.tsx +133 -0
- package/src/components/inputs/input-date-time/interface.d.ts +25 -0
- package/src/components/inputs/input-date-time/styles.ts +63 -0
- package/src/components/list-devices/helpers/get-icon-by-status.tsx +20 -0
- package/src/components/list-devices/index.tsx +102 -0
- package/src/components/list-devices/interface.d.ts +36 -0
- package/src/components/list-devices/styles.ts +68 -0
- package/src/components/list-supplies/index.tsx +153 -0
- package/src/components/list-supplies/interface.d.ts +9 -0
- package/src/components/maintenance-description-input/index.tsx +1 -0
- package/src/components/maintenance-description-input/styles.ts +1 -1
- package/src/components/modals/modal-activity-reason/index.tsx +168 -0
- package/src/components/modals/modal-activity-reason/interface.d.ts +9 -0
- package/src/components/modals/modal-create-activitie/helpers/index.ts +14 -0
- package/src/components/modals/modal-create-activitie/index.tsx +210 -0
- package/src/components/modals/modal-create-activitie/interface.ts +22 -0
- package/src/components/modals/modal-create-activitie/styles.ts +24 -0
- package/src/components/modals/modal-exclude-activitie/index.ts +0 -0
- package/src/components/modals/modal-journey-rectification/index.tsx +236 -0
- package/src/components/modals/modal-journey-rectification/interface.d.ts +10 -0
- package/src/components/modals/modal-to-confimations/index.tsx +182 -0
- package/src/components/modals/modal-to-confimations/interface.ts +36 -0
- package/src/components/selects/select-date-and-hours/index.tsx +70 -0
- package/src/components/selects/select-date-and-hours/interface.ts +31 -0
- package/src/components/selects/select-date-and-hours/styles.ts +24 -0
- package/src/components/selects/select-option/index.tsx +2 -1
- package/src/components/selects/select-option/interface.d.ts +1 -1
- package/src/components/selects/select-option/styles.ts +74 -75
- package/src/components/supply-error-card/index.tsx +109 -109
- package/src/components/supply-error-card/interface.d.ts +133 -133
- package/src/components/toast-message/index.tsx +75 -74
- package/src/components/travel-history/index.tsx +7 -7
- package/src/components/trip-details-card/index.tsx +89 -12
- package/src/components/trip-details-card/interface.d.ts +4 -1
- package/src/components/typography/index.tsx +78 -78
- package/src/index.tsx +7 -0
- package/src/stories/list-devices/list-devices.stories.tsx +114 -0
- package/src/stories/list-supplies/list-supplies.stories.tsx +66 -0
- package/src/stories/modal-activity-reason/modal-activity-reason.stories.tsx +60 -0
- package/src/stories/modal-journey-rectification/modal-journey-rectification.stories.tsx +60 -0
- package/src/stories/supply-error-card/supply-error-card.stories.tsx +72 -72
- package/src/stories/trip-details-card/trip-details-card.stories.tsx +38 -5
- package/src/styles/theme/theme.ts +1 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* IMPORTS
|
|
5
|
+
*/
|
|
6
|
+
import React from "react";
|
|
7
|
+
import Svg, { Path } from "react-native-svg";
|
|
8
|
+
|
|
9
|
+
// typings
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const SvgIconPlusTrash = ({
|
|
12
|
+
color,
|
|
13
|
+
size
|
|
14
|
+
}) => /*#__PURE__*/_jsx(Svg
|
|
15
|
+
//@ts-ignore
|
|
16
|
+
, {
|
|
17
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18
|
+
width: size ? size - 2 : 16,
|
|
19
|
+
height: size,
|
|
20
|
+
fill: "none",
|
|
21
|
+
viewBox: "0 0 16 18",
|
|
22
|
+
children: /*#__PURE__*/_jsx(Path, {
|
|
23
|
+
stroke: color ?? "9F0000",
|
|
24
|
+
strokeLinecap: "round",
|
|
25
|
+
strokeLinejoin: "round",
|
|
26
|
+
d: "m2.59 3.5.733 11.012c.065.964.097 1.447.305 1.812.184.322.46.58.794.742.378.184.862.184 1.828.184h3.678c.967 0 1.45 0 1.829-.183.333-.162.61-.42.793-.743.209-.366.24-.848.305-1.812L13.59 3.5m1.834 0H.756m3.667 0 .248-.744c.24-.722.36-1.082.583-1.349.197-.235.45-.417.736-.53C6.313.75 6.693.75 7.454.75h1.271c.76 0 1.14 0 1.464.127.286.113.538.295.735.53.223.267.344.627.584 1.349l.248.744m-5.5 3.667v6.416m3.667-6.416v6.416"
|
|
27
|
+
})
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* EXPORTS
|
|
32
|
+
*/
|
|
33
|
+
export { SvgIconPlusTrash };
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Svg","Path","jsx","_jsx","SvgIconPlusTrash","color","size","xmlns","width","height","fill","viewBox","children","stroke","strokeLinecap","strokeLinejoin","d"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["common/icons-svg/trash/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,GAAG,IAAIC,IAAI,QAAQ,kBAAkB;;AAE5C;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAGA,MAAMC,gBAAqC,GAAGA,CAAC;EAAEC,KAAK;EAAEC;AAAK,CAAC,kBAC5DH,IAAA,CAACH;AACC;AAAA;EACAO,KAAK,EAAC,4BAA4B;EAClCC,KAAK,EAAEF,IAAI,GAAGA,IAAI,GAAG,CAAC,GAAG,EAAG;EAC5BG,MAAM,EAAEH,IAAK;EACbI,IAAI,EAAC,MAAM;EACXC,OAAO,EAAC,WAAW;EAAAC,QAAA,eAEnBT,IAAA,CAACF,IAAI;IACHY,MAAM,EAAER,KAAK,IAAI,QAAS;IAC1BS,aAAa,EAAC,OAAO;IACrBC,cAAc,EAAC,OAAO;IACtBC,CAAC,EAAC;EAAya,CACta;AAAC,CACL,CACN;;AAED;AACA;AACA;AACA,SAASZ,gBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* IMPORTS
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import React, { forwardRef, useCallback } from "react";
|
|
8
|
+
import { TouchableOpacity, View } from "react-native";
|
|
9
|
+
|
|
10
|
+
// components
|
|
11
|
+
import Typography from "../../../typography/index.js";
|
|
12
|
+
|
|
13
|
+
// commons / svg
|
|
14
|
+
import { Icons } from "../../../../common/icons-svg/index.js";
|
|
15
|
+
|
|
16
|
+
// typyngs
|
|
17
|
+
|
|
18
|
+
import { asBaseComponent } from "../../../../@types/as-base-component.js";
|
|
19
|
+
|
|
20
|
+
// styles
|
|
21
|
+
import { theme } from "../../../../styles/theme/theme.js";
|
|
22
|
+
import { styles } from "../../styles.js";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Componente ActivityRows para a interação da ui.
|
|
26
|
+
*/
|
|
27
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
|
+
const ActivityRows = /*#__PURE__*/forwardRef(({
|
|
29
|
+
index,
|
|
30
|
+
activities,
|
|
31
|
+
items,
|
|
32
|
+
onAdd,
|
|
33
|
+
onEdit,
|
|
34
|
+
onDelete
|
|
35
|
+
}, ref) => {
|
|
36
|
+
const handleAdd = useCallback(() => onAdd(activities), [onAdd, activities]);
|
|
37
|
+
const handleEdit = useCallback(() => onEdit(activities), [onEdit, activities]);
|
|
38
|
+
const handleDelete = useCallback(() => onDelete(activities), [onDelete, activities]);
|
|
39
|
+
const isInvalid = !!activities.invalid;
|
|
40
|
+
const dateText = activities.date instanceof Date ? `${String(activities.date.getDate()).padStart(2, "0")}/${String(activities.date.getMonth() + 1).padStart(2, "0")}/${activities.date.getFullYear()}` : String(activities.date ?? "");
|
|
41
|
+
const timeText = activities.time instanceof Date ? `${String(activities.time.getHours()).padStart(2, "0")}:${String(activities.time.getMinutes()).padStart(2, "0")}` : String(activities.time ?? "");
|
|
42
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
43
|
+
ref: ref,
|
|
44
|
+
style: styles.row,
|
|
45
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
46
|
+
style: styles.badge,
|
|
47
|
+
children: /*#__PURE__*/_jsx(Typography, {
|
|
48
|
+
text: String(index + 1),
|
|
49
|
+
color: theme.colors.neutral[25],
|
|
50
|
+
size: theme.fontSizes.sm,
|
|
51
|
+
fontFamily: theme.fonts.inter_bold_700
|
|
52
|
+
})
|
|
53
|
+
}), Boolean(index !== items?.length - 1) && /*#__PURE__*/_jsx(View, {
|
|
54
|
+
style: {
|
|
55
|
+
width: 2,
|
|
56
|
+
height: 76,
|
|
57
|
+
backgroundColor: theme.colors.blue[500],
|
|
58
|
+
position: "absolute",
|
|
59
|
+
left: 21,
|
|
60
|
+
top: 60
|
|
61
|
+
}
|
|
62
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
63
|
+
style: styles.card,
|
|
64
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
65
|
+
numberOfLines: 1,
|
|
66
|
+
style: styles.title,
|
|
67
|
+
text: activities.title ?? "Não informada",
|
|
68
|
+
color: isInvalid ? theme.colors.red[900] : theme.colors.blue[500],
|
|
69
|
+
size: 14,
|
|
70
|
+
fontFamily: theme.fonts.inter_medium_500,
|
|
71
|
+
lineHeight: 34
|
|
72
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
73
|
+
style: [styles.pill, isInvalid ? styles.pillInvalid : styles.pillOk],
|
|
74
|
+
children: [/*#__PURE__*/_jsx(Icons, {
|
|
75
|
+
icon: "CALENDAR",
|
|
76
|
+
size: 18,
|
|
77
|
+
color: isInvalid ? theme.colors.red[900] : theme.colors.blue[500]
|
|
78
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
79
|
+
text: dateText,
|
|
80
|
+
color: isInvalid ? theme.colors.red[800] : theme.colors.blue[400],
|
|
81
|
+
size: theme.fontSizes.xs,
|
|
82
|
+
fontFamily: theme.fonts.inter_medium_500
|
|
83
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
84
|
+
text: "|",
|
|
85
|
+
color: isInvalid ? theme.colors.red[800] : theme.colors.blue[400],
|
|
86
|
+
size: theme.fontSizes.sm,
|
|
87
|
+
style: styles.sep
|
|
88
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
89
|
+
text: timeText,
|
|
90
|
+
color: isInvalid ? theme.colors.red[800] : theme.colors.blue[500],
|
|
91
|
+
size: theme.fontSizes.xs,
|
|
92
|
+
fontFamily: theme.fonts.inter_medium_500
|
|
93
|
+
})]
|
|
94
|
+
})]
|
|
95
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
96
|
+
style: styles.actions,
|
|
97
|
+
children: [/*#__PURE__*/_jsx(TouchableOpacity, {
|
|
98
|
+
style: styles.iconButton,
|
|
99
|
+
onPress: handleEdit,
|
|
100
|
+
testID: "edit-activity",
|
|
101
|
+
children: /*#__PURE__*/_jsx(Icons, {
|
|
102
|
+
icon: "NOTE_PINCEL",
|
|
103
|
+
size: 18,
|
|
104
|
+
color: theme.colors.blue[350]
|
|
105
|
+
})
|
|
106
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
107
|
+
style: styles.iconButton,
|
|
108
|
+
onPress: handleAdd,
|
|
109
|
+
testID: "add-after-activity",
|
|
110
|
+
children: /*#__PURE__*/_jsx(Icons, {
|
|
111
|
+
icon: "PLUS_CONTAINER",
|
|
112
|
+
size: 18,
|
|
113
|
+
color: theme.colors.green[500]
|
|
114
|
+
})
|
|
115
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
116
|
+
style: styles.iconButton,
|
|
117
|
+
onPress: handleDelete,
|
|
118
|
+
testID: "delete-activity",
|
|
119
|
+
children: /*#__PURE__*/_jsx(Icons, {
|
|
120
|
+
icon: "TRASH",
|
|
121
|
+
size: 18,
|
|
122
|
+
color: theme.colors.red[900]
|
|
123
|
+
})
|
|
124
|
+
})]
|
|
125
|
+
})]
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
ActivityRows.displayName = "ActivityRows";
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* EXPORTS
|
|
132
|
+
*/
|
|
133
|
+
export default asBaseComponent(ActivityRows);
|
|
134
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useCallback","TouchableOpacity","View","Typography","Icons","asBaseComponent","theme","styles","jsx","_jsx","jsxs","_jsxs","ActivityRows","index","activities","items","onAdd","onEdit","onDelete","ref","handleAdd","handleEdit","handleDelete","isInvalid","invalid","dateText","date","Date","String","getDate","padStart","getMonth","getFullYear","timeText","time","getHours","getMinutes","style","row","children","badge","text","color","colors","neutral","size","fontSizes","sm","fontFamily","fonts","inter_bold_700","Boolean","length","width","height","backgroundColor","blue","position","left","top","card","numberOfLines","title","red","inter_medium_500","lineHeight","pill","pillInvalid","pillOk","icon","xs","sep","actions","iconButton","onPress","testID","green","displayName"],"sourceRoot":"..\\..\\..\\..\\..\\..\\src","sources":["components/activity-step/components/activite-row/index.tsx"],"mappings":";;AAAA;AACA;AACA;;AAEA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,WAAW,QAAQ,OAAO;AAEtD,SAASC,gBAAgB,EAAEC,IAAI,QAAQ,cAAc;;AAErD;AACA,OAAOC,UAAU,MAAM,8BAAqB;;AAE5C;AACA,SAASC,KAAK,QAAQ,uCAA8B;;AAEpD;;AAEA,SAASC,eAAe,QAAQ,yCAAsC;;AAEtE;AACA,SAASC,KAAK,QAAQ,mCAAgC;AACtD,SAASC,MAAM,QAAQ,iBAAc;;AAErC;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGA,MAAMC,YAAY,gBAAGb,UAAU,CAC7B,CAAC;EAAEc,KAAK;EAAEC,UAAU;EAAEC,KAAK;EAAEC,KAAK;EAAEC,MAAM;EAAEC;AAAS,CAAC,EAAEC,GAAG,KAAyB;EAClF,MAAMC,SAAS,GAAGpB,WAAW,CAAC,MAAMgB,KAAK,CAACF,UAAU,CAAC,EAAE,CAACE,KAAK,EAAEF,UAAU,CAAC,CAAC;EAC3E,MAAMO,UAAU,GAAGrB,WAAW,CAAC,MAAMiB,MAAM,CAACH,UAAU,CAAC,EAAE,CAACG,MAAM,EAAEH,UAAU,CAAC,CAAC;EAC9E,MAAMQ,YAAY,GAAGtB,WAAW,CAAC,MAAMkB,QAAQ,CAACJ,UAAU,CAAC,EAAE,CAACI,QAAQ,EAAEJ,UAAU,CAAC,CAAC;EAEpF,MAAMS,SAAS,GAAG,CAAC,CAACT,UAAU,CAACU,OAAO;EAEtC,MAAMC,QAAQ,GACZX,UAAU,CAACY,IAAI,YAAYC,IAAI,GAC3B,GAAGC,MAAM,CAACd,UAAU,CAACY,IAAI,CAACG,OAAO,CAA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G;QAAE,CAAE;MAAC,CACrD,CAAC,eAEnB/C,IAAA,CAACR,gBAAgB;QACfoC,KAAK,EAAE9B,MAAM,CAACkE,UAAW;QACzBC,OAAO,EAAEtD,SAAU;QACnBuD,MAAM,EAAC,oBAAoB;QAAApC,QAAA,eAE3B9B,IAAA,CAACL,KAAK;UAACiE,IAAI,EAAC,gBAAgB;UAACxB,IAAI,EAAE,EAAG;UAACH,KAAK,EAAEpC,KAAK,CAACqC,MAAM,CAACiC,KAAK,CAAC,GAAG;QAAE,CAAE;MAAC,CACzD,CAAC,eAEnBnE,IAAA,CAACR,gBAAgB;QACfoC,KAAK,EAAE9B,MAAM,CAACkE,UAAW;QACzBC,OAAO,EAAEpD,YAAa;QACtBqD,MAAM,EAAC,iBAAiB;QAAApC,QAAA,eAExB9B,IAAA,CAACL,KAAK;UAACiE,IAAI,EAAC,OAAO;UAACxB,IAAI,EAAE,EAAG;UAACH,KAAK,EAAEpC,KAAK,CAACqC,MAAM,CAACoB,GAAG,CAAC,GAAG;QAAE,CAAE;MAAC,CAC9C,CAAC;IAAA,CACf,CAAC;EAAA,CACH,CAAC;AAEX,CACF,CAAC;AAEDnD,YAAY,CAACiE,WAAW,GAAG,cAAc;;AAEzC;AACA;AACA;AACA,eAAexE,eAAe,CAACO,YAAY,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* IMPORTS
|
|
5
|
+
*/
|
|
6
|
+
import React, { forwardRef, useCallback } from "react";
|
|
7
|
+
import { View, FlatList } from "react-native";
|
|
8
|
+
|
|
9
|
+
// components
|
|
10
|
+
import ActivityRows from "./components/activite-row/index.js";
|
|
11
|
+
|
|
12
|
+
// typings
|
|
13
|
+
|
|
14
|
+
import { asBaseComponent } from "../../@types/as-base-component.js";
|
|
15
|
+
|
|
16
|
+
// styles
|
|
17
|
+
import { styles, ROW_HEIGHT } from "./styles.js";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Componente ActivityTimeline para a interação da ui.
|
|
21
|
+
*/
|
|
22
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
+
const ActivityTimeline = /*#__PURE__*/forwardRef(({
|
|
24
|
+
data,
|
|
25
|
+
onAdd,
|
|
26
|
+
onEdit,
|
|
27
|
+
onDelete,
|
|
28
|
+
showIndexBadge = true,
|
|
29
|
+
testID = "activity-timeline"
|
|
30
|
+
}, ref) => {
|
|
31
|
+
const keyExtractor = useCallback(it => String(it.id), []);
|
|
32
|
+
const renderItem = useCallback(({
|
|
33
|
+
item,
|
|
34
|
+
index
|
|
35
|
+
}) => /*#__PURE__*/_jsx(ActivityRows, {
|
|
36
|
+
index: index,
|
|
37
|
+
items: data,
|
|
38
|
+
activities: item,
|
|
39
|
+
onAdd: onAdd,
|
|
40
|
+
onEdit: onEdit,
|
|
41
|
+
onDelete: onDelete,
|
|
42
|
+
showIndexBadge: showIndexBadge
|
|
43
|
+
}), [onAdd, onEdit, onDelete, showIndexBadge]);
|
|
44
|
+
const getItemLayout = useCallback((_, index) => ({
|
|
45
|
+
length: ROW_HEIGHT,
|
|
46
|
+
offset: ROW_HEIGHT * index,
|
|
47
|
+
index
|
|
48
|
+
}), []);
|
|
49
|
+
return /*#__PURE__*/_jsx(FlatList, {
|
|
50
|
+
ref: ref,
|
|
51
|
+
testID: testID,
|
|
52
|
+
data: data,
|
|
53
|
+
keyExtractor: keyExtractor,
|
|
54
|
+
renderItem: renderItem,
|
|
55
|
+
contentContainerStyle: styles.listContainer,
|
|
56
|
+
getItemLayout: getItemLayout,
|
|
57
|
+
initialNumToRender: 10,
|
|
58
|
+
maxToRenderPerBatch: 10,
|
|
59
|
+
removeClippedSubviews: true,
|
|
60
|
+
windowSize: 7,
|
|
61
|
+
ListEmptyComponent: /*#__PURE__*/_jsx(View, {
|
|
62
|
+
style: {
|
|
63
|
+
height: 8
|
|
64
|
+
}
|
|
65
|
+
})
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* EXPORTS
|
|
71
|
+
*/
|
|
72
|
+
export default asBaseComponent(ActivityTimeline);
|
|
73
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useCallback","View","FlatList","ActivityRows","asBaseComponent","styles","ROW_HEIGHT","jsx","_jsx","ActivityTimeline","data","onAdd","onEdit","onDelete","showIndexBadge","testID","ref","keyExtractor","it","String","id","renderItem","item","index","items","activities","getItemLayout","_","length","offset","contentContainerStyle","listContainer","initialNumToRender","maxToRenderPerBatch","removeClippedSubviews","windowSize","ListEmptyComponent","style","height"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/activity-step/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,WAAW,QAAQ,OAAO;AAEtD,SAASC,IAAI,EAAEC,QAAQ,QAAQ,cAAc;;AAE7C;AACA,OAAOC,YAAY,MAAM,oCAA2B;;AAEpD;;AAEA,SAASC,eAAe,QAAQ,mCAAgC;;AAEhE;AACA,SAASC,MAAM,EAAEC,UAAU,QAAQ,aAAU;;AAE7C;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA;AAGA,MAAMC,gBAAgB,gBAAGV,UAAU,CACjC,CACE;EAAEW,IAAI;EAAEC,KAAK;EAAEC,MAAM;EAAEC,QAAQ;EAAEC,cAAc,GAAG,IAAI;EAAEC,MAAM,GAAG;AAAoB,CAAC,EACtFC,GAAG,KACoB;EACvB,MAAMC,YAAY,GAAGjB,WAAW,CAAEkB,EAAqB,IAAKC,MAAM,CAACD,EAAE,CAACE,EAAE,CAAC,EAAE,EAAE,CAAC;EAE9E,MAAMC,UAAU,GAAGrB,WAAW,CAC5B,CAAC;IAAEsB,IAAI;IAAEC;EAAkD,CAAC,kBAC1Df,IAAA,CAACL,YAAY;IACXoB,KAAK,EAAEA,KAAM;IACbC,KAAK,EAAEd,IAAK;IACZe,UAAU,EAAEH,IAAK;IACjBX,KAAK,EAAEA,KAAM;IACbC,MAAM,EAAEA,MAAO;IACfC,QAAQ,EAAEA,QAAS;IACnBC,cAAc,EAAEA;EAAe,CAChC,CACF,EACD,CAACH,KAAK,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,cAAc,CAC1C,CAAC;EAED,MAAMY,aAAa,GAAG1B,WAAW,CAC/B,CAAC2B,CAAM,EAAEJ,KAAa,MAAM;IAC1BK,MAAM,EAAEtB,UAAU;IAClBuB,MAAM,EAAEvB,UAAU,GAAGiB,KAAK;IAC1BA;EACF,CAAC,CAAC,EACF,EACF,CAAC;EACD,oBACEf,IAAA,CAACN,QAAQ;IACPc,GAAG,EAAEA,GAAI;IACTD,MAAM,EAAEA,MAAO;IACfL,IAAI,EAAEA,IAAK;IACXO,YAAY,EAAEA,YAAa;IAC3BI,UAAU,EAAEA,UAAW;IACvBS,qBAAqB,EAAEzB,MAAM,CAAC0B,aAAc;IAC5CL,aAAa,EAAEA,aAAc;IAC7BM,kBAAkB,EAAE,EAAG;IACvBC,mBAAmB,EAAE,EAAG;IACxBC,qBAAqB;IACrBC,UAAU,EAAE,CAAE;IACdC,kBAAkB,eAAE5B,IAAA,CAACP,IAAI;MAACoC,KAAK,EAAE;QAAEC,MAAM,EAAE;MAAE;IAAE,CAAE;EAAE,CACpD,CAAC;AAEN,CACF,CAAC;;AAED;AACA;AACA;AACA,eAAelC,eAAe,CAACK,gBAAgB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/activity-step/interface.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* IMPORTS
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { StyleSheet } from "react-native";
|
|
8
|
+
|
|
9
|
+
// styles
|
|
10
|
+
import { theme } from "../../styles/theme/theme.js";
|
|
11
|
+
export const ROW_HEIGHT = 72;
|
|
12
|
+
const styles = StyleSheet.create({
|
|
13
|
+
listContainer: {
|
|
14
|
+
paddingVertical: 8
|
|
15
|
+
},
|
|
16
|
+
row: {
|
|
17
|
+
width: "100%",
|
|
18
|
+
minHeight: ROW_HEIGHT,
|
|
19
|
+
paddingVertical: 8,
|
|
20
|
+
paddingHorizontal: 8,
|
|
21
|
+
flexDirection: "row",
|
|
22
|
+
alignItems: "center",
|
|
23
|
+
justifyContent: "center",
|
|
24
|
+
gap: 6
|
|
25
|
+
},
|
|
26
|
+
badge: {
|
|
27
|
+
width: 28,
|
|
28
|
+
height: 28,
|
|
29
|
+
borderRadius: 14,
|
|
30
|
+
backgroundColor: theme.colors.blue[500],
|
|
31
|
+
alignItems: "center",
|
|
32
|
+
justifyContent: "center"
|
|
33
|
+
},
|
|
34
|
+
card: {
|
|
35
|
+
flex: 1,
|
|
36
|
+
borderRadius: 10
|
|
37
|
+
},
|
|
38
|
+
title: {
|
|
39
|
+
marginBottom: 6
|
|
40
|
+
},
|
|
41
|
+
pill: {
|
|
42
|
+
flexDirection: "row",
|
|
43
|
+
alignItems: "center",
|
|
44
|
+
borderWidth: 1,
|
|
45
|
+
borderRadius: 10,
|
|
46
|
+
paddingHorizontal: 10,
|
|
47
|
+
paddingVertical: 8,
|
|
48
|
+
gap: 4
|
|
49
|
+
},
|
|
50
|
+
pillOk: {
|
|
51
|
+
backgroundColor: "#F3F3F5",
|
|
52
|
+
borderColor: "#C4D4E5"
|
|
53
|
+
},
|
|
54
|
+
pillInvalid: {
|
|
55
|
+
backgroundColor: "#FDE7E7",
|
|
56
|
+
borderColor: theme.colors.red[900]
|
|
57
|
+
},
|
|
58
|
+
sep: {
|
|
59
|
+
marginHorizontal: 8,
|
|
60
|
+
opacity: 0.5
|
|
61
|
+
},
|
|
62
|
+
actions: {
|
|
63
|
+
flexDirection: "row",
|
|
64
|
+
gap: 8
|
|
65
|
+
},
|
|
66
|
+
iconButton: {
|
|
67
|
+
width: 36,
|
|
68
|
+
height: 36,
|
|
69
|
+
borderRadius: 8,
|
|
70
|
+
backgroundColor: theme.colors.neutral[25],
|
|
71
|
+
borderWidth: 1,
|
|
72
|
+
borderColor: theme.colors.neutral[200],
|
|
73
|
+
alignItems: "center",
|
|
74
|
+
justifyContent: "center",
|
|
75
|
+
marginTop: 36
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* EXPORTS
|
|
81
|
+
*/
|
|
82
|
+
export { styles };
|
|
83
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","theme","ROW_HEIGHT","styles","create","listContainer","paddingVertical","row","width","minHeight","paddingHorizontal","flexDirection","alignItems","justifyContent","gap","badge","height","borderRadius","backgroundColor","colors","blue","card","flex","title","marginBottom","pill","borderWidth","pillOk","borderColor","pillInvalid","red","sep","marginHorizontal","opacity","actions","iconButton","neutral","marginTop"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/activity-step/styles.ts"],"mappings":";;AAAA;AACA;AACA;;AAEA,SAASA,UAAU,QAAQ,cAAc;;AAEzC;AACA,SAASC,KAAK,QAAQ,6BAA0B;AAEhD,OAAO,MAAMC,UAAU,GAAG,EAAE;AAE5B,MAAMC,MAAM,GAAGH,UAAU,CAACI,MAAM,CAAC;EAC/BC,aAAa,EAAE;IAAEC,eAAe,EAAE;EAAE,CAAC;EACrCC,GAAG,EAAE;IACHC,KAAK,EAAE,MAAM;IACbC,SAAS,EAAEP,UAAU;IACrBI,eAAe,EAAE,CAAC;IAClBI,iBAAiB,EAAE,CAAC;IACpBC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,GAAG,EAAE;EACP,CAAC;EACDC,KAAK,EAAE;IACLP,K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AAEF;AACA;AACA;AACA,SAASlC,MAAM","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* IMPORTS
|
|
3
|
+
/**
|
|
4
|
+
* IMPORTS
|
|
5
5
|
*/
|
|
6
6
|
import React, { forwardRef } from "react";
|
|
7
7
|
import { Dimensions } from "react-native";
|
|
@@ -21,6 +21,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
21
21
|
const CardScheduledJourney = /*#__PURE__*/forwardRef((props, ref) => {
|
|
22
22
|
const {
|
|
23
23
|
title,
|
|
24
|
+
subTitle,
|
|
24
25
|
duracao,
|
|
25
26
|
color = {},
|
|
26
27
|
backgroundColor,
|
|
@@ -97,13 +98,14 @@ const CardScheduledJourney = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
97
98
|
lineHeight: theme.fontSizes.lg,
|
|
98
99
|
letterSpacing: "regular"
|
|
99
100
|
}), /*#__PURE__*/_jsx(Typography, {
|
|
100
|
-
text:
|
|
101
|
+
text: `${subTitle ?? "Duração"}: ${duracao}`,
|
|
101
102
|
size: theme.fontSizes.xs,
|
|
102
103
|
fontWeight: "300",
|
|
103
104
|
fontFamily: theme.fonts.inter_light_300,
|
|
104
105
|
color: color.colorText ?? theme.colors.black[25],
|
|
105
106
|
lineHeight: theme.fontSizes.lg,
|
|
106
|
-
letterSpacing: "regular"
|
|
107
|
+
letterSpacing: "regular",
|
|
108
|
+
marginTop: 4
|
|
107
109
|
})]
|
|
108
110
|
}), /*#__PURE__*/_jsx(Box, {
|
|
109
111
|
width: 12,
|
|
@@ -120,8 +122,8 @@ const CardScheduledJourney = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
120
122
|
});
|
|
121
123
|
});
|
|
122
124
|
|
|
123
|
-
/**
|
|
124
|
-
* Componente CardScheduledJourney para a interação da ui.
|
|
125
|
+
/**
|
|
126
|
+
* Componente CardScheduledJourney para a interação da ui.
|
|
125
127
|
*/
|
|
126
128
|
export default asBaseComponent(CardScheduledJourney);
|
|
127
129
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","forwardRef","Dimensions","Box","Typography","asBaseComponent","theme","Icons","jsx","_jsx","jsxs","_jsxs","CardScheduledJourney","props","ref","title","duracao","color","backgroundColor","borderStyled","paddingStyle","marginStyle","flexStyle","style","width","widthChildren","icon","borderRight","widthScreen","get","isMobile","height","colors","neutral","borderWidth","borderWidths","thin","borderRadius","thin_bold","borderColor","gray","children","flexDirection","justifyContent","alignItems","thick","paddingLeft","size","fontSizes","marginTop","text","sm","fontFamily","fonts","inter_bold_700","fontWeight","colorText","black","lineHeight","lg","letterSpacing","xs","inter_light_300","green","borderTopRightRadius","borderBottomRightRadius"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/card-scheduled-journey/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,UAAU,QAAQ,cAAc;;AAEzC;AACA,OAAOC,GAAG,MAAM,iBAAQ;AACxB,OAAOC,UAAU,MAAM,wBAAe;;AAEtC;AACA,SAASC,eAAe,QAAQ,mCAAgC;AAGhE;AACA,SAASC,KAAK,QAAQ,6BAA0B;;AAEhD;AACA,SAASC,KAAK,QAAQ,iCAAwB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE/C,MAAMC,oBAAoB,gBAAGX,UAAU,CACrC,CAACY,KAAK,EAAEC,GAAG,KAAyB;EAClC,MAAM;IACJC,KAAK;IACLC,OAAO;IACPC,KAAK,GAAG,CAAC,CAAC;IACVC,eAAe;IACfC,YAAY;IACZC,YAAY;IACZC,WAAW;IACXC,SAAS;IACTC,KAAK;IACLC,KAAK;IACLC,aAAa;IACbC,IAAI;IACJC;EACF,CAAC,
|
|
1
|
+
{"version":3,"names":["React","forwardRef","Dimensions","Box","Typography","asBaseComponent","theme","Icons","jsx","_jsx","jsxs","_jsxs","CardScheduledJourney","props","ref","title","subTitle","duracao","color","backgroundColor","borderStyled","paddingStyle","marginStyle","flexStyle","style","width","widthChildren","icon","borderRight","widthScreen","get","isMobile","height","colors","neutral","borderWidth","borderWidths","thin","borderRadius","thin_bold","borderColor","gray","children","flexDirection","justifyContent","alignItems","thick","paddingLeft","size","fontSizes","marginTop","text","sm","fontFamily","fonts","inter_bold_700","fontWeight","colorText","black","lineHeight","lg","letterSpacing","xs","inter_light_300","green","borderTopRightRadius","borderBottomRightRadius"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/card-scheduled-journey/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,UAAU,QAAQ,cAAc;;AAEzC;AACA,OAAOC,GAAG,MAAM,iBAAQ;AACxB,OAAOC,UAAU,MAAM,wBAAe;;AAEtC;AACA,SAASC,eAAe,QAAQ,mCAAgC;AAGhE;AACA,SAASC,KAAK,QAAQ,6BAA0B;;AAEhD;AACA,SAASC,KAAK,QAAQ,iCAAwB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE/C,MAAMC,oBAAoB,gBAAGX,UAAU,CACrC,CAACY,KAAK,EAAEC,GAAG,KAAyB;EAClC,MAAM;IACJC,KAAK;IACLC,QAAQ;IACRC,OAAO;IACPC,KAAK,GAAG,CAAC,CAAC;IACVC,eAAe;IACfC,YAAY;IACZC,YAAY;IACZC,WAAW;IACXC,SAAS;IACTC,KAAK;IACLC,KAAK;IACLC,aAAa;IACbC,IAAI;IACJC;EACF,CAAC,GAAGf,KAAK;EAET,MAAM;IAAEY,KAAK,EAAEI;EAAY,CAAC,GAAG3B,UAAU,CAAC4B,GAAG,CAAC,QAAQ,CAAC;EACvD,MAAMC,QAAQ,GAAGF,WAAW,GAAG,GAAG;EAClC,oBACEpB,IAAA,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B;UACxC7C,KAAK,EAAEA,KAAK,CAACuC,SAAS,IAAInD,KAAK,CAAC2B,MAAM,CAACyB,KAAK,CAAC,EAAE,CAAE;UACjDC,UAAU,EAAErD,KAAK,CAAC2C,SAAS,CAACW,EAAG;UAC/BC,aAAa,EAAE,SAAU;UACzBX,SAAS,EAAE;QAAE,CACd,CAAC;MAAA,CACC,CAAC,eAGNzC,IAAA,CAACN,GAAG;QACFsB,KAAK,EAAE,EAAG;QACVO,MAAM,EAAE,EAAG;QACXb,eAAe,EAAES,WAAW,IAAItB,KAAK,CAAC2B,MAAM,CAAC+B,KAAK,CAAC,GAAG,CAAE;QACxD5C,YAAY,EAAE;UACZe,WAAW,EAAE7B,KAAK,CAAC8B,YAAY,CAACC,IAAI;UACpC4B,oBAAoB,EAAE3D,KAAK,CAAC8B,YAAY,CAACU,KAAK;UAC9CoB,uBAAuB,EAAE5D,KAAK,CAAC8B,YAAY,CAACU,KAAK;UACjDN,WAAW,EAAEZ,WAAW,IAAItB,KAAK,CAAC2B,MAAM,CAAC+B,KAAK,CAAC,GAAG;QACpD;MAAE,CACH,CAAC;IAAA,CACC;EAAC,CACH,CAAC;AAEV,CACF,CAAC;;AAED;AACA;AACA;AACA,eAAe3D,eAAe,CAACO,oBAAoB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* IMPORTS
|
|
5
|
+
*/
|
|
6
|
+
import React, { forwardRef, useMemo, useState } from "react";
|
|
7
|
+
import { View, Text, TouchableOpacity, Modal } from "react-native";
|
|
8
|
+
import DateTimePicker from "@react-native-community/datetimepicker";
|
|
9
|
+
|
|
10
|
+
// commons / svg
|
|
11
|
+
import { Icons } from "../../../common/icons-svg/index.js";
|
|
12
|
+
|
|
13
|
+
// typings
|
|
14
|
+
import { asBaseComponent } from "../../../@types/as-base-component.js";
|
|
15
|
+
// styles
|
|
16
|
+
import { styles } from "./styles.js";
|
|
17
|
+
import { theme } from "../../../styles/theme/theme.js";
|
|
18
|
+
|
|
19
|
+
/** formatadores no mesmo estilo simples dos seus componentes */
|
|
20
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
+
function fmtDate(d) {
|
|
22
|
+
const dd = String(d.getDate()).padStart(2, "0");
|
|
23
|
+
const mm = String(d.getMonth() + 1).padStart(2, "0");
|
|
24
|
+
const yyyy = d.getFullYear();
|
|
25
|
+
return `${dd}/${mm}/${yyyy}`;
|
|
26
|
+
}
|
|
27
|
+
function fmtTime(d) {
|
|
28
|
+
const hh = String(d.getHours()).padStart(2, "0");
|
|
29
|
+
const mi = String(d.getMinutes()).padStart(2, "0");
|
|
30
|
+
return `${hh}:${mi}`;
|
|
31
|
+
}
|
|
32
|
+
const InputDateTime = /*#__PURE__*/forwardRef((props, ref) => {
|
|
33
|
+
const {
|
|
34
|
+
mode,
|
|
35
|
+
titleLabel,
|
|
36
|
+
sizeTitleLabel,
|
|
37
|
+
colortitleLabel,
|
|
38
|
+
backgroundColor,
|
|
39
|
+
value,
|
|
40
|
+
onChange,
|
|
41
|
+
placeholder = mode === "date" ? "Selecione uma data" : "Selecione um horário",
|
|
42
|
+
minimumDate,
|
|
43
|
+
maximumDate,
|
|
44
|
+
disabled,
|
|
45
|
+
formatDate,
|
|
46
|
+
formatTime,
|
|
47
|
+
testID
|
|
48
|
+
} = props;
|
|
49
|
+
|
|
50
|
+
// estado interno quando o componente não é controlado
|
|
51
|
+
const [inner, setInner] = useState(value ?? new Date());
|
|
52
|
+
const [visible, setVisible] = useState(false);
|
|
53
|
+
const current = value ?? inner;
|
|
54
|
+
const human = useMemo(() => {
|
|
55
|
+
if (!current) return "";
|
|
56
|
+
return mode === "date" ? (formatDate ?? fmtDate)(current) : (formatTime ?? fmtTime)(current);
|
|
57
|
+
}, [current, mode, formatDate, formatTime]);
|
|
58
|
+
const styleProps = {
|
|
59
|
+
...props,
|
|
60
|
+
titleLabel,
|
|
61
|
+
sizeTitleLabel,
|
|
62
|
+
colortitleLabel,
|
|
63
|
+
backgroundColor
|
|
64
|
+
};
|
|
65
|
+
function commit(next) {
|
|
66
|
+
if (!value) setInner(next);
|
|
67
|
+
onChange?.(next);
|
|
68
|
+
setVisible(false);
|
|
69
|
+
}
|
|
70
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
71
|
+
ref: ref,
|
|
72
|
+
style: styles(styleProps).container,
|
|
73
|
+
children: [titleLabel ? /*#__PURE__*/_jsx(Text, {
|
|
74
|
+
style: styles(styleProps).label,
|
|
75
|
+
children: titleLabel
|
|
76
|
+
}) : null, /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
77
|
+
testID: testID ?? "input-date-time",
|
|
78
|
+
style: styles(styleProps).selectBox,
|
|
79
|
+
onPress: () => !disabled && setVisible(true),
|
|
80
|
+
disabled: disabled,
|
|
81
|
+
children: [/*#__PURE__*/_jsx(Icons, {
|
|
82
|
+
size: theme.fontSizes["md"],
|
|
83
|
+
color: theme.colors.blue[500],
|
|
84
|
+
icon: mode === "date" ? "CALENDAR" : "CALENDAR",
|
|
85
|
+
style: styles(styleProps).iconStandard
|
|
86
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
87
|
+
style: human ? styles(styleProps).selectedText : styles(styleProps).placeholderText,
|
|
88
|
+
children: human || placeholder
|
|
89
|
+
})]
|
|
90
|
+
}), /*#__PURE__*/_jsx(Modal, {
|
|
91
|
+
testID: "modal-container",
|
|
92
|
+
visible: visible,
|
|
93
|
+
transparent: true,
|
|
94
|
+
animationType: "fade",
|
|
95
|
+
onRequestClose: () => setVisible(false),
|
|
96
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
97
|
+
style: styles(styleProps).modalOverlay,
|
|
98
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
99
|
+
style: styles(styleProps).modalContainer,
|
|
100
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
101
|
+
style: {
|
|
102
|
+
width: "100%",
|
|
103
|
+
alignItems: "flex-end"
|
|
104
|
+
},
|
|
105
|
+
children: /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
106
|
+
testID: "close-icon",
|
|
107
|
+
onPress: () => setVisible(false),
|
|
108
|
+
children: /*#__PURE__*/_jsx(Icons, {
|
|
109
|
+
size: theme.fontSizes["md"],
|
|
110
|
+
color: theme.colors.blue[500],
|
|
111
|
+
icon: "CLOSED"
|
|
112
|
+
})
|
|
113
|
+
})
|
|
114
|
+
}), /*#__PURE__*/_jsx(DateTimePicker, {
|
|
115
|
+
value: current ?? new Date(),
|
|
116
|
+
mode: mode,
|
|
117
|
+
display: "default",
|
|
118
|
+
onChange: (_e, selected) => {
|
|
119
|
+
if (selected) commit(selected);else setVisible(false);
|
|
120
|
+
},
|
|
121
|
+
minimumDate: minimumDate,
|
|
122
|
+
maximumDate: maximumDate
|
|
123
|
+
})]
|
|
124
|
+
})
|
|
125
|
+
})
|
|
126
|
+
})]
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
export default asBaseComponent(InputDateTime);
|
|
130
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useMemo","useState","View","Text","TouchableOpacity","Modal","DateTimePicker","Icons","asBaseComponent","styles","theme","jsx","_jsx","jsxs","_jsxs","fmtDate","d","dd","String","getDate","padStart","mm","getMonth","yyyy","getFullYear","fmtTime","hh","getHours","mi","getMinutes","InputDateTime","props","ref","mode","titleLabel","sizeTitleLabel","colortitleLabel","backgroundColor","value","onChange","placeholder","minimumDate","maximumDate","disabled","formatDate","formatTime","testID","inner","setInner","Date","visible","setVisible","current","human","styleProps","commit","next","style","container","children","label","selectBox","onPress","size","fontSizes","color","colors","blue","icon","iconStandard","selectedText","placeholderText","transparent","animationType","onRequestClose","modalOverlay","modalContainer","width","alignItems","display","_e","selected"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/inputs/input-date-time/index.tsx"],"mappings":";;AAA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;UAACuD,KAAK,EAAEhD,MAAM,CAAC6C,UAAU,CAAC,CAACsB,cAAe;UAAAjB,QAAA,gBAC7C/C,IAAA,CAACV,IAAI;YAACuD,KAAK,EAAE;cAAEoB,KAAK,EAAE,MAAM;cAAEC,UAAU,EAAE;YAAW,CAAE;YAAAnB,QAAA,eACrD/C,IAAA,CAACR,gBAAgB;cAAC0C,MAAM,EAAC,YAAY;cAACgB,OAAO,EAAEA,CAAA,KAAMX,UAAU,CAAC,KAAK,CAAE;cAAAQ,QAAA,eACrE/C,IAAA,CAACL,KAAK;gBACJwD,IAAI,EAAErD,KAAK,CAACsD,SAAS,CAAC,IAAI,CAAE;gBAC5BC,KAAK,EAAEvD,KAAK,CAACwD,MAAM,CAACC,IAAI,CAAC,GAAG,CAAE;gBAC9BC,IAAI,EAAE;cAAS,CAChB;YAAC,CACc;UAAC,CACf,CAAC,eAEPxD,IAAA,CAACN,cAAc;YACbgC,KAAK,EAAEc,OAAO,IAAI,IAAIH,IAAI,CAAC,CAAE;YAC7BhB,IAAI,EAAEA,IAAK;YACX8C,OAAO,EAAC,SAAS;YACjBxC,QAAQ,EAAEA,CAACyC,EAAO,EAAEC,QAAe,KAAK;cACtC,IAAIA,QAAQ,EAAE1B,MAAM,CAAC0B,QAAQ,CAAC,CAAC,KAC1B9B,UAAU,CAAC,KAAK,CAAC;YACxB,CAAE;YACFV,WAAW,EAAEA,WAAY;YACzBC,WAAW,EAAEA;UAAY,CAC1B,CAAC;QAAA,CACE;MAAC,CACH;IAAC,CACF,CAAC;EAAA,CACJ,CAAC;AAEX,CAAC,CAAC;AAEF,eAAelC,eAAe,CAACsB,aAAa,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/inputs/input-date-time/interface.d.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet } from "react-native";
|
|
4
|
+
import { theme } from "../../../styles/theme/theme.js";
|
|
5
|
+
const styles = props => StyleSheet.create({
|
|
6
|
+
container: {
|
|
7
|
+
width: "100%",
|
|
8
|
+
marginBottom: 16,
|
|
9
|
+
opacity: props.disabled ? 0.6 : 1
|
|
10
|
+
},
|
|
11
|
+
label: {
|
|
12
|
+
fontSize: props.sizeTitleLabel ?? 16,
|
|
13
|
+
fontWeight: "bold",
|
|
14
|
+
color: props.colortitleLabel ?? theme.colors.black[100],
|
|
15
|
+
marginBottom: 5
|
|
16
|
+
},
|
|
17
|
+
selectBox: {
|
|
18
|
+
flexDirection: "row",
|
|
19
|
+
alignItems: "center",
|
|
20
|
+
justifyContent: "center",
|
|
21
|
+
width: "100%",
|
|
22
|
+
height: 45,
|
|
23
|
+
borderWidth: 1,
|
|
24
|
+
borderColor: theme.colors.gray[700],
|
|
25
|
+
borderRadius: 10,
|
|
26
|
+
backgroundColor: props.backgroundColor ?? theme.colors.neutral[25],
|
|
27
|
+
paddingHorizontal: 10,
|
|
28
|
+
position: "relative"
|
|
29
|
+
},
|
|
30
|
+
selectedText: {
|
|
31
|
+
flex: 1,
|
|
32
|
+
fontSize: 14,
|
|
33
|
+
textAlign: "center",
|
|
34
|
+
color: theme.colors.gray[700]
|
|
35
|
+
},
|
|
36
|
+
placeholderText: {
|
|
37
|
+
flex: 1,
|
|
38
|
+
textAlign: "center",
|
|
39
|
+
fontSize: 14,
|
|
40
|
+
color: theme.colors.gray[700]
|
|
41
|
+
},
|
|
42
|
+
modalOverlay: {
|
|
43
|
+
flex: 1,
|
|
44
|
+
backgroundColor: "rgba(0,0,0,0.5)",
|
|
45
|
+
justifyContent: "center",
|
|
46
|
+
alignItems: "center",
|
|
47
|
+
padding: 24
|
|
48
|
+
},
|
|
49
|
+
modalContainer: {
|
|
50
|
+
width: "100%",
|
|
51
|
+
backgroundColor: theme.colors.neutral[25],
|
|
52
|
+
borderRadius: 10,
|
|
53
|
+
padding: 15,
|
|
54
|
+
alignItems: "center"
|
|
55
|
+
},
|
|
56
|
+
iconStandard: {
|
|
57
|
+
position: "absolute",
|
|
58
|
+
left: 10
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
export { styles };
|
|
62
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","theme","styles","props","create","container","width","marginBottom","opacity","disabled","label","fontSize","sizeTitleLabel","fontWeight","color","colortitleLabel","colors","black","selectBox","flexDirection","alignItems","justifyContent","height","borderWidth","borderColor","gray","borderRadius","backgroundColor","neutral","paddingHorizontal","position","selectedText","flex","textAlign","placeholderText","modalOverlay","padding","modalContainer","iconStandard","left"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/inputs/input-date-time/styles.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,KAAK,QAAQ,gCAA6B;AAGnD,MAAMC,MAAM,GAAIC,KAA0B,IACxCH,UAAU,CAACI,MAAM,CAAC;EAChBC,SAAS,EAAE;IACTC,KAAK,EAAE,MAAM;IACbC,YAAY,EAAE,EAAE;IAChBC,OAAO,EAAEL,KAAK,CAACM,QAAQ,GAAG,GAAG,GAAG;EAClC,CAAC;EACDC,KAAK,EAAE;IACLC,QAAQ,EAAER,KAAK,CAACS,cAAc,IAAI,EAAE;IACpCC,UAAU,EAAE,MAAM;IAClBC,KAAK,EAAEX,KAAK,CAACY,eAAe,IAAId,KAAK,CAACe,MAAM,CAACC,KAAK,CAAC,GAAG,CAAC;IACvDV,YAAY,EAAE;EAChB,CAAC;EACDW,SAAS,EAAE;IACTC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBf,KAAK,EAAE,MAAM;IACbgB,MAAM,EAAE,EAAE;IACVC,WAAW,EAAE,CAAC;IACdC,WAAW,EAAEvB,KAAK,CAACe,MAAM,CAACS,IAAI,CA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