@nanahoshi/mona-ui 0.24.6 → 0.24.8
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/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-check-box.mjs +14 -4
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-filter.mjs +233 -231
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-CD_ODHpU.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-DdyHnUIr.mjs} +24 -12
- package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-B6gq7Hu3.mjs +208 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-row.component-DdUY3I7P.mjs +1100 -0
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-Sa1aAtJ-.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-DG8Bu4Dy.mjs} +34 -21
- package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-BvUM9nPt.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-CVqpbMcb.mjs} +2565 -928
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +79 -11
- package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +20 -4
- package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +335 -45
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +565 -197
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +28 -2
- package/fesm2022/nanahoshi-mona-ui-list-box.mjs +598 -208
- package/fesm2022/nanahoshi-mona-ui-list-view.mjs +193 -74
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +58 -11
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +62 -11
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +62 -11
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +69 -11
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +58 -11
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +62 -11
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +58 -11
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +58 -11
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +62 -11
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +78 -11
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +58 -11
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +58 -11
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +58 -11
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +367 -463
- package/fesm2022/nanahoshi-mona-ui-query.mjs +317 -122
- package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +205 -140
- package/i18n/catalogs/en-US.messages.json +64 -17
- package/locales/ar-sa/ar-sa.messages.json +58 -11
- package/locales/de-de/de-de.messages.json +58 -11
- package/locales/es-es/es-es.messages.json +58 -11
- package/locales/fr-fr/fr-fr.messages.json +58 -11
- package/locales/id-id/id-id.messages.json +58 -11
- package/locales/it-it/it-it.messages.json +58 -11
- package/locales/ja-jp/ja-jp.messages.json +58 -11
- package/locales/ko-kr/ko-kr.messages.json +58 -11
- package/locales/pt-br/pt-br.messages.json +58 -11
- package/locales/ru-ru/ru-ru.messages.json +58 -11
- package/locales/tr-tr/tr-tr.messages.json +58 -11
- package/locales/zh-cn/zh-cn.messages.json +58 -11
- package/locales/zh-tw/zh-tw.messages.json +58 -11
- package/package.json +1 -1
- package/types/nanahoshi-mona-ui-check-box.d.ts +11 -1
- package/types/nanahoshi-mona-ui-filter.d.ts +54 -32
- package/types/nanahoshi-mona-ui-grid.d.ts +359 -110
- package/types/nanahoshi-mona-ui-i18n.d.ts +97 -6
- package/types/nanahoshi-mona-ui-internal-filter-input.d.ts +14 -2
- package/types/nanahoshi-mona-ui-internal-list.d.ts +89 -10
- package/types/nanahoshi-mona-ui-internal-tree.d.ts +155 -40
- package/types/nanahoshi-mona-ui-internal.d.ts +10 -2
- package/types/nanahoshi-mona-ui-list-box.d.ts +148 -47
- package/types/nanahoshi-mona-ui-list-view.d.ts +111 -21
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +53 -6
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +53 -6
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +53 -6
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +53 -6
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +53 -6
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +53 -6
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +53 -6
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +53 -6
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +53 -6
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +53 -6
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +53 -6
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +53 -6
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +53 -6
- package/types/nanahoshi-mona-ui-pager.d.ts +159 -76
- package/types/nanahoshi-mona-ui-query.d.ts +45 -14
- package/types/nanahoshi-mona-ui-tree-view.d.ts +84 -40
- package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-0jN7I1jo.mjs +0 -176
- package/fesm2022/nanahoshi-mona-ui-grid-grid-row.component-BI_iE7pl.mjs +0 -946
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as CellEditEvent,
|
|
1
|
+
export { C as CellEditEvent, y as GRID_DEFAULT_MESSAGES, z as GridAddCommandDirective, A as GridAddEvent, B as GridCancelCommandDirective, D as GridCancelEvent, E as GridCellTemplateDirective, F as GridColumnComponent, H as GridColumnTitleTemplateDirective, I as GridCommandColumnComponent, J as GridComponent, K as GridContextMenuDirective, L as GridDetailTemplateDirective, M as GridEditCommandDirective, N as GridEditEvent, O as GridEditTemplateDirective, P as GridEditableDirective, Q as GridExportDirective, R as GridFilterableDirective, S as GridFooterTemplateDirective, T as GridGroupFooterTemplateDirective, U as GridGroupableDirective, V as GridHeaderTemplateDirective, W as GridNoDataTemplateDirective, X as GridRemoveCommandDirective, Y as GridRemoveEvent, Z as GridReorderableDirective, _ as GridResizableDirective, $ as GridRowReorderableDirective, a0 as GridSaveCommandDirective, a1 as GridSaveEvent, a2 as GridSelectableDirective, a3 as GridServerBindingDirective, a4 as GridSortableDirective, a5 as GridStatePersistenceDirective, a6 as GridToolbarTemplateDirective, a7 as GridVirtualScrollDirective, a8 as RowEditEvent, a9 as RowReorderEvent } from './nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-CVqpbMcb.mjs';
|
|
2
2
|
//# sourceMappingURL=nanahoshi-mona-ui-grid.mjs.map
|
|
@@ -220,34 +220,57 @@ const MONA_MESSAGE_PARAMETERS = {
|
|
|
220
220
|
isNull: null,
|
|
221
221
|
isNullOrEmpty: null,
|
|
222
222
|
isTrue: null,
|
|
223
|
+
logic: null,
|
|
224
|
+
operator: null,
|
|
223
225
|
or: null,
|
|
224
|
-
|
|
226
|
+
secondOperator: null,
|
|
227
|
+
secondValue: null,
|
|
228
|
+
startsWith: null,
|
|
229
|
+
value: null
|
|
225
230
|
},
|
|
226
231
|
grid: {
|
|
227
232
|
all: null,
|
|
228
233
|
apply: null,
|
|
229
234
|
cancel: null,
|
|
230
|
-
|
|
235
|
+
cancelNewRow: null,
|
|
236
|
+
cancelRowEdit: [{ name: "rowNumber", type: "number" }],
|
|
237
|
+
clearFilter: [{ name: "column", type: "string" }],
|
|
238
|
+
collapseDetail: [{ name: "rowNumber", type: "number" }],
|
|
239
|
+
columnGrouped: [{ name: "column", type: "string" }],
|
|
240
|
+
columnMoved: [
|
|
241
|
+
{ name: "column", type: "string" },
|
|
242
|
+
{ name: "position", type: "number" }
|
|
243
|
+
],
|
|
231
244
|
columns: null,
|
|
232
245
|
columnsSelected: [{ name: "count", type: "number" }],
|
|
246
|
+
commandColumnTitle: null,
|
|
233
247
|
delete: null,
|
|
234
|
-
deleteRowConfirmation:
|
|
248
|
+
deleteRowConfirmation: [{ name: "rowNumber", type: "number" }],
|
|
235
249
|
deleteRowTitle: null,
|
|
250
|
+
details: null,
|
|
236
251
|
dragColumnHeaderToGroup: null,
|
|
237
252
|
edit: null,
|
|
238
|
-
editRow:
|
|
253
|
+
editRow: [{ name: "rowNumber", type: "number" }],
|
|
254
|
+
expandDetail: [{ name: "rowNumber", type: "number" }],
|
|
239
255
|
fieldValidationError: null,
|
|
240
256
|
filterByColumn: [{ name: "column", type: "string" }],
|
|
257
|
+
filterByColumnFiltered: [{ name: "column", type: "string" }],
|
|
258
|
+
filterOperator: [
|
|
259
|
+
{ name: "column", type: "string" },
|
|
260
|
+
{ name: "operator", type: "string" }
|
|
261
|
+
],
|
|
241
262
|
filterPlaceholder: null,
|
|
263
|
+
group: null,
|
|
264
|
+
loading: null,
|
|
242
265
|
modified: null,
|
|
243
266
|
moveAsNext: null,
|
|
244
267
|
moveAsPrevious: null,
|
|
245
268
|
moveRow: null,
|
|
246
269
|
noData: null,
|
|
247
270
|
remove: null,
|
|
248
|
-
removeRow:
|
|
271
|
+
removeRow: [{ name: "rowNumber", type: "number" }],
|
|
249
272
|
reorderRow: [{ name: "rowNumber", type: "number" }],
|
|
250
|
-
resizeColumn:
|
|
273
|
+
resizeColumn: [{ name: "column", type: "string" }],
|
|
251
274
|
rowReorder: null,
|
|
252
275
|
rowReorderDisabled: null,
|
|
253
276
|
rowReorderDisabledEditing: null,
|
|
@@ -269,23 +292,44 @@ const MONA_MESSAGE_PARAMETERS = {
|
|
|
269
292
|
],
|
|
270
293
|
rowValidationError: null,
|
|
271
294
|
save: null,
|
|
272
|
-
|
|
295
|
+
saveNewRow: null,
|
|
296
|
+
saveRow: [{ name: "rowNumber", type: "number" }],
|
|
273
297
|
selectAllRows: null,
|
|
274
|
-
selectRow: [{ name: "rowNumber", type: "number" }]
|
|
298
|
+
selectRow: [{ name: "rowNumber", type: "number" }],
|
|
299
|
+
sortOrder: [{ name: "position", type: "number" }],
|
|
300
|
+
toolbar: null
|
|
275
301
|
},
|
|
276
302
|
list: {
|
|
277
303
|
filterList: null,
|
|
278
|
-
|
|
304
|
+
loading: null,
|
|
305
|
+
noData: null,
|
|
306
|
+
pagerLabel: [{ name: "list", type: "string" }]
|
|
279
307
|
},
|
|
280
308
|
listBox: {
|
|
281
309
|
clearSelection: null,
|
|
310
|
+
itemsMoved: [
|
|
311
|
+
{ name: "position", type: "number" },
|
|
312
|
+
{ name: "total", type: "number" }
|
|
313
|
+
],
|
|
314
|
+
itemsRemoved: [{ name: "count", type: "number" }],
|
|
315
|
+
itemsTransferred: [
|
|
316
|
+
{ name: "count", type: "number" },
|
|
317
|
+
{ name: "list", type: "string" }
|
|
318
|
+
],
|
|
319
|
+
itemsTransferredToOtherList: [{ name: "count", type: "number" }],
|
|
282
320
|
moveDown: null,
|
|
283
321
|
moveUp: null,
|
|
284
322
|
remove: null,
|
|
323
|
+
selectionCleared: null,
|
|
324
|
+
toolbarLabel: [{ name: "list", type: "string" }],
|
|
285
325
|
transferAllFrom: null,
|
|
326
|
+
transferAllFromList: [{ name: "list", type: "string" }],
|
|
286
327
|
transferAllTo: null,
|
|
328
|
+
transferAllToList: [{ name: "list", type: "string" }],
|
|
287
329
|
transferFrom: null,
|
|
288
|
-
|
|
330
|
+
transferFromList: [{ name: "list", type: "string" }],
|
|
331
|
+
transferTo: null,
|
|
332
|
+
transferToList: [{ name: "list", type: "string" }]
|
|
289
333
|
},
|
|
290
334
|
multiSelect: {
|
|
291
335
|
clear: null,
|
|
@@ -308,18 +352,23 @@ const MONA_MESSAGE_PARAMETERS = {
|
|
|
308
352
|
},
|
|
309
353
|
pager: {
|
|
310
354
|
firstPageLabel: null,
|
|
355
|
+
itemsPerPageLabel: null,
|
|
311
356
|
jumpBackwardLabel: [{ name: "pages", type: "number" }],
|
|
312
357
|
jumpForwardLabel: [{ name: "pages", type: "number" }],
|
|
313
358
|
lastPageLabel: null,
|
|
314
359
|
nextPageLabel: null,
|
|
315
360
|
ofText: null,
|
|
361
|
+
pageInputPrefix: [{ name: "totalPages", type: "number" }],
|
|
362
|
+
pageInputSuffix: [{ name: "totalPages", type: "number" }],
|
|
316
363
|
pageLabel: [{ name: "page", type: "number" }],
|
|
364
|
+
pageSelectLabel: null,
|
|
317
365
|
pageSizeLabel: [{ name: "pageSize", type: "number" }],
|
|
318
366
|
pageStatus: [
|
|
319
367
|
{ name: "page", type: "number" },
|
|
320
368
|
{ name: "totalPages", type: "number" }
|
|
321
369
|
],
|
|
322
370
|
pageText: null,
|
|
371
|
+
pagerLabel: null,
|
|
323
372
|
previousPageLabel: null,
|
|
324
373
|
rangeStatus: [
|
|
325
374
|
{ name: "start", type: "number" },
|
|
@@ -404,7 +453,26 @@ const MONA_MESSAGE_PARAMETERS = {
|
|
|
404
453
|
collapse: null,
|
|
405
454
|
expand: null,
|
|
406
455
|
filter: null,
|
|
407
|
-
|
|
456
|
+
filterLabel: [{ name: "tree", type: "string" }],
|
|
457
|
+
filterTree: null,
|
|
458
|
+
loadError: [{ name: "node", type: "string" }],
|
|
459
|
+
loadingNode: [{ name: "node", type: "string" }],
|
|
460
|
+
movedAfter: [
|
|
461
|
+
{ name: "node", type: "string" },
|
|
462
|
+
{ name: "target", type: "string" }
|
|
463
|
+
],
|
|
464
|
+
movedBefore: [
|
|
465
|
+
{ name: "node", type: "string" },
|
|
466
|
+
{ name: "target", type: "string" }
|
|
467
|
+
],
|
|
468
|
+
movedInto: [
|
|
469
|
+
{ name: "node", type: "string" },
|
|
470
|
+
{ name: "target", type: "string" }
|
|
471
|
+
],
|
|
472
|
+
noData: null,
|
|
473
|
+
noMatches: null,
|
|
474
|
+
results: [{ name: "count", type: "number" }],
|
|
475
|
+
retryLoading: [{ name: "node", type: "string" }]
|
|
408
476
|
},
|
|
409
477
|
window: {
|
|
410
478
|
close: null,
|
|
@@ -25,7 +25,7 @@ class FilterInputComponent {
|
|
|
25
25
|
const controls = this.controls();
|
|
26
26
|
const ariaLabel = this.ariaLabel() || null;
|
|
27
27
|
if (!controls) {
|
|
28
|
-
return { "aria-label": ariaLabel };
|
|
28
|
+
return { "aria-label": ariaLabel, "aria-controls": this.ariaControls() || null };
|
|
29
29
|
}
|
|
30
30
|
return {
|
|
31
31
|
role: "combobox",
|
|
@@ -43,12 +43,26 @@ class FilterInputComponent {
|
|
|
43
43
|
*/
|
|
44
44
|
this.activeDescendant = input("", /* @ts-ignore */
|
|
45
45
|
...(ngDevMode ? [{ debugName: "activeDescendant" }] : /* istanbul ignore next */ []));
|
|
46
|
+
/**
|
|
47
|
+
* @description Id of the element this input filters, exposed as `aria-controls`. Unlike `controls`, the input
|
|
48
|
+
* stays a text box: focus moves to the filtered element to navigate it.
|
|
49
|
+
* @default ""
|
|
50
|
+
*/
|
|
51
|
+
this.ariaControls = input("", /* @ts-ignore */
|
|
52
|
+
...(ngDevMode ? [{ debugName: "ariaControls" }] : /* istanbul ignore next */ []));
|
|
46
53
|
/**
|
|
47
54
|
* @description Accessible name of the input. The placeholder is not a reliable label, so set this whenever possible.
|
|
48
55
|
* @default ""
|
|
49
56
|
*/
|
|
50
57
|
this.ariaLabel = input("", /* @ts-ignore */
|
|
51
58
|
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
59
|
+
/**
|
|
60
|
+
* @description Focuses the input when it renders, as a popup's filter does. Turn it off for an input that is part
|
|
61
|
+
* of the page, so it doesn't take focus on load.
|
|
62
|
+
* @default true
|
|
63
|
+
*/
|
|
64
|
+
this.autoFocus = input(true, /* @ts-ignore */
|
|
65
|
+
...(ngDevMode ? [{ debugName: "autoFocus" }] : /* istanbul ignore next */ []));
|
|
52
66
|
/**
|
|
53
67
|
* @description Id of the list this input filters. When set, the input is exposed as a combobox controlling it.
|
|
54
68
|
* @default ""
|
|
@@ -73,7 +87,9 @@ class FilterInputComponent {
|
|
|
73
87
|
afterNextRender({
|
|
74
88
|
read: () => {
|
|
75
89
|
const input = this.#hostElementRef.nativeElement.querySelector("input");
|
|
76
|
-
|
|
90
|
+
if (this.autoFocus()) {
|
|
91
|
+
input.focus();
|
|
92
|
+
}
|
|
77
93
|
fromEvent(input, "keydown")
|
|
78
94
|
.pipe(takeUntilDestroyed(this.#destroyRef))
|
|
79
95
|
.subscribe((event) => {
|
|
@@ -109,12 +125,12 @@ class FilterInputComponent {
|
|
|
109
125
|
});
|
|
110
126
|
}
|
|
111
127
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: FilterInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
112
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.6", type: FilterInputComponent, isStandalone: true, selector: "mona-filter-input", inputs: { activeDescendant: { classPropertyName: "activeDescendant", publicName: "activeDescendant", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, controls: { classPropertyName: "controls", publicName: "controls", isSignal: true, isRequired: false, transformFunction: null }, debounce: { classPropertyName: "debounce", publicName: "debounce", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { filterChange: "filterChange", inputBlur: "inputBlur", inputFocus: "inputFocus" }, ngImport: i0, template: "<mona-text-box\n [ngModel]=\"filterText()\"\n [clearButton]=\"true\"\n [placeholder]=\"placeholder()\"\n (inputFocus)=\"inputFocus.emit($event)\"\n (inputBlur)=\"inputBlur.emit($event)\"\n [inputAttributes]=\"inputAttributes()\"\n [size]=\"size()\"\n class=\"outline-none shadow-none focus-within:ring-1 focus-within:ring-primary/40\"\n (ngModelChange)=\"filter$.next($event)\">\n <ng-template monaTextBoxPrefixTemplate>\n <div class=\"h-full flex items-center justify-center ps-2\">\n <svg lucideSearch [size]=\"16\" aria-hidden=\"true\"></svg>\n </div>\n </ng-template>\n</mona-text-box>\n", dependencies: [{ kind: "component", type: LucideSearch, selector: "svg[lucideSearch]" }, { kind: "component", type: TextBoxComponent, selector: "mona-text-box", inputs: ["aria-describedby", "aria-label", "aria-labelledby", "clearButton", "disabled", "inputAttributes", "inputClass", "inputId", "inputStyle", "invalid", "maxLength", "minLength", "name", "placeholder", "readonly", "required", "rounded", "size", "touched", "type", "class", "value"], outputs: ["inputBlur", "inputFocus", "touch", "valueChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: TextBoxPrefixTemplateDirective, selector: "ng-template[monaTextBoxPrefixTemplate]" }] }); }
|
|
128
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.6", type: FilterInputComponent, isStandalone: true, selector: "mona-filter-input", inputs: { activeDescendant: { classPropertyName: "activeDescendant", publicName: "activeDescendant", isSignal: true, isRequired: false, transformFunction: null }, ariaControls: { classPropertyName: "ariaControls", publicName: "ariaControls", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, autoFocus: { classPropertyName: "autoFocus", publicName: "autoFocus", isSignal: true, isRequired: false, transformFunction: null }, controls: { classPropertyName: "controls", publicName: "controls", isSignal: true, isRequired: false, transformFunction: null }, debounce: { classPropertyName: "debounce", publicName: "debounce", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { filterChange: "filterChange", inputBlur: "inputBlur", inputFocus: "inputFocus" }, ngImport: i0, template: "<mona-text-box\n [ngModel]=\"filterText()\"\n [clearButton]=\"true\"\n [placeholder]=\"placeholder()\"\n (inputFocus)=\"inputFocus.emit($event)\"\n (inputBlur)=\"inputBlur.emit($event)\"\n [inputAttributes]=\"inputAttributes()\"\n [size]=\"size()\"\n class=\"outline-none shadow-none focus-within:ring-1 focus-within:ring-primary/40\"\n (ngModelChange)=\"filter$.next($event)\">\n <ng-template monaTextBoxPrefixTemplate>\n <div class=\"h-full flex items-center justify-center ps-2\">\n <svg lucideSearch [size]=\"16\" aria-hidden=\"true\"></svg>\n </div>\n </ng-template>\n</mona-text-box>\n", dependencies: [{ kind: "component", type: LucideSearch, selector: "svg[lucideSearch]" }, { kind: "component", type: TextBoxComponent, selector: "mona-text-box", inputs: ["aria-describedby", "aria-label", "aria-labelledby", "clearButton", "disabled", "inputAttributes", "inputClass", "inputId", "inputStyle", "invalid", "maxLength", "minLength", "name", "placeholder", "readonly", "required", "rounded", "size", "touched", "type", "class", "value"], outputs: ["inputBlur", "inputFocus", "touch", "valueChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: TextBoxPrefixTemplateDirective, selector: "ng-template[monaTextBoxPrefixTemplate]" }] }); }
|
|
113
129
|
}
|
|
114
130
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: FilterInputComponent, decorators: [{
|
|
115
131
|
type: Component,
|
|
116
132
|
args: [{ selector: "mona-filter-input", imports: [LucideSearch, TextBoxComponent, FormsModule, TextBoxPrefixTemplateDirective], template: "<mona-text-box\n [ngModel]=\"filterText()\"\n [clearButton]=\"true\"\n [placeholder]=\"placeholder()\"\n (inputFocus)=\"inputFocus.emit($event)\"\n (inputBlur)=\"inputBlur.emit($event)\"\n [inputAttributes]=\"inputAttributes()\"\n [size]=\"size()\"\n class=\"outline-none shadow-none focus-within:ring-1 focus-within:ring-primary/40\"\n (ngModelChange)=\"filter$.next($event)\">\n <ng-template monaTextBoxPrefixTemplate>\n <div class=\"h-full flex items-center justify-center ps-2\">\n <svg lucideSearch [size]=\"16\" aria-hidden=\"true\"></svg>\n </div>\n </ng-template>\n</mona-text-box>\n" }]
|
|
117
|
-
}], ctorParameters: () => [], propDecorators: { activeDescendant: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeDescendant", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], controls: [{ type: i0.Input, args: [{ isSignal: true, alias: "controls", required: false }] }], debounce: [{ type: i0.Input, args: [{ isSignal: true, alias: "debounce", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }], filterChange: [{ type: i0.Output, args: ["filterChange"] }], inputBlur: [{ type: i0.Output, args: ["inputBlur"] }], inputFocus: [{ type: i0.Output, args: ["inputFocus"] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
|
|
133
|
+
}], ctorParameters: () => [], propDecorators: { activeDescendant: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeDescendant", required: false }] }], ariaControls: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaControls", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], autoFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoFocus", required: false }] }], controls: [{ type: i0.Input, args: [{ isSignal: true, alias: "controls", required: false }] }], debounce: [{ type: i0.Input, args: [{ isSignal: true, alias: "debounce", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }], filterChange: [{ type: i0.Output, args: ["filterChange"] }], inputBlur: [{ type: i0.Output, args: ["inputBlur"] }], inputFocus: [{ type: i0.Output, args: ["inputFocus"] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
|
|
118
134
|
|
|
119
135
|
/*
|
|
120
136
|
* Public API Surface of @nanahoshi/mona-ui/filter-input
|