@genesislcap/foundation-ui 14.271.2 → 14.273.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 (32) hide show
  1. package/dist/custom-elements.json +2049 -1392
  2. package/dist/dts/base-components.d.ts +22 -0
  3. package/dist/dts/base-components.d.ts.map +1 -1
  4. package/dist/dts/index.d.ts +2 -0
  5. package/dist/dts/index.d.ts.map +1 -1
  6. package/dist/dts/scheduler/index.d.ts +4 -0
  7. package/dist/dts/scheduler/index.d.ts.map +1 -0
  8. package/dist/dts/scheduler/scheduler.d.ts +37 -0
  9. package/dist/dts/scheduler/scheduler.d.ts.map +1 -0
  10. package/dist/dts/scheduler/scheduler.styles.d.ts +3 -0
  11. package/dist/dts/scheduler/scheduler.styles.d.ts.map +1 -0
  12. package/dist/dts/scheduler/scheduler.template.d.ts +4 -0
  13. package/dist/dts/scheduler/scheduler.template.d.ts.map +1 -0
  14. package/dist/dts/scheduler-timezone/index.d.ts +4 -0
  15. package/dist/dts/scheduler-timezone/index.d.ts.map +1 -0
  16. package/dist/dts/scheduler-timezone/scheduler-timezone.d.ts +40 -0
  17. package/dist/dts/scheduler-timezone/scheduler-timezone.d.ts.map +1 -0
  18. package/dist/dts/scheduler-timezone/scheduler-timezone.styles.d.ts +3 -0
  19. package/dist/dts/scheduler-timezone/scheduler-timezone.styles.d.ts.map +1 -0
  20. package/dist/dts/scheduler-timezone/scheduler-timezone.template.d.ts +4 -0
  21. package/dist/dts/scheduler-timezone/scheduler-timezone.template.d.ts.map +1 -0
  22. package/dist/esm/base-components.js +4 -0
  23. package/dist/esm/index.js +2 -0
  24. package/dist/esm/scheduler/index.js +3 -0
  25. package/dist/esm/scheduler/scheduler.js +47 -0
  26. package/dist/esm/scheduler/scheduler.styles.js +9 -0
  27. package/dist/esm/scheduler/scheduler.template.js +18 -0
  28. package/dist/esm/scheduler-timezone/index.js +3 -0
  29. package/dist/esm/scheduler-timezone/scheduler-timezone.js +81 -0
  30. package/dist/esm/scheduler-timezone/scheduler-timezone.styles.js +29 -0
  31. package/dist/esm/scheduler-timezone/scheduler-timezone.template.js +23 -0
  32. package/package.json +18 -18
@@ -209,6 +209,17 @@ export declare const baseComponents: {
209
209
  foundationProgressRing: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").ProgressRingOptions>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").ProgressRingOptions, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
210
210
  foundationRadio: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").RadioOptions>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").RadioOptions, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
211
211
  foundationRadioGroup: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./radio-group").RadioGroup>;
212
+ foundationScheduler: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
213
+ baseName: string;
214
+ styles: import("@microsoft/fast-element").ElementStyles;
215
+ template: import("@microsoft/fast-element").ViewTemplate<import("./scheduler").Scheduler, any>;
216
+ shadowOptions: ShadowRootInit;
217
+ }>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
218
+ baseName: string;
219
+ styles: import("@microsoft/fast-element").ElementStyles;
220
+ template: import("@microsoft/fast-element").ViewTemplate<import("./scheduler").Scheduler, any>;
221
+ shadowOptions: ShadowRootInit;
222
+ }, typeof import("./scheduler").Scheduler>;
212
223
  foundationSchedulerCronBuilder: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
213
224
  baseName: string;
214
225
  styles: import("@microsoft/fast-element").ElementStyles;
