profile-pane 3.2.2-test.0 → 3.2.3-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.
- package/lib/profile-pane.js +1231 -2597
- package/lib/profile-pane.js.map +1 -1
- package/lib/profile-pane.min.js +418 -540
- package/lib/profile-pane.min.js.map +1 -1
- package/lib/sections/bio/BioSection.d.ts +1 -1
- package/lib/sections/bio/BioSection.d.ts.map +1 -1
- package/lib/sections/bio/BioSection.js +1 -1
- package/lib/sections/contactInfo/ContactInfoEditDialog.d.ts +2 -2
- package/lib/sections/contactInfo/ContactInfoEditDialog.d.ts.map +1 -1
- package/lib/sections/contactInfo/ContactInfoEditDialog.js +2 -2
- package/lib/sections/contactInfo/ContactInfoSection.d.ts +1 -1
- package/lib/sections/contactInfo/ContactInfoSection.d.ts.map +1 -1
- package/lib/sections/contactInfo/ContactInfoSection.js +1 -1
- package/lib/sections/education/EducationEditDialog.d.ts +2 -2
- package/lib/sections/education/EducationEditDialog.d.ts.map +1 -1
- package/lib/sections/education/EducationEditDialog.js +2 -2
- package/lib/sections/education/EducationSection.d.ts +1 -1
- package/lib/sections/education/EducationSection.d.ts.map +1 -1
- package/lib/sections/education/EducationSection.js +1 -1
- package/lib/sections/heading/HeadingEditDialog.d.ts +3 -3
- package/lib/sections/heading/HeadingEditDialog.d.ts.map +1 -1
- package/lib/sections/heading/HeadingEditDialog.js +26 -27
- package/lib/sections/heading/HeadingSection.d.ts +1 -1
- package/lib/sections/heading/HeadingSection.d.ts.map +1 -1
- package/lib/sections/heading/HeadingSection.js +1 -1
- package/lib/sections/heading/imageHelpers.d.ts +1 -1
- package/lib/sections/heading/imageHelpers.d.ts.map +1 -1
- package/lib/sections/heading/imageHelpers.js +10 -12
- package/lib/sections/languages/LanguageEditDialog.d.ts +2 -2
- package/lib/sections/languages/LanguageEditDialog.d.ts.map +1 -1
- package/lib/sections/languages/LanguageEditDialog.js +2 -2
- package/lib/sections/languages/LanguageSection.d.ts +1 -1
- package/lib/sections/languages/LanguageSection.d.ts.map +1 -1
- package/lib/sections/languages/LanguageSection.js +1 -1
- package/lib/sections/projects/ProjectEditDialog.d.ts +1 -1
- package/lib/sections/projects/ProjectEditDialog.d.ts.map +1 -1
- package/lib/sections/projects/ProjectEditDialog.js +1 -1
- package/lib/sections/projects/ProjectSection.d.ts +1 -1
- package/lib/sections/projects/ProjectSection.d.ts.map +1 -1
- package/lib/sections/projects/ProjectSection.js +1 -1
- package/lib/sections/qrcode/QRCodeCard.d.ts.map +1 -1
- package/lib/sections/qrcode/QRCodeCard.js +3 -1
- package/lib/sections/qrcode/QRCodeSection.css +2 -9
- package/lib/sections/resume/ResumeEditDialog.d.ts +3 -3
- package/lib/sections/resume/ResumeEditDialog.d.ts.map +1 -1
- package/lib/sections/resume/ResumeEditDialog.js +14 -4
- package/lib/sections/resume/ResumeSection.d.ts +1 -1
- package/lib/sections/resume/ResumeSection.d.ts.map +1 -1
- package/lib/sections/resume/ResumeSection.js +1 -1
- package/lib/sections/shared/rdfMutationHelpers.d.ts +6 -6
- package/lib/sections/shared/rdfMutationHelpers.d.ts.map +1 -1
- package/lib/sections/skills/SkillsEditDialog.d.ts +2 -2
- package/lib/sections/skills/SkillsEditDialog.d.ts.map +1 -1
- package/lib/sections/skills/SkillsEditDialog.js +2 -2
- package/lib/sections/skills/SkillsSection.d.ts +1 -1
- package/lib/sections/skills/SkillsSection.d.ts.map +1 -1
- package/lib/sections/skills/SkillsSection.js +1 -1
- package/lib/sections/social/SocialEditDialog.d.ts +2 -2
- package/lib/sections/social/SocialEditDialog.d.ts.map +1 -1
- package/lib/sections/social/SocialEditDialog.js +2 -2
- package/lib/sections/social/SocialSection.d.ts +1 -1
- package/lib/sections/social/SocialSection.d.ts.map +1 -1
- package/lib/sections/social/SocialSection.js +1 -1
- package/lib/specialButtons/addContact/ContactCreationDialog.d.ts +1 -1
- package/lib/specialButtons/addContact/ContactCreationDialog.d.ts.map +1 -1
- package/lib/specialButtons/addContact/ContactCreationDialog.js +1 -1
- package/lib/specialButtons/addContact/addMeToYourContacts.d.ts +2 -2
- package/lib/specialButtons/addContact/addMeToYourContacts.d.ts.map +1 -1
- package/lib/specialButtons/addContact/addMeToYourContacts.js +1 -1
- package/lib/specialButtons/addMeToYourFriends.d.ts +2 -2
- package/lib/specialButtons/addMeToYourFriends.d.ts.map +1 -1
- package/lib/specialButtons/addMeToYourFriends.js +1 -1
- package/lib/ui/dialog.d.ts +1 -1
- package/lib/ui/dialog.d.ts.map +1 -1
- package/lib/ui/dialog.js +1 -1
- package/package.json +15 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BioSection.d.ts","sourceRoot":"","sources":["../../../src/sections/bio/BioSection.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"BioSection.d.ts","sourceRoot":"","sources":["../../../src/sections/bio/BioSection.ts"],"names":[],"mappings":"AACA,OAAO,4BAA4B,CAAA;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,kBAAkB,CAAA;AAEzB,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAwC7C,eAAO,MAAM,OAAO,GAClB,SAAS,UAAU,yCASpB,CAAA;AA4HD,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,UAAU,EACnB,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,6CAcrC"}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.BioCard = void 0;
|
|
7
7
|
exports.renderBioSection = renderBioSection;
|
|
8
8
|
var _litHtml = require("lit-html");
|
|
9
|
-
require("solid-ui/components/
|
|
9
|
+
require("solid-ui/components/button");
|
|
10
10
|
require("./BioSection.css");
|
|
11
11
|
var _texts = require("../../texts");
|
|
12
12
|
var _sectionCardHelpers = require("../shared/sectionCardHelpers");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import 'solid-ui/components/
|
|
2
|
-
import 'solid-ui/components/
|
|
1
|
+
import 'solid-ui/components/button';
|
|
2
|
+
import 'solid-ui/components/select';
|
|
3
3
|
import { ContactInfo } from './types';
|
|
4
4
|
import '../../styles/EditDialogs.css';
|
|
5
5
|
import './ContactInfoEditDialog.css';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactInfoEditDialog.d.ts","sourceRoot":"","sources":["../../../src/sections/contactInfo/ContactInfoEditDialog.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"ContactInfoEditDialog.d.ts","sourceRoot":"","sources":["../../../src/sections/contactInfo/ContactInfoEditDialog.ts"],"names":[],"mappings":"AAEA,OAAO,4BAA4B,CAAA;AACnC,OAAO,4BAA4B,CAAA;AACnC,OAAO,EAAqB,WAAW,EAAwC,MAAM,SAAS,CAAA;AAC9F,OAAO,8BAA8B,CAAA;AACrC,OAAO,6BAA6B,CAAA;AACpC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AA0vBxC,wBAAsB,2BAA2B,CAC/C,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,SAAS,EAClB,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,iBA0DrC"}
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.createContactInfoEditDialog = createContactInfoEditDialog;
|
|
7
7
|
var _dialog = require("../../ui/dialog");
|
|
8
8
|
var _litHtml = require("lit-html");
|
|
9
|
-
require("solid-ui/components/
|
|
10
|
-
require("solid-ui/components/
|
|
9
|
+
require("solid-ui/components/button");
|
|
10
|
+
require("solid-ui/components/select");
|
|
11
11
|
require("../../styles/EditDialogs.css");
|
|
12
12
|
require("./ContactInfoEditDialog.css");
|
|
13
13
|
var _mutations = require("./mutations");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactInfoSection.d.ts","sourceRoot":"","sources":["../../../src/sections/contactInfo/ContactInfoSection.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"ContactInfoSection.d.ts","sourceRoot":"","sources":["../../../src/sections/contactInfo/ContactInfoSection.ts"],"names":[],"mappings":"AACA,OAAO,4BAA4B,CAAA;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAExC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAE7C,OAAO,0BAA0B,CAAA;AAGjC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAkSrC,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,SAAS,EAClB,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,6CAoBrC"}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.renderContactInfoSection = renderContactInfoSection;
|
|
7
7
|
var _litHtml = require("lit-html");
|
|
8
|
-
require("solid-ui/components/
|
|
8
|
+
require("solid-ui/components/button");
|
|
9
9
|
var _ContactInfoEditDialog = require("./ContactInfoEditDialog");
|
|
10
10
|
var _solidUi = require("solid-ui");
|
|
11
11
|
require("./ContactInfoSection.css");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import 'solid-ui/components/
|
|
2
|
-
import 'solid-ui/components/
|
|
1
|
+
import 'solid-ui/components/button';
|
|
2
|
+
import 'solid-ui/components/select';
|
|
3
3
|
import { EducationDetails } from './types';
|
|
4
4
|
import '../../styles/EditDialogs.css';
|
|
5
5
|
import '../contactInfo/ContactInfoEditDialog.css';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EducationEditDialog.d.ts","sourceRoot":"","sources":["../../../src/sections/education/EducationEditDialog.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"EducationEditDialog.d.ts","sourceRoot":"","sources":["../../../src/sections/education/EducationEditDialog.ts"],"names":[],"mappings":"AAEA,OAAO,4BAA4B,CAAA;AACnC,OAAO,4BAA4B,CAAA;AACnC,OAAO,EAAgB,gBAAgB,EAAE,MAAM,SAAS,CAAA;AACxD,OAAO,8BAA8B,CAAA;AACrC,OAAO,0CAA0C,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAgiBxC,wBAAsB,yBAAyB,CAC7C,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,SAAS,EAClB,aAAa,EAAE,gBAAgB,EAAE,EACjC,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,iBAqDrC"}
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.createEducationEditDialog = createEducationEditDialog;
|
|
7
7
|
var _dialog = require("../../ui/dialog");
|
|
8
8
|
var _litHtml = require("lit-html");
|
|
9
|
-
require("solid-ui/components/
|
|
10
|
-
require("solid-ui/components/
|
|
9
|
+
require("solid-ui/components/button");
|
|
10
|
+
require("solid-ui/components/select");
|
|
11
11
|
require("../../styles/EditDialogs.css");
|
|
12
12
|
require("../contactInfo/ContactInfoEditDialog.css");
|
|
13
13
|
var _mutations = require("./mutations");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EducationSection.d.ts","sourceRoot":"","sources":["../../../src/sections/education/EducationSection.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"EducationSection.d.ts","sourceRoot":"","sources":["../../../src/sections/education/EducationSection.ts"],"names":[],"mappings":"AACA,OAAO,4BAA4B,CAAA;AACnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,wBAAwB,CAAA;AAE/B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AA4E7C,eAAO,MAAM,aAAa,GACxB,eAAe,gBAAgB,EAAE,yCAclC,CAAA;AAED,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,SAAS,EAClB,aAAa,EAAE,gBAAgB,EAAE,EACjC,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,6CAqDrC"}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.EducationCard = void 0;
|
|
7
7
|
exports.renderEducationSection = renderEducationSection;
|
|
8
8
|
var _litHtml = require("lit-html");
|
|
9
|
-
require("solid-ui/components/
|
|
9
|
+
require("solid-ui/components/button");
|
|
10
10
|
require("./EducationSection.css");
|
|
11
11
|
var _texts = require("../../texts");
|
|
12
12
|
var _EducationEditDialog = require("./EducationEditDialog");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import 'solid-ui/components/
|
|
2
|
-
import 'solid-ui/components/
|
|
3
|
-
import 'solid-ui/components/
|
|
1
|
+
import 'solid-ui/components/button';
|
|
2
|
+
import 'solid-ui/components/select';
|
|
3
|
+
import 'solid-ui/components/photo-capture';
|
|
4
4
|
import { ProfileDetails } from './types';
|
|
5
5
|
import '../../styles/EditDialogs.css';
|
|
6
6
|
import { LiveStore, NamedNode } from 'rdflib';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeadingEditDialog.d.ts","sourceRoot":"","sources":["../../../src/sections/heading/HeadingEditDialog.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"HeadingEditDialog.d.ts","sourceRoot":"","sources":["../../../src/sections/heading/HeadingEditDialog.ts"],"names":[],"mappings":"AAEA,OAAO,4BAA4B,CAAA;AACnC,OAAO,4BAA4B,CAAA;AACnC,OAAO,mCAAmC,CAAA;AAC1C,OAAO,EAAE,cAAc,EAAwC,MAAM,SAAS,CAAA;AAE9E,OAAO,8BAA8B,CAAA;AACrC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AA+6BxC,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,KAAK,EACb,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,SAAS,EAClB,WAAW,EAAE,cAAc,EAC3B,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,iBA6ErC"}
|
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.createHeadingEditDialog = createHeadingEditDialog;
|
|
7
7
|
var _dialog = require("../../ui/dialog");
|
|
8
8
|
var _litHtml = require("lit-html");
|
|
9
|
-
require("solid-ui/components/
|
|
10
|
-
require("solid-ui/components/
|
|
11
|
-
require("solid-ui/components/
|
|
9
|
+
require("solid-ui/components/button");
|
|
10
|
+
require("solid-ui/components/select");
|
|
11
|
+
require("solid-ui/components/photo-capture");
|
|
12
12
|
var _HeadingSection = require("./HeadingSection");
|
|
13
13
|
require("../../styles/EditDialogs.css");
|
|
14
14
|
var _mutations = require("./mutations");
|
|
@@ -224,14 +224,6 @@ function setResolvedHeadingPreview(formState, resolvedImageSrc) {
|
|
|
224
224
|
return;
|
|
225
225
|
}
|
|
226
226
|
formState.imagePreviewSrc = resolvedImageSrc;
|
|
227
|
-
if (resolvedImageSrc.startsWith('blob:') && typeof URL.revokeObjectURL === 'function') {
|
|
228
|
-
formState.clearImagePreview = () => {
|
|
229
|
-
URL.revokeObjectURL(resolvedImageSrc);
|
|
230
|
-
formState.imagePreviewSrc = '';
|
|
231
|
-
formState.clearImagePreview = () => undefined;
|
|
232
|
-
};
|
|
233
|
-
return;
|
|
234
|
-
}
|
|
235
227
|
formState.clearImagePreview = () => {
|
|
236
228
|
formState.imagePreviewSrc = '';
|
|
237
229
|
formState.clearImagePreview = () => undefined;
|
|
@@ -498,7 +490,7 @@ function renderContactAddressInput({
|
|
|
498
490
|
</div>
|
|
499
491
|
`;
|
|
500
492
|
}
|
|
501
|
-
function renderHeadingInfoInput(
|
|
493
|
+
function renderHeadingInfoInput(formState, rerender) {
|
|
502
494
|
const {
|
|
503
495
|
basicInfo,
|
|
504
496
|
phone,
|
|
@@ -546,9 +538,9 @@ function renderHeadingInfoInput(store, subject, formState, rerender) {
|
|
|
546
538
|
cleanupFileInput();
|
|
547
539
|
if (!file || !basicInfo) return;
|
|
548
540
|
try {
|
|
549
|
-
|
|
541
|
+
formState.pendingImageFile = file;
|
|
550
542
|
setHeadingImagePreview(formState, file);
|
|
551
|
-
|
|
543
|
+
basicInfo.status = basicInfo.entryNode ? 'modified' : 'new';
|
|
552
544
|
rerender();
|
|
553
545
|
} catch (error) {
|
|
554
546
|
(0, _debug.error)('Profile image upload failed', error);
|
|
@@ -598,10 +590,10 @@ function renderHeadingInfoInput(store, subject, formState, rerender) {
|
|
|
598
590
|
const detail = event.detail;
|
|
599
591
|
if (!detail?.file || !basicInfo) return;
|
|
600
592
|
try {
|
|
601
|
-
|
|
593
|
+
formState.pendingImageFile = detail.file;
|
|
602
594
|
closeCameraFrame();
|
|
603
595
|
setHeadingImagePreview(formState, detail.file);
|
|
604
|
-
|
|
596
|
+
basicInfo.status = basicInfo.entryNode ? 'modified' : 'new';
|
|
605
597
|
rerender();
|
|
606
598
|
} catch (error) {
|
|
607
599
|
(0, _debug.error)('Profile camera upload failed', error);
|
|
@@ -613,8 +605,9 @@ function renderHeadingInfoInput(store, subject, formState, rerender) {
|
|
|
613
605
|
(0, _debug.error)('Camera control failed to initialize', error);
|
|
614
606
|
}
|
|
615
607
|
};
|
|
616
|
-
const handleDelete = async
|
|
608
|
+
const handleDelete = async () => {
|
|
617
609
|
if (!basicInfo) return;
|
|
610
|
+
formState.pendingImageFile = null;
|
|
618
611
|
formState.clearImagePreview();
|
|
619
612
|
(0, _rowState.applyRowFieldChange)(basicInfo, 'imageSrc', '', rowHasContent);
|
|
620
613
|
rerender();
|
|
@@ -757,10 +750,10 @@ function renderHeadingInfoInput(store, subject, formState, rerender) {
|
|
|
757
750
|
</div>
|
|
758
751
|
`;
|
|
759
752
|
}
|
|
760
|
-
function renderHeadingEditTemplate(form, formState,
|
|
761
|
-
const rerender = () => renderHeadingEditTemplate(form, formState,
|
|
753
|
+
function renderHeadingEditTemplate(form, formState, viewerMode) {
|
|
754
|
+
const rerender = () => renderHeadingEditTemplate(form, formState, viewerMode);
|
|
762
755
|
(0, _litHtml.render)((0, _litHtml.html)`
|
|
763
|
-
${renderHeadingInfoInput(
|
|
756
|
+
${renderHeadingInfoInput(formState, rerender)}
|
|
764
757
|
${renderContactAddressInput({
|
|
765
758
|
address: formState.address
|
|
766
759
|
})}
|
|
@@ -769,7 +762,7 @@ function renderHeadingEditTemplate(form, formState, store, subject, viewerMode)
|
|
|
769
762
|
initializeHeadingContactTypeSelects(form, formState);
|
|
770
763
|
initializeHeadingPronounsSelect(form, formState);
|
|
771
764
|
}
|
|
772
|
-
function createHeadingEditForm(
|
|
765
|
+
function createHeadingEditForm(profileData, viewerMode) {
|
|
773
766
|
const form = document.createElement('form');
|
|
774
767
|
form.classList.add('profile__edit-form', 'profile__edit-form--heading', 'profile-edit-dialog--heading');
|
|
775
768
|
form.autocomplete = 'off';
|
|
@@ -777,7 +770,7 @@ function createHeadingEditForm(store, subject, profileData, viewerMode) {
|
|
|
777
770
|
form.setAttribute('data-1p-ignore', 'true');
|
|
778
771
|
form.setAttribute('data-bwignore', 'true');
|
|
779
772
|
const formState = toFormState(profileData);
|
|
780
|
-
renderHeadingEditTemplate(form, formState,
|
|
773
|
+
renderHeadingEditTemplate(form, formState, viewerMode);
|
|
781
774
|
return {
|
|
782
775
|
form,
|
|
783
776
|
formState
|
|
@@ -807,12 +800,12 @@ async function createHeadingEditDialog(_event, store, subject, profileData, view
|
|
|
807
800
|
const {
|
|
808
801
|
form,
|
|
809
802
|
formState
|
|
810
|
-
} = createHeadingEditForm(
|
|
803
|
+
} = createHeadingEditForm(profileData, viewerMode);
|
|
811
804
|
if (formState.basicInfo.imageSrc) {
|
|
812
805
|
const resolvedImageSrc = await (0, _imageHelpers.resolvePhotoDisplaySrc)(store, formState.basicInfo.imageSrc);
|
|
813
806
|
if (resolvedImageSrc && resolvedImageSrc !== formState.basicInfo.imageSrc) {
|
|
814
807
|
setResolvedHeadingPreview(formState, resolvedImageSrc);
|
|
815
|
-
renderHeadingEditTemplate(form, formState,
|
|
808
|
+
renderHeadingEditTemplate(form, formState, viewerMode);
|
|
816
809
|
}
|
|
817
810
|
}
|
|
818
811
|
const result = await (0, _dialog.openInputDialog)({
|
|
@@ -838,6 +831,10 @@ async function createHeadingEditDialog(_event, store, subject, profileData, view
|
|
|
838
831
|
return validateHeadingDataBeforeSave(formState);
|
|
839
832
|
},
|
|
840
833
|
onSave: async () => {
|
|
834
|
+
if (formState.pendingImageFile) {
|
|
835
|
+
const uploadedUri = await (0, _imageHelpers.uploadPhotoFile)(store, subject, formState.pendingImageFile);
|
|
836
|
+
(0, _rowState.applyRowFieldChange)(formState.basicInfo, 'imageSrc', uploadedUri, rowHasContent);
|
|
837
|
+
}
|
|
841
838
|
const phoneOps = summarizeHeadingContactOps(formState.phone, 'phone', formState.phoneTypeWasMissing);
|
|
842
839
|
const emailOps = summarizeHeadingContactOps(formState.email, 'email', formState.emailTypeWasMissing);
|
|
843
840
|
const plan = {
|
|
@@ -850,9 +847,9 @@ async function createHeadingEditDialog(_event, store, subject, profileData, view
|
|
|
850
847
|
const nextPhotoUri = (0, _textUtils.sanitizeTextValue)(formState.basicInfo.imageSrc || '');
|
|
851
848
|
if (originalPhotoUri && originalPhotoUri !== nextPhotoUri) {
|
|
852
849
|
try {
|
|
853
|
-
|
|
850
|
+
(0, _imageHelpers.invalidateResolvedPhotoDisplaySrc)(originalPhotoUri);
|
|
854
851
|
} catch (error) {
|
|
855
|
-
(0, _debug.warn)('
|
|
852
|
+
(0, _debug.warn)('Failed to invalidate resolved photo cache', error);
|
|
856
853
|
}
|
|
857
854
|
}
|
|
858
855
|
},
|
|
@@ -860,7 +857,9 @@ async function createHeadingEditDialog(_event, store, subject, profileData, view
|
|
|
860
857
|
return error instanceof Error ? error.message : _texts.saveHeadingUpdatesFailedMessageText;
|
|
861
858
|
}
|
|
862
859
|
});
|
|
863
|
-
if (!result)
|
|
860
|
+
if (!result) {
|
|
861
|
+
return;
|
|
862
|
+
}
|
|
864
863
|
if (onSaved) {
|
|
865
864
|
await onSaved();
|
|
866
865
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeadingSection.d.ts","sourceRoot":"","sources":["../../../src/sections/heading/HeadingSection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,UAAU,CAAA;AACxD,OAAO,
|
|
1
|
+
{"version":3,"file":"HeadingSection.d.ts","sourceRoot":"","sources":["../../../src/sections/heading/HeadingSection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,UAAU,CAAA;AACxD,OAAO,4BAA4B,CAAA;AACnC,OAAO,sBAAsB,CAAA;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAqBxC,eAAO,MAAM,oBAAoB,GAC/B,SAAS,kBAAkB,EAC3B,SAAS,SAAS,EAClB,aAAa,cAAc,EAC3B,YAAY,UAAU,EACtB,UAAU,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,+BAyErC,CAAA;AAaD,eAAO,MAAM,KAAK,GAAI,QAAG,EAAE,QAAG,sBAmB7B,CAAA"}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.renderHeadingSection = exports.Image = void 0;
|
|
7
7
|
var _litHtml = require("lit-html");
|
|
8
|
-
require("solid-ui/components/
|
|
8
|
+
require("solid-ui/components/button");
|
|
9
9
|
require("./HeadingSection.css");
|
|
10
10
|
var _HeadingEditDialog = require("./HeadingEditDialog");
|
|
11
11
|
var _textUtils = require("../../textUtils");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LiveStore, NamedNode } from 'rdflib';
|
|
2
|
+
export declare function invalidateResolvedPhotoDisplaySrc(imageSrc?: string): void;
|
|
2
3
|
export declare function resolvePhotoDisplaySrc(store: LiveStore, imageSrc?: string): Promise<string | undefined>;
|
|
3
4
|
export declare function uploadPhotoFile(store: LiveStore, subject: NamedNode, file: File): Promise<string>;
|
|
4
|
-
export declare function deletePhotoFile(store: LiveStore, subject: NamedNode, photoUri: string): Promise<void>;
|
|
5
5
|
//# sourceMappingURL=imageHelpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imageHelpers.d.ts","sourceRoot":"","sources":["../../../src/sections/heading/imageHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAO,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"imageHelpers.d.ts","sourceRoot":"","sources":["../../../src/sections/heading/imageHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAO,MAAM,QAAQ,CAAA;AAOlD,wBAAgB,iCAAiC,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAUzE;AAmCD,wBAAsB,sBAAsB,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CA4B7G;AAED,wBAAsB,eAAe,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAiDvG"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.invalidateResolvedPhotoDisplaySrc = invalidateResolvedPhotoDisplaySrc;
|
|
7
7
|
exports.resolvePhotoDisplaySrc = resolvePhotoDisplaySrc;
|
|
8
8
|
exports.uploadPhotoFile = uploadPhotoFile;
|
|
9
9
|
var _rdflib = require("rdflib");
|
|
@@ -11,6 +11,15 @@ var _solidUi = require("solid-ui");
|
|
|
11
11
|
var _solidLogic = require("solid-logic");
|
|
12
12
|
var _debug = require("../../utils/debug");
|
|
13
13
|
const resolvedHeadingImageCache = new Map();
|
|
14
|
+
function invalidateResolvedPhotoDisplaySrc(imageSrc) {
|
|
15
|
+
if (!imageSrc) return;
|
|
16
|
+
const cachedImageSrc = resolvedHeadingImageCache.get(imageSrc);
|
|
17
|
+
if (!cachedImageSrc) return;
|
|
18
|
+
resolvedHeadingImageCache.delete(imageSrc);
|
|
19
|
+
if (cachedImageSrc.startsWith('blob:') && typeof URL.revokeObjectURL === 'function') {
|
|
20
|
+
URL.revokeObjectURL(cachedImageSrc);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
14
23
|
/* Code copied from contact-pane/src/mugshotGallery and modified to fit the needs of the new design */
|
|
15
24
|
const mimeMap = {
|
|
16
25
|
'image/png': 'png',
|
|
@@ -106,15 +115,4 @@ async function uploadPhotoFile(store, subject, file) {
|
|
|
106
115
|
}
|
|
107
116
|
}
|
|
108
117
|
return candidateUri;
|
|
109
|
-
}
|
|
110
|
-
async function deletePhotoFile(store, subject, photoUri) {
|
|
111
|
-
void subject;
|
|
112
|
-
if (!photoUri) return;
|
|
113
|
-
if (store.fetcher) {
|
|
114
|
-
try {
|
|
115
|
-
await store.fetcher.webOperation('DELETE', photoUri);
|
|
116
|
-
} catch (error) {
|
|
117
|
-
(0, _debug.error)(`Error deleting picture: ${error}`);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
118
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import 'solid-ui/components/
|
|
2
|
-
import 'solid-ui/components/
|
|
1
|
+
import 'solid-ui/components/button';
|
|
2
|
+
import 'solid-ui/components/combobox';
|
|
3
3
|
import { LanguageDetails } from './types';
|
|
4
4
|
import '../../styles/EditDialogs.css';
|
|
5
5
|
import '../contactInfo/ContactInfoEditDialog.css';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LanguageEditDialog.d.ts","sourceRoot":"","sources":["../../../src/sections/languages/LanguageEditDialog.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"LanguageEditDialog.d.ts","sourceRoot":"","sources":["../../../src/sections/languages/LanguageEditDialog.ts"],"names":[],"mappings":"AAEA,OAAO,4BAA4B,CAAA;AACnC,OAAO,8BAA8B,CAAA;AACrC,OAAO,EAAE,eAAe,EAAe,MAAM,SAAS,CAAA;AACtD,OAAO,8BAA8B,CAAA;AACrC,OAAO,0CAA0C,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAymBxC,wBAAsB,wBAAwB,CAC5C,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,SAAS,EAClB,SAAS,EAAE,eAAe,EAAE,EAC5B,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,iBAgDrC"}
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.createLanguageEditDialog = createLanguageEditDialog;
|
|
7
7
|
var _dialog = require("../../ui/dialog");
|
|
8
8
|
var _litHtml = require("lit-html");
|
|
9
|
-
require("solid-ui/components/
|
|
10
|
-
require("solid-ui/components/
|
|
9
|
+
require("solid-ui/components/button");
|
|
10
|
+
require("solid-ui/components/combobox");
|
|
11
11
|
require("../../styles/EditDialogs.css");
|
|
12
12
|
require("../contactInfo/ContactInfoEditDialog.css");
|
|
13
13
|
var _rowState = require("../shared/rowState");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LanguageSection.d.ts","sourceRoot":"","sources":["../../../src/sections/languages/LanguageSection.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"LanguageSection.d.ts","sourceRoot":"","sources":["../../../src/sections/languages/LanguageSection.ts"],"names":[],"mappings":"AACA,OAAO,4BAA4B,CAAA;AACnC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,uBAAuB,CAAA;AAE9B,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAiKzC,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,SAAS,EAClB,SAAS,EAAE,eAAe,EAAE,EAC5B,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,6CAcrC"}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.renderLanguageSection = renderLanguageSection;
|
|
7
7
|
var _litHtml = require("lit-html");
|
|
8
|
-
require("solid-ui/components/
|
|
8
|
+
require("solid-ui/components/button");
|
|
9
9
|
var _solidUi = require("solid-ui");
|
|
10
10
|
require("./LanguageSection.css");
|
|
11
11
|
var _LanguageEditDialog = require("./LanguageEditDialog");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectEditDialog.d.ts","sourceRoot":"","sources":["../../../src/sections/projects/ProjectEditDialog.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"ProjectEditDialog.d.ts","sourceRoot":"","sources":["../../../src/sections/projects/ProjectEditDialog.ts"],"names":[],"mappings":"AAEA,OAAO,4BAA4B,CAAA;AACnC,OAAO,EAAE,cAAc,EAAc,MAAM,SAAS,CAAA;AACpD,OAAO,8BAA8B,CAAA;AACrC,OAAO,0CAA0C,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAwJxC,wBAAsB,wBAAwB,CAC5C,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,SAAS,EAClB,QAAQ,EAAE,cAAc,EAAE,EAC1B,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,iBAuCrC"}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.createProjectsEditDialog = createProjectsEditDialog;
|
|
7
7
|
var _dialog = require("../../ui/dialog");
|
|
8
8
|
var _litHtml = require("lit-html");
|
|
9
|
-
require("solid-ui/components/
|
|
9
|
+
require("solid-ui/components/button");
|
|
10
10
|
require("../../styles/EditDialogs.css");
|
|
11
11
|
require("../contactInfo/ContactInfoEditDialog.css");
|
|
12
12
|
var _rowState = require("../shared/rowState");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectSection.d.ts","sourceRoot":"","sources":["../../../src/sections/projects/ProjectSection.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"ProjectSection.d.ts","sourceRoot":"","sources":["../../../src/sections/projects/ProjectSection.ts"],"names":[],"mappings":"AACA,OAAO,4BAA4B,CAAA;AACnC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,cAAc,EAAc,MAAM,SAAS,CAAA;AAMpD,OAAO,sBAAsB,CAAA;AAuW7B,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,SAAS,EAClB,QAAQ,EAAE,cAAc,EAAE,EAC1B,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,6CAYrC"}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.renderProjectSection = renderProjectSection;
|
|
7
7
|
var _litHtml = require("lit-html");
|
|
8
|
-
require("solid-ui/components/
|
|
8
|
+
require("solid-ui/components/button");
|
|
9
9
|
var _texts = require("../../texts");
|
|
10
10
|
var _ProjectEditDialog = require("./ProjectEditDialog");
|
|
11
11
|
var _mutations = require("./mutations");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QRCodeCard.d.ts","sourceRoot":"","sources":["../../../src/sections/qrcode/QRCodeCard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,UAAU,CAAA;AAC/C,OAAO,EAAa,SAAS,EAAE,MAAM,QAAQ,CAAA;AAS7C,KAAK,gBAAgB,GAAG,SAAS,GAAG,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"QRCodeCard.d.ts","sourceRoot":"","sources":["../../../src/sections/qrcode/QRCodeCard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,UAAU,CAAA;AAC/C,OAAO,EAAa,SAAS,EAAE,MAAM,QAAQ,CAAA;AAS7C,KAAK,gBAAgB,GAAG,SAAS,GAAG,MAAM,CAAA;AAgH1C,wBAAsB,oBAAoB,CAAC,aAAa,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAkBpF;AAED,wBAAsB,cAAc,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAQpE;AAED,eAAO,MAAM,UAAU,GACrB,MAAM,gBAAgB,EACtB,OAAO,OAAO,EACd,OAAO,OAAO,KACb,cAkEF,CAAA"}
|
|
@@ -82,9 +82,11 @@ function firstContactValue(store, subject, predicate, kind) {
|
|
|
82
82
|
}
|
|
83
83
|
const qrCodeRenderOptions = {
|
|
84
84
|
type: 'svg',
|
|
85
|
+
margin: 0,
|
|
86
|
+
width: 151,
|
|
85
87
|
color: {
|
|
86
88
|
dark: '#000000',
|
|
87
|
-
light: '#
|
|
89
|
+
light: '#ffffff00'
|
|
88
90
|
}
|
|
89
91
|
};
|
|
90
92
|
function renderQRCodeSvg(value) {
|
|
@@ -6,10 +6,7 @@
|
|
|
6
6
|
--qrcode-card-caption-size: var(--font-size-md, 1rem);
|
|
7
7
|
--qrcode-card-caption-size-compact: var(--font-size-sm, 0.875rem);
|
|
8
8
|
--qrcode-card-caption-weight: var(--font-weight-md, 500);
|
|
9
|
-
--qrcode-card-image-padding
|
|
10
|
-
--qrcode-card-image-padding-right: 1rem;
|
|
11
|
-
--qrcode-card-image-padding-bottom: 1.0625rem;
|
|
12
|
-
--qrcode-card-image-padding-left: 1.0625rem;
|
|
9
|
+
--qrcode-card-image-padding: 1.0625rem;
|
|
13
10
|
--qrcode-card-frame-border: var(--border-width-thin, 0.1rem) solid var(--color-border, var(--gray-200, #E5E7EB));
|
|
14
11
|
--qrcode-card-frame-background: var(--color-surface-framed-content, #F3F4F6);
|
|
15
12
|
--qrcode-section-padding-compact: var(--spacing-sm, 0.938rem);
|
|
@@ -39,11 +36,7 @@
|
|
|
39
36
|
|
|
40
37
|
.qrcode-card__frame {
|
|
41
38
|
margin: 0;
|
|
42
|
-
padding:
|
|
43
|
-
var(--qrcode-card-image-padding-top)
|
|
44
|
-
var(--qrcode-card-image-padding-right)
|
|
45
|
-
var(--qrcode-card-image-padding-bottom)
|
|
46
|
-
var(--qrcode-card-image-padding-left);
|
|
39
|
+
padding: var(--qrcode-card-image-padding);
|
|
47
40
|
border-radius: var(--border-radius-base, 0.3125rem);
|
|
48
41
|
border: var(--qrcode-card-frame-border);
|
|
49
42
|
background: var(--qrcode-card-frame-background);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import 'solid-ui/components/
|
|
2
|
-
import 'solid-ui/components/
|
|
3
|
-
import 'solid-ui/components/
|
|
1
|
+
import 'solid-ui/components/button';
|
|
2
|
+
import 'solid-ui/components/combobox';
|
|
3
|
+
import 'solid-ui/components/select';
|
|
4
4
|
import { RoleDetails } from './types';
|
|
5
5
|
import '../../styles/EditDialogs.css';
|
|
6
6
|
import '../contactInfo/ContactInfoEditDialog.css';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResumeEditDialog.d.ts","sourceRoot":"","sources":["../../../src/sections/resume/ResumeEditDialog.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"ResumeEditDialog.d.ts","sourceRoot":"","sources":["../../../src/sections/resume/ResumeEditDialog.ts"],"names":[],"mappings":"AAEA,OAAO,4BAA4B,CAAA;AACnC,OAAO,8BAA8B,CAAA;AACrC,OAAO,4BAA4B,CAAA;AACnC,OAAO,EAAE,WAAW,EAAa,MAAM,SAAS,CAAA;AAChD,OAAO,8BAA8B,CAAA;AACrC,OAAO,0CAA0C,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAW,MAAM,QAAQ,CAAA;AAEtD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AA4BxC,KAAK,4BAA4B,GAAG;IAClC,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAuPD,wBAAsB,oCAAoC,CACxD,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,4BAA4B,EAAE,CAAC,CA+CzC;AAi3BD,wBAAsB,sBAAsB,CAC1C,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,SAAS,EAClB,UAAU,EAAE,WAAW,EAAE,EACzB,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,iBAoDrC"}
|
|
@@ -7,9 +7,9 @@ exports.createResumeEditDialog = createResumeEditDialog;
|
|
|
7
7
|
exports.fetchWikidataOrganizationSuggestions = fetchWikidataOrganizationSuggestions;
|
|
8
8
|
var _dialog = require("../../ui/dialog");
|
|
9
9
|
var _litHtml = require("lit-html");
|
|
10
|
-
require("solid-ui/components/
|
|
11
|
-
require("solid-ui/components/
|
|
12
|
-
require("solid-ui/components/
|
|
10
|
+
require("solid-ui/components/button");
|
|
11
|
+
require("solid-ui/components/combobox");
|
|
12
|
+
require("solid-ui/components/select");
|
|
13
13
|
require("../../styles/EditDialogs.css");
|
|
14
14
|
require("../contactInfo/ContactInfoEditDialog.css");
|
|
15
15
|
var _rdflib = require("rdflib");
|
|
@@ -105,7 +105,17 @@ function sanitizeResumeFieldValue(value) {
|
|
|
105
105
|
return (0, _textUtils.sanitizeTextValue)(value);
|
|
106
106
|
}
|
|
107
107
|
function normalizeResumeOrganizationPublicId(value) {
|
|
108
|
-
|
|
108
|
+
const cleaned = sanitizeResumeFieldValue(value);
|
|
109
|
+
return isAbsoluteUri(cleaned) ? cleaned : '';
|
|
110
|
+
}
|
|
111
|
+
function isAbsoluteUri(value) {
|
|
112
|
+
if (!value) return false;
|
|
113
|
+
try {
|
|
114
|
+
new URL(value);
|
|
115
|
+
return true;
|
|
116
|
+
} catch {
|
|
117
|
+
return false;
|
|
118
|
+
}
|
|
109
119
|
}
|
|
110
120
|
function buildWikidataOrganizationSearchUrl(name) {
|
|
111
121
|
return WIKIDATA_ORGANIZATION_SEARCH_URI.replace('$(language)', encodeURIComponent(WIKIDATA_ORGANIZATION_SEARCH_LANGUAGE)).replace('$(limit)', encodeURIComponent(String(WIKIDATA_ORGANIZATION_SEARCH_CANDIDATE_LIMIT))).replace('$(name)', encodeURIComponent(name));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResumeSection.d.ts","sourceRoot":"","sources":["../../../src/sections/resume/ResumeSection.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"ResumeSection.d.ts","sourceRoot":"","sources":["../../../src/sections/resume/ResumeSection.ts"],"names":[],"mappings":"AACA,OAAO,4BAA4B,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,qBAAqB,CAAA;AAE5B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAgE7C,eAAO,MAAM,MAAM,GACjB,QAAQ,WAAW,EAAE,EACrB,aAAa,UAAU,yCAcxB,CAAA;AA0ID,wBAAgB,eAAe,CAC7B,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,SAAS,EAClB,KAAK,EAAE,WAAW,EAAE,EACpB,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,6CAarC"}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.CVCard = void 0;
|
|
7
7
|
exports.renderCVSection = renderCVSection;
|
|
8
8
|
var _litHtml = require("lit-html");
|
|
9
|
-
require("solid-ui/components/
|
|
9
|
+
require("solid-ui/components/button");
|
|
10
10
|
require("./ResumeSection.css");
|
|
11
11
|
var _texts = require("../../texts");
|
|
12
12
|
var _ResumeEditDialog = require("./ResumeEditDialog");
|