@mtes-mct/monitor-ui 18.5.0 → 18.6.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/CHANGELOG.md +37 -3
- package/elements/Label.d.ts +3 -3
- package/elements/Label.d.ts.map +1 -1
- package/fields/TextInput.d.ts.map +1 -1
- package/index.js +29 -29
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,48 @@
|
|
|
1
|
-
## [18.
|
|
1
|
+
## [18.5.1](https://github.com/MTES-MCT/monitor-ui/compare/v18.5.0...v18.5.1) (2024-07-09)
|
|
2
|
+
|
|
3
|
+
### Reverts
|
|
2
4
|
|
|
5
|
+
- Revert "fix(fields): isHidden with display none makes label unaccessible"
|
|
6
|
+
([f9f2ae4](https://github.com/MTES-MCT/monitor-ui/commit/f9f2ae4d61784810ed60483ced4f3f30875f8a21))
|
|
7
|
+
- Revert "fix(components): add $ to isHidden"
|
|
8
|
+
([19f3dc9](https://github.com/MTES-MCT/monitor-ui/commit/19f3dc9a0560ee85efe52d9be0ec935061d1469b))
|
|
9
|
+
|
|
10
|
+
## [18.5.0](https://github.com/MTES-MCT/monitor-ui/compare/v18.4.2...v18.5.0) (2024-07-08)
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- **components:** add an international french format
|
|
15
|
+
([ca61f53](https://github.com/MTES-MCT/monitor-ui/commit/ca61f530913fd37ebc9f84f90811761915cfe8f2))
|
|
16
|
+
- **components:** redo overwrite property
|
|
17
|
+
([f2e376e](https://github.com/MTES-MCT/monitor-ui/commit/f2e376eb91b7eeecf3d6c61385db481f739f64fd))
|
|
3
18
|
|
|
4
19
|
### Bug Fixes
|
|
5
20
|
|
|
6
|
-
|
|
21
|
+
- **components:** add $ to isHidden
|
|
22
|
+
([bcdd45f](https://github.com/MTES-MCT/monitor-ui/commit/bcdd45f14c91cd8e385c0d28be659549a91e7687))
|
|
23
|
+
- **fields:** isHidden with display none makes label unaccessible
|
|
24
|
+
([4253739](https://github.com/MTES-MCT/monitor-ui/commit/4253739005523a6f145308db45982dda22ad515d))
|
|
25
|
+
|
|
26
|
+
### Buid System & Dependencies
|
|
27
|
+
|
|
28
|
+
- **dev-deps:** bump @semantic-release/commit-analyzer
|
|
29
|
+
([32e8c03](https://github.com/MTES-MCT/monitor-ui/commit/32e8c03375133d5c323af4ea4c62f8256000ddea))
|
|
30
|
+
- **dev-deps:** bump the all-non-major-dependencies group
|
|
31
|
+
([6d41b26](https://github.com/MTES-MCT/monitor-ui/commit/6d41b26e95ffbc29372cf9b582bc86d9c68e4448))
|
|
32
|
+
- **dev-deps:** bump the non-major-dev-dependencies group with 3 updates
|
|
33
|
+
([ed2063d](https://github.com/MTES-MCT/monitor-ui/commit/ed2063dd06349e88071835787d4447fb3e615121))
|
|
34
|
+
|
|
35
|
+
## [18.4.2](https://github.com/MTES-MCT/monitor-ui/compare/v18.4.1...v18.4.2) (2024-07-03)
|
|
36
|
+
|
|
37
|
+
### Bug Fixes
|
|
7
38
|
|
|
39
|
+
- **components:** add tertiary to dropdown
|
|
40
|
+
([805e34e](https://github.com/MTES-MCT/monitor-ui/commit/805e34eb2e6a1c8d44e1b9c738f77c8f13186721))
|
|
8
41
|
|
|
9
42
|
### Buid System & Dependencies
|
|
10
43
|
|
|
11
|
-
|
|
44
|
+
- **dev-deps:** bump the non-major-dev-dependencies group across 1 directory with 17 updates
|
|
45
|
+
([5313127](https://github.com/MTES-MCT/monitor-ui/commit/53131272261e00bbf36e68b8a2e051a6c06a9b86))
|
|
12
46
|
|
|
13
47
|
## [18.4.1](https://github.com/MTES-MCT/monitor-ui/compare/v18.4.0...v18.4.1) (2024-07-02)
|
|
14
48
|
|
package/elements/Label.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { LabelHTMLAttributes } from 'react';
|
|
2
2
|
export type LabelProps = LabelHTMLAttributes<HTMLLabelElement> & {
|
|
3
|
-
$isHidden?: boolean | undefined;
|
|
4
3
|
$isRequired?: boolean | undefined;
|
|
5
4
|
disabled?: boolean | undefined;
|
|
6
5
|
hasError?: boolean | undefined;
|
|
6
|
+
isHidden?: boolean | undefined;
|
|
7
7
|
};
|
|
8
8
|
export declare const Label: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, LabelHTMLAttributes<HTMLLabelElement> & {
|
|
9
|
-
$isHidden?: boolean | undefined;
|
|
10
9
|
$isRequired?: boolean | undefined;
|
|
11
10
|
disabled?: boolean | undefined;
|
|
12
11
|
hasError?: boolean | undefined;
|
|
13
|
-
|
|
12
|
+
isHidden?: boolean | undefined;
|
|
13
|
+
}, "disabled" | keyof LabelHTMLAttributes<HTMLLabelElement> | "isHidden" | "$isRequired" | "hasError">;
|
|
14
14
|
//# sourceMappingURL=Label.d.ts.map
|
package/elements/Label.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../src/elements/Label.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAA;AAEhD,MAAM,MAAM,UAAU,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,GAAG;IAC/D,
|
|
1
|
+
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../src/elements/Label.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAA;AAEhD,MAAM,MAAM,UAAU,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,GAAG;IAC/D,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACjC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC/B,CAAA;AACD,eAAO,MAAM,KAAK;kBALF,OAAO,GAAG,SAAS;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AAA;IACvB,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACnC,uBAAuB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7C,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,KAAK,UAAU,CAAC,IAAI,CAAC,CAAA;IAC9D,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC3B,CAAA;AACD,wBAAgB,SAAS,CAAC,EACxB,SAAS,EACT,QAAgB,EAChB,KAAK,EACL,IAAI,EACJ,oBAA4B,EAC5B,aAAqB,EACrB,OAAe,EACf,UAAkB,EAClB,aAAqB,EACrB,aAAqB,EACrB,uBAA+B,EAC/B,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,QAAgB,EAChB,IAAkB,EAClB,KAAK,EACL,IAAa,EACb,KAAK,EACL,GAAG,aAAa,EACjB,EAAE,cAAc,2CAgFhB"}
|
package/index.js
CHANGED
|
@@ -54234,6 +54234,7 @@ const Label = styled.label.attrs((props)=>({
|
|
|
54234
54234
|
}))`
|
|
54235
54235
|
color: ${(p)=>// eslint-disable-next-line no-nested-ternary
|
|
54236
54236
|
p.disabled ? p.theme.color.lightGray : p.hasError ? p.theme.color.maximumRed : p.theme.color.slateGray};
|
|
54237
|
+
display: ${(p)=>p.isHidden ? 'none' : 'block'};
|
|
54237
54238
|
font-size: 13px;
|
|
54238
54239
|
line-height: 1.3846;
|
|
54239
54240
|
margin-bottom: 4px;
|
|
@@ -54242,14 +54243,6 @@ const Label = styled.label.attrs((props)=>({
|
|
|
54242
54243
|
content:" *";
|
|
54243
54244
|
color: ${p.theme.color.maximumRed};
|
|
54244
54245
|
}`}
|
|
54245
|
-
${(p)=>p.$isHidden && `
|
|
54246
|
-
position:absolute;
|
|
54247
|
-
left:-10000px;
|
|
54248
|
-
top:auto;
|
|
54249
|
-
width:1px;
|
|
54250
|
-
height:1px;
|
|
54251
|
-
overflow:hidden;
|
|
54252
|
-
`}
|
|
54253
54246
|
`;
|
|
54254
54247
|
|
|
54255
54248
|
const Link$1 = styled.a`
|
|
@@ -55184,10 +55177,10 @@ function CheckPicker({ className, customSearch, customSearchMinQueryLength = 1,
|
|
|
55184
55177
|
style: style,
|
|
55185
55178
|
children: [
|
|
55186
55179
|
/*#__PURE__*/ jsx(Label, {
|
|
55187
|
-
$isHidden: isLabelHidden,
|
|
55188
55180
|
$isRequired: isRequired,
|
|
55189
55181
|
disabled: disabled,
|
|
55190
55182
|
htmlFor: originalProps.name,
|
|
55183
|
+
isHidden: isLabelHidden,
|
|
55191
55184
|
children: label
|
|
55192
55185
|
}),
|
|
55193
55186
|
/*#__PURE__*/ jsx(StyledRsuitePickerBox, {
|
|
@@ -67747,10 +67740,10 @@ function MultiCascader({ className, disabled = false, error, isErrorMessageHidde
|
|
|
67747
67740
|
style: style,
|
|
67748
67741
|
children: [
|
|
67749
67742
|
/*#__PURE__*/ jsx(Label, {
|
|
67750
|
-
$isHidden: isLabelHidden,
|
|
67751
67743
|
$isRequired: isRequired,
|
|
67752
67744
|
disabled: disabled,
|
|
67753
67745
|
htmlFor: originalProps.name,
|
|
67746
|
+
isHidden: isLabelHidden,
|
|
67754
67747
|
children: label
|
|
67755
67748
|
}),
|
|
67756
67749
|
/*#__PURE__*/ jsx(Box$1, {
|
|
@@ -67880,10 +67873,10 @@ function MultiSelect({ className, customSearch, customSearchMinQueryLength = 1,
|
|
|
67880
67873
|
style: style,
|
|
67881
67874
|
children: [
|
|
67882
67875
|
/*#__PURE__*/ jsx(Label, {
|
|
67883
|
-
$isHidden: isLabelHidden,
|
|
67884
67876
|
$isRequired: isRequired,
|
|
67885
67877
|
disabled: disabled,
|
|
67886
67878
|
htmlFor: originalProps.name,
|
|
67879
|
+
isHidden: isLabelHidden,
|
|
67887
67880
|
children: label
|
|
67888
67881
|
}),
|
|
67889
67882
|
/*#__PURE__*/ jsx(Box, {
|
|
@@ -68418,10 +68411,10 @@ function NumberInput({ className, disabled = false, error, isErrorMessageHidden
|
|
|
68418
68411
|
style: style,
|
|
68419
68412
|
children: [
|
|
68420
68413
|
/*#__PURE__*/ jsx(Label, {
|
|
68421
|
-
$isHidden: isLabelHidden,
|
|
68422
68414
|
$isRequired: isRequired,
|
|
68423
68415
|
disabled: disabled,
|
|
68424
68416
|
htmlFor: name,
|
|
68417
|
+
isHidden: isLabelHidden,
|
|
68425
68418
|
children: label
|
|
68426
68419
|
}),
|
|
68427
68420
|
/*#__PURE__*/ jsx(StyledInput, {
|
|
@@ -68486,12 +68479,12 @@ const StyledInput = styled(Input)`
|
|
|
68486
68479
|
`;
|
|
68487
68480
|
|
|
68488
68481
|
const PADDING = {
|
|
68489
|
-
[Size.LARGE]: '8px 16px
|
|
68482
|
+
[Size.LARGE]: '8px 16px 10px',
|
|
68490
68483
|
[Size.NORMAL]: '3px 8px 7px',
|
|
68491
68484
|
[Size.SMALL]: '3px 8px 6px'
|
|
68492
68485
|
};
|
|
68493
68486
|
const PADDING_WITH_ICON = {
|
|
68494
|
-
[Size.LARGE]: '8px 48px
|
|
68487
|
+
[Size.LARGE]: '8px 48px 10px 16px',
|
|
68495
68488
|
[Size.NORMAL]: '3px 38px 6px 8px',
|
|
68496
68489
|
[Size.SMALL]: '3px 38px 6px 8px'
|
|
68497
68490
|
};
|
|
@@ -68592,10 +68585,10 @@ const defaultFormat = {
|
|
|
68592
68585
|
className: "Field-PhoneInput",
|
|
68593
68586
|
children: [
|
|
68594
68587
|
/*#__PURE__*/ jsx(Label, {
|
|
68595
|
-
$isHidden: isLabelHidden,
|
|
68596
68588
|
$isRequired: isRequired,
|
|
68597
68589
|
disabled: disabled,
|
|
68598
68590
|
htmlFor: name,
|
|
68591
|
+
isHidden: isLabelHidden,
|
|
68599
68592
|
children: label
|
|
68600
68593
|
}),
|
|
68601
68594
|
/*#__PURE__*/ jsx(StyledIMaskInput, {
|
|
@@ -68860,10 +68853,10 @@ function Search({ className, customSearch = undefined, customSearchMinQueryLengt
|
|
|
68860
68853
|
style: style,
|
|
68861
68854
|
children: [
|
|
68862
68855
|
/*#__PURE__*/ jsx(Label, {
|
|
68863
|
-
$isHidden: isLabelHidden,
|
|
68864
68856
|
$isRequired: isRequired,
|
|
68865
68857
|
disabled: disabled,
|
|
68866
68858
|
htmlFor: originalProps.name,
|
|
68859
|
+
isHidden: isLabelHidden,
|
|
68867
68860
|
children: label
|
|
68868
68861
|
}),
|
|
68869
68862
|
/*#__PURE__*/ jsxs(StyledInputBox, {
|
|
@@ -69024,10 +69017,10 @@ function Select({ className, customSearch, customSearchMinQueryLength = 1, disab
|
|
|
69024
69017
|
style: style,
|
|
69025
69018
|
children: [
|
|
69026
69019
|
/*#__PURE__*/ jsx(Label, {
|
|
69027
|
-
$isHidden: isLabelHidden,
|
|
69028
69020
|
$isRequired: isRequired,
|
|
69029
69021
|
disabled: disabled,
|
|
69030
69022
|
htmlFor: originalProps.name,
|
|
69023
|
+
isHidden: isLabelHidden,
|
|
69031
69024
|
children: label
|
|
69032
69025
|
}),
|
|
69033
69026
|
/*#__PURE__*/ jsx(StyledRsuitePickerBox, {
|
|
@@ -69099,10 +69092,10 @@ function Textarea({ className, disabled = false, error, isErrorMessageHidden = f
|
|
|
69099
69092
|
style: style,
|
|
69100
69093
|
children: [
|
|
69101
69094
|
/*#__PURE__*/ jsx(Label, {
|
|
69102
|
-
$isHidden: isLabelHidden,
|
|
69103
69095
|
$isRequired: isRequired,
|
|
69104
69096
|
disabled: disabled,
|
|
69105
69097
|
htmlFor: originalProps.name,
|
|
69098
|
+
isHidden: isLabelHidden,
|
|
69106
69099
|
children: label
|
|
69107
69100
|
}),
|
|
69108
69101
|
/*#__PURE__*/ jsx(StyledRsuiteInput, {
|
|
@@ -69202,18 +69195,19 @@ function TextInput({ className, disabled = false, error, Icon, isErrorMessageHid
|
|
|
69202
69195
|
style: style,
|
|
69203
69196
|
children: [
|
|
69204
69197
|
/*#__PURE__*/ jsx(Label, {
|
|
69205
|
-
$isHidden: isLabelHidden,
|
|
69206
69198
|
$isRequired: isRequired,
|
|
69207
69199
|
disabled: disabled,
|
|
69208
69200
|
htmlFor: name,
|
|
69201
|
+
isHidden: isLabelHidden,
|
|
69209
69202
|
children: label
|
|
69210
69203
|
}),
|
|
69211
|
-
/*#__PURE__*/ jsxs(
|
|
69204
|
+
/*#__PURE__*/ jsxs(RestyledStyledInputBox, {
|
|
69212
69205
|
$hasError: hasError,
|
|
69213
69206
|
$hasIcon: !!Icon,
|
|
69214
69207
|
$isDisabled: disabled,
|
|
69215
69208
|
$isLight: isLight,
|
|
69216
69209
|
$isReadOnly: readOnly,
|
|
69210
|
+
$isSearchInput: isSearchInput,
|
|
69217
69211
|
$isTransparent: isTransparent,
|
|
69218
69212
|
$size: size,
|
|
69219
69213
|
children: [
|
|
@@ -69263,7 +69257,13 @@ const IconsContainer = styled.div`
|
|
|
69263
69257
|
display: flex;
|
|
69264
69258
|
position: absolute;
|
|
69265
69259
|
right: 5px;
|
|
69266
|
-
top: ${(p)=>p.$size === Size.LARGE ? '
|
|
69260
|
+
top: ${(p)=>p.$size === Size.LARGE ? '9px' : '5px'};
|
|
69261
|
+
`;
|
|
69262
|
+
const RestyledStyledInputBox = styled(StyledInputBox)`
|
|
69263
|
+
> input,
|
|
69264
|
+
> .rs-auto-complete > input {
|
|
69265
|
+
padding-right: ${(p)=>p.$isSearchInput && '64px'};
|
|
69266
|
+
}
|
|
69267
69267
|
`;
|
|
69268
69268
|
const Separator = styled.div`
|
|
69269
69269
|
border-right: 1px solid ${(p)=>p.theme.color.lightGray};
|
|
@@ -69358,10 +69358,10 @@ function Toggle({ checked = false, className, dataCy, disabled = false, error, i
|
|
|
69358
69358
|
style: style,
|
|
69359
69359
|
children: [
|
|
69360
69360
|
/*#__PURE__*/ jsx(Label, {
|
|
69361
|
-
$isHidden: isLabelHidden,
|
|
69362
69361
|
$isRequired: isRequired,
|
|
69363
69362
|
disabled: disabled,
|
|
69364
69363
|
htmlFor: originalProps.name,
|
|
69364
|
+
isHidden: isLabelHidden,
|
|
69365
69365
|
children: label
|
|
69366
69366
|
}),
|
|
69367
69367
|
/*#__PURE__*/ jsx(StyledToggle, {
|
|
@@ -75439,13 +75439,13 @@ const RowPinning = {
|
|
|
75439
75439
|
return isTop ? 'top' : isBottom ? 'bottom' : false;
|
|
75440
75440
|
};
|
|
75441
75441
|
row.getPinnedIndex = () => {
|
|
75442
|
-
var
|
|
75442
|
+
var _ref4, _visiblePinnedRowIds$;
|
|
75443
75443
|
const position = row.getIsPinned();
|
|
75444
75444
|
if (!position) return -1;
|
|
75445
|
-
const visiblePinnedRowIds = (
|
|
75445
|
+
const visiblePinnedRowIds = (_ref4 = position === 'top' ? table.getTopRows() : table.getBottomRows()) == null ? void 0 : _ref4.map(_ref5 => {
|
|
75446
75446
|
let {
|
|
75447
75447
|
id
|
|
75448
|
-
} =
|
|
75448
|
+
} = _ref5;
|
|
75449
75449
|
return id;
|
|
75450
75450
|
});
|
|
75451
75451
|
return (_visiblePinnedRowIds$ = visiblePinnedRowIds == null ? void 0 : visiblePinnedRowIds.indexOf(row.id)) != null ? _visiblePinnedRowIds$ : -1;
|
|
@@ -75466,7 +75466,7 @@ const RowPinning = {
|
|
|
75466
75466
|
}
|
|
75467
75467
|
return Boolean((_pinningState$positio = pinningState[position]) == null ? void 0 : _pinningState$positio.length);
|
|
75468
75468
|
};
|
|
75469
|
-
table._getPinnedRows =
|
|
75469
|
+
table._getPinnedRows = (visibleRows, pinnedRowIds, position) => {
|
|
75470
75470
|
var _table$options$keepPi;
|
|
75471
75471
|
const rows = ((_table$options$keepPi = table.options.keepPinnedRows) != null ? _table$options$keepPi : true) ?
|
|
75472
75472
|
//get all rows that are pinned even if they would not be otherwise visible
|
|
@@ -75481,9 +75481,9 @@ const RowPinning = {
|
|
|
75481
75481
|
...d,
|
|
75482
75482
|
position
|
|
75483
75483
|
}));
|
|
75484
|
-
}
|
|
75485
|
-
table.getTopRows = () => table._getPinnedRows('top');
|
|
75486
|
-
table.getBottomRows = () => table._getPinnedRows('bottom');
|
|
75484
|
+
};
|
|
75485
|
+
table.getTopRows = memo(() => [table.getRowModel().rows, table.getState().rowPinning.top], (allRows, topPinnedRowIds) => table._getPinnedRows(allRows, topPinnedRowIds, 'top'), getMemoOptions(table.options, 'debugRows', 'getTopRows'));
|
|
75486
|
+
table.getBottomRows = memo(() => [table.getRowModel().rows, table.getState().rowPinning.bottom], (allRows, bottomPinnedRowIds) => table._getPinnedRows(allRows, bottomPinnedRowIds, 'bottom'), getMemoOptions(table.options, 'debugRows', 'getBottomRows'));
|
|
75487
75487
|
table.getCenterRows = memo(() => [table.getRowModel().rows, table.getState().rowPinning.top, table.getState().rowPinning.bottom], (allRows, top, bottom) => {
|
|
75488
75488
|
const topAndBottom = new Set([...(top != null ? top : []), ...(bottom != null ? bottom : [])]);
|
|
75489
75489
|
return allRows.filter(d => !topAndBottom.has(d.id));
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mtes-mct/monitor-ui",
|
|
3
3
|
"description": "Common React components, hooks, utilities and CSS stylesheets for MonitorFish, MonitorEnv and RapportNav.",
|
|
4
|
-
"version": "18.
|
|
4
|
+
"version": "18.6.0",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=20"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@babel/runtime": "7.24.
|
|
12
|
-
"@tanstack/react-table": "8.
|
|
11
|
+
"@babel/runtime": "7.24.8",
|
|
12
|
+
"@tanstack/react-table": "8.19.3",
|
|
13
13
|
"@tanstack/react-virtual": "beta",
|
|
14
14
|
"prop-types": "15.8.1",
|
|
15
15
|
"tslib": "2.6.3"
|