@masmarino/gabarit 2.1.0 → 2.2.1
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/command-palette/README.md +65 -0
- package/fesm2022/masmarino-gabarit-accordion.mjs +6 -6
- package/fesm2022/masmarino-gabarit-alert.mjs +3 -3
- package/fesm2022/masmarino-gabarit-app-shell.mjs +8 -8
- package/fesm2022/masmarino-gabarit-app-shell.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-auth-activate.mjs +3 -3
- package/fesm2022/masmarino-gabarit-auth-login.mjs +3 -3
- package/fesm2022/masmarino-gabarit-auth-register.mjs +3 -3
- package/fesm2022/masmarino-gabarit-auth-reset-password.mjs +3 -3
- package/fesm2022/masmarino-gabarit-auth.mjs +12 -12
- package/fesm2022/masmarino-gabarit-autocomplete.mjs +10 -12
- package/fesm2022/masmarino-gabarit-autocomplete.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-avatar-group.mjs +8 -5
- package/fesm2022/masmarino-gabarit-avatar-group.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-avatar.mjs +3 -3
- package/fesm2022/masmarino-gabarit-badge.mjs +3 -3
- package/fesm2022/masmarino-gabarit-bar-chart.mjs +6 -6
- package/fesm2022/masmarino-gabarit-breadcrumb.mjs +3 -3
- package/fesm2022/masmarino-gabarit-button.mjs +3 -3
- package/fesm2022/masmarino-gabarit-card.mjs +9 -9
- package/fesm2022/masmarino-gabarit-chart.mjs +21 -21
- package/fesm2022/masmarino-gabarit-checkbox-group.mjs +3 -3
- package/fesm2022/masmarino-gabarit-checkbox.mjs +3 -3
- package/fesm2022/masmarino-gabarit-command-palette.mjs +649 -0
- package/fesm2022/masmarino-gabarit-command-palette.mjs.map +1 -0
- package/fesm2022/masmarino-gabarit-confirm-danger-modal.mjs +3 -3
- package/fesm2022/masmarino-gabarit-copy-button.mjs +3 -3
- package/fesm2022/masmarino-gabarit-copy-field.mjs +3 -3
- package/fesm2022/masmarino-gabarit-date-picker.mjs +15 -11
- package/fesm2022/masmarino-gabarit-date-picker.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-description-list.mjs +3 -3
- package/fesm2022/masmarino-gabarit-dimension-card.mjs +3 -3
- package/fesm2022/masmarino-gabarit-disclosure.mjs +3 -3
- package/fesm2022/masmarino-gabarit-divider.mjs +3 -3
- package/fesm2022/masmarino-gabarit-docs.mjs +26 -22
- package/fesm2022/masmarino-gabarit-docs.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-drawer.mjs +3 -3
- package/fesm2022/masmarino-gabarit-empty-state.mjs +3 -3
- package/fesm2022/masmarino-gabarit-file-upload.mjs +3 -3
- package/fesm2022/masmarino-gabarit-floating-panel.mjs +12 -1
- package/fesm2022/masmarino-gabarit-floating-panel.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-format.mjs +9 -9
- package/fesm2022/masmarino-gabarit-funnel-chart.mjs +3 -3
- package/fesm2022/masmarino-gabarit-gauge-bar.mjs +3 -3
- package/fesm2022/masmarino-gabarit-git-field.mjs +3 -3
- package/fesm2022/masmarino-gabarit-icon-marker.mjs +3 -3
- package/fesm2022/masmarino-gabarit-icon.mjs +6 -6
- package/fesm2022/masmarino-gabarit-input.mjs +3 -3
- package/fesm2022/masmarino-gabarit-job-graph.mjs +3 -3
- package/fesm2022/masmarino-gabarit-job-status.mjs +3 -3
- package/fesm2022/masmarino-gabarit-line-chart.mjs +6 -6
- package/fesm2022/masmarino-gabarit-list-card.mjs +3 -3
- package/fesm2022/masmarino-gabarit-list-row.mjs +3 -3
- package/fesm2022/masmarino-gabarit-list-toolbar.mjs +3 -3
- package/fesm2022/masmarino-gabarit-menu.mjs +14 -11
- package/fesm2022/masmarino-gabarit-menu.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-mfa-enrollment.mjs +9 -9
- package/fesm2022/masmarino-gabarit-mfa-settings.mjs +3 -3
- package/fesm2022/masmarino-gabarit-modal.mjs +3 -3
- package/fesm2022/masmarino-gabarit-nav-tabs.mjs +6 -6
- package/fesm2022/masmarino-gabarit-notification-dot.mjs +3 -3
- package/fesm2022/masmarino-gabarit-page-header.mjs +3 -3
- package/fesm2022/masmarino-gabarit-page-layout.mjs +3 -3
- package/fesm2022/masmarino-gabarit-pagination.mjs +3 -3
- package/fesm2022/masmarino-gabarit-panel.mjs +3 -3
- package/fesm2022/masmarino-gabarit-passkey-settings.mjs +3 -3
- package/fesm2022/masmarino-gabarit-pie-chart.mjs +3 -3
- package/fesm2022/masmarino-gabarit-popover.mjs +8 -5
- package/fesm2022/masmarino-gabarit-popover.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-radio-group.mjs +3 -3
- package/fesm2022/masmarino-gabarit-save-status.mjs +3 -3
- package/fesm2022/masmarino-gabarit-search-bar.mjs +3 -3
- package/fesm2022/masmarino-gabarit-secret-reveal.mjs +3 -3
- package/fesm2022/masmarino-gabarit-segmented-control.mjs +3 -3
- package/fesm2022/masmarino-gabarit-select.mjs +8 -6
- package/fesm2022/masmarino-gabarit-select.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-skeleton-list.mjs +3 -3
- package/fesm2022/masmarino-gabarit-skeleton.mjs +3 -3
- package/fesm2022/masmarino-gabarit-slider.mjs +3 -3
- package/fesm2022/masmarino-gabarit-sparkline.mjs +3 -3
- package/fesm2022/masmarino-gabarit-spinner.mjs +3 -3
- package/fesm2022/masmarino-gabarit-stat-grid.mjs +3 -3
- package/fesm2022/masmarino-gabarit-stat-tile.mjs +6 -6
- package/fesm2022/masmarino-gabarit-stepper.mjs +3 -3
- package/fesm2022/masmarino-gabarit-switch.mjs +3 -3
- package/fesm2022/masmarino-gabarit-table.mjs +3 -3
- package/fesm2022/masmarino-gabarit-tabs.mjs +6 -6
- package/fesm2022/masmarino-gabarit-tag-input.mjs +3 -3
- package/fesm2022/masmarino-gabarit-tag.mjs +3 -3
- package/fesm2022/masmarino-gabarit-textarea.mjs +3 -3
- package/fesm2022/masmarino-gabarit-timeline-chart.mjs +6 -6
- package/fesm2022/masmarino-gabarit-toaster.mjs +6 -6
- package/fesm2022/masmarino-gabarit-tooltip.mjs +8 -5
- package/fesm2022/masmarino-gabarit-tooltip.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-tree.mjs +3 -3
- package/fesm2022/masmarino-gabarit-user-chip.mjs +3 -3
- package/fesm2022/masmarino-gabarit.mjs +3 -2
- package/fesm2022/masmarino-gabarit.mjs.map +1 -1
- package/package.json +5 -1
- package/types/masmarino-gabarit-autocomplete.d.ts +1 -0
- package/types/masmarino-gabarit-avatar-group.d.ts +1 -0
- package/types/masmarino-gabarit-command-palette.d.ts +218 -0
- package/types/masmarino-gabarit-date-picker.d.ts +2 -0
- package/types/masmarino-gabarit-floating-panel.d.ts +8 -1
- package/types/masmarino-gabarit-menu.d.ts +1 -0
- package/types/masmarino-gabarit-popover.d.ts +1 -0
- package/types/masmarino-gabarit-select.d.ts +1 -0
- package/types/masmarino-gabarit-tooltip.d.ts +1 -0
- package/types/masmarino-gabarit.d.ts +3 -2
|
@@ -69,7 +69,7 @@ var Modal = class Modal {
|
|
|
69
69
|
}
|
|
70
70
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
71
71
|
minVersion: "12.0.0",
|
|
72
|
-
version: "22.2.
|
|
72
|
+
version: "22.2.1",
|
|
73
73
|
ngImport: i0,
|
|
74
74
|
type: Modal,
|
|
75
75
|
deps: [],
|
|
@@ -77,7 +77,7 @@ var Modal = class Modal {
|
|
|
77
77
|
});
|
|
78
78
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
79
79
|
minVersion: "17.0.0",
|
|
80
|
-
version: "22.2.
|
|
80
|
+
version: "22.2.1",
|
|
81
81
|
type: Modal,
|
|
82
82
|
isStandalone: true,
|
|
83
83
|
selector: "gbt-modal",
|
|
@@ -155,7 +155,7 @@ var Modal = class Modal {
|
|
|
155
155
|
};
|
|
156
156
|
i0.ɵɵngDeclareClassMetadata({
|
|
157
157
|
minVersion: "12.0.0",
|
|
158
|
-
version: "22.2.
|
|
158
|
+
version: "22.2.1",
|
|
159
159
|
ngImport: i0,
|
|
160
160
|
type: Modal,
|
|
161
161
|
decorators: [{
|
|
@@ -26,7 +26,7 @@ var NavTab = class NavTab {
|
|
|
26
26
|
}
|
|
27
27
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
28
28
|
minVersion: "12.0.0",
|
|
29
|
-
version: "22.2.
|
|
29
|
+
version: "22.2.1",
|
|
30
30
|
ngImport: i0,
|
|
31
31
|
type: NavTab,
|
|
32
32
|
deps: [],
|
|
@@ -34,7 +34,7 @@ var NavTab = class NavTab {
|
|
|
34
34
|
});
|
|
35
35
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
36
36
|
minVersion: "17.0.0",
|
|
37
|
-
version: "22.2.
|
|
37
|
+
version: "22.2.1",
|
|
38
38
|
type: NavTab,
|
|
39
39
|
isStandalone: true,
|
|
40
40
|
selector: "a[gbtNavTab]",
|
|
@@ -90,7 +90,7 @@ var NavTab = class NavTab {
|
|
|
90
90
|
};
|
|
91
91
|
i0.ɵɵngDeclareClassMetadata({
|
|
92
92
|
minVersion: "12.0.0",
|
|
93
|
-
version: "22.2.
|
|
93
|
+
version: "22.2.1",
|
|
94
94
|
ngImport: i0,
|
|
95
95
|
type: NavTab,
|
|
96
96
|
decorators: [{
|
|
@@ -200,7 +200,7 @@ var NavTabs = class NavTabs {
|
|
|
200
200
|
}
|
|
201
201
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
202
202
|
minVersion: "12.0.0",
|
|
203
|
-
version: "22.2.
|
|
203
|
+
version: "22.2.1",
|
|
204
204
|
ngImport: i0,
|
|
205
205
|
type: NavTabs,
|
|
206
206
|
deps: [],
|
|
@@ -208,7 +208,7 @@ var NavTabs = class NavTabs {
|
|
|
208
208
|
});
|
|
209
209
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
210
210
|
minVersion: "17.0.0",
|
|
211
|
-
version: "22.2.
|
|
211
|
+
version: "22.2.1",
|
|
212
212
|
type: NavTabs,
|
|
213
213
|
isStandalone: true,
|
|
214
214
|
selector: "gbt-nav-tabs",
|
|
@@ -270,7 +270,7 @@ var NavTabs = class NavTabs {
|
|
|
270
270
|
};
|
|
271
271
|
i0.ɵɵngDeclareClassMetadata({
|
|
272
272
|
minVersion: "12.0.0",
|
|
273
|
-
version: "22.2.
|
|
273
|
+
version: "22.2.1",
|
|
274
274
|
ngImport: i0,
|
|
275
275
|
type: NavTabs,
|
|
276
276
|
decorators: [{
|
|
@@ -14,7 +14,7 @@ var NotificationDot = class NotificationDot {
|
|
|
14
14
|
}, ...ngDevMode ? [{ debugName: "displayValue" }] : /* istanbul ignore next */ []);
|
|
15
15
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
16
16
|
minVersion: "12.0.0",
|
|
17
|
-
version: "22.2.
|
|
17
|
+
version: "22.2.1",
|
|
18
18
|
ngImport: i0,
|
|
19
19
|
type: NotificationDot,
|
|
20
20
|
deps: [],
|
|
@@ -22,7 +22,7 @@ var NotificationDot = class NotificationDot {
|
|
|
22
22
|
});
|
|
23
23
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
24
24
|
minVersion: "17.0.0",
|
|
25
|
-
version: "22.2.
|
|
25
|
+
version: "22.2.1",
|
|
26
26
|
type: NotificationDot,
|
|
27
27
|
isStandalone: true,
|
|
28
28
|
selector: "gbt-notification-dot",
|
|
@@ -65,7 +65,7 @@ var NotificationDot = class NotificationDot {
|
|
|
65
65
|
};
|
|
66
66
|
i0.ɵɵngDeclareClassMetadata({
|
|
67
67
|
minVersion: "12.0.0",
|
|
68
|
-
version: "22.2.
|
|
68
|
+
version: "22.2.1",
|
|
69
69
|
ngImport: i0,
|
|
70
70
|
type: NotificationDot,
|
|
71
71
|
decorators: [{
|
|
@@ -5,7 +5,7 @@ var PageHeader = class PageHeader {
|
|
|
5
5
|
headingLevel = input(1, ...ngDevMode ? [{ debugName: "headingLevel" }] : /* istanbul ignore next */ []);
|
|
6
6
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
7
7
|
minVersion: "12.0.0",
|
|
8
|
-
version: "22.2.
|
|
8
|
+
version: "22.2.1",
|
|
9
9
|
ngImport: i0,
|
|
10
10
|
type: PageHeader,
|
|
11
11
|
deps: [],
|
|
@@ -13,7 +13,7 @@ var PageHeader = class PageHeader {
|
|
|
13
13
|
});
|
|
14
14
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
15
15
|
minVersion: "17.0.0",
|
|
16
|
-
version: "22.2.
|
|
16
|
+
version: "22.2.1",
|
|
17
17
|
type: PageHeader,
|
|
18
18
|
isStandalone: true,
|
|
19
19
|
selector: "gbt-page-header",
|
|
@@ -41,7 +41,7 @@ var PageHeader = class PageHeader {
|
|
|
41
41
|
};
|
|
42
42
|
i0.ɵɵngDeclareClassMetadata({
|
|
43
43
|
minVersion: "12.0.0",
|
|
44
|
-
version: "22.2.
|
|
44
|
+
version: "22.2.1",
|
|
45
45
|
ngImport: i0,
|
|
46
46
|
type: PageHeader,
|
|
47
47
|
decorators: [{
|
|
@@ -12,7 +12,7 @@ var PageLayout = class PageLayout {
|
|
|
12
12
|
});
|
|
13
13
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
14
14
|
minVersion: "12.0.0",
|
|
15
|
-
version: "22.2.
|
|
15
|
+
version: "22.2.1",
|
|
16
16
|
ngImport: i0,
|
|
17
17
|
type: PageLayout,
|
|
18
18
|
deps: [],
|
|
@@ -20,7 +20,7 @@ var PageLayout = class PageLayout {
|
|
|
20
20
|
});
|
|
21
21
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
22
22
|
minVersion: "17.1.0",
|
|
23
|
-
version: "22.2.
|
|
23
|
+
version: "22.2.1",
|
|
24
24
|
type: PageLayout,
|
|
25
25
|
isStandalone: true,
|
|
26
26
|
selector: "gbt-page-layout",
|
|
@@ -82,7 +82,7 @@ var PageLayout = class PageLayout {
|
|
|
82
82
|
};
|
|
83
83
|
i0.ɵɵngDeclareClassMetadata({
|
|
84
84
|
minVersion: "12.0.0",
|
|
85
|
-
version: "22.2.
|
|
85
|
+
version: "22.2.1",
|
|
86
86
|
ngImport: i0,
|
|
87
87
|
type: PageLayout,
|
|
88
88
|
decorators: [{
|
|
@@ -92,7 +92,7 @@ var Pagination = class Pagination {
|
|
|
92
92
|
}
|
|
93
93
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
94
94
|
minVersion: "12.0.0",
|
|
95
|
-
version: "22.2.
|
|
95
|
+
version: "22.2.1",
|
|
96
96
|
ngImport: i0,
|
|
97
97
|
type: Pagination,
|
|
98
98
|
deps: [],
|
|
@@ -100,7 +100,7 @@ var Pagination = class Pagination {
|
|
|
100
100
|
});
|
|
101
101
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
102
102
|
minVersion: "17.0.0",
|
|
103
|
-
version: "22.2.
|
|
103
|
+
version: "22.2.1",
|
|
104
104
|
type: Pagination,
|
|
105
105
|
isStandalone: true,
|
|
106
106
|
selector: "gbt-pagination",
|
|
@@ -268,7 +268,7 @@ var Pagination = class Pagination {
|
|
|
268
268
|
};
|
|
269
269
|
i0.ɵɵngDeclareClassMetadata({
|
|
270
270
|
minVersion: "12.0.0",
|
|
271
|
-
version: "22.2.
|
|
271
|
+
version: "22.2.1",
|
|
272
272
|
ngImport: i0,
|
|
273
273
|
type: Pagination,
|
|
274
274
|
decorators: [{
|
|
@@ -7,7 +7,7 @@ var Panel = class Panel {
|
|
|
7
7
|
headingId = `gbt-panel-heading-${nextId++}`;
|
|
8
8
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
9
9
|
minVersion: "12.0.0",
|
|
10
|
-
version: "22.2.
|
|
10
|
+
version: "22.2.1",
|
|
11
11
|
ngImport: i0,
|
|
12
12
|
type: Panel,
|
|
13
13
|
deps: [],
|
|
@@ -15,7 +15,7 @@ var Panel = class Panel {
|
|
|
15
15
|
});
|
|
16
16
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
17
17
|
minVersion: "17.0.0",
|
|
18
|
-
version: "22.2.
|
|
18
|
+
version: "22.2.1",
|
|
19
19
|
type: Panel,
|
|
20
20
|
isStandalone: true,
|
|
21
21
|
selector: "gbt-panel",
|
|
@@ -43,7 +43,7 @@ var Panel = class Panel {
|
|
|
43
43
|
};
|
|
44
44
|
i0.ɵɵngDeclareClassMetadata({
|
|
45
45
|
minVersion: "12.0.0",
|
|
46
|
-
version: "22.2.
|
|
46
|
+
version: "22.2.1",
|
|
47
47
|
ngImport: i0,
|
|
48
48
|
type: Panel,
|
|
49
49
|
decorators: [{
|
|
@@ -303,7 +303,7 @@ var PasskeySettings = class PasskeySettings {
|
|
|
303
303
|
}
|
|
304
304
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
305
305
|
minVersion: "12.0.0",
|
|
306
|
-
version: "22.2.
|
|
306
|
+
version: "22.2.1",
|
|
307
307
|
ngImport: i0,
|
|
308
308
|
type: PasskeySettings,
|
|
309
309
|
deps: [],
|
|
@@ -311,7 +311,7 @@ var PasskeySettings = class PasskeySettings {
|
|
|
311
311
|
});
|
|
312
312
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
313
313
|
minVersion: "17.0.0",
|
|
314
|
-
version: "22.2.
|
|
314
|
+
version: "22.2.1",
|
|
315
315
|
type: PasskeySettings,
|
|
316
316
|
isStandalone: true,
|
|
317
317
|
selector: "gbt-passkey-settings",
|
|
@@ -549,7 +549,7 @@ var PasskeySettings = class PasskeySettings {
|
|
|
549
549
|
};
|
|
550
550
|
i0.ɵɵngDeclareClassMetadata({
|
|
551
551
|
minVersion: "12.0.0",
|
|
552
|
-
version: "22.2.
|
|
552
|
+
version: "22.2.1",
|
|
553
553
|
ngImport: i0,
|
|
554
554
|
type: PasskeySettings,
|
|
555
555
|
decorators: [{
|
|
@@ -88,7 +88,7 @@ var PieChart = class PieChart {
|
|
|
88
88
|
}
|
|
89
89
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
90
90
|
minVersion: "12.0.0",
|
|
91
|
-
version: "22.2.
|
|
91
|
+
version: "22.2.1",
|
|
92
92
|
ngImport: i0,
|
|
93
93
|
type: PieChart,
|
|
94
94
|
deps: [],
|
|
@@ -96,7 +96,7 @@ var PieChart = class PieChart {
|
|
|
96
96
|
});
|
|
97
97
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
98
98
|
minVersion: "17.0.0",
|
|
99
|
-
version: "22.2.
|
|
99
|
+
version: "22.2.1",
|
|
100
100
|
type: PieChart,
|
|
101
101
|
isStandalone: true,
|
|
102
102
|
selector: "gbt-pie-chart",
|
|
@@ -210,7 +210,7 @@ var PieChart = class PieChart {
|
|
|
210
210
|
};
|
|
211
211
|
i0.ɵɵngDeclareClassMetadata({
|
|
212
212
|
minVersion: "12.0.0",
|
|
213
|
-
version: "22.2.
|
|
213
|
+
version: "22.2.1",
|
|
214
214
|
ngImport: i0,
|
|
215
215
|
type: PieChart,
|
|
216
216
|
decorators: [{
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { ChangeDetectionStrategy, Component, ElementRef, inject, input, signal, viewChild } from "@angular/core";
|
|
3
|
+
import { followPageScroll } from "@masmarino/gabarit/floating-panel";
|
|
3
4
|
let nextPopoverId = 0;
|
|
4
5
|
var Popover = class Popover {
|
|
5
6
|
elementRef = inject(ElementRef);
|
|
@@ -21,6 +22,9 @@ var Popover = class Popover {
|
|
|
21
22
|
onTriggerClick(event) {
|
|
22
23
|
if ((this.triggerSlot()?.nativeElement)?.contains(event.target)) this.toggle();
|
|
23
24
|
}
|
|
25
|
+
constructor() {
|
|
26
|
+
followPageScroll(() => this.updatePosition());
|
|
27
|
+
}
|
|
24
28
|
updatePosition() {
|
|
25
29
|
if (!this.isOpen()) return;
|
|
26
30
|
const trigger = this.triggerSlot()?.nativeElement;
|
|
@@ -51,7 +55,7 @@ var Popover = class Popover {
|
|
|
51
55
|
}
|
|
52
56
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
53
57
|
minVersion: "12.0.0",
|
|
54
|
-
version: "22.2.
|
|
58
|
+
version: "22.2.1",
|
|
55
59
|
ngImport: i0,
|
|
56
60
|
type: Popover,
|
|
57
61
|
deps: [],
|
|
@@ -59,7 +63,7 @@ var Popover = class Popover {
|
|
|
59
63
|
});
|
|
60
64
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
61
65
|
minVersion: "17.0.0",
|
|
62
|
-
version: "22.2.
|
|
66
|
+
version: "22.2.1",
|
|
63
67
|
type: Popover,
|
|
64
68
|
isStandalone: true,
|
|
65
69
|
selector: "gbt-popover",
|
|
@@ -75,7 +79,6 @@ var Popover = class Popover {
|
|
|
75
79
|
"click": "onTriggerClick($event)",
|
|
76
80
|
"document:click": "handleClickOutside($event)",
|
|
77
81
|
"keydown": "onKeydown($event)",
|
|
78
|
-
"window:scroll": "updatePosition()",
|
|
79
82
|
"window:resize": "updatePosition()"
|
|
80
83
|
},
|
|
81
84
|
classAttribute: "gbt-popover-host"
|
|
@@ -96,7 +99,7 @@ var Popover = class Popover {
|
|
|
96
99
|
};
|
|
97
100
|
i0.ɵɵngDeclareClassMetadata({
|
|
98
101
|
minVersion: "12.0.0",
|
|
99
|
-
version: "22.2.
|
|
102
|
+
version: "22.2.1",
|
|
100
103
|
ngImport: i0,
|
|
101
104
|
type: Popover,
|
|
102
105
|
decorators: [{
|
|
@@ -112,13 +115,13 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
112
115
|
"(click)": "onTriggerClick($event)",
|
|
113
116
|
"(document:click)": "handleClickOutside($event)",
|
|
114
117
|
"(keydown)": "onKeydown($event)",
|
|
115
|
-
"(window:scroll)": "updatePosition()",
|
|
116
118
|
"(window:resize)": "updatePosition()"
|
|
117
119
|
},
|
|
118
120
|
template: "<span #triggerSlot class=\"gbt-popover__trigger\">\n <ng-content></ng-content>\n</span>\n@if (open() && position(); as pos) {\n <div\n class=\"gbt-popover__panel\"\n [id]=\"panelId\"\n [style.top]=\"pos.top\"\n [style.left]=\"pos.left\"\n [style.right]=\"pos.right\"\n >\n <ng-content select=\"[popover-content]\"></ng-content>\n </div>\n}\n",
|
|
119
121
|
styles: [":host{position:relative;display:inline-block}.gbt-popover__trigger{display:inline-block;cursor:pointer}.gbt-popover__panel{box-sizing:border-box;position:fixed;z-index:1000;min-width:200px;padding:1rem;background:var(--bg-principal);border:1px solid var(--border-color);border-radius:var(--site-border-radius-sm);box-shadow:var(--site-shadow-lg);color:var(--text-primary);animation:gbt-popover-scale-in .15s cubic-bezier(.34,1.56,.64,1) both}@keyframes gbt-popover-scale-in{0%{opacity:0;transform:scale(.97) translateY(-4px)}to{opacity:1;transform:scale(1) translateY(0)}}@media(prefers-reduced-motion:reduce){.gbt-popover__panel{animation:none}}\n"]
|
|
120
122
|
}]
|
|
121
123
|
}],
|
|
124
|
+
ctorParameters: () => [],
|
|
122
125
|
propDecorators: {
|
|
123
126
|
triggerSlot: [{
|
|
124
127
|
type: i0.ViewChild,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"masmarino-gabarit-popover.mjs","names":[],"sources":["../../../projects/gabarit/popover/popover.ts","../../../projects/gabarit/popover/popover.html"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n inject,\n input,\n signal,\n viewChild,\n} from '@angular/core'\n\nexport type PopoverAlign = 'start' | 'end'\n\ninterface PopoverPosition {\n top: string\n left: string | null\n right: string | null\n}\n\nlet nextPopoverId = 0\n\n@Component({\n selector: 'gbt-popover',\n standalone: true,\n exportAs: 'gbtPopover',\n imports: [],\n templateUrl: './popover.html',\n styleUrl: './popover.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'gbt-popover-host',\n '(click)': 'onTriggerClick($event)',\n '(document:click)': 'handleClickOutside($event)',\n '(keydown)': 'onKeydown($event)',\n '(window:
|
|
1
|
+
{"version":3,"file":"masmarino-gabarit-popover.mjs","names":[],"sources":["../../../projects/gabarit/popover/popover.ts","../../../projects/gabarit/popover/popover.html"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n inject,\n input,\n signal,\n viewChild,\n} from '@angular/core'\nimport { followPageScroll } from '@masmarino/gabarit/floating-panel'\n\nexport type PopoverAlign = 'start' | 'end'\n\ninterface PopoverPosition {\n top: string\n left: string | null\n right: string | null\n}\n\nlet nextPopoverId = 0\n\n@Component({\n selector: 'gbt-popover',\n standalone: true,\n exportAs: 'gbtPopover',\n imports: [],\n templateUrl: './popover.html',\n styleUrl: './popover.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'gbt-popover-host',\n '(click)': 'onTriggerClick($event)',\n '(document:click)': 'handleClickOutside($event)',\n '(keydown)': 'onKeydown($event)',\n '(window:resize)': 'updatePosition()',\n },\n})\nexport class Popover {\n private readonly elementRef = inject(ElementRef<HTMLElement>)\n private readonly triggerSlot = viewChild<ElementRef<HTMLElement>>('triggerSlot')\n\n align = input<PopoverAlign>('start')\n\n readonly panelId = `gbt-popover-${++nextPopoverId}`\n\n private readonly isOpen = signal(false)\n readonly open = this.isOpen.asReadonly()\n\n protected readonly position = signal<PopoverPosition | null>(null)\n\n toggle(): void {\n this.isOpen.update((value) => !value)\n if (this.isOpen()) {\n this.updatePosition()\n }\n }\n\n close(returnFocus = false): void {\n if (!this.isOpen()) {\n return\n }\n this.isOpen.set(false)\n if (returnFocus) {\n this.focusTrigger()\n }\n }\n\n protected onTriggerClick(event: MouseEvent): void {\n const trigger = this.triggerSlot()?.nativeElement\n if (trigger?.contains(event.target as Node)) {\n this.toggle()\n }\n }\n\n constructor() {\n followPageScroll(() => this.updatePosition())\n }\n\n protected updatePosition(): void {\n if (!this.isOpen()) {\n return\n }\n const trigger = this.triggerSlot()?.nativeElement\n if (!trigger) {\n return\n }\n const rect = trigger.getBoundingClientRect()\n this.position.set(\n this.align() === 'end'\n ? { top: `${rect.bottom + 6}px`, left: null, right: `${window.innerWidth - rect.right}px` }\n : { top: `${rect.bottom + 6}px`, left: `${rect.left}px`, right: null },\n )\n }\n\n protected handleClickOutside(event: MouseEvent): void {\n if (this.isOpen() && !this.elementRef.nativeElement.contains(event.target as Node)) {\n this.close(false)\n }\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (event.key === 'Escape' && this.isOpen()) {\n event.preventDefault()\n event.stopPropagation()\n this.close(true)\n }\n }\n\n private focusTrigger(): void {\n const trigger = this.triggerSlot()?.nativeElement\n trigger\n ?.querySelector<HTMLElement>('button, a[href], input, select, textarea, [tabindex]')\n ?.focus()\n }\n}\n","<span #triggerSlot class=\"gbt-popover__trigger\">\n <ng-content></ng-content>\n</span>\n@if (open() && position(); as pos) {\n <div\n class=\"gbt-popover__panel\"\n [id]=\"panelId\"\n [style.top]=\"pos.top\"\n [style.left]=\"pos.left\"\n [style.right]=\"pos.right\"\n >\n <ng-content select=\"[popover-content]\"></ng-content>\n </div>\n}\n"],"mappings":"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"}
|
|
@@ -43,7 +43,7 @@ var RadioGroup = class RadioGroup {
|
|
|
43
43
|
}
|
|
44
44
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
45
45
|
minVersion: "12.0.0",
|
|
46
|
-
version: "22.2.
|
|
46
|
+
version: "22.2.1",
|
|
47
47
|
ngImport: i0,
|
|
48
48
|
type: RadioGroup,
|
|
49
49
|
deps: [],
|
|
@@ -51,7 +51,7 @@ var RadioGroup = class RadioGroup {
|
|
|
51
51
|
});
|
|
52
52
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
53
53
|
minVersion: "17.0.0",
|
|
54
|
-
version: "22.2.
|
|
54
|
+
version: "22.2.1",
|
|
55
55
|
type: RadioGroup,
|
|
56
56
|
isStandalone: true,
|
|
57
57
|
selector: "gbt-radio-group",
|
|
@@ -119,7 +119,7 @@ var RadioGroup = class RadioGroup {
|
|
|
119
119
|
};
|
|
120
120
|
i0.ɵɵngDeclareClassMetadata({
|
|
121
121
|
minVersion: "12.0.0",
|
|
122
|
-
version: "22.2.
|
|
122
|
+
version: "22.2.1",
|
|
123
123
|
ngImport: i0,
|
|
124
124
|
type: RadioGroup,
|
|
125
125
|
decorators: [{
|
|
@@ -17,7 +17,7 @@ var SaveStatus = class SaveStatus {
|
|
|
17
17
|
}, ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
|
|
18
18
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
19
19
|
minVersion: "12.0.0",
|
|
20
|
-
version: "22.2.
|
|
20
|
+
version: "22.2.1",
|
|
21
21
|
ngImport: i0,
|
|
22
22
|
type: SaveStatus,
|
|
23
23
|
deps: [],
|
|
@@ -25,7 +25,7 @@ var SaveStatus = class SaveStatus {
|
|
|
25
25
|
});
|
|
26
26
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
27
27
|
minVersion: "17.0.0",
|
|
28
|
-
version: "22.2.
|
|
28
|
+
version: "22.2.1",
|
|
29
29
|
type: SaveStatus,
|
|
30
30
|
isStandalone: true,
|
|
31
31
|
selector: "gbt-save-status",
|
|
@@ -80,7 +80,7 @@ var SaveStatus = class SaveStatus {
|
|
|
80
80
|
};
|
|
81
81
|
i0.ɵɵngDeclareClassMetadata({
|
|
82
82
|
minVersion: "12.0.0",
|
|
83
|
-
version: "22.2.
|
|
83
|
+
version: "22.2.1",
|
|
84
84
|
ngImport: i0,
|
|
85
85
|
type: SaveStatus,
|
|
86
86
|
decorators: [{
|
|
@@ -174,7 +174,7 @@ var SearchBar = class SearchBar {
|
|
|
174
174
|
}
|
|
175
175
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
176
176
|
minVersion: "12.0.0",
|
|
177
|
-
version: "22.2.
|
|
177
|
+
version: "22.2.1",
|
|
178
178
|
ngImport: i0,
|
|
179
179
|
type: SearchBar,
|
|
180
180
|
deps: [],
|
|
@@ -182,7 +182,7 @@ var SearchBar = class SearchBar {
|
|
|
182
182
|
});
|
|
183
183
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
184
184
|
minVersion: "17.0.0",
|
|
185
|
-
version: "22.2.
|
|
185
|
+
version: "22.2.1",
|
|
186
186
|
type: SearchBar,
|
|
187
187
|
isStandalone: true,
|
|
188
188
|
selector: "gbt-search-bar",
|
|
@@ -373,7 +373,7 @@ var SearchBar = class SearchBar {
|
|
|
373
373
|
};
|
|
374
374
|
i0.ɵɵngDeclareClassMetadata({
|
|
375
375
|
minVersion: "12.0.0",
|
|
376
|
-
version: "22.2.
|
|
376
|
+
version: "22.2.1",
|
|
377
377
|
ngImport: i0,
|
|
378
378
|
type: SearchBar,
|
|
379
379
|
decorators: [{
|
|
@@ -42,7 +42,7 @@ var SecretReveal = class SecretReveal {
|
|
|
42
42
|
}
|
|
43
43
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
44
44
|
minVersion: "12.0.0",
|
|
45
|
-
version: "22.2.
|
|
45
|
+
version: "22.2.1",
|
|
46
46
|
ngImport: i0,
|
|
47
47
|
type: SecretReveal,
|
|
48
48
|
deps: [],
|
|
@@ -50,7 +50,7 @@ var SecretReveal = class SecretReveal {
|
|
|
50
50
|
});
|
|
51
51
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
52
52
|
minVersion: "17.0.0",
|
|
53
|
-
version: "22.2.
|
|
53
|
+
version: "22.2.1",
|
|
54
54
|
type: SecretReveal,
|
|
55
55
|
isStandalone: true,
|
|
56
56
|
selector: "gbt-secret-reveal",
|
|
@@ -209,7 +209,7 @@ var SecretReveal = class SecretReveal {
|
|
|
209
209
|
};
|
|
210
210
|
i0.ɵɵngDeclareClassMetadata({
|
|
211
211
|
minVersion: "12.0.0",
|
|
212
|
-
version: "22.2.
|
|
212
|
+
version: "22.2.1",
|
|
213
213
|
ngImport: i0,
|
|
214
214
|
type: SecretReveal,
|
|
215
215
|
decorators: [{
|
|
@@ -70,7 +70,7 @@ var SegmentedControl = class SegmentedControl {
|
|
|
70
70
|
}
|
|
71
71
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
72
72
|
minVersion: "12.0.0",
|
|
73
|
-
version: "22.2.
|
|
73
|
+
version: "22.2.1",
|
|
74
74
|
ngImport: i0,
|
|
75
75
|
type: SegmentedControl,
|
|
76
76
|
deps: [],
|
|
@@ -78,7 +78,7 @@ var SegmentedControl = class SegmentedControl {
|
|
|
78
78
|
});
|
|
79
79
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
80
80
|
minVersion: "17.0.0",
|
|
81
|
-
version: "22.2.
|
|
81
|
+
version: "22.2.1",
|
|
82
82
|
type: SegmentedControl,
|
|
83
83
|
isStandalone: true,
|
|
84
84
|
selector: "gbt-segmented-control",
|
|
@@ -167,7 +167,7 @@ var SegmentedControl = class SegmentedControl {
|
|
|
167
167
|
};
|
|
168
168
|
i0.ɵɵngDeclareClassMetadata({
|
|
169
169
|
minVersion: "12.0.0",
|
|
170
|
-
version: "22.2.
|
|
170
|
+
version: "22.2.1",
|
|
171
171
|
ngImport: i0,
|
|
172
172
|
type: SegmentedControl,
|
|
173
173
|
decorators: [{
|
|
@@ -3,7 +3,7 @@ import { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, compu
|
|
|
3
3
|
import { NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
4
4
|
import { Icon } from "@masmarino/gabarit/icon";
|
|
5
5
|
import { Tag } from "@masmarino/gabarit/tag";
|
|
6
|
-
import { floatingPanelAnchor } from "@masmarino/gabarit/floating-panel";
|
|
6
|
+
import { floatingPanelAnchor, followPageScroll } from "@masmarino/gabarit/floating-panel";
|
|
7
7
|
let nextSelectId = 0;
|
|
8
8
|
var Select = class Select {
|
|
9
9
|
elementRef = inject(ElementRef);
|
|
@@ -103,6 +103,9 @@ var Select = class Select {
|
|
|
103
103
|
this.updatePanelPosition();
|
|
104
104
|
} else this.onTouched();
|
|
105
105
|
}
|
|
106
|
+
constructor() {
|
|
107
|
+
followPageScroll(() => this.updatePanelPosition());
|
|
108
|
+
}
|
|
106
109
|
updatePanelPosition() {
|
|
107
110
|
const trigger = this.elementRef.nativeElement.querySelector(".gbt-select__trigger");
|
|
108
111
|
const anchor = floatingPanelAnchor(this.open(), trigger, (rect) => {
|
|
@@ -179,7 +182,7 @@ var Select = class Select {
|
|
|
179
182
|
}
|
|
180
183
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
181
184
|
minVersion: "12.0.0",
|
|
182
|
-
version: "22.2.
|
|
185
|
+
version: "22.2.1",
|
|
183
186
|
ngImport: i0,
|
|
184
187
|
type: Select,
|
|
185
188
|
deps: [],
|
|
@@ -187,7 +190,7 @@ var Select = class Select {
|
|
|
187
190
|
});
|
|
188
191
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
189
192
|
minVersion: "17.0.0",
|
|
190
|
-
version: "22.2.
|
|
193
|
+
version: "22.2.1",
|
|
191
194
|
type: Select,
|
|
192
195
|
isStandalone: true,
|
|
193
196
|
selector: "gbt-select",
|
|
@@ -309,7 +312,6 @@ var Select = class Select {
|
|
|
309
312
|
listeners: {
|
|
310
313
|
"document:click": "handleClickOutside($event)",
|
|
311
314
|
"keydown": "onKeydown($event)",
|
|
312
|
-
"window:scroll": "updatePanelPosition()",
|
|
313
315
|
"window:resize": "updatePanelPosition()"
|
|
314
316
|
},
|
|
315
317
|
properties: {
|
|
@@ -347,7 +349,7 @@ var Select = class Select {
|
|
|
347
349
|
};
|
|
348
350
|
i0.ɵɵngDeclareClassMetadata({
|
|
349
351
|
minVersion: "12.0.0",
|
|
350
|
-
version: "22.2.
|
|
352
|
+
version: "22.2.1",
|
|
351
353
|
ngImport: i0,
|
|
352
354
|
type: Select,
|
|
353
355
|
decorators: [{
|
|
@@ -360,7 +362,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
360
362
|
host: {
|
|
361
363
|
"(document:click)": "handleClickOutside($event)",
|
|
362
364
|
"(keydown)": "onKeydown($event)",
|
|
363
|
-
"(window:scroll)": "updatePanelPosition()",
|
|
364
365
|
"(window:resize)": "updatePanelPosition()",
|
|
365
366
|
"[class.gbt-select--sm]": "size() === 'sm'",
|
|
366
367
|
"[class.gbt-select--full]": "fullWidth()"
|
|
@@ -374,6 +375,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
374
375
|
styles: [":host{position:relative;display:inline-block;min-width:180px}.gbt-select{display:flex;flex-direction:column;gap:.375rem}.gbt-select--disabled{opacity:.5}.gbt-select__label{font-size:.8125rem;font-weight:600;color:var(--text-secondary)}.gbt-select__label--hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:host(.gbt-select--full){display:block;width:100%}.gbt-select__trigger{box-sizing:border-box;display:flex;align-items:center;gap:8px;width:100%;height:var(--gbt-control-height-md);padding:0 10px;background:var(--bg-principal);border:1px solid var(--border-color);border-radius:var(--site-border-radius-sm);color:var(--text-primary);font-size:14px;cursor:pointer;transition:border-color .15s cubic-bezier(.4,0,.2,1),box-shadow .15s cubic-bezier(.4,0,.2,1)}.gbt-select__trigger:hover:not(:disabled){border-color:var(--border-color)}.gbt-select__trigger--open{border-color:var(--primary);box-shadow:0 0 0 4px color-mix(in srgb,var(--primary) 12%,transparent)}.gbt-select__trigger:disabled{cursor:not-allowed}:host(.gbt-select--sm){min-width:120px}:host(.gbt-select--sm) .gbt-select__trigger{height:var(--gbt-control-height-sm);padding:0 8px;font-size:13px}.gbt-select__trigger-icon{flex-shrink:0;color:var(--text-secondary)}.gbt-select__trigger-label{flex:1;min-width:0;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gbt-select__trigger-label--placeholder{color:var(--text-discret)}.gbt-select__chevron{flex-shrink:0;color:var(--text-secondary);transition:transform .2s cubic-bezier(.4,0,.2,1)}.gbt-select__trigger--open .gbt-select__chevron{transform:rotate(180deg)}.gbt-select__panel{position:fixed;z-index:1000;margin:0;padding:6px;list-style:none;max-height:280px;overflow-y:auto;background:var(--bg-principal);border:1px solid var(--border-color);border-radius:var(--site-border-radius-sm);box-shadow:var(--site-shadow-lg);animation:gbt-select-scale-in .15s cubic-bezier(.34,1.56,.64,1) both}.gbt-select__panel::-webkit-scrollbar{width:6px}.gbt-select__panel::-webkit-scrollbar-track{background:transparent}.gbt-select__panel::-webkit-scrollbar-thumb{background:var(--bg-hover);border-radius:3px}.gbt-select__empty{box-sizing:border-box;padding:10px 12px;color:var(--text-secondary);font-size:13px}.gbt-select__option{box-sizing:border-box;display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;background:transparent;border:none;border-radius:var(--gbt-radius-menu, 4px);color:var(--text-primary);font-size:14px;text-align:left;cursor:pointer;transition:background .12s cubic-bezier(.4,0,.2,1)}.gbt-select__option:hover,.gbt-select__option--active{background:var(--bg-hover)}.gbt-select__option--selected{color:var(--primary);font-weight:600}.gbt-select__option-icon{flex-shrink:0;color:var(--text-secondary)}.gbt-select__option--selected .gbt-select__option-icon{color:var(--primary)}.gbt-select__option-label{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gbt-select__option-check{flex-shrink:0;color:var(--primary)}@keyframes gbt-select-scale-in{0%{opacity:0;transform:scale(.97) translateY(-4px)}to{opacity:1;transform:scale(1) translateY(0)}}.gbt-select__chips{display:flex;flex-wrap:wrap;gap:4px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.gbt-select__hint{margin:0;font-size:.75rem;color:var(--text-secondary)}.gbt-select__error{margin:0;font-size:.75rem;color:var(--color-error-text)}@media(prefers-reduced-motion:reduce){.gbt-select__panel{animation:none}.gbt-select__chevron{transition:none}}\n"]
|
|
375
376
|
}]
|
|
376
377
|
}],
|
|
378
|
+
ctorParameters: () => [],
|
|
377
379
|
propDecorators: {
|
|
378
380
|
id: [{
|
|
379
381
|
type: i0.Input,
|