valtech-components 2.0.46 → 2.0.47
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/esm2022/lib/components/atoms/avatar/avatar.component.mjs +31 -0
- package/esm2022/lib/components/atoms/avatar/types.mjs +2 -0
- package/esm2022/lib/components/atoms/box/box.component.mjs +47 -0
- package/esm2022/lib/components/atoms/box/types.mjs +2 -0
- package/esm2022/lib/components/atoms/button/button.component.mjs +69 -0
- package/esm2022/lib/components/atoms/button/factory.mjs +217 -0
- package/esm2022/lib/components/atoms/display/display.component.mjs +28 -0
- package/esm2022/lib/components/atoms/display/types.mjs +2 -0
- package/esm2022/lib/components/atoms/divider/divider.component.mjs +17 -0
- package/esm2022/lib/components/atoms/divider/types.mjs +2 -0
- package/esm2022/lib/components/atoms/href/href.component.mjs +51 -0
- package/esm2022/lib/components/atoms/href/types.mjs +2 -0
- package/esm2022/lib/components/atoms/icon/icon.component.mjs +19 -0
- package/esm2022/lib/components/atoms/icon/types.mjs +2 -0
- package/esm2022/lib/components/atoms/image/image.component.mjs +50 -0
- package/esm2022/lib/components/atoms/image/types.mjs +2 -0
- package/esm2022/lib/components/atoms/progress-bar/progress-bar.component.mjs +36 -0
- package/esm2022/lib/components/atoms/progress-bar/types.mjs +2 -0
- package/esm2022/lib/components/atoms/text/text.component.mjs +24 -0
- package/esm2022/lib/components/atoms/text/types.mjs +2 -0
- package/esm2022/lib/components/atoms/title/title.component.mjs +31 -0
- package/esm2022/lib/components/atoms/title/types.mjs +2 -0
- package/esm2022/lib/components/molecules/alert-box/alert-box.component.mjs +32 -0
- package/esm2022/lib/components/molecules/alert-box/types.mjs +2 -0
- package/esm2022/lib/components/molecules/button-group/button-group.component.mjs +49 -0
- package/esm2022/lib/components/molecules/button-group/types.mjs +2 -0
- package/esm2022/lib/components/molecules/card/card.component.mjs +365 -0
- package/esm2022/lib/components/molecules/card/types.mjs +16 -0
- package/esm2022/lib/components/molecules/check-input/check-input.component.mjs +15 -0
- package/esm2022/lib/components/molecules/comment-input/comment-input.component.mjs +23 -0
- package/esm2022/lib/components/molecules/content-loader/content-loader.component.mjs +32 -0
- package/esm2022/lib/components/molecules/content-loader/types.mjs +2 -0
- package/esm2022/lib/components/molecules/date-input/date-input.component.mjs +73 -0
- package/esm2022/lib/components/molecules/email-input/email-input.component.mjs +19 -0
- package/esm2022/lib/components/molecules/expandable-text/expandable-text.component.mjs +58 -0
- package/esm2022/lib/components/molecules/expandable-text/types.mjs +2 -0
- package/esm2022/lib/components/molecules/file-input/file-input.component.mjs +69 -0
- package/esm2022/lib/components/molecules/hint/hint.component.mjs +52 -0
- package/esm2022/lib/components/molecules/hour-input/hour-input.component.mjs +18 -0
- package/esm2022/lib/components/molecules/link/link.component.mjs +53 -0
- package/esm2022/lib/components/molecules/link/types.mjs +2 -0
- package/esm2022/lib/components/molecules/links-cake/links-cake.component.mjs +37 -0
- package/esm2022/lib/components/molecules/links-cake/types.mjs +2 -0
- package/esm2022/lib/components/molecules/notes-box/notes-box.component.mjs +33 -0
- package/esm2022/lib/components/molecules/notes-box/types.mjs +2 -0
- package/esm2022/lib/components/molecules/number-input/number-input.component.mjs +18 -0
- package/esm2022/lib/components/molecules/password-input/password-input.component.mjs +44 -0
- package/esm2022/lib/components/molecules/pin-input/pin-input.component.mjs +45 -0
- package/esm2022/lib/components/molecules/progress-status/progress-status.component.mjs +94 -0
- package/esm2022/lib/components/molecules/progress-status/types.mjs +2 -0
- package/esm2022/lib/components/molecules/prompter/prompter.component.mjs +84 -0
- package/esm2022/lib/components/molecules/prompter/types.mjs +2 -0
- package/esm2022/lib/components/molecules/radio-input/radio-input.component.mjs +33 -0
- package/esm2022/lib/components/molecules/searchbar/searchbar.component.mjs +61 -0
- package/esm2022/lib/components/molecules/text-input/text-input.component.mjs +18 -0
- package/esm2022/lib/components/molecules/title-block/title-block.component.mjs +77 -0
- package/esm2022/lib/components/molecules/title-block/types.mjs +2 -0
- package/esm2022/lib/components/organisms/banner/banner.component.mjs +75 -0
- package/esm2022/lib/components/organisms/banner/types.mjs +2 -0
- package/esm2022/lib/components/organisms/footer/footer.component.mjs +50 -0
- package/esm2022/lib/components/organisms/footer/types.mjs +2 -0
- package/esm2022/lib/components/organisms/form/factory.mjs +8 -0
- package/esm2022/lib/components/organisms/form/form-footer/form-footer.component.mjs +76 -0
- package/esm2022/lib/components/organisms/form/form.component.mjs +230 -0
- package/esm2022/lib/components/organisms/header/header.component.mjs +32 -0
- package/esm2022/lib/components/organisms/header/types.mjs +2 -0
- package/esm2022/lib/components/organisms/item-list/item-list.component.mjs +362 -0
- package/esm2022/lib/components/organisms/item-list/types.mjs +2 -0
- package/esm2022/lib/components/organisms/no-content/no-content.component.mjs +44 -0
- package/esm2022/lib/components/organisms/no-content/types.mjs +2 -0
- package/esm2022/lib/components/organisms/toolbar/toolbar.component.mjs +171 -0
- package/esm2022/lib/components/organisms/toolbar/types.mjs +2 -0
- package/esm2022/lib/components/organisms/wizard/types.mjs +7 -0
- package/esm2022/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.mjs +107 -0
- package/esm2022/lib/components/organisms/wizard/wizard.component.mjs +103 -0
- package/esm2022/lib/components/templates/layout/layout.component.mjs +19 -0
- package/esm2022/lib/components/templates/simple/simple.component.mjs +102 -0
- package/esm2022/lib/components/templates/simple/types.mjs +2 -0
- package/esm2022/lib/components/types.mjs +36 -0
- package/esm2022/lib/services/download.service.mjs +63 -0
- package/esm2022/lib/services/icons.service.mjs +30 -0
- package/esm2022/lib/services/in-app-browser.service.mjs +24 -0
- package/esm2022/lib/services/lang-provider/components/lang-settings.mjs +13 -0
- package/esm2022/lib/services/lang-provider/components/theme-settings.mjs +15 -0
- package/esm2022/lib/services/lang-provider/content.mjs +8 -0
- package/esm2022/lib/services/lang-provider/lang-provider.service.mjs +39 -0
- package/esm2022/lib/services/lang-provider/types.mjs +14 -0
- package/esm2022/lib/services/local-storage.service.mjs +16 -0
- package/esm2022/lib/services/navigation.service.mjs +39 -0
- package/esm2022/lib/services/theme.service.mjs +97 -0
- package/esm2022/lib/services/types.mjs +3 -0
- package/esm2022/lib/shared/constants/storage.mjs +3 -0
- package/esm2022/lib/shared/utils/dom.mjs +17 -0
- package/esm2022/lib/shared/utils/styles.mjs +25 -0
- package/esm2022/public-api.mjs +95 -0
- package/esm2022/valtech-components.mjs +5 -0
- package/fesm2022/valtech-components.mjs +3556 -0
- package/fesm2022/valtech-components.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/atoms/avatar/avatar.component.d.ts +12 -0
- package/lib/components/atoms/avatar/types.d.ts +6 -0
- package/lib/components/atoms/box/box.component.d.ts +12 -0
- package/lib/components/atoms/box/types.d.ts +7 -0
- package/lib/components/atoms/button/button.component.d.ts +20 -0
- package/lib/components/atoms/button/factory.d.ts +71 -0
- package/lib/components/atoms/display/display.component.d.ts +10 -0
- package/lib/components/atoms/display/types.d.ts +6 -0
- package/lib/components/atoms/divider/divider.component.d.ts +10 -0
- package/lib/components/atoms/divider/types.d.ts +5 -0
- package/lib/components/atoms/href/href.component.d.ts +15 -0
- package/lib/components/atoms/href/types.d.ts +9 -0
- package/lib/components/atoms/icon/icon.component.d.ts +11 -0
- package/lib/components/atoms/icon/types.d.ts +6 -0
- package/lib/components/atoms/image/image.component.d.ts +12 -0
- package/lib/components/atoms/image/types.d.ts +11 -0
- package/lib/components/atoms/progress-bar/progress-bar.component.d.ts +10 -0
- package/lib/components/atoms/progress-bar/types.d.ts +9 -0
- package/lib/components/atoms/text/text.component.d.ts +10 -0
- package/lib/components/atoms/text/types.d.ts +7 -0
- package/lib/components/atoms/title/title.component.d.ts +10 -0
- package/lib/components/atoms/title/types.d.ts +7 -0
- package/lib/components/molecules/alert-box/alert-box.component.d.ts +10 -0
- package/{src/lib/components/molecules/alert-box/types.ts → lib/components/molecules/alert-box/types.d.ts} +3 -4
- package/lib/components/molecules/button-group/button-group.component.d.ts +13 -0
- package/lib/components/molecules/button-group/types.d.ts +6 -0
- package/lib/components/molecules/card/card.component.d.ts +16 -0
- package/lib/components/molecules/card/types.d.ts +32 -0
- package/lib/components/molecules/check-input/check-input.component.d.ts +8 -0
- package/lib/components/molecules/comment-input/comment-input.component.d.ts +10 -0
- package/lib/components/molecules/content-loader/content-loader.component.d.ts +10 -0
- package/lib/components/molecules/content-loader/types.d.ts +7 -0
- package/lib/components/molecules/date-input/date-input.component.d.ts +10 -0
- package/lib/components/molecules/email-input/email-input.component.d.ts +10 -0
- package/lib/components/molecules/expandable-text/expandable-text.component.d.ts +13 -0
- package/lib/components/molecules/expandable-text/types.d.ts +6 -0
- package/lib/components/molecules/file-input/file-input.component.d.ts +15 -0
- package/lib/components/molecules/hint/hint.component.d.ts +11 -0
- package/lib/components/molecules/hour-input/hour-input.component.d.ts +10 -0
- package/lib/components/molecules/link/link.component.d.ts +14 -0
- package/lib/components/molecules/link/types.d.ts +9 -0
- package/lib/components/molecules/links-cake/links-cake.component.d.ts +10 -0
- package/{src/lib/components/molecules/links-cake/types.ts → lib/components/molecules/links-cake/types.d.ts} +3 -4
- package/lib/components/molecules/notes-box/notes-box.component.d.ts +10 -0
- package/lib/components/molecules/notes-box/types.d.ts +8 -0
- package/lib/components/molecules/number-input/number-input.component.d.ts +10 -0
- package/lib/components/molecules/password-input/password-input.component.d.ts +11 -0
- package/lib/components/molecules/pin-input/pin-input.component.d.ts +15 -0
- package/lib/components/molecules/progress-status/progress-status.component.d.ts +14 -0
- package/lib/components/molecules/progress-status/types.d.ts +10 -0
- package/lib/components/molecules/prompter/prompter.component.d.ts +12 -0
- package/{src/lib/components/molecules/prompter/types.ts → lib/components/molecules/prompter/types.d.ts} +6 -7
- package/lib/components/molecules/radio-input/radio-input.component.d.ts +10 -0
- package/lib/components/molecules/searchbar/searchbar.component.d.ts +14 -0
- package/lib/components/molecules/text-input/text-input.component.d.ts +10 -0
- package/lib/components/molecules/title-block/title-block.component.d.ts +10 -0
- package/lib/components/molecules/title-block/types.d.ts +12 -0
- package/lib/components/organisms/banner/banner.component.d.ts +14 -0
- package/lib/components/organisms/banner/types.d.ts +12 -0
- package/lib/components/organisms/footer/footer.component.d.ts +12 -0
- package/{src/lib/components/organisms/footer/types.ts → lib/components/organisms/footer/types.d.ts} +3 -4
- package/lib/components/organisms/form/factory.d.ts +5 -0
- package/lib/components/organisms/form/form-footer/form-footer.component.d.ts +15 -0
- package/lib/components/organisms/form/form.component.d.ts +23 -0
- package/lib/components/organisms/header/header.component.d.ts +12 -0
- package/{src/lib/components/organisms/header/types.ts → lib/components/organisms/header/types.d.ts} +3 -4
- package/lib/components/organisms/item-list/item-list.component.d.ts +23 -0
- package/lib/components/organisms/item-list/types.d.ts +38 -0
- package/lib/components/organisms/no-content/no-content.component.d.ts +12 -0
- package/{src/lib/components/organisms/no-content/types.ts → lib/components/organisms/no-content/types.d.ts} +3 -4
- package/lib/components/organisms/toolbar/toolbar.component.d.ts +21 -0
- package/lib/components/organisms/toolbar/types.d.ts +11 -0
- package/lib/components/organisms/wizard/types.d.ts +20 -0
- package/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.d.ts +21 -0
- package/lib/components/organisms/wizard/wizard.component.d.ts +22 -0
- package/lib/components/templates/layout/layout.component.d.ts +5 -0
- package/lib/components/templates/simple/simple.component.d.ts +10 -0
- package/{src/lib/components/templates/simple/types.ts → lib/components/templates/simple/types.d.ts} +5 -6
- package/lib/components/types.d.ts +113 -0
- package/lib/services/download.service.d.ts +8 -0
- package/lib/services/icons.service.d.ts +6 -0
- package/lib/services/in-app-browser.service.d.ts +9 -0
- package/lib/services/lang-provider/components/lang-settings.d.ts +3 -0
- package/lib/services/lang-provider/components/theme-settings.d.ts +3 -0
- package/lib/services/lang-provider/content.d.ts +6 -0
- package/lib/services/lang-provider/lang-provider.service.d.ts +17 -0
- package/lib/services/lang-provider/types.d.ts +15 -0
- package/lib/services/local-storage.service.d.ts +6 -0
- package/lib/services/navigation.service.d.ts +15 -0
- package/lib/services/theme.service.d.ts +27 -0
- package/{src/lib/services/types.ts → lib/services/types.d.ts} +2 -4
- package/lib/shared/constants/storage.d.ts +2 -0
- package/lib/shared/utils/dom.d.ts +3 -0
- package/lib/shared/utils/styles.d.ts +1 -0
- package/package.json +13 -15
- package/{src/public-api.ts → public-api.d.ts} +0 -13
- package/ng-package.json +0 -10
- package/release.sh +0 -76
- package/src/lib/components/atoms/avatar/avatar.component.scss +0 -20
- package/src/lib/components/atoms/avatar/avatar.component.ts +0 -29
- package/src/lib/components/atoms/avatar/types.ts +0 -6
- package/src/lib/components/atoms/box/box.component.scss +0 -57
- package/src/lib/components/atoms/box/box.component.ts +0 -38
- package/src/lib/components/atoms/box/types.ts +0 -8
- package/src/lib/components/atoms/button/button.component.scss +0 -5
- package/src/lib/components/atoms/button/button.component.ts +0 -53
- package/src/lib/components/atoms/button/factory.ts +0 -444
- package/src/lib/components/atoms/display/display.component.scss +0 -17
- package/src/lib/components/atoms/display/display.component.ts +0 -25
- package/src/lib/components/atoms/display/types.ts +0 -7
- package/src/lib/components/atoms/divider/divider.component.scss +0 -62
- package/src/lib/components/atoms/divider/divider.component.ts +0 -18
- package/src/lib/components/atoms/divider/types.ts +0 -5
- package/src/lib/components/atoms/href/href.component.scss +0 -25
- package/src/lib/components/atoms/href/href.component.ts +0 -43
- package/src/lib/components/atoms/href/types.ts +0 -10
- package/src/lib/components/atoms/icon/icon.component.scss +0 -33
- package/src/lib/components/atoms/icon/icon.component.ts +0 -21
- package/src/lib/components/atoms/icon/types.ts +0 -7
- package/src/lib/components/atoms/image/image.component.scss +0 -70
- package/src/lib/components/atoms/image/image.component.ts +0 -40
- package/src/lib/components/atoms/image/types.ts +0 -11
- package/src/lib/components/atoms/progress-bar/progress-bar.component.scss +0 -22
- package/src/lib/components/atoms/progress-bar/progress-bar.component.ts +0 -29
- package/src/lib/components/atoms/progress-bar/types.ts +0 -10
- package/src/lib/components/atoms/text/text.component.scss +0 -33
- package/src/lib/components/atoms/text/text.component.ts +0 -23
- package/src/lib/components/atoms/text/types.ts +0 -8
- package/src/lib/components/atoms/title/title.component.scss +0 -17
- package/src/lib/components/atoms/title/title.component.ts +0 -27
- package/src/lib/components/atoms/title/types.ts +0 -8
- package/src/lib/components/molecules/alert-box/alert-box.component.scss +0 -10
- package/src/lib/components/molecules/alert-box/alert-box.component.ts +0 -28
- package/src/lib/components/molecules/button-group/button-group.component.scss +0 -31
- package/src/lib/components/molecules/button-group/button-group.component.ts +0 -44
- package/src/lib/components/molecules/button-group/types.ts +0 -7
- package/src/lib/components/molecules/card/card.component.scss +0 -46
- package/src/lib/components/molecules/card/card.component.ts +0 -218
- package/src/lib/components/molecules/card/types.ts +0 -36
- package/src/lib/components/molecules/check-input/check-input.component.scss +0 -0
- package/src/lib/components/molecules/check-input/check-input.component.ts +0 -16
- package/src/lib/components/molecules/comment-input/comment-input.component.scss +0 -0
- package/src/lib/components/molecules/comment-input/comment-input.component.ts +0 -22
- package/src/lib/components/molecules/content-loader/content-loader.component.scss +0 -42
- package/src/lib/components/molecules/content-loader/content-loader.component.ts +0 -27
- package/src/lib/components/molecules/content-loader/types.ts +0 -8
- package/src/lib/components/molecules/date-input/date-input.component.scss +0 -11
- package/src/lib/components/molecules/date-input/date-input.component.ts +0 -47
- package/src/lib/components/molecules/email-input/email-input.component.scss +0 -0
- package/src/lib/components/molecules/email-input/email-input.component.ts +0 -20
- package/src/lib/components/molecules/expandable-text/expandable-text.component.ts +0 -89
- package/src/lib/components/molecules/expandable-text/types.ts +0 -6
- package/src/lib/components/molecules/file-input/file-input.component.scss +0 -11
- package/src/lib/components/molecules/file-input/file-input.component.ts +0 -56
- package/src/lib/components/molecules/hint/hint.component.scss +0 -5
- package/src/lib/components/molecules/hint/hint.component.ts +0 -42
- package/src/lib/components/molecules/hour-input/hour-input.component.scss +0 -0
- package/src/lib/components/molecules/hour-input/hour-input.component.ts +0 -19
- package/src/lib/components/molecules/link/link.component.scss +0 -5
- package/src/lib/components/molecules/link/link.component.ts +0 -52
- package/src/lib/components/molecules/link/types.ts +0 -10
- package/src/lib/components/molecules/links-cake/links-cake.component.scss +0 -9
- package/src/lib/components/molecules/links-cake/links-cake.component.ts +0 -30
- package/src/lib/components/molecules/notes-box/notes-box.component.scss +0 -5
- package/src/lib/components/molecules/notes-box/notes-box.component.ts +0 -28
- package/src/lib/components/molecules/notes-box/types.ts +0 -9
- package/src/lib/components/molecules/number-input/number-input.component.scss +0 -0
- package/src/lib/components/molecules/number-input/number-input.component.ts +0 -19
- package/src/lib/components/molecules/password-input/password-input.component.scss +0 -7
- package/src/lib/components/molecules/password-input/password-input.component.ts +0 -33
- package/src/lib/components/molecules/pin-input/pin-input.component.scss +0 -13
- package/src/lib/components/molecules/pin-input/pin-input.component.ts +0 -42
- package/src/lib/components/molecules/progress-status/progress-status.component.scss +0 -41
- package/src/lib/components/molecules/progress-status/progress-status.component.ts +0 -70
- package/src/lib/components/molecules/progress-status/types.ts +0 -11
- package/src/lib/components/molecules/prompter/prompter.component.scss +0 -34
- package/src/lib/components/molecules/prompter/prompter.component.ts +0 -58
- package/src/lib/components/molecules/radio-input/radio-input.component.scss +0 -0
- package/src/lib/components/molecules/radio-input/radio-input.component.ts +0 -27
- package/src/lib/components/molecules/searchbar/searchbar.component.scss +0 -9
- package/src/lib/components/molecules/searchbar/searchbar.component.ts +0 -47
- package/src/lib/components/molecules/text-input/text-input.component.scss +0 -1
- package/src/lib/components/molecules/text-input/text-input.component.ts +0 -19
- package/src/lib/components/molecules/title-block/title-block.component.scss +0 -36
- package/src/lib/components/molecules/title-block/title-block.component.ts +0 -50
- package/src/lib/components/molecules/title-block/types.ts +0 -14
- package/src/lib/components/organisms/banner/banner.component.scss +0 -45
- package/src/lib/components/organisms/banner/banner.component.ts +0 -57
- package/src/lib/components/organisms/banner/types.ts +0 -13
- package/src/lib/components/organisms/footer/footer.component.scss +0 -3
- package/src/lib/components/organisms/footer/footer.component.ts +0 -40
- package/src/lib/components/organisms/form/factory.ts +0 -11
- package/src/lib/components/organisms/form/form-footer/form-footer.component.scss +0 -0
- package/src/lib/components/organisms/form/form-footer/form-footer.component.ts +0 -63
- package/src/lib/components/organisms/form/form.component.scss +0 -16
- package/src/lib/components/organisms/form/form.component.ts +0 -183
- package/src/lib/components/organisms/header/header.component.scss +0 -0
- package/src/lib/components/organisms/header/header.component.ts +0 -31
- package/src/lib/components/organisms/item-list/item-list.component.scss +0 -41
- package/src/lib/components/organisms/item-list/item-list.component.ts +0 -223
- package/src/lib/components/organisms/item-list/types.ts +0 -42
- package/src/lib/components/organisms/no-content/no-content.component.scss +0 -11
- package/src/lib/components/organisms/no-content/no-content.component.ts +0 -37
- package/src/lib/components/organisms/toolbar/toolbar.component.scss +0 -13
- package/src/lib/components/organisms/toolbar/toolbar.component.ts +0 -123
- package/src/lib/components/organisms/toolbar/types.ts +0 -12
- package/src/lib/components/organisms/wizard/types.ts +0 -24
- package/src/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.scss +0 -0
- package/src/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.ts +0 -90
- package/src/lib/components/organisms/wizard/wizard.component.scss +0 -15
- package/src/lib/components/organisms/wizard/wizard.component.ts +0 -99
- package/src/lib/components/templates/layout/layout.component.scss +0 -22
- package/src/lib/components/templates/layout/layout.component.ts +0 -14
- package/src/lib/components/templates/simple/simple.component.ts +0 -75
- package/src/lib/components/types.ts +0 -122
- package/src/lib/services/download.service.ts +0 -58
- package/src/lib/services/icons.service.ts +0 -36
- package/src/lib/services/in-app-browser.service.ts +0 -19
- package/src/lib/services/lang-provider/components/lang-settings.ts +0 -14
- package/src/lib/services/lang-provider/components/theme-settings.ts +0 -16
- package/src/lib/services/lang-provider/content.ts +0 -14
- package/src/lib/services/lang-provider/lang-provider.service.ts +0 -38
- package/src/lib/services/lang-provider/types.ts +0 -25
- package/src/lib/services/local-storage.service.ts +0 -18
- package/src/lib/services/navigation.service.ts +0 -39
- package/src/lib/services/theme.service.ts +0 -102
- package/src/lib/shared/constants/storage.ts +0 -2
- package/src/lib/shared/utils/dom.ts +0 -19
- package/src/lib/shared/utils/styles.ts +0 -27
- package/tsconfig.lib.json +0 -14
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -14
|
File without changes
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
-
import { FormControl, ReactiveFormsModule } from '@angular/forms';
|
|
3
|
-
import { IonDatetime } from '@ionic/angular/standalone';
|
|
4
|
-
import { InputMetadata } from '../../types';
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
selector: 'val-hour-input',
|
|
8
|
-
standalone: true,
|
|
9
|
-
imports: [ReactiveFormsModule, IonDatetime],
|
|
10
|
-
template: ` <ion-datetime [formControl]="props.control" presentation="time"></ion-datetime>`,
|
|
11
|
-
styleUrls: ['./hour-input.component.scss'],
|
|
12
|
-
})
|
|
13
|
-
export class HourInputComponent implements OnInit {
|
|
14
|
-
@Input() props: InputMetadata;
|
|
15
|
-
|
|
16
|
-
constructor() {}
|
|
17
|
-
|
|
18
|
-
ngOnInit() {}
|
|
19
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, inject, Input, OnInit, Output } from '@angular/core';
|
|
2
|
-
import { IonButton, IonIcon, IonText } from '@ionic/angular/standalone';
|
|
3
|
-
import { addIcons } from 'ionicons';
|
|
4
|
-
import { chevronForwardOutline } from 'ionicons/icons';
|
|
5
|
-
import { NavigationService } from '../../../services/navigation.service';
|
|
6
|
-
import { LinkMetadata } from './types';
|
|
7
|
-
|
|
8
|
-
@Component({
|
|
9
|
-
selector: 'val-link',
|
|
10
|
-
standalone: true,
|
|
11
|
-
imports: [IonButton, IonIcon, IonText],
|
|
12
|
-
template: `
|
|
13
|
-
<div>
|
|
14
|
-
<ion-button type="button" [color]="props.color" fill="clear" [size]="props.size" (click)="onClickHandler()">
|
|
15
|
-
<ion-icon slot="end" name="chevron-forward-outline"></ion-icon>
|
|
16
|
-
<ion-text>{{ props.text }}</ion-text>
|
|
17
|
-
</ion-button>
|
|
18
|
-
</div>
|
|
19
|
-
`,
|
|
20
|
-
styleUrls: ['./link.component.scss'],
|
|
21
|
-
})
|
|
22
|
-
export class LinkComponent implements OnInit {
|
|
23
|
-
@Input()
|
|
24
|
-
props: LinkMetadata;
|
|
25
|
-
|
|
26
|
-
@Output()
|
|
27
|
-
onClick = new EventEmitter<string>();
|
|
28
|
-
|
|
29
|
-
service = inject(NavigationService);
|
|
30
|
-
|
|
31
|
-
constructor() {
|
|
32
|
-
addIcons({ chevronForwardOutline });
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
ngOnInit() {}
|
|
36
|
-
|
|
37
|
-
onClickHandler() {
|
|
38
|
-
this.onClick.emit(this.props.token);
|
|
39
|
-
|
|
40
|
-
switch (this.props.type) {
|
|
41
|
-
case 'internal':
|
|
42
|
-
this.service.navigateByUrl(this.props.link);
|
|
43
|
-
break;
|
|
44
|
-
case 'browse':
|
|
45
|
-
this.service.navigateInApp(this.props.link);
|
|
46
|
-
break;
|
|
47
|
-
case 'tab':
|
|
48
|
-
this.service.openInNewTab(this.props.link);
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { Component, Input, OnInit } from '@angular/core';
|
|
3
|
-
import { HrefComponent } from '../../atoms/href/href.component';
|
|
4
|
-
import { TitleComponent } from '../../atoms/title/title.component';
|
|
5
|
-
import { LinkCakeMetadata } from './types';
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: 'val-links-cake',
|
|
9
|
-
standalone: true,
|
|
10
|
-
imports: [CommonModule, TitleComponent, HrefComponent],
|
|
11
|
-
template: `
|
|
12
|
-
<div>
|
|
13
|
-
<div class="title">
|
|
14
|
-
<val-title [props]="{ content: props.title, color: 'dark', bold: false, size: props.size }"></val-title>
|
|
15
|
-
</div>
|
|
16
|
-
<div class="link" *ngFor="let l of props.links">
|
|
17
|
-
<val-href [props]="l"></val-href>
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
`,
|
|
21
|
-
styleUrls: ['./links-cake.component.scss'],
|
|
22
|
-
})
|
|
23
|
-
export class LinksCakeComponent implements OnInit {
|
|
24
|
-
@Input()
|
|
25
|
-
props: LinkCakeMetadata;
|
|
26
|
-
|
|
27
|
-
constructor() {}
|
|
28
|
-
|
|
29
|
-
ngOnInit() {}
|
|
30
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { Component, Input, OnInit } from '@angular/core';
|
|
3
|
-
import { BoxComponent } from '../../atoms/box/box.component';
|
|
4
|
-
import { TextComponent } from '../../atoms/text/text.component';
|
|
5
|
-
import { NotesBoxMetadata } from './types';
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: 'val-notes-box',
|
|
9
|
-
standalone: true,
|
|
10
|
-
imports: [CommonModule, BoxComponent, TextComponent],
|
|
11
|
-
template: `
|
|
12
|
-
<val-box [props]="{ icon: '', bordered: false, color: props.color, leftBorder: true }">
|
|
13
|
-
<div [ngClass]="['content-container', props.size]" body>
|
|
14
|
-
<val-text [props]="{ content: props.prefix, color: props.textColor, bold: true, size: props.size }"></val-text>
|
|
15
|
-
<val-text [props]="{ content: props.text, color: props.textColor, bold: false, size: props.size }"></val-text>
|
|
16
|
-
</div>
|
|
17
|
-
</val-box>
|
|
18
|
-
`,
|
|
19
|
-
styleUrls: ['./notes-box.component.scss'],
|
|
20
|
-
})
|
|
21
|
-
export class NotesBoxComponent implements OnInit {
|
|
22
|
-
@Input()
|
|
23
|
-
props: NotesBoxMetadata;
|
|
24
|
-
|
|
25
|
-
constructor() {}
|
|
26
|
-
|
|
27
|
-
ngOnInit() {}
|
|
28
|
-
}
|
|
File without changes
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
3
|
-
import { IonInput } from '@ionic/angular/standalone';
|
|
4
|
-
import { InputMetadata } from '../../types';
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
selector: 'val-number-input',
|
|
8
|
-
standalone: true,
|
|
9
|
-
imports: [ReactiveFormsModule, IonInput],
|
|
10
|
-
template: ` <ion-input [formControl]="props.control" type="number" [placeholder]="props.placeholder"></ion-input> `,
|
|
11
|
-
styleUrls: ['./number-input.component.scss'],
|
|
12
|
-
})
|
|
13
|
-
export class NumberInputComponent implements OnInit {
|
|
14
|
-
@Input() props: InputMetadata;
|
|
15
|
-
|
|
16
|
-
constructor() {}
|
|
17
|
-
|
|
18
|
-
ngOnInit() {}
|
|
19
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
3
|
-
import { IonButton, IonIcon, IonInput } from '@ionic/angular/standalone';
|
|
4
|
-
import { InputMetadata } from '../../types';
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
selector: 'val-password-input',
|
|
8
|
-
standalone: true,
|
|
9
|
-
imports: [ReactiveFormsModule, IonInput, IonButton, IonIcon],
|
|
10
|
-
template: `
|
|
11
|
-
<div class="input-container">
|
|
12
|
-
<ion-input
|
|
13
|
-
class="sign-in__input-password"
|
|
14
|
-
[formControl]="props.control"
|
|
15
|
-
[type]="hidePassword ? 'password' : 'text'"
|
|
16
|
-
[placeholder]="props.placeholder"
|
|
17
|
-
></ion-input>
|
|
18
|
-
<ion-button color="dark" fill="clear" (click)="hidePassword = !hidePassword" size="small">
|
|
19
|
-
<ion-icon slot="icon-only" [name]="hidePassword ? 'eye-off-outline' : 'eye-outline'"></ion-icon>
|
|
20
|
-
</ion-button>
|
|
21
|
-
</div>
|
|
22
|
-
`,
|
|
23
|
-
styleUrls: ['./password-input.component.scss'],
|
|
24
|
-
})
|
|
25
|
-
export class PasswordInputComponent implements OnInit {
|
|
26
|
-
@Input() props: InputMetadata;
|
|
27
|
-
|
|
28
|
-
hidePassword = true;
|
|
29
|
-
|
|
30
|
-
constructor() {}
|
|
31
|
-
|
|
32
|
-
ngOnInit() {}
|
|
33
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Component, Input, OnInit, ViewChild } from '@angular/core';
|
|
2
|
-
import { NgOtpInputComponent, NgOtpInputConfig, NgOtpInputModule } from 'ng-otp-input';
|
|
3
|
-
import { InputMetadata } from '../../types';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: 'val-pin-input',
|
|
7
|
-
standalone: true,
|
|
8
|
-
imports: [NgOtpInputModule],
|
|
9
|
-
template: `
|
|
10
|
-
<div class="otp">
|
|
11
|
-
<ng-otp-input [formCtrl]="props.control" [config]="otpInputConfig"></ng-otp-input>
|
|
12
|
-
</div>
|
|
13
|
-
`,
|
|
14
|
-
styleUrls: ['./pin-input.component.scss'],
|
|
15
|
-
})
|
|
16
|
-
export class PinInputComponent implements OnInit {
|
|
17
|
-
@ViewChild(NgOtpInputComponent, { static: false }) pinCode: NgOtpInputComponent | undefined;
|
|
18
|
-
|
|
19
|
-
@Input() props: InputMetadata;
|
|
20
|
-
|
|
21
|
-
codeLength = 5;
|
|
22
|
-
otpInputConfig: NgOtpInputConfig = {
|
|
23
|
-
inputStyles: {
|
|
24
|
-
'font-size': '36px',
|
|
25
|
-
width: '55px',
|
|
26
|
-
height: '55px',
|
|
27
|
-
},
|
|
28
|
-
inputClass: 'otp-input-box',
|
|
29
|
-
length: this.codeLength,
|
|
30
|
-
allowNumbersOnly: true,
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
constructor() {}
|
|
34
|
-
|
|
35
|
-
ngOnInit() {}
|
|
36
|
-
|
|
37
|
-
reset() {
|
|
38
|
-
if (this.pinCode) {
|
|
39
|
-
this.pinCode.setValue('');
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
@import '../../styles/mixins.scss';
|
|
2
|
-
|
|
3
|
-
.status-container {
|
|
4
|
-
min-height: pxToRem(100);
|
|
5
|
-
margin: pxToRem(16) pxToRem(8);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.progress-bar-container {
|
|
9
|
-
max-width: 60%;
|
|
10
|
-
margin: 0 auto;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.title-container {
|
|
14
|
-
margin-bottom: pxToRem(8);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.subtitle-container {
|
|
18
|
-
width: 100%;
|
|
19
|
-
display: flex;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.subtitle {
|
|
23
|
-
padding: pxToRem(16);
|
|
24
|
-
margin: 0 auto;
|
|
25
|
-
height: pxToRem(16);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.blink {
|
|
29
|
-
animation: blink 1s infinite alternate ease-in;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@keyframes blink {
|
|
33
|
-
0% {
|
|
34
|
-
opacity: 0;
|
|
35
|
-
margin-top: 6px;
|
|
36
|
-
}
|
|
37
|
-
100% {
|
|
38
|
-
opacity: 1;
|
|
39
|
-
margin-top: 0;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
-
import { ProgressBarComponent } from '../../atoms/progress-bar/progress-bar.component';
|
|
3
|
-
import { TextComponent } from '../../atoms/text/text.component';
|
|
4
|
-
import { TitleBlockComponent } from '../title-block/title-block.component';
|
|
5
|
-
import { ProgressStatusMetadata } from './types';
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: 'val-progress-status',
|
|
9
|
-
standalone: true,
|
|
10
|
-
imports: [TitleBlockComponent, ProgressBarComponent, TextComponent],
|
|
11
|
-
template: `
|
|
12
|
-
<div class="status-container">
|
|
13
|
-
<div class="title-container">
|
|
14
|
-
<val-title-block
|
|
15
|
-
[props]="{
|
|
16
|
-
position: 'center',
|
|
17
|
-
aboveTitle: props.titles.aboveTitle,
|
|
18
|
-
title: props.titles.title,
|
|
19
|
-
bellowTitle: props.titles.bellowTitle,
|
|
20
|
-
}"
|
|
21
|
-
></val-title-block>
|
|
22
|
-
</div>
|
|
23
|
-
<div class="progress-bar-container">
|
|
24
|
-
<val-progress-bar
|
|
25
|
-
[props]="{
|
|
26
|
-
progress: props.progress,
|
|
27
|
-
size: 'xlarge',
|
|
28
|
-
color: props.color,
|
|
29
|
-
rounded: true,
|
|
30
|
-
type: 'determinate',
|
|
31
|
-
buffer: 1,
|
|
32
|
-
}"
|
|
33
|
-
></val-progress-bar>
|
|
34
|
-
</div>
|
|
35
|
-
<div class="subtitle-container">
|
|
36
|
-
<div class="subtitle" [class.blink]="blinking">
|
|
37
|
-
<val-text [props]="{ content: Content, color: 'medium', bold: false, size: props.size }"></val-text>
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
`,
|
|
42
|
-
styleUrls: ['./progress-status.component.scss'],
|
|
43
|
-
})
|
|
44
|
-
export class ProgressStatusComponent implements OnInit {
|
|
45
|
-
@Input()
|
|
46
|
-
props: ProgressStatusMetadata;
|
|
47
|
-
|
|
48
|
-
currentIndex = 0;
|
|
49
|
-
blinking = false;
|
|
50
|
-
|
|
51
|
-
constructor() {}
|
|
52
|
-
|
|
53
|
-
ngOnInit() {
|
|
54
|
-
setInterval(() => {
|
|
55
|
-
this.blinking = !this.blinking;
|
|
56
|
-
}, 1000);
|
|
57
|
-
|
|
58
|
-
setInterval(() => {
|
|
59
|
-
this.getNextMessage();
|
|
60
|
-
}, 9000);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
get Content(): string {
|
|
64
|
-
return this.props.messages[this.currentIndex];
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
getNextMessage(): void {
|
|
68
|
-
this.currentIndex = (this.currentIndex + 1) % this.props.messages.length;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Color } from '@ionic/core';
|
|
2
|
-
import { TitleBlockMetada } from '../title-block/types';
|
|
3
|
-
|
|
4
|
-
export type ProgressStatusMetadata = {
|
|
5
|
-
progress: number;
|
|
6
|
-
titles: TitleBlockMetada;
|
|
7
|
-
color: Color;
|
|
8
|
-
size?: 'small' | 'medium' | 'large' | 'xlarge';
|
|
9
|
-
type?: 'determinate' | 'indeterminate';
|
|
10
|
-
messages: string[];
|
|
11
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
@import '../../styles/mixins.scss';
|
|
2
|
-
|
|
3
|
-
.container {
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.teleprompter-container {
|
|
10
|
-
overflow: hidden;
|
|
11
|
-
width: 100%;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.teleprompter-content {
|
|
15
|
-
white-space: nowrap;
|
|
16
|
-
animation: scroll-left 15s linear infinite;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@keyframes scroll-left {
|
|
20
|
-
0% {
|
|
21
|
-
transform: translateX(
|
|
22
|
-
100%
|
|
23
|
-
); /* Inicia la animación con el contenido desplazado completamente a la derecha */
|
|
24
|
-
}
|
|
25
|
-
100% {
|
|
26
|
-
transform: translateX(
|
|
27
|
-
-100%
|
|
28
|
-
); /* Termina la animación con el contenido desplazado completamente a la izquierda */
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.link {
|
|
33
|
-
margin: 0 pxToRem(4);
|
|
34
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
|
3
|
-
import { BoxComponent } from '../../atoms/box/box.component';
|
|
4
|
-
import { HrefComponent } from '../../atoms/href/href.component';
|
|
5
|
-
import { TextComponent } from '../../atoms/text/text.component';
|
|
6
|
-
import { ButtonGroupComponent } from '../button-group/button-group.component';
|
|
7
|
-
import { PrompterMetadata } from './types';
|
|
8
|
-
|
|
9
|
-
@Component({
|
|
10
|
-
selector: 'val-prompter',
|
|
11
|
-
standalone: true,
|
|
12
|
-
imports: [CommonModule, BoxComponent, ButtonGroupComponent, TextComponent, HrefComponent],
|
|
13
|
-
template: `
|
|
14
|
-
<val-box
|
|
15
|
-
class="teleprompter-container"
|
|
16
|
-
[props]="{ icon: '', bordered: props.bordered, color: props.color, leftBorder: false }"
|
|
17
|
-
>
|
|
18
|
-
<div class="container" [class.teleprompter-content]="props.teleprompter" body>
|
|
19
|
-
<div>
|
|
20
|
-
<val-text
|
|
21
|
-
[props]="{
|
|
22
|
-
content: props.content,
|
|
23
|
-
color: '',
|
|
24
|
-
bold: true,
|
|
25
|
-
size: 'large',
|
|
26
|
-
}"
|
|
27
|
-
></val-text>
|
|
28
|
-
</div>
|
|
29
|
-
<div *ngIf="props.buttons">
|
|
30
|
-
<val-button-group
|
|
31
|
-
class="buttons-container"
|
|
32
|
-
[props]="{ buttons: props.buttons, position: 'left', columned: false }"
|
|
33
|
-
(onClick)="clickHandler($event)"
|
|
34
|
-
></val-button-group>
|
|
35
|
-
</div>
|
|
36
|
-
<div *ngIf="props.hrefs">
|
|
37
|
-
<val-href class="link" *ngFor="let l of props.hrefs" [props]="l" (onClick)="clickHandler($event)"></val-href>
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
</val-box>
|
|
41
|
-
`,
|
|
42
|
-
styleUrls: ['./prompter.component.scss'],
|
|
43
|
-
})
|
|
44
|
-
export class PrompterComponent implements OnInit {
|
|
45
|
-
@Input()
|
|
46
|
-
props: PrompterMetadata;
|
|
47
|
-
|
|
48
|
-
@Output()
|
|
49
|
-
onClick = new EventEmitter<string>();
|
|
50
|
-
|
|
51
|
-
constructor() {}
|
|
52
|
-
|
|
53
|
-
ngOnInit() {}
|
|
54
|
-
|
|
55
|
-
clickHandler(token?: string) {
|
|
56
|
-
this.onClick.emit(token);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
File without changes
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { NgFor } from '@angular/common';
|
|
2
|
-
import { Component, Input, OnInit } from '@angular/core';
|
|
3
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
4
|
-
import { IonRadio, IonRadioGroup } from '@ionic/angular/standalone';
|
|
5
|
-
import { InputMetadata } from '../../types';
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: 'val-radio-input',
|
|
9
|
-
standalone: true,
|
|
10
|
-
imports: [NgFor, ReactiveFormsModule, IonRadioGroup, IonRadio],
|
|
11
|
-
template: `
|
|
12
|
-
<ion-radio-group [allowEmptySelection]="true" [formControl]="props.control">
|
|
13
|
-
<ng-container *ngFor="let o of props.options">
|
|
14
|
-
<ion-radio [value]="o.id">{{ o.name }}</ion-radio>
|
|
15
|
-
<br />
|
|
16
|
-
</ng-container>
|
|
17
|
-
</ion-radio-group>
|
|
18
|
-
`,
|
|
19
|
-
styleUrls: ['./radio-input.component.scss'],
|
|
20
|
-
})
|
|
21
|
-
export class RadioInputComponent implements OnInit {
|
|
22
|
-
@Input() props: InputMetadata;
|
|
23
|
-
|
|
24
|
-
constructor() {}
|
|
25
|
-
|
|
26
|
-
ngOnInit() {}
|
|
27
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import { IonSearchbar } from '@ionic/angular/standalone';
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: 'app-searchbar',
|
|
6
|
-
standalone: true,
|
|
7
|
-
imports: [IonSearchbar],
|
|
8
|
-
template: `
|
|
9
|
-
<ion-searchbar
|
|
10
|
-
mode="ios"
|
|
11
|
-
debounce="500"
|
|
12
|
-
placeholder="Búsqueda"
|
|
13
|
-
[disabled]="disabled"
|
|
14
|
-
showCancelButton="focus"
|
|
15
|
-
cancelButtonText="Cancelar"
|
|
16
|
-
(ionInput)="onSearch($event)"
|
|
17
|
-
(ionBlur)="onBlur()"
|
|
18
|
-
(ionFocus)="onFocus()"
|
|
19
|
-
>
|
|
20
|
-
</ion-searchbar>
|
|
21
|
-
`,
|
|
22
|
-
styleUrls: ['./searchbar.component.scss'],
|
|
23
|
-
})
|
|
24
|
-
export class SearchbarComponent {
|
|
25
|
-
@Input() disabled: boolean;
|
|
26
|
-
|
|
27
|
-
@Output() focusEvent = new EventEmitter<void>();
|
|
28
|
-
|
|
29
|
-
@Output() blurEvent = new EventEmitter<void>();
|
|
30
|
-
|
|
31
|
-
@Output() filterEvent = new EventEmitter<string>();
|
|
32
|
-
|
|
33
|
-
constructor() {}
|
|
34
|
-
|
|
35
|
-
onSearch($event: any) {
|
|
36
|
-
const searchTerm = $event.detail.value;
|
|
37
|
-
this.filterEvent.emit(searchTerm);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
onFocus() {
|
|
41
|
-
this.focusEvent.emit();
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
onBlur() {
|
|
45
|
-
this.blurEvent.emit();
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import '../../organisms/form/form.component.scss';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
-
import { FormControl, ReactiveFormsModule } from '@angular/forms';
|
|
3
|
-
import { IonInput } from '@ionic/angular/standalone';
|
|
4
|
-
import { InputMetadata } from '../../types';
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
selector: 'val-text-input',
|
|
8
|
-
standalone: true,
|
|
9
|
-
imports: [ReactiveFormsModule, IonInput],
|
|
10
|
-
template: ` <ion-input [formControl]="props.control" type="text" [placeholder]="props.placeholder"></ion-input> `,
|
|
11
|
-
styleUrls: ['./text-input.component.scss'],
|
|
12
|
-
})
|
|
13
|
-
export class TextInputComponent implements OnInit {
|
|
14
|
-
@Input() props: InputMetadata;
|
|
15
|
-
|
|
16
|
-
constructor() {}
|
|
17
|
-
|
|
18
|
-
ngOnInit() {}
|
|
19
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
@import '../../styles/mixins.scss';
|
|
2
|
-
|
|
3
|
-
val-button,
|
|
4
|
-
val-title,
|
|
5
|
-
val-display {
|
|
6
|
-
display: inline-block;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.titles-container {
|
|
10
|
-
width: 100%;
|
|
11
|
-
padding: pxToRem(4);
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
flex-wrap: wrap;
|
|
15
|
-
|
|
16
|
-
&.left {
|
|
17
|
-
align-content: flex-start;
|
|
18
|
-
align-items: start;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&.center {
|
|
22
|
-
align-content: center;
|
|
23
|
-
align-items: center;
|
|
24
|
-
text-align: center;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&.right {
|
|
28
|
-
align-content: flex-end;
|
|
29
|
-
align-items: end;
|
|
30
|
-
text-align: end;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@include media-medium {
|
|
34
|
-
padding: pxToRem(8);
|
|
35
|
-
}
|
|
36
|
-
}
|