ngwr 16.3.0 → 16.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/carousel/styles/_index.scss +53 -1
- package/charts/bar-chart/styles/_index.scss +494 -305
- package/charts/boxplot-chart/styles/_index.scss +114 -48
- package/charts/bullet-chart/styles/_index.scss +113 -42
- package/charts/calendar-heatmap/styles/_index.scss +111 -20
- package/charts/candlestick-chart/styles/_index.scss +61 -26
- package/charts/chart-legend/styles/_index.scss +119 -1
- package/charts/core/styles/_index.scss +201 -5
- package/charts/donut-chart/styles/_index.scss +76 -21
- package/charts/funnel-chart/styles/_index.scss +66 -38
- package/charts/gauge/styles/_index.scss +12 -1
- package/charts/heatmap-chart/styles/_index.scss +90 -53
- package/charts/line-chart/styles/_index.scss +143 -139
- package/charts/meter-group/styles/_index.scss +87 -25
- package/charts/radar-chart/styles/_index.scss +82 -40
- package/charts/scatter-chart/styles/_index.scss +117 -44
- package/charts/sparkline/styles/_index.scss +7 -1
- package/charts/treemap-chart/styles/_index.scss +94 -42
- package/charts/waterfall-chart/styles/_index.scss +150 -87
- package/color-picker/styles/_index.scss +7 -3
- package/copy-value/styles/_index.scss +21 -2
- package/date-stamp/styles/_index.scss +2 -1
- package/dialog/styles/_index.scss +6 -0
- package/drawer/styles/_index.scss +5 -1
- package/fesm2022/ngwr-breadcrumbs.mjs +2 -2
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-carousel-testing.mjs +27 -1
- package/fesm2022/ngwr-carousel-testing.mjs.map +1 -1
- package/fesm2022/ngwr-carousel.mjs +86 -4
- package/fesm2022/ngwr-carousel.mjs.map +1 -1
- package/fesm2022/ngwr-cascader-testing.mjs.map +1 -1
- package/fesm2022/ngwr-cascader.mjs +56 -25
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart-testing.mjs +16 -14
- package/fesm2022/ngwr-charts-bar-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart.mjs +399 -141
- package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs +19 -5
- package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-boxplot-chart.mjs +250 -56
- package/fesm2022/ngwr-charts-boxplot-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bullet-chart.mjs +118 -18
- package/fesm2022/ngwr-charts-bullet-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs +266 -46
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs.map +1 -1
- package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs +21 -10
- package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-candlestick-chart.mjs +319 -72
- package/fesm2022/ngwr-charts-candlestick-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-chart-legend.mjs +211 -9
- package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
- package/fesm2022/ngwr-charts-core.mjs +299 -18
- package/fesm2022/ngwr-charts-core.mjs.map +1 -1
- package/fesm2022/ngwr-charts-donut-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-donut-chart.mjs +206 -27
- package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-funnel-chart-testing.mjs +4 -4
- package/fesm2022/ngwr-charts-funnel-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-funnel-chart.mjs +113 -10
- package/fesm2022/ngwr-charts-funnel-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-gauge-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-gauge.mjs +98 -12
- package/fesm2022/ngwr-charts-gauge.mjs.map +1 -1
- package/fesm2022/ngwr-charts-heatmap-chart.mjs +226 -31
- package/fesm2022/ngwr-charts-heatmap-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-line-chart-testing.mjs +16 -4
- package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-line-chart.mjs +407 -172
- package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group-testing.mjs +4 -4
- package/fesm2022/ngwr-charts-meter-group-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group.mjs +223 -31
- package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
- package/fesm2022/ngwr-charts-radar-chart-testing.mjs +2 -1
- package/fesm2022/ngwr-charts-radar-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-radar-chart.mjs +255 -66
- package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-scatter-chart-testing.mjs +39 -18
- package/fesm2022/ngwr-charts-scatter-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-scatter-chart.mjs +431 -53
- package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-sparkline.mjs +19 -8
- package/fesm2022/ngwr-charts-sparkline.mjs.map +1 -1
- package/fesm2022/ngwr-charts-treemap-chart.mjs +253 -44
- package/fesm2022/ngwr-charts-treemap-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs +15 -7
- package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-waterfall-chart.mjs +151 -23
- package/fesm2022/ngwr-charts-waterfall-chart.mjs.map +1 -1
- package/fesm2022/ngwr-color-picker.mjs +44 -4
- package/fesm2022/ngwr-color-picker.mjs.map +1 -1
- package/fesm2022/ngwr-context-menu-testing.mjs.map +1 -1
- package/fesm2022/ngwr-context-menu.mjs +60 -17
- package/fesm2022/ngwr-context-menu.mjs.map +1 -1
- package/fesm2022/ngwr-copy-value-testing.mjs +5 -1
- package/fesm2022/ngwr-copy-value-testing.mjs.map +1 -1
- package/fesm2022/ngwr-copy-value.mjs +38 -2
- package/fesm2022/ngwr-copy-value.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +56 -8
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-dialog.mjs +13 -5
- package/fesm2022/ngwr-dialog.mjs.map +1 -1
- package/fesm2022/ngwr-drawer.mjs +19 -3
- package/fesm2022/ngwr-drawer.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +49 -6
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-editor.mjs +1 -0
- package/fesm2022/ngwr-editor.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload.mjs +7 -3
- package/fesm2022/ngwr-file-upload.mjs.map +1 -1
- package/fesm2022/ngwr-graph-testing.mjs +27 -0
- package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
- package/fesm2022/ngwr-graph.mjs +643 -14
- package/fesm2022/ngwr-graph.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ar.mjs +13 -4
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +13 -4
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +13 -4
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +13 -4
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +13 -4
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +13 -4
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +13 -4
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +13 -4
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +13 -4
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +13 -4
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +13 -4
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +13 -4
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +13 -4
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +13 -4
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +13 -4
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +13 -4
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +13 -4
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +13 -4
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +13 -4
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +13 -4
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +13 -4
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +13 -4
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox.mjs +22 -5
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +2 -2
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-overlay.mjs +21 -2
- package/fesm2022/ngwr-overlay.mjs.map +1 -1
- package/fesm2022/ngwr-pagination.mjs +1 -0
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm-testing.mjs +4 -1
- package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm.mjs +41 -5
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +67 -12
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-schema-form.mjs +3 -0
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +100 -3
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-sortable-list.mjs +2 -2
- package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
- package/fesm2022/ngwr-table-testing.mjs +71 -3
- package/fesm2022/ngwr-table-testing.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +173 -11
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tour-testing.mjs +13 -1
- package/fesm2022/ngwr-tour-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tour.mjs +25 -16
- package/fesm2022/ngwr-tour.mjs.map +1 -1
- package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +52 -8
- package/fesm2022/ngwr-tree.mjs.map +1 -1
- package/fesm2022/ngwr-utils.mjs +64 -1
- package/fesm2022/ngwr-utils.mjs.map +1 -1
- package/fesm2022/ngwr-version.mjs +1 -1
- package/fesm2022/ngwr-version.mjs.map +1 -1
- package/fesm2022/ngwr-window.mjs +16 -9
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/graph/styles/_index.scss +87 -0
- package/i18n/ar.json +13 -4
- package/i18n/cs.json +13 -4
- package/i18n/de.json +13 -4
- package/i18n/en.json +13 -4
- package/i18n/es.json +13 -4
- package/i18n/fr.json +13 -4
- package/i18n/he.json +13 -4
- package/i18n/hi.json +13 -4
- package/i18n/id.json +13 -4
- package/i18n/it.json +13 -4
- package/i18n/ja.json +13 -4
- package/i18n/ko.json +13 -4
- package/i18n/nl.json +13 -4
- package/i18n/pl.json +13 -4
- package/i18n/pt.json +13 -4
- package/i18n/ru.json +13 -4
- package/i18n/sv.json +13 -4
- package/i18n/tr.json +13 -4
- package/i18n/uk.json +13 -4
- package/i18n/vi.json +13 -4
- package/i18n/zh-TW.json +13 -4
- package/i18n/zh.json +13 -4
- package/llms-full.txt +12 -12
- package/llms.txt +64 -27
- package/package.json +1 -1
- package/popconfirm/styles/_index.scss +6 -0
- package/popover/styles/_index.scss +24 -13
- package/schematics/collection.json +5 -0
- package/schematics/eject/index.js +158 -0
- package/schematics/eject/schema.js +8 -0
- package/schematics/eject/schema.json +24 -0
- package/schematics/eject/source.js +295 -0
- package/schematics/use/symbol-map.json +2 -0
- package/select/styles/_index.scss +13 -0
- package/skills/ngwr/SKILL.md +30 -3
- package/skills/ngwr/references/catalog.md +2 -2
- package/table/styles/_index.scss +24 -0
- package/theme/styles/_focus.scss +11 -1
- package/tour/styles/_index.scss +6 -0
- package/types/ngwr-carousel-testing.d.ts +29 -6
- package/types/ngwr-carousel.d.ts +52 -5
- package/types/ngwr-cascader-testing.d.ts +4 -3
- package/types/ngwr-cascader.d.ts +29 -7
- package/types/ngwr-charts-bar-chart-testing.d.ts +15 -13
- package/types/ngwr-charts-bar-chart.d.ts +220 -48
- package/types/ngwr-charts-boxplot-chart-testing.d.ts +9 -2
- package/types/ngwr-charts-boxplot-chart.d.ts +110 -19
- package/types/ngwr-charts-bullet-chart.d.ts +72 -12
- package/types/ngwr-charts-calendar-heatmap.d.ts +119 -15
- package/types/ngwr-charts-candlestick-chart-testing.d.ts +19 -9
- package/types/ngwr-charts-candlestick-chart.d.ts +195 -62
- package/types/ngwr-charts-chart-legend.d.ts +142 -5
- package/types/ngwr-charts-core.d.ts +259 -21
- package/types/ngwr-charts-donut-chart-testing.d.ts +11 -5
- package/types/ngwr-charts-donut-chart.d.ts +124 -16
- package/types/ngwr-charts-funnel-chart.d.ts +62 -6
- package/types/ngwr-charts-gauge-testing.d.ts +5 -1
- package/types/ngwr-charts-gauge.d.ts +72 -10
- package/types/ngwr-charts-heatmap-chart.d.ts +103 -20
- package/types/ngwr-charts-line-chart-testing.d.ts +16 -2
- package/types/ngwr-charts-line-chart.d.ts +215 -86
- package/types/ngwr-charts-meter-group.d.ts +96 -7
- package/types/ngwr-charts-radar-chart-testing.d.ts +14 -3
- package/types/ngwr-charts-radar-chart.d.ts +148 -28
- package/types/ngwr-charts-scatter-chart-testing.d.ts +22 -10
- package/types/ngwr-charts-scatter-chart.d.ts +188 -18
- package/types/ngwr-charts-sparkline.d.ts +26 -4
- package/types/ngwr-charts-treemap-chart.d.ts +121 -23
- package/types/ngwr-charts-waterfall-chart-testing.d.ts +8 -1
- package/types/ngwr-charts-waterfall-chart.d.ts +108 -21
- package/types/ngwr-color-picker.d.ts +27 -0
- package/types/ngwr-context-menu-testing.d.ts +10 -9
- package/types/ngwr-context-menu.d.ts +19 -0
- package/types/ngwr-copy-value.d.ts +8 -0
- package/types/ngwr-date-picker.d.ts +34 -2
- package/types/ngwr-dialog.d.ts +30 -10
- package/types/ngwr-drawer.d.ts +32 -1
- package/types/ngwr-dropdown-testing.d.ts +8 -5
- package/types/ngwr-dropdown.d.ts +31 -6
- package/types/ngwr-file-upload.d.ts +8 -2
- package/types/ngwr-graph-testing.d.ts +28 -0
- package/types/ngwr-graph.d.ts +263 -91
- package/types/ngwr-lightbox.d.ts +15 -0
- package/types/ngwr-overlay.d.ts +16 -1
- package/types/ngwr-popconfirm-testing.d.ts +11 -2
- package/types/ngwr-popconfirm.d.ts +28 -1
- package/types/ngwr-popover.d.ts +59 -9
- package/types/ngwr-select.d.ts +37 -0
- package/types/ngwr-table-testing.d.ts +52 -1
- package/types/ngwr-table.d.ts +102 -10
- package/types/ngwr-tour-testing.d.ts +10 -0
- package/types/ngwr-tour.d.ts +32 -4
- package/types/ngwr-tree-testing.d.ts +1 -2
- package/types/ngwr-tree.d.ts +35 -2
- package/types/ngwr-utils.d.ts +79 -1
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr-window.d.ts +14 -11
- package/window/styles/_index.scss +5 -10
package/i18n/zh.json
CHANGED
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"search": "搜索",
|
|
48
48
|
"reset": "重置",
|
|
49
49
|
"columns": "列",
|
|
50
|
+
"showAllColumns": "显示全部",
|
|
50
51
|
"selected": "已选择 {{count}} 项",
|
|
51
52
|
"clearSelection": "清除选择"
|
|
52
53
|
},
|
|
@@ -105,6 +106,7 @@
|
|
|
105
106
|
"clearSelection": "清除选择",
|
|
106
107
|
"removeItem": "移除 {{label}}",
|
|
107
108
|
"noResults": "无搜索结果",
|
|
109
|
+
"results": "结果:{{count}}",
|
|
108
110
|
"loading": "加载中…",
|
|
109
111
|
"loadError": "无法加载结果",
|
|
110
112
|
"retry": "重试",
|
|
@@ -133,9 +135,7 @@
|
|
|
133
135
|
"fileUpload": {
|
|
134
136
|
"browse": "点击选择文件",
|
|
135
137
|
"dropZone": "或将文件拖放到此处",
|
|
136
|
-
"removeFile": "
|
|
137
|
-
"invalid": "不支持的文件类型",
|
|
138
|
-
"tooBig": "文件过大",
|
|
138
|
+
"removeFile": "移除 {{name}}",
|
|
139
139
|
"size": "{{value}} {{unit}}",
|
|
140
140
|
"unitByte": "B",
|
|
141
141
|
"unitKb": "KB",
|
|
@@ -242,6 +242,11 @@
|
|
|
242
242
|
"channelLightness": "L%",
|
|
243
243
|
"channelAlpha": "A%"
|
|
244
244
|
},
|
|
245
|
+
"chart": {
|
|
246
|
+
"empty": "无数据",
|
|
247
|
+
"loading": "加载中…",
|
|
248
|
+
"error": "无法加载"
|
|
249
|
+
},
|
|
245
250
|
"barChart": {
|
|
246
251
|
"label": "柱状图",
|
|
247
252
|
"total": "合计",
|
|
@@ -335,6 +340,7 @@
|
|
|
335
340
|
"carousel": {
|
|
336
341
|
"label": "轮播图",
|
|
337
342
|
"goToSlide": "转到第 {{index}} 张幻灯片",
|
|
343
|
+
"position": "第 {{current}} 张幻灯片,共 {{total}} 张",
|
|
338
344
|
"prev": "上一张幻灯片",
|
|
339
345
|
"next": "下一张幻灯片",
|
|
340
346
|
"pagination": "轮播分页",
|
|
@@ -483,7 +489,10 @@
|
|
|
483
489
|
"graph": {
|
|
484
490
|
"label": "图",
|
|
485
491
|
"parents": "父节点:{{names}}。",
|
|
486
|
-
"children": "子节点:{{names}}。"
|
|
492
|
+
"children": "子节点:{{names}}。",
|
|
493
|
+
"zoomIn": "放大",
|
|
494
|
+
"zoomOut": "缩小",
|
|
495
|
+
"fit": "适应视图"
|
|
487
496
|
},
|
|
488
497
|
"progress": {
|
|
489
498
|
"label": "进度"
|
package/llms-full.txt
CHANGED
|
@@ -295,7 +295,7 @@
|
|
|
295
295
|
- selector: `wr-bar-chart`
|
|
296
296
|
- exports: WrBarChart, WrBarChartDatum, WrBarLine, WrBarOrientation, WrBarSeries
|
|
297
297
|
- keywords: grouped-bar, stacked-bar, horizontal-bar, combo-chart
|
|
298
|
-
- Bars for one or several series, grouped or stacked, standing up or lying along a row, with lines over them.
|
|
298
|
+
- Bars for one or several series, grouped or stacked, standing up or lying along a row, on a grid and a value axis, with lines over them.
|
|
299
299
|
|
|
300
300
|
## ngwr/charts/bar-chart/testing
|
|
301
301
|
- import: `import { WrBarChartHarness } from 'ngwr/charts/bar-chart/testing'`
|
|
@@ -347,8 +347,8 @@
|
|
|
347
347
|
|
|
348
348
|
## ngwr/charts/chart-legend
|
|
349
349
|
- import: `import { WrChartLegend } from 'ngwr/charts/chart-legend'`
|
|
350
|
-
- selector: `ul[wr-chart-legend]`
|
|
351
|
-
- exports: WrChartLegend, WrChartLegendItem, WrChartLegendToggle, WrChartMarker, WR_CHART_LEGEND_BLOCK
|
|
350
|
+
- selector: `ul[wr-chart-legend]`, `wr-chart-scale`
|
|
351
|
+
- exports: WrChartLegend, WrChartLegendItem, WrChartLegendPosition, WrChartLegendToggle, WrChartMarker, WrChartScale, WR_CHART_LEGEND_BLOCK
|
|
352
352
|
- keywords: legend
|
|
353
353
|
- A chart's key: a swatch, a name and a value per series. Rows can toggle their series.
|
|
354
354
|
|
|
@@ -626,7 +626,7 @@
|
|
|
626
626
|
## ngwr/dialog
|
|
627
627
|
- import: `import { WrDialog } from 'ngwr/dialog'`
|
|
628
628
|
- selector: `[wrDialogClose]`, `[wrDialogContent]`, `[wrDialogFooter]`, `[wrDialogTitle]`
|
|
629
|
-
- exports: WrDialog, WrDialogRef, WR_DIALOG_DATA, WR_DIALOG_REF, withDialog, WrDialogAlertOptions, WrDialogConfirmOptions, WrDialogDefaults, WrDialogIntent, WrDialogMessageOptions, WrDialogOptions, WrDialogRole, WrDialogTitle, WrDialogContent, WrDialogFooter, WrDialogClose
|
|
629
|
+
- exports: WrDialog, WrDialogRef, WR_DIALOG_DATA, WR_DIALOG_REF, withDialog, WrDialogAlertOptions, WrDialogAutoFocus, WrDialogConfirmOptions, WrDialogDefaults, WrDialogIntent, WrDialogMessageOptions, WrDialogOptions, WrDialogRole, WrDialogTitle, WrDialogContent, WrDialogFooter, WrDialogClose
|
|
630
630
|
- keywords: modal, wr-dialog, overlay, portal
|
|
631
631
|
- Open any component as a modal dialog and await its result.
|
|
632
632
|
|
|
@@ -650,7 +650,7 @@
|
|
|
650
650
|
## ngwr/drawer
|
|
651
651
|
- import: `import { WrDrawer } from 'ngwr/drawer'`
|
|
652
652
|
- selector: `[wrDrawerClose]`, `[wrDrawerContent]`, `[wrDrawerFooter]`, `[wrDrawerTitle]`, `wr-drawer`
|
|
653
|
-
- exports: WrDrawer, WrDrawerManager, WrDrawerRef, WR_DRAWER_DATA, WR_DRAWER_REF, WrDrawerTitle, WrDrawerContent, WrDrawerFooter, WrDrawerClose, WrDrawerOptions, WrDrawerPosition
|
|
653
|
+
- exports: WrDrawer, WrDrawerManager, WrDrawerRef, WR_DRAWER_DATA, WR_DRAWER_REF, WrDrawerTitle, WrDrawerContent, WrDrawerFooter, WrDrawerClose, WrDrawerAutoFocus, WrDrawerOptions, WrDrawerPosition
|
|
654
654
|
- keywords: panel, overlay, sheet
|
|
655
655
|
- A side panel that slides in from any edge of the screen.
|
|
656
656
|
|
|
@@ -968,7 +968,7 @@
|
|
|
968
968
|
|
|
969
969
|
## ngwr/overlay
|
|
970
970
|
- import: `import { WrOverlayContainer } from 'ngwr/overlay'`
|
|
971
|
-
- exports: WR_ANCHORED_FALLBACKS, WR_ANCHORED_POSITIONS, WrAnchoredPosition, WrAnchoredPositionsOptions, wrAnchoredPositions, wrAppendOverlayClose, wrFollowDirection, wrFollowSize, wrMirrorOffsets, WrOutsideClick, WrOverlayContainer, WrOverlayOrder, WR_OVERLAY, WR_OVERLAY_CONTAINER
|
|
971
|
+
- exports: WR_ANCHORED_FALLBACKS, WR_ANCHORED_POSITIONS, WrAnchoredPosition, WrAnchoredPositionsOptions, wrAnchoredPositions, wrAppendOverlayClose, WrOverlayAutoFocus, wrFocusOverlay, wrFollowDirection, wrFollowSize, wrMirrorOffsets, WrOutsideClick, WrOverlayContainer, WrOverlayOrder, WR_OVERLAY, WR_OVERLAY_CONTAINER
|
|
972
972
|
- `WrOverlayContainer`, the container every ngwr panel renders into, kept apart from the one Angular Material, NG-ZORRO and plain CDK overlays share, with no provider. Style ngwr's overlays through its `.wr-overlay-container` class; no `z-index` reaches them, since CDK renders overlays in the top layer.
|
|
973
973
|
|
|
974
974
|
## ngwr/page-header
|
|
@@ -1013,7 +1013,7 @@
|
|
|
1013
1013
|
## ngwr/popover
|
|
1014
1014
|
- import: `import { WrPopover } from 'ngwr/popover'`
|
|
1015
1015
|
- selector: `[wrPopover]`
|
|
1016
|
-
- exports: useChartTooltip, WrPopover, WrTextTooltip, wrUseTextTooltip, WrChartTooltip, WrChartTooltipDatum, WrChartTooltipRow, WrChartTooltipTarget, WrPopoverPosition
|
|
1016
|
+
- exports: useChartTooltip, wrCoerceChartTooltip, WrPopover, WrTextTooltip, wrUseTextTooltip, WrChartTooltip, WrChartTooltipDatum, WrChartTooltipRow, WrChartTooltipTarget, WrPopoverPosition
|
|
1017
1017
|
- keywords: tooltip, wr-popover, overlay
|
|
1018
1018
|
- Show a template, or a text tooltip, next to its trigger.
|
|
1019
1019
|
|
|
@@ -1229,14 +1229,14 @@
|
|
|
1229
1229
|
|
|
1230
1230
|
## ngwr/table
|
|
1231
1231
|
- import: `import { WrTable } from 'ngwr/table'`
|
|
1232
|
-
- selector: `[wrTableCell]`, `[wrTableEditCell]`, `ng-template[wrTableExpand]`, `wr-table-filter`, `ng-template[wrTableGroupHeader]`, `ng-template[wrTableSelectionBar]`, `wr-table-sort`, `wr-table`
|
|
1233
|
-
- exports: WrTable, WrTableCell, WrTableEditCell, WrTableExpand, WrTableGroupHeader, WrTableSelectionBar, WrTableSort, WrTableFilter, wrReadField, wrSortRows, WrTableCellContext, WrTableCellEdit, WrTableColumn, WrTableColumnAlign, WrTableColumns, WrTableCsvOptions, WrTableEditCellContext, WrTableEditable, WrTableExpandContext, WrTableFilterChange, WrTableFilterItem, WrTableGroupContext, WrTableLoadingMode, WrTableRow, WrTableRowClass, WrTableRowClick, WrTableSelectionContext, WrTableSortAccessor, WrTableSortState, WrTableSortDirection, WrTableState, WrTableSummary, WrTableSummaryContext, WrTableTruncate
|
|
1232
|
+
- selector: `[wrTableCell]`, `wr-table-column-chooser`, `[wrTableEditCell]`, `ng-template[wrTableExpand]`, `wr-table-filter`, `ng-template[wrTableGroupHeader]`, `ng-template[wrTableSelectionBar]`, `wr-table-sort`, `wr-table`
|
|
1233
|
+
- exports: WrTable, WrTableCell, WrTableColumnChooser, WrTableEditCell, WrTableExpand, WrTableGroupHeader, WrTableSelectionBar, WrTableSort, WrTableFilter, wrReadField, wrSortRows, WrTableCellContext, WrTableCellEdit, WrTableChooserColumn, WrTableColumn, WrTableColumnAlign, WrTableColumns, WrTableCsvOptions, WrTableEditCellContext, WrTableEditable, WrTableExpandContext, WrTableFilterChange, WrTableFilterItem, WrTableGroupContext, WrTableLoadingMode, WrTableRow, WrTableRowClass, WrTableRowClick, WrTableSelectionContext, WrTableSortAccessor, WrTableSortState, WrTableSortDirection, WrTableState, WrTableSummary, WrTableSummaryContext, WrTableTruncate
|
|
1234
1234
|
- keywords: wrsortrows, wrreadfield, sort
|
|
1235
1235
|
- Rows of data with sorting, filtering, paging and custom cells.
|
|
1236
1236
|
|
|
1237
1237
|
## ngwr/table/testing
|
|
1238
1238
|
- import: `import { WrTableCellHarness } from 'ngwr/table/testing'`
|
|
1239
|
-
- exports: WrTableCellHarness, WrTableHarness, WrTableHeaderCellHarness, WrTableRowHarness, WrTableCellHarnessFilters, WrTableHarnessFilters, WrTableHeaderCellHarnessFilters, WrTableRowHarnessFilters
|
|
1239
|
+
- exports: WrTableCellHarness, WrTableColumnChooserHarness, WrTableHarness, WrTableHeaderCellHarness, WrTableRowHarness, WrTableCellHarnessFilters, WrTableColumnChooserHarnessFilters, WrTableHarnessFilters, WrTableHeaderCellHarnessFilters, WrTableRowHarnessFilters
|
|
1240
1240
|
|
|
1241
1241
|
## ngwr/tabs
|
|
1242
1242
|
- import: `import { WrTabs } from 'ngwr/tabs'`
|
|
@@ -1296,7 +1296,7 @@
|
|
|
1296
1296
|
## ngwr/tour
|
|
1297
1297
|
- import: `import { WrTour } from 'ngwr/tour'`
|
|
1298
1298
|
- selector: `wr-tour-popup`
|
|
1299
|
-
- exports: WrTour, WrTourPopup, WrTourPlacement, WrTourStep
|
|
1299
|
+
- exports: WrTour, WrTourPopup, WrTourOptions, WrTourPlacement, WrTourStep
|
|
1300
1300
|
- keywords: onboarding, walkthrough, spotlight, wr-tour
|
|
1301
1301
|
- A guided tour that highlights one element at a time and explains it.
|
|
1302
1302
|
|
|
@@ -1335,7 +1335,7 @@
|
|
|
1335
1335
|
|
|
1336
1336
|
## ngwr/utils
|
|
1337
1337
|
- import: `import { wrIsDefined } from 'ngwr/utils'`
|
|
1338
|
-
- exports: WrMaybe, WrSafeAny, WrClassInput, wrIsDefined, wrIsNonEmptyArray, wrIsObservable, wrClamp, wrRound, wrDecimal, wrDecimalAdd, wrDecimalCompare, wrDecimalDivide, wrDecimalMultiply, wrDecimalRound, wrDecimalSubtract, WrDecimalLike, wrNumAttr, wrToClassList, wrIsSafeCssValue, wrResolveCssSize, WrResolveCssSizeOptions, WrResolvedCssSize, wrGetRootFontSize, wrGetFocusableElements, wrResolveCssColor, wrResolveCssColorChannels, wrTrapFocus, wrWatchColorScheme, wrCheckStyles, wrContentDispositionFileName, wrDownloadBlob, wrRestoreFocus, wrWatchDragCancel, WrWatchColorSchemeOptions, WrColorScheme, wrRandomId, wrNoop, wrDebounce, wrThrottle, WrDebouncedFn, WrThrottledFn, WR_KEYS, WR_KEY_LABELS, wrHasModifier, wrIsComposing, wrIsPrintableKey, WrKey, wrBadgeError, wrBadgeLog, wrBadgeWarn, wrInitials, WrInitialsOptions, WrInitialsOrder, WrInitialsStyle, WR_LIVE_LOCALE, wrFeature, WrFeature, wrAction, wrKeyedAction, wrResourceValue, WrAction, WrActionStatus, WrKeyedAction
|
|
1338
|
+
- exports: WrMaybe, WrSafeAny, WrClassInput, wrIsDefined, wrIsNonEmptyArray, wrIsObservable, wrClamp, wrRound, wrDecimal, wrDecimalAdd, wrDecimalCompare, wrDecimalDivide, wrDecimalMultiply, wrDecimalRound, wrDecimalSubtract, WrDecimalLike, wrNumAttr, wrToClassList, wrIsSafeCssValue, wrResolveCssSize, WrResolveCssSizeOptions, WrResolvedCssSize, wrGetRootFontSize, wrGetFocusableElements, wrResolveCssColor, wrResolveCssColorChannels, wrTrapFocus, wrWatchColorScheme, wrCheckStyles, wrContentDispositionFileName, wrDownloadBlob, wrRestoreFocus, wrWatchDragCancel, WrWatchColorSchemeOptions, WrColorScheme, wrRandomId, wrNoop, wrDebounce, wrThrottle, WrDebouncedFn, WrThrottledFn, WR_KEYS, WR_KEY_LABELS, wrHasModifier, wrIsComposing, wrIsPrintableKey, wrTypeahead, WrKey, WrTypeahead, WrTypeaheadItem, WrTypeaheadOptions, wrBadgeError, wrBadgeLog, wrBadgeWarn, wrInitials, WrInitialsOptions, WrInitialsOrder, WrInitialsStyle, WR_LIVE_LOCALE, wrFeature, WrFeature, wrAction, wrKeyedAction, wrResourceValue, WrAction, WrActionStatus, WrKeyedAction
|
|
1339
1339
|
- Small helpers: coercion (`wrNumAttr`), DOM and keyboard guards, maths, ids, `wrDebounce` / `wrThrottle`, `wrResolveCssColor`, and the shared types `WrMaybe` and `WrSafeAny`.
|
|
1340
1340
|
|
|
1341
1341
|
## ngwr/utils/router
|
package/llms.txt
CHANGED
|
@@ -19,7 +19,8 @@ ngwr.dev has six sections:
|
|
|
19
19
|
(`provideWr()`), migration, the agent skill and the MCP server.
|
|
20
20
|
e.g. https://ngwr.dev/docs/installation
|
|
21
21
|
- `/guides/*` — how to use a subsystem: theming, tokens, forms, overlays,
|
|
22
|
-
translations, SSR, testing
|
|
22
|
+
translations, SSR, testing, keyboard, ejecting a component.
|
|
23
|
+
e.g. https://ngwr.dev/guides/forms
|
|
23
24
|
- `/reference/<kind>/<name>` — one page per public API; `<kind>` is
|
|
24
25
|
components, directives, pipes, services, utils, validators or interfaces.
|
|
25
26
|
e.g. https://ngwr.dev/reference/components/select
|
|
@@ -195,6 +196,12 @@ one element at a time; a step whose target is missing is skipped, not floated.
|
|
|
195
196
|
Every component a template renders needs its line. A name from before v15
|
|
196
197
|
(`bar-chart`) lands on its nested entry point (`ngwr/charts/bar-chart`).
|
|
197
198
|
- `ng g ngwr:page <form|table|dashboard>` — starter page wired with ngwr.
|
|
199
|
+
- `ng g ngwr:eject <entry>` — copies one component's source into
|
|
200
|
+
`src/app/ngwr/<entry>` (`--path` to change it), fetched from GitHub at the tag
|
|
201
|
+
of the installed version, or from a local checkout with `--from <dir>`.
|
|
202
|
+
Imports of other entry points become package paths, private files it reads
|
|
203
|
+
go to `_ngwr-internal` beside it; `ng update` no longer updates the copy.
|
|
204
|
+
Guide: `/guides/eject`.
|
|
198
205
|
- `ng update ngwr` — runs upgrade migrations.
|
|
199
206
|
|
|
200
207
|
## Upgrading
|
|
@@ -245,7 +252,8 @@ list.
|
|
|
245
252
|
`provideWrFormErrors()` are gone, with `WR_CONFIG`, `useConfigValue()`,
|
|
246
253
|
`WR_RESPONSIVE_OVERLAYS`, `wrPresentAsSheet`, `WR_FORM_ERRORS` and
|
|
247
254
|
`WR_FORM_ERROR_FALLBACKS`.
|
|
248
|
-
- 15.6: the `bits` family of animation components is gone, with no
|
|
255
|
+
- 15.6: the `bits` family of animation components is gone, with no rename to
|
|
256
|
+
follow. The effects at `ngwr/animations/<name>` (15.7) are new components.
|
|
249
257
|
- v15, paths: every chart entry point is nested, so
|
|
250
258
|
`ngwr/bar-chart` is `ngwr/charts/bar-chart`; `ngwr/drag-drop` is `ngwr/sortable-list`, and the list no
|
|
251
259
|
longer owns its loop — write your own, one `<wr-sortable-item>` per row, with
|
|
@@ -351,40 +359,64 @@ The catalog is large: prefer an ngwr component, util, pipe, or validator over ra
|
|
|
351
359
|
markup, custom logic, or another library. e.g. use `wr-file-upload`, not a bare
|
|
352
360
|
`<input type="file">`; reach for `ngwr/utils`, `ngwr/pipes`, `ngwr/validators`
|
|
353
361
|
before writing your own. Full catalog: https://ngwr.dev/reference/components.
|
|
362
|
+
Type-ahead for a list of your own is `wrTypeahead()` from `ngwr/utils`, the
|
|
363
|
+
helper behind select, dropdown, context menu, tree and cascader:
|
|
364
|
+
https://ngwr.dev/reference/utils/wr-typeahead
|
|
354
365
|
|
|
355
366
|
## Common components (selector — import)
|
|
356
367
|
|
|
357
368
|
- **Form** — `wr-btn` (ngwr/button), `wr-speed-dial`, `wrInput` (ngwr/input),
|
|
358
369
|
`wr-textarea`, `wr-select` (ngwr/select; modes single/multi/search/tag, plus
|
|
359
|
-
`searchable` for a multi-with-typeahead
|
|
360
|
-
search), `wr-checkbox` (form state is `[(checked)]`; inside
|
|
370
|
+
`searchable` for a multi-with-typeahead, `(searchChange)` for server-side
|
|
371
|
+
search and `selectAll` for a "Select all" row in multi mode), `wr-checkbox` (form state is `[(checked)]`; inside
|
|
361
372
|
`<wr-checkbox-group>` the identity input is `checkboxValue`, NOT `value`),
|
|
362
373
|
`wr-radio-group` (ngwr/radio), `wr-switch`, `wr-slider`, `wr-segmented`,
|
|
363
374
|
`wr-rating`, `wr-knob`, `wr-input-number`, `wr-input-otp`, `wr-date-picker`
|
|
364
|
-
(date/time/datetime
|
|
365
|
-
|
|
375
|
+
(`mode` is date/time/datetime, or a period held as its first day:
|
|
376
|
+
week/month/quarter/year) and `wr-date-range-picker` (both in
|
|
377
|
+
ngwr/date-picker; the range value is `[start, end]`, hence a separate
|
|
378
|
+
component; its `mode` is date/datetime/month/quarter/year, and a range of
|
|
379
|
+
periods ends on the last day of the end period), `wr-cascader` (the
|
|
366
380
|
value is the whole path), `[wrMention]` (ngwr/mention, on a textarea or input),
|
|
367
|
-
`wr-file-upload
|
|
381
|
+
`wr-file-upload` (it never uploads: the app does, and reports each file
|
|
382
|
+
through `[status]` for a progress bar, a done mark or an error with
|
|
383
|
+
`(retry)`; `previews` and `acceptPaste` are opt-in), `wr-form-field` (in
|
|
384
|
+
ngwr/form), `wr-color-picker`,
|
|
368
385
|
`wr-transfer` (dual listbox; the value is the RIGHT pane), `wr-editor`
|
|
369
386
|
(ngwr/editor — rich text on ProseMirror, an optional peer; the value is the
|
|
370
387
|
document as a JSON tree, `null` when empty, validated against the schema; a
|
|
371
388
|
value it cannot read is refused and the editor keeps its document; an app that
|
|
372
389
|
stores HTML or markdown converts at its own boundary), `wr-schema-form`
|
|
373
390
|
(ngwr/schema-form; draws a form from the `WR_FIELD` metadata on a Signal Forms
|
|
374
|
-
schema, and skips a field that carries none
|
|
391
|
+
schema, and skips a field that carries none; field kinds, sections and
|
|
392
|
+
repeating groups come from the same metadata). There is no input mask: put
|
|
393
|
+
`ngx-mask` on the same `<input wrInput>`.
|
|
375
394
|
- **Data** — `wr-table` (column pin/resize/drag-reorder, row selection,
|
|
376
395
|
expandable rows, grouping, tree rows (`childrenKey`), summary rows,
|
|
377
|
-
CSV export, virtualized body)
|
|
378
|
-
|
|
396
|
+
CSV export, virtualized body; `[(hiddenColumns)]` with `columnChooser` for
|
|
397
|
+
the built-in button or `<wr-table-column-chooser [table]>` in your own menu;
|
|
398
|
+
`ng-template wrTableSelectionBar` for bulk actions over the selection;
|
|
399
|
+
`ng-template wrTableEditCell="<key>"` for an inline editor, whose commit
|
|
400
|
+
emits `(cellEdit)` and writes nothing; `(stateChange)` emits one
|
|
401
|
+
`WrTableState` (sort, filters, page, page size, column order, hidden
|
|
402
|
+
columns) and `[state]` restores it),
|
|
403
|
+
`wr-pagination`, `wr-tree` (a click on a branch row opens it unless
|
|
404
|
+
`[expandOnClick]="false"`; `loadChildren` for lazy children, `filter`,
|
|
405
|
+
`cascade` for cascading checks, `draggable` with `(nodeMove)`, applied by
|
|
406
|
+
`wrMoveTreeNode`, since the tree never writes `nodes`), `wr-list`, `wr-timeline`, `wr-calendar`,
|
|
379
407
|
`wr-event-calendar` (see Scheduling below), `wr-graph` (read-only layered
|
|
380
408
|
diagram: `nodes` plus `{ from, to }` parent-to-child `edges`, each node a
|
|
381
|
-
default card or an `ng-template wrGraphNode`
|
|
409
|
+
default card or an `ng-template wrGraphNode`; `zoomable` swaps scrolling
|
|
410
|
+
for zoom and pan; a provided `WrGraphLayout` replaces the layout and may
|
|
411
|
+
answer with a Promise), `wr-virtual-scroll`,
|
|
382
412
|
`wr-sortable-list` (drag-to-reorder, one `<wr-sortable-item>` per row from
|
|
383
413
|
your own loop, with `[wrDragHandle]` — all in ngwr/sortable-list).
|
|
384
414
|
- **Charts** — `wr-line-chart` (`showArea` makes it an area chart and
|
|
385
415
|
`stacked` stacks the series, both for a stacked area), `wr-bar-chart`
|
|
386
|
-
(grouped or `stacked` `series`, `orientation` `'horizontal'`,
|
|
387
|
-
drawn over the bars for a combo chart
|
|
416
|
+
(grouped or `stacked` `series`, `orientation` `'horizontal'`, `lines`
|
|
417
|
+
drawn over the bars for a combo chart, a grid and a value axis by default
|
|
418
|
+
with `showGrid` / `showAxis` / `showValues`, `legendPosition`, and
|
|
419
|
+
`loading` / `error` states),
|
|
388
420
|
`wr-donut-chart` (`pie` fills it to the centre), `wr-scatter-chart` (numeric
|
|
389
421
|
x and y, a `size` per point for bubbles), `wr-radar-chart` (`variant`
|
|
390
422
|
`'polar-area'` draws wedges), `wr-heatmap-chart`, `wr-funnel-chart`,
|
|
@@ -392,7 +424,9 @@ before writing your own. Full catalog: https://ngwr.dev/reference/components.
|
|
|
392
424
|
`wr-boxplot-chart`, `wr-candlestick-chart`, `wr-sparkline`, `wr-gauge`,
|
|
393
425
|
`wr-calendar-heatmap`, `wr-meter-group`, each its
|
|
394
426
|
own entry point at `ngwr/charts/<name>` (`ngwr/charts/bar-chart`), documented
|
|
395
|
-
under https://ngwr.dev/charts/, themed through the `--wr-*` tokens and
|
|
427
|
+
under https://ngwr.dev/charts/, themed through the `--wr-*` tokens - and the
|
|
428
|
+
shared chart theme, `--wr-chart-*` (grid, axis, labels, an eight-colour
|
|
429
|
+
palette `--wr-chart-1` to `--wr-chart-8`), listed on the bar chart page - and each
|
|
396
430
|
with a hover tooltip. `ul[wr-chart-legend]` (ngwr/charts/chart-legend) is the
|
|
397
431
|
legend the bar, line, donut, meter-group, scatter and radar charts draw, and
|
|
398
432
|
a key of its own beside several charts; `toggleableLegend` on those charts
|
|
@@ -535,25 +569,28 @@ before writing your own. Full catalog: https://ngwr.dev/reference/components.
|
|
|
535
569
|
Every control, every overlay and every chart has one: the form controls
|
|
536
570
|
(`button`, `input`, `textarea`, `checkbox`, `switch`, `radio`, `select`,
|
|
537
571
|
`input-number`, `input-otp`, `slider`, `rating`, `file-upload`, `color-picker`,
|
|
538
|
-
`knob`, `segmented`, `editor`,
|
|
539
|
-
(`date-picker`, `dropdown`, `popover`, `dialog`,
|
|
540
|
-
`toast`, `context-menu`, `popconfirm`, `command-palette`,
|
|
541
|
-
`mention`), the data views (`table`, `tree`, `graph
|
|
542
|
-
disclosure set (`tabs`, `stepper`,
|
|
543
|
-
`
|
|
544
|
-
`
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
`
|
|
548
|
-
|
|
549
|
-
|
|
572
|
+
`knob`, `segmented`, `editor`, `form` for `<wr-form-field>` and
|
|
573
|
+
`schema-form`), the overlays (`date-picker`, `dropdown`, `popover`, `dialog`,
|
|
574
|
+
`drawer`, `toast`, `context-menu`, `popconfirm`, `command-palette`,
|
|
575
|
+
`cascader`, `mention`), the data views (`table`, `tree`, `graph`,
|
|
576
|
+
`sortable-list`), the navigation and disclosure set (`tabs`, `stepper`,
|
|
577
|
+
`carousel`, `pagination`, `collapse`, `transfer`, `sidebar`, `breadcrumbs`,
|
|
578
|
+
`burger`), and `alert`, `load-state`, `comment`, `compare`, `copy-value`,
|
|
579
|
+
`date-stamp`, `resizable`, `pull-to-refresh`, `splitter`, `speed-dial`,
|
|
580
|
+
`lightbox`, `tour`, `calendar`, `event-calendar`, `window` and
|
|
581
|
+
`image-cropper`. `WrCalendarDayHarness` ships under two entry points, since a
|
|
582
|
+
date picker's popup IS a calendar. The animation effects and
|
|
583
|
+
`virtual-scroll` have none: what they do is a canvas, a transition or a
|
|
584
|
+
measured viewport, so every honest method would read the same for a working
|
|
585
|
+
component and a broken one.
|
|
550
586
|
Load them with `TestbedHarnessEnvironment` and narrow with
|
|
551
587
|
`WrButtonHarness.with({ text: 'Save' })` instead of querying ngwr's markup.
|
|
552
588
|
Dialog, toast and a service-opened drawer render outside the fixture — load
|
|
553
589
|
those from `documentRootLoader()`; everything else is an element in your
|
|
554
590
|
template, and where its panel is in the overlay the harness reaches it for you,
|
|
555
591
|
scoped to that instance by the id the trigger publishes.
|
|
556
|
-
Many are families: `WrTableHarness` + row / cell / header-cell
|
|
592
|
+
Many are families: `WrTableHarness` + row / cell / header-cell / column
|
|
593
|
+
chooser, `WrSchemaFormHarness` + section / field / array, `WrTreeHarness`
|
|
557
594
|
+ node, `WrCascaderHarness` + column / option, `WrCommandPaletteHarness` +
|
|
558
595
|
group / item, `WrRadioGroupHarness` + radio, `WrSliderHarness` + thumb,
|
|
559
596
|
`WrInputOtpHarness` + box, `WrRatingHarness` + item, `WrContextMenuHarness` +
|
package/package.json
CHANGED
|
@@ -16,6 +16,12 @@
|
|
|
16
16
|
@use '../../button/styles' as button-styles; // WrButton
|
|
17
17
|
@include theme.loaded('popconfirm');
|
|
18
18
|
|
|
19
|
+
// The pane takes focus on open, as `tabindex="-1"`: the keyboard is inside the
|
|
20
|
+
// panel and no button is lit. A container is not a control to ring.
|
|
21
|
+
.wr-popconfirm-overlay:focus {
|
|
22
|
+
outline: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
19
25
|
.wr-popconfirm-overlay {
|
|
20
26
|
> .wr-popconfirm {
|
|
21
27
|
display: block;
|
|
@@ -28,9 +28,10 @@
|
|
|
28
28
|
transform-origin: top left;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
// A click popover
|
|
32
|
-
// target Tab never reaches, so it reports
|
|
33
|
-
// square `auto` outline otherwise boxed
|
|
31
|
+
// A click popover's pane is `tabindex="-1"` and takes focus under
|
|
32
|
+
// `autoFocus="dialog"`: a programmatic target Tab never reaches, so it reports
|
|
33
|
+
// no state and draws no ring. The UA's square `auto` outline otherwise boxed
|
|
34
|
+
// the rounded panel and its arrow.
|
|
34
35
|
.wr-popover-overlay:focus {
|
|
35
36
|
outline: none;
|
|
36
37
|
}
|
|
@@ -46,7 +47,8 @@
|
|
|
46
47
|
// hint at 400% zoom has to be able to reach the text — and an inert pane makes
|
|
47
48
|
// the `mouseenter` that keeps it open impossible to fire. It does mean the chip
|
|
48
49
|
// now intercepts what is under it, which is the area it draws on and no more;
|
|
49
|
-
// the one part of that worth avoiding is the arrow, opted back out below.
|
|
50
|
+
// the one part of that worth avoiding is the arrow, opted back out below. A chart's
|
|
51
|
+
// chip is the exception, by default: see `useChartTooltip()`.
|
|
50
52
|
|
|
51
53
|
.wr-tooltip {
|
|
52
54
|
// Follows the theme instead of inverting against it: on a dark canvas the
|
|
@@ -101,14 +103,16 @@
|
|
|
101
103
|
}
|
|
102
104
|
|
|
103
105
|
// The chip a chart's hover tooltip renders into (`useChartTooltip()`, used by
|
|
104
|
-
// every chart
|
|
106
|
+
// every chart). It carries `.wr-tooltip`
|
|
105
107
|
// as well, so everything above is its look and the arrow below is its arrow; this
|
|
106
108
|
// only lays out the inside.
|
|
107
109
|
//
|
|
108
|
-
//
|
|
109
|
-
//
|
|
110
|
-
//
|
|
111
|
-
//
|
|
110
|
+
// On one line the label is told from the value by WEIGHT. Under a heading, each row's
|
|
111
|
+
// name is muted and its value a step larger, so the numbers are what the eye lands on.
|
|
112
|
+
// The muted name is a share of the chip's own colour rather than the muted role: the
|
|
113
|
+
// chip's colours are the two `--wr-tooltip-*` hooks, and the documented way to invert
|
|
114
|
+
// them makes the chip dark - a grey picked against the light surface would be the one
|
|
115
|
+
// thing that did not follow.
|
|
112
116
|
.wr-chart-tooltip {
|
|
113
117
|
--wr-chart-tooltip-gap: var(--wr-space-sm);
|
|
114
118
|
--wr-chart-tooltip-row-gap: var(--wr-space-xs);
|
|
@@ -145,10 +149,10 @@
|
|
|
145
149
|
}
|
|
146
150
|
}
|
|
147
151
|
|
|
148
|
-
// Several values about one section — every series at a radar's axis
|
|
149
|
-
// point's x, y and size: the heading on the first line, a row
|
|
150
|
-
// A column whose lines all take the chip's width, so each row's
|
|
151
|
-
// inline end and the numbers line up
|
|
152
|
+
// Several values about one section — every series at a radar's axis or a line
|
|
153
|
+
// chart's x, a scatter point's x, y and size: the heading on the first line, a row
|
|
154
|
+
// per value under it. A column whose lines all take the chip's width, so each row's
|
|
155
|
+
// value lands on the inline end and the numbers line up.
|
|
152
156
|
&--rows {
|
|
153
157
|
flex-direction: column;
|
|
154
158
|
align-items: stretch;
|
|
@@ -188,15 +192,22 @@
|
|
|
188
192
|
// Takes the room the value leaves, and wraps inside it once the chip reaches the
|
|
189
193
|
// tooltip's `max-width`, rather than pushing the value out of the chip.
|
|
190
194
|
&__row-label {
|
|
195
|
+
// 72% of the chip's text over its background: 7.06:1 on the light surface and 8.47:1
|
|
196
|
+
// on the dark one with the default hooks, and it follows an inverted chip.
|
|
197
|
+
--wr-chart-tooltip-row-label-color: color-mix(in srgb, currentColor 72%, transparent);
|
|
198
|
+
|
|
191
199
|
flex: 1 1 auto;
|
|
192
200
|
min-width: 0;
|
|
193
201
|
overflow-wrap: anywhere;
|
|
202
|
+
color: var(--wr-chart-tooltip-row-label-color);
|
|
194
203
|
}
|
|
195
204
|
|
|
196
205
|
&__row-value {
|
|
197
206
|
--wr-chart-tooltip-row-value-font-weight: var(--wr-font-weight-semibold);
|
|
207
|
+
--wr-chart-tooltip-row-value-font-size: var(--wr-text-sm);
|
|
198
208
|
|
|
199
209
|
flex: none;
|
|
210
|
+
font-size: var(--wr-chart-tooltip-row-value-font-size);
|
|
200
211
|
font-weight: var(--wr-chart-tooltip-row-value-font-weight);
|
|
201
212
|
font-variant-numeric: tabular-nums;
|
|
202
213
|
// As the lone value above: the sign stays before the digits on an RTL page.
|
|
@@ -28,6 +28,11 @@
|
|
|
28
28
|
"schema": "./component-style/schema.json",
|
|
29
29
|
"aliases": ["style"]
|
|
30
30
|
},
|
|
31
|
+
"eject": {
|
|
32
|
+
"description": "Copy a component's source into the app, with its imports of other entry points rewritten to their package paths. `ng update` no longer updates the copy.",
|
|
33
|
+
"factory": "./eject/index#default",
|
|
34
|
+
"schema": "./eject/schema.json"
|
|
35
|
+
},
|
|
31
36
|
"page": {
|
|
32
37
|
"description": "Scaffold a starter page (form / table / dashboard) wired up with ngwr components.",
|
|
33
38
|
"factory": "./page/index#default",
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
const node_fs_1 = require("node:fs");
|
|
10
|
+
const node_path_1 = require("node:path");
|
|
11
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
12
|
+
const source_1 = require("./source");
|
|
13
|
+
/**
|
|
14
|
+
* The manifest of the installed ngwr, two levels up from the compiled schematic:
|
|
15
|
+
* `node_modules/ngwr/package.json`. `null` where that cannot be read, as in a
|
|
16
|
+
* spec, which loads this source as an ES module and passes its own.
|
|
17
|
+
*/
|
|
18
|
+
function shippedManifest() {
|
|
19
|
+
if (typeof __dirname !== 'string')
|
|
20
|
+
return null;
|
|
21
|
+
const file = (0, node_path_1.join)(__dirname, '..', '..', 'package.json');
|
|
22
|
+
if (!(0, node_fs_1.existsSync)(file))
|
|
23
|
+
return null;
|
|
24
|
+
const manifest = JSON.parse((0, node_fs_1.readFileSync)(file, 'utf8'));
|
|
25
|
+
return manifest.name === 'ngwr' && manifest.version && manifest.exports
|
|
26
|
+
? { version: manifest.version, exports: manifest.exports, repository: manifest.repository }
|
|
27
|
+
: null;
|
|
28
|
+
}
|
|
29
|
+
/** The library folder of a checkout given as its root or as `projects/lib` itself. */
|
|
30
|
+
function localLibrary(from) {
|
|
31
|
+
const dir = (0, node_path_1.isAbsolute)(from) ? from : (0, node_path_1.resolve)(process.cwd(), from);
|
|
32
|
+
const lib = [(0, node_path_1.join)(dir, 'projects', 'lib'), dir].find(candidate => (0, node_fs_1.existsSync)((0, node_path_1.join)(candidate, 'package.json')));
|
|
33
|
+
if (!lib) {
|
|
34
|
+
throw new schematics_1.SchematicsException(`ngwr:eject: ${from} is not an ngwr checkout: no package.json there or under its projects/lib.`);
|
|
35
|
+
}
|
|
36
|
+
return lib;
|
|
37
|
+
}
|
|
38
|
+
/** Reads the sources of a release from GitHub, at the tag `v<version>`. */
|
|
39
|
+
function remoteSource(manifest, fetchFile) {
|
|
40
|
+
return async (file) => {
|
|
41
|
+
const url = (0, source_1.ejectRawUrl)(manifest.version, file, manifest.repository);
|
|
42
|
+
let response;
|
|
43
|
+
try {
|
|
44
|
+
response = await fetchFile(url);
|
|
45
|
+
}
|
|
46
|
+
catch (error) {
|
|
47
|
+
throw new schematics_1.SchematicsException(`ngwr:eject: could not reach ${url} (${error instanceof Error ? error.message : String(error)}). ` +
|
|
48
|
+
'The published package carries no sources, so they are fetched from GitHub. Offline, pass ' +
|
|
49
|
+
'`--from <dir>` with a local checkout of the ngwr repository.');
|
|
50
|
+
}
|
|
51
|
+
if (response.status === 404)
|
|
52
|
+
return null;
|
|
53
|
+
if (!response.ok)
|
|
54
|
+
throw new schematics_1.SchematicsException(`ngwr:eject: ${url} answered ${response.status}.`);
|
|
55
|
+
return response.text();
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
/** How many of the files sit in the shared folder. */
|
|
59
|
+
function sharedCount(files, isShared) {
|
|
60
|
+
return files.filter(file => isShared(file.path)).length;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* `ng g ngwr:eject <entry>`: copies one component's source into the app, where
|
|
64
|
+
* it can be edited freely and `ng update` no longer reaches it.
|
|
65
|
+
*
|
|
66
|
+
* The sources are fetched from the repository at the tag of the installed
|
|
67
|
+
* version, since the tarball ships compiled output only; `--from` reads a local
|
|
68
|
+
* checkout instead. Imports that reach other entry points are rewritten to
|
|
69
|
+
* their package paths, so the copy still uses the installed ngwr for everything
|
|
70
|
+
* but itself; a private file it reads, which no package path exposes, is copied
|
|
71
|
+
* into `_ngwr-internal` beside the ejected folder, once for every component
|
|
72
|
+
* ejected there. See `./source` for which files are copied and how.
|
|
73
|
+
*
|
|
74
|
+
* `manifest` and `fetchFile` are parameters so a spec can pass its own; the
|
|
75
|
+
* devkit calls this with the options alone.
|
|
76
|
+
*/
|
|
77
|
+
function eject(options, manifest = shippedManifest(), fetchFile = url => fetch(url)) {
|
|
78
|
+
return async (tree, context) => {
|
|
79
|
+
const name = options.entry
|
|
80
|
+
.trim()
|
|
81
|
+
.replace(/^['"]+|['"]+$/g, '')
|
|
82
|
+
.replace(/^ngwr\//, '')
|
|
83
|
+
.replace(/^\/+|\/+$/g, '');
|
|
84
|
+
if (!name)
|
|
85
|
+
throw new schematics_1.SchematicsException('ngwr:eject: missing `entry`.');
|
|
86
|
+
if (!manifest)
|
|
87
|
+
throw new schematics_1.SchematicsException('ngwr:eject: could not read the installed ngwr manifest.');
|
|
88
|
+
const { logger } = context;
|
|
89
|
+
const entry = (0, source_1.ejectTarget)(name, manifest.exports);
|
|
90
|
+
if (entry !== name)
|
|
91
|
+
logger.info(`ngwr: ${name} is ngwr/${entry}.`);
|
|
92
|
+
const refusal = (0, source_1.ejectRefusal)(entry, manifest.exports);
|
|
93
|
+
if (refusal)
|
|
94
|
+
throw new schematics_1.SchematicsException(`ngwr:eject: ${refusal}`);
|
|
95
|
+
let read;
|
|
96
|
+
let version = manifest.version;
|
|
97
|
+
if (options.from) {
|
|
98
|
+
const lib = localLibrary(options.from);
|
|
99
|
+
version =
|
|
100
|
+
JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)(lib, 'package.json'), 'utf8')).version ?? version;
|
|
101
|
+
read = file => Promise.resolve((0, node_fs_1.existsSync)((0, node_path_1.join)(lib, file)) ? (0, node_fs_1.readFileSync)((0, node_path_1.join)(lib, file), 'utf8') : null);
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
read = remoteSource(manifest, fetchFile);
|
|
105
|
+
}
|
|
106
|
+
const dest = (options.path?.trim() ? options.path.trim() : `src/app/ngwr/${entry}`).replace(/^\/+|\/+$/g, '');
|
|
107
|
+
const ejected = await (0, source_1.collectEjected)(entry, manifest.exports, version, read, node_path_1.posix.basename(dest));
|
|
108
|
+
if (!ejected) {
|
|
109
|
+
throw new schematics_1.SchematicsException(options.from
|
|
110
|
+
? `ngwr:eject: ${options.from} has no ${entry}/public-api.ts.`
|
|
111
|
+
: `ngwr:eject: ${(0, source_1.ejectRawUrl)(version, `${entry}/public-api.ts`, manifest.repository)} does not exist: ` +
|
|
112
|
+
`there is no v${version} tag, or it has no ngwr/${entry}. Pass \`--from <dir>\` with a local checkout.`);
|
|
113
|
+
}
|
|
114
|
+
if (!ejected.declarable) {
|
|
115
|
+
throw new schematics_1.SchematicsException(`ngwr:eject: ngwr/${entry} declares no component or directive, so there is nothing to eject.`);
|
|
116
|
+
}
|
|
117
|
+
const shared = node_path_1.posix.join(dest, '..', source_1.EJECT_SHARED_DIR);
|
|
118
|
+
const placed = ejected.files.map(file => ({ ...file, path: node_path_1.posix.join(dest, file.path) }));
|
|
119
|
+
const isShared = (path) => path.startsWith(`${shared}/`);
|
|
120
|
+
const taken = placed.find(file => !isShared(file.path) && tree.exists(file.path));
|
|
121
|
+
if (taken) {
|
|
122
|
+
throw new schematics_1.SchematicsException(`ngwr:eject: ${taken.path} already exists. Delete the folder first, or pass another \`--path\`.`);
|
|
123
|
+
}
|
|
124
|
+
// A private file an earlier eject brought stays as it is: it may have been edited since.
|
|
125
|
+
const kept = [];
|
|
126
|
+
let brought = 0;
|
|
127
|
+
for (const file of placed) {
|
|
128
|
+
if (!tree.exists(file.path)) {
|
|
129
|
+
tree.create(file.path, file.content);
|
|
130
|
+
if (isShared(file.path))
|
|
131
|
+
brought++;
|
|
132
|
+
}
|
|
133
|
+
else if (tree.readText(file.path) !== file.content) {
|
|
134
|
+
kept.push(file.path);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
logger.info(`✓ Copied ngwr/${entry}@${version} into ${dest} (${placed.length - sharedCount(placed, isShared)} files).`);
|
|
138
|
+
if (sharedCount(placed, isShared) > 0) {
|
|
139
|
+
logger.info(` It reads ${sharedCount(placed, isShared)} private files of ngwr, kept in ${shared} and shared by the ` +
|
|
140
|
+
`components ejected beside it (${brought} added now).`);
|
|
141
|
+
}
|
|
142
|
+
logger.info(` Import it from that folder instead of 'ngwr/${entry}'. \`ng update\` no longer updates this copy.`);
|
|
143
|
+
if (ejected.styles) {
|
|
144
|
+
const sheet = `${dest}/${ejected.styles.replace(/\/_index\.scss$/, '')}`;
|
|
145
|
+
logger.info(` In the global stylesheet, replace \`@use 'ngwr/${entry}';\` with a \`@use\` of ${sheet}.`);
|
|
146
|
+
}
|
|
147
|
+
logger.info(` The copy keeps its selectors and classes: never import it and 'ngwr/${entry}' into the same component. ` +
|
|
148
|
+
'To use both, rename the selector and the `.wr-*` classes in the copy.');
|
|
149
|
+
for (const path of kept) {
|
|
150
|
+
logger.warn(`ngwr: ${path} already exists and differs from ngwr@${version}; it was left as it is.`);
|
|
151
|
+
}
|
|
152
|
+
for (const warning of ejected.warnings) {
|
|
153
|
+
logger.warn(`ngwr: ${node_path_1.posix.join(dest, warning.file)}:${warning.line} '${warning.specifier}' ${warning.reason}.`);
|
|
154
|
+
}
|
|
155
|
+
return tree;
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
exports.default = eject;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "ngwr-eject",
|
|
4
|
+
"title": "ngwr eject",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"entry": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The component's path under `ngwr/`, nested ones included — e.g. `button`, `select`, `charts/bar-chart`.",
|
|
10
|
+
"$default": { "$source": "argv", "index": 0 },
|
|
11
|
+
"x-prompt": "Which component? (e.g. button, select, charts/bar-chart)"
|
|
12
|
+
},
|
|
13
|
+
"path": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"format": "path",
|
|
16
|
+
"description": "Folder the copy is written to, from the workspace root. Defaults to `src/app/ngwr/<entry>`."
|
|
17
|
+
},
|
|
18
|
+
"from": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "A local checkout of the ngwr repository (its root, or its `projects/lib`) to copy from, instead of fetching the sources of the installed version from GitHub."
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"required": ["entry"]
|
|
24
|
+
}
|