@pepperi-addons/ngx-lib 0.2.59-query-builder.13 → 0.2.61-query-builder.2
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/address/address.component.theme.scss +4 -7
- package/address/pepperi-addons-ngx-lib-address.metadata.json +1 -1
- package/attachment/attachment.component.theme.scss +0 -2
- package/attachment/pepperi-addons-ngx-lib-attachment.metadata.json +1 -1
- package/bread-crumbs/bread-crumbs.component.theme.scss +7 -7
- package/bread-crumbs/pepperi-addons-ngx-lib-bread-crumbs.metadata.json +1 -1
- package/bundles/pepperi-addons-ngx-lib-address.umd.js +1 -1
- package/bundles/pepperi-addons-ngx-lib-address.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-attachment.umd.js +1 -1
- package/bundles/pepperi-addons-ngx-lib-attachment.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-bread-crumbs.umd.js +1 -1
- package/bundles/pepperi-addons-ngx-lib-bread-crumbs.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-button.umd.js +1 -1
- package/bundles/pepperi-addons-ngx-lib-button.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-checkbox.umd.js +1 -1
- package/bundles/pepperi-addons-ngx-lib-checkbox.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-color.umd.js +2 -2
- package/bundles/pepperi-addons-ngx-lib-color.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-date.umd.js +1 -1
- package/bundles/pepperi-addons-ngx-lib-date.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-dialog.umd.js +1 -1
- package/bundles/pepperi-addons-ngx-lib-dialog.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-field-title.umd.js +1 -1
- package/bundles/pepperi-addons-ngx-lib-field-title.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-files-uploader.umd.js +1 -1
- package/bundles/pepperi-addons-ngx-lib-files-uploader.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-form.umd.js +1 -1
- package/bundles/pepperi-addons-ngx-lib-form.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-group-buttons.umd.js +1 -1
- package/bundles/pepperi-addons-ngx-lib-group-buttons.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-image.umd.js +1 -1
- package/bundles/pepperi-addons-ngx-lib-image.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-images-filmstrip.umd.js +1 -1
- package/bundles/pepperi-addons-ngx-lib-images-filmstrip.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-list.umd.js +1 -1
- package/bundles/pepperi-addons-ngx-lib-list.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-quantity-selector.umd.js +1 -1
- package/bundles/pepperi-addons-ngx-lib-quantity-selector.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-query-builder.umd.js +30 -33
- package/bundles/pepperi-addons-ngx-lib-query-builder.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-rich-html-textarea.umd.js +1 -1
- package/bundles/pepperi-addons-ngx-lib-rich-html-textarea.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-select.umd.js +1 -1
- package/bundles/pepperi-addons-ngx-lib-select.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-separator.umd.js +1 -1
- package/bundles/pepperi-addons-ngx-lib-separator.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-side-bar.umd.js +1 -1
- package/bundles/pepperi-addons-ngx-lib-side-bar.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-signature.umd.js +1 -1
- package/bundles/pepperi-addons-ngx-lib-signature.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-slider.umd.js +1 -1
- package/bundles/pepperi-addons-ngx-lib-slider.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-smart-filters.umd.js +1 -1
- package/bundles/pepperi-addons-ngx-lib-smart-filters.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-textarea.umd.js +1 -1
- package/bundles/pepperi-addons-ngx-lib-textarea.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-textbox.umd.js +1 -1
- package/bundles/pepperi-addons-ngx-lib-textbox.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-top-bar.umd.js +1 -1
- package/bundles/pepperi-addons-ngx-lib-top-bar.umd.js.map +1 -1
- package/button/button.component.theme.scss +0 -2
- package/button/pepperi-addons-ngx-lib-button.metadata.json +1 -1
- package/checkbox/checkbox.component.theme.scss +0 -2
- package/checkbox/pepperi-addons-ngx-lib-checkbox.metadata.json +1 -1
- package/color/color-picker.component.theme.scss +122 -128
- package/color/color.component.theme.scss +0 -7
- package/color/pepperi-addons-ngx-lib-color.metadata.json +1 -1
- package/date/date.component.theme.scss +0 -169
- package/date/pepperi-addons-ngx-lib-date.metadata.json +1 -1
- package/dialog/dialog.component.theme.scss +4 -4
- package/dialog/pepperi-addons-ngx-lib-dialog.metadata.json +1 -1
- package/esm2015/address/address.component.js +2 -2
- package/esm2015/attachment/attachment.component.js +2 -2
- package/esm2015/bread-crumbs/bread-crumbs.component.js +2 -2
- package/esm2015/button/button.component.js +2 -2
- package/esm2015/checkbox/checkbox.component.js +2 -2
- package/esm2015/color/color-picker.component.js +2 -2
- package/esm2015/color/color.component.js +2 -2
- package/esm2015/date/date.component.js +2 -2
- package/esm2015/dialog/dialog.component.js +2 -2
- package/esm2015/field-title/field-title.component.js +2 -2
- package/esm2015/files-uploader/files-uploader.component.js +2 -2
- package/esm2015/form/indicators.component.js +2 -2
- package/esm2015/group-buttons/group-buttons.component.js +2 -2
- package/esm2015/image/image.component.js +2 -2
- package/esm2015/images-filmstrip/images-filmstrip.component.js +2 -2
- package/esm2015/list/list-total.component.js +2 -2
- package/esm2015/quantity-selector/quantity-selector.component.js +2 -2
- package/esm2015/query-builder/common/model/legacy.js +1 -1
- package/esm2015/query-builder/common/services/output-query.service.js +5 -5
- package/esm2015/query-builder/query-builder-item/query-builder-item.component.js +21 -14
- package/esm2015/query-builder/query-builder-section/query-builder-section.component.js +2 -2
- package/esm2015/query-builder/query-builder.service.js +2 -16
- package/esm2015/rich-html-textarea/rich-html-textarea.component.js +2 -2
- package/esm2015/select/select.component.js +2 -2
- package/esm2015/separator/separator.component.js +2 -2
- package/esm2015/side-bar/side-bar.component.js +2 -2
- package/esm2015/signature/signature.component.js +2 -2
- package/esm2015/slider/slider.component.js +2 -2
- package/esm2015/smart-filters/smart-filters.component.js +2 -2
- package/esm2015/textarea/textarea.component.js +2 -2
- package/esm2015/textbox/textbox.component.js +2 -2
- package/esm2015/top-bar/top-bar.component.js +2 -2
- package/fesm2015/pepperi-addons-ngx-lib-address.js +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-address.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-attachment.js +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-attachment.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-bread-crumbs.js +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-bread-crumbs.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-button.js +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-button.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-checkbox.js +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-checkbox.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-color.js +2 -2
- package/fesm2015/pepperi-addons-ngx-lib-color.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-date.js +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-date.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-dialog.js +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-dialog.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-field-title.js +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-field-title.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-files-uploader.js +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-files-uploader.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-form.js +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-form.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-group-buttons.js +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-group-buttons.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-image.js +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-image.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-images-filmstrip.js +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-images-filmstrip.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-list.js +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-list.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-quantity-selector.js +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-quantity-selector.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-query-builder.js +26 -33
- package/fesm2015/pepperi-addons-ngx-lib-query-builder.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-rich-html-textarea.js +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-rich-html-textarea.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-select.js +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-select.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-separator.js +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-separator.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-side-bar.js +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-side-bar.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-signature.js +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-signature.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-slider.js +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-slider.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-smart-filters.js +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-smart-filters.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-textarea.js +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-textarea.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-textbox.js +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-textbox.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-top-bar.js +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-top-bar.js.map +1 -1
- package/field-title/field-title.component.theme.scss +0 -2
- package/field-title/pepperi-addons-ngx-lib-field-title.metadata.json +1 -1
- package/files-uploader/files-uploader.component.theme.scss +0 -2
- package/files-uploader/pepperi-addons-ngx-lib-files-uploader.metadata.json +1 -1
- package/form/indicators.component.theme.scss +5 -5
- package/form/pepperi-addons-ngx-lib-form.metadata.json +1 -1
- package/group-buttons/group-buttons.component.theme.scss +11 -11
- package/group-buttons/pepperi-addons-ngx-lib-group-buttons.metadata.json +1 -1
- package/image/image.component.theme.scss +25 -27
- package/image/pepperi-addons-ngx-lib-image.metadata.json +1 -1
- package/images-filmstrip/images-filmstrip.component.theme.scss +27 -26
- package/images-filmstrip/pepperi-addons-ngx-lib-images-filmstrip.metadata.json +1 -1
- package/list/list-total.component.theme.scss +6 -6
- package/list/pepperi-addons-ngx-lib-list.metadata.json +1 -1
- package/package.json +5 -5
- package/page-layout/page-layout.component.theme.scss +6 -6
- package/quantity-selector/pepperi-addons-ngx-lib-quantity-selector.metadata.json +1 -1
- package/quantity-selector/quantity-selector.component.theme.scss +40 -40
- package/query-builder/common/model/legacy.d.ts +1 -1
- package/query-builder/pepperi-addons-ngx-lib-query-builder.metadata.json +1 -1
- package/query-builder/query-builder-item/query-builder-item.component.d.ts +5 -2
- package/query-builder/query-builder-section/query-builder-section.component.theme.scss +6 -5
- package/rich-html-textarea/pepperi-addons-ngx-lib-rich-html-textarea.metadata.json +1 -1
- package/rich-html-textarea/rich-html-textarea.component.theme.scss +182 -178
- package/select/pepperi-addons-ngx-lib-select.metadata.json +1 -1
- package/select/select.component.theme.scss +0 -2
- package/separator/pepperi-addons-ngx-lib-separator.metadata.json +1 -1
- package/separator/separator.component.theme.scss +1 -1
- package/side-bar/pepperi-addons-ngx-lib-side-bar.metadata.json +1 -1
- package/side-bar/side-bar.component.theme.scss +17 -16
- package/signature/pepperi-addons-ngx-lib-signature.metadata.json +1 -1
- package/signature/signature.component.theme.scss +1 -21
- package/slider/pepperi-addons-ngx-lib-slider.metadata.json +1 -1
- package/slider/slider.component.theme.scss +54 -53
- package/smart-filters/pepperi-addons-ngx-lib-smart-filters.metadata.json +1 -1
- package/smart-filters/smart-filters.component.theme.scss +6 -7
- package/src/core/style/abstracts/breakpoints.scss +4 -2
- package/src/core/style/abstracts/functions.scss +233 -216
- package/src/core/style/abstracts/mixins.scss +191 -188
- package/src/core/style/base/base.scss +125 -124
- package/src/core/style/base/grids.scss +1 -1
- package/src/core/style/base/typography.scss +66 -62
- package/src/core/style/components/button.scss +57 -60
- package/src/core/style/components/checkbox.scss +41 -38
- package/src/core/style/components/datetime.scss +161 -1
- package/src/core/style/components/file.scss +22 -18
- package/src/core/style/components/general.scss +185 -271
- package/src/core/style/components/input.scss +21 -17
- package/src/core/style/components/quantity-selector.scss +3 -0
- package/src/core/style/components/radio-button.scss +27 -24
- package/src/core/style/components/select.scss +29 -27
- package/src/core/style/components/signature.scss +4 -2
- package/src/core/style/components/splitter.scss +10 -7
- package/src/core/style/components/textarea.scss +8 -5
- package/textarea/pepperi-addons-ngx-lib-textarea.metadata.json +1 -1
- package/textarea/textarea.component.theme.scss +1 -1
- package/textbox/pepperi-addons-ngx-lib-textbox.metadata.json +1 -1
- package/textbox/textbox.component.theme.scss +1 -1
- package/theming.scss +50 -149
- package/top-bar/pepperi-addons-ngx-lib-top-bar.metadata.json +1 -1
- package/top-bar/top-bar.component.theme.scss +7 -7
- package/form/form.component.theme.scss +0 -2
- package/form/internal-button.component.theme.scss +0 -2
- package/form/internal-menu.component.theme.scss +0 -3
- package/list/list-actions.component.theme.scss +0 -3
- package/list/list-carousel.component.theme.scss +0 -9
- package/list/list-chooser.component.theme.scss +0 -3
- package/list/list-pager.component.theme.scss +0 -3
- package/list/list-sorting.component.theme.scss +0 -3
- package/list/list-views.component.theme.scss +0 -3
- package/list/list.component.theme.scss +0 -5
- package/list/list_old.component.theme.scss +0 -5
- package/menu/menu.component.theme.scss +0 -2
- package/search/search.component.theme.scss +0 -3
- package/textbox-icon/textbox-icon.component.theme.scss +0 -3
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use 'variables.scss';
|
|
2
|
+
@use 'functions.scss';
|
|
3
|
+
|
|
1
4
|
// -----------------------------------------------------------------------------
|
|
2
5
|
// This file contains all application-wide Sass mixins.
|
|
3
6
|
// -----------------------------------------------------------------------------
|
|
@@ -32,7 +35,7 @@
|
|
|
32
35
|
}
|
|
33
36
|
}
|
|
34
37
|
|
|
35
|
-
@mixin font($size: false, $weight: 400, $lh: false, $family:
|
|
38
|
+
@mixin font($size: false, $weight: 400, $lh: false, $family: variables.$font-family-body) {
|
|
36
39
|
font-family: $family;
|
|
37
40
|
|
|
38
41
|
@if $size {
|
|
@@ -48,7 +51,7 @@
|
|
|
48
51
|
}
|
|
49
52
|
}
|
|
50
53
|
|
|
51
|
-
@mixin pep-spacing-element-negative($add-important: true, $spacing-size:
|
|
54
|
+
@mixin pep-spacing-element-negative($add-important: true, $spacing-size: variables.$spacing-xs) {
|
|
52
55
|
@if ($add-important) {
|
|
53
56
|
margin-right: calc(#{$spacing-size} * -1) !important;
|
|
54
57
|
margin-left: calc(#{$spacing-size} * -1) !important;
|
|
@@ -58,7 +61,7 @@
|
|
|
58
61
|
}
|
|
59
62
|
}
|
|
60
63
|
|
|
61
|
-
@mixin pep-spacing-element($add-important: true, $spacing-size:
|
|
64
|
+
@mixin pep-spacing-element($add-important: true, $spacing-size: variables.$spacing-xs) {
|
|
62
65
|
@if ($add-important) {
|
|
63
66
|
margin-right: $spacing-size !important;
|
|
64
67
|
margin-left: $spacing-size !important;
|
|
@@ -190,15 +193,15 @@
|
|
|
190
193
|
}
|
|
191
194
|
}
|
|
192
195
|
|
|
193
|
-
@mixin font-title($fs:
|
|
194
|
-
font-family:
|
|
195
|
-
font-weight:
|
|
196
|
+
@mixin font-title($fs: variables.$fs-md, $lh: variables.$lh-md) {
|
|
197
|
+
font-family: variables.$font-family-title;
|
|
198
|
+
font-weight: variables.$font-weight-bold;
|
|
196
199
|
|
|
197
200
|
@include font-size($fs);
|
|
198
201
|
@include line-height($lh);
|
|
199
202
|
}
|
|
200
203
|
|
|
201
|
-
@mixin font-body($fs:
|
|
204
|
+
@mixin font-body($fs: variables.$fs-sm, $lh: variables.$lh-sm) {
|
|
202
205
|
@include font-size($fs);
|
|
203
206
|
@include line-height($lh);
|
|
204
207
|
}
|
|
@@ -222,8 +225,8 @@
|
|
|
222
225
|
}
|
|
223
226
|
}
|
|
224
227
|
|
|
225
|
-
@mixin pep-border($property, $
|
|
226
|
-
@include border($property, 1px, $style, get-pep-color(
|
|
228
|
+
@mixin pep-border($property, $style: solid, $important: false) {
|
|
229
|
+
@include border($property, 1px, $style, functions.get-pep-color(color-system-primary, color-tran-50), $important);
|
|
227
230
|
}
|
|
228
231
|
|
|
229
232
|
// Inline - this line face inward // This works only for buttons (and other objects that contains children).
|
|
@@ -235,7 +238,7 @@
|
|
|
235
238
|
|
|
236
239
|
// 👆 Requires parent element to be 'position: relative;'
|
|
237
240
|
&:after {
|
|
238
|
-
z-index:
|
|
241
|
+
z-index: variables.$z-index-lowest - 1;
|
|
239
242
|
content: "";
|
|
240
243
|
transition: all 0.25s; // same as 'pep-btn' @mixin
|
|
241
244
|
display: block;
|
|
@@ -252,33 +255,33 @@
|
|
|
252
255
|
|
|
253
256
|
@mixin fix-inline-z-index() {
|
|
254
257
|
// to fix the z-index in the inline &:after.
|
|
255
|
-
z-index:
|
|
258
|
+
z-index: variables.$z-index-lowest;
|
|
256
259
|
}
|
|
257
260
|
|
|
258
261
|
@mixin mat-badge-content() {
|
|
259
|
-
z-index:
|
|
262
|
+
z-index: variables.$z-index-medium - 3;
|
|
260
263
|
min-width: 1.5rem;
|
|
261
264
|
width: fit-content !important;
|
|
262
265
|
border-radius: 0.625rem;
|
|
263
266
|
padding: 0 0.5rem;
|
|
264
|
-
top: calc(#{
|
|
267
|
+
top: calc(#{variables.$spacing-sm} * -1) !important;
|
|
265
268
|
@include ellipsis();
|
|
266
269
|
max-width: inherit;
|
|
267
270
|
}
|
|
268
271
|
|
|
269
272
|
@mixin pep-top-bar-button() {
|
|
270
|
-
// margin-top:
|
|
271
|
-
height:
|
|
272
|
-
line-height:
|
|
273
|
+
// margin-top: variables.$spacing-xs;
|
|
274
|
+
height: variables.$top-bar-field-height;
|
|
275
|
+
line-height: variables.$top-bar-field-height;
|
|
273
276
|
}
|
|
274
277
|
|
|
275
|
-
@mixin pep-cross-hatch($
|
|
278
|
+
@mixin pep-cross-hatch($hex-color: null) {
|
|
276
279
|
$color-low-opacity: null;
|
|
277
280
|
$color-high-opacity: null;
|
|
278
281
|
|
|
279
282
|
@if ($hex-color == null) {
|
|
280
|
-
$color-low-opacity: get-pep-color(
|
|
281
|
-
$color-high-opacity: get-pep-color(
|
|
283
|
+
$color-low-opacity: functions.get-pep-color(color-system-caution, color-tran-0);
|
|
284
|
+
$color-high-opacity: functions.get-pep-color(color-system-caution, color-tran-60);
|
|
282
285
|
} @else {
|
|
283
286
|
$color-low-opacity: rgba($hex-color, 0);
|
|
284
287
|
$color-high-opacity: rgba($hex-color, 0.32)
|
|
@@ -303,9 +306,9 @@
|
|
|
303
306
|
// ******************************************************************************
|
|
304
307
|
// General state declerations
|
|
305
308
|
// ******************************************************************************
|
|
306
|
-
@mixin focus($
|
|
309
|
+
@mixin focus($add-important: false, $focus-color: null, $focus-size: variables.$spacing-xs) {
|
|
307
310
|
@if ($focus-color == null) {
|
|
308
|
-
$focus-color: get-pep-color(
|
|
311
|
+
$focus-color: functions.get-pep-color(color-text, color-link-focus);
|
|
309
312
|
}
|
|
310
313
|
|
|
311
314
|
@if ($add-important) {
|
|
@@ -315,18 +318,18 @@
|
|
|
315
318
|
}
|
|
316
319
|
}
|
|
317
320
|
|
|
318
|
-
@mixin state-error-wrapper(
|
|
319
|
-
border-radius:
|
|
320
|
-
background: get-pep-color(
|
|
321
|
-
box-shadow: get-pep-shadow(
|
|
321
|
+
@mixin state-error-wrapper() {
|
|
322
|
+
border-radius: variables.$border-radius-md;
|
|
323
|
+
background: functions.get-pep-color(color-system-caution, color-base);
|
|
324
|
+
box-shadow: functions.get-pep-shadow(shadow-xs, regular);
|
|
322
325
|
}
|
|
323
326
|
|
|
324
|
-
@mixin state-error(
|
|
325
|
-
background: get-pep-color(
|
|
326
|
-
border: 1px solid get-pep-color(
|
|
327
|
+
@mixin state-error() {
|
|
328
|
+
background: functions.get-pep-color(color-system-primary-invert, color-base);
|
|
329
|
+
border: 1px solid functions.get-pep-color(color-system-caution, color-base);
|
|
327
330
|
}
|
|
328
331
|
|
|
329
|
-
@mixin state-disabled(
|
|
332
|
+
@mixin state-disabled() {
|
|
330
333
|
// For remove all other states
|
|
331
334
|
box-shadow: unset;
|
|
332
335
|
border: unset;
|
|
@@ -336,30 +339,30 @@
|
|
|
336
339
|
}
|
|
337
340
|
|
|
338
341
|
.svg-icon {
|
|
339
|
-
@include state-icon-disabled(
|
|
342
|
+
@include state-icon-disabled();
|
|
340
343
|
}
|
|
341
344
|
}
|
|
342
345
|
|
|
343
346
|
// State icon
|
|
344
347
|
// ----------------------------------------------------------------------------------
|
|
345
|
-
@mixin state-icon(
|
|
346
|
-
@include svg-icon-color(get-pep-color(
|
|
348
|
+
@mixin state-icon() {
|
|
349
|
+
@include svg-icon-color(functions.get-pep-color(color-system-primary, color-tran-80));
|
|
347
350
|
|
|
348
351
|
&:hover {
|
|
349
|
-
@include svg-icon-color(get-pep-color(
|
|
352
|
+
@include svg-icon-color(functions.get-pep-color(color-system-primary, color-tran-90));
|
|
350
353
|
}
|
|
351
354
|
|
|
352
355
|
&:active {
|
|
353
|
-
@include svg-icon-color(get-pep-color(
|
|
356
|
+
@include svg-icon-color(functions.get-pep-color(color-system-primary, color-base));
|
|
354
357
|
}
|
|
355
358
|
|
|
356
359
|
&:disabled {
|
|
357
|
-
@include state-icon-disabled(
|
|
360
|
+
@include state-icon-disabled();
|
|
358
361
|
}
|
|
359
362
|
}
|
|
360
363
|
|
|
361
|
-
@mixin state-icon-disabled(
|
|
362
|
-
@include svg-icon-color(get-pep-color(
|
|
364
|
+
@mixin state-icon-disabled() {
|
|
365
|
+
@include svg-icon-color(functions.get-pep-color(color-text, color-disabled));
|
|
363
366
|
}
|
|
364
367
|
|
|
365
368
|
@mixin svg-icon-color($color) {
|
|
@@ -373,80 +376,80 @@
|
|
|
373
376
|
|
|
374
377
|
// State badge
|
|
375
378
|
// -----------------------------------------------------------------------------
|
|
376
|
-
@mixin pep-badge(
|
|
379
|
+
@mixin pep-badge() {
|
|
377
380
|
.mat-badge-content {
|
|
378
|
-
@include state-strong-default(
|
|
379
|
-
background-color: get-pep-color(
|
|
380
|
-
box-shadow: get-pep-shadow(
|
|
381
|
+
@include state-strong-default();
|
|
382
|
+
background-color: functions.get-pep-color(color-system-primary, color-base) !important;
|
|
383
|
+
box-shadow: functions.get-pep-shadow(shadow-sm, hard);
|
|
381
384
|
}
|
|
382
385
|
}
|
|
383
386
|
|
|
384
387
|
// ******************************************************************************
|
|
385
388
|
// State weak declerations
|
|
386
389
|
// ******************************************************************************
|
|
387
|
-
@mixin pep-state-default($
|
|
390
|
+
@mixin pep-state-default($style: weak, $color-name: null, $regularBorder: false) {
|
|
388
391
|
@if ($style == 'none') {
|
|
389
|
-
@include state-none-default(
|
|
392
|
+
@include state-none-default();
|
|
390
393
|
} @else if ($style == 'weak-invert') {
|
|
391
|
-
@include state-weak-invert-default(
|
|
394
|
+
@include state-weak-invert-default();
|
|
392
395
|
} @else if ($style == 'weak') {
|
|
393
|
-
@include state-weak-default($
|
|
396
|
+
@include state-weak-default($color-name);
|
|
394
397
|
} @else if ($style == 'strong') {
|
|
395
|
-
@include state-strong-default($
|
|
398
|
+
@include state-strong-default($color-name);
|
|
396
399
|
} @else { // regular.
|
|
397
|
-
@include state-regular-default($
|
|
400
|
+
@include state-regular-default($regularBorder, $color-name);
|
|
398
401
|
}
|
|
399
402
|
}
|
|
400
|
-
@mixin pep-state-disable($
|
|
403
|
+
@mixin pep-state-disable($style: weak, $color-name: null, $regularBorder: false) {
|
|
401
404
|
@if ($style == 'none') {
|
|
402
|
-
@include state-none-disable(
|
|
405
|
+
@include state-none-disable();
|
|
403
406
|
} @else if ($style == 'weak-invert') {
|
|
404
|
-
@include state-weak-invert-disable(
|
|
407
|
+
@include state-weak-invert-disable();
|
|
405
408
|
} @else if ($style == 'weak') {
|
|
406
|
-
@include state-weak-disable($
|
|
409
|
+
@include state-weak-disable($color-name);
|
|
407
410
|
} @else if ($style == 'strong') {
|
|
408
|
-
@include state-strong-disable($
|
|
411
|
+
@include state-strong-disable($color-name);
|
|
409
412
|
} @else { // regular.
|
|
410
|
-
@include state-regular-disable($
|
|
413
|
+
@include state-regular-disable($regularBorder, $color-name);
|
|
411
414
|
}
|
|
412
415
|
}
|
|
413
|
-
@mixin pep-state-hover($
|
|
416
|
+
@mixin pep-state-hover($style: weak, $color-name: null, $regularBorder: false) {
|
|
414
417
|
@if ($style == 'none') {
|
|
415
|
-
@include state-none-hover(
|
|
418
|
+
@include state-none-hover();
|
|
416
419
|
} @else if ($style == 'weak-invert') {
|
|
417
|
-
@include state-weak-invert-hover(
|
|
420
|
+
@include state-weak-invert-hover();
|
|
418
421
|
} @else if ($style == 'weak') {
|
|
419
|
-
@include state-weak-hover($
|
|
422
|
+
@include state-weak-hover($color-name);
|
|
420
423
|
} @else if ($style == 'strong') {
|
|
421
|
-
@include state-strong-hover($
|
|
424
|
+
@include state-strong-hover($color-name);
|
|
422
425
|
} @else { // regular.
|
|
423
|
-
@include state-regular-hover($
|
|
426
|
+
@include state-regular-hover($regularBorder, $color-name);
|
|
424
427
|
}
|
|
425
428
|
}
|
|
426
|
-
@mixin pep-state-active($
|
|
429
|
+
@mixin pep-state-active($style: weak, $color-name: null, $regularBorder: false) {
|
|
427
430
|
@if ($style == 'none') {
|
|
428
|
-
@include state-none-active(
|
|
431
|
+
@include state-none-active();
|
|
429
432
|
} @else if ($style == 'weak-invert') {
|
|
430
|
-
@include state-weak-invert-active(
|
|
433
|
+
@include state-weak-invert-active();
|
|
431
434
|
} @else if ($style == 'weak') {
|
|
432
|
-
@include state-weak-active($
|
|
435
|
+
@include state-weak-active($color-name);
|
|
433
436
|
} @else if ($style == 'strong') {
|
|
434
|
-
@include state-strong-active($
|
|
437
|
+
@include state-strong-active($color-name);
|
|
435
438
|
} @else { // regular.
|
|
436
|
-
@include state-regular-active($
|
|
439
|
+
@include state-regular-active($regularBorder, $color-name);
|
|
437
440
|
}
|
|
438
441
|
}
|
|
439
|
-
@mixin pep-state-focus($
|
|
442
|
+
@mixin pep-state-focus($style: weak, $color-name: null, $regularBorder: false) {
|
|
440
443
|
@if ($style == 'none') {
|
|
441
|
-
@include state-none-focus(
|
|
444
|
+
@include state-none-focus();
|
|
442
445
|
} @else if ($style == 'weak-invert') {
|
|
443
|
-
@include state-weak-invert-focus(
|
|
446
|
+
@include state-weak-invert-focus();
|
|
444
447
|
} @else if ($style == 'weak') {
|
|
445
|
-
@include state-weak-focus($
|
|
448
|
+
@include state-weak-focus($color-name);
|
|
446
449
|
} @else if ($style == 'strong') {
|
|
447
|
-
@include state-strong-focus($
|
|
450
|
+
@include state-strong-focus($color-name);
|
|
448
451
|
} @else { // regular.
|
|
449
|
-
@include state-regular-focus($
|
|
452
|
+
@include state-regular-focus($regularBorder, $color-name);
|
|
450
453
|
}
|
|
451
454
|
}
|
|
452
455
|
|
|
@@ -455,79 +458,79 @@
|
|
|
455
458
|
// ******************************************************************************
|
|
456
459
|
// Weak - default
|
|
457
460
|
// -----------------------------------------------------------------------------
|
|
458
|
-
@mixin state-weak-default($
|
|
461
|
+
@mixin state-weak-default($color-map-name: null) {
|
|
459
462
|
@if ($color-map-name == null) {
|
|
460
463
|
$color-map-name: color-weak;
|
|
461
464
|
}
|
|
462
|
-
background: get-pep-color($
|
|
465
|
+
background: functions.get-pep-color($color-map-name, color-tran-30);
|
|
463
466
|
}
|
|
464
|
-
@mixin state-weak-disable($
|
|
465
|
-
@include state-disabled(
|
|
467
|
+
@mixin state-weak-disable($color-map-name: null) {
|
|
468
|
+
@include state-disabled();
|
|
466
469
|
|
|
467
470
|
@if ($color-map-name == null) {
|
|
468
471
|
$color-map-name: color-weak;
|
|
469
472
|
}
|
|
470
|
-
color:get-pep-color(
|
|
471
|
-
background: get-pep-color($
|
|
473
|
+
color:functions.get-pep-color(color-text, color-disabled) !important;
|
|
474
|
+
background: functions.get-pep-color($color-map-name, color-tran-10) !important;
|
|
472
475
|
}
|
|
473
|
-
@mixin state-weak-hover($
|
|
476
|
+
@mixin state-weak-hover($color-map-name: null) {
|
|
474
477
|
@if ($color-map-name == null) {
|
|
475
478
|
$color-map-name: color-weak;
|
|
476
479
|
}
|
|
477
|
-
background: get-pep-color($
|
|
480
|
+
background: functions.get-pep-color($color-map-name, color-tran-40);
|
|
478
481
|
}
|
|
479
|
-
@mixin state-weak-active($
|
|
482
|
+
@mixin state-weak-active($color-map-name: null, $add-inline: true, $regularBorder: false) {
|
|
480
483
|
@if ($color-map-name == null) {
|
|
481
484
|
$color-map-name: color-weak;
|
|
482
485
|
}
|
|
483
486
|
|
|
484
487
|
&:not(.keep-background-on-focus) {
|
|
485
|
-
// background: get-pep-color($
|
|
486
|
-
background: get-pep-color(
|
|
488
|
+
// background: functions.get-pep-color($color-map-name, color-tran-0); // TODO: In Table view is gray so what sould we do ask Yonatan.
|
|
489
|
+
background: functions.get-pep-color(color-system-primary-invert, color-base);
|
|
487
490
|
}
|
|
488
491
|
|
|
489
|
-
box-shadow: get-pep-shadow(
|
|
492
|
+
box-shadow: functions.get-pep-shadow(shadow-xs, soft);
|
|
490
493
|
|
|
491
494
|
@if ($add-inline) {
|
|
492
|
-
@include inline(get-pep-color($
|
|
495
|
+
@include inline(functions.get-pep-color($color-map-name, color-base), 1px, solid, $regularBorder);
|
|
493
496
|
}
|
|
494
497
|
}
|
|
495
|
-
@mixin state-weak-focus($
|
|
496
|
-
// box-shadow: get-pep-shadow(
|
|
497
|
-
@include state-weak-active($
|
|
498
|
-
@include focus(
|
|
498
|
+
@mixin state-weak-focus($color-map-name: null, $add-inline: true, $regularBorder: false) {
|
|
499
|
+
// box-shadow: functions.get-pep-shadow(shadow-xs, soft);
|
|
500
|
+
@include state-weak-active($color-map-name, $add-inline, $regularBorder);
|
|
501
|
+
@include focus();
|
|
499
502
|
}
|
|
500
503
|
|
|
501
504
|
// Weak - invert
|
|
502
505
|
// -----------------------------------------------------------------------------
|
|
503
|
-
@mixin state-weak-invert-default(
|
|
504
|
-
background: get-pep-color(
|
|
506
|
+
@mixin state-weak-invert-default() {
|
|
507
|
+
background: functions.get-pep-color(color-system-primary-invert, color-tran-70);
|
|
505
508
|
|
|
506
|
-
// $color: get-pep-color(
|
|
509
|
+
// $color: functions.get-pep-color(color-text, color-main);
|
|
507
510
|
// color: $color;
|
|
508
511
|
|
|
509
512
|
// .svg-icon {
|
|
510
513
|
// fill: $color !important;
|
|
511
514
|
// }
|
|
512
515
|
}
|
|
513
|
-
@mixin state-weak-invert-disable(
|
|
514
|
-
@include state-disabled(
|
|
516
|
+
@mixin state-weak-invert-disable() {
|
|
517
|
+
@include state-disabled();
|
|
515
518
|
|
|
516
|
-
color:get-pep-color(
|
|
517
|
-
background: get-pep-color(
|
|
519
|
+
color:functions.get-pep-color(color-text, color-disabled) !important;
|
|
520
|
+
background: functions.get-pep-color(color-system-primary-invert, color-tran-20) !important;
|
|
518
521
|
}
|
|
519
|
-
@mixin state-weak-invert-hover(
|
|
520
|
-
background: get-pep-color(
|
|
521
|
-
box-shadow: get-pep-shadow(
|
|
522
|
+
@mixin state-weak-invert-hover() {
|
|
523
|
+
background: functions.get-pep-color(color-system-primary-invert, color-tran-70);
|
|
524
|
+
box-shadow: functions.get-pep-shadow(shadow-xs, soft);
|
|
522
525
|
cursor: pointer;
|
|
523
526
|
}
|
|
524
|
-
@mixin state-weak-invert-active(
|
|
525
|
-
background: get-pep-color(
|
|
526
|
-
box-shadow: get-pep-shadow(
|
|
527
|
+
@mixin state-weak-invert-active() {
|
|
528
|
+
background: functions.get-pep-color(color-system-primary-invert, color-base);
|
|
529
|
+
box-shadow: functions.get-pep-shadow(shadow-xs, regular);
|
|
527
530
|
}
|
|
528
|
-
@mixin state-weak-invert-focus(
|
|
529
|
-
background: get-pep-color(
|
|
530
|
-
@include focus(
|
|
531
|
+
@mixin state-weak-invert-focus() {
|
|
532
|
+
background: functions.get-pep-color(color-system-primary-invert, color-base);
|
|
533
|
+
@include focus();
|
|
531
534
|
}
|
|
532
535
|
|
|
533
536
|
// ******************************************************************************
|
|
@@ -535,54 +538,54 @@
|
|
|
535
538
|
// ******************************************************************************
|
|
536
539
|
// Regular - default
|
|
537
540
|
// -----------------------------------------------------------------------------
|
|
538
|
-
@mixin state-regular-default($
|
|
541
|
+
@mixin state-regular-default($regularBorder: false, $color-map-name: null) {
|
|
539
542
|
@if ($color-map-name == null) {
|
|
540
543
|
$color-map-name: color-regular;
|
|
541
544
|
}
|
|
542
|
-
background: get-pep-color($
|
|
543
|
-
box-shadow: get-pep-shadow(
|
|
544
|
-
@include inline(get-pep-color($
|
|
545
|
+
background: functions.get-pep-color($color-map-name, color-flat-r-40);
|
|
546
|
+
box-shadow: functions.get-pep-shadow(shadow-xs, soft);
|
|
547
|
+
@include inline(functions.get-pep-color($color-map-name, color-flat-r-20), 1px, solid, $regularBorder);
|
|
545
548
|
}
|
|
546
|
-
@mixin state-regular-hover($
|
|
549
|
+
@mixin state-regular-hover($regularBorder: false, $color-map-name: null) {
|
|
547
550
|
@if ($color-map-name == null) {
|
|
548
551
|
$color-map-name: color-regular;
|
|
549
552
|
}
|
|
550
|
-
background: get-pep-color($
|
|
551
|
-
box-shadow: get-pep-shadow(
|
|
552
|
-
@include inline(get-pep-color($
|
|
553
|
+
background: functions.get-pep-color($color-map-name, color-flat-r-40);
|
|
554
|
+
box-shadow: functions.get-pep-shadow(shadow-xs, regular);
|
|
555
|
+
@include inline(functions.get-pep-color($color-map-name, color-flat-r-10), 1px, solid, $regularBorder);
|
|
553
556
|
}
|
|
554
|
-
@mixin state-regular-active($
|
|
557
|
+
@mixin state-regular-active($regularBorder: false, $color-map-name: null) {
|
|
555
558
|
@if ($color-map-name == null) {
|
|
556
559
|
$color-map-name: color-regular;
|
|
557
560
|
}
|
|
558
|
-
background: get-pep-color($
|
|
559
|
-
box-shadow: get-pep-shadow(
|
|
560
|
-
@include inline(get-pep-color($
|
|
561
|
+
background: functions.get-pep-color($color-map-name, color-flat-r-30);
|
|
562
|
+
box-shadow: functions.get-pep-shadow(shadow-xs, hard);
|
|
563
|
+
@include inline(functions.get-pep-color($color-map-name, color-base), 1px, solid, $regularBorder);
|
|
561
564
|
|
|
562
565
|
// @if $regularBorder {
|
|
563
566
|
// } @else {
|
|
564
|
-
// @include focus(
|
|
567
|
+
// @include focus();
|
|
565
568
|
// }
|
|
566
569
|
}
|
|
567
|
-
@mixin state-regular-focus($
|
|
570
|
+
@mixin state-regular-focus($regularBorder: false, $color-map-name: null) {
|
|
568
571
|
@if ($color-map-name == null) {
|
|
569
572
|
$color-map-name: color-regular;
|
|
570
573
|
}
|
|
571
|
-
background: get-pep-color($
|
|
572
|
-
box-shadow: get-pep-shadow(
|
|
573
|
-
@include inline(get-pep-color($
|
|
574
|
-
@include focus(
|
|
574
|
+
background: functions.get-pep-color($color-map-name, color-flat-r-30);
|
|
575
|
+
box-shadow: functions.get-pep-shadow(shadow-xs, regular);
|
|
576
|
+
@include inline(functions.get-pep-color($color-map-name, color-base), 1px, solid, $regularBorder);
|
|
577
|
+
@include focus();
|
|
575
578
|
}
|
|
576
|
-
@mixin state-regular-disable($
|
|
577
|
-
@include state-disabled(
|
|
579
|
+
@mixin state-regular-disable($regularBorder: false, $color-map-name: null) {
|
|
580
|
+
@include state-disabled();
|
|
578
581
|
|
|
579
582
|
@if ($color-map-name == null) {
|
|
580
583
|
$color-map-name: color-regular;
|
|
581
584
|
}
|
|
582
|
-
color:get-pep-color(
|
|
583
|
-
background: get-pep-color($
|
|
584
|
-
box-shadow: get-pep-shadow(
|
|
585
|
-
@include inline(get-pep-color($
|
|
585
|
+
color:functions.get-pep-color(color-text, color-disabled) !important;
|
|
586
|
+
background: functions.get-pep-color($color-map-name, color-flat-r-30) !important;
|
|
587
|
+
box-shadow: functions.get-pep-shadow(shadow-xs, xsoft) !important;
|
|
588
|
+
@include inline(functions.get-pep-color($color-map-name, color-tran-20), 1px, solid, $regularBorder);
|
|
586
589
|
}
|
|
587
590
|
|
|
588
591
|
// ******************************************************************************
|
|
@@ -590,59 +593,59 @@
|
|
|
590
593
|
// ******************************************************************************
|
|
591
594
|
// Strong - default
|
|
592
595
|
// -----------------------------------------------------------------------------
|
|
593
|
-
@mixin state-strong-default($
|
|
596
|
+
@mixin state-strong-default($color-map-name: null) {
|
|
594
597
|
@if ($color-map-name == null) {
|
|
595
598
|
$color-map-name: color-strong;
|
|
596
599
|
}
|
|
597
600
|
|
|
598
|
-
font-weight:
|
|
599
|
-
background: get-pep-color($
|
|
600
|
-
box-shadow: get-pep-shadow(
|
|
601
|
+
font-weight: variables.$font-weight-bold;
|
|
602
|
+
background: functions.get-pep-color($color-map-name, color-base);
|
|
603
|
+
box-shadow: functions.get-pep-shadow(shadow-sm, soft);
|
|
601
604
|
|
|
602
|
-
$color: get-pep-color(
|
|
605
|
+
$color: functions.get-pep-color(color-text, color-invert);
|
|
603
606
|
|
|
604
607
|
color: $color;
|
|
605
608
|
.svg-icon {
|
|
606
609
|
@include svg-icon-color($color);
|
|
607
610
|
}
|
|
608
611
|
}
|
|
609
|
-
@mixin state-strong-disable($
|
|
610
|
-
@include state-disabled(
|
|
612
|
+
@mixin state-strong-disable($color-map-name: null) {
|
|
613
|
+
@include state-disabled();
|
|
611
614
|
|
|
612
615
|
@if ($color-map-name == null) {
|
|
613
616
|
$color-map-name: color-strong;
|
|
614
617
|
}
|
|
615
|
-
background: get-pep-color($
|
|
618
|
+
background: functions.get-pep-color($color-map-name, color-base) !important;
|
|
616
619
|
opacity: 0.5 !important;
|
|
617
620
|
|
|
618
|
-
$color: get-pep-color(
|
|
621
|
+
$color: functions.get-pep-color(color-text, color-invert);
|
|
619
622
|
|
|
620
623
|
color: $color;
|
|
621
624
|
.svg-icon {
|
|
622
625
|
@include svg-icon-color($color);
|
|
623
626
|
}
|
|
624
627
|
}
|
|
625
|
-
@mixin state-strong-hover($
|
|
628
|
+
@mixin state-strong-hover($color-map-name: null) {
|
|
626
629
|
@if ($color-map-name == null) {
|
|
627
630
|
$color-map-name: color-strong;
|
|
628
631
|
}
|
|
629
|
-
background: get-pep-color($
|
|
630
|
-
box-shadow: get-pep-shadow(
|
|
632
|
+
background: functions.get-pep-color($color-map-name, color-flat-l-10);
|
|
633
|
+
box-shadow: functions.get-pep-shadow(shadow-sm, regular);
|
|
631
634
|
}
|
|
632
|
-
@mixin state-strong-active($
|
|
635
|
+
@mixin state-strong-active($color-map-name: null) {
|
|
633
636
|
@if ($color-map-name == null) {
|
|
634
637
|
$color-map-name: color-strong;
|
|
635
638
|
}
|
|
636
|
-
background: get-pep-color($
|
|
637
|
-
box-shadow: get-pep-shadow(
|
|
639
|
+
background: functions.get-pep-color($color-map-name, color-flat-l-20);
|
|
640
|
+
box-shadow: functions.get-pep-shadow(shadow-sm, hard);
|
|
638
641
|
}
|
|
639
|
-
@mixin state-strong-focus($
|
|
642
|
+
@mixin state-strong-focus($color-map-name: null) {
|
|
640
643
|
@if ($color-map-name == null) {
|
|
641
644
|
$color-map-name: color-strong;
|
|
642
645
|
}
|
|
643
|
-
background: get-pep-color($
|
|
644
|
-
box-shadow: get-pep-shadow(
|
|
645
|
-
@include focus(
|
|
646
|
+
background: functions.get-pep-color($color-map-name, color-flat-l-20);
|
|
647
|
+
box-shadow: functions.get-pep-shadow(shadow-sm, soft);
|
|
648
|
+
@include focus();
|
|
646
649
|
}
|
|
647
650
|
|
|
648
651
|
// ******************************************************************************
|
|
@@ -650,40 +653,40 @@
|
|
|
650
653
|
// ******************************************************************************
|
|
651
654
|
// None - default
|
|
652
655
|
// -----------------------------------------------------------------------------
|
|
653
|
-
@mixin state-none-default(
|
|
654
|
-
background: get-pep-color(
|
|
656
|
+
@mixin state-none-default() {
|
|
657
|
+
background: functions.get-pep-color(color-system-primary, color-tran-0);
|
|
655
658
|
}
|
|
656
|
-
@mixin state-none-disable(
|
|
657
|
-
@include state-disabled(
|
|
658
|
-
background: get-pep-color(
|
|
659
|
+
@mixin state-none-disable() {
|
|
660
|
+
@include state-disabled();
|
|
661
|
+
background: functions.get-pep-color(color-system-primary, color-tran-0) !important;
|
|
659
662
|
}
|
|
660
|
-
@mixin state-none-hover(
|
|
661
|
-
@include state-weak-hover(
|
|
663
|
+
@mixin state-none-hover() {
|
|
664
|
+
@include state-weak-hover();
|
|
662
665
|
}
|
|
663
|
-
@mixin state-none-active(
|
|
664
|
-
@include state-weak-active(
|
|
666
|
+
@mixin state-none-active() {
|
|
667
|
+
@include state-weak-active();
|
|
665
668
|
}
|
|
666
|
-
@mixin state-none-focus(
|
|
667
|
-
@include state-weak-focus(
|
|
669
|
+
@mixin state-none-focus() {
|
|
670
|
+
@include state-weak-focus();
|
|
668
671
|
}
|
|
669
672
|
|
|
670
673
|
// ******************************************************************************
|
|
671
674
|
// Buttons states declerations
|
|
672
675
|
// ******************************************************************************
|
|
673
|
-
@mixin pep-button-states($
|
|
674
|
-
@include pep-state-default($
|
|
676
|
+
@mixin pep-button-states($style: weak, $color-name: null) {
|
|
677
|
+
@include pep-state-default($style, $color-name, true);
|
|
675
678
|
&:hover {
|
|
676
|
-
@include pep-state-hover($
|
|
679
|
+
@include pep-state-hover($style, $color-name, true);
|
|
677
680
|
}
|
|
678
681
|
&:focus {
|
|
679
|
-
@include pep-state-focus($
|
|
682
|
+
@include pep-state-focus($style, $color-name, true);
|
|
680
683
|
}
|
|
681
684
|
&:active {
|
|
682
|
-
@include pep-state-active($
|
|
685
|
+
@include pep-state-active($style, $color-name, true);
|
|
683
686
|
}
|
|
684
687
|
&:disabled {
|
|
685
688
|
&:not(.ignore-disabled) {
|
|
686
|
-
@include pep-state-disable($
|
|
689
|
+
@include pep-state-disable($style, $color-name, true);
|
|
687
690
|
}
|
|
688
691
|
}
|
|
689
692
|
}
|
|
@@ -691,10 +694,10 @@
|
|
|
691
694
|
// ******************************************************************************
|
|
692
695
|
// Form field states declerations
|
|
693
696
|
// ******************************************************************************
|
|
694
|
-
@mixin pep-form-field-states($
|
|
697
|
+
@mixin pep-form-field-states($style: weak, $color-name: null) {
|
|
695
698
|
// Default
|
|
696
699
|
.mat-form-field-flex {
|
|
697
|
-
@include pep-state-default($
|
|
700
|
+
@include pep-state-default($style, $color-name);
|
|
698
701
|
}
|
|
699
702
|
|
|
700
703
|
// Hover
|
|
@@ -702,7 +705,7 @@
|
|
|
702
705
|
.ignore-disabled,
|
|
703
706
|
&:not(.mat-form-field-disabled) {
|
|
704
707
|
.mat-form-field-flex {
|
|
705
|
-
@include pep-state-hover($
|
|
708
|
+
@include pep-state-hover($style, $color-name);
|
|
706
709
|
}
|
|
707
710
|
}
|
|
708
711
|
}
|
|
@@ -712,7 +715,7 @@
|
|
|
712
715
|
.ignore-disabled,
|
|
713
716
|
&:not(.mat-form-field-disabled) {
|
|
714
717
|
.mat-form-field-flex {
|
|
715
|
-
@include pep-state-focus($
|
|
718
|
+
@include pep-state-focus($style, $color-name);
|
|
716
719
|
}
|
|
717
720
|
}
|
|
718
721
|
}
|
|
@@ -723,7 +726,7 @@
|
|
|
723
726
|
.ignore-disabled,
|
|
724
727
|
&:not(.mat-form-field-disabled) {
|
|
725
728
|
.mat-form-field-flex {
|
|
726
|
-
@include pep-state-active($
|
|
729
|
+
@include pep-state-active($style, $color-name);
|
|
727
730
|
}
|
|
728
731
|
}
|
|
729
732
|
}
|
|
@@ -732,7 +735,7 @@
|
|
|
732
735
|
&.mat-form-field-disabled {
|
|
733
736
|
&:not(.ignore-disabled) {
|
|
734
737
|
.mat-form-field-flex {
|
|
735
|
-
@include pep-state-disable($
|
|
738
|
+
@include pep-state-disable($style, $color-name);
|
|
736
739
|
}
|
|
737
740
|
}
|
|
738
741
|
}
|
|
@@ -741,45 +744,45 @@
|
|
|
741
744
|
// ******************************************************************************
|
|
742
745
|
// Table states declerations
|
|
743
746
|
// ******************************************************************************
|
|
744
|
-
@mixin state-table-row-default(
|
|
747
|
+
@mixin state-table-row-default() {
|
|
745
748
|
|
|
746
749
|
}
|
|
747
|
-
@mixin state-table-row-hover(
|
|
748
|
-
background: get-pep-color(
|
|
750
|
+
@mixin state-table-row-hover() {
|
|
751
|
+
background: functions.get-pep-color(color-weak, color-tran-30);
|
|
749
752
|
}
|
|
750
|
-
@mixin state-table-row-active(
|
|
753
|
+
@mixin state-table-row-active() {
|
|
751
754
|
|
|
752
755
|
}
|
|
753
|
-
@mixin state-table-row-selected(
|
|
754
|
-
background: get-pep-color(
|
|
756
|
+
@mixin state-table-row-selected() {
|
|
757
|
+
background: functions.get-pep-color(color-system-success, color-tran-20);
|
|
755
758
|
}
|
|
756
759
|
|
|
757
760
|
// ******************************************************************************
|
|
758
761
|
// Card states declerations
|
|
759
762
|
// ******************************************************************************
|
|
760
|
-
@mixin state-card-default(
|
|
761
|
-
background: get-pep-color(
|
|
762
|
-
box-shadow: get-pep-shadow(
|
|
763
|
+
@mixin state-card-default() {
|
|
764
|
+
background: functions.get-pep-color(color-system-primary-invert, color-base);
|
|
765
|
+
box-shadow: functions.get-pep-shadow(shadow-card, soft);
|
|
763
766
|
|
|
764
767
|
transition: box-shadow 0.25s;
|
|
765
768
|
}
|
|
766
|
-
@mixin state-card-hover(
|
|
767
|
-
box-shadow: get-pep-shadow(
|
|
769
|
+
@mixin state-card-hover() {
|
|
770
|
+
box-shadow: functions.get-pep-shadow(shadow-card, regular);
|
|
768
771
|
}
|
|
769
|
-
@mixin state-card-active(
|
|
770
|
-
box-shadow: get-pep-shadow(
|
|
771
|
-
// @include focus(
|
|
772
|
+
@mixin state-card-active() {
|
|
773
|
+
box-shadow: functions.get-pep-shadow(shadow-card, hard);
|
|
774
|
+
// @include focus();
|
|
772
775
|
}
|
|
773
|
-
@mixin state-card-selected(
|
|
774
|
-
background: get-pep-color(
|
|
776
|
+
@mixin state-card-selected() {
|
|
777
|
+
background: functions.get-pep-color(color-system-success, color-tran-20);;
|
|
775
778
|
box-shadow: none;
|
|
776
779
|
}
|
|
777
780
|
|
|
778
781
|
// ******************************************************************************
|
|
779
782
|
// General List declerations
|
|
780
783
|
// ******************************************************************************
|
|
781
|
-
@mixin state-list-body-default(
|
|
782
|
-
background: get-pep-color(
|
|
784
|
+
@mixin state-list-body-default() {
|
|
785
|
+
background: functions.get-pep-color(color-system-primary-invert, color-base);
|
|
783
786
|
}
|
|
784
787
|
|
|
785
788
|
// ******************************************************************************
|