@ccrpc/webmapgl 0.18.3 → 0.18.5

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.
@@ -1 +1 @@
1
- {"file":"gl-facet.gl-field.gl-form-page.gl-option.ion-nav.entry.js","mappings":";;;;;;;;;;MAaa,KAAK;;;;IA2CR,iBAAY,GAAG,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;kBAhCV,IAAI;;;;kBAuBM,MAAM;;EAE3C,QAAQ;IACd,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;MACpB,KAAK,EAAE,IAAI,CAAC,KAAK;MACjB,KAAK,EAAE,IAAI,CAAC,KAAK;KAClB,CAAC,CAAC;GACJ;EAID,MAAM;IACJ,IAAI,IAAI,CAAC,MAAM,KAAK,QAAQ;MAC1B,OAAO,2BAAkB,IAAI,CAAC,KAAK,CAAmB,CAAC;IAEzD,QACE,gBAAU,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,IACpE,YAAY,CAAC,IAAI,CAAC,EACnB,sCAAsB,IAAI,CAAC,KAAK,CAAa,CACpC,EACX;GACH;;;;MC7CU,KAAK;;;;IAqGR,aAAQ,GAAG,CAAC,CAA4C,KAC9D,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAwBvB,YAAO,GAAG,CAAC,CAAyC,KAC1D,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;;;;;oBA9FM,KAAK;;;;EAkB1C,aAAa,CAAC,CAAC;IACb,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;GACxB;EAEO,SAAS;IACf,MAAM,IAAI,GAAG,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACxC,IAAI,IAAI,CAAC,OAAO,IAAI,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E,IAAI,EAAE,CAAC,CAAC;;MAE9B,IAAI,YAAY,GAAG,cAAc,GAAG,CAAC,KAAK,GAAG,KAAK,CAAC;;;;;;;;;MASnD,IAAI,CAAC,cAAc,EAAE;QACnB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,gCAAgC,CAAC,CAAC;QACpD,YAAY,IAAI,uBAAuB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;OAC7F;WACI;QACH,YAAY,IAAI,uBAAuB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;OAC7F;MACD,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,cAAc,GAAG,CAAC,GAAG,CAAC,EAAE,YAAY,EAAE,GAAG,CAAC,CAAC;KACnE;GACF;EACD,MAAM;IACJ,OAAO,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;GACxB;;;;;;;;;;;","names":[],"sources":["src/components/facet/facet.tsx","src/components/field/field.tsx","src/components/form-page/form-page.css?tag=gl-form-page","src/components/form-page/form-page.tsx","src/components/option/option.tsx","node_modules/@ionic/core/dist/collection/components/nav/view-controller.js","node_modules/@ionic/core/dist/collection/components/nav/nav.css?tag=ion-nav&encapsulation=shadow","node_modules/@ionic/core/dist/collection/components/nav/nav.js"],"sourcesContent":["import {\n h,\n Component,\n Element,\n Event,\n EventEmitter,\n Prop,\n} from \"@stencil/core\";\nimport { getThumbnail } from \"../utils\";\n\n@Component({\n tag: \"gl-facet\",\n})\nexport class Facet {\n @Element() el: HTMLGlFacetElement;\n\n /**\n * Emitted when the facet is selected by the user.\n */\n @Event() glFormFacet: EventEmitter;\n\n /**\n * Show the detail arrow in the item.\n */\n @Prop() readonly detail: boolean = true;\n\n /**\n * Image URL for the item.\n */\n @Prop() readonly image: string;\n\n /**\n * Text for the item.\n */\n @Prop() readonly label: string;\n\n /**\n * The value of the facet used to refer to it in fields and other\n * facets. When the facet is selected, the value is emitted as\n * part of the `glFormFacet` event.\n */\n @Prop() readonly value: string;\n\n /**\n * Widget to use for displaying the facet. A value of `header` renders\n * an `ion-list-header` instead of an `ion-item`.\n */\n @Prop() readonly widget: \"header\" | \"item\" = \"item\";\n\n private setFacet() {\n this.glFormFacet.emit({\n label: this.label,\n value: this.value,\n });\n }\n\n private callSetFacet = () => this.setFacet();\n\n render() {\n if (this.widget === \"header\")\n return <ion-list-header>{this.label}</ion-list-header>;\n\n return (\n <ion-item button={true} onClick={this.callSetFacet} detail={this.detail}>\n {getThumbnail(this)}\n <ion-label text-wrap>{this.label}</ion-label>\n </ion-item>\n );\n }\n}\n","import {\n h,\n Component,\n Element,\n Event,\n EventEmitter,\n Listen,\n Method,\n Prop,\n State,\n Host,\n} from \"@stencil/core\";\nimport { _t } from \"../i18n/i18n\";\nimport {\n InputCustomEvent,\n SelectCustomEvent,\n TextareaCustomEvent,\n RadioGroupCustomEvent,\n} from \"@ionic/core\";\n\n@Component({\n tag: \"gl-field\",\n})\nexport class Field {\n @Element() el: HTMLGlFieldElement;\n\n /**\n * Emitted when the field value is changed by the user.\n */\n @Event() glFieldValueChanged: EventEmitter;\n\n @State() message: string;\n\n /**\n * The feature property that corresponds to the form field.\n */\n @Prop() readonly attribute: string;\n\n /**\n * Image URL for the field item.\n */\n @Prop() readonly image: string;\n\n /**\n * Label text for the field item.\n */\n @Prop() readonly label: string;\n\n /**\n * A placeholder prompt text to display to the user, valid only for textarea and input fields.\n */\n @Prop() readonly placeholder: string;\n\n /**\n * The field must be filled out before the form can be submitted.\n */\n @Prop() readonly required: boolean = false;\n\n /**\n * Field type. It is not currently used.\n */\n @Prop() readonly type: any;\n\n /**\n * Widget used to render the field.\n */\n @Prop() readonly widget:\n | \"input\"\n | \"radio\"\n | \"select\"\n | \"textarea\"\n | \"instructions\";\n\n @Listen(\"glOptionChanged\")\n optionChanged(e) {\n this.changed(e.detail);\n }\n\n private _getValue() {\n const form = this.el.closest(\"gl-form\");\n if (form.feature == undefined || form.feature.properties == undefined)\n return;\n return form.feature.properties[this.attribute];\n }\n\n /**\n * Returns whether this field is valid\n * @returns\n */\n @Method()\n async isValid() {\n return this.validate() == null;\n }\n\n /**\n * Returns the value of the attribute of the feature this form is editing\n * @returns value of the attribute of the feature\n */\n @Method()\n async getValue() {\n return this._getValue();\n }\n\n /**\n * Checks whether the value is required and also present\n * If it is not returns an error text, if it is valid returns null\n * @returns\n */\n @Method()\n async validate() {\n const value = await this.getValue();\n if (this.required && (value == undefined || value === \"\"))\n return _t(\"webmapgl.field.required\", { field: this.label });\n\n return null;\n }\n\n private changed(value: any) {\n this.glFieldValueChanged.emit({\n field: this,\n value: value,\n });\n }\n\n private onChange = (e: SelectCustomEvent | RadioGroupCustomEvent) =>\n this.changed(e.detail.value);\n\n private getRadioField() {\n return (\n <Host>\n <ion-list-header>{this.label}</ion-list-header>\n <ion-radio-group onIonChange={this.onChange}>\n <slot />\n </ion-radio-group>\n </Host>\n );\n }\n\n private getSelectField() {\n return (\n <ion-item>\n <ion-label>{this.label}</ion-label>,\n <ion-select onIonChange={this.onChange} value={this.getValue()}>\n <slot />\n </ion-select>\n </ion-item>\n );\n }\n\n private onInput = (e: TextareaCustomEvent | InputCustomEvent) =>\n this.changed(e.detail.value);\n\n private getTextareaField() {\n return (\n <ion-item>\n <ion-label text-wrap position=\"floating\">\n {this.label}\n </ion-label>\n <ion-textarea\n onIonInput={this.onInput}\n placeholder={this.placeholder}\n value={this._getValue() || \"\"}\n legacy={true} // We are opting for the legacy version of labels for textarea as there is no other way to text-wrap the label\n ></ion-textarea>\n </ion-item>\n );\n }\n\n private getInstructionsField() {\n return (\n <ion-item>\n <ion-textarea readonly={true} value={this.label}></ion-textarea>\n </ion-item>\n );\n }\n\n private getInputField() {\n return (\n <ion-item>\n <ion-label text-wrap position=\"floating\">\n {this.label}\n </ion-label>\n <ion-input\n onIonInput={this.onInput}\n type=\"text\"\n placeholder={this.placeholder}\n value={this._getValue()}\n ></ion-input>\n </ion-item>\n );\n }\n\n render() {\n if (this.widget === \"radio\") {\n return this.getRadioField();\n } else if (this.widget === \"select\") {\n return this.getSelectField();\n } else if (this.widget == \"textarea\") {\n return this.getTextareaField();\n } else if (this.widget == \"instructions\") {\n return this.getInstructionsField();\n } else {\n return this.getInputField();\n }\n }\n}\n","gl-form-page ion-list,\ngl-form-page ion-list.list-md,\ngl-form-page ion-list.list-ios {\n /* Fix extra height in modal scroll area */\n margin-bottom: 0;\n padding-bottom: 16px;\n}\n","import {\n h,\n Component,\n Element,\n Listen,\n Prop,\n State,\n Host,\n} from \"@stencil/core\";\nimport { _t } from \"../i18n/i18n\";\n\n@Component({\n styleUrl: \"form-page.css\",\n tag: \"gl-form-page\",\n})\nexport class FormPage {\n @Element() el: HTMLGlFormPageElement;\n\n @State() canSubmit = false;\n\n /**\n * Text for the back button.\n */\n @Prop() readonly backText: string = _t(\"webmapgl.form-page.back\");\n\n /**\n * Facets for the page.\n */\n @Prop() readonly facets: any[];\n\n /**\n * Fields for the page.\n */\n @Prop() readonly fields: any[];\n\n /**\n * Currently-selected facet. It is used the set the CSS class of the page.\n */\n @Prop() readonly formFacet: string;\n\n /**\n * Label text displayed in the form toolbar.\n */\n @Prop() readonly label: string;\n\n /**\n * This is the root page in the form. If it is `true`, the back button\n * is not displayed.\n */\n @Prop() readonly root: boolean = false;\n\n /**\n * Text for the submit button.\n */\n @Prop() readonly submitText: string = _t(\"webmapgl.form-page.submit\");\n\n /**\n * Text for the cancel button.\n */\n @Prop() readonly cancelText: string = _t(\"webmapgl.form-page.cancel\");\n\n componentDidLoad() {\n this.updateValidationStatus();\n }\n\n @Listen(\"glFormFeatureChanged\", { target: \"body\" })\n async updateValidationStatus() {\n if (this.el.querySelectorAll(\"gl-field\").length === 0) {\n this.canSubmit = false;\n } else {\n this.canSubmit = (await this.validate()).length === 0;\n }\n }\n\n private async validate() {\n let messages = await Promise.all(\n Array.from(this.el.querySelectorAll(\"gl-field\")).map(\n async (field) => await field.validate(),\n ),\n );\n\n return messages.filter((message) => message != null);\n }\n\n private cancel() {\n const form = this.el.closest(\"gl-form\");\n form.cancel();\n }\n\n private submit() {\n const form = this.el.closest(\"gl-form\");\n form.submit();\n }\n\n private renderFacets() {\n return this.facets.map((facet) => (\n <gl-facet\n label={facet.label}\n value={facet.value}\n image={facet.image}\n widget={facet.widget}\n ></gl-facet>\n ));\n }\n\n private renderFields() {\n return this.fields.map((field) => (\n <gl-field\n attribute={field.attribute}\n label={field.label}\n image={field.image}\n required={field.required}\n type={field.type}\n widget={field.widget}\n placeholder={field.placeholder}\n >\n {this.renderOptions(field.options)}\n </gl-field>\n ));\n }\n\n private renderOptions(options: any[]) {\n if (options == undefined) return;\n return options.map((option) => (\n <gl-option\n image={option.image}\n label={option.label}\n value={option.value}\n ></gl-option>\n ));\n }\n\n private clickSubmit = () => {\n if (this.canSubmit) this.submit();\n };\n\n private clickCancel = () => this.cancel();\n\n render() {\n let small = screen.width <= 640;\n return (\n <Host class={`gl-form-page-facet-${this.formFacet || \"none\"}`}>\n <ion-header>\n <ion-toolbar color=\"primary\">\n {!this.root ? (\n <ion-buttons slot=\"start\">\n <ion-nav-pop>\n <ion-button>\n <ion-icon\n slot={small ? \"icon-only\" : \"start\"}\n name=\"arrow-back\"\n ></ion-icon>\n {small ? null : this.backText}\n </ion-button>\n </ion-nav-pop>\n </ion-buttons>\n ) : null}\n <ion-title>{this.label}</ion-title>\n <ion-buttons slot=\"end\">\n <ion-button onClick={this.clickCancel}>\n <ion-icon\n slot={small ? \"icon-only\" : \"start\"}\n name=\"close\"\n ></ion-icon>\n {small ? null : this.cancelText}\n </ion-button>\n <ion-button onClick={this.clickSubmit} disabled={!this.canSubmit}>\n <ion-icon\n slot={small ? \"icon-only\" : \"start\"}\n name=\"checkmark\"\n ></ion-icon>\n {small ? null : this.submitText}\n </ion-button>\n </ion-buttons>\n </ion-toolbar>\n </ion-header>\n <ion-content>\n <ion-list>\n {this.renderFacets()}\n {this.renderFields()}\n </ion-list>\n </ion-content>\n </Host>\n );\n }\n}\n","import {\n h,\n Component,\n Element,\n Event,\n EventEmitter,\n Prop,\n} from \"@stencil/core\";\nimport { getThumbnail } from \"../utils\";\n\n@Component({\n tag: \"gl-option\",\n})\nexport class Option {\n @Element() el: HTMLGlOptionElement;\n\n /**\n * Emitted when the option is selected or deselected.\n */\n @Event() glOptionChanged: EventEmitter;\n\n /**\n * Thumbnail image URL.\n */\n @Prop() readonly image: string;\n\n /**\n * Option label. It is displayed to the user.\n */\n @Prop() readonly label: string;\n\n /**\n * Option value. If this option is selected, it is used to set the value\n * of the property corresponding to the parent field.\n */\n @Prop() readonly value: any;\n\n private select() {\n this.glOptionChanged.emit(this.value);\n }\n\n private callSelect = () => this.select();\n\n private getRadio() {\n const field = this.el.closest(\"gl-field\");\n const checked = field.getValue() === this.value;\n return (\n <ion-item>\n {getThumbnail(this)}\n <ion-radio\n onIonSelect={this.callSelect}\n value={this.value}\n checked={checked}\n >\n <ion-label text-wrap>{this.label}</ion-label>\n </ion-radio>\n </ion-item>\n );\n }\n\n private getSelectOption() {\n return (\n <ion-select-option value={this.value}>{this.label}</ion-select-option>\n );\n }\n\n render() {\n let field = this.el.closest(\"gl-field\");\n return field.widget === \"radio\" ? this.getRadio() : this.getSelectOption();\n }\n}\n","/*!\n * (C) Ionic http://ionicframework.com - MIT License\n */\nimport { attachComponent } from \"../../utils/framework-delegate\";\nimport { assert, shallowEqualStringMap } from \"../../utils/helpers\";\nexport const VIEW_STATE_NEW = 1;\nexport const VIEW_STATE_ATTACHED = 2;\nexport const VIEW_STATE_DESTROYED = 3;\n// TODO(FW-2832): types\nexport class ViewController {\n constructor(component, params) {\n this.component = component;\n this.params = params;\n this.state = VIEW_STATE_NEW;\n }\n async init(container) {\n this.state = VIEW_STATE_ATTACHED;\n if (!this.element) {\n const component = this.component;\n this.element = await attachComponent(this.delegate, container, component, ['ion-page', 'ion-page-invisible'], this.params);\n }\n }\n /**\n * DOM WRITE\n */\n _destroy() {\n assert(this.state !== VIEW_STATE_DESTROYED, 'view state must be ATTACHED');\n const element = this.element;\n if (element) {\n if (this.delegate) {\n this.delegate.removeViewFromDom(element.parentElement, element);\n }\n else {\n element.remove();\n }\n }\n this.nav = undefined;\n this.state = VIEW_STATE_DESTROYED;\n }\n}\nexport const matches = (view, id, params) => {\n if (!view) {\n return false;\n }\n if (view.component !== id) {\n return false;\n }\n return shallowEqualStringMap(view.params, params);\n};\nexport const convertToView = (page, params) => {\n if (!page) {\n return null;\n }\n if (page instanceof ViewController) {\n return page;\n }\n return new ViewController(page, params);\n};\nexport const convertToViews = (pages) => {\n return pages\n .map((page) => {\n if (page instanceof ViewController) {\n return page;\n }\n if ('component' in page) {\n return convertToView(page.component, page.componentProps === null ? undefined : page.componentProps);\n }\n return convertToView(page, undefined);\n })\n .filter((v) => v !== null);\n};\n",":host {\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n position: absolute;\n contain: layout size style;\n overflow: hidden;\n z-index: 0;\n}","/*!\n * (C) Ionic http://ionicframework.com - MIT License\n */\nimport { Build, h } from '@stencil/core';\nimport { getTimeGivenProgression } from \"../../utils/animation/cubic-bezier\";\nimport { assert } from \"../../utils/helpers\";\nimport { printIonWarning } from \"../../utils/logging/index\";\nimport { lifecycle, setPageHidden, transition } from \"../../utils/transition/index\";\nimport { config } from '../../global/config';\nimport { getIonMode } from '../../global/ionic-global';\nimport { LIFECYCLE_DID_LEAVE, LIFECYCLE_WILL_LEAVE, LIFECYCLE_WILL_UNLOAD } from './constants';\nimport { VIEW_STATE_ATTACHED, VIEW_STATE_DESTROYED, VIEW_STATE_NEW, convertToViews, matches } from './view-controller';\nexport class Nav {\n constructor() {\n this.transInstr = [];\n this.animationEnabled = true;\n this.useRouter = false;\n this.isTransitioning = false;\n this.destroyed = false;\n this.views = [];\n this.didLoad = false;\n this.delegate = undefined;\n this.swipeGesture = undefined;\n this.animated = true;\n this.animation = undefined;\n this.rootParams = undefined;\n this.root = undefined;\n }\n swipeGestureChanged() {\n if (this.gesture) {\n this.gesture.enable(this.swipeGesture === true);\n }\n }\n rootChanged() {\n const isDev = Build.isDev;\n if (this.root === undefined) {\n return;\n }\n if (this.didLoad === false) {\n /**\n * If the component has not loaded yet, we can skip setting up the root component.\n * It will be called when `componentDidLoad` fires.\n */\n return;\n }\n if (!this.useRouter) {\n if (this.root !== undefined) {\n this.setRoot(this.root, this.rootParams);\n }\n }\n else if (isDev) {\n printIonWarning('<ion-nav> does not support a root attribute when using ion-router.', this.el);\n }\n }\n componentWillLoad() {\n this.useRouter = document.querySelector('ion-router') !== null && this.el.closest('[no-router]') === null;\n if (this.swipeGesture === undefined) {\n const mode = getIonMode(this);\n this.swipeGesture = config.getBoolean('swipeBackEnabled', mode === 'ios');\n }\n this.ionNavWillLoad.emit();\n }\n async componentDidLoad() {\n // We want to set this flag before any watch callbacks are manually called\n this.didLoad = true;\n this.rootChanged();\n this.gesture = (await import('../../utils/gesture/swipe-back')).createSwipeBackGesture(this.el, this.canStart.bind(this), this.onStart.bind(this), this.onMove.bind(this), this.onEnd.bind(this));\n this.swipeGestureChanged();\n }\n connectedCallback() {\n this.destroyed = false;\n }\n disconnectedCallback() {\n for (const view of this.views) {\n lifecycle(view.element, LIFECYCLE_WILL_UNLOAD);\n view._destroy();\n }\n // Release swipe back gesture and transition.\n if (this.gesture) {\n this.gesture.destroy();\n this.gesture = undefined;\n }\n this.transInstr.length = 0;\n this.views.length = 0;\n this.destroyed = true;\n }\n /**\n * Push a new component onto the current navigation stack. Pass any additional\n * information along as an object. This additional information is accessible\n * through NavParams.\n *\n * @param component The component to push onto the navigation stack.\n * @param componentProps Any properties of the component.\n * @param opts The navigation options.\n * @param done The transition complete function.\n */\n push(component, componentProps, opts, done) {\n return this.insert(-1, component, componentProps, opts, done);\n }\n /**\n * Inserts a component into the navigation stack at the specified index.\n * This is useful to add a component at any point in the navigation stack.\n *\n * @param insertIndex The index to insert the component at in the stack.\n * @param component The component to insert into the navigation stack.\n * @param componentProps Any properties of the component.\n * @param opts The navigation options.\n * @param done The transition complete function.\n */\n insert(insertIndex, component, componentProps, opts, done) {\n return this.insertPages(insertIndex, [{ component, componentProps }], opts, done);\n }\n /**\n * Inserts an array of components into the navigation stack at the specified index.\n * The last component in the array will become instantiated as a view, and animate\n * in to become the active view.\n *\n * @param insertIndex The index to insert the components at in the stack.\n * @param insertComponents The components to insert into the navigation stack.\n * @param opts The navigation options.\n * @param done The transition complete function.\n */\n insertPages(insertIndex, insertComponents, opts, done) {\n return this.queueTrns({\n insertStart: insertIndex,\n insertViews: insertComponents,\n opts,\n }, done);\n }\n /**\n * Pop a component off of the navigation stack. Navigates back from the current\n * component.\n *\n * @param opts The navigation options.\n * @param done The transition complete function.\n */\n pop(opts, done) {\n return this.removeIndex(-1, 1, opts, done);\n }\n /**\n * Pop to a specific index in the navigation stack.\n *\n * @param indexOrViewCtrl The index or view controller to pop to.\n * @param opts The navigation options.\n * @param done The transition complete function.\n */\n popTo(indexOrViewCtrl, opts, done) {\n const ti = {\n removeStart: -1,\n removeCount: -1,\n opts,\n };\n if (typeof indexOrViewCtrl === 'object' && indexOrViewCtrl.component) {\n ti.removeView = indexOrViewCtrl;\n ti.removeStart = 1;\n }\n else if (typeof indexOrViewCtrl === 'number') {\n ti.removeStart = indexOrViewCtrl + 1;\n }\n return this.queueTrns(ti, done);\n }\n /**\n * Navigate back to the root of the stack, no matter how far back that is.\n *\n * @param opts The navigation options.\n * @param done The transition complete function.\n */\n popToRoot(opts, done) {\n return this.removeIndex(1, -1, opts, done);\n }\n /**\n * Removes a component from the navigation stack at the specified index.\n *\n * @param startIndex The number to begin removal at.\n * @param removeCount The number of components to remove.\n * @param opts The navigation options.\n * @param done The transition complete function.\n */\n removeIndex(startIndex, removeCount = 1, opts, done) {\n return this.queueTrns({\n removeStart: startIndex,\n removeCount,\n opts,\n }, done);\n }\n /**\n * Set the root for the current navigation stack to a component.\n *\n * @param component The component to set as the root of the navigation stack.\n * @param componentProps Any properties of the component.\n * @param opts The navigation options.\n * @param done The transition complete function.\n */\n setRoot(component, componentProps, opts, done) {\n return this.setPages([{ component, componentProps }], opts, done);\n }\n /**\n * Set the views of the current navigation stack and navigate to the last view.\n * By default animations are disabled, but they can be enabled by passing options\n * to the navigation controller. Navigation parameters can also be passed to the\n * individual pages in the array.\n *\n * @param views The list of views to set as the navigation stack.\n * @param opts The navigation options.\n * @param done The transition complete function.\n */\n setPages(views, opts, done) {\n opts !== null && opts !== void 0 ? opts : (opts = {});\n // if animation wasn't set to true then default it to NOT animate\n if (opts.animated !== true) {\n opts.animated = false;\n }\n return this.queueTrns({\n insertStart: 0,\n insertViews: views,\n removeStart: 0,\n removeCount: -1,\n opts,\n }, done);\n }\n /**\n * Called by the router to update the view.\n *\n * @param id The component tag.\n * @param params The component params.\n * @param direction A direction hint.\n * @param animation an AnimationBuilder.\n *\n * @return the status.\n * @internal\n */\n setRouteId(id, params, direction, animation) {\n const active = this.getActiveSync();\n if (matches(active, id, params)) {\n return Promise.resolve({\n changed: false,\n element: active.element,\n });\n }\n let resolve;\n const promise = new Promise((r) => (resolve = r));\n let finish;\n const commonOpts = {\n updateURL: false,\n viewIsReady: (enteringEl) => {\n let mark;\n const p = new Promise((r) => (mark = r));\n resolve({\n changed: true,\n element: enteringEl,\n markVisible: async () => {\n mark();\n await finish;\n },\n });\n return p;\n },\n };\n if (direction === 'root') {\n finish = this.setRoot(id, params, commonOpts);\n }\n else {\n // Look for a view matching the target in the view stack.\n const viewController = this.views.find((v) => matches(v, id, params));\n if (viewController) {\n finish = this.popTo(viewController, Object.assign(Object.assign({}, commonOpts), { direction: 'back', animationBuilder: animation }));\n }\n else if (direction === 'forward') {\n finish = this.push(id, params, Object.assign(Object.assign({}, commonOpts), { animationBuilder: animation }));\n }\n else if (direction === 'back') {\n finish = this.setRoot(id, params, Object.assign(Object.assign({}, commonOpts), { direction: 'back', animated: true, animationBuilder: animation }));\n }\n }\n return promise;\n }\n /**\n * Called by <ion-router> to retrieve the current component.\n *\n * @internal\n */\n async getRouteId() {\n const active = this.getActiveSync();\n if (active) {\n return {\n id: active.element.tagName,\n params: active.params,\n element: active.element,\n };\n }\n return undefined;\n }\n /**\n * Get the active view.\n */\n async getActive() {\n return this.getActiveSync();\n }\n /**\n * Get the view at the specified index.\n *\n * @param index The index of the view.\n */\n async getByIndex(index) {\n return this.views[index];\n }\n /**\n * Returns `true` if the current view can go back.\n *\n * @param view The view to check.\n */\n async canGoBack(view) {\n return this.canGoBackSync(view);\n }\n /**\n * Get the previous view.\n *\n * @param view The view to get.\n */\n async getPrevious(view) {\n return this.getPreviousSync(view);\n }\n getLength() {\n return this.views.length;\n }\n getActiveSync() {\n return this.views[this.views.length - 1];\n }\n canGoBackSync(view = this.getActiveSync()) {\n return !!(view && this.getPreviousSync(view));\n }\n getPreviousSync(view = this.getActiveSync()) {\n if (!view) {\n return undefined;\n }\n const views = this.views;\n const index = views.indexOf(view);\n return index > 0 ? views[index - 1] : undefined;\n }\n /**\n * Adds a navigation stack change to the queue and schedules it to run.\n *\n * @returns Whether the transition succeeds.\n */\n async queueTrns(ti, done) {\n var _a, _b;\n if (this.isTransitioning && ((_a = ti.opts) === null || _a === void 0 ? void 0 : _a.skipIfBusy)) {\n return false;\n }\n const promise = new Promise((resolve, reject) => {\n ti.resolve = resolve;\n ti.reject = reject;\n });\n ti.done = done;\n /**\n * If using router, check to see if navigation hooks\n * will allow us to perform this transition. This\n * is required in order for hooks to work with\n * the ion-back-button or swipe to go back.\n */\n if (ti.opts && ti.opts.updateURL !== false && this.useRouter) {\n const router = document.querySelector('ion-router');\n if (router) {\n const canTransition = await router.canTransition();\n if (canTransition === false) {\n return false;\n }\n if (typeof canTransition === 'string') {\n router.push(canTransition, ti.opts.direction || 'back');\n return false;\n }\n }\n }\n // Normalize empty\n if (((_b = ti.insertViews) === null || _b === void 0 ? void 0 : _b.length) === 0) {\n ti.insertViews = undefined;\n }\n // Enqueue transition instruction\n this.transInstr.push(ti);\n // if there isn't a transition already happening\n // then this will kick off this transition\n this.nextTrns();\n return promise;\n }\n success(result, ti) {\n if (this.destroyed) {\n this.fireError('nav controller was destroyed', ti);\n return;\n }\n if (ti.done) {\n ti.done(result.hasCompleted, result.requiresTransition, result.enteringView, result.leavingView, result.direction);\n }\n ti.resolve(result.hasCompleted);\n if (ti.opts.updateURL !== false && this.useRouter) {\n const router = document.querySelector('ion-router');\n if (router) {\n const direction = result.direction === 'back' ? 'back' : 'forward';\n router.navChanged(direction);\n }\n }\n }\n failed(rejectReason, ti) {\n if (this.destroyed) {\n this.fireError('nav controller was destroyed', ti);\n return;\n }\n this.transInstr.length = 0;\n this.fireError(rejectReason, ti);\n }\n fireError(rejectReason, ti) {\n if (ti.done) {\n ti.done(false, false, rejectReason);\n }\n if (ti.reject && !this.destroyed) {\n ti.reject(rejectReason);\n }\n else {\n ti.resolve(false);\n }\n }\n /**\n * Consumes the next transition in the queue.\n *\n * @returns whether the transition is executed.\n */\n nextTrns() {\n // this is the framework's bread 'n butta function\n // only one transition is allowed at any given time\n if (this.isTransitioning) {\n return false;\n }\n // there is no transition happening right now, executes the next instructions.\n const ti = this.transInstr.shift();\n if (!ti) {\n return false;\n }\n this.runTransition(ti);\n return true;\n }\n /** Executes all the transition instruction from the queue. */\n async runTransition(ti) {\n try {\n // set that this nav is actively transitioning\n this.ionNavWillChange.emit();\n this.isTransitioning = true;\n this.prepareTI(ti);\n const leavingView = this.getActiveSync();\n const enteringView = this.getEnteringView(ti, leavingView);\n if (!leavingView && !enteringView) {\n throw new Error('no views in the stack to be removed');\n }\n if (enteringView && enteringView.state === VIEW_STATE_NEW) {\n await enteringView.init(this.el);\n }\n this.postViewInit(enteringView, leavingView, ti);\n // Needs transition?\n const requiresTransition = (ti.enteringRequiresTransition || ti.leavingRequiresTransition) && enteringView !== leavingView;\n if (requiresTransition && ti.opts && leavingView) {\n const isBackDirection = ti.opts.direction === 'back';\n /**\n * If heading back, use the entering page's animation\n * unless otherwise specified by the developer.\n */\n if (isBackDirection) {\n ti.opts.animationBuilder = ti.opts.animationBuilder || (enteringView === null || enteringView === void 0 ? void 0 : enteringView.animationBuilder);\n }\n leavingView.animationBuilder = ti.opts.animationBuilder;\n }\n let result;\n if (requiresTransition) {\n result = await this.transition(enteringView, leavingView, ti);\n }\n else {\n // transition is not required, so we are already done!\n // they're inserting/removing the views somewhere in the middle or\n // beginning, so visually nothing needs to animate/transition\n // resolve immediately because there's no animation that's happening\n result = {\n hasCompleted: true,\n requiresTransition: false,\n };\n }\n this.success(result, ti);\n this.ionNavDidChange.emit();\n }\n catch (rejectReason) {\n this.failed(rejectReason, ti);\n }\n this.isTransitioning = false;\n this.nextTrns();\n }\n prepareTI(ti) {\n var _a, _b;\n var _c;\n const viewsLength = this.views.length;\n (_a = ti.opts) !== null && _a !== void 0 ? _a : (ti.opts = {});\n (_b = (_c = ti.opts).delegate) !== null && _b !== void 0 ? _b : (_c.delegate = this.delegate);\n if (ti.removeView !== undefined) {\n assert(ti.removeStart !== undefined, 'removeView needs removeStart');\n assert(ti.removeCount !== undefined, 'removeView needs removeCount');\n const index = this.views.indexOf(ti.removeView);\n if (index < 0) {\n throw new Error('removeView was not found');\n }\n ti.removeStart += index;\n }\n if (ti.removeStart !== undefined) {\n if (ti.removeStart < 0) {\n ti.removeStart = viewsLength - 1;\n }\n if (ti.removeCount < 0) {\n ti.removeCount = viewsLength - ti.removeStart;\n }\n ti.leavingRequiresTransition = ti.removeCount > 0 && ti.removeStart + ti.removeCount === viewsLength;\n }\n if (ti.insertViews) {\n // allow -1 to be passed in to auto push it on the end\n // and clean up the index if it's larger then the size of the stack\n if (ti.insertStart < 0 || ti.insertStart > viewsLength) {\n ti.insertStart = viewsLength;\n }\n ti.enteringRequiresTransition = ti.insertStart === viewsLength;\n }\n const insertViews = ti.insertViews;\n if (!insertViews) {\n return;\n }\n assert(insertViews.length > 0, 'length can not be zero');\n const viewControllers = convertToViews(insertViews);\n if (viewControllers.length === 0) {\n throw new Error('invalid views to insert');\n }\n // Check all the inserted view are correct\n for (const view of viewControllers) {\n view.delegate = ti.opts.delegate;\n const nav = view.nav;\n if (nav && nav !== this) {\n throw new Error('inserted view was already inserted');\n }\n if (view.state === VIEW_STATE_DESTROYED) {\n throw new Error('inserted view was already destroyed');\n }\n }\n ti.insertViews = viewControllers;\n }\n /**\n * Returns the view that will be entered considering the transition instructions.\n *\n * @param ti The instructions.\n * @param leavingView The view being left or undefined if none.\n *\n * @returns The view that will be entered, undefined if none.\n */\n getEnteringView(ti, leavingView) {\n // The last inserted view will be entered when view are inserted.\n const insertViews = ti.insertViews;\n if (insertViews !== undefined) {\n return insertViews[insertViews.length - 1];\n }\n // When views are deleted, we will enter the last view that is not removed and not the view being left.\n const removeStart = ti.removeStart;\n if (removeStart !== undefined) {\n const views = this.views;\n const removeEnd = removeStart + ti.removeCount;\n for (let i = views.length - 1; i >= 0; i--) {\n const view = views[i];\n if ((i < removeStart || i >= removeEnd) && view !== leavingView) {\n return view;\n }\n }\n }\n return undefined;\n }\n /**\n * Adds and Removes the views from the navigation stack.\n *\n * @param enteringView The view being entered.\n * @param leavingView The view being left.\n * @param ti The instructions.\n */\n postViewInit(enteringView, leavingView, ti) {\n var _a, _b, _c;\n assert(leavingView || enteringView, 'Both leavingView and enteringView are null');\n assert(ti.resolve, 'resolve must be valid');\n assert(ti.reject, 'reject must be valid');\n // Compute the views to remove.\n const opts = ti.opts;\n const { insertViews, removeStart, removeCount } = ti;\n /** Records the view to destroy */\n let destroyQueue;\n // there are views to remove\n if (removeStart !== undefined && removeCount !== undefined) {\n assert(removeStart >= 0, 'removeStart can not be negative');\n assert(removeCount >= 0, 'removeCount can not be negative');\n destroyQueue = [];\n for (let i = removeStart; i < removeStart + removeCount; i++) {\n const view = this.views[i];\n if (view !== undefined && view !== enteringView && view !== leavingView) {\n destroyQueue.push(view);\n }\n }\n // default the direction to \"back\"\n (_a = opts.direction) !== null && _a !== void 0 ? _a : (opts.direction = 'back');\n }\n const finalNumViews = this.views.length + ((_b = insertViews === null || insertViews === void 0 ? void 0 : insertViews.length) !== null && _b !== void 0 ? _b : 0) - (removeCount !== null && removeCount !== void 0 ? removeCount : 0);\n assert(finalNumViews >= 0, 'final balance can not be negative');\n if (finalNumViews === 0) {\n console.warn(`You can't remove all the pages in the navigation stack. nav.pop() is probably called too many times.`, this, this.el);\n throw new Error('navigation stack needs at least one root page');\n }\n // At this point the transition can not be rejected, any throw should be an error\n // Insert the new views in the stack.\n if (insertViews) {\n // add the views to the\n let insertIndex = ti.insertStart;\n for (const view of insertViews) {\n this.insertViewAt(view, insertIndex);\n insertIndex++;\n }\n if (ti.enteringRequiresTransition) {\n // default to forward if not already set\n (_c = opts.direction) !== null && _c !== void 0 ? _c : (opts.direction = 'forward');\n }\n }\n // if the views to be removed are in the beginning or middle\n // and there is not a view that needs to visually transition out\n // then just destroy them and don't transition anything\n // batch all of lifecycles together\n // let's make sure, callbacks are zoned\n if (destroyQueue && destroyQueue.length > 0) {\n for (const view of destroyQueue) {\n lifecycle(view.element, LIFECYCLE_WILL_LEAVE);\n lifecycle(view.element, LIFECYCLE_DID_LEAVE);\n lifecycle(view.element, LIFECYCLE_WILL_UNLOAD);\n }\n // once all lifecycle events has been delivered, we can safely detroy the views\n for (const view of destroyQueue) {\n this.destroyView(view);\n }\n }\n }\n async transition(enteringView, leavingView, ti) {\n // we should animate (duration > 0) if the pushed page is not the first one (startup)\n // or if it is a portal (modal, actionsheet, etc.)\n const opts = ti.opts;\n const progressCallback = opts.progressAnimation ? (ani) => (this.sbAni = ani) : undefined;\n const mode = getIonMode(this);\n const enteringEl = enteringView.element;\n const leavingEl = leavingView && leavingView.element;\n const animationOpts = Object.assign(Object.assign({ mode, showGoBack: this.canGoBackSync(enteringView), baseEl: this.el, progressCallback, animated: this.animated && config.getBoolean('animated', true), enteringEl,\n leavingEl }, opts), { animationBuilder: opts.animationBuilder || this.animation || config.get('navAnimation') });\n const { hasCompleted } = await transition(animationOpts);\n return this.transitionFinish(hasCompleted, enteringView, leavingView, opts);\n }\n transitionFinish(hasCompleted, enteringView, leavingView, opts) {\n /**\n * If the transition did not complete, the leavingView will still be the active\n * view on the stack. Otherwise unmount all the views after the enteringView.\n */\n const activeView = hasCompleted ? enteringView : leavingView;\n if (activeView) {\n this.unmountInactiveViews(activeView);\n }\n return {\n hasCompleted,\n requiresTransition: true,\n enteringView,\n leavingView,\n direction: opts.direction,\n };\n }\n /**\n * Inserts a view at the specified index.\n *\n * When the view already is in the stack it will be moved to the new position.\n *\n * @param view The view to insert.\n * @param index The index where to insert the view.\n */\n insertViewAt(view, index) {\n const views = this.views;\n const existingIndex = views.indexOf(view);\n if (existingIndex > -1) {\n assert(view.nav === this, 'view is not part of the nav');\n // The view already in the stack, removes it.\n views.splice(existingIndex, 1);\n // and add it back at the requested index.\n views.splice(index, 0, view);\n }\n else {\n assert(!view.nav, 'nav is used');\n // this is a new view to add to the stack\n // create the new entering view\n view.nav = this;\n views.splice(index, 0, view);\n }\n }\n /**\n * Removes a view from the stack.\n *\n * @param view The view to remove.\n */\n removeView(view) {\n assert(view.state === VIEW_STATE_ATTACHED || view.state === VIEW_STATE_DESTROYED, 'view state should be loaded or destroyed');\n const views = this.views;\n const index = views.indexOf(view);\n assert(index > -1, 'view must be part of the stack');\n if (index >= 0) {\n views.splice(index, 1);\n }\n }\n destroyView(view) {\n view._destroy();\n this.removeView(view);\n }\n /**\n * Unmounts all inactive views after the specified active view.\n *\n * DOM WRITE\n *\n * @param activeView The view that is actively visible in the stack. Used to calculate which views to unmount.\n */\n unmountInactiveViews(activeView) {\n // ok, cleanup time!! Destroy all of the views that are\n // INACTIVE and come after the active view\n // only do this if the views exist, though\n if (this.destroyed) {\n return;\n }\n const views = this.views;\n const activeViewIndex = views.indexOf(activeView);\n for (let i = views.length - 1; i >= 0; i--) {\n const view = views[i];\n /**\n * When inserting multiple views via insertPages\n * the last page will be transitioned to, but the\n * others will not be. As a result, a DOM element\n * will only be created for the last page inserted.\n * As a result, it is possible to have views in the\n * stack that do not have `view.element` yet.\n */\n const element = view.element;\n if (element) {\n if (i > activeViewIndex) {\n // this view comes after the active view\n // let's unload it\n lifecycle(element, LIFECYCLE_WILL_UNLOAD);\n this.destroyView(view);\n }\n else if (i < activeViewIndex) {\n // this view comes before the active view\n // and it is not a portal then ensure it is hidden\n setPageHidden(element, true);\n }\n }\n }\n }\n canStart() {\n return (!!this.swipeGesture &&\n !this.isTransitioning &&\n this.transInstr.length === 0 &&\n this.animationEnabled &&\n this.canGoBackSync());\n }\n onStart() {\n this.pop({ direction: 'back', progressAnimation: true });\n }\n onMove(stepValue) {\n if (this.sbAni) {\n this.sbAni.progressStep(stepValue);\n }\n }\n onEnd(shouldComplete, stepValue, dur) {\n if (this.sbAni) {\n this.animationEnabled = false;\n this.sbAni.onFinish(() => {\n this.animationEnabled = true;\n }, { oneTimeCallback: true });\n // Account for rounding errors in JS\n let newStepValue = shouldComplete ? -0.001 : 0.001;\n /**\n * Animation will be reversed here, so need to\n * reverse the easing curve as well\n *\n * Additionally, we need to account for the time relative\n * to the new easing curve, as `stepValue` is going to be given\n * in terms of a linear curve.\n */\n if (!shouldComplete) {\n this.sbAni.easing('cubic-bezier(1, 0, 0.68, 0.28)');\n newStepValue += getTimeGivenProgression([0, 0], [1, 0], [0.68, 0.28], [1, 1], stepValue)[0];\n }\n else {\n newStepValue += getTimeGivenProgression([0, 0], [0.32, 0.72], [0, 1], [1, 1], stepValue)[0];\n }\n this.sbAni.progressEnd(shouldComplete ? 1 : 0, newStepValue, dur);\n }\n }\n render() {\n return h(\"slot\", null);\n }\n static get is() { return \"ion-nav\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"nav.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"nav.css\"]\n };\n }\n static get properties() {\n return {\n \"delegate\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"FrameworkDelegate\",\n \"resolved\": \"FrameworkDelegate | undefined\",\n \"references\": {\n \"FrameworkDelegate\": {\n \"location\": \"import\",\n \"path\": \"../../interface\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"\"\n }\n },\n \"swipeGesture\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If the nav component should allow for swipe-to-go-back.\"\n },\n \"attribute\": \"swipe-gesture\",\n \"reflect\": false\n },\n \"animated\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the nav should animate the transition of components.\"\n },\n \"attribute\": \"animated\",\n \"reflect\": false,\n \"defaultValue\": \"true\"\n },\n \"animation\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"AnimationBuilder\",\n \"resolved\": \"((baseEl: any, opts?: any) => Animation) | undefined\",\n \"references\": {\n \"AnimationBuilder\": {\n \"location\": \"import\",\n \"path\": \"../../interface\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"By default `ion-nav` animates transition between pages based in the mode (ios or material design).\\nHowever, this property allows to create custom transition using `AnimationBuilder` functions.\"\n }\n },\n \"rootParams\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"ComponentProps\",\n \"resolved\": \"undefined | { [key: string]: any; }\",\n \"references\": {\n \"ComponentProps\": {\n \"location\": \"import\",\n \"path\": \"../../interface\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Any parameters for the root component\"\n }\n },\n \"root\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"NavComponent\",\n \"resolved\": \"Function | HTMLElement | ViewController | null | string | undefined\",\n \"references\": {\n \"NavComponent\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Root NavComponent to load\"\n },\n \"attribute\": \"root\",\n \"reflect\": false\n }\n };\n }\n static get events() {\n return [{\n \"method\": \"ionNavWillLoad\",\n \"name\": \"ionNavWillLoad\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"Event fired when Nav will load a component\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }, {\n \"method\": \"ionNavWillChange\",\n \"name\": \"ionNavWillChange\",\n \"bubbles\": false,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Event fired when the nav will change components\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }, {\n \"method\": \"ionNavDidChange\",\n \"name\": \"ionNavDidChange\",\n \"bubbles\": false,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Event fired when the nav has changed components\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }];\n }\n static get methods() {\n return {\n \"push\": {\n \"complexType\": {\n \"signature\": \"<T extends NavComponent>(component: T, componentProps?: ComponentProps<T> | null, opts?: NavOptions | null, done?: TransitionDoneFn) => Promise<boolean>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"component The component to push onto the navigation stack.\"\n }],\n \"text\": \"The component to push onto the navigation stack.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"componentProps Any properties of the component.\"\n }],\n \"text\": \"Any properties of the component.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }],\n \"text\": \"The navigation options.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }],\n \"text\": \"The transition complete function.\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"NavComponent\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"T\": {\n \"location\": \"global\"\n },\n \"ComponentProps\": {\n \"location\": \"import\",\n \"path\": \"../../interface\"\n },\n \"NavOptions\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"TransitionDoneFn\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n }\n },\n \"return\": \"Promise<boolean>\"\n },\n \"docs\": {\n \"text\": \"Push a new component onto the current navigation stack. Pass any additional\\ninformation along as an object. This additional information is accessible\\nthrough NavParams.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"component The component to push onto the navigation stack.\"\n }, {\n \"name\": \"param\",\n \"text\": \"componentProps Any properties of the component.\"\n }, {\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }, {\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }]\n }\n },\n \"insert\": {\n \"complexType\": {\n \"signature\": \"<T extends NavComponent>(insertIndex: number, component: T, componentProps?: ComponentProps<T> | null, opts?: NavOptions | null, done?: TransitionDoneFn) => Promise<boolean>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"insertIndex The index to insert the component at in the stack.\"\n }],\n \"text\": \"The index to insert the component at in the stack.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"component The component to insert into the navigation stack.\"\n }],\n \"text\": \"The component to insert into the navigation stack.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"componentProps Any properties of the component.\"\n }],\n \"text\": \"Any properties of the component.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }],\n \"text\": \"The navigation options.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }],\n \"text\": \"The transition complete function.\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"NavComponent\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"T\": {\n \"location\": \"global\"\n },\n \"ComponentProps\": {\n \"location\": \"import\",\n \"path\": \"../../interface\"\n },\n \"NavOptions\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"TransitionDoneFn\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n }\n },\n \"return\": \"Promise<boolean>\"\n },\n \"docs\": {\n \"text\": \"Inserts a component into the navigation stack at the specified index.\\nThis is useful to add a component at any point in the navigation stack.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"insertIndex The index to insert the component at in the stack.\"\n }, {\n \"name\": \"param\",\n \"text\": \"component The component to insert into the navigation stack.\"\n }, {\n \"name\": \"param\",\n \"text\": \"componentProps Any properties of the component.\"\n }, {\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }, {\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }]\n }\n },\n \"insertPages\": {\n \"complexType\": {\n \"signature\": \"(insertIndex: number, insertComponents: NavComponent[] | NavComponentWithProps[], opts?: NavOptions | null, done?: TransitionDoneFn) => Promise<boolean>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"insertIndex The index to insert the components at in the stack.\"\n }],\n \"text\": \"The index to insert the components at in the stack.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"insertComponents The components to insert into the navigation stack.\"\n }],\n \"text\": \"The components to insert into the navigation stack.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }],\n \"text\": \"The navigation options.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }],\n \"text\": \"The transition complete function.\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"NavComponent\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"NavComponentWithProps\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"NavOptions\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"TransitionDoneFn\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n }\n },\n \"return\": \"Promise<boolean>\"\n },\n \"docs\": {\n \"text\": \"Inserts an array of components into the navigation stack at the specified index.\\nThe last component in the array will become instantiated as a view, and animate\\nin to become the active view.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"insertIndex The index to insert the components at in the stack.\"\n }, {\n \"name\": \"param\",\n \"text\": \"insertComponents The components to insert into the navigation stack.\"\n }, {\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }, {\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }]\n }\n },\n \"pop\": {\n \"complexType\": {\n \"signature\": \"(opts?: NavOptions | null, done?: TransitionDoneFn) => Promise<boolean>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }],\n \"text\": \"The navigation options.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }],\n \"text\": \"The transition complete function.\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"NavOptions\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"TransitionDoneFn\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n }\n },\n \"return\": \"Promise<boolean>\"\n },\n \"docs\": {\n \"text\": \"Pop a component off of the navigation stack. Navigates back from the current\\ncomponent.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }, {\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }]\n }\n },\n \"popTo\": {\n \"complexType\": {\n \"signature\": \"(indexOrViewCtrl: number | ViewController, opts?: NavOptions | null, done?: TransitionDoneFn) => Promise<boolean>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"indexOrViewCtrl The index or view controller to pop to.\"\n }],\n \"text\": \"The index or view controller to pop to.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }],\n \"text\": \"The navigation options.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }],\n \"text\": \"The transition complete function.\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"ViewController\": {\n \"location\": \"import\",\n \"path\": \"./view-controller\"\n },\n \"NavOptions\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"TransitionDoneFn\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"TransitionInstruction\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n }\n },\n \"return\": \"Promise<boolean>\"\n },\n \"docs\": {\n \"text\": \"Pop to a specific index in the navigation stack.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"indexOrViewCtrl The index or view controller to pop to.\"\n }, {\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }, {\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }]\n }\n },\n \"popToRoot\": {\n \"complexType\": {\n \"signature\": \"(opts?: NavOptions | null, done?: TransitionDoneFn) => Promise<boolean>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }],\n \"text\": \"The navigation options.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }],\n \"text\": \"The transition complete function.\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"NavOptions\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"TransitionDoneFn\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n }\n },\n \"return\": \"Promise<boolean>\"\n },\n \"docs\": {\n \"text\": \"Navigate back to the root of the stack, no matter how far back that is.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }, {\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }]\n }\n },\n \"removeIndex\": {\n \"complexType\": {\n \"signature\": \"(startIndex: number, removeCount?: number, opts?: NavOptions | null, done?: TransitionDoneFn) => Promise<boolean>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"startIndex The number to begin removal at.\"\n }],\n \"text\": \"The number to begin removal at.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"removeCount The number of components to remove.\"\n }],\n \"text\": \"The number of components to remove.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }],\n \"text\": \"The navigation options.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }],\n \"text\": \"The transition complete function.\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"NavOptions\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"TransitionDoneFn\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n }\n },\n \"return\": \"Promise<boolean>\"\n },\n \"docs\": {\n \"text\": \"Removes a component from the navigation stack at the specified index.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"startIndex The number to begin removal at.\"\n }, {\n \"name\": \"param\",\n \"text\": \"removeCount The number of components to remove.\"\n }, {\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }, {\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }]\n }\n },\n \"setRoot\": {\n \"complexType\": {\n \"signature\": \"<T extends NavComponent>(component: T, componentProps?: ComponentProps<T> | null, opts?: NavOptions | null, done?: TransitionDoneFn) => Promise<boolean>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"component The component to set as the root of the navigation stack.\"\n }],\n \"text\": \"The component to set as the root of the navigation stack.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"componentProps Any properties of the component.\"\n }],\n \"text\": \"Any properties of the component.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }],\n \"text\": \"The navigation options.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }],\n \"text\": \"The transition complete function.\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"NavComponent\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"T\": {\n \"location\": \"global\"\n },\n \"ComponentProps\": {\n \"location\": \"import\",\n \"path\": \"../../interface\"\n },\n \"NavOptions\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"TransitionDoneFn\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n }\n },\n \"return\": \"Promise<boolean>\"\n },\n \"docs\": {\n \"text\": \"Set the root for the current navigation stack to a component.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"component The component to set as the root of the navigation stack.\"\n }, {\n \"name\": \"param\",\n \"text\": \"componentProps Any properties of the component.\"\n }, {\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }, {\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }]\n }\n },\n \"setPages\": {\n \"complexType\": {\n \"signature\": \"(views: NavComponent[] | NavComponentWithProps[], opts?: NavOptions | null, done?: TransitionDoneFn) => Promise<boolean>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"views The list of views to set as the navigation stack.\"\n }],\n \"text\": \"The list of views to set as the navigation stack.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }],\n \"text\": \"The navigation options.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }],\n \"text\": \"The transition complete function.\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"NavComponent\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"NavComponentWithProps\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"NavOptions\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"TransitionDoneFn\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n }\n },\n \"return\": \"Promise<boolean>\"\n },\n \"docs\": {\n \"text\": \"Set the views of the current navigation stack and navigate to the last view.\\nBy default animations are disabled, but they can be enabled by passing options\\nto the navigation controller. Navigation parameters can also be passed to the\\nindividual pages in the array.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"views The list of views to set as the navigation stack.\"\n }, {\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }, {\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }]\n }\n },\n \"setRouteId\": {\n \"complexType\": {\n \"signature\": \"(id: string, params: ComponentProps | undefined, direction: RouterDirection, animation?: AnimationBuilder) => Promise<RouteWrite>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"id The component tag.\"\n }],\n \"text\": \"The component tag.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"params The component params.\"\n }],\n \"text\": \"The component params.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"direction A direction hint.\"\n }],\n \"text\": \"A direction hint.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"animation an AnimationBuilder.\"\n }],\n \"text\": \"an AnimationBuilder.\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"RouteWrite\": {\n \"location\": \"import\",\n \"path\": \"../router/utils/interface\"\n },\n \"ComponentProps\": {\n \"location\": \"import\",\n \"path\": \"../../interface\"\n },\n \"RouterDirection\": {\n \"location\": \"import\",\n \"path\": \"../router/utils/interface\"\n },\n \"AnimationBuilder\": {\n \"location\": \"import\",\n \"path\": \"../../interface\"\n },\n \"NavOptions\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n }\n },\n \"return\": \"Promise<RouteWrite>\"\n },\n \"docs\": {\n \"text\": \"Called by the router to update the view.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"id The component tag.\"\n }, {\n \"name\": \"param\",\n \"text\": \"params The component params.\"\n }, {\n \"name\": \"param\",\n \"text\": \"direction A direction hint.\"\n }, {\n \"name\": \"param\",\n \"text\": \"animation an AnimationBuilder.\"\n }, {\n \"name\": \"return\",\n \"text\": \"the status.\"\n }, {\n \"name\": \"internal\",\n \"text\": undefined\n }]\n }\n },\n \"getRouteId\": {\n \"complexType\": {\n \"signature\": \"() => Promise<RouteID | undefined>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"RouteID\": {\n \"location\": \"import\",\n \"path\": \"../router/utils/interface\"\n }\n },\n \"return\": \"Promise<RouteID | undefined>\"\n },\n \"docs\": {\n \"text\": \"Called by <ion-router> to retrieve the current component.\",\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }]\n }\n },\n \"getActive\": {\n \"complexType\": {\n \"signature\": \"() => Promise<ViewController | undefined>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"ViewController\": {\n \"location\": \"import\",\n \"path\": \"./view-controller\"\n }\n },\n \"return\": \"Promise<ViewController | undefined>\"\n },\n \"docs\": {\n \"text\": \"Get the active view.\",\n \"tags\": []\n }\n },\n \"getByIndex\": {\n \"complexType\": {\n \"signature\": \"(index: number) => Promise<ViewController | undefined>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"index The index of the view.\"\n }],\n \"text\": \"The index of the view.\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"ViewController\": {\n \"location\": \"import\",\n \"path\": \"./view-controller\"\n }\n },\n \"return\": \"Promise<ViewController | undefined>\"\n },\n \"docs\": {\n \"text\": \"Get the view at the specified index.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"index The index of the view.\"\n }]\n }\n },\n \"canGoBack\": {\n \"complexType\": {\n \"signature\": \"(view?: ViewController) => Promise<boolean>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"view The view to check.\"\n }],\n \"text\": \"The view to check.\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"ViewController\": {\n \"location\": \"import\",\n \"path\": \"./view-controller\"\n }\n },\n \"return\": \"Promise<boolean>\"\n },\n \"docs\": {\n \"text\": \"Returns `true` if the current view can go back.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"view The view to check.\"\n }]\n }\n },\n \"getPrevious\": {\n \"complexType\": {\n \"signature\": \"(view?: ViewController) => Promise<ViewController | undefined>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"view The view to get.\"\n }],\n \"text\": \"The view to get.\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"ViewController\": {\n \"location\": \"import\",\n \"path\": \"./view-controller\"\n }\n },\n \"return\": \"Promise<ViewController | undefined>\"\n },\n \"docs\": {\n \"text\": \"Get the previous view.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"view The view to get.\"\n }]\n }\n }\n };\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"swipeGesture\",\n \"methodName\": \"swipeGestureChanged\"\n }, {\n \"propName\": \"root\",\n \"methodName\": \"rootChanged\"\n }];\n }\n}\n"],"version":3}
1
+ {"file":"gl-facet.gl-field.gl-form-page.gl-option.ion-nav.entry.js","mappings":";;;;;;;;;;MAaa,KAAK;;;;IA2CR,iBAAY,GAAG,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;kBAhCV,IAAI;;;;kBAuBM,MAAM;;EAE3C,QAAQ;IACd,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;MACpB,KAAK,EAAE,IAAI,CAAC,KAAK;MACjB,KAAK,EAAE,IAAI,CAAC,KAAK;KAClB,CAAC,CAAC;GACJ;EAID,MAAM;IACJ,IAAI,IAAI,CAAC,MAAM,KAAK,QAAQ;MAC1B,OAAO,2BAAkB,IAAI,CAAC,KAAK,CAAmB,CAAC;IAEzD,QACE,gBAAU,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,IACpE,YAAY,CAAC,IAAI,CAAC,EACnB,sCAAsB,IAAI,CAAC,KAAK,CAAa,CACpC,EACX;GACH;;;;MC7CU,KAAK;;;;IAqGR,aAAQ,GAAG,CAAC,CAA4C,KAC9D,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAwBvB,YAAO,GAAG,CAAC,CAAyC,KAC1D,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;;;iBAxGE,EAAE;uBAKI,EAAE;oBAKJ,KAAK;;;;EAkB1C,aAAa,CAAC,CAAC;IACb,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;GACxB;EAEO,SAAS;IACf,MAAM,IAAI,GAAG,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACxC,IAAI,IAAI,CAAC,O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,CAAC,gBAAgB,GAAG,IAAI,CAAC;OAC9B,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC,CAAC;;MAE9B,IAAI,YAAY,GAAG,cAAc,GAAG,CAAC,KAAK,GAAG,KAAK,CAAC;;;;;;;;;MASnD,IAAI,CAAC,cAAc,EAAE;QACnB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,gCAAgC,CAAC,CAAC;QACpD,YAAY,IAAI,uBAAuB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;OAC7F;WACI;QACH,YAAY,IAAI,uBAAuB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;OAC7F;MACD,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,cAAc,GAAG,CAAC,GAAG,CAAC,EAAE,YAAY,EAAE,GAAG,CAAC,CAAC;KACnE;GACF;EACD,MAAM;IACJ,OAAO,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;GACxB;;;;;;;;;;;","names":[],"sources":["src/components/facet/facet.tsx","src/components/field/field.tsx","src/components/form-page/form-page.css?tag=gl-form-page","src/components/form-page/form-page.tsx","src/components/option/option.tsx","node_modules/@ionic/core/dist/collection/components/nav/view-controller.js","node_modules/@ionic/core/dist/collection/components/nav/nav.css?tag=ion-nav&encapsulation=shadow","node_modules/@ionic/core/dist/collection/components/nav/nav.js"],"sourcesContent":["import {\n h,\n Component,\n Element,\n Event,\n EventEmitter,\n Prop,\n} from \"@stencil/core\";\nimport { getThumbnail } from \"../utils\";\n\n@Component({\n tag: \"gl-facet\",\n})\nexport class Facet {\n @Element() el: HTMLGlFacetElement;\n\n /**\n * Emitted when the facet is selected by the user.\n */\n @Event() glFormFacet: EventEmitter;\n\n /**\n * Show the detail arrow in the item.\n */\n @Prop() readonly detail: boolean = true;\n\n /**\n * Image URL for the item.\n */\n @Prop() readonly image: string;\n\n /**\n * Text for the item.\n */\n @Prop() readonly label: string;\n\n /**\n * The value of the facet used to refer to it in fields and other\n * facets. When the facet is selected, the value is emitted as\n * part of the `glFormFacet` event.\n */\n @Prop() readonly value: string;\n\n /**\n * Widget to use for displaying the facet. A value of `header` renders\n * an `ion-list-header` instead of an `ion-item`.\n */\n @Prop() readonly widget: \"header\" | \"item\" = \"item\";\n\n private setFacet() {\n this.glFormFacet.emit({\n label: this.label,\n value: this.value,\n });\n }\n\n private callSetFacet = () => this.setFacet();\n\n render() {\n if (this.widget === \"header\")\n return <ion-list-header>{this.label}</ion-list-header>;\n\n return (\n <ion-item button={true} onClick={this.callSetFacet} detail={this.detail}>\n {getThumbnail(this)}\n <ion-label text-wrap>{this.label}</ion-label>\n </ion-item>\n );\n }\n}\n","import {\n h,\n Component,\n Element,\n Event,\n EventEmitter,\n Listen,\n Method,\n Prop,\n State,\n Host,\n} from \"@stencil/core\";\nimport { _t } from \"../i18n/i18n\";\nimport {\n InputCustomEvent,\n SelectCustomEvent,\n TextareaCustomEvent,\n RadioGroupCustomEvent,\n} from \"@ionic/core\";\n\n@Component({\n tag: \"gl-field\",\n})\nexport class Field {\n @Element() el: HTMLGlFieldElement;\n\n /**\n * Emitted when the field value is changed by the user.\n */\n @Event() glFieldValueChanged: EventEmitter;\n\n @State() message: string;\n\n /**\n * The feature property that corresponds to the form field.\n */\n @Prop() readonly attribute: string;\n\n /**\n * Image URL for the field item.\n */\n @Prop() readonly image: string;\n\n /**\n * Label text for the field item.\n */\n @Prop() readonly label: string = \"\";\n\n /**\n * A placeholder prompt text to display to the user, valid only for textarea and input fields.\n */\n @Prop() readonly placeholder: string = \"\";\n\n /**\n * The field must be filled out before the form can be submitted.\n */\n @Prop() readonly required: boolean = false;\n\n /**\n * Field type. It is not currently used.\n */\n @Prop() readonly type: any;\n\n /**\n * Widget used to render the field.\n */\n @Prop() readonly widget:\n | \"input\"\n | \"radio\"\n | \"select\"\n | \"textarea\"\n | \"instructions\";\n\n @Listen(\"glOptionChanged\")\n optionChanged(e) {\n this.changed(e.detail);\n }\n\n private _getValue() {\n const form = this.el.closest(\"gl-form\");\n if (form.feature == undefined || form.feature.properties == undefined)\n return;\n return form.feature.properties[this.attribute];\n }\n\n /**\n * Returns whether this field is valid\n * @returns\n */\n @Method()\n async isValid() {\n return this.validate() == null;\n }\n\n /**\n * Returns the value of the attribute of the feature this form is editing\n * @returns value of the attribute of the feature\n */\n @Method()\n async getValue() {\n return this._getValue();\n }\n\n /**\n * Checks whether the value is required and also present\n * If it is not returns an error text, if it is valid returns null\n * @returns\n */\n @Method()\n async validate() {\n const value = await this.getValue();\n if (this.required && (value == undefined || value === \"\"))\n return _t(\"webmapgl.field.required\", { field: this.label });\n\n return null;\n }\n\n private changed(value: any) {\n this.glFieldValueChanged.emit({\n field: this,\n value: value,\n });\n }\n\n private onChange = (e: SelectCustomEvent | RadioGroupCustomEvent) =>\n this.changed(e.detail.value);\n\n private getRadioField() {\n return (\n <Host>\n <ion-list-header>{this.label}</ion-list-header>\n <ion-radio-group onIonChange={this.onChange}>\n <slot />\n </ion-radio-group>\n </Host>\n );\n }\n\n private getSelectField() {\n return (\n <ion-item>\n <ion-label>{this.label}</ion-label>,\n <ion-select onIonChange={this.onChange} value={this.getValue()}>\n <slot />\n </ion-select>\n </ion-item>\n );\n }\n\n private onInput = (e: TextareaCustomEvent | InputCustomEvent) =>\n this.changed(e.detail.value);\n\n private getTextareaField() {\n return (\n <ion-item>\n {this.label !== \"\" ? (\n <ion-label text-wrap position=\"floating\">\n {this.label}\n </ion-label>\n ) : (\n \"\"\n )}\n <ion-textarea\n onIonInput={this.onInput}\n placeholder={this.placeholder}\n value={this._getValue() || \"\"}\n legacy={true} // We are opting for the legacy version of labels for textarea as there is no other way to text-wrap the label\n ></ion-textarea>\n </ion-item>\n );\n }\n\n private getInstructionsField() {\n return (\n <ion-item>\n <ion-textarea readonly={true} value={this.label}></ion-textarea>\n </ion-item>\n );\n }\n\n private getInputField() {\n return (\n <ion-item>\n <ion-label text-wrap position=\"floating\">\n {this.label}\n </ion-label>\n <ion-input\n onIonInput={this.onInput}\n type=\"text\"\n placeholder={this.placeholder}\n value={this._getValue()}\n ></ion-input>\n </ion-item>\n );\n }\n\n render() {\n if (this.widget === \"radio\") {\n return this.getRadioField();\n } else if (this.widget === \"select\") {\n return this.getSelectField();\n } else if (this.widget == \"textarea\") {\n return this.getTextareaField();\n } else if (this.widget == \"instructions\") {\n return this.getInstructionsField();\n } else {\n return this.getInputField();\n }\n }\n}\n","gl-form-page ion-list,\ngl-form-page ion-list.list-md,\ngl-form-page ion-list.list-ios {\n /* Fix extra height in modal scroll area */\n margin-bottom: 0;\n padding-bottom: 16px;\n}\n","import {\n h,\n Component,\n Element,\n Listen,\n Prop,\n State,\n Host,\n} from \"@stencil/core\";\nimport { _t } from \"../i18n/i18n\";\n\n@Component({\n styleUrl: \"form-page.css\",\n tag: \"gl-form-page\",\n})\nexport class FormPage {\n @Element() el: HTMLGlFormPageElement;\n\n @State() canSubmit = false;\n\n /**\n * Text for the back button.\n */\n @Prop() readonly backText: string = _t(\"webmapgl.form-page.back\");\n\n /**\n * Facets for the page.\n */\n @Prop() readonly facets: any[];\n\n /**\n * Fields for the page.\n */\n @Prop() readonly fields: any[];\n\n /**\n * Currently-selected facet. It is used the set the CSS class of the page.\n */\n @Prop() readonly formFacet: string;\n\n /**\n * Label text displayed in the form toolbar.\n */\n @Prop() readonly label: string;\n\n /**\n * This is the root page in the form. If it is `true`, the back button\n * is not displayed.\n */\n @Prop() readonly root: boolean = false;\n\n /**\n * Text for the submit button.\n */\n @Prop() readonly submitText: string = _t(\"webmapgl.form-page.submit\");\n\n /**\n * Text for the cancel button.\n */\n @Prop() readonly cancelText: string = _t(\"webmapgl.form-page.cancel\");\n\n componentDidLoad() {\n this.updateValidationStatus();\n }\n\n @Listen(\"glFormFeatureChanged\", { target: \"body\" })\n async updateValidationStatus() {\n if (this.el.querySelectorAll(\"gl-field\").length === 0) {\n this.canSubmit = false;\n } else {\n this.canSubmit = (await this.validate()).length === 0;\n }\n }\n\n private async validate() {\n let messages = await Promise.all(\n Array.from(this.el.querySelectorAll(\"gl-field\")).map(\n async (field) => await field.validate(),\n ),\n );\n\n return messages.filter((message) => message != null);\n }\n\n private cancel() {\n const form = this.el.closest(\"gl-form\");\n form.cancel();\n }\n\n private submit() {\n const form = this.el.closest(\"gl-form\");\n form.submit();\n }\n\n private renderFacets() {\n return this.facets.map((facet) => (\n <gl-facet\n label={facet.label}\n value={facet.value}\n image={facet.image}\n widget={facet.widget}\n ></gl-facet>\n ));\n }\n\n private renderFields() {\n return this.fields.map((field) => (\n <gl-field\n attribute={field.attribute}\n label={field.label}\n image={field.image}\n required={field.required}\n type={field.type}\n widget={field.widget}\n placeholder={field.placeholder}\n >\n {this.renderOptions(field.options)}\n </gl-field>\n ));\n }\n\n private renderOptions(options: any[]) {\n if (options == undefined) return;\n return options.map((option) => (\n <gl-option\n image={option.image}\n label={option.label}\n value={option.value}\n ></gl-option>\n ));\n }\n\n private clickSubmit = () => {\n if (this.canSubmit) this.submit();\n };\n\n private clickCancel = () => this.cancel();\n\n render() {\n let small = screen.width <= 640;\n return (\n <Host class={`gl-form-page-facet-${this.formFacet || \"none\"}`}>\n <ion-header>\n <ion-toolbar color=\"primary\">\n {!this.root ? (\n <ion-buttons slot=\"start\">\n <ion-nav-pop>\n <ion-button>\n <ion-icon\n slot={small ? \"icon-only\" : \"start\"}\n name=\"arrow-back\"\n ></ion-icon>\n {small ? null : this.backText}\n </ion-button>\n </ion-nav-pop>\n </ion-buttons>\n ) : null}\n <ion-title>{this.label}</ion-title>\n <ion-buttons slot=\"end\">\n <ion-button onClick={this.clickCancel}>\n <ion-icon\n slot={small ? \"icon-only\" : \"start\"}\n name=\"close\"\n ></ion-icon>\n {small ? null : this.cancelText}\n </ion-button>\n <ion-button onClick={this.clickSubmit} disabled={!this.canSubmit}>\n <ion-icon\n slot={small ? \"icon-only\" : \"start\"}\n name=\"checkmark\"\n ></ion-icon>\n {small ? null : this.submitText}\n </ion-button>\n </ion-buttons>\n </ion-toolbar>\n </ion-header>\n <ion-content>\n <ion-list>\n {this.renderFacets()}\n {this.renderFields()}\n </ion-list>\n </ion-content>\n </Host>\n );\n }\n}\n","import {\n h,\n Component,\n Element,\n Event,\n EventEmitter,\n Prop,\n} from \"@stencil/core\";\nimport { getThumbnail } from \"../utils\";\n\n@Component({\n tag: \"gl-option\",\n})\nexport class Option {\n @Element() el: HTMLGlOptionElement;\n\n /**\n * Emitted when the option is selected or deselected.\n */\n @Event() glOptionChanged: EventEmitter;\n\n /**\n * Thumbnail image URL.\n */\n @Prop() readonly image: string;\n\n /**\n * Option label. It is displayed to the user.\n */\n @Prop() readonly label: string;\n\n /**\n * Option value. If this option is selected, it is used to set the value\n * of the property corresponding to the parent field.\n */\n @Prop() readonly value: any;\n\n private select() {\n this.glOptionChanged.emit(this.value);\n }\n\n private callSelect = () => this.select();\n\n private getRadio() {\n const field = this.el.closest(\"gl-field\");\n const checked = field.getValue() === this.value;\n return (\n <ion-item>\n {getThumbnail(this)}\n <ion-radio\n onIonSelect={this.callSelect}\n value={this.value}\n checked={checked}\n >\n <ion-label text-wrap>{this.label}</ion-label>\n </ion-radio>\n </ion-item>\n );\n }\n\n private getSelectOption() {\n return (\n <ion-select-option value={this.value}>{this.label}</ion-select-option>\n );\n }\n\n render() {\n let field = this.el.closest(\"gl-field\");\n return field.widget === \"radio\" ? this.getRadio() : this.getSelectOption();\n }\n}\n","/*!\n * (C) Ionic http://ionicframework.com - MIT License\n */\nimport { attachComponent } from \"../../utils/framework-delegate\";\nimport { assert, shallowEqualStringMap } from \"../../utils/helpers\";\nexport const VIEW_STATE_NEW = 1;\nexport const VIEW_STATE_ATTACHED = 2;\nexport const VIEW_STATE_DESTROYED = 3;\n// TODO(FW-2832): types\nexport class ViewController {\n constructor(component, params) {\n this.component = component;\n this.params = params;\n this.state = VIEW_STATE_NEW;\n }\n async init(container) {\n this.state = VIEW_STATE_ATTACHED;\n if (!this.element) {\n const component = this.component;\n this.element = await attachComponent(this.delegate, container, component, ['ion-page', 'ion-page-invisible'], this.params);\n }\n }\n /**\n * DOM WRITE\n */\n _destroy() {\n assert(this.state !== VIEW_STATE_DESTROYED, 'view state must be ATTACHED');\n const element = this.element;\n if (element) {\n if (this.delegate) {\n this.delegate.removeViewFromDom(element.parentElement, element);\n }\n else {\n element.remove();\n }\n }\n this.nav = undefined;\n this.state = VIEW_STATE_DESTROYED;\n }\n}\nexport const matches = (view, id, params) => {\n if (!view) {\n return false;\n }\n if (view.component !== id) {\n return false;\n }\n return shallowEqualStringMap(view.params, params);\n};\nexport const convertToView = (page, params) => {\n if (!page) {\n return null;\n }\n if (page instanceof ViewController) {\n return page;\n }\n return new ViewController(page, params);\n};\nexport const convertToViews = (pages) => {\n return pages\n .map((page) => {\n if (page instanceof ViewController) {\n return page;\n }\n if ('component' in page) {\n return convertToView(page.component, page.componentProps === null ? undefined : page.componentProps);\n }\n return convertToView(page, undefined);\n })\n .filter((v) => v !== null);\n};\n",":host {\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n position: absolute;\n contain: layout size style;\n overflow: hidden;\n z-index: 0;\n}","/*!\n * (C) Ionic http://ionicframework.com - MIT License\n */\nimport { Build, h } from '@stencil/core';\nimport { getTimeGivenProgression } from \"../../utils/animation/cubic-bezier\";\nimport { assert } from \"../../utils/helpers\";\nimport { printIonWarning } from \"../../utils/logging/index\";\nimport { lifecycle, setPageHidden, transition } from \"../../utils/transition/index\";\nimport { config } from '../../global/config';\nimport { getIonMode } from '../../global/ionic-global';\nimport { LIFECYCLE_DID_LEAVE, LIFECYCLE_WILL_LEAVE, LIFECYCLE_WILL_UNLOAD } from './constants';\nimport { VIEW_STATE_ATTACHED, VIEW_STATE_DESTROYED, VIEW_STATE_NEW, convertToViews, matches } from './view-controller';\nexport class Nav {\n constructor() {\n this.transInstr = [];\n this.animationEnabled = true;\n this.useRouter = false;\n this.isTransitioning = false;\n this.destroyed = false;\n this.views = [];\n this.didLoad = false;\n this.delegate = undefined;\n this.swipeGesture = undefined;\n this.animated = true;\n this.animation = undefined;\n this.rootParams = undefined;\n this.root = undefined;\n }\n swipeGestureChanged() {\n if (this.gesture) {\n this.gesture.enable(this.swipeGesture === true);\n }\n }\n rootChanged() {\n const isDev = Build.isDev;\n if (this.root === undefined) {\n return;\n }\n if (this.didLoad === false) {\n /**\n * If the component has not loaded yet, we can skip setting up the root component.\n * It will be called when `componentDidLoad` fires.\n */\n return;\n }\n if (!this.useRouter) {\n if (this.root !== undefined) {\n this.setRoot(this.root, this.rootParams);\n }\n }\n else if (isDev) {\n printIonWarning('<ion-nav> does not support a root attribute when using ion-router.', this.el);\n }\n }\n componentWillLoad() {\n this.useRouter = document.querySelector('ion-router') !== null && this.el.closest('[no-router]') === null;\n if (this.swipeGesture === undefined) {\n const mode = getIonMode(this);\n this.swipeGesture = config.getBoolean('swipeBackEnabled', mode === 'ios');\n }\n this.ionNavWillLoad.emit();\n }\n async componentDidLoad() {\n // We want to set this flag before any watch callbacks are manually called\n this.didLoad = true;\n this.rootChanged();\n this.gesture = (await import('../../utils/gesture/swipe-back')).createSwipeBackGesture(this.el, this.canStart.bind(this), this.onStart.bind(this), this.onMove.bind(this), this.onEnd.bind(this));\n this.swipeGestureChanged();\n }\n connectedCallback() {\n this.destroyed = false;\n }\n disconnectedCallback() {\n for (const view of this.views) {\n lifecycle(view.element, LIFECYCLE_WILL_UNLOAD);\n view._destroy();\n }\n // Release swipe back gesture and transition.\n if (this.gesture) {\n this.gesture.destroy();\n this.gesture = undefined;\n }\n this.transInstr.length = 0;\n this.views.length = 0;\n this.destroyed = true;\n }\n /**\n * Push a new component onto the current navigation stack. Pass any additional\n * information along as an object. This additional information is accessible\n * through NavParams.\n *\n * @param component The component to push onto the navigation stack.\n * @param componentProps Any properties of the component.\n * @param opts The navigation options.\n * @param done The transition complete function.\n */\n push(component, componentProps, opts, done) {\n return this.insert(-1, component, componentProps, opts, done);\n }\n /**\n * Inserts a component into the navigation stack at the specified index.\n * This is useful to add a component at any point in the navigation stack.\n *\n * @param insertIndex The index to insert the component at in the stack.\n * @param component The component to insert into the navigation stack.\n * @param componentProps Any properties of the component.\n * @param opts The navigation options.\n * @param done The transition complete function.\n */\n insert(insertIndex, component, componentProps, opts, done) {\n return this.insertPages(insertIndex, [{ component, componentProps }], opts, done);\n }\n /**\n * Inserts an array of components into the navigation stack at the specified index.\n * The last component in the array will become instantiated as a view, and animate\n * in to become the active view.\n *\n * @param insertIndex The index to insert the components at in the stack.\n * @param insertComponents The components to insert into the navigation stack.\n * @param opts The navigation options.\n * @param done The transition complete function.\n */\n insertPages(insertIndex, insertComponents, opts, done) {\n return this.queueTrns({\n insertStart: insertIndex,\n insertViews: insertComponents,\n opts,\n }, done);\n }\n /**\n * Pop a component off of the navigation stack. Navigates back from the current\n * component.\n *\n * @param opts The navigation options.\n * @param done The transition complete function.\n */\n pop(opts, done) {\n return this.removeIndex(-1, 1, opts, done);\n }\n /**\n * Pop to a specific index in the navigation stack.\n *\n * @param indexOrViewCtrl The index or view controller to pop to.\n * @param opts The navigation options.\n * @param done The transition complete function.\n */\n popTo(indexOrViewCtrl, opts, done) {\n const ti = {\n removeStart: -1,\n removeCount: -1,\n opts,\n };\n if (typeof indexOrViewCtrl === 'object' && indexOrViewCtrl.component) {\n ti.removeView = indexOrViewCtrl;\n ti.removeStart = 1;\n }\n else if (typeof indexOrViewCtrl === 'number') {\n ti.removeStart = indexOrViewCtrl + 1;\n }\n return this.queueTrns(ti, done);\n }\n /**\n * Navigate back to the root of the stack, no matter how far back that is.\n *\n * @param opts The navigation options.\n * @param done The transition complete function.\n */\n popToRoot(opts, done) {\n return this.removeIndex(1, -1, opts, done);\n }\n /**\n * Removes a component from the navigation stack at the specified index.\n *\n * @param startIndex The number to begin removal at.\n * @param removeCount The number of components to remove.\n * @param opts The navigation options.\n * @param done The transition complete function.\n */\n removeIndex(startIndex, removeCount = 1, opts, done) {\n return this.queueTrns({\n removeStart: startIndex,\n removeCount,\n opts,\n }, done);\n }\n /**\n * Set the root for the current navigation stack to a component.\n *\n * @param component The component to set as the root of the navigation stack.\n * @param componentProps Any properties of the component.\n * @param opts The navigation options.\n * @param done The transition complete function.\n */\n setRoot(component, componentProps, opts, done) {\n return this.setPages([{ component, componentProps }], opts, done);\n }\n /**\n * Set the views of the current navigation stack and navigate to the last view.\n * By default animations are disabled, but they can be enabled by passing options\n * to the navigation controller. Navigation parameters can also be passed to the\n * individual pages in the array.\n *\n * @param views The list of views to set as the navigation stack.\n * @param opts The navigation options.\n * @param done The transition complete function.\n */\n setPages(views, opts, done) {\n opts !== null && opts !== void 0 ? opts : (opts = {});\n // if animation wasn't set to true then default it to NOT animate\n if (opts.animated !== true) {\n opts.animated = false;\n }\n return this.queueTrns({\n insertStart: 0,\n insertViews: views,\n removeStart: 0,\n removeCount: -1,\n opts,\n }, done);\n }\n /**\n * Called by the router to update the view.\n *\n * @param id The component tag.\n * @param params The component params.\n * @param direction A direction hint.\n * @param animation an AnimationBuilder.\n *\n * @return the status.\n * @internal\n */\n setRouteId(id, params, direction, animation) {\n const active = this.getActiveSync();\n if (matches(active, id, params)) {\n return Promise.resolve({\n changed: false,\n element: active.element,\n });\n }\n let resolve;\n const promise = new Promise((r) => (resolve = r));\n let finish;\n const commonOpts = {\n updateURL: false,\n viewIsReady: (enteringEl) => {\n let mark;\n const p = new Promise((r) => (mark = r));\n resolve({\n changed: true,\n element: enteringEl,\n markVisible: async () => {\n mark();\n await finish;\n },\n });\n return p;\n },\n };\n if (direction === 'root') {\n finish = this.setRoot(id, params, commonOpts);\n }\n else {\n // Look for a view matching the target in the view stack.\n const viewController = this.views.find((v) => matches(v, id, params));\n if (viewController) {\n finish = this.popTo(viewController, Object.assign(Object.assign({}, commonOpts), { direction: 'back', animationBuilder: animation }));\n }\n else if (direction === 'forward') {\n finish = this.push(id, params, Object.assign(Object.assign({}, commonOpts), { animationBuilder: animation }));\n }\n else if (direction === 'back') {\n finish = this.setRoot(id, params, Object.assign(Object.assign({}, commonOpts), { direction: 'back', animated: true, animationBuilder: animation }));\n }\n }\n return promise;\n }\n /**\n * Called by <ion-router> to retrieve the current component.\n *\n * @internal\n */\n async getRouteId() {\n const active = this.getActiveSync();\n if (active) {\n return {\n id: active.element.tagName,\n params: active.params,\n element: active.element,\n };\n }\n return undefined;\n }\n /**\n * Get the active view.\n */\n async getActive() {\n return this.getActiveSync();\n }\n /**\n * Get the view at the specified index.\n *\n * @param index The index of the view.\n */\n async getByIndex(index) {\n return this.views[index];\n }\n /**\n * Returns `true` if the current view can go back.\n *\n * @param view The view to check.\n */\n async canGoBack(view) {\n return this.canGoBackSync(view);\n }\n /**\n * Get the previous view.\n *\n * @param view The view to get.\n */\n async getPrevious(view) {\n return this.getPreviousSync(view);\n }\n getLength() {\n return this.views.length;\n }\n getActiveSync() {\n return this.views[this.views.length - 1];\n }\n canGoBackSync(view = this.getActiveSync()) {\n return !!(view && this.getPreviousSync(view));\n }\n getPreviousSync(view = this.getActiveSync()) {\n if (!view) {\n return undefined;\n }\n const views = this.views;\n const index = views.indexOf(view);\n return index > 0 ? views[index - 1] : undefined;\n }\n /**\n * Adds a navigation stack change to the queue and schedules it to run.\n *\n * @returns Whether the transition succeeds.\n */\n async queueTrns(ti, done) {\n var _a, _b;\n if (this.isTransitioning && ((_a = ti.opts) === null || _a === void 0 ? void 0 : _a.skipIfBusy)) {\n return false;\n }\n const promise = new Promise((resolve, reject) => {\n ti.resolve = resolve;\n ti.reject = reject;\n });\n ti.done = done;\n /**\n * If using router, check to see if navigation hooks\n * will allow us to perform this transition. This\n * is required in order for hooks to work with\n * the ion-back-button or swipe to go back.\n */\n if (ti.opts && ti.opts.updateURL !== false && this.useRouter) {\n const router = document.querySelector('ion-router');\n if (router) {\n const canTransition = await router.canTransition();\n if (canTransition === false) {\n return false;\n }\n if (typeof canTransition === 'string') {\n router.push(canTransition, ti.opts.direction || 'back');\n return false;\n }\n }\n }\n // Normalize empty\n if (((_b = ti.insertViews) === null || _b === void 0 ? void 0 : _b.length) === 0) {\n ti.insertViews = undefined;\n }\n // Enqueue transition instruction\n this.transInstr.push(ti);\n // if there isn't a transition already happening\n // then this will kick off this transition\n this.nextTrns();\n return promise;\n }\n success(result, ti) {\n if (this.destroyed) {\n this.fireError('nav controller was destroyed', ti);\n return;\n }\n if (ti.done) {\n ti.done(result.hasCompleted, result.requiresTransition, result.enteringView, result.leavingView, result.direction);\n }\n ti.resolve(result.hasCompleted);\n if (ti.opts.updateURL !== false && this.useRouter) {\n const router = document.querySelector('ion-router');\n if (router) {\n const direction = result.direction === 'back' ? 'back' : 'forward';\n router.navChanged(direction);\n }\n }\n }\n failed(rejectReason, ti) {\n if (this.destroyed) {\n this.fireError('nav controller was destroyed', ti);\n return;\n }\n this.transInstr.length = 0;\n this.fireError(rejectReason, ti);\n }\n fireError(rejectReason, ti) {\n if (ti.done) {\n ti.done(false, false, rejectReason);\n }\n if (ti.reject && !this.destroyed) {\n ti.reject(rejectReason);\n }\n else {\n ti.resolve(false);\n }\n }\n /**\n * Consumes the next transition in the queue.\n *\n * @returns whether the transition is executed.\n */\n nextTrns() {\n // this is the framework's bread 'n butta function\n // only one transition is allowed at any given time\n if (this.isTransitioning) {\n return false;\n }\n // there is no transition happening right now, executes the next instructions.\n const ti = this.transInstr.shift();\n if (!ti) {\n return false;\n }\n this.runTransition(ti);\n return true;\n }\n /** Executes all the transition instruction from the queue. */\n async runTransition(ti) {\n try {\n // set that this nav is actively transitioning\n this.ionNavWillChange.emit();\n this.isTransitioning = true;\n this.prepareTI(ti);\n const leavingView = this.getActiveSync();\n const enteringView = this.getEnteringView(ti, leavingView);\n if (!leavingView && !enteringView) {\n throw new Error('no views in the stack to be removed');\n }\n if (enteringView && enteringView.state === VIEW_STATE_NEW) {\n await enteringView.init(this.el);\n }\n this.postViewInit(enteringView, leavingView, ti);\n // Needs transition?\n const requiresTransition = (ti.enteringRequiresTransition || ti.leavingRequiresTransition) && enteringView !== leavingView;\n if (requiresTransition && ti.opts && leavingView) {\n const isBackDirection = ti.opts.direction === 'back';\n /**\n * If heading back, use the entering page's animation\n * unless otherwise specified by the developer.\n */\n if (isBackDirection) {\n ti.opts.animationBuilder = ti.opts.animationBuilder || (enteringView === null || enteringView === void 0 ? void 0 : enteringView.animationBuilder);\n }\n leavingView.animationBuilder = ti.opts.animationBuilder;\n }\n let result;\n if (requiresTransition) {\n result = await this.transition(enteringView, leavingView, ti);\n }\n else {\n // transition is not required, so we are already done!\n // they're inserting/removing the views somewhere in the middle or\n // beginning, so visually nothing needs to animate/transition\n // resolve immediately because there's no animation that's happening\n result = {\n hasCompleted: true,\n requiresTransition: false,\n };\n }\n this.success(result, ti);\n this.ionNavDidChange.emit();\n }\n catch (rejectReason) {\n this.failed(rejectReason, ti);\n }\n this.isTransitioning = false;\n this.nextTrns();\n }\n prepareTI(ti) {\n var _a, _b;\n var _c;\n const viewsLength = this.views.length;\n (_a = ti.opts) !== null && _a !== void 0 ? _a : (ti.opts = {});\n (_b = (_c = ti.opts).delegate) !== null && _b !== void 0 ? _b : (_c.delegate = this.delegate);\n if (ti.removeView !== undefined) {\n assert(ti.removeStart !== undefined, 'removeView needs removeStart');\n assert(ti.removeCount !== undefined, 'removeView needs removeCount');\n const index = this.views.indexOf(ti.removeView);\n if (index < 0) {\n throw new Error('removeView was not found');\n }\n ti.removeStart += index;\n }\n if (ti.removeStart !== undefined) {\n if (ti.removeStart < 0) {\n ti.removeStart = viewsLength - 1;\n }\n if (ti.removeCount < 0) {\n ti.removeCount = viewsLength - ti.removeStart;\n }\n ti.leavingRequiresTransition = ti.removeCount > 0 && ti.removeStart + ti.removeCount === viewsLength;\n }\n if (ti.insertViews) {\n // allow -1 to be passed in to auto push it on the end\n // and clean up the index if it's larger then the size of the stack\n if (ti.insertStart < 0 || ti.insertStart > viewsLength) {\n ti.insertStart = viewsLength;\n }\n ti.enteringRequiresTransition = ti.insertStart === viewsLength;\n }\n const insertViews = ti.insertViews;\n if (!insertViews) {\n return;\n }\n assert(insertViews.length > 0, 'length can not be zero');\n const viewControllers = convertToViews(insertViews);\n if (viewControllers.length === 0) {\n throw new Error('invalid views to insert');\n }\n // Check all the inserted view are correct\n for (const view of viewControllers) {\n view.delegate = ti.opts.delegate;\n const nav = view.nav;\n if (nav && nav !== this) {\n throw new Error('inserted view was already inserted');\n }\n if (view.state === VIEW_STATE_DESTROYED) {\n throw new Error('inserted view was already destroyed');\n }\n }\n ti.insertViews = viewControllers;\n }\n /**\n * Returns the view that will be entered considering the transition instructions.\n *\n * @param ti The instructions.\n * @param leavingView The view being left or undefined if none.\n *\n * @returns The view that will be entered, undefined if none.\n */\n getEnteringView(ti, leavingView) {\n // The last inserted view will be entered when view are inserted.\n const insertViews = ti.insertViews;\n if (insertViews !== undefined) {\n return insertViews[insertViews.length - 1];\n }\n // When views are deleted, we will enter the last view that is not removed and not the view being left.\n const removeStart = ti.removeStart;\n if (removeStart !== undefined) {\n const views = this.views;\n const removeEnd = removeStart + ti.removeCount;\n for (let i = views.length - 1; i >= 0; i--) {\n const view = views[i];\n if ((i < removeStart || i >= removeEnd) && view !== leavingView) {\n return view;\n }\n }\n }\n return undefined;\n }\n /**\n * Adds and Removes the views from the navigation stack.\n *\n * @param enteringView The view being entered.\n * @param leavingView The view being left.\n * @param ti The instructions.\n */\n postViewInit(enteringView, leavingView, ti) {\n var _a, _b, _c;\n assert(leavingView || enteringView, 'Both leavingView and enteringView are null');\n assert(ti.resolve, 'resolve must be valid');\n assert(ti.reject, 'reject must be valid');\n // Compute the views to remove.\n const opts = ti.opts;\n const { insertViews, removeStart, removeCount } = ti;\n /** Records the view to destroy */\n let destroyQueue;\n // there are views to remove\n if (removeStart !== undefined && removeCount !== undefined) {\n assert(removeStart >= 0, 'removeStart can not be negative');\n assert(removeCount >= 0, 'removeCount can not be negative');\n destroyQueue = [];\n for (let i = removeStart; i < removeStart + removeCount; i++) {\n const view = this.views[i];\n if (view !== undefined && view !== enteringView && view !== leavingView) {\n destroyQueue.push(view);\n }\n }\n // default the direction to \"back\"\n (_a = opts.direction) !== null && _a !== void 0 ? _a : (opts.direction = 'back');\n }\n const finalNumViews = this.views.length + ((_b = insertViews === null || insertViews === void 0 ? void 0 : insertViews.length) !== null && _b !== void 0 ? _b : 0) - (removeCount !== null && removeCount !== void 0 ? removeCount : 0);\n assert(finalNumViews >= 0, 'final balance can not be negative');\n if (finalNumViews === 0) {\n console.warn(`You can't remove all the pages in the navigation stack. nav.pop() is probably called too many times.`, this, this.el);\n throw new Error('navigation stack needs at least one root page');\n }\n // At this point the transition can not be rejected, any throw should be an error\n // Insert the new views in the stack.\n if (insertViews) {\n // add the views to the\n let insertIndex = ti.insertStart;\n for (const view of insertViews) {\n this.insertViewAt(view, insertIndex);\n insertIndex++;\n }\n if (ti.enteringRequiresTransition) {\n // default to forward if not already set\n (_c = opts.direction) !== null && _c !== void 0 ? _c : (opts.direction = 'forward');\n }\n }\n // if the views to be removed are in the beginning or middle\n // and there is not a view that needs to visually transition out\n // then just destroy them and don't transition anything\n // batch all of lifecycles together\n // let's make sure, callbacks are zoned\n if (destroyQueue && destroyQueue.length > 0) {\n for (const view of destroyQueue) {\n lifecycle(view.element, LIFECYCLE_WILL_LEAVE);\n lifecycle(view.element, LIFECYCLE_DID_LEAVE);\n lifecycle(view.element, LIFECYCLE_WILL_UNLOAD);\n }\n // once all lifecycle events has been delivered, we can safely detroy the views\n for (const view of destroyQueue) {\n this.destroyView(view);\n }\n }\n }\n async transition(enteringView, leavingView, ti) {\n // we should animate (duration > 0) if the pushed page is not the first one (startup)\n // or if it is a portal (modal, actionsheet, etc.)\n const opts = ti.opts;\n const progressCallback = opts.progressAnimation ? (ani) => (this.sbAni = ani) : undefined;\n const mode = getIonMode(this);\n const enteringEl = enteringView.element;\n const leavingEl = leavingView && leavingView.element;\n const animationOpts = Object.assign(Object.assign({ mode, showGoBack: this.canGoBackSync(enteringView), baseEl: this.el, progressCallback, animated: this.animated && config.getBoolean('animated', true), enteringEl,\n leavingEl }, opts), { animationBuilder: opts.animationBuilder || this.animation || config.get('navAnimation') });\n const { hasCompleted } = await transition(animationOpts);\n return this.transitionFinish(hasCompleted, enteringView, leavingView, opts);\n }\n transitionFinish(hasCompleted, enteringView, leavingView, opts) {\n /**\n * If the transition did not complete, the leavingView will still be the active\n * view on the stack. Otherwise unmount all the views after the enteringView.\n */\n const activeView = hasCompleted ? enteringView : leavingView;\n if (activeView) {\n this.unmountInactiveViews(activeView);\n }\n return {\n hasCompleted,\n requiresTransition: true,\n enteringView,\n leavingView,\n direction: opts.direction,\n };\n }\n /**\n * Inserts a view at the specified index.\n *\n * When the view already is in the stack it will be moved to the new position.\n *\n * @param view The view to insert.\n * @param index The index where to insert the view.\n */\n insertViewAt(view, index) {\n const views = this.views;\n const existingIndex = views.indexOf(view);\n if (existingIndex > -1) {\n assert(view.nav === this, 'view is not part of the nav');\n // The view already in the stack, removes it.\n views.splice(existingIndex, 1);\n // and add it back at the requested index.\n views.splice(index, 0, view);\n }\n else {\n assert(!view.nav, 'nav is used');\n // this is a new view to add to the stack\n // create the new entering view\n view.nav = this;\n views.splice(index, 0, view);\n }\n }\n /**\n * Removes a view from the stack.\n *\n * @param view The view to remove.\n */\n removeView(view) {\n assert(view.state === VIEW_STATE_ATTACHED || view.state === VIEW_STATE_DESTROYED, 'view state should be loaded or destroyed');\n const views = this.views;\n const index = views.indexOf(view);\n assert(index > -1, 'view must be part of the stack');\n if (index >= 0) {\n views.splice(index, 1);\n }\n }\n destroyView(view) {\n view._destroy();\n this.removeView(view);\n }\n /**\n * Unmounts all inactive views after the specified active view.\n *\n * DOM WRITE\n *\n * @param activeView The view that is actively visible in the stack. Used to calculate which views to unmount.\n */\n unmountInactiveViews(activeView) {\n // ok, cleanup time!! Destroy all of the views that are\n // INACTIVE and come after the active view\n // only do this if the views exist, though\n if (this.destroyed) {\n return;\n }\n const views = this.views;\n const activeViewIndex = views.indexOf(activeView);\n for (let i = views.length - 1; i >= 0; i--) {\n const view = views[i];\n /**\n * When inserting multiple views via insertPages\n * the last page will be transitioned to, but the\n * others will not be. As a result, a DOM element\n * will only be created for the last page inserted.\n * As a result, it is possible to have views in the\n * stack that do not have `view.element` yet.\n */\n const element = view.element;\n if (element) {\n if (i > activeViewIndex) {\n // this view comes after the active view\n // let's unload it\n lifecycle(element, LIFECYCLE_WILL_UNLOAD);\n this.destroyView(view);\n }\n else if (i < activeViewIndex) {\n // this view comes before the active view\n // and it is not a portal then ensure it is hidden\n setPageHidden(element, true);\n }\n }\n }\n }\n canStart() {\n return (!!this.swipeGesture &&\n !this.isTransitioning &&\n this.transInstr.length === 0 &&\n this.animationEnabled &&\n this.canGoBackSync());\n }\n onStart() {\n this.pop({ direction: 'back', progressAnimation: true });\n }\n onMove(stepValue) {\n if (this.sbAni) {\n this.sbAni.progressStep(stepValue);\n }\n }\n onEnd(shouldComplete, stepValue, dur) {\n if (this.sbAni) {\n this.animationEnabled = false;\n this.sbAni.onFinish(() => {\n this.animationEnabled = true;\n }, { oneTimeCallback: true });\n // Account for rounding errors in JS\n let newStepValue = shouldComplete ? -0.001 : 0.001;\n /**\n * Animation will be reversed here, so need to\n * reverse the easing curve as well\n *\n * Additionally, we need to account for the time relative\n * to the new easing curve, as `stepValue` is going to be given\n * in terms of a linear curve.\n */\n if (!shouldComplete) {\n this.sbAni.easing('cubic-bezier(1, 0, 0.68, 0.28)');\n newStepValue += getTimeGivenProgression([0, 0], [1, 0], [0.68, 0.28], [1, 1], stepValue)[0];\n }\n else {\n newStepValue += getTimeGivenProgression([0, 0], [0.32, 0.72], [0, 1], [1, 1], stepValue)[0];\n }\n this.sbAni.progressEnd(shouldComplete ? 1 : 0, newStepValue, dur);\n }\n }\n render() {\n return h(\"slot\", null);\n }\n static get is() { return \"ion-nav\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"nav.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"nav.css\"]\n };\n }\n static get properties() {\n return {\n \"delegate\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"FrameworkDelegate\",\n \"resolved\": \"FrameworkDelegate | undefined\",\n \"references\": {\n \"FrameworkDelegate\": {\n \"location\": \"import\",\n \"path\": \"../../interface\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"\"\n }\n },\n \"swipeGesture\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If the nav component should allow for swipe-to-go-back.\"\n },\n \"attribute\": \"swipe-gesture\",\n \"reflect\": false\n },\n \"animated\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the nav should animate the transition of components.\"\n },\n \"attribute\": \"animated\",\n \"reflect\": false,\n \"defaultValue\": \"true\"\n },\n \"animation\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"AnimationBuilder\",\n \"resolved\": \"((baseEl: any, opts?: any) => Animation) | undefined\",\n \"references\": {\n \"AnimationBuilder\": {\n \"location\": \"import\",\n \"path\": \"../../interface\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"By default `ion-nav` animates transition between pages based in the mode (ios or material design).\\nHowever, this property allows to create custom transition using `AnimationBuilder` functions.\"\n }\n },\n \"rootParams\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"ComponentProps\",\n \"resolved\": \"undefined | { [key: string]: any; }\",\n \"references\": {\n \"ComponentProps\": {\n \"location\": \"import\",\n \"path\": \"../../interface\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Any parameters for the root component\"\n }\n },\n \"root\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"NavComponent\",\n \"resolved\": \"Function | HTMLElement | ViewController | null | string | undefined\",\n \"references\": {\n \"NavComponent\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Root NavComponent to load\"\n },\n \"attribute\": \"root\",\n \"reflect\": false\n }\n };\n }\n static get events() {\n return [{\n \"method\": \"ionNavWillLoad\",\n \"name\": \"ionNavWillLoad\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }],\n \"text\": \"Event fired when Nav will load a component\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }, {\n \"method\": \"ionNavWillChange\",\n \"name\": \"ionNavWillChange\",\n \"bubbles\": false,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Event fired when the nav will change components\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }, {\n \"method\": \"ionNavDidChange\",\n \"name\": \"ionNavDidChange\",\n \"bubbles\": false,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Event fired when the nav has changed components\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }];\n }\n static get methods() {\n return {\n \"push\": {\n \"complexType\": {\n \"signature\": \"<T extends NavComponent>(component: T, componentProps?: ComponentProps<T> | null, opts?: NavOptions | null, done?: TransitionDoneFn) => Promise<boolean>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"component The component to push onto the navigation stack.\"\n }],\n \"text\": \"The component to push onto the navigation stack.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"componentProps Any properties of the component.\"\n }],\n \"text\": \"Any properties of the component.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }],\n \"text\": \"The navigation options.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }],\n \"text\": \"The transition complete function.\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"NavComponent\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"T\": {\n \"location\": \"global\"\n },\n \"ComponentProps\": {\n \"location\": \"import\",\n \"path\": \"../../interface\"\n },\n \"NavOptions\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"TransitionDoneFn\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n }\n },\n \"return\": \"Promise<boolean>\"\n },\n \"docs\": {\n \"text\": \"Push a new component onto the current navigation stack. Pass any additional\\ninformation along as an object. This additional information is accessible\\nthrough NavParams.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"component The component to push onto the navigation stack.\"\n }, {\n \"name\": \"param\",\n \"text\": \"componentProps Any properties of the component.\"\n }, {\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }, {\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }]\n }\n },\n \"insert\": {\n \"complexType\": {\n \"signature\": \"<T extends NavComponent>(insertIndex: number, component: T, componentProps?: ComponentProps<T> | null, opts?: NavOptions | null, done?: TransitionDoneFn) => Promise<boolean>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"insertIndex The index to insert the component at in the stack.\"\n }],\n \"text\": \"The index to insert the component at in the stack.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"component The component to insert into the navigation stack.\"\n }],\n \"text\": \"The component to insert into the navigation stack.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"componentProps Any properties of the component.\"\n }],\n \"text\": \"Any properties of the component.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }],\n \"text\": \"The navigation options.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }],\n \"text\": \"The transition complete function.\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"NavComponent\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"T\": {\n \"location\": \"global\"\n },\n \"ComponentProps\": {\n \"location\": \"import\",\n \"path\": \"../../interface\"\n },\n \"NavOptions\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"TransitionDoneFn\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n }\n },\n \"return\": \"Promise<boolean>\"\n },\n \"docs\": {\n \"text\": \"Inserts a component into the navigation stack at the specified index.\\nThis is useful to add a component at any point in the navigation stack.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"insertIndex The index to insert the component at in the stack.\"\n }, {\n \"name\": \"param\",\n \"text\": \"component The component to insert into the navigation stack.\"\n }, {\n \"name\": \"param\",\n \"text\": \"componentProps Any properties of the component.\"\n }, {\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }, {\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }]\n }\n },\n \"insertPages\": {\n \"complexType\": {\n \"signature\": \"(insertIndex: number, insertComponents: NavComponent[] | NavComponentWithProps[], opts?: NavOptions | null, done?: TransitionDoneFn) => Promise<boolean>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"insertIndex The index to insert the components at in the stack.\"\n }],\n \"text\": \"The index to insert the components at in the stack.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"insertComponents The components to insert into the navigation stack.\"\n }],\n \"text\": \"The components to insert into the navigation stack.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }],\n \"text\": \"The navigation options.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }],\n \"text\": \"The transition complete function.\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"NavComponent\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"NavComponentWithProps\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"NavOptions\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"TransitionDoneFn\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n }\n },\n \"return\": \"Promise<boolean>\"\n },\n \"docs\": {\n \"text\": \"Inserts an array of components into the navigation stack at the specified index.\\nThe last component in the array will become instantiated as a view, and animate\\nin to become the active view.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"insertIndex The index to insert the components at in the stack.\"\n }, {\n \"name\": \"param\",\n \"text\": \"insertComponents The components to insert into the navigation stack.\"\n }, {\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }, {\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }]\n }\n },\n \"pop\": {\n \"complexType\": {\n \"signature\": \"(opts?: NavOptions | null, done?: TransitionDoneFn) => Promise<boolean>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }],\n \"text\": \"The navigation options.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }],\n \"text\": \"The transition complete function.\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"NavOptions\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"TransitionDoneFn\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n }\n },\n \"return\": \"Promise<boolean>\"\n },\n \"docs\": {\n \"text\": \"Pop a component off of the navigation stack. Navigates back from the current\\ncomponent.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }, {\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }]\n }\n },\n \"popTo\": {\n \"complexType\": {\n \"signature\": \"(indexOrViewCtrl: number | ViewController, opts?: NavOptions | null, done?: TransitionDoneFn) => Promise<boolean>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"indexOrViewCtrl The index or view controller to pop to.\"\n }],\n \"text\": \"The index or view controller to pop to.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }],\n \"text\": \"The navigation options.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }],\n \"text\": \"The transition complete function.\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"ViewController\": {\n \"location\": \"import\",\n \"path\": \"./view-controller\"\n },\n \"NavOptions\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"TransitionDoneFn\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"TransitionInstruction\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n }\n },\n \"return\": \"Promise<boolean>\"\n },\n \"docs\": {\n \"text\": \"Pop to a specific index in the navigation stack.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"indexOrViewCtrl The index or view controller to pop to.\"\n }, {\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }, {\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }]\n }\n },\n \"popToRoot\": {\n \"complexType\": {\n \"signature\": \"(opts?: NavOptions | null, done?: TransitionDoneFn) => Promise<boolean>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }],\n \"text\": \"The navigation options.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }],\n \"text\": \"The transition complete function.\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"NavOptions\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"TransitionDoneFn\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n }\n },\n \"return\": \"Promise<boolean>\"\n },\n \"docs\": {\n \"text\": \"Navigate back to the root of the stack, no matter how far back that is.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }, {\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }]\n }\n },\n \"removeIndex\": {\n \"complexType\": {\n \"signature\": \"(startIndex: number, removeCount?: number, opts?: NavOptions | null, done?: TransitionDoneFn) => Promise<boolean>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"startIndex The number to begin removal at.\"\n }],\n \"text\": \"The number to begin removal at.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"removeCount The number of components to remove.\"\n }],\n \"text\": \"The number of components to remove.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }],\n \"text\": \"The navigation options.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }],\n \"text\": \"The transition complete function.\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"NavOptions\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"TransitionDoneFn\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n }\n },\n \"return\": \"Promise<boolean>\"\n },\n \"docs\": {\n \"text\": \"Removes a component from the navigation stack at the specified index.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"startIndex The number to begin removal at.\"\n }, {\n \"name\": \"param\",\n \"text\": \"removeCount The number of components to remove.\"\n }, {\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }, {\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }]\n }\n },\n \"setRoot\": {\n \"complexType\": {\n \"signature\": \"<T extends NavComponent>(component: T, componentProps?: ComponentProps<T> | null, opts?: NavOptions | null, done?: TransitionDoneFn) => Promise<boolean>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"component The component to set as the root of the navigation stack.\"\n }],\n \"text\": \"The component to set as the root of the navigation stack.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"componentProps Any properties of the component.\"\n }],\n \"text\": \"Any properties of the component.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }],\n \"text\": \"The navigation options.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }],\n \"text\": \"The transition complete function.\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"NavComponent\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"T\": {\n \"location\": \"global\"\n },\n \"ComponentProps\": {\n \"location\": \"import\",\n \"path\": \"../../interface\"\n },\n \"NavOptions\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"TransitionDoneFn\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n }\n },\n \"return\": \"Promise<boolean>\"\n },\n \"docs\": {\n \"text\": \"Set the root for the current navigation stack to a component.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"component The component to set as the root of the navigation stack.\"\n }, {\n \"name\": \"param\",\n \"text\": \"componentProps Any properties of the component.\"\n }, {\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }, {\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }]\n }\n },\n \"setPages\": {\n \"complexType\": {\n \"signature\": \"(views: NavComponent[] | NavComponentWithProps[], opts?: NavOptions | null, done?: TransitionDoneFn) => Promise<boolean>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"views The list of views to set as the navigation stack.\"\n }],\n \"text\": \"The list of views to set as the navigation stack.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }],\n \"text\": \"The navigation options.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }],\n \"text\": \"The transition complete function.\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"NavComponent\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"NavComponentWithProps\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"NavOptions\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n },\n \"TransitionDoneFn\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n }\n },\n \"return\": \"Promise<boolean>\"\n },\n \"docs\": {\n \"text\": \"Set the views of the current navigation stack and navigate to the last view.\\nBy default animations are disabled, but they can be enabled by passing options\\nto the navigation controller. Navigation parameters can also be passed to the\\nindividual pages in the array.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"views The list of views to set as the navigation stack.\"\n }, {\n \"name\": \"param\",\n \"text\": \"opts The navigation options.\"\n }, {\n \"name\": \"param\",\n \"text\": \"done The transition complete function.\"\n }]\n }\n },\n \"setRouteId\": {\n \"complexType\": {\n \"signature\": \"(id: string, params: ComponentProps | undefined, direction: RouterDirection, animation?: AnimationBuilder) => Promise<RouteWrite>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"id The component tag.\"\n }],\n \"text\": \"The component tag.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"params The component params.\"\n }],\n \"text\": \"The component params.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"direction A direction hint.\"\n }],\n \"text\": \"A direction hint.\"\n }, {\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"animation an AnimationBuilder.\"\n }],\n \"text\": \"an AnimationBuilder.\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"RouteWrite\": {\n \"location\": \"import\",\n \"path\": \"../router/utils/interface\"\n },\n \"ComponentProps\": {\n \"location\": \"import\",\n \"path\": \"../../interface\"\n },\n \"RouterDirection\": {\n \"location\": \"import\",\n \"path\": \"../router/utils/interface\"\n },\n \"AnimationBuilder\": {\n \"location\": \"import\",\n \"path\": \"../../interface\"\n },\n \"NavOptions\": {\n \"location\": \"import\",\n \"path\": \"./nav-interface\"\n }\n },\n \"return\": \"Promise<RouteWrite>\"\n },\n \"docs\": {\n \"text\": \"Called by the router to update the view.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"id The component tag.\"\n }, {\n \"name\": \"param\",\n \"text\": \"params The component params.\"\n }, {\n \"name\": \"param\",\n \"text\": \"direction A direction hint.\"\n }, {\n \"name\": \"param\",\n \"text\": \"animation an AnimationBuilder.\"\n }, {\n \"name\": \"return\",\n \"text\": \"the status.\"\n }, {\n \"name\": \"internal\",\n \"text\": undefined\n }]\n }\n },\n \"getRouteId\": {\n \"complexType\": {\n \"signature\": \"() => Promise<RouteID | undefined>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"RouteID\": {\n \"location\": \"import\",\n \"path\": \"../router/utils/interface\"\n }\n },\n \"return\": \"Promise<RouteID | undefined>\"\n },\n \"docs\": {\n \"text\": \"Called by <ion-router> to retrieve the current component.\",\n \"tags\": [{\n \"name\": \"internal\",\n \"text\": undefined\n }]\n }\n },\n \"getActive\": {\n \"complexType\": {\n \"signature\": \"() => Promise<ViewController | undefined>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"ViewController\": {\n \"location\": \"import\",\n \"path\": \"./view-controller\"\n }\n },\n \"return\": \"Promise<ViewController | undefined>\"\n },\n \"docs\": {\n \"text\": \"Get the active view.\",\n \"tags\": []\n }\n },\n \"getByIndex\": {\n \"complexType\": {\n \"signature\": \"(index: number) => Promise<ViewController | undefined>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"index The index of the view.\"\n }],\n \"text\": \"The index of the view.\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"ViewController\": {\n \"location\": \"import\",\n \"path\": \"./view-controller\"\n }\n },\n \"return\": \"Promise<ViewController | undefined>\"\n },\n \"docs\": {\n \"text\": \"Get the view at the specified index.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"index The index of the view.\"\n }]\n }\n },\n \"canGoBack\": {\n \"complexType\": {\n \"signature\": \"(view?: ViewController) => Promise<boolean>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"view The view to check.\"\n }],\n \"text\": \"The view to check.\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"ViewController\": {\n \"location\": \"import\",\n \"path\": \"./view-controller\"\n }\n },\n \"return\": \"Promise<boolean>\"\n },\n \"docs\": {\n \"text\": \"Returns `true` if the current view can go back.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"view The view to check.\"\n }]\n }\n },\n \"getPrevious\": {\n \"complexType\": {\n \"signature\": \"(view?: ViewController) => Promise<ViewController | undefined>\",\n \"parameters\": [{\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"view The view to get.\"\n }],\n \"text\": \"The view to get.\"\n }],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n },\n \"ViewController\": {\n \"location\": \"import\",\n \"path\": \"./view-controller\"\n }\n },\n \"return\": \"Promise<ViewController | undefined>\"\n },\n \"docs\": {\n \"text\": \"Get the previous view.\",\n \"tags\": [{\n \"name\": \"param\",\n \"text\": \"view The view to get.\"\n }]\n }\n }\n };\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"swipeGesture\",\n \"methodName\": \"swipeGestureChanged\"\n }, {\n \"propName\": \"root\",\n \"methodName\": \"rootChanged\"\n }];\n }\n}\n"],"version":3}
@@ -86,8 +86,12 @@ const Form = class {
86
86
  })
87
87
  .map((item) => {
88
88
  let result = Object.assign({}, item);
89
- if (this.translateText)
90
- result.label = _t(item.label);
89
+ if (this.translateText) {
90
+ if (result.label)
91
+ result.label = _t(item.label);
92
+ if (result.placeholder)
93
+ result.placeholder = _t(item.placeholder);
94
+ }
91
95
  if (item.options)
92
96
  result.options = this.filter(item.options, formFacet);
93
97
  return result;