@daffodil/design 0.90.0 → 0.91.0
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/accordion/index.d.ts +8 -5
- package/article/README.md +1 -1
- package/article/index.d.ts +20 -0
- package/article/src/article-theme.scss +10 -0
- package/button/index.d.ts +4 -4
- package/button/src/button/button-base.scss +3 -3
- package/button/src/button/raised/raised-theme.scss +2 -2
- package/card/README.md +0 -8
- package/card/index.d.ts +7 -41
- package/card/src/card-base-theme.scss +2 -5
- package/card/src/card-base.scss +2 -2
- package/checkbox/README.md +0 -0
- package/checkbox/index.d.ts +177 -0
- package/fesm2022/daffodil-design-accordion.mjs +23 -14
- package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
- package/fesm2022/daffodil-design-article.mjs +129 -5
- package/fesm2022/daffodil-design-article.mjs.map +1 -1
- package/fesm2022/daffodil-design-button.mjs +24 -20
- package/fesm2022/daffodil-design-button.mjs.map +1 -1
- package/fesm2022/daffodil-design-card.mjs +16 -63
- package/fesm2022/daffodil-design-card.mjs.map +1 -1
- package/fesm2022/daffodil-design-checkbox.mjs +317 -0
- package/fesm2022/daffodil-design-checkbox.mjs.map +1 -0
- package/fesm2022/daffodil-design-form-field.mjs +35 -65
- package/fesm2022/daffodil-design-form-field.mjs.map +1 -1
- package/fesm2022/daffodil-design-form.mjs +62 -0
- package/fesm2022/daffodil-design-form.mjs.map +1 -0
- package/fesm2022/daffodil-design-image.mjs +12 -4
- package/fesm2022/daffodil-design-image.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal.mjs +55 -56
- package/fesm2022/daffodil-design-modal.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification.mjs +14 -50
- package/fesm2022/daffodil-design-notification.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator.mjs +6 -11
- package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
- package/fesm2022/daffodil-design-quantity-field.mjs +3 -5
- package/fesm2022/daffodil-design-quantity-field.mjs.map +1 -1
- package/fesm2022/daffodil-design-radio.mjs +13 -42
- package/fesm2022/daffodil-design-radio.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar.mjs +6 -36
- package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
- package/fesm2022/daffodil-design-switch.mjs +48 -105
- package/fesm2022/daffodil-design-switch.mjs.map +1 -1
- package/fesm2022/daffodil-design-tabs.mjs +22 -14
- package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast.mjs +56 -55
- package/fesm2022/daffodil-design-toast.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree.mjs +4 -13
- package/fesm2022/daffodil-design-tree.mjs.map +1 -1
- package/fesm2022/daffodil-design.mjs +250 -461
- package/fesm2022/daffodil-design.mjs.map +1 -1
- package/form/README.md +75 -0
- package/form/index.d.ts +27 -0
- package/form-field/README.md +49 -39
- package/form-field/index.d.ts +56 -36
- package/image/README.md +27 -19
- package/image/index.d.ts +6 -1
- package/index.d.ts +180 -259
- package/input/README.md +32 -12
- package/modal/README.md +106 -16
- package/modal/index.d.ts +50 -21
- package/native-select/README.md +52 -15
- package/notification/index.d.ts +7 -38
- package/package.json +1 -1
- package/paginator/index.d.ts +1 -7
- package/radio/index.d.ts +0 -16
- package/scss/layout/_breakpoint.scss +1 -1
- package/scss/theme.scss +2 -4
- package/scss/theming/_color-palettes.scss +21 -7
- package/scss/theming/_configure-theme.scss +11 -10
- package/scss/theming/_daff-theme.scss +5 -14
- package/scss/theming/_get-base-color.scss +2 -2
- package/scss/theming/_get-palette.scss +2 -2
- package/scss/theming/_get-theme-mode.scss +3 -3
- package/scss/theming/_index.scss +2 -1
- package/scss/theming/contrast/max-contrast/max-contrast.scss +3 -3
- package/scss/theming/contrast/text-contrast/text-contrast.scss +22 -16
- package/scss/theming/contrast/text-contrast/text-contrast.spec.scss +57 -0
- package/scss/theming/create-theme/_create-theme.scss +330 -0
- package/scss/theming/create-theme/_create-theme.spec.scss +122 -0
- package/scss/theming/create-theme/_index.scss +1 -0
- package/scss/theming/get-font-colors/_get-font-colors.scss +36 -0
- package/scss/theming/get-font-colors/_get-font-colors.spec.scss +72 -0
- package/scss/typography/mixins/_font-weight.scss +8 -14
- package/select/README.md +107 -4
- package/sidebar/README.md +0 -8
- package/sidebar/index.d.ts +3 -15
- package/switch/README.md +19 -27
- package/switch/index.d.ts +18 -48
- package/switch/src/switch-theme.scss +26 -18
- package/tabs/index.d.ts +7 -4
- package/tag/src/tag-theme.scss +11 -9
- package/textarea/README.md +35 -5
- package/tree/index.d.ts +0 -6
- package/tree/src/tree-theme.scss +0 -4
- package/accordion/examples/index.d.ts +0 -20
- package/article/examples/index.d.ts +0 -50
- package/breadcrumb/examples/index.d.ts +0 -10
- package/button/examples/index.d.ts +0 -67
- package/callout/examples/index.d.ts +0 -41
- package/card/examples/index.d.ts +0 -62
- package/card/src/card/raised/raised-theme.scss +0 -28
- package/checkbox/examples/index.d.ts +0 -32
- package/container/examples/index.d.ts +0 -16
- package/fesm2022/daffodil-design-accordion-examples.mjs +0 -50
- package/fesm2022/daffodil-design-accordion-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-article-examples.mjs +0 -134
- package/fesm2022/daffodil-design-article-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-breadcrumb-examples.mjs +0 -46
- package/fesm2022/daffodil-design-breadcrumb-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-button-examples.mjs +0 -178
- package/fesm2022/daffodil-design-button-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-callout-examples.mjs +0 -116
- package/fesm2022/daffodil-design-callout-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-card-examples.mjs +0 -168
- package/fesm2022/daffodil-design-card-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-checkbox-examples.mjs +0 -76
- package/fesm2022/daffodil-design-checkbox-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-container-examples.mjs +0 -41
- package/fesm2022/daffodil-design-container-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-form-field-examples.mjs +0 -96
- package/fesm2022/daffodil-design-form-field-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-hero-examples.mjs +0 -121
- package/fesm2022/daffodil-design-hero-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-image-examples.mjs +0 -58
- package/fesm2022/daffodil-design-image-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-input-examples.mjs +0 -108
- package/fesm2022/daffodil-design-input-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-list-examples.mjs +0 -77
- package/fesm2022/daffodil-design-list-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-loading-icon-examples.mjs +0 -44
- package/fesm2022/daffodil-design-loading-icon-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-media-gallery-examples.mjs +0 -104
- package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-menu-examples.mjs +0 -50
- package/fesm2022/daffodil-design-menu-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-modal-examples.mjs +0 -51
- package/fesm2022/daffodil-design-modal-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-native-select-examples.mjs +0 -71
- package/fesm2022/daffodil-design-native-select-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-navbar-examples.mjs +0 -88
- package/fesm2022/daffodil-design-navbar-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-notification-examples.mjs +0 -102
- package/fesm2022/daffodil-design-notification-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-paginator-examples.mjs +0 -59
- package/fesm2022/daffodil-design-paginator-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-progress-bar-examples.mjs +0 -57
- package/fesm2022/daffodil-design-progress-bar-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-quantity-field-examples.mjs +0 -85
- package/fesm2022/daffodil-design-quantity-field-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-radio-examples.mjs +0 -34
- package/fesm2022/daffodil-design-radio-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-select-examples.mjs +0 -117
- package/fesm2022/daffodil-design-select-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-sidebar-examples.mjs +0 -109
- package/fesm2022/daffodil-design-sidebar-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-sticky-examples.mjs +0 -25
- package/fesm2022/daffodil-design-sticky-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-switch-examples.mjs +0 -110
- package/fesm2022/daffodil-design-switch-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-tabs-examples.mjs +0 -115
- package/fesm2022/daffodil-design-tabs-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-tag-examples.mjs +0 -125
- package/fesm2022/daffodil-design-tag-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-text-snippet-examples.mjs +0 -25
- package/fesm2022/daffodil-design-text-snippet-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-textarea-examples.mjs +0 -66
- package/fesm2022/daffodil-design-textarea-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-toast-examples.mjs +0 -147
- package/fesm2022/daffodil-design-toast-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-tree-examples.mjs +0 -104
- package/fesm2022/daffodil-design-tree-examples.mjs.map +0 -1
- package/form-field/examples/index.d.ts +0 -18
- package/hero/examples/index.d.ts +0 -45
- package/image/examples/index.d.ts +0 -10
- package/input/examples/index.d.ts +0 -10
- package/list/examples/index.d.ts +0 -29
- package/loading-icon/examples/index.d.ts +0 -16
- package/media-gallery/examples/index.d.ts +0 -38
- package/menu/examples/index.d.ts +0 -20
- package/modal/examples/index.d.ts +0 -15
- package/native-select/examples/index.d.ts +0 -10
- package/navbar/examples/index.d.ts +0 -31
- package/notification/examples/index.d.ts +0 -12
- package/paginator/examples/index.d.ts +0 -26
- package/progress-bar/examples/index.d.ts +0 -10
- package/quantity-field/examples/index.d.ts +0 -30
- package/radio/examples/index.d.ts +0 -13
- package/select/examples/index.d.ts +0 -28
- package/sidebar/examples/index.d.ts +0 -10
- package/sticky/examples/index.d.ts +0 -10
- package/switch/examples/index.d.ts +0 -46
- package/tabs/examples/index.d.ts +0 -12
- package/tag/examples/index.d.ts +0 -50
- package/text-snippet/examples/index.d.ts +0 -10
- package/textarea/examples/index.d.ts +0 -10
- package/toast/examples/index.d.ts +0 -56
- package/tree/examples/index.d.ts +0 -18
- /package/{form-field → form}/src/error-message/error-message-theme.scss +0 -0
- /package/{form-field → form}/src/hint/hint-theme.scss +0 -0
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import * as i2 from '@angular/forms';
|
|
4
|
-
import { UntypedFormGroup, UntypedFormControl, ReactiveFormsModule } from '@angular/forms';
|
|
5
|
-
import * as i1 from '@daffodil/design/radio';
|
|
6
|
-
import { DAFF_RADIO_COMPONENTS } from '@daffodil/design/radio';
|
|
7
|
-
|
|
8
|
-
class BasicRadioComponent {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.radioGroup = new UntypedFormGroup({
|
|
11
|
-
race: new UntypedFormControl('Zerg'),
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: BasicRadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: BasicRadioComponent, isStandalone: true, selector: "basic-radio", ngImport: i0, template: "<h2>Basic Radio</h2>\n<daff-radio-set [formGroup]=\"radioGroup\" name=\"race\">\n <daff-radio formControlName=\"race\" value=\"Terran\">Terran</daff-radio>\n <daff-radio formControlName=\"race\" value=\"Protoss\">Protoss</daff-radio>\n <daff-radio formControlName=\"race\" value=\"Zerg\">Zerg</daff-radio>\n</daff-radio-set>\n<div>\n The best race to play as is: {{this.radioGroup.get('race').value}}\n</div>", dependencies: [{ kind: "component", type: i1.DaffRadioComponent, selector: "daff-radio", inputs: ["checked", "value", "id", "name", "aria-label", "aria-labelledby"], outputs: ["selectionChange"] }, { kind: "component", type: i1.DaffRadioSetComponent, selector: "daff-radio-set", inputs: ["name"] }, { kind: "directive", type: i1.DaffRadioControlValueAccessorDirective, selector: "daff-radio[ngModel], daff-radio[formControl], daff-radio[formControlName]", inputs: ["value", "name"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
16
|
-
}
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: BasicRadioComponent, decorators: [{
|
|
18
|
-
type: Component,
|
|
19
|
-
args: [{ selector: 'basic-radio', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
20
|
-
DAFF_RADIO_COMPONENTS,
|
|
21
|
-
ReactiveFormsModule,
|
|
22
|
-
], template: "<h2>Basic Radio</h2>\n<daff-radio-set [formGroup]=\"radioGroup\" name=\"race\">\n <daff-radio formControlName=\"race\" value=\"Terran\">Terran</daff-radio>\n <daff-radio formControlName=\"race\" value=\"Protoss\">Protoss</daff-radio>\n <daff-radio formControlName=\"race\" value=\"Zerg\">Zerg</daff-radio>\n</daff-radio-set>\n<div>\n The best race to play as is: {{this.radioGroup.get('race').value}}\n</div>" }]
|
|
23
|
-
}], ctorParameters: () => [] });
|
|
24
|
-
|
|
25
|
-
const RADIO_EXAMPLES = [
|
|
26
|
-
BasicRadioComponent,
|
|
27
|
-
];
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Generated bundle index. Do not edit.
|
|
31
|
-
*/
|
|
32
|
-
|
|
33
|
-
export { RADIO_EXAMPLES };
|
|
34
|
-
//# sourceMappingURL=daffodil-design-radio-examples.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"daffodil-design-radio-examples.mjs","sources":["../../../libs/design/radio/examples/src/basic-radio/basic-radio.component.ts","../../../libs/design/radio/examples/src/basic-radio/basic-radio.component.html","../../../libs/design/radio/examples/src/examples.ts","../../../libs/design/radio/examples/src/daffodil-design-radio-examples.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\nimport {\n UntypedFormGroup,\n UntypedFormControl,\n ReactiveFormsModule,\n} from '@angular/forms';\n\nimport { DAFF_RADIO_COMPONENTS } from '@daffodil/design/radio';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'basic-radio',\n templateUrl: './basic-radio.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n DAFF_RADIO_COMPONENTS,\n ReactiveFormsModule,\n ],\n})\nexport class BasicRadioComponent {\n radioGroup = new UntypedFormGroup({\n race: new UntypedFormControl('Zerg'),\n });\n\n constructor() {}\n}\n","<h2>Basic Radio</h2>\n<daff-radio-set [formGroup]=\"radioGroup\" name=\"race\">\n <daff-radio formControlName=\"race\" value=\"Terran\">Terran</daff-radio>\n <daff-radio formControlName=\"race\" value=\"Protoss\">Protoss</daff-radio>\n <daff-radio formControlName=\"race\" value=\"Zerg\">Zerg</daff-radio>\n</daff-radio-set>\n<div>\n The best race to play as is: {{this.radioGroup.get('race').value}}\n</div>","import { BasicRadioComponent } from './basic-radio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A,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,oBAAA,EAAA,QAAA,EAAA,0FAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,kBAAA,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,CAAA,WAAA,CAAA,EAAA,OAAA,EAAA,CAAA,UAAA,CAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,CAAA,iBAAA,EAAA,UAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGV,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAV/B,SAAS;AAEE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,EAAA,eAAA,EAEN,uBAAuB,CAAC,MAAM,EAAA,OAAA,EACtC;wBACP,qBAAqB;wBACrB,mBAAmB;AACpB,qBAAA,EAAA,QAAA,EAAA,8ZAAA,EAAA;;;AElBI,MAAM,cAAc,GAAG;IAC5B,mBAAmB;;;ACHrB;;AAEG;;;;"}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { NgIf } from '@angular/common';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
4
|
-
import * as i1 from '@angular/forms';
|
|
5
|
-
import { FormControl, ReactiveFormsModule, UntypedFormControl, Validators } from '@angular/forms';
|
|
6
|
-
import * as i3 from '@daffodil/design/form-field';
|
|
7
|
-
import { DAFF_FORM_FIELD_COMPONENTS } from '@daffodil/design/form-field';
|
|
8
|
-
import * as i2 from '@daffodil/design/select';
|
|
9
|
-
import { DAFF_SELECT_COMPONENTS } from '@daffodil/design/select';
|
|
10
|
-
import * as i4 from '@daffodil/design';
|
|
11
|
-
|
|
12
|
-
const SELECT_EXAMPLE_ADDRESSES = [
|
|
13
|
-
{
|
|
14
|
-
name: 'John Doe',
|
|
15
|
-
street: '123 New St',
|
|
16
|
-
city: 'New York',
|
|
17
|
-
state: 'NY',
|
|
18
|
-
postcode: '10001',
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
name: 'Srinivasa Ramanujan',
|
|
22
|
-
street: '1729 Hardy Blvd',
|
|
23
|
-
city: 'New York',
|
|
24
|
-
state: 'NY',
|
|
25
|
-
postcode: '10001',
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
name: 'Bob the Builder',
|
|
29
|
-
street: '525 Coal Ave',
|
|
30
|
-
city: 'Morgantown',
|
|
31
|
-
state: 'WV',
|
|
32
|
-
postcode: '26501',
|
|
33
|
-
},
|
|
34
|
-
];
|
|
35
|
-
|
|
36
|
-
class DefaultSelectComponent {
|
|
37
|
-
constructor() {
|
|
38
|
-
this.control = new FormControl();
|
|
39
|
-
this.options = SELECT_EXAMPLE_ADDRESSES;
|
|
40
|
-
}
|
|
41
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DefaultSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
42
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: DefaultSelectComponent, isStandalone: true, selector: "default-select", ngImport: i0, template: "<daff-form-field>\n <daff-form-label>Select an address</daff-form-label>\n <daff-select [options]=\"options\" [formControl]=\"control\">\n <ng-template daffSelectOption let-option=\"option\">\n <div>{{option.name}}</div>\n <div>{{option.street}}</div>\n <div>{{option.city}}, {{option.state}} {{option.postcode}}</div>\n </ng-template>\n </daff-select>\n</daff-form-field>\n\n<div class=\"default-select__selected-value\" *ngIf=\"control.value\">\n Selected Address:\n <div>{{control.value.name}}</div>\n <div>{{control.value.street}}</div>\n <div>{{control.value.city}}, {{control.value.state}} {{control.value.postcode}}</div>\n</div>", styles: [".default-select__selected-value{margin:16px 0 0}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.DaffSelectComponent, selector: "daff-select", inputs: ["disabled", "required", "options", "optionsId"] }, { kind: "directive", type: i2.DaffSelectOptionDirective, selector: "[daffSelectOption]" }, { kind: "component", type: i3.DaffFormFieldComponent, selector: "daff-form-field", inputs: ["appearance", "id"] }, { kind: "directive", type: i3.DaffFormFieldLabelDirective, selector: "daff-form-label" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
43
|
-
}
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DefaultSelectComponent, decorators: [{
|
|
45
|
-
type: Component,
|
|
46
|
-
args: [{ selector: 'default-select', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
47
|
-
ReactiveFormsModule,
|
|
48
|
-
NgIf,
|
|
49
|
-
DAFF_SELECT_COMPONENTS,
|
|
50
|
-
DAFF_FORM_FIELD_COMPONENTS,
|
|
51
|
-
], template: "<daff-form-field>\n <daff-form-label>Select an address</daff-form-label>\n <daff-select [options]=\"options\" [formControl]=\"control\">\n <ng-template daffSelectOption let-option=\"option\">\n <div>{{option.name}}</div>\n <div>{{option.street}}</div>\n <div>{{option.city}}, {{option.state}} {{option.postcode}}</div>\n </ng-template>\n </daff-select>\n</daff-form-field>\n\n<div class=\"default-select__selected-value\" *ngIf=\"control.value\">\n Selected Address:\n <div>{{control.value.name}}</div>\n <div>{{control.value.street}}</div>\n <div>{{control.value.city}}, {{control.value.state}} {{control.value.postcode}}</div>\n</div>", styles: [".default-select__selected-value{margin:16px 0 0}\n"] }]
|
|
52
|
-
}] });
|
|
53
|
-
|
|
54
|
-
class DisabledSelectComponent {
|
|
55
|
-
constructor() {
|
|
56
|
-
this.disabled = new UntypedFormControl({ value: '', disabled: true });
|
|
57
|
-
this.options = SELECT_EXAMPLE_ADDRESSES;
|
|
58
|
-
}
|
|
59
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DisabledSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
60
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: DisabledSelectComponent, isStandalone: true, selector: "disabled-select", ngImport: i0, template: "<daff-form-field>\n <label daffFormLabel>Select an address</label>\n <daff-select [options]=\"options\" [formControl]=\"disabled\">\n <ng-template daffSelectOption let-option=\"option\"></ng-template>\n </daff-select>\n</daff-form-field>", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.DaffSelectComponent, selector: "daff-select", inputs: ["disabled", "required", "options", "optionsId"] }, { kind: "directive", type: i2.DaffSelectOptionDirective, selector: "[daffSelectOption]" }, { kind: "component", type: i3.DaffFormFieldComponent, selector: "daff-form-field", inputs: ["appearance", "id"] }, { kind: "directive", type: i4.DaffFormLabelDirective, selector: "[daffFormLabel]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
61
|
-
}
|
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: DisabledSelectComponent, decorators: [{
|
|
63
|
-
type: Component,
|
|
64
|
-
args: [{ selector: 'disabled-select', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
65
|
-
ReactiveFormsModule,
|
|
66
|
-
DAFF_SELECT_COMPONENTS,
|
|
67
|
-
DAFF_FORM_FIELD_COMPONENTS,
|
|
68
|
-
], template: "<daff-form-field>\n <label daffFormLabel>Select an address</label>\n <daff-select [options]=\"options\" [formControl]=\"disabled\">\n <ng-template daffSelectOption let-option=\"option\"></ng-template>\n </daff-select>\n</daff-form-field>" }]
|
|
69
|
-
}] });
|
|
70
|
-
|
|
71
|
-
class SelectWithErrorComponent {
|
|
72
|
-
constructor() {
|
|
73
|
-
this.control = new FormControl('', [Validators.required]);
|
|
74
|
-
this.options = SELECT_EXAMPLE_ADDRESSES;
|
|
75
|
-
}
|
|
76
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: SelectWithErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
77
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.1", type: SelectWithErrorComponent, isStandalone: true, selector: "select-with-error", ngImport: i0, template: "<daff-form-field>\n <daff-form-label>Select an address</daff-form-label>\n <daff-select [options]=\"options\" [formControl]=\"control\">\n <ng-template daffSelectOption let-option=\"option\">\n <div>{{option.name}}</div>\n <div>{{option.street}}</div>\n <div>{{option.city}}, {{option.state}} {{option.postcode}}</div>\n </ng-template>\n </daff-select>\n @if (control.invalid) {\n <daff-error-message>This field is required</daff-error-message>\n }\n</daff-form-field>", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.DaffSelectComponent, selector: "daff-select", inputs: ["disabled", "required", "options", "optionsId"] }, { kind: "directive", type: i2.DaffSelectOptionDirective, selector: "[daffSelectOption]" }, { kind: "component", type: i3.DaffFormFieldComponent, selector: "daff-form-field", inputs: ["appearance", "id"] }, { kind: "component", type: i3.DaffErrorMessageComponent, selector: "daff-error-message" }, { kind: "directive", type: i3.DaffFormFieldLabelDirective, selector: "daff-form-label" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
78
|
-
}
|
|
79
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: SelectWithErrorComponent, decorators: [{
|
|
80
|
-
type: Component,
|
|
81
|
-
args: [{ selector: 'select-with-error', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
82
|
-
ReactiveFormsModule,
|
|
83
|
-
DAFF_SELECT_COMPONENTS,
|
|
84
|
-
DAFF_FORM_FIELD_COMPONENTS,
|
|
85
|
-
], template: "<daff-form-field>\n <daff-form-label>Select an address</daff-form-label>\n <daff-select [options]=\"options\" [formControl]=\"control\">\n <ng-template daffSelectOption let-option=\"option\">\n <div>{{option.name}}</div>\n <div>{{option.street}}</div>\n <div>{{option.city}}, {{option.state}} {{option.postcode}}</div>\n </ng-template>\n </daff-select>\n @if (control.invalid) {\n <daff-error-message>This field is required</daff-error-message>\n }\n</daff-form-field>" }]
|
|
86
|
-
}] });
|
|
87
|
-
|
|
88
|
-
class SkeletonSelectComponent {
|
|
89
|
-
constructor() {
|
|
90
|
-
this.control = new FormControl();
|
|
91
|
-
this.options = SELECT_EXAMPLE_ADDRESSES;
|
|
92
|
-
}
|
|
93
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: SkeletonSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
94
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: SkeletonSelectComponent, isStandalone: true, selector: "skeleton-select", ngImport: i0, template: "<daff-form-field [skeleton]=\"true\">\n <label daffFormLabel>Select an address</label>\n <daff-select [options]=\"options\" [formControl]=\"control\">\n <ng-template daffSelectOption let-option=\"option\">\n </ng-template>\n </daff-select>\n</daff-form-field>", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.DaffSelectComponent, selector: "daff-select", inputs: ["disabled", "required", "options", "optionsId"] }, { kind: "directive", type: i2.DaffSelectOptionDirective, selector: "[daffSelectOption]" }, { kind: "component", type: i3.DaffFormFieldComponent, selector: "daff-form-field", inputs: ["appearance", "id"] }, { kind: "directive", type: i4.DaffFormLabelDirective, selector: "[daffFormLabel]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
95
|
-
}
|
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: SkeletonSelectComponent, decorators: [{
|
|
97
|
-
type: Component,
|
|
98
|
-
args: [{ selector: 'skeleton-select', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
99
|
-
ReactiveFormsModule,
|
|
100
|
-
DAFF_SELECT_COMPONENTS,
|
|
101
|
-
DAFF_FORM_FIELD_COMPONENTS,
|
|
102
|
-
], template: "<daff-form-field [skeleton]=\"true\">\n <label daffFormLabel>Select an address</label>\n <daff-select [options]=\"options\" [formControl]=\"control\">\n <ng-template daffSelectOption let-option=\"option\">\n </ng-template>\n </daff-select>\n</daff-form-field>" }]
|
|
103
|
-
}] });
|
|
104
|
-
|
|
105
|
-
const SELECT_EXAMPLES = [
|
|
106
|
-
DefaultSelectComponent,
|
|
107
|
-
DisabledSelectComponent,
|
|
108
|
-
SkeletonSelectComponent,
|
|
109
|
-
SelectWithErrorComponent,
|
|
110
|
-
];
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Generated bundle index. Do not edit.
|
|
114
|
-
*/
|
|
115
|
-
|
|
116
|
-
export { SELECT_EXAMPLES };
|
|
117
|
-
//# sourceMappingURL=daffodil-design-select-examples.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"daffodil-design-select-examples.mjs","sources":["../../../libs/design/select/examples/src/models/addresses.ts","../../../libs/design/select/examples/src/default-select/default-select.component.ts","../../../libs/design/select/examples/src/default-select/default-select.component.html","../../../libs/design/select/examples/src/disabled-select/disabled-select.component.ts","../../../libs/design/select/examples/src/disabled-select/disabled-select.component.html","../../../libs/design/select/examples/src/select-with-error/select-with-error.component.ts","../../../libs/design/select/examples/src/select-with-error/select-with-error.component.html","../../../libs/design/select/examples/src/skeleton-select/skeleton-select.component.ts","../../../libs/design/select/examples/src/skeleton-select/skeleton-select.component.html","../../../libs/design/select/examples/src/public_api.ts","../../../libs/design/select/examples/src/daffodil-design-select-examples.ts"],"sourcesContent":["import { SelectExampleAddress } from './address.type';\n\nexport const SELECT_EXAMPLE_ADDRESSES: SelectExampleAddress[] = [\n {\n name: 'John Doe',\n street: '123 New St',\n city: 'New York',\n state: 'NY',\n postcode: '10001',\n },\n {\n name: 'Srinivasa Ramanujan',\n street: '1729 Hardy Blvd',\n city: 'New York',\n state: 'NY',\n postcode: '10001',\n },\n {\n name: 'Bob the Builder',\n street: '525 Coal Ave',\n city: 'Morgantown',\n state: 'WV',\n postcode: '26501',\n },\n];\n","import { NgIf } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\nimport {\n FormControl,\n ReactiveFormsModule,\n} from '@angular/forms';\n\nimport { DAFF_FORM_FIELD_COMPONENTS } from '@daffodil/design/form-field';\nimport { DAFF_SELECT_COMPONENTS } from '@daffodil/design/select';\n\nimport { SELECT_EXAMPLE_ADDRESSES } from '../models/addresses';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'default-select',\n templateUrl: './default-select.component.html',\n styleUrls: ['./default-select.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n imports: [\n ReactiveFormsModule,\n NgIf,\n DAFF_SELECT_COMPONENTS,\n DAFF_FORM_FIELD_COMPONENTS,\n ],\n})\nexport class DefaultSelectComponent {\n control = new FormControl();\n\n options = SELECT_EXAMPLE_ADDRESSES;\n}\n","<daff-form-field>\n <daff-form-label>Select an address</daff-form-label>\n <daff-select [options]=\"options\" [formControl]=\"control\">\n <ng-template daffSelectOption let-option=\"option\">\n <div>{{option.name}}</div>\n <div>{{option.street}}</div>\n <div>{{option.city}}, {{option.state}} {{option.postcode}}</div>\n </ng-template>\n </daff-select>\n</daff-form-field>\n\n<div class=\"default-select__selected-value\" *ngIf=\"control.value\">\n Selected Address:\n <div>{{control.value.name}}</div>\n <div>{{control.value.street}}</div>\n <div>{{control.value.city}}, {{control.value.state}} {{control.value.postcode}}</div>\n</div>","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\nimport {\n ReactiveFormsModule,\n UntypedFormControl,\n} from '@angular/forms';\n\nimport { DAFF_FORM_FIELD_COMPONENTS } from '@daffodil/design/form-field';\nimport { DAFF_SELECT_COMPONENTS } from '@daffodil/design/select';\n\nimport { SELECT_EXAMPLE_ADDRESSES } from '../models/addresses';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'disabled-select',\n templateUrl: './disabled-select.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n imports: [\n ReactiveFormsModule,\n DAFF_SELECT_COMPONENTS,\n DAFF_FORM_FIELD_COMPONENTS,\n ],\n})\nexport class DisabledSelectComponent {\n disabled = new UntypedFormControl({ value : '' , disabled: true });\n\n options = SELECT_EXAMPLE_ADDRESSES;\n}\n","<daff-form-field>\n <label daffFormLabel>Select an address</label>\n <daff-select [options]=\"options\" [formControl]=\"disabled\">\n <ng-template daffSelectOption let-option=\"option\"></ng-template>\n </daff-select>\n</daff-form-field>","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\nimport {\n FormControl,\n ReactiveFormsModule,\n Validators,\n} from '@angular/forms';\n\nimport { DAFF_FORM_FIELD_COMPONENTS } from '@daffodil/design/form-field';\nimport { DAFF_SELECT_COMPONENTS } from '@daffodil/design/select';\n\nimport { SELECT_EXAMPLE_ADDRESSES } from '../models/addresses';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'select-with-error',\n templateUrl: './select-with-error.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n ReactiveFormsModule,\n DAFF_SELECT_COMPONENTS,\n DAFF_FORM_FIELD_COMPONENTS,\n ],\n})\nexport class SelectWithErrorComponent {\n control = new FormControl('', [Validators.required]);\n\n options = SELECT_EXAMPLE_ADDRESSES;\n}\n","<daff-form-field>\n <daff-form-label>Select an address</daff-form-label>\n <daff-select [options]=\"options\" [formControl]=\"control\">\n <ng-template daffSelectOption let-option=\"option\">\n <div>{{option.name}}</div>\n <div>{{option.street}}</div>\n <div>{{option.city}}, {{option.state}} {{option.postcode}}</div>\n </ng-template>\n </daff-select>\n @if (control.invalid) {\n <daff-error-message>This field is required</daff-error-message>\n }\n</daff-form-field>","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\nimport {\n FormControl,\n ReactiveFormsModule,\n} from '@angular/forms';\n\nimport { DAFF_FORM_FIELD_COMPONENTS } from '@daffodil/design/form-field';\nimport { DAFF_SELECT_COMPONENTS } from '@daffodil/design/select';\n\nimport { SELECT_EXAMPLE_ADDRESSES } from '../models/addresses';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'skeleton-select',\n templateUrl: './skeleton-select.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n imports: [\n ReactiveFormsModule,\n DAFF_SELECT_COMPONENTS,\n DAFF_FORM_FIELD_COMPONENTS,\n ],\n})\nexport class SkeletonSelectComponent {\n control = new FormControl();\n\n options = SELECT_EXAMPLE_ADDRESSES;\n}\n","<daff-form-field [skeleton]=\"true\">\n <label daffFormLabel>Select an address</label>\n <daff-select [options]=\"options\" [formControl]=\"control\">\n <ng-template daffSelectOption let-option=\"option\">\n </ng-template>\n </daff-select>\n</daff-form-field>","import { DefaultSelectComponent } from './default-select/default-select.component';\nimport { DisabledSelectComponent } from './disabled-select/disabled-select.component';\nimport { SelectWithErrorComponent } from './select-with-error/select-with-error.component';\nimport { SkeletonSelectComponent } from './skeleton-select/skeleton-select.component';\n\nexport const SELECT_EXAMPLES = [\n DefaultSelectComponent,\n DisabledSelectComponent,\n SkeletonSelectComponent,\n SelectWithErrorComponent,\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAEO,MAAM,wBAAwB,GAA2B;AAC9D,IAAA;AACE,QAAA,IAAI,EAAE,UAAU;AAChB,QAAA,MAAM,EAAE,YAAY;AACpB,QAAA,IAAI,EAAE,UAAU;AAChB,QAAA,KAAK,EAAE,IAAI;AACX,QAAA,QAAQ,EAAE,OAAO;AAClB,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,qBAAqB;AAC3B,QAAA,MAAM,EAAE,iBAAiB;AACzB,QAAA,IAAI,EAAE,UAAU;AAChB,QAAA,KAAK,EAAE,IAAI;AACX,QAAA,QAAQ,EAAE,OAAO;AAClB,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,iBAAiB;AACvB,QAAA,MAAM,EAAE,cAAc;AACtB,QAAA,IAAI,EAAE,YAAY;AAClB,QAAA,KAAK,EAAE,IAAI;AACX,QAAA,QAAQ,EAAE,OAAO;AA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AA,EAAA,QAAA,EAAA,oBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,sBAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,CAAA,YAAA,EAAA,IAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,sBAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAKV,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAZnC,SAAS;AAEE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,mBAEV,uBAAuB,CAAC,MAAM,EAAA,UAAA,EACnC,IAAI,EAAA,OAAA,EACP;wBACP,mBAAmB;wBACnB,sBAAsB;wBACtB,0BAA0B;AAC3B,qBAAA,EAAA,QAAA,EAAA,8QAAA,EAAA;;;AEnBI,MAAM,eAAe,GAAG;IAC7B,sBAAsB;IACtB,uBAAuB;IACvB,uBAAuB;IACvB,wBAAwB;;;ACT1B;;AAEG;;;;"}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import * as i1 from '@daffodil/design/sidebar';
|
|
4
|
-
import { DAFF_SIDEBAR_COMPONENTS } from '@daffodil/design/sidebar';
|
|
5
|
-
import * as i2 from '@angular/forms';
|
|
6
|
-
import { FormControl, ReactiveFormsModule } from '@angular/forms';
|
|
7
|
-
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
|
|
8
|
-
import { faTimes } from '@fortawesome/free-solid-svg-icons';
|
|
9
|
-
import { DaffButtonComponent, DaffIconButtonComponent } from '@daffodil/design/button';
|
|
10
|
-
import * as i2$1 from '@daffodil/design/navbar';
|
|
11
|
-
import { DAFF_NAVBAR_COMPONENTS } from '@daffodil/design/navbar';
|
|
12
|
-
|
|
13
|
-
class BasicSidebarComponent {
|
|
14
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: BasicSidebarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: BasicSidebarComponent, isStandalone: true, selector: "basic-sidebar", ngImport: i0, template: "<daff-sidebar-viewport>\n <daff-sidebar class=\"basic-sidebar\">\n <daff-sidebar-header>\n Sidebar Title\n </daff-sidebar-header>\n Sidebar content\n </daff-sidebar>\n <div class=\"basic-sidebar__content\">\n Page content\n </div>\n</daff-sidebar-viewport>", styles: ["daff-sidebar-viewport{height:288px}.basic-sidebar{border-right:1px solid rgb(var(--daff-theme-contrast-rgb),.1)}\n"], dependencies: [{ kind: "component", type: i1.DaffSidebarComponent, selector: "daff-sidebar", inputs: ["side", "mode"], outputs: ["escapePressed"] }, { kind: "component", type: i1.DaffSidebarViewportComponent, selector: "daff-sidebar-viewport", inputs: ["navPlacement"], outputs: ["backdropClicked"] }, { kind: "component", type: i1.DaffSidebarHeaderComponent, selector: "daff-sidebar-header", inputs: ["dismissible"], outputs: ["closeSidebar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
16
|
-
}
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: BasicSidebarComponent, decorators: [{
|
|
18
|
-
type: Component,
|
|
19
|
-
args: [{ selector: 'basic-sidebar', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
20
|
-
DAFF_SIDEBAR_COMPONENTS,
|
|
21
|
-
], template: "<daff-sidebar-viewport>\n <daff-sidebar class=\"basic-sidebar\">\n <daff-sidebar-header>\n Sidebar Title\n </daff-sidebar-header>\n Sidebar content\n </daff-sidebar>\n <div class=\"basic-sidebar__content\">\n Page content\n </div>\n</daff-sidebar-viewport>", styles: ["daff-sidebar-viewport{height:288px}.basic-sidebar{border-right:1px solid rgb(var(--daff-theme-contrast-rgb),.1)}\n"] }]
|
|
22
|
-
}] });
|
|
23
|
-
|
|
24
|
-
class OverandUnderSidebarsComponent {
|
|
25
|
-
constructor() {
|
|
26
|
-
this.faTimes = faTimes;
|
|
27
|
-
this.open = false;
|
|
28
|
-
this.modeControl = new FormControl('over');
|
|
29
|
-
}
|
|
30
|
-
openSidebar() {
|
|
31
|
-
this.open = !this.open;
|
|
32
|
-
}
|
|
33
|
-
closeSidebar() {
|
|
34
|
-
this.open = false;
|
|
35
|
-
}
|
|
36
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: OverandUnderSidebarsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
37
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: OverandUnderSidebarsComponent, isStandalone: true, selector: "over-and-under-sidebars", ngImport: i0, template: "<daff-sidebar-viewport (backdropClicked)=\"closeSidebar()\">\n <daff-sidebar class=\"over-sidebar\" [mode]=\"modeControl.value\" side=\"left\" [open]=\"open\" (escapePressed)=\"closeSidebar()\">\n <daff-sidebar-header [dismissible]=\"true\" (closeSidebar)=\"closeSidebar()\">\n <div daffSidebarHeaderTitle>Title</div>\n </daff-sidebar-header>\n <div class=\"over-and-under-sidebars__sidebar-content\">\n Sidebar content\n </div>\n <daff-sidebar-footer>\n <div class=\"over-and-under-sidebars__footer\">\n Sidebar footer\n </div>\n </daff-sidebar-footer>\n </daff-sidebar>\n <div class=\"over-and-under-sidebars__body-content\">\n <div class=\"over-and-under-sidebars__options-container\">\n <div class=\"over-and-under-sidebars__option-text\">Mode:</div>\n <select [formControl]=\"modeControl\">\n <option value=\"over\">Over</option>\n <option value=\"under\">Under</option>\n </select>\n </div>\n\n <button daff-button (click)=\"openSidebar()\">\n Open\n </button>\n </div>\n</daff-sidebar-viewport>\n", styles: ["daff-sidebar-viewport{height:288px}.over-and-under-sidebars__options-container{display:flex;gap:8px;margin:0 0 16px}.over-and-under-sidebars__footer,.over-and-under-sidebars__sidebar-content{padding:16px}\n"], dependencies: [{ kind: "component", type: i1.DaffSidebarComponent, selector: "daff-sidebar", inputs: ["side", "mode"], outputs: ["escapePressed"] }, { kind: "component", type: i1.DaffSidebarViewportComponent, selector: "daff-sidebar-viewport", inputs: ["navPlacement"], outputs: ["backdropClicked"] }, { kind: "component", type: i1.DaffSidebarHeaderComponent, selector: "daff-sidebar-header", inputs: ["dismissible"], outputs: ["closeSidebar"] }, { kind: "component", type: i1.DaffSidebarFooterComponent, selector: "daff-sidebar-footer" }, { kind: "directive", type: i1.DaffSidebarHeaderTitleDirective, selector: "[daffSidebarHeaderTitle]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: DaffButtonComponent, selector: "button[daff-button],a[daff-button]", inputs: ["elevated"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
38
|
-
}
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: OverandUnderSidebarsComponent, decorators: [{
|
|
40
|
-
type: Component,
|
|
41
|
-
args: [{ selector: 'over-and-under-sidebars', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
42
|
-
DAFF_SIDEBAR_COMPONENTS,
|
|
43
|
-
FaIconComponent,
|
|
44
|
-
ReactiveFormsModule,
|
|
45
|
-
DaffButtonComponent,
|
|
46
|
-
DaffIconButtonComponent,
|
|
47
|
-
], template: "<daff-sidebar-viewport (backdropClicked)=\"closeSidebar()\">\n <daff-sidebar class=\"over-sidebar\" [mode]=\"modeControl.value\" side=\"left\" [open]=\"open\" (escapePressed)=\"closeSidebar()\">\n <daff-sidebar-header [dismissible]=\"true\" (closeSidebar)=\"closeSidebar()\">\n <div daffSidebarHeaderTitle>Title</div>\n </daff-sidebar-header>\n <div class=\"over-and-under-sidebars__sidebar-content\">\n Sidebar content\n </div>\n <daff-sidebar-footer>\n <div class=\"over-and-under-sidebars__footer\">\n Sidebar footer\n </div>\n </daff-sidebar-footer>\n </daff-sidebar>\n <div class=\"over-and-under-sidebars__body-content\">\n <div class=\"over-and-under-sidebars__options-container\">\n <div class=\"over-and-under-sidebars__option-text\">Mode:</div>\n <select [formControl]=\"modeControl\">\n <option value=\"over\">Over</option>\n <option value=\"under\">Under</option>\n </select>\n </div>\n\n <button daff-button (click)=\"openSidebar()\">\n Open\n </button>\n </div>\n</daff-sidebar-viewport>\n", styles: ["daff-sidebar-viewport{height:288px}.over-and-under-sidebars__options-container{display:flex;gap:8px;margin:0 0 16px}.over-and-under-sidebars__footer,.over-and-under-sidebars__sidebar-content{padding:16px}\n"] }]
|
|
48
|
-
}] });
|
|
49
|
-
|
|
50
|
-
class SideFixedSidebarComponent {
|
|
51
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: SideFixedSidebarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
52
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: SideFixedSidebarComponent, isStandalone: true, selector: "side-fixed-sidebar", ngImport: i0, template: "<daff-sidebar-viewport navPlacement=\"beside\">\n <daff-sidebar mode=\"side-fixed\" [open]=\"true\" class=\"side-fixed-sidebar\">\n Fixed sidebar content\n </daff-sidebar>\n <nav daff-sidebar-viewport-nav daff-navbar>Navbar</nav>\n <div class=\"content\">\n Page content\n </div>\n</daff-sidebar-viewport>", styles: ["daff-sidebar-viewport{height:288px}.side-fixed-sidebar{border-right:1px solid rgb(var(--daff-theme-contrast-rgb),.1)}.content{padding:24px;height:480px}\n"], dependencies: [{ kind: "component", type: i1.DaffSidebarComponent, selector: "daff-sidebar", inputs: ["side", "mode"], outputs: ["escapePressed"] }, { kind: "component", type: i1.DaffSidebarViewportComponent, selector: "daff-sidebar-viewport", inputs: ["navPlacement"], outputs: ["backdropClicked"] }, { kind: "component", type: i2$1.DaffNavbarComponent, selector: "nav[daff-navbar]", inputs: ["raised"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
53
|
-
}
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: SideFixedSidebarComponent, decorators: [{
|
|
55
|
-
type: Component,
|
|
56
|
-
args: [{ selector: 'side-fixed-sidebar', changeDetection: ChangeDetectionStrategy.OnPush, imports: [DAFF_SIDEBAR_COMPONENTS, DAFF_NAVBAR_COMPONENTS], template: "<daff-sidebar-viewport navPlacement=\"beside\">\n <daff-sidebar mode=\"side-fixed\" [open]=\"true\" class=\"side-fixed-sidebar\">\n Fixed sidebar content\n </daff-sidebar>\n <nav daff-sidebar-viewport-nav daff-navbar>Navbar</nav>\n <div class=\"content\">\n Page content\n </div>\n</daff-sidebar-viewport>", styles: ["daff-sidebar-viewport{height:288px}.side-fixed-sidebar{border-right:1px solid rgb(var(--daff-theme-contrast-rgb),.1)}.content{padding:24px;height:480px}\n"] }]
|
|
57
|
-
}] });
|
|
58
|
-
|
|
59
|
-
class SidebarSidesComponent {
|
|
60
|
-
constructor() {
|
|
61
|
-
this.faTimes = faTimes;
|
|
62
|
-
this.open = false;
|
|
63
|
-
this.sideControl = new FormControl('left');
|
|
64
|
-
}
|
|
65
|
-
openSidebar() {
|
|
66
|
-
this.open = !this.open;
|
|
67
|
-
}
|
|
68
|
-
closeSidebar() {
|
|
69
|
-
this.open = false;
|
|
70
|
-
}
|
|
71
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: SidebarSidesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
72
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: SidebarSidesComponent, isStandalone: true, selector: "sidebar-sides", ngImport: i0, template: "<daff-sidebar-viewport (backdropClicked)=\"closeSidebar()\">\n <daff-sidebar class=\"over-sidebar\" mode=\"over\" [side]=\"sideControl.value\" [open]=\"open\" (escapePressed)=\"closeSidebar()\">\n <daff-sidebar-header [dismissible]=\"true\" (closeSidebar)=\"closeSidebar()\">\n <div daffSidebarHeaderTitle>Title</div>\n </daff-sidebar-header>\n <div class=\"over-and-under-sidebars__sidebar-content\">\n Sidebar content\n </div>\n <daff-sidebar-footer>\n <div class=\"over-and-under-sidebars__footer\">\n Sidebar footer\n </div>\n </daff-sidebar-footer>\n </daff-sidebar>\n <div class=\"over-and-under-sidebars__body-content\">\n <div class=\"over-and-under-sidebars__options-container\">\n <div class=\"over-and-under-sidebars__option-text\">Side:</div>\n <select [formControl]=\"sideControl\">\n <option value=\"left\">Left</option>\n <option value=\"right\">Right</option>\n </select>\n </div>\n\n <button daff-button (click)=\"openSidebar()\">\n Open\n </button>\n </div>\n</daff-sidebar-viewport>\n", styles: ["daff-sidebar-viewport{height:288px}.over-and-under-sidebars__options-container{display:flex;gap:8px;margin:0 0 16px}.over-and-under-sidebars__footer,.over-and-under-sidebars__sidebar-content{padding:16px}\n"], dependencies: [{ kind: "component", type: i1.DaffSidebarComponent, selector: "daff-sidebar", inputs: ["side", "mode"], outputs: ["escapePressed"] }, { kind: "component", type: i1.DaffSidebarViewportComponent, selector: "daff-sidebar-viewport", inputs: ["navPlacement"], outputs: ["backdropClicked"] }, { kind: "component", type: i1.DaffSidebarHeaderComponent, selector: "daff-sidebar-header", inputs: ["dismissible"], outputs: ["closeSidebar"] }, { kind: "component", type: i1.DaffSidebarFooterComponent, selector: "daff-sidebar-footer" }, { kind: "directive", type: i1.DaffSidebarHeaderTitleDirective, selector: "[daffSidebarHeaderTitle]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: DaffButtonComponent, selector: "button[daff-button],a[daff-button]", inputs: ["elevated"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
73
|
-
}
|
|
74
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: SidebarSidesComponent, decorators: [{
|
|
75
|
-
type: Component,
|
|
76
|
-
args: [{ selector: 'sidebar-sides', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
77
|
-
DAFF_SIDEBAR_COMPONENTS,
|
|
78
|
-
FaIconComponent,
|
|
79
|
-
ReactiveFormsModule,
|
|
80
|
-
DaffButtonComponent,
|
|
81
|
-
DaffIconButtonComponent,
|
|
82
|
-
], template: "<daff-sidebar-viewport (backdropClicked)=\"closeSidebar()\">\n <daff-sidebar class=\"over-sidebar\" mode=\"over\" [side]=\"sideControl.value\" [open]=\"open\" (escapePressed)=\"closeSidebar()\">\n <daff-sidebar-header [dismissible]=\"true\" (closeSidebar)=\"closeSidebar()\">\n <div daffSidebarHeaderTitle>Title</div>\n </daff-sidebar-header>\n <div class=\"over-and-under-sidebars__sidebar-content\">\n Sidebar content\n </div>\n <daff-sidebar-footer>\n <div class=\"over-and-under-sidebars__footer\">\n Sidebar footer\n </div>\n </daff-sidebar-footer>\n </daff-sidebar>\n <div class=\"over-and-under-sidebars__body-content\">\n <div class=\"over-and-under-sidebars__options-container\">\n <div class=\"over-and-under-sidebars__option-text\">Side:</div>\n <select [formControl]=\"sideControl\">\n <option value=\"left\">Left</option>\n <option value=\"right\">Right</option>\n </select>\n </div>\n\n <button daff-button (click)=\"openSidebar()\">\n Open\n </button>\n </div>\n</daff-sidebar-viewport>\n", styles: ["daff-sidebar-viewport{height:288px}.over-and-under-sidebars__options-container{display:flex;gap:8px;margin:0 0 16px}.over-and-under-sidebars__footer,.over-and-under-sidebars__sidebar-content{padding:16px}\n"] }]
|
|
83
|
-
}] });
|
|
84
|
-
|
|
85
|
-
class SidebarWithStickyContentComponent {
|
|
86
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: SidebarWithStickyContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
87
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: SidebarWithStickyContentComponent, isStandalone: true, selector: "sidebar-with-sticky-content", ngImport: i0, template: "<daff-sidebar-viewport>\n <daff-sidebar mode=\"side-fixed\" [open]=\"true\" class=\"sidebar-with-sticky-content\">\n Fixed sidebar content\n </daff-sidebar>\n <div class=\"content\">\n <div class=\"sticky\">\n <div>Sticky content</div>\n </div>\n <div class=\"inner-content\">Inner content</div>\n </div>\n</daff-sidebar-viewport>", styles: ["daff-sidebar-viewport{height:288px}.sidebar-with-sticky-content{border-right:1px solid rgb(var(--daff-theme-contrast-rgb),.1)}.content{height:480px}.sticky{position:sticky;background:#fafafa;padding:16px;top:0}.inner-content{padding:16px}\n"], dependencies: [{ kind: "component", type: i1.DaffSidebarComponent, selector: "daff-sidebar", inputs: ["side", "mode"], outputs: ["escapePressed"] }, { kind: "component", type: i1.DaffSidebarViewportComponent, selector: "daff-sidebar-viewport", inputs: ["navPlacement"], outputs: ["backdropClicked"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
88
|
-
}
|
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: SidebarWithStickyContentComponent, decorators: [{
|
|
90
|
-
type: Component,
|
|
91
|
-
args: [{ selector: 'sidebar-with-sticky-content', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
92
|
-
DAFF_SIDEBAR_COMPONENTS,
|
|
93
|
-
], template: "<daff-sidebar-viewport>\n <daff-sidebar mode=\"side-fixed\" [open]=\"true\" class=\"sidebar-with-sticky-content\">\n Fixed sidebar content\n </daff-sidebar>\n <div class=\"content\">\n <div class=\"sticky\">\n <div>Sticky content</div>\n </div>\n <div class=\"inner-content\">Inner content</div>\n </div>\n</daff-sidebar-viewport>", styles: ["daff-sidebar-viewport{height:288px}.sidebar-with-sticky-content{border-right:1px solid rgb(var(--daff-theme-contrast-rgb),.1)}.content{height:480px}.sticky{position:sticky;background:#fafafa;padding:16px;top:0}.inner-content{padding:16px}\n"] }]
|
|
94
|
-
}] });
|
|
95
|
-
|
|
96
|
-
const SIDEBAR_EXAMPLES = [
|
|
97
|
-
BasicSidebarComponent,
|
|
98
|
-
OverandUnderSidebarsComponent,
|
|
99
|
-
SideFixedSidebarComponent,
|
|
100
|
-
SidebarWithStickyContentComponent,
|
|
101
|
-
SidebarSidesComponent,
|
|
102
|
-
];
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Generated bundle index. Do not edit.
|
|
106
|
-
*/
|
|
107
|
-
|
|
108
|
-
export { SIDEBAR_EXAMPLES };
|
|
109
|
-
//# sourceMappingURL=daffodil-design-sidebar-examples.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"daffodil-design-sidebar-examples.mjs","sources":["../../../libs/design/sidebar/examples/src/basic-sidebar/basic-sidebar.component.ts","../../../libs/design/sidebar/examples/src/basic-sidebar/basic-sidebar.component.html","../../../libs/design/sidebar/examples/src/over-and-under-sidebars/over-and-under-sidebars.component.ts","../../../libs/design/sidebar/examples/src/over-and-under-sidebars/over-and-under-sidebars.component.html","../../../libs/design/sidebar/examples/src/side-fixed-sidebar/side-fixed-sidebar.component.ts","../../../libs/design/sidebar/examples/src/side-fixed-sidebar/side-fixed-sidebar.component.html","../../../libs/design/sidebar/examples/src/sidebar-sides/sidebar-sides.component.ts","../../../libs/design/sidebar/examples/src/sidebar-sides/sidebar-sides.component.html","../../../libs/design/sidebar/examples/src/sidebar-with-sticky-content/sidebar-with-sticky-content.component.ts","../../../libs/design/sidebar/examples/src/sidebar-with-sticky-content/sidebar-with-sticky-content.component.html","../../../libs/design/sidebar/examples/src/public_api.ts","../../../libs/design/sidebar/examples/src/daffodil-design-sidebar-examples.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\nimport { DAFF_SIDEBAR_COMPONENTS } from '@daffodil/design/sidebar';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'basic-sidebar',\n templateUrl: './basic-sidebar.component.html',\n styleUrls: ['./basic-sidebar.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n DAFF_SIDEBAR_COMPONENTS,\n ],\n})\nexport class BasicSidebarComponent {}\n","<daff-sidebar-viewport>\n <daff-sidebar class=\"basic-sidebar\">\n <daff-sidebar-header>\n Sidebar Title\n </daff-sidebar-header>\n Sidebar content\n </daff-sidebar>\n <div class=\"basic-sidebar__content\">\n Page content\n </div>\n</daff-sidebar-viewport>","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\nimport {\n FormControl,\n ReactiveFormsModule,\n} from '@angular/forms';\nimport { FaIconComponent } from '@fortawesome/angular-fontawesome';\nimport { faTimes } from '@fortawesome/free-solid-svg-icons';\n\nimport {\n DaffButtonComponent,\n DaffIconButtonComponent,\n} from '@daffodil/design/button';\nimport { DAFF_SIDEBAR_COMPONENTS } from '@daffodil/design/sidebar';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'over-and-under-sidebars',\n templateUrl: './over-and-under-sidebars.component.html',\n styleUrls: ['over-and-under-sidebars.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n DAFF_SIDEBAR_COMPONENTS,\n FaIconComponent,\n ReactiveFormsModule,\n DaffButtonComponent,\n DaffIconButtonComponent,\n ],\n})\nexport class OverandUnderSidebarsComponent {\n faTimes = faTimes;\n\n open = false;\n\n modeControl: FormControl = new FormControl('over');\n\n openSidebar() {\n this.open = !this.open;\n }\n\n closeSidebar() {\n this.open = false;\n }\n}\n","<daff-sidebar-viewport (backdropClicked)=\"closeSidebar()\">\n <daff-sidebar class=\"over-sidebar\" [mode]=\"modeControl.value\" side=\"left\" [open]=\"open\" (escapePressed)=\"closeSidebar()\">\n <daff-sidebar-header [dismissible]=\"true\" (closeSidebar)=\"closeSidebar()\">\n <div daffSidebarHeaderTitle>Title</div>\n </daff-sidebar-header>\n <div class=\"over-and-under-sidebars__sidebar-content\">\n Sidebar content\n </div>\n <daff-sidebar-footer>\n <div class=\"over-and-under-sidebars__footer\">\n Sidebar footer\n </div>\n </daff-sidebar-footer>\n </daff-sidebar>\n <div class=\"over-and-under-sidebars__body-content\">\n <div class=\"over-and-under-sidebars__options-container\">\n <div class=\"over-and-under-sidebars__option-text\">Mode:</div>\n <select [formControl]=\"modeControl\">\n <option value=\"over\">Over</option>\n <option value=\"under\">Under</option>\n </select>\n </div>\n\n <button daff-button (click)=\"openSidebar()\">\n Open\n </button>\n </div>\n</daff-sidebar-viewport>\n","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\nimport { DAFF_NAVBAR_COMPONENTS } from '@daffodil/design/navbar';\nimport { DAFF_SIDEBAR_COMPONENTS } from '@daffodil/design/sidebar';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'side-fixed-sidebar',\n templateUrl: './side-fixed-sidebar.component.html',\n styleUrls: ['side-fixed-sidebar.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [DAFF_SIDEBAR_COMPONENTS, DAFF_NAVBAR_COMPONENTS],\n})\nexport class SideFixedSidebarComponent {}\n","<daff-sidebar-viewport navPlacement=\"beside\">\n <daff-sidebar mode=\"side-fixed\" [open]=\"true\" class=\"side-fixed-sidebar\">\n Fixed sidebar content\n </daff-sidebar>\n <nav daff-sidebar-viewport-nav daff-navbar>Navbar</nav>\n <div class=\"content\">\n Page content\n </div>\n</daff-sidebar-viewport>","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\nimport {\n FormControl,\n ReactiveFormsModule,\n} from '@angular/forms';\nimport { FaIconComponent } from '@fortawesome/angular-fontawesome';\nimport { faTimes } from '@fortawesome/free-solid-svg-icons';\n\nimport {\n DaffButtonComponent,\n DaffIconButtonComponent,\n} from '@daffodil/design/button';\nimport { DAFF_SIDEBAR_COMPONENTS } from '@daffodil/design/sidebar';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'sidebar-sides',\n templateUrl: './sidebar-sides.component.html',\n styleUrls: ['sidebar-sides.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n DAFF_SIDEBAR_COMPONENTS,\n FaIconComponent,\n ReactiveFormsModule,\n DaffButtonComponent,\n DaffIconButtonComponent,\n ],\n})\nexport class SidebarSidesComponent {\n faTimes = faTimes;\n\n open = false;\n\n sideControl: FormControl = new FormControl('left');\n\n openSidebar() {\n this.open = !this.open;\n }\n\n closeSidebar() {\n this.open = false;\n }\n}\n","<daff-sidebar-viewport (backdropClicked)=\"closeSidebar()\">\n <daff-sidebar class=\"over-sidebar\" mode=\"over\" [side]=\"sideControl.value\" [open]=\"open\" (escapePressed)=\"closeSidebar()\">\n <daff-sidebar-header [dismissible]=\"true\" (closeSidebar)=\"closeSidebar()\">\n <div daffSidebarHeaderTitle>Title</div>\n </daff-sidebar-header>\n <div class=\"over-and-under-sidebars__sidebar-content\">\n Sidebar content\n </div>\n <daff-sidebar-footer>\n <div class=\"over-and-under-sidebars__footer\">\n Sidebar footer\n </div>\n </daff-sidebar-footer>\n </daff-sidebar>\n <div class=\"over-and-under-sidebars__body-content\">\n <div class=\"over-and-under-sidebars__options-container\">\n <div class=\"over-and-under-sidebars__option-text\">Side:</div>\n <select [formControl]=\"sideControl\">\n <option value=\"left\">Left</option>\n <option value=\"right\">Right</option>\n </select>\n </div>\n\n <button daff-button (click)=\"openSidebar()\">\n Open\n </button>\n </div>\n</daff-sidebar-viewport>\n","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\nimport { DAFF_SIDEBAR_COMPONENTS } from '@daffodil/design/sidebar';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'sidebar-with-sticky-content',\n templateUrl: './sidebar-with-sticky-content.component.html',\n styleUrls: ['sidebar-with-sticky-content.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n DAFF_SIDEBAR_COMPONENTS,\n ],\n})\nexport class SidebarWithStickyContentComponent {}\n","<daff-sidebar-viewport>\n <daff-sidebar mode=\"side-fixed\" [open]=\"true\" class=\"sidebar-with-sticky-content\">\n Fixed sidebar content\n </daff-sidebar>\n <div class=\"content\">\n <div class=\"sticky\">\n <div>Sticky content</div>\n </div>\n <div class=\"inner-content\">Inner content</div>\n </div>\n</daff-sidebar-viewport>","import { BasicSidebarComponent } from './basic-sidebar/basic-sidebar.component';\nimport { OverandUnderSidebarsComponent } from './over-and-under-sidebars/over-and-under-sidebars.component';\nimport { SideFixedSidebarComponent } from './side-fixed-sidebar/side-fixed-sidebar.component';\nimport { SidebarSidesComponent } from './sidebar-sides/sidebar-sides.component';\nimport { SidebarWithStickyContentComponent } from './sidebar-with-sticky-content/sidebar-with-sticky-content.component';\n\nexport const SIDEBAR_EXAMPLES = [\n BasicSidebarComponent,\n OverandUnderSidebarsComponent,\n SideFixedSidebarComponent,\n SidebarWithStickyContentComponent,\n SidebarSidesComponent,\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2"],"mappings":";;;;;;;;;;;;MAiBa,qBAAqB,CAAA;iIAArB,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,uBAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,yECjBlC,uRAUwB,EAAA,MAAA,EAAA,CAAA,oHAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,oBAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,4BAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,MAAA,EAAA,CAAA,cAAA,CAAA,EAAA,OAAA,EAAA,CAAA,iBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,0BAAA,EAAA,QAAA,EAAA,qBAAA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EAAA,CAAA,4BAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,MAAA,EAAA,CAAA,cAAA,CAAA,EAAA,OAAA,EAAA,CAAA,iBAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDOX,iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAV7C,SAAS;AAEE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,6BAA6B,EAAA,eAAA,EAGtB,uBAAuB,CAAC,MAAM,EAAA,OAAA,EACtC;wBACP,uBAAuB;AACxB,qBAAA,EAAA,QAAA,EAAA,iWAAA,EAAA,MAAA,EAAA,CAAA,kPAAA,CAAA,EAAA;;;AETI,MAAM,gBAAgB,GAAG;IAC9B,qBAAqB;IACrB,6BAA6B;IAC7B,yBAAyB;IACzB,iCAAiC;IACjC,qBAAqB;;;ACXvB;;AAEG;;;;"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import { DaffStickyTrackerDirective } from '@daffodil/design';
|
|
4
|
-
|
|
5
|
-
class BasicStickyComponent {
|
|
6
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: BasicStickyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: BasicStickyComponent, isStandalone: true, selector: "basic-sticky", ngImport: i0, template: "<div class=\"basic-sticky\">\n <div class=\"basic-sticky__section\">\n <h3>Top Sticky Example</h3>\n <div class=\"basic-sticky__container\">\n <div class=\"basic-sticky__content-before\">\n <p>Scroll down to see the header stick to the top...</p>\n <p>The header below will stick to the top when you scroll past it.</p>\n <p>Notice how its appearance changes when it becomes \"pinned\".</p>\n </div>\n \n <div \n daffStickyTracker sticky=\"top\"\n class=\"basic-sticky__header\">\n <span class=\"basic-sticky__text\">Header - Sticks to Top</span>\n <span class=\"basic-sticky__indicator\">Pinned!</span>\n </div>\n \n <div class=\"basic-sticky__content-middle\">\n <p>Keep scrolling to see the sticky behavior...</p>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>\n <p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>\n <p>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>\n <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium.</p>\n </div>\n </div>\n </div>\n\n <div class=\"basic-sticky__section\">\n <h3>Bottom Sticky Example</h3>\n <div class=\"basic-sticky__container basic-sticky__container--bottom\">\n <div class=\"basic-sticky__spacer\">\n <p>Scroll down to see the footer stick to the bottom...</p>\n <p>The footer is positioned naturally in the content below.</p>\n <p>Continue scrolling to see it enter the viewport and then stick!</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>Keep scrolling down...</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>Almost there...</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>You should see the footer appear below this text:</p>\n </div>\n \n <div \n daffStickyTracker sticky=\"bottom\"\n class=\"basic-sticky__footer\">\n <span class=\"basic-sticky__text\">Footer - Sticks to Bottom</span>\n <span class=\"basic-sticky__indicator\">Pinned!</span>\n </div>\n \n <div class=\"basic-sticky__spacer-after\">\n <p>This content appears after the footer.</p>\n <p>When you scroll past the footer, it should stick to the bottom.</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>The footer should remain pinned as you scroll through this content.</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>Keep scrolling to test the sticky behavior...</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>End of content.</p>\n </div>\n </div>\n </div> \n \n <div class=\"basic-sticky__section\">\n <h3>Top Sticky (First Element in Container)</h3>\n <div class=\"basic-sticky__container\">\n <div \n daffStickyTracker sticky=\"top\"\n class=\"basic-sticky__header\">\n <span class=\"basic-sticky__text\">Header - Sticks to Top</span>\n <span class=\"basic-sticky__indicator\">Pinned!</span>\n </div>\n <div class=\"basic-sticky__content-before\">\n <p>Scroll down to see the header stick to the top...</p>\n <p>The header below will stick to the top when you scroll past it.</p>\n <p>Notice how its appearance changes when it becomes \"pinned\".</p>\n </div>\n \n \n <div class=\"basic-sticky__content-middle\">\n <p>Keep scrolling to see the sticky behavior...</p>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>\n <p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>\n <p>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>\n <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium.</p>\n </div>\n </div>\n </div> \n\n <div class=\"basic-sticky__section\">\n <h3>Bottom Sticky (Last Element in Container)</h3>\n <div class=\"basic-sticky__container basic-sticky__container--bottom\">\n <div class=\"basic-sticky__spacer\">\n <p>Scroll down to see the footer stick to the bottom...</p>\n <p>The footer is positioned naturally in the content below.</p>\n <p>Continue scrolling to see it enter the viewport and then stick!</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>Keep scrolling down...</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>Almost there...</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>You should see the footer appear below this text:</p>\n </div>\n \n \n <div class=\"basic-sticky__spacer-after\">\n <p>This content appears after the footer.</p>\n <p>When you scroll past the footer, it should stick to the bottom.</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>The footer should remain pinned as you scroll through this content.</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>Keep scrolling to test the sticky behavior...</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>End of content.</p>\n </div>\n <div \n daffStickyTracker sticky=\"bottom\"\n class=\"basic-sticky__footer\">\n <span class=\"basic-sticky__text\">Footer - Sticks to Bottom</span>\n <span class=\"basic-sticky__indicator\">Pinned!</span>\n </div>\n </div>\n </div> \n\n</div> ", styles: [".basic-sticky__section{margin-bottom:40px}.basic-sticky__section h3{margin-bottom:16px;font-size:1.2em;font-weight:600}.basic-sticky__container{height:300px;overflow-y:auto;border:1px solid #ddd;border-radius:8px;background:#fff}.basic-sticky__container--bottom{height:400px}.basic-sticky__content-before,.basic-sticky__content-middle,.basic-sticky__content-after,.basic-sticky__spacer,.basic-sticky__spacer-after{padding:20px}.basic-sticky__content-before p,.basic-sticky__content-middle p,.basic-sticky__content-after p,.basic-sticky__spacer p,.basic-sticky__spacer-after p{margin:8px 0;line-height:1.6;color:#666}.basic-sticky__content-before{background:#f8f9fa;min-height:120px}.basic-sticky__content-middle{background:#fff;min-height:400px}.basic-sticky__content-after{background:#f1f3f4;min-height:300px;padding-bottom:40px}.basic-sticky__spacer{background:#f8f9fa;padding:20px}.basic-sticky__spacer-after{background:#f1f3f4;padding:20px}.basic-sticky__header,.basic-sticky__element{position:sticky;top:0;padding:16px 20px;background:#2196f3;color:#fff;font-weight:700;display:flex;align-items:center;justify-content:space-between;transition:all .3s ease;border-bottom:3px solid #1976d2;z-index:10}.basic-sticky__header .basic-sticky__indicator,.basic-sticky__element .basic-sticky__indicator{opacity:0;transform:translate(10px);transition:all .3s ease;font-size:.9em}.basic-sticky__header.is-pinned,.basic-sticky__element.is-pinned{background:#4caf50;border-bottom-color:#388e3c;box-shadow:0 4px 8px #00000026}.basic-sticky__header.is-pinned .basic-sticky__indicator,.basic-sticky__element.is-pinned .basic-sticky__indicator{opacity:1;transform:translate(0)}.basic-sticky__header.is-pinned .basic-sticky__text,.basic-sticky__element.is-pinned .basic-sticky__text{opacity:.95}.basic-sticky__footer{position:sticky;bottom:0;padding:16px 20px;background:#ff9800;color:#fff;font-weight:700;display:flex;align-items:center;justify-content:space-between;transition:all .3s ease;border-top:3px solid #f57c00;z-index:10}.basic-sticky__footer .basic-sticky__indicator{opacity:0;transform:translate(-10px);transition:all .3s ease;font-size:.9em}.basic-sticky__footer.is-pinned{background:#e91e63;border-top-color:#c2185b;box-shadow:0 -4px 8px #00000026}.basic-sticky__footer.is-pinned .basic-sticky__indicator{opacity:1;transform:translate(0)}.basic-sticky__footer.is-pinned .basic-sticky__text{opacity:.95}.basic-sticky__text{font-size:1em;transition:opacity .3s ease}\n"], dependencies: [{ kind: "directive", type: DaffStickyTrackerDirective, selector: "[daffStickyTracker]", inputs: ["sticky"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8
|
-
}
|
|
9
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: BasicStickyComponent, decorators: [{
|
|
10
|
-
type: Component,
|
|
11
|
-
args: [{ selector: 'basic-sticky', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
12
|
-
DaffStickyTrackerDirective,
|
|
13
|
-
], template: "<div class=\"basic-sticky\">\n <div class=\"basic-sticky__section\">\n <h3>Top Sticky Example</h3>\n <div class=\"basic-sticky__container\">\n <div class=\"basic-sticky__content-before\">\n <p>Scroll down to see the header stick to the top...</p>\n <p>The header below will stick to the top when you scroll past it.</p>\n <p>Notice how its appearance changes when it becomes \"pinned\".</p>\n </div>\n \n <div \n daffStickyTracker sticky=\"top\"\n class=\"basic-sticky__header\">\n <span class=\"basic-sticky__text\">Header - Sticks to Top</span>\n <span class=\"basic-sticky__indicator\">Pinned!</span>\n </div>\n \n <div class=\"basic-sticky__content-middle\">\n <p>Keep scrolling to see the sticky behavior...</p>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>\n <p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>\n <p>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>\n <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium.</p>\n </div>\n </div>\n </div>\n\n <div class=\"basic-sticky__section\">\n <h3>Bottom Sticky Example</h3>\n <div class=\"basic-sticky__container basic-sticky__container--bottom\">\n <div class=\"basic-sticky__spacer\">\n <p>Scroll down to see the footer stick to the bottom...</p>\n <p>The footer is positioned naturally in the content below.</p>\n <p>Continue scrolling to see it enter the viewport and then stick!</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>Keep scrolling down...</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>Almost there...</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>You should see the footer appear below this text:</p>\n </div>\n \n <div \n daffStickyTracker sticky=\"bottom\"\n class=\"basic-sticky__footer\">\n <span class=\"basic-sticky__text\">Footer - Sticks to Bottom</span>\n <span class=\"basic-sticky__indicator\">Pinned!</span>\n </div>\n \n <div class=\"basic-sticky__spacer-after\">\n <p>This content appears after the footer.</p>\n <p>When you scroll past the footer, it should stick to the bottom.</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>The footer should remain pinned as you scroll through this content.</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>Keep scrolling to test the sticky behavior...</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>End of content.</p>\n </div>\n </div>\n </div> \n \n <div class=\"basic-sticky__section\">\n <h3>Top Sticky (First Element in Container)</h3>\n <div class=\"basic-sticky__container\">\n <div \n daffStickyTracker sticky=\"top\"\n class=\"basic-sticky__header\">\n <span class=\"basic-sticky__text\">Header - Sticks to Top</span>\n <span class=\"basic-sticky__indicator\">Pinned!</span>\n </div>\n <div class=\"basic-sticky__content-before\">\n <p>Scroll down to see the header stick to the top...</p>\n <p>The header below will stick to the top when you scroll past it.</p>\n <p>Notice how its appearance changes when it becomes \"pinned\".</p>\n </div>\n \n \n <div class=\"basic-sticky__content-middle\">\n <p>Keep scrolling to see the sticky behavior...</p>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>\n <p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>\n <p>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>\n <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium.</p>\n </div>\n </div>\n </div> \n\n <div class=\"basic-sticky__section\">\n <h3>Bottom Sticky (Last Element in Container)</h3>\n <div class=\"basic-sticky__container basic-sticky__container--bottom\">\n <div class=\"basic-sticky__spacer\">\n <p>Scroll down to see the footer stick to the bottom...</p>\n <p>The footer is positioned naturally in the content below.</p>\n <p>Continue scrolling to see it enter the viewport and then stick!</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>Keep scrolling down...</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>Almost there...</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>You should see the footer appear below this text:</p>\n </div>\n \n \n <div class=\"basic-sticky__spacer-after\">\n <p>This content appears after the footer.</p>\n <p>When you scroll past the footer, it should stick to the bottom.</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>The footer should remain pinned as you scroll through this content.</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>Keep scrolling to test the sticky behavior...</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>End of content.</p>\n </div>\n <div \n daffStickyTracker sticky=\"bottom\"\n class=\"basic-sticky__footer\">\n <span class=\"basic-sticky__text\">Footer - Sticks to Bottom</span>\n <span class=\"basic-sticky__indicator\">Pinned!</span>\n </div>\n </div>\n </div> \n\n</div> ", styles: [".basic-sticky__section{margin-bottom:40px}.basic-sticky__section h3{margin-bottom:16px;font-size:1.2em;font-weight:600}.basic-sticky__container{height:300px;overflow-y:auto;border:1px solid #ddd;border-radius:8px;background:#fff}.basic-sticky__container--bottom{height:400px}.basic-sticky__content-before,.basic-sticky__content-middle,.basic-sticky__content-after,.basic-sticky__spacer,.basic-sticky__spacer-after{padding:20px}.basic-sticky__content-before p,.basic-sticky__content-middle p,.basic-sticky__content-after p,.basic-sticky__spacer p,.basic-sticky__spacer-after p{margin:8px 0;line-height:1.6;color:#666}.basic-sticky__content-before{background:#f8f9fa;min-height:120px}.basic-sticky__content-middle{background:#fff;min-height:400px}.basic-sticky__content-after{background:#f1f3f4;min-height:300px;padding-bottom:40px}.basic-sticky__spacer{background:#f8f9fa;padding:20px}.basic-sticky__spacer-after{background:#f1f3f4;padding:20px}.basic-sticky__header,.basic-sticky__element{position:sticky;top:0;padding:16px 20px;background:#2196f3;color:#fff;font-weight:700;display:flex;align-items:center;justify-content:space-between;transition:all .3s ease;border-bottom:3px solid #1976d2;z-index:10}.basic-sticky__header .basic-sticky__indicator,.basic-sticky__element .basic-sticky__indicator{opacity:0;transform:translate(10px);transition:all .3s ease;font-size:.9em}.basic-sticky__header.is-pinned,.basic-sticky__element.is-pinned{background:#4caf50;border-bottom-color:#388e3c;box-shadow:0 4px 8px #00000026}.basic-sticky__header.is-pinned .basic-sticky__indicator,.basic-sticky__element.is-pinned .basic-sticky__indicator{opacity:1;transform:translate(0)}.basic-sticky__header.is-pinned .basic-sticky__text,.basic-sticky__element.is-pinned .basic-sticky__text{opacity:.95}.basic-sticky__footer{position:sticky;bottom:0;padding:16px 20px;background:#ff9800;color:#fff;font-weight:700;display:flex;align-items:center;justify-content:space-between;transition:all .3s ease;border-top:3px solid #f57c00;z-index:10}.basic-sticky__footer .basic-sticky__indicator{opacity:0;transform:translate(-10px);transition:all .3s ease;font-size:.9em}.basic-sticky__footer.is-pinned{background:#e91e63;border-top-color:#c2185b;box-shadow:0 -4px 8px #00000026}.basic-sticky__footer.is-pinned .basic-sticky__indicator{opacity:1;transform:translate(0)}.basic-sticky__footer.is-pinned .basic-sticky__text{opacity:.95}.basic-sticky__text{font-size:1em;transition:opacity .3s ease}\n"] }]
|
|
14
|
-
}] });
|
|
15
|
-
|
|
16
|
-
const STICKY_EXAMPLES = [
|
|
17
|
-
BasicStickyComponent,
|
|
18
|
-
];
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Generated bundle index. Do not edit.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
export { STICKY_EXAMPLES };
|
|
25
|
-
//# sourceMappingURL=daffodil-design-sticky-examples.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"daffodil-design-sticky-examples.mjs","sources":["../../../libs/design/sticky/examples/src/basic-sticky/basic-sticky.component.ts","../../../libs/design/sticky/examples/src/basic-sticky/basic-sticky.component.html","../../../libs/design/sticky/examples/src/public_api.ts","../../../libs/design/sticky/examples/src/daffodil-design-sticky-examples.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\nimport { DaffStickyTrackerDirective } from '@daffodil/design';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'basic-sticky',\n templateUrl: './basic-sticky.component.html',\n styleUrls: ['./basic-sticky.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n DaffStickyTrackerDirective,\n ],\n})\nexport class BasicStickyComponent {}\n","<div class=\"basic-sticky\">\n <div class=\"basic-sticky__section\">\n <h3>Top Sticky Example</h3>\n <div class=\"basic-sticky__container\">\n <div class=\"basic-sticky__content-before\">\n <p>Scroll down to see the header stick to the top...</p>\n <p>The header below will stick to the top when you scroll past it.</p>\n <p>Notice how its appearance changes when it becomes \"pinned\".</p>\n </div>\n \n <div \n daffStickyTracker sticky=\"top\"\n class=\"basic-sticky__header\">\n <span class=\"basic-sticky__text\">Header - Sticks to Top</span>\n <span class=\"basic-sticky__indicator\">Pinned!</span>\n </div>\n \n <div class=\"basic-sticky__content-middle\">\n <p>Keep scrolling to see the sticky behavior...</p>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>\n <p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>\n <p>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>\n <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium.</p>\n </div>\n </div>\n </div>\n\n <div class=\"basic-sticky__section\">\n <h3>Bottom Sticky Example</h3>\n <div class=\"basic-sticky__container basic-sticky__container--bottom\">\n <div class=\"basic-sticky__spacer\">\n <p>Scroll down to see the footer stick to the bottom...</p>\n <p>The footer is positioned naturally in the content below.</p>\n <p>Continue scrolling to see it enter the viewport and then stick!</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>Keep scrolling down...</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>Almost there...</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>You should see the footer appear below this text:</p>\n </div>\n \n <div \n daffStickyTracker sticky=\"bottom\"\n class=\"basic-sticky__footer\">\n <span class=\"basic-sticky__text\">Footer - Sticks to Bottom</span>\n <span class=\"basic-sticky__indicator\">Pinned!</span>\n </div>\n \n <div class=\"basic-sticky__spacer-after\">\n <p>This content appears after the footer.</p>\n <p>When you scroll past the footer, it should stick to the bottom.</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>The footer should remain pinned as you scroll through this content.</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>Keep scrolling to test the sticky behavior...</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>End of content.</p>\n </div>\n </div>\n </div> \n \n <div class=\"basic-sticky__section\">\n <h3>Top Sticky (First Element in Container)</h3>\n <div class=\"basic-sticky__container\">\n <div \n daffStickyTracker sticky=\"top\"\n class=\"basic-sticky__header\">\n <span class=\"basic-sticky__text\">Header - Sticks to Top</span>\n <span class=\"basic-sticky__indicator\">Pinned!</span>\n </div>\n <div class=\"basic-sticky__content-before\">\n <p>Scroll down to see the header stick to the top...</p>\n <p>The header below will stick to the top when you scroll past it.</p>\n <p>Notice how its appearance changes when it becomes \"pinned\".</p>\n </div>\n \n \n <div class=\"basic-sticky__content-middle\">\n <p>Keep scrolling to see the sticky behavior...</p>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>\n <p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>\n <p>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>\n <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium.</p>\n </div>\n </div>\n </div> \n\n <div class=\"basic-sticky__section\">\n <h3>Bottom Sticky (Last Element in Container)</h3>\n <div class=\"basic-sticky__container basic-sticky__container--bottom\">\n <div class=\"basic-sticky__spacer\">\n <p>Scroll down to see the footer stick to the bottom...</p>\n <p>The footer is positioned naturally in the content below.</p>\n <p>Continue scrolling to see it enter the viewport and then stick!</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>Keep scrolling down...</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>Almost there...</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>You should see the footer appear below this text:</p>\n </div>\n \n \n <div class=\"basic-sticky__spacer-after\">\n <p>This content appears after the footer.</p>\n <p>When you scroll past the footer, it should stick to the bottom.</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>The footer should remain pinned as you scroll through this content.</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>Keep scrolling to test the sticky behavior...</p>\n <br><br><br><br><br><br><br><br><br><br>\n <p>End of content.</p>\n </div>\n <div \n daffStickyTracker sticky=\"bottom\"\n class=\"basic-sticky__footer\">\n <span class=\"basic-sticky__text\">Footer - Sticks to Bottom</span>\n <span class=\"basic-sticky__indicator\">Pinned!</span>\n </div>\n </div>\n </div> \n\n</div> ","import { BasicStickyComponent } from './basic-sticky/basic-sticky.component';\n\nexport const STICKY_EXAMPLES = [\n BasicStickyComponent,\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAiBa,oBAAoB,CAAA;iIAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;qHAApB,oBAAoB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECjBjC,q7LA6HO,EAAA,MAAA,EAAA,CAAA,s6EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,ED/GH,0BAA0B,EAAA,QAAA,EAAA,qBAAA,EAAA,MAAA,EAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGjB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAVhC,SAAS;AAEE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,cAAc,EAAA,eAAA,EAGP,uBAAuB,CAAC,MAAM,EAAA,OAAA,EACtC;wBACP,0BAA0B;AAC3B,qBAAA,EAAA,QAAA,EAAA,q7LAAA,EAAA,MAAA,EAAA,CAAA,s6EAAA,CAAA,EAAA;;;AEbI,MAAM,eAAe,GAAG;IAC7B,oBAAoB;;;ACHtB;;AAEG;;;;"}
|