Skip to content

Commit

Permalink
v18 release
Browse files Browse the repository at this point in the history
  • Loading branch information
iJungleboy committed Jul 12, 2024
1 parent 83ffee1 commit 28ae78c
Show file tree
Hide file tree
Showing 736 changed files with 12,901 additions and 93,289 deletions.
2 changes: 1 addition & 1 deletion 17.99.00/dist/cms/wysiwyg.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion 17.99.00/dist/inpage/inpage.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions 17.99.00/dist/inpage/inpage.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 17.99.00/dist/inpage/inpage.min.js.map

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions 17.99.00/dist/ng-edit/index-raw.html

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions 17.99.00/dist/ng-edit/main.a79cdcb7b2b00ea3.js

This file was deleted.

1 change: 0 additions & 1 deletion 17.99.00/dist/ng-edit/main.a79cdcb7b2b00ea3.js.map

This file was deleted.

59 changes: 23 additions & 36 deletions _latest/dist/ng-edit/main.js → 17.99.00/dist/ng-edit/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ const logger = new _shared_logging_eav_logger__WEBPACK_IMPORTED_MODULE_0__.EavLo
* ':zoneId/:appId/edit/:items/update/:updateEntityGuid/:updateFieldId'
*/
function editRouteMatcherRoot(url) {
const l = logger.fn('editRoot', 'check', {
const l = logger.fn('editRouteMatcherRoot', {
url
});
if (url.length < 4) return l.rNull();
Expand Down Expand Up @@ -482,7 +482,7 @@ function editRouteMatcherRoot(url) {
}
/** ':zoneId/:appId/edit/refresh/:items' */
function editRouteMatcherRootRefresh(url) {
const l = logger.fn('refreshEditRoot', 'check', {
const l = logger.fn('editRouteMatcherRootRefresh', {
url
});
if (url.length < 5) return l.rNull();
Expand All @@ -506,7 +506,7 @@ function editRouteMatcherRootRefresh(url) {
* 'edit/:items/update/:updateEntityGuid/:updateFieldId'
*/
function editRouteMatcherSubEdit(url) {
const l = logger.fn('edit', 'check', {
const l = logger.fn('editRouteMatcherSubEdit', {
url
});
if (url.length < 2) return l.rNull();
Expand All @@ -532,7 +532,7 @@ function editRouteMatcherSubEdit(url) {
}
/** 'edit/refresh/:items' */
function editRouteMatcherSubEditRefresh(url) {
const l = logger.fn('refreshEdit', 'check', {
const l = logger.fn('editRouteMatcherSubEditRefresh', {
url
});
if (url.length < 3) return l.rNull();
Expand Down Expand Up @@ -882,7 +882,7 @@ class FieldLogicBase {
* Note: 2dm 2023-08-31 moved from InputFieldHelpers; in future, each logic can override this
*/
isValueEmpty(value, isCreateMode) {
const l = this.log.fn('isValueEmpty', null, {
const l = this.log.fn('isValueEmpty', {
value,
isCreateMode
});
Expand Down Expand Up @@ -4034,14 +4034,13 @@ class InputFieldHelpers {
/** Include itemHeader if you need data from prefill, and set onlyPrefill if you only need parsed prefill */
static parseDefaultValue(name, inputType, settings, itemHeader, onlyPrefill) {
const log = new _shared_logging_eav_logger__WEBPACK_IMPORTED_MODULE_1__.EavLogger('InputFieldHelpers', logThis);
const l = log.fn('parseDefaultValue', null, {
const l = log.fn('parseDefaultValue', {
name,
inputType,
settings,
itemHeader,
onlyPrefill
});
// 'name: ' + name + ', inputType: ' + inputType + ', settings: ' + settings + ', itemHeader: ' + itemHeader + ', onlyPrefill: ' + onlyPrefill);
if (onlyPrefill && itemHeader?.Prefill?.[name] === undefined) return l.rNull('only prefill, but no prefill data found');
let defaultValue = itemHeader?.Prefill?.[name]?.toString() ?? settings.DefaultValue;
l.values({
Expand Down Expand Up @@ -6983,9 +6982,7 @@ class EditRoutingService extends _shared_components_base_component__WEBPACK_IMPO
const newEditUrl = `edit/${params.items}` + (expand ? `/details/${entityGuid}/${fieldId}` : '');
const currentUrl = _helpers__WEBPACK_IMPORTED_MODULE_3__.UrlHelpers.calculatePathFromRoot(this.route);
const lastIndex = currentUrl.lastIndexOf(oldEditUrl);
if (lastIndex <= 0) {
return;
}
if (lastIndex <= 0) return;
const newUrl = currentUrl.substring(0, lastIndex) + currentUrl.substring(lastIndex).replace(oldEditUrl, newEditUrl);
this.router.navigate([newUrl], {
state: componentTag && {
Expand All @@ -7010,9 +7007,7 @@ class EditRoutingService extends _shared_components_base_component__WEBPACK_IMPO
const newEditUrl = `edit/${params.items}/update/${entityGuid}/${fieldId}/edit/${formUrl}`;
const currentUrl = _helpers__WEBPACK_IMPORTED_MODULE_3__.UrlHelpers.calculatePathFromRoot(this.route);
const lastIndex = currentUrl.lastIndexOf(oldEditUrl);
if (lastIndex <= 0) {
return;
}
if (lastIndex <= 0) return;
const newUrl = currentUrl.substring(0, lastIndex) + currentUrl.substring(lastIndex).replace(oldEditUrl, newEditUrl);
this.router.navigate([newUrl]);
}
Expand Down Expand Up @@ -7042,16 +7037,12 @@ class EditRoutingService extends _shared_components_base_component__WEBPACK_IMPO
// clear update ids from url (leave expanded/details)
const params = this.route.snapshot.params;
const hasUpdate = params.updateEntityGuid != null && params.updateFieldId != null;
if (!hasUpdate) {
return;
}
if (!hasUpdate) return;
const oldEditUrl = `edit/${params.items}/update/${params.updateEntityGuid}/${params.updateFieldId}`;
const newEditUrl = `edit/${params.items}`;
const currentUrl = _helpers__WEBPACK_IMPORTED_MODULE_3__.UrlHelpers.calculatePathFromRoot(this.route);
const lastIndex = currentUrl.lastIndexOf(oldEditUrl);
if (lastIndex <= 0) {
return;
}
if (lastIndex <= 0) return;
const newUrl = currentUrl.substring(0, lastIndex) + currentUrl.substring(lastIndex).replace(oldEditUrl, newEditUrl);
this.router.navigate([newUrl]);
}));
Expand All @@ -7062,17 +7053,13 @@ class EditRoutingService extends _shared_components_base_component__WEBPACK_IMPO
const versionsResult = navigation.extras?.state;
return versionsResult;
}), (0,rxjs__WEBPACK_IMPORTED_MODULE_9__.filter)(versionsResult => versionsResult?.refreshEdit != null)).subscribe(result => {
if (!result.refreshEdit) {
return;
}
if (!result.refreshEdit) return;
const params = this.route.snapshot.params;
const oldEditUrl = `edit/${params.items}`;
const newEditUrl = `edit/refresh/${params.items}`;
const currentUrl = _helpers__WEBPACK_IMPORTED_MODULE_3__.UrlHelpers.calculatePathFromRoot(this.route);
const lastIndex = currentUrl.lastIndexOf(oldEditUrl);
if (lastIndex <= 0) {
return;
}
if (lastIndex <= 0) return;
const newUrl = currentUrl.substring(0, lastIndex) + currentUrl.substring(lastIndex).replace(oldEditUrl, newEditUrl);
const navRes = {
navigateUrl: newUrl
Expand Down Expand Up @@ -7617,7 +7604,7 @@ class FieldsTranslateService {
});
}
translate(fieldName, isTransaction = false, transactionItem) {
const l = this.log.fn('translate', '', {
const l = this.log.fn('translate', {
fieldName,
isTransaction,
transactionItem
Expand All @@ -7632,7 +7619,7 @@ class FieldsTranslateService {
if (!doesFieldHaveExistingDimension) return l.r(this.addItemAttributeValueHelper(fieldName, defaultValue.Value, language.current, false));else return l.rNull();
}
dontTranslate(fieldName, isTransaction = false, transactionItem) {
const l = this.log.fn('dontTranslate', '', {
const l = this.log.fn('dontTranslate', {
fieldName,
isTransaction,
transactionItem
Expand Down Expand Up @@ -7794,7 +7781,7 @@ class FieldsTranslateService {
return !fieldsProps[fieldName].settings.DisableAutoTranslation && !logic.canAutoTranslate;
}
addItemAttributeValueHelper(fieldName, value, currentLanguage, isReadOnly) {
const l = this.log.fn('addItemAttributeValueHelper', '', {
const l = this.log.fn('addItemAttributeValueHelper', {
fieldName,
value,
currentLanguage,
Expand Down Expand Up @@ -9198,7 +9185,7 @@ class ItemService extends _base_data_service__WEBPACK_IMPORTED_MODULE_4__.BaseDa
this.updateOneInCache(newItem);
}
removeItemAttributeDimension(entityGuid, fieldName, current, delayUpsert = false, transactionItem) {
const l = this.log.fn('removeItemAttributeDimension', '', {
const l = this.log.fn('removeItemAttributeDimension', {
entityGuid,
attributeKey: fieldName,
currentLanguage: current,
Expand Down Expand Up @@ -9230,7 +9217,7 @@ class ItemService extends _base_data_service__WEBPACK_IMPORTED_MODULE_4__.BaseDa
this.updateOneInCache(newItem);
}
getItemAttributes(entityGuid) {
const l = this.log.fn('getItemAttributes', '', {
const l = this.log.fn('getItemAttributes', {
entityGuid
});
const result = this.cache$.value.find(item => item.Entity.Guid === entityGuid)?.Entity.Attributes;
Expand Down Expand Up @@ -9270,14 +9257,14 @@ class ItemService extends _base_data_service__WEBPACK_IMPORTED_MODULE_4__.BaseDa
return this.cache$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_8__.map)(items => items.filter(item => entityGuids.includes(item.Entity.Guid))), (0,rxjs__WEBPACK_IMPORTED_MODULE_9__.distinctUntilChanged)(projects_eav_ui_src_app_shared_rxJs_rx_helpers__WEBPACK_IMPORTED_MODULE_7__.RxHelpers.arraysEqual));
}
setDefaultValue(item, ctAttribute, inputType, settings, languages, defaultLanguage) {
const l = this.log.fn('setDefaultValue', `Name: ${ctAttribute.Name}`, {
const l = this.log.fn('setDefaultValue', {
item,
ctAttribute,
inputType,
settings,
languages,
defaultLanguage
});
}, `Name: ${ctAttribute.Name}`);
const defaultValue = _helpers__WEBPACK_IMPORTED_MODULE_2__.InputFieldHelpers.parseDefaultValue(ctAttribute.Name, inputType?.Type, settings, item.Header);
const defaultLanguageValue = _helpers__WEBPACK_IMPORTED_MODULE_2__.LocalizationHelpers.getBestValue(item.Entity.Attributes[ctAttribute.Name], defaultLanguage, defaultLanguage, _constants__WEBPACK_IMPORTED_MODULE_1__.BestValueModes.Strict);
// 2023-08-31 2dm simplified; leave comments in till EOY in case I broke something
Expand Down Expand Up @@ -10455,7 +10442,7 @@ function consoleLogObject({
if (typeof show === 'string') return console.log(`${prefix} ${message} [string:${show.length}] '${key}'='${show}'`);
return console.log(`${prefix} ${message} [${typeof show}}] '${key}'=`, show);
}
console.log(`${prefix} ${message} [${keys.length} keys]`, data);
console.log(`${prefix} ${message} [${keys.length} data-items]`, data);
return;
}
console.groupCollapsed(`${prefix} ${message}`, data);
Expand Down Expand Up @@ -11320,15 +11307,15 @@ class EavLogger {
if (!this.enabled) return;
(0,_helpers_console_log_angular_helper__WEBPACK_IMPORTED_MODULE_0__.logMain)(`[${this.nameWithSvcId}] values:`, data);
}
fn(name, message, data) {
fn(name, data, message) {
return new _eav_logger_fn__WEBPACK_IMPORTED_MODULE_1__.EavLoggerFn(this, name, message, data);
}
/**
* Create a logger function that will only log if the condition is true
*/
fnCond(condition, name, data, message) {
// create real logger if condition is true, or if this logger is disabled anyhow
return condition || !this.enabled ? this.fn(name, message, data) : new EavLogger('noop', false).fn('noop', 'noop', {
return condition || !this.enabled ? this.fn(name, data, message) : new EavLogger('noop', false).fn('noop', {
condition
});
}
Expand Down Expand Up @@ -11593,7 +11580,7 @@ class Context extends _service_base__WEBPACK_IMPORTED_MODULE_2__.ServiceBase {
* This is still a bit shaky, not sure if this should be the final implementation.
*/
init(route) {
const l = this.log.fn(`init - previously ready: '${this.ready}'`, null, {
const l = this.log.fn(`init - previously ready: '${this.ready}'`, {
route
});
// New prevent-multiple-init checks 2dm 2024-07-01
Expand Down
1 change: 1 addition & 0 deletions 17.99.00/dist/ng-edit/main.js.map

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 28ae78c

Please sign in to comment.