@mikezimm/fps-library-v2 1.0.148 → 1.0.150

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 (92) hide show
  1. package/CHANGELOG.md +52 -27
  2. package/lib/components/atoms/PersonaCard/Interfaces/IPersonaCardProps.d.ts +12 -0
  3. package/lib/components/atoms/PersonaCard/Interfaces/IPersonaCardProps.d.ts.map +1 -0
  4. package/lib/components/atoms/PersonaCard/Interfaces/IPersonaCardProps.js +2 -0
  5. package/lib/components/atoms/PersonaCard/Interfaces/IPersonaCardProps.js.map +1 -0
  6. package/lib/components/atoms/PersonaCard/Interfaces/IPersonaCardState.d.ts +5 -0
  7. package/lib/components/atoms/PersonaCard/Interfaces/IPersonaCardState.d.ts.map +1 -0
  8. package/lib/components/atoms/PersonaCard/Interfaces/IPersonaCardState.js +2 -0
  9. package/lib/components/atoms/PersonaCard/Interfaces/IPersonaCardState.js.map +1 -0
  10. package/lib/components/atoms/PersonaCard/Interfaces/IUserProperties.d.ts +13 -0
  11. package/lib/components/atoms/PersonaCard/Interfaces/IUserProperties.d.ts.map +1 -0
  12. package/lib/components/atoms/PersonaCard/Interfaces/IUserProperties.js +2 -0
  13. package/lib/components/atoms/PersonaCard/Interfaces/IUserProperties.js.map +1 -0
  14. package/lib/components/atoms/PersonaCard/Interfaces/StandardPersonIconNames.d.ts +5 -0
  15. package/lib/components/atoms/PersonaCard/Interfaces/StandardPersonIconNames.d.ts.map +1 -0
  16. package/lib/components/atoms/PersonaCard/Interfaces/StandardPersonIconNames.js +5 -0
  17. package/lib/components/atoms/PersonaCard/Interfaces/StandardPersonIconNames.js.map +1 -0
  18. package/lib/components/atoms/PersonaCard/PersonaCard.d.ts +57 -0
  19. package/lib/components/atoms/PersonaCard/PersonaCard.d.ts.map +1 -0
  20. package/lib/components/atoms/PersonaCard/PersonaCard.js +233 -0
  21. package/lib/components/atoms/PersonaCard/PersonaCard.js.map +1 -0
  22. package/lib/components/atoms/PersonaCard/PersonaIcons.d.ts +4 -0
  23. package/lib/components/atoms/PersonaCard/PersonaIcons.d.ts.map +1 -0
  24. package/lib/components/atoms/PersonaCard/PersonaIcons.js +16 -0
  25. package/lib/components/atoms/PersonaCard/PersonaIcons.js.map +1 -0
  26. package/lib/components/atoms/PersonaCard/PersonaRow.d.ts +54 -0
  27. package/lib/components/atoms/PersonaCard/PersonaRow.d.ts.map +1 -0
  28. package/lib/components/atoms/PersonaCard/PersonaRow.js +116 -0
  29. package/lib/components/atoms/PersonaCard/PersonaRow.js.map +1 -0
  30. package/lib/components/atoms/Suggestions/ISuggestion.d.ts +14 -0
  31. package/lib/components/atoms/Suggestions/ISuggestion.d.ts.map +1 -0
  32. package/lib/components/atoms/Suggestions/ISuggestion.js +5 -0
  33. package/lib/components/atoms/Suggestions/ISuggestion.js.map +1 -0
  34. package/lib/components/atoms/Suggestions/SuggestionsSample-Labels.d.ts +17 -0
  35. package/lib/components/atoms/Suggestions/SuggestionsSample-Labels.d.ts.map +1 -0
  36. package/lib/components/atoms/Suggestions/SuggestionsSample-Labels.js +89 -0
  37. package/lib/components/atoms/Suggestions/SuggestionsSample-Labels.js.map +1 -0
  38. package/lib/components/atoms/Suggestions/convertSugsLC.d.ts +10 -0
  39. package/lib/components/atoms/Suggestions/convertSugsLC.d.ts.map +1 -0
  40. package/lib/components/atoms/Suggestions/convertSugsLC.js +18 -0
  41. package/lib/components/atoms/Suggestions/convertSugsLC.js.map +1 -0
  42. package/lib/components/atoms/Suggestions/getSuggestionsByKeys.d.ts +7 -0
  43. package/lib/components/atoms/Suggestions/getSuggestionsByKeys.d.ts.map +1 -0
  44. package/lib/components/atoms/Suggestions/getSuggestionsByKeys.js +54 -0
  45. package/lib/components/atoms/Suggestions/getSuggestionsByKeys.js.map +1 -0
  46. package/lib/components/atoms/WordSummary/IWordSummary.d.ts +19 -0
  47. package/lib/components/atoms/WordSummary/IWordSummary.d.ts.map +1 -0
  48. package/lib/components/atoms/WordSummary/IWordSummary.js +2 -0
  49. package/lib/components/atoms/WordSummary/IWordSummary.js.map +1 -0
  50. package/lib/components/atoms/WordSummary/buildWordSummary.d.ts +5 -0
  51. package/lib/components/atoms/WordSummary/buildWordSummary.d.ts.map +1 -0
  52. package/lib/components/atoms/WordSummary/buildWordSummary.js +67 -0
  53. package/lib/components/atoms/WordSummary/buildWordSummary.js.map +1 -0
  54. package/lib/components/molecules/ModernPages/Interfaces/IModernPage.d.ts +25 -0
  55. package/lib/components/molecules/ModernPages/Interfaces/IModernPage.d.ts.map +1 -0
  56. package/lib/components/molecules/ModernPages/Interfaces/IModernPage.js +13 -0
  57. package/lib/components/molecules/ModernPages/Interfaces/IModernPage.js.map +1 -0
  58. package/lib/components/molecules/SearchPage/Interfaces/ISourceSearch.d.ts +1 -0
  59. package/lib/components/molecules/SearchPage/Interfaces/ISourceSearch.d.ts.map +1 -1
  60. package/lib/components/molecules/SearchPage/component/SearchBoxRow.d.ts +18 -0
  61. package/lib/components/molecules/SearchPage/component/SearchBoxRow.d.ts.map +1 -0
  62. package/lib/components/molecules/SearchPage/component/SearchBoxRow.js +25 -0
  63. package/lib/components/molecules/SearchPage/component/SearchBoxRow.js.map +1 -0
  64. package/lib/components/molecules/SearchPage/functions/getFilteredV1.d.ts +20 -0
  65. package/lib/components/molecules/SearchPage/functions/getFilteredV1.d.ts.map +1 -0
  66. package/lib/components/molecules/SearchPage/functions/getFilteredV1.js +127 -0
  67. package/lib/components/molecules/SearchPage/functions/getFilteredV1.js.map +1 -0
  68. package/lib/components/molecules/SourceList/ItemPane/IItemPaneProps.d.ts +30 -0
  69. package/lib/components/molecules/SourceList/ItemPane/IItemPaneProps.d.ts.map +1 -0
  70. package/lib/components/molecules/SourceList/ItemPane/IItemPaneProps.js +2 -0
  71. package/lib/components/molecules/SourceList/ItemPane/IItemPaneProps.js.map +1 -0
  72. package/lib/components/molecules/SourceList/ItemPane/component.d.ts +36 -0
  73. package/lib/components/molecules/SourceList/ItemPane/component.d.ts.map +1 -0
  74. package/lib/components/molecules/SourceList/ItemPane/component.js +263 -0
  75. package/lib/components/molecules/SourceList/ItemPane/component.js.map +1 -0
  76. package/lib/logic/Regex/constants.d.ts +12 -0
  77. package/lib/logic/Regex/constants.d.ts.map +1 -1
  78. package/lib/logic/Regex/constants.js +13 -0
  79. package/lib/logic/Regex/constants.js.map +1 -1
  80. package/lib/logic/Strings/getStringArrayBasic.d.ts +26 -0
  81. package/lib/logic/Strings/getStringArrayBasic.d.ts.map +1 -0
  82. package/lib/logic/Strings/getStringArrayBasic.js +42 -0
  83. package/lib/logic/Strings/getStringArrayBasic.js.map +1 -0
  84. package/lib/logic/Strings/getWordsFromString.d.ts +15 -0
  85. package/lib/logic/Strings/getWordsFromString.d.ts.map +1 -1
  86. package/lib/logic/Strings/getWordsFromString.js +29 -7
  87. package/lib/logic/Strings/getWordsFromString.js.map +1 -1
  88. package/lib/logic/Time/getFPSPrefNavLang.js +1 -1
  89. package/lib/logic/Time/getFPSPrefNavLang.js.map +1 -1
  90. package/lib/pnpjs/SourceItems/Interface.d.ts +3 -0
  91. package/lib/pnpjs/SourceItems/Interface.d.ts.map +1 -1
  92. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -5,35 +5,60 @@ npm run build
