ferngully-aurelia-tools
Version:
Ferngully Tools for Aurelia
303 lines • 17.8 kB
JavaScript
System.register(["bootstrap", "font-awesome/css/font-awesome.css", "bootstrap-datepicker/dist/css/bootstrap-datepicker3.css", "awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css", "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"], function (exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
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_1("configure", configure);
var aurelia_i18n_1, aurelia_pal_1, I18NConfigDefaults, FerngullyAureliaToolsConfiguration;
var exportedNames_1 = {
"I18NConfigDefaults": true,
"FerngullyAureliaToolsConfiguration": true,
"configure": true
};
function exportStar_1(m) {
var exports = {};
for (var n in m) {
if (n !== "default" && !exportedNames_1.hasOwnProperty(n)) exports[n] = m[n];
}
exports_1(exports);
}
return {
setters: [
function (_1) {
},
function (_2) {
},
function (_3) {
},
function (_4) {
},
function (aurelia_i18n_1_1) {
aurelia_i18n_1 = aurelia_i18n_1_1;
},
function (tickdate_format_1_1) {
exportStar_1(tickdate_format_1_1);
},
function (date_format_1_1) {
exportStar_1(date_format_1_1);
},
function (date_string_format_1_1) {
exportStar_1(date_string_format_1_1);
},
function (date_string_convert_1_1) {
exportStar_1(date_string_convert_1_1);
},
function (currency_format_1_1) {
exportStar_1(currency_format_1_1);
},
function (sort_1_1) {
exportStar_1(sort_1_1);
},
function (take_1_1) {
exportStar_1(take_1_1);
},
function (number_1_1) {
exportStar_1(number_1_1);
},
function (round_1_1) {
exportStar_1(round_1_1);
},
function (ensure_not_empty_1_1) {
exportStar_1(ensure_not_empty_1_1);
},
function (ensure_not_nan_1_1) {
exportStar_1(ensure_not_nan_1_1);
},
function (null_if_empty_1_1) {
exportStar_1(null_if_empty_1_1);
},
function (array_join_1_1) {
exportStar_1(array_join_1_1);
},
function (cr_br_1_1) {
exportStar_1(cr_br_1_1);
},
function (tooltip_1_1) {
exportStar_1(tooltip_1_1);
},
function (blur_on_enter_1_1) {
exportStar_1(blur_on_enter_1_1);
},
function (blur_on_escape_1_1) {
exportStar_1(blur_on_escape_1_1);
},
function (invoke_on_enter_1_1) {
exportStar_1(invoke_on_enter_1_1);
},
function (popover_1_1) {
exportStar_1(popover_1_1);
},
function (editable_inline_1_1) {
exportStar_1(editable_inline_1_1);
},
function (editable_inline_input_1_1) {
exportStar_1(editable_inline_input_1_1);
},
function (editable_inline_textarea_1_1) {
exportStar_1(editable_inline_textarea_1_1);
},
function (editable_inline_calendar_1_1) {
exportStar_1(editable_inline_calendar_1_1);
},
function (editable_inline_select_1_1) {
exportStar_1(editable_inline_select_1_1);
},
function (editable_inline_dropdown_checkbox_1_1) {
exportStar_1(editable_inline_dropdown_checkbox_1_1);
},
function (datepicker_1_1) {
exportStar_1(datepicker_1_1);
},
function (dropdown_checkbox_1_1) {
exportStar_1(dropdown_checkbox_1_1);
},
function (number_input_1_1) {
exportStar_1(number_input_1_1);
},
function (sort_column_buttons_1_1) {
exportStar_1(sort_column_buttons_1_1);
},
function (sort_column_header_1_1) {
exportStar_1(sort_column_header_1_1);
},
function (boolean_input_1_1) {
exportStar_1(boolean_input_1_1);
},
function (boolean_button_1_1) {
exportStar_1(boolean_button_1_1);
},
function (form_schema_collection_1_1) {
exportStar_1(form_schema_collection_1_1);
},
function (form_schema_panel_1_1) {
exportStar_1(form_schema_panel_1_1);
},
function (save_cancel_row_1_1) {
exportStar_1(save_cancel_row_1_1);
},
function (persistent_1_1) {
exportStar_1(persistent_1_1);
},
function (updateTriggerOnKeyPress_1_1) {
exportStar_1(updateTriggerOnKeyPress_1_1);
},
function (ajax_1_1) {
exportStar_1(ajax_1_1);
},
function (aurelia_helper_service_1_1) {
exportStar_1(aurelia_helper_service_1_1);
},
function (javascript_service_1_1) {
exportStar_1(javascript_service_1_1);
},
function (browser_service_1_1) {
exportStar_1(browser_service_1_1);
},
function (configuration_service_1_1) {
exportStar_1(configuration_service_1_1);
},
function (date_service_1_1) {
exportStar_1(date_service_1_1);
},
function (dialog_service_1_1) {
exportStar_1(dialog_service_1_1);
},
function (disposable_collection_1_1) {
exportStar_1(disposable_collection_1_1);
},
function (dom_service_1_1) {
exportStar_1(dom_service_1_1);
},
function (environment_service_1_1) {
exportStar_1(environment_service_1_1);
},
function (handle_errors_service_1_1) {
exportStar_1(handle_errors_service_1_1);
},
function (logging_service_1_1) {
exportStar_1(logging_service_1_1);
},
function (number_service_1_1) {
exportStar_1(number_service_1_1);
},
function (option_service_1_1) {
exportStar_1(option_service_1_1);
},
function (sort_column_service_1_1) {
exportStar_1(sort_column_service_1_1);
},
function (bootstrap_form_renderer_1_1) {
exportStar_1(bootstrap_form_renderer_1_1);
},
function (validation_event_aggregator_1_1) {
exportStar_1(validation_event_aggregator_1_1);
},
function (validation_service_1_1) {
exportStar_1(validation_service_1_1);
},
function (form_schema_collection_controller_1_1) {
exportStar_1(form_schema_collection_controller_1_1);
},
function (form_schema_collection_controller_factory_1_1) {
exportStar_1(form_schema_collection_controller_factory_1_1);
},
function (form_schema_rules_provider_1_1) {
exportStar_1(form_schema_rules_provider_1_1);
},
function (form_schema_service_1_1) {
exportStar_1(form_schema_service_1_1);
},
function (form_schema_crud_service_1_1) {
exportStar_1(form_schema_crud_service_1_1);
},
function (notification_service_1_1) {
exportStar_1(notification_service_1_1);
},
function (aurelia_pal_1_1) {
aurelia_pal_1 = aurelia_pal_1_1;
}
],
execute: function () {
exports_1("I18NConfigDefaults", 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
}
});
FerngullyAureliaToolsConfiguration = (function () {
function FerngullyAureliaToolsConfiguration() {
}
FerngullyAureliaToolsConfiguration.ConfigureI18Next = function (frameworkConfig, instance, callback) {
var i18nConfig = 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_1("FerngullyAureliaToolsConfiguration", FerngullyAureliaToolsConfiguration);
}
};
});
//# sourceMappingURL=ferngully-aurelia-tools.js.map