@mikezimm/fps-library-v2 1.1.44 → 1.1.45

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 (22) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/lib/components/molecules/Provisioning/constants/columnsOOTB.d.ts +9 -0
  3. package/lib/components/molecules/Provisioning/constants/columnsOOTB.d.ts.map +1 -0
  4. package/lib/components/molecules/Provisioning/constants/columnsOOTB.js +63 -0
  5. package/lib/components/molecules/Provisioning/constants/columnsOOTB.js.map +1 -0
  6. package/lib/components/molecules/Provisioning/interfaces/columnTypes.d.ts +235 -0
  7. package/lib/components/molecules/Provisioning/interfaces/columnTypes.d.ts.map +1 -0
  8. package/lib/components/molecules/Provisioning/interfaces/columnTypes.js +33 -0
  9. package/lib/components/molecules/Provisioning/interfaces/columnTypes.js.map +1 -0
  10. package/lib/components/molecules/Provisioning/interfaces/listTypes.d.ts +152 -0
  11. package/lib/components/molecules/Provisioning/interfaces/listTypes.d.ts.map +1 -0
  12. package/lib/components/molecules/Provisioning/interfaces/listTypes.js +51 -0
  13. package/lib/components/molecules/Provisioning/interfaces/listTypes.js.map +1 -0
  14. package/lib/components/molecules/Provisioning/interfaces/viewTypes.d.ts +55 -0
  15. package/lib/components/molecules/Provisioning/interfaces/viewTypes.d.ts.map +1 -0
  16. package/lib/components/molecules/Provisioning/interfaces/viewTypes.js +31 -0
  17. package/lib/components/molecules/Provisioning/interfaces/viewTypes.js.map +1 -0
  18. package/lib/logic/Time/yearsArray.d.ts +36 -0
  19. package/lib/logic/Time/yearsArray.d.ts.map +1 -0
  20. package/lib/logic/Time/yearsArray.js +47 -0
  21. package/lib/logic/Time/yearsArray.js.map +1 -0
  22. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -4,12 +4,20 @@ npm run clean
4
4
  npm run build
5
5
  npm version major/minor/patch
6
6
  npm publish --access=public
7
- npm install @mikezimm/fps-library-v2@1.1.44
7
+ npm install @mikezimm/fps-library-v2@1.1.45
8
8
 
9
9
  # Changelog
10
10
 
11
11
  NOTE: TURN BACK ON STRICT NULL CHECKS - turned off for PropPaneCols
12
12
 
13
+ ## 1.1.45 - 2023-Sep 03: - Migrate ListTemplate files from npmFunctions
14
+ - create getXYearsAsNumbers and getXYearsAsStrings for building Year provisioning column
15
+ - migrate src\Lists_\XYZ to src\components\molecules\Provisioning
16
+ - migrate src\Lists_\colummTypes_.ts
17
+ - migrate src\Lists_\viewTypes_.ts
18
+ - migrate src\Lists_\listTypes_.ts
19
+ - migrate src\Lists_\columnsOOTB.ts
20
+
13
21
  ## 1.1.44 - 2023-Aug 18: - PageContextCopy_15_2_Site and IPerformance - Library Provisioning
14
22
  - add serverRelativeUrl to PageContextCopy_15_2_Site
15
23
  - add 'create' group to IPerformance --> IUnifiedPerformanceOpsKeys , IFpsErrorObjectOpKeys
