@genesislcap/foundation-ui 14.439.3 → 14.442.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 (134) hide show
  1. package/dist/custom-elements.json +1293 -725
  2. package/dist/dts/accordion/accordion.template.d.ts.map +1 -1
  3. package/dist/dts/accordion-item/accordion-item.template.d.ts.map +1 -1
  4. package/dist/dts/actions-menu/actions-menu.d.ts.map +1 -1
  5. package/dist/dts/actions-menu/actions-menu.styles.d.ts.map +1 -1
  6. package/dist/dts/actions-menu/actions-menu.template.d.ts.map +1 -1
  7. package/dist/dts/anchor/anchor.template.d.ts.map +1 -1
  8. package/dist/dts/anchored-region/anchor-region.template.d.ts.map +1 -1
  9. package/dist/dts/avatar/avatar.template.d.ts.map +1 -1
  10. package/dist/dts/badge/badge.template.d.ts.map +1 -1
  11. package/dist/dts/banner/banner.styles.d.ts.map +1 -1
  12. package/dist/dts/breadcrumb/breadcrumb.template.d.ts.map +1 -1
  13. package/dist/dts/breadcrumb-item/breadcrumb-item.template.d.ts.map +1 -1
  14. package/dist/dts/button/button.template.d.ts.map +1 -1
  15. package/dist/dts/calendar/calendar.template.d.ts.map +1 -1
  16. package/dist/dts/card/card.template.d.ts.map +1 -1
  17. package/dist/dts/checkbox/checkbox.template.d.ts.map +1 -1
  18. package/dist/dts/combobox/combobox.d.ts.map +1 -1
  19. package/dist/dts/combobox/combobox.template.d.ts.map +1 -1
  20. package/dist/dts/connection-indicator/connection-indicator.styles.d.ts.map +1 -1
  21. package/dist/dts/connection-indicator/connection-indicator.template.d.ts.map +1 -1
  22. package/dist/dts/data-grid/data-grid.styles.d.ts.map +1 -1
  23. package/dist/dts/data-grid/data-grid.template.d.ts.map +1 -1
  24. package/dist/dts/data-grid-cell/data-grid-cell.styles.d.ts.map +1 -1
  25. package/dist/dts/data-grid-row/data-grid-row.styles.d.ts.map +1 -1
  26. package/dist/dts/date-picker/date-picker.d.ts +1 -1
  27. package/dist/dts/date-picker/date-picker.d.ts.map +1 -1
  28. package/dist/dts/date-picker/date-picker.styles.d.ts.map +1 -1
  29. package/dist/dts/date-picker/date-picker.template.d.ts.map +1 -1
  30. package/dist/dts/date-picker/month.d.ts.map +1 -1
  31. package/dist/dts/design-system-provider/design-system-provider.utils.d.ts +1 -2
  32. package/dist/dts/design-system-provider/design-system-provider.utils.d.ts.map +1 -1
  33. package/dist/dts/dialog/dialog.d.ts +22 -0
  34. package/dist/dts/dialog/dialog.d.ts.map +1 -1
  35. package/dist/dts/dialog/dialog.styles.d.ts.map +1 -1
  36. package/dist/dts/disclosure/disclosure.template.d.ts.map +1 -1
  37. package/dist/dts/divider/divider.template.d.ts.map +1 -1
  38. package/dist/dts/dropdown-menu/dropdown-menu.styles.d.ts.map +1 -1
  39. package/dist/dts/error-dialog/error-dialog.styles.d.ts.map +1 -1
  40. package/dist/dts/file-upload/file-upload.styles.d.ts.map +1 -1
  41. package/dist/dts/filter/filter.d.ts.map +1 -1
  42. package/dist/dts/filter/filter.template.d.ts.map +1 -1
  43. package/dist/dts/flex-layout/flex-layout.styles.d.ts.map +1 -1
  44. package/dist/dts/flex-layout/flex-layout.template.d.ts.map +1 -1
  45. package/dist/dts/flipper/flipper.template.d.ts.map +1 -1
  46. package/dist/dts/flyout/flyout.styles.d.ts.map +1 -1
  47. package/dist/dts/grid-layout/grid-layout.styles.d.ts.map +1 -1
  48. package/dist/dts/grid-layout/grid-layout.template.d.ts.map +1 -1
  49. package/dist/dts/grid-layout-item/grid-layout-item.template.d.ts.map +1 -1
  50. package/dist/dts/horizontal-scroll/horizontal-scroll.template.d.ts.map +1 -1
  51. package/dist/dts/icon/icon.styles.d.ts.map +1 -1
  52. package/dist/dts/icon/icon.template.d.ts.map +1 -1
  53. package/dist/dts/listbox/listbox.template.d.ts.map +1 -1
  54. package/dist/dts/listbox-option/listbox-option.template.d.ts.map +1 -1
  55. package/dist/dts/menu/menu.template.d.ts.map +1 -1
  56. package/dist/dts/menu-item/menu-item.template.d.ts.map +1 -1
  57. package/dist/dts/modal/modal.d.ts +0 -19
  58. package/dist/dts/modal/modal.d.ts.map +1 -1
  59. package/dist/dts/modal/modal.styles.d.ts.map +1 -1
  60. package/dist/dts/modal/modal.template.d.ts.map +1 -1
  61. package/dist/dts/notification-listener/notification-listener.d.ts.map +1 -1
  62. package/dist/dts/options-datasource/multiselect-datasource.d.ts.map +1 -1
  63. package/dist/dts/options-datasource/options-datasource.d.ts.map +1 -1
  64. package/dist/dts/popper/popper.d.ts.map +1 -1
  65. package/dist/dts/progress/progress.template.d.ts.map +1 -1
  66. package/dist/dts/progress-ring/progress-ring.template.d.ts.map +1 -1
  67. package/dist/dts/provide-design-system.d.ts.map +1 -1
  68. package/dist/dts/radio/radio.template.d.ts.map +1 -1
  69. package/dist/dts/radio-group/radio-group.template.d.ts.map +1 -1
  70. package/dist/dts/react.d.ts +9 -9
  71. package/dist/dts/router/events.d.ts +1 -1
  72. package/dist/dts/router/navigation.d.ts +5 -5
  73. package/dist/dts/router/navigation.d.ts.map +1 -1
  74. package/dist/dts/scheduler/scheduler.styles.d.ts.map +1 -1
  75. package/dist/dts/scheduler-cron-builder/daily-recurrence/daily-recurrence.styles.d.ts.map +1 -1
  76. package/dist/dts/scheduler-cron-builder/monthly-yearly-recurrence/monthly-yearly-recurrence.styles.d.ts.map +1 -1
  77. package/dist/dts/scheduler-cron-builder/scheduler-cron-builder.d.ts +1 -1
  78. package/dist/dts/scheduler-cron-builder/scheduler-cron-builder.d.ts.map +1 -1
  79. package/dist/dts/scheduler-cron-builder/scheduler-cron-builder.styles.d.ts.map +1 -1
  80. package/dist/dts/scheduler-cron-builder/weekly-recurrence/weekly-recurrence.d.ts.map +1 -1
  81. package/dist/dts/scheduler-cron-builder/weekly-recurrence/weekly-recurrence.styles.d.ts.map +1 -1
  82. package/dist/dts/scheduler-timezone/scheduler-timezone.styles.d.ts.map +1 -1
  83. package/dist/dts/search-bar/search-bar-combobox.template.d.ts +1 -1
  84. package/dist/dts/search-bar/search-bar-combobox.template.d.ts.map +1 -1
  85. package/dist/dts/segmented-control/segmented-control.template.d.ts.map +1 -1
  86. package/dist/dts/select/select.template.d.ts.map +1 -1
  87. package/dist/dts/skeleton/skeleton.template.d.ts.map +1 -1
  88. package/dist/dts/slider/slider.template.d.ts.map +1 -1
  89. package/dist/dts/slider-label/slider-label.template.d.ts.map +1 -1
  90. package/dist/dts/snackbar/snackbar.styles.d.ts.map +1 -1
  91. package/dist/dts/stacking-icons/stacking-icons.styles.d.ts.map +1 -1
  92. package/dist/dts/stacking-icons/stacking-icons.template.d.ts.map +1 -1
  93. package/dist/dts/stepper-tab-panel/stepper-tab-panel.template.d.ts.map +1 -1
  94. package/dist/dts/switch/switch.template.d.ts.map +1 -1
  95. package/dist/dts/tab/tab.template.d.ts.map +1 -1
  96. package/dist/dts/tab-panel/tab-panel.template.d.ts.map +1 -1
  97. package/dist/dts/tabs/tabs.d.ts.map +1 -1
  98. package/dist/dts/tabs/tabs.template.d.ts.map +1 -1
  99. package/dist/dts/text-area/text-area.template.d.ts.map +1 -1
  100. package/dist/dts/text-field/text-field.template.d.ts.map +1 -1
  101. package/dist/dts/toast/toast.d.ts.map +1 -1
  102. package/dist/dts/toast/toast.styles.d.ts.map +1 -1
  103. package/dist/dts/toast/toast.template.d.ts.map +1 -1
  104. package/dist/dts/toolbar/toolbar.template.d.ts.map +1 -1
  105. package/dist/dts/tooltip/tooltip.template.d.ts.map +1 -1
  106. package/dist/dts/tree-item/tree-item.template.d.ts.map +1 -1
  107. package/dist/dts/tree-view/tree-view.template.d.ts.map +1 -1
  108. package/dist/esm/combobox/combobox.js +1 -2
  109. package/dist/esm/connection-indicator/connection-indicator.styles.js +2 -5
  110. package/dist/esm/connection-indicator/connection-indicator.template.js +1 -2
  111. package/dist/esm/date-picker/date-picker.template.js +1 -2
  112. package/dist/esm/date-picker/day.util.js +1 -1
  113. package/dist/esm/date-picker/month.js +1 -1
  114. package/dist/esm/dialog/dialog.js +115 -0
  115. package/dist/esm/dialog/dialog.styles.js +4 -0
  116. package/dist/esm/filter/filter.js +1 -1
  117. package/dist/esm/filter/filter.template.js +1 -0
  118. package/dist/esm/grid-layout-item/grid-layout-item.template.js +0 -3
  119. package/dist/esm/modal/modal.js +0 -116
  120. package/dist/esm/modal/modal.styles.js +0 -4
  121. package/dist/esm/notification-listener/notification-listener.js +2 -3
  122. package/dist/esm/options-datasource/options-datasource.js +1 -2
  123. package/dist/esm/popper/popper.js +1 -0
  124. package/dist/esm/router/navigation.js +4 -1
  125. package/dist/esm/scheduler-cron-builder/scheduler-cron-builder.js +2 -3
  126. package/dist/esm/scheduler-cron-builder/weekly-recurrence/weekly-recurrence.js +1 -3
  127. package/dist/esm/search-bar/search-bar-combobox.template.js +1 -2
  128. package/dist/esm/tabs/tabs.js +1 -0
  129. package/dist/esm/toast/toast.js +1 -1
  130. package/dist/esm/toast/toast.template.js +3 -1
  131. package/dist/react.cjs +6 -6
  132. package/dist/react.mjs +5 -5
  133. package/package.json +21 -21
  134. package/public/ag-grid/preview.html +468 -432
