Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions dist/js/libs/oj/debug_esm/ojaccordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
import oj from 'ojs/ojcore-base';
import oj from './ojcore-base.js';
import $ from 'jquery';
import { warn } from 'ojs/ojlogger';
import 'ojs/ojcomponentcore';
import 'ojs/ojcollapsible';
import { warn } from './ojlogger.js';
import './ojcomponentcore.js';
import './ojcollapsible.js';

var __oj_accordion_metadata =
{
Expand Down
6 changes: 3 additions & 3 deletions dist/js/libs/oj/debug_esm/ojactioncard.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
* @ignore
*/
import { jsx } from 'preact/jsx-runtime';
import { Root, customElement } from 'ojs/ojvcomponent';
import { Root, customElement } from './ojvcomponent.js';
import { Component, createRef } from 'preact';
import { recentPointer } from 'ojs/ojdomutils';
import { isEventClickthroughDisabled } from 'ojs/ojdatacollection-common';
import { recentPointer } from './ojdomutils.js';
import { isEventClickthroughDisabled } from './ojdatacollection-common.js';

var __decorate = (null && null.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
Expand Down
59 changes: 59 additions & 0 deletions dist/js/libs/oj/debug_esm/ojamdloader.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/**
* @license
* Copyright (c) 2014, 2026, Oracle and/or its affiliates.
* Licensed under The Universal Permissive License (UPL), Version 1.0
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
async function _readText(url) {
if (typeof process !== 'undefined' && process.versions?.node && url.protocol === 'file:') {
const { readFile } = await import('node:fs/promises');
return readFile(url, 'utf8');
}

const response = await fetch(url);
if (!response.ok) {
throw new Error(`Failed to load ${url}: ${response.status}`);
}
return response.text();
}

function _captureDefinedObject(source) {
let captured;
const define = (value) => {
captured = value;
};
new Function('define', source)(define);
if (captured === undefined) {
throw new Error('AMD bundle did not call define with an object payload');
}
return captured;
}

function _isMissingResourceError(error) {
return error?.code === 'ENOENT' || /Failed to load .*: 404/.test(error?.message || '');
}

export async function loadAmdObject(url) {
const source = await _readText(url);
return _captureDefinedObject(source);
}

export async function loadMergedAmdBundle(rootUrl, overlayUrl) {
const rootObject = await loadAmdObject(rootUrl);
const rootBundle = rootObject.root ?? rootObject;

if (!overlayUrl) {
return { ...rootBundle };
}

try {
const overlayObject = await loadAmdObject(overlayUrl);
return { ...rootBundle, ...overlayObject };
} catch (error) {
if (_isMissingResourceError(error)) {
return { ...rootBundle };
}
throw error;
}
}
8 changes: 4 additions & 4 deletions dist/js/libs/oj/debug_esm/ojanimation.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
import oj from 'ojs/ojcore-base';
import oj from './ojcore-base.js';
import $ from 'jquery';
import { getReadingDirection } from 'ojs/ojdomutils';
import { parseJSONFromFontFamily } from 'ojs/ojthemeutils';
import { warn, error } from 'ojs/ojlogger';
import { getReadingDirection } from './ojdomutils.js';
import { parseJSONFromFontFamily } from './ojthemeutils.js';
import { warn, error } from './ojlogger.js';

const _TRANSLATE = 'translate(';
const _TRANSLATE2 = ') translateZ(0)';
Expand Down
4 changes: 2 additions & 2 deletions dist/js/libs/oj/debug_esm/ojarraydatagriddatasource.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
import oj from 'ojs/ojcore-base';
import 'ojs/ojdatasource-common';
import oj from './ojcore-base.js';
import './ojdatasource-common.js';

/**
* @class ArrayCellSet
Expand Down
8 changes: 4 additions & 4 deletions dist/js/libs/oj/debug_esm/ojarraydataprovider.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
import oj from 'ojs/ojcore-base';
import { SortUtils } from 'ojs/ojdataprovider';
import { EventTargetMixin } from 'ojs/ojeventtarget';
import { ArrayDataProviderImpl, getCapability, createOptimizedKeySet, createOptimizedKeyMap, getVal } from 'ojs/ojarraydataproviderimpl';
import oj from './ojcore-base.js';
import { SortUtils } from './ojdataprovider.js';
import { EventTargetMixin } from './ojeventtarget.js';
import { ArrayDataProviderImpl, getCapability, createOptimizedKeySet, createOptimizedKeyMap, getVal } from './ojarraydataproviderimpl.js';

/**
* @preserve Copyright 2013 jQuery Foundation and other contributors
Expand Down
10 changes: 5 additions & 5 deletions dist/js/libs/oj/debug_esm/ojarraydataproviderimpl.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
import { wrapWithAbortHandling, FilterFactory, DataProviderRefreshEvent, DataProviderMutationEvent } from 'ojs/ojdataprovider';
import ojSet from 'ojs/ojset';
import oj from 'ojs/ojcore-base';
import ojMap from 'ojs/ojmap';
import { warn } from 'ojs/ojlogger';
import { wrapWithAbortHandling, FilterFactory, DataProviderRefreshEvent, DataProviderMutationEvent } from './ojdataprovider.js';
import ojSet from './ojset.js';
import oj from './ojcore-base.js';
import ojMap from './ojmap.js';
import { warn } from './ojlogger.js';

const _ATDEFAULT = '@default';
const getFetchCapability = () => {
Expand Down
4 changes: 2 additions & 2 deletions dist/js/libs/oj/debug_esm/ojarraypagingdatasource.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
import oj from 'ojs/ojcore-base';
import oj from './ojcore-base.js';
import 'jquery';
import { observableArray } from 'knockout';
import 'ojs/ojdatasource-common';
import './ojdatasource-common.js';

/**
* @preserve Copyright 2013 jQuery Foundation and other contributors
Expand Down
8 changes: 4 additions & 4 deletions dist/js/libs/oj/debug_esm/ojarraytabledatasource.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
import oj from 'ojs/ojcore-base';
import oj from './ojcore-base.js';
import $ from 'jquery';
import { info } from 'ojs/ojlogger';
import { applyParameters } from 'ojs/ojtranslation';
import { TableDataSource } from 'ojs/ojdatasource-common';
import { info } from './ojlogger.js';
import { applyParameters } from './ojtranslation.js';
import { TableDataSource } from './ojdatasource-common.js';

/**
* @export
Expand Down
8 changes: 4 additions & 4 deletions dist/js/libs/oj/debug_esm/ojarraytreedataprovider.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
import oj from 'ojs/ojcore-base';
import ArrayDataProvider from 'ojs/ojarraydataprovider';
import { EventTargetMixin } from 'ojs/ojeventtarget';
import { warn } from 'ojs/ojlogger';
import oj from './ojcore-base.js';
import ArrayDataProvider from './ojarraydataprovider.js';
import { EventTargetMixin } from './ojeventtarget.js';
import { warn } from './ojlogger.js';

/**
* @preserve Copyright 2013 jQuery Foundation and other contributors
Expand Down
4 changes: 2 additions & 2 deletions dist/js/libs/oj/debug_esm/ojasyncvalidator-daterestriction.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
import SyncValidatorAdapter from 'ojs/ojasyncvalidator-adapter';
import SyncValidatorAdapter from './ojasyncvalidator-adapter.js';

/**
* @preserve Copyright 2013 jQuery Foundation and other contributors
Expand Down Expand Up @@ -71,7 +71,7 @@ class AsyncDateRestrictionValidator extends SyncValidatorAdapter {
}
_InitLoadingPromise() {
if (!this._loadingPromise) {
this._loadingPromise = import('ojs/ojvalidator-daterestriction');
this._loadingPromise = import('./ojvalidator-daterestriction.js');
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions dist/js/libs/oj/debug_esm/ojasyncvalidator-datetimerange.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
import SyncValidatorAdapter from 'ojs/ojasyncvalidator-adapter';
import SyncValidatorAdapter from './ojasyncvalidator-adapter.js';

/**
* @preserve Copyright 2013 jQuery Foundation and other contributors
Expand Down Expand Up @@ -70,7 +70,7 @@ class AsyncDateTimeRangeValidator extends SyncValidatorAdapter {
}
_InitLoadingPromise() {
if (!this._loadingPromise) {
this._loadingPromise = import('ojs/ojvalidator-datetimerange');
this._loadingPromise = import('./ojvalidator-datetimerange.js');
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions dist/js/libs/oj/debug_esm/ojasyncvalidator-length.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
import SyncValidatorAdapter from 'ojs/ojasyncvalidator-adapter';
import SyncValidatorAdapter from './ojasyncvalidator-adapter.js';

/**
* @preserve Copyright 2013 jQuery Foundation and other contributors
Expand Down Expand Up @@ -71,7 +71,7 @@ class AsyncLengthValidator extends SyncValidatorAdapter {
}
_InitLoadingPromise() {
if (!this._loadingPromise) {
this._loadingPromise = import('ojs/ojvalidator-length');
this._loadingPromise = import('./ojvalidator-length.js');
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions dist/js/libs/oj/debug_esm/ojasyncvalidator-numberrange.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
import SyncValidatorAdapter from 'ojs/ojasyncvalidator-adapter';
import SyncValidatorAdapter from './ojasyncvalidator-adapter.js';

/**
* @preserve Copyright 2013 jQuery Foundation and other contributors
Expand Down Expand Up @@ -72,7 +72,7 @@ class AsyncNumberRangeValidator extends SyncValidatorAdapter {
}
_InitLoadingPromise() {
if (!this._loadingPromise) {
this._loadingPromise = import('ojs/ojvalidator-numberrange');
this._loadingPromise = import('./ojvalidator-numberrange.js');
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions dist/js/libs/oj/debug_esm/ojasyncvalidator-regexp.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
import SyncValidatorAdapter from 'ojs/ojasyncvalidator-adapter';
import SyncValidatorAdapter from './ojasyncvalidator-adapter.js';

/**
* @preserve Copyright 2013 jQuery Foundation and other contributors
Expand Down Expand Up @@ -73,7 +73,7 @@ class AsyncRegExpValidator extends SyncValidatorAdapter {
}
_InitLoadingPromise() {
if (!this._loadingPromise) {
this._loadingPromise = import('ojs/ojvalidator-regexp');
this._loadingPromise = import('./ojvalidator-regexp.js');
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions dist/js/libs/oj/debug_esm/ojasyncvalidator-required.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
import SyncValidatorAdapter from 'ojs/ojasyncvalidator-adapter';
import SyncValidatorAdapter from './ojasyncvalidator-adapter.js';

/**
* @preserve Copyright 2013 jQuery Foundation and other contributors
Expand Down Expand Up @@ -72,7 +72,7 @@ class AsyncRequiredValidator extends SyncValidatorAdapter {
}
_InitLoadingPromise() {
if (!this._loadingPromise) {
this._loadingPromise = import('ojs/ojvalidator-required');
this._loadingPromise = import('./ojvalidator-required.js');
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion dist/js/libs/oj/debug_esm/ojattributegrouphandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
import oj from 'ojs/ojcore-base';
import oj from './ojcore-base.js';
import $ from 'jquery';

/**
Expand Down
8 changes: 4 additions & 4 deletions dist/js/libs/oj/debug_esm/ojavailabletimezones.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
import { __getBundle } from 'ojs/ojlocaledata';
import { OraI18nUtils } from 'ojs/ojconverterutils-i18n';
import { getLocale } from 'ojs/ojconfig';
import { getISODateOffset } from 'ojs/ojconverter-nativedatetime';
import { __getBundle } from './ojlocaledata.js';
import { OraI18nUtils } from './ojconverterutils-i18n.js';
import { getLocale } from './ojconfig.js';
import { getISODateOffset } from './ojconverter-nativedatetime.js';

// OraI18nUtils is an undocumented class that is ok for other JET code to call
// but we don't want it to be a public API. So we need to cast it to any here.
Expand Down
4 changes: 2 additions & 2 deletions dist/js/libs/oj/debug_esm/ojavatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
* @ignore
*/
import { jsxs, jsx } from 'preact/jsx-runtime';
import { customElement } from 'ojs/ojvcomponent';
import { getCachedCSSVarValues } from 'ojs/ojthemeutils';
import { customElement } from './ojvcomponent.js';
import { getCachedCSSVarValues } from './ojthemeutils.js';
import { Component } from 'preact';

var __decorate = (null && null.__decorate) || function (decorators, target, key, desc) {
Expand Down
10 changes: 5 additions & 5 deletions dist/js/libs/oj/debug_esm/ojbinddom.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
import BindingProviderImpl from 'ojs/ojkoshared';
import { OJ_BIND_CONVERTED_NODE, AttributeUtils, ElementUtils } from 'ojs/ojcustomelement-utils';
import BindingProviderImpl from './ojkoshared.js';
import { OJ_BIND_CONVERTED_NODE, AttributeUtils, ElementUtils } from './ojcustomelement-utils.js';
import { bindingHandlers, virtualElements, applyBindingsToDescendants, computed, utils } from 'knockout';
import oj from 'ojs/ojcore-base';
import { error } from 'ojs/ojlogger';
import Context from 'ojs/ojcontext';
import oj from './ojcore-base.js';
import { error } from './ojlogger.js';
import Context from './ojcontext.js';

/**
*
Expand Down
2 changes: 1 addition & 1 deletion dist/js/libs/oj/debug_esm/ojbindingprovider.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
import BindingProviderImpl from 'ojs/ojkoshared';
import BindingProviderImpl from './ojkoshared.js';

/**
* Utility class with functions for interacting with the JET binding provider.
Expand Down
2 changes: 1 addition & 1 deletion dist/js/libs/oj/debug_esm/ojbindpropagation.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
import { getElementRegistration } from 'ojs/ojcustomelement-registry';
import { getElementRegistration } from './ojcustomelement-registry.js';

const STATIC_PROPAGATION = Symbol('StaticContextPropagation');
const CONSUMED_CONTEXT = Symbol('ConsumedContext');
Expand Down
14 changes: 7 additions & 7 deletions dist/js/libs/oj/debug_esm/ojbufferingdataprovider.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
import oj from 'ojs/ojcore-base';
import { KeyCache, DataProviderRefreshEvent } from 'ojs/ojdataprovider';
import { EventTargetMixin } from 'ojs/ojeventtarget';
import ojMap from 'ojs/ojmap';
import ojSet from 'ojs/ojset';
import { BufferingDataProviderSubmittableChangeEvent } from 'ojs/ojbufferingdataproviderevents';
import { BufferingDataProviderUtils, EditBuffer } from 'ojs/ojbufferingutils';
import oj from './ojcore-base.js';
import { KeyCache, DataProviderRefreshEvent } from './ojdataprovider.js';
import { EventTargetMixin } from './ojeventtarget.js';
import ojMap from './ojmap.js';
import ojSet from './ojset.js';
import { BufferingDataProviderSubmittableChangeEvent } from './ojbufferingdataproviderevents.js';
import { BufferingDataProviderUtils, EditBuffer } from './ojbufferingutils.js';

/**
* @preserve Copyright 2013 jQuery Foundation and other contributors
Expand Down
Loading