@skyux/layout 8.7.0 → 9.0.0-alpha.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 (149) hide show
  1. package/esm2022/lib/modules/action-button/action-button-adapter-service.mjs +44 -0
  2. package/esm2022/lib/modules/action-button/action-button-container.component.mjs +138 -0
  3. package/{esm2020 → esm2022}/lib/modules/action-button/action-button-details.component.mjs +4 -4
  4. package/{esm2020 → esm2022}/lib/modules/action-button/action-button-header.component.mjs +4 -4
  5. package/esm2022/lib/modules/action-button/action-button-icon.component.mjs +40 -0
  6. package/esm2022/lib/modules/action-button/action-button.component.mjs +50 -0
  7. package/{esm2020 → esm2022}/lib/modules/action-button/action-button.module.mjs +23 -23
  8. package/{esm2020 → esm2022}/lib/modules/back-to-top/back-to-top-adapter.service.mjs +19 -22
  9. package/esm2022/lib/modules/back-to-top/back-to-top.component.mjs +25 -0
  10. package/esm2022/lib/modules/back-to-top/back-to-top.directive.mjs +119 -0
  11. package/{esm2020 → esm2022}/lib/modules/back-to-top/back-to-top.module.mjs +13 -13
  12. package/{esm2020 → esm2022}/lib/modules/box/box-content.component.mjs +4 -4
  13. package/{esm2020 → esm2022}/lib/modules/box/box-controls.component.mjs +4 -4
  14. package/{esm2020 → esm2022}/lib/modules/box/box-header.component.mjs +4 -4
  15. package/{esm2020 → esm2022}/lib/modules/box/box.component.mjs +4 -4
  16. package/{esm2020 → esm2022}/lib/modules/box/box.module.mjs +11 -11
  17. package/{esm2020 → esm2022}/lib/modules/card/card-actions.component.mjs +4 -4
  18. package/{esm2020 → esm2022}/lib/modules/card/card-content.component.mjs +4 -4
  19. package/{esm2020 → esm2022}/lib/modules/card/card-title.component.mjs +4 -4
  20. package/esm2022/lib/modules/card/card.component.mjs +107 -0
  21. package/{esm2020 → esm2022}/lib/modules/card/card.module.mjs +21 -21
  22. package/{esm2020 → esm2022}/lib/modules/definition-list/definition-list-content.component.mjs +4 -4
  23. package/{esm2020 → esm2022}/lib/modules/definition-list/definition-list-heading.component.mjs +4 -4
  24. package/{esm2020 → esm2022}/lib/modules/definition-list/definition-list-label.component.mjs +4 -4
  25. package/{esm2020 → esm2022}/lib/modules/definition-list/definition-list-value.component.mjs +4 -4
  26. package/{esm2020 → esm2022}/lib/modules/definition-list/definition-list.component.mjs +4 -4
  27. package/{esm2020 → esm2022}/lib/modules/definition-list/definition-list.module.mjs +13 -13
  28. package/{esm2020 → esm2022}/lib/modules/definition-list/definition-list.service.mjs +4 -4
  29. package/esm2022/lib/modules/description-list/description-list-adapter-service.mjs +44 -0
  30. package/{esm2020 → esm2022}/lib/modules/description-list/description-list-content.component.mjs +4 -4
  31. package/esm2022/lib/modules/description-list/description-list-description.component.mjs +52 -0
  32. package/{esm2020 → esm2022}/lib/modules/description-list/description-list-term.component.mjs +4 -4
  33. package/esm2022/lib/modules/description-list/description-list.component.mjs +95 -0
  34. package/{esm2020 → esm2022}/lib/modules/description-list/description-list.module.mjs +19 -19
  35. package/esm2022/lib/modules/description-list/description-list.service.mjs +24 -0
  36. package/esm2022/lib/modules/fluid-grid/column.component.mjs +66 -0
  37. package/esm2022/lib/modules/fluid-grid/fluid-grid.component.mjs +40 -0
  38. package/{esm2020 → esm2022}/lib/modules/fluid-grid/fluid-grid.module.mjs +5 -5
  39. package/{esm2020 → esm2022}/lib/modules/fluid-grid/row.component.mjs +4 -4
  40. package/esm2022/lib/modules/format/format.component.mjs +64 -0
  41. package/{esm2020 → esm2022}/lib/modules/format/format.module.mjs +5 -5
  42. package/esm2022/lib/modules/inline-delete/inline-delete-adapter.service.mjs +123 -0
  43. package/esm2022/lib/modules/inline-delete/inline-delete.component.mjs +164 -0
  44. package/{esm2020 → esm2022}/lib/modules/inline-delete/inline-delete.module.mjs +11 -11
  45. package/esm2022/lib/modules/page/page-theme-adapter.service.mjs +40 -0
  46. package/esm2022/lib/modules/page/page.component.mjs +49 -0
  47. package/{esm2020 → esm2022}/lib/modules/page/page.module.mjs +5 -5
  48. package/{esm2020 → esm2022}/lib/modules/page-summary/page-summary-adapter.service.mjs +4 -4
  49. package/{esm2020 → esm2022}/lib/modules/page-summary/page-summary-alert.component.mjs +4 -4
  50. package/{esm2020 → esm2022}/lib/modules/page-summary/page-summary-content.component.mjs +4 -4
  51. package/{esm2020 → esm2022}/lib/modules/page-summary/page-summary-image.component.mjs +4 -4
  52. package/{esm2020 → esm2022}/lib/modules/page-summary/page-summary-key-info.component.mjs +4 -4
  53. package/{esm2020 → esm2022}/lib/modules/page-summary/page-summary-status.component.mjs +4 -4
  54. package/{esm2020 → esm2022}/lib/modules/page-summary/page-summary-subtitle.component.mjs +4 -4
  55. package/{esm2020 → esm2022}/lib/modules/page-summary/page-summary-title.component.mjs +4 -4
  56. package/esm2022/lib/modules/page-summary/page-summary.component.mjs +73 -0
  57. package/{esm2020 → esm2022}/lib/modules/page-summary/page-summary.module.mjs +19 -19
  58. package/esm2022/lib/modules/shared/sky-layout-resources.module.mjs +60 -0
  59. package/esm2022/lib/modules/text-expand/text-expand-adapter.service.mjs +26 -0
  60. package/{esm2020 → esm2022}/lib/modules/text-expand/text-expand-modal.component.mjs +4 -4
  61. package/esm2022/lib/modules/text-expand/text-expand.component.mjs +315 -0
  62. package/{esm2020 → esm2022}/lib/modules/text-expand/text-expand.module.mjs +11 -11
  63. package/esm2022/lib/modules/text-expand-repeater/text-expand-repeater-adapter.service.mjs +32 -0
  64. package/esm2022/lib/modules/text-expand-repeater/text-expand-repeater.component.mjs +216 -0
  65. package/{esm2020 → esm2022}/lib/modules/text-expand-repeater/text-expand-repeater.module.mjs +5 -5
  66. package/{esm2020 → esm2022}/lib/modules/toolbar/toolbar-item.component.mjs +4 -4
  67. package/{esm2020 → esm2022}/lib/modules/toolbar/toolbar-section.component.mjs +4 -4
  68. package/{esm2020 → esm2022}/lib/modules/toolbar/toolbar-view-actions.component.mjs +4 -4
  69. package/{esm2020 → esm2022}/lib/modules/toolbar/toolbar.component.mjs +4 -4
  70. package/{esm2020 → esm2022}/lib/modules/toolbar/toolbar.module.mjs +11 -11
  71. package/esm2022/testing/action-button-fixture.mjs +48 -0
  72. package/esm2022/testing/box/box-harness.mjs +34 -0
  73. package/esm2022/testing/card-fixture.mjs +65 -0
  74. package/esm2022/testing/page-summary-fixture.mjs +31 -0
  75. package/fesm2022/skyux-layout-testing.mjs +181 -0
  76. package/{fesm2015 → fesm2022}/skyux-layout-testing.mjs.map +1 -1
  77. package/fesm2022/skyux-layout.mjs +2957 -0
  78. package/{fesm2020 → fesm2022}/skyux-layout.mjs.map +1 -1
  79. package/lib/modules/action-button/action-button-container.component.d.ts +1 -1
  80. package/lib/modules/action-button/action-button-icon.component.d.ts +1 -1
  81. package/lib/modules/action-button/action-button.component.d.ts +1 -1
  82. package/lib/modules/back-to-top/back-to-top.directive.d.ts +1 -1
  83. package/lib/modules/box/box.component.d.ts +1 -1
  84. package/lib/modules/card/card.component.d.ts +1 -1
  85. package/lib/modules/definition-list/definition-list.component.d.ts +1 -1
  86. package/lib/modules/description-list/description-list.component.d.ts +1 -1
  87. package/lib/modules/fluid-grid/column.component.d.ts +1 -1
  88. package/lib/modules/fluid-grid/fluid-grid.component.d.ts +1 -1
  89. package/lib/modules/fluid-grid/row.component.d.ts +1 -1
  90. package/lib/modules/format/format.component.d.ts +1 -1
  91. package/lib/modules/inline-delete/inline-delete.component.d.ts +1 -1
  92. package/lib/modules/page/page.component.d.ts +1 -1
  93. package/lib/modules/text-expand/text-expand.component.d.ts +1 -1
  94. package/lib/modules/text-expand-repeater/text-expand-repeater.component.d.ts +1 -1
  95. package/package.json +23 -31
  96. package/esm2020/lib/modules/action-button/action-button-adapter-service.mjs +0 -47
  97. package/esm2020/lib/modules/action-button/action-button-container.component.mjs +0 -139
  98. package/esm2020/lib/modules/action-button/action-button-icon.component.mjs +0 -43
  99. package/esm2020/lib/modules/action-button/action-button.component.mjs +0 -53
  100. package/esm2020/lib/modules/back-to-top/back-to-top.component.mjs +0 -30
  101. package/esm2020/lib/modules/back-to-top/back-to-top.directive.mjs +0 -118
  102. package/esm2020/lib/modules/card/card.component.mjs +0 -109
  103. package/esm2020/lib/modules/description-list/description-list-adapter-service.mjs +0 -47
  104. package/esm2020/lib/modules/description-list/description-list-description.component.mjs +0 -55
  105. package/esm2020/lib/modules/description-list/description-list.component.mjs +0 -98
  106. package/esm2020/lib/modules/description-list/description-list.service.mjs +0 -29
  107. package/esm2020/lib/modules/fluid-grid/column.component.mjs +0 -71
  108. package/esm2020/lib/modules/fluid-grid/fluid-grid.component.mjs +0 -42
  109. package/esm2020/lib/modules/format/format.component.mjs +0 -67
  110. package/esm2020/lib/modules/inline-delete/inline-delete-adapter.service.mjs +0 -122
  111. package/esm2020/lib/modules/inline-delete/inline-delete.component.mjs +0 -167
  112. package/esm2020/lib/modules/page/page-theme-adapter.service.mjs +0 -43
  113. package/esm2020/lib/modules/page/page.component.mjs +0 -52
  114. package/esm2020/lib/modules/page-summary/page-summary.component.mjs +0 -75
  115. package/esm2020/lib/modules/shared/sky-layout-resources.module.mjs +0 -60
  116. package/esm2020/lib/modules/text-expand/text-expand-adapter.service.mjs +0 -29
  117. package/esm2020/lib/modules/text-expand/text-expand.component.mjs +0 -306
  118. package/esm2020/lib/modules/text-expand-repeater/text-expand-repeater-adapter.service.mjs +0 -35
  119. package/esm2020/lib/modules/text-expand-repeater/text-expand-repeater.component.mjs +0 -214
  120. package/esm2020/testing/action-button-fixture.mjs +0 -51
  121. package/esm2020/testing/box/box-harness.mjs +0 -40
  122. package/esm2020/testing/card-fixture.mjs +0 -67
  123. package/esm2020/testing/page-summary-fixture.mjs +0 -34
  124. package/fesm2015/skyux-layout-testing.mjs +0 -198
  125. package/fesm2015/skyux-layout.mjs +0 -2996
  126. package/fesm2015/skyux-layout.mjs.map +0 -1
  127. package/fesm2020/skyux-layout-testing.mjs +0 -192
  128. package/fesm2020/skyux-layout-testing.mjs.map +0 -1
  129. package/fesm2020/skyux-layout.mjs +0 -2982
  130. /package/{esm2020 → esm2022}/index.mjs +0 -0
  131. /package/{esm2020 → esm2022}/lib/modules/action-button/action-button-permalink.mjs +0 -0
  132. /package/{esm2020 → esm2022}/lib/modules/action-button/types/action-button-container-align-items-type.mjs +0 -0
  133. /package/{esm2020 → esm2022}/lib/modules/action-button/types/action-button-container-align-items.mjs +0 -0
  134. /package/{esm2020 → esm2022}/lib/modules/back-to-top/models/back-to-top-message-type.mjs +0 -0
  135. /package/{esm2020 → esm2022}/lib/modules/back-to-top/models/back-to-top-message.mjs +0 -0
  136. /package/{esm2020 → esm2022}/lib/modules/back-to-top/models/back-to-top-options.mjs +0 -0
  137. /package/{esm2020 → esm2022}/lib/modules/description-list/types/description-list-mode-type.mjs +0 -0
  138. /package/{esm2020 → esm2022}/lib/modules/description-list/types/description-list-mode.mjs +0 -0
  139. /package/{esm2020 → esm2022}/lib/modules/fluid-grid/types/fluid-grid-gutter-size-type.mjs +0 -0
  140. /package/{esm2020 → esm2022}/lib/modules/format/format-item.mjs +0 -0
  141. /package/{esm2020 → esm2022}/lib/modules/inline-delete/inline-delete-type.mjs +0 -0
  142. /package/{esm2020 → esm2022}/lib/modules/page/page-layout-type.mjs +0 -0
  143. /package/{esm2020 → esm2022}/lib/modules/text-expand/text-expand-modal-context-token.mjs +0 -0
  144. /package/{esm2020 → esm2022}/lib/modules/text-expand/text-expand-modal-context.mjs +0 -0
  145. /package/{esm2020 → esm2022}/lib/modules/text-expand-repeater/types/text-expand-repeater-list-style-type.mjs +0 -0
  146. /package/{esm2020 → esm2022}/skyux-layout.mjs +0 -0
  147. /package/{esm2020 → esm2022}/testing/box/box-harness.filters.mjs +0 -0
  148. /package/{esm2020 → esm2022}/testing/public-api.mjs +0 -0
  149. /package/{esm2020 → esm2022}/testing/skyux-layout-testing.mjs +0 -0