@@ -0,0 +1,9 @@
1
+ import { ITextField, INumberField, IDateTimeField, IUserField } from '../interfaces/columnTypes';
2
+ export declare const ootbID: ITextField;
3
+ export declare const ootbVersion: INumberField;
4
+ export declare const ootbTitle: ITextField;
5
+ export declare const ootbEditor: IUserField;
6
+ export declare const ootbAuthor: IUserField;
7
+ export declare const ootbCreated: IDateTimeField;
8
+ export declare const ootbModified: IDateTimeField;
9
+ //# sourceMappingURL=columnsOOTB.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"columnsOOTB.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Provisioning/constants/columnsOOTB.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,UAAU,EAAG,YAAY,EAAE,cAAc,EAAG,UAAU,EAAG,MAAM,2BAA2B,CAAC;AAwBnG,eAAO,MAAM,MAAM,EAAG,UAKrB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAG,YAK1B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAG,UAKxB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAG,UAMzB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAG,UAMzB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAG,cAK1B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAG,cAK3B,CAAC"}
@@ -0,0 +1,63 @@
1
+ // >>>> ADD import additional controls/components
2
+ import { FieldUserSelectionMode, } from "@pnp/sp/fields/types";
3
+ import { cCount, cInt, cDate, cText, cNumb, } from '../interfaces/columnTypes';
4
+ // import { ootbID, ootbTitle, ootbEditor, ootbAuthor, ootbCreated, ootbModified, } from './columnsOOTB';
5
+ /***
6
+ * .d8b. d8888b. d8888b. d888b d8888b. .d88b. db db d8888b. d8b db .d8b. .88b d88. d88888b
7
+ * d8' `8b 88 `8D 88 `8D 88' Y8b 88 `8D .8P Y8. 88 88 88 `8D 888o 88 d8' `8b 88'YbdP`88 88'
8
+ * 88ooo88 88 88 88 88 88 88oobY' 88 88 88 88 88oodD' 88V8o 88 88ooo88 88 88 88 88ooooo
9
+ * 88~~~88 88 88 88 88 88 ooo 88`8b 88 88 88 88 88~~~ 88 V8o88 88~~~88 88 88 88 88~~~~~
10
+ * 88 88 88 .8D 88 .8D 88. ~8~ 88 `88. `8b d8' 88b d88 88 88 V888 88 88 88 88 88 88.
11
+ * YP YP Y8888D' Y8888D' Y888P 88 YD `Y88P' ~Y8888P' 88 VP V8P YP YP YP YP YP Y88888P
12
+ *
13
+ *
14
+ */
15
+ const thisColumnGroup = 'Custom Columns';
16
+ const defGroup = {
17
+ Group: thisColumnGroup,
18
+ };
19
+ export const ootbID = {
20
+ fieldType: cCount,
21
+ name: 'ID',
22
+ title: 'ID',
23
+ onCreateProps: defGroup,
24
+ };
25
+ export const ootbVersion = {
26
+ fieldType: cNumb,
27
+ name: '_UIVersionString',
28
+ title: 'UI Version',
29
+ onCreateProps: defGroup,
30
+ };
31
+ export const ootbTitle = {
32
+ fieldType: cText,
33
+ name: 'Title',
34
+ title: 'Title',
35
+ onCreateProps: defGroup,
36
+ };
37
+ export const ootbEditor = {
38
+ fieldType: cInt,
39
+ selectionMode: FieldUserSelectionMode.PeopleOnly,
40
+ name: 'Editor',
41
+ title: 'Modified By',
42
+ onCreateProps: defGroup,
43
+ };
44
+ export const ootbAuthor = {
45
+ fieldType: cInt,
46
+ selectionMode: FieldUserSelectionMode.PeopleOnly,
47
+ name: 'Author',
48
+ title: 'Created By',
49
+ onCreateProps: defGroup,
50
+ };
51
+ export const ootbCreated = {
52
+ fieldType: cDate,
53
+ name: 'Created',
54
+ title: 'Created',
55
+ onCreateProps: defGroup,
56
+ };
57
+ export const ootbModified = {
58
+ fieldType: cDate,
59
+ name: 'Modified',
60
+ title: 'Modified',
61
+ onCreateProps: defGroup,
62
+ };
63
+ //# sourceMappingURL=columnsOOTB.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"columnsOOTB.js","sourceRoot":"","sources":["../../../../../src/components/molecules/Provisioning/constants/columnsOOTB.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAElD,OAAO,EAAE,sBAAsB,GAAG,MAAM,sBAAsB,CAAC;AAI/D,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAE/E,yGAAyG;AAGzG;;;;;;;;;GASG;AAEH,MAAM,eAAe,GAAG,gBAAgB,CAAC;AAEzC,MAAM,QAAQ,GAAG;IACb,KAAK,EAAE,eAAe;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAgB;IAC/B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,aAAa,EAAE,QAAQ;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAkB;IACtC,SAAS,EAAE,KAAK;IAChB,IAAI,EAAE,kBAAkB;IACxB,KAAK,EAAE,YAAY;IACnB,aAAa,EAAE,QAAQ;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAgB;IAClC,SAAS,EAAE,KAAK;IAChB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,OAAO;IACd,aAAa,EAAE,QAAQ;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAgB;IACnC,SAAS,EAAE,IAAI;IACf,aAAa,EAAE,sBAAsB,CAAC,UAAU;IAChD,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,aAAa;IACpB,aAAa,EAAE,QAAQ;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAgB;IACnC,SAAS,EAAE,IAAI;IACf,aAAa,EAAE,sBAAsB,CAAC,UAAU;IAChD,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,YAAY;IACnB,aAAa,EAAE,QAAQ;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAoB;IACxC,SAAS,EAAE,KAAK;IAChB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,SAAS;IAChB,aAAa,EAAE,QAAQ;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAoB;IACzC,SAAS,EAAE,KAAK;IAChB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,UAAU;IACjB,aAAa,EAAE,QAAQ;CAC1B,CAAC"}
@@ -0,0 +1,235 @@
1
+ /**
2
+ * This file was copied directly from npmFunctions last update and used in:
3
+ * Easy Contents
4
+ * Library Provisioning (for labels)
5
+ *
6
+ * Changes only include cleaning up imports and removed the [ key: .... ] stuff
7
+ *
8
+ */
9
+ import { IFieldInfo, ChoiceFieldFormatType, UrlFieldFormatType, DateTimeFieldFormatType, CalendarType, DateTimeFieldFriendlyFormatType, FieldUserSelectionMode, IFieldCreationProperties } from "@pnp/sp/fields/types";
10
+ import { IListInfo } from './listTypes';
11
+ export declare const minInfinity: number;
12
+ export declare const maxInfinity: number;
13
+ export interface MyListDef {
14
+ title: string;
15
+ desc?: string;
16
+ template?: number;
17
+ enableContentTypes?: boolean;
18
+ additionalSettings?: Partial<IListInfo>;
19
+ }
20
+ export interface MyFieldDef {
21
+ kind: number | null;
22
+ type: string | null;
23
+ vType: string;
24
+ label: string;
25
+ }
26
+ export declare const cCount: MyFieldDef;
27
+ export declare const cInt: MyFieldDef;
28
+ export declare const cText: MyFieldDef;
29
+ export declare const cMText: MyFieldDef;
30
+ export declare const cDate: MyFieldDef;
31
+ export declare const cChoice: MyFieldDef;
32
+ export declare const cLook: MyFieldDef;
33
+ export declare const cDLook: MyFieldDef;
34
+ export declare const cBool: MyFieldDef;
35
+ export declare const cNumb: MyFieldDef;
36
+ export declare const cCurr: MyFieldDef;
37
+ export declare const cURL: MyFieldDef;
38
+ export declare const cMChoice: MyFieldDef;
39
+ export declare const cCalcN: MyFieldDef;
40
+ export declare const cCalcT: MyFieldDef;
41
+ export declare const cUser: MyFieldDef;
42
+ export declare const cMUser: MyFieldDef;
43
+ export declare const cLocal: MyFieldDef;
44
+ export declare const cModStatus: MyFieldDef;
45
+ export declare const cSLook: MyFieldDef;
46
+ export declare const cComputed: MyFieldDef;
47
+ export declare const myFieldDefs: MyFieldDef[];
48
+ export type IMyFieldTypes = IBaseField | ITextField | IMultiLineTextField | INumberField | IXMLField | IBooleanField | ICalculatedField | IDateTimeField | ICurrencyField | IUserField | ILookupField | IChoiceField | IMultiChoiceField | IDepLookupField | ILocationField;
49
+ /**
50
+ * Adds a new SP.FieldText to the collection
51
+ *
52
+ * @param title The field title
53
+ * @param maxLength The maximum number of characters allowed in the value of the field.
54
+ * @param properties Differ by type of field being created (see: https://msdn.microsoft.com/en-us/library/office/dn600182.aspx)
55
+ */
56
+ export type changes = 'create' | 'changes1' | 'changes2' | 'changes3' | 'changesFinal' | 'setForm';
57
+ /**
58
+ * Had to add type any to keys to get error to go away
59
+ */
60
+ export interface IBaseField extends Partial<IFieldInfo> {
61
+ fieldType: MyFieldDef;
62
+ name: string;
63
+ onCreateProps?: IFieldCreationProperties;
64
+ showNew?: boolean;
65
+ showEdit?: boolean;
66
+ showDisplay?: boolean;
67
+ title?: string;
68
+ onCreateChanges?: IFieldCreationProperties;
69
+ changes1?: IFieldCreationProperties;
70
+ changes2?: IFieldCreationProperties;
71
+ changes3?: IFieldCreationProperties;
72
+ changesFinal?: IFieldCreationProperties;
73
+ }
74
+ export interface IXMLField extends IBaseField {
75
+ xml: string;
76
+ }
77
+ export interface ITextField extends IBaseField {
78
+ maxLength?: number;
79
+ }
80
+ /**
81
+ * Adds a new SP.FieldMultiLineText to the collection
82
+ *
83
+ * @param title The field title
84
+ * @param numberOfLines Specifies the number of lines of text to display for the field.
85
+ * @param richText Specifies whether the field supports rich formatting.
86
+ * @param restrictedMode Specifies whether the field supports a subset of rich formatting.
87
+ * @param appendOnly Specifies whether all changes to the value of the field are displayed in list forms.
88
+ * @param allowHyperlink Specifies whether a hyperlink is allowed as a value of the field.
89
+ * @param properties Differ by type of field being created (see: https://msdn.microsoft.com/en-us/library/office/dn600182.aspx)
90
+ *
91
+ */
92
+ export interface IMultiLineTextField extends IBaseField {
93
+ numberOfLines?: number;
94
+ richText?: boolean;
95
+ restrictedMode?: boolean;
96
+ appendOnly?: boolean;
97
+ allowHyperlink?: boolean;
98
+ }
99
+ /**
100
+ * Adds a new SP.FieldNumber to the collection
101
+ *
102
+ * @param title The field title
103
+ * @param minValue The field's minimum value
104
+ * @param maxValue The field's maximum value
105
+ * @param properties Differ by type of field being created (see: https://msdn.microsoft.com/en-us/library/office/dn600182.aspx)
106
+ */
107
+ export interface INumberField extends IBaseField {
108
+ minValue?: number;
109
+ maxValue?: number;
110
+ }
111
+ /**
112
+ * Adds a new SP.FieldBoolean to the collection
113
+ *
114
+ * @param title The field title.
115
+ * @param properties Differ by type of field being created (see: https://msdn.microsoft.com/en-us/library/office/dn600182.aspx)
116
+ */
117
+ export interface IBooleanField extends IBaseField {
118
+ }
119
+ /**
120
+ * Adds a new SP.FieldCalculated to the collection
121
+ *
122
+ * @param title The field title.
123
+ * @param formula The formula for the field.
124
+ * @param dateFormat The date and time format that is displayed in the field.
125
+ * @param outputType Specifies the output format for the field. Represents a FieldType value.
126
+ * @param properties Differ by type of field being created (see: https://msdn.microsoft.com/en-us/library/office/dn600182.aspx)
127
+ */
128
+ export interface ICalculatedField extends IBaseField {
129
+ formula: string;
130
+ dateFormat?: DateTimeFieldFormatType;
131
+ }
132
+ /**
133
+ * Adds a new SP.FieldDateTime to the collection
134
+ *
135
+ * @param title The field title
136
+ * @param displayFormat The format of the date and time that is displayed in the field.
137
+ * @param calendarType Specifies the calendar type of the field.
138
+ * @param friendlyDisplayFormat The type of friendly display format that is used in the field.
139
+ * @param properties Differ by type of field being created (see: https://msdn.microsoft.com/en-us/library/office/dn600182.aspx)
140
+ */
141
+ export interface IDateTimeField extends IBaseField {
142
+ displayFormat?: DateTimeFieldFormatType;
143
+ calendarType?: CalendarType;
144
+ friendlyDisplayFormat?: DateTimeFieldFriendlyFormatType;
145
+ }
146
+ /**
147
+ * Adds a new SP.FieldCurrency to the collection
148
+ *
149
+ * @param title The field title
150
+ * @param minValue The field's minimum value
151
+ * @param maxValue The field's maximum value
152
+ * @param currencyLocalId Specifies the language code identifier (LCID) used to format the value of the field
153
+ * @param properties Differ by type of field being created (see: https://msdn.microsoft.com/en-us/library/office/dn600182.aspx)
154
+ */
155
+ export interface ICurrencyField extends IBaseField {
156
+ minValue?: number;
157
+ maxValue?: number;
158
+ currencyLocalId?: number;
159
+ }
160
+ /**
161
+ * Adds a new SP.FieldUrl to the collection
162
+ * @param title The field title
163
+ */
164
+ export interface IURLField extends IBaseField {
165
+ displayFormat?: UrlFieldFormatType;
166
+ }
167
+ /** Adds a user field to the colleciton
168
+ *
169
+ * @param title The new field's title
170
+ * @param selectionMode The selection mode of the field
171
+ * @param selectionGroup Value that specifies the identifier of the SharePoint group whose members can be selected as values of the field
172
+ * @param properties
173
+ */
174
+ export interface IUserField extends IBaseField {
175
+ selectionMode: FieldUserSelectionMode;
176
+ }
177
+ /**
178
+ * Adds a SP.FieldLookup to the collection
179
+ *
180
+ * @param title The new field's title
181
+ * @param lookupListId The guid id of the list where the source of the lookup is found
182
+ * @param lookupFieldName The internal name of the field in the source list
183
+ * @param properties Set of additional properties to set on the new field
184
+ */
185
+ export interface ILookupField extends IBaseField {
186
+ lookupListId: string;
187
+ lookupFieldName: string;
188
+ }
189
+ /**
190
+ * Adds a new SP.FieldChoice to the collection
191
+ *
192
+ * @param title The field title.
193
+ * @param choices The choices for the field.
194
+ * @param format The display format of the available options for the field.
195
+ * @param fillIn Specifies whether the field allows fill-in values.
196
+ * @param properties Differ by type of field being created (see: https://msdn.microsoft.com/en-us/library/office/dn600182.aspx)
197
+ */
198
+ export interface IChoiceField extends IBaseField {
199
+ choices: string[];
200
+ format?: ChoiceFieldFormatType;
201
+ fillIn?: boolean;
202
+ FillInChoice?: boolean;
203
+ }
204
+ /**
205
+ * Adds a new SP.FieldMultiChoice to the collection
206
+ *
207
+ * @param title The field title.
208
+ * @param choices The choices for the field.
209
+ * @param fillIn Specifies whether the field allows fill-in values.
210
+ * @param properties Differ by type of field being created (see: https://msdn.microsoft.com/en-us/library/office/dn600182.aspx)
211
+ */
212
+ export interface IMultiChoiceField extends IBaseField {
213
+ choices: string[];
214
+ fillIn?: boolean;
215
+ }
216
+ /**
217
+ * Creates a secondary (dependent) lookup field, based on the Id of the primary lookup field.
218
+ *
219
+ * @param displayName The display name of the new field.
220
+ * @param primaryLookupFieldId The guid of the primary Lookup Field.
221
+ * @param showField Which field to show from the lookup list.
222
+ */
223
+ export interface IDepLookupField extends IBaseField {
224
+ primaryLookupFieldId: string;
225
+ showField: string;
226
+ }
227
+ /**
228
+ * Adds a new SP.FieldLocation to the collection
229
+ *
230
+ * @param title The field title.
231
+ * @param properties Differ by type of field being created (see: https://msdn.microsoft.com/en-us/library/office/dn600182.aspx)
232
+ */
233
+ export interface ILocationField extends IBaseField {
234
+ }
235
+ //# sourceMappingURL=columnTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"columnTypes.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Provisioning/interfaces/columnTypes.ts"],"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AAC,EAAE,kBAAkB,CAAC;CACpC;AAED;;;;;;EAME;AACF,MAAM,WAAW,UAAW,SAAQ,UAAU;IAC5C,aAAa,EAAE,sBAAsB,CAAC;CAEvC;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC9C,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC9C,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAkB,SAAQ,UAAU;IACnD,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;EAME;AACF,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD,oBAAoB,EAAE,MAAM,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,cAAe,SAAQ,UAAU;CAEjD"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * This file was copied directly from npmFunctions last update and used in:
3
+ * Easy Contents
4
+ * Library Provisioning (for labels)
5
+ *
6
+ * Changes only include cleaning up imports and removed the [ key: .... ] stuff
7
+ *
8
+ */
9
+ export const minInfinity = -1.7976931348623157e+308;
10
+ export const maxInfinity = -1 * minInfinity;
11
+ export const cCount = { kind: null, type: null, vType: 'Counter', label: 'Counter' };
12
+ export const cInt = { kind: null, type: null, vType: 'Integer', label: 'Number' };
13
+ export const cText = { kind: 2, type: 'SP.FieldText', vType: 'Text', label: 'Text' };
14
+ export const cMText = { kind: 3, type: 'SP.FieldMultiLineText', vType: '', label: 'Text' };
15
+ export const cDate = { kind: 4, type: 'SP.FieldDateTime', vType: 'DateTime', label: 'Date' };
16
+ export const cChoice = { kind: 6, type: 'SP.FieldChoice', vType: 'Text', label: 'Choice' };
17
+ export const cLook = { kind: 7, type: 'SP.FieldCreationInformation', vType: '', label: '9' };
18
+ export const cDLook = { kind: 7, type: 'SP.FieldCreationInformation', vType: '', label: '9' };
19
+ export const cBool = { kind: 8, type: 'SP.Field', vType: 'Boolean', label: 'Boolean' };
20
+ export const cNumb = { kind: 9, type: 'SP.FieldNumber', vType: 'Number', label: 'Number' };
21
+ export const cCurr = { kind: 10, type: 'SP.FieldCurrency', vType: '', label: 'Curr' };
22
+ export const cURL = { kind: 11, type: 'SP.FieldUrl', vType: '', label: 'URL' };
23
+ export const cMChoice = { kind: 15, type: 'SP.FieldMultiChoice', vType: '', label: 'Choice' };
24
+ export const cCalcN = { kind: 17, type: 'SP.FieldCalculated', vType: 'Number', label: 'Calculated' };
25
+ export const cCalcT = { kind: 17, type: 'SP.FieldCalculated', vType: 'Text', label: 'Calculated' };
26
+ export const cUser = { kind: 20, type: 'SP.FieldUser', vType: 'Integer', label: 'User' };
27
+ export const cMUser = { kind: 20, type: 'SP.FieldUserMulti', vType: '', label: 'User' }; //This may be SP.FieldUserMulti or may not ????... but this is required for the function in columnServices.ts to catch this option.
28
+ export const cLocal = { kind: 33, type: 'SP.FieldLocation', vType: '', label: 'Loc' };
29
+ export const cModStatus = { kind: 23, type: 'SP.FieldChoice', vType: '', label: 'ModStatus' };
30
+ export const cSLook = { kind: 7, type: 'SP.FieldLookup', vType: '', label: 'Lookup' };
31
+ export const cComputed = { kind: 12, type: 'SP.FieldComputed', vType: '', label: 'Computed' };
32
+ export const myFieldDefs = [cCount, cInt, cText, cMText, cDate, cChoice, cLook, cDLook, cBool, cNumb, cCurr, cURL, cMChoice, cCalcN, cCalcT, cUser, cMUser, cLocal, cSLook, cComputed, cModStatus];
33
+ //# sourceMappingURL=columnTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"columnTypes.js","sourceRoot":"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last update and used in:
3
+ * Easy Contents
4
+ * Library Provisioning (for labels)
5
+ *
6
+ * Changes only include cleaning up imports and removed the [ key: .... ] stuff
7
+ *
8
+ */
9
+ /**
10
+ * Ensures that the specified list exists in the collection (note: this method not supported for batching)
11
+ *
12
+ * @param title The new list's title
13
+ * @param desc The new list's description
14
+ * @param template The list template value
15
+ * @param enableContentTypes If true content types will be allowed and enabled, otherwise they will be disallowed and not enabled
16
+ * @param additionalSettings Will be passed as part of the list creation body or used to update an existing list
17
+ */
18
+ export declare function notify(statusLog: IServiceLog | any, verb: any, status: any, step: any, f: any, returnField: any, checkValue?: any, noAlert?: boolean): any;
19
+ export interface IServiceLog {
20
+ time: string;
21
+ step: string;
22
+ verb: string;
23
+ status: string;
24
+ checkValue?: any;
25
+ returnField?: any;
26
+ item?: any;
27
+ }
28
+ export interface IMyListInfo {
29
+ webURL?: string;
30
+ title: string;
31
+ desc?: string;
32
+ template?: number;
33
+ enableContentTypes?: boolean;
34
+ additionalSettings?: Partial<IListInfo>;
35
+ }
36
+ export interface IListInfo {
37
+ EnableRequestSignOff: boolean;
38
+ EnableVersioning: boolean;
39
+ EntityTypeName: string;
40
+ ExemptFromBlockDownloadOfNonViewableFiles: boolean;
41
+ FileSavePostProcessingEnabled: boolean;
42
+ ForceCheckout: boolean;
43
+ HasExternalDataSource: boolean;
44
+ Hidden: boolean;
45
+ Id: string;
46
+ ImagePath: {
47
+ DecodedUrl: string;
48
+ };
49
+ ImageUrl: string;
50
+ IrmEnabled: boolean;
51
+ IrmExpire: boolean;
52
+ IrmReject: boolean;
53
+ IsApplicationList: boolean;
54
+ IsCatalog: boolean;
55
+ IsPrivate: boolean;
56
+ ItemCount: number;
57
+ HasUniqueRoleAssignments: boolean;
58
+ LastItemDeletedDate: string;
59
+ LastItemModifiedDate: string;
60
+ LastItemUserModifiedDate: string;
61
+ ListExperienceOptions: number;
62
+ ListItemEntityTypeFullName: string;
63
+ MajorVersionLimit: number;
64
+ MajorWithMinorVersionsLimit: number;
65
+ MultipleDataList: boolean;
66
+ NoCrawl: boolean;
67
+ ParentWebPath: {
68
+ DecodedUrl: string;
69
+ };
70
+ ParentWebUrl: string;
71
+ ParserDisabled: boolean;
72
+ ServerTemplateCanCreateFolders: boolean;
73
+ TemplateFeatureId: string;
74
+ Title: string;
75
+ UniquePerms?: boolean;
76
+ }
77
+ export interface IContentsLists {
78
+ tabs: string[];
79
+ lists: {
80
+ all: IContentsListInfo[];
81
+ searched: IContentsListInfo[];
82
+ };
83
+ }
84
+ export interface IContentsListInfo {
85
+ AllowContentTypes?: boolean;
86
+ ContentTypesEnabled: boolean;
87
+ BaseTemplate: number;
88
+ BaseType: number;
89
+ EntityTypeName: string;
90
+ Title: string;
91
+ Hidden: boolean;
92
+ Id: string;
93
+ Description: string;
94
+ ItemCount: number;
95
+ Created: string;
96
+ HasUniqueRoleAssignments: boolean;
97
+ LastItemDeletedDate: string;
98
+ LastItemModifiedDate: string;
99
+ LastItemUserModifiedDate: string;
100
+ ParentWebPath: {
101
+ DecodedUrl: string;
102
+ };
103
+ ParentWebUrl: string;
104
+ listURL: string;
105
+ railsOffLink: boolean;
106
+ allowCrazyLink: boolean;
107
+ responseIndex: any;
108
+ EnableRequestSignOff: boolean;
109
+ EnableVersioning: boolean;
110
+ EnableMinorVersions: boolean;
111
+ MajorVersionLimit: number;
112
+ MajorWithMinorVersionsLimit: number;
113
+ DraftVersionVisibility: number;
114
+ ForceCheckout: boolean;
115
+ EnableModeration: boolean;
116
+ ServerTemplateCanCreateFolders: boolean;
117
+ EnableAttachments: boolean;
118
+ NoCrawl: boolean;
119
+ UniquePerms?: boolean;
120
+ searchString: string;
121
+ modifiedAge?: number;
122
+ modifiedSettingAge?: number;
123
+ createdAge?: number;
124
+ modifiedUserAge?: number;
125
+ deletedAge?: number;
126
+ meta?: string[];
127
+ sort: string;
128
+ bucketCategory: string;
129
+ bucketLabel: string;
130
+ bucketIdx: any;
131
+ odataEtag: string;
132
+ odataId: string;
133
+ ListItemEntityTypeFullName: string;
134
+ ImagePath: {
135
+ DecodedUrl: string;
136
+ };
137
+ ImageUrl: string;
138
+ IrmEnabled: boolean;
139
+ IrmExpire: boolean;
140
+ IrmReject: boolean;
141
+ IsApplicationList: boolean;
142
+ IsCatalog: boolean;
143
+ IsPrivate: boolean;
144
+ TemplateFeatureId: string;
145
+ HasExternalDataSource: boolean;
146
+ ExemptFromBlockDownloadOfNonViewableFiles?: boolean;
147
+ FileSavePostProcessingEnabled?: boolean;
148
+ ParserDisabled: boolean;
149
+ ListExperienceOptions: number;
150
+ MultipleDataList: boolean;
151
+ }
152
+ //# sourceMappingURL=listTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listTypes.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Provisioning/interfaces/listTypes.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH;;;;;;;;GAQG;AAGH,wBAAgB,MAAM,CAAC,SAAS,EAAG,WAAW,GAAG,GAAG,EAAE,IAAI,EAAG,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAG,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,UAAU,GAAG,GAAU,EAAE,OAAO,UAAQ,OAuB5J;AAGD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kBAAkB,CAAC,EAAE,OAAO,C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EAAE,OAAO,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IAGjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAEhB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,GAAG,CAAC;IAGf,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,0BAA0B,EAAE,MAAM,CAAC;IAEnC,SAAS,EAAE;QACP,UAAU,EAAE,MAAM,CAAC;KACtB,CAAC;IAEF,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IAEnB,iBAAiB,EAAE,MAAM,CAAC;IAG1B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,yCAAyC,CAAC,EAAE,OAAO,CAAC;IACpD,6BAA6B,CAAC,EAAE,OAAO,CAAC;IACxC,cAAc,EAAE,OAAO,CAAC;IAExB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,gBAAgB,EAAE,OAAO,CAAC;CAE3B"}
@@ -0,0 +1,51 @@
1
+ /**
2
+ * This file was copied directly from npmFunctions last update and used in:
3
+ * Easy Contents
4
+ * Library Provisioning (for labels)
5
+ *
6
+ * Changes only include cleaning up imports and removed the [ key: .... ] stuff
7
+ *
8
+ */
9
+ /**
10
+ * Ensures that the specified list exists in the collection (note: this method not supported for batching)
11
+ *
12
+ * @param title The new list's title
13
+ * @param desc The new list's description
14
+ * @param template The list template value
15
+ * @param enableContentTypes If true content types will be allowed and enabled, otherwise they will be disallowed and not enabled
16
+ * @param additionalSettings Will be passed as part of the list creation body or used to update an existing list
17
+ */
18
+ // ensure(title: string, desc?: string, template?: number, enableContentTypes?: boolean, additionalSettings?: Partial<IListInfo>): Promise<IListEnsureResult>;
19
+ export function notify(statusLog, verb, status, step, f, returnField, checkValue = null, noAlert = false) {
20
+ if (f == null) {
21
+ f = { name: '' };
22
+ }
23
+ let thisItem = f == null ? null : f.name ? f.name : f.Title;
24
+ let thisNotify = {
25
+ time: (new Date()).toLocaleString(),
26
+ verb: verb,
27
+ step: '',
28
+ status: '',
29
+ //status: status,
30
+ //checkValue: checkValue,
31
+ };
32
+ if (step !== null && step !== undefined) {
33
+ thisNotify["step"] = step;
34
+ }
35
+ if (status !== null && status !== undefined) {
36
+ thisNotify["status"] = status;
37
+ }
38
+ if (thisItem !== null && thisItem !== undefined) {
39
+ thisNotify["item"] = thisItem;
40
+ }
41
+ if (returnField !== null && returnField !== undefined) {
42
+ thisNotify["returnField"] = returnField;
43
+ }
44
+ if (checkValue !== null && checkValue !== undefined) {
45
+ thisNotify["checkValue"] = checkValue;
46
+ }
47
+ //alert(verb + ' ' + f.name + ' ' + status );
48
+ statusLog.push(thisNotify);
49
+ return statusLog;
50
+ }
51
+ //# sourceMappingURL=listTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listTypes.js","sourceRoot":"","sources":["../../../../../src/components/molecules/Provisioning/interfaces/listTypes.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH;;;;;;;;GAQG;AACH,8JAA8J;AAE9J,MAAM,UAAU,MAAM,CAAC,SAA6B,EAAE,IAAU,EAAE,MAAW,EAAE,IAAU,EAAE,CAAM,EAAE,WAAgB,EAAE,aAAmB,IAAI,EAAE,OA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update and used in:
3
+ * Easy Contents
4
+ * Library Provisioning (for labels)
5
+ *
6
+ * Changes only include cleaning up imports and removed the [ key: .... ] stuff
7
+ *
8
+ */
9
+ import { IViewInfo } from "@pnp/sp/views/types";
10
+ import { IMyFieldTypes } from './columnTypes';
11
+ export interface MyOperator {
12
+ q: string;
13
+ o: string;
14
+ }
15
+ /**
16
+ * Standard query values
17
+ */
18
+ export declare const queryValueCurrentUser = "<Value Type=\"Integer\"><UserID Type=\"Integer\" /></Value>";
19
+ export declare function queryValueToday(offSetDays?: number | null): string;
20
+ export declare const Eq: MyOperator;
21
+ export declare const Ne: MyOperator;
22
+ export declare const Gt: MyOperator;
23
+ export declare const Geq: MyOperator;
24
+ export declare const Lt: MyOperator;
25
+ export declare const Leq: MyOperator;
26
+ export declare const IsNull: MyOperator;
27
+ export declare const IsNotNull: MyOperator;
28
+ export declare const Contains: MyOperator;
29
+ export declare const BeginsWith: MyOperator;
30
+ export interface IViewOrder {
31
+ field: string | IMyFieldTypes;
32
+ asc: true | false;
33
+ }
34
+ export interface IViewWhere {
35
+ field: string | IMyFieldTypes;
36
+ clause: 'Or' | 'And';
37
+ oper: MyOperator;
38
+ val: string;
39
+ }
40
+ export interface IViewGroupBy {
41
+ fields?: IViewOrder[];
42
+ collapse?: boolean;
43
+ limit?: number;
44
+ }
45
+ export type IViewField = IMyFieldTypes | string;
46
+ export interface IMyView extends Partial<IViewInfo> {
47
+ Title: string;
48
+ ServerRelativeUrl?: string;
49
+ RowLimit?: number;
50
+ iFields?: IViewField[];
51
+ wheres?: IViewWhere[];
52
+ orders?: IViewOrder[];
53
+ groups?: IViewGroupBy;
54
+ }
55
+ //# sourceMappingURL=viewTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"viewTypes.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Provisioning/interfaces/viewTypes.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB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SAAS,CAAC;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;IACvB,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC;IACtB,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC;IACtB,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * This file was copied directly from npmFunctions last update and used in:
3
+ * Easy Contents
4
+ * Library Provisioning (for labels)
5
+ *
6
+ * Changes only include cleaning up imports and removed the [ key: .... ] stuff
7
+ *
8
+ */
9
+ /**
10
+ * Standard query values
11
+ */
12
+ export const queryValueCurrentUser = '<Value Type="Integer"><UserID Type="Integer" /></Value>';
13
+ export function queryValueToday(offSetDays = null) {
14
+ if (offSetDays == null || offSetDays === 0) {
15
+ return '<Value Type="DateTime"><Today /></Value>';
16
+ }
17
+ else {
18
+ return '<Value Type="DateTime"><Today OffsetDays="' + offSetDays + '" /></Value>';
19
+ }
20
+ }
21
+ export const Eq = { q: 'Eq', o: '=' };
22
+ export const Ne = { q: 'Ne', o: '<>' };
23
+ export const Gt = { q: 'Gt', o: '>' };
24
+ export const Geq = { q: 'Geq', o: '>=' };
25
+ export const Lt = { q: 'Lt', o: '<' };
26
+ export const Leq = { q: 'Leq', o: '<=' };
27
+ export const IsNull = { q: 'IsNull', o: 'IsNull' };
28
+ export const IsNotNull = { q: 'IsNotNull', o: 'IsNotNull' };
29
+ export const Contains = { q: 'Contains', o: 'Contains' };
30
+ export const BeginsWith = { q: 'BeginsWith', o: 'BeginsWith' };
31
+ //# sourceMappingURL=viewTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"viewTypes.js","sourceRoot":"","sources":["../../../../../src/components/molecules/Provisioning/interfaces/viewTypes.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAWH;;GAEG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EAAC,CAAC"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * This function uses the Date object to get the current year and then loops through the next ten years,
3
+ * adding each year as a string to an array. The resulting array contains ten strings, each representing
4
+ * a year from the current year to ten years in the future.
5
+ *
6
+ * @param qty
7
+ * @param offset
8
+ * @param nextOrPrior
9
+ * @returns
10
+ */
11
+ export declare function getXYearsAsNumbers(qty: number, offset: number, nextOrPrior: 'next' | 'prior'): number[];
12
+ export declare function getXYearsAsStrings(qty: number, offset: number, nextOrPrior: 'next' | 'prior'): string[];
13
+ /**
14
+ *
15
+ * This can be used in codepen.io to test:
16
+ function getXYearsAsNumbers( qty, offset, nextOrPrior ) {
17
+ const currentYear = new Date().getFullYear();
18
+ console.log( 'year:', currentYear )
19
+ const years = [];
20
+
21
+ const sign = nextOrPrior === 'next' ? 1 : -1 ;
22
+ for (let i = 0; i <= qty -1 + Math.abs(offset) ; i++) {
23
+ years.push(( currentYear + offset * ( sign ) + i * ( sign ) ));
24
+ }
25
+
26
+ return years;
27
+ }
28
+
29
+ console.log( new Date() )
30
+ const nums = getXYearsAsNumbers( 10, 0,'next');
31
+ const years = nums.map( year => { return year.toString() } );
32
+ console.log( nums )
33
+ console.log( years )
34
+
35
+ */
36
+ //# sourceMappingURL=yearsArray.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yearsArray.d.ts","sourceRoot":"","sources":["../../../src/logic/Time/yearsArray.ts"],"names":[],"mappings":"AACA;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,GAAI,MAAM,EAAE,CAWzG;AAED,wBAAgB,kBAAkB,CAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,CAGxG;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG"}
@@ -0,0 +1,47 @@
1
+ /**
2
+ * This function uses the Date object to get the current year and then loops through the next ten years,
3
+ * adding each year as a string to an array. The resulting array contains ten strings, each representing
4
+ * a year from the current year to ten years in the future.
5
+ *
6
+ * @param qty
7
+ * @param offset
8
+ * @param nextOrPrior
9
+ * @returns
10
+ */
11
+ export function getXYearsAsNumbers(qty, offset, nextOrPrior) {
12
+ const currentYear = new Date().getFullYear();
13
+ const years = [];
14
+ const sign = nextOrPrior === 'next' ? 1 : -1;
15
+ for (let i = 0; i <= qty - 1 + Math.abs(offset); i++) {
16
+ years.push((currentYear + offset * (sign) + i * (sign)));
17
+ }
18
+ return years;
19
+ }
20
+ export function getXYearsAsStrings(qty, offset, nextOrPrior) {
21
+ const years = getXYearsAsNumbers(qty, offset, nextOrPrior).map(year => { return year.toString(); });
22
+ return years;
23
+ }
24
+ /**
25
+ *
26
+ * This can be used in codepen.io to test:
27
+ function getXYearsAsNumbers( qty, offset, nextOrPrior ) {
28
+ const currentYear = new Date().getFullYear();
29
+ console.log( 'year:', currentYear )
30
+ const years = [];
31
+
32
+ const sign = nextOrPrior === 'next' ? 1 : -1 ;
33
+ for (let i = 0; i <= qty -1 + Math.abs(offset) ; i++) {
34
+ years.push(( currentYear + offset * ( sign ) + i * ( sign ) ));
35
+ }
36
+
37
+ return years;
38
+ }
39
+
40
+ console.log( new Date() )
41
+ const nums = getXYearsAsNumbers( 10, 0,'next');
42
+ const years = nums.map( year => { return year.toString() } );
43
+ console.log( nums )
44
+ console.log( years )
45
+
46
+ */
47
+ //# sourceMappingURL=yearsArray.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yearsArray.js","sourceRoot":"","sources":["../../../src/logic/Time/yearsArray.ts"],"names":[],"mappings":"AACA;;;;;;;;;GASG;AACH,MAAM,UAAU,kBAAkB,CAAE,GAAW,EAAE,MAAc,EAAE,WAA6B;IAC5F,MAAM,WAAW,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IAC7C,MAAM,KAAK,GAAG,EAAE,CAAC;IAEjB,MAAM,IAAI,GAAG,WAAW,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE;IAE9C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,GAAG,GAAE,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,EAAG,CAAC,EAAE,EAAG;QACrD,KAAK,CAAC,IAAI,CAAC,CAAE,WAAW,GAAG,MAAM,GAAG,CAAE,IAAI,CAAE,GAAI,CAAC,GAAG,CAAE,IAAI,CAAE,CAAG,CAAC,CAAC;KAClE;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAE,GAAW,EAAE,MAAc,EAAE,WAA6B;IAC5F,MAAM,KAAK,GAAG,kBAAkB,CAAE,GAAG,EAAE,MAAM,EAAE,WAAW,CAAG,CAAC,GAAG,CAAE,IAAI,CAAC,EAAE,GAAG,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAA,CAAC,CAAC,CAAE,CAAC;IACxG,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikezimm/fps-library-v2",
3
- "version": "1.1.44",
3
+ "version": "1.1.45",
4
4
  "description": "Library of reusable typescript/javascript functions, interfaces and constants",
5
5
  "license": "MIT",
6
6
  "main": "./lib/index.js",