@@ -220,6 +231,17 @@ export declare const baseComponents: {
220
231
  template: import("@microsoft/fast-element").ViewTemplate<import("./scheduler-cron-builder").SchedulerCronBuilder, any>;
221
232
  shadowOptions: ShadowRootInit;
222
233
  }, typeof import("./scheduler-cron-builder").SchedulerCronBuilder>;
234
+ foundationSchedulerTimezone: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
235
+ baseName: string;
236
+ styles: import("@microsoft/fast-element").ElementStyles;
237
+ template: import("@microsoft/fast-element").ViewTemplate<import("./scheduler-timezone").SchedulerTimezone, any>;
238
+ shadowOptions: ShadowRootInit;
239
+ }>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
240
+ baseName: string;
241
+ styles: import("@microsoft/fast-element").ElementStyles;
242
+ template: import("@microsoft/fast-element").ViewTemplate<import("./scheduler-timezone").SchedulerTimezone, any>;
243
+ shadowOptions: ShadowRootInit;
244
+ }, typeof import("./scheduler-timezone").SchedulerTimezone>;
223
245
  foundationSearchBar: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
224
246
  baseName: string;
225
247
  template: import("@microsoft/fast-element").ViewTemplate<import("./search-bar").SearchBar, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"base-components.d.ts","sourceRoot":"","sources":["../../src/base-components.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AA+E5D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA+EJ,SAAS,WAAW,GAAG,EAAE;CAe/C,CAAC"}