@@ -1,5 +1,3 @@
1
- import { __decorate } from "tslib";
2
- import { attr } from '@microsoft/fast-element';
3
1
  import { DialogElement } from '../dialog';
4
2
  import { foundationModalStyles as styles } from './modal.styles';
5
3
  import { foundationModalTemplate as template } from './modal.template';
@@ -13,126 +11,12 @@ export const defaultModalConfig = {};
13
11
  * @tagname %%prefix%%-modal
14
12
  */
15
13
  export class Modal extends DialogElement {
16
- constructor() {
17
- super(...arguments);
18
- this.isDragging = false;
19
- this.offsetX = 0;
20
- this.offsetY = 0;
21
- this.modalWidth = 0;
22
- this.modalHeight = 0;
23
- this.onMouseDownBound = null;
24
- this.onMouseMoveBound = null;
25
- this.onMouseUpBound = null;
26
- this.draggable = false;
27
- this.onCloseCallback = () => {
28
- if (this.draggable && this.mainElement instanceof HTMLElement) {
29
- Object.assign(this.mainElement.style, {
30
- position: '',
31
- left: '',
32
- top: '',
33
- margin: '',
34
- });
35
- }
36
- };
37
- }
38
- draggableChanged(ignore, newValue) {
39
- var _a, _b;
40
- if (newValue) {
41
- this.onMouseDownBound = this.onMouseDown.bind(this);
42
- (_a = this.mainElement) === null || _a === void 0 ? void 0 : _a.addEventListener('mousedown', this.onMouseDownBound);
43
- }
44
- else {
45
- if (this.onMouseDownBound) {
46
- (_b = this.mainElement) === null || _b === void 0 ? void 0 : _b.removeEventListener('mousedown', this.onMouseDownBound);
47
- this.onMouseDownBound = null;
48
- }
49
- this.removeDraggableEventListeners();
50
- }
51
- }
52
14
  show() {
53
15
  var _a, _b;
54
16
  (_a = this.onShowCallback) === null || _a === void 0 ? void 0 : _a.call(this);
55
17
  (_b = this.mainElement) === null || _b === void 0 ? void 0 : _b.showModal();
56
18
  }
57
- connectedCallback() {
58
- var _a;
59
- super.connectedCallback();
60
- if (this.draggable) {
61
- this.onMouseDownBound = this.onMouseDown.bind(this);
62
- (_a = this.mainElement) === null || _a === void 0 ? void 0 : _a.addEventListener('mousedown', this.onMouseDownBound);
63
- }
64
- }
65
- disconnectedCallback() {
66
- var _a;
67
- super.disconnectedCallback();
68
- this.removeDraggableEventListeners();
69
- if (this.onMouseDownBound) {
70
- (_a = this.mainElement) === null || _a === void 0 ? void 0 : _a.removeEventListener('mousedown', this.onMouseDownBound);
71
- this.onMouseDownBound = null;
72
- }
73
- }
74
- isEventTargetInDraggableTarget(event) {
75
- var _a;
76
- return (((_a = this.topElement) === null || _a === void 0 ? void 0 : _a.contains(event.target)) || this.isInsideTopSlot(event.target));
77
- }
78
- isInsideTopSlot(target) {
79
- if (!this.topElementSlot)
80
- return false;
81
- const assignedNodes = this.topElementSlot.assignedNodes();
82
- return assignedNodes.some((node) => node === target || node.contains(target));
83
- }
84
- onMouseDown(event) {
85
- if (!this.topElement || !this.isEventTargetInDraggableTarget(event) || this.isDragging)
86
- return;
87
- this.isDragging = true;
88
- const rect = this.mainElement.getBoundingClientRect();
89
- this.offsetX = event.clientX - rect.left;
90
- this.offsetY = event.clientY - rect.top;
91
- // Store the modal’s width and height to minimize calls to getBoundingClientRect
92
- this.modalWidth = rect.width;
93
- this.modalHeight = rect.height;
94
- this.onMouseMoveBound = this.onMouseMove.bind(this);
95
- this.onMouseUpBound = this.onMouseUp.bind(this);
96
- document.addEventListener('mousemove', this.onMouseMoveBound);
97
- document.addEventListener('mouseup', this.onMouseUpBound);
98
- }
99
- onMouseMove(event) {
100
- if (!this.isDragging || !this.mainElement)
101
- return;
102
- const viewportWidth = window.innerWidth;
103
- const viewportHeight = window.innerHeight;
104
- let newLeft = event.clientX - this.offsetX;
105
- let newTop = event.clientY - this.offsetY;
106
- // Ensure modal stays within screen boundaries
107
- newLeft = Math.max(0, Math.min(viewportWidth - this.modalWidth, newLeft));
108
- newTop = Math.max(0, Math.min(viewportHeight - this.modalHeight, newTop));
109
- requestAnimationFrame(() => {
110
- Object.assign(this.mainElement.style, {
111
- position: 'absolute',
112
- left: `${newLeft}px`,
113
- top: `${newTop}px`,
114
- margin: '0',
115
- });
116
- });
117
- }
118
- onMouseUp() {
119
- this.isDragging = false;
120
- this.removeDraggableEventListeners();
121
- }
122
- removeDraggableEventListeners() {
123
- if (this.onMouseMoveBound) {
124
- document.removeEventListener('mousemove', this.onMouseMoveBound);
125
- this.onMouseMoveBound = null;
126
- }
127
- if (this.onMouseUpBound) {
128
- document.removeEventListener('mouseup', this.onMouseUpBound);
129
- this.onMouseUpBound = null;
130
- }
131
- }
132
19
  }
