ferngully-aurelia-tools
Version:
Ferngully Tools for Aurelia
151 lines • 13 kB
JavaScript
define(["require", "exports", "aurelia-i18n", "./resources/valueConverters/tickdate-format", "./resources/valueConverters/date-format", "./resources/valueConverters/date-string-format", "./resources/valueConverters/date-string-convert", "./resources/valueConverters/currency-format", "./resources/valueConverters/sort", "./resources/valueConverters/take", "./resources/valueConverters/number", "./resources/valueConverters/round", "./resources/valueConverters/ensure-not-empty", "./resources/valueConverters/ensure-not-nan", "./resources/valueConverters/null-if-empty", "./resources/valueConverters/array-join", "./resources/valueConverters/cr-br", "./resources/customAttributes/tooltip/tooltip", "./resources/customAttributes/blur-on-enter/blur-on-enter", "./resources/customAttributes/blur-on-escape/blur-on-escape", "./resources/customAttributes/invoke-on-enter/invoke-on-enter", "./resources/customAttributes/popover/popover", "./resources/customAttributes/editable-inline/editable-inline", "./resources/customElements/editable-inline-input/editable-inline-input", "./resources/customElements/editable-inline-textarea/editable-inline-textarea", "./resources/customElements/editable-inline-calendar/editable-inline-calendar", "./resources/customElements/editable-inline-select/editable-inline-select", "./resources/customElements/editable-inline-dropdown-checkbox/editable-inline-dropdown-checkbox", "./resources/customElements/bootstrap-datepicker/datepicker", "./resources/customElements/dropdown-checkbox/dropdown-checkbox", "./resources/customElements/bootstrap-number-input/number-input", "./resources/customElements/sort-column-buttons/sort-column-buttons", "./resources/customElements/sort-column-header/sort-column-header", "./resources/customElements/boolean-input/boolean-input", "./resources/customElements/boolean-button/boolean-button", "./resources/customElements/form-schema-collection/form-schema-collection", "./resources/customElements/form-schema-panel/form-schema-panel", "./resources/customElements/save-cancel-row/save-cancel-row", "./resources/customBindings/persistent", "./resources/customBindings/updateTriggerOnKeyPress", "./services/ajax", "./services/aurelia-helper-service", "./services/javascript-service", "./services/browser-service", "./services/configuration-service", "./services/date-service", "./services/dialog-service", "./services/disposable-collection", "./services/dom-service", "./services/environment-service", "./services/handle-errors-service", "./services/logging-service", "./services/number-service", "./services/option-service", "./services/sort-column-service", "./services/validation/bootstrap-form-renderer", "./services/validation/validation-event-aggregator", "./services/validation/validation-service", "./services/formSchema/form-schema-collection-controller", "./services/formSchema/form-schema-collection-controller-factory", "./services/formSchema/form-schema-rules-provider", "./services/formSchema/form-schema-service", "./services/formSchema/form-schema-crud-service", "./services/notification-service/notification-service", "aurelia-pal", "bootstrap", "font-awesome/css/font-awesome.css", "bootstrap-datepicker/dist/css/bootstrap-datepicker3.css", "awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css"], function (require, exports, aurelia_i18n_1, tickdate_format_1, date_format_1, date_string_format_1, date_string_convert_1, currency_format_1, sort_1, take_1, number_1, round_1, ensure_not_empty_1, ensure_not_nan_1, null_if_empty_1, array_join_1, cr_br_1, tooltip_1, blur_on_enter_1, blur_on_escape_1, invoke_on_enter_1, popover_1, editable_inline_1, editable_inline_input_1, editable_inline_textarea_1, editable_inline_calendar_1, editable_inline_select_1, editable_inline_dropdown_checkbox_1, datepicker_1, dropdown_checkbox_1, number_input_1, sort_column_buttons_1, sort_column_header_1, boolean_input_1, boolean_button_1, form_schema_collection_1, form_schema_panel_1, save_cancel_row_1, persistent_1, updateTriggerOnKeyPress_1, ajax_1, aurelia_helper_service_1, javascript_service_1, browser_service_1, configuration_service_1, date_service_1, dialog_service_1, disposable_collection_1, dom_service_1, environment_service_1, handle_errors_service_1, logging_service_1, number_service_1, option_service_1, sort_column_service_1, bootstrap_form_renderer_1, validation_event_aggregator_1, validation_service_1, form_schema_collection_controller_1, form_schema_collection_controller_factory_1, form_schema_rules_provider_1, form_schema_service_1, form_schema_crud_service_1, notification_service_1, aurelia_pal_1) {
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(tickdate_format_1);
__export(date_format_1);
__export(date_string_format_1);
__export(date_string_convert_1);
__export(currency_format_1);
__export(sort_1);
__export(take_1);
__export(number_1);
__export(round_1);
__export(ensure_not_empty_1);
__export(ensure_not_nan_1);
__export(null_if_empty_1);
__export(array_join_1);
__export(cr_br_1);
__export(tooltip_1);
__export(blur_on_enter_1);
__export(blur_on_escape_1);
__export(invoke_on_enter_1);
__export(popover_1);
__export(editable_inline_1);
__export(editable_inline_input_1);
__export(editable_inline_textarea_1);
__export(editable_inline_calendar_1);
__export(editable_inline_select_1);
__export(editable_inline_dropdown_checkbox_1);
__export(datepicker_1);
__export(dropdown_checkbox_1);
__export(number_input_1);
__export(sort_column_buttons_1);
__export(sort_column_header_1);
__export(boolean_input_1);
__export(boolean_button_1);
__export(form_schema_collection_1);
__export(form_schema_panel_1);
__export(save_cancel_row_1);
__export(persistent_1);
__export(updateTriggerOnKeyPress_1);
__export(ajax_1);
__export(aurelia_helper_service_1);
__export(javascript_service_1);
__export(browser_service_1);
__export(configuration_service_1);
__export(date_service_1);
__export(dialog_service_1);
__export(disposable_collection_1);
__export(dom_service_1);
__export(environment_service_1);
__export(handle_errors_service_1);
__export(logging_service_1);
__export(number_service_1);
__export(option_service_1);
__export(sort_column_service_1);
__export(bootstrap_form_renderer_1);
__export(validation_event_aggregator_1);
__export(validation_service_1);
__export(form_schema_collection_controller_1);
__export(form_schema_collection_controller_factory_1);
__export(form_schema_rules_provider_1);
__export(form_schema_service_1);
__export(form_schema_crud_service_1);
__export(notification_service_1);
exports.I18NConfigDefaults = {
aliases: ['t', 'i18n'],
i18nOptions: {
backend: {
loadPath: 'ferngully-aurelia-tools/locales/{{lng}}/{{ns}}.json',
},
whitelist: ['en-CA', 'fr-CA', 'en', 'fr'],
lng: "en-CA",
fallbackLng: 'en-CA',
debug: false
}
};
var FerngullyAureliaToolsConfiguration = (function () {
function FerngullyAureliaToolsConfiguration() {
}
FerngullyAureliaToolsConfiguration.ConfigureI18Next = function (frameworkConfig, instance, callback) {
var i18nConfig = exports.I18NConfigDefaults;
if (callback instanceof Function) {
callback(i18nConfig);
}
var aliases = i18nConfig.aliases;
var options = i18nConfig.i18nOptions;
if (aliases && aliases.length) {
aurelia_i18n_1.TCustomAttribute.configureAliases(aliases);
options["attributes"] = aliases;
}
instance.i18next.use(aurelia_i18n_1.Backend.with(frameworkConfig.aurelia.loader));
return instance.setup(options).then(function () { return frameworkConfig; });
};
return FerngullyAureliaToolsConfiguration;
}());
exports.FerngullyAureliaToolsConfiguration = FerngullyAureliaToolsConfiguration;
function configure(frameworkConfig, callback) {
var thisConfiguration = new FerngullyAureliaToolsConfiguration();
if (callback instanceof Function) {
callback(thisConfiguration);
}
aurelia_pal_1.PLATFORM.moduleName("./locales/en-CA/translation.json");
aurelia_pal_1.PLATFORM.moduleName("./locales/fr-CA/translation.json");
if (frameworkConfig.globalResources) {
frameworkConfig.globalResources([
aurelia_pal_1.PLATFORM.moduleName("./resources/valueConverters/tickdate-format"),
aurelia_pal_1.PLATFORM.moduleName("./resources/valueConverters/date-format"),
aurelia_pal_1.PLATFORM.moduleName("./resources/valueConverters/date-string-format"),
aurelia_pal_1.PLATFORM.moduleName("./resources/valueConverters/date-string-convert"),
aurelia_pal_1.PLATFORM.moduleName("./resources/valueConverters/currency-format"),
aurelia_pal_1.PLATFORM.moduleName("./resources/valueConverters/sort"),
aurelia_pal_1.PLATFORM.moduleName("./resources/valueConverters/take"),
aurelia_pal_1.PLATFORM.moduleName("./resources/valueConverters/number"),
aurelia_pal_1.PLATFORM.moduleName("./resources/valueConverters/round"),
aurelia_pal_1.PLATFORM.moduleName("./resources/valueConverters/ensure-not-empty"),
aurelia_pal_1.PLATFORM.moduleName("./resources/valueConverters/ensure-not-nan"),
aurelia_pal_1.PLATFORM.moduleName("./resources/valueConverters/null-if-empty"),
aurelia_pal_1.PLATFORM.moduleName("./resources/valueConverters/array-join"),
aurelia_pal_1.PLATFORM.moduleName("./resources/valueConverters/cr-br"),
aurelia_pal_1.PLATFORM.moduleName("./resources/customAttributes/tooltip/tooltip"),
aurelia_pal_1.PLATFORM.moduleName("./resources/customAttributes/popover/popover"),
aurelia_pal_1.PLATFORM.moduleName("./resources/customAttributes/blur-on-enter/blur-on-enter"),
aurelia_pal_1.PLATFORM.moduleName("./resources/customAttributes/blur-on-escape/blur-on-escape"),
aurelia_pal_1.PLATFORM.moduleName("./resources/customAttributes/invoke-on-enter/invoke-on-enter"),
aurelia_pal_1.PLATFORM.moduleName("./resources/customAttributes/editable-inline/editable-inline"),
aurelia_pal_1.PLATFORM.moduleName("./resources/customElements/editable-inline-calendar/editable-inline-calendar"),
aurelia_pal_1.PLATFORM.moduleName("./resources/customElements/editable-inline-input/editable-inline-input"),
aurelia_pal_1.PLATFORM.moduleName("./resources/customElements/editable-inline-textarea/editable-inline-textarea"),
aurelia_pal_1.PLATFORM.moduleName("./resources/customElements/editable-inline-select/editable-inline-select"),
aurelia_pal_1.PLATFORM.moduleName("./resources/customElements/editable-inline-dropdown-checkbox/editable-inline-dropdown-checkbox"),
aurelia_pal_1.PLATFORM.moduleName("./resources/customElements/bootstrap-datepicker/datepicker"),
aurelia_pal_1.PLATFORM.moduleName("./resources/customElements/dropdown-checkbox/dropdown-checkbox"),
aurelia_pal_1.PLATFORM.moduleName("./resources/customElements/bootstrap-number-input/number-input"),
aurelia_pal_1.PLATFORM.moduleName("./resources/customElements/sort-column-buttons/sort-column-buttons"),
aurelia_pal_1.PLATFORM.moduleName("./resources/customElements/sort-column-header/sort-column-header"),
aurelia_pal_1.PLATFORM.moduleName("./resources/customElements/boolean-input/boolean-input"),
aurelia_pal_1.PLATFORM.moduleName("./resources/customElements/boolean-button/boolean-button"),
aurelia_pal_1.PLATFORM.moduleName("./resources/customElements/form-schema-collection/form-schema-collection"),
aurelia_pal_1.PLATFORM.moduleName("./resources/customElements/form-schema-panel/form-schema-panel"),
aurelia_pal_1.PLATFORM.moduleName("./resources/customElements/save-cancel-row/save-cancel-row"),
aurelia_pal_1.PLATFORM.moduleName("./resources/customBindings/persistent"),
aurelia_pal_1.PLATFORM.moduleName("./resources/customBindings/updateTriggerOnKeyPress")
]);
}
}
exports.configure = configure;
});
//# sourceMappingURL=ferngully-aurelia-tools.js.map