valtech-components 2.0.26 → 2.0.28
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/ng-package.json +10 -0
- package/package.json +12 -14
- package/src/lib/components/atoms/avatar/avatar.component.scss +20 -0
- package/src/lib/components/atoms/avatar/avatar.component.ts +29 -0
- package/src/lib/components/atoms/avatar/types.ts +6 -0
- package/src/lib/components/atoms/box/box.component.scss +57 -0
- package/src/lib/components/atoms/box/box.component.ts +38 -0
- package/src/lib/components/atoms/box/types.ts +8 -0
- package/src/lib/components/atoms/button/button.component.scss +5 -0
- package/src/lib/components/atoms/button/button.component.ts +53 -0
- package/src/lib/components/atoms/button/factory.ts +444 -0
- package/src/lib/components/atoms/display/display.component.scss +17 -0
- package/src/lib/components/atoms/display/display.component.ts +25 -0
- package/src/lib/components/atoms/display/types.ts +7 -0
- package/src/lib/components/atoms/divider/divider.component.scss +62 -0
- package/src/lib/components/atoms/divider/divider.component.ts +18 -0
- package/src/lib/components/atoms/divider/types.ts +5 -0
- package/src/lib/components/atoms/href/href.component.scss +25 -0
- package/src/lib/components/atoms/href/href.component.ts +43 -0
- package/src/lib/components/atoms/href/types.ts +10 -0
- package/src/lib/components/atoms/icon/icon.component.scss +33 -0
- package/src/lib/components/atoms/icon/icon.component.ts +20 -0
- package/src/lib/components/atoms/icon/types.ts +7 -0
- package/src/lib/components/atoms/image/image.component.scss +70 -0
- package/src/lib/components/atoms/image/image.component.ts +40 -0
- package/src/lib/components/atoms/image/types.ts +11 -0
- package/src/lib/components/atoms/progress-bar/progress-bar.component.scss +22 -0
- package/src/lib/components/atoms/progress-bar/progress-bar.component.ts +29 -0
- package/src/lib/components/atoms/progress-bar/types.ts +10 -0
- package/src/lib/components/atoms/text/text.component.scss +33 -0
- package/src/lib/components/atoms/text/text.component.ts +23 -0
- package/src/lib/components/atoms/text/types.ts +8 -0
- package/src/lib/components/atoms/title/title.component.scss +17 -0
- package/src/lib/components/atoms/title/title.component.ts +27 -0
- package/src/lib/components/atoms/title/types.ts +8 -0
- package/src/lib/components/molecules/alert-box/alert-box.component.scss +10 -0
- package/src/lib/components/molecules/alert-box/alert-box.component.ts +28 -0
- package/{lib/components/molecules/alert-box/types.d.ts → src/lib/components/molecules/alert-box/types.ts} +4 -3
- package/src/lib/components/molecules/button-group/button-group.component.scss +31 -0
- package/src/lib/components/molecules/button-group/button-group.component.ts +44 -0
- package/src/lib/components/molecules/button-group/types.ts +7 -0
- package/src/lib/components/molecules/card/card.component.scss +46 -0
- package/src/lib/components/molecules/card/card.component.ts +218 -0
- package/src/lib/components/molecules/card/types.ts +36 -0
- package/src/lib/components/molecules/check-input/check-input.component.scss +0 -0
- package/src/lib/components/molecules/check-input/check-input.component.ts +16 -0
- package/src/lib/components/molecules/comment-input/comment-input.component.scss +0 -0
- package/src/lib/components/molecules/comment-input/comment-input.component.ts +22 -0
- package/src/lib/components/molecules/content-loader/content-loader.component.scss +42 -0
- package/src/lib/components/molecules/content-loader/content-loader.component.ts +27 -0
- package/src/lib/components/molecules/content-loader/types.ts +8 -0
- package/src/lib/components/molecules/date-input/date-input.component.scss +11 -0
- package/src/lib/components/molecules/date-input/date-input.component.ts +47 -0
- package/src/lib/components/molecules/email-input/email-input.component.scss +0 -0
- package/src/lib/components/molecules/email-input/email-input.component.ts +20 -0
- package/src/lib/components/molecules/file-input/file-input.component.scss +11 -0
- package/src/lib/components/molecules/file-input/file-input.component.ts +56 -0
- package/src/lib/components/molecules/hint/hint.component.scss +5 -0
- package/src/lib/components/molecules/hint/hint.component.ts +42 -0
- package/src/lib/components/molecules/hour-input/hour-input.component.scss +0 -0
- package/src/lib/components/molecules/hour-input/hour-input.component.ts +19 -0
- package/src/lib/components/molecules/link/link.component.scss +5 -0
- package/src/lib/components/molecules/link/link.component.ts +52 -0
- package/src/lib/components/molecules/link/types.ts +10 -0
- package/src/lib/components/molecules/links-cake/links-cake.component.scss +9 -0
- package/src/lib/components/molecules/links-cake/links-cake.component.ts +30 -0
- package/{lib/components/molecules/links-cake/types.d.ts → src/lib/components/molecules/links-cake/types.ts} +4 -3
- package/src/lib/components/molecules/notes-box/notes-box.component.scss +5 -0
- package/src/lib/components/molecules/notes-box/notes-box.component.ts +28 -0
- package/src/lib/components/molecules/notes-box/types.ts +9 -0
- package/src/lib/components/molecules/number-input/number-input.component.scss +0 -0
- package/src/lib/components/molecules/number-input/number-input.component.ts +19 -0
- package/src/lib/components/molecules/password-input/password-input.component.scss +7 -0
- package/src/lib/components/molecules/password-input/password-input.component.ts +33 -0
- package/src/lib/components/molecules/pin-input/pin-input.component.scss +13 -0
- package/src/lib/components/molecules/pin-input/pin-input.component.ts +42 -0
- package/src/lib/components/molecules/progress-status/progress-status.component.scss +41 -0
- package/src/lib/components/molecules/progress-status/progress-status.component.ts +70 -0
- package/src/lib/components/molecules/progress-status/types.ts +11 -0
- package/src/lib/components/molecules/prompter/prompter.component.scss +34 -0
- package/src/lib/components/molecules/prompter/prompter.component.ts +58 -0
- package/{lib/components/molecules/prompter/types.d.ts → src/lib/components/molecules/prompter/types.ts} +7 -6
- package/src/lib/components/molecules/radio-input/radio-input.component.scss +0 -0
- package/src/lib/components/molecules/radio-input/radio-input.component.ts +27 -0
- package/src/lib/components/molecules/searchbar/searchbar.component.scss +9 -0
- package/src/lib/components/molecules/searchbar/searchbar.component.ts +47 -0
- package/src/lib/components/molecules/text-input/text-input.component.scss +1 -0
- package/src/lib/components/molecules/text-input/text-input.component.ts +19 -0
- package/src/lib/components/molecules/title-block/title-block.component.scss +36 -0
- package/src/lib/components/molecules/title-block/title-block.component.ts +50 -0
- package/src/lib/components/molecules/title-block/types.ts +14 -0
- package/src/lib/components/organisms/banner/banner.component.scss +45 -0
- package/src/lib/components/organisms/banner/banner.component.ts +57 -0
- package/src/lib/components/organisms/banner/types.ts +13 -0
- package/src/lib/components/organisms/footer/footer.component.scss +3 -0
- package/src/lib/components/organisms/footer/footer.component.ts +40 -0
- package/{lib/components/organisms/footer/types.d.ts → src/lib/components/organisms/footer/types.ts} +4 -3
- package/src/lib/components/organisms/form/factory.ts +11 -0
- 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 +63 -0
- package/src/lib/components/organisms/form/form.component.scss +16 -0
- package/src/lib/components/organisms/form/form.component.ts +183 -0
- package/src/lib/components/organisms/header/header.component.scss +0 -0
- package/src/lib/components/organisms/header/header.component.ts +32 -0
- package/{lib/components/organisms/header/types.d.ts → src/lib/components/organisms/header/types.ts} +4 -3
- package/src/lib/components/organisms/no-content/no-content.component.scss +11 -0
- package/src/lib/components/organisms/no-content/no-content.component.ts +32 -0
- package/{lib/components/organisms/no-content/types.d.ts → src/lib/components/organisms/no-content/types.ts} +3 -2
- package/src/lib/components/organisms/toolbar/toolbar.component.scss +13 -0
- package/src/lib/components/organisms/toolbar/toolbar.component.ts +119 -0
- package/src/lib/components/organisms/toolbar/types.ts +12 -0
- package/src/lib/components/organisms/wizard/types.ts +24 -0
- 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 +90 -0
- package/src/lib/components/organisms/wizard/wizard.component.scss +15 -0
- package/src/lib/components/organisms/wizard/wizard.component.ts +99 -0
- package/src/lib/components/templates/layout/layout.component.scss +22 -0
- package/src/lib/components/templates/layout/layout.component.ts +14 -0
- package/src/lib/components/templates/simple/simple.component.scss +30 -0
- package/src/lib/components/templates/simple/simple.component.ts +60 -0
- package/{lib/components/templates/simple/types.d.ts → src/lib/components/templates/simple/types.ts} +6 -5
- package/src/lib/components/types.ts +122 -0
- package/src/lib/services/download.service.ts +58 -0
- package/src/lib/services/in-app-browser.service.ts +19 -0
- package/src/lib/services/lang-provider/components/lang-settings.ts +14 -0
- package/src/lib/services/lang-provider/components/theme-settings.ts +16 -0
- package/src/lib/services/lang-provider/content.ts +14 -0
- package/src/lib/services/lang-provider/lang-provider.service.ts +38 -0
- package/src/lib/services/lang-provider/types.ts +25 -0
- package/src/lib/services/local-storage.service.ts +18 -0
- package/src/lib/services/navigation.service.ts +39 -0
- package/src/lib/services/theme.service.ts +102 -0
- package/{lib/services/types.d.ts → src/lib/services/types.ts} +4 -2
- package/src/lib/shared/constants/storage.ts +2 -0
- package/src/lib/shared/utils/dom.ts +19 -0
- package/{public-api.d.ts → src/public-api.ts} +13 -0
- package/tsconfig.lib.json +14 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +14 -0
- package/esm2022/lib/components/atoms/avatar/avatar.component.mjs +0 -31
- package/esm2022/lib/components/atoms/avatar/types.mjs +0 -2
- package/esm2022/lib/components/atoms/box/box.component.mjs +0 -47
- package/esm2022/lib/components/atoms/box/types.mjs +0 -2
- package/esm2022/lib/components/atoms/button/button.component.mjs +0 -69
- package/esm2022/lib/components/atoms/button/factory.mjs +0 -217
- package/esm2022/lib/components/atoms/display/display.component.mjs +0 -28
- package/esm2022/lib/components/atoms/display/types.mjs +0 -2
- package/esm2022/lib/components/atoms/divider/divider.component.mjs +0 -17
- package/esm2022/lib/components/atoms/divider/types.mjs +0 -2
- package/esm2022/lib/components/atoms/href/href.component.mjs +0 -51
- package/esm2022/lib/components/atoms/href/types.mjs +0 -2
- package/esm2022/lib/components/atoms/icon/icon.component.mjs +0 -18
- package/esm2022/lib/components/atoms/icon/types.mjs +0 -2
- package/esm2022/lib/components/atoms/image/image.component.mjs +0 -50
- package/esm2022/lib/components/atoms/image/types.mjs +0 -2
- package/esm2022/lib/components/atoms/progress-bar/progress-bar.component.mjs +0 -36
- package/esm2022/lib/components/atoms/progress-bar/types.mjs +0 -2
- package/esm2022/lib/components/atoms/text/text.component.mjs +0 -24
- package/esm2022/lib/components/atoms/text/types.mjs +0 -2
- package/esm2022/lib/components/atoms/title/title.component.mjs +0 -31
- package/esm2022/lib/components/atoms/title/types.mjs +0 -2
- package/esm2022/lib/components/molecules/alert-box/alert-box.component.mjs +0 -32
- package/esm2022/lib/components/molecules/alert-box/types.mjs +0 -2
- package/esm2022/lib/components/molecules/button-group/button-group.component.mjs +0 -49
- package/esm2022/lib/components/molecules/button-group/types.mjs +0 -2
- package/esm2022/lib/components/molecules/card/card.component.mjs +0 -369
- package/esm2022/lib/components/molecules/card/types.mjs +0 -16
- package/esm2022/lib/components/molecules/check-input/check-input.component.mjs +0 -15
- package/esm2022/lib/components/molecules/comment-input/comment-input.component.mjs +0 -23
- package/esm2022/lib/components/molecules/content-loader/content-loader.component.mjs +0 -32
- package/esm2022/lib/components/molecules/content-loader/types.mjs +0 -2
- package/esm2022/lib/components/molecules/date-input/date-input.component.mjs +0 -73
- package/esm2022/lib/components/molecules/email-input/email-input.component.mjs +0 -19
- package/esm2022/lib/components/molecules/file-input/file-input.component.mjs +0 -69
- package/esm2022/lib/components/molecules/hint/hint.component.mjs +0 -52
- package/esm2022/lib/components/molecules/hour-input/hour-input.component.mjs +0 -18
- package/esm2022/lib/components/molecules/link/link.component.mjs +0 -37
- package/esm2022/lib/components/molecules/link/types.mjs +0 -2
- package/esm2022/lib/components/molecules/links-cake/links-cake.component.mjs +0 -37
- package/esm2022/lib/components/molecules/links-cake/types.mjs +0 -2
- package/esm2022/lib/components/molecules/notes-box/notes-box.component.mjs +0 -33
- package/esm2022/lib/components/molecules/notes-box/types.mjs +0 -2
- package/esm2022/lib/components/molecules/number-input/number-input.component.mjs +0 -18
- package/esm2022/lib/components/molecules/password-input/password-input.component.mjs +0 -44
- package/esm2022/lib/components/molecules/pin-input/pin-input.component.mjs +0 -45
- package/esm2022/lib/components/molecules/progress-status/progress-status.component.mjs +0 -94
- package/esm2022/lib/components/molecules/progress-status/types.mjs +0 -2
- package/esm2022/lib/components/molecules/prompter/prompter.component.mjs +0 -84
- package/esm2022/lib/components/molecules/prompter/types.mjs +0 -2
- package/esm2022/lib/components/molecules/radio-input/radio-input.component.mjs +0 -33
- package/esm2022/lib/components/molecules/searchbar/searchbar.component.mjs +0 -61
- package/esm2022/lib/components/molecules/text-input/text-input.component.mjs +0 -18
- package/esm2022/lib/components/molecules/title-block/title-block.component.mjs +0 -77
- package/esm2022/lib/components/molecules/title-block/types.mjs +0 -2
- package/esm2022/lib/components/organisms/banner/banner.component.mjs +0 -75
- package/esm2022/lib/components/organisms/banner/types.mjs +0 -2
- package/esm2022/lib/components/organisms/footer/footer.component.mjs +0 -50
- package/esm2022/lib/components/organisms/footer/types.mjs +0 -2
- package/esm2022/lib/components/organisms/form/factory.mjs +0 -8
- package/esm2022/lib/components/organisms/form/form-footer/form-footer.component.mjs +0 -76
- package/esm2022/lib/components/organisms/form/form.component.mjs +0 -230
- package/esm2022/lib/components/organisms/header/header.component.mjs +0 -33
- package/esm2022/lib/components/organisms/header/types.mjs +0 -2
- package/esm2022/lib/components/organisms/no-content/no-content.component.mjs +0 -34
- package/esm2022/lib/components/organisms/no-content/types.mjs +0 -2
- package/esm2022/lib/components/organisms/toolbar/toolbar.component.mjs +0 -168
- package/esm2022/lib/components/organisms/toolbar/types.mjs +0 -2
- package/esm2022/lib/components/organisms/wizard/types.mjs +0 -7
- package/esm2022/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.mjs +0 -107
- package/esm2022/lib/components/organisms/wizard/wizard.component.mjs +0 -103
- package/esm2022/lib/components/templates/layout/layout.component.mjs +0 -19
- package/esm2022/lib/components/templates/simple/simple.component.mjs +0 -72
- package/esm2022/lib/components/templates/simple/types.mjs +0 -2
- package/esm2022/lib/components/types.mjs +0 -36
- package/esm2022/lib/services/download.service.mjs +0 -63
- package/esm2022/lib/services/lang-provider/components/lang-settings.mjs +0 -13
- package/esm2022/lib/services/lang-provider/components/theme-settings.mjs +0 -15
- package/esm2022/lib/services/lang-provider/content.mjs +0 -8
- package/esm2022/lib/services/lang-provider/lang-provider.service.mjs +0 -39
- package/esm2022/lib/services/lang-provider/types.mjs +0 -14
- package/esm2022/lib/services/local-storage.service.mjs +0 -16
- package/esm2022/lib/services/theme.service.mjs +0 -97
- package/esm2022/lib/services/types.mjs +0 -3
- package/esm2022/lib/shared/constants/storage.mjs +0 -3
- package/esm2022/lib/shared/utils/dom.mjs +0 -17
- package/esm2022/public-api.mjs +0 -88
- package/esm2022/valtech-components.mjs +0 -5
- package/fesm2022/valtech-components.mjs +0 -2987
- package/fesm2022/valtech-components.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/components/atoms/avatar/avatar.component.d.ts +0 -12
- package/lib/components/atoms/avatar/types.d.ts +0 -6
- package/lib/components/atoms/box/box.component.d.ts +0 -12
- package/lib/components/atoms/box/types.d.ts +0 -7
- package/lib/components/atoms/button/button.component.d.ts +0 -20
- package/lib/components/atoms/button/factory.d.ts +0 -71
- package/lib/components/atoms/display/display.component.d.ts +0 -10
- package/lib/components/atoms/display/types.d.ts +0 -6
- package/lib/components/atoms/divider/divider.component.d.ts +0 -10
- package/lib/components/atoms/divider/types.d.ts +0 -5
- package/lib/components/atoms/href/href.component.d.ts +0 -15
- package/lib/components/atoms/href/types.d.ts +0 -9
- package/lib/components/atoms/icon/icon.component.d.ts +0 -10
- package/lib/components/atoms/icon/types.d.ts +0 -6
- package/lib/components/atoms/image/image.component.d.ts +0 -12
- package/lib/components/atoms/image/types.d.ts +0 -11
- package/lib/components/atoms/progress-bar/progress-bar.component.d.ts +0 -10
- package/lib/components/atoms/progress-bar/types.d.ts +0 -9
- package/lib/components/atoms/text/text.component.d.ts +0 -10
- package/lib/components/atoms/text/types.d.ts +0 -7
- package/lib/components/atoms/title/title.component.d.ts +0 -10
- package/lib/components/atoms/title/types.d.ts +0 -7
- package/lib/components/molecules/alert-box/alert-box.component.d.ts +0 -10
- package/lib/components/molecules/button-group/button-group.component.d.ts +0 -13
- package/lib/components/molecules/button-group/types.d.ts +0 -6
- package/lib/components/molecules/card/card.component.d.ts +0 -16
- package/lib/components/molecules/card/types.d.ts +0 -32
- package/lib/components/molecules/check-input/check-input.component.d.ts +0 -8
- package/lib/components/molecules/comment-input/comment-input.component.d.ts +0 -10
- package/lib/components/molecules/content-loader/content-loader.component.d.ts +0 -10
- package/lib/components/molecules/content-loader/types.d.ts +0 -7
- package/lib/components/molecules/date-input/date-input.component.d.ts +0 -10
- package/lib/components/molecules/email-input/email-input.component.d.ts +0 -10
- package/lib/components/molecules/file-input/file-input.component.d.ts +0 -15
- package/lib/components/molecules/hint/hint.component.d.ts +0 -11
- package/lib/components/molecules/hour-input/hour-input.component.d.ts +0 -10
- package/lib/components/molecules/link/link.component.d.ts +0 -12
- package/lib/components/molecules/link/types.d.ts +0 -6
- package/lib/components/molecules/links-cake/links-cake.component.d.ts +0 -10
- package/lib/components/molecules/notes-box/notes-box.component.d.ts +0 -10
- package/lib/components/molecules/notes-box/types.d.ts +0 -8
- package/lib/components/molecules/number-input/number-input.component.d.ts +0 -10
- package/lib/components/molecules/password-input/password-input.component.d.ts +0 -11
- package/lib/components/molecules/pin-input/pin-input.component.d.ts +0 -15
- package/lib/components/molecules/progress-status/progress-status.component.d.ts +0 -14
- package/lib/components/molecules/progress-status/types.d.ts +0 -10
- package/lib/components/molecules/prompter/prompter.component.d.ts +0 -12
- package/lib/components/molecules/radio-input/radio-input.component.d.ts +0 -10
- package/lib/components/molecules/searchbar/searchbar.component.d.ts +0 -14
- package/lib/components/molecules/text-input/text-input.component.d.ts +0 -10
- package/lib/components/molecules/title-block/title-block.component.d.ts +0 -10
- package/lib/components/molecules/title-block/types.d.ts +0 -12
- package/lib/components/organisms/banner/banner.component.d.ts +0 -14
- package/lib/components/organisms/banner/types.d.ts +0 -12
- package/lib/components/organisms/footer/footer.component.d.ts +0 -12
- package/lib/components/organisms/form/factory.d.ts +0 -5
- package/lib/components/organisms/form/form-footer/form-footer.component.d.ts +0 -15
- package/lib/components/organisms/form/form.component.d.ts +0 -23
- package/lib/components/organisms/header/header.component.d.ts +0 -12
- package/lib/components/organisms/no-content/no-content.component.d.ts +0 -12
- package/lib/components/organisms/toolbar/toolbar.component.d.ts +0 -21
- package/lib/components/organisms/toolbar/types.d.ts +0 -11
- package/lib/components/organisms/wizard/types.d.ts +0 -20
- package/lib/components/organisms/wizard/wizard-footer/wizard-footer.component.d.ts +0 -21
- package/lib/components/organisms/wizard/wizard.component.d.ts +0 -22
- package/lib/components/templates/layout/layout.component.d.ts +0 -5
- package/lib/components/templates/simple/simple.component.d.ts +0 -7
- package/lib/components/types.d.ts +0 -113
- package/lib/services/download.service.d.ts +0 -8
- package/lib/services/lang-provider/components/lang-settings.d.ts +0 -3
- package/lib/services/lang-provider/components/theme-settings.d.ts +0 -3
- package/lib/services/lang-provider/content.d.ts +0 -6
- package/lib/services/lang-provider/lang-provider.service.d.ts +0 -17
- package/lib/services/lang-provider/types.d.ts +0 -15
- package/lib/services/local-storage.service.d.ts +0 -6
- package/lib/services/theme.service.d.ts +0 -27
- package/lib/shared/constants/storage.d.ts +0 -2
- package/lib/shared/utils/dom.d.ts +0 -3
|
@@ -0,0 +1,444 @@
|
|
|
1
|
+
import { ButtonMetadata, IconMetada } from '../../types';
|
|
2
|
+
|
|
3
|
+
export const Icon = (name: string, slot: 'start' | 'end'): IconMetada => {
|
|
4
|
+
return {
|
|
5
|
+
name,
|
|
6
|
+
slot,
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
/* name convention: COLOR FILL SIZE [optionals: SHAPE EXPAND ICON HREF/DOWNLOAD] TYPE */
|
|
11
|
+
|
|
12
|
+
export const BaseDefault = (text: string, type: 'button' | 'submit' | 'reset'): ButtonMetadata => {
|
|
13
|
+
return {
|
|
14
|
+
color: 'primary',
|
|
15
|
+
state: 'ENABLED',
|
|
16
|
+
text,
|
|
17
|
+
size: 'default',
|
|
18
|
+
type,
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const ClearDefault = (text: string, type: 'button' | 'submit' | 'reset'): ButtonMetadata => {
|
|
23
|
+
return { ...BaseDefault(text, type), fill: 'clear' };
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const ClearDefaultRound = (
|
|
27
|
+
text: string,
|
|
28
|
+
type: 'button' | 'submit' | 'reset'
|
|
29
|
+
): ButtonMetadata => {
|
|
30
|
+
return { ...ClearDefault(text, type), shape: 'round' };
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const SolidDefault = (text: string, type: 'button' | 'submit' | 'reset'): ButtonMetadata => {
|
|
34
|
+
return { ...BaseDefault(text, type), fill: 'solid' };
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export const SolidDefaultRound = (
|
|
38
|
+
text: string,
|
|
39
|
+
type: 'button' | 'submit' | 'reset'
|
|
40
|
+
): ButtonMetadata => {
|
|
41
|
+
return { ...SolidDefault(text, type), shape: 'round' };
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export const OutlineDefault = (
|
|
45
|
+
text: string,
|
|
46
|
+
type: 'button' | 'submit' | 'reset'
|
|
47
|
+
): ButtonMetadata => {
|
|
48
|
+
return { ...BaseDefault(text, type), fill: 'outline' };
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export const OutlineDefaultRound = (
|
|
52
|
+
text: string,
|
|
53
|
+
type: 'button' | 'submit' | 'reset'
|
|
54
|
+
): ButtonMetadata => {
|
|
55
|
+
return { ...OutlineDefault(text, type), shape: 'round' };
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export const ClearDefaultFull = (
|
|
59
|
+
text: string,
|
|
60
|
+
type: 'button' | 'submit' | 'reset'
|
|
61
|
+
): ButtonMetadata => {
|
|
62
|
+
return { ...ClearDefault(text, type), expand: 'full' };
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export const ClearDefaultRoundFull = (
|
|
66
|
+
text: string,
|
|
67
|
+
type: 'button' | 'submit' | 'reset'
|
|
68
|
+
): ButtonMetadata => {
|
|
69
|
+
return { ...ClearDefaultRound(text, type), expand: 'full' };
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export const ClearDefaultBlock = (
|
|
73
|
+
text: string,
|
|
74
|
+
type: 'button' | 'submit' | 'reset'
|
|
75
|
+
): ButtonMetadata => {
|
|
76
|
+
return { ...ClearDefault(text, type), expand: 'block' };
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export const ClearDefaultRoundBlock = (
|
|
80
|
+
text: string,
|
|
81
|
+
type: 'button' | 'submit' | 'reset'
|
|
82
|
+
): ButtonMetadata => {
|
|
83
|
+
return { ...ClearDefaultRound(text, type), expand: 'block' };
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export const SolidDefaultFull = (
|
|
87
|
+
text: string,
|
|
88
|
+
type: 'button' | 'submit' | 'reset'
|
|
89
|
+
): ButtonMetadata => {
|
|
90
|
+
return { ...SolidDefault(text, type), expand: 'full' };
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export const SolidDefaultRoundFull = (
|
|
94
|
+
text: string,
|
|
95
|
+
type: 'button' | 'submit' | 'reset'
|
|
96
|
+
): ButtonMetadata => {
|
|
97
|
+
return { ...SolidDefaultRound(text, type), expand: 'full' };
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export const SolidDefaultBlock = (
|
|
101
|
+
text: string,
|
|
102
|
+
type: 'button' | 'submit' | 'reset'
|
|
103
|
+
): ButtonMetadata => {
|
|
104
|
+
return { ...SolidDefault(text, type), expand: 'block' };
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
export const SolidDefaultRoundBlock = (
|
|
108
|
+
text: string,
|
|
109
|
+
type: 'button' | 'submit' | 'reset'
|
|
110
|
+
): ButtonMetadata => {
|
|
111
|
+
return { ...SolidDefaultRound(text, type), expand: 'block' };
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export const OutlineDefaultFull = (
|
|
115
|
+
text: string,
|
|
116
|
+
type: 'button' | 'submit' | 'reset'
|
|
117
|
+
): ButtonMetadata => {
|
|
118
|
+
return { ...OutlineDefault(text, type), expand: 'full' };
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export const OutlineDefaultRoundFull = (
|
|
122
|
+
text: string,
|
|
123
|
+
type: 'button' | 'submit' | 'reset'
|
|
124
|
+
): ButtonMetadata => {
|
|
125
|
+
return { ...OutlineDefaultRound(text, type), expand: 'full' };
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
export const OutlineDefaultBlock = (
|
|
129
|
+
text: string,
|
|
130
|
+
type: 'button' | 'submit' | 'reset'
|
|
131
|
+
): ButtonMetadata => {
|
|
132
|
+
return { ...OutlineDefault(text, type), expand: 'block' };
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
export const OutlineDefaultRoundBlock = (
|
|
136
|
+
text: string,
|
|
137
|
+
type: 'button' | 'submit' | 'reset'
|
|
138
|
+
): ButtonMetadata => {
|
|
139
|
+
return { ...OutlineDefaultRound(text, type), expand: 'block' };
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
export const SolidDefaultButton = (text: string): ButtonMetadata => {
|
|
143
|
+
return SolidDefault(text, 'button');
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
export const SolidSmallButton = (text: string): ButtonMetadata => {
|
|
147
|
+
return { ...SolidDefault(text, 'button'), size: 'small' };
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
export const SolidLargeButton = (text: string): ButtonMetadata => {
|
|
151
|
+
return { ...SolidDefault(text, 'button'), size: 'large' };
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
export const SolidDefaultRoundButton = (text: string): ButtonMetadata => {
|
|
155
|
+
return SolidDefaultRound(text, 'button');
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
export const SolidSmallRoundButton = (text: string): ButtonMetadata => {
|
|
159
|
+
return { ...SolidDefaultRound(text, 'button'), size: 'small' };
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
export const SolidLargeRoundButton = (text: string): ButtonMetadata => {
|
|
163
|
+
return { ...SolidDefaultRound(text, 'button'), size: 'large' };
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
export const SolidFullButton = (text: string): ButtonMetadata => {
|
|
167
|
+
return SolidDefaultFull(text, 'button');
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
export const SolidBlockButton = (text: string): ButtonMetadata => {
|
|
171
|
+
return SolidDefaultBlock(text, 'button');
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
/** PRIMARY */
|
|
175
|
+
|
|
176
|
+
export const PrimarySolidDefaultRoundButton = (text: string): ButtonMetadata => {
|
|
177
|
+
return { ...SolidDefaultRoundButton(text), color: 'primary' };
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
export const PrimarySolidDefaultRoundIconButton = (
|
|
181
|
+
text: string,
|
|
182
|
+
icon: IconMetada
|
|
183
|
+
): ButtonMetadata => {
|
|
184
|
+
return { ...PrimarySolidDefaultRoundButton(text), icon };
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
export const PrimarySolidDefaultRoundHrefButton = (
|
|
188
|
+
text: string,
|
|
189
|
+
href: string,
|
|
190
|
+
target: '_blank' | '_self' | '_parent' | '_top'
|
|
191
|
+
): ButtonMetadata => {
|
|
192
|
+
return { ...PrimarySolidDefaultRoundButton(text), href, target };
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
export const PrimarySolidDefaultRoundIconHrefButton = (
|
|
196
|
+
text: string,
|
|
197
|
+
icon: IconMetada,
|
|
198
|
+
href: string,
|
|
199
|
+
target: '_blank' | '_self' | '_parent' | '_top'
|
|
200
|
+
): ButtonMetadata => {
|
|
201
|
+
return { ...PrimarySolidDefaultRoundIconButton(text, icon), href, target };
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
export const PrimarySolidSmallRoundButton = (text: string): ButtonMetadata => {
|
|
205
|
+
return { ...SolidSmallRoundButton(text), color: 'primary' };
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
export const PrimarySolidSmallRoundIconButton = (
|
|
209
|
+
text: string,
|
|
210
|
+
icon: IconMetada
|
|
211
|
+
): ButtonMetadata => {
|
|
212
|
+
return { ...PrimarySolidSmallRoundButton(text), icon };
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
export const PrimarySolidSmallRoundHrefButton = (
|
|
216
|
+
text: string,
|
|
217
|
+
href: string,
|
|
218
|
+
target: '_blank' | '_self' | '_parent' | '_top'
|
|
219
|
+
): ButtonMetadata => {
|
|
220
|
+
return { ...PrimarySolidSmallRoundButton(text), href, target };
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
export const PrimarySolidSmallRoundIconHrefButton = (
|
|
224
|
+
text: string,
|
|
225
|
+
icon: IconMetada,
|
|
226
|
+
href: string,
|
|
227
|
+
target: '_blank' | '_self' | '_parent' | '_top'
|
|
228
|
+
): ButtonMetadata => {
|
|
229
|
+
return { ...PrimarySolidSmallRoundIconButton(text, icon), href, target };
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
export const PrimarySolidLargeRoundButton = (text: string): ButtonMetadata => {
|
|
233
|
+
return { ...SolidLargeRoundButton(text), color: 'primary' };
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
export const PrimarySolidLargeRoundIconButton = (
|
|
237
|
+
text: string,
|
|
238
|
+
icon: IconMetada
|
|
239
|
+
): ButtonMetadata => {
|
|
240
|
+
return { ...PrimarySolidLargeRoundButton(text), icon };
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
export const PrimarySolidLargeRoundHrefButton = (
|
|
244
|
+
text: string,
|
|
245
|
+
href: string,
|
|
246
|
+
target: '_blank' | '_self' | '_parent' | '_top'
|
|
247
|
+
): ButtonMetadata => {
|
|
248
|
+
return { ...PrimarySolidLargeRoundButton(text), href, target };
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
export const PrimarySolidLargeRoundIconHrefButton = (
|
|
252
|
+
text: string,
|
|
253
|
+
icon: IconMetada,
|
|
254
|
+
href: string,
|
|
255
|
+
target: '_blank' | '_self' | '_parent' | '_top'
|
|
256
|
+
): ButtonMetadata => {
|
|
257
|
+
return { ...PrimarySolidLargeRoundIconButton(text, icon), href, target };
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
export const PrimarySolidBlockButton = (text: string): ButtonMetadata => {
|
|
261
|
+
return { ...SolidBlockButton(text), color: 'primary' };
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
export const PrimarySolidBlockIconButton = (text: string, icon: IconMetada): ButtonMetadata => {
|
|
265
|
+
return { ...PrimarySolidBlockButton(text), icon };
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
export const PrimarySolidBlockHrefButton = (
|
|
269
|
+
text: string,
|
|
270
|
+
href: string,
|
|
271
|
+
target: '_blank' | '_self' | '_parent' | '_top'
|
|
272
|
+
): ButtonMetadata => {
|
|
273
|
+
return { ...PrimarySolidBlockButton(text), href, target };
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
export const PrimarySolidBlockIconHrefButton = (
|
|
277
|
+
text: string,
|
|
278
|
+
icon: IconMetada,
|
|
279
|
+
href: string,
|
|
280
|
+
target: '_blank' | '_self' | '_parent' | '_top'
|
|
281
|
+
): ButtonMetadata => {
|
|
282
|
+
return { ...PrimarySolidBlockIconButton(text, icon), href, target };
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
export const PrimarySolidFullButton = (text: string): ButtonMetadata => {
|
|
286
|
+
return { ...SolidFullButton(text), color: 'primary' };
|
|
287
|
+
};
|
|
288
|
+
|
|
289
|
+
export const PrimarySolidFullIconButton = (text: string, icon: IconMetada): ButtonMetadata => {
|
|
290
|
+
return { ...PrimarySolidFullButton(text), icon };
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
export const PrimarySolidFullHrefButton = (
|
|
294
|
+
text: string,
|
|
295
|
+
href: string,
|
|
296
|
+
target: '_blank' | '_self' | '_parent' | '_top'
|
|
297
|
+
): ButtonMetadata => {
|
|
298
|
+
return { ...PrimarySolidFullButton(text), href, target };
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
export const PrimarySolidFullIconHrefButton = (
|
|
302
|
+
text: string,
|
|
303
|
+
icon: IconMetada,
|
|
304
|
+
href: string,
|
|
305
|
+
target: '_blank' | '_self' | '_parent' | '_top'
|
|
306
|
+
): ButtonMetadata => {
|
|
307
|
+
return { ...PrimarySolidFullIconButton(text, icon), href, target };
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
/** SECONDARY */
|
|
311
|
+
|
|
312
|
+
export const SecondarySolidDefaultRoundButton = (text: string): ButtonMetadata => {
|
|
313
|
+
return { ...SolidDefaultRoundButton(text), color: 'secondary' };
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
export const SecondarySolidDefaultRoundIconButton = (
|
|
317
|
+
text: string,
|
|
318
|
+
icon: IconMetada
|
|
319
|
+
): ButtonMetadata => {
|
|
320
|
+
return { ...SecondarySolidDefaultRoundButton(text), icon };
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
export const SecondarySolidDefaultRoundHrefButton = (
|
|
324
|
+
text: string,
|
|
325
|
+
href: string,
|
|
326
|
+
target: '_blank' | '_self' | '_parent' | '_top'
|
|
327
|
+
): ButtonMetadata => {
|
|
328
|
+
return { ...SecondarySolidDefaultRoundButton(text), href, target };
|
|
329
|
+
};
|
|
330
|
+
|
|
331
|
+
export const SecondarySolidDefaultRoundIconHrefButton = (
|
|
332
|
+
text: string,
|
|
333
|
+
icon: IconMetada,
|
|
334
|
+
href: string,
|
|
335
|
+
target: '_blank' | '_self' | '_parent' | '_top'
|
|
336
|
+
): ButtonMetadata => {
|
|
337
|
+
return { ...SecondarySolidDefaultRoundIconButton(text, icon), href, target };
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
export const SecondarySolidSmallRoundButton = (text: string): ButtonMetadata => {
|
|
341
|
+
return { ...SolidSmallRoundButton(text), color: 'secondary' };
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
export const SecondarySolidSmallRoundIconButton = (
|
|
345
|
+
text: string,
|
|
346
|
+
icon: IconMetada
|
|
347
|
+
): ButtonMetadata => {
|
|
348
|
+
return { ...SecondarySolidSmallRoundButton(text), icon };
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
export const SecondarySolidSmallRoundHrefButton = (
|
|
352
|
+
text: string,
|
|
353
|
+
href: string,
|
|
354
|
+
target: '_blank' | '_self' | '_parent' | '_top'
|
|
355
|
+
): ButtonMetadata => {
|
|
356
|
+
return { ...SecondarySolidSmallRoundButton(text), href, target };
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
export const SecondarySolidSmallRoundIconHrefButton = (
|
|
360
|
+
text: string,
|
|
361
|
+
icon: IconMetada,
|
|
362
|
+
href: string,
|
|
363
|
+
target: '_blank' | '_self' | '_parent' | '_top'
|
|
364
|
+
): ButtonMetadata => {
|
|
365
|
+
return { ...SecondarySolidSmallRoundIconButton(text, icon), href, target };
|
|
366
|
+
};
|
|
367
|
+
|
|
368
|
+
export const SecondarySolidLargeRoundButton = (text: string): ButtonMetadata => {
|
|
369
|
+
return { ...SolidLargeRoundButton(text), color: 'secondary' };
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
export const SecondarySolidLargeRoundIconButton = (
|
|
373
|
+
text: string,
|
|
374
|
+
icon: IconMetada
|
|
375
|
+
): ButtonMetadata => {
|
|
376
|
+
return { ...SecondarySolidLargeRoundButton(text), icon };
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
export const SecondarySolidLargeRoundHrefButton = (
|
|
380
|
+
text: string,
|
|
381
|
+
href: string,
|
|
382
|
+
target: '_blank' | '_self' | '_parent' | '_top'
|
|
383
|
+
): ButtonMetadata => {
|
|
384
|
+
return { ...SecondarySolidLargeRoundButton(text), href, target };
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
export const SecondarySolidLargeRoundIconHrefButton = (
|
|
388
|
+
text: string,
|
|
389
|
+
icon: IconMetada,
|
|
390
|
+
href: string,
|
|
391
|
+
target: '_blank' | '_self' | '_parent' | '_top'
|
|
392
|
+
): ButtonMetadata => {
|
|
393
|
+
return { ...SecondarySolidLargeRoundIconButton(text, icon), href, target };
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
export const SecondarySolidFullButton = (text: string): ButtonMetadata => {
|
|
397
|
+
return { ...SolidFullButton(text), color: 'secondary' };
|
|
398
|
+
};
|
|
399
|
+
|
|
400
|
+
export const SecondarySolidFullIconButton = (text: string, icon: IconMetada): ButtonMetadata => {
|
|
401
|
+
return { ...SecondarySolidFullButton(text), icon };
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
export const SecondarySolidFullHrefButton = (
|
|
405
|
+
text: string,
|
|
406
|
+
href: string,
|
|
407
|
+
target: '_blank' | '_self' | '_parent' | '_top'
|
|
408
|
+
): ButtonMetadata => {
|
|
409
|
+
return { ...SecondarySolidFullButton(text), href, target };
|
|
410
|
+
};
|
|
411
|
+
|
|
412
|
+
export const SecondarySolidFullIconHrefButton = (
|
|
413
|
+
text: string,
|
|
414
|
+
icon: IconMetada,
|
|
415
|
+
href: string,
|
|
416
|
+
target: '_blank' | '_self' | '_parent' | '_top'
|
|
417
|
+
): ButtonMetadata => {
|
|
418
|
+
return { ...SecondarySolidFullIconButton(text, icon), href, target };
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
export const SecondarySolidBlockButton = (text: string): ButtonMetadata => {
|
|
422
|
+
return { ...SolidBlockButton(text), color: 'secondary' };
|
|
423
|
+
};
|
|
424
|
+
|
|
425
|
+
export const SecondarySolidBlockIconButton = (text: string, icon: IconMetada): ButtonMetadata => {
|
|
426
|
+
return { ...SecondarySolidBlockButton(text), icon };
|
|
427
|
+
};
|
|
428
|
+
|
|
429
|
+
export const SecondarySolidBlockHrefButton = (
|
|
430
|
+
text: string,
|
|
431
|
+
href: string,
|
|
432
|
+
target: '_blank' | '_self' | '_parent' | '_top'
|
|
433
|
+
): ButtonMetadata => {
|
|
434
|
+
return { ...SecondarySolidBlockButton(text), href, target };
|
|
435
|
+
};
|
|
436
|
+
|
|
437
|
+
export const SecondarySolidBlockIconHrefButton = (
|
|
438
|
+
text: string,
|
|
439
|
+
icon: IconMetada,
|
|
440
|
+
href: string,
|
|
441
|
+
target: '_blank' | '_self' | '_parent' | '_top'
|
|
442
|
+
): ButtonMetadata => {
|
|
443
|
+
return { ...SecondarySolidBlockIconButton(text, icon), href, target };
|
|
444
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
+
import { IonText } from '@ionic/angular/standalone';
|
|
3
|
+
import { DisplayMetadata } from './types';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'val-display',
|
|
7
|
+
standalone: true,
|
|
8
|
+
imports: [IonText],
|
|
9
|
+
template: `
|
|
10
|
+
<ion-text [color]="props.color">
|
|
11
|
+
<p [class]="props.size">
|
|
12
|
+
{{ props.content }}
|
|
13
|
+
</p>
|
|
14
|
+
</ion-text>
|
|
15
|
+
`,
|
|
16
|
+
styleUrls: ['./display.component.scss'],
|
|
17
|
+
})
|
|
18
|
+
export class DisplayComponent implements OnInit {
|
|
19
|
+
@Input()
|
|
20
|
+
props: DisplayMetadata;
|
|
21
|
+
|
|
22
|
+
constructor() {}
|
|
23
|
+
|
|
24
|
+
ngOnInit() {}
|
|
25
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
@import '../../styles/mixins.scss';
|
|
2
|
+
@import '../../styles/variables.scss';
|
|
3
|
+
|
|
4
|
+
.solid {
|
|
5
|
+
border-top: pxToRem(1) solid $color-default-hr;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.gradient {
|
|
9
|
+
height: pxToRem(2);
|
|
10
|
+
|
|
11
|
+
&.primary {
|
|
12
|
+
background: linear-gradient(to right, var(--ion-color-primary), var(--ion-color-light));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&.secondary {
|
|
16
|
+
background: linear-gradient(to right, var(--ion-color-secondary), var(--ion-color-light));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.dark {
|
|
20
|
+
background: linear-gradient(to right, var(--ion-color-dark), var(--ion-color-light));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&.light {
|
|
24
|
+
background: linear-gradient(to right, var(--ion-color-light), $color-classic-white);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.medium {
|
|
28
|
+
background: linear-gradient(to right, var(--ion-color-medium), $color-classic-white);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.small {
|
|
33
|
+
margin: pxToRem(16);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.medium {
|
|
37
|
+
margin: pxToRem(24) pxToRem(16);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.large {
|
|
41
|
+
margin: pxToRem(36) pxToRem(16);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.primary {
|
|
45
|
+
border-color: var(--ion-color-primary);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.secondary {
|
|
49
|
+
border-color: var(--ion-color-secondary);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.dark {
|
|
53
|
+
border-color: var(--ion-color-dark);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.light {
|
|
57
|
+
border-color: var(--ion-color-light);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.medium {
|
|
61
|
+
border-color: var(--ion-color-medium);
|
|
62
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { Component, Input, OnInit } from '@angular/core';
|
|
3
|
+
import { DividerMetadata } from './types';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'val-divider',
|
|
7
|
+
standalone: true,
|
|
8
|
+
imports: [CommonModule],
|
|
9
|
+
template: ` <div [ngClass]="['divider', props.size, props.color, props.fill]"></div> `,
|
|
10
|
+
styleUrls: ['./divider.component.scss'],
|
|
11
|
+
})
|
|
12
|
+
export class DividerComponent implements OnInit {
|
|
13
|
+
@Input()
|
|
14
|
+
props: DividerMetadata;
|
|
15
|
+
constructor() {}
|
|
16
|
+
|
|
17
|
+
ngOnInit() {}
|
|
18
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@import '../../styles/mixins.scss';
|
|
2
|
+
|
|
3
|
+
.primary {
|
|
4
|
+
color: var(--ion-color-primary);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.secondary {
|
|
8
|
+
color: var(--ion-color-secondary);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.dark {
|
|
12
|
+
color: var(--ion-color-dark);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.medium {
|
|
16
|
+
color: var(--ion-color-medium);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.hoverable {
|
|
20
|
+
text-decoration: none;
|
|
21
|
+
|
|
22
|
+
&:hover {
|
|
23
|
+
text-decoration: underline;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
|
3
|
+
import { DownloadService } from '../../../services/download.service';
|
|
4
|
+
import { HrefMetadata } from './types';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'val-href',
|
|
8
|
+
standalone: true,
|
|
9
|
+
imports: [CommonModule],
|
|
10
|
+
template: `
|
|
11
|
+
<a
|
|
12
|
+
[ngClass]="[props.color]"
|
|
13
|
+
[class.hoverable]="props.hoverable"
|
|
14
|
+
[href]="props.url"
|
|
15
|
+
target="_blank"
|
|
16
|
+
(click)="onClickHandler($event)"
|
|
17
|
+
>{{ props.text }}</a
|
|
18
|
+
>
|
|
19
|
+
`,
|
|
20
|
+
styleUrls: ['./href.component.scss'],
|
|
21
|
+
})
|
|
22
|
+
export class HrefComponent implements OnInit {
|
|
23
|
+
@Input() props: HrefMetadata;
|
|
24
|
+
|
|
25
|
+
@Output()
|
|
26
|
+
onClick = new EventEmitter<string>();
|
|
27
|
+
|
|
28
|
+
constructor(private downloadService: DownloadService) {}
|
|
29
|
+
|
|
30
|
+
ngOnInit() {}
|
|
31
|
+
|
|
32
|
+
getFileName() {
|
|
33
|
+
return this.downloadService.getFileNameFromUrl(this.props.url);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
onClickHandler(event: MouseEvent) {
|
|
37
|
+
if (this.props.download && this.props.url) {
|
|
38
|
+
event.preventDefault();
|
|
39
|
+
this.downloadService.downloadLinkFromBrowser(this.props.url);
|
|
40
|
+
}
|
|
41
|
+
this.onClick.emit(this.props.token);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@import '../../styles/mixins.scss';
|
|
2
|
+
|
|
3
|
+
.small {
|
|
4
|
+
@include body-small;
|
|
5
|
+
|
|
6
|
+
&.bold {
|
|
7
|
+
@include body-small-bold;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.medium {
|
|
12
|
+
@include body-medium;
|
|
13
|
+
|
|
14
|
+
&.bold {
|
|
15
|
+
@include body-medium-bold;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.large {
|
|
20
|
+
@include body-large;
|
|
21
|
+
|
|
22
|
+
&.bold {
|
|
23
|
+
@include body-large-bold;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.xlarge {
|
|
28
|
+
@include body-xlarge;
|
|
29
|
+
|
|
30
|
+
&.bold {
|
|
31
|
+
@include body-xlarge-bold;
|
|
32
|
+
}
|
|
33
|
+
}
|