frontile 0.18.11 → 0.18.13
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/declarations/components/buttons/button-group.d.ts +1 -1
- package/declarations/components/buttons/button-group.d.ts.map +1 -1
- package/declarations/components/buttons/button.d.ts +4 -2
- package/declarations/components/buttons/button.d.ts.map +1 -1
- package/declarations/components/buttons/chip.d.ts +4 -3
- package/declarations/components/buttons/chip.d.ts.map +1 -1
- package/declarations/components/buttons/icon-button.d.ts +50 -0
- package/declarations/components/buttons/icon-button.d.ts.map +1 -0
- package/declarations/components/buttons/index.d.ts +1 -0
- package/declarations/components/buttons/index.d.ts.map +1 -1
- package/declarations/components/buttons/toggle-button.d.ts +1 -1
- package/declarations/components/buttons/toggle-button.d.ts.map +1 -1
- package/declarations/components/forms/select/types.d.ts +1 -1
- package/declarations/components/layout/app-layout.d.ts +53 -5
- package/declarations/components/layout/app-layout.d.ts.map +1 -1
- package/declarations/components/layout/aside.d.ts +79 -0
- package/declarations/components/layout/aside.d.ts.map +1 -1
- package/declarations/components/layout/context.d.ts +12 -4
- package/declarations/components/layout/context.d.ts.map +1 -1
- package/declarations/components/layout/in-layout-region.d.ts +38 -0
- package/declarations/components/layout/in-layout-region.d.ts.map +1 -0
- package/declarations/components/layout/index.d.ts +2 -0
- package/declarations/components/layout/index.d.ts.map +1 -1
- package/declarations/components/layout/navbar.d.ts +43 -0
- package/declarations/components/layout/navbar.d.ts.map +1 -1
- package/declarations/components/layout/region.d.ts +60 -0
- package/declarations/components/layout/region.d.ts.map +1 -0
- package/declarations/components/layout/sidebar.d.ts +43 -0
- package/declarations/components/layout/sidebar.d.ts.map +1 -1
- package/declarations/components/overlays/tooltip.d.ts +1 -1
- package/declarations/components/status/badge.d.ts +8 -7
- package/declarations/components/status/badge.d.ts.map +1 -1
- package/declarations/components/utilities/card.d.ts +94 -0
- package/declarations/components/utilities/card.d.ts.map +1 -0
- package/declarations/components/utilities/icon.d.ts +57 -0
- package/declarations/components/utilities/icon.d.ts.map +1 -0
- package/declarations/components/utilities/index.d.ts +2 -0
- package/declarations/components/utilities/index.d.ts.map +1 -1
- package/declarations/services/frontile-layout-regions.d.ts +69 -0
- package/declarations/services/frontile-layout-regions.d.ts.map +1 -0
- package/dist/_app_/services/frontile-layout-regions.js +1 -0
- package/dist/buttons.js +1 -0
- package/dist/buttons.js.map +1 -1
- package/dist/components/buttons/button.js.map +1 -1
- package/dist/components/buttons/chip.js.map +1 -1
- package/dist/components/buttons/icon-button.js +33 -0
- package/dist/components/buttons/icon-button.js.map +1 -0
- package/dist/components/buttons/index.js +1 -0
- package/dist/components/buttons/index.js.map +1 -1
- package/dist/components/forms/select/select.js +1 -1
- package/dist/components/forms/select/select.js.map +1 -1
- package/dist/components/layout/app-layout.js +11 -3
- package/dist/components/layout/app-layout.js.map +1 -1
- package/dist/components/layout/aside.js +56 -2
- package/dist/components/layout/aside.js.map +1 -1
- package/dist/components/layout/context.js.map +1 -1
- package/dist/components/layout/in-layout-region.js +42 -0
- package/dist/components/layout/in-layout-region.js.map +1 -0
- package/dist/components/layout/index.js +2 -0
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/layout/region.js +51 -0
- package/dist/components/layout/region.js.map +1 -0
- package/dist/components/overlays/tooltip.js.map +1 -1
- package/dist/components/status/badge.js.map +1 -1
- package/dist/components/utilities/card.js +38 -0
- package/dist/components/utilities/card.js.map +1 -0
- package/dist/components/utilities/icon.js +33 -0
- package/dist/components/utilities/icon.js.map +1 -0
- package/dist/components/utilities/index.js +2 -0
- package/dist/components/utilities/index.js.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/layout.js +2 -0
- package/dist/layout.js.map +1 -1
- package/dist/services/frontile-layout-regions.js +149 -0
- package/dist/services/frontile-layout-regions.js.map +1 -0
- package/dist/utilities.js +2 -0
- package/dist/utilities.js.map +1 -1
- package/package.json +4 -3
|
@@ -18,7 +18,7 @@ interface ButtonGroupSignature {
|
|
|
18
18
|
Element: HTMLDivElement;
|
|
19
19
|
}
|
|
20
20
|
declare class ButtonGroup extends Component<ButtonGroupSignature> {
|
|
21
|
-
get variant(): "solid" | "soft" | "subtle" | "outline" | "ghost" | "plain" | "custom" | undefined;
|
|
21
|
+
get variant(): "link" | "solid" | "soft" | "subtle" | "outline" | "ghost" | "plain" | "custom" | "glass" | undefined;
|
|
22
22
|
get color(): "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
23
23
|
get classNames(): string;
|
|
24
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-group.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/button-group.gts"],"names":[],"mappings":"AAqGA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAe,EAAE,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAqB,EAAE,KAAK,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGpE,UAAU,eAAgB,SAAQ,IAAI,CACpC,UAAU,EACV,SAAS,GAAG,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CACjE;CAAG;AAEJ,UAAU,oBAAoB;IAC5B,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,EAAE;QACN,OAAO,EAAE;YACP;gBACE,MAAM,EAAE,aAAa,CAAC,aAAa,CAAC,eAAe,CAAC,EAAE,WAAW,CAAC,CAAC;gBACnE,YAAY,EAAE,aAAa,CACzB,aAAa,CAAC,qBAAqB,CAAC,EACpC,WAAW,CACZ,CAAC;aACH;SACF,CAAC;KACH,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;CACzB;AAED,cAAM,WAAY,SAAQ,SAAS,CAAC,oBAAoB,CAAC;IACvD,IAAI,OAAO,
|
|
1
|
+
{"version":3,"file":"button-group.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/button-group.gts"],"names":[],"mappings":"AAqGA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAe,EAAE,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAqB,EAAE,KAAK,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGpE,UAAU,eAAgB,SAAQ,IAAI,CACpC,UAAU,EACV,SAAS,GAAG,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CACjE;CAAG;AAEJ,UAAU,oBAAoB;IAC5B,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,EAAE;QACN,OAAO,EAAE;YACP;gBACE,MAAM,EAAE,aAAa,CAAC,aAAa,CAAC,eAAe,CAAC,EAAE,WAAW,CAAC,CAAC;gBACnE,YAAY,EAAE,aAAa,CACzB,aAAa,CAAC,qBAAqB,CAAC,EACpC,WAAW,CACZ,CAAC;aACH;SACF,CAAC;KACH,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;CACzB;AAED,cAAM,WAAY,SAAQ,SAAS,CAAC,oBAAoB,CAAC;IACvD,IAAI,OAAO,0GAkBV;IAED,IAAI,KAAK,oGAYR;IAED,IAAI,UAAU,IAAI,MAAM,CAMvB;CA2BF;AAED,OAAO,EAAE,WAAW,EAAE,KAAK,oBAAoB,EAAE,CAAC;AAClD,eAAe,WAAW,CAAC"}
|
|
@@ -8,11 +8,13 @@ export interface ButtonArgs {
|
|
|
8
8
|
*/
|
|
9
9
|
type?: 'button' | 'submit' | 'reset';
|
|
10
10
|
/**
|
|
11
|
-
* The button variant.
|
|
11
|
+
* The button variant. `glass` is a translucent, color-less fill (it ignores
|
|
12
|
+
* `color`) for use over a colored or imaged surface. `link` is inline, with
|
|
13
|
+
* no fill or side padding, and underlines on hover.
|
|
12
14
|
*
|
|
13
15
|
* @defaultValue 'solid'
|
|
14
16
|
*/
|
|
15
|
-
variant?: 'solid' | 'soft' | 'subtle' | 'outline' | 'ghost' | 'plain' | 'custom';
|
|
17
|
+
variant?: 'solid' | 'soft' | 'subtle' | 'outline' | 'ghost' | 'plain' | 'custom' | 'glass' | 'link';
|
|
16
18
|
/**
|
|
17
19
|
* @deprecated Use `variant`. `default` is now `solid`, `outlined` is
|
|
18
20
|
* `outline`, and `minimal` is `plain`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/button.gts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/button.gts"],"names":[],"mappings":"AAuUA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAK3C,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAC;AA6E/D,MAAM,WAAW,UAAU;IACzB;;;;OAIG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IAErC;;;;;;OAMG;IACH,OAAO,CAAC,EACJ,OAAO,GACP,MAAM,GACN,QAAQ,GACR,SAAS,GACT,OAAO,GACP,OAAO,GACP,QAAQ,GACR,OAAO,GACP,MAAM,CAAC;IAEX;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;IAE9E;;OAEG;IACH,KAAK,CAAC,EACF,SAAS,GACT,SAAS,GACT,WAAW,GACX,UAAU,GACV,SAAS,GACT,SAAS,GACT,QAAQ,CAAC;IAEb;;OAEG;IACH,MAAM,CAAC,EACH,SAAS,GACT,SAAS,GACT,WAAW,GACX,UAAU,GACV,SAAS,GACT,SAAS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O,UAAU,UAI1B;CAqEH;AAED,OAAO,EAAE,MAAM,EAAE,KAAK,eAAe,EAAE,CAAC;AACxC,eAAe,MAAM,CAAC"}
|
|
@@ -21,11 +21,12 @@ interface ChipSignature {
|
|
|
21
21
|
*/
|
|
22
22
|
intent?: 'default' | 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger';
|
|
23
23
|
/**
|
|
24
|
-
* The size of the chip
|
|
24
|
+
* The size of the chip. Uses Button's size names and text size: the same
|
|
25
|
+
* `@size` gives the same label text size on Chip, Badge and Button.
|
|
25
26
|
*
|
|
26
|
-
* @defaultValue '
|
|
27
|
+
* @defaultValue 'xs'
|
|
27
28
|
*/
|
|
28
|
-
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
29
|
+
size?: '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
29
30
|
/**
|
|
30
31
|
* @deprecated Ignored. Chip is always a pill; use `Badge` for a squared
|
|
31
32
|
* label.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chip.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/chip.gts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chip.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/chip.gts"],"names":[],"mappings":"AAoMA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAM3C,UAAU,aAAa;IACrB,IAAI,EAAE;QACJ;;;;WAIG;QACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;QAEvC;;;WAGG;QACH,UAAU,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;QAE9C;;WAEG;QACH,KAAK,CAAC,EACF,SAAS,GACT,SAAS,GACT,WAAW,GACX,UAAU,GACV,SAAS,GACT,SAAS,GACT,QAAQ,CAAC;QAEb;;WAEG;QACH,MAAM,CAAC,EACH,SAAS,GACT,SAAS,GACT,WAAW,GACX,UAAU,GACV,SAAS,GACT,SAAS,GACT,QAAQ,CAAC;QAEb;;;;;WAKG;QACH,IAAI,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;QAExD;;;WAGG;QACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;QAEvC;;;;;;WAMG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAElB;;;WAGG;QACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;QAErB;;;;;;WAMG;QACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAE1B;;;;;;;;;WASG;QACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QAEtC;;;;WAIG;QACH,UAAU,CAAC,EAAE,OAAO,CAAC;QAErB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;CACzB;AAED,cAAM,IAAK,SAAQ,SAAS,CAAC,aAAa,CAAC;IACzC,IAAI,UAAU;;;;;MAmDb;CA8DF;AAED,OAAO,EAAE,IAAI,EAAE,KAAK,aAAa,EAAE,CAAC;AACpC,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type ButtonArgs } from './button';
|
|
2
|
+
import Component from '@glimmer/component';
|
|
3
|
+
import type { PressEvent } from '../../modifiers/press';
|
|
4
|
+
export interface IconButtonSignature {
|
|
5
|
+
Args: {
|
|
6
|
+
/**
|
|
7
|
+
* The accessible name. An icon-only button has no text, so this is
|
|
8
|
+
* required and must not be empty; it becomes the button's `aria-label`.
|
|
9
|
+
*/
|
|
10
|
+
label: string;
|
|
11
|
+
/**
|
|
12
|
+
* The size of the button. Same names as Button, and the same height, so
|
|
13
|
+
* an IconButton lines up with a Button of that size.
|
|
14
|
+
*
|
|
15
|
+
* @defaultValue 'md'
|
|
16
|
+
*/
|
|
17
|
+
size?: ButtonArgs['size'];
|
|
18
|
+
/** The color of the button. Same values as Button. */
|
|
19
|
+
color?: ButtonArgs['color'];
|
|
20
|
+
/** The button variant. Same values as Button. */
|
|
21
|
+
variant?: ButtonArgs['variant'];
|
|
22
|
+
/**
|
|
23
|
+
* Renders a spinner in place of the icon and disables the button.
|
|
24
|
+
*
|
|
25
|
+
* @defaultValue false
|
|
26
|
+
*/
|
|
27
|
+
isLoading?: boolean;
|
|
28
|
+
/** The HTML type of the button. */
|
|
29
|
+
type?: ButtonArgs['type'];
|
|
30
|
+
/** Callback for when the button is pressed. */
|
|
31
|
+
onPress?: (event: PressEvent) => void;
|
|
32
|
+
/**
|
|
33
|
+
* Custom class name, it will override the default ones using Tailwind
|
|
34
|
+
* Merge library.
|
|
35
|
+
*/
|
|
36
|
+
class?: string;
|
|
37
|
+
};
|
|
38
|
+
Blocks: {
|
|
39
|
+
/** The icon, for example an inline `<svg>`. Sized to the button's text. */
|
|
40
|
+
default: [];
|
|
41
|
+
};
|
|
42
|
+
Element: HTMLButtonElement;
|
|
43
|
+
}
|
|
44
|
+
declare class IconButton extends Component<IconButtonSignature> {
|
|
45
|
+
get label(): string;
|
|
46
|
+
get classNames(): string;
|
|
47
|
+
}
|
|
48
|
+
export { IconButton };
|
|
49
|
+
export default IconButton;
|
|
50
|
+
//# sourceMappingURL=icon-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/icon-button.gts"],"names":[],"mappings":"AA0FA,OAAO,EAAU,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAEnD,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAE3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE;QACJ;;;WAGG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;;;;WAKG;QACH,IAAI,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;QAE1B,sDAAsD;QACtD,KAAK,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;QAE5B,iDAAiD;QACjD,OAAO,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;QAEhC;;;;WAIG;QACH,SAAS,CAAC,EAAE,OAAO,CAAC;QAEpB,mCAAmC;QACnC,IAAI,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;QAE1B,+CAA+C;QAC/C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;QAEtC;;;WAGG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,MAAM,EAAE;QACN,2EAA2E;QAC3E,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IACF,OAAO,EAAE,iBAAiB,CAAC;CAC5B;AAED,cAAM,UAAW,SAAQ,SAAS,CAAC,mBAAmB,CAAC;IACrD,IAAI,KAAK,IAAI,MAAM,CAOlB;IAED,IAAI,UAAU,IAAI,MAAM,CAIvB;CA0BF;AAED,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC"}
|
|
@@ -26,7 +26,7 @@ declare class ToggleButton extends Component<ToggleButtonSignature> {
|
|
|
26
26
|
* `@variant` so a consumer still migrating gets the warning, even though
|
|
27
27
|
* the resolved value itself has nowhere else to go.
|
|
28
28
|
*/
|
|
29
|
-
get variant(): "solid" | "soft" | "subtle" | "outline" | "ghost" | "plain" | "custom" | undefined;
|
|
29
|
+
get variant(): "link" | "solid" | "soft" | "subtle" | "outline" | "ghost" | "plain" | "custom" | "glass" | undefined;
|
|
30
30
|
get color(): "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
31
31
|
get classNames(): string;
|
|
32
32
|
get isSelected(): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-button.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/toggle-button.gts"],"names":[],"mappings":"AAmHA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAG3C,UAAU,gBAAiB,SAAQ,IAAI,CACrC,UAAU,EACV,SAAS,GAAG,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,WAAW,CAC/E;IACC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C;AAED,UAAU,qBAAqB;IAC7B,IAAI,EAAE,gBAAgB,CAAC;IACvB,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IACF,OAAO,EAAE,iBAAiB,CAAC;CAC5B;AAED,cAAM,YAAa,SAAQ,SAAS,CAAC,qBAAqB,CAAC;IACzD;;;;;OAKG;IACH,IAAI,OAAO,
|
|
1
|
+
{"version":3,"file":"toggle-button.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/toggle-button.gts"],"names":[],"mappings":"AAmHA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAG3C,UAAU,gBAAiB,SAAQ,IAAI,CACrC,UAAU,EACV,SAAS,GAAG,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,WAAW,CAC/E;IACC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C;AAED,UAAU,qBAAqB;IAC7B,IAAI,EAAE,gBAAgB,CAAC;IACvB,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IACF,OAAO,EAAE,iBAAiB,CAAC;CAC5B;AAED,cAAM,YAAa,SAAQ,SAAS,CAAC,qBAAqB,CAAC;IACzD;;;;;OAKG;IACH,IAAI,OAAO,0GAkBV;IAED,IAAI,KAAK,oGAYR;IAED,IAAI,UAAU,IAAI,MAAM,CAcvB;IAED,IAAI,UAAU,YAEb;IAED,QAAQ,aAIN;CA4BH;AAED,OAAO,EAAE,YAAY,EAAE,KAAK,qBAAqB,EAAE,CAAC;AACpD,eAAe,YAAY,CAAC"}
|
|
@@ -182,7 +182,7 @@ interface MultipleSelectArgs<T> extends BaseSelectArgs<T> {
|
|
|
182
182
|
* - `variant` defaults to `'soft'`
|
|
183
183
|
* - `color` defaults to the Select's own `@color`, so `@color="primary"`
|
|
184
184
|
* colors the listbox items and the chips together
|
|
185
|
-
* - `size` defaults to `'
|
|
185
|
+
* - `size` defaults to `'xs'`
|
|
186
186
|
* - `withDot` falls back to Chip's own default
|
|
187
187
|
*
|
|
188
188
|
* @example
|
|
@@ -2,8 +2,9 @@ import Component from '@glimmer/component';
|
|
|
2
2
|
import { type SlotsToClasses } from '@frontile/theme';
|
|
3
3
|
import { type Breakpoint } from '../../utils/breakpoint';
|
|
4
4
|
import { AppLayoutState } from './app-layout-state';
|
|
5
|
-
import { type AppLayoutConfig, type AppLayoutContext, type RegisteredSidebar } from './context';
|
|
5
|
+
import { type AppLayoutConfig, type AppLayoutContext, type RegisteredAside, type RegisteredSidebar } from './context';
|
|
6
6
|
import Aside from './aside';
|
|
7
|
+
import Region from './region';
|
|
7
8
|
import AsideToggle from './aside-toggle';
|
|
8
9
|
import BottomNav from './bottom-nav';
|
|
9
10
|
import Main from './main';
|
|
@@ -151,7 +152,8 @@ interface AppLayoutArgs {
|
|
|
151
152
|
*/
|
|
152
153
|
asideOpen?: boolean;
|
|
153
154
|
/**
|
|
154
|
-
* The initial `asideOpen` when uncontrolled.
|
|
155
|
+
* The initial `asideOpen` when uncontrolled. Applies from `lg` up, where
|
|
156
|
+
* the aside is a column; below `lg` the aside starts closed.
|
|
155
157
|
*
|
|
156
158
|
* @defaultValue false
|
|
157
159
|
*/
|
|
@@ -174,6 +176,7 @@ interface AppLayoutSignature {
|
|
|
174
176
|
{
|
|
175
177
|
state: AppLayoutState;
|
|
176
178
|
Aside: WithBoundArgs<typeof Aside, 'layout'>;
|
|
179
|
+
Region: WithBoundArgs<typeof Region, 'layout'>;
|
|
177
180
|
AsideToggle: WithBoundArgs<typeof AsideToggle, 'layout'>;
|
|
178
181
|
BottomNav: WithBoundArgs<typeof BottomNav, 'layout'>;
|
|
179
182
|
Main: WithBoundArgs<typeof Main, 'layout'>;
|
|
@@ -236,13 +239,15 @@ declare class AppLayout extends Component<AppLayoutSignature> {
|
|
|
236
239
|
get belowAsideBreakpoint(): boolean;
|
|
237
240
|
sidebarPart: RegisteredPart<RegisteredSidebar>;
|
|
238
241
|
bottomNavPart: RegisteredPart<object>;
|
|
239
|
-
asidePart: RegisteredPart<
|
|
242
|
+
asidePart: RegisteredPart<RegisteredAside>;
|
|
240
243
|
registerSidebar: (part: RegisteredSidebar) => (() => void);
|
|
241
244
|
registerBottomNav: (part: object) => (() => void);
|
|
242
|
-
registerAside: (part:
|
|
245
|
+
registerAside: (part: RegisteredAside) => (() => void);
|
|
243
246
|
get registeredSidebar(): RegisteredSidebar | undefined;
|
|
244
247
|
get registeredBottomNav(): object | undefined;
|
|
245
|
-
get registeredAside():
|
|
248
|
+
get registeredAside(): RegisteredAside | undefined;
|
|
249
|
+
/** An `Aside` is registered and has something to show. */
|
|
250
|
+
get hasAside(): boolean;
|
|
246
251
|
get mobileNav(): 'drawer' | 'bottom';
|
|
247
252
|
/** The bottom bar replaces the sidebar: bottom mode, below the breakpoint. */
|
|
248
253
|
get bottomNavMode(): boolean;
|
|
@@ -1271,6 +1276,49 @@ declare class AppLayout extends Component<AppLayoutSignature> {
|
|
|
1271
1276
|
class?: never | undefined;
|
|
1272
1277
|
className?: import("tailwind-variants").ClassNameValue;
|
|
1273
1278
|
} | undefined) => string;
|
|
1279
|
+
region: (slotProps?: {
|
|
1280
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
1281
|
+
variant?: "inset" | "attached" | undefined;
|
|
1282
|
+
collapsed?: boolean | undefined;
|
|
1283
|
+
navbarPlacement?: "content" | "frame" | undefined;
|
|
1284
|
+
breakpoint?: "sm" | "md" | "lg" | undefined;
|
|
1285
|
+
sidebarColumn?: "none" | "shown" | "collapsed" | undefined;
|
|
1286
|
+
bottomNavRow?: "none" | "shown" | undefined;
|
|
1287
|
+
sidebarSize?: "default" | "rail" | undefined;
|
|
1288
|
+
collapsible?: "icon" | "none" | "offcanvas" | undefined;
|
|
1289
|
+
partColor?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
1290
|
+
sidebarSurface?: "solid" | "plain" | undefined;
|
|
1291
|
+
navbarSurface?: "solid" | "plain" | undefined;
|
|
1292
|
+
frameGradient?: boolean | undefined;
|
|
1293
|
+
cardSurface?: "solid" | "translucent" | undefined;
|
|
1294
|
+
sidebarSide?: "start" | "end" | undefined;
|
|
1295
|
+
inDrawer?: boolean | undefined;
|
|
1296
|
+
standalone?: boolean | undefined;
|
|
1297
|
+
scrollMode?: "content" | "page" | undefined;
|
|
1298
|
+
class?: import("tailwind-variants").ClassNameValue;
|
|
1299
|
+
className?: never | undefined;
|
|
1300
|
+
} | {
|
|
1301
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
1302
|
+
variant?: "inset" | "attached" | undefined;
|
|
1303
|
+
collapsed?: boolean | undefined;
|
|
1304
|
+
navbarPlacement?: "content" | "frame" | undefined;
|
|
1305
|
+
breakpoint?: "sm" | "md" | "lg" | undefined;
|
|
1306
|
+
sidebarColumn?: "none" | "shown" | "collapsed" | undefined;
|
|
1307
|
+
bottomNavRow?: "none" | "shown" | undefined;
|
|
1308
|
+
sidebarSize?: "default" | "rail" | undefined;
|
|
1309
|
+
collapsible?: "icon" | "none" | "offcanvas" | undefined;
|
|
1310
|
+
partColor?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
1311
|
+
sidebarSurface?: "solid" | "plain" | undefined;
|
|
1312
|
+
navbarSurface?: "solid" | "plain" | undefined;
|
|
1313
|
+
frameGradient?: boolean | undefined;
|
|
1314
|
+
cardSurface?: "solid" | "translucent" | undefined;
|
|
1315
|
+
sidebarSide?: "start" | "end" | undefined;
|
|
1316
|
+
inDrawer?: boolean | undefined;
|
|
1317
|
+
standalone?: boolean | undefined;
|
|
1318
|
+
scrollMode?: "content" | "page" | undefined;
|
|
1319
|
+
class?: never | undefined;
|
|
1320
|
+
className?: import("tailwind-variants").ClassNameValue;
|
|
1321
|
+
} | undefined) => string;
|
|
1274
1322
|
skipLink: (slotProps?: {
|
|
1275
1323
|
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
1276
1324
|
variant?: "inset" | "attached" | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-layout.d.ts","sourceRoot":"","sources":["../../../src/components/layout/app-layout.gts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app-layout.d.ts","sourceRoot":"","sources":["../../../src/components/layout/app-layout.gts"],"names":[],"mappings":"AA8uBA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAQ3C,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAGL,KAAK,UAAU,EAChB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACvB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,UAAU,aAAa;IACrB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAEvC;;;;;OAKG;IACH,eAAe,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAEv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OAAO,KAAK,KAAG,IAAI,CAM9B;IAIF,gBAAgB,GAAI,OAAO,aAAa,KAAG,IAAI,CAI7C;CAiGH;AAMD,2DAA2D;AAC3D,cAAM,iBAAiB;;IACZ,KAAK,EAAE,OAAO,CAAC;gBAGZ,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;IAQtE,IAAI,IAAI,IAAI;CAGb;AAkCD,OAAO,EAAE,SAAS,EAAE,KAAK,kBAAkB,EAAE,KAAK,aAAa,EAAE,CAAC;AAClE,eAAe,SAAS,CAAC"}
|
|
@@ -2,6 +2,7 @@ import Component from '@glimmer/component';
|
|
|
2
2
|
import { AppLayoutState } from './app-layout-state';
|
|
3
3
|
import { type AppLayoutContext } from './context';
|
|
4
4
|
import type { AppLayoutVariants } from '@frontile/theme';
|
|
5
|
+
import type FrontileLayoutRegionsService from '../../services/frontile-layout-regions';
|
|
5
6
|
import type Owner from '@ember/owner';
|
|
6
7
|
interface AsideArgs {
|
|
7
8
|
/**
|
|
@@ -23,6 +24,13 @@ interface AsideArgs {
|
|
|
23
24
|
* an `AppLayout`; inside one it follows the layout's state.
|
|
24
25
|
*/
|
|
25
26
|
state?: AppLayoutState;
|
|
27
|
+
/**
|
|
28
|
+
* Fill the aside from `<InLayoutRegion @name="…">` with this name, from
|
|
29
|
+
* any template including a route template, instead of from its own block.
|
|
30
|
+
* While nothing fills it, the aside and `AsideToggle` render nothing.
|
|
31
|
+
* Region names are global to the app. Read once.
|
|
32
|
+
*/
|
|
33
|
+
region?: string;
|
|
26
34
|
/**
|
|
27
35
|
* Supplied by `AppLayout`. Not part of the public API.
|
|
28
36
|
*
|
|
@@ -46,8 +54,24 @@ interface AsideSignature {
|
|
|
46
54
|
* is always inline.
|
|
47
55
|
*/
|
|
48
56
|
declare class Aside extends Component<AsideSignature> {
|
|
57
|
+
regions: FrontileLayoutRegionsService;
|
|
49
58
|
fallbackState: AppLayoutState;
|
|
59
|
+
/** `@region`, read once. */
|
|
60
|
+
region: string | undefined;
|
|
50
61
|
constructor(owner: Owner, args: AsideArgs);
|
|
62
|
+
/**
|
|
63
|
+
* Always true for a block aside; one with `@region` needs a source. Also
|
|
64
|
+
* read by the layout's `hasAside` (`RegisteredAside`).
|
|
65
|
+
*/
|
|
66
|
+
get available(): boolean;
|
|
67
|
+
/** Makes the `aside` element the region's target. Nothing without `@region`. */
|
|
68
|
+
registerTarget: import("ember-modifier").FunctionBasedModifier<{
|
|
69
|
+
Args: {
|
|
70
|
+
Positional: unknown[];
|
|
71
|
+
Named: import("ember-modifier/-private/signature").EmptyObject;
|
|
72
|
+
};
|
|
73
|
+
Element: HTMLElement;
|
|
74
|
+
}>;
|
|
51
75
|
get state(): AppLayoutState;
|
|
52
76
|
/**
|
|
53
77
|
* Below `lg` the content moves into the drawer. Only one of the two is
|
|
@@ -63,6 +87,18 @@ declare class Aside extends Component<AsideSignature> {
|
|
|
63
87
|
*/
|
|
64
88
|
get placement(): 'left' | 'right';
|
|
65
89
|
closeDrawer: () => void;
|
|
90
|
+
/**
|
|
91
|
+
* Open only while there is something to show. The drawer stays mounted
|
|
92
|
+
* while empty, so emptying it plays the close transition instead of
|
|
93
|
+
* removing it at once.
|
|
94
|
+
*/
|
|
95
|
+
get isOpen(): boolean;
|
|
96
|
+
/**
|
|
97
|
+
* A drawer closed because it emptied has no toggle to return focus to
|
|
98
|
+
* (`AsideToggle` is hidden too), so focus goes to `Main` instead of the
|
|
99
|
+
* page body.
|
|
100
|
+
*/
|
|
101
|
+
didCloseDrawer: () => void;
|
|
66
102
|
get styles(): {
|
|
67
103
|
base: (slotProps?: {
|
|
68
104
|
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
@@ -1053,6 +1089,49 @@ declare class Aside extends Component<AsideSignature> {
|
|
|
1053
1089
|
class?: never | undefined;
|
|
1054
1090
|
className?: import("tailwind-variants").ClassNameValue;
|
|
1055
1091
|
} | undefined) => string;
|
|
1092
|
+
region: (slotProps?: {
|
|
1093
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
1094
|
+
variant?: "inset" | "attached" | undefined;
|
|
1095
|
+
collapsed?: boolean | undefined;
|
|
1096
|
+
navbarPlacement?: "content" | "frame" | undefined;
|
|
1097
|
+
breakpoint?: "sm" | "md" | "lg" | undefined;
|
|
1098
|
+
sidebarColumn?: "none" | "shown" | "collapsed" | undefined;
|
|
1099
|
+
bottomNavRow?: "none" | "shown" | undefined;
|
|
1100
|
+
sidebarSize?: "default" | "rail" | undefined;
|
|
1101
|
+
collapsible?: "icon" | "none" | "offcanvas" | undefined;
|
|
1102
|
+
partColor?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
1103
|
+
sidebarSurface?: "solid" | "plain" | undefined;
|
|
1104
|
+
navbarSurface?: "solid" | "plain" | undefined;
|
|
1105
|
+
frameGradient?: boolean | undefined;
|
|
1106
|
+
cardSurface?: "solid" | "translucent" | undefined;
|
|
1107
|
+
sidebarSide?: "start" | "end" | undefined;
|
|
1108
|
+
inDrawer?: boolean | undefined;
|
|
1109
|
+
standalone?: boolean | undefined;
|
|
1110
|
+
scrollMode?: "content" | "page" | undefined;
|
|
1111
|
+
class?: import("tailwind-variants").ClassNameValue;
|
|
1112
|
+
className?: never | undefined;
|
|
1113
|
+
} | {
|
|
1114
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
1115
|
+
variant?: "inset" | "attached" | undefined;
|
|
1116
|
+
collapsed?: boolean | undefined;
|
|
1117
|
+
navbarPlacement?: "content" | "frame" | undefined;
|
|
1118
|
+
breakpoint?: "sm" | "md" | "lg" | undefined;
|
|
1119
|
+
sidebarColumn?: "none" | "shown" | "collapsed" | undefined;
|
|
1120
|
+
bottomNavRow?: "none" | "shown" | undefined;
|
|
1121
|
+
sidebarSize?: "default" | "rail" | undefined;
|
|
1122
|
+
collapsible?: "icon" | "none" | "offcanvas" | undefined;
|
|
1123
|
+
partColor?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
1124
|
+
sidebarSurface?: "solid" | "plain" | undefined;
|
|
1125
|
+
navbarSurface?: "solid" | "plain" | undefined;
|
|
1126
|
+
frameGradient?: boolean | undefined;
|
|
1127
|
+
cardSurface?: "solid" | "translucent" | undefined;
|
|
1128
|
+
sidebarSide?: "start" | "end" | undefined;
|
|
1129
|
+
inDrawer?: boolean | undefined;
|
|
1130
|
+
standalone?: boolean | undefined;
|
|
1131
|
+
scrollMode?: "content" | "page" | undefined;
|
|
1132
|
+
class?: never | undefined;
|
|
1133
|
+
className?: import("tailwind-variants").ClassNameValue;
|
|
1134
|
+
} | undefined) => string;
|
|
1056
1135
|
skipLink: (slotProps?: {
|
|
1057
1136
|
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
1058
1137
|
variant?: "inset" | "attached" | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aside.d.ts","sourceRoot":"","sources":["../../../src/components/layout/aside.gts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aside.d.ts","sourceRoot":"","sources":["../../../src/components/layout/aside.gts"],"names":[],"mappings":"AA4OA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAQ3C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAkB,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,4BAA4B,MAAM,wCAAwC,CAAC;AACvF,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,UAAU,SAAS;IACjB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,OAAO,CAAC,EAAE,iB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CAAC;AACtD,eAAe,KAAK,CAAC"}
|
|
@@ -72,16 +72,24 @@ export interface AppLayoutContext {
|
|
|
72
72
|
*/
|
|
73
73
|
registerBottomNav(nav: object): () => void;
|
|
74
74
|
/**
|
|
75
|
-
* Whether an `Aside` is rendered in the layout
|
|
76
|
-
* nothing without one.
|
|
77
|
-
*
|
|
75
|
+
* Whether an `Aside` is rendered in the layout and has something to show.
|
|
76
|
+
* `AsideToggle` renders nothing without one. False while an `Aside` with
|
|
77
|
+
* `@region` has no source. Settles after the first render, like the
|
|
78
|
+
* registered sidebar (tracked).
|
|
78
79
|
*/
|
|
79
80
|
readonly hasAside: boolean;
|
|
80
81
|
/**
|
|
81
82
|
* Called by `Aside` so the layout knows it has one. Returns the matching
|
|
82
83
|
* unregister function.
|
|
83
84
|
*/
|
|
84
|
-
registerAside(aside:
|
|
85
|
+
registerAside(aside: RegisteredAside): () => void;
|
|
86
|
+
}
|
|
87
|
+
export interface RegisteredAside {
|
|
88
|
+
/**
|
|
89
|
+
* Whether the aside has content to show. An `Aside` with `@region`
|
|
90
|
+
* reports false while no source fills it.
|
|
91
|
+
*/
|
|
92
|
+
readonly available: boolean;
|
|
85
93
|
}
|
|
86
94
|
export interface RegisteredSidebar {
|
|
87
95
|
readonly collapsed: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/layout/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,MAAM,eAAe,GAAG,UAAU,CACtC,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,WAAW,CAAC,CAC1C,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,gBA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B,IAAI,eAAe,CAElD;AAID,MAAM,WAAW,mBAAmB;IAClC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,wBAAwB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACpD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,yBAAyB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACrD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC9C;AAQD;;;;;;;;GAQG;AACH,qBAAa,wBAAyB,YAAW,cAAc;;gBAIjD,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,mBAAmB;IAkBhE,IAAI,gBAAgB,IAAI,OAAO,CAE9B;IAED,IAAI,gBAAgB,CAAC,KAAK,EAAE,OAAO,EAElC;IAED,IAAI,iBAAiB,IAAI,OAAO,CAE/B;IAED,IAAI,iBAAiB,CAAC,KAAK,EAAE,OAAO,EAEnC;IAED,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,IAAI,SAAS,CAAC,KAAK,EAAE,OAAO,EAE3B;IAED,aAAa,QAAO,IAAI,CAEtB;IAEF,eAAe,QAAO,IAAI,CAExB;IAEF,aAAa,QAAO,IAAI,CAEtB;IAEF,iBAAiB,QAAO,IAAI,CAE1B;IAEF,kBAAkB,QAAO,IAAI,CAE3B;IAEF,WAAW,QAAO,IAAI,CAEpB;IAEF,UAAU,QAAO,IAAI,CAEnB;CACH"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import type FrontileLayoutRegionsService from '../../services/frontile-layout-regions';
|
|
3
|
+
import type Owner from '@ember/owner';
|
|
4
|
+
interface InLayoutRegionArgs {
|
|
5
|
+
/**
|
|
6
|
+
* The name of the region to render into: a `layout.Region @name`, or a
|
|
7
|
+
* `layout.Aside @region`. Read once.
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
}
|
|
11
|
+
interface InLayoutRegionSignature {
|
|
12
|
+
Args: InLayoutRegionArgs;
|
|
13
|
+
Blocks: {
|
|
14
|
+
/** The content rendered in the region. */
|
|
15
|
+
default: [];
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Renders its block into the layout region of the same name, from anywhere
|
|
20
|
+
* in the app, including a route template inside `{{outlet}}`. Nothing
|
|
21
|
+
* renders where it sits, and the block gets no wrapper element.
|
|
22
|
+
*
|
|
23
|
+
* The source that rendered last is the one shown. When it goes away (a
|
|
24
|
+
* child route exits) the previous one comes back. In a parent route
|
|
25
|
+
* template, put it before `{{outlet}}` so the child's source renders later
|
|
26
|
+
* and wins. With `@multiple` on the region, every source is shown.
|
|
27
|
+
*/
|
|
28
|
+
declare class InLayoutRegion extends Component<InLayoutRegionSignature> {
|
|
29
|
+
regions: FrontileLayoutRegionsService;
|
|
30
|
+
token: {};
|
|
31
|
+
/** `@name`, read once: the source stays in the region it joined. */
|
|
32
|
+
name: string;
|
|
33
|
+
constructor(owner: Owner, args: InLayoutRegionArgs);
|
|
34
|
+
get target(): Element | null;
|
|
35
|
+
}
|
|
36
|
+
export { InLayoutRegion, type InLayoutRegionSignature, type InLayoutRegionArgs };
|
|
37
|
+
export default InLayoutRegion;
|
|
38
|
+
//# sourceMappingURL=in-layout-region.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"in-layout-region.d.ts","sourceRoot":"","sources":["../../../src/components/layout/in-layout-region.gts"],"names":[],"mappings":"AA+DA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAO,KAAK,4BAA4B,MAAM,wCAAwC,CAAC;AACvF,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,UAAU,kBAAkB;IAC1B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,uBAAuB;IAC/B,IAAI,EAAE,kBAAkB,CAAC;IACzB,MAAM,EAAE;QACN,0CAA0C;QAC1C,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AAED;;;;;;;;;GASG;AACH,cAAM,cAAe,SAAQ,SAAS,CAAC,uBAAuB,CAAC;IAErD,OAAO,EAAE,4BAA4B,CAAC;IAE9C,KAAK,KAAM;IACX,oEAAoE;IACpE,IAAI,EAAE,MAAM,CAAC;gBAED,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,kBAAkB;IAMlD,IAAI,MAAM,IAAI,OAAO,GAAG,IAAI,CAE3B;CAeF;AAED,OAAO,EACL,cAAc,EACd,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACxB,CAAC;AACF,eAAe,cAAc,CAAC"}
|
|
@@ -11,4 +11,6 @@ export { PageHeader, type PageHeaderSignature, type PageHeaderArgs } from './pag
|
|
|
11
11
|
export { Sidebar, type SidebarSignature, type SidebarArgs } from './sidebar';
|
|
12
12
|
export { SidebarGroup, type SidebarGroupSignature, type SidebarGroupArgs } from './sidebar-group';
|
|
13
13
|
export { SidebarToggle, type SidebarToggleSignature, type SidebarToggleArgs } from './sidebar-toggle';
|
|
14
|
+
export { Region, type RegionSignature, type RegionArgs } from './region';
|
|
15
|
+
export { InLayoutRegion, type InLayoutRegionSignature, type InLayoutRegionArgs } from './in-layout-region';
|
|
14
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChF,OAAO,EACL,SAAS,EACT,KAAK,kBAAkB,EACvB,KAAK,aAAa,EACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AACrE,OAAO,EACL,WAAW,EACX,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACrB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,SAAS,EACT,KAAK,kBAAkB,EACvB,KAAK,aAAa,EACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,aAAa,EACb,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,IAAI,EAAE,KAAK,aAAa,EAAE,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACjE,OAAO,EACL,UAAU,EACV,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACpB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,MAAM,EAAE,KAAK,eAAe,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AACzE,OAAO,EACL,UAAU,EACV,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACpB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7E,OAAO,EACL,YAAY,EACZ,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,aAAa,EACb,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACvB,MAAM,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChF,OAAO,EACL,SAAS,EACT,KAAK,kBAAkB,EACvB,KAAK,aAAa,EACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AACrE,OAAO,EACL,WAAW,EACX,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACrB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,SAAS,EACT,KAAK,kBAAkB,EACvB,KAAK,aAAa,EACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,aAAa,EACb,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,IAAI,EAAE,KAAK,aAAa,EAAE,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACjE,OAAO,EACL,UAAU,EACV,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACpB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,MAAM,EAAE,KAAK,eAAe,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AACzE,OAAO,EACL,UAAU,EACV,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACpB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7E,OAAO,EACL,YAAY,EACZ,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,aAAa,EACb,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACvB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,KAAK,eAAe,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AACzE,OAAO,EACL,cAAc,EACd,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACxB,MAAM,oBAAoB,CAAC"}
|
|
@@ -1028,6 +1028,49 @@ declare class Navbar extends Component<NavbarSignature> {
|
|
|
1028
1028
|
class?: never | undefined;
|
|
1029
1029
|
className?: import("tailwind-variants").ClassNameValue;
|
|
1030
1030
|
} | undefined) => string;
|
|
1031
|
+
region: (slotProps?: {
|
|
1032
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
1033
|
+
variant?: "inset" | "attached" | undefined;
|
|
1034
|
+
collapsed?: boolean | undefined;
|
|
1035
|
+
navbarPlacement?: "content" | "frame" | undefined;
|
|
1036
|
+
breakpoint?: "sm" | "md" | "lg" | undefined;
|
|
1037
|
+
sidebarColumn?: "none" | "shown" | "collapsed" | undefined;
|
|
1038
|
+
bottomNavRow?: "none" | "shown" | undefined;
|
|
1039
|
+
sidebarSize?: "default" | "rail" | undefined;
|
|
1040
|
+
collapsible?: "icon" | "none" | "offcanvas" | undefined;
|
|
1041
|
+
partColor?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
1042
|
+
sidebarSurface?: "solid" | "plain" | undefined;
|
|
1043
|
+
navbarSurface?: "solid" | "plain" | undefined;
|
|
1044
|
+
frameGradient?: boolean | undefined;
|
|
1045
|
+
cardSurface?: "solid" | "translucent" | undefined;
|
|
1046
|
+
sidebarSide?: "start" | "end" | undefined;
|
|
1047
|
+
inDrawer?: boolean | undefined;
|
|
1048
|
+
standalone?: boolean | undefined;
|
|
1049
|
+
scrollMode?: "content" | "page" | undefined;
|
|
1050
|
+
class?: import("tailwind-variants").ClassNameValue;
|
|
1051
|
+
className?: never | undefined;
|
|
1052
|
+
} | {
|
|
1053
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
1054
|
+
variant?: "inset" | "attached" | undefined;
|
|
1055
|
+
collapsed?: boolean | undefined;
|
|
1056
|
+
navbarPlacement?: "content" | "frame" | undefined;
|
|
1057
|
+
breakpoint?: "sm" | "md" | "lg" | undefined;
|
|
1058
|
+
sidebarColumn?: "none" | "shown" | "collapsed" | undefined;
|
|
1059
|
+
bottomNavRow?: "none" | "shown" | undefined;
|
|
1060
|
+
sidebarSize?: "default" | "rail" | undefined;
|
|
1061
|
+
collapsible?: "icon" | "none" | "offcanvas" | undefined;
|
|
1062
|
+
partColor?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
1063
|
+
sidebarSurface?: "solid" | "plain" | undefined;
|
|
1064
|
+
navbarSurface?: "solid" | "plain" | undefined;
|
|
1065
|
+
frameGradient?: boolean | undefined;
|
|
1066
|
+
cardSurface?: "solid" | "translucent" | undefined;
|
|
1067
|
+
sidebarSide?: "start" | "end" | undefined;
|
|
1068
|
+
inDrawer?: boolean | undefined;
|
|
1069
|
+
standalone?: boolean | undefined;
|
|
1070
|
+
scrollMode?: "content" | "page" | undefined;
|
|
1071
|
+
class?: never | undefined;
|
|
1072
|
+
className?: import("tailwind-variants").ClassNameValue;
|
|
1073
|
+
} | undefined) => string;
|
|
1031
1074
|
skipLink: (slotProps?: {
|
|
1032
1075
|
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
1033
1076
|
variant?: "inset" | "attached" | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navbar.d.ts","sourceRoot":"","sources":["../../../src/components/layout/navbar.gts"],"names":[],"mappings":"AAyEA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAO,EAAkB,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,UAAU,UAAU;IAClB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAEnC;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC,eAAe,CAAC,CAAC;IAE7C;;;;OAIG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED,UAAU,eAAe;IACvB,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,EAAE;QAAE,OAAO,EAAE,EAAE,CAAA;KAAE,CAAC;IACxB,OAAO,EAAE,WAAW,CAAC;CACtB;AAED;;;GAGG;AACH,cAAM,MAAO,SAAQ,SAA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