5
5
  npm version major/minor/patch
6
6
  npm publish --access=public
7
7
 
8
- npm install @mikezimm/fps-library-v2@1.0.148
8
+ npm install @mikezimm/fps-library-v2@1.0.149
9
9
 
10
10
  # Changelog
11
11
 
12
12
  NOTE: TURN BACK ON STRICT NULL CHECKS - turned off for PropPaneCols
13
13
 
14
+
15
+
16
+ ## 1.0.150 - 2023-Mar-30: Suggestions and Words
17
+ - create getStringArrayBasic in src/logic/Strings/getStringArrayBasic - similar logic was used both in Words and Suggestions
18
+ - modify getArrayOfWordsFromString to use getStringArrayBasic since that logic was in multiple places
19
+ - update getSuggestionsFromStrings to use common function to get words from strings ( getStringArrayBasic ) - src/components/atoms/Suggestions/getSuggestionsByKeys.ts
20
+ - added some common regex constants for easier reference which were used in getStringArrayBasic
21
+
22
+ ## 1.0.150 - 2023-Mar-28: PersonaCard and SearchBoxRow css fixes
23
+ - fix docCardClass in PersonaCard.tsx to properly show theme color if provided
24
+ - fix css require in src/components/molecules/SearchPage/component/SearchBoxRow.tsx
25
+
26
+ ## 1.0.149 - 2023-Mar-28: PersonaCard, PersonaRow, Suggestions, WordSummary, SourceSearchHook etc from Compliance and ALVFM
27
+ - add PersonaCard and PersonaRow from Compliance to src/components/atoms/PersonaCard <<< NEED TO VERIFY >>>
28
+ - add Suggestions logic, interface and samples from Compliance to src/components/atoms/Suggestions <<< NEED TO VERIFY >>>
29
+ - add WordSummary from Compliance to src/components/atoms/WordSummary/ <<< NEED TO VERIFY >>>
30
+ - add getWordsFromString and related functions from Compliance to src/logic/Strings/getWordsFromString
31
+ - add SourceSearchHook from Complaince to src/components/molecules/SearchPage/component/SearchBoxRow
32
+ - add ISourceInfo from Compliance to src/pnpjs/SourceItems/Interface
33
+ - add getFiltered from Compliance to src/components/molecules/SearchPage/functions/getFilteredV1
34
+ - add SourceList ItemPane from ALVFinMan to src/components/molecules/SourceList/ItemPane/component
35
+
36
+ ## 1.0.149 - 2023-Mar-26: month date labels and pref language
37
+ - fix casing of return in getFPSPrefNavLang since all are supposed to be LC.
38
+
14
39
  ## 1.0.148 - 2023-Mar-26: month date labels and pref language
