@frame-ui-ng/components 0.4.1 → 0.5.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/src/styles/_vars.css +9 -8
- package/accordion/src/styles/accordion.css +3 -2
- package/alert/src/styles/_vars.css +10 -10
- package/alert/src/styles/alert.css +77 -77
- package/avatar/src/styles/_vars.css +34 -34
- package/avatar/src/styles/avatar.css +209 -209
- package/badge/src/styles/_vars.css +9 -9
- package/breadcrumb/src/styles/_vars.css +2 -2
- package/button/src/styles/_vars.css +5 -5
- package/button/src/styles/button.css +26 -51
- package/button-group/src/styles/button-group.css +11 -4
- package/calendar/src/styles/_vars.css +10 -6
- package/calendar/src/styles/calendar.css +29 -5
- package/card/src/styles/_vars.css +10 -2
- package/card/src/styles/card.css +132 -142
- package/carousel/src/styles/_vars.css +7 -7
- package/checkbox/src/styles/_vars.css +3 -3
- package/checkbox/src/styles/checkbox.css +95 -95
- package/collapsible/src/styles/_vars.css +13 -13
- package/combobox/src/styles/_vars.css +20 -20
- package/command/src/styles/_vars.css +18 -17
- package/command/src/styles/command.css +1 -0
- package/date-picker/src/styles/_vars.css +6 -6
- package/date-picker/src/styles/date-picker.css +27 -1
- package/drag-drop/src/styles/_vars.css +8 -8
- package/dropdown-menu/src/styles/_vars.css +8 -8
- package/empty/src/styles/_vars.css +23 -23
- package/fesm2022/frame-ui-ng-components-button.mjs +5 -8
- package/fesm2022/frame-ui-ng-components-button.mjs.map +1 -1
- package/fesm2022/frame-ui-ng-components-calendar.mjs +20 -1
- package/fesm2022/frame-ui-ng-components-calendar.mjs.map +1 -1
- package/fesm2022/frame-ui-ng-components-carousel.mjs +4 -4
- package/fesm2022/frame-ui-ng-components-carousel.mjs.map +1 -1
- package/fesm2022/frame-ui-ng-components-confirm-modal.mjs +1 -1
- package/fesm2022/frame-ui-ng-components-confirm-modal.mjs.map +1 -1
- package/fesm2022/frame-ui-ng-components-confirm-popover.mjs +1 -1
- package/fesm2022/frame-ui-ng-components-confirm-popover.mjs.map +1 -1
- package/fesm2022/frame-ui-ng-components-forms.mjs.map +1 -1
- package/fesm2022/frame-ui-ng-components-modal.mjs +42 -17
- package/fesm2022/frame-ui-ng-components-modal.mjs.map +1 -1
- package/fesm2022/frame-ui-ng-components-sheet.mjs +1 -1
- package/fesm2022/frame-ui-ng-components-sheet.mjs.map +1 -1
- package/fesm2022/frame-ui-ng-components-utils.mjs +5 -1
- package/fesm2022/frame-ui-ng-components-utils.mjs.map +1 -1
- package/fesm2022/frame-ui-ng-components.mjs +71 -31
- package/fesm2022/frame-ui-ng-components.mjs.map +1 -1
- package/field/src/styles/_vars.css +20 -20
- package/hover-card/src/styles/_vars.css +21 -21
- package/input/src/styles/_vars.css +15 -15
- package/input/src/styles/input.css +0 -5
- package/input-otp/src/styles/_vars.css +3 -3
- package/input-otp/src/styles/input-otp.css +116 -116
- package/item/src/styles/_vars.css +9 -9
- package/menubar/src/styles/_vars.css +7 -7
- package/modal/src/styles/_vars.css +12 -12
- package/modal/src/styles/modal.css +1 -1
- package/navigation-menu/src/styles/_vars.css +9 -9
- package/package.json +2 -2
- package/pagination/src/styles/_vars.css +6 -6
- package/pagination/src/styles/pagination.css +14 -4
- package/popover/src/styles/_vars.css +24 -24
- package/progress/src/styles/_vars.css +2 -2
- package/progress/src/styles/progress.css +64 -64
- package/radio-group/src/styles/_vars.css +5 -5
- package/radio-group/src/styles/radio-group.css +2 -2
- package/resizable/src/styles/_vars.css +2 -2
- package/resizable/src/styles/resizable.css +130 -130
- package/select/src/styles/_vars.css +8 -8
- package/select/src/styles/select-content.css +27 -19
- package/separator/src/styles/_vars.css +2 -2
- package/separator/src/styles/separator.css +25 -25
- package/sheet/src/styles/_vars.css +12 -12
- package/sheet/src/styles/sheet.css +1 -1
- package/sidebar/src/styles/_vars.css +24 -24
- package/sidebar/src/styles/sidebar.css +5 -5
- package/skeleton/src/styles/_vars.css +8 -8
- package/slider/src/styles/_vars.css +6 -6
- package/slider/src/styles/slider.css +147 -147
- package/spinner/src/styles/_vars.css +8 -9
- package/src/styles/blueprint.css +15 -65
- package/styles/blueprint.css +15 -65
- package/switch/src/styles/_vars.css +4 -4
- package/table/src/styles/_vars.css +26 -25
- package/table/src/styles/table.css +245 -245
- package/tabs/src/styles/_vars.css +19 -17
- package/tabs/src/styles/tabs.css +166 -164
- package/textarea/src/styles/_vars.css +4 -4
- package/toast/src/styles/_vars.css +20 -20
- package/toast/src/styles/toast.css +2 -2
- package/toggle/src/styles/_vars.css +14 -14
- package/toggle/src/styles/toggle.css +110 -110
- package/tooltip/src/styles/_vars.css +9 -9
- package/tooltip/src/styles/tooltip.css +18 -9
- package/types/frame-ui-ng-components-button.d.ts +5 -8
- package/types/frame-ui-ng-components-calendar.d.ts +1 -0
- package/types/frame-ui-ng-components-carousel.d.ts +2 -2
- package/types/frame-ui-ng-components-modal.d.ts +15 -4
- package/types/frame-ui-ng-components-utils.d.ts +3 -1
- package/types/frame-ui-ng-components.d.ts +31 -23
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--frame-combobox-control-height:
|
|
1
|
+
:where(:root) {
|
|
2
|
+
--frame-combobox-control-height: var(--frame-density-control-height-lg);
|
|
3
3
|
--frame-combobox-control-radius: var(--frame-radius-md);
|
|
4
4
|
--frame-combobox-control-bg: var(--frame-surface);
|
|
5
5
|
--frame-combobox-control-color: var(--frame-surface-foreground);
|
|
6
6
|
--frame-combobox-control-border: var(--frame-border);
|
|
7
7
|
--frame-combobox-control-font-size: 0.875rem;
|
|
8
|
-
--frame-combobox-control-padding-inline:
|
|
8
|
+
--frame-combobox-control-padding-inline: var(--frame-density-control-padding-x-md);
|
|
9
9
|
--frame-combobox-control-disabled-bg: color-mix(in srgb, var(--frame-surface) 78%, var(--frame-muted));
|
|
10
10
|
--frame-combobox-control-disabled-color: var(--frame-muted-foreground);
|
|
11
11
|
--frame-combobox-control-disabled-opacity: 0.6;
|
|
@@ -22,40 +22,40 @@
|
|
|
22
22
|
--frame-combobox-panel-color: var(--frame-surface-foreground);
|
|
23
23
|
--frame-combobox-panel-border: var(--frame-border);
|
|
24
24
|
--frame-combobox-panel-shadow: var(--frame-shadow-md);
|
|
25
|
-
--frame-combobox-panel-padding:
|
|
25
|
+
--frame-combobox-panel-padding: var(--frame-density-panel-padding-sm);
|
|
26
26
|
--frame-combobox-motion-duration: 140ms;
|
|
27
27
|
--frame-combobox-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);
|
|
28
28
|
--frame-combobox-motion-distance: 0.2rem;
|
|
29
29
|
--frame-combobox-motion-scale: 0.98;
|
|
30
|
-
--frame-combobox-list-gap:
|
|
31
|
-
--frame-combobox-item-height:
|
|
32
|
-
--frame-combobox-item-gap:
|
|
33
|
-
--frame-combobox-item-radius:
|
|
30
|
+
--frame-combobox-list-gap: var(--frame-density-gap-xs);
|
|
31
|
+
--frame-combobox-item-height: var(--frame-density-item-height);
|
|
32
|
+
--frame-combobox-item-gap: var(--frame-density-gap-md);
|
|
33
|
+
--frame-combobox-item-radius: var(--frame-radius-sm);
|
|
34
34
|
--frame-combobox-item-font-size: 0.875rem;
|
|
35
|
-
--frame-combobox-item-padding:
|
|
35
|
+
--frame-combobox-item-padding: var(--frame-density-gap-md) var(--frame-density-gap-md) var(--frame-density-gap-md) 2rem;
|
|
36
36
|
--frame-combobox-item-indicator-offset: 0.625rem;
|
|
37
37
|
--frame-combobox-item-disabled-opacity: 0.5;
|
|
38
38
|
--frame-combobox-muted-font-size: 0.8125rem;
|
|
39
|
-
--frame-combobox-muted-padding:
|
|
40
|
-
--frame-combobox-separator-margin:
|
|
39
|
+
--frame-combobox-muted-padding: var(--frame-density-gap-md);
|
|
40
|
+
--frame-combobox-separator-margin: var(--frame-density-gap-sm) calc(0rem - var(--frame-density-gap-sm));
|
|
41
41
|
--frame-combobox-separator-bg: var(--frame-border);
|
|
42
|
-
--frame-combobox-chip-gap:
|
|
43
|
-
--frame-combobox-chip-height:
|
|
44
|
-
--frame-combobox-chip-radius:
|
|
42
|
+
--frame-combobox-chip-gap: var(--frame-density-gap-sm);
|
|
43
|
+
--frame-combobox-chip-height: var(--frame-density-inline-height);
|
|
44
|
+
--frame-combobox-chip-radius: var(--frame-radius-sm);
|
|
45
45
|
--frame-combobox-chip-bg: var(--frame-primary);
|
|
46
46
|
--frame-combobox-chip-color: var(--frame-primary-foreground);
|
|
47
47
|
--frame-combobox-chip-font-size: 0.75rem;
|
|
48
48
|
--frame-combobox-chip-font-weight: 600;
|
|
49
|
-
--frame-combobox-chip-padding-block:
|
|
50
|
-
--frame-combobox-chip-padding-inline:
|
|
49
|
+
--frame-combobox-chip-padding-block: var(--frame-density-inline-padding-block);
|
|
50
|
+
--frame-combobox-chip-padding-inline: var(--frame-density-inline-padding-inline) var(--frame-density-gap-sm);
|
|
51
51
|
--frame-combobox-chip-remove-size: 1rem;
|
|
52
|
-
--frame-combobox-chip-remove-radius:
|
|
52
|
+
--frame-combobox-chip-remove-radius: var(--frame-radius-sm);
|
|
53
53
|
--frame-combobox-chip-remove-bg: color-mix(in srgb, currentColor 12%, transparent);
|
|
54
54
|
--frame-combobox-chip-remove-hover-bg: color-mix(in srgb, currentColor 20%, transparent);
|
|
55
|
-
--frame-combobox-chips-gap:
|
|
56
|
-
--frame-combobox-chips-padding:
|
|
55
|
+
--frame-combobox-chips-gap: var(--frame-density-gap-md);
|
|
56
|
+
--frame-combobox-chips-padding: var(--frame-density-gap-md);
|
|
57
57
|
--frame-combobox-chips-input-min-width: 8rem;
|
|
58
|
-
--frame-combobox-chips-input-padding:
|
|
58
|
+
--frame-combobox-chips-input-padding: var(--frame-density-gap-sm);
|
|
59
59
|
--frame-combobox-error-color: var(--frame-destructive);
|
|
60
60
|
--frame-combobox-error-font-size: 0.8125rem;
|
|
61
61
|
}
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
:root {
|
|
1
|
+
:where(:root) {
|
|
2
2
|
--frame-command-bg: var(--frame-surface);
|
|
3
3
|
--frame-command-color: var(--frame-surface-foreground);
|
|
4
4
|
--frame-command-border: var(--frame-border);
|
|
5
|
-
--frame-command-radius:
|
|
6
|
-
--frame-command-shadow:
|
|
7
|
-
--frame-command-input-height:
|
|
8
|
-
--frame-command-input-padding-inline:
|
|
5
|
+
--frame-command-radius: var(--frame-radius-lg);
|
|
6
|
+
--frame-command-shadow: var(--frame-shadow-sm);
|
|
7
|
+
--frame-command-input-height: var(--frame-density-control-height-xl);
|
|
8
|
+
--frame-command-input-padding-inline: var(--frame-density-control-padding-x-md);
|
|
9
9
|
--frame-command-input-border: var(--frame-border);
|
|
10
|
+
--frame-command-input-radius: var(--frame-radius-md);
|
|
10
11
|
--frame-command-input-color: var(--frame-foreground);
|
|
11
12
|
--frame-command-input-placeholder-color: var(--frame-muted-foreground);
|
|
12
13
|
--frame-command-list-max-height: 20rem;
|
|
13
|
-
--frame-command-list-padding:
|
|
14
|
-
--frame-command-list-gap:
|
|
15
|
-
--frame-command-empty-padding:
|
|
14
|
+
--frame-command-list-padding: var(--frame-density-gap-md) var(--frame-density-gap-lg) 0;
|
|
15
|
+
--frame-command-list-gap: var(--frame-density-gap-xs);
|
|
16
|
+
--frame-command-empty-padding: var(--frame-density-control-height-md) var(--frame-density-panel-padding-md);
|
|
16
17
|
--frame-command-empty-color: var(--frame-muted-foreground);
|
|
17
|
-
--frame-command-group-heading-padding:
|
|
18
|
+
--frame-command-group-heading-padding: var(--frame-density-gap-md) 0 var(--frame-density-gap-sm);
|
|
18
19
|
--frame-command-group-heading-color: var(--frame-muted-foreground);
|
|
19
20
|
--frame-command-group-heading-font-size: 0.75rem;
|
|
20
21
|
--frame-command-group-heading-font-weight: 650;
|
|
21
|
-
--frame-command-item-height:
|
|
22
|
-
--frame-command-item-gap:
|
|
23
|
-
--frame-command-item-padding:
|
|
24
|
-
--frame-command-item-radius:
|
|
22
|
+
--frame-command-item-height: var(--frame-density-item-height);
|
|
23
|
+
--frame-command-item-gap: var(--frame-density-gap-lg);
|
|
24
|
+
--frame-command-item-padding: var(--frame-density-gap-md);
|
|
25
|
+
--frame-command-item-radius: var(--frame-radius-sm);
|
|
25
26
|
--frame-command-item-font-size: 0.875rem;
|
|
26
27
|
--frame-command-item-highlighted-bg: var(--frame-accent);
|
|
27
28
|
--frame-command-item-highlighted-color: var(--frame-accent-foreground);
|
|
@@ -30,13 +31,13 @@
|
|
|
30
31
|
--frame-command-shortcut-color: var(--frame-muted-foreground);
|
|
31
32
|
--frame-command-shortcut-font-size: 0.75rem;
|
|
32
33
|
--frame-command-separator-bg: var(--frame-border);
|
|
33
|
-
--frame-command-separator-margin:
|
|
34
|
+
--frame-command-separator-margin: var(--frame-density-gap-md) 0;
|
|
34
35
|
--frame-command-footer-border: var(--frame-frame-line-muted, var(--frame-border));
|
|
35
36
|
--frame-command-footer-color: var(--frame-muted-foreground);
|
|
36
37
|
--frame-command-footer-font-size: 0.8125rem;
|
|
37
|
-
--frame-command-footer-gap:
|
|
38
|
-
--frame-command-footer-padding:
|
|
39
|
-
--frame-command-footer-margin:
|
|
38
|
+
--frame-command-footer-gap: var(--frame-density-gap-lg);
|
|
39
|
+
--frame-command-footer-padding: var(--frame-density-gap-md) 0 0;
|
|
40
|
+
--frame-command-footer-margin: var(--frame-density-gap-md) 0 0;
|
|
40
41
|
--frame-command-footer-key-bg: var(--frame-muted);
|
|
41
42
|
--frame-command-footer-key-border: var(--frame-frame-line-muted, var(--frame-border));
|
|
42
43
|
--frame-command-footer-key-color: var(--frame-foreground);
|
|
@@ -20,6 +20,7 @@ frame-command {
|
|
|
20
20
|
inline-size: 100%;
|
|
21
21
|
min-block-size: var(--frame-command-input-height, 2.75rem);
|
|
22
22
|
border: 1px solid var(--frame-command-input-border, var(--frame-border));
|
|
23
|
+
border-radius: var(--frame-command-input-radius, var(--frame-radius-md));
|
|
23
24
|
background: transparent;
|
|
24
25
|
color: var(--frame-command-input-color, var(--frame-foreground));
|
|
25
26
|
font: inherit;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--frame-date-picker-trigger-height:
|
|
1
|
+
:where(:root) {
|
|
2
|
+
--frame-date-picker-trigger-height: var(--frame-density-control-height-lg);
|
|
3
3
|
--frame-date-picker-trigger-width: 17.5rem;
|
|
4
4
|
--frame-date-picker-trigger-padding: 0 0.75rem;
|
|
5
|
-
--frame-date-picker-trigger-gap:
|
|
5
|
+
--frame-date-picker-trigger-gap: var(--frame-density-gap-md);
|
|
6
6
|
--frame-date-picker-trigger-radius: var(--frame-radius-md);
|
|
7
7
|
--frame-date-picker-trigger-bg: var(--frame-background);
|
|
8
8
|
--frame-date-picker-trigger-color: var(--frame-foreground);
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
--frame-date-picker-content-border: var(--frame-border);
|
|
18
18
|
--frame-date-picker-content-radius: var(--frame-radius-lg);
|
|
19
19
|
--frame-date-picker-content-shadow: var(--frame-shadow-md);
|
|
20
|
-
--frame-date-picker-content-padding:
|
|
20
|
+
--frame-date-picker-content-padding: var(--frame-density-panel-padding-sm);
|
|
21
21
|
--frame-date-picker-presets-border: var(--frame-border);
|
|
22
|
-
--frame-date-picker-preset-height:
|
|
22
|
+
--frame-date-picker-preset-height: var(--frame-density-item-height);
|
|
23
23
|
--frame-date-picker-preset-radius: var(--frame-radius-md);
|
|
24
24
|
--frame-date-picker-preset-hover-bg: var(--frame-muted);
|
|
25
25
|
--frame-date-picker-time-border: var(--frame-border);
|
|
26
26
|
--frame-date-picker-time-input-radius: var(--frame-radius-md);
|
|
27
|
-
--frame-date-picker-time-padding:
|
|
27
|
+
--frame-date-picker-time-padding: var(--frame-density-gap-lg);
|
|
28
28
|
--frame-date-picker-motion-duration: 140ms;
|
|
29
29
|
--frame-date-picker-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);
|
|
30
30
|
}
|
|
@@ -111,7 +111,9 @@
|
|
|
111
111
|
|
|
112
112
|
.frame-date-picker__content {
|
|
113
113
|
box-sizing: border-box;
|
|
114
|
-
|
|
114
|
+
inline-size: auto;
|
|
115
|
+
max-inline-size: calc(100vw - 1.5rem);
|
|
116
|
+
overflow: auto;
|
|
115
117
|
border: 1px solid var(--frame-date-picker-content-border);
|
|
116
118
|
border-radius: var(--frame-date-picker-content-radius);
|
|
117
119
|
background: var(--frame-date-picker-content-bg);
|
|
@@ -122,10 +124,34 @@
|
|
|
122
124
|
}
|
|
123
125
|
|
|
124
126
|
.frame-date-picker__content .frame-calendar {
|
|
127
|
+
--frame-calendar-width: auto;
|
|
125
128
|
border: 0;
|
|
129
|
+
inline-size: auto;
|
|
130
|
+
max-inline-size: calc(100vw - 2rem);
|
|
126
131
|
box-shadow: none;
|
|
127
132
|
}
|
|
128
133
|
|
|
134
|
+
.frame-date-picker__content .frame-calendar__months {
|
|
135
|
+
inline-size: auto;
|
|
136
|
+
flex-wrap: nowrap;
|
|
137
|
+
align-items: flex-start;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.frame-date-picker__content .frame-calendar__month {
|
|
141
|
+
flex: 0 0 auto;
|
|
142
|
+
inline-size: calc(var(--frame-calendar-cell-size) * 7);
|
|
143
|
+
min-inline-size: calc(var(--frame-calendar-cell-size) * 7);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.frame-date-picker__content .frame-calendar__table {
|
|
147
|
+
inline-size: calc(var(--frame-calendar-cell-size) * 7);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.frame-date-picker__content .frame-calendar__day {
|
|
151
|
+
inline-size: var(--frame-calendar-cell-size);
|
|
152
|
+
block-size: var(--frame-calendar-cell-size);
|
|
153
|
+
}
|
|
154
|
+
|
|
129
155
|
.frame-date-picker__presets {
|
|
130
156
|
display: grid;
|
|
131
157
|
gap: 0.125rem;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--frame-drag-drop-gap:
|
|
3
|
-
--frame-drag-drop-group-gap:
|
|
1
|
+
:where(:root) {
|
|
2
|
+
--frame-drag-drop-gap: var(--frame-density-gap-lg);
|
|
3
|
+
--frame-drag-drop-group-gap: var(--frame-density-gap-xl);
|
|
4
4
|
--frame-drop-list-min-height: 3.5rem;
|
|
5
|
-
--frame-drop-list-padding:
|
|
5
|
+
--frame-drop-list-padding: var(--frame-density-gap-md);
|
|
6
6
|
--frame-drop-list-radius: var(--frame-radius-lg);
|
|
7
7
|
--frame-drop-list-bg: var(--frame-surface);
|
|
8
8
|
--frame-drop-list-border: var(--frame-border);
|
|
9
9
|
--frame-drop-list-hover-border: color-mix(in srgb, var(--frame-primary) 45%, var(--frame-border));
|
|
10
10
|
--frame-drop-list-disabled-opacity: 0.55;
|
|
11
|
-
--frame-drag-gap:
|
|
12
|
-
--frame-drag-padding:
|
|
11
|
+
--frame-drag-gap: var(--frame-density-gap-lg);
|
|
12
|
+
--frame-drag-padding: var(--frame-density-control-padding-x-md);
|
|
13
13
|
--frame-drag-radius: var(--frame-radius-md);
|
|
14
14
|
--frame-drag-bg: var(--frame-background);
|
|
15
15
|
--frame-drag-color: var(--frame-foreground);
|
|
16
16
|
--frame-drag-border: var(--frame-border);
|
|
17
|
-
--frame-drag-shadow: var(--frame-shadow-
|
|
17
|
+
--frame-drag-shadow: var(--frame-shadow-sm);
|
|
18
18
|
--frame-drag-hover-bg: var(--frame-accent);
|
|
19
19
|
--frame-drag-preview-bg: var(--frame-background);
|
|
20
|
-
--frame-drag-preview-shadow: var(--frame-shadow-
|
|
20
|
+
--frame-drag-preview-shadow: var(--frame-shadow-lg);
|
|
21
21
|
--frame-drag-placeholder-opacity: 0.24;
|
|
22
22
|
--frame-drag-placeholder-bg: color-mix(in srgb, var(--frame-primary) 12%, transparent);
|
|
23
23
|
--frame-drag-placeholder-border: color-mix(in srgb, var(--frame-primary) 45%, transparent);
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
:root {
|
|
1
|
+
:where(:root) {
|
|
2
2
|
--frame-dropdown-menu-panel-min-width: 13rem;
|
|
3
3
|
--frame-dropdown-menu-panel-radius: var(--frame-radius-md);
|
|
4
4
|
--frame-dropdown-menu-panel-bg: var(--frame-surface);
|
|
5
5
|
--frame-dropdown-menu-panel-color: var(--frame-surface-foreground);
|
|
6
6
|
--frame-dropdown-menu-panel-border: var(--frame-border);
|
|
7
7
|
--frame-dropdown-menu-panel-shadow: var(--frame-shadow-md);
|
|
8
|
-
--frame-dropdown-menu-panel-padding:
|
|
8
|
+
--frame-dropdown-menu-panel-padding: var(--frame-density-panel-padding-sm);
|
|
9
9
|
--frame-dropdown-menu-label-color: var(--frame-muted-foreground);
|
|
10
10
|
--frame-dropdown-menu-label-font-size: 0.75rem;
|
|
11
11
|
--frame-dropdown-menu-label-font-weight: 600;
|
|
12
|
-
--frame-dropdown-menu-separator-margin:
|
|
12
|
+
--frame-dropdown-menu-separator-margin: var(--frame-density-gap-sm) calc(0rem - var(--frame-density-gap-sm));
|
|
13
13
|
--frame-dropdown-menu-separator-bg: var(--frame-border);
|
|
14
|
-
--frame-dropdown-menu-item-gap:
|
|
15
|
-
--frame-dropdown-menu-item-height:
|
|
16
|
-
--frame-dropdown-menu-item-radius:
|
|
17
|
-
--frame-dropdown-menu-item-padding:
|
|
14
|
+
--frame-dropdown-menu-item-gap: var(--frame-density-gap-md);
|
|
15
|
+
--frame-dropdown-menu-item-height: var(--frame-density-item-height);
|
|
16
|
+
--frame-dropdown-menu-item-radius: var(--frame-radius-sm);
|
|
17
|
+
--frame-dropdown-menu-item-padding: var(--frame-density-item-padding);
|
|
18
18
|
--frame-dropdown-menu-item-font-size: 0.875rem;
|
|
19
19
|
--frame-dropdown-menu-item-hover-bg: var(--frame-accent);
|
|
20
20
|
--frame-dropdown-menu-item-hover-color: var(--frame-accent-foreground);
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
--frame-dropdown-menu-item-destructive-hover-bg: color-mix(in srgb, var(--frame-destructive) 12%, var(--frame-surface));
|
|
24
24
|
--frame-dropdown-menu-item-destructive-hover-color: var(--frame-destructive);
|
|
25
25
|
--frame-dropdown-menu-item-inset-padding: 2rem;
|
|
26
|
-
--frame-dropdown-menu-shortcut-gap:
|
|
26
|
+
--frame-dropdown-menu-shortcut-gap: var(--frame-density-gap-lg);
|
|
27
27
|
--frame-dropdown-menu-shortcut-color: var(--frame-muted-foreground);
|
|
28
28
|
--frame-dropdown-menu-shortcut-font-size: 0.75rem;
|
|
29
29
|
--frame-dropdown-menu-indicator-size: 1rem;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--frame-empty-padding:
|
|
3
|
-
--frame-empty-gap:
|
|
4
|
-
--frame-empty-radius: var(--frame-radius-lg);
|
|
5
|
-
--frame-empty-border: transparent;
|
|
6
|
-
--frame-empty-bg: transparent;
|
|
7
|
-
--frame-empty-color: var(--frame-foreground);
|
|
8
|
-
--frame-empty-outline-border: var(--frame-border);
|
|
9
|
-
--frame-empty-soft-bg: var(--frame-muted);
|
|
10
|
-
--frame-empty-header-gap:
|
|
11
|
-
--frame-empty-content-gap:
|
|
12
|
-
--frame-empty-media-size: 3rem;
|
|
13
|
-
--frame-empty-media-radius: var(--frame-radius-lg);
|
|
14
|
-
--frame-empty-media-bg: var(--frame-muted);
|
|
15
|
-
--frame-empty-media-color: var(--frame-muted-foreground);
|
|
16
|
-
--frame-empty-media-icon-size: 1.5rem;
|
|
17
|
-
--frame-empty-title-color: var(--frame-foreground);
|
|
18
|
-
--frame-empty-title-font-size: 1rem;
|
|
19
|
-
--frame-empty-title-font-weight: 600;
|
|
20
|
-
--frame-empty-description-color: var(--frame-muted-foreground);
|
|
21
|
-
--frame-empty-description-font-size: 0.875rem;
|
|
22
|
-
--frame-empty-description-max-width: 32rem;
|
|
23
|
-
}
|
|
1
|
+
:where(:root) {
|
|
2
|
+
--frame-empty-padding: calc(var(--frame-density-panel-padding-lg) + var(--frame-density-panel-padding-lg)) var(--frame-density-panel-padding-lg);
|
|
3
|
+
--frame-empty-gap: var(--frame-density-panel-padding-lg);
|
|
4
|
+
--frame-empty-radius: var(--frame-radius-lg);
|
|
5
|
+
--frame-empty-border: transparent;
|
|
6
|
+
--frame-empty-bg: transparent;
|
|
7
|
+
--frame-empty-color: var(--frame-foreground);
|
|
8
|
+
--frame-empty-outline-border: var(--frame-border);
|
|
9
|
+
--frame-empty-soft-bg: var(--frame-muted);
|
|
10
|
+
--frame-empty-header-gap: var(--frame-density-gap-lg);
|
|
11
|
+
--frame-empty-content-gap: var(--frame-density-gap-lg);
|
|
12
|
+
--frame-empty-media-size: 3rem;
|
|
13
|
+
--frame-empty-media-radius: var(--frame-radius-lg);
|
|
14
|
+
--frame-empty-media-bg: var(--frame-muted);
|
|
15
|
+
--frame-empty-media-color: var(--frame-muted-foreground);
|
|
16
|
+
--frame-empty-media-icon-size: 1.5rem;
|
|
17
|
+
--frame-empty-title-color: var(--frame-foreground);
|
|
18
|
+
--frame-empty-title-font-size: 1rem;
|
|
19
|
+
--frame-empty-title-font-weight: 600;
|
|
20
|
+
--frame-empty-description-color: var(--frame-muted-foreground);
|
|
21
|
+
--frame-empty-description-font-size: 0.875rem;
|
|
22
|
+
--frame-empty-description-max-width: 32rem;
|
|
23
|
+
}
|
|
@@ -8,7 +8,6 @@ const FR_BUTTON_APPEARANCES = [
|
|
|
8
8
|
'primary',
|
|
9
9
|
];
|
|
10
10
|
const FR_BUTTON_LOADING_DISPLAYS = ['inline', 'replace'];
|
|
11
|
-
const FR_BUTTON_RADII = ['full', 'lg', 'md', 'none', 'sm'];
|
|
12
11
|
const FR_BUTTON_SIZES = ['sm', 'md', 'lg'];
|
|
13
12
|
/** Button host with FrameUI size and appearance variants. */
|
|
14
13
|
class FrButton {
|
|
@@ -18,12 +17,11 @@ class FrButton {
|
|
|
18
17
|
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
19
18
|
loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
20
19
|
loadingDisplay = input('replace', ...(ngDevMode ? [{ debugName: "loadingDisplay" }] : /* istanbul ignore next */ []));
|
|
21
|
-
radius = input('none', ...(ngDevMode ? [{ debugName: "radius" }] : /* istanbul ignore next */ []));
|
|
22
20
|
size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
23
21
|
hasCustomLoadingIndicator = computed(() => !!this.loadingIndicator() || !!this.spinnerIndicator(), ...(ngDevMode ? [{ debugName: "hasCustomLoadingIndicator" }] : /* istanbul ignore next */ []));
|
|
24
22
|
isUnavailable = computed(() => this.disabled() || this.loading(), ...(ngDevMode ? [{ debugName: "isUnavailable" }] : /* istanbul ignore next */ []));
|
|
25
23
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrButton, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
26
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.2.16", type: FrButton, isStandalone: true, selector: "a[frButton], button[frButton]", inputs: { appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingDisplay: { classPropertyName: "loadingDisplay", publicName: "loadingDisplay", isSignal: true, isRequired: false, transformFunction: null },
|
|
24
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.2.16", type: FrButton, isStandalone: true, selector: "a[frButton], button[frButton]", inputs: { appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingDisplay: { classPropertyName: "loadingDisplay", publicName: "loadingDisplay", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-appearance": "appearance()", "attr.data-disabled": "disabled() ? \"\" : null", "attr.data-has-custom-loading": "hasCustomLoadingIndicator() ? \"\" : null", "attr.data-loading": "loading() ? \"\" : null", "attr.data-loading-display": "loadingDisplay()", "attr.data-size": "size()", "attr.aria-busy": "loading() ? \"true\" : null", "attr.aria-disabled": "disabled() ? \"true\" : null", "attr.disabled": "isUnavailable() ? \"\" : null", "class.frame-button-disabled": "isUnavailable()", "class.frame-button-loading": "loading()" }, classAttribute: "frame-button" }, queries: [{ propertyName: "loadingIndicator", first: true, predicate: FrButtonLoading, descendants: true, isSignal: true }, { propertyName: "spinnerIndicator", first: true, predicate: FrSpinner, descendants: true, isSignal: true }], ngImport: i0 });
|
|
27
25
|
}
|
|
28
26
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrButton, decorators: [{
|
|
29
27
|
type: Directive,
|
|
@@ -36,7 +34,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
36
34
|
'[attr.data-has-custom-loading]': 'hasCustomLoadingIndicator() ? "" : null',
|
|
37
35
|
'[attr.data-loading]': 'loading() ? "" : null',
|
|
38
36
|
'[attr.data-loading-display]': 'loadingDisplay()',
|
|
39
|
-
'[attr.data-radius]': 'radius()',
|
|
40
37
|
'[attr.data-size]': 'size()',
|
|
41
38
|
'[attr.aria-busy]': 'loading() ? "true" : null',
|
|
42
39
|
'[attr.aria-disabled]': 'disabled() ? "true" : null',
|
|
@@ -45,12 +42,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
45
42
|
'[class.frame-button-loading]': 'loading()',
|
|
46
43
|
},
|
|
47
44
|
}]
|
|
48
|
-
}], propDecorators: { loadingIndicator: [{ type: i0.ContentChild, args: [i0.forwardRef(() => FrButtonLoading), { isSignal: true }] }], spinnerIndicator: [{ type: i0.ContentChild, args: [i0.forwardRef(() => FrSpinner), { isSignal: true }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], loadingDisplay: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingDisplay", required: false }] }],
|
|
45
|
+
}], propDecorators: { loadingIndicator: [{ type: i0.ContentChild, args: [i0.forwardRef(() => FrButtonLoading), { isSignal: true }] }], spinnerIndicator: [{ type: i0.ContentChild, args: [i0.forwardRef(() => FrSpinner), { isSignal: true }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], loadingDisplay: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingDisplay", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
|
|
49
46
|
/** Icon-only button host with square sizing. */
|
|
50
47
|
class FrIconButton {
|
|
51
48
|
ariaLabel = input(null, { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
|
|
52
49
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrIconButton, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
53
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.16", type: FrIconButton, isStandalone: true, selector: "a[frIconButton], button[frIconButton]", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-icon-button": "\"\"", "attr.aria-label": "ariaLabel()" }, classAttribute: "frame-icon-button" }, hostDirectives: [{ directive: FrButton, inputs: ["appearance", "appearance", "disabled", "disabled", "loading", "loading", "loadingDisplay", "loadingDisplay", "
|
|
50
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.16", type: FrIconButton, isStandalone: true, selector: "a[frIconButton], button[frIconButton]", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-icon-button": "\"\"", "attr.aria-label": "ariaLabel()" }, classAttribute: "frame-icon-button" }, hostDirectives: [{ directive: FrButton, inputs: ["appearance", "appearance", "disabled", "disabled", "loading", "loading", "loadingDisplay", "loadingDisplay", "size", "size"] }], ngImport: i0 });
|
|
54
51
|
}
|
|
55
52
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrIconButton, decorators: [{
|
|
56
53
|
type: Directive,
|
|
@@ -59,7 +56,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
59
56
|
hostDirectives: [
|
|
60
57
|
{
|
|
61
58
|
directive: FrButton,
|
|
62
|
-
inputs: ['appearance', 'disabled', 'loading', 'loadingDisplay', '
|
|
59
|
+
inputs: ['appearance', 'disabled', 'loading', 'loadingDisplay', 'size'],
|
|
63
60
|
},
|
|
64
61
|
],
|
|
65
62
|
host: {
|
|
@@ -151,5 +148,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
151
148
|
* Generated bundle index. Do not edit.
|
|
152
149
|
*/
|
|
153
150
|
|
|
154
|
-
export { FR_BUTTON_APPEARANCES, FR_BUTTON_LOADING_DISPLAYS,
|
|
151
|
+
export { FR_BUTTON_APPEARANCES, FR_BUTTON_LOADING_DISPLAYS, FR_BUTTON_SIZES, FrButton, FrButtonIcon, FrButtonLabel, FrButtonLoading, FrButtonModule, FrIconButton };
|
|
155
152
|
//# sourceMappingURL=frame-ui-ng-components-button.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frame-ui-ng-components-button.mjs","sources":["../../../projects/components/button/src/button.ts","../../../projects/components/button/button.module.ts","../../../projects/components/button/frame-ui-ng-components-button.ts"],"sourcesContent":["import { Directive, booleanAttribute, computed, contentChild, input } from '@angular/core';\r\nimport { FrSpinner } from '@frame-ui-ng/components/spinner';\r\n\r\nexport const FR_BUTTON_APPEARANCES = [\r\n 'ghost',\r\n 'outline',\r\n 'primary',\r\n] as const;\r\nexport const FR_BUTTON_LOADING_DISPLAYS = ['inline', 'replace'] as const;\r\nexport const FR_BUTTON_RADII = ['full', 'lg', 'md', 'none', 'sm'] as const;\r\nexport const FR_BUTTON_SIZES = ['sm', 'md', 'lg'] as const;\r\n\r\nexport type FrButtonAppearance = (typeof FR_BUTTON_APPEARANCES)[number];\r\nexport type FrButtonLoadingDisplay = (typeof FR_BUTTON_LOADING_DISPLAYS)[number];\r\nexport type FrButtonRadius = (typeof FR_BUTTON_RADII)[number];\r\nexport type FrButtonSize = (typeof FR_BUTTON_SIZES)[number];\r\n\r\n/** Button host with FrameUI size and appearance variants. */\r\n@Directive({\r\n selector: 'a[frButton], button[frButton]',\r\n host: {\r\n class: 'frame-button',\r\n '[attr.data-appearance]': 'appearance()',\r\n '[attr.data-disabled]': 'disabled() ? \"\" : null',\r\n '[attr.data-has-custom-loading]': 'hasCustomLoadingIndicator() ? \"\" : null',\r\n '[attr.data-loading]': 'loading() ? \"\" : null',\r\n '[attr.data-loading-display]': 'loadingDisplay()',\r\n '[attr.data-radius]': 'radius()',\r\n '[attr.data-size]': 'size()',\r\n '[attr.aria-busy]': 'loading() ? \"true\" : null',\r\n '[attr.aria-disabled]': 'disabled() ? \"true\" : null',\r\n '[attr.disabled]': 'isUnavailable() ? \"\" : null',\r\n '[class.frame-button-disabled]': 'isUnavailable()',\r\n '[class.frame-button-loading]': 'loading()',\r\n },\r\n})\r\nexport class FrButton {\r\n private readonly loadingIndicator = contentChild(FrButtonLoading);\r\n private readonly spinnerIndicator = contentChild(FrSpinner);\r\n\r\n readonly appearance = input<FrButtonAppearance>('primary');\r\n readonly disabled = input(false, { transform: booleanAttribute });\r\n readonly loading = input(false, { transform: booleanAttribute });\r\n readonly loadingDisplay = input<FrButtonLoadingDisplay>('replace');\r\n readonly radius = input<FrButtonRadius>('none');\r\n readonly size = input<FrButtonSize>('md');\r\n protected readonly hasCustomLoadingIndicator = computed(\r\n () => !!this.loadingIndicator() || !!this.spinnerIndicator(),\r\n );\r\n protected readonly isUnavailable = computed(() => this.disabled() || this.loading());\r\n}\r\n\r\n/** Icon-only button host with square sizing. */\r\n@Directive({\r\n selector: 'a[frIconButton], button[frIconButton]',\r\n hostDirectives: [\r\n {\r\n directive: FrButton,\r\n inputs: ['appearance', 'disabled', 'loading', 'loadingDisplay', 'radius', 'size'],\r\n },\r\n ],\r\n host: {\r\n class: 'frame-icon-button',\r\n '[attr.data-icon-button]': '\"\"',\r\n '[attr.aria-label]': 'ariaLabel()',\r\n },\r\n})\r\nexport class FrIconButton {\r\n readonly ariaLabel = input<string | null>(null, { alias: 'aria-label' });\r\n}\r\n\r\n/** Icon slot for button. */\r\n@Directive({\r\n selector: '[frButtonIcon]',\r\n host: {\r\n class: 'frame-button__icon',\r\n 'aria-hidden': 'true',\r\n },\r\n})\r\nexport class FrButtonIcon {}\r\n\r\n/** Label slot for button. */\r\n@Directive({\r\n selector: '[frButtonLabel]',\r\n host: {\r\n class: 'frame-button__label',\r\n },\r\n})\r\nexport class FrButtonLabel {}\r\n\r\n/** Loading indicator slot for button. */\r\n@Directive({\r\n selector: '[frButtonLoading]',\r\n host: {\r\n class: 'frame-button__loading',\r\n 'aria-hidden': 'true',\r\n },\r\n})\r\nexport class FrButtonLoading {}\r\n\r\n","import { NgModule } from '@angular/core';\nimport {\n FrButton,\n FrButtonIcon,\n FrButtonLabel,\n FrButtonLoading,\n FrIconButton,\n} from './src/button';\n\n@NgModule({\n imports: [\n FrButton,\n FrButtonIcon,\n FrButtonLabel,\n FrButtonLoading,\n FrIconButton,\n ],\n exports: [\n FrButton,\n FrButtonIcon,\n FrButtonLabel,\n FrButtonLoading,\n FrIconButton,\n ],\n})\nexport class FrButtonModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAGO,MAAM,qBAAqB,GAAG;IACnC,OAAO;IACP,SAAS;IACT,SAAS;;MAEE,0BAA0B,GAAG,CAAC,QAAQ,EAAE,SAAS;AACvD,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI;AACzD,MAAM,eAAe,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI;AAOhD;MAmBa,QAAQ,CAAA;AACF,IAAA,gBAAgB,GAAG,YAAY,CAAC,eAAe,uFAAC;AAChD,IAAA,gBAAgB,GAAG,YAAY,CAAC,SAAS,uFAAC;AAElD,IAAA,UAAU,GAAG,KAAK,CAAqB,SAAS,iFAAC;IACjD,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IACxD,OAAO,GAAG,KAAK,CAAC,KAAK,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AACvD,IAAA,cAAc,GAAG,KAAK,CAAyB,SAAS,qFAAC;AACzD,IAAA,MAAM,GAAG,KAAK,CAAiB,MAAM,6EAAC;AACtC,IAAA,IAAI,GAAG,KAAK,CAAe,IAAI,2EAAC;IACtB,yBAAyB,GAAG,QAAQ,CACrD,MAAM,CAAC,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,gBAAgB,EAAE,gGAC7D;AACkB,IAAA,aAAa,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,QAAQ,EAAE,IAAI,IAAI,CAAC,OAAO,EAAE,oFAAC;wGAbzE,QAA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3B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,mBAAmB;AAC7B,oBAAA,IAAI,EAAE;AACJ,wBAAA,KAAK,EAAE,uBAAuB;AAC9B,wBAAA,aAAa,EAAE,MAAM;AACtB,qBAAA;AACF,iBAAA;;;MCxEY,cAAc,CAAA;wGAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAd,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YAdvB,QAAQ;YACR,YAAY;YACZ,aAAa;YACb,eAAe;AACf,YAAA,YAAY,aAGZ,QAAQ;YACR,YAAY;YACZ,aAAa;YACb,eAAe;YACf,YAAY,CAAA,EAAA,CAAA;yGAGH,cAAc,EAAA,CAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAhB1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,QAAQ;wBACR,YAAY;wBACZ,aAAa;wBACb,eAAe;wBACf,YAAY;AACb,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,QAAQ;wBACR,YAAY;wBACZ,aAAa;wBACb,eAAe;wBACf,YAAY;AACb,qBAAA;AACF,iBAAA;;;ACxBD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"frame-ui-ng-components-button.mjs","sources":["../../../projects/components/button/src/button.ts","../../../projects/components/button/button.module.ts","../../../projects/components/button/frame-ui-ng-components-button.ts"],"sourcesContent":["import { Directive, booleanAttribute, computed, contentChild, input } from '@angular/core';\r\nimport { FrSpinner } from '@frame-ui-ng/components/spinner';\r\n\r\nexport const FR_BUTTON_APPEARANCES = [\r\n 'ghost',\r\n 'outline',\r\n 'primary',\r\n] as const;\r\nexport const FR_BUTTON_LOADING_DISPLAYS = ['inline', 'replace'] as const;\r\nexport const FR_BUTTON_SIZES = ['sm', 'md', 'lg'] as const;\r\n\r\nexport type FrButtonAppearance = (typeof FR_BUTTON_APPEARANCES)[number];\r\nexport type FrButtonLoadingDisplay = (typeof FR_BUTTON_LOADING_DISPLAYS)[number];\r\nexport type FrButtonSize = (typeof FR_BUTTON_SIZES)[number];\r\n\r\n/** Button host with FrameUI size and appearance variants. */\r\n@Directive({\r\n selector: 'a[frButton], button[frButton]',\r\n host: {\r\n class: 'frame-button',\r\n '[attr.data-appearance]': 'appearance()',\r\n '[attr.data-disabled]': 'disabled() ? \"\" : null',\r\n '[attr.data-has-custom-loading]': 'hasCustomLoadingIndicator() ? \"\" : null',\r\n '[attr.data-loading]': 'loading() ? \"\" : null',\r\n '[attr.data-loading-display]': 'loadingDisplay()',\r\n '[attr.data-size]': 'size()',\r\n '[attr.aria-busy]': 'loading() ? \"true\" : null',\r\n '[attr.aria-disabled]': 'disabled() ? \"true\" : null',\r\n '[attr.disabled]': 'isUnavailable() ? \"\" : null',\r\n '[class.frame-button-disabled]': 'isUnavailable()',\r\n '[class.frame-button-loading]': 'loading()',\r\n },\r\n})\r\nexport class FrButton {\r\n private readonly loadingIndicator = contentChild(FrButtonLoading);\r\n private readonly spinnerIndicator = contentChild(FrSpinner);\r\n\r\n readonly appearance = input<FrButtonAppearance>('primary');\r\n readonly disabled = input(false, { transform: booleanAttribute });\r\n readonly loading = input(false, { transform: booleanAttribute });\r\n readonly loadingDisplay = input<FrButtonLoadingDisplay>('replace');\r\n readonly size = input<FrButtonSize>('md');\r\n protected readonly hasCustomLoadingIndicator = computed(\r\n () => !!this.loadingIndicator() || !!this.spinnerIndicator(),\r\n );\r\n protected readonly isUnavailable = computed(() => this.disabled() || this.loading());\r\n}\r\n\r\n/** Icon-only button host with square sizing. */\r\n@Directive({\r\n selector: 'a[frIconButton], button[frIconButton]',\r\n hostDirectives: [\r\n {\r\n directive: FrButton,\r\n inputs: ['appearance', 'disabled', 'loading', 'loadingDisplay', 'size'],\r\n },\r\n ],\r\n host: {\r\n class: 'frame-icon-button',\r\n '[attr.data-icon-button]': '\"\"',\r\n '[attr.aria-label]': 'ariaLabel()',\r\n },\r\n})\r\nexport class FrIconButton {\r\n readonly ariaLabel = input<string | null>(null, { alias: 'aria-label' });\r\n}\r\n\r\n/** Icon slot for button. */\r\n@Directive({\r\n selector: '[frButtonIcon]',\r\n host: {\r\n class: 'frame-button__icon',\r\n 'aria-hidden': 'true',\r\n },\r\n})\r\nexport class FrButtonIcon {}\r\n\r\n/** Label slot for button. */\r\n@Directive({\r\n selector: '[frButtonLabel]',\r\n host: {\r\n class: 'frame-button__label',\r\n },\r\n})\r\nexport class FrButtonLabel {}\r\n\r\n/** Loading indicator slot for button. */\r\n@Directive({\r\n selector: '[frButtonLoading]',\r\n host: {\r\n class: 'frame-button__loading',\r\n 'aria-hidden': 'true',\r\n },\r\n})\r\nexport class FrButtonLoading {}\r\n\r\n","import { NgModule } from '@angular/core';\nimport {\n FrButton,\n FrButtonIcon,\n FrButtonLabel,\n FrButtonLoading,\n FrIconButton,\n} from './src/button';\n\n@NgModule({\n imports: [\n FrButton,\n FrButtonIcon,\n FrButtonLabel,\n FrButtonLoading,\n FrIconButton,\n ],\n exports: [\n FrButton,\n FrButtonIcon,\n FrButtonLabel,\n FrButtonLoading,\n FrIconButton,\n ],\n})\nexport class FrButtonModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAGO,MAAM,qBAAqB,GAAG;IACnC,OAAO;IACP,SAAS;IACT,SAAS;;MAEE,0BAA0B,GAAG,CAAC,QAAQ,EAAE,SAAS;AACvD,MAAM,eAAe,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI;AAMhD;MAkBa,QAAQ,CAAA;AACF,IAAA,gBAAgB,GAAG,YAAY,CAAC,eAAe,uFAAC;AAChD,IAAA,gBAAgB,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,UAAA,EAAA,EAAA,aAAA,EAAA,MAAA,EAAA,EAAA,cAAA,EAAA,uBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAP3B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,mBAAmB;AAC7B,oBAAA,IAAI,EAAE;AACJ,wBAAA,KAAK,EAAE,uBAAuB;AAC9B,wBAAA,aAAa,EAAE,MAAM;AACtB,qBAAA;AACF,iBAAA;;;MCpEY,cAAc,CAAA;wGAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAd,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YAdvB,QAAQ;YACR,YAAY;YACZ,aAAa;YACb,eAAe;AACf,YAAA,YAAY,aAGZ,QAAQ;YACR,YAAY;YACZ,aAAa;YACb,eAAe;YACf,YAAY,CAAA,EAAA,CAAA;yGAGH,cAAc,EAAA,CAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAhB1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,QAAQ;wBACR,YAAY;wBACZ,aAAa;wBACb,eAAe;wBACf,YAAY;AACb,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,QAAQ;wBACR,YAAY;wBACZ,aAAa;wBACb,eAAe;wBACf,YAAY;AACb,qBAAA;AACF,iBAAA;;;ACxBD;;AAEG;;;;"}
|
|
@@ -58,6 +58,7 @@ class FrCalendar {
|
|
|
58
58
|
yearOptions = computed(() => Array.from({ length: Math.max(0, this.toYear() - this.fromYear() + 1) }, (_, index) => this.fromYear() + index), ...(ngDevMode ? [{ debugName: "yearOptions" }] : /* istanbul ignore next */ []));
|
|
59
59
|
months = computed(() => Array.from({ length: Math.max(1, this.numberOfMonths()) }, (_, index) => this.buildMonth(addMonths(this.currentMonth(), index))), ...(ngDevMode ? [{ debugName: "months" }] : /* istanbul ignore next */ []));
|
|
60
60
|
activeDate = computed(() => this.resolveActiveDate(), ...(ngDevMode ? [{ debugName: "activeDate" }] : /* istanbul ignore next */ []));
|
|
61
|
+
hasDateLabels = computed(() => Object.keys(this.dateLabels()).length > 0, ...(ngDevMode ? [{ debugName: "hasDateLabels" }] : /* istanbul ignore next */ []));
|
|
61
62
|
onTouched = () => undefined;
|
|
62
63
|
onChange = () => undefined;
|
|
63
64
|
writeValue(value) {
|
|
@@ -254,7 +255,7 @@ class FrCalendar {
|
|
|
254
255
|
};
|
|
255
256
|
}
|
|
256
257
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: FrCalendar, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
257
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: FrCalendar, isStandalone: true, selector: "frame-calendar", inputs: { mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, captionLayout: { classPropertyName: "captionLayout", publicName: "captionLayout", isSignal: true, isRequired: false, transformFunction: null }, numberOfMonths: { classPropertyName: "numberOfMonths", publicName: "numberOfMonths", isSignal: true, isRequired: false, transformFunction: null }, firstDayOfWeek: { classPropertyName: "firstDayOfWeek", publicName: "firstDayOfWeek", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, timeZone: { classPropertyName: "timeZone", publicName: "timeZone", isSignal: true, isRequired: false, transformFunction: null }, dir: { classPropertyName: "dir", publicName: "dir", isSignal: true, isRequired: false, transformFunction: null }, fromYear: { classPropertyName: "fromYear", publicName: "fromYear", isSignal: true, isRequired: false, transformFunction: null }, toYear: { classPropertyName: "toYear", publicName: "toYear", isSignal: true, isRequired: false, transformFunction: null }, showOutsideDays: { classPropertyName: "showOutsideDays", publicName: "showOutsideDays", isSignal: true, isRequired: false, transformFunction: null }, showWeekNumber: { classPropertyName: "showWeekNumber", publicName: "showWeekNumber", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, disabledDates: { classPropertyName: "disabledDates", publicName: "disabledDates", isSignal: true, isRequired: false, transformFunction: null }, dateLabels: { classPropertyName: "dateLabels", publicName: "dateLabels", isSignal: true, isRequired: false, transformFunction: null }, disabledMatcher: { classPropertyName: "disabledMatcher", publicName: "disabledMatcher", isSignal: true, isRequired: false, transformFunction: null }, cellTemplate: { classPropertyName: "cellTemplate", publicName: "cellTemplate", isSignal: true, isRequired: false, transformFunction: null }, previousMonthTemplate: { classPropertyName: "previousMonthTemplate", publicName: "previousMonthTemplate", isSignal: true, isRequired: false, transformFunction: null }, nextMonthTemplate: { classPropertyName: "nextMonthTemplate", publicName: "nextMonthTemplate", isSignal: true, isRequired: false, transformFunction: null }, previousMonthIcon: { classPropertyName: "previousMonthIcon", publicName: "previousMonthIcon", isSignal: true, isRequired: false, transformFunction: null }, nextMonthIcon: { classPropertyName: "nextMonthIcon", publicName: "nextMonthIcon", isSignal: true, isRequired: false, transformFunction: null }, previousMonthLabel: { classPropertyName: "previousMonthLabel", publicName: "previousMonthLabel", isSignal: true, isRequired: false, transformFunction: null }, nextMonthLabel: { classPropertyName: "nextMonthLabel", publicName: "nextMonthLabel", isSignal: true, isRequired: false, transformFunction: null }, month: { classPropertyName: "month", publicName: "month", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedChange: "selectedChange", monthChange: "monthChange" }, host: { properties: { "attr.data-mode": "mode()", "attr.data-caption-layout": "captionLayout()", "attr.data-disabled": "isDisabled() ? \"\" : null", "attr.dir": "dir()" }, classAttribute: "frame-calendar" }, providers: [VALUE_ACCESSOR], ngImport: i0, template: `
|
|
258
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: FrCalendar, isStandalone: true, selector: "frame-calendar", inputs: { mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, captionLayout: { classPropertyName: "captionLayout", publicName: "captionLayout", isSignal: true, isRequired: false, transformFunction: null }, numberOfMonths: { classPropertyName: "numberOfMonths", publicName: "numberOfMonths", isSignal: true, isRequired: false, transformFunction: null }, firstDayOfWeek: { classPropertyName: "firstDayOfWeek", publicName: "firstDayOfWeek", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, timeZone: { classPropertyName: "timeZone", publicName: "timeZone", isSignal: true, isRequired: false, transformFunction: null }, dir: { classPropertyName: "dir", publicName: "dir", isSignal: true, isRequired: false, transformFunction: null }, fromYear: { classPropertyName: "fromYear", publicName: "fromYear", isSignal: true, isRequired: false, transformFunction: null }, toYear: { classPropertyName: "toYear", publicName: "toYear", isSignal: true, isRequired: false, transformFunction: null }, showOutsideDays: { classPropertyName: "showOutsideDays", publicName: "showOutsideDays", isSignal: true, isRequired: false, transformFunction: null }, showWeekNumber: { classPropertyName: "showWeekNumber", publicName: "showWeekNumber", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, disabledDates: { classPropertyName: "disabledDates", publicName: "disabledDates", isSignal: true, isRequired: false, transformFunction: null }, dateLabels: { classPropertyName: "dateLabels", publicName: "dateLabels", isSignal: true, isRequired: false, transformFunction: null }, disabledMatcher: { classPropertyName: "disabledMatcher", publicName: "disabledMatcher", isSignal: true, isRequired: false, transformFunction: null }, cellTemplate: { classPropertyName: "cellTemplate", publicName: "cellTemplate", isSignal: true, isRequired: false, transformFunction: null }, previousMonthTemplate: { classPropertyName: "previousMonthTemplate", publicName: "previousMonthTemplate", isSignal: true, isRequired: false, transformFunction: null }, nextMonthTemplate: { classPropertyName: "nextMonthTemplate", publicName: "nextMonthTemplate", isSignal: true, isRequired: false, transformFunction: null }, previousMonthIcon: { classPropertyName: "previousMonthIcon", publicName: "previousMonthIcon", isSignal: true, isRequired: false, transformFunction: null }, nextMonthIcon: { classPropertyName: "nextMonthIcon", publicName: "nextMonthIcon", isSignal: true, isRequired: false, transformFunction: null }, previousMonthLabel: { classPropertyName: "previousMonthLabel", publicName: "previousMonthLabel", isSignal: true, isRequired: false, transformFunction: null }, nextMonthLabel: { classPropertyName: "nextMonthLabel", publicName: "nextMonthLabel", isSignal: true, isRequired: false, transformFunction: null }, month: { classPropertyName: "month", publicName: "month", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedChange: "selectedChange", monthChange: "monthChange" }, host: { properties: { "attr.data-mode": "mode()", "attr.data-caption-layout": "captionLayout()", "attr.data-disabled": "isDisabled() ? \"\" : null", "attr.data-week-number": "showWeekNumber() ? \"\" : null", "attr.data-date-labels": "hasDateLabels() ? \"\" : null", "attr.dir": "dir()" }, classAttribute: "frame-calendar" }, providers: [VALUE_ACCESSOR], ngImport: i0, template: `
|
|
258
259
|
<div class="frame-calendar__header">
|
|
259
260
|
<button
|
|
260
261
|
class="frame-calendar__nav-button"
|
|
@@ -329,6 +330,14 @@ class FrCalendar {
|
|
|
329
330
|
}
|
|
330
331
|
|
|
331
332
|
<table class="frame-calendar__table" role="grid" [attr.aria-readonly]="true">
|
|
333
|
+
<colgroup>
|
|
334
|
+
@if (showWeekNumber()) {
|
|
335
|
+
<col class="frame-calendar__week-number-column" />
|
|
336
|
+
}
|
|
337
|
+
@for (weekday of weekdayLabels(); track weekday) {
|
|
338
|
+
<col class="frame-calendar__day-column" />
|
|
339
|
+
}
|
|
340
|
+
</colgroup>
|
|
332
341
|
<thead>
|
|
333
342
|
<tr>
|
|
334
343
|
@if (showWeekNumber()) {
|
|
@@ -405,6 +414,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
405
414
|
'[attr.data-mode]': 'mode()',
|
|
406
415
|
'[attr.data-caption-layout]': 'captionLayout()',
|
|
407
416
|
'[attr.data-disabled]': 'isDisabled() ? "" : null',
|
|
417
|
+
'[attr.data-week-number]': 'showWeekNumber() ? "" : null',
|
|
418
|
+
'[attr.data-date-labels]': 'hasDateLabels() ? "" : null',
|
|
408
419
|
'[attr.dir]': 'dir()',
|
|
409
420
|
},
|
|
410
421
|
template: `
|
|
@@ -482,6 +493,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
482
493
|
}
|
|
483
494
|
|
|
484
495
|
<table class="frame-calendar__table" role="grid" [attr.aria-readonly]="true">
|
|
496
|
+
<colgroup>
|
|
497
|
+
@if (showWeekNumber()) {
|
|
498
|
+
<col class="frame-calendar__week-number-column" />
|
|
499
|
+
}
|
|
500
|
+
@for (weekday of weekdayLabels(); track weekday) {
|
|
501
|
+
<col class="frame-calendar__day-column" />
|
|
502
|
+
}
|
|
503
|
+
</colgroup>
|
|
485
504
|
<thead>
|
|
486
505
|
<tr>
|
|
487
506
|
@if (showWeekNumber()) {
|