133
- __decorate([
134
- attr({ mode: 'boolean' })
135
- ], Modal.prototype, "draggable", void 0);
136
20
  /**
137
21
  * The Foundation Modal
138
22
  *
@@ -2,8 +2,4 @@ import { css } from '@microsoft/fast-element';
2
2
  import { foundationDialogStyles } from '../dialog';
3
3
  export const foundationModalStyles = css `
4
4
  ${foundationDialogStyles}
5
-
6
- :host([draggable])::part(top) {
7
- cursor: move;
8
- }
9
5
  `;
@@ -1,7 +1,6 @@
1
1
  import { __awaiter, __decorate } from "tslib";
2
2
  import { Datasource, dataServerResultFilter, Connect, } from '@genesislcap/foundation-comms';
3
- import { showNotificationToast } from '@genesislcap/foundation-notifications';
4
- import { NotificationEvent, showNotification, } from '@genesislcap/foundation-notifications';
3
+ import { showNotificationToast, NotificationEvent, showNotification, } from '@genesislcap/foundation-notifications';
5
4
  import { attr, nullableNumberConverter, observable } from '@microsoft/fast-element';
6
5
  import { FoundationElement } from '@microsoft/fast-foundation';
7
6
  import { logger } from '../utils';
@@ -115,7 +114,7 @@ export class NotificationListener extends FoundationElement {
115
114
  const expiry = row.EXPIRY ? row.EXPIRY - row.CREATED_AT : undefined;
116
115
  let buttons = [];
117
116
  if (this.toastButtons && this.toastButtons.length > 0) {
118
- buttons = this.toastButtons.filter(({ condition }) => !!condition ? condition({ details: row }) : true);
117
+ buttons = this.toastButtons.filter(({ condition }) => condition ? condition({ details: row }) : true);
119
118
  }
120
119
  const toastStructure = {
121
120
  title: title,
@@ -2,8 +2,7 @@ var OptionsDatasource_1;
2
2
  import { __awaiter, __decorate } from "tslib";
3
3
  import { Combobox as FASTComboBox, } from '@microsoft/fast-components';
4
4
  import { attr, customElement, DOM, observable } from '@microsoft/fast-element';
5
- import { BaseDatasource, getPrefix, logger } from '../utils';
6
- import { dataserverCriteriaBuilder as criteriaMatchBuilder } from '../utils';
5
+ import { BaseDatasource, getPrefix, logger, dataserverCriteriaBuilder as criteriaMatchBuilder, } from '../utils';
7
6
  /**
8
7
  * Datasource element for select/combobox option loading.
9
8
  * @public
@@ -29,6 +29,7 @@ export class Popper extends FoundationElement {
29
29
  if (this.popper)
30
30
  this.popper.destroy();
31
31
  if (this.target) {
32
+ // oxlint-disable-next-line unicorn/no-invalid-remove-event-listener -- symmetric to addEventListener(.bind)
32
33
  this.target.removeEventListener(this.event, this.toggle.bind(this));
33
34
  }
34
35
  this.target = this.getRootNode().querySelector(this.selector);
@@ -1,5 +1,4 @@
1
1
  import { __awaiter } from "tslib";
2
- /* eslint-disable no-await-in-loop */
3
2
  import { Route as FASTRoute } from '@microsoft/fast-router';