15
- - add getMonthStr3Array, getMMMDDFromDate and getMMMDDFromStr to src\logic\Time\monthLabels.ts
16
- - add getMonthStrArray, getFullMonthStrFromDate and getFullMonthStrFromDate to src\logic\Time\monthStrings.ts
40
+ - add getMonthStr3Array, getMMMDDFromDate and getMMMDDFromStr to src/logic/Time/monthLabels.ts
41
+ - add getMonthStrArray, getFullMonthStrFromDate and getFullMonthStrFromDate to src/logic/Time/monthStrings.ts
17
42
 
18
43
  ## 1.0.147 - 2023-Mar-26: month and day labels
19
44
  - add IFPSDateLanguageObject as object interface for monthStr3 and weekday3
20
- - moved monthStr to src\logic\Time\monthStrings (from monthLabels)
21
- - created monthStr with original keys also in src\logic\Time\monthStrOldKeys
45
+ - moved monthStr to src/logic/Time/monthStrings (from monthLabels)
46
+ - created monthStr with original keys also in src/logic/Time/monthStrOldKeys
22
47
 
23
48
  ## 1.0.146 - 2023-Mar-20: Various
24
- - add fileSizeNumber to IFPSFileObject in src\pnpjs\SourceItems\FileInterface and addSearchMeta1
49
+ - add fileSizeNumber to IFPSFileObject in src/pnpjs/SourceItems/FileInterface and addSearchMeta1
25
50
  - update getHighlightedText for error when text === undefined
26
51
 
27
52
  ## 1.0.145 - 2023-Mar-20: Various
28
53
  - update getSizeLabel to account for 1024 bits per byte
29
54
  - update IContentGroup options: ContentGroupFolder: IContentGroup = 'Folder'; ContentGroupOther: IContentGroup = 'Other';
30
- - change itemIsFolder to itemIsFolderContent in src\components\molecules\SourceList\IAnyContent.ts
31
- - add docm to StdFileSearchTypes in src\components\molecules\SearchPage\Interfaces\StandardTypes.ts
55
+ - change itemIsFolder to itemIsFolderContent in src/components/molecules/SourceList/IAnyContent.ts
56
+ - add docm to StdFileSearchTypes in src/components/molecules/SearchPage/Interfaces/StandardTypes.ts
32
57
 
33
58
  ## 1.0.144 - 2023-Mar-20: SearchTypes
34
59
  - refactor addItemIsA to simplify code ( put updates in if item.meta .... )
35
60
  - update addSearchMeta2 - map item.allIsAKeys into meta in case it was not already added
36
- - change ItemIsDataContent from xml file to json in components\molecules\SearchPage\Interfaces\ProgrammingFileKeys.ts
61
+ - change ItemIsDataContent from xml file to json in components/molecules/SearchPage/Interfaces/ProgrammingFileKeys.ts
37
62
  - refactor mergeWordArrays to use spread to avoid using direct reference to array.
38
63
 
39
64
  ## 1.0.143 - 2023-Mar-20: SearchTypes
@@ -52,13 +77,13 @@ NOTE: TURN BACK ON STRICT NULL CHECKS - turned off for PropPaneCols
52
77
  - create ALLProgrammingFileKeys for normal plus XKeys... add to addItemIsA function for ItemIsCodeContent
53
78
 
54
79
  ## 1.0.140 - 2023-Mar-19: SearchTypes
55
- - add forgotten values to ItemIsAKeys in src\components\molecules\SourceList\IAnyContent.ts
80
+ - add forgotten values to ItemIsAKeys in src/components/molecules/SourceList/IAnyContent.ts
56
81
  - update addSearchMeta2 to properly use ItemIsAKeys
57
82
  - add contentGroup to OneNote search type
58
83
 
59
84
  ## 1.0.139 - 2023-Mar-19: SearchTypes
60
85
  - move 'folder' into "StdFileKeys"
61
- - add additional ItemIs${contentGroup}Content via src\components\molecules\SearchPage\functions\addItemIsA.ts
86
+ - add additional ItemIs${contentGroup}Content via src/components/molecules/SearchPage/functions/addItemIsA.ts
62
87
  - change ProgrammingSharePoint to ProgrammingFile in addItemIsA and related places
63
88
 
64
89
  ## 1.0.138 - 2023-Mar-19: SearchTypes
@@ -68,7 +93,7 @@ NOTE: TURN BACK ON STRICT NULL CHECKS - turned off for PropPaneCols
68
93
  ## 1.0.137 - 2023-Mar-19: SearchTypes
69
94
  - add ProgrammingSharePointKeys and ProgrammingSharePointSearchTypes: "js", "html", "css", "json", "xml", "exe", "ps1"
70
95
  - add XProgrammingSharePointKeys and XProgrammingSharePointSearchTypes: "ts", "md", "py", "vba"
