@daffodil/design 0.39.5 → 0.39.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +62 -34
- package/accordion/examples/daffodil-design-accordion-examples.metadata.json +1 -1
- package/article/examples/daffodil-design-article-examples.metadata.json +1 -1
- package/bundles/daffodil-design-accordion-examples.umd.js +4 -2
- package/bundles/daffodil-design-accordion-examples.umd.js.map +1 -1
- package/bundles/daffodil-design-accordion-examples.umd.min.js +1 -1
- package/bundles/daffodil-design-accordion-examples.umd.min.js.map +1 -1
- package/bundles/daffodil-design-article-examples.umd.js +22 -11
- package/bundles/daffodil-design-article-examples.umd.js.map +1 -1
- package/bundles/daffodil-design-article-examples.umd.min.js +1 -1
- package/bundles/daffodil-design-article-examples.umd.min.js.map +1 -1
- package/bundles/daffodil-design-button-examples.umd.js +7 -0
- package/bundles/daffodil-design-button-examples.umd.js.map +1 -1
- package/bundles/daffodil-design-button-examples.umd.min.js +1 -1
- package/bundles/daffodil-design-button-examples.umd.min.js.map +1 -1
- package/bundles/daffodil-design-callout-examples.umd.js +60 -9
- package/bundles/daffodil-design-callout-examples.umd.js.map +1 -1
- package/bundles/daffodil-design-callout-examples.umd.min.js +1 -1
- package/bundles/daffodil-design-callout-examples.umd.min.js.map +1 -1
- package/bundles/daffodil-design-card-examples.umd.js +156 -14
- package/bundles/daffodil-design-card-examples.umd.js.map +1 -1
- package/bundles/daffodil-design-card-examples.umd.min.js +1 -1
- package/bundles/daffodil-design-card-examples.umd.min.js.map +1 -1
- package/bundles/daffodil-design-checkbox-examples.umd.js +4 -2
- package/bundles/daffodil-design-checkbox-examples.umd.js.map +1 -1
- package/bundles/daffodil-design-checkbox-examples.umd.min.js +1 -1
- package/bundles/daffodil-design-checkbox-examples.umd.min.js.map +1 -1
- package/bundles/daffodil-design-container-examples.umd.js +65 -0
- package/bundles/daffodil-design-container-examples.umd.js.map +1 -0
- package/bundles/daffodil-design-container-examples.umd.min.js +2 -0
- package/bundles/daffodil-design-container-examples.umd.min.js.map +1 -0
- package/bundles/daffodil-design-hero-examples.umd.js +63 -8
- package/bundles/daffodil-design-hero-examples.umd.js.map +1 -1
- package/bundles/daffodil-design-hero-examples.umd.min.js +1 -1
- package/bundles/daffodil-design-hero-examples.umd.min.js.map +1 -1
- package/bundles/daffodil-design-list-examples.umd.js +8 -4
- package/bundles/daffodil-design-list-examples.umd.js.map +1 -1
- package/bundles/daffodil-design-list-examples.umd.min.js +1 -1
- package/bundles/daffodil-design-list-examples.umd.min.js.map +1 -1
- package/bundles/daffodil-design-loading-icon-examples.umd.js +4 -2
- package/bundles/daffodil-design-loading-icon-examples.umd.js.map +1 -1
- package/bundles/daffodil-design-loading-icon-examples.umd.min.js +1 -1
- package/bundles/daffodil-design-loading-icon-examples.umd.min.js.map +1 -1
- package/bundles/daffodil-design-media-gallery-examples.umd.js +4 -2
- package/bundles/daffodil-design-media-gallery-examples.umd.js.map +1 -1
- package/bundles/daffodil-design-media-gallery-examples.umd.min.js +1 -1
- package/bundles/daffodil-design-media-gallery-examples.umd.min.js.map +1 -1
- package/bundles/daffodil-design-modal-examples.umd.js +4 -2
- package/bundles/daffodil-design-modal-examples.umd.js.map +1 -1
- package/bundles/daffodil-design-modal-examples.umd.min.js +1 -1
- package/bundles/daffodil-design-modal-examples.umd.min.js.map +1 -1
- package/bundles/daffodil-design-quantity-field-examples.umd.js +4 -0
- package/bundles/daffodil-design-quantity-field-examples.umd.js.map +1 -1
- package/bundles/daffodil-design-quantity-field-examples.umd.min.js +1 -1
- package/bundles/daffodil-design-quantity-field-examples.umd.min.js.map +1 -1
- package/bundles/daffodil-design-radio-examples.umd.js +2 -1
- package/bundles/daffodil-design-radio-examples.umd.js.map +1 -1
- package/bundles/daffodil-design-radio-examples.umd.min.js +1 -1
- package/bundles/daffodil-design-radio-examples.umd.min.js.map +1 -1
- package/bundles/daffodil-design.umd.js +397 -98
- package/bundles/daffodil-design.umd.js.map +1 -1
- package/bundles/daffodil-design.umd.min.js +2 -2
- package/bundles/daffodil-design.umd.min.js.map +1 -1
- package/button/examples/daffodil-design-button-examples.metadata.json +1 -1
- package/callout/examples/callout-text-alignment/callout-text-alignment.component.d.ts +1 -0
- package/callout/examples/callout-theming/callout-theming.component.d.ts +1 -0
- package/callout/examples/callout-with-grid/callout-with-grid.component.d.ts +1 -0
- package/callout/examples/compact-callout/compact-callout.component.d.ts +3 -0
- package/callout/examples/compact-callout/compact-callout.module.d.ts +2 -0
- package/callout/examples/daffodil-design-callout-examples.metadata.json +1 -1
- package/callout/examples/public_api.d.ts +2 -0
- package/card/examples/basic-card/basic-card.component.d.ts +1 -0
- package/card/examples/card-orientation/card-orientation.component.d.ts +9 -0
- package/card/examples/card-orientation/card-orientation.module.d.ts +2 -0
- package/card/examples/card-theming/card-theming.component.d.ts +4 -2
- package/card/examples/daffodil-design-card-examples.d.ts +2 -0
- package/card/examples/daffodil-design-card-examples.metadata.json +1 -1
- package/card/examples/linkable-card/linkable-card.component.d.ts +8 -0
- package/card/examples/public_api.d.ts +5 -1
- package/card/examples/raised-card/raised-card.component.d.ts +6 -0
- package/card/examples/stroked-card/stroked-card.component.d.ts +8 -0
- package/card/examples/stroked-card/stroked-card.module.d.ts +2 -0
- package/checkbox/examples/daffodil-design-checkbox-examples.metadata.json +1 -1
- package/container/examples/container-sizes/container-sizes.component.d.ts +8 -0
- package/container/examples/container-sizes/container-sizes.module.d.ts +2 -0
- package/container/examples/daffodil-design-container-examples.d.ts +4 -0
- package/container/examples/daffodil-design-container-examples.metadata.json +1 -0
- package/container/examples/examples.d.ts +2 -0
- package/container/examples/index.d.ts +1 -0
- package/container/examples/package.json +11 -0
- package/container/examples/public_api.d.ts +3 -0
- package/core/compactable/compactable-mixin.d.ts +14 -0
- package/core/compactable/compactable.d.ts +7 -0
- package/core/compactable/public_api.d.ts +2 -0
- package/core/manage-container-layout/manage-container-layout-mixin.d.ts +17 -0
- package/core/manage-container-layout/public_api.d.ts +1 -0
- package/core/public_api.d.ts +2 -0
- package/daff-theme.scss +190 -27
- package/daff-typography.scss +5 -4
- package/daff-util.scss +5 -4
- package/daffodil-design.metadata.json +1 -1
- package/esm2015/accordion/examples/basic-accordion/basic-accordion.component.js +4 -3
- package/esm2015/accordion/examples/nav-accordion/nav-accordion.component.js +4 -3
- package/esm2015/article/examples/article-blockquote/article-blockquote.component.js +4 -3
- package/esm2015/article/examples/article-code-block/article-code-block.component.js +4 -3
- package/esm2015/article/examples/article-code-inline/article-code-inline.component.js +4 -3
- package/esm2015/article/examples/article-headings/article-headings.component.js +4 -3
- package/esm2015/article/examples/article-hr/article-hr.component.js +4 -3
- package/esm2015/article/examples/article-lead/article-lead.component.js +4 -3
- package/esm2015/article/examples/article-link/article-link.component.js +4 -3
- package/esm2015/article/examples/article-meta/article-meta.component.js +4 -3
- package/esm2015/article/examples/article-ol/article-ol.component.js +4 -3
- package/esm2015/article/examples/article-table/article-table.component.js +4 -3
- package/esm2015/article/examples/article-ul/article-ul.component.js +4 -3
- package/esm2015/atoms/container/container.component.js +1 -1
- package/esm2015/atoms/form/form-field/form-field/form-field.component.js +3 -1
- package/esm2015/atoms/form/input/input.component.js +3 -2
- package/esm2015/atoms/form/select/select/select.component.js +3 -2
- package/esm2015/atoms/image/image.component.js +2 -2
- package/esm2015/button/examples/basic-button/basic-button.component.js +3 -2
- package/esm2015/button/examples/icon-button/icon-button.component.js +3 -2
- package/esm2015/button/examples/raised-button/raised-button.component.js +3 -2
- package/esm2015/button/examples/sizeable-button/sizeable-button.component.js +3 -2
- package/esm2015/button/examples/statusable-button/statusable-button.component.js +3 -2
- package/esm2015/button/examples/stroked-button/stroked-button.component.js +3 -2
- package/esm2015/button/examples/underline-button/underline-button.component.js +3 -2
- package/esm2015/callout/examples/callout-text-alignment/callout-text-alignment.component.js +7 -3
- package/esm2015/callout/examples/callout-text-alignment/callout-text-alignment.module.js +5 -3
- package/esm2015/callout/examples/callout-theming/callout-theming.component.js +7 -3
- package/esm2015/callout/examples/callout-theming/callout-theming.module.js +5 -2
- package/esm2015/callout/examples/callout-with-grid/callout-with-grid.component.js +9 -4
- package/esm2015/callout/examples/callout-with-grid/callout-with-grid.module.js +3 -1
- package/esm2015/callout/examples/compact-callout/compact-callout.component.js +17 -0
- package/esm2015/callout/examples/compact-callout/compact-callout.module.js +22 -0
- package/esm2015/callout/examples/examples.js +3 -1
- package/esm2015/callout/examples/public_api.js +3 -1
- package/esm2015/card/examples/basic-card/basic-card.component.js +9 -4
- package/esm2015/card/examples/basic-card/basic-card.module.js +3 -1
- package/esm2015/card/examples/card-orientation/card-orientation.component.js +24 -0
- package/esm2015/card/examples/card-orientation/card-orientation.module.js +27 -0
- package/esm2015/card/examples/card-theming/card-theming.component.js +15 -5
- package/esm2015/card/examples/daffodil-design-card-examples.js +3 -1
- package/esm2015/card/examples/linkable-card/linkable-card.component.js +21 -4
- package/esm2015/card/examples/linkable-card/linkable-card.module.js +3 -1
- package/esm2015/card/examples/public_api.js +7 -1
- package/esm2015/card/examples/raised-card/raised-card.component.js +19 -4
- package/esm2015/card/examples/raised-card/raised-card.module.js +3 -3
- package/esm2015/card/examples/stroked-card/stroked-card.component.js +27 -0
- package/esm2015/card/examples/stroked-card/stroked-card.module.js +27 -0
- package/esm2015/checkbox/examples/basic-checkbox/basic-checkbox.component.js +4 -3
- package/esm2015/checkbox/examples/checkbox-set/checkbox-set.component.js +4 -3
- package/esm2015/container/examples/container-sizes/container-sizes.component.js +23 -0
- package/esm2015/container/examples/container-sizes/container-sizes.module.js +23 -0
- package/esm2015/container/examples/daffodil-design-container-examples.js +5 -0
- package/esm2015/container/examples/examples.js +5 -0
- package/esm2015/container/examples/index.js +2 -0
- package/esm2015/container/examples/public_api.js +4 -0
- package/esm2015/core/compactable/compactable-mixin.js +26 -0
- package/esm2015/core/compactable/compactable.js +2 -0
- package/esm2015/core/compactable/public_api.js +2 -0
- package/esm2015/core/manage-container-layout/manage-container-layout-mixin.js +14 -0
- package/esm2015/core/manage-container-layout/public_api.js +2 -0
- package/esm2015/core/public_api.js +3 -1
- package/esm2015/hero/examples/compact-hero/compact-hero.component.js +17 -0
- package/esm2015/hero/examples/compact-hero/compact-hero.module.js +26 -0
- package/esm2015/hero/examples/examples.js +3 -1
- package/esm2015/hero/examples/hero-text-alignment/hero-text-alignment.component.js +7 -3
- package/esm2015/hero/examples/hero-text-alignment/hero-text-alignment.module.js +5 -2
- package/esm2015/hero/examples/hero-theming/hero-theming.component.js +7 -3
- package/esm2015/hero/examples/hero-theming/hero-theming.module.js +5 -2
- package/esm2015/hero/examples/hero-with-grid/hero-with-grid.component.js +9 -4
- package/esm2015/hero/examples/hero-with-grid/hero-with-grid.module.js +3 -1
- package/esm2015/hero/examples/public_api.js +3 -1
- package/esm2015/list/examples/basic-list/basic-list.component.js +4 -3
- package/esm2015/list/examples/icon-list/icon-list.component.js +4 -3
- package/esm2015/list/examples/multiline-list/multiline-list.component.js +4 -3
- package/esm2015/list/examples/nav-list/nav-list.component.js +4 -3
- package/esm2015/loading-icon/examples/loading-icon-color/loading-icon-color.component.js +4 -3
- package/esm2015/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.component.js +4 -3
- package/esm2015/media-gallery/examples/basic-media-gallery/basic-media-gallery.component.js +4 -3
- package/esm2015/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.component.js +4 -3
- package/esm2015/modal/examples/basic-modal/basic-modal.component.js +4 -3
- package/esm2015/modal/examples/basic-modal/modal-content.component.js +4 -3
- package/esm2015/molecules/accordion/accordion/accordion.component.js +3 -2
- package/esm2015/molecules/accordion/accordion-item/accordion-item.component.js +3 -2
- package/esm2015/molecules/accordion/nav-accordion-item/nav-accordion-item.component.js +3 -2
- package/esm2015/molecules/article/article/article.component.js +4 -3
- package/esm2015/molecules/button-set/button-set.component.js +3 -2
- package/esm2015/molecules/callout/callout/callout.component.js +10 -12
- package/esm2015/molecules/callout/callout-body/callout-body.directive.js +18 -0
- package/esm2015/molecules/callout/callout-icon/callout-icon.directive.js +18 -0
- package/esm2015/molecules/callout/callout.module.js +7 -1
- package/esm2015/molecules/callout/public_api.js +4 -2
- package/esm2015/molecules/card/card/card.component.js +76 -14
- package/esm2015/molecules/card/card-content/card-content.directive.js +18 -0
- package/esm2015/molecules/card/card-icon/card-icon.directive.js +18 -0
- package/esm2015/molecules/card/card.module.js +9 -3
- package/esm2015/molecules/card/public_api.js +4 -2
- package/esm2015/molecules/hero/hero/hero.component.js +12 -23
- package/esm2015/molecules/hero/hero-body/hero-body.directive.js +18 -0
- package/esm2015/molecules/hero/hero-icon/hero-icon.directive.js +18 -0
- package/esm2015/molecules/hero/hero.module.js +7 -1
- package/esm2015/molecules/hero/public_api.js +3 -1
- package/esm2015/molecules/image-gallery/gallery-image/gallery-image.component.js +7 -3
- package/esm2015/molecules/image-gallery/image-gallery/image-gallery.component.js +6 -2
- package/esm2015/molecules/image-list/image-list.component.js +3 -2
- package/esm2015/molecules/media-gallery/media-gallery.component.js +13 -3
- package/esm2015/molecules/media-gallery/registry/media-gallery.registry.js +22 -8
- package/esm2015/molecules/media-gallery/thumbnail/thumbnail.directive.js +2 -2
- package/esm2015/molecules/modal/modal-actions/modal-actions.component.js +3 -2
- package/esm2015/molecules/navbar/navbar.component.js +3 -2
- package/esm2015/molecules/qty-dropdown/qty-dropdown.component.js +6 -1
- package/esm2015/molecules/sidebar/sidebar/sidebar.component.js +3 -2
- package/esm2015/quantity-field/examples/basic/basic-quantity-field.component.js +3 -2
- package/esm2015/quantity-field/examples/customRange/custom-range-quantity-field.component.js +3 -2
- package/esm2015/quantity-field/examples/disabled/disabled-quantity-field.component.js +3 -2
- package/esm2015/quantity-field/examples/selectMax/select-max-quantity-field.component.js +3 -2
- package/esm2015/radio/examples/basic-radio/basic-radio.component.js +4 -3
- package/fesm2015/daffodil-design-accordion-examples.js +5 -3
- package/fesm2015/daffodil-design-accordion-examples.js.map +1 -1
- package/fesm2015/daffodil-design-article-examples.js +23 -12
- package/fesm2015/daffodil-design-article-examples.js.map +1 -1
- package/fesm2015/daffodil-design-button-examples.js +8 -1
- package/fesm2015/daffodil-design-button-examples.js.map +1 -1
- package/fesm2015/daffodil-design-callout-examples.js +57 -8
- package/fesm2015/daffodil-design-callout-examples.js.map +1 -1
- package/fesm2015/daffodil-design-card-examples.js +150 -12
- package/fesm2015/daffodil-design-card-examples.js.map +1 -1
- package/fesm2015/daffodil-design-checkbox-examples.js +5 -3
- package/fesm2015/daffodil-design-checkbox-examples.js.map +1 -1
- package/fesm2015/daffodil-design-container-examples.js +54 -0
- package/fesm2015/daffodil-design-container-examples.js.map +1 -0
- package/fesm2015/daffodil-design-hero-examples.js +60 -7
- package/fesm2015/daffodil-design-hero-examples.js.map +1 -1
- package/fesm2015/daffodil-design-list-examples.js +9 -5
- package/fesm2015/daffodil-design-list-examples.js.map +1 -1
- package/fesm2015/daffodil-design-loading-icon-examples.js +5 -3
- package/fesm2015/daffodil-design-loading-icon-examples.js.map +1 -1
- package/fesm2015/daffodil-design-media-gallery-examples.js +5 -3
- package/fesm2015/daffodil-design-media-gallery-examples.js.map +1 -1
- package/fesm2015/daffodil-design-modal-examples.js +5 -3
- package/fesm2015/daffodil-design-modal-examples.js.map +1 -1
- package/fesm2015/daffodil-design-quantity-field-examples.js +5 -1
- package/fesm2015/daffodil-design-quantity-field-examples.js.map +1 -1
- package/fesm2015/daffodil-design-radio-examples.js +3 -2
- package/fesm2015/daffodil-design-radio-examples.js.map +1 -1
- package/fesm2015/daffodil-design.js +342 -95
- package/fesm2015/daffodil-design.js.map +1 -1
- package/hero/examples/compact-hero/compact-hero.component.d.ts +3 -0
- package/hero/examples/compact-hero/compact-hero.module.d.ts +2 -0
- package/hero/examples/daffodil-design-hero-examples.metadata.json +1 -1
- package/hero/examples/hero-text-alignment/hero-text-alignment.component.d.ts +1 -0
- package/hero/examples/hero-theming/hero-theming.component.d.ts +1 -0
- package/hero/examples/hero-with-grid/hero-with-grid.component.d.ts +1 -0
- package/hero/examples/public_api.d.ts +2 -0
- package/list/examples/daffodil-design-list-examples.metadata.json +1 -1
- package/loading-icon/examples/daffodil-design-loading-icon-examples.metadata.json +1 -1
- package/media-gallery/examples/daffodil-design-media-gallery-examples.metadata.json +1 -1
- package/modal/examples/daffodil-design-modal-examples.metadata.json +1 -1
- package/molecules/callout/callout/callout.component.d.ts +32 -11
- package/molecules/callout/callout-body/callout-body.directive.d.ts +6 -0
- package/molecules/callout/callout-icon/callout-icon.directive.d.ts +6 -0
- package/molecules/callout/public_api.d.ts +3 -1
- package/molecules/card/card/card.component.d.ts +37 -11
- package/molecules/card/card-content/card-content.directive.d.ts +6 -0
- package/molecules/card/card-icon/card-icon.directive.d.ts +6 -0
- package/molecules/card/public_api.d.ts +3 -1
- package/molecules/hero/hero/hero.component.d.ts +35 -20
- package/molecules/hero/hero-body/hero-body.directive.d.ts +6 -0
- package/molecules/hero/hero-icon/hero-icon.directive.d.ts +6 -0
- package/molecules/hero/public_api.d.ts +2 -0
- package/molecules/image-gallery/gallery-image/gallery-image.component.d.ts +3 -0
- package/molecules/image-gallery/image-gallery/image-gallery.component.d.ts +3 -0
- package/molecules/media-gallery/media-gallery.component.d.ts +7 -2
- package/molecules/media-gallery/registry/media-gallery.registry.d.ts +6 -3
- package/molecules/media-gallery/thumbnail/thumbnail.directive.d.ts +1 -1
- package/molecules/navbar/navbar.component.d.ts +5 -0
- package/molecules/qty-dropdown/qty-dropdown.component.d.ts +3 -0
- package/package.json +1 -1
- package/quantity-field/examples/daffodil-design-quantity-field-examples.metadata.json +1 -1
- package/radio/examples/daffodil-design-radio-examples.metadata.json +1 -1
@@ -1,17 +1,23 @@
|
|
1
|
-
import { Component, NgModule } from '@angular/core';
|
1
|
+
import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
2
|
+
import { faMapMarked } from '@fortawesome/free-solid-svg-icons';
|
2
3
|
import { CommonModule } from '@angular/common';
|
4
|
+
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
3
5
|
import { DaffCardModule, DaffImageModule, DaffButtonModule } from '@daffodil/design';
|
4
6
|
import { FormControl, ReactiveFormsModule } from '@angular/forms';
|
5
7
|
import { RouterModule } from '@angular/router';
|
6
8
|
|
7
9
|
class BasicCardComponent {
|
10
|
+
constructor() {
|
11
|
+
this.faMapMarked = faMapMarked;
|
12
|
+
}
|
8
13
|
}
|
9
14
|
BasicCardComponent.decorators = [
|
10
15
|
{ type: Component, args: [{
|
11
16
|
// eslint-disable-next-line @angular-eslint/component-selector
|
12
17
|
selector: 'basic-card',
|
13
|
-
template: "<daff-card>\n
|
14
|
-
|
18
|
+
template: "<daff-card>\n\t<daff-image daffCardImage\n\t\tsrc=\"https://images.unsplash.com/photo-1593519749347-80f101e93113?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=3774&q=80\"\n\t\talt=\"Bottom up view of Basel exhibition centre\"\n\t\twidth=\"1261\"\n\t\theight=\"946\">\n\t</daff-image>\n <fa-icon daffCardIcon [icon]=\"faMapMarked\"></fa-icon>\n <div daffCardTagline>Basel, Switzerland</div>\n <h4 daffCardTitle>Basel Exhibition Centre</h4>\n\t<div daffCardContent>\n <p>This covered, public space not only marks the entrance to the exhibitions, but also functions as a meeting place for locals and visitors. The architects called the prominent hole in the middle the \"Fenster zum Himmel\" (\"window to heaven\").</p>\n </div>\n <div daffCardActions>\n <button daff-button color=\"theme-contrast\">Learn More</button>\n </div>\n</daff-card>\n",
|
19
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
20
|
+
styles: ["daff-card{max-width:480px}"]
|
15
21
|
},] }
|
16
22
|
];
|
17
23
|
|
@@ -27,6 +33,7 @@ BasicCardModule.decorators = [
|
|
27
33
|
DaffCardModule,
|
28
34
|
DaffImageModule,
|
29
35
|
DaffButtonModule,
|
36
|
+
FontAwesomeModule,
|
30
37
|
],
|
31
38
|
exports: [
|
32
39
|
BasicCardComponent,
|
@@ -34,20 +41,72 @@ BasicCardModule.decorators = [
|
|
34
41
|
},] }
|
35
42
|
];
|
36
43
|
|
44
|
+
class CardOrientationComponent {
|
45
|
+
constructor() {
|
46
|
+
this.faMapMarked = faMapMarked;
|
47
|
+
this.orientationControl = new FormControl('');
|
48
|
+
this.options = [
|
49
|
+
{ value: '', label: 'Default' },
|
50
|
+
{ value: 'vertical', label: 'Vertical' },
|
51
|
+
{ value: 'horizontal', label: 'Horizontal' },
|
52
|
+
];
|
53
|
+
}
|
54
|
+
}
|
55
|
+
CardOrientationComponent.decorators = [
|
56
|
+
{ type: Component, args: [{
|
57
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
58
|
+
selector: 'card-orientation',
|
59
|
+
template: "<daff-card [orientation]=\"orientationControl.value\">\n <daff-image daffCardImage\n\t\tsrc=\"https://images.unsplash.com/photo-1593519749347-80f101e93113?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=3774&q=80\"\n\t\talt=\"Bottom up view of Basel exhibition centre\"\n\t\twidth=\"1261\"\n\t\theight=\"946\">\n\t</daff-image>\n <fa-icon daffCardIcon [icon]=\"faMapMarked\"></fa-icon>\n <div daffCardTagline>Basel, Switzerland</div>\n <h4 daffCardTitle>Basel Exhibition Centre</h4>\n\t<div daffCardContent>\n <p>This covered, public space not only marks the entrance to the exhibitions, but also functions as a meeting place for locals and visitors. The architects called the prominent hole in the middle the \"Fenster zum Himmel\" (\"window to heaven\").</p>\n </div>\n\t<div daffCardActions>\n <button daff-button color=\"theme-contrast\">Learn More</button>\n </div>\n</daff-card>\n\n<select [formControl]=\"orientationControl\">\n\t<option *ngFor=\"let option of options\" [value]=\"option.value\">{{ option.label }}</option>\n</select>",
|
60
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
61
|
+
styles: [".daff-card--vertical{max-width:560px}"]
|
62
|
+
},] }
|
63
|
+
];
|
64
|
+
|
65
|
+
class CardOrientationModule {
|
66
|
+
}
|
67
|
+
CardOrientationModule.decorators = [
|
68
|
+
{ type: NgModule, args: [{
|
69
|
+
declarations: [
|
70
|
+
CardOrientationComponent,
|
71
|
+
],
|
72
|
+
imports: [
|
73
|
+
CommonModule,
|
74
|
+
ReactiveFormsModule,
|
75
|
+
DaffCardModule,
|
76
|
+
DaffImageModule,
|
77
|
+
DaffButtonModule,
|
78
|
+
FontAwesomeModule,
|
79
|
+
],
|
80
|
+
exports: [
|
81
|
+
CardOrientationComponent,
|
82
|
+
],
|
83
|
+
},] }
|
84
|
+
];
|
85
|
+
|
37
86
|
class CardThemingComponent {
|
38
87
|
constructor() {
|
39
|
-
this.color = 'primary';
|
40
88
|
this.colorControl = new FormControl('');
|
89
|
+
this.options = [
|
90
|
+
{ value: '', label: 'Default' },
|
91
|
+
{ value: 'primary', label: 'Primary' },
|
92
|
+
{ value: 'secondary', label: 'Secondary' },
|
93
|
+
{ value: 'tertiary', label: 'Tertiary' },
|
94
|
+
{ value: 'theme', label: 'Theme' },
|
95
|
+
{ value: 'theme-contrast', label: 'Theme Contrast' },
|
96
|
+
{ value: 'black', label: 'Black' },
|
97
|
+
{ value: 'white', label: 'White' },
|
98
|
+
];
|
41
99
|
}
|
42
100
|
}
|
43
101
|
CardThemingComponent.decorators = [
|
44
102
|
{ type: Component, args: [{
|
45
103
|
// eslint-disable-next-line @angular-eslint/component-selector
|
46
104
|
selector: 'card-theming',
|
47
|
-
template: "<daff-card [color]=\"colorControl.value\">\n <div daffCardTagline>Card Tagline</div>\n <div daffCardTitle>Title</div>\n <p>Cards are themable.</p>\n</daff-card>\n\n<select [formControl]=\"colorControl\">\n
|
105
|
+
template: "<daff-card [color]=\"colorControl.value\">\n <div daffCardTagline>Card Tagline</div>\n <div daffCardTitle>Title</div>\n <div daffCardContent>\n <p>Cards are themable.</p>\n </div>\n</daff-card>\n\n<select [formControl]=\"colorControl\">\n\t<option *ngFor=\"let option of options\" [value]=\"option.value\">{{ option.label }}</option>\n</select>",
|
106
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
48
107
|
styles: [`
|
49
108
|
daff-card {
|
50
|
-
max-width:
|
109
|
+
max-width: 480px;
|
51
110
|
}
|
52
111
|
`]
|
53
112
|
},] }
|
@@ -73,13 +132,29 @@ CardThemingModule.decorators = [
|
|
73
132
|
];
|
74
133
|
|
75
134
|
class LinkableCardComponent {
|
135
|
+
constructor() {
|
136
|
+
this.basicColorControl = new FormControl('');
|
137
|
+
this.raisedColorControl = new FormControl('');
|
138
|
+
this.strokedColorControl = new FormControl('');
|
139
|
+
this.options = [
|
140
|
+
{ value: '', label: 'Default' },
|
141
|
+
{ value: 'primary', label: 'Primary' },
|
142
|
+
{ value: 'secondary', label: 'Secondary' },
|
143
|
+
{ value: 'tertiary', label: 'Tertiary' },
|
144
|
+
{ value: 'theme', label: 'Theme' },
|
145
|
+
{ value: 'theme-contrast', label: 'Theme Contrast' },
|
146
|
+
{ value: 'black', label: 'Black' },
|
147
|
+
{ value: 'white', label: 'White' },
|
148
|
+
];
|
149
|
+
}
|
76
150
|
}
|
77
151
|
LinkableCardComponent.decorators = [
|
78
152
|
{ type: Component, args: [{
|
79
153
|
// eslint-disable-next-line @angular-eslint/component-selector
|
80
154
|
selector: 'linkable-card',
|
81
|
-
template: "<a
|
82
|
-
|
155
|
+
template: "<a daff-card href=\"https://www.basel.com/en/attractions/basel-exhibition-centre-f45d5dd6f0\" target=\"_blank\" [color]=\"basicColorControl.value\">\n\t<daff-image daffCardImage\n\t\tsrc=\"https://images.unsplash.com/photo-1593519749347-80f101e93113?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=3774&q=80\"\n\t\talt=\"Bottom up view of Basel exhibition centre\"\n\t\twidth=\"1261\"\n\t\theight=\"946\">\n\t</daff-image>\n\t<div daffCardTagline>Basel, Switzerland</div>\n\t<h4 daffCardTitle>Basel Exhibition Centre</h4>\n\t<div daffCardContent>\n\t\t<p>This covered, public space not only marks the entrance to the exhibitions, but also functions as a meeting place for locals and visitors. The architects called the prominent hole in the middle the \"Fenster zum Himmel\" (\"window to heaven\").</p>\n\t</div>\n</a>\n\n<select [formControl]=\"basicColorControl\">\n\t<option *ngFor=\"let option of options\" [value]=\"option.value\">{{ option.label }}</option>\n</select>\n\n<a daff-raised-card href=\"https://www.basel.com/en/attractions/basel-exhibition-centre-f45d5dd6f0\" target=\"_blank\" [color]=\"raisedColorControl.value\">\n\t<daff-image daffCardImage\n\t\tsrc=\"https://images.unsplash.com/photo-1593519749347-80f101e93113?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=3774&q=80\"\n\t\talt=\"Bottom up view of Basel exhibition centre\"\n\t\twidth=\"1261\"\n\t\theight=\"946\">\n\t</daff-image>\n\t<div daffCardTagline>Basel, Switzerland</div>\n\t<h4 daffCardTitle>Basel Exhibition Centre</h4>\n\t<div daffCardContent>\n\t\t<p>This covered, public space not only marks the entrance to the exhibitions, but also functions as a meeting place for locals and visitors. The architects called the prominent hole in the middle the \"Fenster zum Himmel\" (\"window to heaven\").</p>\n\t</div>\n</a>\n\n<select [formControl]=\"strokedColorControl\">\n\t<option *ngFor=\"let option of options\" [value]=\"option.value\">{{ option.label }}</option>\n</select>\n\n<a daff-stroked-card href=\"https://www.basel.com/en/attractions/basel-exhibition-centre-f45d5dd6f0\" target=\"_blank\" [color]=\"strokedColorControl.value\">\n\t<daff-image daffCardImage\n\t\tsrc=\"https://images.unsplash.com/photo-1593519749347-80f101e93113?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=3774&q=80\"\n\t\talt=\"Bottom up view of Basel exhibition centre\"\n\t\twidth=\"1261\"\n\t\theight=\"946\">\n\t</daff-image>\n\t<div daffCardTagline>Basel, Switzerland</div>\n\t<h4 daffCardTitle>Basel Exhibition Centre</h4>\n\t<div daffCardContent>\n\t\t<p>This covered, public space not only marks the entrance to the exhibitions, but also functions as a meeting place for locals and visitors. The architects called the prominent hole in the middle the \"Fenster zum Himmel\" (\"window to heaven\").</p>\n\t</div>\n</a>\n\n<select [formControl]=\"strokedColorControl\">\n\t<option *ngFor=\"let option of options\" [value]=\"option.value\">{{ option.label }}</option>\n</select>",
|
156
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
157
|
+
styles: ["a daff-card,a daff-raised-card,a daff-stroked-card{max-width:480px}"]
|
83
158
|
},] }
|
84
159
|
];
|
85
160
|
|
@@ -93,6 +168,7 @@ LinkableCardModule.decorators = [
|
|
93
168
|
imports: [
|
94
169
|
CommonModule,
|
95
170
|
RouterModule,
|
171
|
+
ReactiveFormsModule,
|
96
172
|
DaffCardModule,
|
97
173
|
DaffImageModule,
|
98
174
|
DaffButtonModule,
|
@@ -104,13 +180,27 @@ LinkableCardModule.decorators = [
|
|
104
180
|
];
|
105
181
|
|
106
182
|
class RaisedCardComponent {
|
183
|
+
constructor() {
|
184
|
+
this.colorControl = new FormControl('');
|
185
|
+
this.options = [
|
186
|
+
{ value: '', label: 'Default' },
|
187
|
+
{ value: 'primary', label: 'Primary' },
|
188
|
+
{ value: 'secondary', label: 'Secondary' },
|
189
|
+
{ value: 'tertiary', label: 'Tertiary' },
|
190
|
+
{ value: 'theme', label: 'Theme' },
|
191
|
+
{ value: 'theme-contrast', label: 'Theme Contrast' },
|
192
|
+
{ value: 'black', label: 'Black' },
|
193
|
+
{ value: 'white', label: 'White' },
|
194
|
+
];
|
195
|
+
}
|
107
196
|
}
|
108
197
|
RaisedCardComponent.decorators = [
|
109
198
|
{ type: Component, args: [{
|
110
199
|
// eslint-disable-next-line @angular-eslint/component-selector
|
111
200
|
selector: 'raised-card',
|
112
|
-
template: "<daff-card [
|
113
|
-
|
201
|
+
template: "<daff-raised-card [color]=\"colorControl.value\">\n\t<daff-image daffCardImage\n\t\tsrc=\"https://images.unsplash.com/photo-1593519749347-80f101e93113?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=3774&q=80\"\n\t\talt=\"Bottom up view of Basel exhibition centre\"\n\t\twidth=\"1261\"\n\t\theight=\"946\">\n\t</daff-image>\n\t<div daffCardTagline>Basel, Switzerland</div>\n\t<h4 daffCardTitle>Basel Exhibition Centre</h4>\n\t<div daffCardContent>\n\t\t<p>This covered, public space not only marks the entrance to the exhibitions, but also functions as a meeting place for locals and visitors. The architects called the prominent hole in the middle the \"Fenster zum Himmel\" (\"window to heaven\").</p>\n\t</div>\n</daff-raised-card>\n\n<select [formControl]=\"colorControl\">\n\t<option *ngFor=\"let option of options\" [value]=\"option.value\">{{ option.label }}</option>\n</select>",
|
202
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
203
|
+
styles: ["daff-raised-card{max-width:480px}"]
|
114
204
|
},] }
|
115
205
|
];
|
116
206
|
|
@@ -123,7 +213,7 @@ RaisedCardModule.decorators = [
|
|
123
213
|
],
|
124
214
|
imports: [
|
125
215
|
CommonModule,
|
126
|
-
|
216
|
+
ReactiveFormsModule,
|
127
217
|
DaffCardModule,
|
128
218
|
DaffImageModule,
|
129
219
|
DaffButtonModule,
|
@@ -134,16 +224,64 @@ RaisedCardModule.decorators = [
|
|
134
224
|
},] }
|
135
225
|
];
|
136
226
|
|
227
|
+
class StrokedCardComponent {
|
228
|
+
constructor() {
|
229
|
+
this.colorControl = new FormControl('');
|
230
|
+
this.options = [
|
231
|
+
{ value: '', label: 'Default' },
|
232
|
+
{ value: 'primary', label: 'Primary' },
|
233
|
+
{ value: 'secondary', label: 'Secondary' },
|
234
|
+
{ value: 'tertiary', label: 'Tertiary' },
|
235
|
+
{ value: 'theme', label: 'Theme' },
|
236
|
+
{ value: 'theme-contrast', label: 'Theme Contrast' },
|
237
|
+
{ value: 'black', label: 'Black' },
|
238
|
+
{ value: 'white', label: 'White' },
|
239
|
+
];
|
240
|
+
}
|
241
|
+
}
|
242
|
+
StrokedCardComponent.decorators = [
|
243
|
+
{ type: Component, args: [{
|
244
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
245
|
+
selector: 'stroked-card',
|
246
|
+
template: "<daff-stroked-card [color]=\"colorControl.value\">\n\t<daff-image daffCardImage\n\t\tsrc=\"https://images.unsplash.com/photo-1593519749347-80f101e93113?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=3774&q=80\"\n\t\talt=\"Bottom up view of Basel exhibition centre\"\n\t\twidth=\"1261\"\n\t\theight=\"946\">\n\t</daff-image>\n\t<div daffCardTagline>Basel, Switzerland</div>\n\t<h4 daffCardTitle>Basel Exhibition Centre</h4>\n\t<div daffCardContent>\n\t\t<p>This covered, public space not only marks the entrance to the exhibitions, but also functions as a meeting place for locals and visitors. The architects called the prominent hole in the middle the \"Fenster zum Himmel\" (\"window to heaven\").</p>\n\t</div>\n</daff-stroked-card>\n\n<select [formControl]=\"colorControl\">\n\t<option *ngFor=\"let option of options\" [value]=\"option.value\">{{ option.label }}</option>\n</select>",
|
247
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
248
|
+
styles: [":host{display:block;max-width:340px}"]
|
249
|
+
},] }
|
250
|
+
];
|
251
|
+
|
252
|
+
class StrokedCardModule {
|
253
|
+
}
|
254
|
+
StrokedCardModule.decorators = [
|
255
|
+
{ type: NgModule, args: [{
|
256
|
+
declarations: [
|
257
|
+
StrokedCardComponent,
|
258
|
+
],
|
259
|
+
imports: [
|
260
|
+
CommonModule,
|
261
|
+
RouterModule,
|
262
|
+
ReactiveFormsModule,
|
263
|
+
DaffCardModule,
|
264
|
+
DaffImageModule,
|
265
|
+
DaffButtonModule,
|
266
|
+
],
|
267
|
+
exports: [
|
268
|
+
StrokedCardComponent,
|
269
|
+
],
|
270
|
+
},] }
|
271
|
+
];
|
272
|
+
|
137
273
|
const CARD_EXAMPLES = [
|
138
274
|
BasicCardComponent,
|
139
275
|
CardThemingComponent,
|
140
276
|
LinkableCardComponent,
|
141
277
|
RaisedCardComponent,
|
278
|
+
StrokedCardComponent,
|
279
|
+
CardOrientationComponent,
|
142
280
|
];
|
143
281
|
|
144
282
|
/**
|
145
283
|
* Generated bundle index. Do not edit.
|
146
284
|
*/
|
147
285
|
|
148
|
-
export { BasicCardModule, CARD_EXAMPLES, CardThemingModule, LinkableCardModule, RaisedCardModule, BasicCardComponent as ɵa, CardThemingComponent as ɵb, LinkableCardComponent as ɵc, RaisedCardComponent as ɵd };
|
286
|
+
export { BasicCardModule, CARD_EXAMPLES, CardOrientationModule, CardThemingModule, LinkableCardModule, RaisedCardModule, StrokedCardModule, BasicCardComponent as ɵa, CardThemingComponent as ɵb, LinkableCardComponent as ɵc, RaisedCardComponent as ɵd, StrokedCardComponent as ɵe, CardOrientationComponent as ɵf };
|
149
287
|
//# sourceMappingURL=daffodil-design-card-examples.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"daffodil-design-card-examples.js","sources":["../../../libs/design/card/examples/src/basic-card/basic-card.component.ts","../../../libs/design/card/examples/src/basic-card/basic-card.module.ts","../../../libs/design/card/examples/src/card-theming/card-theming.component.ts","../../../libs/design/card/examples/src/card-theming/card-theming.module.ts","../../../libs/design/card/examples/src/linkable-card/linkable-card.component.ts","../../../libs/design/card/examples/src/linkable-card/linkable-card.module.ts","../../../libs/design/card/examples/src/raised-card/raised-card.component.ts","../../../libs/design/card/examples/src/raised-card/raised-card.module.ts","../../../libs/design/card/examples/src/public_api.ts","../../../libs/design/card/examples/src/daffodil-design-card-examples.ts"],"sourcesContent":["import { Component } from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'basic-card',\n templateUrl: './basic-card.component.html',\n styleUrls: ['./basic-card.component.scss'],\n})\nexport class BasicCardComponent {}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport {\n DaffCardModule,\n DaffImageModule,\n DaffButtonModule,\n} from '@daffodil/design';\n\nimport { BasicCardComponent } from './basic-card.component';\n\n@NgModule({\n declarations: [\n BasicCardComponent,\n ],\n imports: [\n CommonModule,\n DaffCardModule,\n DaffImageModule,\n DaffButtonModule,\n ],\n exports: [\n BasicCardComponent,\n ],\n})\nexport class BasicCardModule { }\n","import { Component } from '@angular/core';\nimport { FormControl } from '@angular/forms';\n\nimport { DaffPalette } from '@daffodil/design';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'card-theming',\n templateUrl: './card-theming.component.html',\n styles: [`\n daff-card {\n max-width: 400px;\n }\n `],\n})\nexport class CardThemingComponent {\n color: DaffPalette = 'primary';\n\n colorControl: FormControl = new FormControl('');\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport {\n DaffCardModule,\n DaffImageModule,\n} from '@daffodil/design';\n\nimport { CardThemingComponent } from './card-theming.component';\n\n@NgModule({\n declarations: [\n CardThemingComponent,\n ],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n DaffCardModule,\n DaffImageModule,\n ],\n exports: [\n CardThemingComponent,\n ],\n})\nexport class CardThemingModule { }\n","import { Component } from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'linkable-card',\n templateUrl: './linkable-card.component.html',\n styleUrls: ['./linkable-card.component.scss'],\n})\nexport class LinkableCardComponent {}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { RouterModule } from '@angular/router';\n\nimport {\n DaffCardModule,\n DaffImageModule,\n DaffButtonModule,\n} from '@daffodil/design';\n\nimport { LinkableCardComponent } from './linkable-card.component';\n\n@NgModule({\n declarations: [\n LinkableCardComponent,\n ],\n imports: [\n CommonModule,\n RouterModule,\n DaffCardModule,\n DaffImageModule,\n DaffButtonModule,\n ],\n exports: [\n LinkableCardComponent,\n ],\n})\nexport class LinkableCardModule { }\n","import { Component } from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'raised-card',\n templateUrl: './raised-card.component.html',\n styleUrls: ['./raised-card.component.scss'],\n})\nexport class RaisedCardComponent {}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { RouterModule } from '@angular/router';\n\nimport {\n DaffCardModule,\n DaffImageModule,\n DaffButtonModule,\n} from '@daffodil/design';\n\nimport { RaisedCardComponent } from './raised-card.component';\n\n@NgModule({\n declarations: [\n RaisedCardComponent,\n ],\n imports: [\n CommonModule,\n RouterModule,\n DaffCardModule,\n DaffImageModule,\n DaffButtonModule,\n ],\n exports: [\n RaisedCardComponent,\n ],\n})\nexport class RaisedCardModule { }\n","import { BasicCardComponent } from './basic-card/basic-card.component';\nexport { BasicCardModule } from './basic-card/basic-card.module';\nimport { CardThemingComponent } from './card-theming/card-theming.component';\nexport { CardThemingModule } from './card-theming/card-theming.module';\nimport { LinkableCardComponent } from './linkable-card/linkable-card.component';\nexport { LinkableCardModule } from './linkable-card/linkable-card.module';\nimport { RaisedCardComponent } from './raised-card/raised-card.component';\nexport { RaisedCardModule } from './raised-card/raised-card.module';\n\nexport const CARD_EXAMPLES = [\n BasicCardComponent,\n CardThemingComponent,\n LinkableCardComponent,\n RaisedCardComponent,\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n\nexport {BasicCardComponent as ɵa} from './basic-card/basic-card.component';\nexport {CardThemingComponent as ɵb} from './card-theming/card-theming.component';\nexport {LinkableCardComponent as ɵc} from './linkable-card/linkable-card.component';\nexport {RaisedCardComponent as ɵd} from './raised-card/raised-card.component';"],"names":[],"mappings":";;;;;;MAQa,kBAAkB;;;YAN9B,SAAS,SAAC;;gBAET,QAAQ,EAAE,YAAY;gBACtB,gdAA0C;;aAE3C;;;MCkBY,eAAe;;;YAd3B,QAAQ,SAAC;gBACR,YAAY,EAAE;oBACZ,kBAAkB;iBACnB;gBACD,OAAO,EAAE;oBACP,YAAY;oB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-design-card-examples.js","sources":["../../../libs/design/card/examples/src/basic-card/basic-card.component.ts","../../../libs/design/card/examples/src/basic-card/basic-card.module.ts","../../../libs/design/card/examples/src/card-orientation/card-orientation.component.ts","../../../libs/design/card/examples/src/card-orientation/card-orientation.module.ts","../../../libs/design/card/examples/src/card-theming/card-theming.component.ts","../../../libs/design/card/examples/src/card-theming/card-theming.module.ts","../../../libs/design/card/examples/src/linkable-card/linkable-card.component.ts","../../../libs/design/card/examples/src/linkable-card/linkable-card.module.ts","../../../libs/design/card/examples/src/raised-card/raised-card.component.ts","../../../libs/design/card/examples/src/raised-card/raised-card.module.ts","../../../libs/design/card/examples/src/stroked-card/stroked-card.component.ts","../../../libs/design/card/examples/src/stroked-card/stroked-card.module.ts","../../../libs/design/card/examples/src/public_api.ts","../../../libs/design/card/examples/src/daffodil-design-card-examples.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\nimport { faMapMarked } from '@fortawesome/free-solid-svg-icons';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'basic-card',\n templateUrl: './basic-card.component.html',\n styleUrls: ['./basic-card.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BasicCardComponent {\n faMapMarked = faMapMarked;\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\n\nimport {\n DaffCardModule,\n DaffImageModule,\n DaffButtonModule,\n} from '@daffodil/design';\n\nimport { BasicCardComponent } from './basic-card.component';\n\n@NgModule({\n declarations: [\n BasicCardComponent,\n ],\n imports: [\n CommonModule,\n DaffCardModule,\n DaffImageModule,\n DaffButtonModule,\n\n FontAwesomeModule,\n ],\n exports: [\n BasicCardComponent,\n ],\n})\nexport class BasicCardModule { }\n","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\nimport { FormControl } from '@angular/forms';\nimport { faMapMarked } from '@fortawesome/free-solid-svg-icons';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'card-orientation',\n templateUrl: './card-orientation.component.html',\n styleUrls: ['./card-orientation.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CardOrientationComponent {\n faMapMarked = faMapMarked;\n\n orientationControl: FormControl = new FormControl('');\n\n options = [\n { value: '', label: 'Default' },\n { value: 'vertical', label: 'Vertical' },\n { value: 'horizontal', label: 'Horizontal' },\n ];\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\n\nimport {\n DaffButtonModule,\n DaffCardModule,\n DaffImageModule,\n} from '@daffodil/design';\n\nimport { CardOrientationComponent } from './card-orientation.component';\n\n@NgModule({\n declarations: [\n CardOrientationComponent,\n ],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n DaffCardModule,\n DaffImageModule,\n DaffButtonModule,\n FontAwesomeModule,\n ],\n exports: [\n CardOrientationComponent,\n ],\n})\nexport class CardOrientationModule { }\n","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\nimport { FormControl } from '@angular/forms';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'card-theming',\n templateUrl: './card-theming.component.html',\n styles: [`\n daff-card {\n max-width: 480px;\n }\n `],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CardThemingComponent {\n colorControl: FormControl = new FormControl('');\n\n options = [\n { value: '', label: 'Default' },\n { value: 'primary', label: 'Primary' },\n { value: 'secondary', label: 'Secondary' },\n { value: 'tertiary', label: 'Tertiary' },\n { value: 'theme', label: 'Theme' },\n { value: 'theme-contrast', label: 'Theme Contrast' },\n { value: 'black', label: 'Black' },\n { value: 'white', label: 'White' },\n ];\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport {\n DaffCardModule,\n DaffImageModule,\n} from '@daffodil/design';\n\nimport { CardThemingComponent } from './card-theming.component';\n\n@NgModule({\n declarations: [\n CardThemingComponent,\n ],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n DaffCardModule,\n DaffImageModule,\n ],\n exports: [\n CardThemingComponent,\n ],\n})\nexport class CardThemingModule { }\n","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\nimport { FormControl } from '@angular/forms';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'linkable-card',\n templateUrl: './linkable-card.component.html',\n styleUrls: ['./linkable-card.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class LinkableCardComponent {\n basicColorControl: FormControl = new FormControl('');\n raisedColorControl: FormControl = new FormControl('');\n strokedColorControl: FormControl = new FormControl('');\n\n options = [\n { value: '', label: 'Default' },\n { value: 'primary', label: 'Primary' },\n { value: 'secondary', label: 'Secondary' },\n { value: 'tertiary', label: 'Tertiary' },\n { value: 'theme', label: 'Theme' },\n { value: 'theme-contrast', label: 'Theme Contrast' },\n { value: 'black', label: 'Black' },\n { value: 'white', label: 'White' },\n ];\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { RouterModule } from '@angular/router';\n\nimport {\n DaffCardModule,\n DaffImageModule,\n DaffButtonModule,\n} from '@daffodil/design';\n\nimport { LinkableCardComponent } from './linkable-card.component';\n\n@NgModule({\n declarations: [\n LinkableCardComponent,\n ],\n imports: [\n CommonModule,\n RouterModule,\n ReactiveFormsModule,\n DaffCardModule,\n DaffImageModule,\n DaffButtonModule,\n ],\n exports: [\n LinkableCardComponent,\n ],\n})\nexport class LinkableCardModule { }\n","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\nimport { FormControl } from '@angular/forms';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'raised-card',\n templateUrl: './raised-card.component.html',\n styleUrls: ['./raised-card.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class RaisedCardComponent {\n colorControl: FormControl = new FormControl('');\n\n options = [\n { value: '', label: 'Default' },\n { value: 'primary', label: 'Primary' },\n { value: 'secondary', label: 'Secondary' },\n { value: 'tertiary', label: 'Tertiary' },\n { value: 'theme', label: 'Theme' },\n { value: 'theme-contrast', label: 'Theme Contrast' },\n { value: 'black', label: 'Black' },\n { value: 'white', label: 'White' },\n ];\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport {\n DaffCardModule,\n DaffImageModule,\n DaffButtonModule,\n} from '@daffodil/design';\n\nimport { RaisedCardComponent } from './raised-card.component';\n\n@NgModule({\n declarations: [\n RaisedCardComponent,\n ],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n\n DaffCardModule,\n DaffImageModule,\n DaffButtonModule,\n ],\n exports: [\n RaisedCardComponent,\n ],\n})\nexport class RaisedCardModule { }\n","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\nimport { FormControl } from '@angular/forms';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'stroked-card',\n templateUrl: './stroked-card.component.html',\n styleUrls: ['./stroked-card.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class StrokedCardComponent {\n colorControl: FormControl = new FormControl('');\n\n options = [\n { value: '', label: 'Default' },\n { value: 'primary', label: 'Primary' },\n { value: 'secondary', label: 'Secondary' },\n { value: 'tertiary', label: 'Tertiary' },\n { value: 'theme', label: 'Theme' },\n { value: 'theme-contrast', label: 'Theme Contrast' },\n { value: 'black', label: 'Black' },\n { value: 'white', label: 'White' },\n ];\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { RouterModule } from '@angular/router';\n\nimport {\n DaffCardModule,\n DaffImageModule,\n DaffButtonModule,\n} from '@daffodil/design';\n\nimport { StrokedCardComponent } from './stroked-card.component';\n\n@NgModule({\n declarations: [\n StrokedCardComponent,\n ],\n imports: [\n CommonModule,\n RouterModule,\n ReactiveFormsModule,\n\n DaffCardModule,\n DaffImageModule,\n DaffButtonModule,\n ],\n exports: [\n StrokedCardComponent,\n ],\n})\nexport class StrokedCardModule { }\n","import { BasicCardComponent } from './basic-card/basic-card.component';\nexport { BasicCardModule } from './basic-card/basic-card.module';\nimport { CardOrientationComponent } from './card-orientation/card-orientation.component';\nexport { CardOrientationModule } from './card-orientation/card-orientation.module';\nimport { CardThemingComponent } from './card-theming/card-theming.component';\nexport { CardThemingModule } from './card-theming/card-theming.module';\nimport { LinkableCardComponent } from './linkable-card/linkable-card.component';\nexport { LinkableCardModule } from './linkable-card/linkable-card.module';\nimport { RaisedCardComponent } from './raised-card/raised-card.component';\nexport { RaisedCardModule } from './raised-card/raised-card.module';\nimport { StrokedCardComponent } from './stroked-card/stroked-card.component';\nexport { StrokedCardModule } from './stroked-card/stroked-card.module';\n\nexport const CARD_EXAMPLES = [\n BasicCardComponent,\n CardThemingComponent,\n LinkableCardComponent,\n RaisedCardComponent,\n StrokedCardComponent,\n CardOrientationComponent,\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n\nexport {BasicCardComponent as ɵa} from './basic-card/basic-card.component';\nexport {CardOrientationComponent as ɵf} from './card-orientation/card-orientation.component';\nexport {CardThemingComponent as ɵb} from './card-theming/card-theming.component';\nexport {LinkableCardComponent as ɵc} from './linkable-card/linkable-card.component';\nexport {RaisedCardComponent as ɵd} from './raised-card/raised-card.component';\nexport {StrokedCardComponent as ɵe} from './stroked-card/stroked-card.component';"],"names":[],"mappings":";;;;;;;;MAaa,kBAAkB;IAP/B;QAQE,gBAAW,GAAG,WAAW,CAAC;KAC3B;;;YATA,SAAS,SAAC;;gBAET,QAAQ,EAAE,YAAY;gBACtB,24BAA0C;gBAE1C,eAAe,EAAE,uBAAuB,CAAC,MAAM;;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
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Component, NgModule, ViewChild } from '@angular/core';
|
1
|
+
import { Component, ChangeDetectionStrategy, NgModule, ViewChild } from '@angular/core';
|
2
2
|
import { FormControl, ReactiveFormsModule, FormArray } from '@angular/forms';
|
3
3
|
import { DaffCheckboxModule, DaffButtonModule, DaffCheckboxSetComponent } from '@daffodil/design';
|
4
4
|
|
@@ -20,7 +20,8 @@ BasicCheckboxComponent.decorators = [
|
|
20
20
|
{ type: Component, args: [{
|
21
21
|
// eslint-disable-next-line @angular-eslint/component-selector
|
22
22
|
selector: 'basic-checkbox',
|
23
|
-
template: "<daff-checkbox [formControl]=\"checkboxExample\" value=\"checkboxExample\">Checkbox</daff-checkbox>\n<div>\n {{checkboxExample.value}}\n</div>\n<button daff-button color=\"primary\" (click)=\"setFalse()\">Set to false</button>\n<button daff-button (click)=\"setTrue()\">Set to true</button>"
|
23
|
+
template: "<daff-checkbox [formControl]=\"checkboxExample\" value=\"checkboxExample\">Checkbox</daff-checkbox>\n<div>\n {{checkboxExample.value}}\n</div>\n<button daff-button color=\"primary\" (click)=\"setFalse()\">Set to false</button>\n<button daff-button (click)=\"setTrue()\">Set to true</button>",
|
24
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
24
25
|
},] }
|
25
26
|
];
|
26
27
|
|
@@ -59,7 +60,8 @@ CheckboxSetComponent.decorators = [
|
|
59
60
|
{ type: Component, args: [{
|
60
61
|
// eslint-disable-next-line @angular-eslint/component-selector
|
61
62
|
selector: 'checkbox-set',
|
62
|
-
template: "<daff-checkbox-set [formArray]=\"checkboxArray\">\n <daff-checkbox [formControl]=\"checkboxArray.at(0)\" value=\"option1\">Option 1 </daff-checkbox>\n <daff-checkbox [formControl]=\"checkboxArray.at(1)\" value=\"option2\">Option 2 </daff-checkbox>\n <daff-checkbox [formControl]=\"checkboxArray.at(2)\" value=\"option3\">Option 3 </daff-checkbox>\n</daff-checkbox-set>\n\n<div>\n {{checkboxArray.value}}\n</div>\n<button daff-button color=\"secondary\" (click)=\"displayList()\">Get List of Values</button>\n<div>\n List of selected values: {{selectedValues}}\n</div>"
|
63
|
+
template: "<daff-checkbox-set [formArray]=\"checkboxArray\">\n <daff-checkbox [formControl]=\"checkboxArray.at(0)\" value=\"option1\">Option 1 </daff-checkbox>\n <daff-checkbox [formControl]=\"checkboxArray.at(1)\" value=\"option2\">Option 2 </daff-checkbox>\n <daff-checkbox [formControl]=\"checkboxArray.at(2)\" value=\"option3\">Option 3 </daff-checkbox>\n</daff-checkbox-set>\n\n<div>\n {{checkboxArray.value}}\n</div>\n<button daff-button color=\"secondary\" (click)=\"displayList()\">Get List of Values</button>\n<div>\n List of selected values: {{selectedValues}}\n</div>",
|
64
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
63
65
|
},] }
|
64
66
|
];
|
65
67
|
CheckboxSetComponent.propDecorators = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"daffodil-design-checkbox-examples.js","sources":["../../../libs/design/checkbox/examples/src/basic-checkbox/basic-checkbox.component.ts","../../../libs/design/checkbox/examples/src/basic-checkbox/basic-checkbox.module.ts","../../../libs/design/checkbox/examples/src/checkbox-set/checkbox-set.component.ts","../../../libs/design/checkbox/examples/src/checkbox-set/checkbox-set.module.ts","../../../libs/design/checkbox/examples/src/examples.ts","../../../libs/design/checkbox/examples/src/daffodil-design-checkbox-examples.ts"],"sourcesContent":["import {\n Component,\n OnInit,\n} from '@angular/core';\nimport { FormControl } from '@angular/forms';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'basic-checkbox',\n templateUrl: './basic-checkbox.component.html',\n})\nexport class BasicCheckboxComponent implements OnInit {\n checkboxExample = new FormControl();\n\n ngOnInit() {\n this.checkboxExample.setValue(true);\n }\n setFalse() {\n this.checkboxExample.setValue(false);\n }\n setTrue() {\n this.checkboxExample.setValue(true);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport {\n DaffButtonModule,\n DaffCheckboxModule,\n} from '@daffodil/design';\n\nimport { BasicCheckboxComponent } from './basic-checkbox.component';\n\n\n@NgModule({\n declarations: [\n BasicCheckboxComponent,\n ],\n exports: [\n BasicCheckboxComponent,\n ],\n imports: [\n DaffCheckboxModule,\n DaffButtonModule,\n ReactiveFormsModule,\n ],\n providers: [],\n})\nexport class BasicCheckboxModule { }\n","import {\n Component,\n OnInit,\n ViewChild,\n} from '@angular/core';\nimport {\n FormArray,\n FormControl,\n} from '@angular/forms';\n\nimport { DaffCheckboxSetComponent } from '@daffodil/design';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'checkbox-set',\n templateUrl: './checkbox-set.component.html',\n})\nexport class CheckboxSetComponent implements OnInit {\n\n @ViewChild(DaffCheckboxSetComponent)\n private checkboxSet: DaffCheckboxSetComponent;\n checkboxArray = new FormArray([new FormControl(), new FormControl(), new FormControl()]);\n selectedValues = [];\n\n ngOnInit() {\n this.checkboxArray.setValue([false, false, false]);\n }\n displayList() {\n this.selectedValues = this.checkboxSet.getValues();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport {\n DaffButtonModule,\n DaffCheckboxModule,\n} from '@daffodil/design';\n\nimport { CheckboxSetComponent } from './checkbox-set.component';\n\n@NgModule({\n\n declarations: [\n CheckboxSetComponent,\n ],\n exports: [\n CheckboxSetComponent,\n ],\n imports: [\n DaffCheckboxModule,\n DaffButtonModule,\n ReactiveFormsModule,\n ],\n providers: [],\n})\nexport class CheckboxSetModule { }\n","import { BasicCheckboxComponent } from './basic-checkbox/basic-checkbox.component';\nimport { BasicCheckboxModule } from './basic-checkbox/basic-checkbox.module';\nimport { CheckboxSetComponent } from './checkbox-set/checkbox-set.component';\nimport { CheckboxSetModule } from './checkbox-set/checkbox-set.module';\n\n\nexport const CHECKBOX_EXAMPLES = [\n CheckboxSetComponent,\n BasicCheckboxComponent,\n];\n\nexport const CHECKBOX_EXAMPLES_MODULES = [\n BasicCheckboxModule,\n CheckboxSetModule,\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n\nexport {BasicCheckboxComponent as ɵb} from './basic-checkbox/basic-checkbox.component';\nexport {BasicCheckboxModule as ɵc} from './basic-checkbox/basic-checkbox.module';\nexport {CheckboxSetComponent as ɵa} from './checkbox-set/checkbox-set.component';\nexport {CheckboxSetModule as ɵd} from './checkbox-set/checkbox-set.module';"],"names":[],"mappings":";;;;
|
1
|
+
{"version":3,"file":"daffodil-design-checkbox-examples.js","sources":["../../../libs/design/checkbox/examples/src/basic-checkbox/basic-checkbox.component.ts","../../../libs/design/checkbox/examples/src/basic-checkbox/basic-checkbox.module.ts","../../../libs/design/checkbox/examples/src/checkbox-set/checkbox-set.component.ts","../../../libs/design/checkbox/examples/src/checkbox-set/checkbox-set.module.ts","../../../libs/design/checkbox/examples/src/examples.ts","../../../libs/design/checkbox/examples/src/daffodil-design-checkbox-examples.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n OnInit,\n} from '@angular/core';\nimport { FormControl } from '@angular/forms';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'basic-checkbox',\n templateUrl: './basic-checkbox.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BasicCheckboxComponent implements OnInit {\n checkboxExample = new FormControl();\n\n ngOnInit() {\n this.checkboxExample.setValue(true);\n }\n setFalse() {\n this.checkboxExample.setValue(false);\n }\n setTrue() {\n this.checkboxExample.setValue(true);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport {\n DaffButtonModule,\n DaffCheckboxModule,\n} from '@daffodil/design';\n\nimport { BasicCheckboxComponent } from './basic-checkbox.component';\n\n\n@NgModule({\n declarations: [\n BasicCheckboxComponent,\n ],\n exports: [\n BasicCheckboxComponent,\n ],\n imports: [\n DaffCheckboxModule,\n DaffButtonModule,\n ReactiveFormsModule,\n ],\n providers: [],\n})\nexport class BasicCheckboxModule { }\n","import {\n ChangeDetectionStrategy,\n Component,\n OnInit,\n ViewChild,\n} from '@angular/core';\nimport {\n FormArray,\n FormControl,\n} from '@angular/forms';\n\nimport { DaffCheckboxSetComponent } from '@daffodil/design';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'checkbox-set',\n templateUrl: './checkbox-set.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CheckboxSetComponent implements OnInit {\n\n @ViewChild(DaffCheckboxSetComponent)\n private checkboxSet: DaffCheckboxSetComponent;\n checkboxArray = new FormArray([new FormControl(), new FormControl(), new FormControl()]);\n selectedValues = [];\n\n ngOnInit() {\n this.checkboxArray.setValue([false, false, false]);\n }\n displayList() {\n this.selectedValues = this.checkboxSet.getValues();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport {\n DaffButtonModule,\n DaffCheckboxModule,\n} from '@daffodil/design';\n\nimport { CheckboxSetComponent } from './checkbox-set.component';\n\n@NgModule({\n\n declarations: [\n CheckboxSetComponent,\n ],\n exports: [\n CheckboxSetComponent,\n ],\n imports: [\n DaffCheckboxModule,\n DaffButtonModule,\n ReactiveFormsModule,\n ],\n providers: [],\n})\nexport class CheckboxSetModule { }\n","import { BasicCheckboxComponent } from './basic-checkbox/basic-checkbox.component';\nimport { BasicCheckboxModule } from './basic-checkbox/basic-checkbox.module';\nimport { CheckboxSetComponent } from './checkbox-set/checkbox-set.component';\nimport { CheckboxSetModule } from './checkbox-set/checkbox-set.module';\n\n\nexport const CHECKBOX_EXAMPLES = [\n CheckboxSetComponent,\n BasicCheckboxComponent,\n];\n\nexport const CHECKBOX_EXAMPLES_MODULES = [\n BasicCheckboxModule,\n CheckboxSetModule,\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n\nexport {BasicCheckboxComponent as ɵb} from './basic-checkbox/basic-checkbox.component';\nexport {BasicCheckboxModule as ɵc} from './basic-checkbox/basic-checkbox.module';\nexport {CheckboxSetComponent as ɵa} from './checkbox-set/checkbox-set.component';\nexport {CheckboxSetModule as ɵd} from './checkbox-set/checkbox-set.module';"],"names":[],"mappings":";;;;MAaa,sBAAsB;IANnC;QAOI,oBAAe,GAAG,IAAI,WAAW,EAAE,CAAC;KAWvC;IATG,QAAQ;QACN,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;KACrC;IACD,QAAQ;QACN,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;KACtC;IACD,OAAO;QACL,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;KACrC;;;YAjBJ,SAAS,SAAC;;gBAET,QAAQ,EAAE,gBAAgB;gBAC1B,+SAA8C;gBAC9C,eAAe,EAAE,uBAAuB,CAAC,MAAM;aAChD;;;MCaY,mBAAmB;;;YAd/B,QAAQ,SAAC;gBACR,YAAY,EAAE;oBACZ,sBAAsB;iBACvB;gBACD,OAAO,EAAE;oBACP,sBAAsB;iBACvB;gBACD,OAAO,EAAE;oBACP,kBAAkB;oBAClB,gBAAgB;oBAChB,mBAAmB;iBACpB;gBACD,SAAS,EAAE,EAAE;aACd;;;MCLY,oBAAoB;IANjC;QAUI,kBAAa,GAAG,IAAI,SAAS,CAAC,CAAC,IAAI,WAAW,EAAE,EAAE,IAAI,WAAW,EAAE,EAAE,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC;QACzF,mBAAc,GAAG,EAAE,CAAC;KAQvB;IANG,QAAQ;QACN,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;KACpD;IACD,WAAW;QACT,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE,CAAC;KACpD;;;YAlBJ,SAAS,SAAC;;gBAET,QAAQ,EAAE,cAAc;gBACxB,wkBAA4C;gBAC5C,eAAe,EAAE,uBAAuB,CAAC,MAAM;aAChD;;;0BAGI,SAAS,SAAC,wBAAwB;;;MCI1B,iBAAiB;;;YAf7B,QAAQ,SAAC;gBAER,YAAY,EAAE;oBACZ,oBAAoB;iBACrB;gBACD,OAAO,EAAE;oBACP,oBAAoB;iBACrB;gBACD,OAAO,EAAE;oBACP,kBAAkB;oBAClB,gBAAgB;oBAChB,mBAAmB;iBACpB;gBACD,SAAS,EAAE,EAAE;aACd;;;MClBY,iBAAiB,GAAG;IAC/B,oBAAoB;IACpB,sBAAsB;EACtB;MAEW,yBAAyB,GAAG;IACvC,mBAAmB;IACnB,iBAAiB;;;ACbnB;;;;;;"}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
2
|
+
import { FormControl, ReactiveFormsModule } from '@angular/forms';
|
3
|
+
import { CommonModule } from '@angular/common';
|
4
|
+
import { DaffContainerModule } from '@daffodil/design';
|
5
|
+
|
6
|
+
class ContainerSizesComponent {
|
7
|
+
constructor() {
|
8
|
+
this.sizeControl = new FormControl('xs');
|
9
|
+
this.options = [
|
10
|
+
{ value: 'xs', label: 'Extra Small' },
|
11
|
+
{ value: 'sm', label: 'Small' },
|
12
|
+
{ value: 'md', label: 'Medium' },
|
13
|
+
{ value: 'lg', label: 'Large' },
|
14
|
+
{ value: 'xl', label: 'Extra Large' },
|
15
|
+
];
|
16
|
+
}
|
17
|
+
}
|
18
|
+
ContainerSizesComponent.decorators = [
|
19
|
+
{ type: Component, args: [{
|
20
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
21
|
+
selector: 'container-sizes',
|
22
|
+
template: "<daff-container [size]=\"sizeControl.value\">\n\tLorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum in egestas ex, sed scelerisque neque. In ut vestibulum dui. Donec aliquet tortor pellentesque ex tincidunt faucibus. Vestibulum scelerisque dolor sit amet enim facilisis mattis. Pellentesque scelerisque vitae sapien sit amet dignissim. Aenean gravida facilisis ligula id vestibulum. Etiam viverra massa et nibh auctor molestie. Vestibulum rutrum pretium ex, vitae tempus mi. Nunc non arcu id ligula feugiat venenatis eu id urna. Vivamus fringilla, sapien ut molestie eleifend, ex arcu fringilla sapien, nec eleifend erat justo scelerisque metus. Integer eleifend, felis eget ultrices iaculis, sapien nibh pharetra enim, non malesuada mauris orci sed diam. Curabitur ultricies, enim in porta blandit, justo urna porta lacus, eu aliquet lectus est nec quam. Morbi condimentum auctor nisl, id convallis purus blandit laoreet. Nunc quis nulla mattis tellus feugiat laoreet. Curabitur in efficitur nisl. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.\n</daff-container>\n\n<select [formControl]=\"sizeControl\">\n\t<option *ngFor=\"let option of options\" [value]=\"option.value\">{{ option.label }}</option>\n</select>",
|
23
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
24
|
+
},] }
|
25
|
+
];
|
26
|
+
|
27
|
+
class ContainerSizesModule {
|
28
|
+
}
|
29
|
+
ContainerSizesModule.decorators = [
|
30
|
+
{ type: NgModule, args: [{
|
31
|
+
declarations: [
|
32
|
+
ContainerSizesComponent,
|
33
|
+
],
|
34
|
+
exports: [
|
35
|
+
ContainerSizesComponent,
|
36
|
+
],
|
37
|
+
imports: [
|
38
|
+
CommonModule,
|
39
|
+
ReactiveFormsModule,
|
40
|
+
DaffContainerModule,
|
41
|
+
],
|
42
|
+
},] }
|
43
|
+
];
|
44
|
+
|
45
|
+
const CONTAINER_EXAMPLES = [
|
46
|
+
ContainerSizesComponent,
|
47
|
+
];
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Generated bundle index. Do not edit.
|
51
|
+
*/
|
52
|
+
|
53
|
+
export { CONTAINER_EXAMPLES, ContainerSizesComponent, ContainerSizesModule };
|
54
|
+
//# sourceMappingURL=daffodil-design-container-examples.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"daffodil-design-container-examples.js","sources":["../../../libs/design/container/examples/src/container-sizes/container-sizes.component.ts","../../../libs/design/container/examples/src/container-sizes/container-sizes.module.ts","../../../libs/design/container/examples/src/examples.ts","../../../libs/design/container/examples/src/daffodil-design-container-examples.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\nimport { FormControl } from '@angular/forms';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'container-sizes',\n templateUrl: './container-sizes.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ContainerSizesComponent {\n sizeControl: FormControl = new FormControl('xs');\n\n options = [\n { value: 'xs', label: 'Extra Small' },\n { value: 'sm', label: 'Small' },\n { value: 'md', label: 'Medium' },\n { value: 'lg', label: 'Large' },\n { value: 'xl', label: 'Extra Large' },\n ];\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { DaffContainerModule } from '@daffodil/design';\n\nimport { ContainerSizesComponent } from './container-sizes.component';\n\n\n@NgModule({\n declarations: [\n ContainerSizesComponent,\n ],\n exports: [\n ContainerSizesComponent,\n ],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n\n DaffContainerModule,\n ],\n})\nexport class ContainerSizesModule { }\n","import { ContainerSizesComponent } from './container-sizes/container-sizes.component';\n\nexport const CONTAINER_EXAMPLES = [\n ContainerSizesComponent,\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAYa,uBAAuB;IANpC;QAOE,gBAAW,GAAgB,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC;QAEjD,YAAO,GAAG;YACR,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,aAAa,EAAE;YACrC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE;YAC/B,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE;YAChC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE;YAC/B,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,aAAa,EAAE;SACtC,CAAC;KACH;;;YAhBA,SAAS,SAAC;;gBAET,QAAQ,EAAE,iBAAiB;gBAC3B,mwCAA+C;gBAC/C,eAAe,EAAE,uBAAuB,CAAC,MAAM;aAChD;;;MCYY,oBAAoB;;;YAdhC,QAAQ,SAAC;gBACR,YAAY,EAAE;oBACZ,uBAAuB;iBACxB;gBACD,OAAO,EAAE;oBACP,uBAAuB;iBACxB;gBACD,OAAO,EAAE;oBACP,YAAY;oBACZ,mBAAmB;oBAEnB,mBAAmB;iBACpB;aACF;;;MCpBY,kBAAkB,GAAG;IAChC,uBAAuB;;;ACHzB;;;;;;"}
|
@@ -1,10 +1,13 @@
|
|
1
|
-
import { Component, NgModule } from '@angular/core';
|
1
|
+
import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
2
2
|
import { FormControl, ReactiveFormsModule } from '@angular/forms';
|
3
|
+
import { faMobile } from '@fortawesome/free-solid-svg-icons';
|
3
4
|
import { CommonModule } from '@angular/common';
|
4
|
-
import {
|
5
|
+
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
6
|
+
import { DaffHeroModule, DaffButtonModule, DaffContainerModule } from '@daffodil/design';
|
5
7
|
|
6
8
|
class HeroThemingComponent {
|
7
9
|
constructor() {
|
10
|
+
this.faMobile = faMobile;
|
8
11
|
this.color = 'primary';
|
9
12
|
this.colorControl = new FormControl('');
|
10
13
|
}
|
@@ -13,7 +16,9 @@ HeroThemingComponent.decorators = [
|
|
13
16
|
{ type: Component, args: [{
|
14
17
|
// eslint-disable-next-line @angular-eslint/component-selector
|
15
18
|
selector: 'hero-theming',
|
16
|
-
template: "<daff-hero [color]=\"colorControl.value\">\n\t<div daffHeroTagline>
|
19
|
+
template: "<daff-hero [color]=\"colorControl.value\">\n\t<div class=\"daff-hero-theming__icon\" daffHeroIcon>\n\t\t<fa-icon [icon]=\"faMobile\"></fa-icon>\n\t</div>\n\t<p daffHeroTagline>Frontend framework for ecommerce PWAs</p>\n\t<h1 daffHeroTitle>Daffodil: The next great leap in ecommerce.</h1>\n\t<h2 daffHeroSubtitle>\n\t\t<p>Daffodil provides everything you need to create powerful and flexible ecommerce experiences.</p>\n\t\t<p>With Daffodil, ambitious businesses are able to achieve more while minimizing development and maintenance costs.</p>\n\t</h2>\n\t<div daffHeroBody>\n\t\t<a href=\"https://www.daff.io\" target=\"_blank\" daff-button>Get Started</a>\n\t</div>\n</daff-hero>\n\n<select [formControl]=\"colorControl\">\n\t<option value=\"\">Default</option>\n\t<option value=\"primary\">Primary</option>\n\t<option value=\"secondary\">Secondary</option>\n\t<option value=\"tertiary\">Tertiary</option>\n\t<option value=\"white\">White</option>\n\t<option value=\"black\">Black</option>\n\t<option value=\"theme\">Theme</option>\n\t<option value=\"theme-contrast\">Theme Contrast</option>\n</select>",
|
20
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
21
|
+
styles: [".daff-hero-theming__icon{display:flex;background:rgba(var(--daff-theme-rgb),.2);border-radius:50%;color:var(--daff-theme-contrast-rgb);width:48px;height:48px;justify-content:center;align-items:center;padding:12px 0}"]
|
17
22
|
},] }
|
18
23
|
];
|
19
24
|
|
@@ -28,6 +33,8 @@ HeroThemingModule.decorators = [
|
|
28
33
|
CommonModule,
|
29
34
|
ReactiveFormsModule,
|
30
35
|
DaffHeroModule,
|
36
|
+
DaffButtonModule,
|
37
|
+
FontAwesomeModule,
|
31
38
|
],
|
32
39
|
exports: [
|
33
40
|
HeroThemingComponent,
|
@@ -37,6 +44,7 @@ HeroThemingModule.decorators = [
|
|
37
44
|
|
38
45
|
class HeroTextAlignmentComponent {
|
39
46
|
constructor() {
|
47
|
+
this.faMobile = faMobile;
|
40
48
|
this.textAlignControl = new FormControl('');
|
41
49
|
this.options = [
|
42
50
|
{ value: '', label: 'Default' },
|
@@ -50,7 +58,9 @@ HeroTextAlignmentComponent.decorators = [
|
|
50
58
|
{ type: Component, args: [{
|
51
59
|
// eslint-disable-next-line @angular-eslint/component-selector
|
52
60
|
selector: 'hero-text-alignment',
|
53
|
-
template: "<daff-hero [textAlignment]=\"textAlignControl.value\">\n\t<daff-container size=\"md\">\n\t\t<div daffHeroTagline>Frontend framework for ecommerce PWAs</
|
61
|
+
template: "<daff-hero [textAlignment]=\"textAlignControl.value\">\n\t<daff-container size=\"md\">\n\t\t<div class=\"daff-hero-text-alignment__icon\" daffHeroIcon>\n\t\t\t<fa-icon [icon]=\"faMobile\"></fa-icon>\n\t\t</div>\n\t\t<p daffHeroTagline>Frontend framework for ecommerce PWAs</p>\n\t\t<h1 daffHeroTitle>Daffodil: The next great leap in ecommerce.</h1>\n\t\t<h2 daffHeroSubtitle>\n\t\t\t<p>Daffodil provides everything you need to create powerful and flexible ecommerce experiences.</p>\n\t\t\t<p>With Daffodil, ambitious businesses are able to achieve more while minimizing development and maintenance costs.</p>\n\t\t</h2>\n\t\t<div daffHeroBody>\n\t\t\t<a href=\"https://www.daff.io\" target=\"_blank\" daff-button>Get Started</a>\n\t\t</div>\n\t</daff-container>\n</daff-hero>\n\n<select [formControl]=\"textAlignControl\">\n\t<option *ngFor=\"let option of options\" [value]=\"option.value\">{{ option.label }}</option>\n</select>",
|
62
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
63
|
+
styles: [".daff-hero-text-alignment__icon{display:flex;background:rgba(var(--daff-theme-rgb),.2);border-radius:50%;color:var(--daff-theme-contrast-rgb);width:48px;height:48px;justify-content:center;align-items:center;padding:12px 0}"]
|
54
64
|
},] }
|
55
65
|
];
|
56
66
|
|
@@ -66,18 +76,24 @@ HeroTextAlignmentModule.decorators = [
|
|
66
76
|
ReactiveFormsModule,
|
67
77
|
DaffHeroModule,
|
68
78
|
DaffContainerModule,
|
79
|
+
DaffButtonModule,
|
80
|
+
FontAwesomeModule,
|
69
81
|
],
|
70
82
|
},] }
|
71
83
|
];
|
72
84
|
|
73
85
|
class HeroWithGridComponent {
|
86
|
+
constructor() {
|
87
|
+
this.faMobile = faMobile;
|
88
|
+
}
|
74
89
|
}
|
75
90
|
HeroWithGridComponent.decorators = [
|
76
91
|
{ type: Component, args: [{
|
77
92
|
// eslint-disable-next-line @angular-eslint/component-selector
|
78
93
|
selector: 'hero-with-grid',
|
79
|
-
template: "<daff-hero color=\"theme\">\n\t<daff-container class=\"daff-hero-with-grid__grid\">\n\t\t<div class=\"daff-hero-with-grid__image\">\n\t\t\t<img src=\"/assets/design/callout/pwa-illustration.svg\" alt=\"PWA Illustration\">\n\t\t</div>\n\t\t<div class=\"daff-hero-with-grid__content-wrapper\">\n\t\t\t<div daffHeroTagline>Frontend framework for ecommerce PWAs</
|
80
|
-
|
94
|
+
template: "<daff-hero color=\"theme\">\n\t<daff-container class=\"daff-hero-with-grid__grid\">\n\t\t<div class=\"daff-hero-with-grid__image\">\n\t\t\t<img src=\"/assets/design/callout/pwa-illustration.svg\" alt=\"PWA Illustration\">\n\t\t</div>\n\t\t<div class=\"daff-hero-with-grid__content-wrapper\">\n\t\t\t<div class=\"daff-hero-with-grid__icon\" daffHeroIcon>\n\t\t\t\t<fa-icon [icon]=\"faMobile\"></fa-icon>\n\t\t\t</div>\n\t\t\t<p daffHeroTagline>Frontend framework for ecommerce PWAs</p>\n\t\t\t<h3 daffHeroTitle>Daffodil: The next great leap in ecommerce.</h3>\n\t\t\t<div daffHeroSubtitle>\n\t\t\t\t<p>Daffodil provides everything you need to create powerful and flexible ecommerce experiences.</p>\n\t\t\t\t<p>With Daffodil, ambitious businesses are able to achieve more while minimizing development and maintenance costs.</p>\n\t\t\t</div>\n\t\t\t<div daffHeroBody>\n\t\t\t\t<a href=\"https://www.daff.io\" target=\"_blank\" daff-button>Get Started</a>\n\t\t\t</div>\n\t\t</div>\n\t</daff-container>\n</daff-hero>",
|
95
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
96
|
+
styles: [".daff-hero-with-grid__grid{display:grid;grid-template:\"image\" \"content\"/1fr;grid-gap:24px}@media (min-width:768px){.daff-hero-with-grid__grid{grid-template:\"image content\"/1fr 1fr;grid-gap:48px;align-items:center}}.daff-hero-with-grid__image{grid-area:image}.daff-hero-with-grid__content-wrapper{grid-area:content}.daff-hero-with-grid__icon{display:flex;background:rgba(var(--daff-theme-rgb),.2);border-radius:50%;color:var(--daff-theme-contrast-rgb);width:48px;height:48px;justify-content:center;align-items:center;padding:12px 0}"]
|
81
97
|
},] }
|
82
98
|
];
|
83
99
|
|
@@ -94,6 +110,42 @@ HeroWithGridModule.decorators = [
|
|
94
110
|
DaffHeroModule,
|
95
111
|
DaffContainerModule,
|
96
112
|
DaffButtonModule,
|
113
|
+
FontAwesomeModule,
|
114
|
+
],
|
115
|
+
},] }
|
116
|
+
];
|
117
|
+
|
118
|
+
class CompactHeroComponent {
|
119
|
+
constructor() {
|
120
|
+
this.faMobile = faMobile;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
CompactHeroComponent.decorators = [
|
124
|
+
{ type: Component, args: [{
|
125
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
126
|
+
selector: 'compact-hero',
|
127
|
+
template: "<daff-hero [compact]=\"true\">\n\t<div class=\"daff-compact-hero__icon\" daffHeroIcon>\n\t\t<fa-icon [icon]=\"faMobile\"></fa-icon>\n\t</div>\n\t<p daffHeroTagline>Frontend framework for ecommerce PWAs</p>\n\t<h1 daffHeroTitle>Daffodil: The next great leap in ecommerce.</h1>\n\t<h2 daffHeroSubtitle>\n\t\t<p>Daffodil provides everything you need to create powerful and flexible ecommerce experiences.</p>\n\t\t<p>With Daffodil, ambitious businesses are able to achieve more while minimizing development and maintenance costs.</p>\n\t</h2>\n\t<div daffHeroBody>\n\t\t<a href=\"https://www.daff.io\" target=\"_blank\" daff-button>Get Started</a>\n\t</div>\n</daff-hero>",
|
128
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
129
|
+
styles: [".daff-compact-hero__icon{display:flex;background:rgba(var(--daff-theme-rgb),.2);border-radius:50%;color:var(--daff-theme-contrast-rgb);width:48px;height:48px;justify-content:center;align-items:center;padding:12px 0}"]
|
130
|
+
},] }
|
131
|
+
];
|
132
|
+
|
133
|
+
class CompactHeroModule {
|
134
|
+
}
|
135
|
+
CompactHeroModule.decorators = [
|
136
|
+
{ type: NgModule, args: [{
|
137
|
+
declarations: [
|
138
|
+
CompactHeroComponent,
|
139
|
+
],
|
140
|
+
imports: [
|
141
|
+
CommonModule,
|
142
|
+
ReactiveFormsModule,
|
143
|
+
DaffHeroModule,
|
144
|
+
DaffButtonModule,
|
145
|
+
FontAwesomeModule,
|
146
|
+
],
|
147
|
+
exports: [
|
148
|
+
CompactHeroComponent,
|
97
149
|
],
|
98
150
|
},] }
|
99
151
|
];
|
@@ -102,11 +154,12 @@ const HERO_EXAMPLES = [
|
|
102
154
|
HeroThemingComponent,
|
103
155
|
HeroTextAlignmentComponent,
|
104
156
|
HeroWithGridComponent,
|
157
|
+
CompactHeroComponent,
|
105
158
|
];
|
106
159
|
|
107
160
|
/**
|
108
161
|
* Generated bundle index. Do not edit.
|
109
162
|
*/
|
110
163
|
|
111
|
-
export { HERO_EXAMPLES, HeroTextAlignmentComponent, HeroTextAlignmentModule, HeroThemingComponent, HeroThemingModule, HeroWithGridComponent, HeroWithGridModule };
|
164
|
+
export { CompactHeroComponent, CompactHeroModule, HERO_EXAMPLES, HeroTextAlignmentComponent, HeroTextAlignmentModule, HeroThemingComponent, HeroThemingModule, HeroWithGridComponent, HeroWithGridModule };
|
112
165
|
//# sourceMappingURL=daffodil-design-hero-examples.js.map
|