@ngstarter-ui/components 22.2.4 → 22.2.5
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/ai/component-registry.json +75 -8
- package/content-editor/BLOCK_FORMAT.md +38 -0
- package/data-view/API.md +262 -0
- package/fesm2022/ngstarter-ui-components-button.mjs +2 -2
- package/fesm2022/ngstarter-ui-components-button.mjs.map +1 -1
- package/fesm2022/{ngstarter-ui-components-content-editor-attachment-block-rzZKJ2JH.mjs → ngstarter-ui-components-content-editor-attachment-block-DZqyCrEK.mjs} +2 -2
- package/fesm2022/{ngstarter-ui-components-content-editor-attachment-block-rzZKJ2JH.mjs.map → ngstarter-ui-components-content-editor-attachment-block-DZqyCrEK.mjs.map} +1 -1
- package/fesm2022/{ngstarter-ui-components-content-editor-callout-block-DTdApN0r.mjs → ngstarter-ui-components-content-editor-callout-block-CyVPVMXi.mjs} +3 -3
- package/fesm2022/{ngstarter-ui-components-content-editor-callout-block-DTdApN0r.mjs.map → ngstarter-ui-components-content-editor-callout-block-CyVPVMXi.mjs.map} +1 -1
- package/fesm2022/{ngstarter-ui-components-content-editor-code-block.component-DpONkTMU.mjs → ngstarter-ui-components-content-editor-code-block.component-Qzsc08aS.mjs} +4 -4
- package/fesm2022/{ngstarter-ui-components-content-editor-code-block.component-DpONkTMU.mjs.map → ngstarter-ui-components-content-editor-code-block.component-Qzsc08aS.mjs.map} +1 -1
- package/fesm2022/{ngstarter-ui-components-content-editor-embed-block-CmhzpaRk.mjs → ngstarter-ui-components-content-editor-embed-block-9EHRGpW_.mjs} +2 -2
- package/fesm2022/{ngstarter-ui-components-content-editor-embed-block-CmhzpaRk.mjs.map → ngstarter-ui-components-content-editor-embed-block-9EHRGpW_.mjs.map} +1 -1
- package/fesm2022/{ngstarter-ui-components-content-editor-gallery-block-gtH7yWd5.mjs → ngstarter-ui-components-content-editor-gallery-block-CBuzrmSH.mjs} +4 -4
- package/fesm2022/{ngstarter-ui-components-content-editor-gallery-block-gtH7yWd5.mjs.map → ngstarter-ui-components-content-editor-gallery-block-CBuzrmSH.mjs.map} +1 -1
- package/fesm2022/{ngstarter-ui-components-content-editor-grid-block-Pb-xV7Pw.mjs → ngstarter-ui-components-content-editor-grid-block-Sy67i4mg.mjs} +5 -5
- package/fesm2022/{ngstarter-ui-components-content-editor-grid-block-Pb-xV7Pw.mjs.map → ngstarter-ui-components-content-editor-grid-block-Sy67i4mg.mjs.map} +1 -1
- package/fesm2022/{ngstarter-ui-components-content-editor-heading-block.component-BKe9Zy_x.mjs → ngstarter-ui-components-content-editor-heading-block.component-CnDuIpxQ.mjs} +8 -5
- package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-CnDuIpxQ.mjs.map +1 -0
- package/fesm2022/{ngstarter-ui-components-content-editor-image-block.component-DSpBVTu-.mjs → ngstarter-ui-components-content-editor-image-block.component-CqbgVnDh.mjs} +4 -4
- package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-CqbgVnDh.mjs.map +1 -0
- package/fesm2022/{ngstarter-ui-components-content-editor-list-block.component-BPKPE1uY.mjs → ngstarter-ui-components-content-editor-list-block.component-CHJr_pFf.mjs} +4 -4
- package/fesm2022/{ngstarter-ui-components-content-editor-list-block.component-BPKPE1uY.mjs.map → ngstarter-ui-components-content-editor-list-block.component-CHJr_pFf.mjs.map} +1 -1
- package/fesm2022/{ngstarter-ui-components-content-editor-nested-blocks-Dh-p3WMp.mjs → ngstarter-ui-components-content-editor-nested-blocks-fPnU42nP.mjs} +4 -4
- package/fesm2022/{ngstarter-ui-components-content-editor-nested-blocks-Dh-p3WMp.mjs.map → ngstarter-ui-components-content-editor-nested-blocks-fPnU42nP.mjs.map} +1 -1
- package/fesm2022/{ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CR-NrarE.mjs → ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-dGibIV4n.mjs} +93 -41
- package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-dGibIV4n.mjs.map +1 -0
- package/fesm2022/{ngstarter-ui-components-content-editor-paragraph-block.component-D5wS3m6O.mjs → ngstarter-ui-components-content-editor-paragraph-block.component-CqU1XJTo.mjs} +4 -4
- package/fesm2022/{ngstarter-ui-components-content-editor-paragraph-block.component-D5wS3m6O.mjs.map → ngstarter-ui-components-content-editor-paragraph-block.component-CqU1XJTo.mjs.map} +1 -1
- package/fesm2022/{ngstarter-ui-components-content-editor-quote-block.component-C3GFAGKF.mjs → ngstarter-ui-components-content-editor-quote-block.component-fAUfABVY.mjs} +4 -4
- package/fesm2022/{ngstarter-ui-components-content-editor-quote-block.component-C3GFAGKF.mjs.map → ngstarter-ui-components-content-editor-quote-block.component-fAUfABVY.mjs.map} +1 -1
- package/fesm2022/{ngstarter-ui-components-content-editor-table-block.component-DQgs_kyN.mjs → ngstarter-ui-components-content-editor-table-block.component-CqbnMNug.mjs} +4 -4
- package/fesm2022/{ngstarter-ui-components-content-editor-table-block.component-DQgs_kyN.mjs.map → ngstarter-ui-components-content-editor-table-block.component-CqbnMNug.mjs.map} +1 -1
- package/fesm2022/{ngstarter-ui-components-content-editor-toggle-block-Cb67ChE8.mjs → ngstarter-ui-components-content-editor-toggle-block-CHtnu1GQ.mjs} +3 -3
- package/fesm2022/{ngstarter-ui-components-content-editor-toggle-block-Cb67ChE8.mjs.map → ngstarter-ui-components-content-editor-toggle-block-CHtnu1GQ.mjs.map} +1 -1
- package/fesm2022/{ngstarter-ui-components-content-editor-video-block.component-CRa0g9Ez.mjs → ngstarter-ui-components-content-editor-video-block.component-DKcWb54Z.mjs} +2 -2
- package/fesm2022/{ngstarter-ui-components-content-editor-video-block.component-CRa0g9Ez.mjs.map → ngstarter-ui-components-content-editor-video-block.component-DKcWb54Z.mjs.map} +1 -1
- package/fesm2022/ngstarter-ui-components-content-editor.mjs +1 -1
- package/fesm2022/ngstarter-ui-components-core.mjs +46 -1
- package/fesm2022/ngstarter-ui-components-core.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-data-view.mjs +1011 -90
- package/fesm2022/ngstarter-ui-components-data-view.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-datepicker.mjs +45 -19
- package/fesm2022/ngstarter-ui-components-datepicker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-filter-builder.mjs +1 -1
- package/fesm2022/ngstarter-ui-components-filter-builder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-form-builder.mjs +1 -1
- package/fesm2022/ngstarter-ui-components-form-builder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-headless-editor.mjs +1 -1
- package/fesm2022/ngstarter-ui-components-headless-editor.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-image-designer.mjs +1 -1
- package/fesm2022/ngstarter-ui-components-image-designer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-kanban-board.mjs +1 -1
- package/fesm2022/ngstarter-ui-components-kanban-board.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-menu.mjs +17 -4
- package/fesm2022/ngstarter-ui-components-menu.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-pdf-builder.mjs +1 -1
- package/fesm2022/ngstarter-ui-components-pdf-builder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs +1 -1
- package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-phone-input.mjs +1 -1
- package/fesm2022/ngstarter-ui-components-phone-input.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-signature-pad.mjs +1 -1
- package/fesm2022/ngstarter-ui-components-signature-pad.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-sort.mjs +9 -2
- package/fesm2022/ngstarter-ui-components-sort.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-table.mjs +10 -0
- package/fesm2022/ngstarter-ui-components-table.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/_common.scss +2 -1
- package/styles/_tokens.scss +32 -1
- package/styles/themes/default.scss +1 -1
- package/types/ngstarter-ui-components-content-editor.d.ts +6 -1
- package/types/ngstarter-ui-components-core.d.ts +4 -1
- package/types/ngstarter-ui-components-data-view.d.ts +204 -11
- package/types/ngstarter-ui-components-datepicker.d.ts +3 -1
- package/types/ngstarter-ui-components-menu.d.ts +5 -1
- package/types/ngstarter-ui-components-sort.d.ts +1 -0
- package/types/ngstarter-ui-components-table.d.ts +2 -0
- package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-BKe9Zy_x.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-DSpBVTu-.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CR-NrarE.mjs.map +0 -1
|
@@ -2767,29 +2767,55 @@
|
|
|
2767
2767
|
"--ngs-carousel-gap",
|
|
2768
2768
|
"--ngs-color-black",
|
|
2769
2769
|
"--ngs-color-border",
|
|
2770
|
-
"--ngs-color-neutral-200",
|
|
2771
|
-
"--ngs-color-neutral-50",
|
|
2772
|
-
"--ngs-color-neutral-500",
|
|
2773
|
-
"--ngs-color-neutral-600",
|
|
2774
2770
|
"--ngs-color-on-primary",
|
|
2771
|
+
"--ngs-color-on-primary-container",
|
|
2775
2772
|
"--ngs-color-on-surface",
|
|
2776
2773
|
"--ngs-color-on-surface-variant",
|
|
2774
|
+
"--ngs-color-outline",
|
|
2777
2775
|
"--ngs-color-outline-variant",
|
|
2778
2776
|
"--ngs-color-primary",
|
|
2779
|
-
"--ngs-color-primary-100",
|
|
2780
2777
|
"--ngs-color-primary-300",
|
|
2781
2778
|
"--ngs-color-primary-400",
|
|
2779
|
+
"--ngs-color-primary-container",
|
|
2782
2780
|
"--ngs-color-surface",
|
|
2783
2781
|
"--ngs-color-surface-container",
|
|
2784
2782
|
"--ngs-color-surface-container-high",
|
|
2785
2783
|
"--ngs-color-surface-container-low",
|
|
2786
2784
|
"--ngs-color-white",
|
|
2785
|
+
"--ngs-content-editor-block-padding",
|
|
2786
|
+
"--ngs-content-editor-block-radius",
|
|
2787
|
+
"--ngs-content-editor-border",
|
|
2787
2788
|
"--ngs-content-editor-builder-content-width",
|
|
2789
|
+
"--ngs-content-editor-content-width",
|
|
2790
|
+
"--ngs-content-editor-control-size",
|
|
2791
|
+
"--ngs-content-editor-field-border",
|
|
2792
|
+
"--ngs-content-editor-font-size",
|
|
2793
|
+
"--ngs-content-editor-heading-1-size",
|
|
2794
|
+
"--ngs-content-editor-heading-2-size",
|
|
2795
|
+
"--ngs-content-editor-heading-3-size",
|
|
2796
|
+
"--ngs-content-editor-heading-4-size",
|
|
2797
|
+
"--ngs-content-editor-heading-5-size",
|
|
2798
|
+
"--ngs-content-editor-heading-6-size",
|
|
2799
|
+
"--ngs-content-editor-heading-line-height",
|
|
2800
|
+
"--ngs-content-editor-heading-weight",
|
|
2801
|
+
"--ngs-content-editor-hover-bg",
|
|
2802
|
+
"--ngs-content-editor-line-height",
|
|
2803
|
+
"--ngs-content-editor-muted-color",
|
|
2788
2804
|
"--ngs-content-editor-nested-controls-offset",
|
|
2805
|
+
"--ngs-content-editor-placeholder-color",
|
|
2789
2806
|
"--ngs-content-editor-renderer-block-gap",
|
|
2807
|
+
"--ngs-content-editor-selected-bg",
|
|
2808
|
+
"--ngs-content-editor-selected-color",
|
|
2809
|
+
"--ngs-content-editor-surface",
|
|
2810
|
+
"--ngs-content-editor-toolbar-bg",
|
|
2811
|
+
"--ngs-content-editor-toolbar-color",
|
|
2812
|
+
"--ngs-content-editor-toolbar-radius",
|
|
2813
|
+
"--ngs-control-radius",
|
|
2790
2814
|
"--ngs-expansion-panel-content-padding",
|
|
2815
|
+
"--ngs-font-size-md",
|
|
2791
2816
|
"--ngs-font-size-sm",
|
|
2792
2817
|
"--ngs-form-field-border-color",
|
|
2818
|
+
"--ngs-form-field-border-radius",
|
|
2793
2819
|
"--ngs-form-field-border-width",
|
|
2794
2820
|
"--ngs-form-field-container-min-height",
|
|
2795
2821
|
"--ngs-form-field-input-height",
|
|
@@ -2803,6 +2829,10 @@
|
|
|
2803
2829
|
"--ngs-shadow-lg",
|
|
2804
2830
|
"--ngs-shadow-sm",
|
|
2805
2831
|
"--ngs-state-focus-ring",
|
|
2832
|
+
"--ngs-state-hover-bg",
|
|
2833
|
+
"--ngs-upload-area-border",
|
|
2834
|
+
"--ngs-upload-area-border-radius",
|
|
2835
|
+
"--ngs-upload-area-color",
|
|
2806
2836
|
"--ngs-upload-area-padding"
|
|
2807
2837
|
],
|
|
2808
2838
|
"example": null
|
|
@@ -2896,6 +2926,7 @@
|
|
|
2896
2926
|
"Autofocusable",
|
|
2897
2927
|
"AUTOFOCUSABLE",
|
|
2898
2928
|
"AutoFocusDirective",
|
|
2929
|
+
"bindNgsOverlayTheme",
|
|
2899
2930
|
"DebounceTimeDirective",
|
|
2900
2931
|
"defaultRippleAnimationConfig",
|
|
2901
2932
|
"ENVIRONMENT",
|
|
@@ -3257,7 +3288,9 @@
|
|
|
3257
3288
|
"[ngsDataViewEmptyFilterResults]",
|
|
3258
3289
|
"ngs-data-view",
|
|
3259
3290
|
"ngs-data-view-action-bar",
|
|
3260
|
-
"ngs-data-view-column-
|
|
3291
|
+
"ngs-data-view-column-filter-dialog",
|
|
3292
|
+
"ngs-data-view-column-settings-dialog",
|
|
3293
|
+
"ngs-data-view-saved-view-dialog"
|
|
3261
3294
|
],
|
|
3262
3295
|
"exportedSymbols": [
|
|
3263
3296
|
"cellRenderer",
|
|
@@ -3273,28 +3306,51 @@
|
|
|
3273
3306
|
"DataViewCellRenderer",
|
|
3274
3307
|
"DataViewCellRendererDef",
|
|
3275
3308
|
"DataViewColumnDef",
|
|
3309
|
+
"DataViewColumnFilter",
|
|
3310
|
+
"DataViewColumnFilterConfig",
|
|
3311
|
+
"DataViewColumnFilterDialog",
|
|
3276
3312
|
"DataViewColumnSettingsDialog",
|
|
3277
3313
|
"DataViewColumnWidth",
|
|
3278
3314
|
"DataViewConfig",
|
|
3279
3315
|
"DataViewDatasource",
|
|
3316
|
+
"dataViewDateKey",
|
|
3280
3317
|
"DataViewEmptyDataDirective",
|
|
3281
3318
|
"DataViewEmptyFilterResultsDirective",
|
|
3319
|
+
"DataViewFilterDialogData",
|
|
3320
|
+
"dataViewFilterLabel",
|
|
3321
|
+
"DataViewFilterModel",
|
|
3282
3322
|
"DataViewGetRowsParams",
|
|
3283
3323
|
"DataViewInterface",
|
|
3284
3324
|
"DataViewPinAlign",
|
|
3325
|
+
"DataViewRowId",
|
|
3285
3326
|
"DataViewRowModelType",
|
|
3286
3327
|
"DataViewRowSelectionEvent",
|
|
3287
3328
|
"DataViewRowSelectionEventSource",
|
|
3329
|
+
"DataViewSavedView",
|
|
3330
|
+
"DataViewSavedViewDialog",
|
|
3331
|
+
"DataViewSavedViewDialogData",
|
|
3332
|
+
"DataViewSelection",
|
|
3333
|
+
"DataViewSelectionScope",
|
|
3334
|
+
"DataViewSelectionState",
|
|
3288
3335
|
"DataViewState",
|
|
3336
|
+
"DataViewViewState",
|
|
3337
|
+
"DataViewViewStorage",
|
|
3338
|
+
"matchesDataViewFilter",
|
|
3339
|
+
"normalizeDataViewFilter",
|
|
3340
|
+
"normalizeDataViewFilters",
|
|
3341
|
+
"normalizeDataViewSavedViews",
|
|
3342
|
+
"normalizeDataViewState",
|
|
3289
3343
|
"provideDataView"
|
|
3290
3344
|
],
|
|
3291
3345
|
"inputs": [
|
|
3292
3346
|
"allowSingleRowSelectionByClick",
|
|
3347
|
+
"ariaLabel",
|
|
3293
3348
|
"autoHeight",
|
|
3294
3349
|
"bodyScroll",
|
|
3295
3350
|
"bufferRows",
|
|
3296
3351
|
"cellRenderers",
|
|
3297
3352
|
"columnDefs",
|
|
3353
|
+
"columnFilters",
|
|
3298
3354
|
"data",
|
|
3299
3355
|
"datasource",
|
|
3300
3356
|
"embedded",
|
|
@@ -3317,22 +3373,31 @@
|
|
|
3317
3373
|
"rowHeight",
|
|
3318
3374
|
"rowModelType",
|
|
3319
3375
|
"rowSelection",
|
|
3376
|
+
"savedViews",
|
|
3320
3377
|
"search",
|
|
3378
|
+
"selectionScope",
|
|
3321
3379
|
"selectionWidth",
|
|
3322
3380
|
"showFirstLastButtons",
|
|
3323
3381
|
"snapshot",
|
|
3382
|
+
"sortState",
|
|
3324
3383
|
"stickyHeader",
|
|
3384
|
+
"viewStorageKey",
|
|
3325
3385
|
"width",
|
|
3326
3386
|
"withColumnSettings",
|
|
3327
3387
|
"withPagination",
|
|
3388
|
+
"withSavedViews",
|
|
3328
3389
|
"withSelection"
|
|
3329
3390
|
],
|
|
3330
3391
|
"outputs": [
|
|
3331
3392
|
"allRowsSelectionChanged",
|
|
3332
3393
|
"loadEnd",
|
|
3394
|
+
"loadError",
|
|
3333
3395
|
"refreshEnd",
|
|
3396
|
+
"rowActivated",
|
|
3334
3397
|
"selectionChanged",
|
|
3335
|
-
"sortChange"
|
|
3398
|
+
"sortChange",
|
|
3399
|
+
"stateChanged",
|
|
3400
|
+
"viewApplied"
|
|
3336
3401
|
],
|
|
3337
3402
|
"cssTokens": [
|
|
3338
3403
|
"--ngs-color-background",
|
|
@@ -3355,6 +3420,7 @@
|
|
|
3355
3420
|
"--ngs-data-view-row-bg",
|
|
3356
3421
|
"--ngs-data-view-row-hover-bg",
|
|
3357
3422
|
"--ngs-data-view-selection-column-width",
|
|
3423
|
+
"--ngs-form-field-width",
|
|
3358
3424
|
"--ngs-radius-xl",
|
|
3359
3425
|
"--ngs-table-background",
|
|
3360
3426
|
"--ngs-table-header-cell-background",
|
|
@@ -6560,6 +6626,7 @@
|
|
|
6560
6626
|
"pushIntoViewport",
|
|
6561
6627
|
"role",
|
|
6562
6628
|
"selected",
|
|
6629
|
+
"themeSource",
|
|
6563
6630
|
"xPosition",
|
|
6564
6631
|
"yPosition"
|
|
6565
6632
|
],
|
|
@@ -6571,7 +6638,6 @@
|
|
|
6571
6638
|
"valueChange"
|
|
6572
6639
|
],
|
|
6573
6640
|
"cssTokens": [
|
|
6574
|
-
"--ngs-color-neutral-700",
|
|
6575
6641
|
"--ngs-color-on-surface",
|
|
6576
6642
|
"--ngs-color-on-surface-variant",
|
|
6577
6643
|
"--ngs-color-subtle",
|
|
@@ -6599,6 +6665,7 @@
|
|
|
6599
6665
|
"--ngs-menu-border",
|
|
6600
6666
|
"--ngs-menu-divider-color",
|
|
6601
6667
|
"--ngs-menu-divider-margin",
|
|
6668
|
+
"--ngs-menu-heading-color",
|
|
6602
6669
|
"--ngs-menu-item-active-background",
|
|
6603
6670
|
"--ngs-menu-item-color",
|
|
6604
6671
|
"--ngs-menu-item-disabled-color",
|
|
@@ -859,3 +859,41 @@ implements synchronous `getItem(key): string | null`, `setItem(key, value): void
|
|
|
859
859
|
`removeItem(key): void`; it stores serialized native JSON. The default is browser `localStorage`.
|
|
860
860
|
`[draftDebounceMs]` overrides the configured delay. Use `contentChanged` for asynchronous server
|
|
861
861
|
persistence.
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
## Editor design tokens
|
|
865
|
+
|
|
866
|
+
Editing and preview share typography and theme roles. Override the following CSS custom properties
|
|
867
|
+
on the editor/renderer or a surrounding theme scope; do not store visual theme settings in document JSON.
|
|
868
|
+
|
|
869
|
+
| Token | Purpose |
|
|
870
|
+
| --- | --- |
|
|
871
|
+
| `--ngs-content-editor-content-width` | Default text/table content width (704px). |
|
|
872
|
+
| `--ngs-content-editor-font-size`, `--ngs-content-editor-line-height` | Body typography in editing and preview. |
|
|
873
|
+
| `--ngs-content-editor-heading-1-size` … `--ngs-content-editor-heading-6-size` | Responsive heading scale shared by both surfaces. |
|
|
874
|
+
| `--ngs-content-editor-heading-weight`, `--ngs-content-editor-heading-line-height` | Heading typography. |
|
|
875
|
+
| `--ngs-content-editor-muted-color`, `--ngs-content-editor-placeholder-color` | Metadata and empty text fields. |
|
|
876
|
+
| `--ngs-content-editor-hover-bg` | Hovered block background. |
|
|
877
|
+
| `--ngs-content-editor-selected-bg`, `--ngs-content-editor-selected-color` | Selected block colors as a matching pair. |
|
|
878
|
+
| `--ngs-content-editor-block-padding`, `--ngs-content-editor-block-radius` | Block geometry. |
|
|
879
|
+
| `--ngs-content-editor-control-size` | Block actions; follows the shared small control size/density. |
|
|
880
|
+
| `--ngs-content-editor-toolbar-bg`, `--ngs-content-editor-toolbar-color`, `--ngs-content-editor-toolbar-radius` | Floating toolbar appearance; inverse surface roles by default. |
|
|
881
|
+
| `--ngs-content-editor-surface`, `--ngs-content-editor-border`, `--ngs-content-editor-field-border` | Media surfaces and visible field edges. |
|
|
882
|
+
|
|
883
|
+
```scss
|
|
884
|
+
.article-editor {
|
|
885
|
+
--ngs-content-editor-content-width: 760px;
|
|
886
|
+
--ngs-content-editor-heading-weight: 600;
|
|
887
|
+
--ngs-content-editor-block-radius: var(--ngs-radius-md);
|
|
888
|
+
}
|
|
889
|
+
```
|
|
890
|
+
|
|
891
|
+
The floating toolbar and its menus copy the editor's NgStarter tokens into CDK overlay panes and
|
|
892
|
+
follow changes to ancestor theme attributes, classes or inline token overrides while open.
|
|
893
|
+
`Menu.themeSource` is an optional HTML element for the same behaviour in other menus.
|
|
894
|
+
`bindNgsOverlayTheme(source, target)` from the public `core` entry point returns a cleanup function
|
|
895
|
+
for custom overlays. Call cleanup when detaching/destroying the overlay.
|
|
896
|
+
|
|
897
|
+
The insertion menu has a fixed search header, retains its 70vh size, filters block names/descriptions,
|
|
898
|
+
and supports Enter to insert the first result into the triggering root/nested collection.
|
|
899
|
+
ArrowDown moves from search to the first result; Escape closes the menu. Closing clears the query.
|
package/data-view/API.md
ADDED
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
# DataView workflows API
|
|
2
|
+
|
|
3
|
+
Import from `@ngstarter-ui/components/data-view`. `DataView` is the operational,
|
|
4
|
+
virtualized data grid. Use `Table` for template-defined read-only tables.
|
|
5
|
+
|
|
6
|
+
```ts
|
|
7
|
+
import { DataView, DataViewColumnDef, provideDataView } from '@ngstarter-ui/components/data-view';
|
|
8
|
+
|
|
9
|
+
interface RecordRow { id: number; name: string; amount: number; created: string; enabled: boolean; status: string; }
|
|
10
|
+
|
|
11
|
+
const columns: DataViewColumnDef[] = [
|
|
12
|
+
{ field: 'id', name: 'ID', width: 80, pinned: true, sortable: true },
|
|
13
|
+
{ field: 'name', name: 'Name', filter: { type: 'text' } },
|
|
14
|
+
{ field: 'amount', name: 'Amount', filter: { type: 'number' } },
|
|
15
|
+
{ field: 'created', name: 'Created', filter: { type: 'date' } },
|
|
16
|
+
{ field: 'enabled', name: 'Enabled', filter: { type: 'boolean' } },
|
|
17
|
+
{ field: 'status', name: 'Status', filter: { type: 'enum', options: [
|
|
18
|
+
{ value: 'active', label: 'Active' }, { value: 'pending', label: 'Pending' }
|
|
19
|
+
] } }
|
|
20
|
+
];
|
|
21
|
+
const getRowId = (row: RecordRow) => row.id;
|
|
22
|
+
|
|
23
|
+
// Optional environment defaults; all instance inputs still override them.
|
|
24
|
+
export const appConfig = { providers: [provideDataView({ pageSize: 20, withSavedViews: true })] };
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
```html
|
|
28
|
+
<ngs-data-view #grid="ngsDataView" [data]="records" [columnDefs]="columns"
|
|
29
|
+
[getRowId]="getRowId" withSelection withPagination withColumnSettings withSavedViews
|
|
30
|
+
selectionScope="page" [(search)]="search" [(columnFilters)]="filters"
|
|
31
|
+
[(savedViews)]="views" viewStorageKey="orders:current-user:views"
|
|
32
|
+
ariaLabel="Orders" (stateChanged)="onState($event)"
|
|
33
|
+
(selectionStateChanged)="onSelection($event)" (rowActivated)="openRecord($event)"/>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Stable row selection
|
|
37
|
+
|
|
38
|
+
`getRowId: (row: T) => string | number` is optional for local/reference-based
|
|
39
|
+
selection and required to preserve identity when records are replaced. IDs must
|
|
40
|
+
be unique and stable within the dataset. Number `1` and string `"1"` are distinct.
|
|
41
|
+
|
|
42
|
+
`selectionScope` defaults to `filtered`:
|
|
43
|
+
|
|
44
|
+
| Scope | Client | Server |
|
|
45
|
+
| --- | --- | --- |
|
|
46
|
+
| `page` | Current filtered/sorted page (all filtered rows without pagination) | Loaded page |
|
|
47
|
+
| `filtered` | All results matching quick search and column filters | All matching records, including unloaded rows, when `getRowId` is supplied |
|
|
48
|
+
| `all` | Entire input dataset, including rows hidden by filters | Entire server dataset; query fields are empty |
|
|
49
|
+
|
|
50
|
+
`api.selectAll(scope?)` can override the configured scope for that operation.
|
|
51
|
+
Single selection selects at most one record. Without `getRowId`, server selection
|
|
52
|
+
falls back to the loaded page and reports `scope: 'page'`.
|
|
53
|
+
|
|
54
|
+
```ts
|
|
55
|
+
interface DataViewSelectionState<T = unknown> {
|
|
56
|
+
scope: 'page' | 'filtered' | 'all';
|
|
57
|
+
allMatching: boolean;
|
|
58
|
+
rowIds: (string | number)[];
|
|
59
|
+
excludedRowIds: (string | number)[];
|
|
60
|
+
rows: T[];
|
|
61
|
+
search: string;
|
|
62
|
+
columnFilters: DataViewFilterModel;
|
|
63
|
+
}
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
`selectionChanged` remains a `T[]` event containing known selected records. It is
|
|
67
|
+
not the complete list for a server-wide selection. Use `selectionStateChanged`
|
|
68
|
+
or `api.getSelection()` for that descriptor. When `allMatching` is true, interpret
|
|
69
|
+
selection as **the query minus excluded IDs**, not as `rowIds`. `rows` and `rowIds`
|
|
70
|
+
contain known selected records only. After immutable refresh, these record objects
|
|
71
|
+
are updated to their current versions. Deleted client records are removed;
|
|
72
|
+
server records remain selected across pages. A query change clears a server
|
|
73
|
+
`filtered` all-matching selection; `all` selection survives query changes.
|
|
74
|
+
Checkbox events use source `checkbox`, single-row click uses `row`, and keyboard
|
|
75
|
+
selection uses `keyboard`. `api.unselectAll()` clears explicit and all-matching
|
|
76
|
+
selection.
|
|
77
|
+
|
|
78
|
+
## Typed column filters
|
|
79
|
+
|
|
80
|
+
`columnFilters` is a two-way model keyed by field path. Filters combine with AND;
|
|
81
|
+
quick search is an additional condition. Column `filter` enables its header
|
|
82
|
+
button and declares the UI type; enum options preserve string/number values.
|
|
83
|
+
Text comparisons are case-insensitive; enum comparisons preserve value types;
|
|
84
|
+
boolean values must be actual booleans; missing/empty numeric values never match.
|
|
85
|
+
|
|
86
|
+
```ts
|
|
87
|
+
type DataViewColumnFilter =
|
|
88
|
+
| { type: 'text'; operator: 'contains' | 'equals' | 'startsWith' | 'endsWith' | 'notContains'; value: string }
|
|
89
|
+
| { type: 'number'; operator: 'equals' | 'notEquals' | 'greaterThan' | 'lessThan' | 'between'; value?: number; to?: number }
|
|
90
|
+
| { type: 'date'; from?: string; to?: string }
|
|
91
|
+
| { type: 'enum'; values: (string | number)[] }
|
|
92
|
+
| { type: 'boolean'; value: boolean };
|
|
93
|
+
type DataViewFilterModel = Record<string, DataViewColumnFilter>;
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Number `between` and date ranges are inclusive; either bound may be omitted.
|
|
97
|
+
Dates use `YYYY-MM-DD`, interpreted as calendar days. ISO timestamp values use
|
|
98
|
+
their date portion; `Date` values use their local calendar day. The date filter
|
|
99
|
+
uses NgStarter DateRangeInput/DateRangePicker, not native date inputs.
|
|
100
|
+
`DateRangeInput` now exposes `[(range)]="dateRange"` with `DateRange<D> | null`
|
|
101
|
+
for both typed values and picker updates.
|
|
102
|
+
|
|
103
|
+
```ts
|
|
104
|
+
grid.api.setColumnFilter('amount', { type: 'number', operator: 'between', value: 100, to: 500 });
|
|
105
|
+
grid.api.setColumnFilter('created', { type: 'date', from: '2026-10-01', to: '2026-10-14' });
|
|
106
|
+
grid.api.setColumnFilter('status', { type: 'enum', values: ['active'] });
|
|
107
|
+
grid.api.setColumnFilter('enabled', { type: 'boolean', value: false });
|
|
108
|
+
grid.api.setColumnFilter('status', null); // remove one
|
|
109
|
+
grid.api.clearFilters(); // clear column filters AND quick search
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Empty text/enum/range conditions are removed. Invalid dates, non-finite numbers,
|
|
113
|
+
reversed ranges, unknown fields and configured type mismatches are rejected.
|
|
114
|
+
Changing filters/search resets the page and vertical scroll. Client page indexes
|
|
115
|
+
are also clamped when records shrink. Active chips can remove a single condition
|
|
116
|
+
or clear the query, even when no records match.
|
|
117
|
+
|
|
118
|
+
Public pure helpers `matchesDataViewFilter`, `normalizeDataViewFilter`,
|
|
119
|
+
`normalizeDataViewFilters`, `dataViewDateKey`, and `dataViewFilterLabel` share the
|
|
120
|
+
contract with adapters. Production servers must implement the same semantics.
|
|
121
|
+
|
|
122
|
+
## Server requests, cancellation and errors
|
|
123
|
+
|
|
124
|
+
```ts
|
|
125
|
+
interface DataViewGetRowsParams {
|
|
126
|
+
startRow: number; // inclusive
|
|
127
|
+
endRow: number; // exclusive
|
|
128
|
+
page: number; // zero-based
|
|
129
|
+
pageSize: number;
|
|
130
|
+
sortModel: { colId: string; sort: 'asc' | 'desc' | '' }[];
|
|
131
|
+
filterModel: string; // quick search, retained for existing adapters
|
|
132
|
+
columnFilters: DataViewFilterModel;
|
|
133
|
+
signal: AbortSignal;
|
|
134
|
+
successCallback(rows: any[], lastRow?: number): void;
|
|
135
|
+
failCallback(error?: unknown): void;
|
|
136
|
+
}
|
|
137
|
+
interface DataViewDatasource {
|
|
138
|
+
getItems(params: DataViewGetRowsParams): void | (() => void) | { unsubscribe(): void };
|
|
139
|
+
}
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
`lastRow` is the **total number of matching records**, not the last index. Supply
|
|
143
|
+
it for accurate server pagination. Newer queries/datasources and destruction abort
|
|
144
|
+
`signal`, call pending cleanup/unsubscribe, and reject stale callbacks. Quick
|
|
145
|
+
search is debounced by 300ms; column conditions and pagination are immediate.
|
|
146
|
+
Synchronous adapter exceptions use the same failure path.
|
|
147
|
+
|
|
148
|
+
```ts
|
|
149
|
+
const datasource: DataViewDatasource = {
|
|
150
|
+
getItems(params) {
|
|
151
|
+
fetch('/api/orders/query', {
|
|
152
|
+
method: 'POST', signal: params.signal,
|
|
153
|
+
headers: { 'Content-Type': 'application/json' },
|
|
154
|
+
body: JSON.stringify({ page: params.page, pageSize: params.pageSize,
|
|
155
|
+
search: params.filterModel, filters: params.columnFilters, sort: params.sortModel })
|
|
156
|
+
}).then(response => {
|
|
157
|
+
if (!response.ok) throw new Error('Could not load orders');
|
|
158
|
+
return response.json();
|
|
159
|
+
}).then(result => params.successCallback(result.rows, result.total))
|
|
160
|
+
.catch(error => { if (!params.signal.aborted) params.failCallback(error); });
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
`error()` holds the visible message; `loadError` emits the original error.
|
|
166
|
+
`loadStatus()` is `idle | loading | refreshing | ready | error`.
|
|
167
|
+
`refreshing()` is true during background requests after an initial response.
|
|
168
|
+
Previously loaded rows remain visible with an updating status; the initial load
|
|
169
|
+
uses a blocking loader. The error alert includes Retry, which calls `refresh()`.
|
|
170
|
+
`loadEnd` / `refreshEnd` signal completion of successful **or failed** cycles;
|
|
171
|
+
check `error()` when completion alone is insufficient. `api.search(value)` updates
|
|
172
|
+
the same model as `[search]` and triggers a server request in server mode.
|
|
173
|
+
|
|
174
|
+
## State and named views
|
|
175
|
+
|
|
176
|
+
```ts
|
|
177
|
+
interface DataViewViewState {
|
|
178
|
+
version: 1;
|
|
179
|
+
columns: DataViewState[]; // array order is column order
|
|
180
|
+
sort: { active: string; direction: 'asc' | 'desc' | '' };
|
|
181
|
+
search: string;
|
|
182
|
+
columnFilters: DataViewFilterModel;
|
|
183
|
+
pageSize: number;
|
|
184
|
+
}
|
|
185
|
+
interface DataViewState {
|
|
186
|
+
field: string; visible?: boolean; width?: string | number;
|
|
187
|
+
pinned?: boolean; pinAlign?: 'start' | 'end';
|
|
188
|
+
}
|
|
189
|
+
interface DataViewSavedView { id: string; name: string; state: DataViewViewState; }
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
`stateChanged` emits a serializable state when columns/query/page size change.
|
|
193
|
+
`sortState` is a two-way `{ active, direction }` model. `sortChange` remains the
|
|
194
|
+
user sorting event. `columnFilters`, `search`, and `savedViews` expose their normal
|
|
195
|
+
model change outputs. `getSnapshot()` / `applyState()` remain column-only APIs and
|
|
196
|
+
now restore order and visibility as well as width/pinning.
|
|
197
|
+
|
|
198
|
+
```ts
|
|
199
|
+
const state = grid.api.getState();
|
|
200
|
+
grid.api.setState(state);
|
|
201
|
+
const view = grid.api.saveView('Review queue');
|
|
202
|
+
grid.api.applyView(view.id);
|
|
203
|
+
grid.api.saveView('Review queue', view.id); // update current state
|
|
204
|
+
// or rename without replacing its state:
|
|
205
|
+
grid.api.renameView(view.id, 'Priority queue');
|
|
206
|
+
grid.api.deleteView(view.id);
|
|
207
|
+
grid.api.applyView(null); // reset to initial instance state
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
Names must contain 1–100 characters and be unique ignoring case.
|
|
211
|
+
`withSavedViews` enables the selector and save/update/rename/delete/reset menu.
|
|
212
|
+
An unsaved-change indicator compares the current query with the chosen view.
|
|
213
|
+
`activeViewId()` exposes the selection; `viewApplied` emits the applied view or
|
|
214
|
+
null for the default. Applying a view starts at page zero. Deleting the active
|
|
215
|
+
view resets to default. State restoration validates the version/types, removes
|
|
216
|
+
stale fields, appends new columns, clears sorting for removed fields, and rejects
|
|
217
|
+
views that hide every column. Pure helpers `normalizeDataViewState` and
|
|
218
|
+
`normalizeDataViewSavedViews` are also public.
|
|
219
|
+
|
|
220
|
+
Persistence is opt-in through a unique `viewStorageKey`. The default storage is
|
|
221
|
+
localStorage; use a key scoped to the user and dataset. No key means no storage
|
|
222
|
+
access. For another synchronous storage adapter:
|
|
223
|
+
|
|
224
|
+
```ts
|
|
225
|
+
provideDataView({
|
|
226
|
+
viewStorage: {
|
|
227
|
+
getItem: key => myStorage.read(key),
|
|
228
|
+
setItem: (key, value) => myStorage.write(key, value)
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
Storage failures and malformed payloads are exposed through `viewStorageError()`
|
|
234
|
+
and a visible alert when saved views UI is enabled. Named views and the active ID
|
|
235
|
+
are persisted; unsaved edits and row selection are not. Consumers can instead
|
|
236
|
+
bind `[(savedViews)]` and persist its change event themselves.
|
|
237
|
+
|
|
238
|
+
## Keyboard and accessibility
|
|
239
|
+
|
|
240
|
+
The root uses a labelled `grid`, logical row/column counts, row indexes, selected
|
|
241
|
+
states and an active descendant. Pinned cell fragments belong to one logical
|
|
242
|
+
row through `aria-owns`; virtualized rows report their global position. Provide
|
|
243
|
+
`ariaLabel` for the dataset. Icon actions and selection checkboxes have labels.
|
|
244
|
+
|
|
245
|
+
| Key while grid is focused | Action |
|
|
246
|
+
| --- | --- |
|
|
247
|
+
| Arrows | Move active cell; scroll virtual rows/center columns into view |
|
|
248
|
+
| Home / End | First/last cell in current row |
|
|
249
|
+
| Ctrl/Command + Home / End | First/last row and cell in the loaded/client page |
|
|
250
|
+
| Page Up / Page Down | Move by one viewport |
|
|
251
|
+
| Space | Toggle current row selection |
|
|
252
|
+
| Shift + Space or Shift + Up/Down | Extend selection from the selection anchor |
|
|
253
|
+
| Ctrl/Command + A | Select configured scope |
|
|
254
|
+
| Escape | Clear selection |
|
|
255
|
+
| Enter | Emit `rowActivated` for the active record |
|
|
256
|
+
|
|
257
|
+
Inputs, buttons, custom interactive renderers and overlays retain their own
|
|
258
|
+
keyboard behavior. Tab reaches sorting headers and resize separators. Enter /
|
|
259
|
+
Space sorts a header. Resize handles support Left/Right (10px), Shift + Left/Right
|
|
260
|
+
(1px), Home (minimum), End (maximum, default 2000px). User resize constraints are
|
|
261
|
+
respected. Actual screen-reader support should also be evaluated in consumer
|
|
262
|
+
applications with their custom renderers.
|
|
@@ -35,7 +35,7 @@ class Button {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: Button, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
38
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: Button, isStandalone: true, selector: "\n button[ngsButton], button[ngsIconButton],\n a[ngsButton], a[ngsIconButton]\n ", inputs: { ngsButton: { classPropertyName: "ngsButton", publicName: "ngsButton", isSignal: true, isRequired: false, transformFunction: null }, ngsIconButton: { classPropertyName: "ngsIconButton", publicName: "ngsIconButton", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, disabledInteractive: { classPropertyName: "disabledInteractive", publicName: "disabledInteractive", isSignal: true, isRequired: false, transformFunction: null }, disableRipple: { classPropertyName: "disableRipple", publicName: "disableRipple", isSignal: true, isRequired: false, transformFunction: null }, reverse: { classPropertyName: "reverse", publicName: "reverse", isSignal: true, isRequired: false, transformFunction: null }, fullWidth: { classPropertyName: "fullWidth", publicName: "fullWidth", isSignal: true, isRequired: false, transformFunction: null }, hideTextOnMobile: { classPropertyName: "hideTextOnMobile", publicName: "hideTextOnMobile", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "_haltDisabledEvents($event)" }, properties: { "attr.disabled": "((disabled() || loading()) && !disabledInteractive()) || null", "class.ngs-button-disabled": "disabled() || loading()", "class.ngs-button-loading": "loading()", "class.ngs-button-primary": "ngsButton() === \"filled\"", "class.ngs-button-outlined": "ngsButton() === \"outlined\"", "class.ngs-button-text": "(ngsButton() === \"text\" || ngsButton() === \"\") && ngsIconButton() !== undefined", "class.ngs-button-tonal": "ngsButton() === \"tonal\"", "class.ngs-icon-button": "ngsIconButton() !== undefined", "class.is-reverse": "reverse()", "class.hide-text-on-mobile": "hideTextOnMobile()", "class.is-full-width": "fullWidth()", "attr.aria-disabled": "(disabled() || loading()).toString()", "attr.tabindex": "(disabled() || loading()) && disabledInteractive() ? 0 : null" }, classAttribute: "ngs-button" }, exportAs: ["ngsButton"], ngImport: i0, template: "<span class=\"ripple\" ngsRipple></span>\n<span class=\"icon\">\n <ng-content select=\"ngs-icon\"/>\n</span>\n<span class=\"content\"><ng-content/></span>\n@if (loading()) {\n <svg class=\"ngs-button-loading-spinner\" viewBox=\"0 0 50 50\">\n <circle class=\"path\" cx=\"25\" cy=\"25\" r=\"20\" fill=\"none\" stroke-width=\"5\"></circle>\n </svg>\n}\n<!--<div class=\"badge\"><ng-content select=\"ngs-badge\"/></div>-->\n", styles: [":host{--ngs-button-padding: 0 var(--ngs-button-padding-x, calc(var(--spacing, .25rem) * 4));--ngs-button-border-radius: var(--ngs-button-radius, var(--ngs-radius-lg));--ngs-button-bg: transparent;--ngs-button-color: var(--ngs-color-on-surface);--ngs-button-hover-bg: var(--ngs-button-bg);--ngs-button-content-gap: var(--ngs-control-gap, calc(var(--spacing, .25rem) * 2));position:relative;flex:none;width:max-content;box-sizing:border-box;-webkit-tap-highlight-color:transparent;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;cursor:pointer;border:none;background:var(--ngs-button-bg);color:var(--ngs-button-color);text-decoration:none;outline:none;font-size:var(--ngs-button-font-size, var(--ngs-font-size-sm));font-weight:var(--ngs-button-font-weight, 500);padding:var(--ngs-button-padding);height:var(--ngs-button-height);border-radius:var(--ngs-button-border-radius);transition:background-color .2s cubic-bezier(0,0,.2,1),box-shadow .2s cubic-bezier(0,0,.2,1);gap:var(--ngs-button-content-gap)}@supports (color: color-mix(in lab,red,red)){:host{--ngs-button-hover-bg: color-mix(in srgb, var(--ngs-button-bg), var(--ngs-button-color) 8%)}}:host.is-full-width{width:100%}@media(width<640px){:host.hide-text-on-mobile .content{display:none}:host.hide-text-on-mobile .icon{left:auto;right:auto}:host.hide-text-on-mobile{min-width:var(--ngs-button-height);padding:0}}:host .ripple{position:absolute;inset:0;border-radius:inherit}:host .icon:empty{display:none}:host .icon{line-height:0;position:relative;left:-3px}:host.ngs-icon-button .icon{position:static;left:auto;right:auto}:host .content{line-height:0}:host .content:empty{display:none}:host .ngs-button-loading-spinner{display:none;width:18px;height:18px;margin-left:8px;animation:rotate 2s linear infinite}:host .ngs-button-loading-spinner .path{stroke:currentColor;stroke-linecap:round;animation:dash 1.5s ease-in-out infinite}:host.ngs-button-loading .ngs-button-loading-spinner{display:block}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}:host:hover{background:var(--ngs-button-hover-bg)}:host:focus-visible{box-shadow:0 0 0 3px var(--ngs-state-focus-ring)}:host.is-reverse .icon{left:auto;right:-5px}:host.is-reverse{flex-direction:row-reverse}:host.ngs-button-primary{--ngs-button-bg: var(--ngs-button-filled-bg, var(--ngs-color-primary));--ngs-button-color: var(--ngs-button-filled-color, var(--ngs-color-on-primary))}:host.ngs-button-tonal{--ngs-button-bg: var(--ngs-button-tonal-bg, var(--ngs-color-secondary-container));--ngs-button-color: var(--ngs-button-tonal-color, var(--ngs-color-on-secondary-container))}:host.ngs-button-outlined{border:1px solid var(--ngs-button-outlined-border, var(--ngs-color-muted));--ngs-button-color: var(--ngs-button-outlined-color, var(--ngs-color-on-
|
|
38
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: Button, isStandalone: true, selector: "\n button[ngsButton], button[ngsIconButton],\n a[ngsButton], a[ngsIconButton]\n ", inputs: { ngsButton: { classPropertyName: "ngsButton", publicName: "ngsButton", isSignal: true, isRequired: false, transformFunction: null }, ngsIconButton: { classPropertyName: "ngsIconButton", publicName: "ngsIconButton", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, disabledInteractive: { classPropertyName: "disabledInteractive", publicName: "disabledInteractive", isSignal: true, isRequired: false, transformFunction: null }, disableRipple: { classPropertyName: "disableRipple", publicName: "disableRipple", isSignal: true, isRequired: false, transformFunction: null }, reverse: { classPropertyName: "reverse", publicName: "reverse", isSignal: true, isRequired: false, transformFunction: null }, fullWidth: { classPropertyName: "fullWidth", publicName: "fullWidth", isSignal: true, isRequired: false, transformFunction: null }, hideTextOnMobile: { classPropertyName: "hideTextOnMobile", publicName: "hideTextOnMobile", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "_haltDisabledEvents($event)" }, properties: { "attr.disabled": "((disabled() || loading()) && !disabledInteractive()) || null", "class.ngs-button-disabled": "disabled() || loading()", "class.ngs-button-loading": "loading()", "class.ngs-button-primary": "ngsButton() === \"filled\"", "class.ngs-button-outlined": "ngsButton() === \"outlined\"", "class.ngs-button-text": "(ngsButton() === \"text\" || ngsButton() === \"\") && ngsIconButton() !== undefined", "class.ngs-button-tonal": "ngsButton() === \"tonal\"", "class.ngs-icon-button": "ngsIconButton() !== undefined", "class.is-reverse": "reverse()", "class.hide-text-on-mobile": "hideTextOnMobile()", "class.is-full-width": "fullWidth()", "attr.aria-disabled": "(disabled() || loading()).toString()", "attr.tabindex": "(disabled() || loading()) && disabledInteractive() ? 0 : null" }, classAttribute: "ngs-button" }, exportAs: ["ngsButton"], ngImport: i0, template: "<span class=\"ripple\" ngsRipple></span>\n<span class=\"icon\">\n <ng-content select=\"ngs-icon\"/>\n</span>\n<span class=\"content\"><ng-content/></span>\n@if (loading()) {\n <svg class=\"ngs-button-loading-spinner\" viewBox=\"0 0 50 50\">\n <circle class=\"path\" cx=\"25\" cy=\"25\" r=\"20\" fill=\"none\" stroke-width=\"5\"></circle>\n </svg>\n}\n<!--<div class=\"badge\"><ng-content select=\"ngs-badge\"/></div>-->\n", styles: [":host{--ngs-button-padding: 0 var(--ngs-button-padding-x, calc(var(--spacing, .25rem) * 4));--ngs-button-border-radius: var(--ngs-button-radius, var(--ngs-radius-lg));--ngs-button-bg: transparent;--ngs-button-color: var(--ngs-color-on-surface);--ngs-button-hover-bg: var(--ngs-button-bg);--ngs-button-content-gap: var(--ngs-control-gap, calc(var(--spacing, .25rem) * 2));position:relative;flex:none;width:max-content;box-sizing:border-box;-webkit-tap-highlight-color:transparent;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;cursor:pointer;border:none;background:var(--ngs-button-bg);color:var(--ngs-button-color);text-decoration:none;outline:none;font-size:var(--ngs-button-font-size, var(--ngs-font-size-sm));font-weight:var(--ngs-button-font-weight, 500);padding:var(--ngs-button-padding);height:var(--ngs-button-height);border-radius:var(--ngs-button-border-radius);transition:background-color .2s cubic-bezier(0,0,.2,1),box-shadow .2s cubic-bezier(0,0,.2,1);gap:var(--ngs-button-content-gap)}@supports (color: color-mix(in lab,red,red)){:host{--ngs-button-hover-bg: color-mix(in srgb, var(--ngs-button-bg), var(--ngs-button-color) 8%)}}:host.is-full-width{width:100%}@media(width<640px){:host.hide-text-on-mobile .content{display:none}:host.hide-text-on-mobile .icon{left:auto;right:auto}:host.hide-text-on-mobile{min-width:var(--ngs-button-height);padding:0}}:host .ripple{position:absolute;inset:0;border-radius:inherit}:host .icon:empty{display:none}:host .icon{line-height:0;position:relative;left:-3px}:host.ngs-icon-button .icon{position:static;left:auto;right:auto}:host .content{line-height:0}:host .content:empty{display:none}:host .ngs-button-loading-spinner{display:none;width:18px;height:18px;margin-left:8px;animation:rotate 2s linear infinite}:host .ngs-button-loading-spinner .path{stroke:currentColor;stroke-linecap:round;animation:dash 1.5s ease-in-out infinite}:host.ngs-button-loading .ngs-button-loading-spinner{display:block}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}:host:hover{background:var(--ngs-button-hover-bg)}:host:focus-visible{box-shadow:0 0 0 3px var(--ngs-state-focus-ring)}:host.is-reverse .icon{left:auto;right:-5px}:host.is-reverse{flex-direction:row-reverse}:host.ngs-button-primary{--ngs-button-bg: var(--ngs-button-filled-bg, var(--ngs-color-primary));--ngs-button-color: var(--ngs-button-filled-color, var(--ngs-color-on-primary))}:host.ngs-button-tonal{--ngs-button-bg: var(--ngs-button-tonal-bg, var(--ngs-color-secondary-container));--ngs-button-color: var(--ngs-button-tonal-color, var(--ngs-color-on-secondary-container))}:host.ngs-button-outlined{border:1px solid var(--ngs-button-outlined-border, var(--ngs-color-muted));--ngs-button-color: var(--ngs-button-outlined-color, var(--ngs-color-on-surface))}:host.ngs-icon-button{--ngs-button-padding: 0;--ngs-button-border-radius: 50%;min-width:var(--ngs-button-height);width:var(--ngs-button-height)}:host.ngs-icon-button.ngs-button-loading .icon{display:none}:host.ngs-color-primary{--ngs-button-color: var(--ngs-color-primary)}:host.ngs-color-primary.ngs-button-primary{--ngs-button-bg: var(--ngs-color-primary);--ngs-button-color: var(--ngs-color-on-primary)}:host.ngs-color-primary.ngs-button-tonal{--ngs-button-bg: var(--ngs-color-primary-container);--ngs-button-color: var(--ngs-color-on-primary-container)}:host.ngs-color-accent{--ngs-button-color: var(--ngs-color-secondary)}:host.ngs-color-accent.ngs-button-primary{--ngs-button-bg: var(--ngs-color-secondary);--ngs-button-color: var(--ngs-color-on-secondary)}:host.ngs-color-accent.ngs-button-tonal{--ngs-button-bg: var(--ngs-color-secondary-container);--ngs-button-color: var(--ngs-color-on-secondary-container)}:host.ngs-color-warn{--ngs-button-color: var(--ngs-color-danger)}:host.ngs-color-warn.ngs-button-primary{--ngs-button-bg: var(--ngs-color-danger);--ngs-button-color: var(--ngs-color-on-danger)}:host.ngs-color-warn.ngs-button-tonal{--ngs-button-bg: var(--ngs-color-danger-container);--ngs-button-color: var(--ngs-color-on-danger-container)}:host.ngs-button-disabled{cursor:default;--ngs-button-bg: var(--ngs-state-disabled-bg) !important;--ngs-button-color: var(--ngs-state-disabled-color) !important;--ngs-button-hover-bg: var(--ngs-state-disabled-bg) !important}:host.ngs-button-disabled.ngs-button-text,:host.ngs-button-disabled.ngs-button-outlined{--ngs-button-bg: transparent !important;--ngs-button-hover-bg: transparent !important;--ngs-button-color: var(--ngs-state-disabled-color) !important}:host.ngs-button-disabled.ngs-button-outlined{border-color:var(--ngs-state-disabled-border)!important}:host.ngs-button-disabled:hover{background:var(--ngs-button-hover-bg)}:host.ngs-button-disabled[disabled]{pointer-events:none}:host:not([disabled]).ngs-button-disabled{pointer-events:auto;cursor:default}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "directive", type: Ripple, selector: "[ngsRipple]", inputs: ["ngsRippleColor", "ngsRippleUnbounded", "ngsRippleCentered", "ngsRippleRadius", "ngsRippleAnimation", "ngsRippleDisabled", "ngsRippleTrigger"], outputs: ["ngsRippleCenteredChange", "ngsRippleDisabledChange", "ngsRippleTriggerChange"], exportAs: ["ngsRipple"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
39
39
|
}
|
|
40
40
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: Button, decorators: [{
|
|
41
41
|
type: Component,
|
|
@@ -60,7 +60,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
60
60
|
'[attr.aria-disabled]': '(disabled() || loading()).toString()',
|
|
61
61
|
'(click)': '_haltDisabledEvents($event)',
|
|
62
62
|
'[attr.tabindex]': '(disabled() || loading()) && disabledInteractive() ? 0 : null',
|
|
63
|
-
}, changeDetection: ChangeDetectionStrategy.OnPush, template: "<span class=\"ripple\" ngsRipple></span>\n<span class=\"icon\">\n <ng-content select=\"ngs-icon\"/>\n</span>\n<span class=\"content\"><ng-content/></span>\n@if (loading()) {\n <svg class=\"ngs-button-loading-spinner\" viewBox=\"0 0 50 50\">\n <circle class=\"path\" cx=\"25\" cy=\"25\" r=\"20\" fill=\"none\" stroke-width=\"5\"></circle>\n </svg>\n}\n<!--<div class=\"badge\"><ng-content select=\"ngs-badge\"/></div>-->\n", styles: [":host{--ngs-button-padding: 0 var(--ngs-button-padding-x, calc(var(--spacing, .25rem) * 4));--ngs-button-border-radius: var(--ngs-button-radius, var(--ngs-radius-lg));--ngs-button-bg: transparent;--ngs-button-color: var(--ngs-color-on-surface);--ngs-button-hover-bg: var(--ngs-button-bg);--ngs-button-content-gap: var(--ngs-control-gap, calc(var(--spacing, .25rem) * 2));position:relative;flex:none;width:max-content;box-sizing:border-box;-webkit-tap-highlight-color:transparent;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;cursor:pointer;border:none;background:var(--ngs-button-bg);color:var(--ngs-button-color);text-decoration:none;outline:none;font-size:var(--ngs-button-font-size, var(--ngs-font-size-sm));font-weight:var(--ngs-button-font-weight, 500);padding:var(--ngs-button-padding);height:var(--ngs-button-height);border-radius:var(--ngs-button-border-radius);transition:background-color .2s cubic-bezier(0,0,.2,1),box-shadow .2s cubic-bezier(0,0,.2,1);gap:var(--ngs-button-content-gap)}@supports (color: color-mix(in lab,red,red)){:host{--ngs-button-hover-bg: color-mix(in srgb, var(--ngs-button-bg), var(--ngs-button-color) 8%)}}:host.is-full-width{width:100%}@media(width<640px){:host.hide-text-on-mobile .content{display:none}:host.hide-text-on-mobile .icon{left:auto;right:auto}:host.hide-text-on-mobile{min-width:var(--ngs-button-height);padding:0}}:host .ripple{position:absolute;inset:0;border-radius:inherit}:host .icon:empty{display:none}:host .icon{line-height:0;position:relative;left:-3px}:host.ngs-icon-button .icon{position:static;left:auto;right:auto}:host .content{line-height:0}:host .content:empty{display:none}:host .ngs-button-loading-spinner{display:none;width:18px;height:18px;margin-left:8px;animation:rotate 2s linear infinite}:host .ngs-button-loading-spinner .path{stroke:currentColor;stroke-linecap:round;animation:dash 1.5s ease-in-out infinite}:host.ngs-button-loading .ngs-button-loading-spinner{display:block}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}:host:hover{background:var(--ngs-button-hover-bg)}:host:focus-visible{box-shadow:0 0 0 3px var(--ngs-state-focus-ring)}:host.is-reverse .icon{left:auto;right:-5px}:host.is-reverse{flex-direction:row-reverse}:host.ngs-button-primary{--ngs-button-bg: var(--ngs-button-filled-bg, var(--ngs-color-primary));--ngs-button-color: var(--ngs-button-filled-color, var(--ngs-color-on-primary))}:host.ngs-button-tonal{--ngs-button-bg: var(--ngs-button-tonal-bg, var(--ngs-color-secondary-container));--ngs-button-color: var(--ngs-button-tonal-color, var(--ngs-color-on-secondary-container))}:host.ngs-button-outlined{border:1px solid var(--ngs-button-outlined-border, var(--ngs-color-muted));--ngs-button-color: var(--ngs-button-outlined-color, var(--ngs-color-on-
|
|
63
|
+
}, changeDetection: ChangeDetectionStrategy.OnPush, template: "<span class=\"ripple\" ngsRipple></span>\n<span class=\"icon\">\n <ng-content select=\"ngs-icon\"/>\n</span>\n<span class=\"content\"><ng-content/></span>\n@if (loading()) {\n <svg class=\"ngs-button-loading-spinner\" viewBox=\"0 0 50 50\">\n <circle class=\"path\" cx=\"25\" cy=\"25\" r=\"20\" fill=\"none\" stroke-width=\"5\"></circle>\n </svg>\n}\n<!--<div class=\"badge\"><ng-content select=\"ngs-badge\"/></div>-->\n", styles: [":host{--ngs-button-padding: 0 var(--ngs-button-padding-x, calc(var(--spacing, .25rem) * 4));--ngs-button-border-radius: var(--ngs-button-radius, var(--ngs-radius-lg));--ngs-button-bg: transparent;--ngs-button-color: var(--ngs-color-on-surface);--ngs-button-hover-bg: var(--ngs-button-bg);--ngs-button-content-gap: var(--ngs-control-gap, calc(var(--spacing, .25rem) * 2));position:relative;flex:none;width:max-content;box-sizing:border-box;-webkit-tap-highlight-color:transparent;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;cursor:pointer;border:none;background:var(--ngs-button-bg);color:var(--ngs-button-color);text-decoration:none;outline:none;font-size:var(--ngs-button-font-size, var(--ngs-font-size-sm));font-weight:var(--ngs-button-font-weight, 500);padding:var(--ngs-button-padding);height:var(--ngs-button-height);border-radius:var(--ngs-button-border-radius);transition:background-color .2s cubic-bezier(0,0,.2,1),box-shadow .2s cubic-bezier(0,0,.2,1);gap:var(--ngs-button-content-gap)}@supports (color: color-mix(in lab,red,red)){:host{--ngs-button-hover-bg: color-mix(in srgb, var(--ngs-button-bg), var(--ngs-button-color) 8%)}}:host.is-full-width{width:100%}@media(width<640px){:host.hide-text-on-mobile .content{display:none}:host.hide-text-on-mobile .icon{left:auto;right:auto}:host.hide-text-on-mobile{min-width:var(--ngs-button-height);padding:0}}:host .ripple{position:absolute;inset:0;border-radius:inherit}:host .icon:empty{display:none}:host .icon{line-height:0;position:relative;left:-3px}:host.ngs-icon-button .icon{position:static;left:auto;right:auto}:host .content{line-height:0}:host .content:empty{display:none}:host .ngs-button-loading-spinner{display:none;width:18px;height:18px;margin-left:8px;animation:rotate 2s linear infinite}:host .ngs-button-loading-spinner .path{stroke:currentColor;stroke-linecap:round;animation:dash 1.5s ease-in-out infinite}:host.ngs-button-loading .ngs-button-loading-spinner{display:block}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}:host:hover{background:var(--ngs-button-hover-bg)}:host:focus-visible{box-shadow:0 0 0 3px var(--ngs-state-focus-ring)}:host.is-reverse .icon{left:auto;right:-5px}:host.is-reverse{flex-direction:row-reverse}:host.ngs-button-primary{--ngs-button-bg: var(--ngs-button-filled-bg, var(--ngs-color-primary));--ngs-button-color: var(--ngs-button-filled-color, var(--ngs-color-on-primary))}:host.ngs-button-tonal{--ngs-button-bg: var(--ngs-button-tonal-bg, var(--ngs-color-secondary-container));--ngs-button-color: var(--ngs-button-tonal-color, var(--ngs-color-on-secondary-container))}:host.ngs-button-outlined{border:1px solid var(--ngs-button-outlined-border, var(--ngs-color-muted));--ngs-button-color: var(--ngs-button-outlined-color, var(--ngs-color-on-surface))}:host.ngs-icon-button{--ngs-button-padding: 0;--ngs-button-border-radius: 50%;min-width:var(--ngs-button-height);width:var(--ngs-button-height)}:host.ngs-icon-button.ngs-button-loading .icon{display:none}:host.ngs-color-primary{--ngs-button-color: var(--ngs-color-primary)}:host.ngs-color-primary.ngs-button-primary{--ngs-button-bg: var(--ngs-color-primary);--ngs-button-color: var(--ngs-color-on-primary)}:host.ngs-color-primary.ngs-button-tonal{--ngs-button-bg: var(--ngs-color-primary-container);--ngs-button-color: var(--ngs-color-on-primary-container)}:host.ngs-color-accent{--ngs-button-color: var(--ngs-color-secondary)}:host.ngs-color-accent.ngs-button-primary{--ngs-button-bg: var(--ngs-color-secondary);--ngs-button-color: var(--ngs-color-on-secondary)}:host.ngs-color-accent.ngs-button-tonal{--ngs-button-bg: var(--ngs-color-secondary-container);--ngs-button-color: var(--ngs-color-on-secondary-container)}:host.ngs-color-warn{--ngs-button-color: var(--ngs-color-danger)}:host.ngs-color-warn.ngs-button-primary{--ngs-button-bg: var(--ngs-color-danger);--ngs-button-color: var(--ngs-color-on-danger)}:host.ngs-color-warn.ngs-button-tonal{--ngs-button-bg: var(--ngs-color-danger-container);--ngs-button-color: var(--ngs-color-on-danger-container)}:host.ngs-button-disabled{cursor:default;--ngs-button-bg: var(--ngs-state-disabled-bg) !important;--ngs-button-color: var(--ngs-state-disabled-color) !important;--ngs-button-hover-bg: var(--ngs-state-disabled-bg) !important}:host.ngs-button-disabled.ngs-button-text,:host.ngs-button-disabled.ngs-button-outlined{--ngs-button-bg: transparent !important;--ngs-button-hover-bg: transparent !important;--ngs-button-color: var(--ngs-state-disabled-color) !important}:host.ngs-button-disabled.ngs-button-outlined{border-color:var(--ngs-state-disabled-border)!important}:host.ngs-button-disabled:hover{background:var(--ngs-button-hover-bg)}:host.ngs-button-disabled[disabled]{pointer-events:none}:host:not([disabled]).ngs-button-disabled{pointer-events:auto;cursor:default}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
|
|
64
64
|
}], ctorParameters: () => [], propDecorators: { ngsButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "ngsButton", required: false }] }], ngsIconButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "ngsIconButton", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], disabledInteractive: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledInteractive", required: false }] }], disableRipple: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableRipple", required: false }] }], reverse: [{ type: i0.Input, args: [{ isSignal: true, alias: "reverse", required: false }] }], fullWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullWidth", required: false }] }], hideTextOnMobile: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideTextOnMobile", required: false }] }] } });
|
|
65
65
|
|
|
66
66
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngstarter-ui-components-button.mjs","sources":["../../../projects/components/button/src/button/button.ts","../../../projects/components/button/src/button/button.html","../../../projects/components/button/ngstarter-ui-components-button.ts"],"sourcesContent":["import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n effect,\n ElementRef,\n inject,\n input,\n} from '@angular/core';\nimport { Ripple } from '@ngstarter-ui/components/core';\n\nexport type ButtonVariant = 'filled' | 'outlined' | 'text' | 'tonal' | '';\n\n@Component({\n selector: `\n button[ngsButton], button[ngsIconButton],\n a[ngsButton], a[ngsIconButton]\n `,\n exportAs: 'ngsButton',\n imports: [\n Ripple\n ],\n templateUrl: './button.html',\n styleUrl: './button.scss',\n host: {\n 'class': 'ngs-button',\n '[attr.disabled]': '((disabled() || loading()) && !disabledInteractive()) || null',\n '[class.ngs-button-disabled]': 'disabled() || loading()',\n '[class.ngs-button-loading]': 'loading()',\n '[class.ngs-button-primary]': 'ngsButton() === \"filled\"',\n '[class.ngs-button-outlined]': 'ngsButton() === \"outlined\"',\n '[class.ngs-button-text]': '(ngsButton() === \"text\" || ngsButton() === \"\") && ngsIconButton() !== undefined',\n '[class.ngs-button-tonal]': 'ngsButton() === \"tonal\"',\n '[class.ngs-icon-button]': 'ngsIconButton() !== undefined',\n '[class.is-reverse]': 'reverse()',\n '[class.hide-text-on-mobile]': 'hideTextOnMobile()',\n '[class.is-full-width]': 'fullWidth()',\n '[attr.aria-disabled]': '(disabled() || loading()).toString()',\n '(click)': '_haltDisabledEvents($event)',\n '[attr.tabindex]': '(disabled() || loading()) && disabledInteractive() ? 0 : null',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Button {\n readonly elementRef = inject(ElementRef);\n readonly _ripple = inject(Ripple, { optional: true });\n\n readonly ngsButton = input<ButtonVariant>('text');\n readonly ngsIconButton = input(undefined, { transform: booleanAttribute });\n readonly loading = input(false, { transform: booleanAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly disabledInteractive = input(false, { transform: booleanAttribute });\n readonly disableRipple = input(false, { transform: booleanAttribute });\n readonly reverse = input(false, { transform: booleanAttribute });\n readonly fullWidth = input(false, { transform: booleanAttribute });\n readonly hideTextOnMobile = input(false, { transform: booleanAttribute });\n\n constructor() {\n effect(() => {\n if (this._ripple) {\n this._ripple.disabled.set(this.disabled() || this.loading() || this.disableRipple());\n this._ripple.trigger.set(this.elementRef.nativeElement);\n this._ripple.centered.set(this.isIconButton);\n }\n });\n }\n\n /** Whether the button is an icon button. */\n get isIconButton(): boolean {\n return this.ngsIconButton() !== undefined;\n }\n\n _haltDisabledEvents(event: Event) {\n if (this.disabled() || this.loading()) {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n }\n}\n","<span class=\"ripple\" ngsRipple></span>\n<span class=\"icon\">\n <ng-content select=\"ngs-icon\"/>\n</span>\n<span class=\"content\"><ng-content/></span>\n@if (loading()) {\n <svg class=\"ngs-button-loading-spinner\" viewBox=\"0 0 50 50\">\n <circle class=\"path\" cx=\"25\" cy=\"25\" r=\"20\" fill=\"none\" stroke-width=\"5\"></circle>\n </svg>\n}\n<!--<div class=\"badge\"><ng-content select=\"ngs-badge\"/></div>-->\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MA2Ca,MAAM,CAAA;AACR,IAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;IAC/B,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAE5C,SAAS,GAAG,KAAK,CAAgB,MAAM;kFAAC;IACxC,aAAa,GAAG,KAAK,CAAC,SAAS,qFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IACjE,OAAO,GAAG,KAAK,CAAC,KAAK,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IACvD,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IACxD,mBAAmB,GAAG,KAAK,CAAC,KAAK,2FAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IACnE,aAAa,GAAG,KAAK,CAAC,KAAK,qFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IAC7D,OAAO,GAAG,KAAK,CAAC,KAAK,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IACvD,SAAS,GAAG,KAAK,CAAC,KAAK,iFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IACzD,gBAAgB,GAAG,KAAK,CAAC,KAAK,wFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAEzE,IAAA,WAAA,GAAA;QACE,MAAM,CAAC,MAAK;AACV,YAAA,IAAI,IAAI,CAAC,OAAO,EAAE;gBAChB,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,IAAI,CAAC,OAAO,EAAE,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;AACpF,gBAAA,IAAI,CAAC,OAAO,CAA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A,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC3CnB,6aAWA,EAAA,MAAA,EAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"ngstarter-ui-components-button.mjs","sources":["../../../projects/components/button/src/button/button.ts","../../../projects/components/button/src/button/button.html","../../../projects/components/button/ngstarter-ui-components-button.ts"],"sourcesContent":["import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n effect,\n ElementRef,\n inject,\n input,\n} from '@angular/core';\nimport { Ripple } from '@ngstarter-ui/components/core';\n\nexport type ButtonVariant = 'filled' | 'outlined' | 'text' | 'tonal' | '';\n\n@Component({\n selector: `\n button[ngsButton], button[ngsIconButton],\n a[ngsButton], a[ngsIconButton]\n `,\n exportAs: 'ngsButton',\n imports: [\n Ripple\n ],\n templateUrl: './button.html',\n styleUrl: './button.scss',\n host: {\n 'class': 'ngs-button',\n '[attr.disabled]': '((disabled() || loading()) && !disabledInteractive()) || null',\n '[class.ngs-button-disabled]': 'disabled() || loading()',\n '[class.ngs-button-loading]': 'loading()',\n '[class.ngs-button-primary]': 'ngsButton() === \"filled\"',\n '[class.ngs-button-outlined]': 'ngsButton() === \"outlined\"',\n '[class.ngs-button-text]': '(ngsButton() === \"text\" || ngsButton() === \"\") && ngsIconButton() !== undefined',\n '[class.ngs-button-tonal]': 'ngsButton() === \"tonal\"',\n '[class.ngs-icon-button]': 'ngsIconButton() !== undefined',\n '[class.is-reverse]': 'reverse()',\n '[class.hide-text-on-mobile]': 'hideTextOnMobile()',\n '[class.is-full-width]': 'fullWidth()',\n '[attr.aria-disabled]': '(disabled() || loading()).toString()',\n '(click)': '_haltDisabledEvents($event)',\n '[attr.tabindex]': '(disabled() || loading()) && disabledInteractive() ? 0 : null',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Button {\n readonly elementRef = inject(ElementRef);\n readonly _ripple = inject(Ripple, { optional: true });\n\n readonly ngsButton = input<ButtonVariant>('text');\n readonly ngsIconButton = input(undefined, { transform: booleanAttribute });\n readonly loading = input(false, { transform: booleanAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly disabledInteractive = input(false, { transform: booleanAttribute });\n readonly disableRipple = input(false, { transform: booleanAttribute });\n readonly reverse = input(false, { transform: booleanAttribute });\n readonly fullWidth = input(false, { transform: booleanAttribute });\n readonly hideTextOnMobile = input(false, { transform: booleanAttribute });\n\n constructor() {\n effect(() => {\n if (this._ripple) {\n this._ripple.disabled.set(this.disabled() || this.loading() || this.disableRipple());\n this._ripple.trigger.set(this.elementRef.nativeElement);\n this._ripple.centered.set(this.isIconButton);\n }\n });\n }\n\n /** Whether the button is an icon button. */\n get isIconButton(): boolean {\n return this.ngsIconButton() !== undefined;\n }\n\n _haltDisabledEvents(event: Event) {\n if (this.disabled() || this.loading()) {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n }\n}\n","<span class=\"ripple\" ngsRipple></span>\n<span class=\"icon\">\n <ng-content select=\"ngs-icon\"/>\n</span>\n<span class=\"content\"><ng-content/></span>\n@if (loading()) {\n <svg class=\"ngs-button-loading-spinner\" viewBox=\"0 0 50 50\">\n <circle class=\"path\" cx=\"25\" cy=\"25\" r=\"20\" fill=\"none\" stroke-width=\"5\"></circle>\n </svg>\n}\n<!--<div class=\"badge\"><ng-content select=\"ngs-badge\"/></div>-->\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MA2Ca,MAAM,CAAA;AACR,IAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;IAC/B,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAE5C,SAAS,GAAG,KAAK,CAAgB,MAAM;kFAAC;IACxC,aAAa,GAAG,KAAK,CAAC,SAAS,qFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IACjE,OAAO,GAAG,KAAK,CAAC,KAAK,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IACvD,QAA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AA,CAAA;kBA9BlB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA;;;AAGT,EAAA,CAAA,EAAA,QAAA,EACS,WAAW,EAAA,OAAA,EACZ;wBACP;qBACD,EAAA,IAAA,EAGK;AACJ,wBAAA,OAAO,EAAE,YAAY;AACrB,wBAAA,iBAAiB,EAAE,+DAA+D;AAClF,wBAAA,6BAA6B,EAAE,yBAAyB;AACxD,wBAAA,4BAA4B,EAAE,WAAW;AACzC,wBAAA,4BAA4B,EAAE,0BAA0B;AACxD,wBAAA,6BAA6B,EAAE,4BAA4B;AAC3D,wBAAA,yBAAyB,EAAE,iFAAiF;AAC5G,wBAAA,0BAA0B,EAAE,yBAAyB;AACrD,wBAAA,yBAAyB,EAAE,+BAA+B;AAC1D,wBAAA,oBAAoB,EAAE,WAAW;AACjC,wBAAA,6BAA6B,EAAE,oBAAoB;AACnD,wBAAA,uBAAuB,EAAE,aAAa;AACtC,wBAAA,sBAAsB,EAAE,sCAAsC;AAC9D,wBAAA,SAAS,EAAE,6BAA6B;AACxC,wBAAA,iBAAiB,EAAE,+DAA+D;qBACnF,EAAA,eAAA,EACgB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,6aAAA,EAAA,MAAA,EAAA,CAAA,87JAAA,CAAA,EAAA;;;AEzCjD;;AAEG;;;;"}
|
|
@@ -5,7 +5,7 @@ import { Button } from '@ngstarter-ui/components/button';
|
|
|
5
5
|
import { Icon } from '@ngstarter-ui/components/icon';
|
|
6
6
|
import { FormField, Label } from '@ngstarter-ui/components/form-field';
|
|
7
7
|
import { Input } from '@ngstarter-ui/components/input';
|
|
8
|
-
import { f as ContentEditorUploadBlockBase, h as contentEditorFileSize, i as contentEditorResourceUrl } from './ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-
|
|
8
|
+
import { f as ContentEditorUploadBlockBase, h as contentEditorFileSize, i as contentEditorResourceUrl } from './ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-dGibIV4n.mjs';
|
|
9
9
|
import { C as ContentEditorUploadStatus } from './ngstarter-ui-components-content-editor-upload-status-QnKI_Rfz.mjs';
|
|
10
10
|
|
|
11
11
|
class ContentEditorAttachmentBlock extends ContentEditorUploadBlockBase {
|
|
@@ -32,4 +32,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
32
32
|
}] });
|
|
33
33
|
|
|
34
34
|
export { ContentEditorAttachmentBlock };
|
|
35
|
-
//# sourceMappingURL=ngstarter-ui-components-content-editor-attachment-block-
|
|
35
|
+
//# sourceMappingURL=ngstarter-ui-components-content-editor-attachment-block-DZqyCrEK.mjs.map
|