1
+ {"version":3,"file":"base-components.d.ts","sourceRoot":"","sources":["../../src/base-components.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAiF5D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAiFJ,SAAS,WAAW,GAAG,EAAE;CAe/C,CAAC"}
@@ -63,7 +63,9 @@ export * from './progress-ring';
63
63
  export * from './radio';
64
64
  export * from './radio-group';
65
65
  export * from './router';
66
+ export * from './scheduler';
66
67
  export * from './scheduler-cron-builder';
68
+ export * from './scheduler-timezone';
67
69
  export * from './search-bar';
68
70
  export * from './segmented-control';
69
71
  export * from './segmented-item';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEvF,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,CAAC;AAExE,eAAO,MAAM,8BAA8B,yDAAuD,CAAC;AAEnG,cAAc,WAAW,CAAC;AAC1B,cAAc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.styles';
3
+ export * from './scheduler.template';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/scheduler/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { FoundationElement } from '@microsoft/fast-foundation';
2
+ type CronConfig = {
3
+ timezone: string;
4
+ cronExpression: string;
5
+ };
6
+ /**
7
+ * @tagname %%prefix%%-scheduler
8
+ */
9
+ export declare class Scheduler extends FoundationElement {
10
+ timezone: string;
11
+ cron: string;
12
+ cronConfig: CronConfig;
13
+ cronConfigChanged(): void;
14
+ handleChange(event: CustomEvent, key: string): void;
15
+ }
16
+ export declare const foundationSchedulerShadowOptions: ShadowRootInit;
17
+ export declare const defaultConfig: {};
18
+ /**
19
+ * The Foundation Scheduler Element.
20
+ *
21
+ * @public
22
+ * @remarks
23
+ * HTML Element: \<foundation-scheduler\>
24
+ */
25
+ export declare const foundationScheduler: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
26
+ baseName: string;
27
+ styles: import("@microsoft/fast-element").ElementStyles;
28
+ template: import("@microsoft/fast-element").ViewTemplate<Scheduler, any>;
29
+ shadowOptions: ShadowRootInit;
30
+ }>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
31
+ baseName: string;
32
+ styles: import("@microsoft/fast-element").ElementStyles;
33
+ template: import("@microsoft/fast-element").ViewTemplate<Scheduler, any>;
34
+ shadowOptions: ShadowRootInit;
35
+ }, typeof Scheduler>;
36
+ export {};
37
+ //# sourceMappingURL=scheduler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduler.d.ts","sourceRoot":"","sources":["../../../src/scheduler/scheduler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAI/D,KAAK,UAAU,GAAG;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AACF;;GAEG;AACH,qBAAa,SAAU,SAAQ,iBAAiB;IAClC,QAAQ,EAAE,MAAM,CAAM;IACtB,IAAI,EAAE,MAAM,CAAM;IAClB,UAAU,EAAE,UAAU,CAAC;IACnC,iBAAiB;IAKjB,YAAY,CAAC,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM;CAS7C;AAGD,eAAO,MAAM,gCAAgC,EAAE,cAA0B,CAAC;AAE1E,eAAO,MAAM,aAAa,IAAK,CAAC;AAEhC;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;oBAM9B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ElementStyles } from '@microsoft/fast-element';
2
+ export declare const schedulerStyles: ElementStyles;
3
+ //# sourceMappingURL=scheduler.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduler.styles.d.ts","sourceRoot":"","sources":["../../../src/scheduler/scheduler.styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,eAAO,MAAM,eAAe,EAAE,aAO7B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Scheduler } from './scheduler';
2
+ export declare const getPrefixedScheduler: (prefix: string) => import("@microsoft/fast-element").ViewTemplate<Scheduler, any>;
3
+ export declare const foundationSchedulerTemplate: import("@microsoft/fast-element").ViewTemplate<Scheduler, any>;
4
+ //# sourceMappingURL=scheduler.template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduler.template.d.ts","sourceRoot":"","sources":["../../../src/scheduler/scheduler.template.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,eAAO,MAAM,oBAAoB,WAAY,MAAM,mEAWlD,CAAC;AACF,eAAO,MAAM,2BAA2B,gEAEvC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './scheduler-timezone.styles';
2
+ export * from './scheduler-timezone.template';
3
+ export * from './scheduler-timezone';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/scheduler-timezone/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { Connect } from '@genesislcap/foundation-comms';
2
+ import { FoundationElement } from '@microsoft/fast-foundation';
3
+ /**
4
+ * @tagname %%prefix%%-scheduler-timezone
5
+ */
6
+ export declare class SchedulerTimezone extends FoundationElement {
7
+ timezone: string;
8
+ timezoneChanged(): void;
9
+ connect: Connect;
10
+ timeZones: any;
11
+ /**
12
+ * Used to store the timezone
13
+ * added to make sync directive work as it checks value field in the change event
14
+ * @internal
15
+ */
16
+ value: string;
17
+ connectedCallback(): void;
18
+ getTimeZones(): Promise<void>;
19
+ }
20
+ export declare const foundationSchedulerTimezoneShadowOptions: ShadowRootInit;
21
+ export declare const defaultTimezoneConfig: {};
22
+ /**
23
+ * The Foundation Scheduler Timezone Element.
24
+ *
25
+ * @public
26
+ * @remarks
27
+ * HTML Element: \<foundation-scheduler-timezone\>
28
+ */
29
+ export declare const foundationSchedulerTimezone: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
30
+ baseName: string;
31
+ styles: import("@microsoft/fast-element").ElementStyles;
32
+ template: import("@microsoft/fast-element").ViewTemplate<SchedulerTimezone, any>;
33
+ shadowOptions: ShadowRootInit;
34
+ }>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
35
+ baseName: string;
36
+ styles: import("@microsoft/fast-element").ElementStyles;
37
+ template: import("@microsoft/fast-element").ViewTemplate<SchedulerTimezone, any>;
38
+ shadowOptions: ShadowRootInit;
39
+ }, typeof SchedulerTimezone>;
40
+ //# sourceMappingURL=scheduler-timezone.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduler-timezone.d.ts","sourceRoot":"","sources":["../../../src/scheduler-timezone/scheduler-timezone.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,+BAA+B,CAAC;AAGhE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAI/D;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,iBAAiB;IAC1C,QAAQ,EAAE,MAAM,CAAM;IAClC,eAAe;IAIN,OAAO,EAAG,OAAO,CAAC;IAEf,SAAS,MAAC;IACtB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAiB;IAE9B,iBAAiB;IAKX,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;CA4BpC;AAGD,eAAO,MAAM,wCAAwC,EAAE,cAA0B,CAAC;AAElF,eAAO,MAAM,qBAAqB,IAAK,CAAC;AAExC;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;4BAMtC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ElementStyles } from '@microsoft/fast-element';
2
+ export declare const schedulerTimezoneStyles: ElementStyles;
3
+ //# sourceMappingURL=scheduler-timezone.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduler-timezone.styles.d.ts","sourceRoot":"","sources":["../../../src/scheduler-timezone/scheduler-timezone.styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,eAAO,MAAM,uBAAuB,EAAE,aA2BrC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { SchedulerTimezone } from './scheduler-timezone';
2
+ export declare const getPrefixedSchedulerTimezone: (prefix: string) => import("@microsoft/fast-element").ViewTemplate<SchedulerTimezone, any>;
3
+ export declare const foundationSchedulerTimezoneTemplate: import("@microsoft/fast-element").ViewTemplate<SchedulerTimezone, any>;
4
+ //# sourceMappingURL=scheduler-timezone.template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduler-timezone.template.d.ts","sourceRoot":"","sources":["../../../src/scheduler-timezone/scheduler-timezone.template.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,eAAO,MAAM,4BAA4B,WAAY,MAAM,2EAmB1D,CAAC;AACF,eAAO,MAAM,mCAAmC,wEAE/C,CAAC"}
@@ -51,7 +51,9 @@ import { foundationProgress } from './progress';
51
51
  import { foundationProgressRing } from './progress-ring';
