Skip to content

Commit 277244c

Browse files
committed
chore: rename props
1 parent 29a2494 commit 277244c

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

packages/pluggableWidgets/datagrid-web/src/Datagrid.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,11 +371,11 @@
371371
<translation lang="en_US">Select all rows</translation>
372372
</translations>
373373
</property>
374-
<property key="sCountFmtSingular" type="textTemplate" required="false">
374+
<property key="selectedCountTemplateSingular" type="textTemplate" required="false">
375375
<caption>Row count singular</caption>
376376
<description>Must include '%d' to denote number position ('%d row selected')</description>
377377
</property>
378-
<property key="sCountFmtPlural" type="textTemplate" required="false">
378+
<property key="selectedCountTemplatePlural" type="textTemplate" required="false">
379379
<caption>Row count plural</caption>
380380
<description>Must include '%d' to denote number position ('%d rows selected')</description>
381381
</property>

packages/pluggableWidgets/datagrid-web/typings/DatagridProps.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ export interface DatagridContainerProps {
125125
cancelExportLabel?: DynamicValue<string>;
126126
selectRowLabel?: DynamicValue<string>;
127127
selectAllRowsLabel?: DynamicValue<string>;
128-
sCountFmtSingular?: DynamicValue<string>;
129-
sCountFmtPlural?: DynamicValue<string>;
128+
selectedCountTemplateSingular?: DynamicValue<string>;
129+
selectedCountTemplatePlural?: DynamicValue<string>;
130130
}
131131

132132
export interface DatagridPreviewProps {
@@ -178,6 +178,6 @@ export interface DatagridPreviewProps {
178178
cancelExportLabel: string;
179179
selectRowLabel: string;
180180
selectAllRowsLabel: string;
181-
sCountFmtSingular: string;
182-
sCountFmtPlural: string;
181+
selectedCountTemplateSingular: string;
182+
selectedCountTemplatePlural: string;
183183
}

packages/pluggableWidgets/gallery-web/src/Gallery.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,11 @@
190190
<caption>Item description</caption>
191191
<description>Assistive technology will read this upon reaching each gallery item.</description>
192192
</property>
193-
<property key="sCountFmtSingular" type="textTemplate" required="false">
193+
<property key="selectedCountTemplateSingular" type="textTemplate" required="false">
194194
<caption>Item count singular</caption>
195195
<description>Must include '%d' to denote number position ('%d item selected')</description>
196196
</property>
197-
<property key="sCountFmtPlural" type="textTemplate" required="false">
197+
<property key="selectedCountTemplatePlural" type="textTemplate" required="false">
198198
<caption>Item count plural</caption>
199199
<description>Must include '%d' to denote number position ('%d items selected')</description>
200200
</property>

packages/pluggableWidgets/gallery-web/typings/GalleryProps.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ export interface GalleryContainerProps {
5555
emptyMessageTitle?: DynamicValue<string>;
5656
ariaLabelListBox?: DynamicValue<string>;
5757
ariaLabelItem?: ListExpressionValue<string>;
58-
sCountFmtSingular?: DynamicValue<string>;
59-
sCountFmtPlural?: DynamicValue<string>;
58+
selectedCountTemplateSingular?: DynamicValue<string>;
59+
selectedCountTemplatePlural?: DynamicValue<string>;
6060
}
6161

6262
export interface GalleryPreviewProps {
@@ -101,6 +101,6 @@ export interface GalleryPreviewProps {
101101
emptyMessageTitle: string;
102102
ariaLabelListBox: string;
103103
ariaLabelItem: string;
104-
sCountFmtSingular: string;
105-
sCountFmtPlural: string;
104+
selectedCountTemplateSingular: string;
105+
selectedCountTemplatePlural: string;
106106
}

packages/shared/widget-plugin-grid/src/selection/stores/SelectionCountStore.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { computed, makeObservable } from "mobx";
44

55
type Gate = DerivedPropsGate<{
66
itemSelection?: SelectionSingleValue | SelectionMultiValue;
7-
sCountFmtSingular?: DynamicValue<string>;
8-
sCountFmtPlural?: DynamicValue<string>;
7+
selectedCountTemplateSingular?: DynamicValue<string>;
8+
selectedCountTemplatePlural?: DynamicValue<string>;
99
}>;
1010

1111
export class SelectionCountStore {
@@ -27,11 +27,11 @@ export class SelectionCountStore {
2727
}
2828

2929
get fmtSingular(): string {
30-
return this.gate.props.sCountFmtSingular?.value || this.singular;
30+
return this.gate.props.selectedCountTemplateSingular?.value || this.singular;
3131
}
3232

3333
get fmtPlural(): string {
34-
return this.gate.props.sCountFmtPlural?.value || this.plural;
34+
return this.gate.props.selectedCountTemplatePlural?.value || this.plural;
3535
}
3636

3737
get selectedCount(): number {

0 commit comments

Comments
 (0)