71
- - create ProgrammingSharePointKeys, ProgrammingSharePointSearchTypes, MAXSearchTypes to src\components\molecules\SearchPage\Interfaces\ProgrammingFileKeys.ts
96
+ - create ProgrammingSharePointKeys, ProgrammingSharePointSearchTypes, MAXSearchTypes to src/components/molecules/SearchPage/Interfaces/ProgrammingFileKeys.ts
72
97
  - change order of keys/obj in SearchTypes - moved MediaFileKeys and MediaFileSearchTypes to end
73
98
  - add ItemIsCode and itemIsCode IAnySourceItem and also addOtherIsAMeta
74
99
 
@@ -77,7 +102,7 @@ NOTE: TURN BACK ON STRICT NULL CHECKS - turned off for PropPaneCols
77
102
 
78
103
 
79
104
  ## 1.0.136 - 2023-Mar-19: SearchTypes
80
- - add color, similarKey and warning to ISearchType in src\components\molecules\SearchPage\Interfaces\StandardTypes.ts
105
+ - add color, similarKey and warning to ISearchType in src/components/molecules/SearchPage/Interfaces/StandardTypes.ts
81
106
  - added eXTreme Storage file types/icons to StandardTypes
82
107
  - reorganized StdFileSearchTypes into StdFileSearchTypes and MediaFileSearchTypes
83
108
  - update IAnySourceItem to have both typeIdx (original === adjusted) AND searchTypeIdx which is the actual index
@@ -88,33 +113,33 @@ NOTE: TURN BACK ON STRICT NULL CHECKS - turned off for PropPaneCols
88
113
  - remove BaseType because it does not exist on items.
89
114
 
90
115
  ## 1.0.134 - 2023-Mar-19: IDefaultUser, Sources, addSearchMeta1, IAnyContent, searchTextLC
91
- - add folderString and folderTree to src\components\molecules\SearchPage\functions\addSearchMeta1.ts
92
- - add automatically BaseType FileInterface, ModernSitePagesColumns and to all sourceProps in src\pnpjs\SourceItems\createMinFetchProps.ts
93
- - add 10 itemIsA... props to IAnyContent src\components\molecules\SourceList\IAnyContent.ts
116
+ - add folderString and folderTree to src/components/molecules/SearchPage/functions/addSearchMeta1.ts
117
+ - add automatically BaseType FileInterface, ModernSitePagesColumns and to all sourceProps in src/pnpjs/SourceItems/createMinFetchProps.ts
118
+ - add 10 itemIsA... props to IAnyContent src/components/molecules/SourceList/IAnyContent.ts
94
119
  - add 10 itemIsA... props item.searchTextLC
95
120
 
96
121
  - add performanceSettings to all generic Sources - Files, News, SitePages, NewsLinks
97
- - add 'ContentType/Name' to libraryColumns in src\pnpjs\SourceItems\FileInterface.ts
98
- - add docset and folder to StdFileSearchTypes in src\components\molecules\SearchPage\Interfaces\StandardTypes.ts
122
+ - add 'ContentType/Name' to libraryColumns in src/pnpjs/SourceItems/FileInterface.ts
123
+ - add docset and folder to StdFileSearchTypes in src/components/molecules/SearchPage/Interfaces/StandardTypes.ts
99
124
  - update addSearchMeta1 to include folder and docSet icons, also add folder parent url to searchDesc
100
125
  - update IFPSFileObject with user interface
101
126
 
102
127
 
103
128
  ## 1.0.133 - 2023-Mar-17: IPagesContent, IFPSFileObject, IStateSource, etc
104
- - migrate IPagesContent and IPagesContentFull from ALVFM to src\pnpjs\SourceItems\SitePages\IPagesContent.ts
105
- - migrate IStateSource from Compliance to src\pnpjs\Common\IStateSource.ts
129
+ - migrate IPagesContent and IPagesContentFull from ALVFM to src/pnpjs/SourceItems/SitePages/IPagesContent.ts
130
+ - migrate IStateSource from Compliance to src/pnpjs/Common/IStateSource.ts
106
131
  - update IAnySourceItem - add HasUniqueRoleAssignments? boolean;
107
132
  - update libraryColumns - remove duplicate strings
108
- - create IFPSFileObject in src\pnpjs\SourceItems\FileInterface.ts
133
+ - create IFPSFileObject in src/pnpjs/SourceItems/FileInterface.ts
109
134
 
110
135
  ## 1.0.132 - 2023-Mar-16: ComplianceOps updates
111
- - create getArrayOfWordsFromString, mergeArrayOfWordsFromString in src\logic\Strings\getWordsFromString.ts
136
+ - create getArrayOfWordsFromString, mergeArrayOfWordsFromString in src/logic/Strings/getWordsFromString.ts
112
137
 
113
- - create WebUrlHook in src\components\molecules\WebUrlBox
114
- - create HTTPApiHook in src\components\molecules\HTTP\HttpApiBox\component.tsx
115
- - create fetchAPI in src\components\molecules\HTTP\HttpFetch\functions.ts
116
- - create createLibrarySource in src\pnpjs\SourceItems\createLibrarySource.ts
117
- - create createSeriesSort in src\pnpjs\SourceItems\createOrderBy.ts
138
+ - create WebUrlHook in src/components/molecules/WebUrlBox
139
+ - create HTTPApiHook in src/components/molecules/HTTP/HttpApiBox/component.tsx
140
+ - create fetchAPI in src/components/molecules/HTTP/HttpFetch/functions.ts
141
+ - create createLibrarySource in src/pnpjs/SourceItems/createLibrarySource.ts
142
+ - create createSeriesSort in src/pnpjs/SourceItems/createOrderBy.ts
118
143
 
119
144
  ## 1.0.131 - 2023-Feb-25: checkAnyResults AccessDenied