52
52
  import { foundationRadio } from './radio';
53
53
  import { foundationRadioGroup } from './radio-group';
54
+ import { foundationScheduler } from './scheduler';
54
55
  import { foundationSchedulerCronBuilder } from './scheduler-cron-builder';
56
+ import { foundationSchedulerTimezone } from './scheduler-timezone';
55
57
  import { foundationSearchBar, foundationSearchBarCombobox } from './search-bar';
56
58
  import { foundationSegmentedControl } from './segmented-control';
57
59
  import { foundationSegmentedItem } from './segmented-item';
@@ -128,7 +130,9 @@ export const baseComponents = {
128
130
  foundationProgressRing,
129
131
  foundationRadio,
130
132
  foundationRadioGroup,
133
+ foundationScheduler,
131
134
  foundationSchedulerCronBuilder,
135
+ foundationSchedulerTimezone,
132
136
  foundationSearchBar,
133
137
  foundationSearchBarCombobox,
134
138
  foundationSegmentedControl,
package/dist/esm/index.js CHANGED
@@ -63,7 +63,9 @@ export * from './progress-ring';
63
63
  export * from './radio';
64
64
  export * from './radio-group';
65
65
  export * from './router';
66
+ export * from './scheduler';
66
67
  export * from './scheduler-cron-builder';
68
+ export * from './scheduler-timezone';
67
69
  export * from './search-bar';
68
70
  export * from './segmented-control';
69
71
  export * from './segmented-item';
@@ -0,0 +1,3 @@
1
+ export * from './scheduler';
2
+ export * from './scheduler.styles';
3
+ export * from './scheduler.template';
@@ -0,0 +1,47 @@
1
+ import { __decorate } from "tslib";
2
+ import { observable } from '@microsoft/fast-element';
3
+ import { FoundationElement } from '@microsoft/fast-foundation';
4
+ import { schedulerStyles as styles } from './scheduler.styles';
5
+ import { foundationSchedulerTemplate as template } from './scheduler.template';
6
+ /**
7
+ * @tagname %%prefix%%-scheduler
8
+ */
9
+ export class Scheduler extends FoundationElement {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.timezone = '';
13
+ this.cron = '';
14
+ }
15
+ cronConfigChanged() {
16
+ var _a, _b;
17
+ this.timezone = ((_a = this.cronConfig) === null || _a === void 0 ? void 0 : _a.timezone) || '';
18
+ this.cron = ((_b = this.cronConfig) === null || _b === void 0 ? void 0 : _b.cronExpression) || '';
19
+ }
20
+ handleChange(event, key) {
21
+ event.stopPropagation();
22
+ const { value } = event.target;
23
+ this.cronConfig = Object.assign(Object.assign({}, this.cronConfig), { [key]: value });
24
+ this.$emit('change', this.cronConfig);
25
+ }
26
+ }
27
+ __decorate([
28
+ observable
29
+ ], Scheduler.prototype, "timezone", void 0);
30
+ __decorate([
31
+ observable
32
+ ], Scheduler.prototype, "cron", void 0);
33
+ __decorate([
34
+ observable
35
+ ], Scheduler.prototype, "cronConfig", void 0);
36
+ // explicitly declaring for extensibility
37
+ export const foundationSchedulerShadowOptions = undefined;
38
+ export const defaultConfig = {};
39
+ /**
40
+ * The Foundation Scheduler Element.
41
+ *
42
+ * @public
43
+ * @remarks
44
+ * HTML Element: \<foundation-scheduler\>
45
+ */
46
+ export const foundationScheduler = Scheduler.compose(Object.assign({ baseName: 'scheduler', styles,
47
+ template, shadowOptions: foundationSchedulerShadowOptions }, defaultConfig));
@@ -0,0 +1,9 @@
1
+ import { css } from '@microsoft/fast-element';
2
+ export const schedulerStyles = css `
3
+ /* Host */
4
+ :host {
5
+ display: flex;
6
+ flex-direction: column;
7
+ width: 100%;
8
+ }
9
+ `;
@@ -0,0 +1,18 @@
1
+ import { sync } from '@genesislcap/foundation-utils';
2
+ import { html } from '@microsoft/fast-element';
3
+ import { getPrefix } from '../utils';
4
+ export const getPrefixedScheduler = (prefix) => html `
5
+ <template>
6
+ <${prefix}-scheduler-timezone
7
+ :timezone=${sync((x) => x.timezone)}
8
+ @change=${(x, c) => x.handleChange(c.event, 'timezone')}
9
+ ></${prefix}-scheduler-timezone>
10
+ <${prefix}-scheduler-cron-builder
11
+ :cron=${sync((x) => x.cron)}
12
+ @change=${(x, c) => x.handleChange(c.event, 'cronExpression')}
13
+ ></${prefix}-scheduler-cron-builder>
14
+ </template>
15
+ `;
16
+ export const foundationSchedulerTemplate = html `
17
+ ${(x) => getPrefixedScheduler(getPrefix(x))}
18
+ `;
@@ -0,0 +1,3 @@
1
+ export * from './scheduler-timezone.styles';
2
+ export * from './scheduler-timezone.template';
3
+ export * from './scheduler-timezone';
@@ -0,0 +1,81 @@
1
+ import { __awaiter, __decorate } from "tslib";
2
+ import { Connect, logger } from '@genesislcap/foundation-comms';
3
+ import { showNotificationToast } from '@genesislcap/foundation-notifications';
4
+ import { observable } from '@microsoft/fast-element';
5
+ import { FoundationElement } from '@microsoft/fast-foundation';
6
+ import { schedulerTimezoneStyles as styles } from './scheduler-timezone.styles';
7
+ import { foundationSchedulerTimezoneTemplate as template } from './scheduler-timezone.template';
8
+ /**
9
+ * @tagname %%prefix%%-scheduler-timezone
10
+ */
11
+ export class SchedulerTimezone extends FoundationElement {
12
+ constructor() {
13
+ super(...arguments);
14
+ this.timezone = '';
15
+ /**
16
+ * Used to store the timezone
17
+ * added to make sync directive work as it checks value field in the change event
18
+ * @internal
19
+ */
20
+ this.value = this.timezone;
21
+ }
22
+ timezoneChanged() {
23
+ this.value = this.timezone;
24
+ this.$emit('change');
25
+ }
26
+ connectedCallback() {
27
+ super.connectedCallback();
28
+ this.getTimeZones();
29
+ }
30
+ getTimeZones() {
31
+ return __awaiter(this, void 0, void 0, function* () {
32
+ const priorityTimezones = ['Europe/London', 'America/New_York'];
33
+ try {
34
+ const response = yield this.connect.request('VALID_TIME_ZONE', {
35
+ REQUEST: {},
36
+ });
37
+ if (!response.REPLY || !Array.isArray(response.REPLY))
38
+ throw new Error('Invalid data returned for Timezones');
39
+ this.timeZones = response.REPLY.map((e) => e.ZONE_ID).sort((a, b) => {
40
+ // If 'a' is in priority list, move it up
41
+ if (priorityTimezones.includes(a) && !priorityTimezones.includes(b))
42
+ return -1;
43
+ // If 'b' is in priority list, move it up
44
+ if (!priorityTimezones.includes(a) && priorityTimezones.includes(b))
45
+ return 1;
46
+ // Otherwise, sort alphabetically
47
+ return a.localeCompare(b);
48
+ });
49
+ }
50
+ catch (e) {
51
+ showNotificationToast({
52
+ title: 'Cron Scheduler',
53
+ body: `Unable to fetch timezones data.`,
54
+ toast: { type: 'critical' },
55
+ }, 'rapid');
56
+ logger.error(e);
57
+ }
58
+ });
59
+ }
60
+ }
61
+ __decorate([
62
+ observable
63
+ ], SchedulerTimezone.prototype, "timezone", void 0);
64
+ __decorate([
65
+ Connect
66
+ ], SchedulerTimezone.prototype, "connect", void 0);
67
+ __decorate([
68
+ observable
69
+ ], SchedulerTimezone.prototype, "timeZones", void 0);
70
+ // explicitly declaring for extensibility
71
+ export const foundationSchedulerTimezoneShadowOptions = undefined;
72
+ export const defaultTimezoneConfig = {};
73
+ /**
74
+ * The Foundation Scheduler Timezone Element.
75
+ *
76
+ * @public
77
+ * @remarks
78
+ * HTML Element: \<foundation-scheduler-timezone\>
79
+ */
80
+ export const foundationSchedulerTimezone = SchedulerTimezone.compose(Object.assign({ baseName: 'scheduler-timezone', styles,
81
+ template, shadowOptions: foundationSchedulerTimezoneShadowOptions }, defaultTimezoneConfig));
@@ -0,0 +1,29 @@
1
+ import { css } from '@microsoft/fast-element';
2
+ export const schedulerTimezoneStyles = css `
3
+ /* Host */
4
+ :host {
5
+ display: flex;
6
+ flex-direction: column;
7
+ width: 100%;
8
+ }
9
+
10
+ .container {
11
+ padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);
12
+ display: flex;
13
+ flex-direction: column;
14
+ gap: calc(var(--design-unit) * 2px);
15
+ }
16
+
17
+ .label {
18
+ color: var(--neutral-foreground-hint);
19
+ display: block;
20
+ cursor: pointer;
21
+ font-size: var(--type-ramp-base-font-size);
22
+ line-height: var(--type-ramp-base-line-height);
23
+ font-style: normal;
24
+ }
25
+
26
+ .timezone-combobox::part(listbox) {
27
+ max-height: 20vh;
28
+ }
29
+ `;
@@ -0,0 +1,23 @@
1
+ import { sync } from '@genesislcap/foundation-utils';
2
+ import { html, repeat } from '@microsoft/fast-element';
3
+ import { getPrefix } from '../utils';
4
+ export const getPrefixedSchedulerTimezone = (prefix) => html `
5
+ <template>
6
+ <div class="container">
7
+ <label class="label">Time Zone</label>
8
+ <${prefix}-combobox
9
+ data-test-id="cron-scheduler-timezone"
10
+ autocomplete="both"
11
+ class="timezone-combobox"
12
+ value="${sync((x) => x.timezone)}"
13
+ >
14
+ ${repeat((x) => x.timeZones, html `
15
+ <${prefix}-option value="${(x) => x}">${(x) => x}</${prefix}-option>
16
+ `)}
17
+ </${prefix}-combobox>
18
+ </div>
19
+ </template>
20
+ `;
21
+ export const foundationSchedulerTimezoneTemplate = html `
22
+ ${(x) => getPrefixedSchedulerTimezone(getPrefix(x))}
23
+ `;
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.271.2",
4
+ "version": "14.273.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -83,13 +83,13 @@
83
83
  }
