@phatvu/web-component-poc 1.0.2 → 1.0.4
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/dist/cjs/{fast-carousel.cjs.entry.js → fast-button_4.cjs.entry.js} +233 -3
- package/dist/cjs/{index-C756SOR-.js → index-B2BTpdbN.js} +373 -114
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/web-component-poc.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/button/button.js +2 -3
- package/dist/collection/components/fast-carousel/carousel.js +2 -3
- package/dist/collection/components/{jobs-list-only-ui/jobs-list-only-ui.css → jobs-item/jobs-item.css} +1 -75
- package/dist/collection/components/jobs-item/jobs-item.js +253 -0
- package/dist/collection/components/jobs-list-only/jobs-list-only.css +75 -0
- package/dist/collection/components/{jobs-list-only-ui/jobs-list-only-ui.js → jobs-list-only/jobs-list-only.js} +7 -45
- package/dist/components/fast-button.js +1 -1
- package/dist/components/fast-carousel.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{jobs-list-only-ui.d.ts → jobs-item.d.ts} +4 -4
- package/dist/components/jobs-item.js +1 -0
- package/dist/components/jobs-list-only.d.ts +11 -0
- package/dist/components/jobs-list-only.js +1 -0
- package/dist/components/p-ClQDwJJB.js +1 -0
- package/dist/components/p-UM9TUfe3.js +1 -0
- package/dist/esm/{fast-carousel.entry.js → fast-button_4.entry.js} +231 -4
- package/dist/esm/{index-D7_MJBO8.js → index-Dk5CvWmb.js} +373 -114
- package/dist/esm/loader.js +3 -3
- package/dist/esm/web-component-poc.js +3 -3
- package/dist/types/components/jobs-item/jobs-item.d.ts +14 -0
- package/dist/types/components/{jobs-list-only-ui/jobs-list-only-ui.d.ts → jobs-list-only/jobs-list-only.d.ts} +1 -2
- package/dist/types/components.d.ts +99 -10
- package/dist/types/types/jobs-list.d.ts +2 -2
- package/dist/web-component-poc/{index-xE9n11HX.js.map → index-pJKMKO-T.js.map} +1 -1
- package/dist/web-component-poc/p-Dk5CvWmb.js +2 -0
- package/dist/web-component-poc/p-df843533.entry.js +1 -0
- package/dist/web-component-poc/web-component-poc.esm.js +1 -1
- package/hydrate/index.js +102 -552
- package/hydrate/index.mjs +102 -552
- package/package.json +9 -1
- package/readme.md +11 -0
- package/dist/cjs/fast-button_2.cjs.entry.js +0 -211
- package/dist/components/jobs-list-only-ui.js +0 -1
- package/dist/components/p-Cw2MJ5l2.js +0 -1
- package/dist/esm/fast-button_2.entry.js +0 -208
- package/dist/web-component-poc/p-0bc6d45d.entry.js +0 -1
- package/dist/web-component-poc/p-8ab359cc.entry.js +0 -1
- package/dist/web-component-poc/p-D7_MJBO8.js +0 -2
package/dist/esm/loader.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-Dk5CvWmb.js';
|
|
2
|
+
export { s as setNonce } from './index-Dk5CvWmb.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["fast-
|
|
8
|
+
return bootstrapLazy([["fast-button_4",[[512,"jobs-list-only",{"mockData":[4,"mock-data"],"jobs":[1],"loading":[4],"totalJob":[2,"total-job"],"noResultsLine1":[1,"no-results-line-1"],"noResultsLine2":[1,"no-results-line-2"],"applyButtonText":[1,"apply-button-text"],"showBrand":[4,"show-brand"],"showReference":[4,"show-reference"],"showEmploymentType":[4,"show-employment-type"],"streetFormat":[1,"street-format"],"multiLocationText":[1,"multi-location-text"],"remoteLocationText":[1,"remote-location-text"],"enableKilometers":[4,"enable-kilometers"],"rootClass":[1,"root-class"],"showSuggestions":[4,"show-suggestions"],"clearResultSuggestionsTitleText":[1,"clear-result-suggestions-title-text"],"clearResultSuggestionsLine1":[1,"clear-result-suggestions-line-1"],"clearResultSuggestionsLine2":[1,"clear-result-suggestions-line-2"],"clearResultSuggestionsLine3":[1,"clear-result-suggestions-line-3"],"clearResultSuggestionsLine4":[1,"clear-result-suggestions-line-4"]}],[772,"fast-button",{"variant":[1],"type":[1],"disabled":[4]}],[772,"fast-carousel",{"items":[1],"loop":[4],"class":[1],"controlClass":[1,"control-class"],"slideClass":[1,"slide-class"],"itemClass":[1,"item-class"],"scrollPrev":[64],"scrollNext":[64],"goToSlide":[64],"getEmbla":[64]}],[512,"jobs-item",{"job":[16],"index":[2],"applyButtonText":[1,"apply-button-text"],"showBrand":[4,"show-brand"],"showReference":[4,"show-reference"],"showEmploymentType":[4,"show-employment-type"],"multiLocationText":[1,"multi-location-text"],"remoteLocationText":[1,"remote-location-text"],"enableKilometers":[4,"enable-kilometers"]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-Dk5CvWmb.js';
|
|
2
|
+
export { s as setNonce } from './index-Dk5CvWmb.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
@@ -17,5 +17,5 @@ var patchBrowser = () => {
|
|
|
17
17
|
|
|
18
18
|
patchBrowser().then(async (options) => {
|
|
19
19
|
await globalScripts();
|
|
20
|
-
return bootstrapLazy([["fast-
|
|
20
|
+
return bootstrapLazy([["fast-button_4",[[512,"jobs-list-only",{"mockData":[4,"mock-data"],"jobs":[1],"loading":[4],"totalJob":[2,"total-job"],"noResultsLine1":[1,"no-results-line-1"],"noResultsLine2":[1,"no-results-line-2"],"applyButtonText":[1,"apply-button-text"],"showBrand":[4,"show-brand"],"showReference":[4,"show-reference"],"showEmploymentType":[4,"show-employment-type"],"streetFormat":[1,"street-format"],"multiLocationText":[1,"multi-location-text"],"remoteLocationText":[1,"remote-location-text"],"enableKilometers":[4,"enable-kilometers"],"rootClass":[1,"root-class"],"showSuggestions":[4,"show-suggestions"],"clearResultSuggestionsTitleText":[1,"clear-result-suggestions-title-text"],"clearResultSuggestionsLine1":[1,"clear-result-suggestions-line-1"],"clearResultSuggestionsLine2":[1,"clear-result-suggestions-line-2"],"clearResultSuggestionsLine3":[1,"clear-result-suggestions-line-3"],"clearResultSuggestionsLine4":[1,"clear-result-suggestions-line-4"]}],[772,"fast-button",{"variant":[1],"type":[1],"disabled":[4]}],[772,"fast-carousel",{"items":[1],"loop":[4],"class":[1],"controlClass":[1,"control-class"],"slideClass":[1,"slide-class"],"itemClass":[1,"item-class"],"scrollPrev":[64],"scrollNext":[64],"goToSlide":[64],"getEmbla":[64]}],[512,"jobs-item",{"job":[16],"index":[2],"applyButtonText":[1,"apply-button-text"],"showBrand":[4,"show-brand"],"showReference":[4,"show-reference"],"showEmploymentType":[4,"show-employment-type"],"multiLocationText":[1,"multi-location-text"],"remoteLocationText":[1,"remote-location-text"],"enableKilometers":[4,"enable-kilometers"]}]]]], options);
|
|
21
21
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { JobSummary } from '../../types/jobs-list';
|
|
2
|
+
export declare class JobsItem {
|
|
3
|
+
job: JobSummary;
|
|
4
|
+
index: number;
|
|
5
|
+
applyButtonText: string;
|
|
6
|
+
showBrand: boolean;
|
|
7
|
+
showReference: boolean;
|
|
8
|
+
showEmploymentType: boolean;
|
|
9
|
+
multiLocationText: string;
|
|
10
|
+
remoteLocationText: string;
|
|
11
|
+
enableKilometers: boolean;
|
|
12
|
+
private formatDistance;
|
|
13
|
+
render(): any;
|
|
14
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JobSummary } from '../../types/jobs-list';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class JobsListOnly {
|
|
3
3
|
/**
|
|
4
4
|
* When "true", use built-in mock data (for local/dev/docs). Otherwise use `jobs` from API/parent.
|
|
5
5
|
*/
|
|
@@ -29,7 +29,6 @@ export declare class JobsListOnlyUI {
|
|
|
29
29
|
clearResultSuggestionsLine3: string;
|
|
30
30
|
clearResultSuggestionsLine4: string;
|
|
31
31
|
private getJobsArray;
|
|
32
|
-
private formatDistance;
|
|
33
32
|
private renderJobItem;
|
|
34
33
|
render(): any;
|
|
35
34
|
}
|
|
@@ -70,7 +70,42 @@ export namespace Components {
|
|
|
70
70
|
*/
|
|
71
71
|
"slideClass": string;
|
|
72
72
|
}
|
|
73
|
-
interface
|
|
73
|
+
interface JobsItem {
|
|
74
|
+
/**
|
|
75
|
+
* @default 'Apply Now'
|
|
76
|
+
*/
|
|
77
|
+
"applyButtonText": string;
|
|
78
|
+
/**
|
|
79
|
+
* @default false
|
|
80
|
+
*/
|
|
81
|
+
"enableKilometers": boolean;
|
|
82
|
+
/**
|
|
83
|
+
* @default 0
|
|
84
|
+
*/
|
|
85
|
+
"index": number;
|
|
86
|
+
"job": JobSummary;
|
|
87
|
+
/**
|
|
88
|
+
* @default 'More locations'
|
|
89
|
+
*/
|
|
90
|
+
"multiLocationText": string;
|
|
91
|
+
/**
|
|
92
|
+
* @default 'Remote'
|
|
93
|
+
*/
|
|
94
|
+
"remoteLocationText": string;
|
|
95
|
+
/**
|
|
96
|
+
* @default true
|
|
97
|
+
*/
|
|
98
|
+
"showBrand": boolean;
|
|
99
|
+
/**
|
|
100
|
+
* @default true
|
|
101
|
+
*/
|
|
102
|
+
"showEmploymentType": boolean;
|
|
103
|
+
/**
|
|
104
|
+
* @default false
|
|
105
|
+
*/
|
|
106
|
+
"showReference": boolean;
|
|
107
|
+
}
|
|
108
|
+
interface JobsListOnly {
|
|
74
109
|
/**
|
|
75
110
|
* @default 'Apply Now'
|
|
76
111
|
*/
|
|
@@ -190,16 +225,23 @@ declare global {
|
|
|
190
225
|
prototype: HTMLFastCarouselElement;
|
|
191
226
|
new (): HTMLFastCarouselElement;
|
|
192
227
|
};
|
|
193
|
-
interface
|
|
228
|
+
interface HTMLJobsItemElement extends Components.JobsItem, HTMLStencilElement {
|
|
194
229
|
}
|
|
195
|
-
var
|
|
196
|
-
prototype:
|
|
197
|
-
new ():
|
|
230
|
+
var HTMLJobsItemElement: {
|
|
231
|
+
prototype: HTMLJobsItemElement;
|
|
232
|
+
new (): HTMLJobsItemElement;
|
|
233
|
+
};
|
|
234
|
+
interface HTMLJobsListOnlyElement extends Components.JobsListOnly, HTMLStencilElement {
|
|
235
|
+
}
|
|
236
|
+
var HTMLJobsListOnlyElement: {
|
|
237
|
+
prototype: HTMLJobsListOnlyElement;
|
|
238
|
+
new (): HTMLJobsListOnlyElement;
|
|
198
239
|
};
|
|
199
240
|
interface HTMLElementTagNameMap {
|
|
200
241
|
"fast-button": HTMLFastButtonElement;
|
|
201
242
|
"fast-carousel": HTMLFastCarouselElement;
|
|
202
|
-
"jobs-
|
|
243
|
+
"jobs-item": HTMLJobsItemElement;
|
|
244
|
+
"jobs-list-only": HTMLJobsListOnlyElement;
|
|
203
245
|
}
|
|
204
246
|
}
|
|
205
247
|
declare namespace LocalJSX {
|
|
@@ -251,7 +293,42 @@ declare namespace LocalJSX {
|
|
|
251
293
|
*/
|
|
252
294
|
"slideClass"?: string;
|
|
253
295
|
}
|
|
254
|
-
interface
|
|
296
|
+
interface JobsItem {
|
|
297
|
+
/**
|
|
298
|
+
* @default 'Apply Now'
|
|
299
|
+
*/
|
|
300
|
+
"applyButtonText"?: string;
|
|
301
|
+
/**
|
|
302
|
+
* @default false
|
|
303
|
+
*/
|
|
304
|
+
"enableKilometers"?: boolean;
|
|
305
|
+
/**
|
|
306
|
+
* @default 0
|
|
307
|
+
*/
|
|
308
|
+
"index"?: number;
|
|
309
|
+
"job"?: JobSummary;
|
|
310
|
+
/**
|
|
311
|
+
* @default 'More locations'
|
|
312
|
+
*/
|
|
313
|
+
"multiLocationText"?: string;
|
|
314
|
+
/**
|
|
315
|
+
* @default 'Remote'
|
|
316
|
+
*/
|
|
317
|
+
"remoteLocationText"?: string;
|
|
318
|
+
/**
|
|
319
|
+
* @default true
|
|
320
|
+
*/
|
|
321
|
+
"showBrand"?: boolean;
|
|
322
|
+
/**
|
|
323
|
+
* @default true
|
|
324
|
+
*/
|
|
325
|
+
"showEmploymentType"?: boolean;
|
|
326
|
+
/**
|
|
327
|
+
* @default false
|
|
328
|
+
*/
|
|
329
|
+
"showReference"?: boolean;
|
|
330
|
+
}
|
|
331
|
+
interface JobsListOnly {
|
|
255
332
|
/**
|
|
256
333
|
* @default 'Apply Now'
|
|
257
334
|
*/
|
|
@@ -356,7 +433,17 @@ declare namespace LocalJSX {
|
|
|
356
433
|
"slideClass": string;
|
|
357
434
|
"itemClass": string;
|
|
358
435
|
}
|
|
359
|
-
interface
|
|
436
|
+
interface JobsItemAttributes {
|
|
437
|
+
"index": number;
|
|
438
|
+
"applyButtonText": string;
|
|
439
|
+
"showBrand": boolean;
|
|
440
|
+
"showReference": boolean;
|
|
441
|
+
"showEmploymentType": boolean;
|
|
442
|
+
"multiLocationText": string;
|
|
443
|
+
"remoteLocationText": string;
|
|
444
|
+
"enableKilometers": boolean;
|
|
445
|
+
}
|
|
446
|
+
interface JobsListOnlyAttributes {
|
|
360
447
|
"mockData": boolean;
|
|
361
448
|
"jobs": JobSummary[] | string;
|
|
362
449
|
"loading": boolean;
|
|
@@ -383,7 +470,8 @@ declare namespace LocalJSX {
|
|
|
383
470
|
interface IntrinsicElements {
|
|
384
471
|
"fast-button": Omit<FastButton, keyof FastButtonAttributes> & { [K in keyof FastButton & keyof FastButtonAttributes]?: FastButton[K] } & { [K in keyof FastButton & keyof FastButtonAttributes as `attr:${K}`]?: FastButtonAttributes[K] } & { [K in keyof FastButton & keyof FastButtonAttributes as `prop:${K}`]?: FastButton[K] };
|
|
385
472
|
"fast-carousel": Omit<FastCarousel, keyof FastCarouselAttributes> & { [K in keyof FastCarousel & keyof FastCarouselAttributes]?: FastCarousel[K] } & { [K in keyof FastCarousel & keyof FastCarouselAttributes as `attr:${K}`]?: FastCarouselAttributes[K] } & { [K in keyof FastCarousel & keyof FastCarouselAttributes as `prop:${K}`]?: FastCarousel[K] };
|
|
386
|
-
"jobs-
|
|
473
|
+
"jobs-item": Omit<JobsItem, keyof JobsItemAttributes> & { [K in keyof JobsItem & keyof JobsItemAttributes]?: JobsItem[K] } & { [K in keyof JobsItem & keyof JobsItemAttributes as `attr:${K}`]?: JobsItemAttributes[K] } & { [K in keyof JobsItem & keyof JobsItemAttributes as `prop:${K}`]?: JobsItem[K] };
|
|
474
|
+
"jobs-list-only": Omit<JobsListOnly, keyof JobsListOnlyAttributes> & { [K in keyof JobsListOnly & keyof JobsListOnlyAttributes]?: JobsListOnly[K] } & { [K in keyof JobsListOnly & keyof JobsListOnlyAttributes as `attr:${K}`]?: JobsListOnlyAttributes[K] } & { [K in keyof JobsListOnly & keyof JobsListOnlyAttributes as `prop:${K}`]?: JobsListOnly[K] };
|
|
387
475
|
}
|
|
388
476
|
}
|
|
389
477
|
export { LocalJSX as JSX };
|
|
@@ -392,7 +480,8 @@ declare module "@stencil/core" {
|
|
|
392
480
|
interface IntrinsicElements {
|
|
393
481
|
"fast-button": LocalJSX.IntrinsicElements["fast-button"] & JSXBase.HTMLAttributes<HTMLFastButtonElement>;
|
|
394
482
|
"fast-carousel": LocalJSX.IntrinsicElements["fast-carousel"] & JSXBase.HTMLAttributes<HTMLFastCarouselElement>;
|
|
395
|
-
"jobs-
|
|
483
|
+
"jobs-item": LocalJSX.IntrinsicElements["jobs-item"] & JSXBase.HTMLAttributes<HTMLJobsItemElement>;
|
|
484
|
+
"jobs-list-only": LocalJSX.IntrinsicElements["jobs-list-only"] & JSXBase.HTMLAttributes<HTMLJobsListOnlyElement>;
|
|
396
485
|
}
|
|
397
486
|
}
|
|
398
487
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Minimal job shape for jobs-list-only
|
|
2
|
+
* Minimal job shape for jobs-list-only presentation.
|
|
3
3
|
* Compatible with IJob from career-sites-renderer for React integration.
|
|
4
4
|
*/
|
|
5
5
|
export interface JobLocationSummary {
|
|
@@ -33,7 +33,7 @@ export interface JobSummary {
|
|
|
33
33
|
jobCardExtraFields?: JobCardExtraFieldSummary[];
|
|
34
34
|
[key: string]: unknown;
|
|
35
35
|
}
|
|
36
|
-
export interface
|
|
36
|
+
export interface JobsListOnlyProps {
|
|
37
37
|
jobs?: JobSummary[];
|
|
38
38
|
loading?: boolean;
|
|
39
39
|
totalJob?: number;
|