@ts-for-gir/lib 3.0.0-beta.11
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.
- package/README.md +22 -0
- package/lib/conflict-resolver.d.ts +155 -0
- package/lib/conflict-resolver.js +1103 -0
- package/lib/conflict-resolver.js.map +1 -0
- package/lib/constants.d.ts +18 -0
- package/lib/constants.js +23 -0
- package/lib/constants.js.map +1 -0
- package/lib/dependency-manager.d.ts +34 -0
- package/lib/dependency-manager.js +78 -0
- package/lib/dependency-manager.js.map +1 -0
- package/lib/gir-factory.d.ts +52 -0
- package/lib/gir-factory.js +376 -0
- package/lib/gir-factory.js.map +1 -0
- package/lib/gir-module.d.ts +259 -0
- package/lib/gir-module.js +2181 -0
- package/lib/gir-module.js.map +1 -0
- package/lib/index.d.ts +14 -0
- package/lib/index.js +15 -0
- package/lib/index.js.map +1 -0
- package/lib/injection/callbacks/gjs/Gio-2.0.d.ts +2 -0
- package/lib/injection/callbacks/gjs/Gio-2.0.js +36 -0
- package/lib/injection/callbacks/gjs/Gio-2.0.js.map +1 -0
- package/lib/injection/callbacks/gjs/index.d.ts +2 -0
- package/lib/injection/callbacks/gjs/index.js +3 -0
- package/lib/injection/callbacks/gjs/index.js.map +1 -0
- package/lib/injection/callbacks/index.d.ts +4 -0
- package/lib/injection/callbacks/index.js +4 -0
- package/lib/injection/callbacks/index.js.map +1 -0
- package/lib/injection/callbacks/node-gtk/index.d.ts +2 -0
- package/lib/injection/callbacks/node-gtk/index.js +2 -0
- package/lib/injection/callbacks/node-gtk/index.js.map +1 -0
- package/lib/injection/classes/GLib-2-0.d.ts +2 -0
- package/lib/injection/classes/GLib-2-0.js +35 -0
- package/lib/injection/classes/GLib-2-0.js.map +1 -0
- package/lib/injection/classes/gjs/GLib-2.0.d.ts +2 -0
- package/lib/injection/classes/gjs/GLib-2.0.js +205 -0
- package/lib/injection/classes/gjs/GLib-2.0.js.map +1 -0
- package/lib/injection/classes/gjs/GObject-2.0.d.ts +2 -0
- package/lib/injection/classes/gjs/GObject-2.0.js +634 -0
- package/lib/injection/classes/gjs/GObject-2.0.js.map +1 -0
- package/lib/injection/classes/gjs/Gio-2.0.d.ts +5 -0
- package/lib/injection/classes/gjs/Gio-2.0.js +218 -0
- package/lib/injection/classes/gjs/Gio-2.0.js.map +1 -0
- package/lib/injection/classes/gjs/index.d.ts +2 -0
- package/lib/injection/classes/gjs/index.js +5 -0
- package/lib/injection/classes/gjs/index.js.map +1 -0
- package/lib/injection/classes/index.d.ts +4 -0
- package/lib/injection/classes/index.js +5 -0
- package/lib/injection/classes/index.js.map +1 -0
- package/lib/injection/classes/node-gtk/GLib-2.0.d.ts +2 -0
- package/lib/injection/classes/node-gtk/GLib-2.0.js +19 -0
- package/lib/injection/classes/node-gtk/GLib-2.0.js.map +1 -0
- package/lib/injection/classes/node-gtk/GObject-2.0.d.ts +2 -0
- package/lib/injection/classes/node-gtk/GObject-2.0.js +66 -0
- package/lib/injection/classes/node-gtk/GObject-2.0.js.map +1 -0
- package/lib/injection/classes/node-gtk/Gdk-4.0.d.ts +2 -0
- package/lib/injection/classes/node-gtk/Gdk-4.0.js +32 -0
- package/lib/injection/classes/node-gtk/Gdk-4.0.js.map +1 -0
- package/lib/injection/classes/node-gtk/Gio-2.0.d.ts +2 -0
- package/lib/injection/classes/node-gtk/Gio-2.0.js +14 -0
- package/lib/injection/classes/node-gtk/Gio-2.0.js.map +1 -0
- package/lib/injection/classes/node-gtk/Graphene-1.0.d.ts +2 -0
- package/lib/injection/classes/node-gtk/Graphene-1.0.js +133 -0
- package/lib/injection/classes/node-gtk/Graphene-1.0.js.map +1 -0
- package/lib/injection/classes/node-gtk/Gtk-3.0.d.ts +2 -0
- package/lib/injection/classes/node-gtk/Gtk-3.0.js +31 -0
- package/lib/injection/classes/node-gtk/Gtk-3.0.js.map +1 -0
- package/lib/injection/classes/node-gtk/Gtk-4.0.d.ts +2 -0
- package/lib/injection/classes/node-gtk/Gtk-4.0.js +52 -0
- package/lib/injection/classes/node-gtk/Gtk-4.0.js.map +1 -0
- package/lib/injection/classes/node-gtk/Pango-1.0.d.ts +2 -0
- package/lib/injection/classes/node-gtk/Pango-1.0.js +31 -0
- package/lib/injection/classes/node-gtk/Pango-1.0.js.map +1 -0
- package/lib/injection/classes/node-gtk/index.d.ts +2 -0
- package/lib/injection/classes/node-gtk/index.js +19 -0
- package/lib/injection/classes/node-gtk/index.js.map +1 -0
- package/lib/injection/index.d.ts +3 -0
- package/lib/injection/index.js +4 -0
- package/lib/injection/index.js.map +1 -0
- package/lib/injection/injector.d.ts +17 -0
- package/lib/injection/injector.js +139 -0
- package/lib/injection/injector.js.map +1 -0
- package/lib/logger.d.ts +36 -0
- package/lib/logger.js +137 -0
- package/lib/logger.js.map +1 -0
- package/lib/messages.d.ts +31 -0
- package/lib/messages.js +46 -0
- package/lib/messages.js.map +1 -0
- package/lib/symtable.d.ts +24 -0
- package/lib/symtable.js +63 -0
- package/lib/symtable.js.map +1 -0
- package/lib/template-processor.d.ts +74 -0
- package/lib/template-processor.js +165 -0
- package/lib/template-processor.js.map +1 -0
- package/lib/transformation.d.ts +156 -0
- package/lib/transformation.js +524 -0
- package/lib/transformation.js.map +1 -0
- package/lib/types/answer-version.d.ts +4 -0
- package/lib/types/answer-version.js +2 -0
- package/lib/types/answer-version.js.map +1 -0
- package/lib/types/build-type.d.ts +1 -0
- package/lib/types/build-type.js +2 -0
- package/lib/types/build-type.js.map +1 -0
- package/lib/types/class-parent.d.ts +13 -0
- package/lib/types/class-parent.js +2 -0
- package/lib/types/class-parent.js.map +1 -0
- package/lib/types/config-flags.d.ts +4 -0
- package/lib/types/config-flags.js +2 -0
- package/lib/types/config-flags.js.map +1 -0
- package/lib/types/conflict-child-element.d.ts +10 -0
- package/lib/types/conflict-child-element.js +2 -0
- package/lib/types/conflict-child-element.js.map +1 -0
- package/lib/types/conflict-grouped-element.d.ts +6 -0
- package/lib/types/conflict-grouped-element.js +2 -0
- package/lib/types/conflict-grouped-element.js.map +1 -0
- package/lib/types/conflict-grouped-elements.d.ts +4 -0
- package/lib/types/conflict-grouped-elements.js +2 -0
- package/lib/types/conflict-grouped-elements.js.map +1 -0
- package/lib/types/construct-name.d.ts +1 -0
- package/lib/types/construct-name.js +2 -0
- package/lib/types/construct-name.js.map +1 -0
- package/lib/types/dependency-map.d.ts +4 -0
- package/lib/types/dependency-map.js +2 -0
- package/lib/types/dependency-map.js.map +1 -0
- package/lib/types/dependency.d.ts +15 -0
- package/lib/types/dependency.js +2 -0
- package/lib/types/dependency.js.map +1 -0
- package/lib/types/environment.d.ts +1 -0
- package/lib/types/environment.js +2 -0
- package/lib/types/environment.js.map +1 -0
- package/lib/types/file-info.d.ts +14 -0
- package/lib/types/file-info.js +2 -0
- package/lib/types/file-info.js.map +1 -0
- package/lib/types/generate-config.d.ts +34 -0
- package/lib/types/generate-config.js +2 -0
- package/lib/types/generate-config.js.map +1 -0
- package/lib/types/gir-alias-element.d.ts +13 -0
- package/lib/types/gir-alias-element.js +2 -0
- package/lib/types/gir-alias-element.js.map +1 -0
- package/lib/types/gir-annotation.d.ts +9 -0
- package/lib/types/gir-annotation.js +2 -0
- package/lib/types/gir-annotation.js.map +1 -0
- package/lib/types/gir-any-element.d.ts +2 -0
- package/lib/types/gir-any-element.js +2 -0
- package/lib/types/gir-any-element.js.map +1 -0
- package/lib/types/gir-any-type.d.ts +5 -0
- package/lib/types/gir-any-type.js +2 -0
- package/lib/types/gir-any-type.js.map +1 -0
- package/lib/types/gir-array-type.d.ts +20 -0
- package/lib/types/gir-array-type.js +3 -0
- package/lib/types/gir-array-type.js.map +1 -0
- package/lib/types/gir-bitfield-element.d.ts +17 -0
- package/lib/types/gir-bitfield-element.js +2 -0
- package/lib/types/gir-bitfield-element.js.map +1 -0
- package/lib/types/gir-boolean.d.ts +1 -0
- package/lib/types/gir-boolean.js +2 -0
- package/lib/types/gir-boolean.js.map +1 -0
- package/lib/types/gir-boxed-element.d.ts +15 -0
- package/lib/types/gir-boxed-element.js +2 -0
- package/lib/types/gir-boxed-element.js.map +1 -0
- package/lib/types/gir-c-include.d.ts +7 -0
- package/lib/types/gir-c-include.js +2 -0
- package/lib/types/gir-c-include.js.map +1 -0
- package/lib/types/gir-callable-attrs.d.ts +15 -0
- package/lib/types/gir-callable-attrs.js +3 -0
- package/lib/types/gir-callable-attrs.js.map +1 -0
- package/lib/types/gir-callable-param-element.d.ts +30 -0
- package/lib/types/gir-callable-param-element.js +2 -0
- package/lib/types/gir-callable-param-element.js.map +1 -0
- package/lib/types/gir-callable-param.d.ts +7 -0
- package/lib/types/gir-callable-param.js +2 -0
- package/lib/types/gir-callable-param.js.map +1 -0
- package/lib/types/gir-callable-return.d.ts +22 -0
- package/lib/types/gir-callable-return.js +2 -0
- package/lib/types/gir-callable-return.js.map +1 -0
- package/lib/types/gir-callback-element.d.ts +15 -0
- package/lib/types/gir-callback-element.js +2 -0
- package/lib/types/gir-callback-element.js.map +1 -0
- package/lib/types/gir-class-element.d.ts +48 -0
- package/lib/types/gir-class-element.js +2 -0
- package/lib/types/gir-class-element.js.map +1 -0
- package/lib/types/gir-constant-element.d.ts +15 -0
- package/lib/types/gir-constant-element.js +2 -0
- package/lib/types/gir-constant-element.js.map +1 -0
- package/lib/types/gir-constructor-element.d.ts +8 -0
- package/lib/types/gir-constructor-element.js +2 -0
- package/lib/types/gir-constructor-element.js.map +1 -0
- package/lib/types/gir-direction.d.ts +5 -0
- package/lib/types/gir-direction.js +7 -0
- package/lib/types/gir-direction.js.map +1 -0
- package/lib/types/gir-doc-element.d.ts +68 -0
- package/lib/types/gir-doc-element.js +2 -0
- package/lib/types/gir-doc-element.js.map +1 -0
- package/lib/types/gir-enum-element.d.ts +19 -0
- package/lib/types/gir-enum-element.js +2 -0
- package/lib/types/gir-enum-element.js.map +1 -0
- package/lib/types/gir-field-element.d.ts +18 -0
- package/lib/types/gir-field-element.js +2 -0
- package/lib/types/gir-field-element.js.map +1 -0
- package/lib/types/gir-function-element.d.ts +8 -0
- package/lib/types/gir-function-element.js +2 -0
- package/lib/types/gir-function-element.js.map +1 -0
- package/lib/types/gir-implements.d.ts +8 -0
- package/lib/types/gir-implements.js +2 -0
- package/lib/types/gir-implements.js.map +1 -0
- package/lib/types/gir-include.d.ts +9 -0
- package/lib/types/gir-include.js +2 -0
- package/lib/types/gir-include.js.map +1 -0
- package/lib/types/gir-info-attrs.d.ts +13 -0
- package/lib/types/gir-info-attrs.js +2 -0
- package/lib/types/gir-info-attrs.js.map +1 -0
- package/lib/types/gir-info-elements.d.ts +5 -0
- package/lib/types/gir-info-elements.js +2 -0
- package/lib/types/gir-info-elements.js.map +1 -0
- package/lib/types/gir-instance-parameter.d.ts +21 -0
- package/lib/types/gir-instance-parameter.js +2 -0
- package/lib/types/gir-instance-parameter.js.map +1 -0
- package/lib/types/gir-interface-element.d.ts +31 -0
- package/lib/types/gir-interface-element.js +2 -0
- package/lib/types/gir-interface-element.js.map +1 -0
- package/lib/types/gir-member-element.d.ts +17 -0
- package/lib/types/gir-member-element.js +2 -0
- package/lib/types/gir-member-element.js.map +1 -0
- package/lib/types/gir-method-element.d.ts +13 -0
- package/lib/types/gir-method-element.js +2 -0
- package/lib/types/gir-method-element.js.map +1 -0
- package/lib/types/gir-module-resolved-by.d.ts +10 -0
- package/lib/types/gir-module-resolved-by.js +2 -0
- package/lib/types/gir-module-resolved-by.js.map +1 -0
- package/lib/types/gir-modules-grouped-map.d.ts +4 -0
- package/lib/types/gir-modules-grouped-map.js +2 -0
- package/lib/types/gir-modules-grouped-map.js.map +1 -0
- package/lib/types/gir-modules-grouped.d.ts +12 -0
- package/lib/types/gir-modules-grouped.js +2 -0
- package/lib/types/gir-modules-grouped.js.map +1 -0
- package/lib/types/gir-namespace.d.ts +30 -0
- package/lib/types/gir-namespace.js +2 -0
- package/lib/types/gir-namespace.js.map +1 -0
- package/lib/types/gir-package.d.ts +7 -0
- package/lib/types/gir-package.js +2 -0
- package/lib/types/gir-package.js.map +1 -0
- package/lib/types/gir-prerequisite.d.ts +5 -0
- package/lib/types/gir-prerequisite.js +2 -0
- package/lib/types/gir-prerequisite.js.map +1 -0
- package/lib/types/gir-property-element.d.ts +21 -0
- package/lib/types/gir-property-element.js +2 -0
- package/lib/types/gir-property-element.js.map +1 -0
- package/lib/types/gir-record-element.d.ts +30 -0
- package/lib/types/gir-record-element.js +2 -0
- package/lib/types/gir-record-element.js.map +1 -0
- package/lib/types/gir-repository.d.ts +16 -0
- package/lib/types/gir-repository.js +2 -0
- package/lib/types/gir-repository.js.map +1 -0
- package/lib/types/gir-signal.d.ts +25 -0
- package/lib/types/gir-signal.js +2 -0
- package/lib/types/gir-signal.js.map +1 -0
- package/lib/types/gir-transfer-ownership-type.d.ts +5 -0
- package/lib/types/gir-transfer-ownership-type.js +7 -0
- package/lib/types/gir-transfer-ownership-type.js.map +1 -0
- package/lib/types/gir-transfer-ownership.d.ts +5 -0
- package/lib/types/gir-transfer-ownership.js +2 -0
- package/lib/types/gir-transfer-ownership.js.map +1 -0
- package/lib/types/gir-type.d.ts +14 -0
- package/lib/types/gir-type.js +2 -0
- package/lib/types/gir-type.js.map +1 -0
- package/lib/types/gir-union-element.d.ts +22 -0
- package/lib/types/gir-union-element.js +2 -0
- package/lib/types/gir-union-element.js.map +1 -0
- package/lib/types/gir-unparsed-number.d.ts +2 -0
- package/lib/types/gir-unparsed-number.js +2 -0
- package/lib/types/gir-unparsed-number.js.map +1 -0
- package/lib/types/gir-var-args.d.ts +5 -0
- package/lib/types/gir-var-args.js +2 -0
- package/lib/types/gir-var-args.js.map +1 -0
- package/lib/types/gir-virtual-method.d.ts +10 -0
- package/lib/types/gir-virtual-method.js +2 -0
- package/lib/types/gir-virtual-method.js.map +1 -0
- package/lib/types/index.d.ts +119 -0
- package/lib/types/index.js +120 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/inheritance-table.d.ts +3 -0
- package/lib/types/inheritance-table.js +2 -0
- package/lib/types/inheritance-table.js.map +1 -0
- package/lib/types/injection-callback.d.ts +16 -0
- package/lib/types/injection-callback.js +2 -0
- package/lib/types/injection-callback.js.map +1 -0
- package/lib/types/injection-class.d.ts +25 -0
- package/lib/types/injection-class.js +2 -0
- package/lib/types/injection-class.js.map +1 -0
- package/lib/types/injection-function.d.ts +7 -0
- package/lib/types/injection-function.js +2 -0
- package/lib/types/injection-function.js.map +1 -0
- package/lib/types/injection-generic-parameter.d.ts +2 -0
- package/lib/types/injection-generic-parameter.js +2 -0
- package/lib/types/injection-generic-parameter.js.map +1 -0
- package/lib/types/injection-instance-parameter.d.ts +2 -0
- package/lib/types/injection-instance-parameter.js +2 -0
- package/lib/types/injection-instance-parameter.js.map +1 -0
- package/lib/types/injection-parameter.d.ts +8 -0
- package/lib/types/injection-parameter.js +2 -0
- package/lib/types/injection-parameter.js.map +1 -0
- package/lib/types/injection-property.d.ts +4 -0
- package/lib/types/injection-property.js +2 -0
- package/lib/types/injection-property.js.map +1 -0
- package/lib/types/injection-type.d.ts +2 -0
- package/lib/types/injection-type.js +2 -0
- package/lib/types/injection-type.js.map +1 -0
- package/lib/types/injection.d.ts +5 -0
- package/lib/types/injection.js +2 -0
- package/lib/types/injection.js.map +1 -0
- package/lib/types/local-name-check.d.ts +4 -0
- package/lib/types/local-name-check.js +2 -0
- package/lib/types/local-name-check.js.map +1 -0
- package/lib/types/local-name-type.d.ts +1 -0
- package/lib/types/local-name-type.js +2 -0
- package/lib/types/local-name-type.js.map +1 -0
- package/lib/types/local-name.d.ts +7 -0
- package/lib/types/local-name.js +2 -0
- package/lib/types/local-name.js.map +1 -0
- package/lib/types/local-names.d.ts +4 -0
- package/lib/types/local-names.js +2 -0
- package/lib/types/local-names.js.map +1 -0
- package/lib/types/module-type.d.ts +1 -0
- package/lib/types/module-type.js +2 -0
- package/lib/types/module-type.js.map +1 -0
- package/lib/types/parsed-gir.d.ts +4 -0
- package/lib/types/parsed-gir.js +2 -0
- package/lib/types/parsed-gir.js.map +1 -0
- package/lib/types/part-of-class.d.ts +7 -0
- package/lib/types/part-of-class.js +2 -0
- package/lib/types/part-of-class.js.map +1 -0
- package/lib/types/part-of-module.d.ts +6 -0
- package/lib/types/part-of-module.js +2 -0
- package/lib/types/part-of-module.js.map +1 -0
- package/lib/types/promisify-func.d.ts +7 -0
- package/lib/types/promisify-func.js +2 -0
- package/lib/types/promisify-func.js.map +1 -0
- package/lib/types/resolve-type.d.ts +4 -0
- package/lib/types/resolve-type.js +6 -0
- package/lib/types/resolve-type.js.map +1 -0
- package/lib/types/sym-table-items.d.ts +4 -0
- package/lib/types/sym-table-items.js +2 -0
- package/lib/types/sym-table-items.js.map +1 -0
- package/lib/types/transformation-case.d.ts +1 -0
- package/lib/types/transformation-case.js +2 -0
- package/lib/types/transformation-case.js.map +1 -0
- package/lib/types/transformations.d.ts +11 -0
- package/lib/types/transformations.js +2 -0
- package/lib/types/transformations.js.map +1 -0
- package/lib/types/ts-alias.d.ts +10 -0
- package/lib/types/ts-alias.js +2 -0
- package/lib/types/ts-alias.js.map +1 -0
- package/lib/types/ts-callback-interface.d.ts +10 -0
- package/lib/types/ts-callback-interface.js +2 -0
- package/lib/types/ts-callback-interface.js.map +1 -0
- package/lib/types/ts-callback.d.ts +17 -0
- package/lib/types/ts-callback.js +2 -0
- package/lib/types/ts-callback.js.map +1 -0
- package/lib/types/ts-class.d.ts +85 -0
- package/lib/types/ts-class.js +2 -0
- package/lib/types/ts-class.js.map +1 -0
- package/lib/types/ts-doc-tag.d.ts +21 -0
- package/lib/types/ts-doc-tag.js +2 -0
- package/lib/types/ts-doc-tag.js.map +1 -0
- package/lib/types/ts-doc.d.ts +16 -0
- package/lib/types/ts-doc.js +2 -0
- package/lib/types/ts-doc.js.map +1 -0
- package/lib/types/ts-enum.d.ts +12 -0
- package/lib/types/ts-enum.js +2 -0
- package/lib/types/ts-enum.js.map +1 -0
- package/lib/types/ts-function.d.ts +55 -0
- package/lib/types/ts-function.js +2 -0
- package/lib/types/ts-function.js.map +1 -0
- package/lib/types/ts-generic-parameter.d.ts +8 -0
- package/lib/types/ts-generic-parameter.js +2 -0
- package/lib/types/ts-generic-parameter.js.map +1 -0
- package/lib/types/ts-instance-parameter.d.ts +4 -0
- package/lib/types/ts-instance-parameter.js +2 -0
- package/lib/types/ts-instance-parameter.js.map +1 -0
- package/lib/types/ts-member.d.ts +10 -0
- package/lib/types/ts-member.js +2 -0
- package/lib/types/ts-member.js.map +1 -0
- package/lib/types/ts-method.d.ts +5 -0
- package/lib/types/ts-method.js +2 -0
- package/lib/types/ts-method.js.map +1 -0
- package/lib/types/ts-parameter.d.ts +15 -0
- package/lib/types/ts-parameter.js +2 -0
- package/lib/types/ts-parameter.js.map +1 -0
- package/lib/types/ts-property.d.ts +17 -0
- package/lib/types/ts-property.js +2 -0
- package/lib/types/ts-property.js.map +1 -0
- package/lib/types/ts-signal.d.ts +17 -0
- package/lib/types/ts-signal.js +2 -0
- package/lib/types/ts-signal.js.map +1 -0
- package/lib/types/ts-type-name.d.ts +1 -0
- package/lib/types/ts-type-name.js +2 -0
- package/lib/types/ts-type-name.js.map +1 -0
- package/lib/types/ts-type-separator.d.ts +1 -0
- package/lib/types/ts-type-separator.js +2 -0
- package/lib/types/ts-type-separator.js.map +1 -0
- package/lib/types/ts-type.d.ts +26 -0
- package/lib/types/ts-type.js +2 -0
- package/lib/types/ts-type.js.map +1 -0
- package/lib/types/ts-var.d.ts +17 -0
- package/lib/types/ts-var.js +2 -0
- package/lib/types/ts-var.js.map +1 -0
- package/lib/types/type-gir-alias.d.ts +2 -0
- package/lib/types/type-gir-alias.js +2 -0
- package/lib/types/type-gir-alias.js.map +1 -0
- package/lib/types/type-gir-class.d.ts +2 -0
- package/lib/types/type-gir-class.js +2 -0
- package/lib/types/type-gir-class.js.map +1 -0
- package/lib/types/type-gir-element.d.ts +3 -0
- package/lib/types/type-gir-element.js +2 -0
- package/lib/types/type-gir-element.js.map +1 -0
- package/lib/types/type-gir-enumeration-member.d.ts +2 -0
- package/lib/types/type-gir-enumeration-member.js +2 -0
- package/lib/types/type-gir-enumeration-member.js.map +1 -0
- package/lib/types/type-gir-enumeration.d.ts +2 -0
- package/lib/types/type-gir-enumeration.js +2 -0
- package/lib/types/type-gir-enumeration.js.map +1 -0
- package/lib/types/type-gir-function.d.ts +1 -0
- package/lib/types/type-gir-function.js +2 -0
- package/lib/types/type-gir-function.js.map +1 -0
- package/lib/types/type-gir-interface.d.ts +2 -0
- package/lib/types/type-gir-interface.js +2 -0
- package/lib/types/type-gir-interface.js.map +1 -0
- package/lib/types/type-gir-method.d.ts +2 -0
- package/lib/types/type-gir-method.js +2 -0
- package/lib/types/type-gir-method.js.map +1 -0
- package/lib/types/type-gir-parameter.d.ts +1 -0
- package/lib/types/type-gir-parameter.js +2 -0
- package/lib/types/type-gir-parameter.js.map +1 -0
- package/lib/types/type-gir-property.d.ts +2 -0
- package/lib/types/type-gir-property.js +2 -0
- package/lib/types/type-gir-property.js.map +1 -0
- package/lib/types/type-gir-variable.d.ts +1 -0
- package/lib/types/type-gir-variable.js +2 -0
- package/lib/types/type-gir-variable.js.map +1 -0
- package/lib/types/type-ts-element.d.ts +3 -0
- package/lib/types/type-ts-element.js +2 -0
- package/lib/types/type-ts-element.js.map +1 -0
- package/lib/types/type-ts-enumeration-member.d.ts +2 -0
- package/lib/types/type-ts-enumeration-member.js +2 -0
- package/lib/types/type-ts-enumeration-member.js.map +1 -0
- package/lib/types/type-ts-function.d.ts +1 -0
- package/lib/types/type-ts-function.js +2 -0
- package/lib/types/type-ts-function.js.map +1 -0
- package/lib/types/type-ts-property.d.ts +1 -0
- package/lib/types/type-ts-property.js +2 -0
- package/lib/types/type-ts-property.js.map +1 -0
- package/lib/types/user-config-load-result.d.ts +6 -0
- package/lib/types/user-config-load-result.js +2 -0
- package/lib/types/user-config-load-result.js.map +1 -0
- package/lib/types/user-config.d.ts +42 -0
- package/lib/types/user-config.js +2 -0
- package/lib/types/user-config.js.map +1 -0
- package/lib/utils.d.ts +262 -0
- package/lib/utils.js +366 -0
- package/lib/utils.js.map +1 -0
- package/package.json +68 -0
- package/templates/Cogl-2.0.d.ts +0 -0
- package/templates/Gjs/GObject-2.0.d.ts +238 -0
- package/templates/Gjs/Gio-2.0.d.ts +101 -0
- package/templates/Gjs/Gjs.d.ts +204 -0
- package/templates/Gjs/Gjs.js +21 -0
- package/templates/Gjs/GnomeShell.d.ts +154 -0
- package/templates/Gjs/GnomeShell.js +10 -0
- package/templates/Gjs/index.d.ts +594 -0
- package/templates/Gjs/index.js +4 -0
- package/templates/Gjs/misc/dbusUtils.d.ts +15 -0
- package/templates/Gjs/misc/dbusUtils.js +6 -0
- package/templates/Gjs/misc/extensionUtils.d.ts +99 -0
- package/templates/Gjs/misc/extensionUtils.js +6 -0
- package/templates/Gjs/misc/fileUtils.d.ts +51 -0
- package/templates/Gjs/misc/fileUtils.js +6 -0
- package/templates/Gjs/misc/gnomeSession.d.ts +74 -0
- package/templates/Gjs/misc/gnomeSession.js +6 -0
- package/templates/Gjs/misc/parentalControlsManager.d.ts +42 -0
- package/templates/Gjs/misc/parentalControlsManager.js +6 -0
- package/templates/Gjs/misc/signals.d.ts +15 -0
- package/templates/Gjs/misc/signals.js +6 -0
- package/templates/Gjs/module.d.ts +6 -0
- package/templates/Gjs/module.js +16 -0
- package/templates/Gjs/tsconfig.alias.json +10 -0
- package/templates/Gjs/ui/accessDialog.d.ts +19 -0
- package/templates/Gjs/ui/accessDialog.js +6 -0
- package/templates/Gjs/ui/altTab.d.ts +124 -0
- package/templates/Gjs/ui/altTab.js +6 -0
- package/templates/Gjs/ui/animation.d.ts +58 -0
- package/templates/Gjs/ui/animation.js +6 -0
- package/templates/Gjs/ui/appDisplay.d.ts +204 -0
- package/templates/Gjs/ui/appDisplay.js +6 -0
- package/templates/Gjs/ui/appFavorites.d.ts +34 -0
- package/templates/Gjs/ui/appFavorites.js +6 -0
- package/templates/Gjs/ui/appMenu.d.ts +74 -0
- package/templates/Gjs/ui/appMenu.js +6 -0
- package/templates/Gjs/ui/audioDeviceSelection.d.ts +51 -0
- package/templates/Gjs/ui/audioDeviceSelection.js +6 -0
- package/templates/Gjs/ui/background.d.ts +255 -0
- package/templates/Gjs/ui/background.js +5 -0
- package/templates/Gjs/ui/backgroundMenu.d.ts +19 -0
- package/templates/Gjs/ui/backgroundMenu.js +5 -0
- package/templates/Gjs/ui/barLevel.d.ts +42 -0
- package/templates/Gjs/ui/barLevel.js +5 -0
- package/templates/Gjs/ui/boxpointer.d.ts +103 -0
- package/templates/Gjs/ui/boxpointer.js +5 -0
- package/templates/Gjs/ui/calendar.d.ts +261 -0
- package/templates/Gjs/ui/calendar.js +5 -0
- package/templates/Gjs/ui/checkBox.d.ts +22 -0
- package/templates/Gjs/ui/checkBox.js +5 -0
- package/templates/Gjs/ui/closeDialog.d.ts +40 -0
- package/templates/Gjs/ui/closeDialog.js +5 -0
- package/templates/Gjs/ui/components/__init__.d.ts +9 -0
- package/templates/Gjs/ui/components/__init__.js +6 -0
- package/templates/Gjs/ui/components/automountManager.d.ts +8 -0
- package/templates/Gjs/ui/components/automountManager.js +6 -0
- package/templates/Gjs/ui/components/autorunManager.d.ts +8 -0
- package/templates/Gjs/ui/components/autorunManager.js +6 -0
- package/templates/Gjs/ui/components/index.d.ts +6 -0
- package/templates/Gjs/ui/components/index.js +6 -0
- package/templates/Gjs/ui/components/keyring.d.ts +19 -0
- package/templates/Gjs/ui/components/keyring.js +6 -0
- package/templates/Gjs/ui/components/networkAgent.d.ts +10 -0
- package/templates/Gjs/ui/components/networkAgent.js +6 -0
- package/templates/Gjs/ui/components/polkitAgent.d.ts +19 -0
- package/templates/Gjs/ui/components/polkitAgent.js +6 -0
- package/templates/Gjs/ui/components/telepathyClient.d.ts +10 -0
- package/templates/Gjs/ui/components/telepathyClient.js +6 -0
- package/templates/Gjs/ui/dialog.d.ts +78 -0
- package/templates/Gjs/ui/dialog.js +6 -0
- package/templates/Gjs/ui/dnd.d.ts +127 -0
- package/templates/Gjs/ui/dnd.js +6 -0
- package/templates/Gjs/ui/iconGrid.d.ts +172 -0
- package/templates/Gjs/ui/iconGrid.js +6 -0
- package/templates/Gjs/ui/layout.d.ts +311 -0
- package/templates/Gjs/ui/layout.js +6 -0
- package/templates/Gjs/ui/main.d.ts +215 -0
- package/templates/Gjs/ui/main.js +6 -0
- package/templates/Gjs/ui/messageList.d.ts +113 -0
- package/templates/Gjs/ui/messageList.js +6 -0
- package/templates/Gjs/ui/messageTray.d.ts +423 -0
- package/templates/Gjs/ui/messageTray.js +6 -0
- package/templates/Gjs/ui/modalDialog.d.ts +96 -0
- package/templates/Gjs/ui/modalDialog.js +6 -0
- package/templates/Gjs/ui/mpris.d.ts +78 -0
- package/templates/Gjs/ui/mpris.js +6 -0
- package/templates/Gjs/ui/notificationDaemon.d.ts +5 -0
- package/templates/Gjs/ui/notificationDaemon.js +6 -0
- package/templates/Gjs/ui/panel.d.ts +65 -0
- package/templates/Gjs/ui/panel.js +6 -0
- package/templates/Gjs/ui/panelMenu.d.ts +51 -0
- package/templates/Gjs/ui/panelMenu.js +6 -0
- package/templates/Gjs/ui/popupMenu.d.ts +228 -0
- package/templates/Gjs/ui/popupMenu.js +6 -0
- package/templates/Gjs/ui/ripples.d.ts +44 -0
- package/templates/Gjs/ui/ripples.js +6 -0
- package/templates/Gjs/ui/search.d.ts +158 -0
- package/templates/Gjs/ui/search.js +6 -0
- package/templates/Gjs/ui/switcherPopup.d.ts +107 -0
- package/templates/Gjs/ui/switcherPopup.js +6 -0
- package/templates/Gjs/ui/userWidget.d.ts +13 -0
- package/templates/Gjs/ui/userWidget.js +6 -0
- package/templates/Granite-1.0.d.ts +7 -0
- package/templates/Granite-7.0.d.ts +7 -0
- package/templates/GstBase-0.10.d.ts +5 -0
- package/templates/RygelServer-2.6.d.ts +3 -0
- package/templates/node-gtk/GObject-2.0.d.ts +57 -0
- package/templates/node-gtk/index.d.ts +40 -0
- package/templates/node-gtk/index.js +9 -0
- package/templates/node-gtk/module.d.ts +6 -0
- package/templates/node-gtk/module.js +17 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/panelMenu.js
|
|
2
|
+
|
|
3
|
+
<% const St = dep.find('St') %>
|
|
4
|
+
|
|
5
|
+
<%_ if(noNamespace){ _%>
|
|
6
|
+
import type * as St from '../<%= St.packageName %>.js';
|
|
7
|
+
<%_ } else { _%>
|
|
8
|
+
import type St from '../<%= St.packageName %>.js';
|
|
9
|
+
<%_ } _%>
|
|
10
|
+
|
|
11
|
+
import type { PopupMenu, PopupDummyMenu } from './popupMenu.js';
|
|
12
|
+
|
|
13
|
+
declare namespace ButtonBox {
|
|
14
|
+
interface ConstructorProperties {
|
|
15
|
+
style_class?: string;
|
|
16
|
+
x_expand: boolean;
|
|
17
|
+
y_expand: boolean;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare class ButtonBox extends St.Widget {
|
|
22
|
+
constructor(params?: ButtonBox.ConstructorProperties);
|
|
23
|
+
// /** @hidden Defined to resolve version conflicts */
|
|
24
|
+
// _init(params: St.Widget.ConstructorProperties): void;
|
|
25
|
+
_init(params: ButtonBox.ConstructorProperties): void;
|
|
26
|
+
container: St.Bin;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
export class Button extends ButtonBox {
|
|
31
|
+
menu: PopupMenu | PopupDummyMenu;
|
|
32
|
+
constructor(menuAlignment: number, nameText: string, dontCreateMenu?: boolean);
|
|
33
|
+
|
|
34
|
+
/** @hidden Defined to resolve version conflicts */
|
|
35
|
+
_init(params?: ButtonBox.ConstructorProperties): void;
|
|
36
|
+
_init(menuAlignment: number, nameText: string, dontCreateMenu?: boolean): void;
|
|
37
|
+
setSensitive(sensitive: boolean): void;
|
|
38
|
+
setMenu(menu: PopupMenu | PopupDummyMenu): void;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* SystemIndicator:
|
|
43
|
+
* This class manages one system indicator, which are the icons
|
|
44
|
+
* that you see at the top right. A system indicator is composed
|
|
45
|
+
* of an icon and a menu section, which will be composed into the
|
|
46
|
+
* aggregate menu.
|
|
47
|
+
*/
|
|
48
|
+
export class SystemIndicator extends St.BoxLayout {
|
|
49
|
+
constructor();
|
|
50
|
+
_init(): void;
|
|
51
|
+
}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/popupMenu.js
|
|
2
|
+
|
|
3
|
+
<% const Gio = dep.find('Gio') %>
|
|
4
|
+
<% const St = dep.find('St') %>
|
|
5
|
+
<% const shell = dep.find('Shell') %>
|
|
6
|
+
<% const Clutter = dep.find('Clutter') %>
|
|
7
|
+
<% const Meta = dep.find('Meta') %>
|
|
8
|
+
|
|
9
|
+
<%_ if(noNamespace){ _%>
|
|
10
|
+
import type * as Gio from '../<%= Gio.packageName %>.js';
|
|
11
|
+
import type * as St from '../<%= St.packageName %>.js';
|
|
12
|
+
import type * as Shell from '../<%= shell.packageName %>.js';
|
|
13
|
+
import type * as Clutter from '../<%= Clutter.packageName %>.js';
|
|
14
|
+
<%_ } else { _%>
|
|
15
|
+
import type Gio from '../<%= Gio.packageName %>.js';
|
|
16
|
+
import type St from '../<%= St.packageName %>.js';
|
|
17
|
+
import type Shell from '../<%= shell.packageName %>.js';
|
|
18
|
+
import type Clutter from '../<%= Clutter.packageName %>.js';
|
|
19
|
+
<%_ } _%>
|
|
20
|
+
|
|
21
|
+
import * as Signals from '../misc/signals.js';
|
|
22
|
+
|
|
23
|
+
export enum Ornament {
|
|
24
|
+
NONE = 0,
|
|
25
|
+
DOT = 1,
|
|
26
|
+
CHECK = 2,
|
|
27
|
+
HIDDEN = 3,
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
declare namespace PopupBaseMenuItem {
|
|
31
|
+
export interface ConstructorProperties {
|
|
32
|
+
reactive?: boolean;
|
|
33
|
+
activate?: boolean;
|
|
34
|
+
hover?: boolean;
|
|
35
|
+
style_class?: string;
|
|
36
|
+
can_focus?: boolean;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
declare class PopupBaseMenuItem extends St.BoxLayout {
|
|
41
|
+
readonly actor: PopupBaseMenuItem;
|
|
42
|
+
active: boolean;
|
|
43
|
+
sensitive: boolean;
|
|
44
|
+
|
|
45
|
+
constructor(params?: PopupBaseMenuItem.ConstructorProperties);
|
|
46
|
+
override _init(...args: any[]): void;
|
|
47
|
+
|
|
48
|
+
activate(event: Clutter.Event): void;
|
|
49
|
+
|
|
50
|
+
// General signal handler methods
|
|
51
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
52
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
53
|
+
emit(sigName: string, ...args: any[]): void
|
|
54
|
+
disconnect(id: number): void
|
|
55
|
+
|
|
56
|
+
// Specific signal handler methods
|
|
57
|
+
connect(sigName: "activate", callback: (($obj: PopupBaseMenuItem, event: Clutter.Event) => void)): number
|
|
58
|
+
connect_after(sigName: "activate", callback: (($obj: PopupBaseMenuItem, event: Clutter.Event) => void)): number
|
|
59
|
+
|
|
60
|
+
syncSensitive(): boolean;
|
|
61
|
+
getSensitive(): boolean;
|
|
62
|
+
setSensitive(sensitive: boolean): void;
|
|
63
|
+
setOrnament(ornament: Ornament): void;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export namespace PopupMenuItem {
|
|
67
|
+
export interface ConstructorProperties extends PopupBaseMenuItem.ConstructorProperties {}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export class PopupMenuItem extends PopupBaseMenuItem {
|
|
71
|
+
constructor(text: string, params?: PopupMenuItem.ConstructorProperties);
|
|
72
|
+
override _init(text: string, params?: PopupMenuItem.ConstructorProperties): void;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export class PopupSeparatorMenuItem extends PopupBaseMenuItem {
|
|
76
|
+
constructor(text: string);
|
|
77
|
+
override _init(text: string): void;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export class Switch extends St.Bin {
|
|
81
|
+
state: boolean;
|
|
82
|
+
constructor(state: boolean);
|
|
83
|
+
/** @hidden Defined only to resolve type conflicts */
|
|
84
|
+
override _init(config?: St.Bin.ConstructorProperties): void
|
|
85
|
+
override _init(state: boolean): void;
|
|
86
|
+
|
|
87
|
+
setToggleState(state: boolean): void;
|
|
88
|
+
toggle(): void;
|
|
89
|
+
|
|
90
|
+
// General signal handler methods
|
|
91
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
92
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
93
|
+
emit(sigName: string, ...args: any[]): void
|
|
94
|
+
disconnect(id: number): void
|
|
95
|
+
|
|
96
|
+
// Specific signal handler methods
|
|
97
|
+
connect(sigName: "notify::state", callback: (($obj: Switch) => void)): number
|
|
98
|
+
connect_after(sigName: "notify::state", callback: (($obj: Switch) => void)): number
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export namespace PopupSwitchMenuItem {
|
|
102
|
+
export interface ConstructorProperties extends PopupBaseMenuItem.ConstructorProperties {}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export class PopupSwitchMenuItem extends PopupBaseMenuItem {
|
|
106
|
+
readonly state: boolean;
|
|
107
|
+
|
|
108
|
+
constructor(text: string, active: boolean, params?: PopupSwitchMenuItem.ConstructorProperties);
|
|
109
|
+
override _init(text: string, active: boolean, params?: PopupSwitchMenuItem.ConstructorProperties): void;
|
|
110
|
+
|
|
111
|
+
setStatus(text: string): void;
|
|
112
|
+
activate(event: Clutter.Event): void;
|
|
113
|
+
toggle(): void;
|
|
114
|
+
setToggleState(state: boolean): void;
|
|
115
|
+
checkAccessibleState(): void;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export namespace PopupImageMenuItem {
|
|
119
|
+
export interface ConstructorProperties extends PopupBaseMenuItem.ConstructorProperties {}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export class PopupImageMenuItem extends PopupBaseMenuItem {
|
|
123
|
+
constructor(text: string, icon: Gio.Icon, params?: PopupImageMenuItem.ConstructorProperties);
|
|
124
|
+
override _init(text: string, icon: Gio.Icon, params?: PopupImageMenuItem.ConstructorProperties): void;
|
|
125
|
+
|
|
126
|
+
setIcon(icon: Gio.Icon): void;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
declare class PopupMenuBase extends Signals.EventEmitter {
|
|
130
|
+
protected constructor(sourceActor: St.Widget, styleClass?: string);
|
|
131
|
+
readonly sourceActor: St.Widget;
|
|
132
|
+
readonly focusActor: St.Widget;
|
|
133
|
+
readonly length: number;
|
|
134
|
+
readonly isOpen: boolean;
|
|
135
|
+
readonly box: St.BoxLayout;
|
|
136
|
+
sensitive: boolean;
|
|
137
|
+
readonly firstMenuItem: PopupBaseMenuItem | null;
|
|
138
|
+
readonly numMenuItems: number;
|
|
139
|
+
|
|
140
|
+
getSensitive(): boolean;
|
|
141
|
+
setSensitive(sensitive: boolean): void;
|
|
142
|
+
addAction(title: string, callback: () => void, icon: Gio.Icon): void;
|
|
143
|
+
addSettingsAction(title: string, desktopFile: string): void;
|
|
144
|
+
isEmpty(): boolean;
|
|
145
|
+
itemActivated(animate: boolean): void;
|
|
146
|
+
moveMenuItem(item: PopupBaseMenuItem, position: number): void;
|
|
147
|
+
addMenuItem(item: PopupBaseMenuItem, position?: number): void;
|
|
148
|
+
removeAll(): void;
|
|
149
|
+
toggle(): void;
|
|
150
|
+
destroy(): void;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export class PopupMenu extends PopupMenuBase {
|
|
154
|
+
constructor(sourceActor: St.Widget, arrowAlignment: number, arrowSide: St.Side);
|
|
155
|
+
|
|
156
|
+
setArrowOrigin(origin: number): void;
|
|
157
|
+
setSourceAlignment(alignment: number): void;
|
|
158
|
+
open(animate: boolean): void;
|
|
159
|
+
close(animate: boolean): void;
|
|
160
|
+
destroy(): void;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export class PopupDummyMenu extends Signals.EventEmitter {
|
|
164
|
+
constructor(sourceActor: St.Widget);
|
|
165
|
+
|
|
166
|
+
readonly sensitive: boolean;
|
|
167
|
+
|
|
168
|
+
getSensitive(): boolean;
|
|
169
|
+
open(): void;
|
|
170
|
+
close(): void;
|
|
171
|
+
toggle(): void;
|
|
172
|
+
destroy(): void;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export class PopupSubMenu extends PopupMenuBase {
|
|
176
|
+
actor: St.ScrollView;
|
|
177
|
+
|
|
178
|
+
constructor(sourceActor: St.Widget, sourceArrow: St.Widget);
|
|
179
|
+
|
|
180
|
+
readonly sensitive: boolean;
|
|
181
|
+
|
|
182
|
+
getSensitive(): boolean;
|
|
183
|
+
open(animate: boolean): void;
|
|
184
|
+
close(animate: boolean): void;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* PopupMenuSection:
|
|
190
|
+
*
|
|
191
|
+
* A section of a PopupMenu which is handled like a submenu
|
|
192
|
+
* (you can add and remove items, you can destroy it, you
|
|
193
|
+
* can add it to another menu), but is completely transparent
|
|
194
|
+
* to the user
|
|
195
|
+
*/
|
|
196
|
+
export class PopupMenuSection extends PopupMenuBase {
|
|
197
|
+
constructor();
|
|
198
|
+
|
|
199
|
+
readonly sensitive: boolean;
|
|
200
|
+
|
|
201
|
+
open(): void;
|
|
202
|
+
close(): void;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export class PopupSubMenuMenuItem extends PopupBaseMenuItem {
|
|
206
|
+
readonly menu: PopupSubMenu;
|
|
207
|
+
|
|
208
|
+
constructor(text: string, wantIcon?: boolean);
|
|
209
|
+
override _init(text: string, wantIcon?: boolean): void;
|
|
210
|
+
|
|
211
|
+
syncSensitive(): boolean;
|
|
212
|
+
setSubmenuShown(open: boolean): void;
|
|
213
|
+
activate(event: Clutter.Event): void;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export namespace PopupMenuManager {
|
|
217
|
+
export interface ConstructorProperties {
|
|
218
|
+
actionMode?: Shell.ActionMode;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export class PopupMenuManager {
|
|
223
|
+
constructor(owner: any, grabParams?: PopupMenuManager.ConstructorProperties);
|
|
224
|
+
|
|
225
|
+
addMenu(menu: PopupMenuBase, position: number): void;
|
|
226
|
+
removeMenu(menu: PopupMenuBase): void;
|
|
227
|
+
ignoreRelease(): void;
|
|
228
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/ripples.js
|
|
2
|
+
|
|
3
|
+
<% const Clutter = dep.find('Clutter') %>
|
|
4
|
+
<% const St = dep.find('St') %>
|
|
5
|
+
|
|
6
|
+
<%_ if(noNamespace){ _%>
|
|
7
|
+
import type * as Clutter from '../<%= Clutter.packageName %>.js';
|
|
8
|
+
import type * as St from '../<%= St.packageName %>.js';
|
|
9
|
+
<%_ } else { _%>
|
|
10
|
+
import type Clutter from '../<%= Clutter.packageName %>.js';
|
|
11
|
+
import type St from '../<%= St.packageName %>.js';
|
|
12
|
+
<%_ } _%>
|
|
13
|
+
|
|
14
|
+
export class Ripples {
|
|
15
|
+
_x: number;
|
|
16
|
+
_y: number;
|
|
17
|
+
_px: number;
|
|
18
|
+
_py: number;
|
|
19
|
+
_ripple1: St.BoxLayout;
|
|
20
|
+
_ripple2: St.BoxLayout;
|
|
21
|
+
_ripple3: St.BoxLayout;
|
|
22
|
+
|
|
23
|
+
constructor(px: number, py: number, styleClass: string | null);
|
|
24
|
+
|
|
25
|
+
public destroy(): void;
|
|
26
|
+
public addTo(stage: Clutter.Stage): void;
|
|
27
|
+
public playAnimation(x: number, y: number): void;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* We draw a ripple by using a source image and animating it scaling
|
|
31
|
+
* outwards and fading away. We want the ripples to move linearly
|
|
32
|
+
* or it looks unrealistic, but if the opacity of the ripple goes
|
|
33
|
+
* linearly to zero it fades away too quickly, so we use a separate
|
|
34
|
+
* tween to give a non-linear curve to the fade-away and make
|
|
35
|
+
* it more visible in the middle section.
|
|
36
|
+
* @param ripple
|
|
37
|
+
* @param delay
|
|
38
|
+
* @param duration
|
|
39
|
+
* @param startScale
|
|
40
|
+
* @param startOpacity
|
|
41
|
+
* @param finalScale
|
|
42
|
+
*/
|
|
43
|
+
protected _animRipple(ripple: St.BoxLayout, delay: number, duration: number, startScale: number, startOpacity: number, finalScale: number): void;
|
|
44
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/search.js
|
|
2
|
+
|
|
3
|
+
<% const St = dep.find('St') %>
|
|
4
|
+
<% const Clutter = dep.find('Clutter') %>
|
|
5
|
+
|
|
6
|
+
<%_ if(noNamespace){ _%>
|
|
7
|
+
import type * as St from '../<%= St.packageName %>.js';
|
|
8
|
+
import type * as Clutter from '../<%= Clutter.packageName %>.js';
|
|
9
|
+
<%_ } else { _%>
|
|
10
|
+
import type St from '../<%= St.packageName %>.js';
|
|
11
|
+
import type Clutter from '../<%= Clutter.packageName %>.js';
|
|
12
|
+
<%_ } _%>
|
|
13
|
+
|
|
14
|
+
import { AppSearchProvider } from './appDisplay.js';
|
|
15
|
+
|
|
16
|
+
export class MaxWidthBox extends St.BoxLayout {
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export class SearchResult extends St.Button {
|
|
21
|
+
/** @hidden */
|
|
22
|
+
public _init(config?: St.Button.ConstructorProperties): void
|
|
23
|
+
public _init(provider: AppSearchProvider, metaInfo: any, resultsView: SearchResultsView): void;
|
|
24
|
+
|
|
25
|
+
activate(): void;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export class ListSearchResult extends SearchResult {
|
|
29
|
+
/** @hidden */
|
|
30
|
+
public _init(config?: St.Button.ConstructorProperties): void
|
|
31
|
+
public _init(provider: AppSearchProvider, metaInfo: any, resultsView: SearchResultsView): void;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export class GridSearchResult extends SearchResult {
|
|
35
|
+
|
|
36
|
+
public readonly focusChild: St.Widget;
|
|
37
|
+
|
|
38
|
+
/** @hidden */
|
|
39
|
+
public _init(config?: St.Button.ConstructorProperties): void
|
|
40
|
+
public _init(provider: AppSearchProvider, metaInfo: any, resultsView: SearchResultsView): void;
|
|
41
|
+
|
|
42
|
+
protected _onDestroy(): void;
|
|
43
|
+
protected _createResultDisplay(meta: any): void;
|
|
44
|
+
protected _keyFocusIn(actor: St.Widget): void;
|
|
45
|
+
protected _ensureResultActors(results: any[]): Promise<void>;
|
|
46
|
+
|
|
47
|
+
public clear(): void;
|
|
48
|
+
public updateSearch(providerResults: any[], terms: string[], callback: () => void): Promise<void>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export abstract class SearchResultsBase extends St.BoxLayout {
|
|
52
|
+
/** @hidden */
|
|
53
|
+
public _init(config?: St.BoxLayout.ConstructorProperties): void;
|
|
54
|
+
/** @hidden */
|
|
55
|
+
public _init(provider: AppSearchProvider, resultsView: SearchResultsView): void;
|
|
56
|
+
public _init(props?: { style_class?: string, vertical?: boolean }): void;
|
|
57
|
+
|
|
58
|
+
public activateDefault(): void;
|
|
59
|
+
public highlightDefault(highlight: boolean): void;
|
|
60
|
+
public popupMenuDefault(): void;
|
|
61
|
+
public navigateFocus(direction: St.DirectionType): boolean;
|
|
62
|
+
public highlightTerms(description: string): string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export class ListSearchResults extends SearchResultsBase {
|
|
66
|
+
/** @hidden */
|
|
67
|
+
public _init(config?: St.BoxLayout.ConstructorProperties): void;
|
|
68
|
+
/** @hidden */
|
|
69
|
+
public _init(provider: AppSearchProvider, resultsView: SearchResultsView): void;
|
|
70
|
+
/** @hidden */
|
|
71
|
+
public _init(props?: { style_class?: string, vertical?: boolean }): void;
|
|
72
|
+
|
|
73
|
+
public _init(provider: AppSearchProvider, resultsView: SearchResultsView): void;
|
|
74
|
+
|
|
75
|
+
protected _setMoreCount(count: number): void;
|
|
76
|
+
protected _getMaxDisplayedResults(): number;
|
|
77
|
+
protected _clearResultDisplay(): void;
|
|
78
|
+
protected _createResultDisplay(meta: any): void;
|
|
79
|
+
protected _addItem(display: any): void;
|
|
80
|
+
|
|
81
|
+
public getFirstResult(): any | null;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export class GridSearchResultsLayout extends Clutter.LayoutManager {
|
|
85
|
+
|
|
86
|
+
public spacing: number;
|
|
87
|
+
|
|
88
|
+
/** @hidden */
|
|
89
|
+
public _init(config?: Clutter.LayoutManager.ConstructorProperties): void;
|
|
90
|
+
public _init(): void;
|
|
91
|
+
|
|
92
|
+
public columnsForWidth(width: number): number;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export class GridSearchResults extends SearchResultsBase {
|
|
96
|
+
/** @hidden */
|
|
97
|
+
public _init(config?: St.BoxLayout.ConstructorProperties): void;
|
|
98
|
+
/** @hidden */
|
|
99
|
+
public _init(props?: { style_class?: string, vertical?: boolean }): void;
|
|
100
|
+
|
|
101
|
+
public _init(provider: AppSearchProvider, resultsView: SearchResultsView): void;
|
|
102
|
+
|
|
103
|
+
protected _onDestroy(): void;
|
|
104
|
+
protected _getMaxDisplayedResults(): number;
|
|
105
|
+
protected _clearResultDisplay(): void;
|
|
106
|
+
protected _createResultDisplay(meta: any): void;
|
|
107
|
+
protected _addItem(display: any): void;
|
|
108
|
+
|
|
109
|
+
public updateSearch(...args: any[]): void;
|
|
110
|
+
public getFirstResult(): any | null;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export class SearchResultsView extends St.BoxLayout {
|
|
114
|
+
|
|
115
|
+
public readonly terms: string[];
|
|
116
|
+
public readonly searchInProgress: boolean;
|
|
117
|
+
|
|
118
|
+
/** @hidden */
|
|
119
|
+
public _init(config?: St.BoxLayout.ConstructorProperties): void;
|
|
120
|
+
public _init(): void;
|
|
121
|
+
|
|
122
|
+
protected _reloadRemoteProviders(): void;
|
|
123
|
+
protected _registerProvider(provider: AppSearchProvider): void;
|
|
124
|
+
protected _unregisterProvider(provider: AppSearchProvider): void;
|
|
125
|
+
protected _clearSearchTimeout(): void;
|
|
126
|
+
protected _reset(): void;
|
|
127
|
+
protected _doProviderSearch(provider: AppSearchProvider, previousResults: any[]): Promise<any[]>;
|
|
128
|
+
protected _doSearch(): void;
|
|
129
|
+
protected _onSearchTimeout(): void;
|
|
130
|
+
protected _onPan(action: any): void;
|
|
131
|
+
protected _focusChildChanged(provider: AppSearchProvider): void;
|
|
132
|
+
protected _ensureProviderDisplay(provider: AppSearchProvider): void;
|
|
133
|
+
protected _clearDisplay(): void;
|
|
134
|
+
protected _maybeSetInitialSelection(): void;
|
|
135
|
+
protected _updateSearchProgress(): void;
|
|
136
|
+
protected _updateResults(provider: AppSearchProvider, results: any[]): void;
|
|
137
|
+
protected _setSelected(result: any, selected: boolean): void;
|
|
138
|
+
|
|
139
|
+
public setTerms(terms: string[]): void;
|
|
140
|
+
public activateDefault(): void;
|
|
141
|
+
public highlightDefault(highlight: boolean): void;
|
|
142
|
+
public popupMenuDefault(): void;
|
|
143
|
+
public navigateFocus(direction: St.DirectionType): boolean;
|
|
144
|
+
public highlightTerms(description: string): string;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export class ProviderInfo extends St.Button {
|
|
148
|
+
|
|
149
|
+
readonly PROVIDER_ICON_SIZE: number;
|
|
150
|
+
|
|
151
|
+
/** @hidden */
|
|
152
|
+
public _init(config?: St.Button.ConstructorProperties): void
|
|
153
|
+
|
|
154
|
+
public _init(provider: AppSearchProvider): void;
|
|
155
|
+
|
|
156
|
+
public animateLaunch(): void;
|
|
157
|
+
public setMoreCount(count: number): void;
|
|
158
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/switcherPopup.js
|
|
2
|
+
|
|
3
|
+
<% const glib = dep.find('GLib') %>
|
|
4
|
+
<% const St = dep.find('St') %>
|
|
5
|
+
<% const Clutter = dep.find('Clutter') %>
|
|
6
|
+
|
|
7
|
+
<%_ if(noNamespace){ _%>
|
|
8
|
+
import type * as GLib from '../<%= glib.packageName %>.js';
|
|
9
|
+
import type * as St from '../<%= St.packageName %>.js';
|
|
10
|
+
import type * as Clutter from '../<%= Clutter.packageName %>.js';
|
|
11
|
+
<%_ } else { _%>
|
|
12
|
+
import type GLib from '../<%= glib.packageName %>.js';
|
|
13
|
+
import type St from '../<%= St.packageName %>.js';
|
|
14
|
+
import type Clutter from '../<%= Clutter.packageName %>.js';
|
|
15
|
+
<%_ } _%>
|
|
16
|
+
|
|
17
|
+
export abstract class SwitcherPopup extends St.Widget {
|
|
18
|
+
/** @hidden Only defined to resolve type conflict */
|
|
19
|
+
_init(props: St.Widget.ConstructorProperties): void;
|
|
20
|
+
_init(items: any[]): void;
|
|
21
|
+
|
|
22
|
+
_initialSelection(backward: boolean, _binding?: any): void;
|
|
23
|
+
|
|
24
|
+
/** @hidden Only defined to resolve type conflict */
|
|
25
|
+
show(): boolean;
|
|
26
|
+
show(backward: boolean, binding: any, mask: any): boolean;
|
|
27
|
+
|
|
28
|
+
_showImmediately(): void
|
|
29
|
+
|
|
30
|
+
_next(): any;
|
|
31
|
+
|
|
32
|
+
_previous(): any;
|
|
33
|
+
|
|
34
|
+
_keyPressHandler(_keysym: any, _action: any): typeof Clutter.EVENT_PROPAGATE | typeof Clutter.EVENT_STOP
|
|
35
|
+
|
|
36
|
+
vfunc_key_press_event(keyEvent: Clutter.KeyEvent): typeof Clutter.EVENT_PROPAGATE | typeof Clutter.EVENT_STOP
|
|
37
|
+
|
|
38
|
+
vfunc_key_release_event(keyEvent: Clutter.KeyEvent): typeof Clutter.EVENT_PROPAGATE | typeof Clutter.EVENT_STOP
|
|
39
|
+
|
|
40
|
+
vfunc_button_press_event(): typeof Clutter.EVENT_PROPAGATE | typeof Clutter.EVENT_STOP
|
|
41
|
+
|
|
42
|
+
_scrollHandler(direction: any): void;
|
|
43
|
+
|
|
44
|
+
vfunc_scroll_event(scrollEvent: any /* Clutter.ScrollEvent */): typeof Clutter.EVENT_PROPAGATE | typeof Clutter.EVENT_STOP
|
|
45
|
+
|
|
46
|
+
_itemActivatedHandler(n: number): void;
|
|
47
|
+
|
|
48
|
+
itemEnteredHandler(n: number): void;
|
|
49
|
+
|
|
50
|
+
_itemEntered(switcher: any, n: number): void;
|
|
51
|
+
|
|
52
|
+
itemRemovedHandler(n: number): void;
|
|
53
|
+
|
|
54
|
+
_itemRemoved(switcher: any, n: number): void;
|
|
55
|
+
|
|
56
|
+
_disableHover(): void;
|
|
57
|
+
|
|
58
|
+
_mouseTimedOut(): typeof GLib.SOURCE_REMOVE | typeof GLib.SOURCE_CONTINUE;
|
|
59
|
+
|
|
60
|
+
_resetNoModsTimeout(): void;
|
|
61
|
+
|
|
62
|
+
_popModal(): void;
|
|
63
|
+
|
|
64
|
+
fadeAndDestroy(): void;
|
|
65
|
+
|
|
66
|
+
_finish(_timestamp: number): void;
|
|
67
|
+
|
|
68
|
+
_onDestroy(): void;
|
|
69
|
+
|
|
70
|
+
_select(num: number): void;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export class SwitcherList extends St.Widget {
|
|
74
|
+
/** @hidden Defined only to resolve type conflicts */
|
|
75
|
+
_init(config?: St.Widget.ConstructorProperties): void;
|
|
76
|
+
_init(squareItems: any[]): void
|
|
77
|
+
|
|
78
|
+
addItem(item: any, label: string): void;
|
|
79
|
+
|
|
80
|
+
removeItem(index: number): void;
|
|
81
|
+
|
|
82
|
+
addAccessibleState(index: number, state: any): void;
|
|
83
|
+
|
|
84
|
+
removeAccessibleState(index: number, state: any): void
|
|
85
|
+
|
|
86
|
+
_onItemClicked(item: any): void
|
|
87
|
+
|
|
88
|
+
_onItemMotion(item: any): void
|
|
89
|
+
|
|
90
|
+
highlight(index: number, justOutline: boolean): void
|
|
91
|
+
|
|
92
|
+
_scrollToLeft(index: number): void
|
|
93
|
+
|
|
94
|
+
_scrollToRight(index: number): void
|
|
95
|
+
|
|
96
|
+
_itemActivated(n: number): void
|
|
97
|
+
|
|
98
|
+
_itemEntered(n: number): void
|
|
99
|
+
|
|
100
|
+
_maxChildWidth(forHeight: number): number
|
|
101
|
+
|
|
102
|
+
vfunc_get_preferred_width(forHeight: number): [number, number]
|
|
103
|
+
|
|
104
|
+
vfunc_get_preferred_height(_forWidth: number): [number, number]
|
|
105
|
+
|
|
106
|
+
vfunc_allocate(box: any): void
|
|
107
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/userWidget.js
|
|
2
|
+
|
|
3
|
+
<% const St = dep.find('St') %>
|
|
4
|
+
|
|
5
|
+
<%_ if(noNamespace){ _%>
|
|
6
|
+
import type * as St from '../<%= St.packageName %>.js';
|
|
7
|
+
<%_ } else { _%>
|
|
8
|
+
import type St from '../<%= St.packageName %>.js';
|
|
9
|
+
<%_ } _%>
|
|
10
|
+
|
|
11
|
+
export class UserWidget extends St.BoxLayout {
|
|
12
|
+
|
|
13
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Workaround
|
|
2
|
+
/** @ignore */
|
|
3
|
+
export module GraniteServicesSettingsSerializable {
|
|
4
|
+
export interface ConstructorProperties extends ServicesSettingsSerializable.ConstructorProperties {}
|
|
5
|
+
}
|
|
6
|
+
/** @ignore */
|
|
7
|
+
export interface GraniteServicesSettingsSerializable extends ServicesSettingsSerializable {}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Workaround
|
|
2
|
+
/** @ignore */
|
|
3
|
+
export module GraniteServicesSettingsSerializable {
|
|
4
|
+
export interface ConstructorProperties extends ServicesSettingsSerializable.ConstructorProperties {}
|
|
5
|
+
}
|
|
6
|
+
/** @ignore */
|
|
7
|
+
export interface GraniteServicesSettingsSerializable extends ServicesSettingsSerializable {}
|