@cloudscape-design/components 3.0.18 → 3.0.21
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/annotation-context/annotation/styles.css.js +24 -24
- package/annotation-context/annotation/styles.scoped.css +30 -30
- package/annotation-context/annotation/styles.selectors.js +24 -24
- package/app-layout/toggles/styles.css.js +3 -3
- package/app-layout/toggles/styles.scoped.css +12 -12
- package/app-layout/toggles/styles.selectors.js +3 -3
- package/app-layout/visual-refresh/styles.css.js +59 -59
- package/app-layout/visual-refresh/styles.scoped.css +152 -152
- package/app-layout/visual-refresh/styles.selectors.js +59 -59
- package/breadcrumb-group/item/styles.css.js +7 -7
- package/breadcrumb-group/item/styles.scoped.css +16 -16
- package/breadcrumb-group/item/styles.selectors.js +7 -7
- package/button/styles.css.js +18 -18
- package/button/styles.scoped.css +163 -163
- package/button/styles.selectors.js +18 -18
- package/checkbox/styles.css.js +3 -3
- package/checkbox/styles.scoped.css +7 -7
- package/checkbox/styles.selectors.js +3 -3
- package/code-editor/styles.css.js +33 -33
- package/code-editor/styles.scoped.css +115 -115
- package/code-editor/styles.selectors.js +33 -33
- package/date-picker/styles.css.js +24 -24
- package/date-picker/styles.scoped.css +42 -42
- package/date-picker/styles.selectors.js +24 -24
- package/date-range-picker/calendar/grids/day/styles.css.js +21 -21
- package/date-range-picker/calendar/grids/day/styles.scoped.css +40 -40
- package/date-range-picker/calendar/grids/day/styles.selectors.js +21 -21
- package/expandable-section/styles.css.js +20 -20
- package/expandable-section/styles.scoped.css +42 -42
- package/expandable-section/styles.selectors.js +20 -20
- package/help-panel/styles.css.js +4 -4
- package/help-panel/styles.scoped.css +59 -59
- package/help-panel/styles.selectors.js +4 -4
- package/input/styles.css.js +13 -13
- package/input/styles.scoped.css +35 -35
- package/input/styles.selectors.js +13 -13
- package/internal/base-component/styles.scoped.css +6 -4
- package/internal/components/button-trigger/styles.css.js +9 -9
- package/internal/components/button-trigger/styles.scoped.css +26 -26
- package/internal/components/button-trigger/styles.selectors.js +9 -9
- package/internal/components/chart-legend/styles.css.js +7 -7
- package/internal/components/chart-legend/styles.scoped.css +16 -16
- package/internal/components/chart-legend/styles.selectors.js +7 -7
- package/internal/components/filtering-token/styles.css.js +7 -7
- package/internal/components/filtering-token/styles.scoped.css +15 -15
- package/internal/components/filtering-token/styles.selectors.js +7 -7
- package/internal/components/menu-dropdown/styles.css.js +7 -7
- package/internal/components/menu-dropdown/styles.scoped.css +14 -14
- package/internal/components/menu-dropdown/styles.selectors.js +7 -7
- package/internal/environment.js +1 -1
- package/internal/generated/theming/index.cjs +21 -15
- package/internal/generated/theming/index.js +21 -15
- package/link/styles.css.js +18 -18
- package/link/styles.scoped.css +70 -70
- package/link/styles.selectors.js +18 -18
- package/package.json +1 -1
- package/pagination/styles.css.js +9 -9
- package/pagination/styles.scoped.css +24 -24
- package/pagination/styles.selectors.js +9 -9
- package/popover/styles.css.js +48 -48
- package/popover/styles.scoped.css +63 -63
- package/popover/styles.selectors.js +48 -48
- package/property-filter/controller.d.ts +1 -1
- package/property-filter/controller.d.ts.map +1 -1
- package/property-filter/controller.js +16 -26
- package/property-filter/controller.js.map +1 -1
- package/property-filter/interfaces.d.ts +1 -1
- package/property-filter/interfaces.js.map +1 -1
- package/property-filter/utils.d.ts +7 -0
- package/property-filter/utils.d.ts.map +1 -0
- package/property-filter/utils.js +62 -0
- package/property-filter/utils.js.map +1 -0
- package/radio-group/styles.css.js +9 -9
- package/radio-group/styles.scoped.css +17 -17
- package/radio-group/styles.selectors.js +9 -9
- package/segmented-control/styles.css.js +14 -14
- package/segmented-control/styles.scoped.css +34 -34
- package/segmented-control/styles.selectors.js +14 -14
- package/side-navigation/styles.css.js +22 -22
- package/side-navigation/styles.scoped.css +33 -33
- package/side-navigation/styles.selectors.js +22 -22
- package/split-panel/styles.css.js +58 -58
- package/split-panel/styles.scoped.css +81 -81
- package/split-panel/styles.selectors.js +58 -58
- package/table/header-cell/styles.css.js +14 -14
- package/table/header-cell/styles.scoped.css +26 -26
- package/table/header-cell/styles.selectors.js +14 -14
- package/tabs/styles.css.js +21 -21
- package/tabs/styles.scoped.css +38 -38
- package/tabs/styles.selectors.js +21 -21
- package/tag-editor/styles.css.js +3 -3
- package/tag-editor/styles.scoped.css +11 -11
- package/tag-editor/styles.selectors.js +3 -3
- package/text-content/styles.css.js +1 -1
- package/text-content/styles.scoped.css +61 -61
- package/text-content/styles.selectors.js +1 -1
- package/textarea/styles.css.js +4 -4
- package/textarea/styles.scoped.css +14 -14
- package/textarea/styles.selectors.js +4 -4
- package/tiles/styles.css.js +28 -28
- package/tiles/styles.scoped.css +69 -69
- package/tiles/styles.selectors.js +28 -28
- package/toggle/styles.css.js +8 -8
- package/toggle/styles.scoped.css +15 -15
- package/toggle/styles.selectors.js +8 -8
- package/token-group/styles.css.js +7 -7
- package/token-group/styles.scoped.css +25 -25
- package/token-group/styles.selectors.js +7 -7
- package/top-navigation/1.0-beta/styles.css.js +25 -25
- package/top-navigation/1.0-beta/styles.scoped.css +43 -43
- package/top-navigation/1.0-beta/styles.selectors.js +25 -25
- package/top-navigation/styles.css.js +47 -47
- package/top-navigation/styles.scoped.css +68 -68
- package/top-navigation/styles.selectors.js +47 -47
- package/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
- package/tutorial-panel/components/tutorial-list/styles.scoped.css +29 -29
- package/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
- package/wizard/styles.css.js +31 -31
- package/wizard/styles.scoped.css +59 -59
- package/wizard/styles.selectors.js +31 -31
|
@@ -182,11 +182,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
182
182
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
183
183
|
SPDX-License-Identifier: Apache-2.0
|
|
184
184
|
*/
|
|
185
|
-
.
|
|
185
|
+
.awsui_arrow_xjuzf_jcb5h_185:not(#\9) {
|
|
186
186
|
width: 20px;
|
|
187
187
|
height: 10px;
|
|
188
188
|
}
|
|
189
|
-
.awsui_arrow-
|
|
189
|
+
.awsui_arrow-outer_xjuzf_jcb5h_189:not(#\9), .awsui_arrow-inner_xjuzf_jcb5h_189:not(#\9) {
|
|
190
190
|
position: absolute;
|
|
191
191
|
overflow: hidden;
|
|
192
192
|
width: 20px;
|
|
@@ -194,7 +194,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
194
194
|
top: 0;
|
|
195
195
|
left: 0;
|
|
196
196
|
}
|
|
197
|
-
.awsui_arrow-
|
|
197
|
+
.awsui_arrow-outer_xjuzf_jcb5h_189:not(#\9)::after, .awsui_arrow-inner_xjuzf_jcb5h_189:not(#\9)::after {
|
|
198
198
|
content: "";
|
|
199
199
|
box-sizing: border-box;
|
|
200
200
|
display: inline-block;
|
|
@@ -207,31 +207,31 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
207
207
|
transform: rotate(45deg);
|
|
208
208
|
transform-origin: 0 100%;
|
|
209
209
|
}
|
|
210
|
-
.awsui_arrow-
|
|
210
|
+
.awsui_arrow-outer_xjuzf_jcb5h_189:not(#\9)::after {
|
|
211
211
|
background-color: #9ba7b6;
|
|
212
212
|
background-color: var(--color-border-popover-5pygk7, #9ba7b6);
|
|
213
213
|
}
|
|
214
|
-
.awsui_arrow-
|
|
214
|
+
.awsui_arrow-inner_xjuzf_jcb5h_189:not(#\9) {
|
|
215
215
|
top: 2px;
|
|
216
216
|
}
|
|
217
|
-
.awsui_arrow-
|
|
217
|
+
.awsui_arrow-inner_xjuzf_jcb5h_189:not(#\9)::after {
|
|
218
218
|
border-radius: 1px 0 0 0;
|
|
219
219
|
background-color: #ffffff;
|
|
220
220
|
background-color: var(--color-background-popover-mn5o9k, #ffffff);
|
|
221
221
|
}
|
|
222
|
-
.awsui_arrow-position-right-
|
|
222
|
+
.awsui_arrow-position-right-top_xjuzf_jcb5h_220 > .awsui_arrow-outer_xjuzf_jcb5h_189:not(#\9)::after, .awsui_arrow-position-right-bottom_xjuzf_jcb5h_220 > .awsui_arrow-outer_xjuzf_jcb5h_189:not(#\9)::after {
|
|
223
223
|
box-shadow: -0.71px 0.71px 4px -2px rgba(0, 7, 22, 0.12);
|
|
224
224
|
box-shadow: -0.71px 0.71px 4px -2px var(--color-shadow-default-3se70f, rgba(0, 7, 22, 0.12));
|
|
225
225
|
}
|
|
226
|
-
.awsui_arrow-position-left-
|
|
226
|
+
.awsui_arrow-position-left-top_xjuzf_jcb5h_223 > .awsui_arrow-outer_xjuzf_jcb5h_189:not(#\9)::after, .awsui_arrow-position-left-bottom_xjuzf_jcb5h_223 > .awsui_arrow-outer_xjuzf_jcb5h_189:not(#\9)::after {
|
|
227
227
|
box-shadow: 0.71px -0.71px 4px -2px rgba(0, 7, 22, 0.12);
|
|
228
228
|
box-shadow: 0.71px -0.71px 4px -2px var(--color-shadow-default-3se70f, rgba(0, 7, 22, 0.12));
|
|
229
229
|
}
|
|
230
|
-
.awsui_arrow-position-top-
|
|
230
|
+
.awsui_arrow-position-top-center_xjuzf_jcb5h_226 > .awsui_arrow-outer_xjuzf_jcb5h_189:not(#\9)::after, .awsui_arrow-position-top-right_xjuzf_jcb5h_226 > .awsui_arrow-outer_xjuzf_jcb5h_189:not(#\9)::after, .awsui_arrow-position-top-left_xjuzf_jcb5h_226 > .awsui_arrow-outer_xjuzf_jcb5h_189:not(#\9)::after, .awsui_arrow-position-top-responsive_xjuzf_jcb5h_226 > .awsui_arrow-outer_xjuzf_jcb5h_189:not(#\9)::after {
|
|
231
231
|
box-shadow: -0.71px -0.71px 4px -2px rgba(0, 7, 22, 0.12);
|
|
232
232
|
box-shadow: -0.71px -0.71px 4px -2px var(--color-shadow-default-3se70f, rgba(0, 7, 22, 0.12));
|
|
233
233
|
}
|
|
234
|
-
.awsui_arrow-position-bottom-
|
|
234
|
+
.awsui_arrow-position-bottom-center_xjuzf_jcb5h_229 > .awsui_arrow-outer_xjuzf_jcb5h_189:not(#\9)::after, .awsui_arrow-position-bottom-right_xjuzf_jcb5h_229 > .awsui_arrow-outer_xjuzf_jcb5h_189:not(#\9)::after, .awsui_arrow-position-bottom-left_xjuzf_jcb5h_229 > .awsui_arrow-outer_xjuzf_jcb5h_189:not(#\9)::after, .awsui_arrow-position-bottom-responsive_xjuzf_jcb5h_229 > .awsui_arrow-outer_xjuzf_jcb5h_189:not(#\9)::after {
|
|
235
235
|
box-shadow: 0.71px 0.71px 4px -2px rgba(0, 7, 22, 0.12);
|
|
236
236
|
box-shadow: 0.71px 0.71px 4px -2px var(--color-shadow-default-3se70f, rgba(0, 7, 22, 0.12));
|
|
237
237
|
}
|
|
@@ -328,7 +328,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
328
328
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
329
329
|
SPDX-License-Identifier: Apache-2.0
|
|
330
330
|
*/
|
|
331
|
-
.
|
|
331
|
+
.awsui_body_xjuzf_jcb5h_325:not(#\9) {
|
|
332
332
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
333
333
|
border-collapse: separate;
|
|
334
334
|
border-spacing: 0;
|
|
@@ -382,44 +382,44 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
382
382
|
border: 2px solid #9ba7b6;
|
|
383
383
|
border: var(--border-field-width-idlekx, 2px) solid var(--color-border-popover-5pygk7, #9ba7b6);
|
|
384
384
|
}
|
|
385
|
-
.awsui_body-overflow-
|
|
385
|
+
.awsui_body-overflow-visible_xjuzf_jcb5h_344:not(#\9) {
|
|
386
386
|
overflow: visible;
|
|
387
387
|
}
|
|
388
388
|
|
|
389
|
-
.awsui_variant-
|
|
389
|
+
.awsui_variant-annotation_xjuzf_jcb5h_348:not(#\9) {
|
|
390
390
|
background-color: #f2f8fd;
|
|
391
391
|
background-color: var(--color-background-status-info-usb30e, #f2f8fd);
|
|
392
392
|
border-color: #0972d3;
|
|
393
393
|
border-color: var(--color-border-status-info-546i7i, #0972d3);
|
|
394
394
|
}
|
|
395
395
|
|
|
396
|
-
.awsui_body-size-
|
|
396
|
+
.awsui_body-size-small_xjuzf_jcb5h_353:not(#\9) {
|
|
397
397
|
max-width: 210px;
|
|
398
398
|
}
|
|
399
|
-
.awsui_body-size-
|
|
399
|
+
.awsui_body-size-small_xjuzf_jcb5h_353.awsui_fixed-width_xjuzf_jcb5h_356:not(#\9) {
|
|
400
400
|
width: 210px;
|
|
401
401
|
}
|
|
402
402
|
|
|
403
|
-
.awsui_body-size-
|
|
403
|
+
.awsui_body-size-medium_xjuzf_jcb5h_360:not(#\9) {
|
|
404
404
|
max-width: 310px;
|
|
405
405
|
}
|
|
406
|
-
.awsui_body-size-
|
|
406
|
+
.awsui_body-size-medium_xjuzf_jcb5h_360.awsui_fixed-width_xjuzf_jcb5h_356:not(#\9) {
|
|
407
407
|
width: 310px;
|
|
408
408
|
}
|
|
409
409
|
|
|
410
|
-
.awsui_body-size-
|
|
410
|
+
.awsui_body-size-large_xjuzf_jcb5h_367:not(#\9) {
|
|
411
411
|
max-width: 480px;
|
|
412
412
|
}
|
|
413
|
-
.awsui_body-size-
|
|
413
|
+
.awsui_body-size-large_xjuzf_jcb5h_367.awsui_fixed-width_xjuzf_jcb5h_356:not(#\9) {
|
|
414
414
|
width: 480px;
|
|
415
415
|
}
|
|
416
416
|
|
|
417
|
-
.awsui_has-
|
|
417
|
+
.awsui_has-dismiss_xjuzf_jcb5h_374:not(#\9) {
|
|
418
418
|
display: flex;
|
|
419
419
|
align-items: baseline;
|
|
420
420
|
}
|
|
421
421
|
|
|
422
|
-
.
|
|
422
|
+
.awsui_dismiss_xjuzf_jcb5h_379:not(#\9) {
|
|
423
423
|
margin: calc(-1 * (4px + 2px)) calc(-1 * (4px + 2px));
|
|
424
424
|
margin: calc(-1 * (var(--space-scaled-xxs-95dhkm, 4px) + var(--border-field-width-idlekx, 2px))) calc(-1 * (var(--space-xxs-ynfts5, 4px) + var(--border-field-width-idlekx, 2px)));
|
|
425
425
|
margin-left: 0;
|
|
@@ -427,16 +427,16 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
427
427
|
order: 1;
|
|
428
428
|
}
|
|
429
429
|
|
|
430
|
-
.awsui_dismiss-
|
|
430
|
+
.awsui_dismiss-control_xjuzf_jcb5h_386:not(#\9) {
|
|
431
431
|
/* used in test-utils */
|
|
432
432
|
}
|
|
433
433
|
|
|
434
|
-
.awsui_header-
|
|
434
|
+
.awsui_header-row_xjuzf_jcb5h_390:not(#\9) {
|
|
435
435
|
margin-bottom: 8px;
|
|
436
436
|
margin-bottom: var(--space-xs-rsr2qu, 8px);
|
|
437
437
|
}
|
|
438
438
|
|
|
439
|
-
.
|
|
439
|
+
.awsui_header_xjuzf_jcb5h_390:not(#\9) {
|
|
440
440
|
word-wrap: break-word;
|
|
441
441
|
max-width: 100%;
|
|
442
442
|
overflow: hidden;
|
|
@@ -450,7 +450,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
450
450
|
/* stylelint-disable selector-max-type */
|
|
451
451
|
/* stylelint-enable selector-max-type */
|
|
452
452
|
}
|
|
453
|
-
.
|
|
453
|
+
.awsui_header_xjuzf_jcb5h_390 > h2:not(#\9) {
|
|
454
454
|
font-size: 14px;
|
|
455
455
|
font-size: var(--font-heading-xs-size-fryxro, 14px);
|
|
456
456
|
line-height: 18px;
|
|
@@ -460,7 +460,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
460
460
|
display: inline;
|
|
461
461
|
}
|
|
462
462
|
|
|
463
|
-
.
|
|
463
|
+
.awsui_content_xjuzf_jcb5h_412:not(#\9) {
|
|
464
464
|
word-wrap: break-word;
|
|
465
465
|
max-width: 100%;
|
|
466
466
|
overflow: hidden;
|
|
@@ -468,7 +468,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
468
468
|
color: var(--color-text-body-secondary-fdstdf, #414d5c);
|
|
469
469
|
flex: 1 1 auto;
|
|
470
470
|
}
|
|
471
|
-
.awsui_content-overflow-
|
|
471
|
+
.awsui_content-overflow-visible_xjuzf_jcb5h_419:not(#\9) {
|
|
472
472
|
overflow: visible;
|
|
473
473
|
}
|
|
474
474
|
|
|
@@ -480,7 +480,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
480
480
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
481
481
|
SPDX-License-Identifier: Apache-2.0
|
|
482
482
|
*/
|
|
483
|
-
.
|
|
483
|
+
.awsui_container_xjuzf_jcb5h_431:not(#\9) {
|
|
484
484
|
display: inline-block;
|
|
485
485
|
position: fixed;
|
|
486
486
|
top: -9999px;
|
|
@@ -488,59 +488,59 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
488
488
|
z-index: 2000;
|
|
489
489
|
}
|
|
490
490
|
|
|
491
|
-
.awsui_container-
|
|
491
|
+
.awsui_container-arrow_xjuzf_jcb5h_439:not(#\9) {
|
|
492
492
|
position: absolute;
|
|
493
493
|
display: inline-block;
|
|
494
494
|
}
|
|
495
|
-
.awsui_container-arrow-position-right-
|
|
495
|
+
.awsui_container-arrow-position-right-top_xjuzf_jcb5h_443:not(#\9), .awsui_container-arrow-position-right-bottom_xjuzf_jcb5h_443:not(#\9) {
|
|
496
496
|
transform: rotate(-90deg);
|
|
497
497
|
transform-origin: 0 100%;
|
|
498
498
|
}
|
|
499
|
-
.awsui_container-arrow-position-right-
|
|
499
|
+
.awsui_container-arrow-position-right-top_xjuzf_jcb5h_443:not(#\9) {
|
|
500
500
|
top: calc(12px + 10px);
|
|
501
501
|
left: 0;
|
|
502
502
|
}
|
|
503
|
-
.awsui_container-arrow-position-right-
|
|
503
|
+
.awsui_container-arrow-position-right-bottom_xjuzf_jcb5h_443:not(#\9) {
|
|
504
504
|
bottom: 12px;
|
|
505
505
|
left: 0;
|
|
506
506
|
}
|
|
507
|
-
.awsui_container-arrow-position-left-
|
|
507
|
+
.awsui_container-arrow-position-left-top_xjuzf_jcb5h_455:not(#\9), .awsui_container-arrow-position-left-bottom_xjuzf_jcb5h_455:not(#\9) {
|
|
508
508
|
transform: rotate(90deg);
|
|
509
509
|
transform-origin: 100% 100%;
|
|
510
510
|
}
|
|
511
|
-
.awsui_container-arrow-position-left-
|
|
511
|
+
.awsui_container-arrow-position-left-top_xjuzf_jcb5h_455:not(#\9) {
|
|
512
512
|
top: calc(12px + 10px);
|
|
513
513
|
right: 0;
|
|
514
514
|
}
|
|
515
|
-
.awsui_container-arrow-position-left-
|
|
515
|
+
.awsui_container-arrow-position-left-bottom_xjuzf_jcb5h_455:not(#\9) {
|
|
516
516
|
bottom: 12px;
|
|
517
517
|
right: 0;
|
|
518
518
|
}
|
|
519
|
-
.awsui_container-arrow-position-top-
|
|
519
|
+
.awsui_container-arrow-position-top-center_xjuzf_jcb5h_467:not(#\9), .awsui_container-arrow-position-top-right_xjuzf_jcb5h_467:not(#\9), .awsui_container-arrow-position-top-left_xjuzf_jcb5h_467:not(#\9), .awsui_container-arrow-position-top-responsive_xjuzf_jcb5h_467:not(#\9) {
|
|
520
520
|
transform: rotate(180deg);
|
|
521
521
|
transform-origin: 50% 50%;
|
|
522
522
|
}
|
|
523
|
-
.awsui_container-arrow-position-top-
|
|
523
|
+
.awsui_container-arrow-position-top-center_xjuzf_jcb5h_467:not(#\9) {
|
|
524
524
|
bottom: -10px;
|
|
525
525
|
left: calc(50% - 10px);
|
|
526
526
|
}
|
|
527
|
-
.awsui_container-arrow-position-top-
|
|
527
|
+
.awsui_container-arrow-position-top-right_xjuzf_jcb5h_467:not(#\9) {
|
|
528
528
|
bottom: -10px;
|
|
529
529
|
left: 12px;
|
|
530
530
|
}
|
|
531
|
-
.awsui_container-arrow-position-top-
|
|
531
|
+
.awsui_container-arrow-position-top-left_xjuzf_jcb5h_467:not(#\9) {
|
|
532
532
|
bottom: -10px;
|
|
533
533
|
left: calc(100% - 20px - 12px);
|
|
534
534
|
}
|
|
535
|
-
.awsui_container-arrow-position-bottom-
|
|
535
|
+
.awsui_container-arrow-position-bottom-center_xjuzf_jcb5h_483:not(#\9) {
|
|
536
536
|
top: -10px;
|
|
537
537
|
left: calc(50% - 10px);
|
|
538
538
|
}
|
|
539
|
-
.awsui_container-arrow-position-bottom-
|
|
539
|
+
.awsui_container-arrow-position-bottom-right_xjuzf_jcb5h_487:not(#\9) {
|
|
540
540
|
top: -10px;
|
|
541
541
|
left: 12px;
|
|
542
542
|
}
|
|
543
|
-
.awsui_container-arrow-position-bottom-
|
|
543
|
+
.awsui_container-arrow-position-bottom-left_xjuzf_jcb5h_491:not(#\9) {
|
|
544
544
|
top: -10px;
|
|
545
545
|
left: calc(100% - 20px - 12px);
|
|
546
546
|
}
|
|
@@ -637,11 +637,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
637
637
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
638
638
|
SPDX-License-Identifier: Apache-2.0
|
|
639
639
|
*/
|
|
640
|
-
.
|
|
641
|
-
animation: awsui_awsui-motion-fade-
|
|
642
|
-
animation: awsui_awsui-motion-fade-
|
|
640
|
+
.awsui_container_xjuzf_jcb5h_431:not(#\9) {
|
|
641
|
+
animation: awsui_awsui-motion-fade-in_xjuzf_jcb5h_1 180ms ease-out;
|
|
642
|
+
animation: awsui_awsui-motion-fade-in_xjuzf_jcb5h_1 var(--motion-duration-show-paced-7wspqf, 180ms) var(--motion-easing-show-paced-wj4ybn, ease-out);
|
|
643
643
|
}
|
|
644
|
-
@keyframes awsui_awsui-motion-fade-
|
|
644
|
+
@keyframes awsui_awsui-motion-fade-in_xjuzf_jcb5h_1 {
|
|
645
645
|
from {
|
|
646
646
|
opacity: 0.2;
|
|
647
647
|
}
|
|
@@ -650,20 +650,20 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
652
|
@media (prefers-reduced-motion: reduce) {
|
|
653
|
-
.
|
|
653
|
+
.awsui_container_xjuzf_jcb5h_431:not(#\9) {
|
|
654
654
|
animation: none;
|
|
655
655
|
transition: none;
|
|
656
656
|
}
|
|
657
657
|
}
|
|
658
|
-
.awsui-motion-disabled .
|
|
658
|
+
.awsui-motion-disabled .awsui_container_xjuzf_jcb5h_431:not(#\9), .awsui-mode-entering .awsui_container_xjuzf_jcb5h_431:not(#\9) {
|
|
659
659
|
animation: none;
|
|
660
660
|
transition: none;
|
|
661
661
|
}
|
|
662
|
-
.
|
|
663
|
-
animation: awsui_awsui-motion-fade-
|
|
664
|
-
animation: awsui_awsui-motion-fade-
|
|
662
|
+
.awsui_container_xjuzf_jcb5h_431.awsui_refresh_xjuzf_jcb5h_609:not(#\9) {
|
|
663
|
+
animation: awsui_awsui-motion-fade-in_xjuzf_jcb5h_1 115ms cubic-bezier(0, 0, 0, 1);
|
|
664
|
+
animation: awsui_awsui-motion-fade-in_xjuzf_jcb5h_1 var(--motion-duration-refresh-only-fast-addxjd, 115ms) var(--motion-easing-refresh-only-a-sy0g8m, cubic-bezier(0, 0, 0, 1));
|
|
665
665
|
}
|
|
666
|
-
@keyframes awsui_awsui-motion-fade-
|
|
666
|
+
@keyframes awsui_awsui-motion-fade-in_xjuzf_jcb5h_1 {
|
|
667
667
|
from {
|
|
668
668
|
opacity: 0.2;
|
|
669
669
|
}
|
|
@@ -672,17 +672,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
674
|
@media (prefers-reduced-motion: reduce) {
|
|
675
|
-
.
|
|
675
|
+
.awsui_container_xjuzf_jcb5h_431.awsui_refresh_xjuzf_jcb5h_609:not(#\9) {
|
|
676
676
|
animation: none;
|
|
677
677
|
transition: none;
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
|
-
.awsui-motion-disabled .
|
|
680
|
+
.awsui-motion-disabled .awsui_container_xjuzf_jcb5h_431.awsui_refresh_xjuzf_jcb5h_609:not(#\9), .awsui-mode-entering .awsui_container_xjuzf_jcb5h_431.awsui_refresh_xjuzf_jcb5h_609:not(#\9) {
|
|
681
681
|
animation: none;
|
|
682
682
|
transition: none;
|
|
683
683
|
}
|
|
684
684
|
|
|
685
|
-
.
|
|
685
|
+
.awsui_root_xjuzf_jcb5h_631:not(#\9) {
|
|
686
686
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
687
687
|
border-collapse: separate;
|
|
688
688
|
border-spacing: 0;
|
|
@@ -724,14 +724,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
724
724
|
color: inherit;
|
|
725
725
|
}
|
|
726
726
|
|
|
727
|
-
.
|
|
727
|
+
.awsui_trigger_xjuzf_jcb5h_643:not(#\9) {
|
|
728
728
|
display: inline-block;
|
|
729
729
|
max-width: 100%;
|
|
730
730
|
color: inherit;
|
|
731
731
|
text-align: inherit;
|
|
732
732
|
}
|
|
733
733
|
|
|
734
|
-
.awsui_trigger-type-
|
|
734
|
+
.awsui_trigger-type-text_xjuzf_jcb5h_650:not(#\9) {
|
|
735
735
|
border: 0;
|
|
736
736
|
margin: 0;
|
|
737
737
|
padding: 0;
|
|
@@ -740,17 +740,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
740
740
|
border-bottom: 1px dashed currentColor;
|
|
741
741
|
border-bottom: var(--border-divider-list-width-hacikr, 1px) dashed currentColor;
|
|
742
742
|
}
|
|
743
|
-
.awsui_trigger-type-
|
|
743
|
+
.awsui_trigger-type-text_xjuzf_jcb5h_650:not(#\9):focus {
|
|
744
744
|
outline: none;
|
|
745
745
|
}
|
|
746
|
-
.awsui_trigger-type-
|
|
746
|
+
.awsui_trigger-type-text_xjuzf_jcb5h_650[data-awsui-focus-visible=true]:not(#\9):focus {
|
|
747
747
|
position: relative;
|
|
748
748
|
}
|
|
749
|
-
.awsui_trigger-type-
|
|
749
|
+
.awsui_trigger-type-text_xjuzf_jcb5h_650[data-awsui-focus-visible=true]:not(#\9):focus {
|
|
750
750
|
outline: 2px dotted transparent;
|
|
751
751
|
outline-offset: calc(1px - 1px);
|
|
752
752
|
}
|
|
753
|
-
.awsui_trigger-type-
|
|
753
|
+
.awsui_trigger-type-text_xjuzf_jcb5h_650[data-awsui-focus-visible=true]:not(#\9):focus::before {
|
|
754
754
|
content: " ";
|
|
755
755
|
display: block;
|
|
756
756
|
position: absolute;
|
|
@@ -759,10 +759,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
759
759
|
width: calc(100% + 2 * 1px);
|
|
760
760
|
height: calc(100% + 2 * 1px);
|
|
761
761
|
border-radius: 4px;
|
|
762
|
-
border-radius: var(--border-radius-control-focus-ring-
|
|
762
|
+
border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
|
|
763
763
|
box-shadow: 0 0 0 2px #0972d3;
|
|
764
764
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
|
|
765
765
|
}
|
|
766
|
-
.awsui_trigger-type-
|
|
766
|
+
.awsui_trigger-type-text_xjuzf_jcb5h_650 > .awsui_trigger-inner-text_xjuzf_jcb5h_679:not(#\9) {
|
|
767
767
|
position: relative;
|
|
768
768
|
}
|
|
@@ -2,53 +2,53 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"arrow": "
|
|
6
|
-
"arrow-outer": "awsui_arrow-
|
|
7
|
-
"arrow-inner": "awsui_arrow-
|
|
8
|
-
"arrow-position-right-top": "awsui_arrow-position-right-
|
|
9
|
-
"arrow-position-right-bottom": "awsui_arrow-position-right-
|
|
10
|
-
"arrow-position-left-top": "awsui_arrow-position-left-
|
|
11
|
-
"arrow-position-left-bottom": "awsui_arrow-position-left-
|
|
12
|
-
"arrow-position-top-center": "awsui_arrow-position-top-
|
|
13
|
-
"arrow-position-top-right": "awsui_arrow-position-top-
|
|
14
|
-
"arrow-position-top-left": "awsui_arrow-position-top-
|
|
15
|
-
"arrow-position-top-responsive": "awsui_arrow-position-top-
|
|
16
|
-
"arrow-position-bottom-center": "awsui_arrow-position-bottom-
|
|
17
|
-
"arrow-position-bottom-right": "awsui_arrow-position-bottom-
|
|
18
|
-
"arrow-position-bottom-left": "awsui_arrow-position-bottom-
|
|
19
|
-
"arrow-position-bottom-responsive": "awsui_arrow-position-bottom-
|
|
20
|
-
"body": "
|
|
21
|
-
"body-overflow-visible": "awsui_body-overflow-
|
|
22
|
-
"variant-annotation": "awsui_variant-
|
|
23
|
-
"body-size-small": "awsui_body-size-
|
|
24
|
-
"fixed-width": "awsui_fixed-
|
|
25
|
-
"body-size-medium": "awsui_body-size-
|
|
26
|
-
"body-size-large": "awsui_body-size-
|
|
27
|
-
"has-dismiss": "awsui_has-
|
|
28
|
-
"dismiss": "
|
|
29
|
-
"dismiss-control": "awsui_dismiss-
|
|
30
|
-
"header-row": "awsui_header-
|
|
31
|
-
"header": "
|
|
32
|
-
"content": "
|
|
33
|
-
"content-overflow-visible": "awsui_content-overflow-
|
|
34
|
-
"container": "
|
|
35
|
-
"container-arrow": "awsui_container-
|
|
36
|
-
"container-arrow-position-right-top": "awsui_container-arrow-position-right-
|
|
37
|
-
"container-arrow-position-right-bottom": "awsui_container-arrow-position-right-
|
|
38
|
-
"container-arrow-position-left-top": "awsui_container-arrow-position-left-
|
|
39
|
-
"container-arrow-position-left-bottom": "awsui_container-arrow-position-left-
|
|
40
|
-
"container-arrow-position-top-center": "awsui_container-arrow-position-top-
|
|
41
|
-
"container-arrow-position-top-right": "awsui_container-arrow-position-top-
|
|
42
|
-
"container-arrow-position-top-left": "awsui_container-arrow-position-top-
|
|
43
|
-
"container-arrow-position-top-responsive": "awsui_container-arrow-position-top-
|
|
44
|
-
"container-arrow-position-bottom-center": "awsui_container-arrow-position-bottom-
|
|
45
|
-
"container-arrow-position-bottom-right": "awsui_container-arrow-position-bottom-
|
|
46
|
-
"container-arrow-position-bottom-left": "awsui_container-arrow-position-bottom-
|
|
47
|
-
"awsui-motion-fade-in": "awsui_awsui-motion-fade-
|
|
48
|
-
"refresh": "
|
|
49
|
-
"root": "
|
|
50
|
-
"trigger": "
|
|
51
|
-
"trigger-type-text": "awsui_trigger-type-
|
|
52
|
-
"trigger-inner-text": "awsui_trigger-inner-
|
|
5
|
+
"arrow": "awsui_arrow_xjuzf_jcb5h_185",
|
|
6
|
+
"arrow-outer": "awsui_arrow-outer_xjuzf_jcb5h_189",
|
|
7
|
+
"arrow-inner": "awsui_arrow-inner_xjuzf_jcb5h_189",
|
|
8
|
+
"arrow-position-right-top": "awsui_arrow-position-right-top_xjuzf_jcb5h_220",
|
|
9
|
+
"arrow-position-right-bottom": "awsui_arrow-position-right-bottom_xjuzf_jcb5h_220",
|
|
10
|
+
"arrow-position-left-top": "awsui_arrow-position-left-top_xjuzf_jcb5h_223",
|
|
11
|
+
"arrow-position-left-bottom": "awsui_arrow-position-left-bottom_xjuzf_jcb5h_223",
|
|
12
|
+
"arrow-position-top-center": "awsui_arrow-position-top-center_xjuzf_jcb5h_226",
|
|
13
|
+
"arrow-position-top-right": "awsui_arrow-position-top-right_xjuzf_jcb5h_226",
|
|
14
|
+
"arrow-position-top-left": "awsui_arrow-position-top-left_xjuzf_jcb5h_226",
|
|
15
|
+
"arrow-position-top-responsive": "awsui_arrow-position-top-responsive_xjuzf_jcb5h_226",
|
|
16
|
+
"arrow-position-bottom-center": "awsui_arrow-position-bottom-center_xjuzf_jcb5h_229",
|
|
17
|
+
"arrow-position-bottom-right": "awsui_arrow-position-bottom-right_xjuzf_jcb5h_229",
|
|
18
|
+
"arrow-position-bottom-left": "awsui_arrow-position-bottom-left_xjuzf_jcb5h_229",
|
|
19
|
+
"arrow-position-bottom-responsive": "awsui_arrow-position-bottom-responsive_xjuzf_jcb5h_229",
|
|
20
|
+
"body": "awsui_body_xjuzf_jcb5h_325",
|
|
21
|
+
"body-overflow-visible": "awsui_body-overflow-visible_xjuzf_jcb5h_344",
|
|
22
|
+
"variant-annotation": "awsui_variant-annotation_xjuzf_jcb5h_348",
|
|
23
|
+
"body-size-small": "awsui_body-size-small_xjuzf_jcb5h_353",
|
|
24
|
+
"fixed-width": "awsui_fixed-width_xjuzf_jcb5h_356",
|
|
25
|
+
"body-size-medium": "awsui_body-size-medium_xjuzf_jcb5h_360",
|
|
26
|
+
"body-size-large": "awsui_body-size-large_xjuzf_jcb5h_367",
|
|
27
|
+
"has-dismiss": "awsui_has-dismiss_xjuzf_jcb5h_374",
|
|
28
|
+
"dismiss": "awsui_dismiss_xjuzf_jcb5h_379",
|
|
29
|
+
"dismiss-control": "awsui_dismiss-control_xjuzf_jcb5h_386",
|
|
30
|
+
"header-row": "awsui_header-row_xjuzf_jcb5h_390",
|
|
31
|
+
"header": "awsui_header_xjuzf_jcb5h_390",
|
|
32
|
+
"content": "awsui_content_xjuzf_jcb5h_412",
|
|
33
|
+
"content-overflow-visible": "awsui_content-overflow-visible_xjuzf_jcb5h_419",
|
|
34
|
+
"container": "awsui_container_xjuzf_jcb5h_431",
|
|
35
|
+
"container-arrow": "awsui_container-arrow_xjuzf_jcb5h_439",
|
|
36
|
+
"container-arrow-position-right-top": "awsui_container-arrow-position-right-top_xjuzf_jcb5h_443",
|
|
37
|
+
"container-arrow-position-right-bottom": "awsui_container-arrow-position-right-bottom_xjuzf_jcb5h_443",
|
|
38
|
+
"container-arrow-position-left-top": "awsui_container-arrow-position-left-top_xjuzf_jcb5h_455",
|
|
39
|
+
"container-arrow-position-left-bottom": "awsui_container-arrow-position-left-bottom_xjuzf_jcb5h_455",
|
|
40
|
+
"container-arrow-position-top-center": "awsui_container-arrow-position-top-center_xjuzf_jcb5h_467",
|
|
41
|
+
"container-arrow-position-top-right": "awsui_container-arrow-position-top-right_xjuzf_jcb5h_467",
|
|
42
|
+
"container-arrow-position-top-left": "awsui_container-arrow-position-top-left_xjuzf_jcb5h_467",
|
|
43
|
+
"container-arrow-position-top-responsive": "awsui_container-arrow-position-top-responsive_xjuzf_jcb5h_467",
|
|
44
|
+
"container-arrow-position-bottom-center": "awsui_container-arrow-position-bottom-center_xjuzf_jcb5h_483",
|
|
45
|
+
"container-arrow-position-bottom-right": "awsui_container-arrow-position-bottom-right_xjuzf_jcb5h_487",
|
|
46
|
+
"container-arrow-position-bottom-left": "awsui_container-arrow-position-bottom-left_xjuzf_jcb5h_491",
|
|
47
|
+
"awsui-motion-fade-in": "awsui_awsui-motion-fade-in_xjuzf_jcb5h_1",
|
|
48
|
+
"refresh": "awsui_refresh_xjuzf_jcb5h_609",
|
|
49
|
+
"root": "awsui_root_xjuzf_jcb5h_631",
|
|
50
|
+
"trigger": "awsui_trigger_xjuzf_jcb5h_643",
|
|
51
|
+
"trigger-type-text": "awsui_trigger-type-text_xjuzf_jcb5h_650",
|
|
52
|
+
"trigger-inner-text": "awsui_trigger-inner-text_xjuzf_jcb5h_679"
|
|
53
53
|
};
|
|
54
54
|
|
|
@@ -23,7 +23,7 @@ export declare type ParsedText = {
|
|
|
23
23
|
value: string;
|
|
24
24
|
};
|
|
25
25
|
export declare const getAllowedOperators: (property: PropertyFilterProps.FilteringProperty) => PropertyFilterProps.ComparisonOperator[];
|
|
26
|
-
export declare const parseText: (filteringText: string, filteringProperties: PropertyFilterProps[
|
|
26
|
+
export declare const parseText: (filteringText: string, filteringProperties: readonly PropertyFilterProps.FilteringProperty[] | undefined, disableFreeTextFiltering: boolean) => ParsedText;
|
|
27
27
|
export declare const getPropertyOptions: (filteringProperty: PropertyFilterProps.FilteringProperty, filteringOptions: PropertyFilterProps['filteringOptions']) => PropertyFilterProps.FilteringOption[] | undefined;
|
|
28
28
|
interface OptionGroup<T> {
|
|
29
29
|
label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../src/property-filter/controller.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../src/property-filter/controller.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __spreadArray } from "tslib";
|
|
2
2
|
import { fireNonCancelableEvent } from '../internal/events';
|
|
3
|
+
import { matchFilteringProperty, matchOperator, matchOperatorPrefix, trimFirstSpace, trimStart } from './utils';
|
|
3
4
|
export var getQueryActions = function (query, onChange, inputRef, preventFocus) {
|
|
4
5
|
var tokens = query.tokens, operation = query.operation;
|
|
5
6
|
var fireOnChange = function (tokens, operation) {
|
|
@@ -56,6 +57,7 @@ export var getAllowedOperators = function (property) {
|
|
|
56
57
|
* - "free-text": means that a "free text" token is being added
|
|
57
58
|
*/
|
|
58
59
|
export var parseText = function (filteringText, filteringProperties, disableFreeTextFiltering) {
|
|
60
|
+
if (filteringProperties === void 0) { filteringProperties = []; }
|
|
59
61
|
var negatedGlobalQuery = /^(!:|!)(.*)/.exec(filteringText);
|
|
60
62
|
if (!disableFreeTextFiltering && negatedGlobalQuery) {
|
|
61
63
|
return {
|
|
@@ -64,16 +66,7 @@ export var parseText = function (filteringText, filteringProperties, disableFree
|
|
|
64
66
|
value: negatedGlobalQuery[2]
|
|
65
67
|
};
|
|
66
68
|
}
|
|
67
|
-
var property = (filteringProperties
|
|
68
|
-
if (filteringText.toLowerCase().indexOf(property.propertyLabel.toLowerCase()) === 0) {
|
|
69
|
-
// find the longest property whose name matches the filtering text
|
|
70
|
-
if (property.propertyLabel.length > acc.length) {
|
|
71
|
-
acc.length = property.propertyLabel.length;
|
|
72
|
-
acc.property = property;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
return acc;
|
|
76
|
-
}, { length: 0 })).property;
|
|
69
|
+
var property = matchFilteringProperty(filteringProperties, filteringText);
|
|
77
70
|
if (!property) {
|
|
78
71
|
return {
|
|
79
72
|
step: 'free-text',
|
|
@@ -82,27 +75,24 @@ export var parseText = function (filteringText, filteringProperties, disableFree
|
|
|
82
75
|
}
|
|
83
76
|
var allowedOps = getAllowedOperators(property);
|
|
84
77
|
var textWithoutProperty = filteringText.substring(property.propertyLabel.length);
|
|
85
|
-
var
|
|
86
|
-
if (
|
|
78
|
+
var operator = matchOperator(allowedOps, trimStart(textWithoutProperty));
|
|
79
|
+
if (operator) {
|
|
80
|
+
var operatorLastIndex = textWithoutProperty.indexOf(operator) + operator.length;
|
|
81
|
+
var textWithoutPropertyAndOperator = textWithoutProperty.slice(operatorLastIndex);
|
|
87
82
|
return {
|
|
88
83
|
step: 'property',
|
|
89
84
|
property: property,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
85
|
+
operator: operator,
|
|
86
|
+
// We need to remove the first leading space in case the user presses space
|
|
87
|
+
// after the operator, for example: Owner: admin, will result in value of ` admin`
|
|
88
|
+
// and we need to remove the first space, if the user added any more spaces only the
|
|
89
|
+
// first one will be removed.
|
|
90
|
+
value: trimFirstSpace(textWithoutPropertyAndOperator)
|
|
93
91
|
};
|
|
94
92
|
}
|
|
95
|
-
var
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
acc[substr] = true;
|
|
99
|
-
}
|
|
100
|
-
return acc;
|
|
101
|
-
}, {});
|
|
102
|
-
var opPrefixes = Object.keys(opPrefixesMap);
|
|
103
|
-
var enteringOperator = new RegExp("^(\\s*)([".concat(opPrefixes.join(','), "])?$")).exec(textWithoutProperty);
|
|
104
|
-
if (enteringOperator) {
|
|
105
|
-
return { step: 'operator', property: property, operatorPrefix: enteringOperator[2] || '' };
|
|
93
|
+
var operatorPrefix = matchOperatorPrefix(allowedOps, trimStart(textWithoutProperty));
|
|
94
|
+
if (operatorPrefix !== null) {
|
|
95
|
+
return { step: 'operator', property: property, operatorPrefix: operatorPrefix };
|
|
106
96
|
}
|
|
107
97
|
return {
|
|
108
98
|
step: 'free-text',
|