4
3
  import { findRouter, isAbsoluteUrl } from './utils';
5
4
  /**
@@ -16,6 +15,7 @@ export const FoundationRouteNav = Object.freeze({
16
15
  },
17
16
  generateRoute: (relativeTo_1, path_1, ...args_1) => __awaiter(void 0, [relativeTo_1, path_1, ...args_1], void 0, function* (relativeTo, path, params = {}) {
18
17
  let router = findRouter(relativeTo);
18
+ /* oxlint-disable no-await-in-loop -- walk parent routers until a match */
19
19
  while (router !== null) {
20
20
  const p = yield router.config.generateRouteFromPath(path, params);
21
21
  if (p !== null) {
@@ -23,6 +23,7 @@ export const FoundationRouteNav = Object.freeze({
23
23
  }
24
24
  router = router.parent;
25
25
  }
26
+ /* oxlint-enable no-await-in-loop */
26
27
  return null;
27
28
  }),
28
29
  push: (path, trigger = true) => {
@@ -52,6 +53,7 @@ export const FoundationRouteNav = Object.freeze({
52
53
  name: Object.freeze({
53
54
  generateRoute: (relativeTo_1, name_1, ...args_1) => __awaiter(void 0, [relativeTo_1, name_1, ...args_1], void 0, function* (relativeTo, name, params = {}) {
54
55
  let router = findRouter(relativeTo);
56
+ /* oxlint-disable no-await-in-loop -- walk parent routers until a match */
55
57
  while (router !== null) {
56
58
  const path = yield router.config.generateRouteFromName(name, params);
57
59
  if (path !== null) {
@@ -59,6 +61,7 @@ export const FoundationRouteNav = Object.freeze({
59
61
  }
60
62
  router = router.parent;
61
63
  }
64
+ /* oxlint-enable no-await-in-loop */
62
65
  return null;
63
66
  }),
64
67
  push: (relativeTo_1, name_1, ...args_1) => __awaiter(void 0, [relativeTo_1, name_1, ...args_1], void 0, function* (relativeTo, name, params = {}, trigger = true) {
@@ -7,6 +7,7 @@ import { buildConfigForDailyRecurrence, buildConfigForHourlyRecurrence, buildCon
7
7
  import { schedulerCronBuilderStyles as styles } from './scheduler-cron-builder.styles';
8
8
  import { foundationSchedulerCronBuilderTemplate as template } from './scheduler-cron-builder.template';
9
9
  import { CronBuilderEvents, DateOrDay, MAX_DAYS, MAX_HOURS, MAX_MONTHS, RecurrenceType, WeekType, } from './types';
10
+ /* oxlint-disable no-magic-numbers -- cron UI presets (minute steps, 30-min ceiling) */
10
11
  /**
11
12
  * @tagname %%prefix%%-scheduler-cron-builder
12
13
  *
@@ -143,7 +144,6 @@ export class SchedulerCronBuilder extends FoundationElement {
143
144
  get frequencyList() {
144
145
  switch (this.cronConfig.type) {
145
146
  case RecurrenceType.MINUTES:
146
- // eslint-disable-next-line @typescript-eslint/no-magic-numbers
147
147
  const validMinutes = [1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30];
148
148
  const min = this.minMinuteInterval ? Number(this.minMinuteInterval) : 1;
149
149
  return validMinutes.filter((m) => m >= min);
@@ -206,7 +206,6 @@ export class SchedulerCronBuilder extends FoundationElement {
206
206
  this.handleChange('hours');
207
207
  }
208
208
  get isMinutesRecurrenceEnabled() {
209
- // eslint-disable-next-line @typescript-eslint/no-magic-numbers
210
209
  return !this.minMinuteInterval || Number(this.minMinuteInterval) <= 30;
211
210
  }
212
211
  get isSpecificHours() {
@@ -247,7 +246,6 @@ export class SchedulerCronBuilder extends FoundationElement {
247
246
  const _a = this.getBaseConfigFields(), { minutes: _ } = _a, minutesBaseConfig = __rest(_a, ["minutes"]);
248
247
  this.during = 'every_hour';
249
248
  this.hours = '*';
250
- // eslint-disable-next-line @typescript-eslint/no-magic-numbers
251
249
  const validMinutes = [1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30];
252
250
  const min = this.minMinuteInterval ? Number(this.minMinuteInterval) : 1;
253
251
  const defaultFreq = validMinutes.find((m) => m >= min) || 1;
@@ -452,6 +450,7 @@ __decorate([
452
450
  __decorate([
453
451
  attr
454
452
  ], SchedulerCronBuilder.prototype, "timezone", void 0);
453
+ /* oxlint-enable no-magic-numbers */
455
454
  // explicitly declaring for extensibility
456
455
  export const foundationSchedulerCronBuilderShadowOptions = undefined;
457
456
  export const defaultCronBuilderConfig = {};
@@ -24,9 +24,7 @@ let WeeklyRecurrence = class WeeklyRecurrence extends EventEmitter(FoundationEle
24
24
  }
25
25
  configChanged() {
26
26
  var _a;
27
- this.selectedDays = ((_a = this.config) === null || _a === void 0 ? void 0 : _a.selectedDays)
28
- ? new Set([...this.config.selectedDays])
29
- : new Set();
27
+ this.selectedDays = ((_a = this.config) === null || _a === void 0 ? void 0 : _a.selectedDays) ? new Set(this.config.selectedDays) : new Set();
30
28
  }
31
29
  isDisabled(value) {
32
30
  return this.selectedDays.size === 1 && this.selectedDays.has(value);
@@ -1,6 +1,5 @@
1
1
  import { html, ref, slotted } from '@microsoft/fast-element';
2
- import { endSlotTemplate } from '@microsoft/fast-foundation';
3
- import { Listbox } from '@microsoft/fast-foundation';
2
+ import { endSlotTemplate, Listbox } from '@microsoft/fast-foundation';
4
3
  export const foundationSearchBarComboboxTemplate = (context, definition) => html `
5
4
  <template
6
5
  aria-disabled="${(x) => x.ariaDisabled}"
@@ -24,6 +24,7 @@ export class Tabs extends FASTTabs {
24
24
  * Exposes the private `activeTabIndex` from the original class
25
25
  */
26
26
  get currentTabIndex() {
27
+ // oxlint-disable-next-line typescript/no-this-alias -- exposes FASTTabs private activeTabIndex
27
28
  const ref = this;
28
29
  return ref.activeTabIndex;
29
30
  }
@@ -16,7 +16,7 @@ export class Toast extends FoundationElement {
16
16
  constructor() {
17
17
  super(...arguments);
18
18
  this.deleteAnimation = '';
19
- // eslint-disable-next-line @typescript-eslint/no-magic-numbers
19
+ // oxlint-disable-next-line no-magic-numbers -- default auto-close ms
20
20
  this.closeTimeout = 10000;
21
21
  this.autoClose = false;
22
22
  this.closeTimer = null;
@@ -1,6 +1,8 @@
1
1
  import { html, ref, when } from '@microsoft/fast-element';
2
2
  import { getPrefix } from '../utils';
3
- const closeIcon = (prefix = 'zero') => html `<${prefix}-icon class="close-icon" size="lg" name="xmark"></prefix-icon>`;
3
+ const closeIcon = (prefix = 'zero') => {
4
+ return html `<${prefix}-icon class="close-icon" size="lg" name="xmark"></prefix-icon>`;
5
+ };
4
6
  export const getPrefixedToast = (prefix = 'zero') => html `
5
7
  <div
6
8
  role="alert"
package/dist/react.cjs CHANGED
@@ -112,11 +112,6 @@ const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
112
112
  return React.createElement(customElements.getName(ActionsMenuWC) ?? '%%prefix%%-actions-menu', { ...rest, ref }, children);
113
113
  });
114
114
 
115
- const Accordion = React.forwardRef(function Accordion(props, ref) {
116
- const { children, ...rest } = props;
117
- return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-accordion', { ...rest, ref }, children);
118
- });
119
-
120
115
  const AiCriteriaSearch = React.forwardRef(function AiCriteriaSearch(props, ref) {
121
116
  const { onCriteriaChanged, onValidationErrors, children, ...rest } = props;
122
117
  const _innerRef = React.useRef(null);
@@ -139,6 +134,11 @@ const AiCriteriaSearch = React.forwardRef(function AiCriteriaSearch(props, ref)
139
134
  return React.createElement(customElements.getName(AiCriteriaSearchWC) ?? '%%prefix%%-ai-criteria-search', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
140
135
  });
141
136
 
137
+ const Accordion = React.forwardRef(function Accordion(props, ref) {
138
+ const { children, ...rest } = props;
139
+ return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-accordion', { ...rest, ref }, children);
140
+ });
141
+
142
142
  const AiIndicator = React.forwardRef(function AiIndicator(props, ref) {
143
143
  const { children, ...rest } = props;
144
144
  return React.createElement(customElements.getName(AiIndicatorWC) ?? '%%prefix%%-ai-indicator', { ...rest, ref }, children);
@@ -879,8 +879,8 @@ const UrlInput = React.forwardRef(function UrlInput(props, ref) {
879
879
  module.exports = {
880
880
  AccordionItem,
881
881
  ActionsMenu,
882
- Accordion,
883
882
  AiCriteriaSearch,
883
+ Accordion,
884
884
  AiIndicator,
885
885
  Anchor,
886
886
  AnchoredRegion,
package/dist/react.mjs CHANGED
@@ -110,11 +110,6 @@ export const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
110
110
  return React.createElement(customElements.getName(ActionsMenuWC) ?? '%%prefix%%-actions-menu', { ...rest, ref }, children);
111
111
  });
112
112
 
113
- export const Accordion = React.forwardRef(function Accordion(props, ref) {
114
- const { children, ...rest } = props;
115
- return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-accordion', { ...rest, ref }, children);
116
- });
117
-
118
113
  export const AiCriteriaSearch = React.forwardRef(function AiCriteriaSearch(props, ref) {
119
114
  const { onCriteriaChanged, onValidationErrors, children, ...rest } = props;
120
115
  const _innerRef = React.useRef(null);
@@ -137,6 +132,11 @@ export const AiCriteriaSearch = React.forwardRef(function AiCriteriaSearch(props
137
132
  return React.createElement(customElements.getName(AiCriteriaSearchWC) ?? '%%prefix%%-ai-criteria-search', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
138
133
  });
139
134
 
135
+ export const Accordion = React.forwardRef(function Accordion(props, ref) {
136
+ const { children, ...rest } = props;
137
+ return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-accordion', { ...rest, ref }, children);
138
+ });
139
+
140
140
  export const AiIndicator = React.forwardRef(function AiIndicator(props, ref) {
141
141
  const { children, ...rest } = props;
142
142
  return React.createElement(customElements.getName(AiIndicatorWC) ?? '%%prefix%%-ai-indicator', { ...rest, ref }, children);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-ui",
3
3
  "description": "Genesis Foundation UI",
4
- "version": "14.439.3",
4
+ "version": "14.442.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -74,8 +74,8 @@
74
74
  "test:unit:browser:watch": "genx test --browser --watch",
75
75
  "test:unit:watch": "genx test --watch",
76
76
  "test:debug": "genx test --debug",
77
- "lint": "genx lint --profile",
78
- "lint:fix": "genx lint --fix"
77
+ "lint": "genx lint -l ox",
78
+ "lint:fix": "genx lint -l ox --fix"
79
79
  },
80
80
  "madge": {
81
81
  "detectiveOptions": {
@@ -85,13 +85,13 @@
85
85
  }
86
86
  },
87
87
  "devDependencies": {
88
- "@genesislcap/foundation-testing": "14.439.3",
89
- "@genesislcap/genx": "14.439.3",
90
- "@genesislcap/rollup-builder": "14.439.3",
91
- "@genesislcap/ts-builder": "14.439.3",
92
- "@genesislcap/uvu-playwright-builder": "14.439.3",
93
- "@genesislcap/vite-builder": "14.439.3",
94
- "@genesislcap/webpack-builder": "14.439.3",
88
+ "@genesislcap/foundation-testing": "14.442.0",
89
+ "@genesislcap/genx": "14.442.0",
90
+ "@genesislcap/rollup-builder": "14.442.0",
91
+ "@genesislcap/ts-builder": "14.442.0",
92
+ "@genesislcap/uvu-playwright-builder": "14.442.0",
93
+ "@genesislcap/vite-builder": "14.442.0",
94
+ "@genesislcap/webpack-builder": "14.442.0",
95
95
  "copyfiles": "^2.4.1"
96
96
  },
97
97
  "dependencies": {
@@ -100,16 +100,16 @@
100
100
  "@fortawesome/free-regular-svg-icons": "^6.2.1",
101
101
  "@fortawesome/free-solid-svg-icons": "^6.2.1",
102
102
  "@genesiscommunitysuccess/analyzer-import-alias-plugin": "^5.0.3",
103
- "@genesislcap/expression-builder": "14.439.3",
104
- "@genesislcap/foundation-ai": "14.439.3",
105
- "@genesislcap/foundation-comms": "14.439.3",
106
- "@genesislcap/foundation-criteria": "14.439.3",
107
- "@genesislcap/foundation-errors": "14.439.3",
108
- "@genesislcap/foundation-events": "14.439.3",
109
- "@genesislcap/foundation-logger": "14.439.3",
110
- "@genesislcap/foundation-notifications": "14.439.3",
111
- "@genesislcap/foundation-user": "14.439.3",
112
- "@genesislcap/foundation-utils": "14.439.3",
103
+ "@genesislcap/expression-builder": "14.442.0",
104
+ "@genesislcap/foundation-ai": "14.442.0",
105
+ "@genesislcap/foundation-comms": "14.442.0",
106
+ "@genesislcap/foundation-criteria": "14.442.0",
107
+ "@genesislcap/foundation-errors": "14.442.0",
108
+ "@genesislcap/foundation-events": "14.442.0",
109
+ "@genesislcap/foundation-logger": "14.442.0",
110
+ "@genesislcap/foundation-notifications": "14.442.0",
111
+ "@genesislcap/foundation-user": "14.442.0",
112
+ "@genesislcap/foundation-utils": "14.442.0",
113
113
  "@microsoft/fast-colors": "5.3.1",
114
114
  "@microsoft/fast-components": "2.30.6",
115
115
  "@microsoft/fast-element": "1.14.0",
@@ -142,5 +142,5 @@
142
142
  "require": "./dist/react.cjs"
143
143
  }
144
144
  },
145
- "gitHead": "75d483c70f8d48c49eca72c6da18cb42e1076dd2"
145
+ "gitHead": "ad425e4ea17dad7d5b580200f2ca31758896d07f"
146
146
  }