84
84
  },
85
85
  "devDependencies": {
86
- "@genesislcap/foundation-testing": "14.271.2",
87
- "@genesislcap/genx": "14.271.2",
88
- "@genesislcap/rollup-builder": "14.271.2",
89
- "@genesislcap/ts-builder": "14.271.2",
90
- "@genesislcap/uvu-playwright-builder": "14.271.2",
91
- "@genesislcap/vite-builder": "14.271.2",
92
- "@genesislcap/webpack-builder": "14.271.2",
86
+ "@genesislcap/foundation-testing": "14.273.0",
87
+ "@genesislcap/genx": "14.273.0",
88
+ "@genesislcap/rollup-builder": "14.273.0",
89
+ "@genesislcap/ts-builder": "14.273.0",
90
+ "@genesislcap/uvu-playwright-builder": "14.273.0",
91
+ "@genesislcap/vite-builder": "14.273.0",
92
+ "@genesislcap/webpack-builder": "14.273.0",
93
93
  "copyfiles": "^2.4.1",
94
94
  "rimraf": "^5.0.0",
95
95
  "rxjs": "^7.5.4"
@@ -100,15 +100,15 @@
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.271.2",
104
- "@genesislcap/foundation-comms": "14.271.2",
105
- "@genesislcap/foundation-criteria": "14.271.2",
106
- "@genesislcap/foundation-errors": "14.271.2",
107
- "@genesislcap/foundation-events": "14.271.2",
108
- "@genesislcap/foundation-logger": "14.271.2",
109
- "@genesislcap/foundation-notifications": "14.271.2",
110
- "@genesislcap/foundation-user": "14.271.2",
111
- "@genesislcap/foundation-utils": "14.271.2",
103
+ "@genesislcap/expression-builder": "14.273.0",
104
+ "@genesislcap/foundation-comms": "14.273.0",
105
+ "@genesislcap/foundation-criteria": "14.273.0",
106
+ "@genesislcap/foundation-errors": "14.273.0",
107
+ "@genesislcap/foundation-events": "14.273.0",
108
+ "@genesislcap/foundation-logger": "14.273.0",
109
+ "@genesislcap/foundation-notifications": "14.273.0",
110
+ "@genesislcap/foundation-user": "14.273.0",
111
+ "@genesislcap/foundation-utils": "14.273.0",
112
112
  "@microsoft/fast-colors": "5.3.1",
113
113
  "@microsoft/fast-components": "2.30.6",
114
114
  "@microsoft/fast-element": "1.14.0",
@@ -130,5 +130,5 @@
130
130
  "access": "public"
131
131
  },
132
132
  "customElements": "dist/custom-elements.json",
133
- "gitHead": "d6e668df3834ecfd859202ed71d4e7fef00df65b"
133
+ "gitHead": "06838df20d39cb79d0f9ab27c3ca2a9654441a66"
134
134
  }