@danske/sapphire-angular 2.8.0 → 3.0.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/esm2020/lib/avatar/public_api.mjs +3 -0
- package/esm2020/lib/avatar/src/avatar.component.mjs +53 -0
- package/esm2020/lib/avatar/src/avatar.module.mjs +16 -0
- package/esm2020/lib/badge/src/badge.component.mjs +11 -7
- package/esm2020/lib/button/src/button-group.component.mjs +3 -3
- package/esm2020/lib/button/src/button-icon.directive.mjs +2 -1
- package/esm2020/lib/button/src/button.component.mjs +19 -6
- package/esm2020/lib/button/src/icon-button.component.mjs +21 -8
- package/esm2020/lib/button/src/toggle-button-required-validator.mjs +2 -1
- package/esm2020/lib/button/src/toggle-button.component.mjs +19 -6
- package/esm2020/lib/checkbox/src/checkbox-group.component.mjs +3 -3
- package/esm2020/lib/checkbox/src/checkbox-required-validator.mjs +2 -1
- package/esm2020/lib/checkbox/src/checkbox.component.mjs +3 -3
- package/esm2020/lib/core.module.mjs +22 -1
- package/esm2020/lib/feedback-message/public_api.mjs +7 -0
- package/esm2020/lib/feedback-message/src/feedback-message.component.mjs +104 -0
- package/esm2020/lib/feedback-message/src/feedback-message.module.mjs +40 -0
- package/esm2020/lib/field/src/field-note.directive.mjs +18 -2
- package/esm2020/lib/field/src/field.component.mjs +33 -15
- package/esm2020/lib/field/src/field.module.mjs +7 -3
- package/esm2020/lib/help-button/src/help-button.component.mjs +15 -12
- package/esm2020/lib/icon/public_api.mjs +2 -1
- package/esm2020/lib/icon/src/icon-size-provider.mjs +1 -1
- package/esm2020/lib/icon/src/icon.component.mjs +30 -18
- package/esm2020/lib/icon/src/icon.module.mjs +4 -2
- package/esm2020/lib/icon/src/iconRegistry.service.mjs +37 -0
- package/esm2020/lib/icon/src/svgSanitizer.mjs +690 -0
- package/esm2020/lib/label/src/label.component.mjs +3 -3
- package/esm2020/lib/link/src/link.component.mjs +3 -8
- package/esm2020/lib/list/src/list.component.mjs +2 -2
- package/esm2020/lib/listbox/src/listbox-item.component.mjs +15 -15
- package/esm2020/lib/listbox/src/listbox.component.mjs +7 -10
- package/esm2020/lib/listbox/src/option-icon.directive.mjs +2 -1
- package/esm2020/lib/listbox/src/option-primary-text.directive.mjs +2 -1
- package/esm2020/lib/listbox/src/option-secondary-text.directive.mjs +2 -1
- package/esm2020/lib/listbox/src/option.component.mjs +2 -1
- package/esm2020/lib/listbox/src/section.directive.mjs +2 -1
- package/esm2020/lib/menu/src/menu-icon.component.mjs +2 -1
- package/esm2020/lib/menu/src/menu-item.component.mjs +4 -4
- package/esm2020/lib/menu/src/menu-primary-text.component.mjs +2 -1
- package/esm2020/lib/menu/src/menu-secondary-text.component.mjs +2 -1
- package/esm2020/lib/menu/src/menu-section.component.mjs +2 -2
- package/esm2020/lib/menu/src/menu-trigger.directive.mjs +2 -1
- package/esm2020/lib/menu/src/menu.component.mjs +8 -13
- package/esm2020/lib/modal/public_api.mjs +2 -1
- package/esm2020/lib/modal/src/dialog/alert-dialog.component.mjs +111 -0
- package/esm2020/lib/modal/src/dialog/confirmation-dialog.component.mjs +2 -2
- package/esm2020/lib/modal/src/dialog/danger-dialog.component.mjs +2 -2
- package/esm2020/lib/modal/src/dialog/dialog-trigger.directive.mjs +2 -1
- package/esm2020/lib/modal/src/dialog/dialog.component.mjs +3 -3
- package/esm2020/lib/modal/src/layout/modal-back-button.directive.mjs +2 -1
- package/esm2020/lib/modal/src/layout/modal-body.component.mjs +2 -1
- package/esm2020/lib/modal/src/layout/modal-close-button.directive.mjs +2 -1
- package/esm2020/lib/modal/src/layout/modal-footer.component.mjs +2 -2
- package/esm2020/lib/modal/src/layout/modal-header.component.mjs +15 -12
- package/esm2020/lib/modal/src/layout/modal-layout.component.mjs +3 -3
- package/esm2020/lib/modal/src/modal-base.component.mjs +2 -1
- package/esm2020/lib/modal/src/modal.module.mjs +27 -2
- package/esm2020/lib/modal/src/panel/panel-trigger.directive.mjs +2 -1
- package/esm2020/lib/modal/src/panel/panel.component.mjs +3 -3
- package/esm2020/lib/notification-badge/src/notification-badge.component.mjs +3 -3
- package/esm2020/lib/pagination/src/page-selection-row.component.mjs +3 -3
- package/esm2020/lib/pagination/src/pagination.component.mjs +16 -13
- package/esm2020/lib/popover/src/popover-close-button.directive.mjs +2 -1
- package/esm2020/lib/popover/src/popover-title.directive.mjs +2 -1
- package/esm2020/lib/popover/src/popover-trigger.directive.mjs +3 -2
- package/esm2020/lib/popover/src/popover.component.mjs +3 -3
- package/esm2020/lib/radio/src/radio-group.component.mjs +3 -3
- package/esm2020/lib/radio/src/radio.component.mjs +3 -3
- package/esm2020/lib/radio/src/segmented/segmented-radio-group.component.mjs +3 -3
- package/esm2020/lib/radio/src/segmented/segmented-radio.component.mjs +2 -2
- package/esm2020/lib/segmented-tabs/src/segmented-tab-content.directive.mjs +2 -1
- package/esm2020/lib/segmented-tabs/src/segmented-tab-label.directive.mjs +2 -1
- package/esm2020/lib/segmented-tabs/src/segmented-tab.component.mjs +3 -3
- package/esm2020/lib/segmented-tabs/src/segmented-tabs.component.mjs +3 -3
- package/esm2020/lib/select/public_api.mjs +2 -2
- package/esm2020/lib/select/src/common/hidden-select.component.mjs +2 -2
- package/esm2020/lib/select/src/select/searchable-select.directive.mjs +2 -1
- package/esm2020/lib/select/src/select/select.component.mjs +25 -20
- package/esm2020/lib/select/src/select/select.module.mjs +10 -10
- package/esm2020/lib/select/src/select/selection-text.directive.mjs +2 -1
- package/esm2020/lib/select/src/select-button/select-button.component.mjs +136 -0
- package/esm2020/lib/skeleton/src/skeleton-block.directive.mjs +2 -1
- package/esm2020/lib/skeleton/src/skeleton-circle.directive.mjs +2 -1
- package/esm2020/lib/skeleton/src/skeleton-text.directive.mjs +2 -1
- package/esm2020/lib/skeleton/src/skeleton.component.mjs +3 -3
- package/esm2020/lib/spinner/public_api.mjs +7 -0
- package/esm2020/lib/spinner/src/spinner.component.mjs +26 -0
- package/esm2020/lib/spinner/src/spinner.module.mjs +18 -0
- package/esm2020/lib/surface/src/surface.component.mjs +5 -3
- package/esm2020/lib/switch/src/switch-required-validator.mjs +2 -1
- package/esm2020/lib/switch/src/switch.component.mjs +3 -3
- package/esm2020/lib/table/src/table-body.directive.mjs +2 -1
- package/esm2020/lib/table/src/table-cell.directive.mjs +2 -1
- package/esm2020/lib/table/src/table-footer.directive.mjs +2 -1
- package/esm2020/lib/table/src/table-head-cell.component.mjs +16 -13
- package/esm2020/lib/table/src/table-head.directive.mjs +2 -1
- package/esm2020/lib/table/src/table-row.directive.mjs +2 -1
- package/esm2020/lib/table/src/table-sort-header.directive.mjs +2 -1
- package/esm2020/lib/table/src/table-sort.directive.mjs +2 -1
- package/esm2020/lib/table/src/table.component.mjs +3 -3
- package/esm2020/lib/table/src/table.directive.mjs +2 -1
- package/esm2020/lib/text-field/src/text-field-input.directive.mjs +2 -1
- package/esm2020/lib/text-field/src/text-field-postfix.directive.mjs +2 -1
- package/esm2020/lib/text-field/src/text-field-prefix.directive.mjs +2 -1
- package/esm2020/lib/text-field/src/text-field-textarea-autosize.directive.mjs +2 -1
- package/esm2020/lib/text-field/src/text-field.component.mjs +3 -3
- package/esm2020/lib/theme/src/themes.mjs +4 -4
- package/esm2020/lib/tooltip/src/tooltip.component.mjs +3 -3
- package/esm2020/lib/typography/public_api.mjs +4 -2
- package/esm2020/lib/typography/src/body.component.mjs +43 -0
- package/esm2020/lib/typography/src/caption.component.mjs +37 -0
- package/esm2020/lib/typography/src/heading.component.mjs +23 -13
- package/esm2020/lib/typography/src/subheading.component.mjs +37 -0
- package/esm2020/lib/typography/src/typography.module.mjs +23 -5
- package/esm2020/public-api.mjs +4 -1
- package/fesm2015/danske-sapphire-angular.mjs +1566 -235
- package/fesm2015/danske-sapphire-angular.mjs.map +1 -1
- package/fesm2020/danske-sapphire-angular.mjs +1566 -234
- package/fesm2020/danske-sapphire-angular.mjs.map +1 -1
- package/lib/avatar/public_api.d.ts +2 -0
- package/lib/avatar/src/avatar.component.d.ts +22 -0
- package/lib/avatar/src/avatar.module.d.ts +7 -0
- package/lib/badge/src/badge.component.d.ts +3 -3
- package/lib/button/src/button.component.d.ts +1 -1
- package/lib/button/src/icon-button.component.d.ts +2 -3
- package/lib/core.module.d.ts +23 -20
- package/lib/feedback-message/public_api.d.ts +2 -0
- package/lib/feedback-message/src/feedback-message.component.d.ts +33 -0
- package/lib/feedback-message/src/feedback-message.module.d.ts +10 -0
- package/lib/field/src/field-note.directive.d.ts +3 -1
- package/lib/field/src/field.component.d.ts +2 -1
- package/lib/field/src/field.module.d.ts +2 -1
- package/lib/help-button/src/help-button.component.d.ts +2 -0
- package/lib/icon/public_api.d.ts +1 -0
- package/lib/icon/src/icon-size-provider.d.ts +1 -1
- package/lib/icon/src/icon.component.d.ts +16 -9
- package/lib/icon/src/iconRegistry.service.d.ts +14 -0
- package/lib/icon/src/svgSanitizer.d.ts +1 -0
- package/lib/link/src/link.component.d.ts +1 -2
- package/lib/listbox/src/listbox-item.component.d.ts +3 -3
- package/lib/listbox/src/listbox.component.d.ts +2 -4
- package/lib/menu/src/menu-item.component.d.ts +1 -1
- package/lib/menu/src/menu.component.d.ts +1 -2
- package/lib/modal/public_api.d.ts +1 -0
- package/lib/modal/src/dialog/alert-dialog.component.d.ts +42 -0
- package/lib/modal/src/layout/modal-header.component.d.ts +2 -0
- package/lib/modal/src/modal.module.d.ts +13 -11
- package/lib/pagination/src/pagination.component.d.ts +2 -0
- package/lib/select/public_api.d.ts +1 -1
- package/lib/select/src/select/select.component.d.ts +3 -2
- package/lib/select/src/select/select.module.d.ts +2 -2
- package/lib/select/src/{basic-select/basic-select.component.d.ts → select-button/select-button.component.d.ts} +12 -11
- package/lib/spinner/public_api.d.ts +2 -0
- package/lib/spinner/src/spinner.component.d.ts +14 -0
- package/lib/spinner/src/spinner.module.d.ts +8 -0
- package/lib/surface/src/surface.component.d.ts +1 -1
- package/lib/table/src/table-head-cell.component.d.ts +3 -2
- package/lib/typography/public_api.d.ts +3 -1
- package/lib/typography/src/body.component.d.ts +16 -0
- package/lib/typography/src/caption.component.d.ts +14 -0
- package/lib/typography/src/heading.component.d.ts +5 -3
- package/lib/typography/src/subheading.component.d.ts +14 -0
- package/lib/typography/src/typography.module.d.ts +5 -3
- package/package.json +9 -8
- package/public-api.d.ts +3 -0
- package/esm2020/lib/select/src/basic-select/basic-select.component.mjs +0 -132
- package/esm2020/lib/typography/src/paragraph.component.mjs +0 -24
- package/lib/typography/src/paragraph.component.d.ts +0 -8
|
@@ -22,7 +22,7 @@ TooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versi
|
|
|
22
22
|
</div>
|
|
23
23
|
</div>
|
|
24
24
|
</div>
|
|
25
|
-
`, isInline: true, styles: ["@keyframes fade-in{0%{opacity:0}to{opacity:1}}.sapphire-tooltip{display:inline-block;box-shadow:var(--sapphire-semantic-shadow-popover);max-width:var(--sapphire-global-size-generic-750);border-radius:var(--sapphire-semantic-size-radius-sm);overflow-wrap:break-word;overflow:hidden;outline:none;animation:fade-in var(--sapphire-semantic-time-fade-quick)
|
|
25
|
+
`, isInline: true, styles: ["@keyframes fade-in{0%{opacity:0}to{opacity:1}}.sapphire-tooltip{display:inline-block;box-shadow:var(--sapphire-semantic-shadow-popover);max-width:var(--sapphire-global-size-generic-750);border-radius:var(--sapphire-semantic-size-radius-sm);overflow-wrap:break-word;overflow:hidden;outline:none;animation:fade-in var(--sapphire-semantic-time-fade-quick) var(--sapphire-semantic-transitions-fade);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.sapphire-tooltip__content{background:var(--sapphire-semantic-color-background-surface);color:var(--sapphire-semantic-color-foreground-primary);font-family:var(--sapphire-semantic-font-name-default);font-weight:var(--sapphire-semantic-font-weight-default-regular);font-size:var(--sapphire-semantic-size-font-body-sm);line-height:var(--sapphire-semantic-size-line-height-md);padding:var(--sapphire-semantic-size-spacing-3xs) var(--sapphire-semantic-size-spacing-xs)}\n"] });
|
|
26
26
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: TooltipComponent, decorators: [{
|
|
27
27
|
type: Component,
|
|
28
28
|
args: [{ selector: 'sp-tooltip', template: `
|
|
@@ -33,7 +33,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImpor
|
|
|
33
33
|
</div>
|
|
34
34
|
</div>
|
|
35
35
|
</div>
|
|
36
|
-
`, styles: ["@keyframes fade-in{0%{opacity:0}to{opacity:1}}.sapphire-tooltip{display:inline-block;box-shadow:var(--sapphire-semantic-shadow-popover);max-width:var(--sapphire-global-size-generic-750);border-radius:var(--sapphire-semantic-size-radius-sm);overflow-wrap:break-word;overflow:hidden;outline:none;animation:fade-in var(--sapphire-semantic-time-fade-quick)
|
|
36
|
+
`, standalone: false, styles: ["@keyframes fade-in{0%{opacity:0}to{opacity:1}}.sapphire-tooltip{display:inline-block;box-shadow:var(--sapphire-semantic-shadow-popover);max-width:var(--sapphire-global-size-generic-750);border-radius:var(--sapphire-semantic-size-radius-sm);overflow-wrap:break-word;overflow:hidden;outline:none;animation:fade-in var(--sapphire-semantic-time-fade-quick) var(--sapphire-semantic-transitions-fade);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.sapphire-tooltip__content{background:var(--sapphire-semantic-color-background-surface);color:var(--sapphire-semantic-color-foreground-primary);font-family:var(--sapphire-semantic-font-name-default);font-weight:var(--sapphire-semantic-font-weight-default-regular);font-size:var(--sapphire-semantic-size-font-body-sm);line-height:var(--sapphire-semantic-size-line-height-md);padding:var(--sapphire-semantic-size-spacing-3xs) var(--sapphire-semantic-size-spacing-xs)}\n"] }]
|
|
37
37
|
}], ctorParameters: function () { return [{ type: i1.TooltipDirective, decorators: [{
|
|
38
38
|
type: Inject,
|
|
39
39
|
args: [forwardRef(() => TooltipDirective)]
|
|
@@ -44,4 +44,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImpor
|
|
|
44
44
|
type: HostListener,
|
|
45
45
|
args: ['mouseleave']
|
|
46
46
|
}] } });
|
|
47
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
47
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHRpcC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbGliL3Rvb2x0aXAvc3JjL3Rvb2x0aXAuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsVUFBVSxFQUFFLFlBQVksRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDNUUsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0scUJBQXFCLENBQUM7OztBQWdCdkQsTUFBTSxPQUFPLGdCQUFnQjtJQUUzQixZQUFZO1FBQ1YsSUFBSSxDQUFDLGdCQUFnQixDQUFDLE1BQU0sRUFBRSxDQUFDO0lBQ2pDLENBQUM7SUFHRCxZQUFZO1FBQ1YsSUFBSSxDQUFDLGdCQUFnQixDQUFDLElBQUksRUFBRSxDQUFDO0lBQy9CLENBQUM7SUFFRCxZQUVTLGdCQUFrQztRQUFsQyxxQkFBZ0IsR0FBaEIsZ0JBQWdCLENBQWtCO0lBQ3hDLENBQUM7OzZHQWRPLGdCQUFnQixrQkFZakIsVUFBVSxDQUFDLEdBQUcsRUFBRSxDQUFDLGdCQUFnQixDQUFDO2lHQVpqQyxnQkFBZ0IsMklBWmpCOzs7Ozs7OztHQVFUOzJGQUlVLGdCQUFnQjtrQkFkNUIsU0FBUzsrQkFDRSxZQUFZLFlBQ1o7Ozs7Ozs7O0dBUVQsY0FFVyxLQUFLOzswQkFjZCxNQUFNOzJCQUFDLFVBQVUsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxnQkFBZ0IsQ0FBQzs0Q0FWNUMsWUFBWTtz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dGlwRGlyZWN0aXZlLmhpZGUoKTtcbiAgfVxuXG4gIGNvbnN0cnVjdG9yKFxuICAgIEBJbmplY3QoZm9yd2FyZFJlZigoKSA9PiBUb29sdGlwRGlyZWN0aXZlKSlcbiAgICBwdWJsaWMgdG9vbHRpcERpcmVjdGl2ZTogVG9vbHRpcERpcmVjdGl2ZVxuICApIHt9XG59XG4iXX0=
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
// entry points, which will be addressed in this task:
|
|
4
4
|
// WCCJ-838
|
|
5
5
|
export * from './src/heading.component';
|
|
6
|
-
export * from './src/
|
|
6
|
+
export * from './src/subheading.component';
|
|
7
|
+
export * from './src/caption.component';
|
|
8
|
+
export * from './src/body.component';
|
|
7
9
|
export * from './src/typography.module';
|
|
8
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9saWIvdHlwb2dyYXBoeS9wdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDRFQUE0RTtBQUM1RSw2RUFBNkU7QUFDN0Usc0RBQXNEO0FBQ3RELFdBQVc7QUFDWCxjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsNEJBQTRCLENBQUM7QUFDM0MsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLHNCQUFzQixDQUFDO0FBQ3JDLGNBQWMseUJBQXlCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBXZSBoYXZlIHNlcGFyYXRlIHB1YmxpY19hcGkudHMgZmlsZSBmb3IgZWFjaCBhbmd1bGFyIG1vZHVsZSwgdG8gaGF2ZSB0aGVtXG4vLyBleHBvc2VkIGFzIHNlcGFyYXRlIGVudHJ5IHBvaW50cy4gVGhlIGJ1aWxkIGlzIHN0aWxsIG5vdCBlbWl0dGluZyBzZXBhcmF0ZVxuLy8gZW50cnkgcG9pbnRzLCB3aGljaCB3aWxsIGJlIGFkZHJlc3NlZCBpbiB0aGlzIHRhc2s6XG4vLyBXQ0NKLTgzOFxuZXhwb3J0ICogZnJvbSAnLi9zcmMvaGVhZGluZy5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9zcmMvc3ViaGVhZGluZy5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9zcmMvY2FwdGlvbi5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9zcmMvYm9keS5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9zcmMvdHlwb2dyYXBoeS5tb2R1bGUnO1xuIl19
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Component, HostBinding, Input } from '@angular/core';
|
|
2
|
+
import { ThemeCheckDirective } from '../../theme/src/theme-check.directive';
|
|
3
|
+
import { UseComponentStylesOnHost } from '../../common/sapphire-view-encapsulation';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "../../theme/src/theme-check.directive";
|
|
6
|
+
import * as i2 from "../../common/sapphire-view-encapsulation";
|
|
7
|
+
export class BodyComponent {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.size = 'md';
|
|
10
|
+
/**
|
|
11
|
+
* The semantic color of the text
|
|
12
|
+
* @default 'primary'
|
|
13
|
+
*/
|
|
14
|
+
this.color = 'primary';
|
|
15
|
+
this.bold = false;
|
|
16
|
+
}
|
|
17
|
+
get className() {
|
|
18
|
+
return this.color !== 'primary' ? `sapphire-text--${this.color}` : '';
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
BodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: BodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
22
|
+
BodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: BodyComponent, selector: "[sp-body]", inputs: { size: "size", color: "color", bold: "bold" }, host: { properties: { "class.sapphire-text": "true", "class.sapphire-text--body-xs": "size === \"xs\"", "class.sapphire-text--body-sm": "size === \"sm\"", "class.sapphire-text--body-md": "size === \"md\"", "class.sapphire-text--body-lg": "size === \"lg\"", "class.sapphire-text--strong": "bold", "class": "this.className" } }, hostDirectives: [{ directive: i1.ThemeCheckDirective }, { directive: i2.UseComponentStylesOnHost }], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [".sapphire-text{font-family:var(--sapphire-semantic-font-name-default);color:var(--sapphire-semantic-color-foreground-primary);font-weight:var(--sapphire-semantic-font-weight-default-regular);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.sapphire-text--strong{font-weight:var(--sapphire-semantic-font-weight-default-bold)}.sapphire-text--underlined{text-decoration:underline}.sapphire-text--secondary{color:var(--sapphire-semantic-color-foreground-secondary)}.sapphire-text--informative{color:var(--sapphire-semantic-color-foreground-accent)}.sapphire-text--positive{color:var(--sapphire-semantic-color-foreground-positive)}.sapphire-text--warning{color:var(--sapphire-semantic-color-foreground-warning)}.sapphire-text--negative{color:var(--sapphire-semantic-color-foreground-negative)}.sapphire-text--heading-2xl,.sapphire-text--heading-xl,.sapphire-text--heading-lg,.sapphire-text--heading-md,.sapphire-text--heading-sm,.sapphire-text--heading-xs{margin-top:0;margin-bottom:0;line-height:var(--sapphire-global-size-line-height-sm);letter-spacing:-1%}.sapphire-text--heading-2xl{font-weight:var(--sapphire-semantic-font-weight-default-regular);font-size:var(--sapphire-semantic-size-font-heading-2xl)}.sapphire-text--heading-xl{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-xl)}.sapphire-text--heading-lg{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-lg)}.sapphire-text--heading-md{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-md)}.sapphire-text--heading-sm{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-sm)}.sapphire-text--heading-xs{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-xs)}.sapphire-text--subheading-md,.sapphire-text--subheading-sm{line-height:var(--sapphire-global-size-line-height-sm)}.sapphire-text--subheading-md{font-size:var(--sapphire-semantic-size-font-body-sm)}.sapphire-text--subheading-sm{font-size:var(--sapphire-semantic-size-font-body-xs)}.sapphire-text--body-lg,.sapphire-text--body-md,.sapphire-text--body-sm,.sapphire-text--body-xs{line-height:var(--sapphire-global-size-line-height-md);margin-top:0;margin-bottom:0}.sapphire-text--body-lg{font-size:var(--sapphire-semantic-size-font-body-lg)}.sapphire-text--body-md{font-size:var(--sapphire-semantic-size-font-body-md)}.sapphire-text--body-sm{font-size:var(--sapphire-semantic-size-font-body-sm)}.sapphire-text--body-xs{font-size:var(--sapphire-semantic-size-font-body-xs)}.sapphire-text--caption-md,.sapphire-text--caption-sm{font-weight:var(--sapphire-semantic-font-weight-default-bold);line-height:var(--sapphire-global-size-line-height-sm)}.sapphire-text--caption-md{font-size:var(--sapphire-semantic-size-font-body-sm)}.sapphire-text--caption-sm{font-size:var(--sapphire-semantic-size-font-body-xs)}\n"] });
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: BodyComponent, decorators: [{
|
|
24
|
+
type: Component,
|
|
25
|
+
args: [{ selector: '[sp-body]', template: '<ng-content></ng-content>', host: {
|
|
26
|
+
'[class.sapphire-text]': 'true',
|
|
27
|
+
'[class.sapphire-text--body-xs]': 'size === "xs"',
|
|
28
|
+
'[class.sapphire-text--body-sm]': 'size === "sm"',
|
|
29
|
+
'[class.sapphire-text--body-md]': 'size === "md"',
|
|
30
|
+
'[class.sapphire-text--body-lg]': 'size === "lg"',
|
|
31
|
+
'[class.sapphire-text--strong]': 'bold',
|
|
32
|
+
}, hostDirectives: [ThemeCheckDirective, UseComponentStylesOnHost], standalone: false, styles: [".sapphire-text{font-family:var(--sapphire-semantic-font-name-default);color:var(--sapphire-semantic-color-foreground-primary);font-weight:var(--sapphire-semantic-font-weight-default-regular);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.sapphire-text--strong{font-weight:var(--sapphire-semantic-font-weight-default-bold)}.sapphire-text--underlined{text-decoration:underline}.sapphire-text--secondary{color:var(--sapphire-semantic-color-foreground-secondary)}.sapphire-text--informative{color:var(--sapphire-semantic-color-foreground-accent)}.sapphire-text--positive{color:var(--sapphire-semantic-color-foreground-positive)}.sapphire-text--warning{color:var(--sapphire-semantic-color-foreground-warning)}.sapphire-text--negative{color:var(--sapphire-semantic-color-foreground-negative)}.sapphire-text--heading-2xl,.sapphire-text--heading-xl,.sapphire-text--heading-lg,.sapphire-text--heading-md,.sapphire-text--heading-sm,.sapphire-text--heading-xs{margin-top:0;margin-bottom:0;line-height:var(--sapphire-global-size-line-height-sm);letter-spacing:-1%}.sapphire-text--heading-2xl{font-weight:var(--sapphire-semantic-font-weight-default-regular);font-size:var(--sapphire-semantic-size-font-heading-2xl)}.sapphire-text--heading-xl{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-xl)}.sapphire-text--heading-lg{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-lg)}.sapphire-text--heading-md{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-md)}.sapphire-text--heading-sm{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-sm)}.sapphire-text--heading-xs{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-xs)}.sapphire-text--subheading-md,.sapphire-text--subheading-sm{line-height:var(--sapphire-global-size-line-height-sm)}.sapphire-text--subheading-md{font-size:var(--sapphire-semantic-size-font-body-sm)}.sapphire-text--subheading-sm{font-size:var(--sapphire-semantic-size-font-body-xs)}.sapphire-text--body-lg,.sapphire-text--body-md,.sapphire-text--body-sm,.sapphire-text--body-xs{line-height:var(--sapphire-global-size-line-height-md);margin-top:0;margin-bottom:0}.sapphire-text--body-lg{font-size:var(--sapphire-semantic-size-font-body-lg)}.sapphire-text--body-md{font-size:var(--sapphire-semantic-size-font-body-md)}.sapphire-text--body-sm{font-size:var(--sapphire-semantic-size-font-body-sm)}.sapphire-text--body-xs{font-size:var(--sapphire-semantic-size-font-body-xs)}.sapphire-text--caption-md,.sapphire-text--caption-sm{font-weight:var(--sapphire-semantic-font-weight-default-bold);line-height:var(--sapphire-global-size-line-height-sm)}.sapphire-text--caption-md{font-size:var(--sapphire-semantic-size-font-body-sm)}.sapphire-text--caption-sm{font-size:var(--sapphire-semantic-size-font-body-xs)}\n"] }]
|
|
33
|
+
}], propDecorators: { size: [{
|
|
34
|
+
type: Input
|
|
35
|
+
}], color: [{
|
|
36
|
+
type: Input
|
|
37
|
+
}], bold: [{
|
|
38
|
+
type: Input
|
|
39
|
+
}], className: [{
|
|
40
|
+
type: HostBinding,
|
|
41
|
+
args: ['class']
|
|
42
|
+
}] } });
|
|
43
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm9keS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbGliL3R5cG9ncmFwaHkvc3JjL2JvZHkuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsV0FBVyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUM5RCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSx1Q0F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ASW5wdXQoKVxuICBzaXplOiAnbGcnIHwgJ21kJyB8ICdzbScgfCAneHMnID0gJ21kJztcblxuICAvKipcbiAgICogVGhlIHNlbWFudGljIGNvbG9yIG9mIHRoZSB0ZXh0XG4gICAqIEBkZWZhdWx0ICdwcmltYXJ5J1xuICAgKi9cbiAgQElucHV0KClcbiAgY29sb3I/OlxuICAgIHwgJ3ByaW1hcnknXG4gICAgfCAnc2Vjb25kYXJ5J1xuICAgIHwgJ3Bvc2l0aXZlJ1xuICAgIHwgJ25lZ2F0aXZlJ1xuICAgIHwgJ3dhcm5pbmcnXG4gICAgfCAnaW5mb3JtYXRpdmUnID0gJ3ByaW1hcnknO1xuXG4gIEBJbnB1dCgpXG4gIGJvbGQ/OiBCb29sZWFuSW5wdXQgPSBmYWxzZTtcblxuICBASG9zdEJpbmRpbmcoJ2NsYXNzJylcbiAgcHJpdmF0ZSBnZXQgY2xhc3NOYW1lKCkge1xuICAgIHJldHVybiB0aGlzLmNvbG9yICE9PSAncHJpbWFyeScgPyBgc2FwcGhpcmUtdGV4dC0tJHt0aGlzLmNvbG9yfWAgOiAnJztcbiAgfVxufVxuIl19
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Component, HostBinding, Input } from '@angular/core';
|
|
2
|
+
import { ThemeCheckDirective } from '../../theme/src/theme-check.directive';
|
|
3
|
+
import { UseComponentStylesOnHost } from '../../common/sapphire-view-encapsulation';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "../../theme/src/theme-check.directive";
|
|
6
|
+
import * as i2 from "../../common/sapphire-view-encapsulation";
|
|
7
|
+
export class CaptionComponent {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.size = 'md';
|
|
10
|
+
/**
|
|
11
|
+
* The semantic color of the text
|
|
12
|
+
* @default 'primary'
|
|
13
|
+
*/
|
|
14
|
+
this.color = 'primary';
|
|
15
|
+
}
|
|
16
|
+
get className() {
|
|
17
|
+
return this.color !== 'primary' ? `sapphire-text--${this.color}` : '';
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
CaptionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: CaptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
21
|
+
CaptionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: CaptionComponent, selector: "[sp-caption]", inputs: { size: "size", color: "color" }, host: { properties: { "class.sapphire-text": "true", "class.sapphire-text--caption-sm": "size === \"sm\"", "class.sapphire-text--caption-md": "size === \"md\"", "class": "this.className" } }, hostDirectives: [{ directive: i1.ThemeCheckDirective }, { directive: i2.UseComponentStylesOnHost }], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [".sapphire-text{font-family:var(--sapphire-semantic-font-name-default);color:var(--sapphire-semantic-color-foreground-primary);font-weight:var(--sapphire-semantic-font-weight-default-regular);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.sapphire-text--strong{font-weight:var(--sapphire-semantic-font-weight-default-bold)}.sapphire-text--underlined{text-decoration:underline}.sapphire-text--secondary{color:var(--sapphire-semantic-color-foreground-secondary)}.sapphire-text--informative{color:var(--sapphire-semantic-color-foreground-accent)}.sapphire-text--positive{color:var(--sapphire-semantic-color-foreground-positive)}.sapphire-text--warning{color:var(--sapphire-semantic-color-foreground-warning)}.sapphire-text--negative{color:var(--sapphire-semantic-color-foreground-negative)}.sapphire-text--heading-2xl,.sapphire-text--heading-xl,.sapphire-text--heading-lg,.sapphire-text--heading-md,.sapphire-text--heading-sm,.sapphire-text--heading-xs{margin-top:0;margin-bottom:0;line-height:var(--sapphire-global-size-line-height-sm);letter-spacing:-1%}.sapphire-text--heading-2xl{font-weight:var(--sapphire-semantic-font-weight-default-regular);font-size:var(--sapphire-semantic-size-font-heading-2xl)}.sapphire-text--heading-xl{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-xl)}.sapphire-text--heading-lg{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-lg)}.sapphire-text--heading-md{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-md)}.sapphire-text--heading-sm{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-sm)}.sapphire-text--heading-xs{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-xs)}.sapphire-text--subheading-md,.sapphire-text--subheading-sm{line-height:var(--sapphire-global-size-line-height-sm)}.sapphire-text--subheading-md{font-size:var(--sapphire-semantic-size-font-body-sm)}.sapphire-text--subheading-sm{font-size:var(--sapphire-semantic-size-font-body-xs)}.sapphire-text--body-lg,.sapphire-text--body-md,.sapphire-text--body-sm,.sapphire-text--body-xs{line-height:var(--sapphire-global-size-line-height-md);margin-top:0;margin-bottom:0}.sapphire-text--body-lg{font-size:var(--sapphire-semantic-size-font-body-lg)}.sapphire-text--body-md{font-size:var(--sapphire-semantic-size-font-body-md)}.sapphire-text--body-sm{font-size:var(--sapphire-semantic-size-font-body-sm)}.sapphire-text--body-xs{font-size:var(--sapphire-semantic-size-font-body-xs)}.sapphire-text--caption-md,.sapphire-text--caption-sm{font-weight:var(--sapphire-semantic-font-weight-default-bold);line-height:var(--sapphire-global-size-line-height-sm)}.sapphire-text--caption-md{font-size:var(--sapphire-semantic-size-font-body-sm)}.sapphire-text--caption-sm{font-size:var(--sapphire-semantic-size-font-body-xs)}\n"] });
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: CaptionComponent, decorators: [{
|
|
23
|
+
type: Component,
|
|
24
|
+
args: [{ selector: '[sp-caption]', template: '<ng-content></ng-content>', host: {
|
|
25
|
+
'[class.sapphire-text]': 'true',
|
|
26
|
+
'[class.sapphire-text--caption-sm]': 'size === "sm"',
|
|
27
|
+
'[class.sapphire-text--caption-md]': 'size === "md"',
|
|
28
|
+
}, hostDirectives: [ThemeCheckDirective, UseComponentStylesOnHost], styles: [".sapphire-text{font-family:var(--sapphire-semantic-font-name-default);color:var(--sapphire-semantic-color-foreground-primary);font-weight:var(--sapphire-semantic-font-weight-default-regular);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.sapphire-text--strong{font-weight:var(--sapphire-semantic-font-weight-default-bold)}.sapphire-text--underlined{text-decoration:underline}.sapphire-text--secondary{color:var(--sapphire-semantic-color-foreground-secondary)}.sapphire-text--informative{color:var(--sapphire-semantic-color-foreground-accent)}.sapphire-text--positive{color:var(--sapphire-semantic-color-foreground-positive)}.sapphire-text--warning{color:var(--sapphire-semantic-color-foreground-warning)}.sapphire-text--negative{color:var(--sapphire-semantic-color-foreground-negative)}.sapphire-text--heading-2xl,.sapphire-text--heading-xl,.sapphire-text--heading-lg,.sapphire-text--heading-md,.sapphire-text--heading-sm,.sapphire-text--heading-xs{margin-top:0;margin-bottom:0;line-height:var(--sapphire-global-size-line-height-sm);letter-spacing:-1%}.sapphire-text--heading-2xl{font-weight:var(--sapphire-semantic-font-weight-default-regular);font-size:var(--sapphire-semantic-size-font-heading-2xl)}.sapphire-text--heading-xl{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-xl)}.sapphire-text--heading-lg{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-lg)}.sapphire-text--heading-md{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-md)}.sapphire-text--heading-sm{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-sm)}.sapphire-text--heading-xs{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-xs)}.sapphire-text--subheading-md,.sapphire-text--subheading-sm{line-height:var(--sapphire-global-size-line-height-sm)}.sapphire-text--subheading-md{font-size:var(--sapphire-semantic-size-font-body-sm)}.sapphire-text--subheading-sm{font-size:var(--sapphire-semantic-size-font-body-xs)}.sapphire-text--body-lg,.sapphire-text--body-md,.sapphire-text--body-sm,.sapphire-text--body-xs{line-height:var(--sapphire-global-size-line-height-md);margin-top:0;margin-bottom:0}.sapphire-text--body-lg{font-size:var(--sapphire-semantic-size-font-body-lg)}.sapphire-text--body-md{font-size:var(--sapphire-semantic-size-font-body-md)}.sapphire-text--body-sm{font-size:var(--sapphire-semantic-size-font-body-sm)}.sapphire-text--body-xs{font-size:var(--sapphire-semantic-size-font-body-xs)}.sapphire-text--caption-md,.sapphire-text--caption-sm{font-weight:var(--sapphire-semantic-font-weight-default-bold);line-height:var(--sapphire-global-size-line-height-sm)}.sapphire-text--caption-md{font-size:var(--sapphire-semantic-size-font-body-sm)}.sapphire-text--caption-sm{font-size:var(--sapphire-semantic-size-font-body-xs)}\n"] }]
|
|
29
|
+
}], propDecorators: { size: [{
|
|
30
|
+
type: Input
|
|
31
|
+
}], color: [{
|
|
32
|
+
type: Input
|
|
33
|
+
}], className: [{
|
|
34
|
+
type: HostBinding,
|
|
35
|
+
args: ['class']
|
|
36
|
+
}] } });
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FwdGlvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbGliL3R5cG9ncmFwaHkvc3JjL2NhcHRpb24uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsV0FBVyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUM5RCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSx1Q0FBdUMsQ0FBQztBQUM1RSxPQUFPLEVBQUUsd0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3J9YCA6ICcnO1xuICB9XG59XG4iXX0=
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
1
|
+
import { Component, HostBinding, Input } from '@angular/core';
|
|
2
2
|
import { ThemeCheckDirective } from '../../theme/src/theme-check.directive';
|
|
3
3
|
import { UseComponentStylesOnHost } from '../../common/sapphire-view-encapsulation';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -13,6 +13,11 @@ export class HeadingComponent {
|
|
|
13
13
|
}
|
|
14
14
|
constructor(elementRef) {
|
|
15
15
|
this.elementRef = elementRef;
|
|
16
|
+
/**
|
|
17
|
+
* The semantic color of the text
|
|
18
|
+
* @default 'primary'
|
|
19
|
+
*/
|
|
20
|
+
this.color = 'primary';
|
|
16
21
|
}
|
|
17
22
|
getLevelFromElement() {
|
|
18
23
|
const element = this.elementRef.nativeElement;
|
|
@@ -20,25 +25,30 @@ export class HeadingComponent {
|
|
|
20
25
|
? `${parseInt(element.tagName.slice(1))}`
|
|
21
26
|
: '1';
|
|
22
27
|
}
|
|
28
|
+
get className() {
|
|
29
|
+
return this.color !== 'primary' ? `sapphire-text--${this.color}` : '';
|
|
30
|
+
}
|
|
23
31
|
}
|
|
24
32
|
HeadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: HeadingComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
25
|
-
HeadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: HeadingComponent, selector: "h1[sp-heading],h2[sp-heading],h3[sp-heading],h4[sp-heading],h5[sp-heading],h6[sp-heading]", inputs: { level: ["sp-heading", "level"],
|
|
33
|
+
HeadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: HeadingComponent, selector: "h1[sp-heading],h2[sp-heading],h3[sp-heading],h4[sp-heading],h5[sp-heading],h6[sp-heading]", inputs: { level: ["sp-heading", "level"], color: "color" }, host: { properties: { "class.sapphire-text": "true", "class.sapphire-text--heading-2xl": "level === \"1\"", "class.sapphire-text--heading-xl": "level === \"2\"", "class.sapphire-text--heading-lg": "level === \"3\"", "class.sapphire-text--heading-md": "level === \"4\"", "class.sapphire-text--heading-sm": "level === \"5\"", "class.sapphire-text--heading-xs": "level === \"6\"", "class": "this.className" } }, hostDirectives: [{ directive: i1.ThemeCheckDirective }, { directive: i2.UseComponentStylesOnHost }], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [".sapphire-text{font-family:var(--sapphire-semantic-font-name-default);color:var(--sapphire-semantic-color-foreground-primary);font-weight:var(--sapphire-semantic-font-weight-default-regular);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.sapphire-text--strong{font-weight:var(--sapphire-semantic-font-weight-default-bold)}.sapphire-text--underlined{text-decoration:underline}.sapphire-text--secondary{color:var(--sapphire-semantic-color-foreground-secondary)}.sapphire-text--informative{color:var(--sapphire-semantic-color-foreground-accent)}.sapphire-text--positive{color:var(--sapphire-semantic-color-foreground-positive)}.sapphire-text--warning{color:var(--sapphire-semantic-color-foreground-warning)}.sapphire-text--negative{color:var(--sapphire-semantic-color-foreground-negative)}.sapphire-text--heading-2xl,.sapphire-text--heading-xl,.sapphire-text--heading-lg,.sapphire-text--heading-md,.sapphire-text--heading-sm,.sapphire-text--heading-xs{margin-top:0;margin-bottom:0;line-height:var(--sapphire-global-size-line-height-sm);letter-spacing:-1%}.sapphire-text--heading-2xl{font-weight:var(--sapphire-semantic-font-weight-default-regular);font-size:var(--sapphire-semantic-size-font-heading-2xl)}.sapphire-text--heading-xl{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-xl)}.sapphire-text--heading-lg{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-lg)}.sapphire-text--heading-md{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-md)}.sapphire-text--heading-sm{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-sm)}.sapphire-text--heading-xs{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-xs)}.sapphire-text--subheading-md,.sapphire-text--subheading-sm{line-height:var(--sapphire-global-size-line-height-sm)}.sapphire-text--subheading-md{font-size:var(--sapphire-semantic-size-font-body-sm)}.sapphire-text--subheading-sm{font-size:var(--sapphire-semantic-size-font-body-xs)}.sapphire-text--body-lg,.sapphire-text--body-md,.sapphire-text--body-sm,.sapphire-text--body-xs{line-height:var(--sapphire-global-size-line-height-md);margin-top:0;margin-bottom:0}.sapphire-text--body-lg{font-size:var(--sapphire-semantic-size-font-body-lg)}.sapphire-text--body-md{font-size:var(--sapphire-semantic-size-font-body-md)}.sapphire-text--body-sm{font-size:var(--sapphire-semantic-size-font-body-sm)}.sapphire-text--body-xs{font-size:var(--sapphire-semantic-size-font-body-xs)}.sapphire-text--caption-md,.sapphire-text--caption-sm{font-weight:var(--sapphire-semantic-font-weight-default-bold);line-height:var(--sapphire-global-size-line-height-sm)}.sapphire-text--caption-md{font-size:var(--sapphire-semantic-size-font-body-sm)}.sapphire-text--caption-sm{font-size:var(--sapphire-semantic-size-font-body-xs)}\n"] });
|
|
26
34
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: HeadingComponent, decorators: [{
|
|
27
35
|
type: Component,
|
|
28
36
|
args: [{ selector: 'h1[sp-heading],h2[sp-heading],h3[sp-heading],h4[sp-heading],h5[sp-heading],h6[sp-heading]', template: '<ng-content></ng-content>', host: {
|
|
29
|
-
'[class.sapphire-
|
|
30
|
-
'[class.sapphire-heading
|
|
31
|
-
'[class.sapphire-heading
|
|
32
|
-
'[class.sapphire-heading
|
|
33
|
-
'[class.sapphire-heading
|
|
34
|
-
'[class.sapphire-heading
|
|
35
|
-
'[class.sapphire-heading
|
|
36
|
-
|
|
37
|
-
}, hostDirectives: [ThemeCheckDirective, UseComponentStylesOnHost], styles: [".sapphire-heading{margin-top:0;margin-bottom:0;line-height:var(--sapphire-global-size-line-height-sm);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.sapphire-heading--level1{font-family:var(--sapphire-semantic-font-name-default);font-weight:var(--sapphire-semantic-font-weight-default-semibold);font-size:var(--sapphire-global-size-font-220);color:var(--sapphire-semantic-color-content-default-primary)}.sapphire-heading--level2{font-family:var(--sapphire-semantic-font-name-default);font-weight:var(--sapphire-semantic-font-weight-default-semibold);font-size:var(--sapphire-global-size-font-150);color:var(--sapphire-semantic-color-content-default-primary)}.sapphire-heading--level3{font-family:var(--sapphire-semantic-font-name-default);font-weight:var(--sapphire-semantic-font-weight-default-semibold);font-size:var(--sapphire-global-size-font-130);color:var(--sapphire-semantic-color-content-default-primary)}.sapphire-heading--level4{font-family:var(--sapphire-semantic-font-name-default);font-weight:var(--sapphire-semantic-font-weight-default-semibold);font-size:var(--sapphire-global-size-font-112);color:var(--sapphire-semantic-color-content-default-primary)}.sapphire-heading--level5{font-family:var(--sapphire-semantic-font-name-default);font-weight:var(--sapphire-semantic-font-weight-default-semibold);font-size:var(--sapphire-global-size-font-106);color:var(--sapphire-semantic-color-content-default-primary)}.sapphire-heading--level6{font-family:var(--sapphire-semantic-font-name-default);font-weight:var(--sapphire-semantic-font-weight-default-semibold);font-size:var(--sapphire-global-size-font-100);color:var(--sapphire-semantic-color-content-default-primary)}.sapphire-heading--level1.sapphire-heading--alternative,.sapphire-heading--level2.sapphire-heading--alternative,.sapphire-heading--level3.sapphire-heading--alternative,.sapphire-heading--level4.sapphire-heading--alternative,.sapphire-heading--level5.sapphire-heading--alternative,.sapphire-heading--level6.sapphire-heading--alternative{font-family:var(--sapphire-semantic-font-name-display);font-weight:var(--sapphire-semantic-font-weight-default-regular)}\n"] }]
|
|
37
|
+
'[class.sapphire-text]': 'true',
|
|
38
|
+
'[class.sapphire-text--heading-2xl]': 'level === "1"',
|
|
39
|
+
'[class.sapphire-text--heading-xl]': 'level === "2"',
|
|
40
|
+
'[class.sapphire-text--heading-lg]': 'level === "3"',
|
|
41
|
+
'[class.sapphire-text--heading-md]': 'level === "4"',
|
|
42
|
+
'[class.sapphire-text--heading-sm]': 'level === "5"',
|
|
43
|
+
'[class.sapphire-text--heading-xs]': 'level === "6"',
|
|
44
|
+
}, hostDirectives: [ThemeCheckDirective, UseComponentStylesOnHost], standalone: false, styles: [".sapphire-text{font-family:var(--sapphire-semantic-font-name-default);color:var(--sapphire-semantic-color-foreground-primary);font-weight:var(--sapphire-semantic-font-weight-default-regular);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.sapphire-text--strong{font-weight:var(--sapphire-semantic-font-weight-default-bold)}.sapphire-text--underlined{text-decoration:underline}.sapphire-text--secondary{color:var(--sapphire-semantic-color-foreground-secondary)}.sapphire-text--informative{color:var(--sapphire-semantic-color-foreground-accent)}.sapphire-text--positive{color:var(--sapphire-semantic-color-foreground-positive)}.sapphire-text--warning{color:var(--sapphire-semantic-color-foreground-warning)}.sapphire-text--negative{color:var(--sapphire-semantic-color-foreground-negative)}.sapphire-text--heading-2xl,.sapphire-text--heading-xl,.sapphire-text--heading-lg,.sapphire-text--heading-md,.sapphire-text--heading-sm,.sapphire-text--heading-xs{margin-top:0;margin-bottom:0;line-height:var(--sapphire-global-size-line-height-sm);letter-spacing:-1%}.sapphire-text--heading-2xl{font-weight:var(--sapphire-semantic-font-weight-default-regular);font-size:var(--sapphire-semantic-size-font-heading-2xl)}.sapphire-text--heading-xl{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-xl)}.sapphire-text--heading-lg{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-lg)}.sapphire-text--heading-md{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-md)}.sapphire-text--heading-sm{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-sm)}.sapphire-text--heading-xs{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-xs)}.sapphire-text--subheading-md,.sapphire-text--subheading-sm{line-height:var(--sapphire-global-size-line-height-sm)}.sapphire-text--subheading-md{font-size:var(--sapphire-semantic-size-font-body-sm)}.sapphire-text--subheading-sm{font-size:var(--sapphire-semantic-size-font-body-xs)}.sapphire-text--body-lg,.sapphire-text--body-md,.sapphire-text--body-sm,.sapphire-text--body-xs{line-height:var(--sapphire-global-size-line-height-md);margin-top:0;margin-bottom:0}.sapphire-text--body-lg{font-size:var(--sapphire-semantic-size-font-body-lg)}.sapphire-text--body-md{font-size:var(--sapphire-semantic-size-font-body-md)}.sapphire-text--body-sm{font-size:var(--sapphire-semantic-size-font-body-sm)}.sapphire-text--body-xs{font-size:var(--sapphire-semantic-size-font-body-xs)}.sapphire-text--caption-md,.sapphire-text--caption-sm{font-weight:var(--sapphire-semantic-font-weight-default-bold);line-height:var(--sapphire-global-size-line-height-sm)}.sapphire-text--caption-md{font-size:var(--sapphire-semantic-size-font-body-sm)}.sapphire-text--caption-sm{font-size:var(--sapphire-semantic-size-font-body-xs)}\n"] }]
|
|
38
45
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { level: [{
|
|
39
46
|
type: Input,
|
|
40
47
|
args: ['sp-heading']
|
|
41
|
-
}],
|
|
48
|
+
}], color: [{
|
|
42
49
|
type: Input
|
|
50
|
+
}], className: [{
|
|
51
|
+
type: HostBinding,
|
|
52
|
+
args: ['class']
|
|
43
53
|
}] } });
|
|
44
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
54
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVhZGluZy5jb21wb25lbnQuanMiLCJzb3VyY2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djbGFzcycpXG4gIHByaXZhdGUgZ2V0IGNsYXNzTmFtZSgpIHtcbiAgICByZXR1cm4gdGhpcy5jb2xvciAhPT0gJ3ByaW1hcnknID8gYHNhcHBoaXJlLXRleHQtLSR7dGhpcy5jb2xvcn1gIDogJyc7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Component, HostBinding, Input } from '@angular/core';
|
|
2
|
+
import { ThemeCheckDirective } from '../../theme/src/theme-check.directive';
|
|
3
|
+
import { UseComponentStylesOnHost } from '../../common/sapphire-view-encapsulation';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "../../theme/src/theme-check.directive";
|
|
6
|
+
import * as i2 from "../../common/sapphire-view-encapsulation";
|
|
7
|
+
export class SubheadingComponent {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.size = 'md';
|
|
10
|
+
/**
|
|
11
|
+
* The semantic color of the text
|
|
12
|
+
* @default 'primary'
|
|
13
|
+
*/
|
|
14
|
+
this.color = 'primary';
|
|
15
|
+
}
|
|
16
|
+
get className() {
|
|
17
|
+
return this.color !== 'primary' ? `sapphire-text--${this.color}` : '';
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
SubheadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: SubheadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
21
|
+
SubheadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.0", type: SubheadingComponent, selector: "[sp-subheading]", inputs: { size: "size", color: "color" }, host: { properties: { "class.sapphire-text": "true", "class.sapphire-text--subheading-sm": "size === \"sm\"", "class.sapphire-text--subheading-md": "size === \"md\"", "class": "this.className" } }, hostDirectives: [{ directive: i1.ThemeCheckDirective }, { directive: i2.UseComponentStylesOnHost }], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [".sapphire-text{font-family:var(--sapphire-semantic-font-name-default);color:var(--sapphire-semantic-color-foreground-primary);font-weight:var(--sapphire-semantic-font-weight-default-regular);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.sapphire-text--strong{font-weight:var(--sapphire-semantic-font-weight-default-bold)}.sapphire-text--underlined{text-decoration:underline}.sapphire-text--secondary{color:var(--sapphire-semantic-color-foreground-secondary)}.sapphire-text--informative{color:var(--sapphire-semantic-color-foreground-accent)}.sapphire-text--positive{color:var(--sapphire-semantic-color-foreground-positive)}.sapphire-text--warning{color:var(--sapphire-semantic-color-foreground-warning)}.sapphire-text--negative{color:var(--sapphire-semantic-color-foreground-negative)}.sapphire-text--heading-2xl,.sapphire-text--heading-xl,.sapphire-text--heading-lg,.sapphire-text--heading-md,.sapphire-text--heading-sm,.sapphire-text--heading-xs{margin-top:0;margin-bottom:0;line-height:var(--sapphire-global-size-line-height-sm);letter-spacing:-1%}.sapphire-text--heading-2xl{font-weight:var(--sapphire-semantic-font-weight-default-regular);font-size:var(--sapphire-semantic-size-font-heading-2xl)}.sapphire-text--heading-xl{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-xl)}.sapphire-text--heading-lg{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-lg)}.sapphire-text--heading-md{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-md)}.sapphire-text--heading-sm{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-sm)}.sapphire-text--heading-xs{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-xs)}.sapphire-text--subheading-md,.sapphire-text--subheading-sm{line-height:var(--sapphire-global-size-line-height-sm)}.sapphire-text--subheading-md{font-size:var(--sapphire-semantic-size-font-body-sm)}.sapphire-text--subheading-sm{font-size:var(--sapphire-semantic-size-font-body-xs)}.sapphire-text--body-lg,.sapphire-text--body-md,.sapphire-text--body-sm,.sapphire-text--body-xs{line-height:var(--sapphire-global-size-line-height-md);margin-top:0;margin-bottom:0}.sapphire-text--body-lg{font-size:var(--sapphire-semantic-size-font-body-lg)}.sapphire-text--body-md{font-size:var(--sapphire-semantic-size-font-body-md)}.sapphire-text--body-sm{font-size:var(--sapphire-semantic-size-font-body-sm)}.sapphire-text--body-xs{font-size:var(--sapphire-semantic-size-font-body-xs)}.sapphire-text--caption-md,.sapphire-text--caption-sm{font-weight:var(--sapphire-semantic-font-weight-default-bold);line-height:var(--sapphire-global-size-line-height-sm)}.sapphire-text--caption-md{font-size:var(--sapphire-semantic-size-font-body-sm)}.sapphire-text--caption-sm{font-size:var(--sapphire-semantic-size-font-body-xs)}\n"] });
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: SubheadingComponent, decorators: [{
|
|
23
|
+
type: Component,
|
|
24
|
+
args: [{ selector: '[sp-subheading]', template: '<ng-content></ng-content>', host: {
|
|
25
|
+
'[class.sapphire-text]': 'true',
|
|
26
|
+
'[class.sapphire-text--subheading-sm]': 'size === "sm"',
|
|
27
|
+
'[class.sapphire-text--subheading-md]': 'size === "md"',
|
|
28
|
+
}, hostDirectives: [ThemeCheckDirective, UseComponentStylesOnHost], styles: [".sapphire-text{font-family:var(--sapphire-semantic-font-name-default);color:var(--sapphire-semantic-color-foreground-primary);font-weight:var(--sapphire-semantic-font-weight-default-regular);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.sapphire-text--strong{font-weight:var(--sapphire-semantic-font-weight-default-bold)}.sapphire-text--underlined{text-decoration:underline}.sapphire-text--secondary{color:var(--sapphire-semantic-color-foreground-secondary)}.sapphire-text--informative{color:var(--sapphire-semantic-color-foreground-accent)}.sapphire-text--positive{color:var(--sapphire-semantic-color-foreground-positive)}.sapphire-text--warning{color:var(--sapphire-semantic-color-foreground-warning)}.sapphire-text--negative{color:var(--sapphire-semantic-color-foreground-negative)}.sapphire-text--heading-2xl,.sapphire-text--heading-xl,.sapphire-text--heading-lg,.sapphire-text--heading-md,.sapphire-text--heading-sm,.sapphire-text--heading-xs{margin-top:0;margin-bottom:0;line-height:var(--sapphire-global-size-line-height-sm);letter-spacing:-1%}.sapphire-text--heading-2xl{font-weight:var(--sapphire-semantic-font-weight-default-regular);font-size:var(--sapphire-semantic-size-font-heading-2xl)}.sapphire-text--heading-xl{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-xl)}.sapphire-text--heading-lg{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-lg)}.sapphire-text--heading-md{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-md)}.sapphire-text--heading-sm{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-sm)}.sapphire-text--heading-xs{font-weight:var(--sapphire-semantic-font-weight-default-medium);font-size:var(--sapphire-semantic-size-font-heading-xs)}.sapphire-text--subheading-md,.sapphire-text--subheading-sm{line-height:var(--sapphire-global-size-line-height-sm)}.sapphire-text--subheading-md{font-size:var(--sapphire-semantic-size-font-body-sm)}.sapphire-text--subheading-sm{font-size:var(--sapphire-semantic-size-font-body-xs)}.sapphire-text--body-lg,.sapphire-text--body-md,.sapphire-text--body-sm,.sapphire-text--body-xs{line-height:var(--sapphire-global-size-line-height-md);margin-top:0;margin-bottom:0}.sapphire-text--body-lg{font-size:var(--sapphire-semantic-size-font-body-lg)}.sapphire-text--body-md{font-size:var(--sapphire-semantic-size-font-body-md)}.sapphire-text--body-sm{font-size:var(--sapphire-semantic-size-font-body-sm)}.sapphire-text--body-xs{font-size:var(--sapphire-semantic-size-font-body-xs)}.sapphire-text--caption-md,.sapphire-text--caption-sm{font-weight:var(--sapphire-semantic-font-weight-default-bold);line-height:var(--sapphire-global-size-line-height-sm)}.sapphire-text--caption-md{font-size:var(--sapphire-semantic-size-font-body-sm)}.sapphire-text--caption-sm{font-size:var(--sapphire-semantic-size-font-body-xs)}\n"] }]
|
|
29
|
+
}], propDecorators: { size: [{
|
|
30
|
+
type: Input
|
|
31
|
+
}], color: [{
|
|
32
|
+
type: Input
|
|
33
|
+
}], className: [{
|
|
34
|
+
type: HostBinding,
|
|
35
|
+
args: ['class']
|
|
36
|
+
}] } });
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3ViaGVhZGluZy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbGliL3R5cG9ncmFwaHkvc3JjL3N1YmhlYWRpbmcuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsV0FBVyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUM5RCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSx1Q0FBdUMsQ0FBQztBQUM1RSxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSwwQ0FBMEMsQ0FBQzs7OztBQWFwRixNQUFNLE9BQU8sbUJBQW1CO0lBWGhDO1FBYUUsU0FBSSxHQUFnQixJQUFJLENBQUM7UUFFekI7OztXQUdHO1FBRUgsVUFBSyxHQU1lLFNBQVMsQ0FBQztLQU0vQjtJQUpDLElBQ1ksU0FBUztRQUNuQixPQUFPLElBQUksQ0FBQyxLQUFLLEtBQUssU0FBUyxDQUFDLENBQUMsQ0FBQyxrQkFBa0IsSUFBSSxDQUFDLEtBQUssRUFBRSxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUM7SUFDeEUsQ0FBQzs7Z0hBcEJVLG1CQUFtQjtvR0FBbkIsbUJBQW1CLDRZQVRwQiwyQkFBMkI7MkZBUzFCLG1CQU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XG4gIGhvc3REaXJlY3RpdmVzOiBbVGhlbWVDaGVja0RpcmVjdGl2ZSwgVXNlQ29tcG9uZW50U3R5bGVzT25Ib3N0XSxcbn0pXG5leHBvcnQgY2xhc3MgU3ViaGVhZGluZ0NvbXBvbmVudCB7XG4gIEBJbnB1dCgpXG4gIHNpemU6ICdtZCcgfCAnc20nID0gJ21kJztcblxuICAvKipcbiAgICogVGhlIHNlbWFudGljIGNvbG9yIG9mIHRoZSB0ZXh0XG4gICAqIEBkZWZhdWx0ICdwcmltYXJ5J1xuICAgKi9cbiAgQElucHV0KClcbiAgY29sb3I/OlxuICAgIHwgJ3ByaW1hcnknXG4gICAgfCAnc2Vjb25kYXJ5J1xuICAgIHwgJ3Bvc2l0aXZlJ1xuICAgIHwgJ25lZ2F0aXZlJ1xuICAgIHwgJ3dhcm5pbmcnXG4gICAgfCAnaW5mb3JtYXRpdmUnID0gJ3ByaW1hcnknO1xuXG4gIEBIb3N0QmluZGluZygnY2xhc3MnKVxuICBwcml2YXRlIGdldCBjbGFzc05hbWUoKSB7XG4gICAgcmV0dXJuIHRoaXMuY29sb3IgIT09ICdwcmltYXJ5JyA/IGBzYXBwaGlyZS10ZXh0LS0ke3RoaXMuY29sb3J9YCA6ICcnO1xuICB9XG59XG4iXX0=
|
|
@@ -1,19 +1,37 @@
|
|
|
1
1
|
import { NgModule } from '@angular/core';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
3
|
import { HeadingComponent } from './heading.component';
|
|
4
|
-
import {
|
|
4
|
+
import { BodyComponent } from './body.component';
|
|
5
|
+
import { CaptionComponent } from './caption.component';
|
|
6
|
+
import { SubheadingComponent } from './subheading.component';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
export class SapphireTypographyModule {
|
|
7
9
|
}
|
|
8
10
|
SapphireTypographyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: SapphireTypographyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9
|
-
SapphireTypographyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.0", ngImport: i0, type: SapphireTypographyModule, declarations: [HeadingComponent,
|
|
11
|
+
SapphireTypographyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.0", ngImport: i0, type: SapphireTypographyModule, declarations: [HeadingComponent,
|
|
12
|
+
BodyComponent,
|
|
13
|
+
CaptionComponent,
|
|
14
|
+
SubheadingComponent], imports: [CommonModule], exports: [HeadingComponent,
|
|
15
|
+
BodyComponent,
|
|
16
|
+
CaptionComponent,
|
|
17
|
+
SubheadingComponent] });
|
|
10
18
|
SapphireTypographyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: SapphireTypographyModule, imports: [CommonModule] });
|
|
11
19
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: SapphireTypographyModule, decorators: [{
|
|
12
20
|
type: NgModule,
|
|
13
21
|
args: [{
|
|
14
|
-
declarations: [
|
|
22
|
+
declarations: [
|
|
23
|
+
HeadingComponent,
|
|
24
|
+
BodyComponent,
|
|
25
|
+
CaptionComponent,
|
|
26
|
+
SubheadingComponent,
|
|
27
|
+
],
|
|
15
28
|
imports: [CommonModule],
|
|
16
|
-
exports: [
|
|
29
|
+
exports: [
|
|
30
|
+
HeadingComponent,
|
|
31
|
+
BodyComponent,
|
|
32
|
+
CaptionComponent,
|
|
33
|
+
SubheadingComponent,
|
|
34
|
+
],
|
|
17
35
|
}]
|
|
18
36
|
}] });
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwb2dyYXBoeS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zc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GZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgQ29tbW9uTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcbmltcG9ydCB7IEhlYWRpbmdDb21wb25lbnQgfSBmcm9tICcuL2hlYWRpbmcuY29tcG9uZW50JztcbmltcG9ydCB7IEJvZHlDb21wb25lbnQgfSBmcm9tICcuL2JvZHkuY29tcG9uZW50JztcbmltcG9ydCB7IENhcHRpb25Db21wb25lbnQgfSBmcm9tICcuL2NhcHRpb24uY29tcG9uZW50JztcbmltcG9ydCB7IFN1YmhlYWRpbmdDb21wb25lbnQgfSBmcm9tICcuL3N1YmhlYWRpbmcuY29tcG9uZW50JztcblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbXG4gICAgSGVhZGluZ0NvbXBvbmVudCxcbiAgICBCb2R5Q29tcG9uZW50LFxuICAgIENhcHRpb25Db21wb25lbnQsXG4gICAgU3ViaGVhZGluZ0NvbXBvbmVudCxcbiAgXSxcbiAgaW1wb3J0czogW0NvbW1vbk1vZHVsZV0sXG4gIGV4cG9ydHM6IFtcbiAgICBIZWFkaW5nQ29tcG9uZW50LFxuICAgIEJvZHlDb21wb25lbnQsXG4gICAgQ2FwdGlvbkNvbXBvbmVudCxcbiAgICBTdWJoZWFkaW5nQ29tcG9uZW50LFxuICBdLFxufSlcbmV4cG9ydCBjbGFzcyBTYXBwaGlyZVR5cG9ncmFwaHlNb2R1bGUge31cbiJdfQ==
|
package/esm2020/public-api.mjs
CHANGED
|
@@ -12,6 +12,9 @@ export * from './lib/select/public_api';
|
|
|
12
12
|
export * from './lib/listbox/public_api';
|
|
13
13
|
export * from './lib/link/public_api';
|
|
14
14
|
export * from './lib/segmented-tabs/public_api';
|
|
15
|
+
export * from './lib/spinner/public_api';
|
|
16
|
+
export * from './lib/avatar/public_api';
|
|
17
|
+
export * from './lib/feedback-message/public_api';
|
|
15
18
|
export * from './lib/table/public_api';
|
|
16
19
|
export * from './lib/notification-badge/public_api';
|
|
17
20
|
export * from './lib/switch/public_api';
|
|
@@ -30,4 +33,4 @@ export * from './lib/badge/public_api';
|
|
|
30
33
|
export * from './lib/list/public_api';
|
|
31
34
|
/* Exports only for lab */
|
|
32
35
|
export * from './lib/label/public_api';
|
|
33
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyw2QkFBNkIsQ0FBQztBQUM1QyxjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsMkJBQTJCLENBQUM7QUFDMUMsY0FBYyx1QkFBdUIsQ0FBQztBQUN0QyxjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGNBQWMsMEJBQTBCLENBQUM7QUFDekMsY0FBYyw2QkFBNkIsQ0FBQztBQUM1QyxjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsMEJBQTBCLENBQUM7QUFDekMsY0FBYyx1QkFBdUIsQ0FBQztBQUN0QyxjQUFjLGlDQUFpQyxDQUFDO0FBQ2hELGNBQWMsMEJBQTBCLENBQUM7QUFDekMsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLG1DQUFtQyxDQUFDO0FBQ2xELGNBQWMsd0JBQXdCLENBQUM7QUFDdkMsY0FBYyxxQ0FBcUMsQ0FBQztBQUNwRCxjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsd0JBQXdCLENBQUM7QUFDdkMsY0FBYyx3QkFBd0IsQ0FBQztBQUN2QyxjQUFjLDBCQUEwQixDQUFDO0FBQ3pDLGNBQWMsd0JBQXdCLENBQUM7QUFDdkMsY0FBYywyQkFB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