@sd-angular/core 19.0.0-beta.103 → 19.0.0-beta.105
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/assets/scss/README.md +433 -353
- package/assets/scss/core/form.scss +43 -1
- package/assets/scss/core/utilities/_base.scss +6 -6
- package/assets/scss/core/utilities/_grid.scss +4 -3
- package/assets/scss/core/utilities/_index.scss +1 -1
- package/assets/scss/core/utilities/_sizing.scss +2 -2
- package/assets/scss/sd-core.scss +0 -2
- package/components/badge/src/badge.component.d.ts +20 -3
- package/components/button/src/button.component.d.ts +2 -1
- package/components/ckeditor-styles/index.d.ts +1 -0
- package/components/ckeditor-styles/src/ckeditor-styles.component.d.ts +25 -0
- package/components/form-generic/src/models/form-generic-component.model.d.ts +5 -6
- package/components/form-generic/src/models/form-generic-expression.model.d.ts +1 -1
- package/components/history/models/history.model.d.ts +2 -2
- package/components/inform/index.d.ts +2 -0
- package/components/inform/src/inform-action.directive.d.ts +9 -0
- package/components/inform/src/inform.component.d.ts +59 -0
- package/components/modal/src/modal.component.d.ts +3 -2
- package/components/query-bar/src/{actions-bar.component.d.ts → components/actions-bar/actions-bar.component.d.ts} +8 -11
- package/components/query-bar/src/{build-chip.component.d.ts → components/build-chip/build-chip.component.d.ts} +2 -2
- package/components/query-bar/src/{chip-popover.component.d.ts → components/chip-popover/chip-popover.component.d.ts} +2 -2
- package/components/query-bar/src/{field-picker.component.d.ts → components/field-picker/field-picker.component.d.ts} +1 -1
- package/components/query-bar/src/{inline-chip.component.d.ts → components/inline-chip/inline-chip.component.d.ts} +2 -2
- package/components/query-bar/src/{inline-value-chip.component.d.ts → components/inline-value-chip/inline-value-chip.component.d.ts} +2 -2
- package/components/query-bar/src/{popover-chip.component.d.ts → components/popover-chip/popover-chip.component.d.ts} +2 -2
- package/components/query-bar/src/{saved-filters-menu.component.d.ts → components/saved-filters-menu/saved-filters-menu.component.d.ts} +1 -1
- package/components/query-bar/src/query-bar.component.d.ts +3 -3
- package/components/query-bar/src/query-bar.model.d.ts +1 -1
- package/components/section/src/section.component.d.ts +2 -1
- package/components/stepper/index.d.ts +2 -0
- package/components/stepper/src/step.component.d.ts +17 -0
- package/components/stepper/src/stepper.component.d.ts +33 -0
- package/components/tab/index.d.ts +2 -0
- package/components/tab/src/tab-group.component.d.ts +37 -0
- package/components/tab/src/tab.component.d.ts +13 -0
- package/components/tab-router/src/decorators/tab.decorator.d.ts +2 -2
- package/components/tab-router/src/models/tab-router.model.d.ts +2 -2
- package/components/table/index.d.ts +1 -0
- package/components/table/src/configurations/table.configuration.d.ts +3 -3
- package/components/table/src/directives/index.d.ts +1 -0
- package/components/table/src/directives/sd-table-group-def.directive.d.ts +44 -0
- package/components/table/src/models/index.d.ts +1 -0
- package/components/table/src/models/table-column.model.d.ts +13 -13
- package/components/table/src/models/table-command.model.d.ts +3 -2
- package/components/table/src/models/table-item.model.d.ts +19 -4
- package/components/table/src/models/table-option-export.model.d.ts +3 -3
- package/components/table/src/models/table-option-group.model.d.ts +19 -2
- package/components/table/src/models/table-option-selector.model.d.ts +17 -1
- package/components/table/src/models/table-option.model.d.ts +11 -2
- package/components/table/src/pipes/sd-group.pipe.d.ts +15 -1
- package/components/table/src/services/table-filter/table-filter.model.d.ts +9 -9
- package/components/table/src/services/table-filter/table-filter.service.d.ts +2 -2
- package/components/table/src/table.component.d.ts +29 -4
- package/fesm2022/sd-angular-core-components-anchor.mjs +2 -2
- package/fesm2022/sd-angular-core-components-anchor.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-badge.mjs +18 -3
- package/fesm2022/sd-angular-core-components-badge.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-button.mjs +2 -2
- package/fesm2022/sd-angular-core-components-button.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-ckeditor-styles.mjs +38 -0
- package/fesm2022/sd-angular-core-components-ckeditor-styles.mjs.map +1 -0
- package/fesm2022/sd-angular-core-components-document-builder.mjs +10 -8
- package/fesm2022/sd-angular-core-components-document-builder.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-editor.mjs +3 -2
- package/fesm2022/sd-angular-core-components-editor.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-form-generic.mjs +49 -48
- package/fesm2022/sd-angular-core-components-form-generic.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-history.mjs +3 -2
- package/fesm2022/sd-angular-core-components-history.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-inform.mjs +190 -0
- package/fesm2022/sd-angular-core-components-inform.mjs.map +1 -0
- package/fesm2022/sd-angular-core-components-mini-editor.mjs +4 -3
- package/fesm2022/sd-angular-core-components-mini-editor.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-modal.mjs +2 -2
- package/fesm2022/sd-angular-core-components-modal.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-operator.mjs +1 -1
- package/fesm2022/sd-angular-core-components-operator.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-query-bar.mjs +15 -22
- package/fesm2022/sd-angular-core-components-query-bar.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-section.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-splitter.mjs +5 -2
- package/fesm2022/sd-angular-core-components-splitter.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-stepper.mjs +140 -0
- package/fesm2022/sd-angular-core-components-stepper.mjs.map +1 -0
- package/fesm2022/sd-angular-core-components-tab-router.mjs +3 -3
- package/fesm2022/sd-angular-core-components-tab-router.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-tab.mjs +145 -0
- package/fesm2022/sd-angular-core-components-tab.mjs.map +1 -0
- package/fesm2022/sd-angular-core-components-table.mjs +284 -95
- package/fesm2022/sd-angular-core-components-table.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-upload-file.mjs +5 -6
- package/fesm2022/sd-angular-core-components-upload-file.mjs.map +1 -1
- package/fesm2022/sd-angular-core-directives.mjs +4 -4
- package/fesm2022/sd-angular-core-directives.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-autocomplete.mjs +5 -4
- package/fesm2022/sd-angular-core-forms-autocomplete.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-chip-calendar.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-chip.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-date-range.mjs +3 -2
- package/fesm2022/sd-angular-core-forms-date-range.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-date.mjs +5 -4
- package/fesm2022/sd-angular-core-forms-date.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-datetime.mjs +5 -4
- package/fesm2022/sd-angular-core-forms-datetime.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-input-color.mjs +117 -0
- package/fesm2022/sd-angular-core-forms-input-color.mjs.map +1 -0
- package/fesm2022/sd-angular-core-forms-input-number.mjs +24 -2
- package/fesm2022/sd-angular-core-forms-input-number.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-input.mjs +26 -2
- package/fesm2022/sd-angular-core-forms-input.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-radio.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-select.mjs +10 -10
- package/fesm2022/sd-angular-core-forms-select.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-switch.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-textarea.mjs.map +1 -1
- package/fesm2022/sd-angular-core-i18n.mjs +10 -0
- package/fesm2022/sd-angular-core-i18n.mjs.map +1 -1
- package/fesm2022/sd-angular-core-modules-auth.mjs +4 -4
- package/fesm2022/sd-angular-core-modules-auth.mjs.map +1 -1
- package/fesm2022/sd-angular-core-modules-authom.mjs +1 -1
- package/fesm2022/sd-angular-core-modules-authom.mjs.map +1 -1
- package/fesm2022/sd-angular-core-modules-layout.mjs +14 -14
- package/fesm2022/sd-angular-core-modules-layout.mjs.map +1 -1
- package/fesm2022/sd-angular-core-modules-permission.mjs +3 -3
- package/fesm2022/sd-angular-core-modules-permission.mjs.map +1 -1
- package/fesm2022/sd-angular-core-pipes.mjs +2 -2
- package/fesm2022/sd-angular-core-pipes.mjs.map +1 -1
- package/fesm2022/sd-angular-core-services-api.mjs +3 -3
- package/fesm2022/sd-angular-core-services-api.mjs.map +1 -1
- package/fesm2022/sd-angular-core-services-cache.mjs +3 -2
- package/fesm2022/sd-angular-core-services-cache.mjs.map +1 -1
- package/fesm2022/sd-angular-core-services-confirm.mjs.map +1 -1
- package/fesm2022/sd-angular-core-services-excel.mjs +6 -5
- package/fesm2022/sd-angular-core-services-excel.mjs.map +1 -1
- package/fesm2022/sd-angular-core-services-notify.mjs +3 -3
- package/fesm2022/sd-angular-core-services-notify.mjs.map +1 -1
- package/fesm2022/sd-angular-core-services-storage.mjs +2 -2
- package/fesm2022/sd-angular-core-services-storage.mjs.map +1 -1
- package/fesm2022/sd-angular-core-utilities-models.mjs.map +1 -1
- package/forms/autocomplete/src/autocomplete.component.d.ts +2 -1
- package/forms/checkbox/src/checkbox.component.d.ts +1 -1
- package/forms/chip/src/chip.component.d.ts +1 -1
- package/forms/chip-calendar/src/chip-calendar.component.d.ts +1 -1
- package/forms/date/src/date.component.d.ts +2 -1
- package/forms/date-range/src/date-range.component.d.ts +2 -1
- package/forms/datetime/src/datetime.component.d.ts +2 -1
- package/forms/input/src/input.component.d.ts +6 -2
- package/forms/input-color/index.d.ts +1 -0
- package/forms/input-color/src/input-color.component.d.ts +32 -0
- package/forms/input-number/src/input-number.component.d.ts +6 -2
- package/forms/radio/src/radio.component.d.ts +1 -1
- package/forms/select/src/select.component.d.ts +5 -5
- package/forms/switch/src/switch.component.d.ts +1 -1
- package/forms/textarea/src/textarea.component.d.ts +2 -1
- package/i18n/src/en.d.ts +2 -0
- package/modules/auth/configurations/auth.configuration.d.ts +4 -4
- package/modules/layout/configurations/layout.configuration.d.ts +3 -3
- package/modules/permission/src/configurations/permission.configuration.d.ts +3 -3
- package/package.json +123 -103
- package/sd-angular-core-19.0.0-beta.105.tgz +0 -0
- package/services/confirm/src/lib/components/dialog-confirm/dialog-confirm.component.d.ts +3 -3
- package/services/confirm/src/lib/confirm.service.d.ts +9 -9
- package/utilities/models/src/icon.model.d.ts +1 -1
- package/assets/scss/bootstrap-4.6.2/_alert.scss +0 -52
- package/assets/scss/bootstrap-4.6.2/_badge.scss +0 -54
- package/assets/scss/bootstrap-4.6.2/_breadcrumb.scss +0 -42
- package/assets/scss/bootstrap-4.6.2/_button-group.scss +0 -163
- package/assets/scss/bootstrap-4.6.2/_buttons.scss +0 -142
- package/assets/scss/bootstrap-4.6.2/_card.scss +0 -286
- package/assets/scss/bootstrap-4.6.2/_carousel.scss +0 -200
- package/assets/scss/bootstrap-4.6.2/_close.scss +0 -40
- package/assets/scss/bootstrap-4.6.2/_code.scss +0 -48
- package/assets/scss/bootstrap-4.6.2/_custom-forms.scss +0 -526
- package/assets/scss/bootstrap-4.6.2/_dropdown.scss +0 -192
- package/assets/scss/bootstrap-4.6.2/_forms.scss +0 -347
- package/assets/scss/bootstrap-4.6.2/_functions.scss +0 -190
- package/assets/scss/bootstrap-4.6.2/_grid.scss +0 -73
- package/assets/scss/bootstrap-4.6.2/_images.scss +0 -42
- package/assets/scss/bootstrap-4.6.2/_input-group.scss +0 -211
- package/assets/scss/bootstrap-4.6.2/_jumbotron.scss +0 -17
- package/assets/scss/bootstrap-4.6.2/_list-group.scss +0 -154
- package/assets/scss/bootstrap-4.6.2/_media.scss +0 -8
- package/assets/scss/bootstrap-4.6.2/_mixins.scss +0 -47
- package/assets/scss/bootstrap-4.6.2/_modal.scss +0 -240
- package/assets/scss/bootstrap-4.6.2/_nav.scss +0 -125
- package/assets/scss/bootstrap-4.6.2/_navbar.scss +0 -332
- package/assets/scss/bootstrap-4.6.2/_pagination.scss +0 -74
- package/assets/scss/bootstrap-4.6.2/_popover.scss +0 -170
- package/assets/scss/bootstrap-4.6.2/_print.scss +0 -132
- package/assets/scss/bootstrap-4.6.2/_progress.scss +0 -47
- package/assets/scss/bootstrap-4.6.2/_reboot.scss +0 -484
- package/assets/scss/bootstrap-4.6.2/_root.scss +0 -19
- package/assets/scss/bootstrap-4.6.2/_spinners.scss +0 -65
- package/assets/scss/bootstrap-4.6.2/_tables.scss +0 -185
- package/assets/scss/bootstrap-4.6.2/_toasts.scss +0 -46
- package/assets/scss/bootstrap-4.6.2/_tooltip.scss +0 -115
- package/assets/scss/bootstrap-4.6.2/_transitions.scss +0 -26
- package/assets/scss/bootstrap-4.6.2/_type.scss +0 -125
- package/assets/scss/bootstrap-4.6.2/_utilities.scss +0 -18
- package/assets/scss/bootstrap-4.6.2/_variables.scss +0 -1150
- package/assets/scss/bootstrap-4.6.2/bootstrap-grid.scss +0 -30
- package/assets/scss/bootstrap-4.6.2/bootstrap-reboot.scss +0 -12
- package/assets/scss/bootstrap-4.6.2/bootstrap.scss +0 -44
- package/assets/scss/bootstrap-4.6.2/mixins/_alert.scss +0 -13
- package/assets/scss/bootstrap-4.6.2/mixins/_background-variant.scss +0 -23
- package/assets/scss/bootstrap-4.6.2/mixins/_badge.scss +0 -17
- package/assets/scss/bootstrap-4.6.2/mixins/_border-radius.scss +0 -76
- package/assets/scss/bootstrap-4.6.2/mixins/_box-shadow.scss +0 -20
- package/assets/scss/bootstrap-4.6.2/mixins/_breakpoints.scss +0 -123
- package/assets/scss/bootstrap-4.6.2/mixins/_buttons.scss +0 -110
- package/assets/scss/bootstrap-4.6.2/mixins/_caret.scss +0 -62
- package/assets/scss/bootstrap-4.6.2/mixins/_clearfix.scss +0 -7
- package/assets/scss/bootstrap-4.6.2/mixins/_deprecate.scss +0 -10
- package/assets/scss/bootstrap-4.6.2/mixins/_float.scss +0 -14
- package/assets/scss/bootstrap-4.6.2/mixins/_forms.scss +0 -195
- package/assets/scss/bootstrap-4.6.2/mixins/_gradients.scss +0 -45
- package/assets/scss/bootstrap-4.6.2/mixins/_grid-framework.scss +0 -80
- package/assets/scss/bootstrap-4.6.2/mixins/_grid.scss +0 -69
- package/assets/scss/bootstrap-4.6.2/mixins/_hover.scss +0 -37
- package/assets/scss/bootstrap-4.6.2/mixins/_image.scss +0 -36
- package/assets/scss/bootstrap-4.6.2/mixins/_list-group.scss +0 -21
- package/assets/scss/bootstrap-4.6.2/mixins/_lists.scss +0 -7
- package/assets/scss/bootstrap-4.6.2/mixins/_nav-divider.scss +0 -11
- package/assets/scss/bootstrap-4.6.2/mixins/_pagination.scss +0 -22
- package/assets/scss/bootstrap-4.6.2/mixins/_reset-text.scss +0 -17
- package/assets/scss/bootstrap-4.6.2/mixins/_resize.scss +0 -6
- package/assets/scss/bootstrap-4.6.2/mixins/_screen-reader.scss +0 -34
- package/assets/scss/bootstrap-4.6.2/mixins/_size.scss +0 -7
- package/assets/scss/bootstrap-4.6.2/mixins/_table-row.scss +0 -39
- package/assets/scss/bootstrap-4.6.2/mixins/_text-emphasis.scss +0 -17
- package/assets/scss/bootstrap-4.6.2/mixins/_text-hide.scss +0 -11
- package/assets/scss/bootstrap-4.6.2/mixins/_text-truncate.scss +0 -8
- package/assets/scss/bootstrap-4.6.2/mixins/_transition.scss +0 -26
- package/assets/scss/bootstrap-4.6.2/mixins/_visibility.scss +0 -8
- package/assets/scss/bootstrap-4.6.2/utilities/_align.scss +0 -8
- package/assets/scss/bootstrap-4.6.2/utilities/_background.scss +0 -19
- package/assets/scss/bootstrap-4.6.2/utilities/_borders.scss +0 -75
- package/assets/scss/bootstrap-4.6.2/utilities/_clearfix.scss +0 -3
- package/assets/scss/bootstrap-4.6.2/utilities/_display.scss +0 -26
- package/assets/scss/bootstrap-4.6.2/utilities/_embed.scss +0 -39
- package/assets/scss/bootstrap-4.6.2/utilities/_flex.scss +0 -51
- package/assets/scss/bootstrap-4.6.2/utilities/_float.scss +0 -11
- package/assets/scss/bootstrap-4.6.2/utilities/_interactions.scss +0 -5
- package/assets/scss/bootstrap-4.6.2/utilities/_overflow.scss +0 -5
- package/assets/scss/bootstrap-4.6.2/utilities/_position.scss +0 -32
- package/assets/scss/bootstrap-4.6.2/utilities/_screenreaders.scss +0 -11
- package/assets/scss/bootstrap-4.6.2/utilities/_shadows.scss +0 -6
- package/assets/scss/bootstrap-4.6.2/utilities/_sizing.scss +0 -20
- package/assets/scss/bootstrap-4.6.2/utilities/_spacing.scss +0 -73
- package/assets/scss/bootstrap-4.6.2/utilities/_stretched-link.scss +0 -19
- package/assets/scss/bootstrap-4.6.2/utilities/_text.scss +0 -72
- package/assets/scss/bootstrap-4.6.2/utilities/_visibility.scss +0 -13
- package/assets/scss/bootstrap-4.6.2/vendor/_rfs.scss +0 -228
- package/assets/scss/core/bootstrap.scss +0 -13
- package/sd-angular-core-19.0.0-beta.103.tgz +0 -0
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
// stylelint-disable property-blacklist, scss/dollar-variable-default
|
|
2
|
-
|
|
3
|
-
// SCSS RFS mixin
|
|
4
|
-
//
|
|
5
|
-
// Automated responsive font sizes
|
|
6
|
-
//
|
|
7
|
-
// Licensed under MIT (https://github.com/twbs/rfs/blob/v8.x/LICENSE)
|
|
8
|
-
|
|
9
|
-
// Configuration
|
|
10
|
-
|
|
11
|
-
// Base font size
|
|
12
|
-
$rfs-base-font-size: 1.25rem !default;
|
|
13
|
-
$rfs-font-size-unit: rem !default;
|
|
14
|
-
|
|
15
|
-
@if $rfs-font-size-unit != rem and $rfs-font-size-unit != px {
|
|
16
|
-
@error "`#{$rfs-font-size-unit}` is not a valid unit for $rfs-font-size-unit. Use `px` or `rem`.";
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// Breakpoint at where font-size starts decreasing if screen width is smaller
|
|
20
|
-
$rfs-breakpoint: 1200px !default;
|
|
21
|
-
$rfs-breakpoint-unit: px !default;
|
|
22
|
-
|
|
23
|
-
@if $rfs-breakpoint-unit != px and $rfs-breakpoint-unit != em and $rfs-breakpoint-unit != rem {
|
|
24
|
-
@error "`#{$rfs-breakpoint-unit}` is not a valid unit for $rfs-breakpoint-unit. Use `px`, `em` or `rem`.";
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// Resize font size based on screen height and width
|
|
28
|
-
$rfs-two-dimensional: false !default;
|
|
29
|
-
|
|
30
|
-
// Factor of decrease
|
|
31
|
-
$rfs-factor: 10 !default;
|
|
32
|
-
|
|
33
|
-
@if type-of($rfs-factor) != "number" or $rfs-factor <= 1 {
|
|
34
|
-
@error "`#{$rfs-factor}` is not a valid $rfs-factor, it must be greater than 1.";
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// Generate enable or disable classes. Possibilities: false, "enable" or "disable"
|
|
38
|
-
$rfs-class: false !default;
|
|
39
|
-
|
|
40
|
-
// 1 rem = $rfs-rem-value px
|
|
41
|
-
$rfs-rem-value: 16 !default;
|
|
42
|
-
|
|
43
|
-
// Safari iframe resize bug: https://github.com/twbs/rfs/issues/14
|
|
44
|
-
$rfs-safari-iframe-resize-bug-fix: false !default;
|
|
45
|
-
|
|
46
|
-
// Disable RFS by setting $enable-responsive-font-sizes to false
|
|
47
|
-
$enable-responsive-font-sizes: true !default;
|
|
48
|
-
|
|
49
|
-
// Cache $rfs-base-font-size unit
|
|
50
|
-
$rfs-base-font-size-unit: unit($rfs-base-font-size);
|
|
51
|
-
|
|
52
|
-
@function divide($dividend, $divisor, $precision: 10) {
|
|
53
|
-
$sign: if($dividend > 0 and $divisor > 0 or $dividend < 0 and $divisor < 0, 1, -1);
|
|
54
|
-
$dividend: abs($dividend);
|
|
55
|
-
$divisor: abs($divisor);
|
|
56
|
-
@if $dividend == 0 {
|
|
57
|
-
@return 0;
|
|
58
|
-
}
|
|
59
|
-
@if $divisor == 0 {
|
|
60
|
-
@error "Cannot divide by 0";
|
|
61
|
-
}
|
|
62
|
-
$remainder: $dividend;
|
|
63
|
-
$result: 0;
|
|
64
|
-
$factor: 10;
|
|
65
|
-
@while ($remainder > 0 and $precision >= 0) {
|
|
66
|
-
$quotient: 0;
|
|
67
|
-
@while ($remainder >= $divisor) {
|
|
68
|
-
$remainder: $remainder - $divisor;
|
|
69
|
-
$quotient: $quotient + 1;
|
|
70
|
-
}
|
|
71
|
-
$result: $result * 10 + $quotient;
|
|
72
|
-
$factor: $factor * .1;
|
|
73
|
-
$remainder: $remainder * 10;
|
|
74
|
-
$precision: $precision - 1;
|
|
75
|
-
@if ($precision < 0 and $remainder >= $divisor * 5) {
|
|
76
|
-
$result: $result + 1;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
$result: $result * $factor * $sign;
|
|
80
|
-
$dividend-unit: unit($dividend);
|
|
81
|
-
$divisor-unit: unit($divisor);
|
|
82
|
-
$unit-map: (
|
|
83
|
-
"px": 1px,
|
|
84
|
-
"rem": 1rem,
|
|
85
|
-
"em": 1em,
|
|
86
|
-
"%": 1%
|
|
87
|
-
);
|
|
88
|
-
@if ($dividend-unit != $divisor-unit and map-has-key($unit-map, $dividend-unit)) {
|
|
89
|
-
$result: $result * map-get($unit-map, $dividend-unit);
|
|
90
|
-
}
|
|
91
|
-
@return $result;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Remove px-unit from $rfs-base-font-size for calculations
|
|
95
|
-
@if $rfs-base-font-size-unit == "px" {
|
|
96
|
-
$rfs-base-font-size: divide($rfs-base-font-size, $rfs-base-font-size * 0 + 1);
|
|
97
|
-
}
|
|
98
|
-
@else if $rfs-base-font-size-unit == "rem" {
|
|
99
|
-
$rfs-base-font-size: divide($rfs-base-font-size, divide($rfs-base-font-size * 0 + 1, $rfs-rem-value));
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// Cache $rfs-breakpoint unit to prevent multiple calls
|
|
103
|
-
$rfs-breakpoint-unit-cache: unit($rfs-breakpoint);
|
|
104
|
-
|
|
105
|
-
// Remove unit from $rfs-breakpoint for calculations
|
|
106
|
-
@if $rfs-breakpoint-unit-cache == "px" {
|
|
107
|
-
$rfs-breakpoint: divide($rfs-breakpoint, $rfs-breakpoint * 0 + 1);
|
|
108
|
-
}
|
|
109
|
-
@else if $rfs-breakpoint-unit-cache == "rem" or $rfs-breakpoint-unit-cache == "em" {
|
|
110
|
-
$rfs-breakpoint: divide($rfs-breakpoint, divide($rfs-breakpoint * 0 + 1, $rfs-rem-value));
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
// Internal mixin that adds disable classes to the selector if needed.
|
|
114
|
-
@mixin _rfs-disable-class {
|
|
115
|
-
@if $rfs-class == "disable" {
|
|
116
|
-
// Adding an extra class increases specificity, which prevents the media query to override the font size
|
|
117
|
-
&,
|
|
118
|
-
.disable-responsive-font-size &,
|
|
119
|
-
&.disable-responsive-font-size {
|
|
120
|
-
@content;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
@else {
|
|
124
|
-
@content;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
// Internal mixin that adds enable classes to the selector if needed.
|
|
129
|
-
@mixin _rfs-enable-class {
|
|
130
|
-
@if $rfs-class == "enable" {
|
|
131
|
-
.enable-responsive-font-size &,
|
|
132
|
-
&.enable-responsive-font-size {
|
|
133
|
-
@content;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
@else {
|
|
137
|
-
@content;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
// Internal mixin used to determine which media query needs to be used
|
|
142
|
-
@mixin _rfs-media-query($mq-value) {
|
|
143
|
-
@if $rfs-two-dimensional {
|
|
144
|
-
@media (max-width: #{$mq-value}), (max-height: #{$mq-value}) {
|
|
145
|
-
@content;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
@else {
|
|
149
|
-
@media (max-width: #{$mq-value}) {
|
|
150
|
-
@content;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
// Responsive font size mixin
|
|
156
|
-
@mixin rfs($fs, $important: false) {
|
|
157
|
-
// Cache $fs unit
|
|
158
|
-
$fs-unit: if(type-of($fs) == "number", unit($fs), false);
|
|
159
|
-
|
|
160
|
-
// Add !important suffix if needed
|
|
161
|
-
$rfs-suffix: if($important, " !important", "");
|
|
162
|
-
|
|
163
|
-
// If $fs isn't a number (like inherit) or $fs has a unit (not px or rem, like 1.5em) or $ is 0, just print the value
|
|
164
|
-
@if not $fs-unit or $fs-unit != "" and $fs-unit != "px" and $fs-unit != "rem" or $fs == 0 {
|
|
165
|
-
font-size: #{$fs}#{$rfs-suffix};
|
|
166
|
-
}
|
|
167
|
-
@else {
|
|
168
|
-
// Remove unit from $fs for calculations
|
|
169
|
-
@if $fs-unit == "px" {
|
|
170
|
-
$fs: divide($fs, $fs * 0 + 1);
|
|
171
|
-
}
|
|
172
|
-
@else if $fs-unit == "rem" {
|
|
173
|
-
$fs: divide($fs, divide($fs * 0 + 1, $rfs-rem-value));
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
// Set default font size
|
|
177
|
-
$rfs-static: if($rfs-font-size-unit == rem, #{divide($fs, $rfs-rem-value)}rem, #{$fs}px);
|
|
178
|
-
|
|
179
|
-
// Only add the media query if the font size is bigger than the minimum font size
|
|
180
|
-
@if $fs <= $rfs-base-font-size or not $enable-responsive-font-sizes {
|
|
181
|
-
font-size: #{$rfs-static}#{$rfs-suffix};
|
|
182
|
-
}
|
|
183
|
-
@else {
|
|
184
|
-
// Calculate the minimum font size for $fs
|
|
185
|
-
$fs-min: $rfs-base-font-size + divide($fs - $rfs-base-font-size, $rfs-factor);
|
|
186
|
-
|
|
187
|
-
// Calculate difference between $fs and the minimum font size
|
|
188
|
-
$fs-diff: $fs - $fs-min;
|
|
189
|
-
|
|
190
|
-
// Base font-size formatting
|
|
191
|
-
$min-width: if($rfs-font-size-unit == rem, #{divide($fs-min, $rfs-rem-value)}rem, #{$fs-min}px);
|
|
192
|
-
|
|
193
|
-
// Use `vmin` if two-dimensional is enabled
|
|
194
|
-
$variable-unit: if($rfs-two-dimensional, vmin, vw);
|
|
195
|
-
|
|
196
|
-
// Calculate the variable width between 0 and $rfs-breakpoint
|
|
197
|
-
$variable-width: #{divide($fs-diff * 100, $rfs-breakpoint)}#{$variable-unit};
|
|
198
|
-
|
|
199
|
-
// Set the calculated font-size
|
|
200
|
-
$rfs-fluid: calc(#{$min-width} + #{$variable-width}) #{$rfs-suffix};
|
|
201
|
-
|
|
202
|
-
// Breakpoint formatting
|
|
203
|
-
$mq-value: if($rfs-breakpoint-unit == px, #{$rfs-breakpoint}px, #{divide($rfs-breakpoint, $rfs-rem-value)}#{$rfs-breakpoint-unit});
|
|
204
|
-
|
|
205
|
-
@include _rfs-disable-class {
|
|
206
|
-
font-size: #{$rfs-static}#{$rfs-suffix};
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
@include _rfs-media-query($mq-value) {
|
|
210
|
-
@include _rfs-enable-class {
|
|
211
|
-
font-size: $rfs-fluid;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
// Include safari iframe resize fix if needed
|
|
215
|
-
min-width: if($rfs-safari-iframe-resize-bug-fix, (0 * 1vw), null);
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
// The font-size & responsive-font-size mixins use RFS to rescale the font size
|
|
222
|
-
@mixin font-size($fs, $important: false) {
|
|
223
|
-
@include rfs($fs, $important);
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
@mixin responsive-font-size($fs, $important: false) {
|
|
227
|
-
@include rfs($fs, $important);
|
|
228
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// 1. Include functions first (so you can manipulate colors, SVGs, calc, etc)
|
|
2
|
-
@import '../bootstrap-4.6.2/functions';
|
|
3
|
-
|
|
4
|
-
// 2. Include any default variable overrides here
|
|
5
|
-
|
|
6
|
-
// 3. Include remainder of required Bootstrap stylesheets
|
|
7
|
-
@import '../bootstrap-4.6.2/variables';
|
|
8
|
-
@import '../bootstrap-4.6.2/mixins';
|
|
9
|
-
|
|
10
|
-
// 4. Include any optional Bootstrap components as you like
|
|
11
|
-
@import '../bootstrap-4.6.2/reboot';
|
|
12
|
-
@import '../bootstrap-4.6.2/utilities';
|
|
13
|
-
@import '../bootstrap-4.6.2/grid';
|
|
Binary file
|