ngwr 7.2.0 → 8.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/README.md +8 -7
- package/alert/styles/_index.scss +44 -17
- package/avatar/styles/_index.scss +2 -2
- package/badge/styles/_index.scss +11 -7
- package/badge/styles/_tag.scss +1 -1
- package/bar-chart/styles/_index.scss +1 -2
- package/breadcrumbs/styles/_index.scss +4 -2
- package/burger/styles/_index.scss +2 -2
- package/button/styles/_index.scss +30 -20
- package/calendar/styles/_index.scss +11 -9
- package/calendar-heatmap/styles/_index.scss +2 -0
- package/card/styles/_index.scss +1 -1
- package/carousel/styles/_index.scss +3 -1
- package/cascader/styles/_index.scss +54 -14
- package/checkbox/styles/_index.scss +21 -4
- package/collapse/styles/_index.scss +1 -1
- package/color-picker/styles/_index.scss +18 -12
- package/command-palette/styles/_index.scss +3 -3
- package/compare/styles/_index.scss +3 -3
- package/context-menu/styles/_index.scss +1 -1
- package/date-picker/styles/_index.scss +5 -6
- package/density/styles/_index.scss +13 -3
- package/dialog/styles/_index.scss +3 -3
- package/divider/styles/_index.scss +1 -1
- package/drawer/styles/_index.scss +13 -11
- package/dropdown/styles/_index.scss +2 -2
- package/fesm2022/ngwr-affix.mjs +3 -3
- package/fesm2022/ngwr-alert.mjs +22 -10
- package/fesm2022/ngwr-alert.mjs.map +1 -1
- package/fesm2022/ngwr-anchor.mjs +3 -3
- package/fesm2022/ngwr-aurora.mjs +3 -3
- package/fesm2022/ngwr-avatar.mjs +3 -3
- package/fesm2022/ngwr-back-top.mjs +3 -3
- package/fesm2022/ngwr-badge.mjs +6 -6
- package/fesm2022/ngwr-bar-chart.mjs +3 -3
- package/fesm2022/ngwr-blur-text.mjs +3 -3
- package/fesm2022/ngwr-border-glow.mjs +3 -3
- package/fesm2022/ngwr-breadcrumbs.mjs +7 -7
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-burger.mjs +3 -3
- package/fesm2022/ngwr-button.mjs +6 -6
- package/fesm2022/ngwr-calendar-heatmap.mjs +3 -3
- package/fesm2022/ngwr-calendar.mjs +4 -4
- package/fesm2022/ngwr-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-card.mjs +10 -10
- package/fesm2022/ngwr-card.mjs.map +1 -1
- package/fesm2022/ngwr-carousel.mjs +50 -9
- package/fesm2022/ngwr-carousel.mjs.map +1 -1
- package/fesm2022/ngwr-cascader.mjs +12 -35
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-checkbox.mjs +13 -30
- package/fesm2022/ngwr-checkbox.mjs.map +1 -1
- package/fesm2022/ngwr-circular-text.mjs +3 -3
- package/fesm2022/ngwr-click-spark.mjs +25 -6
- package/fesm2022/ngwr-click-spark.mjs.map +1 -1
- package/fesm2022/ngwr-clipboard.mjs +27 -6
- package/fesm2022/ngwr-clipboard.mjs.map +1 -1
- package/fesm2022/ngwr-collapse.mjs +9 -9
- package/fesm2022/ngwr-color-picker.mjs +7 -7
- package/fesm2022/ngwr-color-picker.mjs.map +1 -1
- package/fesm2022/ngwr-command-palette.mjs +3 -3
- package/fesm2022/ngwr-compare.mjs +3 -3
- package/fesm2022/ngwr-confetti.mjs +3 -3
- package/fesm2022/ngwr-context-menu.mjs +39 -15
- package/fesm2022/ngwr-context-menu.mjs.map +1 -1
- package/fesm2022/ngwr-cookie.mjs +3 -3
- package/fesm2022/ngwr-counter.mjs +12 -8
- package/fesm2022/ngwr-counter.mjs.map +1 -1
- package/fesm2022/ngwr-date-adapter-fns.mjs +3 -3
- package/fesm2022/ngwr-date-adapter-luxon.mjs +3 -3
- package/fesm2022/ngwr-date-adapter.mjs +3 -3
- package/fesm2022/ngwr-date-picker.mjs +25 -11
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-decrypt-text.mjs +3 -3
- package/fesm2022/ngwr-density.mjs +14 -14
- package/fesm2022/ngwr-density.mjs.map +1 -1
- package/fesm2022/ngwr-descriptions.mjs +6 -6
- package/fesm2022/ngwr-dialog.mjs +15 -15
- package/fesm2022/ngwr-directives.mjs +15 -87
- package/fesm2022/ngwr-directives.mjs.map +1 -1
- package/fesm2022/ngwr-divider.mjs +3 -3
- package/fesm2022/ngwr-donut-chart.mjs +10 -4
- package/fesm2022/ngwr-donut-chart.mjs.map +1 -1
- package/fesm2022/ngwr-drag-drop.mjs +18 -8
- package/fesm2022/ngwr-drag-drop.mjs.map +1 -1
- package/fesm2022/ngwr-drawer.mjs +80 -19
- package/fesm2022/ngwr-drawer.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +9 -9
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-empty.mjs +3 -3
- package/fesm2022/ngwr-falling-text.mjs +3 -3
- package/fesm2022/ngwr-file-upload.mjs +3 -3
- package/fesm2022/ngwr-form.mjs +9 -9
- package/fesm2022/ngwr-fuzzy-text.mjs +8 -7
- package/fesm2022/ngwr-fuzzy-text.mjs.map +1 -1
- package/fesm2022/ngwr-gauge.mjs +3 -3
- package/fesm2022/ngwr-glitch-text.mjs +15 -7
- package/fesm2022/ngwr-glitch-text.mjs.map +1 -1
- package/fesm2022/ngwr-gradient-text.mjs +3 -3
- package/fesm2022/ngwr-hotkey.mjs +6 -6
- package/fesm2022/ngwr-i18n.mjs +9 -9
- package/fesm2022/ngwr-icon.mjs +3 -3
- package/fesm2022/ngwr-image-cropper.mjs +3 -3
- package/fesm2022/ngwr-input-number.mjs +4 -4
- package/fesm2022/ngwr-input-number.mjs.map +1 -1
- package/fesm2022/ngwr-input-otp.mjs +10 -4
- package/fesm2022/ngwr-input-otp.mjs.map +1 -1
- package/fesm2022/ngwr-input.mjs +25 -16
- package/fesm2022/ngwr-input.mjs.map +1 -1
- package/fesm2022/ngwr-keyboard.mjs +3 -3
- package/fesm2022/ngwr-knob.mjs +3 -3
- package/fesm2022/ngwr-layout.mjs +15 -15
- package/fesm2022/ngwr-lightbox.mjs +60 -5
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-line-chart.mjs +3 -3
- package/fesm2022/ngwr-list.mjs +7 -7
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-loading-bar.mjs +6 -6
- package/fesm2022/ngwr-marquee.mjs +3 -3
- package/fesm2022/ngwr-media.mjs +3 -3
- package/fesm2022/ngwr-mention.mjs +6 -6
- package/fesm2022/ngwr-meta.mjs +6 -6
- package/fesm2022/ngwr-meter-group.mjs +3 -3
- package/fesm2022/ngwr-overlay.mjs +3 -3
- package/fesm2022/ngwr-page-header.mjs +3 -3
- package/fesm2022/ngwr-pagination.mjs +14 -16
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +21 -21
- package/fesm2022/ngwr-platform.mjs +3 -3
- package/fesm2022/ngwr-popconfirm.mjs +6 -6
- package/fesm2022/ngwr-popover.mjs +6 -6
- package/fesm2022/ngwr-progress.mjs +3 -3
- package/fesm2022/ngwr-qr.mjs +3 -3
- package/fesm2022/ngwr-radio.mjs +28 -26
- package/fesm2022/ngwr-radio.mjs.map +1 -1
- package/fesm2022/ngwr-rating.mjs +12 -23
- package/fesm2022/ngwr-rating.mjs.map +1 -1
- package/fesm2022/ngwr-result.mjs +12 -12
- package/fesm2022/ngwr-rotating-text.mjs +18 -7
- package/fesm2022/ngwr-rotating-text.mjs.map +1 -1
- package/fesm2022/ngwr-scroll.mjs +3 -3
- package/fesm2022/ngwr-segmented.mjs +10 -22
- package/fesm2022/ngwr-segmented.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +26 -13
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-shiny-text.mjs +6 -6
- package/fesm2022/ngwr-sidebar.mjs +3 -3
- package/fesm2022/ngwr-skeleton.mjs +3 -3
- package/fesm2022/ngwr-slider.mjs +3 -3
- package/fesm2022/ngwr-sparkline.mjs +3 -3
- package/fesm2022/ngwr-speed-dial.mjs +3 -3
- package/fesm2022/ngwr-spinner.mjs +3 -3
- package/fesm2022/ngwr-splash-cursor.mjs +3 -3
- package/fesm2022/ngwr-split-text.mjs +3 -3
- package/fesm2022/ngwr-splitter.mjs +3 -3
- package/fesm2022/ngwr-spotlight-card.mjs +8 -8
- package/fesm2022/ngwr-spotlight-card.mjs.map +1 -1
- package/fesm2022/ngwr-squircle.mjs +6 -6
- package/fesm2022/ngwr-star-border.mjs +3 -3
- package/fesm2022/ngwr-statistic.mjs +79 -10
- package/fesm2022/ngwr-statistic.mjs.map +1 -1
- package/fesm2022/ngwr-stepper.mjs +6 -6
- package/fesm2022/ngwr-storage.mjs +3 -3
- package/fesm2022/ngwr-switch.mjs +10 -14
- package/fesm2022/ngwr-switch.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +20 -14
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tabs.mjs +45 -11
- package/fesm2022/ngwr-tabs.mjs.map +1 -1
- package/fesm2022/ngwr-textarea.mjs +84 -25
- package/fesm2022/ngwr-textarea.mjs.map +1 -1
- package/fesm2022/ngwr-theme.mjs +3 -3
- package/fesm2022/ngwr-tilt-card.mjs +6 -6
- package/fesm2022/ngwr-timeline.mjs +6 -6
- package/fesm2022/ngwr-toast.mjs +99 -25
- package/fesm2022/ngwr-toast.mjs.map +1 -1
- package/fesm2022/ngwr-toolbar.mjs +13 -6
- package/fesm2022/ngwr-toolbar.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +3 -3
- package/fesm2022/ngwr-typewriter.mjs +3 -3
- package/fesm2022/ngwr-typography.mjs +3 -3
- package/fesm2022/ngwr-validators.mjs +41 -3
- package/fesm2022/ngwr-validators.mjs.map +1 -1
- package/fesm2022/ngwr-version.mjs +1 -1
- package/fesm2022/ngwr-version.mjs.map +1 -1
- package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
- package/fesm2022/ngwr-waves.mjs +3 -3
- package/fesm2022/ngwr-window.mjs +12 -12
- package/file-upload/styles/_index.scss +3 -3
- package/form/styles/_index.scss +5 -5
- package/glitch-text/styles/_index.scss +3 -6
- package/image-cropper/styles/_index.scss +3 -3
- package/input/styles/_index.scss +26 -7
- package/input-otp/styles/_index.scss +23 -5
- package/keyboard/styles/_index.scss +6 -4
- package/knob/styles/_index.scss +1 -1
- package/lightbox/styles/_index.scss +31 -10
- package/list/styles/_index.scss +3 -3
- package/llms-full.txt +668 -0
- package/llms.txt +106 -0
- package/mention/styles/_index.scss +2 -2
- package/overlay/styles/_index.scss +1 -1
- package/package.json +1 -6
- package/pagination/styles/_index.scss +36 -25
- package/popconfirm/styles/_index.scss +1 -1
- package/popover/styles/_index.scss +2 -2
- package/radio/styles/_index.scss +20 -5
- package/rating/styles/_index.scss +12 -1
- package/schematics/migrations/v8/index.js +122 -0
- package/schematics/migrations.json +5 -0
- package/schematics/ng-add/index.js +3 -3
- package/schematics/ng-add/schema.json +6 -6
- package/schematics/provider/schema.json +1 -1
- package/schematics/use/symbol-map.json +11 -2
- package/segmented/styles/_index.scss +31 -8
- package/select/styles/_index.scss +73 -25
- package/sidebar/styles/_index.scss +3 -3
- package/slider/styles/_index.scss +5 -3
- package/speed-dial/styles/_index.scss +1 -0
- package/splitter/styles/_index.scss +7 -4
- package/spotlight-card/styles/_index.scss +8 -4
- package/stepper/styles/_index.scss +4 -4
- package/styles/_animations.scss +0 -23
- package/styles.scss +0 -1
- package/switch/styles/_index.scss +25 -6
- package/table/styles/_index.scss +69 -8
- package/tabs/styles/_index.scss +46 -3
- package/textarea/styles/_index.scss +59 -4
- package/theme/styles/_colors.scss +57 -0
- package/theme/styles/_dark.scss +22 -8
- package/theme/styles/_focus.scss +5 -0
- package/theme/styles/_variables.scss +24 -0
- package/timeline/styles/_index.scss +11 -2
- package/toast/styles/_index.scss +15 -5
- package/toolbar/styles/_index.scss +30 -1
- package/tree/styles/_index.scss +18 -17
- package/types/ngwr-alert.d.ts +16 -6
- package/types/ngwr-carousel.d.ts +8 -1
- package/types/ngwr-cascader.d.ts +5 -2
- package/types/ngwr-checkbox.d.ts +5 -2
- package/types/ngwr-click-spark.d.ts +13 -1
- package/types/ngwr-clipboard.d.ts +12 -1
- package/types/ngwr-context-menu.d.ts +20 -3
- package/types/ngwr-date-picker.d.ts +3 -0
- package/types/ngwr-density.d.ts +7 -7
- package/types/ngwr-directives.d.ts +17 -49
- package/types/ngwr-drag-drop.d.ts +13 -1
- package/types/ngwr-drawer.d.ts +11 -3
- package/types/ngwr-fuzzy-text.d.ts +1 -1
- package/types/ngwr-glitch-text.d.ts +9 -3
- package/types/ngwr-input-otp.d.ts +6 -2
- package/types/ngwr-input.d.ts +27 -13
- package/types/ngwr-lightbox.d.ts +14 -1
- package/types/ngwr-pagination.d.ts +10 -10
- package/types/ngwr-radio.d.ts +14 -3
- package/types/ngwr-rating.d.ts +5 -1
- package/types/ngwr-rotating-text.d.ts +1 -0
- package/types/ngwr-segmented.d.ts +5 -2
- package/types/ngwr-select.d.ts +6 -2
- package/types/ngwr-spotlight-card.d.ts +1 -1
- package/types/ngwr-statistic.d.ts +35 -1
- package/types/ngwr-switch.d.ts +5 -1
- package/types/ngwr-table.d.ts +7 -1
- package/types/ngwr-tabs.d.ts +6 -0
- package/types/ngwr-textarea.d.ts +25 -3
- package/types/ngwr-toast.d.ts +7 -1
- package/types/ngwr-toolbar.d.ts +7 -1
- package/types/ngwr-validators.d.ts +3 -1
- package/types/ngwr-version.d.ts +1 -1
- package/window/styles/_index.scss +8 -8
- package/fesm2022/ngwr-scramble-text.mjs +0 -165
- package/fesm2022/ngwr-scramble-text.mjs.map +0 -1
- package/scramble-text/scramble-text.scss +0 -1
- package/scramble-text/styles/_index.scss +0 -8
- package/types/ngwr-scramble-text.d.ts +0 -49
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
@use '../../theme/styles' as theme;
|
|
2
2
|
|
|
3
3
|
.wr-checkbox {
|
|
4
|
-
--wr-checkbox-size: 1.125rem;
|
|
5
|
-
--wr-checkbox-radius: var(--wr-
|
|
4
|
+
--wr-checkbox-size: 1.125rem; // md box (18px)
|
|
5
|
+
--wr-checkbox-radius: var(--wr-control-radius-md);
|
|
6
|
+
--wr-checkbox-font-size: var(--wr-text-sm);
|
|
7
|
+
--wr-checkbox-line-height: var(--wr-control-line-height-md);
|
|
6
8
|
--wr-checkbox-bg: var(--wr-color-white);
|
|
7
9
|
--wr-checkbox-border: var(--wr-color-light);
|
|
8
10
|
--wr-checkbox-mark: transparent;
|
|
@@ -12,8 +14,8 @@
|
|
|
12
14
|
vertical-align: middle;
|
|
13
15
|
color: var(--wr-checkbox-color);
|
|
14
16
|
font-family: var(--wr-font-family-base);
|
|
15
|
-
font-size:
|
|
16
|
-
line-height:
|
|
17
|
+
font-size: var(--wr-checkbox-font-size);
|
|
18
|
+
line-height: var(--wr-checkbox-line-height);
|
|
17
19
|
|
|
18
20
|
&__label {
|
|
19
21
|
display: inline-flex;
|
|
@@ -76,6 +78,21 @@
|
|
|
76
78
|
--wr-checkbox-border: var(--wr-color-primary);
|
|
77
79
|
}
|
|
78
80
|
|
|
81
|
+
// Sizes — box, radius, label font + line-height scale together.
|
|
82
|
+
&--sm {
|
|
83
|
+
--wr-checkbox-size: 1rem; // 16px
|
|
84
|
+
--wr-checkbox-radius: var(--wr-control-radius-sm);
|
|
85
|
+
--wr-checkbox-font-size: var(--wr-text-xs);
|
|
86
|
+
--wr-checkbox-line-height: var(--wr-control-line-height-sm);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&--lg {
|
|
90
|
+
--wr-checkbox-size: 1.25rem; // 20px
|
|
91
|
+
--wr-checkbox-radius: var(--wr-control-radius-lg);
|
|
92
|
+
--wr-checkbox-font-size: var(--wr-text-base);
|
|
93
|
+
--wr-checkbox-line-height: var(--wr-control-line-height-lg);
|
|
94
|
+
}
|
|
95
|
+
|
|
79
96
|
&--checked {
|
|
80
97
|
--wr-checkbox-bg: var(--wr-color-primary);
|
|
81
98
|
--wr-checkbox-border: var(--wr-color-primary);
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
background: var(--wr-color-picker-bg);
|
|
24
24
|
border: 1px solid var(--wr-color-picker-border);
|
|
25
25
|
@include theme.smooth-br(var(--wr-color-picker-radius));
|
|
26
|
-
box-shadow:
|
|
26
|
+
box-shadow: var(--wr-shadow-overlay);
|
|
27
27
|
font-family: var(--wr-font-family-base);
|
|
28
28
|
user-select: none;
|
|
29
29
|
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
background:
|
|
39
39
|
linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, transparent),
|
|
40
40
|
var(--wr-color-picker-hue);
|
|
41
|
-
box-shadow: inset 0 0 0 1px rgba(
|
|
41
|
+
box-shadow: inset 0 0 0 1px rgba(var(--wr-color-black-rgb), 0.06);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
// Hue + alpha sliders
|
|
@@ -49,7 +49,14 @@
|
|
|
49
49
|
border-radius: var(--wr-color-picker-slider-height);
|
|
50
50
|
cursor: ew-resize;
|
|
51
51
|
touch-action: none;
|
|
52
|
-
box-shadow: inset 0 0 0 1px rgba(
|
|
52
|
+
box-shadow: inset 0 0 0 1px rgba(var(--wr-color-black-rgb), 0.06);
|
|
53
|
+
|
|
54
|
+
// Coarse pointers: a taller track is easier to drag than the 0.75rem
|
|
55
|
+
// default. A symmetric 44px hit area would overlap the SV panel above it,
|
|
56
|
+
// so grow the track itself instead (the thumb stays vertically centred).
|
|
57
|
+
@media (pointer: coarse) {
|
|
58
|
+
height: 1.5rem;
|
|
59
|
+
}
|
|
53
60
|
}
|
|
54
61
|
|
|
55
62
|
&__slider--hue {
|
|
@@ -85,8 +92,8 @@
|
|
|
85
92
|
border-radius: 50%;
|
|
86
93
|
border: 2px solid #fff;
|
|
87
94
|
box-shadow:
|
|
88
|
-
0 0 0 1px rgba(
|
|
89
|
-
0 1px 2px rgba(
|
|
95
|
+
0 0 0 1px rgba(var(--wr-color-black-rgb), 0.3),
|
|
96
|
+
0 1px 2px rgba(var(--wr-color-black-rgb), 0.25);
|
|
90
97
|
pointer-events: none;
|
|
91
98
|
background: transparent;
|
|
92
99
|
}
|
|
@@ -109,7 +116,7 @@
|
|
|
109
116
|
background-size:
|
|
110
117
|
auto,
|
|
111
118
|
8px 8px;
|
|
112
|
-
box-shadow: inset 0 0 0 1px rgba(
|
|
119
|
+
box-shadow: inset 0 0 0 1px rgba(var(--wr-color-black-rgb), 0.06);
|
|
113
120
|
color: transparent; // background-image already set inline via [style.background]
|
|
114
121
|
}
|
|
115
122
|
|
|
@@ -122,7 +129,7 @@
|
|
|
122
129
|
|
|
123
130
|
&__tabs {
|
|
124
131
|
flex: 1 1 auto;
|
|
125
|
-
font-size:
|
|
132
|
+
font-size: var(--wr-text-xs);
|
|
126
133
|
}
|
|
127
134
|
|
|
128
135
|
// Per-tab numeric inputs
|
|
@@ -152,7 +159,7 @@
|
|
|
152
159
|
padding: 0.25rem 0.375rem;
|
|
153
160
|
color: var(--wr-color-dark);
|
|
154
161
|
font-family: var(--wr-font-family-mono, monospace);
|
|
155
|
-
font-size:
|
|
162
|
+
font-size: var(--wr-text-xs);
|
|
156
163
|
line-height: 1rem;
|
|
157
164
|
text-align: center;
|
|
158
165
|
outline: 0;
|
|
@@ -184,13 +191,13 @@
|
|
|
184
191
|
text-align: left;
|
|
185
192
|
text-transform: lowercase;
|
|
186
193
|
padding: 0.3125rem 0.5rem;
|
|
187
|
-
font-size:
|
|
194
|
+
font-size: var(--wr-text-sm);
|
|
188
195
|
}
|
|
189
196
|
|
|
190
197
|
&__field-label {
|
|
191
198
|
text-align: center;
|
|
192
199
|
color: var(--wr-color-medium);
|
|
193
|
-
font-size: 0.625rem;
|
|
200
|
+
font-size: 0.625rem; // 10px — intentional micro R/G/B/A channel label, below --wr-text-xs
|
|
194
201
|
font-weight: 600;
|
|
195
202
|
text-transform: uppercase;
|
|
196
203
|
letter-spacing: 0.04em;
|
|
@@ -224,8 +231,7 @@
|
|
|
224
231
|
}
|
|
225
232
|
|
|
226
233
|
&:focus-visible {
|
|
227
|
-
|
|
228
|
-
box-shadow: 0 0 0 2px var(--wr-color-primary);
|
|
234
|
+
@include theme.focus-ring;
|
|
229
235
|
}
|
|
230
236
|
|
|
231
237
|
&:disabled {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
&__backdrop {
|
|
15
15
|
position: absolute;
|
|
16
16
|
inset: 0;
|
|
17
|
-
background:
|
|
17
|
+
background: var(--wr-color-overlay);
|
|
18
18
|
backdrop-filter: blur(4px);
|
|
19
19
|
pointer-events: auto;
|
|
20
20
|
animation: wr-cmd-fade var(--wr-duration-base) var(--wr-ease-out);
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
user-select: none;
|
|
108
108
|
|
|
109
109
|
&--active {
|
|
110
|
-
background:
|
|
110
|
+
background: var(--wr-color-primary-soft);
|
|
111
111
|
color: var(--wr-color-primary);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
padding: 0.0625rem 0.375rem;
|
|
153
153
|
border: 1px solid var(--wr-color-light);
|
|
154
154
|
border-radius: var(--wr-border-radius-sm);
|
|
155
|
-
background:
|
|
155
|
+
background: var(--wr-color-hover);
|
|
156
156
|
color: var(--wr-color-medium);
|
|
157
157
|
font-family: inherit;
|
|
158
158
|
font-size: var(--wr-text-xs);
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
outline: 0;
|
|
14
14
|
|
|
15
15
|
&:focus-visible {
|
|
16
|
-
|
|
16
|
+
@include theme.focus-ring;
|
|
17
17
|
border-radius: var(--wr-border-radius-sm);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
display: flex;
|
|
64
64
|
align-items: center;
|
|
65
65
|
justify-content: center;
|
|
66
|
-
box-shadow: 0 0 0 1px rgba(
|
|
66
|
+
box-shadow: 0 0 0 1px rgba(var(--wr-color-black-rgb), 0.2);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
&--horizontal &__divider {
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
background: var(--wr-color-white);
|
|
95
95
|
color: var(--wr-color-dark);
|
|
96
96
|
border-radius: 50%;
|
|
97
|
-
box-shadow: 0 2px 6px rgba(
|
|
97
|
+
box-shadow: 0 2px 6px rgba(var(--wr-color-black-rgb), 0.25);
|
|
98
98
|
pointer-events: none;
|
|
99
99
|
}
|
|
100
100
|
}
|
|
@@ -94,12 +94,11 @@
|
|
|
94
94
|
|
|
95
95
|
&:hover:not(:disabled) {
|
|
96
96
|
color: var(--wr-color-primary);
|
|
97
|
-
background:
|
|
97
|
+
background: var(--wr-color-hover);
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
&:focus-visible {
|
|
101
|
-
|
|
102
|
-
box-shadow: 0 0 0 2px rgba(var(--wr-color-primary-rgb), 0.3);
|
|
101
|
+
@include theme.focus-ring;
|
|
103
102
|
}
|
|
104
103
|
|
|
105
104
|
&:disabled {
|
|
@@ -118,7 +117,7 @@
|
|
|
118
117
|
border-radius: var(--wr-border-radius-sm);
|
|
119
118
|
color: var(--wr-time-picker-color);
|
|
120
119
|
font-family: var(--wr-font-family-base);
|
|
121
|
-
font-size:
|
|
120
|
+
font-size: var(--wr-text-sm);
|
|
122
121
|
line-height: 1.25rem;
|
|
123
122
|
font-weight: 600;
|
|
124
123
|
text-align: center;
|
|
@@ -157,14 +156,14 @@
|
|
|
157
156
|
border-radius: var(--wr-border-radius-sm);
|
|
158
157
|
color: var(--wr-time-picker-color);
|
|
159
158
|
font-family: var(--wr-font-family-base);
|
|
160
|
-
font-size:
|
|
159
|
+
font-size: var(--wr-text-sm);
|
|
161
160
|
font-weight: 600;
|
|
162
161
|
user-select: none;
|
|
163
162
|
}
|
|
164
163
|
|
|
165
164
|
&__sep {
|
|
166
165
|
color: var(--wr-time-picker-muted);
|
|
167
|
-
font-size:
|
|
166
|
+
font-size: var(--wr-text-lg);
|
|
168
167
|
font-weight: 600;
|
|
169
168
|
line-height: 1;
|
|
170
169
|
user-select: none;
|
|
@@ -15,23 +15,33 @@
|
|
|
15
15
|
--wr-density-gap: 1;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
[data-wr-density='
|
|
18
|
+
[data-wr-density='sm'] {
|
|
19
19
|
--wr-density-y: 0.55;
|
|
20
20
|
--wr-density-x: 0.85;
|
|
21
21
|
--wr-density-text: 0.95;
|
|
22
22
|
--wr-density-gap: 0.8;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
[data-wr-density='
|
|
25
|
+
[data-wr-density='md'] {
|
|
26
26
|
--wr-density-y: 1;
|
|
27
27
|
--wr-density-x: 1;
|
|
28
28
|
--wr-density-text: 1;
|
|
29
29
|
--wr-density-gap: 1;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
[data-wr-density='
|
|
32
|
+
[data-wr-density='lg'] {
|
|
33
33
|
--wr-density-y: 1.35;
|
|
34
34
|
--wr-density-x: 1.15;
|
|
35
35
|
--wr-density-text: 1.05;
|
|
36
36
|
--wr-density-gap: 1.15;
|
|
37
37
|
}
|
|
38
|
+
|
|
39
|
+
// `touch` — finger-friendly. Leans on vertical padding (taller controls, ~44px
|
|
40
|
+
// targets) and gap (so adjacent controls don't crowd a fingertip); text stays
|
|
41
|
+
// at reading size since touch is about hit area, not legibility.
|
|
42
|
+
[data-wr-density='touch'] {
|
|
43
|
+
--wr-density-y: 1.7;
|
|
44
|
+
--wr-density-x: 1.25;
|
|
45
|
+
--wr-density-text: 1;
|
|
46
|
+
--wr-density-gap: 1.5;
|
|
47
|
+
}
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.wr-dialog-backdrop {
|
|
50
|
-
background:
|
|
50
|
+
background: var(--wr-color-overlay);
|
|
51
51
|
backdrop-filter: blur(2px);
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
margin: 0;
|
|
81
81
|
padding: var(--wr-dialog-padding-y) var(--wr-dialog-padding-x);
|
|
82
82
|
color: var(--wr-color-dark);
|
|
83
|
-
font-size:
|
|
83
|
+
font-size: var(--wr-text-lg);
|
|
84
84
|
font-weight: 600;
|
|
85
85
|
line-height: 1.5rem;
|
|
86
86
|
border-bottom: 1px solid var(--wr-color-light);
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
padding: var(--wr-dialog-padding-y) var(--wr-dialog-padding-x);
|
|
91
91
|
overflow: auto;
|
|
92
92
|
color: var(--wr-color-dark);
|
|
93
|
-
font-size:
|
|
93
|
+
font-size: var(--wr-text-base);
|
|
94
94
|
line-height: 1.5rem;
|
|
95
95
|
}
|
|
96
96
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use '../../theme/styles' as theme;
|
|
2
2
|
|
|
3
3
|
.wr-drawer-backdrop {
|
|
4
|
-
background:
|
|
4
|
+
background: var(--wr-color-overlay);
|
|
5
5
|
backdrop-filter: blur(2px);
|
|
6
6
|
}
|
|
7
7
|
|
|
@@ -39,20 +39,20 @@
|
|
|
39
39
|
// Rounded leading corners
|
|
40
40
|
// The edge facing the viewport interior. Common bottom-sheet styling.
|
|
41
41
|
&--rounded.wr-drawer__panel--bottom {
|
|
42
|
-
border-top-left-radius:
|
|
43
|
-
border-top-right-radius:
|
|
42
|
+
border-top-left-radius: var(--wr-border-radius-lg);
|
|
43
|
+
border-top-right-radius: var(--wr-border-radius-lg);
|
|
44
44
|
}
|
|
45
45
|
&--rounded.wr-drawer__panel--top {
|
|
46
|
-
border-bottom-left-radius:
|
|
47
|
-
border-bottom-right-radius:
|
|
46
|
+
border-bottom-left-radius: var(--wr-border-radius-lg);
|
|
47
|
+
border-bottom-right-radius: var(--wr-border-radius-lg);
|
|
48
48
|
}
|
|
49
49
|
&--rounded.wr-drawer__panel--left {
|
|
50
|
-
border-top-right-radius:
|
|
51
|
-
border-bottom-right-radius:
|
|
50
|
+
border-top-right-radius: var(--wr-border-radius-lg);
|
|
51
|
+
border-bottom-right-radius: var(--wr-border-radius-lg);
|
|
52
52
|
}
|
|
53
53
|
&--rounded.wr-drawer__panel--right {
|
|
54
|
-
border-top-left-radius:
|
|
55
|
-
border-bottom-left-radius:
|
|
54
|
+
border-top-left-radius: var(--wr-border-radius-lg);
|
|
55
|
+
border-bottom-left-radius: var(--wr-border-radius-lg);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
// Safe-area padding on the trailing edge
|
|
@@ -80,6 +80,8 @@
|
|
|
80
80
|
flex: 0 0 auto;
|
|
81
81
|
cursor: grab;
|
|
82
82
|
user-select: none;
|
|
83
|
+
// Own the gesture — stop the browser turning the drag into a scroll/pan.
|
|
84
|
+
touch-action: none;
|
|
83
85
|
}
|
|
84
86
|
|
|
85
87
|
&__grabber {
|
|
@@ -94,7 +96,7 @@
|
|
|
94
96
|
margin: 0;
|
|
95
97
|
padding: 1rem 1.25rem;
|
|
96
98
|
color: var(--wr-color-dark);
|
|
97
|
-
font-size:
|
|
99
|
+
font-size: var(--wr-text-lg);
|
|
98
100
|
font-weight: 600;
|
|
99
101
|
line-height: 1.5rem;
|
|
100
102
|
border-bottom: 1px solid var(--wr-color-light);
|
|
@@ -104,7 +106,7 @@
|
|
|
104
106
|
flex: 1 1 auto;
|
|
105
107
|
padding: 1rem 1.25rem;
|
|
106
108
|
overflow: auto;
|
|
107
|
-
font-size:
|
|
109
|
+
font-size: var(--wr-text-base);
|
|
108
110
|
line-height: 1.5rem;
|
|
109
111
|
}
|
|
110
112
|
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
--wr-dropdown-item-padding-y: 0.375rem;
|
|
62
62
|
--wr-dropdown-item-padding-x: 0.625rem;
|
|
63
63
|
--wr-dropdown-item-color: var(--wr-color-dark);
|
|
64
|
-
--wr-dropdown-item-bg-hover:
|
|
64
|
+
--wr-dropdown-item-bg-hover: var(--wr-color-hover);
|
|
65
65
|
--wr-dropdown-item-radius: var(--wr-border-radius-sm);
|
|
66
66
|
|
|
67
67
|
display: flex;
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
border-radius: var(--wr-dropdown-item-radius);
|
|
75
75
|
color: var(--wr-dropdown-item-color);
|
|
76
76
|
font: inherit;
|
|
77
|
-
font-size:
|
|
77
|
+
font-size: var(--wr-text-sm);
|
|
78
78
|
line-height: 1.25rem;
|
|
79
79
|
text-align: left;
|
|
80
80
|
white-space: nowrap;
|
package/fesm2022/ngwr-affix.mjs
CHANGED
|
@@ -79,10 +79,10 @@ class WrAffix {
|
|
|
79
79
|
});
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
83
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.
|
|
82
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: WrAffix, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
83
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.4", type: WrAffix, isStandalone: true, selector: "[wrAffix]", inputs: { offsetTop: { classPropertyName: "offsetTop", publicName: "wrAffixOffsetTop", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { affixChange: "wrAffixChange" }, host: { properties: { "style.position": "\"sticky\"", "style.top.px": "offsetTop()" }, classAttribute: "wr-affix" }, ngImport: i0 });
|
|
84
84
|
}
|
|
85
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: WrAffix, decorators: [{
|
|
86
86
|
type: Directive,
|
|
87
87
|
args: [{
|
|
88
88
|
selector: '[wrAffix]',
|
package/fesm2022/ngwr-alert.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { input, output, signal, computed, ViewEncapsulation, Component } from '@angular/core';
|
|
4
|
+
import { WrIcon } from 'ngwr/icon';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* @license
|
|
@@ -20,8 +21,12 @@ import { input, output, signal, computed, ViewEncapsulation, Component } from '@
|
|
|
20
21
|
* @see https://ngwr.dev/components/alert
|
|
21
22
|
*/
|
|
22
23
|
class WrAlert {
|
|
23
|
-
/**
|
|
24
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Optional headline shown at the top of the alert.
|
|
26
|
+
*
|
|
27
|
+
* @default null
|
|
28
|
+
*/
|
|
29
|
+
title = input(null, /* @ts-ignore */
|
|
25
30
|
...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
26
31
|
/**
|
|
27
32
|
* Visual variant.
|
|
@@ -30,6 +35,13 @@ class WrAlert {
|
|
|
30
35
|
*/
|
|
31
36
|
type = input('info', /* @ts-ignore */
|
|
32
37
|
...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
38
|
+
/**
|
|
39
|
+
* Override the default per-type icon with any ngwr icon name.
|
|
40
|
+
*
|
|
41
|
+
* @default null
|
|
42
|
+
*/
|
|
43
|
+
iconName = input(null, /* @ts-ignore */
|
|
44
|
+
...(ngDevMode ? [{ debugName: "iconName" }] : /* istanbul ignore next */ []));
|
|
33
45
|
/**
|
|
34
46
|
* Optional secondary message rendered below the title.
|
|
35
47
|
*
|
|
@@ -38,8 +50,8 @@ class WrAlert {
|
|
|
38
50
|
message = input(null, /* @ts-ignore */
|
|
39
51
|
...(ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []));
|
|
40
52
|
/**
|
|
41
|
-
* When `true`, renders a leading status icon matching the `type
|
|
42
|
-
*
|
|
53
|
+
* When `true`, renders a leading status icon matching the `type`.
|
|
54
|
+
* Pass `false` to hide. Ignored when `iconName` is set.
|
|
43
55
|
*
|
|
44
56
|
* @default true
|
|
45
57
|
*/
|
|
@@ -72,17 +84,17 @@ class WrAlert {
|
|
|
72
84
|
this.dismissed.set(true);
|
|
73
85
|
this.closed.emit();
|
|
74
86
|
}
|
|
75
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
76
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
87
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: WrAlert, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
88
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.4", type: WrAlert, isStandalone: true, selector: "wr-alert", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, iconName: { classPropertyName: "iconName", publicName: "iconName", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, closeable: { classPropertyName: "closeable", publicName: "closeable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { properties: { "class": "classes()", "attr.role": "liveRole()", "attr.aria-live": "liveLevel()" } }, ngImport: i0, template: "@if (!dismissed()) {\n @if (iconName(); as n) {\n <wr-icon class=\"wr-alert__icon\" [name]=\"n\" />\n } @else if (icon()) {\n <svg\n class=\"wr-alert__icon\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n @switch (type()) {\n @case ('success') {\n <path d=\"M21.801 10A10 10 0 1 1 17 3.335\" />\n <path d=\"m9 11 3 3L22 4\" />\n }\n @case ('warning') {\n <path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\" />\n <path d=\"M12 9v4\" />\n <path d=\"M12 17h.01\" />\n }\n @case ('danger') {\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M12 8v4\" />\n <path d=\"M12 16h.01\" />\n }\n @case ('neutral') {\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M12 8v4\" />\n <path d=\"M12 16h.01\" />\n }\n @case ('offline') {\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"m4.9 4.9 14.2 14.2\" />\n }\n @default {\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M12 16v-4\" />\n <path d=\"M12 8h.01\" />\n }\n }\n </svg>\n }\n\n <div class=\"wr-alert__body\">\n @if (title(); as t) {\n <p class=\"wr-alert__title\">{{ t }}</p>\n @if (message(); as m) {\n <p class=\"wr-alert__message\">{{ m }}</p>\n }\n } @else if (message(); as m) {\n <p class=\"wr-alert__title\">{{ m }}</p>\n }\n </div>\n\n @if (closeable()) {\n <button type=\"button\" class=\"wr-alert__close\" aria-label=\"Close alert\" (click)=\"onClose()\">\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </button>\n }\n}\n", dependencies: [{ kind: "component", type: WrIcon, selector: "wr-icon", inputs: ["name"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
77
89
|
}
|
|
78
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: WrAlert, decorators: [{
|
|
79
91
|
type: Component,
|
|
80
|
-
args: [{ selector: 'wr-alert', encapsulation: ViewEncapsulation.None, host: {
|
|
92
|
+
args: [{ selector: 'wr-alert', imports: [WrIcon], encapsulation: ViewEncapsulation.None, host: {
|
|
81
93
|
'[class]': 'classes()',
|
|
82
94
|
'[attr.role]': 'liveRole()',
|
|
83
95
|
'[attr.aria-live]': 'liveLevel()',
|
|
84
|
-
}, template: "@if (!dismissed()) {\n @if (icon()) {\n <svg\n class=\"wr-alert__icon\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n @switch (type()) {\n @case ('success') {\n <path d=\"M21.801 10A10 10 0 1 1 17 3.335\" />\n <path d=\"m9 11 3 3L22 4\" />\n }\n @case ('warning') {\n <path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\" />\n <path d=\"M12 9v4\" />\n <path d=\"M12 17h.01\" />\n }\n @case ('danger') {\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M12 8v4\" />\n <path d=\"M12 16h.01\" />\n }\n @default {\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M12 16v-4\" />\n <path d=\"M12 8h.01\" />\n }\n }\n </svg>\n }\n\n <div class=\"wr-alert__body\">\n <p class=\"wr-alert__title\">{{
|
|
85
|
-
}], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required:
|
|
96
|
+
}, template: "@if (!dismissed()) {\n @if (iconName(); as n) {\n <wr-icon class=\"wr-alert__icon\" [name]=\"n\" />\n } @else if (icon()) {\n <svg\n class=\"wr-alert__icon\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n @switch (type()) {\n @case ('success') {\n <path d=\"M21.801 10A10 10 0 1 1 17 3.335\" />\n <path d=\"m9 11 3 3L22 4\" />\n }\n @case ('warning') {\n <path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\" />\n <path d=\"M12 9v4\" />\n <path d=\"M12 17h.01\" />\n }\n @case ('danger') {\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M12 8v4\" />\n <path d=\"M12 16h.01\" />\n }\n @case ('neutral') {\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M12 8v4\" />\n <path d=\"M12 16h.01\" />\n }\n @case ('offline') {\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"m4.9 4.9 14.2 14.2\" />\n }\n @default {\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M12 16v-4\" />\n <path d=\"M12 8h.01\" />\n }\n }\n </svg>\n }\n\n <div class=\"wr-alert__body\">\n @if (title(); as t) {\n <p class=\"wr-alert__title\">{{ t }}</p>\n @if (message(); as m) {\n <p class=\"wr-alert__message\">{{ m }}</p>\n }\n } @else if (message(); as m) {\n <p class=\"wr-alert__title\">{{ m }}</p>\n }\n </div>\n\n @if (closeable()) {\n <button type=\"button\" class=\"wr-alert__close\" aria-label=\"Close alert\" (click)=\"onClose()\">\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </button>\n }\n}\n" }]
|
|
97
|
+
}], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], iconName: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconName", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], closeable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeable", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
|
|
86
98
|
|
|
87
99
|
/**
|
|
88
100
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngwr-alert.mjs","sources":["../../../projects/lib/alert/alert.ts","../../../projects/lib/alert/alert.html","../../../projects/lib/alert/ngwr-alert.ts"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { Component, ViewEncapsulation, computed, input, output, signal } from '@angular/core';\n\nimport type { WrAlertType } from './interfaces';\n\n/**\n * Inline status banner. Use for feedback messages — saved/failed/notice etc.\n *\n * @example\n * ```html\n * <wr-alert title=\"Saved\" message=\"Your changes are live.\" type=\"success\" />\n * <wr-alert title=\"Failed\" type=\"danger\" closeable (closed)=\"onClose()\" />\n * ```\n *\n * @see https://ngwr.dev/components/alert\n */\n@Component({\n selector: 'wr-alert',\n templateUrl: './alert.html',\n encapsulation: ViewEncapsulation.None,\n host: {\n '[class]': 'classes()',\n '[attr.role]': 'liveRole()',\n '[attr.aria-live]': 'liveLevel()',\n },\n})\nexport class WrAlert {\n
|
|
1
|
+
{"version":3,"file":"ngwr-alert.mjs","sources":["../../../projects/lib/alert/alert.ts","../../../projects/lib/alert/alert.html","../../../projects/lib/alert/ngwr-alert.ts"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { Component, ViewEncapsulation, computed, input, output, signal } from '@angular/core';\n\nimport { WrIcon, type WrIconName } from 'ngwr/icon';\n\nimport type { WrAlertType } from './interfaces';\n\n/**\n * Inline status banner. Use for feedback messages — saved/failed/notice etc.\n *\n * @example\n * ```html\n * <wr-alert title=\"Saved\" message=\"Your changes are live.\" type=\"success\" />\n * <wr-alert title=\"Failed\" type=\"danger\" closeable (closed)=\"onClose()\" />\n * ```\n *\n * @see https://ngwr.dev/components/alert\n */\n@Component({\n selector: 'wr-alert',\n templateUrl: './alert.html',\n imports: [WrIcon],\n encapsulation: ViewEncapsulation.None,\n host: {\n '[class]': 'classes()',\n '[attr.role]': 'liveRole()',\n '[attr.aria-live]': 'liveLevel()',\n },\n})\nexport class WrAlert {\n /**\n * Optional headline shown at the top of the alert.\n *\n * @default null\n */\n readonly title = input<string | null>(null);\n\n /**\n * Visual variant.\n *\n * @default 'info'\n */\n readonly type = input<WrAlertType>('info');\n\n /**\n * Override the default per-type icon with any ngwr icon name.\n *\n * @default null\n */\n readonly iconName = input<WrIconName | null>(null);\n\n /**\n * Optional secondary message rendered below the title.\n *\n * @default null\n */\n readonly message = input<string | null>(null);\n\n /**\n * When `true`, renders a leading status icon matching the `type`.\n * Pass `false` to hide. Ignored when `iconName` is set.\n *\n * @default true\n */\n readonly icon = input(true, { transform: coerceBooleanProperty });\n\n /**\n * When `true`, renders a close button.\n *\n * @default false\n */\n readonly closeable = input(false, { transform: coerceBooleanProperty });\n\n /**\n * Emitted when the user dismisses the alert via the close button.\n */\n readonly closed = output<void>();\n\n protected readonly dismissed = signal(false);\n\n protected readonly classes = computed(() => {\n const parts = ['wr-alert', `wr-alert--${this.type()}`];\n if (this.dismissed()) parts.push('wr-alert--dismissed');\n return parts.join(' ');\n });\n\n /** Escalate role/aria-live for danger/warning alerts. */\n protected readonly liveRole = computed(() =>\n this.dismissed() ? null : this.type() === 'danger' ? 'alert' : 'status'\n );\n protected readonly liveLevel = computed(() =>\n this.dismissed() ? null : this.type() === 'danger' || this.type() === 'warning' ? 'assertive' : 'polite'\n );\n\n protected onClose(): void {\n this.dismissed.set(true);\n this.closed.emit();\n }\n}\n","@if (!dismissed()) {\n @if (iconName(); as n) {\n <wr-icon class=\"wr-alert__icon\" [name]=\"n\" />\n } @else if (icon()) {\n <svg\n class=\"wr-alert__icon\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n @switch (type()) {\n @case ('success') {\n <path d=\"M21.801 10A10 10 0 1 1 17 3.335\" />\n <path d=\"m9 11 3 3L22 4\" />\n }\n @case ('warning') {\n <path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\" />\n <path d=\"M12 9v4\" />\n <path d=\"M12 17h.01\" />\n }\n @case ('danger') {\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M12 8v4\" />\n <path d=\"M12 16h.01\" />\n }\n @case ('neutral') {\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M12 8v4\" />\n <path d=\"M12 16h.01\" />\n }\n @case ('offline') {\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"m4.9 4.9 14.2 14.2\" />\n }\n @default {\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M12 16v-4\" />\n <path d=\"M12 8h.01\" />\n }\n }\n </svg>\n }\n\n <div class=\"wr-alert__body\">\n @if (title(); as t) {\n <p class=\"wr-alert__title\">{{ t }}</p>\n @if (message(); as m) {\n <p class=\"wr-alert__message\">{{ m }}</p>\n }\n } @else if (message(); as m) {\n <p class=\"wr-alert__title\">{{ m }}</p>\n }\n </div>\n\n @if (closeable()) {\n <button type=\"button\" class=\"wr-alert__close\" aria-label=\"Close alert\" (click)=\"onClose()\">\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </button>\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"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"}
|
package/fesm2022/ngwr-anchor.mjs
CHANGED
|
@@ -87,10 +87,10 @@ class WrAnchor {
|
|
|
87
87
|
this.scroll.to(`#${id}`, { offset: this.offset() });
|
|
88
88
|
this.activeId.set(id);
|
|
89
89
|
}
|
|
90
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
91
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
90
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: WrAnchor, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
91
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.4", type: WrAnchor, isStandalone: true, selector: "wr-anchor", inputs: { links: { classPropertyName: "links", publicName: "links", isSignal: true, isRequired: false, transformFunction: null }, offset: { classPropertyName: "offset", publicName: "offset", isSignal: true, isRequired: false, transformFunction: null }, hitArea: { classPropertyName: "hitArea", publicName: "hitArea", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "navigation", "aria-label": "Table of contents" }, classAttribute: "wr-anchor" }, ngImport: i0, template: "<ul class=\"wr-anchor__list\">\n @for (link of links(); track link.id) {\n <li class=\"wr-anchor__item\">\n <a\n class=\"wr-anchor__link\"\n [class.wr-anchor__link--active]=\"activeId() === link.id\"\n [attr.aria-current]=\"activeId() === link.id ? 'location' : null\"\n [href]=\"`#${link.id}`\"\n (click)=\"onClick(link.id, $event)\"\n >\n {{ link.label }}\n </a>\n @if (link.children?.length) {\n <ul class=\"wr-anchor__list wr-anchor__list--nested\">\n @for (child of link.children; track child.id) {\n <li class=\"wr-anchor__item\">\n <a\n class=\"wr-anchor__link\"\n [class.wr-anchor__link--active]=\"activeId() === child.id\"\n [attr.aria-current]=\"activeId() === child.id ? 'location' : null\"\n [href]=\"`#${child.id}`\"\n (click)=\"onClick(child.id, $event)\"\n >\n {{ child.label }}\n </a>\n </li>\n }\n </ul>\n }\n </li>\n }\n</ul>\n", encapsulation: i0.ViewEncapsulation.None });
|
|
92
92
|
}
|
|
93
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
93
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: WrAnchor, decorators: [{
|
|
94
94
|
type: Component,
|
|
95
95
|
args: [{ selector: 'wr-anchor', encapsulation: ViewEncapsulation.None, host: { class: 'wr-anchor', role: 'navigation', 'aria-label': 'Table of contents' }, template: "<ul class=\"wr-anchor__list\">\n @for (link of links(); track link.id) {\n <li class=\"wr-anchor__item\">\n <a\n class=\"wr-anchor__link\"\n [class.wr-anchor__link--active]=\"activeId() === link.id\"\n [attr.aria-current]=\"activeId() === link.id ? 'location' : null\"\n [href]=\"`#${link.id}`\"\n (click)=\"onClick(link.id, $event)\"\n >\n {{ link.label }}\n </a>\n @if (link.children?.length) {\n <ul class=\"wr-anchor__list wr-anchor__list--nested\">\n @for (child of link.children; track child.id) {\n <li class=\"wr-anchor__item\">\n <a\n class=\"wr-anchor__link\"\n [class.wr-anchor__link--active]=\"activeId() === child.id\"\n [attr.aria-current]=\"activeId() === child.id ? 'location' : null\"\n [href]=\"`#${child.id}`\"\n (click)=\"onClick(child.id, $event)\"\n >\n {{ child.label }}\n </a>\n </li>\n }\n </ul>\n }\n </li>\n }\n</ul>\n" }]
|
|
96
96
|
}], ctorParameters: () => [], propDecorators: { links: [{ type: i0.Input, args: [{ isSignal: true, alias: "links", required: false }] }], offset: [{ type: i0.Input, args: [{ isSignal: true, alias: "offset", required: false }] }], hitArea: [{ type: i0.Input, args: [{ isSignal: true, alias: "hitArea", required: false }] }] } });
|
package/fesm2022/ngwr-aurora.mjs
CHANGED
|
@@ -293,10 +293,10 @@ class WrAurora {
|
|
|
293
293
|
gl.clear(gl.COLOR_BUFFER_BIT);
|
|
294
294
|
gl.drawArrays(gl.TRIANGLES, 0, 3);
|
|
295
295
|
}
|
|
296
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
297
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.
|
|
296
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: WrAurora, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
297
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.4", type: WrAurora, isStandalone: true, selector: "wr-aurora", inputs: { colorStops: { classPropertyName: "colorStops", publicName: "colorStops", isSignal: true, isRequired: false, transformFunction: null }, amplitude: { classPropertyName: "amplitude", publicName: "amplitude", isSignal: true, isRequired: false, transformFunction: null }, blend: { classPropertyName: "blend", publicName: "blend", isSignal: true, isRequired: false, transformFunction: null }, speed: { classPropertyName: "speed", publicName: "speed", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "wr-aurora" }, viewQueries: [{ propertyName: "canvasRef", first: true, predicate: ["canvas"], descendants: true, isSignal: true }], ngImport: i0, template: '<canvas #canvas class="wr-aurora__canvas"></canvas>', isInline: true, styles: [".wr-aurora{--wr-aurora-stop-1: #6366f1;--wr-aurora-stop-2: #10b981;--wr-aurora-stop-3: #6366f1;position:absolute;inset:0;display:block;overflow:hidden;pointer-events:none;z-index:0}.wr-aurora__canvas{display:block;width:100%;height:100%}[data-theme=dark] .wr-aurora{--wr-aurora-stop-1: #5227ff;--wr-aurora-stop-2: #7cff67;--wr-aurora-stop-3: #5227ff}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
298
298
|
}
|
|
299
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
299
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: WrAurora, decorators: [{
|
|
300
300
|
type: Component,
|
|
301
301
|
args: [{ selector: 'wr-aurora', template: '<canvas #canvas class="wr-aurora__canvas"></canvas>', encapsulation: ViewEncapsulation.None, host: { class: 'wr-aurora' }, styles: [".wr-aurora{--wr-aurora-stop-1: #6366f1;--wr-aurora-stop-2: #10b981;--wr-aurora-stop-3: #6366f1;position:absolute;inset:0;display:block;overflow:hidden;pointer-events:none;z-index:0}.wr-aurora__canvas{display:block;width:100%;height:100%}[data-theme=dark] .wr-aurora{--wr-aurora-stop-1: #5227ff;--wr-aurora-stop-2: #7cff67;--wr-aurora-stop-3: #5227ff}\n"] }]
|
|
302
302
|
}], ctorParameters: () => [], propDecorators: { colorStops: [{ type: i0.Input, args: [{ isSignal: true, alias: "colorStops", required: false }] }], amplitude: [{ type: i0.Input, args: [{ isSignal: true, alias: "amplitude", required: false }] }], blend: [{ type: i0.Input, args: [{ isSignal: true, alias: "blend", required: false }] }], speed: [{ type: i0.Input, args: [{ isSignal: true, alias: "speed", required: false }] }], canvasRef: [{ type: i0.ViewChild, args: ['canvas', { isSignal: true }] }] } });
|