@@ -1,198 +0,0 @@
1
- import { __classPrivateFieldGet, __classPrivateFieldSet, __awaiter } from 'tslib';
2
- import { By } from '@angular/platform-browser';
3
- import { SkyAppTestUtility } from '@skyux-sdk/testing';
4
- import { SkyComponentHarness } from '@skyux/core/testing';
5
-
6
- var _SkyActionButtonFixture_debugEl;
7
- /**
8
- * Allows interaction with a SKY UX action button component.
9
- * @internal
10
- */
11
- class SkyActionButtonFixture {
12
- /**
13
- * The action button's current header text.
14
- */
15
- get headerText() {
16
- return SkyAppTestUtility.getText(__classPrivateFieldGet(this, _SkyActionButtonFixture_debugEl, "f").query(By.css('.sky-action-button-header')));
17
- }
18
- /**
19
- * The action button's current details text.
20
- */
21
- get detailsText() {
22
- return SkyAppTestUtility.getText(__classPrivateFieldGet(this, _SkyActionButtonFixture_debugEl, "f").query(By.css('sky-action-button-details')));
23
- }
24
- /**
25
- * The action button's current icon type.
26
- */
27
- get iconType() {
28
- const classList = __classPrivateFieldGet(this, _SkyActionButtonFixture_debugEl, "f").query(By.css('.fa.sky-icon')).nativeElement
29
- .classList;
30
- for (let i = 0, n = classList.length; i < n; i++) {
31
- const cls = classList.item(i);
32
- if (cls.indexOf('fa-') === 0) {
33
- return cls.substr(3);
34
- }
35
- }
36
- /* istanbul ignore next */
37
- return undefined;
38
- }
39
- constructor(fixture, skyTestId) {
40
- _SkyActionButtonFixture_debugEl.set(this, void 0);
41
- __classPrivateFieldSet(this, _SkyActionButtonFixture_debugEl, SkyAppTestUtility.getDebugElementByTestId(fixture, skyTestId, 'sky-action-button'), "f");
42
- }
43
- /**
44
- * Clicks the action button.
45
- */
46
- actionClick() {
47
- __classPrivateFieldGet(this, _SkyActionButtonFixture_debugEl, "f")
48
- .query(By.css('.sky-action-button'))
49
- .triggerEventHandler('click', {});
50
- }
51
- }
52
- _SkyActionButtonFixture_debugEl = new WeakMap();
53
-
54
- var _SkyCardFixture_instances, _SkyCardFixture_debugEl, _SkyCardFixture_clickCheckLabelEl, _SkyCardFixture_getCheckInputEl;
55
- /**
56
- * Allows interaction with a SKY UX avatar component.
57
- * @internal
58
- */
59
- class SkyCardFixture {
60
- /**
61
- * The card's current title.
62
- */
63
- get titleText() {
64
- return SkyAppTestUtility.getText(__classPrivateFieldGet(this, _SkyCardFixture_debugEl, "f").query(By.css('sky-card-title')));
65
- }
66
- /**
67
- * The card's current content text.
68
- */
69
- get contentText() {
70
- return SkyAppTestUtility.getText(__classPrivateFieldGet(this, _SkyCardFixture_debugEl, "f").query(By.css('sky-card-content')));
71
- }
72
- /**
73
- * A flag indicating whether the user can select the card.
74
- */
75
- get selectable() {
76
- return !!__classPrivateFieldGet(this, _SkyCardFixture_debugEl, "f").query(By.css('.sky-card-check'));
77
- }
78
- /**
79
- * A flag indicating whether the card is currently selected. If the card
80
- * is not selectable, an error is thrown.
81
- */
82
- get selected() {
83
- if (this.selectable) {
84
- return __classPrivateFieldGet(this, _SkyCardFixture_instances, "m", _SkyCardFixture_getCheckInputEl).call(this).nativeElement.checked;
85
- }
86
- throw new Error('The card is not selectable.');
87
- }
88
- constructor(fixture, skyTestId) {
89
- _SkyCardFixture_instances.add(this);
90
- _SkyCardFixture_debugEl.set(this, void 0);
91
- __classPrivateFieldSet(this, _SkyCardFixture_debugEl, SkyAppTestUtility.getDebugElementByTestId(fixture, skyTestId, 'sky-card'), "f");
92
- }
93
- /**
94
- * Selects the card.
95
- */
96
- select() {
97
- if (!this.selected) {
98
- __classPrivateFieldGet(this, _SkyCardFixture_instances, "m", _SkyCardFixture_clickCheckLabelEl).call(this);
99
- }
100
- }
101
- /**
102
- * Deselects the card.
103
- */
104
- deselect() {
105
- if (this.selected) {
106
- __classPrivateFieldGet(this, _SkyCardFixture_instances, "m", _SkyCardFixture_clickCheckLabelEl).call(this);
107
- }
108
- }
109
- }
110
- _SkyCardFixture_debugEl = new WeakMap(), _SkyCardFixture_instances = new WeakSet(), _SkyCardFixture_clickCheckLabelEl = function _SkyCardFixture_clickCheckLabelEl() {
111
- __classPrivateFieldGet(this, _SkyCardFixture_debugEl, "f")
112
- .query(By.css('.sky-card-check label.sky-checkbox-wrapper'))
113
- .nativeElement.click();
114
- }, _SkyCardFixture_getCheckInputEl = function _SkyCardFixture_getCheckInputEl() {
115
- return __classPrivateFieldGet(this, _SkyCardFixture_debugEl, "f").query(By.css('.sky-card-check .sky-checkbox-wrapper input'));
116
- };
117
-
118
- var _SkyPageSummaryFixture_debugEl;
119
- /**
120
- * Allows interaction with a SKY UX page summary component.
121
- * @internal
122
- */
123
- class SkyPageSummaryFixture {
124
- /**
125
- * The page summary's current title text.
126
- */
127
- get titleText() {
128
- return SkyAppTestUtility.getText(__classPrivateFieldGet(this, _SkyPageSummaryFixture_debugEl, "f").query(By.css('sky-page-summary-title .sky-page-summary-title')));
129
- }
130
- /**
131
- * The page summary's current subtitle text.
132
- */
133
- get subtitleText() {
134
- return SkyAppTestUtility.getText(__classPrivateFieldGet(this, _SkyPageSummaryFixture_debugEl, "f").query(By.css('sky-page-summary-subtitle .sky-page-summary-subtitle')));
135
- }
136
- /**
137
- * The page summary's current content text.
138
- */
139
- get contentText() {
140
- return SkyAppTestUtility.getText(__classPrivateFieldGet(this, _SkyPageSummaryFixture_debugEl, "f").query(By.css('sky-page-summary-content .sky-page-summary-content')));
141
- }
142
- constructor(fixture, skyTestId) {
143
- _SkyPageSummaryFixture_debugEl.set(this, void 0);
144
- __classPrivateFieldSet(this, _SkyPageSummaryFixture_debugEl, SkyAppTestUtility.getDebugElementByTestId(fixture, skyTestId, 'sky-page-summary'), "f");
145
- }
146
- }
147
- _SkyPageSummaryFixture_debugEl = new WeakMap();
148
-
149
- var _SkyBoxHarness_getBox;
150
- class SkyBoxHarness extends SkyComponentHarness {
151
- constructor() {
152
- super(...arguments);
153
- _SkyBoxHarness_getBox.set(this, this.locatorFor('.sky-box'));
154
- }
155
- /**
156
- * Gets a `HarnessPredicate` that can be used to search for a
157
- * `SkyBoxHarness` that meets certain criteria
158
- */
159
- static with(filters) {
160
- return SkyBoxHarness.getDataSkyIdPredicate(filters);
161
- }
162
- /**
163
- * Gets the aria-label property of the box
164
- */
165
- getAriaLabel() {
166
- return __awaiter(this, void 0, void 0, function* () {
167
- return (yield __classPrivateFieldGet(this, _SkyBoxHarness_getBox, "f").call(this)).getAttribute('aria-label');
168
- });
169
- }
170
- /**
171
- * Gets the aria-labelledby property of the box
172
- */
173
- getAriaLabelledby() {
174
- return __awaiter(this, void 0, void 0, function* () {
175
- return (yield __classPrivateFieldGet(this, _SkyBoxHarness_getBox, "f").call(this)).getAttribute('aria-labelledby');
176
- });
177
- }
178
- /**
179
- * Gets the aria-role property of the box
180
- */
181
- getAriaRole() {
182
- return __awaiter(this, void 0, void 0, function* () {
183
- return (yield __classPrivateFieldGet(this, _SkyBoxHarness_getBox, "f").call(this)).getAttribute('role');
184
- });
185
- }
186
- }
187
- _SkyBoxHarness_getBox = new WeakMap();
188
- /**
189
- * @internal
190
- */
191
- SkyBoxHarness.hostSelector = 'sky-box';
192
-
193
- /**
194
- * Generated bundle index. Do not edit.
195
- */
196
-
197
- export { SkyActionButtonFixture, SkyBoxHarness, SkyCardFixture, SkyPageSummaryFixture };
198
- //# sourceMappingURL=skyux-layout-testing.mjs.map