@baloise/ds-testing 17.4.0-snapshot.1609-d2bcc38d3 → 17.4.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.
Files changed (105) hide show
  1. package/add-custom-commands.esm.js +1 -1
  2. package/add-override-commands.esm.js +3 -541
  3. package/bal-input-stepper.command.esm.js +165 -165
  4. package/helpers.esm.js +42 -43
  5. package/index.esm.js +800 -2
  6. package/index.esm2.js +317 -0
  7. package/package.json +4 -3
  8. package/selectors.esm.js +1 -1
  9. package/src/add-custom-commands.d.ts +34 -34
  10. package/src/add-override-commands.d.ts +9 -9
  11. package/src/commands/custom/bal-accordion.command.d.ts +1 -1
  12. package/src/commands/custom/bal-accordion.types.d.ts +15 -15
  13. package/src/commands/custom/bal-field.command.d.ts +1 -1
  14. package/src/commands/custom/bal-field.types.d.ts +11 -11
  15. package/src/commands/custom/bal-hint.command.d.ts +1 -1
  16. package/src/commands/custom/bal-hint.types.d.ts +15 -15
  17. package/src/commands/custom/bal-input-stepper.command.d.ts +1 -1
  18. package/src/commands/custom/bal-input-stepper.types.d.ts +15 -15
  19. package/src/commands/custom/bal-modal.command.d.ts +1 -1
  20. package/src/commands/custom/bal-modal.types.d.ts +24 -24
  21. package/src/commands/custom/bal-pagination.command.d.ts +1 -1
  22. package/src/commands/custom/bal-pagination.types.d.ts +23 -23
  23. package/src/commands/custom/bal-popover.command.d.ts +1 -1
  24. package/src/commands/custom/bal-popover.types.d.ts +27 -27
  25. package/src/commands/custom/bal-popup.command.d.ts +1 -1
  26. package/src/commands/custom/bal-popup.types.d.ts +15 -15
  27. package/src/commands/custom/bal-select.command.d.ts +1 -1
  28. package/src/commands/custom/bal-select.types.d.ts +19 -19
  29. package/src/commands/custom/bal-snackbar.command.d.ts +1 -1
  30. package/src/commands/custom/bal-snackbar.types.d.ts +11 -11
  31. package/src/commands/custom/bal-steps.command.d.ts +1 -1
  32. package/src/commands/custom/bal-steps.types.d.ts +27 -27
  33. package/src/commands/custom/bal-tabs.command.d.ts +1 -1
  34. package/src/commands/custom/bal-tabs.types.d.ts +31 -31
  35. package/src/commands/custom/bal-toast.command.d.ts +1 -1
  36. package/src/commands/custom/bal-toast.types.d.ts +11 -11
  37. package/src/commands/custom/component.command.d.ts +1 -1
  38. package/src/commands/custom/component.types.d.ts +47 -47
  39. package/src/commands/custom/get.command.d.ts +1 -1
  40. package/src/commands/custom/get.types.d.ts +43 -43
  41. package/src/commands/custom/platform.command.d.ts +1 -1
  42. package/src/commands/custom/platform.types.d.ts +11 -11
  43. package/src/commands/custom/visit.command.d.ts +1 -1
  44. package/src/commands/custom/visit.types.d.ts +10 -10
  45. package/src/commands/helpers.d.ts +48 -48
  46. package/src/commands/overrides/blur.command.d.ts +1 -1
  47. package/src/commands/overrides/check.command.d.ts +1 -1
  48. package/src/commands/overrides/clear.command.d.ts +1 -1
  49. package/src/commands/overrides/click.command.d.ts +1 -1
  50. package/src/commands/overrides/focus.command.d.ts +1 -1
  51. package/src/commands/overrides/select.command.d.ts +1 -1
  52. package/src/commands/overrides/should.command.d.ts +1 -1
  53. package/src/commands/overrides/type.command.d.ts +1 -1
  54. package/src/commands/overrides/uncheck.command.d.ts +1 -1
  55. package/src/index.d.ts +25 -21
  56. package/src/legacy/accessors/accordion.accessor.d.ts +29 -0
  57. package/src/legacy/accessors/button.accessor.d.ts +23 -0
  58. package/src/legacy/accessors/checkbox.accessor.d.ts +25 -0
  59. package/src/legacy/accessors/drop-down.accessor.d.ts +31 -0
  60. package/src/legacy/accessors/error.accessor.d.ts +25 -0
  61. package/src/legacy/accessors/icon-accessor.d.ts +23 -0
  62. package/src/legacy/accessors/input.accessor.d.ts +30 -0
  63. package/src/legacy/accessors/link.accessor.d.ts +39 -0
  64. package/src/legacy/accessors/list.accessor.d.ts +23 -0
  65. package/src/legacy/accessors/mixins/andable.d.ts +5 -0
  66. package/src/legacy/accessors/mixins/attachable.d.ts +6 -0
  67. package/src/legacy/accessors/mixins/attributable.d.ts +7 -0
  68. package/src/legacy/accessors/mixins/blurable.d.ts +6 -0
  69. package/src/legacy/accessors/mixins/checkable.d.ts +7 -0
  70. package/src/legacy/accessors/mixins/clearable.d.ts +6 -0
  71. package/src/legacy/accessors/mixins/clickable.d.ts +7 -0
  72. package/src/legacy/accessors/mixins/containable.d.ts +5 -0
  73. package/src/legacy/accessors/mixins/disableable.d.ts +5 -0
  74. package/src/legacy/accessors/mixins/eachable.d.ts +5 -0
  75. package/src/legacy/accessors/mixins/existable.d.ts +5 -0
  76. package/src/legacy/accessors/mixins/findable.d.ts +5 -0
  77. package/src/legacy/accessors/mixins/invokable.d.ts +5 -0
  78. package/src/legacy/accessors/mixins/lengthable.d.ts +5 -0
  79. package/src/legacy/accessors/mixins/mixins.d.ts +12 -0
  80. package/src/legacy/accessors/mixins/nthSelectable.d.ts +7 -0
  81. package/src/legacy/accessors/mixins/selectable.d.ts +4 -0
  82. package/src/legacy/accessors/mixins/shouldable.d.ts +5 -0
  83. package/src/legacy/accessors/mixins/thenable.d.ts +5 -0
  84. package/src/legacy/accessors/mixins/typeable.d.ts +6 -0
  85. package/src/legacy/accessors/mixins/urlable.d.ts +6 -0
  86. package/src/legacy/accessors/mixins/visible.d.ts +5 -0
  87. package/src/legacy/accessors/mixins/waitable.d.ts +5 -0
  88. package/src/legacy/accessors/multi-select-button.accessor.d.ts +24 -0
  89. package/src/legacy/accessors/navigation.accessor.d.ts +22 -0
  90. package/src/legacy/accessors/radio.accessor.d.ts +23 -0
  91. package/src/legacy/accessors/select-button.accessor.d.ts +24 -0
  92. package/src/legacy/accessors/table.accessor.d.ts +27 -0
  93. package/src/legacy/accessors/tabs.accessor.d.ts +26 -0
  94. package/src/legacy/accessors/text.accessor.d.ts +23 -0
  95. package/src/legacy/accessors/tile.accessor.d.ts +27 -0
  96. package/src/legacy/accessors/toast.accessor.d.ts +24 -0
  97. package/src/legacy/accessors/tooltip.accessor.d.ts +23 -0
  98. package/src/legacy/accessors/typeahead.accessor.d.ts +26 -0
  99. package/src/legacy/index.d.ts +43 -0
  100. package/src/selectors/index.d.ts +354 -354
  101. package/src/selectors/selectors.util.d.ts +4 -4
  102. package/src/selectors.d.ts +1 -1
  103. package/src/viewports.d.ts +7 -7
  104. package/type.command.esm.js +541 -0
  105. package/selectors.esm2.js +0 -179
