@cngx/ui 0.1.0-rc.8 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +118 -59
- package/action-button/README.md +170 -53
- package/breadcrumb/README.md +5 -6
- package/collection/README.md +1 -1
- package/command-palette/README.md +9 -5
- package/data-grid-accordion/README.md +1 -1
- package/empty-state/README.md +2 -3
- package/feedback/README.md +1 -1
- package/fesm2022/cngx-ui-a11y.mjs +13 -23
- package/fesm2022/cngx-ui-a11y.mjs.map +1 -1
- package/fesm2022/cngx-ui-accordion.mjs +55 -60
- package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-action-button.mjs +220 -339
- package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
- package/fesm2022/cngx-ui-breadcrumb.mjs +100 -80
- package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/cngx-ui-chart-panel.mjs +18 -31
- package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -1
- package/fesm2022/cngx-ui-collection.mjs +28 -34
- package/fesm2022/cngx-ui-collection.mjs.map +1 -1
- package/fesm2022/cngx-ui-command-palette.mjs +29 -51
- package/fesm2022/cngx-ui-command-palette.mjs.map +1 -1
- package/fesm2022/cngx-ui-context-menu.mjs +138 -89
- package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
- package/fesm2022/cngx-ui-data-grid-accordion.mjs +135 -77
- package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-empty-state.mjs +17 -44
- package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
- package/fesm2022/cngx-ui-feedback.mjs +648 -495
- package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
- package/fesm2022/cngx-ui-layout.mjs +17 -13
- package/fesm2022/cngx-ui-layout.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-accordion.mjs +6 -7
- package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-paginator.mjs +5 -9
- package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-stepper.mjs +6 -9
- package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-tabs.mjs +315 -134
- package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-nav-rail.mjs +440 -0
- package/fesm2022/cngx-ui-nav-rail.mjs.map +1 -0
- package/fesm2022/cngx-ui-overlay.mjs +9 -10
- package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
- package/fesm2022/cngx-ui-paginator.mjs +212 -188
- package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-sidenav.mjs +872 -721
- package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
- package/fesm2022/cngx-ui-skeleton.mjs +17 -19
- package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
- package/fesm2022/cngx-ui-speak.mjs +21 -74
- package/fesm2022/cngx-ui-speak.mjs.map +1 -1
- package/fesm2022/cngx-ui-stat-card.mjs +39 -62
- package/fesm2022/cngx-ui-stat-card.mjs.map +1 -1
- package/fesm2022/cngx-ui-stepper.mjs +259 -130
- package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-tabs.mjs +148 -50
- package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-timeline.mjs +48 -32
- package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
- package/fesm2022/cngx-ui-toc.mjs +59 -48
- package/fesm2022/cngx-ui-toc.mjs.map +1 -1
- package/fesm2022/cngx-ui.mjs +5 -5
- package/fesm2022/cngx-ui.mjs.map +1 -1
- package/mat-tabs/README.md +57 -19
- package/mat-tabs/styles/mat-tabs.css +285 -163
- package/nav-rail/README.md +325 -0
- package/package.json +37 -8
- package/paginator/README.md +10 -0
- package/schematics/collection.json +9 -0
- package/schematics/ng-add/index.js +9 -0
- package/schematics/ng-add/schema.json +96 -0
- package/schematics/package.json +3 -0
- package/sidenav/README.md +150 -55
- package/skeleton/README.md +1 -1
- package/speak/README.md +1 -2
- package/stepper/README.md +20 -5
- package/tabs/README.md +13 -0
- package/timeline/README.md +1 -1
- package/toc/README.md +1 -1
- package/types/cngx-ui-a11y.d.ts +20 -38
- package/types/cngx-ui-accordion.d.ts +46 -71
- package/types/cngx-ui-action-button.d.ts +113 -151
- package/types/cngx-ui-breadcrumb.d.ts +60 -85
- package/types/cngx-ui-chart-panel.d.ts +22 -40
- package/types/cngx-ui-collection.d.ts +30 -43
- package/types/cngx-ui-command-palette.d.ts +40 -64
- package/types/cngx-ui-context-menu.d.ts +109 -48
- package/types/cngx-ui-data-grid-accordion.d.ts +50 -75
- package/types/cngx-ui-empty-state.d.ts +18 -8
- package/types/cngx-ui-feedback.d.ts +275 -292
- package/types/cngx-ui-layout.d.ts +4 -12
- package/types/cngx-ui-mat-accordion.d.ts +5 -5
- package/types/cngx-ui-mat-paginator.d.ts +4 -10
- package/types/cngx-ui-mat-stepper.d.ts +5 -10
- package/types/cngx-ui-mat-tabs.d.ts +86 -89
- package/types/cngx-ui-nav-rail.d.ts +416 -0
- package/types/cngx-ui-overlay.d.ts +4 -13
- package/types/cngx-ui-paginator.d.ts +186 -161
- package/types/cngx-ui-sidenav.d.ts +557 -437
- package/types/cngx-ui-skeleton.d.ts +7 -13
- package/types/cngx-ui-speak.d.ts +40 -24
- package/types/cngx-ui-stat-card.d.ts +45 -36
- package/types/cngx-ui-stepper.d.ts +205 -84
- package/types/cngx-ui-tabs.d.ts +104 -28
- package/types/cngx-ui-timeline.d.ts +31 -51
- package/types/cngx-ui-toc.d.ts +43 -54
- package/types/cngx-ui.d.ts +1 -1
|
@@ -15,8 +15,7 @@ import { resolveAsyncView } from '@cngx/common/data';
|
|
|
15
15
|
* The English command-palette section: the single source of the palette's
|
|
16
16
|
* English copy. The `CNGX_COMMAND_PALETTE_CONFIG` copy keys default to it.
|
|
17
17
|
*
|
|
18
|
-
* @
|
|
19
|
-
* @since 0.1.0
|
|
18
|
+
* @since 0.3.0
|
|
20
19
|
* @relatedTo CNGX_COMMAND_PALETTE_CONFIG
|
|
21
20
|
*/
|
|
22
21
|
const CNGX_COMMAND_PALETTE_LANGUAGE_EN = {
|
|
@@ -91,8 +90,7 @@ const CNGX_COMMAND_PALETTE_DEFAULTS = {
|
|
|
91
90
|
* Library-default palette configuration. Carries no copy: the copy defaults
|
|
92
91
|
* are the `commandPalette` section of the language pack.
|
|
93
92
|
*
|
|
94
|
-
* @
|
|
95
|
-
* @since 0.1.0
|
|
93
|
+
* @since 0.3.0
|
|
96
94
|
*/
|
|
97
95
|
const DEFAULT_COMMAND_PALETTE_CONFIG = {
|
|
98
96
|
openShortcut: CNGX_COMMAND_PALETTE_DEFAULTS.openShortcut,
|
|
@@ -103,8 +101,7 @@ const DEFAULT_COMMAND_PALETTE_CONFIG = {
|
|
|
103
101
|
* {@link provideCommandPaletteConfig} or per-scope via
|
|
104
102
|
* {@link provideCommandPaletteConfigAt}.
|
|
105
103
|
*
|
|
106
|
-
* @
|
|
107
|
-
* @since 0.1.0
|
|
104
|
+
* @since 0.3.0
|
|
108
105
|
*/
|
|
109
106
|
const CNGX_COMMAND_PALETTE_CONFIG = new InjectionToken('CngxCommandPaletteConfig', { providedIn: 'root', factory: () => DEFAULT_COMMAND_PALETTE_CONFIG });
|
|
110
107
|
/** @internal */
|
|
@@ -121,8 +118,7 @@ function applyFeatures(base, features) {
|
|
|
121
118
|
* )
|
|
122
119
|
* ```
|
|
123
120
|
*
|
|
124
|
-
* @
|
|
125
|
-
* @since 0.1.0
|
|
121
|
+
* @since 0.3.0
|
|
126
122
|
*/
|
|
127
123
|
function provideCommandPaletteConfig(...features) {
|
|
128
124
|
return makeEnvironmentProviders([
|
|
@@ -136,8 +132,7 @@ function provideCommandPaletteConfig(...features) {
|
|
|
136
132
|
* Component-scoped palette configuration override. Features merge on top of the
|
|
137
133
|
* enclosing scope (root or a parent `viewProviders`).
|
|
138
134
|
*
|
|
139
|
-
* @
|
|
140
|
-
* @since 0.1.0
|
|
135
|
+
* @since 0.3.0
|
|
141
136
|
*/
|
|
142
137
|
function provideCommandPaletteConfigAt(...features) {
|
|
143
138
|
return [
|
|
@@ -152,8 +147,7 @@ function provideCommandPaletteConfigAt(...features) {
|
|
|
152
147
|
* Resolves the {@link CngxCommandPaletteConfig} from the current injection
|
|
153
148
|
* scope. Must run in an injection context.
|
|
154
149
|
*
|
|
155
|
-
* @
|
|
156
|
-
* @since 0.1.0
|
|
150
|
+
* @since 0.3.0
|
|
157
151
|
*/
|
|
158
152
|
function injectCommandPaletteConfig() {
|
|
159
153
|
return inject(CNGX_COMMAND_PALETTE_CONFIG);
|
|
@@ -213,8 +207,7 @@ const LABEL_KEYS = [
|
|
|
213
207
|
* runtime; a key the Signal sets wins over the inherited value, an unset key
|
|
214
208
|
* follows it.
|
|
215
209
|
*
|
|
216
|
-
* @
|
|
217
|
-
* @since 0.1.0
|
|
210
|
+
* @since 0.3.0
|
|
218
211
|
*/
|
|
219
212
|
function withCommandPaletteLabels(labels) {
|
|
220
213
|
if (!isSignal(labels)) {
|
|
@@ -238,8 +231,7 @@ function withCommandPaletteLabels(labels) {
|
|
|
238
231
|
* or per-scope via `provideCommandPaletteConfigAt`. A per-instance
|
|
239
232
|
* `[openShortcut]` input still wins over this.
|
|
240
233
|
*
|
|
241
|
-
* @
|
|
242
|
-
* @since 0.1.0
|
|
234
|
+
* @since 0.3.0
|
|
243
235
|
*/
|
|
244
236
|
function withPaletteShortcut(combo) {
|
|
245
237
|
return (config) => ({ ...config, openShortcut: combo });
|
|
@@ -248,8 +240,7 @@ function withPaletteShortcut(combo) {
|
|
|
248
240
|
* Replace the footer keyboard legend. Pass a `Signal` to switch the language at
|
|
249
241
|
* runtime.
|
|
250
242
|
*
|
|
251
|
-
* @
|
|
252
|
-
* @since 0.1.0
|
|
243
|
+
* @since 0.3.0
|
|
253
244
|
*/
|
|
254
245
|
function withKeyboardLegend(entries) {
|
|
255
246
|
return (config) => ({ ...config, footerLegend: entries });
|
|
@@ -259,8 +250,7 @@ function withKeyboardLegend(entries) {
|
|
|
259
250
|
* another locale). Pass a `Signal` of the formatter to switch the language at
|
|
260
251
|
* runtime; the live count speaks the new formatter on its next change.
|
|
261
252
|
*
|
|
262
|
-
* @
|
|
263
|
-
* @since 0.1.0
|
|
253
|
+
* @since 0.3.0
|
|
264
254
|
*/
|
|
265
255
|
function withResultCountFormatter(formatter) {
|
|
266
256
|
return (config) => ({ ...config, resultCount: formatter });
|
|
@@ -269,8 +259,7 @@ function withResultCountFormatter(formatter) {
|
|
|
269
259
|
* Register global default slot templates. Merged over any already set; a
|
|
270
260
|
* per-instance `*cngxCommand*` slot still wins over these.
|
|
271
261
|
*
|
|
272
|
-
* @
|
|
273
|
-
* @since 0.1.0
|
|
262
|
+
* @since 0.3.0
|
|
274
263
|
*/
|
|
275
264
|
function withCommandPaletteTemplates(templates) {
|
|
276
265
|
return (config) => ({
|
|
@@ -282,8 +271,7 @@ function withCommandPaletteTemplates(templates) {
|
|
|
282
271
|
/**
|
|
283
272
|
* DI token the panel injects (optional) to reach its hosting palette surface.
|
|
284
273
|
*
|
|
285
|
-
* @
|
|
286
|
-
* @since 0.1.0
|
|
274
|
+
* @since 0.3.0
|
|
287
275
|
*/
|
|
288
276
|
const CNGX_COMMAND_PALETTE_HOST = new InjectionToken('CNGX_COMMAND_PALETTE_HOST');
|
|
289
277
|
|
|
@@ -611,7 +599,7 @@ class CngxCommandPanel {
|
|
|
611
599
|
}
|
|
612
600
|
|
|
613
601
|
<span class="cngx-sr-only" aria-live="polite">{{ countMessage() }}</span>
|
|
614
|
-
`, isInline: true, styles: [".cngx-command-panel{display:block;--cngx-command-input-gap: var(--cngx-space-sm, .5rem);--cngx-command-input-pad: var(--cngx-space-md, 1rem);--cngx-command-row-gap: var(--cngx-space-sm, .5rem);--cngx-command-row-pad: var(--cngx-space-sm, .5rem);--cngx-command-listbox-pad: var(--cngx-space-xs, .25rem);--cngx-command-chip-pad: var(--cngx-space-sm, .5rem)}.cngx-command-panel-input-row{display:flex;align-items:center;gap:var(--cngx-command-input-gap, var(--cngx-space-sm, .5rem));padding:var(--cngx-command-input-pad, var(--cngx-space-md, 1rem));border-block-end:var(--cngx-command-border-width, 1px) solid var(--cngx-command-border, var(--cngx-color-border, #e5e7eb))}.cngx-command-panel-input{flex:1 1 auto;min-inline-size:0;font:inherit;color:var(--cngx-command-input-color, inherit);background:transparent;border:0;outline:none}.cngx-command-panel-input::placeholder{color:var(--cngx-command-placeholder-color, var(--cngx-color-muted-foreground, #9ca3af))}.cngx-command-scope-chip{display:inline-flex;align-items:center;min-block-size:var(--cngx-target-min, 0px);padding-inline:var(--cngx-command-chip-pad, var(--cngx-space-sm, .5rem));border-radius:var(--cngx-command-chip-radius, var(--cngx-radius-sm, .25rem));background:var(--cngx-command-chip-bg, var(--cngx-color-muted, #f3f4f6));color:var(--cngx-command-chip-color, inherit);font-size:var(--cngx-command-chip-size, .8125rem)}.cngx-command-panel-listbox{display:block;max-block-size:var(--cngx-command-listbox-max-h, 22rem);overflow-y:auto;padding:var(--cngx-command-listbox-pad, var(--cngx-space-xs, .25rem))}.cngx-command-group-header{padding-block:var(--cngx-command-header-pad-y, var(--cngx-space-xs, .25rem));padding-inline:var(--cngx-command-header-pad-x, var(--cngx-space-sm, .5rem));font-size:var(--cngx-command-header-size, .75rem);font-weight:var(--cngx-command-header-weight, 600);color:var(--cngx-command-header-color, var(--cngx-color-muted-foreground, #6b7280));text-transform:uppercase;letter-spacing:.04em}.cngx-command-row{display:flex;align-items:center;gap:var(--cngx-command-row-gap, var(--cngx-space-sm, .5rem));min-block-size:var(--cngx-target-min, 0px);padding:var(--cngx-command-row-pad, var(--cngx-space-sm, .5rem));border-radius:var(--cngx-command-row-radius, var(--cngx-radius-sm, .25rem));cursor:pointer;color:var(--cngx-command-row-color, inherit)}.cngx-command-row.cngx-option--highlighted{background:var(--cngx-command-row-active-bg, var(--cngx-color-
|
|
602
|
+
`, isInline: true, styles: [".cngx-command-panel{display:block;--cngx-command-input-gap: var(--cngx-space-sm, .5rem);--cngx-command-input-pad: var(--cngx-space-md, 1rem);--cngx-command-row-gap: var(--cngx-space-sm, .5rem);--cngx-command-row-pad: var(--cngx-space-sm, .5rem);--cngx-command-listbox-pad: var(--cngx-space-xs, .25rem);--cngx-command-chip-pad: var(--cngx-space-sm, .5rem)}.cngx-command-panel-input-row{display:flex;align-items:center;gap:var(--cngx-command-input-gap, var(--cngx-space-sm, .5rem));padding:var(--cngx-command-input-pad, var(--cngx-space-md, 1rem));border-block-end:var(--cngx-command-border-width, 1px) solid var(--cngx-command-border, var(--cngx-color-border, #e5e7eb))}.cngx-command-panel-input{flex:1 1 auto;min-inline-size:0;font:inherit;color:var(--cngx-command-input-color, inherit);background:transparent;border:0;outline:none}.cngx-command-panel-input::placeholder{color:var(--cngx-command-placeholder-color, var(--cngx-color-muted-foreground, #9ca3af))}.cngx-command-scope-chip{display:inline-flex;align-items:center;min-block-size:var(--cngx-target-min, 0px);padding-inline:var(--cngx-command-chip-pad, var(--cngx-space-sm, .5rem));border-radius:var(--cngx-command-chip-radius, var(--cngx-radius-sm, .25rem));background:var(--cngx-command-chip-bg, var(--cngx-color-muted, #f3f4f6));color:var(--cngx-command-chip-color, inherit);font-size:var(--cngx-command-chip-size, .8125rem)}.cngx-command-panel-listbox{display:block;max-block-size:var(--cngx-command-listbox-max-h, 22rem);overflow-y:auto;padding:var(--cngx-command-listbox-pad, var(--cngx-space-xs, .25rem))}.cngx-command-group-header{padding-block:var(--cngx-command-header-pad-y, var(--cngx-space-xs, .25rem));padding-inline:var(--cngx-command-header-pad-x, var(--cngx-space-sm, .5rem));font-size:var(--cngx-command-header-size, .75rem);font-weight:var(--cngx-command-header-weight, 600);color:var(--cngx-command-header-color, var(--cngx-color-muted-foreground, #6b7280));text-transform:uppercase;letter-spacing:.04em}.cngx-command-row{display:flex;align-items:center;gap:var(--cngx-command-row-gap, var(--cngx-space-sm, .5rem));min-block-size:var(--cngx-target-min, 0px);padding:var(--cngx-command-row-pad, var(--cngx-space-sm, .5rem));border-radius:var(--cngx-command-row-radius, var(--cngx-radius-sm, .25rem));cursor:pointer;color:var(--cngx-command-row-color, inherit)}.cngx-command-row.cngx-option--highlighted{background:var( --cngx-command-row-active-bg, color-mix(in oklch, var(--cngx-color-primary, oklch(.66 .19 50)) 10%, transparent) );color:var(--cngx-command-row-active-color, inherit)}.cngx-command-row.cngx-option--disabled{cursor:not-allowed;color:color-mix(in oklab,var(--cngx-color-text, oklch(.2 .01 250)) 38%,transparent)}@media(forced-colors:active){.cngx-command-row.cngx-option--highlighted{background:Highlight;color:HighlightText;forced-color-adjust:none}.cngx-command-row.cngx-option--highlighted :is(mark,kbd){background:transparent;color:inherit;border-color:currentColor}.cngx-command-row.cngx-option--highlighted mark{text-decoration:underline}.cngx-command-row.cngx-option--disabled{color:GrayText}.cngx-command-row.cngx-option--disabled mark{background:transparent;color:inherit;text-decoration:underline}}.cngx-command-row-label mark{background:var(--cngx-command-mark-bg, var(--cngx-color-highlight, #fde68a));color:inherit}.cngx-command-panel-input:focus-visible,.cngx-command-row:focus-visible{outline:var(--cngx-command-focus-outline, 2px solid var(--cngx-color-focus, #2563eb));outline-offset:var(--cngx-command-focus-offset, 2px)}.cngx-sr-only{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}\n"], dependencies: [{ kind: "directive", type: CngxSearch, selector: "input[cngxSearch]", inputs: ["debounceMs"], outputs: ["searchChange"], exportAs: ["cngxSearch"] }, { kind: "directive", type: CngxListbox, selector: "[cngxListbox]", inputs: ["label", "value", "selectedValues", "multiple", "compareWith", "cngxSearchRef", "externalActivation", "disabled", "readonly", "explicitOptions"], outputs: ["valueChange", "selectedValuesChange", "disabledChange", "readonlyChange"], exportAs: ["cngxListbox"] }, { kind: "directive", type: CngxOption, selector: "[cngxOption]", inputs: ["value", "disabled", "label"], exportAs: ["cngxOption"] }, { kind: "directive", type: CngxHighlight, selector: "[cngxHighlight]", inputs: ["cngxHighlight", "highlightCaseSensitive"], exportAs: ["cngxHighlight"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
615
603
|
}
|
|
616
604
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxCommandPanel, decorators: [{
|
|
617
605
|
type: Component,
|
|
@@ -706,7 +694,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
706
694
|
}
|
|
707
695
|
|
|
708
696
|
<span class="cngx-sr-only" aria-live="polite">{{ countMessage() }}</span>
|
|
709
|
-
`, styles: [".cngx-command-panel{display:block;--cngx-command-input-gap: var(--cngx-space-sm, .5rem);--cngx-command-input-pad: var(--cngx-space-md, 1rem);--cngx-command-row-gap: var(--cngx-space-sm, .5rem);--cngx-command-row-pad: var(--cngx-space-sm, .5rem);--cngx-command-listbox-pad: var(--cngx-space-xs, .25rem);--cngx-command-chip-pad: var(--cngx-space-sm, .5rem)}.cngx-command-panel-input-row{display:flex;align-items:center;gap:var(--cngx-command-input-gap, var(--cngx-space-sm, .5rem));padding:var(--cngx-command-input-pad, var(--cngx-space-md, 1rem));border-block-end:var(--cngx-command-border-width, 1px) solid var(--cngx-command-border, var(--cngx-color-border, #e5e7eb))}.cngx-command-panel-input{flex:1 1 auto;min-inline-size:0;font:inherit;color:var(--cngx-command-input-color, inherit);background:transparent;border:0;outline:none}.cngx-command-panel-input::placeholder{color:var(--cngx-command-placeholder-color, var(--cngx-color-muted-foreground, #9ca3af))}.cngx-command-scope-chip{display:inline-flex;align-items:center;min-block-size:var(--cngx-target-min, 0px);padding-inline:var(--cngx-command-chip-pad, var(--cngx-space-sm, .5rem));border-radius:var(--cngx-command-chip-radius, var(--cngx-radius-sm, .25rem));background:var(--cngx-command-chip-bg, var(--cngx-color-muted, #f3f4f6));color:var(--cngx-command-chip-color, inherit);font-size:var(--cngx-command-chip-size, .8125rem)}.cngx-command-panel-listbox{display:block;max-block-size:var(--cngx-command-listbox-max-h, 22rem);overflow-y:auto;padding:var(--cngx-command-listbox-pad, var(--cngx-space-xs, .25rem))}.cngx-command-group-header{padding-block:var(--cngx-command-header-pad-y, var(--cngx-space-xs, .25rem));padding-inline:var(--cngx-command-header-pad-x, var(--cngx-space-sm, .5rem));font-size:var(--cngx-command-header-size, .75rem);font-weight:var(--cngx-command-header-weight, 600);color:var(--cngx-command-header-color, var(--cngx-color-muted-foreground, #6b7280));text-transform:uppercase;letter-spacing:.04em}.cngx-command-row{display:flex;align-items:center;gap:var(--cngx-command-row-gap, var(--cngx-space-sm, .5rem));min-block-size:var(--cngx-target-min, 0px);padding:var(--cngx-command-row-pad, var(--cngx-space-sm, .5rem));border-radius:var(--cngx-command-row-radius, var(--cngx-radius-sm, .25rem));cursor:pointer;color:var(--cngx-command-row-color, inherit)}.cngx-command-row.cngx-option--highlighted{background:var(--cngx-command-row-active-bg, var(--cngx-color-
|
|
697
|
+
`, styles: [".cngx-command-panel{display:block;--cngx-command-input-gap: var(--cngx-space-sm, .5rem);--cngx-command-input-pad: var(--cngx-space-md, 1rem);--cngx-command-row-gap: var(--cngx-space-sm, .5rem);--cngx-command-row-pad: var(--cngx-space-sm, .5rem);--cngx-command-listbox-pad: var(--cngx-space-xs, .25rem);--cngx-command-chip-pad: var(--cngx-space-sm, .5rem)}.cngx-command-panel-input-row{display:flex;align-items:center;gap:var(--cngx-command-input-gap, var(--cngx-space-sm, .5rem));padding:var(--cngx-command-input-pad, var(--cngx-space-md, 1rem));border-block-end:var(--cngx-command-border-width, 1px) solid var(--cngx-command-border, var(--cngx-color-border, #e5e7eb))}.cngx-command-panel-input{flex:1 1 auto;min-inline-size:0;font:inherit;color:var(--cngx-command-input-color, inherit);background:transparent;border:0;outline:none}.cngx-command-panel-input::placeholder{color:var(--cngx-command-placeholder-color, var(--cngx-color-muted-foreground, #9ca3af))}.cngx-command-scope-chip{display:inline-flex;align-items:center;min-block-size:var(--cngx-target-min, 0px);padding-inline:var(--cngx-command-chip-pad, var(--cngx-space-sm, .5rem));border-radius:var(--cngx-command-chip-radius, var(--cngx-radius-sm, .25rem));background:var(--cngx-command-chip-bg, var(--cngx-color-muted, #f3f4f6));color:var(--cngx-command-chip-color, inherit);font-size:var(--cngx-command-chip-size, .8125rem)}.cngx-command-panel-listbox{display:block;max-block-size:var(--cngx-command-listbox-max-h, 22rem);overflow-y:auto;padding:var(--cngx-command-listbox-pad, var(--cngx-space-xs, .25rem))}.cngx-command-group-header{padding-block:var(--cngx-command-header-pad-y, var(--cngx-space-xs, .25rem));padding-inline:var(--cngx-command-header-pad-x, var(--cngx-space-sm, .5rem));font-size:var(--cngx-command-header-size, .75rem);font-weight:var(--cngx-command-header-weight, 600);color:var(--cngx-command-header-color, var(--cngx-color-muted-foreground, #6b7280));text-transform:uppercase;letter-spacing:.04em}.cngx-command-row{display:flex;align-items:center;gap:var(--cngx-command-row-gap, var(--cngx-space-sm, .5rem));min-block-size:var(--cngx-target-min, 0px);padding:var(--cngx-command-row-pad, var(--cngx-space-sm, .5rem));border-radius:var(--cngx-command-row-radius, var(--cngx-radius-sm, .25rem));cursor:pointer;color:var(--cngx-command-row-color, inherit)}.cngx-command-row.cngx-option--highlighted{background:var( --cngx-command-row-active-bg, color-mix(in oklch, var(--cngx-color-primary, oklch(.66 .19 50)) 10%, transparent) );color:var(--cngx-command-row-active-color, inherit)}.cngx-command-row.cngx-option--disabled{cursor:not-allowed;color:color-mix(in oklab,var(--cngx-color-text, oklch(.2 .01 250)) 38%,transparent)}@media(forced-colors:active){.cngx-command-row.cngx-option--highlighted{background:Highlight;color:HighlightText;forced-color-adjust:none}.cngx-command-row.cngx-option--highlighted :is(mark,kbd){background:transparent;color:inherit;border-color:currentColor}.cngx-command-row.cngx-option--highlighted mark{text-decoration:underline}.cngx-command-row.cngx-option--disabled{color:GrayText}.cngx-command-row.cngx-option--disabled mark{background:transparent;color:inherit;text-decoration:underline}}.cngx-command-row-label mark{background:var(--cngx-command-mark-bg, var(--cngx-color-highlight, #fde68a));color:inherit}.cngx-command-panel-input:focus-visible,.cngx-command-row:focus-visible{outline:var(--cngx-command-focus-outline, 2px solid var(--cngx-color-focus, #2563eb));outline-offset:var(--cngx-command-focus-offset, 2px)}.cngx-sr-only{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}\n"] }]
|
|
710
698
|
}], ctorParameters: () => [], propDecorators: { results: [{ type: i0.Input, args: [{ isSignal: true, alias: "results", required: false }] }], scope: [{ type: i0.Input, args: [{ isSignal: true, alias: "scope", required: false }] }, { type: i0.Output, args: ["scopeChange"] }], debounceMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "debounceMs", required: false }] }], rowTpl: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowTpl", required: false }] }], groupHeaderTpl: [{ type: i0.Input, args: [{ isSignal: true, alias: "groupHeaderTpl", required: false }] }], emptyTpl: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyTpl", required: false }] }], listbox: [{ type: i0.ViewChild, args: [i0.forwardRef(() => CngxListbox), { isSignal: true }] }], search: [{ type: i0.ViewChild, args: [i0.forwardRef(() => CngxSearch), { isSignal: true }] }] } });
|
|
711
699
|
/** @internal Groups ranked results by their `group` key, preserving rank order. */
|
|
712
700
|
function groupRanked(ranked) {
|
|
@@ -904,8 +892,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
904
892
|
* </cngx-command-palette>
|
|
905
893
|
* ```
|
|
906
894
|
*
|
|
907
|
-
* @
|
|
908
|
-
* @since 0.1.0
|
|
895
|
+
* @since 0.3.0
|
|
909
896
|
*/
|
|
910
897
|
class CngxCommandRow {
|
|
911
898
|
templateRef = inject(TemplateRef);
|
|
@@ -922,8 +909,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
922
909
|
/**
|
|
923
910
|
* Overrides the default group header.
|
|
924
911
|
*
|
|
925
|
-
* @
|
|
926
|
-
* @since 0.1.0
|
|
912
|
+
* @since 0.3.0
|
|
927
913
|
*/
|
|
928
914
|
class CngxCommandGroupHeader {
|
|
929
915
|
templateRef = inject(TemplateRef);
|
|
@@ -940,8 +926,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
940
926
|
/**
|
|
941
927
|
* Overrides the default empty state.
|
|
942
928
|
*
|
|
943
|
-
* @
|
|
944
|
-
* @since 0.1.0
|
|
929
|
+
* @since 0.3.0
|
|
945
930
|
*/
|
|
946
931
|
class CngxCommandPaletteEmpty {
|
|
947
932
|
templateRef = inject(TemplateRef);
|
|
@@ -958,8 +943,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
958
943
|
/**
|
|
959
944
|
* Overrides the default first-load skeleton.
|
|
960
945
|
*
|
|
961
|
-
* @
|
|
962
|
-
* @since 0.1.0
|
|
946
|
+
* @since 0.3.0
|
|
963
947
|
*/
|
|
964
948
|
class CngxCommandPaletteLoading {
|
|
965
949
|
templateRef = inject(TemplateRef);
|
|
@@ -976,8 +960,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
976
960
|
/**
|
|
977
961
|
* Overrides the default error state. Wire `retry` to your reload path.
|
|
978
962
|
*
|
|
979
|
-
* @
|
|
980
|
-
* @since 0.1.0
|
|
963
|
+
* @since 0.3.0
|
|
981
964
|
*/
|
|
982
965
|
class CngxCommandPaletteError {
|
|
983
966
|
templateRef = inject(TemplateRef);
|
|
@@ -994,8 +977,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
994
977
|
/**
|
|
995
978
|
* Overrides the default keyboard-legend footer.
|
|
996
979
|
*
|
|
997
|
-
* @
|
|
998
|
-
* @since 0.1.0
|
|
980
|
+
* @since 0.3.0
|
|
999
981
|
*/
|
|
1000
982
|
class CngxCommandPaletteFooter {
|
|
1001
983
|
templateRef = inject(TemplateRef);
|
|
@@ -1019,8 +1001,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
1019
1001
|
* `isMac` defaults to platform detection; pass it explicitly for deterministic
|
|
1020
1002
|
* tests.
|
|
1021
1003
|
*
|
|
1022
|
-
* @
|
|
1023
|
-
* @since 0.1.0
|
|
1004
|
+
* @since 0.3.0
|
|
1024
1005
|
*/
|
|
1025
1006
|
function createPaletteKeybinding(combo, onOpen, isMac = detectMac()) {
|
|
1026
1007
|
// SSR: no document, no global listener - an inert handle keeps the
|
|
@@ -1043,8 +1024,7 @@ function createPaletteKeybinding(combo, onOpen, isMac = detectMac()) {
|
|
|
1043
1024
|
* palette. To only change the *combo*, prefer `withPaletteShortcut(...)` or the
|
|
1044
1025
|
* `[openShortcut]` input - this token is for replacing the whole listener.
|
|
1045
1026
|
*
|
|
1046
|
-
* @
|
|
1047
|
-
* @since 0.1.0
|
|
1027
|
+
* @since 0.3.0
|
|
1048
1028
|
*/
|
|
1049
1029
|
const CNGX_PALETTE_KEYBINDING_FACTORY = new InjectionToken('CNGX_PALETTE_KEYBINDING_FACTORY', { providedIn: 'root', factory: () => createPaletteKeybinding });
|
|
1050
1030
|
/** @internal Best-effort macOS detection; overridable via the `isMac` argument. */
|
|
@@ -1070,13 +1050,12 @@ function detectMac() {
|
|
|
1070
1050
|
* <button [cngxCommandPaletteTrigger]="palette">Search commands</button>
|
|
1071
1051
|
* ```
|
|
1072
1052
|
*
|
|
1073
|
-
* @category ui/command-palette
|
|
1074
|
-
* @docsKind primary
|
|
1075
1053
|
* @wcag AA
|
|
1076
1054
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/command-palette/palette/command-palette.component.ts
|
|
1077
1055
|
* @selector cngx-command-palette
|
|
1078
|
-
* @since 0.
|
|
1056
|
+
* @since 0.3.0
|
|
1079
1057
|
* @relatedTo CngxCommandPaletteTrigger, provideCommands, CngxDialog
|
|
1058
|
+
* @axis level organism
|
|
1080
1059
|
*/
|
|
1081
1060
|
class CngxCommandPalette {
|
|
1082
1061
|
/** Consumer-derived async result source. */
|
|
@@ -1180,7 +1159,7 @@ class CngxCommandPalette {
|
|
|
1180
1159
|
}
|
|
1181
1160
|
</footer>
|
|
1182
1161
|
</dialog>
|
|
1183
|
-
`, isInline: true, styles: [".cngx-command-palette{--cngx-command-footer-gap: var(--cngx-space-md, 1rem);--cngx-command-footer-pad-y: var(--cngx-space-sm, .5rem);--cngx-command-footer-pad-x: var(--cngx-space-md, 1rem);--cngx-command-state-pad: var(--cngx-space-lg, 1.5rem)
|
|
1162
|
+
`, isInline: true, styles: [".cngx-command-palette{--cngx-command-footer-gap: var(--cngx-space-md, 1rem);--cngx-command-footer-pad-y: var(--cngx-space-sm, .5rem);--cngx-command-footer-pad-x: var(--cngx-space-md, 1rem);--cngx-command-state-pad: var(--cngx-space-lg, 1.5rem);--cngx-dialog-max-width: 100%;padding:0;inline-size:var(--cngx-command-width, min(40rem, calc(100vw - 2rem) ));max-block-size:var(--cngx-command-max-h, min(32rem, calc(100vh - 6rem) ));overflow:hidden;scrollbar-gutter:auto;border:var(--cngx-command-border-width, 1px) solid var(--cngx-command-border, var(--cngx-color-border, #e5e7eb));border-radius:var(--cngx-command-radius, var(--cngx-radius-lg, .75rem));background:var(--cngx-command-bg, var(--cngx-color-surface, #ffffff));color:var(--cngx-command-color, inherit);box-shadow:var(--cngx-command-shadow, 0 10px 40px rgb(0 0 0 / .2))}.cngx-command-palette[open]{display:flex;flex-direction:column}.cngx-command-palette::backdrop{background:var(--cngx-command-backdrop, rgb(0 0 0 / .4))}.cngx-command-state{padding:var(--cngx-command-state-pad, var(--cngx-space-lg, 1.5rem));text-align:center;color:var(--cngx-command-state-color, var(--cngx-color-muted-foreground, #6b7280))}.cngx-command-state--error{color:var(--cngx-command-error-color, var(--cngx-color-danger, #dc2626))}.cngx-command-state--error-banner{padding:var(--cngx-space-sm, .5rem) var(--cngx-space-md, 1rem);color:var(--cngx-command-error-color, var(--cngx-color-danger, #dc2626))}.cngx-command-retry{min-block-size:var(--cngx-target-min, 0px);margin-inline-start:var(--cngx-space-sm, .5rem);padding-inline:var(--cngx-space-md, 1rem);font:inherit;color:inherit;cursor:pointer;background:var(--cngx-command-retry-bg, transparent);border:1px solid currentColor;border-radius:var(--cngx-radius-sm, .25rem)}.cngx-command-retry:focus-visible{outline:var(--cngx-command-focus-outline, 2px solid var(--cngx-color-focus, #2563eb));outline-offset:2px}.cngx-command-footer{display:flex;flex-wrap:wrap;gap:var(--cngx-command-footer-gap, var(--cngx-space-md, 1rem));padding:var(--cngx-command-footer-pad-y, var(--cngx-space-sm, .5rem)) var(--cngx-command-footer-pad-x, var(--cngx-space-md, 1rem));border-block-start:var(--cngx-command-border-width, 1px) solid var(--cngx-command-border, var(--cngx-color-border, #e5e7eb));font-size:var(--cngx-command-footer-size, .75rem);color:var(--cngx-command-footer-color, var(--cngx-color-muted-foreground, #6b7280))}.cngx-command-legend{display:inline-flex;align-items:center;gap:var(--cngx-space-xs, .25rem)}.cngx-command-legend kbd{padding:.1em .4em;font-family:inherit;font-size:.9em;color:var(--cngx-command-kbd-color, inherit);background:var(--cngx-command-kbd-bg, var(--cngx-color-muted, #f3f4f6));border:1px solid var(--cngx-command-border, var(--cngx-color-border, #e5e7eb));border-radius:var(--cngx-radius-xs, .1875rem)}\n"], dependencies: [{ kind: "directive", type: CngxDialog, selector: "dialog[cngxDialog]", inputs: ["modal", "closeOnBackdropClick", "closeOnEscape", "autoFocus", "focusFallback", "state", "submitAction", "error"], exportAs: ["cngxDialog"] }, { kind: "component", type: CngxCommandPanelShell, selector: "cngx-command-panel-shell", inputs: ["results", "loadingTpl", "errorTpl"], outputs: ["retry"] }, { kind: "component", type: CngxCommandPanel, selector: "cngx-command-panel", inputs: ["results", "scope", "debounceMs", "rowTpl", "groupHeaderTpl", "emptyTpl"], outputs: ["scopeChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1184
1163
|
}
|
|
1185
1164
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxCommandPalette, decorators: [{
|
|
1186
1165
|
type: Component,
|
|
@@ -1222,7 +1201,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
1222
1201
|
}
|
|
1223
1202
|
</footer>
|
|
1224
1203
|
</dialog>
|
|
1225
|
-
`, styles: [".cngx-command-palette{--cngx-command-footer-gap: var(--cngx-space-md, 1rem);--cngx-command-footer-pad-y: var(--cngx-space-sm, .5rem);--cngx-command-footer-pad-x: var(--cngx-space-md, 1rem);--cngx-command-state-pad: var(--cngx-space-lg, 1.5rem)
|
|
1204
|
+
`, styles: [".cngx-command-palette{--cngx-command-footer-gap: var(--cngx-space-md, 1rem);--cngx-command-footer-pad-y: var(--cngx-space-sm, .5rem);--cngx-command-footer-pad-x: var(--cngx-space-md, 1rem);--cngx-command-state-pad: var(--cngx-space-lg, 1.5rem);--cngx-dialog-max-width: 100%;padding:0;inline-size:var(--cngx-command-width, min(40rem, calc(100vw - 2rem) ));max-block-size:var(--cngx-command-max-h, min(32rem, calc(100vh - 6rem) ));overflow:hidden;scrollbar-gutter:auto;border:var(--cngx-command-border-width, 1px) solid var(--cngx-command-border, var(--cngx-color-border, #e5e7eb));border-radius:var(--cngx-command-radius, var(--cngx-radius-lg, .75rem));background:var(--cngx-command-bg, var(--cngx-color-surface, #ffffff));color:var(--cngx-command-color, inherit);box-shadow:var(--cngx-command-shadow, 0 10px 40px rgb(0 0 0 / .2))}.cngx-command-palette[open]{display:flex;flex-direction:column}.cngx-command-palette::backdrop{background:var(--cngx-command-backdrop, rgb(0 0 0 / .4))}.cngx-command-state{padding:var(--cngx-command-state-pad, var(--cngx-space-lg, 1.5rem));text-align:center;color:var(--cngx-command-state-color, var(--cngx-color-muted-foreground, #6b7280))}.cngx-command-state--error{color:var(--cngx-command-error-color, var(--cngx-color-danger, #dc2626))}.cngx-command-state--error-banner{padding:var(--cngx-space-sm, .5rem) var(--cngx-space-md, 1rem);color:var(--cngx-command-error-color, var(--cngx-color-danger, #dc2626))}.cngx-command-retry{min-block-size:var(--cngx-target-min, 0px);margin-inline-start:var(--cngx-space-sm, .5rem);padding-inline:var(--cngx-space-md, 1rem);font:inherit;color:inherit;cursor:pointer;background:var(--cngx-command-retry-bg, transparent);border:1px solid currentColor;border-radius:var(--cngx-radius-sm, .25rem)}.cngx-command-retry:focus-visible{outline:var(--cngx-command-focus-outline, 2px solid var(--cngx-color-focus, #2563eb));outline-offset:2px}.cngx-command-footer{display:flex;flex-wrap:wrap;gap:var(--cngx-command-footer-gap, var(--cngx-space-md, 1rem));padding:var(--cngx-command-footer-pad-y, var(--cngx-space-sm, .5rem)) var(--cngx-command-footer-pad-x, var(--cngx-space-md, 1rem));border-block-start:var(--cngx-command-border-width, 1px) solid var(--cngx-command-border, var(--cngx-color-border, #e5e7eb));font-size:var(--cngx-command-footer-size, .75rem);color:var(--cngx-command-footer-color, var(--cngx-color-muted-foreground, #6b7280))}.cngx-command-legend{display:inline-flex;align-items:center;gap:var(--cngx-space-xs, .25rem)}.cngx-command-legend kbd{padding:.1em .4em;font-family:inherit;font-size:.9em;color:var(--cngx-command-kbd-color, inherit);background:var(--cngx-command-kbd-bg, var(--cngx-color-muted, #f3f4f6));border:1px solid var(--cngx-command-border, var(--cngx-color-border, #e5e7eb));border-radius:var(--cngx-radius-xs, .1875rem)}\n"] }]
|
|
1226
1205
|
}], ctorParameters: () => [], propDecorators: { results: [{ type: i0.Input, args: [{ isSignal: true, alias: "results", required: false }] }], scope: [{ type: i0.Input, args: [{ isSignal: true, alias: "scope", required: false }] }, { type: i0.Output, args: ["scopeChange"] }], debounceMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "debounceMs", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], openShortcut: [{ type: i0.Input, args: [{ isSignal: true, alias: "openShortcut", required: false }] }], retry: [{ type: i0.Output, args: ["retry"] }], rowSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxCommandRow), { isSignal: true }] }], groupHeaderSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxCommandGroupHeader), { isSignal: true }] }], emptySlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxCommandPaletteEmpty), { isSignal: true }] }], loadingSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxCommandPaletteLoading), { isSignal: true }] }], errorSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxCommandPaletteError), { isSignal: true }] }], footerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxCommandPaletteFooter), { isSignal: true }] }], dialog: [{ type: i0.ViewChild, args: [i0.forwardRef(() => CngxDialog), { isSignal: true }] }] } });
|
|
1227
1206
|
|
|
1228
1207
|
/**
|
|
@@ -1240,10 +1219,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
1240
1219
|
* <cngx-command-palette #palette />
|
|
1241
1220
|
* ```
|
|
1242
1221
|
*
|
|
1243
|
-
* @category ui/command-palette
|
|
1244
1222
|
* @wcag AA
|
|
1245
1223
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/command-palette/palette/command-palette-trigger.directive.ts
|
|
1246
|
-
* @since 0.
|
|
1224
|
+
* @since 0.3.0
|
|
1247
1225
|
* @relatedTo CngxCommandPalette
|
|
1248
1226
|
*/
|
|
1249
1227
|
class CngxCommandPaletteTrigger {
|
|
@@ -1270,12 +1248,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
1270
1248
|
}], propDecorators: { palette: [{ type: i0.Input, args: [{ isSignal: true, alias: "cngxCommandPaletteTrigger", required: true }] }] } });
|
|
1271
1249
|
|
|
1272
1250
|
/**
|
|
1273
|
-
* @module
|
|
1251
|
+
* @module `@cngx/ui/command-palette`
|
|
1274
1252
|
*/
|
|
1275
1253
|
|
|
1276
1254
|
/**
|
|
1277
1255
|
* Generated bundle index. Do not edit.
|
|
1278
1256
|
*/
|
|
1279
1257
|
|
|
1280
|
-
export { CNGX_COMMAND_PALETTE_CONFIG, CNGX_COMMAND_PALETTE_HOST, CNGX_COMMAND_PALETTE_LANGUAGE_EN, CNGX_PALETTE_KEYBINDING_FACTORY, CngxCommandGroupHeader, CngxCommandPalette, CngxCommandPaletteEmpty, CngxCommandPaletteError, CngxCommandPaletteFooter, CngxCommandPaletteLoading, CngxCommandPaletteTrigger, CngxCommandRow, createPaletteKeybinding, injectCommandPaletteConfig, provideCommandPaletteConfig, provideCommandPaletteConfigAt, withCommandPaletteLabels, withCommandPaletteTemplates, withKeyboardLegend, withPaletteShortcut, withResultCountFormatter };
|
|
1258
|
+
export { CNGX_COMMAND_PALETTE_CONFIG, CNGX_COMMAND_PALETTE_HOST, CNGX_COMMAND_PALETTE_LANGUAGE_EN, CNGX_PALETTE_KEYBINDING_FACTORY, CngxCommandGroupHeader, CngxCommandPalette, CngxCommandPaletteEmpty, CngxCommandPaletteError, CngxCommandPaletteFooter, CngxCommandPaletteLoading, CngxCommandPaletteTrigger, CngxCommandRow, DEFAULT_COMMAND_PALETTE_CONFIG, createPaletteKeybinding, injectCommandPaletteConfig, provideCommandPaletteConfig, provideCommandPaletteConfigAt, withCommandPaletteLabels, withCommandPaletteTemplates, withKeyboardLegend, withPaletteShortcut, withResultCountFormatter };
|
|
1281
1259
|
//# sourceMappingURL=cngx-ui-command-palette.mjs.map
|