120
145
  - update checkAnyResults to set status to 'AccessDenied' instead of just 'Error'
@@ -0,0 +1,12 @@
1
+ import { WebPartContext } from "@microsoft/sp-webpart-base";
2
+ import { IUserProperties } from "./IUserProperties";
3
+ import { PersonaSize } from 'office-ui-fabric-react/lib/Persona';
4
+ export interface IPersonaCardProps {
5
+ context: WebPartContext;
6
+ profileProperties: IUserProperties;
7
+ size: PersonaSize;
8
+ iconSize: number;
9
+ iconTextSize: number;
10
+ borderColorMsColorThemeDarkClass?: string;
11
+ }
12
+ //# sourceMappingURL=IPersonaCardProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPersonaCardProps.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/PersonaCard/Interfaces/IPersonaCardProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EACL,WAAW,EACZ,MAAM,oCAAoC,CAAC;AAC5C,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,cAAc,CAAC;IACxB,iBAAiB,EAAE,eAAe,CAAC;IAEnC,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IAUrB,gCAAgC,CAAC,EAAE,MAAM,CAAC;CAC3C"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPersonaCardProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPersonaCardProps.js","sourceRoot":"","sources":["../../../../../src/components/atoms/PersonaCard/Interfaces/IPersonaCardProps.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface IPersonaCardState {
2
+ livePersonaCard: any;
3
+ pictureUrl: string;
4
+ }
5
+ //# sourceMappingURL=IPersonaCardState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPersonaCardState.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/PersonaCard/Interfaces/IPersonaCardState.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAEhC,eAAe,EAAE,GAAG,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPersonaCardState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPersonaCardState.js","sourceRoot":"","sources":["../../../../../src/components/atoms/PersonaCard/Interfaces/IPersonaCardState.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ export interface IUserProperties {
2
+ Department: string;
3
+ MobilePhone?: string;
4
+ PictureUrl: string;
5
+ Title: string;
6
+ DisplayName: string;
7
+ Email: string;
8
+ WorkPhone?: string;
9
+ Location?: string;
10
+ isSiteAdmin?: boolean;
11
+ isGuest?: boolean;
12
+ }
13
+ //# sourceMappingURL=IUserProperties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IUserProperties.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/PersonaCard/Interfaces/IUserProperties.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IUserProperties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IUserProperties.js","sourceRoot":"","sources":["../../../../../src/components/atoms/PersonaCard/Interfaces/IUserProperties.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export declare const SiteAdminGroupName = "SiteAdmins";
2
+ export declare const SiteAdminIconName = "HeadsetSolid";
3
+ export declare const GuestsGroupName = "Guests";
4
+ export declare const GuestsIconName = "UserWarning";
5
+ //# sourceMappingURL=StandardPersonIconNames.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StandardPersonIconNames.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/PersonaCard/Interfaces/StandardPersonIconNames.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,kBAAkB,eAAe,CAAC;AAC/C,eAAO,MAAM,iBAAiB,iBAAiB,CAAC;AAEhD,eAAO,MAAM,eAAe,WAAW,CAAC;AACxC,eAAO,MAAM,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export const SiteAdminGroupName = 'SiteAdmins';
2
+ export const SiteAdminIconName = 'HeadsetSolid';
3
+ export const GuestsGroupName = 'Guests';
4
+ export const GuestsIconName = 'UserWarning';
5
+ //# sourceMappingURL=StandardPersonIconNames.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StandardPersonIconNames.js","sourceRoot":"","sources":["../../../../../src/components/atoms/PersonaCard/Interfaces/StandardPersonIconNames.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,kBAAkB,GAAG,YAAY,CAAC;AAC/C,MAAM,CAAC,MAAM,iBAAiB,GAAG,cAAc,CAAC;AAEhD,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC;AACxC,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC"}
@@ -0,0 +1,57 @@
1
+ import * as React from 'react';
2
+ import { IPersonaCardProps } from './Interfaces/IPersonaCardProps';
3
+ import { IPersonaCardState } from './Interfaces/IPersonaCardState';
4
+ /**
5
+ * 2023-03-28
6
+ * VERIFY STYLES BEFORE USING IN PRODUCTION
7
+ * Migrated scss back to css from Complaince/PivotTiles
8
+ */
9
+ export declare class PersonaCard extends React.Component<IPersonaCardProps, IPersonaCardState> {
10
+ constructor(props: IPersonaCardProps);
11
+ /**
12
+ *
13
+ *
14
+ * @memberof PersonaCard
15
+ */
16
+ componentDidMount(): Promise<void>;
17
+ /**
18
+ *
19
+ *
20
+ * @param {IPersonaCardProps} prevProps
21
+ * @param {IPersonaCardState} prevState
22
+ * @memberof PersonaCard
23
+ */
24
+ componentDidUpdate(prevProps: IPersonaCardProps, prevState: IPersonaCardState): void;
25
+ /**
26
+ *
27
+ *
28
+ * @private
29
+ * @returns
30
+ * @memberof PersonaCard
31
+ */
32
+ private _LivePersonaCard;
33
+ private getCardHeight;
34
+ private getCardPadding;
35
+ private getCardWidth;
36
+ /**
37
+ *
38
+ *
39
+ * @private
40
+ * @returns {JSX.Element}
41
+ * @memberof PersonaCard
42
+ */
43
+ private _PersonaCard;
44
+ /**
45
+ * Load SPFx component by id, SPComponentLoader is used to load the SPFx components
46
+ * @param componentId - componentId, guid of the component library
47
+ */
48
+ private _loadSPComponentById;
49
+ /**
50
+ *
51
+ *
52
+ * @returns {React.ReactElement<IPersonaCardProps>}
53
+ * @memberof PersonaCard
54
+ */
55
+ render(): React.ReactElement<IPersonaCardProps>;
56
+ }
57
+ //# sourceMappingURL=PersonaCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PersonaCard.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/PersonaCard/PersonaCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAkBnE;;;;GAIG;AAEH,qBAAa,WAAY,SAAQ,KAAK,CAAC,SAAS,CAC9C,iBAAiB,EACjB,iBAAiB,CAChB;gBACW,KAAK,EAAE,iBAAiB;IAKpC;;;;OAIG;IACU,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAU/C;;;;;;OAMG;IACI,kBAAkB,CACvB,SAAS,EAAE,iBAAiB,EAC5B,SAAS,EAAE,iBAAiB,GAC3B,IAAI;IAGP;;;;;;OAMG;IAEH,OAAO,CAAC,gBAAgB;IAkBxB,OAAO,CAAC,aAAa;IAkBnB,OAAO,CAAC,cAAc;IAkBxB,OAAO,CAAC,YAAY;IAoBpB;;;;;;OAMG;IACH,OAAO,CAAC,YAAY;IAuFpB;;;OAGG;YAEW,oBAAoB;IAelC;;;;;OAKG;IACI,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,iBAAiB,CAAC;CAevD"}
@@ -0,0 +1,233 @@
1
+ import * as React from 'react';
2
+ import { Log, Environment, EnvironmentType, } from '@microsoft/sp-core-library';
3
+ import { SPComponentLoader } from '@microsoft/sp-loader';
4
+ import { Persona, PersonaSize } from 'office-ui-fabric-react/lib/Persona';
5
+ import { DocumentCard, DocumentCardType } from 'office-ui-fabric-react/lib/DocumentCard';
6
+ import { Icon } from 'office-ui-fabric-react/lib/Icon';
7
+ require('@mikezimm/fps-styles/dist/PersonaCard.css');
8
+ import { GuestsIconName, SiteAdminIconName, } from './Interfaces/StandardPersonIconNames';
9
+ const EXP_SOURCE = 'SPFxDirectory';
10
+ const LIVE_PERSONA_COMPONENT_ID = '914330ee-2df2-4f6e-a858-30c23a812408';
11
+ /**
12
+ * 2023-03-28
13
+ * VERIFY STYLES BEFORE USING IN PRODUCTION
14
+ * Migrated scss back to css from Complaince/PivotTiles
15
+ */
16
+ export class PersonaCard extends React.Component {
17
+ constructor(props) {
18
+ super(props);
19
+ this.state = { livePersonaCard: undefined, pictureUrl: undefined };
20
+ }
21
+ /**
22
+ *
23
+ *
24
+ * @memberof PersonaCard
25
+ */
26
+ async componentDidMount() {
27
+ if (Environment.type !== EnvironmentType.Local) {
28
+ const sharedLibrary = await this._loadSPComponentById(LIVE_PERSONA_COMPONENT_ID);
29
+ const livePersonaCard = sharedLibrary.LivePersonaCard;
30
+ this.setState({ livePersonaCard: livePersonaCard });
31
+ }
32
+ }
33
+ /**
34
+ *
35
+ *
36
+ * @param {IPersonaCardProps} prevProps
37
+ * @param {IPersonaCardState} prevState
38
+ * @memberof PersonaCard
39
+ */
40
+ componentDidUpdate(prevProps, prevState) {
41
+ }
42
+ /**
43
+ *
44
+ *
45
+ * @private
46
+ * @returns
47
+ * @memberof PersonaCard
48
+ */
49
+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
50
+ _LivePersonaCard() {
51
+ return React.createElement(this.state.livePersonaCard, {
52
+ serviceScope: this.props.context.serviceScope,
53
+ upn: this.props.profileProperties.Email,
54
+ onCardOpen: () => {
55
+ console.log('LivePersonaCard Open');
56
+ },
57
+ onCardClose: () => {
58
+ console.log('LivePersonaCard Close');
59
+ },
60
+ }, this._PersonaCard());
61
+ }
62
+ //2020-11-24: Added for adjusting card size
63
+ getCardHeight() {
64
+ const size = this.props.size;
65
+ if (size === PersonaSize.size72) {
66
+ return '120px';
67
+ }
68
+ else if (size === PersonaSize.size48) {
69
+ return '80px';
70
+ }
71
+ else if (size === PersonaSize.size32) {
72
+ return '60px';
73
+ }
74
+ else if (size === PersonaSize.size24 || size === PersonaSize.size28) {
75
+ return '45px';
76
+ }
77
+ else if (size === PersonaSize.size16) {
78
+ return '30px';
79
+ }
80
+ else if (size === PersonaSize.size10) {
81
+ return '20px';
82
+ }
83
+ }
84
+ //2021-04-13: Added for adjusting card size
85
+ getCardPadding() {
86
+ const size = this.props.size;
87
+ if (size === PersonaSize.size72) {
88
+ return '15px';
89
+ }
90
+ else if (size === PersonaSize.size48) {
91
+ return '11px';
92
+ }
93
+ else if (size === PersonaSize.size32) {
94
+ return '8px';
95
+ }
96
+ else if (size === PersonaSize.size24 || size === PersonaSize.size28) {
97
+ return '7px';
98
+ }
99
+ else if (size === PersonaSize.size16) {
100
+ return '0px';
101
+ }
102
+ else if (size === PersonaSize.size10) {
103
+ return '0px';
104
+ }
105
+ }
106
+ //2020-11-24: Added for adjusting card size
107
+ getCardWidth() {
108
+ const size = this.props.size;
109
+ let width = this.props.profileProperties.isSiteAdmin === true || this.props.profileProperties.isGuest === true ? 60 : 0;
110
+ if (size === PersonaSize.size72) {
111
+ width += 250;
112
+ }
113
+ else if (size === PersonaSize.size48) {
114
+ width += 210;
115
+ }
116
+ else if (size === PersonaSize.size32) {
117
+ width += 170;
118
+ }
119
+ else if (size === PersonaSize.size24 || size === PersonaSize.size28) {
120
+ width += 140;
121
+ }
122
+ else if (size === PersonaSize.size16) {
123
+ width += 120;
124
+ }
125
+ else if (size === PersonaSize.size10) {
126
+ width += 100;
127
+ }
128
+ return width + 'px';
129
+ }
130
+ /**
131
+ *
132
+ *
133
+ * @private
134
+ * @returns {JSX.Element}
135
+ * @memberof PersonaCard
136
+ */
137
+ _PersonaCard() {
138
+ const sizeBracket = this.props.size === PersonaSize.size16 || this.props.size === PersonaSize.size10 ? 'small' : 'large';
139
+ let docCardClass = `documentCardDefault${this.props.borderColorMsColorThemeDarkClass ? ` ${this.props.borderColorMsColorThemeDarkClass}` : ''}`;
140
+ if (this.props.profileProperties.isSiteAdmin === true) {
141
+ docCardClass = 'documentCardAdmin';
142
+ }
143
+ else if (this.props.profileProperties.isGuest === true) {
144
+ docCardClass = 'documentCardGuest';
145
+ }
146
+ const docCardClassFinal = [docCardClass, sizeBracket === 'large' ? 'documentCardBorder' : 'documentCardNoBorder',].join(' ');
147
+ const iconSize = this.props.iconSize;
148
+ const iconTextSize = this.props.iconTextSize;
149
+ const iconLeftPad = sizeBracket === 'large' ? '0px' : '20px';
150
+ const AdminIcon = this.props.profileProperties.isSiteAdmin !== true ? false :
151
+ React.createElement("div", { style: { fontSize: iconSize, color: 'darkgreen', paddingLeft: iconLeftPad, paddingRight: 10, whiteSpace: 'nowrap' } },
152
+ React.createElement(Icon, { iconName: SiteAdminIconName, title: 'Site Admin' }),
153
+ React.createElement("span", { style: { fontSize: iconTextSize } }, "Admin"));
154
+ const GuestIcon = this.props.profileProperties.isGuest !== true ? false :
155
+ React.createElement("div", { style: { fontSize: iconSize, color: 'saddlebrown', paddingLeft: iconLeftPad, paddingRight: 4, whiteSpace: 'nowrap' } },
156
+ React.createElement(Icon, { iconName: GuestsIconName, title: 'Guest User' }),
157
+ React.createElement("span", { style: { fontSize: iconTextSize } }, "Guest"));
158
+ const cardHeight = this.getCardHeight();
159
+ let personaStyles = 'inlineFlex';
160
+ if (cardHeight !== '120px' && (AdminIcon !== false || GuestIcon !== false)) {
161
+ personaStyles = 'inlineFlexWBPadding';
162
+ }
163
+ const personaClass = ['persona', sizeBracket === 'small' ? 'flexDirRow' : null].join(' ');
164
+ let personaContent = null;
165
+ if (sizeBracket === 'small') {
166
+ personaContent = React.createElement("div", { className: 'inlineFlexSpaceBetween' },
167
+ this.props.profileProperties.DisplayName,
168
+ " ",
169
+ AdminIcon,
170
+ " ",
171
+ GuestIcon,
172
+ " ");
173
+ }
174
+ else {
175
+ personaContent = React.createElement(Persona, { text: this.props.profileProperties.DisplayName, secondaryText: this.props.profileProperties.Title, tertiaryText: this.props.profileProperties.Department, imageUrl: this.props.profileProperties.PictureUrl, size: this.props.size, imageShouldFadeIn: true, imageShouldStartVisible: true },
176
+ " ",
177
+ React.createElement("div", { className: personaStyles },
178
+ " ",
179
+ AdminIcon,
180
+ " ",
181
+ GuestIcon,
182
+ " "),
183
+ this.props.profileProperties.WorkPhone ? (React.createElement("div", null,
184
+ React.createElement(Icon, { iconName: "Phone", style: { fontSize: '12px' } }),
185
+ React.createElement("span", { style: { marginLeft: 5, fontSize: '12px' } },
186
+ ' ',
187
+ this.props.profileProperties.WorkPhone))) : (''),
188
+ this.props.profileProperties.Location ? (React.createElement("div", { className: 'textOverflow' },
189
+ React.createElement(Icon, { iconName: "Poi", style: { fontSize: '12px' } }),
190
+ React.createElement("span", { style: { marginLeft: 5, fontSize: '12px' } },
191
+ ' ',
192
+ this.props.profileProperties.Location))) : (''));
193
+ }
194
+ return (React.createElement(DocumentCard, { className: docCardClassFinal, type: DocumentCardType.normal,
195
+ //2020-11-24: Added for adjusting card size
196
+ style: { height: this.getCardHeight(), minWidth: this.getCardWidth(), maxWidth: this.getCardWidth() + 200 } },
197
+ React.createElement("div", { className: personaClass, style: { paddingTop: this.getCardPadding(), paddingBottom: this.getCardPadding(), minWidth: this.getCardWidth(), maxWidth: this.getCardWidth() + 200 } }, personaContent)));
198
+ }
199
+ /**
200
+ * Load SPFx component by id, SPComponentLoader is used to load the SPFx components
201
+ * @param componentId - componentId, guid of the component library
202
+ */
203
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
204
+ async _loadSPComponentById(componentId) {
205
+ try {
206
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
207
+ const component = await SPComponentLoader.loadComponentById(componentId);
208
+ return component;
209
+ }
210
+ catch (error) {
211
+ // eslint-disable-next-line no-void
212
+ void Promise.reject(error);
213
+ // 2023-03-28: To migrate casting serviceScope as any to pass linting
214
+ Log.error(EXP_SOURCE, error, this.props.context.serviceScope);
215
+ }
216
+ }
217
+ /**
218
+ *
219
+ *
220
+ * @returns {React.ReactElement<IPersonaCardProps>}
221
+ * @memberof PersonaCard
222
+ */
223
+ render() {
224
+ const sizeBracket = this.props.size === PersonaSize.size16 || this.props.size === PersonaSize.size10 ? 'small' : 'large';
225
+ const personaContainer = sizeBracket === 'large' ? 'personaContainerNormal' : 'personaContainerSmall';
226
+ return (
227
+ //2020-11-24: Added for adjusting card size
228
+ React.createElement("div", { className: personaContainer, style: { minWidth: this.getCardWidth(), maxWidth: this.getCardWidth() + 200 } }, this.state.livePersonaCard
229
+ ? this._LivePersonaCard()
230
+ : this._PersonaCard()));
231
+ }
232
+ }
233
+ //# sourceMappingURL=PersonaCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PersonaCard.js","sourceRoot":"","sources":["../../../../src/components/atoms/PersonaCard/PersonaCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EACL,GAAG,EAAE,WAAW,EAAE,eAAe,GAClC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,OAAO,EAAE,OAAO,EAAE,WAAW,EAAC,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC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Ae;YACzB,CAAC,CAAC,IAAI,CAAC,gBAAgB,EAAE;YACzB,CAAC,CAAC,IAAI,CAAC,YAAY,EAAE,CACnB,CACP,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare function getAdminIcon(iconSize: number, iconLeftPad: string, iconTextSize: number): JSX.Element;
3
+ export declare function getGuestIcon(iconSize: number, iconLeftPad: string, iconTextSize: number): JSX.Element;
4
+ //# sourceMappingURL=PersonaIcons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PersonaIcons.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/PersonaCard/PersonaIcons.tsx"],"names":[],"mappings":";AAMA,wBAAgB,YAAY,CAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAI,GAAG,CAAC,OAAO,CAMvG;AAED,wBAAgB,YAAY,CAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAI,GAAG,CAAC,OAAO,CAMvG"}
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ import { Icon, } from 'office-ui-fabric-react/lib/Icon';
3
+ import { GuestsIconName, SiteAdminIconName, } from './Interfaces/StandardPersonIconNames';
4
+ export function getAdminIcon(iconSize, iconLeftPad, iconTextSize) {
5
+ const AdminIcon = React.createElement("div", { style: { fontSize: iconSize, color: 'darkgreen', paddingLeft: iconLeftPad, paddingRight: 10, whiteSpace: 'nowrap' } },
6
+ React.createElement(Icon, { iconName: SiteAdminIconName, title: 'Site Admin' }),
7
+ React.createElement("span", { style: { fontSize: iconTextSize } }, "Admin"));
8
+ return AdminIcon;
9
+ }
10
+ export function getGuestIcon(iconSize, iconLeftPad, iconTextSize) {
11
+ const GuestIcon = React.createElement("div", { style: { fontSize: iconSize, color: 'saddlebrown', paddingLeft: iconLeftPad, paddingRight: 4, whiteSpace: 'nowrap' } },
12
+ React.createElement(Icon, { iconName: GuestsIconName, title: 'Guest User' }),
13
+ React.createElement("span", { style: { fontSize: iconTextSize } }, "Guest"));
14
+ return GuestIcon;
15
+ }
16
+ //# sourceMappingURL=PersonaIcons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PersonaIcons.js","sourceRoot":"","sources":["../../../../src/components/atoms/PersonaCard/PersonaIcons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,IAAI,GAAG,MAAM,iCAAiC,CAAC;AAExD,OAAO,EAAE,cAAc,EAAE,iBAAiB,GAAG,MAAM,sCAAsC,CAAC;AAE1F,MAAM,UAAU,YAAY,CAAE,QAAgB,EAAE,WAAmB,EAAE,YAAoB;IACrF,MAAM,SAAS,GAAG,6BAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAG,KAAK,EAAE,WAAW,EAAG,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE;QAC1I,oBAAC,IAAI,IAAC,QAAQ,EAAG,iBAAiB,EAAG,KAAK,EAAE,YAAY,GAAI;QAC5D,8BAAM,KAAK,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAc,CACjD,CAAC;IACP,OAAO,SAAS,CAAC;AACrB,CAAC;AAED,MAAM,UAAU,YAAY,CAAE,QAAgB,EAAE,WAAmB,EAAE,YAAoB;IACvF,MAAM,SAAS,GAAG,6BAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAG,KAAK,EAAE,aAAa,EAAG,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE;QACzI,oBAAC,IAAI,IAAC,QAAQ,EAAG,cAAc,EAAG,KAAK,EAAE,YAAY,GAAI;QACzD,8BAAM,KAAK,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAc,CACjD,CAAC;IACP,OAAO,SAAS,CAAC;AACrB,CAAC"}