package/selectors.esm2.js DELETED
@@ -1,179 +0,0 @@
1
- var dataTestSelectors = function(testId) {
2
- return [
3
- '[data-test-id="' + testId + '"]',
4
- '[data-testid="' + testId + '"]',
5
- '[data-test="' + testId + '"]',
6
- '[data-cy="' + testId + '"]'
7
- ];
8
- };
9
- var byTestId = function(testId) {
10
- return dataTestSelectors(testId).join(', ');
11
- };
12
- // @deprecated standard is byTestId
13
- var dataTestSelector = function(testId) {
14
- return byTestId(testId);
15
- };
16
- var parseDataTestID = function(testId) {
17
- var _testId_split_shift;
18
- return ((_testId_split_shift = testId.split(',').shift()) == null ? undefined : _testId_split_shift.trim().slice(15).slice(0, -2)) || '';
19
- };
20
- var byDataSelectors = function(dateTestId, dataSelectors, value) {
21
- var dataIds = dateTestId.split(',').map(function(d) {
22
- return d.trim();
23
- });
24
- var selectors = [];
25
- for(var index = 0; index < dataSelectors.length; index++){
26
- var dataSelector = dataSelectors[index];
27
- for(var index1 = 0; index1 < dataIds.length; index1++){
28
- var dataId = dataIds[index1];
29
- selectors.push(dataId + "[data-" + dataSelector + '="' + value + '"]');
30
- }
31
- }
32
- return selectors.join(',');
33
- };
34
-
35
- /**
36
- * Selectors
37
- */ var selectors = {
38
- accordion: {
39
- /**
40
- * The trigger button, which shows and hides the content / details.
41
- */ trigger: byTestId('bal-accordion-trigger')},
42
- button: {
43
- /**
44
- * Native button element.
45
- */ native: byTestId('bal-button')},
46
- pagination: {
47
- /**
48
- * Pagination left control.
49
- */ previous: byTestId('bal-pagination-controls-left'),
50
- /**
51
- * Pagination right control.
52
- */ next: byTestId('bal-pagination-controls-right'),
53
- /**
54
- * bal-button of the number of the page..
55
- */ pages: '.bal-pagination__nav__pagination-list > li > bal-button',
56
- /**
57
- * The native button of the number of the page.
58
- */ button: '.bal-pagination__nav__pagination-list > li > bal-button > button'
59
- },
60
- tag: {
61
- /**
62
- * Close button.
63
- */ close: byTestId('bal-tag-close')
64
- },
65
- checkbox: {
66
- /**
67
- * Native input element.
68
- */ input: byTestId('bal-checkbox-input'),
69
- /**
70
- * Label element.
71
- */ label: byTestId('bal-checkbox-label')},
72
- field: {
73
- /**
74
- * Hint element.
75
- */ hint: byTestId('bal-field-hint')
76
- },
77
- slider: {
78
- /**
79
- * Native input element.
80
- */ native: byTestId('bal-input-slider')
81
- },
82
- input: {
83
- /**
84
- * Native input element.
85
- */ native: byTestId('bal-input')
86
- },
87
- dateInput: {
88
- /**
89
- * Native input element.
90
- */ native: byTestId('bal-date-input')
91
- },
92
- numberInput: {
93
- /**
94
- * Native input element.
95
- */ native: byTestId('bal-number-input')
96
- },
97
- radio: {
98
- /**
99
- * Native input element.
100
- */ input: byTestId('bal-radio-input'),
101
- /**
102
- * Native label element.
103
- */ label: byTestId('bal-radio-label')},
104
- select: {
105
- /**
106
- * Native input element.
107
- */ input: 'input.data-test-select-input',
108
- /**
109
- * Select option.
110
- */ options: 'button.bal-select__option',
111
- /**
112
- * Multi select tag .
113
- */ chips: byTestId('bal-select-chip')
114
- },
115
- dropdown: {
116
- /**
117
- * Native input element.
118
- */ input: '[data-native]',
119
- /**
120
- * Select option.
121
- */ options: 'bal-option',
122
- /**
123
- * Trigger to open and close the popup.
124
- */ trigger: byTestId('bal-dropdown-trigger'),
125
- /**
126
- * Multi select tag .
127
- */ chips: byTestId('bal-dropdown-chip')
128
- },
129
- popover: {
130
- /**
131
- * Popover trigger.
132
- */ trigger: 'bal-popover-trigger',
133
- /**
134
- * Popover content element.
135
- */ content: byTestId('bal-popover-content')
136
- },
137
- textarea: {
138
- /**
139
- * Native input element.
140
- */ native: byTestId('bal-textarea-input')
141
- },
142
- steps: {
143
- /**
144
- * Step option
145
- */ option: byTestId('bal-steps-option'),
146
- /**
147
- * Step option label
148
- */ optionLabel: byTestId('bal-steps-option-label')
149
- },
150
- tabs: {
151
- /**
152
- * Tab item.
153
- */ item: byTestId('bal-tabs-item'),
154
- /**
155
- * Tab item label.
156
- */ itemLabel: byTestId('bal-tabs-item-label')
157
- },
158
- toast: {
159
- /**
160
- * Toast element.
161
- */ main: '.bal-notices > .bal-notices__inner > .bal-toast'},
162
- snackbar: {
163
- /**
164
- * Snackbar element.
165
- */ main: '.bal-notices > .bal-notices__inner > .bal-snackbar'},
166
- hint: {
167
- /**
168
- * Hint trigger element.
169
- */ trigger: byTestId('bal-hint-trigger'),
170
- /**
171
- * Hint content element.
172
- */ content: byTestId('bal-hint-content'),
173
- /**
174
- * Hint close element.
175
- */ close: byTestId('bal-hint-close')
176
- }
177
- };
178
-
179
- export { byDataSelectors as a, byTestId as b, dataTestSelector as d, parseDataTestID as p, selectors as s };