valtech-components 2.0.62 → 2.0.63
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 +52 -0
- package/esm2022/lib/components/atoms/box/types.mjs +2 -0
- package/esm2022/lib/components/atoms/button/button.component.mjs +70 -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 +358 -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 +32 -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 +3558 -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 +13 -0
- package/lib/components/atoms/box/types.d.ts +7 -0
- package/lib/components/atoms/button/button.component.d.ts +21 -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 -41
- package/src/lib/components/atoms/box/types.ts +0 -8
- package/src/lib/components/atoms/button/button.component.scss +0 -6
- package/src/lib/components/atoms/button/button.component.ts +0 -54
- 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 -5
- 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 -221
- 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 -24
- 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 -40
- 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
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import { ButtonGroupComponent } from '../../../molecules/button-group/button-group.component';
|
|
3
|
+
import { ComponentStates } from '../../../types';
|
|
4
|
+
import { FooterComponent } from '../../footer/footer.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export class FormFooterComponent {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.onSubmit = new EventEmitter();
|
|
9
|
+
}
|
|
10
|
+
ngOnInit() { }
|
|
11
|
+
async submitHandler(token) {
|
|
12
|
+
this.onSubmit.emit({ fields: this.form.value, token });
|
|
13
|
+
}
|
|
14
|
+
get actions() {
|
|
15
|
+
if (!this.form) {
|
|
16
|
+
return [];
|
|
17
|
+
}
|
|
18
|
+
if (this.form.valid) {
|
|
19
|
+
this.action.state = ComponentStates.ENABLED;
|
|
20
|
+
}
|
|
21
|
+
return [this.action];
|
|
22
|
+
}
|
|
23
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
24
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: FormFooterComponent, isStandalone: true, selector: "val-form-footer", inputs: { form: "form", action: "action" }, outputs: { onSubmit: "onSubmit" }, ngImport: i0, template: `
|
|
25
|
+
<val-footer
|
|
26
|
+
[props]="{
|
|
27
|
+
bordered: false,
|
|
28
|
+
translucent: false,
|
|
29
|
+
toolbar: {
|
|
30
|
+
title: '',
|
|
31
|
+
actions: [],
|
|
32
|
+
color: 'background',
|
|
33
|
+
withBack: false,
|
|
34
|
+
withActions: false,
|
|
35
|
+
},
|
|
36
|
+
}"
|
|
37
|
+
>
|
|
38
|
+
<val-button-group
|
|
39
|
+
extra
|
|
40
|
+
[props]="{ buttons: actions, position: 'center', columned: false }"
|
|
41
|
+
(onClick)="submitHandler($event)"
|
|
42
|
+
></val-button-group>
|
|
43
|
+
</val-footer>
|
|
44
|
+
`, isInline: true, styles: [""], dependencies: [{ kind: "component", type: FooterComponent, selector: "val-footer", inputs: ["props"], outputs: ["onClick"] }, { kind: "component", type: ButtonGroupComponent, selector: "val-button-group", inputs: ["props"], outputs: ["onClick"] }] }); }
|
|
45
|
+
}
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormFooterComponent, decorators: [{
|
|
47
|
+
type: Component,
|
|
48
|
+
args: [{ selector: 'val-form-footer', standalone: true, imports: [FooterComponent, ButtonGroupComponent], template: `
|
|
49
|
+
<val-footer
|
|
50
|
+
[props]="{
|
|
51
|
+
bordered: false,
|
|
52
|
+
translucent: false,
|
|
53
|
+
toolbar: {
|
|
54
|
+
title: '',
|
|
55
|
+
actions: [],
|
|
56
|
+
color: 'background',
|
|
57
|
+
withBack: false,
|
|
58
|
+
withActions: false,
|
|
59
|
+
},
|
|
60
|
+
}"
|
|
61
|
+
>
|
|
62
|
+
<val-button-group
|
|
63
|
+
extra
|
|
64
|
+
[props]="{ buttons: actions, position: 'center', columned: false }"
|
|
65
|
+
(onClick)="submitHandler($event)"
|
|
66
|
+
></val-button-group>
|
|
67
|
+
</val-footer>
|
|
68
|
+
` }]
|
|
69
|
+
}], ctorParameters: () => [], propDecorators: { form: [{
|
|
70
|
+
type: Input
|
|
71
|
+
}], action: [{
|
|
72
|
+
type: Input
|
|
73
|
+
}], onSubmit: [{
|
|
74
|
+
type: Output
|
|
75
|
+
}] } });
|
|
76
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1mb290ZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZX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XN5bmMgc3VibWl0SGFuZGxlcih0b2tlbj86IHN0cmluZykge1xuICAgIHRoaXMub25TdWJtaXQuZW1pdCh7IGZpZWxkczogdGhpcy5mb3JtLnZhbHVlLCB0b2tlbiB9KTtcbiAgfVxuXG4gIGdldCBhY3Rpb25zKCk6IEJ1dHRvbk1ldGFkYXRhW10ge1xuICAgIGlmICghdGhpcy5mb3JtKSB7XG4gICAgICByZXR1cm4gW107XG4gICAgfVxuXG4gICAgaWYgKHRoaXMuZm9ybS52YWxpZCkge1xuICAgICAgdGhpcy5hY3Rpb24uc3RhdGUgPSBDb21wb25lbnRTdGF0ZXMuRU5BQkxFRDtcbiAgICB9XG5cbiAgICByZXR1cm4gW3RoaXMuYWN0aW9uXTtcbiAgfVxufVxuIl19
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
3
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
4
|
+
import { isAtEnd } from '../../../shared/utils/dom';
|
|
5
|
+
import { DisplayComponent } from '../../atoms/display/display.component';
|
|
6
|
+
import { DividerComponent } from '../../atoms/divider/divider.component';
|
|
7
|
+
import { TitleComponent } from '../../atoms/title/title.component';
|
|
8
|
+
import { ButtonGroupComponent } from '../../molecules/button-group/button-group.component';
|
|
9
|
+
import { CheckInputComponent } from '../../molecules/check-input/check-input.component';
|
|
10
|
+
import { CommentInputComponent } from '../../molecules/comment-input/comment-input.component';
|
|
11
|
+
import { DateInputComponent } from '../../molecules/date-input/date-input.component';
|
|
12
|
+
import { EmailInputComponent } from '../../molecules/email-input/email-input.component';
|
|
13
|
+
import { FileInputComponent } from '../../molecules/file-input/file-input.component';
|
|
14
|
+
import { HintComponent } from '../../molecules/hint/hint.component';
|
|
15
|
+
import { HourInputComponent } from '../../molecules/hour-input/hour-input.component';
|
|
16
|
+
import { NumberInputComponent } from '../../molecules/number-input/number-input.component';
|
|
17
|
+
import { PasswordInputComponent } from '../../molecules/password-input/password-input.component';
|
|
18
|
+
import { PinInputComponent } from '../../molecules/pin-input/pin-input.component';
|
|
19
|
+
import { RadioInputComponent } from '../../molecules/radio-input/radio-input.component';
|
|
20
|
+
import { TextInputComponent } from '../../molecules/text-input/text-input.component';
|
|
21
|
+
import { ComponentStates, InputType } from '../../types';
|
|
22
|
+
import * as i0 from "@angular/core";
|
|
23
|
+
import * as i1 from "@angular/forms";
|
|
24
|
+
import * as i2 from "@angular/common";
|
|
25
|
+
export class FormComponent {
|
|
26
|
+
constructor(fb, elementRef) {
|
|
27
|
+
this.fb = fb;
|
|
28
|
+
this.elementRef = elementRef;
|
|
29
|
+
this.onSubmit = new EventEmitter();
|
|
30
|
+
this.onInvalid = new EventEmitter();
|
|
31
|
+
this.types = InputType;
|
|
32
|
+
}
|
|
33
|
+
ngOnInit() {
|
|
34
|
+
const formControls = {};
|
|
35
|
+
this.props.sections.forEach(section => {
|
|
36
|
+
section.fields.forEach(field => {
|
|
37
|
+
formControls[field.name] = [undefined, field.validators || []];
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
this.form = this.fb.group(formControls);
|
|
41
|
+
}
|
|
42
|
+
async submitHandler(token) {
|
|
43
|
+
this.onSubmit.emit({ fields: this.form.value, token });
|
|
44
|
+
}
|
|
45
|
+
getControl(field) {
|
|
46
|
+
return this.Form.get(field);
|
|
47
|
+
}
|
|
48
|
+
getFieldProp(field) {
|
|
49
|
+
return {
|
|
50
|
+
...field,
|
|
51
|
+
control: this.getControl(field.name),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
get isAtEndOfForm() {
|
|
55
|
+
return isAtEnd(this.elementRef);
|
|
56
|
+
}
|
|
57
|
+
get Form() {
|
|
58
|
+
return this.form;
|
|
59
|
+
}
|
|
60
|
+
get actions() {
|
|
61
|
+
if (!this.form) {
|
|
62
|
+
return [];
|
|
63
|
+
}
|
|
64
|
+
if (this.form.valid) {
|
|
65
|
+
this.props.actions.state = ComponentStates.ENABLED;
|
|
66
|
+
}
|
|
67
|
+
if (this.props.state === ComponentStates.WORKING) {
|
|
68
|
+
this.props.actions.state = ComponentStates.WORKING;
|
|
69
|
+
}
|
|
70
|
+
if (this.props.state === ComponentStates.ENABLED) {
|
|
71
|
+
this.props.actions.state = ComponentStates.ENABLED;
|
|
72
|
+
}
|
|
73
|
+
if (this.props.state === ComponentStates.DISABLED) {
|
|
74
|
+
this.props.actions.state = ComponentStates.DISABLED;
|
|
75
|
+
}
|
|
76
|
+
return [this.props.actions];
|
|
77
|
+
}
|
|
78
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormComponent, deps: [{ token: i1.FormBuilder }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
79
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: FormComponent, isStandalone: true, selector: "val-form", inputs: { props: "props" }, outputs: { onSubmit: "onSubmit", onInvalid: "onInvalid" }, ngImport: i0, template: `
|
|
80
|
+
<div class="container">
|
|
81
|
+
<form [formGroup]="form">
|
|
82
|
+
<val-display
|
|
83
|
+
[props]="{
|
|
84
|
+
content: props.name,
|
|
85
|
+
color: 'dark',
|
|
86
|
+
size: 'large',
|
|
87
|
+
}"
|
|
88
|
+
></val-display>
|
|
89
|
+
<div class="section" *ngFor="let s of props.sections">
|
|
90
|
+
<val-title [props]="{ content: s.name, size: 'large', color: '', bold: false }"></val-title>
|
|
91
|
+
<div class="input" *ngFor="let f of s.fields">
|
|
92
|
+
<val-title [props]="{ content: f.label, size: 'small', color: 'dark', bold: false }"></val-title>
|
|
93
|
+
<ng-container *ngIf="f.type === types.TEXT">
|
|
94
|
+
<val-text-input [props]="getFieldProp(f)"></val-text-input>
|
|
95
|
+
</ng-container>
|
|
96
|
+
<ng-container *ngIf="f.type === types.CHECK">
|
|
97
|
+
<val-check-input></val-check-input>
|
|
98
|
+
</ng-container>
|
|
99
|
+
<ng-container *ngIf="f.type === types.COMMENT">
|
|
100
|
+
<val-comment-input [props]="getFieldProp(f)"></val-comment-input>
|
|
101
|
+
</ng-container>
|
|
102
|
+
<ng-container *ngIf="f.type === types.DATE">
|
|
103
|
+
<val-date-input [props]="getFieldProp(f)"></val-date-input>
|
|
104
|
+
</ng-container>
|
|
105
|
+
<ng-container *ngIf="f.type === types.EMAIL">
|
|
106
|
+
<val-email-input [props]="getFieldProp(f)"></val-email-input>
|
|
107
|
+
</ng-container>
|
|
108
|
+
<ng-container *ngIf="f.type === types.FILE">
|
|
109
|
+
<val-file-input [props]="getFieldProp(f)"></val-file-input>
|
|
110
|
+
</ng-container>
|
|
111
|
+
<ng-container *ngIf="f.type === types.HOUR">
|
|
112
|
+
<val-hour-input [props]="getFieldProp(f)"></val-hour-input>
|
|
113
|
+
</ng-container>
|
|
114
|
+
<ng-container *ngIf="f.type === types.NUMBER">
|
|
115
|
+
<val-number-input [props]="getFieldProp(f)"></val-number-input>
|
|
116
|
+
</ng-container>
|
|
117
|
+
<ng-container *ngIf="f.type === types.PASSWORD">
|
|
118
|
+
<val-password-input [props]="getFieldProp(f)"></val-password-input>
|
|
119
|
+
</ng-container>
|
|
120
|
+
<ng-container *ngIf="f.type === types.PIN_CODE">
|
|
121
|
+
<val-pin-input [props]="getFieldProp(f)"></val-pin-input>
|
|
122
|
+
</ng-container>
|
|
123
|
+
<ng-container *ngIf="f.type === types.RADIO">
|
|
124
|
+
<val-radio-input [props]="getFieldProp(f)"></val-radio-input>
|
|
125
|
+
</ng-container>
|
|
126
|
+
<ng-container *ngIf="f.type === types.SELECT">
|
|
127
|
+
<!-- <val-select-input></val-select-input> -->
|
|
128
|
+
</ng-container>
|
|
129
|
+
<val-hint [props]="getFieldProp(f)"></val-hint>
|
|
130
|
+
</div>
|
|
131
|
+
<val-divider [props]="{ fill: 'solid', size: 'medium', color: 'medium' }"></val-divider>
|
|
132
|
+
</div>
|
|
133
|
+
<val-button-group
|
|
134
|
+
[props]="{ buttons: actions, position: 'center', columned: false }"
|
|
135
|
+
(onClick)="submitHandler($event)"
|
|
136
|
+
></val-button-group>
|
|
137
|
+
</form>
|
|
138
|
+
</div>
|
|
139
|
+
`, isInline: true, styles: [".section{margin-top:1rem}.input{margin:.5rem 0}@media (min-width: 768px){.input{margin:.75rem 0}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: DisplayComponent, selector: "val-display", inputs: ["props"] }, { kind: "component", type: TitleComponent, selector: "val-title", inputs: ["props"] }, { kind: "component", type: TextInputComponent, selector: "val-text-input", inputs: ["props"] }, { kind: "component", type: CheckInputComponent, selector: "val-check-input" }, { kind: "component", type: ButtonGroupComponent, selector: "val-button-group", inputs: ["props"], outputs: ["onClick"] }, { kind: "component", type: DividerComponent, selector: "val-divider", inputs: ["props"] }, { kind: "component", type: HintComponent, selector: "val-hint", inputs: ["props"] }, { kind: "component", type: CommentInputComponent, selector: "val-comment-input", inputs: ["props"] }, { kind: "component", type: DateInputComponent, selector: "val-date-input", inputs: ["props"] }, { kind: "component", type: FileInputComponent, selector: "val-file-input", inputs: ["props"] }, { kind: "component", type: HourInputComponent, selector: "val-hour-input", inputs: ["props"] }, { kind: "component", type: EmailInputComponent, selector: "val-email-input", inputs: ["props"] }, { kind: "component", type: NumberInputComponent, selector: "val-number-input", inputs: ["props"] }, { kind: "component", type: RadioInputComponent, selector: "val-radio-input", inputs: ["props"] }, { kind: "component", type: PasswordInputComponent, selector: "val-password-input", inputs: ["props"] }, { kind: "component", type: PinInputComponent, selector: "val-pin-input", inputs: ["props"] }] }); }
|
|
140
|
+
}
|
|
141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormComponent, decorators: [{
|
|
142
|
+
type: Component,
|
|
143
|
+
args: [{ selector: 'val-form', standalone: true, imports: [
|
|
144
|
+
CommonModule,
|
|
145
|
+
ReactiveFormsModule,
|
|
146
|
+
DisplayComponent,
|
|
147
|
+
TitleComponent,
|
|
148
|
+
TextInputComponent,
|
|
149
|
+
CheckInputComponent,
|
|
150
|
+
ButtonGroupComponent,
|
|
151
|
+
DividerComponent,
|
|
152
|
+
HintComponent,
|
|
153
|
+
CommentInputComponent,
|
|
154
|
+
DateInputComponent,
|
|
155
|
+
FileInputComponent,
|
|
156
|
+
HourInputComponent,
|
|
157
|
+
EmailInputComponent,
|
|
158
|
+
NumberInputComponent,
|
|
159
|
+
RadioInputComponent,
|
|
160
|
+
PasswordInputComponent,
|
|
161
|
+
PinInputComponent,
|
|
162
|
+
], template: `
|
|
163
|
+
<div class="container">
|
|
164
|
+
<form [formGroup]="form">
|
|
165
|
+
<val-display
|
|
166
|
+
[props]="{
|
|
167
|
+
content: props.name,
|
|
168
|
+
color: 'dark',
|
|
169
|
+
size: 'large',
|
|
170
|
+
}"
|
|
171
|
+
></val-display>
|
|
172
|
+
<div class="section" *ngFor="let s of props.sections">
|
|
173
|
+
<val-title [props]="{ content: s.name, size: 'large', color: '', bold: false }"></val-title>
|
|
174
|
+
<div class="input" *ngFor="let f of s.fields">
|
|
175
|
+
<val-title [props]="{ content: f.label, size: 'small', color: 'dark', bold: false }"></val-title>
|
|
176
|
+
<ng-container *ngIf="f.type === types.TEXT">
|
|
177
|
+
<val-text-input [props]="getFieldProp(f)"></val-text-input>
|
|
178
|
+
</ng-container>
|
|
179
|
+
<ng-container *ngIf="f.type === types.CHECK">
|
|
180
|
+
<val-check-input></val-check-input>
|
|
181
|
+
</ng-container>
|
|
182
|
+
<ng-container *ngIf="f.type === types.COMMENT">
|
|
183
|
+
<val-comment-input [props]="getFieldProp(f)"></val-comment-input>
|
|
184
|
+
</ng-container>
|
|
185
|
+
<ng-container *ngIf="f.type === types.DATE">
|
|
186
|
+
<val-date-input [props]="getFieldProp(f)"></val-date-input>
|
|
187
|
+
</ng-container>
|
|
188
|
+
<ng-container *ngIf="f.type === types.EMAIL">
|
|
189
|
+
<val-email-input [props]="getFieldProp(f)"></val-email-input>
|
|
190
|
+
</ng-container>
|
|
191
|
+
<ng-container *ngIf="f.type === types.FILE">
|
|
192
|
+
<val-file-input [props]="getFieldProp(f)"></val-file-input>
|
|
193
|
+
</ng-container>
|
|
194
|
+
<ng-container *ngIf="f.type === types.HOUR">
|
|
195
|
+
<val-hour-input [props]="getFieldProp(f)"></val-hour-input>
|
|
196
|
+
</ng-container>
|
|
197
|
+
<ng-container *ngIf="f.type === types.NUMBER">
|
|
198
|
+
<val-number-input [props]="getFieldProp(f)"></val-number-input>
|
|
199
|
+
</ng-container>
|
|
200
|
+
<ng-container *ngIf="f.type === types.PASSWORD">
|
|
201
|
+
<val-password-input [props]="getFieldProp(f)"></val-password-input>
|
|
202
|
+
</ng-container>
|
|
203
|
+
<ng-container *ngIf="f.type === types.PIN_CODE">
|
|
204
|
+
<val-pin-input [props]="getFieldProp(f)"></val-pin-input>
|
|
205
|
+
</ng-container>
|
|
206
|
+
<ng-container *ngIf="f.type === types.RADIO">
|
|
207
|
+
<val-radio-input [props]="getFieldProp(f)"></val-radio-input>
|
|
208
|
+
</ng-container>
|
|
209
|
+
<ng-container *ngIf="f.type === types.SELECT">
|
|
210
|
+
<!-- <val-select-input></val-select-input> -->
|
|
211
|
+
</ng-container>
|
|
212
|
+
<val-hint [props]="getFieldProp(f)"></val-hint>
|
|
213
|
+
</div>
|
|
214
|
+
<val-divider [props]="{ fill: 'solid', size: 'medium', color: 'medium' }"></val-divider>
|
|
215
|
+
</div>
|
|
216
|
+
<val-button-group
|
|
217
|
+
[props]="{ buttons: actions, position: 'center', columned: false }"
|
|
218
|
+
(onClick)="submitHandler($event)"
|
|
219
|
+
></val-button-group>
|
|
220
|
+
</form>
|
|
221
|
+
</div>
|
|
222
|
+
`, styles: [".section{margin-top:1rem}.input{margin:.5rem 0}@media (min-width: 768px){.input{margin:.75rem 0}}\n"] }]
|
|
223
|
+
}], ctorParameters: () => [{ type: i1.FormBuilder }, { type: i0.ElementRef }], propDecorators: { props: [{
|
|
224
|
+
type: Input
|
|
225
|
+
}], onSubmit: [{
|
|
226
|
+
type: Output
|
|
227
|
+
}], onInvalid: [{
|
|
228
|
+
type: Output
|
|
229
|
+
}] } });
|
|
230
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy92YWx0ZWNoLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL29yZ2FuaXNtcy9mb3JtL2Zvcm0uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsU0FBUyxFQUFjLFlBQVksRUFBRSxLQUFLLEVBQVUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNGLE9BQU8sRUFBdUMsbUJBQW1CLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUMxRixPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFDcEQsT0FBTyx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FpbmVyICpuZ0lmPVwiZi50eXBlID09PSB0eXBlcy5DSEVDS1wiPlxuICAgICAgICAgICAgICA8dmFsLWNoZWNrLWlucHV0PjwvdmFsLWNoZWNrLWlucHV0PlxuICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiZi50eXBlID09PSB0eXBlcy5DT01NRU5UXCI+XG4gICAgICAgICAgICAgIDx2YWwtY29tbWVudC1pbnB1dCBbcHJvcHNdPVwiZ2V0RmllbGRQcm9wKGYpXCI+PC92YWwtY29tbWVudC1pbnB1dD5cbiAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cImYudHlwZSA9PT0gdHlwZXMuREFURVwiPlxuICAgICAgICAgICAgICA8dmFsLWRhdGUtaW5wdXQgW3Byb3BzXT1cImdldEZpZWxkUHJvcChmKVwiPjwvdmFsLWRhdGUtaW5wdXQ+XG4gICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCJmLnR5cGUgPT09IHR5cGVzLkVNQUlMXCI+XG4gICAgICAgICAgICAgIDx2YWwtZW1haWwtaW5wdXQgW3Byb3BzXT1cImdldEZpZWxkUHJvcChmKVwiPjwvdmFsLWVtYWlsLWlucHV0PlxuICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiZi50eXBlID09PSB0eXBlcy5GSUxFXCI+XG4gICAgICAgICAgICAgIDx2YWwtZmlsZS1pbnB1dCBbcHJvcHNdPVwiZ2V0RmllbGRQcm9wKGYpXCI+PC92YWwtZmlsZS1pbnB1dD5cbiAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cImYudHlwZSA9PT0gdHlwZXMuSE9VUlwiPlxuICAgICAgICAgICAgICA8dmFsLWhvdXItaW5wdXQgW3Byb3BzXT1cImdldEZpZWxkUHJvcChmKVwiPjwvdmFsLWhvdXItaW5wdXQ+XG4gICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCJmLnR5cGUgPT09IHR5cGVzLk5VTUJFUlwiPlxuICAgICAgICAgICAgICA8dmFsLW51bWJlci1pbnB1dCBbcHJvcHNdPVwiZ2V0RmllbGRQcm9wKGYpXCI+PC92YWwtbnVtYmVyLWlucHV0PlxuICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiZi50eXBlID09PSB0eXBlcy5QQVNTV09SRFwiPlxuICAgICAgICAgICAgICA8dmFsLXBhc3N3b3JkLWlucHV0IFtwcm9wc109XCJnZXRGaWVsZFByb3AoZilcIj48L3ZhbC1wYXNzd29yZC1pbnB1dD5cbiAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cImYudHlwZSA9PT0gdHlwZXMuUElOX0NPREVcIj5cbiAgICAgICAgICAgICAgPHZhbC1waW4taW5wdXQgW3Byb3BzXT1cImdldEZpZWxkUHJvcChmKVwiPjwvdmFsLXBpbi1pbnB1dD5cbiAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cImYudHlwZSA9PT0gdHlwZXMuUkFESU9cIj5cbiAgICAgICAgICAgICAgPHZhbC1yYWRpby1pbnB1dCBbcHJvcHNdPVwiZ2V0RmllbGRQcm9wKGYpXCI+PC92YWwtcmFkaW8taW5wdXQ+XG4gICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCJmLnR5cGUgPT09IHR5cGVzLlNFTEVDVFwi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cblxuICBnZXQgYWN0aW9ucygpOiBCdXR0b25NZXRhZGF0YVtdIHtcbiAgICBpZiAoIXRoaXMuZm9ybSkge1xuICAgICAgcmV0dXJuIFtdO1xuICAgIH1cblxuICAgIGlmICh0aGlzLmZvcm0udmFsaWQpIHtcbiAgICAgIHRoaXMucHJvcHMuYWN0aW9ucy5zdGF0ZSA9IENvbXBvbmVudFN0YXRlcy5FTkFCTEVEO1xuICAgIH1cblxuICAgIGlmICh0aGlzLnByb3BzLnN0YXRlID09PSBDb21wb25lbnRTdGF0ZXMuV09SS0lORykge1xuICAgICAgdGhpcy5wcm9wcy5hY3Rpb25zLnN0YXRlID0gQ29tcG9uZW50U3RhdGVzLldPUktJTkc7XG4gICAgfVxuXG4gICAgaWYgKHRoaXMucHJvcHMuc3RhdGUgPT09IENvbXBvbmVudFN0YXRlcy5FTkFCTEVEKSB7XG4gICAgICB0aGlzLnByb3BzLmFjdGlvbnMuc3RhdGUgPSBDb21wb25lbnRTdGF0ZXMuRU5BQkxFRDtcbiAgICB9XG5cbiAgICBpZiAodGhpcy5wcm9wcy5zdGF0ZSA9PT0gQ29tcG9uZW50U3RhdGVzLkRJU0FCTEVEKSB7XG4gICAgICB0aGlzLnByb3BzLmFjdGlvbnMuc3RhdGUgPSBDb21wb25lbnRTdGF0ZXMuRElTQUJMRUQ7XG4gICAgfVxuXG4gICAgcmV0dXJuIFt0aGlzLnByb3BzLmFjdGlvbnNdO1xuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import { IonHeader } from '@ionic/angular/standalone';
|
|
3
|
+
import { ToolbarComponent } from '../toolbar/toolbar.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class HeaderComponent {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.onClick = new EventEmitter();
|
|
8
|
+
}
|
|
9
|
+
ngOnInit() { }
|
|
10
|
+
clickHandler(token) {
|
|
11
|
+
this.onClick.emit(token);
|
|
12
|
+
}
|
|
13
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
14
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: HeaderComponent, isStandalone: true, selector: "val-header", inputs: { props: "props" }, outputs: { onClick: "onClick" }, ngImport: i0, template: `
|
|
15
|
+
<ion-header [class.ion-no-border]="!props.bordered" [translucent]="props.translucent">
|
|
16
|
+
<val-toolbar [props]="props.toolbar" (onClick)="clickHandler($event)"></val-toolbar>
|
|
17
|
+
</ion-header>
|
|
18
|
+
`, isInline: true, styles: ["ion-toolbar{padding:0 1rem}\n"], dependencies: [{ kind: "component", type: IonHeader, selector: "ion-header", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: ToolbarComponent, selector: "val-toolbar", inputs: ["props"], outputs: ["onClick"] }] }); }
|
|
19
|
+
}
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HeaderComponent, decorators: [{
|
|
21
|
+
type: Component,
|
|
22
|
+
args: [{ selector: 'val-header', standalone: true, imports: [IonHeader, ToolbarComponent], template: `
|
|
23
|
+
<ion-header [class.ion-no-border]="!props.bordered" [translucent]="props.translucent">
|
|
24
|
+
<val-toolbar [props]="props.toolbar" (onClick)="clickHandler($event)"></val-toolbar>
|
|
25
|
+
</ion-header>
|
|
26
|
+
`, styles: ["ion-toolbar{padding:0 1rem}\n"] }]
|
|
27
|
+
}], ctorParameters: () => [], propDecorators: { props: [{
|
|
28
|
+
type: Input
|
|
29
|
+
}], onClick: [{
|
|
30
|
+
type: Output
|
|
31
|
+
}] } });
|
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVhZGVyLmNvbXBvb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